~ubuntu-branches/ubuntu/utopic/expat/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-20 22:37:22 UTC
  • mfrom: (1.1.4) (5.1.7 precise)
  • Revision ID: package-import@ubuntu.com-20120320223722-wq8sq4gykhlvc8j9
Tags: 2.1.0~beta3-1
* QA upload.
* Beta release 2.1.0 beta3. Closes: #663579.
  - CVE-2012-1147 - Resource leak in readfilemap.c.
  - CVE-2012-1148 - Memory leak in poolGrow.
  - CVE-2012-0876 - Hash DOS attack.
  - Remove patches applied upstream.
* Remove Daniel from uploaders (orphaned package).
* Update package format to 3.0.
* Enable hardened build. Closes: #653526.
* Add a symbols file.
* Install expat pkgconfig file.

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 GNU Autoconf 2.59 for expat 2.0.1.
 
3
# Generated by GNU Autoconf 2.68 for expat 2.1.0.
4
4
#
5
5
# Report bugs to <expat-bugs@libexpat.org>.
6
6
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
8
13
# This configure script is free software; the Free Software Foundation
9
14
# gives unlimited permission to copy, distribute and modify it.
10
 
## --------------------- ##
11
 
## M4sh Initialization.  ##
12
 
## --------------------- ##
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
13
18
 
14
 
# Be Bourne compatible
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
22
  emulate sh
17
23
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
25
  # is contrary to our usage.  Disable this feature.
20
26
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
23
 
fi
24
 
DUALCASE=1; export DUALCASE # for MKS sh
25
 
 
26
 
# Support unset when possible.
27
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
 
  as_unset=unset
29
 
else
30
 
  as_unset=false
31
 
fi
32
 
 
33
 
 
34
 
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
as_myself=
 
95
case $0 in #((
 
96
  *[\\/]* ) as_myself=$0 ;;
 
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
98
for as_dir in $PATH
 
99
do
 
100
  IFS=$as_save_IFS
 
101
  test -z "$as_dir" && as_dir=.
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
 
104
IFS=$as_save_IFS
 
105
 
 
106
     ;;
 
107
esac
 
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
109
# in which case we are not to be found in the path.
 
110
if test "x$as_myself" = x; then
 
111
  as_myself=$0
 
112
fi
 
113
if test ! -f "$as_myself"; then
 
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
115
  exit 1
 
116
fi
 
117
 
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
125
done
36
126
PS1='$ '
37
127
PS2='> '
38
128
PS4='+ '
39
129
 
40
130
# NLS nuisances.
41
 
for as_var in \
42
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
 
  LC_TELEPHONE LC_TIME
45
 
do
46
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
 
    eval $as_var=C; export $as_var
48
 
  else
49
 
    $as_unset $as_var
50
 
  fi
51
 
done
52
 
 
53
 
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
55
 
  as_expr=expr
56
 
else
57
 
  as_expr=false
58
 
fi
59
 
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
 
  as_basename=basename
62
 
else
63
 
  as_basename=false
64
 
fi
65
 
 
66
 
 
67
 
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
69
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
 
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
73
 
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
132
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# CDPATH.
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
138
 
 
139
if test "x$CONFIG_SHELL" = x; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
185
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
 
187
  as_have_required=yes
 
188
else
 
189
  as_have_required=no
 
190
fi
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
133
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
197
do
135
198
  IFS=$as_save_IFS
136
199
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
 
200
  as_found=:
 
201
  case $as_dir in #(
139
202
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
 
203
           for as_base in sh bash ksh sh5; do
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
 
213
           done;;
 
214
       esac
 
215
  as_found=false
154
216
done
155
 
;;
156
 
  esac
157
 
 
158
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
164
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
167
 
    sed '
168
 
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
 
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
175
 
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
177
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
 
   { (exit 1); exit 1; }; }
179
 
 
180
 
  # Don't try to exec as it changes $[0], causing all sort of problems
181
 
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
184
 
  # Exit status is that of the last command.
185
 
  exit
186
 
}
187
 
 
188
 
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
 
esac
195
 
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
197
 
  as_expr=expr
198
 
else
199
 
  as_expr=false
200
 
fi
201
 
 
202
 
rm -f conf$$ conf$$.exe conf$$.file
203
 
echo >conf$$.file
204
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
209
 
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
 
elif ln conf$$.file conf$$ 2>/dev/null; then
214
 
  as_ln_s=ln
215
 
else
216
 
  as_ln_s='cp -p'
217
 
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
219
 
 
220
 
if mkdir -p . 2>/dev/null; then
221
 
  as_mkdir_p=:
222
 
else
223
 
  test -d ./-p && rmdir ./-p
224
 
  as_mkdir_p=false
225
 
fi
226
 
 
227
 
as_executable_p="test -f"
228
 
 
229
 
# Sed expression to map a string onto a valid CPP name.
230
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
 
 
232
 
# Sed expression to map a string onto a valid variable name.
233
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
 
 
235
 
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
245
 
 
246
 
 
247
 
# Check that we are running under the correct shell.
248
 
SHELL=${CONFIG_SHELL-/bin/sh}
249
 
 
250
 
case X$ECHO in
251
 
X*--fallback-echo)
252
 
  # Remove one level of quotation (which was required for Make).
253
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254
 
  ;;
255
 
esac
256
 
 
257
 
echo=${ECHO-echo}
258
 
if test "X$1" = X--no-reexec; then
259
 
  # Discard the --no-reexec flag, and continue.
260
 
  shift
261
 
elif test "X$1" = X--fallback-echo; then
262
 
  # Avoid inline document here, it may be left over
263
 
  :
264
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
 
  # Yippee, $echo works!
266
 
  :
267
 
else
268
 
  # Restart under the correct shell.
269
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
270
 
fi
271
 
 
272
 
if test "X$1" = X--fallback-echo; then
273
 
  # used as fallback echo
274
 
  shift
275
 
  cat <<EOF
276
 
$*
277
 
EOF
278
 
  exit 0
279
 
fi
280
 
 
281
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
 
# if CDPATH is set.
283
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
 
 
285
 
if test -z "$ECHO"; then
286
 
if test "X${echo_test_string+set}" != Xset; then
287
 
# find a string as large as possible, as long as the shell can cope with it
288
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291
 
       echo_test_string=`eval $cmd` &&
292
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
 
    then
294
 
      break
295
 
    fi
296
 
  done
297
 
fi
298
 
 
299
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
302
 
  :
303
 
else
304
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
305
 
  # backslashes.  This makes it impossible to quote backslashes using
306
 
  #   echo "$something" | sed 's/\\/\\\\/g'
307
 
  #
308
 
  # So, first we look for a working echo in the user's PATH.
309
 
 
310
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
 
  for dir in $PATH /usr/ucb; do
312
 
    IFS="$lt_save_ifs"
313
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
317
 
      echo="$dir/echo"
318
 
      break
319
 
    fi
320
 
  done
321
 
  IFS="$lt_save_ifs"
322
 
 
323
 
  if test "X$echo" = Xecho; then
324
 
    # We didn't find a better echo, so look for alternatives.
325
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
328
 
      # This shell has a builtin print -r that does the trick.
329
 
      echo='print -r'
330
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
332
 
      # If we have ksh, try running configure again with it.
333
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
 
      export ORIGINAL_CONFIG_SHELL
335
 
      CONFIG_SHELL=/bin/ksh
336
 
      export CONFIG_SHELL
337
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338
 
    else
339
 
      # Try using printf.
340
 
      echo='printf %s\n'
341
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
344
 
        # Cool, printf works
345
 
        :
346
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
 
           test "X$echo_testing_string" = 'X\t' &&
348
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
350
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
 
221
IFS=$as_save_IFS
 
222
 
 
223
 
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
351
232
        export CONFIG_SHELL
352
 
        SHELL="$CONFIG_SHELL"
353
 
        export SHELL
354
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
355
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = 'X\t' &&
357
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
359
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
240
fi
 
241
 
 
242
    if test x$as_have_required = xno; then :
 
243
  $as_echo "$0: This script requires a shell more modern than all"
 
244
  $as_echo "$0: the shells that I found on your system."
 
245
  if test x${ZSH_VERSION+set} = xset ; then
 
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
248
  else
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
250
$0: expat-bugs@libexpat.org about your system, including
 
251
$0: any error possibly output before this message. Then
 
252
$0: install a modern shell, or manually run the script
 
253
$0: under such a shell if you do have one."
 
254
  fi
 
255
  exit 1
 
256
fi
 
257
fi
 
258
fi
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
export SHELL
 
261
# Unset more variables known to interfere with behavior of common tools.
 
262
CLICOLOR_FORCE= GREP_OPTIONS=
 
263
unset CLICOLOR_FORCE GREP_OPTIONS
 
264
 
 
265
## --------------------- ##
 
266
## M4sh Shell Functions. ##
 
267
## --------------------- ##
 
268
# as_fn_unset VAR
 
269
# ---------------
 
270
# Portably unset VAR.
 
271
as_fn_unset ()
 
272
{
 
273
  { eval $1=; unset $1;}
 
274
}
 
275
as_unset=as_fn_unset
 
276
 
 
277
# as_fn_set_status STATUS
 
278
# -----------------------
 
279
# Set $? to STATUS, without forking.
 
280
as_fn_set_status ()
 
281
{
 
282
  return $1
 
283
} # as_fn_set_status
 
284
 
 
285
# as_fn_exit STATUS
 
286
# -----------------
 
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
288
as_fn_exit ()
 
289
{
 
290
  set +e
 
291
  as_fn_set_status $1
 
292
  exit $1
 
293
} # as_fn_exit
 
294
 
 
295
# as_fn_mkdir_p
 
296
# -------------
 
297
# Create "$as_dir" as a directory, including parents if necessary.
 
298
as_fn_mkdir_p ()
 
299
{
 
300
 
 
301
  case $as_dir in #(
 
302
  -*) as_dir=./$as_dir;;
 
303
  esac
 
304
  test -d "$as_dir" || eval $as_mkdir_p || {
 
305
    as_dirs=
 
306
    while :; do
 
307
      case $as_dir in #(
 
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
309
      *) as_qdir=$as_dir;;
 
310
      esac
 
311
      as_dirs="'$as_qdir' $as_dirs"
 
312
      as_dir=`$as_dirname -- "$as_dir" ||
 
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
314
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
315
         X"$as_dir" : 'X\(//\)$' \| \
 
316
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
317
$as_echo X"$as_dir" |
 
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
319
            s//\1/
 
320
            q
 
321
          }
 
322
          /^X\(\/\/\)[^/].*/{
 
323
            s//\1/
 
324
            q
 
325
          }
 
326
          /^X\(\/\/\)$/{
 
327
            s//\1/
 
328
            q
 
329
          }
 
330
          /^X\(\/\).*/{
 
331
            s//\1/
 
332
            q
 
333
          }
 
334
          s/.*/./; q'`
 
335
      test -d "$as_dir" && break
 
336
    done
 
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
338
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
339
 
 
340
 
 
341
} # as_fn_mkdir_p
 
342
# as_fn_append VAR VALUE
 
343
# ----------------------
 
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
345
# advantage of any shell optimizations that allow amortized linear growth over
 
346
# repeated appends, instead of the typical quadratic growth present in naive
 
347
# implementations.
 
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
349
  eval 'as_fn_append ()
 
350
  {
 
351
    eval $1+=\$2
 
352
  }'
 
353
else
 
354
  as_fn_append ()
 
355
  {
 
356
    eval $1=\$$1\$2
 
357
  }
 
358
fi # as_fn_append
 
359
 
 
360
# as_fn_arith ARG...
 
361
# ------------------
 
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
364
# must be portable across $(()) and expr.
 
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
366
  eval 'as_fn_arith ()
 
367
  {
 
368
    as_val=$(( $* ))
 
369
  }'
 
370
else
 
371
  as_fn_arith ()
 
372
  {
 
373
    as_val=`expr "$@" || test $? -eq 1`
 
374
  }
 
375
fi # as_fn_arith
 
376
 
 
377
 
 
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
379
# ----------------------------------------
 
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
382
# script with STATUS, using 1 if that was 0.
 
383
as_fn_error ()
 
384
{
 
385
  as_status=$1; test $as_status -eq 0 && as_status=1
 
386
  if test "$4"; then
 
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
389
  fi
 
390
  $as_echo "$as_me: error: $2" >&2
 
391
  as_fn_exit $as_status
 
392
} # as_fn_error
 
393
 
 
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
396
  as_expr=expr
 
397
else
 
398
  as_expr=false
 
399
fi
 
400
 
 
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
402
  as_basename=basename
 
403
else
 
404
  as_basename=false
 
405
fi
 
406
 
 
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
408
  as_dirname=dirname
 
409
else
 
410
  as_dirname=false
 
411
fi
 
412
 
 
413
as_me=`$as_basename -- "$0" ||
 
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
415
         X"$0" : 'X\(//\)$' \| \
 
416
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
417
$as_echo X/"$0" |
 
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
419
            s//\1/
 
420
            q
 
421
          }
 
422
          /^X\/\(\/\/\)$/{
 
423
            s//\1/
 
424
            q
 
425
          }
 
426
          /^X\/\(\/\).*/{
 
427
            s//\1/
 
428
            q
 
429
          }
 
430
          s/.*/./; q'`
 
431
 
 
432
# Avoid depending upon Character Ranges.
 
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
436
as_cr_digits='0123456789'
 
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
438
 
 
439
 
 
440
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
445
  sed -n '
 
446
    p
 
447
    /[$]LINENO/=
 
448
  ' <$as_myself |
 
449
    sed '
 
450
      s/[$]LINENO.*/&-/
 
451
      t lineno
 
452
      b
 
453
      :lineno
 
454
      N
 
455
      :loop
 
456
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
457
      t loop
 
458
      s/-\n.*//
 
459
    ' >$as_me.lineno &&
 
460
  chmod +x "$as_me.lineno" ||
 
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
462
 
 
463
  # Don't try to exec as it changes $[0], causing all sort of problems
 
464
  # (the dirname of $[0] is not the place where we might find the
 
465
  # original and so on.  Autoconf is especially sensitive to this).
 
466
  . "./$as_me.lineno"
 
467
  # Exit status is that of the last command.
 
468
  exit
 
469
}
 
470
 
 
471
ECHO_C= ECHO_N= ECHO_T=
 
472
case `echo -n x` in #(((((
 
473
-n*)
 
474
  case `echo 'xy\c'` in
 
475
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
476
  xy)  ECHO_C='\c';;
 
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
478
       ECHO_T=' ';;
 
479
  esac;;
 
480
*)
 
481
  ECHO_N='-n';;
 
482
esac
 
483
 
 
484
rm -f conf$$ conf$$.exe conf$$.file
 
485
if test -d conf$$.dir; then
 
486
  rm -f conf$$.dir/conf$$.file
 
487
else
 
488
  rm -f conf$$.dir
 
489
  mkdir conf$$.dir 2>/dev/null
 
490
fi
 
491
if (echo >conf$$.file) 2>/dev/null; then
 
492
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
493
    as_ln_s='ln -s'
 
494
    # ... but there are two gotchas:
 
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
497
    # In both cases, we have to default to `cp -p'.
 
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
499
      as_ln_s='cp -p'
 
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
501
    as_ln_s=ln
 
502
  else
 
503
    as_ln_s='cp -p'
 
504
  fi
 
505
else
 
506
  as_ln_s='cp -p'
 
507
fi
 
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
509
rmdir conf$$.dir 2>/dev/null
 
510
 
 
511
if mkdir -p . 2>/dev/null; then
 
512
  as_mkdir_p='mkdir -p "$as_dir"'
 
513
else
 
514
  test -d ./-p && rmdir ./-p
 
515
  as_mkdir_p=false
 
516
fi
 
517
 
 
518
if test -x / >/dev/null 2>&1; then
 
519
  as_test_x='test -x'
 
520
else
 
521
  if ls -dL / >/dev/null 2>&1; then
 
522
    as_ls_L_option=L
 
523
  else
 
524
    as_ls_L_option=
 
525
  fi
 
526
  as_test_x='
 
527
    eval sh -c '\''
 
528
      if test -d "$1"; then
 
529
        test -d "$1/.";
360
530
      else
361
 
        # maybe with a smaller string...
362
 
        prev=:
363
 
 
364
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366
 
          then
367
 
            break
368
 
          fi
369
 
          prev="$cmd"
370
 
        done
371
 
 
372
 
        if test "$prev" != 'sed 50q "$0"'; then
373
 
          echo_test_string=`eval $prev`
374
 
          export echo_test_string
375
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376
 
        else
377
 
          # Oops.  We lost completely, so just stick with echo.
378
 
          echo=echo
379
 
        fi
380
 
      fi
381
 
    fi
382
 
  fi
383
 
fi
384
 
fi
385
 
 
386
 
# Copy echo and quote the copy suitably for passing to libtool from
387
 
# the Makefile, instead of quoting the original, which is used later.
388
 
ECHO=$echo
389
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391
 
fi
392
 
 
393
 
 
394
 
 
395
 
 
396
 
tagnames=${tagnames+${tagnames},}CXX
397
 
 
398
 
tagnames=${tagnames+${tagnames},}F77
 
531
        case $1 in #(
 
532
        -*)set "./$1";;
 
533
        esac;
 
534
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
535
        ???[sx]*):;;*)false;;esac;fi
 
536
    '\'' sh
 
537
  '
 
538
fi
 
539
as_executable_p=$as_test_x
 
540
 
 
541
# Sed expression to map a string onto a valid CPP name.
 
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
543
 
 
544
# Sed expression to map a string onto a valid variable name.
 
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
SHELL=${CONFIG_SHELL-/bin/sh}
 
548
 
 
549
 
 
550
test -n "$DJDIR" || exec 7<&0 </dev/null
 
551
exec 6>&1
399
552
 
400
553
# Name of the host.
401
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
402
555
# so uname gets run too.
403
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
557
 
405
 
exec 6>&1
406
 
 
407
558
#
408
559
# Initializations.
409
560
#
410
561
ac_default_prefix=/usr/local
 
562
ac_clean_files=
411
563
ac_config_libobj_dir=.
 
564
LIBOBJS=
412
565
cross_compiling=no
413
566
subdirs=
414
567
MFLAGS=
415
568
MAKEFLAGS=
416
 
SHELL=${CONFIG_SHELL-/bin/sh}
417
 
 
418
 
# Maximum number of lines to put in a shell here document.
419
 
# This variable seems obsolete.  It should probably be removed, and
420
 
# only ac_max_sed_lines should be used.
421
 
: ${ac_max_here_lines=38}
422
569
 
423
570
# Identity of this package.
424
571
PACKAGE_NAME='expat'
425
572
PACKAGE_TARNAME='expat'
426
 
PACKAGE_VERSION='2.0.1'
427
 
PACKAGE_STRING='expat 2.0.1'
 
573
PACKAGE_VERSION='2.1.0'
 
574
PACKAGE_STRING='expat 2.1.0'
428
575
PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
 
576
PACKAGE_URL=''
429
577
 
430
578
ac_unique_file="Makefile.in"
431
579
# Factoring default headers for most tests.
432
580
ac_includes_default="\
433
581
#include <stdio.h>
434
 
#if HAVE_SYS_TYPES_H
 
582
#ifdef HAVE_SYS_TYPES_H
435
583
# include <sys/types.h>
436
584
#endif
437
 
#if HAVE_SYS_STAT_H
 
585
#ifdef HAVE_SYS_STAT_H
438
586
# include <sys/stat.h>
439
587
#endif
440
 
#if STDC_HEADERS
 
588
#ifdef STDC_HEADERS
441
589
# include <stdlib.h>
442
590
# include <stddef.h>
443
591
#else
444
 
# if HAVE_STDLIB_H
 
592
# ifdef HAVE_STDLIB_H
445
593
#  include <stdlib.h>
446
594
# endif
447
595
#endif
448
 
#if HAVE_STRING_H
449
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
596
#ifdef HAVE_STRING_H
 
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
450
598
#  include <memory.h>
451
599
# endif
452
600
# include <string.h>
453
601
#endif
454
 
#if HAVE_STRINGS_H
 
602
#ifdef HAVE_STRINGS_H
455
603
# include <strings.h>
456
604
#endif
457
 
#if HAVE_INTTYPES_H
 
605
#ifdef HAVE_INTTYPES_H
458
606
# include <inttypes.h>
459
 
#else
460
 
# if HAVE_STDINT_H
461
 
#  include <stdint.h>
462
 
# endif
463
 
#endif
464
 
#if HAVE_UNISTD_H
 
607
#endif
 
608
#ifdef HAVE_STDINT_H
 
609
# include <stdint.h>
 
610
#endif
 
611
#ifdef HAVE_UNISTD_H
465
612
# include <unistd.h>
466
613
#endif"
467
614
 
468
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FILEMAP LIBOBJS LTLIBOBJS'
 
615
ac_header_list=
 
616
ac_subst_vars='LTLIBOBJS
 
617
LIBOBJS
 
618
FILEMAP
 
619
INSTALL_DATA
 
620
INSTALL_SCRIPT
 
621
INSTALL_PROGRAM
 
622
CXXCPP
 
623
ac_ct_CXX
 
624
CXXFLAGS
 
625
CXX
 
626
LIBAGE
 
627
LIBREVISION
 
628
LIBCURRENT
 
629
CPP
 
630
OTOOL64
 
631
OTOOL
 
632
LIPO
 
633
NMEDIT
 
634
DSYMUTIL
 
635
MANIFEST_TOOL
 
636
AWK
 
637
RANLIB
 
638
STRIP
 
639
ac_ct_AR
 
640
AR
 
641
LN_S
 
642
NM
 
643
ac_ct_DUMPBIN
 
644
DUMPBIN
 
645
LD
 
646
FGREP
 
647
EGREP
 
648
GREP
 
649
SED
 
650
OBJEXT
 
651
EXEEXT
 
652
ac_ct_CC
 
653
CPPFLAGS
 
654
LDFLAGS
 
655
CFLAGS
 
656
CC
 
657
LIBTOOL
 
658
OBJDUMP
 
659
DLLTOOL
 
660
AS
 
661
host_os
 
662
host_vendor
 
663
host_cpu
 
664
host
 
665
build_os
 
666
build_vendor
 
667
build_cpu
 
668
build
 
669
target_alias
 
670
host_alias
 
671
build_alias
 
672
LIBS
 
673
ECHO_T
 
674
ECHO_N
 
675
ECHO_C
 
676
DEFS
 
677
mandir
 
678
localedir
 
679
libdir
 
680
psdir
 
681
pdfdir
 
682
dvidir
 
683
htmldir
 
684
infodir
 
685
docdir
 
686
oldincludedir
 
687
includedir
 
688
localstatedir
 
689
sharedstatedir
 
690
sysconfdir
 
691
datadir
 
692
datarootdir
 
693
libexecdir
 
694
sbindir
 
695
bindir
 
696
program_transform_name
 
697
prefix
 
698
exec_prefix
 
699
PACKAGE_URL
 
700
PACKAGE_BUGREPORT
 
701
PACKAGE_STRING
 
702
PACKAGE_VERSION
 
703
PACKAGE_TARNAME
 
704
PACKAGE_NAME
 
705
PATH_SEPARATOR
 
706
SHELL'
469
707
ac_subst_files=''
 
708
ac_user_opts='
 
709
enable_option_checking
 
710
enable_shared
 
711
enable_static
 
712
with_pic
 
713
enable_fast_install
 
714
with_gnu_ld
 
715
with_sysroot
 
716
enable_libtool_lock
 
717
'
 
718
      ac_precious_vars='build_alias
 
719
host_alias
 
720
target_alias
 
721
CC
 
722
CFLAGS
 
723
LDFLAGS
 
724
LIBS
 
725
CPPFLAGS
 
726
CPP
 
727
CXX
 
728
CXXFLAGS
 
729
CCC
 
730
CXXCPP'
 
731
 
470
732
 
471
733
# Initialize some variables set by options.
472
734
ac_init_help=
473
735
ac_init_version=false
 
736
ac_unrecognized_opts=
 
737
ac_unrecognized_sep=
474
738
# The variables have the same names as the options, with
475
739
# dashes changed to underlines.
476
740
cache_file=/dev/null
493
757
# and all the variables that are supposed to be based on exec_prefix
494
758
# by default will actually change.
495
759
# Use braces instead of parens because sh, perl, etc. also accept them.
 
760
# (The list follows the same order as the GNU Coding Standards.)
496
761
bindir='${exec_prefix}/bin'
497
762
sbindir='${exec_prefix}/sbin'
498
763
libexecdir='${exec_prefix}/libexec'
499
 
datadir='${prefix}/share'
 
764
datarootdir='${prefix}/share'
 
765
datadir='${datarootdir}'
500
766
sysconfdir='${prefix}/etc'
501
767
sharedstatedir='${prefix}/com'
502
768
localstatedir='${prefix}/var'
503
 
libdir='${exec_prefix}/lib'
504
769
includedir='${prefix}/include'
505
770
oldincludedir='/usr/include'
506
 
infodir='${prefix}/info'
507
 
mandir='${prefix}/man'
 
771
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
772
infodir='${datarootdir}/info'
 
773
htmldir='${docdir}'
 
774
dvidir='${docdir}'
 
775
pdfdir='${docdir}'
 
776
psdir='${docdir}'
 
777
libdir='${exec_prefix}/lib'
 
778
localedir='${datarootdir}/locale'
 
779
mandir='${datarootdir}/man'
508
780
 
509
781
ac_prev=
 
782
ac_dashdash=
510
783
for ac_option
511
784
do
512
785
  # If the previous option needs an argument, assign it.
513
786
  if test -n "$ac_prev"; then
514
 
    eval "$ac_prev=\$ac_option"
 
787
    eval $ac_prev=\$ac_option
515
788
    ac_prev=
516
789
    continue
517
790
  fi
518
791
 
519
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
792
  case $ac_option in
 
793
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
794
  *=)   ac_optarg= ;;
 
795
  *)    ac_optarg=yes ;;
 
796
  esac
520
797
 
521
798
  # Accept the important Cygnus configure options, so we can diagnose typos.
522
799
 
523
 
  case $ac_option in
 
800
  case $ac_dashdash$ac_option in
 
801
  --)
 
802
    ac_dashdash=yes ;;
524
803
 
525
804
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526
805
    ac_prev=bindir ;;
542
821
  --config-cache | -C)
543
822
    cache_file=config.cache ;;
544
823
 
545
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
824
  -datadir | --datadir | --datadi | --datad)
546
825
    ac_prev=datadir ;;
547
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
 
  | --da=*)
 
826
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
549
827
    datadir=$ac_optarg ;;
550
828
 
 
829
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
830
  | --dataroo | --dataro | --datar)
 
831
    ac_prev=datarootdir ;;
 
832
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
833
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
834
    datarootdir=$ac_optarg ;;
 
835
 
551
836
  -disable-* | --disable-*)
552
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
837
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
838
    # Reject names that are not valid shell variable names.
554
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556
 
   { (exit 1); exit 1; }; }
557
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
 
    eval "enable_$ac_feature=no" ;;
 
839
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
840
      as_fn_error $? "invalid feature name: $ac_useropt"
 
841
    ac_useropt_orig=$ac_useropt
 
842
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
843
    case $ac_user_opts in
 
844
      *"
 
845
"enable_$ac_useropt"
 
846
"*) ;;
 
847
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
848
         ac_unrecognized_sep=', ';;
 
849
    esac
 
850
    eval enable_$ac_useropt=no ;;
 
851
 
 
852
  -docdir | --docdir | --docdi | --doc | --do)
 
853
    ac_prev=docdir ;;
 
854
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
855
    docdir=$ac_optarg ;;
 
856
 
 
857
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
858
    ac_prev=dvidir ;;
 
859
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
860
    dvidir=$ac_optarg ;;
559
861
 
560
862
  -enable-* | --enable-*)
561
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
863
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
864
    # Reject names that are not valid shell variable names.
563
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565
 
   { (exit 1); exit 1; }; }
566
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
 
    case $ac_option in
568
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
 
      *) ac_optarg=yes ;;
 
865
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
866
      as_fn_error $? "invalid feature name: $ac_useropt"
 
867
    ac_useropt_orig=$ac_useropt
 
868
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
869
    case $ac_user_opts in
 
870
      *"
 
871
"enable_$ac_useropt"
 
872
"*) ;;
 
873
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
874
         ac_unrecognized_sep=', ';;
570
875
    esac
571
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
876
    eval enable_$ac_useropt=\$ac_optarg ;;
572
877
 
573
878
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
879
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
595
900
  -host=* | --host=* | --hos=* | --ho=*)
596
901
    host_alias=$ac_optarg ;;
597
902
 
 
903
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
904
    ac_prev=htmldir ;;
 
905
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
906
  | --ht=*)
 
907
    htmldir=$ac_optarg ;;
 
908
 
598
909
  -includedir | --includedir | --includedi | --included | --include \
599
910
  | --includ | --inclu | --incl | --inc)
600
911
    ac_prev=includedir ;;
619
930
  | --libexe=* | --libex=* | --libe=*)
620
931
    libexecdir=$ac_optarg ;;
621
932
 
 
933
  -localedir | --localedir | --localedi | --localed | --locale)
 
934
    ac_prev=localedir ;;
 
935
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
936
    localedir=$ac_optarg ;;
 
937
 
622
938
  -localstatedir | --localstatedir | --localstatedi | --localstated \
623
 
  | --localstate | --localstat | --localsta | --localst \
624
 
  | --locals | --local | --loca | --loc | --lo)
 
939
  | --localstate | --localstat | --localsta | --localst | --locals)
625
940
    ac_prev=localstatedir ;;
626
941
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
942
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
629
943
    localstatedir=$ac_optarg ;;
630
944
 
631
945
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
690
1004
  | --progr-tra=* | --program-tr=* | --program-t=*)
691
1005
    program_transform_name=$ac_optarg ;;
692
1006
 
 
1007
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1008
    ac_prev=pdfdir ;;
 
1009
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1010
    pdfdir=$ac_optarg ;;
 
1011
 
 
1012
  -psdir | --psdir | --psdi | --psd | --ps)
 
1013
    ac_prev=psdir ;;
 
1014
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1015
    psdir=$ac_optarg ;;
 
1016
 
693
1017
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
1018
  | -silent | --silent | --silen | --sile | --sil)
695
1019
    silent=yes ;;
740
1064
    ac_init_version=: ;;
741
1065
 
742
1066
  -with-* | --with-*)
743
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1067
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
1068
    # Reject names that are not valid shell variable names.
745
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
747
 
   { (exit 1); exit 1; }; }
748
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
749
 
    case $ac_option in
750
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
 
      *) ac_optarg=yes ;;
 
1069
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1070
      as_fn_error $? "invalid package name: $ac_useropt"
 
1071
    ac_useropt_orig=$ac_useropt
 
1072
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1073
    case $ac_user_opts in
 
1074
      *"
 
1075
"with_$ac_useropt"
 
1076
"*) ;;
 
1077
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1078
         ac_unrecognized_sep=', ';;
752
1079
    esac
753
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1080
    eval with_$ac_useropt=\$ac_optarg ;;
754
1081
 
755
1082
  -without-* | --without-*)
756
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1083
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
1084
    # Reject names that are not valid shell variable names.
758
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
760
 
   { (exit 1); exit 1; }; }
761
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
762
 
    eval "with_$ac_package=no" ;;
 
1085
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1086
      as_fn_error $? "invalid package name: $ac_useropt"
 
1087
    ac_useropt_orig=$ac_useropt
 
1088
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1089
    case $ac_user_opts in
 
1090
      *"
 
1091
"with_$ac_useropt"
 
1092
"*) ;;
 
1093
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1094
         ac_unrecognized_sep=', ';;
 
1095
    esac
 
1096
    eval with_$ac_useropt=no ;;
763
1097
 
764
1098
  --x)
765
1099
    # Obsolete; use --with-x.
779
1113
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
1114
    x_libraries=$ac_optarg ;;
781
1115
 
782
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
783
 
Try \`$0 --help' for more information." >&2
784
 
   { (exit 1); exit 1; }; }
 
1116
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1117
Try \`$0 --help' for more information"
785
1118
    ;;
786
1119
 
787
1120
  *=*)
788
1121
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789
1122
    # Reject names that are not valid shell variable names.
790
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792
 
   { (exit 1); exit 1; }; }
793
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794
 
    eval "$ac_envvar='$ac_optarg'"
 
1123
    case $ac_envvar in #(
 
1124
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1125
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1126
    esac
 
1127
    eval $ac_envvar=\$ac_optarg
795
1128
    export $ac_envvar ;;
796
1129
 
797
1130
  *)
798
1131
    # FIXME: should be removed in autoconf 3.0.
799
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1132
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800
1133
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1134
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1135
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
803
1136
    ;;
804
1137
 
805
1138
  esac
807
1140
 
808
1141
if test -n "$ac_prev"; then
809
1142
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
811
 
   { (exit 1); exit 1; }; }
812
 
fi
813
 
 
814
 
# Be sure to have absolute paths.
815
 
for ac_var in exec_prefix prefix
816
 
do
817
 
  eval ac_val=$`echo $ac_var`
818
 
  case $ac_val in
819
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
 
   { (exit 1); exit 1; }; };;
822
 
  esac
823
 
done
824
 
 
825
 
# Be sure to have absolute paths.
826
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827
 
              localstatedir libdir includedir oldincludedir infodir mandir
828
 
do
829
 
  eval ac_val=$`echo $ac_var`
830
 
  case $ac_val in
831
 
    [\\/$]* | ?:[\\/]* ) ;;
832
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833
 
   { (exit 1); exit 1; }; };;
834
 
  esac
 
1143
  as_fn_error $? "missing argument to $ac_option"
 
1144
fi
 
1145
 
 
1146
if test -n "$ac_unrecognized_opts"; then
 
1147
  case $enable_option_checking in
 
1148
    no) ;;
 
1149
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1150
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1151
  esac
 
1152
fi
 
1153
 
 
1154
# Check all directory arguments for consistency.
 
1155
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1156
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1157
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1158
                libdir localedir mandir
 
1159
do
 
1160
  eval ac_val=\$$ac_var
 
1161
  # Remove trailing slashes.
 
1162
  case $ac_val in
 
1163
    */ )
 
1164
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1165
      eval $ac_var=\$ac_val;;
 
1166
  esac
 
1167
  # Be sure to have absolute directory names.
 
1168
  case $ac_val in
 
1169
    [\\/$]* | ?:[\\/]* )  continue;;
 
1170
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1171
  esac
 
1172
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
835
1173
done
836
1174
 
837
1175
# There might be people who depend on the old broken behavior: `$host'
845
1183
if test "x$host_alias" != x; then
846
1184
  if test "x$build_alias" = x; then
847
1185
    cross_compiling=maybe
848
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1186
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1187
    If a cross compiler is detected then cross compile mode will be used" >&2
850
1188
  elif test "x$build_alias" != "x$host_alias"; then
851
1189
    cross_compiling=yes
852
1190
  fi
858
1196
test "$silent" = yes && exec 6>/dev/null
859
1197
 
860
1198
 
 
1199
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1200
ac_ls_di=`ls -di .` &&
 
1201
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1202
  as_fn_error $? "working directory cannot be determined"
 
1203
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1204
  as_fn_error $? "pwd does not report name of working directory"
 
1205
 
 
1206
 
861
1207
# Find the source files, if location was not specified.
862
1208
if test -z "$srcdir"; then
863
1209
  ac_srcdir_defaulted=yes
864
 
  # Try the directory containing this script, then its parent.
865
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
866
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867
 
         X"$0" : 'X\(//\)[^/]' \| \
868
 
         X"$0" : 'X\(//\)$' \| \
869
 
         X"$0" : 'X\(/\)' \| \
870
 
         .     : '\(.\)' 2>/dev/null ||
871
 
echo X"$0" |
872
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
 
          /^X\(\/\/\)$/{ s//\1/; q; }
875
 
          /^X\(\/\).*/{ s//\1/; q; }
876
 
          s/.*/./; q'`
 
1210
  # Try the directory containing this script, then the parent directory.
 
1211
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1212
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1213
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1214
         X"$as_myself" : 'X\(//\)$' \| \
 
1215
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1216
$as_echo X"$as_myself" |
 
1217
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1218
            s//\1/
 
1219
            q
 
1220
          }
 
1221
          /^X\(\/\/\)[^/].*/{
 
1222
            s//\1/
 
1223
            q
 
1224
          }
 
1225
          /^X\(\/\/\)$/{
 
1226
            s//\1/
 
1227
            q
 
1228
          }
 
1229
          /^X\(\/\).*/{
 
1230
            s//\1/
 
1231
            q
 
1232
          }
 
1233
          s/.*/./; q'`
877
1234
  srcdir=$ac_confdir
878
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1235
  if test ! -r "$srcdir/$ac_unique_file"; then
879
1236
    srcdir=..
880
1237
  fi
881
1238
else
882
1239
  ac_srcdir_defaulted=no
883
1240
fi
884
 
if test ! -r $srcdir/$ac_unique_file; then
885
 
  if test "$ac_srcdir_defaulted" = yes; then
886
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
 
   { (exit 1); exit 1; }; }
888
 
  else
889
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
 
   { (exit 1); exit 1; }; }
891
 
  fi
892
 
fi
893
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
 
   { (exit 1); exit 1; }; }
896
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
 
ac_env_build_alias_set=${build_alias+set}
898
 
ac_env_build_alias_value=$build_alias
899
 
ac_cv_env_build_alias_set=${build_alias+set}
900
 
ac_cv_env_build_alias_value=$build_alias
901
 
ac_env_host_alias_set=${host_alias+set}
902
 
ac_env_host_alias_value=$host_alias
903
 
ac_cv_env_host_alias_set=${host_alias+set}
904
 
ac_cv_env_host_alias_value=$host_alias
905
 
ac_env_target_alias_set=${target_alias+set}
906
 
ac_env_target_alias_value=$target_alias
907
 
ac_cv_env_target_alias_set=${target_alias+set}
908
 
ac_cv_env_target_alias_value=$target_alias
909
 
ac_env_CC_set=${CC+set}
910
 
ac_env_CC_value=$CC
911
 
ac_cv_env_CC_set=${CC+set}
912
 
ac_cv_env_CC_value=$CC
913
 
ac_env_CFLAGS_set=${CFLAGS+set}
914
 
ac_env_CFLAGS_value=$CFLAGS
915
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
 
ac_cv_env_CFLAGS_value=$CFLAGS
917
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
 
ac_env_LDFLAGS_value=$LDFLAGS
919
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
 
ac_env_CPPFLAGS_value=$CPPFLAGS
923
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
 
ac_env_CPP_set=${CPP+set}
926
 
ac_env_CPP_value=$CPP
927
 
ac_cv_env_CPP_set=${CPP+set}
928
 
ac_cv_env_CPP_value=$CPP
929
 
ac_env_CXX_set=${CXX+set}
930
 
ac_env_CXX_value=$CXX
931
 
ac_cv_env_CXX_set=${CXX+set}
932
 
ac_cv_env_CXX_value=$CXX
933
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934
 
ac_env_CXXFLAGS_value=$CXXFLAGS
935
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937
 
ac_env_CXXCPP_set=${CXXCPP+set}
938
 
ac_env_CXXCPP_value=$CXXCPP
939
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
 
ac_cv_env_CXXCPP_value=$CXXCPP
941
 
ac_env_F77_set=${F77+set}
942
 
ac_env_F77_value=$F77
943
 
ac_cv_env_F77_set=${F77+set}
944
 
ac_cv_env_F77_value=$F77
945
 
ac_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_env_FFLAGS_value=$FFLAGS
947
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
 
ac_cv_env_FFLAGS_value=$FFLAGS
 
1241
if test ! -r "$srcdir/$ac_unique_file"; then
 
1242
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1243
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1244
fi
 
1245
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1246
ac_abs_confdir=`(
 
1247
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1248
        pwd)`
 
1249
# When building in place, set srcdir=.
 
1250
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1251
  srcdir=.
 
1252
fi
 
1253
# Remove unnecessary trailing slashes from srcdir.
 
1254
# Double slashes in file names in object file debugging info
 
1255
# mess up M-x gdb in Emacs.
 
1256
case $srcdir in
 
1257
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1258
esac
 
1259
for ac_var in $ac_precious_vars; do
 
1260
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1261
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1262
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1263
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1264
done
949
1265
 
950
1266
#
951
1267
# Report the --help message.
954
1270
  # Omit some internal or obsolete options to make the list less imposing.
955
1271
  # This message is too long to be a string in the A/UX 3.1 sh.
956
1272
  cat <<_ACEOF
957
 
\`configure' configures expat 2.0.1 to adapt to many kinds of systems.
 
1273
\`configure' configures expat 2.1.0 to adapt to many kinds of systems.
958
1274
 
959
1275
Usage: $0 [OPTION]... [VAR=VALUE]...
960
1276
 
968
1284
      --help=short        display options specific to this package
969
1285
      --help=recursive    display the short help of all the included packages
970
1286
  -V, --version           display version information and exit
971
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1287
  -q, --quiet, --silent   do not print \`checking ...' messages
972
1288
      --cache-file=FILE   cache test results in FILE [disabled]
973
1289
  -C, --config-cache      alias for \`--cache-file=config.cache'
974
1290
  -n, --no-create         do not create output files
975
1291
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
1292
 
977
 
_ACEOF
978
 
 
979
 
  cat <<_ACEOF
980
1293
Installation directories:
981
1294
  --prefix=PREFIX         install architecture-independent files in PREFIX
982
 
                          [$ac_default_prefix]
 
1295
                          [$ac_default_prefix]
983
1296
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984
 
                          [PREFIX]
 
1297
                          [PREFIX]
985
1298
 
986
1299
By default, \`make install' will install all the files in
987
1300
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
991
1304
For better control, use the options below.
992
1305
 
993
1306
Fine tuning of the installation directories:
994
 
  --bindir=DIR           user executables [EPREFIX/bin]
995
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
997
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1002
 
  --includedir=DIR       C header files [PREFIX/include]
1003
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004
 
  --infodir=DIR          info documentation [PREFIX/info]
1005
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1307
  --bindir=DIR            user executables [EPREFIX/bin]
 
1308
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1309
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1310
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1311
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1312
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1313
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1314
  --includedir=DIR        C header files [PREFIX/include]
 
1315
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1316
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1317
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1318
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1319
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1320
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1321
  --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
 
1322
  --htmldir=DIR           html documentation [DOCDIR]
 
1323
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1324
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1325
  --psdir=DIR             ps documentation [DOCDIR]
1006
1326
_ACEOF
1007
1327
 
1008
1328
  cat <<\_ACEOF
1015
1335
 
1016
1336
if test -n "$ac_init_help"; then
1017
1337
  case $ac_init_help in
1018
 
     short | recursive ) echo "Configuration of expat 2.0.1:";;
 
1338
     short | recursive ) echo "Configuration of expat 2.1.0:";;
1019
1339
   esac
1020
1340
  cat <<\_ACEOF
1021
1341
 
1022
1342
Optional Features:
 
1343
  --disable-option-checking  ignore unrecognized --enable/--with options
1023
1344
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024
1345
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025
 
  --enable-shared[=PKGS]
1026
 
                          build shared libraries [default=yes]
1027
 
  --enable-static[=PKGS]
1028
 
                          build static libraries [default=yes]
 
1346
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1347
  --enable-static[=PKGS]  build static libraries [default=yes]
1029
1348
  --enable-fast-install[=PKGS]
1030
1349
                          optimize for fast installation [default=yes]
1031
1350
  --disable-libtool-lock  avoid locking (might break parallel builds)
1033
1352
Optional Packages:
1034
1353
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035
1354
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037
1355
  --with-pic              try to use only PIC/non-PIC objects [default=use
1038
1356
                          both]
1039
 
  --with-tags[=TAGS]
1040
 
                          include additional configurations [automatic]
 
1357
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1358
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1359
                        (or the compiler's sysroot if not specified).
1041
1360
 
1042
1361
Some influential environment variables:
1043
1362
  CC          C compiler command
1044
1363
  CFLAGS      C compiler flags
1045
1364
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1046
1365
              nonstandard directory <lib dir>
1047
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048
 
              headers in a nonstandard directory <include dir>
 
1366
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1367
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1368
              you have headers in a nonstandard directory <include dir>
1049
1369
  CPP         C preprocessor
1050
1370
  CXX         C++ compiler command
1051
1371
  CXXFLAGS    C++ compiler flags
1052
1372
  CXXCPP      C++ preprocessor
1053
 
  F77         Fortran 77 compiler command
1054
 
  FFLAGS      Fortran 77 compiler flags
1055
1373
 
1056
1374
Use these variables to override the choices made by `configure' or to help
1057
1375
it to find libraries and programs with nonstandard names/locations.
1058
1376
 
1059
1377
Report bugs to <expat-bugs@libexpat.org>.
1060
1378
_ACEOF
 
1379
ac_status=$?
1061
1380
fi
1062
1381
 
1063
1382
if test "$ac_init_help" = "recursive"; then
1064
1383
  # If there are subdirs, report their specific --help.
1065
 
  ac_popdir=`pwd`
1066
1384
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1067
 
    test -d $ac_dir || continue
 
1385
    test -d "$ac_dir" ||
 
1386
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1387
      continue
1068
1388
    ac_builddir=.
1069
1389
 
1070
 
if test "$ac_dir" != .; then
1071
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1072
 
  # A "../" for each directory in $ac_dir_suffix.
1073
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1074
 
else
1075
 
  ac_dir_suffix= ac_top_builddir=
1076
 
fi
 
1390
case "$ac_dir" in
 
1391
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1392
*)
 
1393
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1394
  # A ".." for each directory in $ac_dir_suffix.
 
1395
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1396
  case $ac_top_builddir_sub in
 
1397
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1398
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1399
  esac ;;
 
1400
esac
 
1401
ac_abs_top_builddir=$ac_pwd
 
1402
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1403
# for backward compatibility:
 
1404
ac_top_builddir=$ac_top_build_prefix
1077
1405
 
1078
1406
case $srcdir in
1079
 
  .)  # No --srcdir option.  We are building in place.
 
1407
  .)  # We are building in place.
1080
1408
    ac_srcdir=.
1081
 
    if test -z "$ac_top_builddir"; then
1082
 
       ac_top_srcdir=.
1083
 
    else
1084
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1085
 
    fi ;;
1086
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1409
    ac_top_srcdir=$ac_top_builddir_sub
 
1410
    ac_abs_top_srcdir=$ac_pwd ;;
 
1411
  [\\/]* | ?:[\\/]* )  # Absolute name.
1087
1412
    ac_srcdir=$srcdir$ac_dir_suffix;
1088
 
    ac_top_srcdir=$srcdir ;;
1089
 
  *) # Relative path.
1090
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092
 
esac
1093
 
 
1094
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1095
 
# the directories may not exist.
1096
 
case `pwd` in
1097
 
.) ac_abs_builddir="$ac_dir";;
1098
 
*)
1099
 
  case "$ac_dir" in
1100
 
  .) ac_abs_builddir=`pwd`;;
1101
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1102
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1103
 
  esac;;
1104
 
esac
1105
 
case $ac_abs_builddir in
1106
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1107
 
*)
1108
 
  case ${ac_top_builddir}. in
1109
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1110
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1111
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1112
 
  esac;;
1113
 
esac
1114
 
case $ac_abs_builddir in
1115
 
.) ac_abs_srcdir=$ac_srcdir;;
1116
 
*)
1117
 
  case $ac_srcdir in
1118
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1119
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1120
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1121
 
  esac;;
1122
 
esac
1123
 
case $ac_abs_builddir in
1124
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1125
 
*)
1126
 
  case $ac_top_srcdir in
1127
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1128
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1129
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1130
 
  esac;;
1131
 
esac
1132
 
 
1133
 
    cd $ac_dir
1134
 
    # Check for guested configure; otherwise get Cygnus style configure.
1135
 
    if test -f $ac_srcdir/configure.gnu; then
1136
 
      echo
1137
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1138
 
    elif test -f $ac_srcdir/configure; then
1139
 
      echo
1140
 
      $SHELL $ac_srcdir/configure  --help=recursive
1141
 
    elif test -f $ac_srcdir/configure.ac ||
1142
 
           test -f $ac_srcdir/configure.in; then
1143
 
      echo
1144
 
      $ac_configure --help
 
1413
    ac_top_srcdir=$srcdir
 
1414
    ac_abs_top_srcdir=$srcdir ;;
 
1415
  *) # Relative name.
 
1416
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1417
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1418
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1419
esac
 
1420
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1421
 
 
1422
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1423
    # Check for guested configure.
 
1424
    if test -f "$ac_srcdir/configure.gnu"; then
 
1425
      echo &&
 
1426
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1427
    elif test -f "$ac_srcdir/configure"; then
 
1428
      echo &&
 
1429
      $SHELL "$ac_srcdir/configure" --help=recursive
1145
1430
    else
1146
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1147
 
    fi
1148
 
    cd $ac_popdir
 
1431
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1432
    fi || ac_status=$?
 
1433
    cd "$ac_pwd" || { ac_status=$?; break; }
1149
1434
  done
1150
1435
fi
1151
1436
 
1152
 
test -n "$ac_init_help" && exit 0
 
1437
test -n "$ac_init_help" && exit $ac_status
1153
1438
if $ac_init_version; then
1154
1439
  cat <<\_ACEOF
1155
 
expat configure 2.0.1
1156
 
generated by GNU Autoconf 2.59
 
1440
expat configure 2.1.0
 
1441
generated by GNU Autoconf 2.68
1157
1442
 
1158
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1443
Copyright (C) 2010 Free Software Foundation, Inc.
1159
1444
This configure script is free software; the Free Software Foundation
1160
1445
gives unlimited permission to copy, distribute and modify it.
1161
1446
_ACEOF
1162
 
  exit 0
1163
 
fi
1164
 
exec 5>config.log
1165
 
cat >&5 <<_ACEOF
 
1447
  exit
 
1448
fi
 
1449
 
 
1450
## ------------------------ ##
 
1451
## Autoconf initialization. ##
 
1452
## ------------------------ ##
 
1453
 
 
1454
# ac_fn_c_try_compile LINENO
 
1455
# --------------------------
 
1456
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1457
ac_fn_c_try_compile ()
 
1458
{
 
1459
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1460
  rm -f conftest.$ac_objext
 
1461
  if { { ac_try="$ac_compile"
 
1462
case "(($ac_try" in
 
1463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1464
  *) ac_try_echo=$ac_try;;
 
1465
esac
 
1466
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1467
$as_echo "$ac_try_echo"; } >&5
 
1468
  (eval "$ac_compile") 2>conftest.err
 
1469
  ac_status=$?
 
1470
  if test -s conftest.err; then
 
1471
    grep -v '^ *+' conftest.err >conftest.er1
 
1472
    cat conftest.er1 >&5
 
1473
    mv -f conftest.er1 conftest.err
 
1474
  fi
 
1475
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1476
  test $ac_status = 0; } && {
 
1477
         test -z "$ac_c_werror_flag" ||
 
1478
         test ! -s conftest.err
 
1479
       } && test -s conftest.$ac_objext; then :
 
1480
  ac_retval=0
 
1481
else
 
1482
  $as_echo "$as_me: failed program was:" >&5
 
1483
sed 's/^/| /' conftest.$ac_ext >&5
 
1484
 
 
1485
        ac_retval=1
 
1486
fi
 
1487
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1488
  as_fn_set_status $ac_retval
 
1489
 
 
1490
} # ac_fn_c_try_compile
 
1491
 
 
1492
# ac_fn_c_try_link LINENO
 
1493
# -----------------------
 
1494
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1495
ac_fn_c_try_link ()
 
1496
{
 
1497
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1498
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1499
  if { { ac_try="$ac_link"
 
1500
case "(($ac_try" in
 
1501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1502
  *) ac_try_echo=$ac_try;;
 
1503
esac
 
1504
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1505
$as_echo "$ac_try_echo"; } >&5
 
1506
  (eval "$ac_link") 2>conftest.err
 
1507
  ac_status=$?
 
1508
  if test -s conftest.err; then
 
1509
    grep -v '^ *+' conftest.err >conftest.er1
 
1510
    cat conftest.er1 >&5
 
1511
    mv -f conftest.er1 conftest.err
 
1512
  fi
 
1513
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1514
  test $ac_status = 0; } && {
 
1515
         test -z "$ac_c_werror_flag" ||
 
1516
         test ! -s conftest.err
 
1517
       } && test -s conftest$ac_exeext && {
 
1518
         test "$cross_compiling" = yes ||
 
1519
         $as_test_x conftest$ac_exeext
 
1520
       }; then :
 
1521
  ac_retval=0
 
1522
else
 
1523
  $as_echo "$as_me: failed program was:" >&5
 
1524
sed 's/^/| /' conftest.$ac_ext >&5
 
1525
 
 
1526
        ac_retval=1
 
1527
fi
 
1528
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1529
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1530
  # interfere with the next link command; also delete a directory that is
 
1531
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1532
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1533
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1534
  as_fn_set_status $ac_retval
 
1535
 
 
1536
} # ac_fn_c_try_link
 
1537
 
 
1538
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1539
# -------------------------------------------------------
 
1540
# Tests whether HEADER exists and can be compiled using the include files in
 
1541
# INCLUDES, setting the cache variable VAR accordingly.
 
1542
ac_fn_c_check_header_compile ()
 
1543
{
 
1544
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1545
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1546
$as_echo_n "checking for $2... " >&6; }
 
1547
if eval \${$3+:} false; then :
 
1548
  $as_echo_n "(cached) " >&6
 
1549
else
 
1550
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1551
/* end confdefs.h.  */
 
1552
$4
 
1553
#include <$2>
 
1554
_ACEOF
 
1555
if ac_fn_c_try_compile "$LINENO"; then :
 
1556
  eval "$3=yes"
 
1557
else
 
1558
  eval "$3=no"
 
1559
fi
 
1560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1561
fi
 
1562
eval ac_res=\$$3
 
1563
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1564
$as_echo "$ac_res" >&6; }
 
1565
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1566
 
 
1567
} # ac_fn_c_check_header_compile
 
1568
 
 
1569
# ac_fn_c_try_cpp LINENO
 
1570
# ----------------------
 
1571
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1572
ac_fn_c_try_cpp ()
 
1573
{
 
1574
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1575
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1576
case "(($ac_try" in
 
1577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1578
  *) ac_try_echo=$ac_try;;
 
1579
esac
 
1580
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1581
$as_echo "$ac_try_echo"; } >&5
 
1582
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1583
  ac_status=$?
 
1584
  if test -s conftest.err; then
 
1585
    grep -v '^ *+' conftest.err >conftest.er1
 
1586
    cat conftest.er1 >&5
 
1587
    mv -f conftest.er1 conftest.err
 
1588
  fi
 
1589
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1590
  test $ac_status = 0; } > conftest.i && {
 
1591
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1592
         test ! -s conftest.err
 
1593
       }; then :
 
1594
  ac_retval=0
 
1595
else
 
1596
  $as_echo "$as_me: failed program was:" >&5
 
1597
sed 's/^/| /' conftest.$ac_ext >&5
 
1598
 
 
1599
    ac_retval=1
 
1600
fi
 
1601
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1602
  as_fn_set_status $ac_retval
 
1603
 
 
1604
} # ac_fn_c_try_cpp
 
1605
 
 
1606
# ac_fn_c_try_run LINENO
 
1607
# ----------------------
 
1608
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1609
# that executables *can* be run.
 
1610
ac_fn_c_try_run ()
 
1611
{
 
1612
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1613
  if { { ac_try="$ac_link"
 
1614
case "(($ac_try" in
 
1615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1616
  *) ac_try_echo=$ac_try;;
 
1617
esac
 
1618
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1619
$as_echo "$ac_try_echo"; } >&5
 
1620
  (eval "$ac_link") 2>&5
 
1621
  ac_status=$?
 
1622
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1623
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1624
  { { case "(($ac_try" in
 
1625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1626
  *) ac_try_echo=$ac_try;;
 
1627
esac
 
1628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1629
$as_echo "$ac_try_echo"; } >&5
 
1630
  (eval "$ac_try") 2>&5
 
1631
  ac_status=$?
 
1632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1633
  test $ac_status = 0; }; }; then :
 
1634
  ac_retval=0
 
1635
else
 
1636
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1637
       $as_echo "$as_me: failed program was:" >&5
 
1638
sed 's/^/| /' conftest.$ac_ext >&5
 
1639
 
 
1640
       ac_retval=$ac_status
 
1641
fi
 
1642
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1643
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1644
  as_fn_set_status $ac_retval
 
1645
 
 
1646
} # ac_fn_c_try_run
 
1647
 
 
1648
# ac_fn_c_check_func LINENO FUNC VAR
 
1649
# ----------------------------------
 
1650
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1651
ac_fn_c_check_func ()
 
1652
{
 
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1655
$as_echo_n "checking for $2... " >&6; }
 
1656
if eval \${$3+:} false; then :
 
1657
  $as_echo_n "(cached) " >&6
 
1658
else
 
1659
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1660
/* end confdefs.h.  */
 
1661
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1662
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1663
#define $2 innocuous_$2
 
1664
 
 
1665
/* System header to define __stub macros and hopefully few prototypes,
 
1666
    which can conflict with char $2 (); below.
 
1667
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1668
    <limits.h> exists even on freestanding compilers.  */
 
1669
 
 
1670
#ifdef __STDC__
 
1671
# include <limits.h>
 
1672
#else
 
1673
# include <assert.h>
 
1674
#endif
 
1675
 
 
1676
#undef $2
 
1677
 
 
1678
/* Override any GCC internal prototype to avoid an error.
 
1679
   Use char because int might match the return type of a GCC
 
1680
   builtin and then its argument prototype would still apply.  */
 
1681
#ifdef __cplusplus
 
1682
extern "C"
 
1683
#endif
 
1684
char $2 ();
 
1685
/* The GNU C library defines this for functions which it implements
 
1686
    to always fail with ENOSYS.  Some functions are actually named
 
1687
    something starting with __ and the normal name is an alias.  */
 
1688
#if defined __stub_$2 || defined __stub___$2
 
1689
choke me
 
1690
#endif
 
1691
 
 
1692
int
 
1693
main ()
 
1694
{
 
1695
return $2 ();
 
1696
  ;
 
1697
  return 0;
 
1698
}
 
1699
_ACEOF
 
1700
if ac_fn_c_try_link "$LINENO"; then :
 
1701
  eval "$3=yes"
 
1702
else
 
1703
  eval "$3=no"
 
1704
fi
 
1705
rm -f core conftest.err conftest.$ac_objext \
 
1706
    conftest$ac_exeext conftest.$ac_ext
 
1707
fi
 
1708
eval ac_res=\$$3
 
1709
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1710
$as_echo "$ac_res" >&6; }
 
1711
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1712
 
 
1713
} # ac_fn_c_check_func
 
1714
 
 
1715
# ac_fn_cxx_try_compile LINENO
 
1716
# ----------------------------
 
1717
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1718
ac_fn_cxx_try_compile ()
 
1719
{
 
1720
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1721
  rm -f conftest.$ac_objext
 
1722
  if { { ac_try="$ac_compile"
 
1723
case "(($ac_try" in
 
1724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1725
  *) ac_try_echo=$ac_try;;
 
1726
esac
 
1727
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1728
$as_echo "$ac_try_echo"; } >&5
 
1729
  (eval "$ac_compile") 2>conftest.err
 
1730
  ac_status=$?
 
1731
  if test -s conftest.err; then
 
1732
    grep -v '^ *+' conftest.err >conftest.er1
 
1733
    cat conftest.er1 >&5
 
1734
    mv -f conftest.er1 conftest.err
 
1735
  fi
 
1736
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1737
  test $ac_status = 0; } && {
 
1738
         test -z "$ac_cxx_werror_flag" ||
 
1739
         test ! -s conftest.err
 
1740
       } && test -s conftest.$ac_objext; then :
 
1741
  ac_retval=0
 
1742
else
 
1743
  $as_echo "$as_me: failed program was:" >&5
 
1744
sed 's/^/| /' conftest.$ac_ext >&5
 
1745
 
 
1746
        ac_retval=1
 
1747
fi
 
1748
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1749
  as_fn_set_status $ac_retval
 
1750
 
 
1751
} # ac_fn_cxx_try_compile
 
1752
 
 
1753
# ac_fn_cxx_try_cpp LINENO
 
1754
# ------------------------
 
1755
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1756
ac_fn_cxx_try_cpp ()
 
1757
{
 
1758
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1759
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1760
case "(($ac_try" in
 
1761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1762
  *) ac_try_echo=$ac_try;;
 
1763
esac
 
1764
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1765
$as_echo "$ac_try_echo"; } >&5
 
1766
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1767
  ac_status=$?
 
1768
  if test -s conftest.err; then
 
1769
    grep -v '^ *+' conftest.err >conftest.er1
 
1770
    cat conftest.er1 >&5
 
1771
    mv -f conftest.er1 conftest.err
 
1772
  fi
 
1773
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1774
  test $ac_status = 0; } > conftest.i && {
 
1775
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1776
         test ! -s conftest.err
 
1777
       }; then :
 
1778
  ac_retval=0
 
1779
else
 
1780
  $as_echo "$as_me: failed program was:" >&5
 
1781
sed 's/^/| /' conftest.$ac_ext >&5
 
1782
 
 
1783
    ac_retval=1
 
1784
fi
 
1785
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1786
  as_fn_set_status $ac_retval
 
1787
 
 
1788
} # ac_fn_cxx_try_cpp
 
1789
 
 
1790
# ac_fn_cxx_try_link LINENO
 
1791
# -------------------------
 
1792
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1793
ac_fn_cxx_try_link ()
 
1794
{
 
1795
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1796
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1797
  if { { ac_try="$ac_link"
 
1798
case "(($ac_try" in
 
1799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1800
  *) ac_try_echo=$ac_try;;
 
1801
esac
 
1802
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1803
$as_echo "$ac_try_echo"; } >&5
 
1804
  (eval "$ac_link") 2>conftest.err
 
1805
  ac_status=$?
 
1806
  if test -s conftest.err; then
 
1807
    grep -v '^ *+' conftest.err >conftest.er1
 
1808
    cat conftest.er1 >&5
 
1809
    mv -f conftest.er1 conftest.err
 
1810
  fi
 
1811
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1812
  test $ac_status = 0; } && {
 
1813
         test -z "$ac_cxx_werror_flag" ||
 
1814
         test ! -s conftest.err
 
1815
       } && test -s conftest$ac_exeext && {
 
1816
         test "$cross_compiling" = yes ||
 
1817
         $as_test_x conftest$ac_exeext
 
1818
       }; then :
 
1819
  ac_retval=0
 
1820
else
 
1821
  $as_echo "$as_me: failed program was:" >&5
 
1822
sed 's/^/| /' conftest.$ac_ext >&5
 
1823
 
 
1824
        ac_retval=1
 
1825
fi
 
1826
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1827
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1828
  # interfere with the next link command; also delete a directory that is
 
1829
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1830
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1831
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1832
  as_fn_set_status $ac_retval
 
1833
 
 
1834
} # ac_fn_cxx_try_link
 
1835
 
 
1836
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1837
# -------------------------------------------
 
1838
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1839
# variable VAR accordingly.
 
1840
ac_fn_c_check_type ()
 
1841
{
 
1842
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1843
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1844
$as_echo_n "checking for $2... " >&6; }
 
1845
if eval \${$3+:} false; then :
 
1846
  $as_echo_n "(cached) " >&6
 
1847
else
 
1848
  eval "$3=no"
 
1849
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1850
/* end confdefs.h.  */
 
1851
$4
 
1852
int
 
1853
main ()
 
1854
{
 
1855
if (sizeof ($2))
 
1856
         return 0;
 
1857
  ;
 
1858
  return 0;
 
1859
}
 
1860
_ACEOF
 
1861
if ac_fn_c_try_compile "$LINENO"; then :
 
1862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1863
/* end confdefs.h.  */
 
1864
$4
 
1865
int
 
1866
main ()
 
1867
{
 
1868
if (sizeof (($2)))
 
1869
            return 0;
 
1870
  ;
 
1871
  return 0;
 
1872
}
 
1873
_ACEOF
 
1874
if ac_fn_c_try_compile "$LINENO"; then :
 
1875
 
 
1876
else
 
1877
  eval "$3=yes"
 
1878
fi
 
1879
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1880
fi
 
1881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1882
fi
 
1883
eval ac_res=\$$3
 
1884
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1885
$as_echo "$ac_res" >&6; }
 
1886
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1887
 
 
1888
} # ac_fn_c_check_type
 
1889
 
 
1890
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1891
# -------------------------------------------------------
 
1892
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1893
# the include files in INCLUDES and setting the cache variable VAR
 
1894
# accordingly.
 
1895
ac_fn_c_check_header_mongrel ()
 
1896
{
 
1897
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1898
  if eval \${$3+:} false; then :
 
1899
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1900
$as_echo_n "checking for $2... " >&6; }
 
1901
if eval \${$3+:} false; then :
 
1902
  $as_echo_n "(cached) " >&6
 
1903
fi
 
1904
eval ac_res=\$$3
 
1905
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1906
$as_echo "$ac_res" >&6; }
 
1907
else
 
1908
  # Is the header compilable?
 
1909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1910
$as_echo_n "checking $2 usability... " >&6; }
 
1911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1912
/* end confdefs.h.  */
 
1913
$4
 
1914
#include <$2>
 
1915
_ACEOF
 
1916
if ac_fn_c_try_compile "$LINENO"; then :
 
1917
  ac_header_compiler=yes
 
1918
else
 
1919
  ac_header_compiler=no
 
1920
fi
 
1921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1923
$as_echo "$ac_header_compiler" >&6; }
 
1924
 
 
1925
# Is the header present?
 
1926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1927
$as_echo_n "checking $2 presence... " >&6; }
 
1928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1929
/* end confdefs.h.  */
 
1930
#include <$2>
 
1931
_ACEOF
 
1932
if ac_fn_c_try_cpp "$LINENO"; then :
 
1933
  ac_header_preproc=yes
 
1934
else
 
1935
  ac_header_preproc=no
 
1936
fi
 
1937
rm -f conftest.err conftest.i conftest.$ac_ext
 
1938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1939
$as_echo "$ac_header_preproc" >&6; }
 
1940
 
 
1941
# So?  What about this header?
 
1942
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1943
  yes:no: )
 
1944
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1945
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1946
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1947
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1948
    ;;
 
1949
  no:yes:* )
 
1950
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1951
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1952
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1953
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1954
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1955
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1956
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1957
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1958
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1959
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1960
( $as_echo "## -------------------------------------- ##
 
1961
## Report this to expat-bugs@libexpat.org ##
 
1962
## -------------------------------------- ##"
 
1963
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1964
    ;;
 
1965
esac
 
1966
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1967
$as_echo_n "checking for $2... " >&6; }
 
1968
if eval \${$3+:} false; then :
 
1969
  $as_echo_n "(cached) " >&6
 
1970
else
 
1971
  eval "$3=\$ac_header_compiler"
 
1972
fi
 
1973
eval ac_res=\$$3
 
1974
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1975
$as_echo "$ac_res" >&6; }
 
1976
fi
 
1977
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1978
 
 
1979
} # ac_fn_c_check_header_mongrel
 
1980
cat >config.log <<_ACEOF
1166
1981
This file contains any messages produced by compilers while
1167
1982
running configure, to aid debugging if configure makes a mistake.
1168
1983
 
1169
 
It was created by expat $as_me 2.0.1, which was
1170
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1984
It was created by expat $as_me 2.1.0, which was
 
1985
generated by GNU Autoconf 2.68.  Invocation command line was
1171
1986
 
1172
1987
  $ $0 $@
1173
1988
 
1174
1989
_ACEOF
 
1990
exec 5>>config.log
1175
1991
{
1176
1992
cat <<_ASUNAME
1177
1993
## --------- ##
1190
2006
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1191
2007
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1192
2008
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
2009
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1194
2010
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1195
2011
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1196
2012
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1202
2018
do
1203
2019
  IFS=$as_save_IFS
1204
2020
  test -z "$as_dir" && as_dir=.
1205
 
  echo "PATH: $as_dir"
1206
 
done
 
2021
    $as_echo "PATH: $as_dir"
 
2022
  done
 
2023
IFS=$as_save_IFS
1207
2024
 
1208
2025
} >&5
1209
2026
 
1225
2042
ac_configure_args=
1226
2043
ac_configure_args0=
1227
2044
ac_configure_args1=
1228
 
ac_sep=
1229
2045
ac_must_keep_next=false
1230
2046
for ac_pass in 1 2
1231
2047
do
1236
2052
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237
2053
    | -silent | --silent | --silen | --sile | --sil)
1238
2054
      continue ;;
1239
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2055
    *\'*)
 
2056
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241
2057
    esac
1242
2058
    case $ac_pass in
1243
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2059
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1244
2060
    2)
1245
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2061
      as_fn_append ac_configure_args1 " '$ac_arg'"
1246
2062
      if test $ac_must_keep_next = true; then
1247
2063
        ac_must_keep_next=false # Got value, back to normal.
1248
2064
      else
1258
2074
          -* ) ac_must_keep_next=true ;;
1259
2075
        esac
1260
2076
      fi
1261
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262
 
      # Get rid of the leading space.
1263
 
      ac_sep=" "
 
2077
      as_fn_append ac_configure_args " '$ac_arg'"
1264
2078
      ;;
1265
2079
    esac
1266
2080
  done
1267
2081
done
1268
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2082
{ ac_configure_args0=; unset ac_configure_args0;}
 
2083
{ ac_configure_args1=; unset ac_configure_args1;}
1270
2084
 
1271
2085
# When interrupted or exit'd, cleanup temporary files, and complete
1272
2086
# config.log.  We remove comments because anyway the quotes in there
1273
2087
# would cause problems or look ugly.
1274
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1275
 
# such as our DU 5.0 friend, will then `close' the trap.
 
2088
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2089
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1276
2090
trap 'exit_status=$?
1277
2091
  # Save into config.log some information that might help in debugging.
1278
2092
  {
1279
2093
    echo
1280
2094
 
1281
 
    cat <<\_ASBOX
1282
 
## ---------------- ##
 
2095
    $as_echo "## ---------------- ##
1283
2096
## Cache variables. ##
1284
 
## ---------------- ##
1285
 
_ASBOX
 
2097
## ---------------- ##"
1286
2098
    echo
1287
2099
    # The following way of writing the cache mishandles newlines in values,
1288
 
{
 
2100
(
 
2101
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2102
    eval ac_val=\$$ac_var
 
2103
    case $ac_val in #(
 
2104
    *${as_nl}*)
 
2105
      case $ac_var in #(
 
2106
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2107
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2108
      esac
 
2109
      case $ac_var in #(
 
2110
      _ | IFS | as_nl) ;; #(
 
2111
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2112
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2113
      esac ;;
 
2114
    esac
 
2115
  done
1289
2116
  (set) 2>&1 |
1290
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291
 
    *ac_space=\ *)
 
2117
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2118
    *${as_nl}ac_space=\ *)
1292
2119
      sed -n \
1293
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1295
 
      ;;
 
2120
        "s/'\''/'\''\\\\'\'''\''/g;
 
2121
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2122
      ;; #(
1296
2123
    *)
1297
 
      sed -n \
1298
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2124
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1299
2125
      ;;
1300
 
    esac;
1301
 
}
 
2126
    esac |
 
2127
    sort
 
2128
)
1302
2129
    echo
1303
2130
 
1304
 
    cat <<\_ASBOX
1305
 
## ----------------- ##
 
2131
    $as_echo "## ----------------- ##
1306
2132
## Output variables. ##
1307
 
## ----------------- ##
1308
 
_ASBOX
 
2133
## ----------------- ##"
1309
2134
    echo
1310
2135
    for ac_var in $ac_subst_vars
1311
2136
    do
1312
 
      eval ac_val=$`echo $ac_var`
1313
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
2137
      eval ac_val=\$$ac_var
 
2138
      case $ac_val in
 
2139
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2140
      esac
 
2141
      $as_echo "$ac_var='\''$ac_val'\''"
1314
2142
    done | sort
1315
2143
    echo
1316
2144
 
1317
2145
    if test -n "$ac_subst_files"; then
1318
 
      cat <<\_ASBOX
1319
 
## ------------- ##
1320
 
## Output files. ##
1321
 
## ------------- ##
1322
 
_ASBOX
 
2146
      $as_echo "## ------------------- ##
 
2147
## File substitutions. ##
 
2148
## ------------------- ##"
1323
2149
      echo
1324
2150
      for ac_var in $ac_subst_files
1325
2151
      do
1326
 
        eval ac_val=$`echo $ac_var`
1327
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
2152
        eval ac_val=\$$ac_var
 
2153
        case $ac_val in
 
2154
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2155
        esac
 
2156
        $as_echo "$ac_var='\''$ac_val'\''"
1328
2157
      done | sort
1329
2158
      echo
1330
2159
    fi
1331
2160
 
1332
2161
    if test -s confdefs.h; then
1333
 
      cat <<\_ASBOX
1334
 
## ----------- ##
 
2162
      $as_echo "## ----------- ##
1335
2163
## confdefs.h. ##
1336
 
## ----------- ##
1337
 
_ASBOX
 
2164
## ----------- ##"
1338
2165
      echo
1339
 
      sed "/^$/d" confdefs.h | sort
 
2166
      cat confdefs.h
1340
2167
      echo
1341
2168
    fi
1342
2169
    test "$ac_signal" != 0 &&
1343
 
      echo "$as_me: caught signal $ac_signal"
1344
 
    echo "$as_me: exit $exit_status"
 
2170
      $as_echo "$as_me: caught signal $ac_signal"
 
2171
    $as_echo "$as_me: exit $exit_status"
1345
2172
  } >&5
1346
 
  rm -f core *.core &&
1347
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
2173
  rm -f core *.core core.conftest.* &&
 
2174
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1348
2175
    exit $exit_status
1349
 
     ' 0
 
2176
' 0
1350
2177
for ac_signal in 1 2 13 15; do
1351
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2178
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1352
2179
done
1353
2180
ac_signal=0
1354
2181
 
1355
2182
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1356
 
rm -rf conftest* confdefs.h
1357
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358
 
echo >confdefs.h
 
2183
rm -f -r conftest* confdefs.h
 
2184
 
 
2185
$as_echo "/* confdefs.h */" > confdefs.h
1359
2186
 
1360
2187
# Predefined preprocessor variables.
1361
2188
 
1363
2190
#define PACKAGE_NAME "$PACKAGE_NAME"
1364
2191
_ACEOF
1365
2192
 
1366
 
 
1367
2193
cat >>confdefs.h <<_ACEOF
1368
2194
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369
2195
_ACEOF
1370
2196
 
1371
 
 
1372
2197
cat >>confdefs.h <<_ACEOF
1373
2198
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1374
2199
_ACEOF
1375
2200
 
1376
 
 
1377
2201
cat >>confdefs.h <<_ACEOF
1378
2202
#define PACKAGE_STRING "$PACKAGE_STRING"
1379
2203
_ACEOF
1380
2204
 
1381
 
 
1382
2205
cat >>confdefs.h <<_ACEOF
1383
2206
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384
2207
_ACEOF
1385
2208
 
 
2209
cat >>confdefs.h <<_ACEOF
 
2210
#define PACKAGE_URL "$PACKAGE_URL"
 
2211
_ACEOF
 
2212
 
1386
2213
 
1387
2214
# Let the site file select an alternate cache file if it wants to.
1388
 
# Prefer explicitly selected file to automatically selected ones.
1389
 
if test -z "$CONFIG_SITE"; then
1390
 
  if test "x$prefix" != xNONE; then
1391
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392
 
  else
1393
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1394
 
  fi
 
2215
# Prefer an explicitly selected file to automatically selected ones.
 
2216
ac_site_file1=NONE
 
2217
ac_site_file2=NONE
 
2218
if test -n "$CONFIG_SITE"; then
 
2219
  # We do not want a PATH search for config.site.
 
2220
  case $CONFIG_SITE in #((
 
2221
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2222
    */*) ac_site_file1=$CONFIG_SITE;;
 
2223
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2224
  esac
 
2225
elif test "x$prefix" != xNONE; then
 
2226
  ac_site_file1=$prefix/share/config.site
 
2227
  ac_site_file2=$prefix/etc/config.site
 
2228
else
 
2229
  ac_site_file1=$ac_default_prefix/share/config.site
 
2230
  ac_site_file2=$ac_default_prefix/etc/config.site
1395
2231
fi
1396
 
for ac_site_file in $CONFIG_SITE; do
1397
 
  if test -r "$ac_site_file"; then
1398
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2232
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2233
do
 
2234
  test "x$ac_site_file" = xNONE && continue
 
2235
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2236
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2237
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1400
2238
    sed 's/^/| /' "$ac_site_file" >&5
1401
 
    . "$ac_site_file"
 
2239
    . "$ac_site_file" \
 
2240
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2242
as_fn_error $? "failed to load site script $ac_site_file
 
2243
See \`config.log' for more details" "$LINENO" 5; }
1402
2244
  fi
1403
2245
done
1404
2246
 
1405
2247
if test -r "$cache_file"; then
1406
 
  # Some versions of bash will fail to source /dev/null (special
1407
 
  # files actually), so we avoid doing that.
1408
 
  if test -f "$cache_file"; then
1409
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2248
  # Some versions of bash will fail to source /dev/null (special files
 
2249
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2250
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2251
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2252
$as_echo "$as_me: loading cache $cache_file" >&6;}
1411
2253
    case $cache_file in
1412
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1413
 
      *)                      . ./$cache_file;;
 
2254
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2255
      *)                      . "./$cache_file";;
1414
2256
    esac
1415
2257
  fi
1416
2258
else
1417
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2259
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2260
$as_echo "$as_me: creating cache $cache_file" >&6;}
1419
2261
  >$cache_file
1420
2262
fi
1421
2263
 
 
2264
as_fn_append ac_header_list " stdlib.h"
 
2265
as_fn_append ac_header_list " unistd.h"
 
2266
as_fn_append ac_header_list " sys/param.h"
1422
2267
# Check that the precious variables saved in the cache have kept the same
1423
2268
# value.
1424
2269
ac_cache_corrupted=false
1425
 
for ac_var in `(set) 2>&1 |
1426
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
2270
for ac_var in $ac_precious_vars; do
1427
2271
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428
2272
  eval ac_new_set=\$ac_env_${ac_var}_set
1429
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
2273
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2274
  eval ac_new_val=\$ac_env_${ac_var}_value
1431
2275
  case $ac_old_set,$ac_new_set in
1432
2276
    set,)
1433
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2277
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2278
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435
2279
      ac_cache_corrupted=: ;;
1436
2280
    ,set)
1437
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2281
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2282
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439
2283
      ac_cache_corrupted=: ;;
1440
2284
    ,);;
1441
2285
    *)
1442
2286
      if test "x$ac_old_val" != "x$ac_new_val"; then
1443
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1446
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1447
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1448
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1449
 
        ac_cache_corrupted=:
 
2287
        # differences in whitespace do not lead to failure.
 
2288
        ac_old_val_w=`echo x $ac_old_val`
 
2289
        ac_new_val_w=`echo x $ac_new_val`
 
2290
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2291
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2292
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2293
          ac_cache_corrupted=:
 
2294
        else
 
2295
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2296
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2297
          eval $ac_var=\$ac_old_val
 
2298
        fi
 
2299
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2300
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2301
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2302
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1450
2303
      fi;;
1451
2304
  esac
1452
2305
  # Pass precious variables to config.status.
1453
2306
  if test "$ac_new_set" = set; then
1454
2307
    case $ac_new_val in
1455
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2308
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457
2309
    *) ac_arg=$ac_var=$ac_new_val ;;
1458
2310
    esac
1459
2311
    case " $ac_configure_args " in
1460
2312
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1461
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2313
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1462
2314
    esac
1463
2315
  fi
1464
2316
done
1465
2317
if $ac_cache_corrupted; then
1466
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470
 
   { (exit 1); exit 1; }; }
 
2318
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2320
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2321
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2322
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1471
2323
fi
 
2324
## -------------------- ##
 
2325
## Main body of script. ##
 
2326
## -------------------- ##
1472
2327
 
1473
2328
ac_ext=c
1474
2329
ac_cpp='$CPP $CPPFLAGS'
1480
2335
 
1481
2336
 
1482
2337
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
2338
ac_aux_dir=
1509
 
for ac_dir in conftools $srcdir/conftools; do
1510
 
  if test -f $ac_dir/install-sh; then
 
2339
for ac_dir in conftools "$srcdir"/conftools; do
 
2340
  if test -f "$ac_dir/install-sh"; then
1511
2341
    ac_aux_dir=$ac_dir
1512
2342
    ac_install_sh="$ac_aux_dir/install-sh -c"
1513
2343
    break
1514
 
  elif test -f $ac_dir/install.sh; then
 
2344
  elif test -f "$ac_dir/install.sh"; then
1515
2345
    ac_aux_dir=$ac_dir
1516
2346
    ac_install_sh="$ac_aux_dir/install.sh -c"
1517
2347
    break
1518
 
  elif test -f $ac_dir/shtool; then
 
2348
  elif test -f "$ac_dir/shtool"; then
1519
2349
    ac_aux_dir=$ac_dir
1520
2350
    ac_install_sh="$ac_aux_dir/shtool install -c"
1521
2351
    break
1522
2352
  fi
1523
2353
done
1524
2354
if test -z "$ac_aux_dir"; then
1525
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1526
 
echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1527
 
   { (exit 1); exit 1; }; }
 
2355
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
1528
2356
fi
1529
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
LIBCURRENT=6
1537
 
LIBREVISION=2
1538
 
LIBAGE=5
1539
 
 
1540
 
          ac_config_headers="$ac_config_headers expat_config.h"
1541
 
 
1542
 
 
1543
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1544
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
1545
 
## Free Software Foundation, Inc.
1546
 
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1547
 
##
1548
 
## This file is free software; the Free Software Foundation gives
1549
 
## unlimited permission to copy and/or distribute it, with or without
1550
 
## modifications, as long as this notice is preserved.
1551
 
 
1552
 
# serial 48 AC_PROG_LIBTOOL
1553
 
 
1554
 
 
1555
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1556
 
# -----------------------------------------------------------
1557
 
# If this macro is not defined by Autoconf, define it here.
1558
 
 
1559
 
 
1560
 
 
1561
 
# AC_PROG_LIBTOOL
1562
 
# ---------------
1563
 
# AC_PROG_LIBTOOL
1564
 
 
1565
 
 
1566
 
# _AC_PROG_LIBTOOL
1567
 
# ----------------
1568
 
# _AC_PROG_LIBTOOL
1569
 
 
1570
 
 
1571
 
# AC_LIBTOOL_SETUP
1572
 
# ----------------
1573
 
# AC_LIBTOOL_SETUP
1574
 
 
1575
 
 
1576
 
# _LT_AC_SYS_COMPILER
1577
 
# -------------------
1578
 
# _LT_AC_SYS_COMPILER
1579
 
 
1580
 
 
1581
 
# _LT_CC_BASENAME(CC)
1582
 
# -------------------
1583
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1584
 
 
1585
 
 
1586
 
 
1587
 
# _LT_COMPILER_BOILERPLATE
1588
 
# ------------------------
1589
 
# Check for compiler boilerplate output or warnings with
1590
 
# the simple compiler test code.
1591
 
# _LT_COMPILER_BOILERPLATE
1592
 
 
1593
 
 
1594
 
# _LT_LINKER_BOILERPLATE
1595
 
# ----------------------
1596
 
# Check for linker boilerplate output or warnings with
1597
 
# the simple link test code.
1598
 
# _LT_LINKER_BOILERPLATE
1599
 
 
1600
 
 
1601
 
# _LT_AC_SYS_LIBPATH_AIX
1602
 
# ----------------------
1603
 
# Links a minimal program and checks the executable
1604
 
# for the system default hardcoded library path. In most cases,
1605
 
# this is /usr/lib:/lib, but when the MPI compilers are used
1606
 
# the location of the communication and MPI libs are included too.
1607
 
# If we don't find anything, use the default library path according
1608
 
# to the aix ld manual.
1609
 
# _LT_AC_SYS_LIBPATH_AIX
1610
 
 
1611
 
 
1612
 
# _LT_AC_SHELL_INIT(ARG)
1613
 
# ----------------------
1614
 
# _LT_AC_SHELL_INIT
1615
 
 
1616
 
 
1617
 
# _LT_AC_PROG_ECHO_BACKSLASH
1618
 
# --------------------------
1619
 
# Add some code to the start of the generated configure script which
1620
 
# will find an echo command which doesn't interpret backslashes.
1621
 
# _LT_AC_PROG_ECHO_BACKSLASH
1622
 
 
1623
 
 
1624
 
# _LT_AC_LOCK
1625
 
# -----------
1626
 
# _LT_AC_LOCK
1627
 
 
1628
 
 
1629
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1630
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1631
 
# ----------------------------------------------------------------
1632
 
# Check whether the given compiler option works
1633
 
# AC_LIBTOOL_COMPILER_OPTION
1634
 
 
1635
 
 
1636
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1637
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1638
 
# ------------------------------------------------------------
1639
 
# Check whether the given compiler option works
1640
 
# AC_LIBTOOL_LINKER_OPTION
1641
 
 
1642
 
 
1643
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1644
 
# --------------------------
1645
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1646
 
 
1647
 
 
1648
 
# _LT_AC_CHECK_DLFCN
1649
 
# ------------------
1650
 
# _LT_AC_CHECK_DLFCN
1651
 
 
1652
 
 
1653
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1654
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1655
 
# ---------------------------------------------------------------------
1656
 
# _LT_AC_TRY_DLOPEN_SELF
1657
 
 
1658
 
 
1659
 
# AC_LIBTOOL_DLOPEN_SELF
1660
 
# ----------------------
1661
 
# AC_LIBTOOL_DLOPEN_SELF
1662
 
 
1663
 
 
1664
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1665
 
# ---------------------------------
1666
 
# Check to see if options -c and -o are simultaneously supported by compiler
1667
 
# AC_LIBTOOL_PROG_CC_C_O
1668
 
 
1669
 
 
1670
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1671
 
# -----------------------------------------
1672
 
# Check to see if we can do hard links to lock some files if needed
1673
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1674
 
 
1675
 
 
1676
 
# AC_LIBTOOL_OBJDIR
1677
 
# -----------------
1678
 
# AC_LIBTOOL_OBJDIR
1679
 
 
1680
 
 
1681
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1682
 
# ----------------------------------------------
1683
 
# Check hardcoding attributes.
1684
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1685
 
 
1686
 
 
1687
 
# AC_LIBTOOL_SYS_LIB_STRIP
1688
 
# ------------------------
1689
 
# AC_LIBTOOL_SYS_LIB_STRIP
1690
 
 
1691
 
 
1692
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1693
 
# -----------------------------
1694
 
# PORTME Fill in your ld.so characteristics
1695
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1696
 
 
1697
 
 
1698
 
# _LT_AC_TAGCONFIG
1699
 
# ----------------
1700
 
# _LT_AC_TAGCONFIG
1701
 
 
1702
 
 
1703
 
# AC_LIBTOOL_DLOPEN
1704
 
# -----------------
1705
 
# enable checks for dlopen support
1706
 
# AC_LIBTOOL_DLOPEN
1707
 
 
1708
 
 
1709
 
# AC_LIBTOOL_WIN32_DLL
1710
 
# --------------------
1711
 
# declare package support for building win32 DLLs
1712
 
# AC_LIBTOOL_WIN32_DLL
1713
 
 
1714
 
 
1715
 
# AC_ENABLE_SHARED([DEFAULT])
1716
 
# ---------------------------
1717
 
# implement the --enable-shared flag
1718
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1719
 
# AC_ENABLE_SHARED
1720
 
 
1721
 
 
1722
 
# AC_DISABLE_SHARED
1723
 
# -----------------
1724
 
# set the default shared flag to --disable-shared
1725
 
# AC_DISABLE_SHARED
1726
 
 
1727
 
 
1728
 
# AC_ENABLE_STATIC([DEFAULT])
1729
 
# ---------------------------
1730
 
# implement the --enable-static flag
1731
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1732
 
# AC_ENABLE_STATIC
1733
 
 
1734
 
 
1735
 
# AC_DISABLE_STATIC
1736
 
# -----------------
1737
 
# set the default static flag to --disable-static
1738
 
# AC_DISABLE_STATIC
1739
 
 
1740
 
 
1741
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
1742
 
# ---------------------------------
1743
 
# implement the --enable-fast-install flag
1744
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1745
 
# AC_ENABLE_FAST_INSTALL
1746
 
 
1747
 
 
1748
 
# AC_DISABLE_FAST_INSTALL
1749
 
# -----------------------
1750
 
# set the default to --disable-fast-install
1751
 
# AC_DISABLE_FAST_INSTALL
1752
 
 
1753
 
 
1754
 
# AC_LIBTOOL_PICMODE([MODE])
1755
 
# --------------------------
1756
 
# implement the --with-pic flag
1757
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
1758
 
# AC_LIBTOOL_PICMODE
1759
 
 
1760
 
 
1761
 
# AC_PROG_EGREP
1762
 
# -------------
1763
 
# This is predefined starting with Autoconf 2.54, so this conditional
1764
 
# definition can be removed once we require Autoconf 2.54 or later.
1765
 
 
1766
 
 
1767
 
 
1768
 
# AC_PATH_TOOL_PREFIX
1769
 
# -------------------
1770
 
# find a file program which can recognise shared library
1771
 
# AC_PATH_TOOL_PREFIX
1772
 
 
1773
 
 
1774
 
# AC_PATH_MAGIC
1775
 
# -------------
1776
 
# find a file program which can recognise a shared library
1777
 
# AC_PATH_MAGIC
1778
 
 
1779
 
 
1780
 
# AC_PROG_LD
1781
 
# ----------
1782
 
# find the pathname to the GNU or non-GNU linker
1783
 
# AC_PROG_LD
1784
 
 
1785
 
 
1786
 
# AC_PROG_LD_GNU
1787
 
# --------------
1788
 
# AC_PROG_LD_GNU
1789
 
 
1790
 
 
1791
 
# AC_PROG_LD_RELOAD_FLAG
1792
 
# ----------------------
1793
 
# find reload flag for linker
1794
 
#   -- PORTME Some linkers may need a different reload flag.
1795
 
# AC_PROG_LD_RELOAD_FLAG
1796
 
 
1797
 
 
1798
 
# AC_DEPLIBS_CHECK_METHOD
1799
 
# -----------------------
1800
 
# how to check for library dependencies
1801
 
#  -- PORTME fill in with the dynamic library characteristics
1802
 
# AC_DEPLIBS_CHECK_METHOD
1803
 
 
1804
 
 
1805
 
# AC_PROG_NM
1806
 
# ----------
1807
 
# find the pathname to a BSD-compatible name lister
1808
 
# AC_PROG_NM
1809
 
 
1810
 
 
1811
 
# AC_CHECK_LIBM
1812
 
# -------------
1813
 
# check for math library
1814
 
# AC_CHECK_LIBM
1815
 
 
1816
 
 
1817
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
1818
 
# -----------------------------------
1819
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
1820
 
# LTDLINCL to the include flags for the libltdl header and adds
1821
 
# --enable-ltdl-convenience to the configure arguments.  Note that
1822
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1823
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1824
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1825
 
# (note the single quotes!).  If your package is not flat and you're not
1826
 
# using automake, define top_builddir and top_srcdir appropriately in
1827
 
# the Makefiles.
1828
 
# AC_LIBLTDL_CONVENIENCE
1829
 
 
1830
 
 
1831
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
1832
 
# -----------------------------------
1833
 
# sets LIBLTDL to the link flags for the libltdl installable library and
1834
 
# LTDLINCL to the include flags for the libltdl header and adds
1835
 
# --enable-ltdl-install to the configure arguments.  Note that
1836
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1837
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
1838
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1839
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
1840
 
# flat and you're not using automake, define top_builddir and top_srcdir
1841
 
# appropriately in the Makefiles.
1842
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1843
 
# AC_LIBLTDL_INSTALLABLE
1844
 
 
1845
 
 
1846
 
# AC_LIBTOOL_CXX
1847
 
# --------------
1848
 
# enable support for C++ libraries
1849
 
# AC_LIBTOOL_CXX
1850
 
 
1851
 
 
1852
 
# _LT_AC_LANG_CXX
1853
 
# ---------------
1854
 
# _LT_AC_LANG_CXX
1855
 
 
1856
 
# _LT_AC_PROG_CXXCPP
1857
 
# ------------------
1858
 
# _LT_AC_PROG_CXXCPP
1859
 
 
1860
 
# AC_LIBTOOL_F77
1861
 
# --------------
1862
 
# enable support for Fortran 77 libraries
1863
 
# AC_LIBTOOL_F77
1864
 
 
1865
 
 
1866
 
# _LT_AC_LANG_F77
1867
 
# ---------------
1868
 
# _LT_AC_LANG_F77
1869
 
 
1870
 
 
1871
 
# AC_LIBTOOL_GCJ
1872
 
# --------------
1873
 
# enable support for GCJ libraries
1874
 
# AC_LIBTOOL_GCJ
1875
 
 
1876
 
 
1877
 
# _LT_AC_LANG_GCJ
1878
 
# ---------------
1879
 
# _LT_AC_LANG_GCJ
1880
 
 
1881
 
 
1882
 
# AC_LIBTOOL_RC
1883
 
# -------------
1884
 
# enable support for Windows resource files
1885
 
# AC_LIBTOOL_RC
1886
 
 
1887
 
 
1888
 
# AC_LIBTOOL_LANG_C_CONFIG
1889
 
# ------------------------
1890
 
# Ensure that the configuration vars for the C compiler are
1891
 
# suitably defined.  Those variables are subsequently used by
1892
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1893
 
 
1894
 
# AC_LIBTOOL_LANG_C_CONFIG
1895
 
 
1896
 
 
1897
 
# AC_LIBTOOL_LANG_CXX_CONFIG
1898
 
# --------------------------
1899
 
# Ensure that the configuration vars for the C compiler are
1900
 
# suitably defined.  Those variables are subsequently used by
1901
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1902
 
 
1903
 
# AC_LIBTOOL_LANG_CXX_CONFIG
1904
 
 
1905
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1906
 
# ------------------------------------
1907
 
# Figure out "hidden" library dependencies from verbose
1908
 
# compiler output when linking a shared library.
1909
 
# Parse the compiler output and extract the necessary
1910
 
# objects, libraries and library flags.
1911
 
# AC_LIBTOOL_POSTDEP_PREDEP
1912
 
 
1913
 
# AC_LIBTOOL_LANG_F77_CONFIG
1914
 
# --------------------------
1915
 
# Ensure that the configuration vars for the C compiler are
1916
 
# suitably defined.  Those variables are subsequently used by
1917
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1918
 
 
1919
 
# AC_LIBTOOL_LANG_F77_CONFIG
1920
 
 
1921
 
 
1922
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
1923
 
# --------------------------
1924
 
# Ensure that the configuration vars for the C compiler are
1925
 
# suitably defined.  Those variables are subsequently used by
1926
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1927
 
 
1928
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
1929
 
 
1930
 
 
1931
 
# AC_LIBTOOL_LANG_RC_CONFIG
1932
 
# -------------------------
1933
 
# Ensure that the configuration vars for the Windows resource compiler are
1934
 
# suitably defined.  Those variables are subsequently used by
1935
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1936
 
 
1937
 
# AC_LIBTOOL_LANG_RC_CONFIG
1938
 
 
1939
 
 
1940
 
# AC_LIBTOOL_CONFIG([TAGNAME])
1941
 
# ----------------------------
1942
 
# If TAGNAME is not passed, then create an initial libtool script
1943
 
# with a default configuration from the untagged config vars.  Otherwise
1944
 
# add code to config.status for appending the configuration named by
1945
 
# TAGNAME from the matching tagged config vars.
1946
 
# AC_LIBTOOL_CONFIG
1947
 
 
1948
 
 
1949
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
1950
 
# -------------------------------------------
1951
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
1952
 
 
1953
 
 
1954
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1955
 
# ---------------------------------
1956
 
 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1957
 
 
1958
 
 
1959
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
1960
 
# ---------------------------------------
1961
 
 
1962
 
 
1963
 
 
1964
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
1965
 
# ------------------------------------
1966
 
# See if the linker supports building shared libraries.
1967
 
# AC_LIBTOOL_PROG_LD_SHLIBS
1968
 
 
1969
 
 
1970
 
# _LT_AC_FILE_LTDLL_C
1971
 
# -------------------
1972
 
# Be careful that the start marker always follows a newline.
1973
 
# _LT_AC_FILE_LTDLL_C
1974
 
 
1975
 
 
1976
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
1977
 
# ---------------------------------
1978
 
 
1979
 
 
1980
 
 
1981
 
# old names
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
# This is just to silence aclocal about the macro not being used
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
############################################################
1998
 
# NOTE: This macro has been submitted for inclusion into   #
1999
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
2000
 
#  a released version of Autoconf we should remove this    #
2001
 
#  macro and use it instead.                               #
2002
 
############################################################
2003
 
# LT_AC_PROG_SED
2004
 
# --------------
2005
 
# Check for a fully-functional sed program, that truncates
2006
 
# as few characters as possible.  Prefer GNU sed if found.
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
 
 
2012
 
 
2013
 
 
2014
 
# Check whether --enable-shared or --disable-shared was given.
2015
 
if test "${enable_shared+set}" = set; then
2016
 
  enableval="$enable_shared"
2017
 
  p=${PACKAGE-default}
2018
 
    case $enableval in
2019
 
    yes) enable_shared=yes ;;
2020
 
    no) enable_shared=no ;;
2021
 
    *)
2022
 
      enable_shared=no
2023
 
      # Look at the argument we got.  We use all the common list separators.
2024
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2025
 
      for pkg in $enableval; do
2026
 
        IFS="$lt_save_ifs"
2027
 
        if test "X$pkg" = "X$p"; then
2028
 
          enable_shared=yes
2029
 
        fi
2030
 
      done
2031
 
      IFS="$lt_save_ifs"
2032
 
      ;;
2033
 
    esac
2034
 
else
2035
 
  enable_shared=yes
2036
 
fi;
2037
 
 
2038
 
# Check whether --enable-static or --disable-static was given.
2039
 
if test "${enable_static+set}" = set; then
2040
 
  enableval="$enable_static"
2041
 
  p=${PACKAGE-default}
2042
 
    case $enableval in
2043
 
    yes) enable_static=yes ;;
2044
 
    no) enable_static=no ;;
2045
 
    *)
2046
 
     enable_static=no
2047
 
      # Look at the argument we got.  We use all the common list separators.
2048
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2049
 
      for pkg in $enableval; do
2050
 
        IFS="$lt_save_ifs"
2051
 
        if test "X$pkg" = "X$p"; then
2052
 
          enable_static=yes
2053
 
        fi
2054
 
      done
2055
 
      IFS="$lt_save_ifs"
2056
 
      ;;
2057
 
    esac
2058
 
else
2059
 
  enable_static=yes
2060
 
fi;
2061
 
 
2062
 
# Check whether --enable-fast-install or --disable-fast-install was given.
2063
 
if test "${enable_fast_install+set}" = set; then
2064
 
  enableval="$enable_fast_install"
2065
 
  p=${PACKAGE-default}
2066
 
    case $enableval in
2067
 
    yes) enable_fast_install=yes ;;
2068
 
    no) enable_fast_install=no ;;
2069
 
    *)
2070
 
      enable_fast_install=no
2071
 
      # Look at the argument we got.  We use all the common list separators.
2072
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2073
 
      for pkg in $enableval; do
2074
 
        IFS="$lt_save_ifs"
2075
 
        if test "X$pkg" = "X$p"; then
2076
 
          enable_fast_install=yes
2077
 
        fi
2078
 
      done
2079
 
      IFS="$lt_save_ifs"
2080
 
      ;;
2081
 
    esac
2082
 
else
2083
 
  enable_fast_install=yes
2084
 
fi;
 
2357
 
 
2358
# These three variables are undocumented and unsupported,
 
2359
# and are intended to be withdrawn in a future Autoconf release.
 
2360
# They can cause serious problems if a builder's source tree is in a directory
 
2361
# whose full name contains unusual characters.
 
2362
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2363
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2364
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2365
 
 
2366
 
 
2367
 
 
2368
 
 
2369
 
 
2370
 
 
2371
LIBCURRENT=7
 
2372
LIBREVISION=0
 
2373
LIBAGE=6
 
2374
 
 
2375
ac_config_headers="$ac_config_headers expat_config.h"
 
2376
 
 
2377
 
 
2378
 
 
2379
 
2085
2380
 
2086
2381
# Make sure we can run config.sub.
2087
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2088
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2089
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2090
 
   { (exit 1); exit 1; }; }
 
2382
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2383
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2091
2384
 
2092
 
echo "$as_me:$LINENO: checking build system type" >&5
2093
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2094
 
if test "${ac_cv_build+set}" = set; then
2095
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2386
$as_echo_n "checking build system type... " >&6; }
 
2387
if ${ac_cv_build+:} false; then :
 
2388
  $as_echo_n "(cached) " >&6
2096
2389
else
2097
 
  ac_cv_build_alias=$build_alias
2098
 
test -z "$ac_cv_build_alias" &&
2099
 
  ac_cv_build_alias=`$ac_config_guess`
2100
 
test -z "$ac_cv_build_alias" &&
2101
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103
 
   { (exit 1); exit 1; }; }
2104
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2105
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2106
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2107
 
   { (exit 1); exit 1; }; }
 
2390
  ac_build_alias=$build_alias
 
2391
test "x$ac_build_alias" = x &&
 
2392
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2393
test "x$ac_build_alias" = x &&
 
2394
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2395
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2396
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2108
2397
 
2109
2398
fi
2110
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111
 
echo "${ECHO_T}$ac_cv_build" >&6
 
2399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2400
$as_echo "$ac_cv_build" >&6; }
 
2401
case $ac_cv_build in
 
2402
*-*-*) ;;
 
2403
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2404
esac
2112
2405
build=$ac_cv_build
2113
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2114
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2115
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2116
 
 
2117
 
 
2118
 
echo "$as_me:$LINENO: checking host system type" >&5
2119
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2120
 
if test "${ac_cv_host+set}" = set; then
2121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2122
 
else
2123
 
  ac_cv_host_alias=$host_alias
2124
 
test -z "$ac_cv_host_alias" &&
2125
 
  ac_cv_host_alias=$ac_cv_build_alias
2126
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2127
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2128
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2129
 
   { (exit 1); exit 1; }; }
2130
 
 
2131
 
fi
2132
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133
 
echo "${ECHO_T}$ac_cv_host" >&6
 
2406
ac_save_IFS=$IFS; IFS='-'
 
2407
set x $ac_cv_build
 
2408
shift
 
2409
build_cpu=$1
 
2410
build_vendor=$2
 
2411
shift; shift
 
2412
# Remember, the first character of IFS is used to create $*,
 
2413
# except with old shells:
 
2414
build_os=$*
 
2415
IFS=$ac_save_IFS
 
2416
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2417
 
 
2418
 
 
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2420
$as_echo_n "checking host system type... " >&6; }
 
2421
if ${ac_cv_host+:} false; then :
 
2422
  $as_echo_n "(cached) " >&6
 
2423
else
 
2424
  if test "x$host_alias" = x; then
 
2425
  ac_cv_host=$ac_cv_build
 
2426
else
 
2427
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2428
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2429
fi
 
2430
 
 
2431
fi
 
2432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2433
$as_echo "$ac_cv_host" >&6; }
 
2434
case $ac_cv_host in
 
2435
*-*-*) ;;
 
2436
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2437
esac
2134
2438
host=$ac_cv_host
2135
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2136
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2137
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2439
ac_save_IFS=$IFS; IFS='-'
 
2440
set x $ac_cv_host
 
2441
shift
 
2442
host_cpu=$1
 
2443
host_vendor=$2
 
2444
shift; shift
 
2445
# Remember, the first character of IFS is used to create $*,
 
2446
# except with old shells:
 
2447
host_os=$*
 
2448
IFS=$ac_save_IFS
 
2449
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2450
 
 
2451
 
 
2452
enable_win32_dll=yes
 
2453
 
 
2454
case $host in
 
2455
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
2456
  if test -n "$ac_tool_prefix"; then
 
2457
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
2458
set dummy ${ac_tool_prefix}as; ac_word=$2
 
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2460
$as_echo_n "checking for $ac_word... " >&6; }
 
2461
if ${ac_cv_prog_AS+:} false; then :
 
2462
  $as_echo_n "(cached) " >&6
 
2463
else
 
2464
  if test -n "$AS"; then
 
2465
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
2466
else
 
2467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2468
for as_dir in $PATH
 
2469
do
 
2470
  IFS=$as_save_IFS
 
2471
  test -z "$as_dir" && as_dir=.
 
2472
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2474
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
2475
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2476
    break 2
 
2477
  fi
 
2478
done
 
2479
  done
 
2480
IFS=$as_save_IFS
 
2481
 
 
2482
fi
 
2483
fi
 
2484
AS=$ac_cv_prog_AS
 
2485
if test -n "$AS"; then
 
2486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
2487
$as_echo "$AS" >&6; }
 
2488
else
 
2489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2490
$as_echo "no" >&6; }
 
2491
fi
 
2492
 
 
2493
 
 
2494
fi
 
2495
if test -z "$ac_cv_prog_AS"; then
 
2496
  ac_ct_AS=$AS
 
2497
  # Extract the first word of "as", so it can be a program name with args.
 
2498
set dummy as; ac_word=$2
 
2499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2500
$as_echo_n "checking for $ac_word... " >&6; }
 
2501
if ${ac_cv_prog_ac_ct_AS+:} false; then :
 
2502
  $as_echo_n "(cached) " >&6
 
2503
else
 
2504
  if test -n "$ac_ct_AS"; then
 
2505
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
2506
else
 
2507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2508
for as_dir in $PATH
 
2509
do
 
2510
  IFS=$as_save_IFS
 
2511
  test -z "$as_dir" && as_dir=.
 
2512
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2513
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2514
    ac_cv_prog_ac_ct_AS="as"
 
2515
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2516
    break 2
 
2517
  fi
 
2518
done
 
2519
  done
 
2520
IFS=$as_save_IFS
 
2521
 
 
2522
fi
 
2523
fi
 
2524
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
2525
if test -n "$ac_ct_AS"; then
 
2526
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
2527
$as_echo "$ac_ct_AS" >&6; }
 
2528
else
 
2529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2530
$as_echo "no" >&6; }
 
2531
fi
 
2532
 
 
2533
  if test "x$ac_ct_AS" = x; then
 
2534
    AS="false"
 
2535
  else
 
2536
    case $cross_compiling:$ac_tool_warned in
 
2537
yes:)
 
2538
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2539
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2540
ac_tool_warned=yes ;;
 
2541
esac
 
2542
    AS=$ac_ct_AS
 
2543
  fi
 
2544
else
 
2545
  AS="$ac_cv_prog_AS"
 
2546
fi
 
2547
 
 
2548
  if test -n "$ac_tool_prefix"; then
 
2549
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
2550
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
2551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2552
$as_echo_n "checking for $ac_word... " >&6; }
 
2553
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
2554
  $as_echo_n "(cached) " >&6
 
2555
else
 
2556
  if test -n "$DLLTOOL"; then
 
2557
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
2558
else
 
2559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2560
for as_dir in $PATH
 
2561
do
 
2562
  IFS=$as_save_IFS
 
2563
  test -z "$as_dir" && as_dir=.
 
2564
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2566
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
2567
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2568
    break 2
 
2569
  fi
 
2570
done
 
2571
  done
 
2572
IFS=$as_save_IFS
 
2573
 
 
2574
fi
 
2575
fi
 
2576
DLLTOOL=$ac_cv_prog_DLLTOOL
 
2577
if test -n "$DLLTOOL"; then
 
2578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
2579
$as_echo "$DLLTOOL" >&6; }
 
2580
else
 
2581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2582
$as_echo "no" >&6; }
 
2583
fi
 
2584
 
 
2585
 
 
2586
fi
 
2587
if test -z "$ac_cv_prog_DLLTOOL"; then
 
2588
  ac_ct_DLLTOOL=$DLLTOOL
 
2589
  # Extract the first word of "dlltool", so it can be a program name with args.
 
2590
set dummy dlltool; ac_word=$2
 
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2592
$as_echo_n "checking for $ac_word... " >&6; }
 
2593
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
2594
  $as_echo_n "(cached) " >&6
 
2595
else
 
2596
  if test -n "$ac_ct_DLLTOOL"; then
 
2597
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
2598
else
 
2599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2600
for as_dir in $PATH
 
2601
do
 
2602
  IFS=$as_save_IFS
 
2603
  test -z "$as_dir" && as_dir=.
 
2604
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2605
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2606
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
2607
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2608
    break 2
 
2609
  fi
 
2610
done
 
2611
  done
 
2612
IFS=$as_save_IFS
 
2613
 
 
2614
fi
 
2615
fi
 
2616
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
2617
if test -n "$ac_ct_DLLTOOL"; then
 
2618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
2619
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
2620
else
 
2621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2622
$as_echo "no" >&6; }
 
2623
fi
 
2624
 
 
2625
  if test "x$ac_ct_DLLTOOL" = x; then
 
2626
    DLLTOOL="false"
 
2627
  else
 
2628
    case $cross_compiling:$ac_tool_warned in
 
2629
yes:)
 
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2632
ac_tool_warned=yes ;;
 
2633
esac
 
2634
    DLLTOOL=$ac_ct_DLLTOOL
 
2635
  fi
 
2636
else
 
2637
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
2638
fi
 
2639
 
 
2640
  if test -n "$ac_tool_prefix"; then
 
2641
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
2642
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
2643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2644
$as_echo_n "checking for $ac_word... " >&6; }
 
2645
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
2646
  $as_echo_n "(cached) " >&6
 
2647
else
 
2648
  if test -n "$OBJDUMP"; then
 
2649
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
2650
else
 
2651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2652
for as_dir in $PATH
 
2653
do
 
2654
  IFS=$as_save_IFS
 
2655
  test -z "$as_dir" && as_dir=.
 
2656
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2658
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
2659
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2660
    break 2
 
2661
  fi
 
2662
done
 
2663
  done
 
2664
IFS=$as_save_IFS
 
2665
 
 
2666
fi
 
2667
fi
 
2668
OBJDUMP=$ac_cv_prog_OBJDUMP
 
2669
if test -n "$OBJDUMP"; then
 
2670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
2671
$as_echo "$OBJDUMP" >&6; }
 
2672
else
 
2673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2674
$as_echo "no" >&6; }
 
2675
fi
 
2676
 
 
2677
 
 
2678
fi
 
2679
if test -z "$ac_cv_prog_OBJDUMP"; then
 
2680
  ac_ct_OBJDUMP=$OBJDUMP
 
2681
  # Extract the first word of "objdump", so it can be a program name with args.
 
2682
set dummy objdump; ac_word=$2
 
2683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2684
$as_echo_n "checking for $ac_word... " >&6; }
 
2685
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
2686
  $as_echo_n "(cached) " >&6
 
2687
else
 
2688
  if test -n "$ac_ct_OBJDUMP"; then
 
2689
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
2690
else
 
2691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2692
for as_dir in $PATH
 
2693
do
 
2694
  IFS=$as_save_IFS
 
2695
  test -z "$as_dir" && as_dir=.
 
2696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2698
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
2699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2700
    break 2
 
2701
  fi
 
2702
done
 
2703
  done
 
2704
IFS=$as_save_IFS
 
2705
 
 
2706
fi
 
2707
fi
 
2708
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
2709
if test -n "$ac_ct_OBJDUMP"; then
 
2710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
2711
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
2712
else
 
2713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2714
$as_echo "no" >&6; }
 
2715
fi
 
2716
 
 
2717
  if test "x$ac_ct_OBJDUMP" = x; then
 
2718
    OBJDUMP="false"
 
2719
  else
 
2720
    case $cross_compiling:$ac_tool_warned in
 
2721
yes:)
 
2722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2724
ac_tool_warned=yes ;;
 
2725
esac
 
2726
    OBJDUMP=$ac_ct_OBJDUMP
 
2727
  fi
 
2728
else
 
2729
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
2730
fi
 
2731
 
 
2732
  ;;
 
2733
esac
 
2734
 
 
2735
test -z "$AS" && AS=as
 
2736
 
 
2737
 
 
2738
 
 
2739
 
 
2740
 
 
2741
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
2742
 
 
2743
 
 
2744
 
 
2745
 
 
2746
 
 
2747
test -z "$OBJDUMP" && OBJDUMP=objdump
 
2748
 
 
2749
 
 
2750
 
 
2751
 
 
2752
 
 
2753
 
 
2754
 
 
2755
case `pwd` in
 
2756
  *\ * | *\     *)
 
2757
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2758
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2759
esac
 
2760
 
 
2761
 
 
2762
 
 
2763
macro_version='2.4'
 
2764
macro_revision='1.3293'
 
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
 
 
2770
 
 
2771
 
 
2772
 
 
2773
 
 
2774
 
 
2775
 
 
2776
 
 
2777
 
 
2778
ltmain="$ac_aux_dir/ltmain.sh"
 
2779
 
 
2780
# Backslashify metacharacters that are still active within
 
2781
# double-quoted strings.
 
2782
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
2783
 
 
2784
# Same as above, but do not quote variable references.
 
2785
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
2786
 
 
2787
# Sed substitution to delay expansion of an escaped shell variable in a
 
2788
# double_quote_subst'ed string.
 
2789
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
2790
 
 
2791
# Sed substitution to delay expansion of an escaped single quote.
 
2792
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
2793
 
 
2794
# Sed substitution to avoid accidental globbing in evaled expressions
 
2795
no_glob_subst='s/\*/\\\*/g'
 
2796
 
 
2797
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2798
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2799
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2800
 
 
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
2802
$as_echo_n "checking how to print strings... " >&6; }
 
2803
# Test print first, because it will be a builtin if present.
 
2804
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2805
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2806
  ECHO='print -r --'
 
2807
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2808
  ECHO='printf %s\n'
 
2809
else
 
2810
  # Use this function as a fallback that always works.
 
2811
  func_fallback_echo ()
 
2812
  {
 
2813
    eval 'cat <<_LTECHO_EOF
 
2814
$1
 
2815
_LTECHO_EOF'
 
2816
  }
 
2817
  ECHO='func_fallback_echo'
 
2818
fi
 
2819
 
 
2820
# func_echo_all arg...
 
2821
# Invoke $ECHO with all args, space-separated.
 
2822
func_echo_all ()
 
2823
{
 
2824
    $ECHO ""
 
2825
}
 
2826
 
 
2827
case "$ECHO" in
 
2828
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
2829
$as_echo "printf" >&6; } ;;
 
2830
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
2831
$as_echo "print -r" >&6; } ;;
 
2832
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
2833
$as_echo "cat" >&6; } ;;
 
2834
esac
 
2835
 
 
2836
 
 
2837
 
 
2838
 
 
2839
 
 
2840
 
 
2841
 
 
2842
 
 
2843
 
 
2844
 
 
2845
 
 
2846
 
2138
2847
 
2139
2848
 
2140
2849
ac_ext=c
2145
2854
if test -n "$ac_tool_prefix"; then
2146
2855
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147
2856
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2149
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150
 
if test "${ac_cv_prog_CC+set}" = set; then
2151
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2858
$as_echo_n "checking for $ac_word... " >&6; }
 
2859
if ${ac_cv_prog_CC+:} false; then :
 
2860
  $as_echo_n "(cached) " >&6
2152
2861
else
2153
2862
  if test -n "$CC"; then
2154
2863
  ac_cv_prog_CC="$CC" # Let the user override the test.
2158
2867
do
2159
2868
  IFS=$as_save_IFS
2160
2869
  test -z "$as_dir" && as_dir=.
2161
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2162
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2870
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2871
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163
2872
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2873
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2165
2874
    break 2
2166
2875
  fi
2167
2876
done
2168
 
done
 
2877
  done
 
2878
IFS=$as_save_IFS
2169
2879
 
2170
2880
fi
2171
2881
fi
2172
2882
CC=$ac_cv_prog_CC
2173
2883
if test -n "$CC"; then
2174
 
  echo "$as_me:$LINENO: result: $CC" >&5
2175
 
echo "${ECHO_T}$CC" >&6
 
2884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2885
$as_echo "$CC" >&6; }
2176
2886
else
2177
 
  echo "$as_me:$LINENO: result: no" >&5
2178
 
echo "${ECHO_T}no" >&6
 
2887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2888
$as_echo "no" >&6; }
2179
2889
fi
 
2890
 
2180
2891
 
2181
2892
fi
2182
2893
if test -z "$ac_cv_prog_CC"; then
2183
2894
  ac_ct_CC=$CC
2184
2895
  # Extract the first word of "gcc", so it can be a program name with args.
2185
2896
set dummy gcc; ac_word=$2
2186
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2187
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2898
$as_echo_n "checking for $ac_word... " >&6; }
 
2899
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2900
  $as_echo_n "(cached) " >&6
2190
2901
else
2191
2902
  if test -n "$ac_ct_CC"; then
2192
2903
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196
2907
do
2197
2908
  IFS=$as_save_IFS
2198
2909
  test -z "$as_dir" && as_dir=.
2199
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2200
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2910
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2911
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201
2912
    ac_cv_prog_ac_ct_CC="gcc"
2202
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2913
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2203
2914
    break 2
2204
2915
  fi
2205
2916
done
2206
 
done
 
2917
  done
 
2918
IFS=$as_save_IFS
2207
2919
 
2208
2920
fi
2209
2921
fi
2210
2922
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211
2923
if test -n "$ac_ct_CC"; then
2212
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2925
$as_echo "$ac_ct_CC" >&6; }
2214
2926
else
2215
 
  echo "$as_me:$LINENO: result: no" >&5
2216
 
echo "${ECHO_T}no" >&6
 
2927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2928
$as_echo "no" >&6; }
2217
2929
fi
2218
2930
 
2219
 
  CC=$ac_ct_CC
 
2931
  if test "x$ac_ct_CC" = x; then
 
2932
    CC=""
 
2933
  else
 
2934
    case $cross_compiling:$ac_tool_warned in
 
2935
yes:)
 
2936
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2937
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2938
ac_tool_warned=yes ;;
 
2939
esac
 
2940
    CC=$ac_ct_CC
 
2941
  fi
2220
2942
else
2221
2943
  CC="$ac_cv_prog_CC"
2222
2944
fi
2223
2945
 
2224
2946
if test -z "$CC"; then
2225
 
  if test -n "$ac_tool_prefix"; then
2226
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2947
          if test -n "$ac_tool_prefix"; then
 
2948
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227
2949
set dummy ${ac_tool_prefix}cc; ac_word=$2
2228
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2229
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230
 
if test "${ac_cv_prog_CC+set}" = set; then
2231
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2951
$as_echo_n "checking for $ac_word... " >&6; }
 
2952
if ${ac_cv_prog_CC+:} false; then :
 
2953
  $as_echo_n "(cached) " >&6
2232
2954
else
2233
2955
  if test -n "$CC"; then
2234
2956
  ac_cv_prog_CC="$CC" # Let the user override the test.
2238
2960
do
2239
2961
  IFS=$as_save_IFS
2240
2962
  test -z "$as_dir" && as_dir=.
2241
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2242
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2963
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2964
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243
2965
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2244
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2966
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2245
2967
    break 2
2246
2968
  fi
2247
2969
done
2248
 
done
 
2970
  done
 
2971
IFS=$as_save_IFS
2249
2972
 
2250
2973
fi
2251
2974
fi
2252
2975
CC=$ac_cv_prog_CC
2253
2976
if test -n "$CC"; then
2254
 
  echo "$as_me:$LINENO: result: $CC" >&5
2255
 
echo "${ECHO_T}$CC" >&6
2256
 
else
2257
 
  echo "$as_me:$LINENO: result: no" >&5
2258
 
echo "${ECHO_T}no" >&6
2259
 
fi
2260
 
 
2261
 
fi
2262
 
if test -z "$ac_cv_prog_CC"; then
2263
 
  ac_ct_CC=$CC
2264
 
  # Extract the first word of "cc", so it can be a program name with args.
2265
 
set dummy cc; ac_word=$2
2266
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2267
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2270
 
else
2271
 
  if test -n "$ac_ct_CC"; then
2272
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273
 
else
2274
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275
 
for as_dir in $PATH
2276
 
do
2277
 
  IFS=$as_save_IFS
2278
 
  test -z "$as_dir" && as_dir=.
2279
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2280
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281
 
    ac_cv_prog_ac_ct_CC="cc"
2282
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283
 
    break 2
 
2977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2978
$as_echo "$CC" >&6; }
 
2979
else
 
2980
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2981
$as_echo "no" >&6; }
 
2982
fi
 
2983
 
 
2984
 
2284
2985
  fi
2285
 
done
2286
 
done
2287
 
 
2288
 
fi
2289
 
fi
2290
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291
 
if test -n "$ac_ct_CC"; then
2292
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293
 
echo "${ECHO_T}$ac_ct_CC" >&6
2294
 
else
2295
 
  echo "$as_me:$LINENO: result: no" >&5
2296
 
echo "${ECHO_T}no" >&6
2297
 
fi
2298
 
 
2299
 
  CC=$ac_ct_CC
2300
 
else
2301
 
  CC="$ac_cv_prog_CC"
2302
 
fi
2303
 
 
2304
2986
fi
2305
2987
if test -z "$CC"; then
2306
2988
  # Extract the first word of "cc", so it can be a program name with args.
2307
2989
set dummy cc; ac_word=$2
2308
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2309
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310
 
if test "${ac_cv_prog_CC+set}" = set; then
2311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2991
$as_echo_n "checking for $ac_word... " >&6; }
 
2992
if ${ac_cv_prog_CC+:} false; then :
 
2993
  $as_echo_n "(cached) " >&6
2312
2994
else
2313
2995
  if test -n "$CC"; then
2314
2996
  ac_cv_prog_CC="$CC" # Let the user override the test.
2319
3001
do
2320
3002
  IFS=$as_save_IFS
2321
3003
  test -z "$as_dir" && as_dir=.
2322
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2323
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3004
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3005
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324
3006
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325
3007
       ac_prog_rejected=yes
2326
3008
       continue
2327
3009
     fi
2328
3010
    ac_cv_prog_CC="cc"
2329
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330
3012
    break 2
2331
3013
  fi
2332
3014
done
2333
 
done
 
3015
  done
 
3016
IFS=$as_save_IFS
2334
3017
 
2335
3018
if test $ac_prog_rejected = yes; then
2336
3019
  # We found a bogon in the path, so make sure we never use it.
2348
3031
fi
2349
3032
CC=$ac_cv_prog_CC
2350
3033
if test -n "$CC"; then
2351
 
  echo "$as_me:$LINENO: result: $CC" >&5
2352
 
echo "${ECHO_T}$CC" >&6
 
3034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3035
$as_echo "$CC" >&6; }
2353
3036
else
2354
 
  echo "$as_me:$LINENO: result: no" >&5
2355
 
echo "${ECHO_T}no" >&6
 
3037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3038
$as_echo "no" >&6; }
2356
3039
fi
 
3040
 
2357
3041
 
2358
3042
fi
2359
3043
if test -z "$CC"; then
2360
3044
  if test -n "$ac_tool_prefix"; then
2361
 
  for ac_prog in cl
 
3045
  for ac_prog in cl.exe
2362
3046
  do
2363
3047
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364
3048
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2366
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367
 
if test "${ac_cv_prog_CC+set}" = set; then
2368
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3050
$as_echo_n "checking for $ac_word... " >&6; }
 
3051
if ${ac_cv_prog_CC+:} false; then :
 
3052
  $as_echo_n "(cached) " >&6
2369
3053
else
2370
3054
  if test -n "$CC"; then
2371
3055
  ac_cv_prog_CC="$CC" # Let the user override the test.
2375
3059
do
2376
3060
  IFS=$as_save_IFS
2377
3061
  test -z "$as_dir" && as_dir=.
2378
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2379
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3062
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3063
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380
3064
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382
3066
    break 2
2383
3067
  fi
2384
3068
done
2385
 
done
 
3069
  done
 
3070
IFS=$as_save_IFS
2386
3071
 
2387
3072
fi
2388
3073
fi
2389
3074
CC=$ac_cv_prog_CC
2390
3075
if test -n "$CC"; then
2391
 
  echo "$as_me:$LINENO: result: $CC" >&5
2392
 
echo "${ECHO_T}$CC" >&6
 
3076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3077
$as_echo "$CC" >&6; }
2393
3078
else
2394
 
  echo "$as_me:$LINENO: result: no" >&5
2395
 
echo "${ECHO_T}no" >&6
 
3079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3080
$as_echo "no" >&6; }
2396
3081
fi
2397
3082
 
 
3083
 
2398
3084
    test -n "$CC" && break
2399
3085
  done
2400
3086
fi
2401
3087
if test -z "$CC"; then
2402
3088
  ac_ct_CC=$CC
2403
 
  for ac_prog in cl
 
3089
  for ac_prog in cl.exe
2404
3090
do
2405
3091
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2406
3092
set dummy $ac_prog; ac_word=$2
2407
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2408
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3094
$as_echo_n "checking for $ac_word... " >&6; }
 
3095
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3096
  $as_echo_n "(cached) " >&6
2411
3097
else
2412
3098
  if test -n "$ac_ct_CC"; then
2413
3099
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417
3103
do
2418
3104
  IFS=$as_save_IFS
2419
3105
  test -z "$as_dir" && as_dir=.
2420
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2421
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3106
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422
3108
    ac_cv_prog_ac_ct_CC="$ac_prog"
2423
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3109
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424
3110
    break 2
2425
3111
  fi
2426
3112
done
2427
 
done
 
3113
  done
 
3114
IFS=$as_save_IFS
2428
3115
 
2429
3116
fi
2430
3117
fi
2431
3118
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432
3119
if test -n "$ac_ct_CC"; then
2433
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3121
$as_echo "$ac_ct_CC" >&6; }
2435
3122
else
2436
 
  echo "$as_me:$LINENO: result: no" >&5
2437
 
echo "${ECHO_T}no" >&6
 
3123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3124
$as_echo "no" >&6; }
2438
3125
fi
2439
3126
 
 
3127
 
2440
3128
  test -n "$ac_ct_CC" && break
2441
3129
done
2442
3130
 
2443
 
  CC=$ac_ct_CC
2444
 
fi
2445
 
 
2446
 
fi
2447
 
 
2448
 
 
2449
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2450
 
See \`config.log' for more details." >&5
2451
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2452
 
See \`config.log' for more details." >&2;}
2453
 
   { (exit 1); exit 1; }; }
 
3131
  if test "x$ac_ct_CC" = x; then
 
3132
    CC=""
 
3133
  else
 
3134
    case $cross_compiling:$ac_tool_warned in
 
3135
yes:)
 
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3138
ac_tool_warned=yes ;;
 
3139
esac
 
3140
    CC=$ac_ct_CC
 
3141
  fi
 
3142
fi
 
3143
 
 
3144
fi
 
3145
 
 
3146
 
 
3147
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3149
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3150
See \`config.log' for more details" "$LINENO" 5; }
2454
3151
 
2455
3152
# Provide some information about the compiler.
2456
 
echo "$as_me:$LINENO:" \
2457
 
     "checking for C compiler version" >&5
2458
 
ac_compiler=`set X $ac_compile; echo $2`
2459
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2460
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2461
 
  ac_status=$?
2462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463
 
  (exit $ac_status); }
2464
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2465
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2466
 
  ac_status=$?
2467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
 
  (exit $ac_status); }
2469
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2470
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2471
 
  ac_status=$?
2472
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473
 
  (exit $ac_status); }
 
3153
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3154
set X $ac_compile
 
3155
ac_compiler=$2
 
3156
for ac_option in --version -v -V -qversion; do
 
3157
  { { ac_try="$ac_compiler $ac_option >&5"
 
3158
case "(($ac_try" in
 
3159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3160
  *) ac_try_echo=$ac_try;;
 
3161
esac
 
3162
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3163
$as_echo "$ac_try_echo"; } >&5
 
3164
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3165
  ac_status=$?
 
3166
  if test -s conftest.err; then
 
3167
    sed '10a\
 
3168
... rest of stderr output deleted ...
 
3169
         10q' conftest.err >conftest.er1
 
3170
    cat conftest.er1 >&5
 
3171
  fi
 
3172
  rm -f conftest.er1 conftest.err
 
3173
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3174
  test $ac_status = 0; }
 
3175
done
2474
3176
 
2475
 
cat >conftest.$ac_ext <<_ACEOF
2476
 
/* confdefs.h.  */
2477
 
_ACEOF
2478
 
cat confdefs.h >>conftest.$ac_ext
2479
 
cat >>conftest.$ac_ext <<_ACEOF
 
3177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480
3178
/* end confdefs.h.  */
2481
3179
 
2482
3180
int
2488
3186
}
2489
3187
_ACEOF
2490
3188
ac_clean_files_save=$ac_clean_files
2491
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3189
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2492
3190
# Try to create an executable without -o first, disregard a.out.
2493
3191
# It will help us diagnose broken compilers, and finding out an intuition
2494
3192
# of exeext.
2495
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2497
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2498
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2499
 
  (eval $ac_link_default) 2>&5
 
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3194
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3195
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3196
 
 
3197
# The possible output files:
 
3198
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3199
 
 
3200
ac_rmfiles=
 
3201
for ac_file in $ac_files
 
3202
do
 
3203
  case $ac_file in
 
3204
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3205
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3206
  esac
 
3207
done
 
3208
rm -f $ac_rmfiles
 
3209
 
 
3210
if { { ac_try="$ac_link_default"
 
3211
case "(($ac_try" in
 
3212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3213
  *) ac_try_echo=$ac_try;;
 
3214
esac
 
3215
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3216
$as_echo "$ac_try_echo"; } >&5
 
3217
  (eval "$ac_link_default") 2>&5
2500
3218
  ac_status=$?
2501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502
 
  (exit $ac_status); }; then
2503
 
  # Find the output, starting from the most likely.  This scheme is
2504
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2505
 
# resort.
2506
 
 
2507
 
# Be careful to initialize this variable, since it used to be cached.
2508
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2509
 
ac_cv_exeext=
2510
 
# b.out is created by i960 compilers.
2511
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3219
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3220
  test $ac_status = 0; }; then :
 
3221
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3222
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3223
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3224
# so that the user can short-circuit this test for compilers unknown to
 
3225
# Autoconf.
 
3226
for ac_file in $ac_files ''
2512
3227
do
2513
3228
  test -f "$ac_file" || continue
2514
3229
  case $ac_file in
2515
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2516
 
        ;;
2517
 
    conftest.$ac_ext )
2518
 
        # This is the source file.
 
3230
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2519
3231
        ;;
2520
3232
    [ab].out )
2521
3233
        # We found the default executable, but exeext='' is most
2522
3234
        # certainly right.
2523
3235
        break;;
2524
3236
    *.* )
2525
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2527
 
        # but it would be cool to find out if it's true.  Does anybody
2528
 
        # maintain Libtool? --akim.
2529
 
        export ac_cv_exeext
 
3237
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3238
        then :; else
 
3239
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3240
        fi
 
3241
        # We set ac_cv_exeext here because the later test for it is not
 
3242
        # safe: cross compilers may not add the suffix if given an `-o'
 
3243
        # argument, so we may need to know it at that point already.
 
3244
        # Even if this section looks crufty: it has the advantage of
 
3245
        # actually working.
2530
3246
        break;;
2531
3247
    * )
2532
3248
        break;;
2533
3249
  esac
2534
3250
done
 
3251
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3252
 
2535
3253
else
2536
 
  echo "$as_me: failed program was:" >&5
 
3254
  ac_file=''
 
3255
fi
 
3256
if test -z "$ac_file"; then :
 
3257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3258
$as_echo "no" >&6; }
 
3259
$as_echo "$as_me: failed program was:" >&5
2537
3260
sed 's/^/| /' conftest.$ac_ext >&5
2538
3261
 
2539
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2540
 
See \`config.log' for more details." >&5
2541
 
echo "$as_me: error: C compiler cannot create executables
2542
 
See \`config.log' for more details." >&2;}
2543
 
   { (exit 77); exit 77; }; }
 
3262
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3263
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3264
as_fn_error 77 "C compiler cannot create executables
 
3265
See \`config.log' for more details" "$LINENO" 5; }
 
3266
else
 
3267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3268
$as_echo "yes" >&6; }
2544
3269
fi
2545
 
 
 
3270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3271
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3273
$as_echo "$ac_file" >&6; }
2546
3274
ac_exeext=$ac_cv_exeext
2547
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2548
 
echo "${ECHO_T}$ac_file" >&6
2549
 
 
2550
 
# Check the compiler produces executables we can run.  If not, either
2551
 
# the compiler is broken, or we cross compile.
2552
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2554
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555
 
# If not cross compiling, check that we can run a simple program.
2556
 
if test "$cross_compiling" != yes; then
2557
 
  if { ac_try='./$ac_file'
2558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559
 
  (eval $ac_try) 2>&5
2560
 
  ac_status=$?
2561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562
 
  (exit $ac_status); }; }; then
2563
 
    cross_compiling=no
2564
 
  else
2565
 
    if test "$cross_compiling" = maybe; then
2566
 
        cross_compiling=yes
2567
 
    else
2568
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2569
 
If you meant to cross compile, use \`--host'.
2570
 
See \`config.log' for more details." >&5
2571
 
echo "$as_me: error: cannot run C compiled programs.
2572
 
If you meant to cross compile, use \`--host'.
2573
 
See \`config.log' for more details." >&2;}
2574
 
   { (exit 1); exit 1; }; }
2575
 
    fi
2576
 
  fi
2577
 
fi
2578
 
echo "$as_me:$LINENO: result: yes" >&5
2579
 
echo "${ECHO_T}yes" >&6
2580
 
 
2581
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3275
 
 
3276
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2582
3277
ac_clean_files=$ac_clean_files_save
2583
 
# Check the compiler produces executables we can run.  If not, either
2584
 
# the compiler is broken, or we cross compile.
2585
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2586
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2587
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2588
 
echo "${ECHO_T}$cross_compiling" >&6
2589
 
 
2590
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2591
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2592
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2593
 
  (eval $ac_link) 2>&5
 
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3279
$as_echo_n "checking for suffix of executables... " >&6; }
 
3280
if { { ac_try="$ac_link"
 
3281
case "(($ac_try" in
 
3282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3283
  *) ac_try_echo=$ac_try;;
 
3284
esac
 
3285
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3286
$as_echo "$ac_try_echo"; } >&5
 
3287
  (eval "$ac_link") 2>&5
2594
3288
  ac_status=$?
2595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596
 
  (exit $ac_status); }; then
 
3289
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3290
  test $ac_status = 0; }; then :
2597
3291
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598
3292
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599
3293
# work properly (i.e., refer to `conftest.exe'), while it won't with
2601
3295
for ac_file in conftest.exe conftest conftest.*; do
2602
3296
  test -f "$ac_file" || continue
2603
3297
  case $ac_file in
2604
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3298
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605
3299
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606
 
          export ac_cv_exeext
2607
3300
          break;;
2608
3301
    * ) break;;
2609
3302
  esac
2610
3303
done
2611
3304
else
2612
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2613
 
See \`config.log' for more details." >&5
2614
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2615
 
See \`config.log' for more details." >&2;}
2616
 
   { (exit 1); exit 1; }; }
 
3305
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3306
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3307
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3308
See \`config.log' for more details" "$LINENO" 5; }
2617
3309
fi
2618
 
 
2619
 
rm -f conftest$ac_cv_exeext
2620
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2621
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3310
rm -f conftest conftest$ac_cv_exeext
 
3311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3312
$as_echo "$ac_cv_exeext" >&6; }
2622
3313
 
2623
3314
rm -f conftest.$ac_ext
2624
3315
EXEEXT=$ac_cv_exeext
2625
3316
ac_exeext=$EXEEXT
2626
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2627
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2628
 
if test "${ac_cv_objext+set}" = set; then
2629
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3318
/* end confdefs.h.  */
 
3319
#include <stdio.h>
 
3320
int
 
3321
main ()
 
3322
{
 
3323
FILE *f = fopen ("conftest.out", "w");
 
3324
 return ferror (f) || fclose (f) != 0;
 
3325
 
 
3326
  ;
 
3327
  return 0;
 
3328
}
 
3329
_ACEOF
 
3330
ac_clean_files="$ac_clean_files conftest.out"
 
3331
# Check that the compiler produces executables we can run.  If not, either
 
3332
# the compiler is broken, or we cross compile.
 
3333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3334
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3335
if test "$cross_compiling" != yes; then
 
3336
  { { ac_try="$ac_link"
 
3337
case "(($ac_try" in
 
3338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3339
  *) ac_try_echo=$ac_try;;
 
3340
esac
 
3341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3342
$as_echo "$ac_try_echo"; } >&5
 
3343
  (eval "$ac_link") 2>&5
 
3344
  ac_status=$?
 
3345
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3346
  test $ac_status = 0; }
 
3347
  if { ac_try='./conftest$ac_cv_exeext'
 
3348
  { { case "(($ac_try" in
 
3349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3350
  *) ac_try_echo=$ac_try;;
 
3351
esac
 
3352
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3353
$as_echo "$ac_try_echo"; } >&5
 
3354
  (eval "$ac_try") 2>&5
 
3355
  ac_status=$?
 
3356
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3357
  test $ac_status = 0; }; }; then
 
3358
    cross_compiling=no
 
3359
  else
 
3360
    if test "$cross_compiling" = maybe; then
 
3361
        cross_compiling=yes
 
3362
    else
 
3363
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3365
as_fn_error $? "cannot run C compiled programs.
 
3366
If you meant to cross compile, use \`--host'.
 
3367
See \`config.log' for more details" "$LINENO" 5; }
 
3368
    fi
 
3369
  fi
 
3370
fi
 
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3372
$as_echo "$cross_compiling" >&6; }
 
3373
 
 
3374
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3375
ac_clean_files=$ac_clean_files_save
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3377
$as_echo_n "checking for suffix of object files... " >&6; }
 
3378
if ${ac_cv_objext+:} false; then :
 
3379
  $as_echo_n "(cached) " >&6
2630
3380
else
2631
 
  cat >conftest.$ac_ext <<_ACEOF
2632
 
/* confdefs.h.  */
2633
 
_ACEOF
2634
 
cat confdefs.h >>conftest.$ac_ext
2635
 
cat >>conftest.$ac_ext <<_ACEOF
 
3381
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636
3382
/* end confdefs.h.  */
2637
3383
 
2638
3384
int
2644
3390
}
2645
3391
_ACEOF
2646
3392
rm -f conftest.o conftest.obj
2647
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648
 
  (eval $ac_compile) 2>&5
 
3393
if { { ac_try="$ac_compile"
 
3394
case "(($ac_try" in
 
3395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3396
  *) ac_try_echo=$ac_try;;
 
3397
esac
 
3398
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3399
$as_echo "$ac_try_echo"; } >&5
 
3400
  (eval "$ac_compile") 2>&5
2649
3401
  ac_status=$?
2650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651
 
  (exit $ac_status); }; then
2652
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3402
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3403
  test $ac_status = 0; }; then :
 
3404
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3405
  test -f "$ac_file" || continue;
2653
3406
  case $ac_file in
2654
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3407
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2655
3408
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2656
3409
       break;;
2657
3410
  esac
2658
3411
done
2659
3412
else
2660
 
  echo "$as_me: failed program was:" >&5
 
3413
  $as_echo "$as_me: failed program was:" >&5
2661
3414
sed 's/^/| /' conftest.$ac_ext >&5
2662
3415
 
2663
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2664
 
See \`config.log' for more details." >&5
2665
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2666
 
See \`config.log' for more details." >&2;}
2667
 
   { (exit 1); exit 1; }; }
 
3416
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3417
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3418
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3419
See \`config.log' for more details" "$LINENO" 5; }
2668
3420
fi
2669
 
 
2670
3421
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2671
3422
fi
2672
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2673
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3424
$as_echo "$ac_cv_objext" >&6; }
2674
3425
OBJEXT=$ac_cv_objext
2675
3426
ac_objext=$OBJEXT
2676
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2677
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2678
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3428
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3429
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3430
  $as_echo_n "(cached) " >&6
2680
3431
else
2681
 
  cat >conftest.$ac_ext <<_ACEOF
2682
 
/* confdefs.h.  */
2683
 
_ACEOF
2684
 
cat confdefs.h >>conftest.$ac_ext
2685
 
cat >>conftest.$ac_ext <<_ACEOF
 
3432
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686
3433
/* end confdefs.h.  */
2687
3434
 
2688
3435
int
2696
3443
  return 0;
2697
3444
}
2698
3445
_ACEOF
2699
 
rm -f conftest.$ac_objext
2700
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701
 
  (eval $ac_compile) 2>conftest.er1
2702
 
  ac_status=$?
2703
 
  grep -v '^ *+' conftest.er1 >conftest.err
2704
 
  rm -f conftest.er1
2705
 
  cat conftest.err >&5
2706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707
 
  (exit $ac_status); } &&
2708
 
         { ac_try='test -z "$ac_c_werror_flag"
2709
 
                         || test ! -s conftest.err'
2710
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711
 
  (eval $ac_try) 2>&5
2712
 
  ac_status=$?
2713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714
 
  (exit $ac_status); }; } &&
2715
 
         { ac_try='test -s conftest.$ac_objext'
2716
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717
 
  (eval $ac_try) 2>&5
2718
 
  ac_status=$?
2719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720
 
  (exit $ac_status); }; }; then
 
3446
if ac_fn_c_try_compile "$LINENO"; then :
2721
3447
  ac_compiler_gnu=yes
2722
3448
else
2723
 
  echo "$as_me: failed program was:" >&5
2724
 
sed 's/^/| /' conftest.$ac_ext >&5
2725
 
 
2726
 
ac_compiler_gnu=no
 
3449
  ac_compiler_gnu=no
2727
3450
fi
2728
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729
3452
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730
3453
 
2731
3454
fi
2732
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2734
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3456
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3457
if test $ac_compiler_gnu = yes; then
 
3458
  GCC=yes
 
3459
else
 
3460
  GCC=
 
3461
fi
2735
3462
ac_test_CFLAGS=${CFLAGS+set}
2736
3463
ac_save_CFLAGS=$CFLAGS
2737
 
CFLAGS="-g"
2738
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2739
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2740
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2741
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2742
 
else
2743
 
  cat >conftest.$ac_ext <<_ACEOF
2744
 
/* confdefs.h.  */
2745
 
_ACEOF
2746
 
cat confdefs.h >>conftest.$ac_ext
2747
 
cat >>conftest.$ac_ext <<_ACEOF
2748
 
/* end confdefs.h.  */
2749
 
 
2750
 
int
2751
 
main ()
2752
 
{
2753
 
 
2754
 
  ;
2755
 
  return 0;
2756
 
}
2757
 
_ACEOF
2758
 
rm -f conftest.$ac_objext
2759
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760
 
  (eval $ac_compile) 2>conftest.er1
2761
 
  ac_status=$?
2762
 
  grep -v '^ *+' conftest.er1 >conftest.err
2763
 
  rm -f conftest.er1
2764
 
  cat conftest.err >&5
2765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766
 
  (exit $ac_status); } &&
2767
 
         { ac_try='test -z "$ac_c_werror_flag"
2768
 
                         || test ! -s conftest.err'
2769
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770
 
  (eval $ac_try) 2>&5
2771
 
  ac_status=$?
2772
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773
 
  (exit $ac_status); }; } &&
2774
 
         { ac_try='test -s conftest.$ac_objext'
2775
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776
 
  (eval $ac_try) 2>&5
2777
 
  ac_status=$?
2778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
 
  (exit $ac_status); }; }; then
2780
 
  ac_cv_prog_cc_g=yes
2781
 
else
2782
 
  echo "$as_me: failed program was:" >&5
2783
 
sed 's/^/| /' conftest.$ac_ext >&5
2784
 
 
2785
 
ac_cv_prog_cc_g=no
2786
 
fi
2787
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788
 
fi
2789
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3465
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3466
if ${ac_cv_prog_cc_g+:} false; then :
 
3467
  $as_echo_n "(cached) " >&6
 
3468
else
 
3469
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3470
   ac_c_werror_flag=yes
 
3471
   ac_cv_prog_cc_g=no
 
3472
   CFLAGS="-g"
 
3473
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3474
/* end confdefs.h.  */
 
3475
 
 
3476
int
 
3477
main ()
 
3478
{
 
3479
 
 
3480
  ;
 
3481
  return 0;
 
3482
}
 
3483
_ACEOF
 
3484
if ac_fn_c_try_compile "$LINENO"; then :
 
3485
  ac_cv_prog_cc_g=yes
 
3486
else
 
3487
  CFLAGS=""
 
3488
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3489
/* end confdefs.h.  */
 
3490
 
 
3491
int
 
3492
main ()
 
3493
{
 
3494
 
 
3495
  ;
 
3496
  return 0;
 
3497
}
 
3498
_ACEOF
 
3499
if ac_fn_c_try_compile "$LINENO"; then :
 
3500
 
 
3501
else
 
3502
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3503
         CFLAGS="-g"
 
3504
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3505
/* end confdefs.h.  */
 
3506
 
 
3507
int
 
3508
main ()
 
3509
{
 
3510
 
 
3511
  ;
 
3512
  return 0;
 
3513
}
 
3514
_ACEOF
 
3515
if ac_fn_c_try_compile "$LINENO"; then :
 
3516
  ac_cv_prog_cc_g=yes
 
3517
fi
 
3518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3519
fi
 
3520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3521
fi
 
3522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3523
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3524
fi
 
3525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3526
$as_echo "$ac_cv_prog_cc_g" >&6; }
2791
3527
if test "$ac_test_CFLAGS" = set; then
2792
3528
  CFLAGS=$ac_save_CFLAGS
2793
3529
elif test $ac_cv_prog_cc_g = yes; then
2803
3539
    CFLAGS=
2804
3540
  fi
2805
3541
fi
2806
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2807
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2808
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3543
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3544
if ${ac_cv_prog_cc_c89+:} false; then :
 
3545
  $as_echo_n "(cached) " >&6
2810
3546
else
2811
 
  ac_cv_prog_cc_stdc=no
 
3547
  ac_cv_prog_cc_c89=no
2812
3548
ac_save_CC=$CC
2813
 
cat >conftest.$ac_ext <<_ACEOF
2814
 
/* confdefs.h.  */
2815
 
_ACEOF
2816
 
cat confdefs.h >>conftest.$ac_ext
2817
 
cat >>conftest.$ac_ext <<_ACEOF
 
3549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818
3550
/* end confdefs.h.  */
2819
3551
#include <stdarg.h>
2820
3552
#include <stdio.h>
2842
3574
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2843
3575
   function prototypes and stuff, but not '\xHH' hex character constants.
2844
3576
   These don't provoke an error unfortunately, instead are silently treated
2845
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3577
   as 'x'.  The following induces an error, until -std is added to get
2846
3578
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2847
3579
   array size at least.  It's necessary to write '\x00'==0 to get something
2848
 
   that's true only with -std1.  */
 
3580
   that's true only with -std.  */
2849
3581
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2850
3582
 
 
3583
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3584
   inside strings and character constants.  */
 
3585
#define FOO(x) 'x'
 
3586
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3587
 
2851
3588
int test (int i, double x);
2852
3589
struct s1 {int (*f) (int a);};
2853
3590
struct s2 {int (*f) (double a);};
2862
3599
  return 0;
2863
3600
}
2864
3601
_ACEOF
2865
 
# Don't try gcc -ansi; that turns off useful extensions and
2866
 
# breaks some systems' header files.
2867
 
# AIX                   -qlanglvl=ansi
2868
 
# Ultrix and OSF/1      -std1
2869
 
# HP-UX 10.20 and later -Ae
2870
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2871
 
# SVR4                  -Xc -D__EXTENSIONS__
2872
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3602
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3603
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873
3604
do
2874
3605
  CC="$ac_save_CC $ac_arg"
2875
 
  rm -f conftest.$ac_objext
2876
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877
 
  (eval $ac_compile) 2>conftest.er1
2878
 
  ac_status=$?
2879
 
  grep -v '^ *+' conftest.er1 >conftest.err
2880
 
  rm -f conftest.er1
2881
 
  cat conftest.err >&5
2882
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883
 
  (exit $ac_status); } &&
2884
 
         { ac_try='test -z "$ac_c_werror_flag"
2885
 
                         || test ! -s conftest.err'
2886
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887
 
  (eval $ac_try) 2>&5
2888
 
  ac_status=$?
2889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
 
  (exit $ac_status); }; } &&
2891
 
         { ac_try='test -s conftest.$ac_objext'
2892
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893
 
  (eval $ac_try) 2>&5
2894
 
  ac_status=$?
2895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
 
  (exit $ac_status); }; }; then
2897
 
  ac_cv_prog_cc_stdc=$ac_arg
2898
 
break
2899
 
else
2900
 
  echo "$as_me: failed program was:" >&5
2901
 
sed 's/^/| /' conftest.$ac_ext >&5
2902
 
 
 
3606
  if ac_fn_c_try_compile "$LINENO"; then :
 
3607
  ac_cv_prog_cc_c89=$ac_arg
2903
3608
fi
2904
 
rm -f conftest.err conftest.$ac_objext
 
3609
rm -f core conftest.err conftest.$ac_objext
 
3610
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2905
3611
done
2906
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3612
rm -f conftest.$ac_ext
2907
3613
CC=$ac_save_CC
2908
3614
 
2909
3615
fi
2910
 
 
2911
 
case "x$ac_cv_prog_cc_stdc" in
2912
 
  x|xno)
2913
 
    echo "$as_me:$LINENO: result: none needed" >&5
2914
 
echo "${ECHO_T}none needed" >&6 ;;
 
3616
# AC_CACHE_VAL
 
3617
case "x$ac_cv_prog_cc_c89" in
 
3618
  x)
 
3619
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3620
$as_echo "none needed" >&6; } ;;
 
3621
  xno)
 
3622
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3623
$as_echo "unsupported" >&6; } ;;
2915
3624
  *)
2916
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2917
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2918
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3625
    CC="$CC $ac_cv_prog_cc_c89"
 
3626
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3627
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2919
3628
esac
2920
 
 
2921
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2922
 
# in C++ we need to declare it.  In case someone uses the same compiler
2923
 
# for both compiling C and C++ we need to have the C++ compiler decide
2924
 
# the declaration of exit, since it's the most demanding environment.
2925
 
cat >conftest.$ac_ext <<_ACEOF
2926
 
#ifndef __cplusplus
2927
 
  choke me
2928
 
#endif
2929
 
_ACEOF
2930
 
rm -f conftest.$ac_objext
2931
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932
 
  (eval $ac_compile) 2>conftest.er1
2933
 
  ac_status=$?
2934
 
  grep -v '^ *+' conftest.er1 >conftest.err
2935
 
  rm -f conftest.er1
2936
 
  cat conftest.err >&5
2937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938
 
  (exit $ac_status); } &&
2939
 
         { ac_try='test -z "$ac_c_werror_flag"
2940
 
                         || test ! -s conftest.err'
2941
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942
 
  (eval $ac_try) 2>&5
2943
 
  ac_status=$?
2944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945
 
  (exit $ac_status); }; } &&
2946
 
         { ac_try='test -s conftest.$ac_objext'
2947
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948
 
  (eval $ac_try) 2>&5
2949
 
  ac_status=$?
2950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951
 
  (exit $ac_status); }; }; then
2952
 
  for ac_declaration in \
2953
 
   '' \
2954
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2955
 
   'extern "C" void std::exit (int); using std::exit;' \
2956
 
   'extern "C" void exit (int) throw ();' \
2957
 
   'extern "C" void exit (int);' \
2958
 
   'void exit (int);'
2959
 
do
2960
 
  cat >conftest.$ac_ext <<_ACEOF
2961
 
/* confdefs.h.  */
2962
 
_ACEOF
2963
 
cat confdefs.h >>conftest.$ac_ext
2964
 
cat >>conftest.$ac_ext <<_ACEOF
2965
 
/* end confdefs.h.  */
2966
 
$ac_declaration
2967
 
#include <stdlib.h>
2968
 
int
2969
 
main ()
2970
 
{
2971
 
exit (42);
2972
 
  ;
2973
 
  return 0;
2974
 
}
2975
 
_ACEOF
2976
 
rm -f conftest.$ac_objext
2977
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978
 
  (eval $ac_compile) 2>conftest.er1
2979
 
  ac_status=$?
2980
 
  grep -v '^ *+' conftest.er1 >conftest.err
2981
 
  rm -f conftest.er1
2982
 
  cat conftest.err >&5
2983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
 
  (exit $ac_status); } &&
2985
 
         { ac_try='test -z "$ac_c_werror_flag"
2986
 
                         || test ! -s conftest.err'
2987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988
 
  (eval $ac_try) 2>&5
2989
 
  ac_status=$?
2990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991
 
  (exit $ac_status); }; } &&
2992
 
         { ac_try='test -s conftest.$ac_objext'
2993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994
 
  (eval $ac_try) 2>&5
2995
 
  ac_status=$?
2996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
 
  (exit $ac_status); }; }; then
2998
 
  :
2999
 
else
3000
 
  echo "$as_me: failed program was:" >&5
3001
 
sed 's/^/| /' conftest.$ac_ext >&5
3002
 
 
3003
 
continue
3004
 
fi
3005
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006
 
  cat >conftest.$ac_ext <<_ACEOF
3007
 
/* confdefs.h.  */
3008
 
_ACEOF
3009
 
cat confdefs.h >>conftest.$ac_ext
3010
 
cat >>conftest.$ac_ext <<_ACEOF
3011
 
/* end confdefs.h.  */
3012
 
$ac_declaration
3013
 
int
3014
 
main ()
3015
 
{
3016
 
exit (42);
3017
 
  ;
3018
 
  return 0;
3019
 
}
3020
 
_ACEOF
3021
 
rm -f conftest.$ac_objext
3022
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023
 
  (eval $ac_compile) 2>conftest.er1
3024
 
  ac_status=$?
3025
 
  grep -v '^ *+' conftest.er1 >conftest.err
3026
 
  rm -f conftest.er1
3027
 
  cat conftest.err >&5
3028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029
 
  (exit $ac_status); } &&
3030
 
         { ac_try='test -z "$ac_c_werror_flag"
3031
 
                         || test ! -s conftest.err'
3032
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033
 
  (eval $ac_try) 2>&5
3034
 
  ac_status=$?
3035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036
 
  (exit $ac_status); }; } &&
3037
 
         { ac_try='test -s conftest.$ac_objext'
3038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039
 
  (eval $ac_try) 2>&5
3040
 
  ac_status=$?
3041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
 
  (exit $ac_status); }; }; then
3043
 
  break
3044
 
else
3045
 
  echo "$as_me: failed program was:" >&5
3046
 
sed 's/^/| /' conftest.$ac_ext >&5
3047
 
 
3048
 
fi
3049
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050
 
done
3051
 
rm -f conftest*
3052
 
if test -n "$ac_declaration"; then
3053
 
  echo '#ifdef __cplusplus' >>confdefs.h
3054
 
  echo $ac_declaration      >>confdefs.h
3055
 
  echo '#endif'             >>confdefs.h
3056
 
fi
3057
 
 
3058
 
else
3059
 
  echo "$as_me: failed program was:" >&5
3060
 
sed 's/^/| /' conftest.$ac_ext >&5
3061
 
 
3062
 
fi
3063
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3629
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3630
 
 
3631
fi
 
3632
 
3064
3633
ac_ext=c
3065
3634
ac_cpp='$CPP $CPPFLAGS'
3066
3635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067
3636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068
3637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3638
 
3070
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3071
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3072
 
if test "${lt_cv_path_SED+set}" = set; then
3073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
3640
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3641
if ${ac_cv_path_SED+:} false; then :
 
3642
  $as_echo_n "(cached) " >&6
3074
3643
else
3075
 
  # Loop through the user's path and test for sed and gsed.
3076
 
# Then use that list of sed's as ones to test for truncation.
3077
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3644
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3645
     for ac_i in 1 2 3 4 5 6 7; do
 
3646
       ac_script="$ac_script$as_nl$ac_script"
 
3647
     done
 
3648
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3649
     { ac_script=; unset ac_script;}
 
3650
     if test -z "$SED"; then
 
3651
  ac_path_SED_found=false
 
3652
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3653
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078
3654
for as_dir in $PATH
3079
3655
do
3080
3656
  IFS=$as_save_IFS
3081
3657
  test -z "$as_dir" && as_dir=.
3082
 
  for lt_ac_prog in sed gsed; do
3083
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3084
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3085
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3086
 
      fi
3087
 
    done
3088
 
  done
3089
 
done
3090
 
lt_ac_max=0
3091
 
lt_ac_count=0
3092
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3093
 
# along with /bin/sed that truncates output.
3094
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3095
 
  test ! -f $lt_ac_sed && continue
3096
 
  cat /dev/null > conftest.in
3097
 
  lt_ac_count=0
3098
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3099
 
  # Check for GNU sed and select it if it is found.
3100
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3101
 
    lt_cv_path_SED=$lt_ac_sed
3102
 
    break
3103
 
  fi
3104
 
  while true; do
3105
 
    cat conftest.in conftest.in >conftest.tmp
3106
 
    mv conftest.tmp conftest.in
3107
 
    cp conftest.in conftest.nl
3108
 
    echo >>conftest.nl
3109
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3110
 
    cmp -s conftest.out conftest.nl || break
3111
 
    # 10000 chars as input seems more than enough
3112
 
    test $lt_ac_count -gt 10 && break
3113
 
    lt_ac_count=`expr $lt_ac_count + 1`
3114
 
    if test $lt_ac_count -gt $lt_ac_max; then
3115
 
      lt_ac_max=$lt_ac_count
3116
 
      lt_cv_path_SED=$lt_ac_sed
3117
 
    fi
3118
 
  done
3119
 
done
3120
 
 
3121
 
fi
3122
 
 
3123
 
SED=$lt_cv_path_SED
3124
 
echo "$as_me:$LINENO: result: $SED" >&5
3125
 
echo "${ECHO_T}$SED" >&6
3126
 
 
3127
 
echo "$as_me:$LINENO: checking for egrep" >&5
3128
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3129
 
if test "${ac_cv_prog_egrep+set}" = set; then
3130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3131
 
else
3132
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3133
 
    then ac_cv_prog_egrep='grep -E'
3134
 
    else ac_cv_prog_egrep='egrep'
3135
 
    fi
3136
 
fi
3137
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3138
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3139
 
 EGREP=$ac_cv_prog_egrep
3140
 
 
3141
 
 
3142
 
 
3143
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3144
 
if test "${with_gnu_ld+set}" = set; then
3145
 
  withval="$with_gnu_ld"
3146
 
  test "$withval" = no || with_gnu_ld=yes
 
3658
    for ac_prog in sed gsed; do
 
3659
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3660
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3661
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3662
# Check for GNU ac_path_SED and select it if it is found.
 
3663
  # Check for GNU $ac_path_SED
 
3664
case `"$ac_path_SED" --version 2>&1` in
 
3665
*GNU*)
 
3666
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3667
*)
 
3668
  ac_count=0
 
3669
  $as_echo_n 0123456789 >"conftest.in"
 
3670
  while :
 
3671
  do
 
3672
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3673
    mv "conftest.tmp" "conftest.in"
 
3674
    cp "conftest.in" "conftest.nl"
 
3675
    $as_echo '' >> "conftest.nl"
 
3676
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3677
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3678
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3679
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3680
      # Best one so far, save it but keep looking for a better one
 
3681
      ac_cv_path_SED="$ac_path_SED"
 
3682
      ac_path_SED_max=$ac_count
 
3683
    fi
 
3684
    # 10*(2^10) chars as input seems more than enough
 
3685
    test $ac_count -gt 10 && break
 
3686
  done
 
3687
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3688
esac
 
3689
 
 
3690
      $ac_path_SED_found && break 3
 
3691
    done
 
3692
  done
 
3693
  done
 
3694
IFS=$as_save_IFS
 
3695
  if test -z "$ac_cv_path_SED"; then
 
3696
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
3697
  fi
 
3698
else
 
3699
  ac_cv_path_SED=$SED
 
3700
fi
 
3701
 
 
3702
fi
 
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
3704
$as_echo "$ac_cv_path_SED" >&6; }
 
3705
 SED="$ac_cv_path_SED"
 
3706
  rm -f conftest.sed
 
3707
 
 
3708
test -z "$SED" && SED=sed
 
3709
Xsed="$SED -e 1s/^X//"
 
3710
 
 
3711
 
 
3712
 
 
3713
 
 
3714
 
 
3715
 
 
3716
 
 
3717
 
 
3718
 
 
3719
 
 
3720
 
 
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3722
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3723
if ${ac_cv_path_GREP+:} false; then :
 
3724
  $as_echo_n "(cached) " >&6
 
3725
else
 
3726
  if test -z "$GREP"; then
 
3727
  ac_path_GREP_found=false
 
3728
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3729
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3730
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3731
do
 
3732
  IFS=$as_save_IFS
 
3733
  test -z "$as_dir" && as_dir=.
 
3734
    for ac_prog in grep ggrep; do
 
3735
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3736
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3737
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3738
# Check for GNU ac_path_GREP and select it if it is found.
 
3739
  # Check for GNU $ac_path_GREP
 
3740
case `"$ac_path_GREP" --version 2>&1` in
 
3741
*GNU*)
 
3742
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3743
*)
 
3744
  ac_count=0
 
3745
  $as_echo_n 0123456789 >"conftest.in"
 
3746
  while :
 
3747
  do
 
3748
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3749
    mv "conftest.tmp" "conftest.in"
 
3750
    cp "conftest.in" "conftest.nl"
 
3751
    $as_echo 'GREP' >> "conftest.nl"
 
3752
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3753
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3754
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3755
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3756
      # Best one so far, save it but keep looking for a better one
 
3757
      ac_cv_path_GREP="$ac_path_GREP"
 
3758
      ac_path_GREP_max=$ac_count
 
3759
    fi
 
3760
    # 10*(2^10) chars as input seems more than enough
 
3761
    test $ac_count -gt 10 && break
 
3762
  done
 
3763
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3764
esac
 
3765
 
 
3766
      $ac_path_GREP_found && break 3
 
3767
    done
 
3768
  done
 
3769
  done
 
3770
IFS=$as_save_IFS
 
3771
  if test -z "$ac_cv_path_GREP"; then
 
3772
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3773
  fi
 
3774
else
 
3775
  ac_cv_path_GREP=$GREP
 
3776
fi
 
3777
 
 
3778
fi
 
3779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3780
$as_echo "$ac_cv_path_GREP" >&6; }
 
3781
 GREP="$ac_cv_path_GREP"
 
3782
 
 
3783
 
 
3784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3785
$as_echo_n "checking for egrep... " >&6; }
 
3786
if ${ac_cv_path_EGREP+:} false; then :
 
3787
  $as_echo_n "(cached) " >&6
 
3788
else
 
3789
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3790
   then ac_cv_path_EGREP="$GREP -E"
 
3791
   else
 
3792
     if test -z "$EGREP"; then
 
3793
  ac_path_EGREP_found=false
 
3794
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3795
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3796
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3797
do
 
3798
  IFS=$as_save_IFS
 
3799
  test -z "$as_dir" && as_dir=.
 
3800
    for ac_prog in egrep; do
 
3801
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3802
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3803
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3804
# Check for GNU ac_path_EGREP and select it if it is found.
 
3805
  # Check for GNU $ac_path_EGREP
 
3806
case `"$ac_path_EGREP" --version 2>&1` in
 
3807
*GNU*)
 
3808
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3809
*)
 
3810
  ac_count=0
 
3811
  $as_echo_n 0123456789 >"conftest.in"
 
3812
  while :
 
3813
  do
 
3814
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3815
    mv "conftest.tmp" "conftest.in"
 
3816
    cp "conftest.in" "conftest.nl"
 
3817
    $as_echo 'EGREP' >> "conftest.nl"
 
3818
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3819
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3820
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3821
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3822
      # Best one so far, save it but keep looking for a better one
 
3823
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3824
      ac_path_EGREP_max=$ac_count
 
3825
    fi
 
3826
    # 10*(2^10) chars as input seems more than enough
 
3827
    test $ac_count -gt 10 && break
 
3828
  done
 
3829
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3830
esac
 
3831
 
 
3832
      $ac_path_EGREP_found && break 3
 
3833
    done
 
3834
  done
 
3835
  done
 
3836
IFS=$as_save_IFS
 
3837
  if test -z "$ac_cv_path_EGREP"; then
 
3838
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3839
  fi
 
3840
else
 
3841
  ac_cv_path_EGREP=$EGREP
 
3842
fi
 
3843
 
 
3844
   fi
 
3845
fi
 
3846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3847
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3848
 EGREP="$ac_cv_path_EGREP"
 
3849
 
 
3850
 
 
3851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
3852
$as_echo_n "checking for fgrep... " >&6; }
 
3853
if ${ac_cv_path_FGREP+:} false; then :
 
3854
  $as_echo_n "(cached) " >&6
 
3855
else
 
3856
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
3857
   then ac_cv_path_FGREP="$GREP -F"
 
3858
   else
 
3859
     if test -z "$FGREP"; then
 
3860
  ac_path_FGREP_found=false
 
3861
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3862
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3863
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3864
do
 
3865
  IFS=$as_save_IFS
 
3866
  test -z "$as_dir" && as_dir=.
 
3867
    for ac_prog in fgrep; do
 
3868
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3869
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3870
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
3871
# Check for GNU ac_path_FGREP and select it if it is found.
 
3872
  # Check for GNU $ac_path_FGREP
 
3873
case `"$ac_path_FGREP" --version 2>&1` in
 
3874
*GNU*)
 
3875
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
3876
*)
 
3877
  ac_count=0
 
3878
  $as_echo_n 0123456789 >"conftest.in"
 
3879
  while :
 
3880
  do
 
3881
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3882
    mv "conftest.tmp" "conftest.in"
 
3883
    cp "conftest.in" "conftest.nl"
 
3884
    $as_echo 'FGREP' >> "conftest.nl"
 
3885
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3886
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3887
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3888
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
3889
      # Best one so far, save it but keep looking for a better one
 
3890
      ac_cv_path_FGREP="$ac_path_FGREP"
 
3891
      ac_path_FGREP_max=$ac_count
 
3892
    fi
 
3893
    # 10*(2^10) chars as input seems more than enough
 
3894
    test $ac_count -gt 10 && break
 
3895
  done
 
3896
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3897
esac
 
3898
 
 
3899
      $ac_path_FGREP_found && break 3
 
3900
    done
 
3901
  done
 
3902
  done
 
3903
IFS=$as_save_IFS
 
3904
  if test -z "$ac_cv_path_FGREP"; then
 
3905
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3906
  fi
 
3907
else
 
3908
  ac_cv_path_FGREP=$FGREP
 
3909
fi
 
3910
 
 
3911
   fi
 
3912
fi
 
3913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
3914
$as_echo "$ac_cv_path_FGREP" >&6; }
 
3915
 FGREP="$ac_cv_path_FGREP"
 
3916
 
 
3917
 
 
3918
test -z "$GREP" && GREP=grep
 
3919
 
 
3920
 
 
3921
 
 
3922
 
 
3923
 
 
3924
 
 
3925
 
 
3926
 
 
3927
 
 
3928
 
 
3929
 
 
3930
 
 
3931
 
 
3932
 
 
3933
 
 
3934
 
 
3935
 
 
3936
 
 
3937
 
 
3938
# Check whether --with-gnu-ld was given.
 
3939
if test "${with_gnu_ld+set}" = set; then :
 
3940
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3147
3941
else
3148
3942
  with_gnu_ld=no
3149
 
fi;
 
3943
fi
 
3944
 
3150
3945
ac_prog=ld
3151
3946
if test "$GCC" = yes; then
3152
3947
  # Check if gcc -print-prog-name=ld gives a path.
3153
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3154
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3948
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
3949
$as_echo_n "checking for ld used by $CC... " >&6; }
3155
3950
  case $host in
3156
3951
  *-*-mingw*)
3157
3952
    # gcc leaves a trailing carriage return which upsets mingw
3164
3959
    [\\/]* | ?:[\\/]*)
3165
3960
      re_direlt='/[^/][^/]*/\.\./'
3166
3961
      # Canonicalize the pathname of ld
3167
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3168
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3962
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3963
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3964
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3170
3965
      done
3171
3966
      test -z "$LD" && LD="$ac_prog"
3172
3967
      ;;
3180
3975
    ;;
3181
3976
  esac
3182
3977
elif test "$with_gnu_ld" = yes; then
3183
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3184
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3978
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
3979
$as_echo_n "checking for GNU ld... " >&6; }
3185
3980
else
3186
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
3982
$as_echo_n "checking for non-GNU ld... " >&6; }
3188
3983
fi
3189
 
if test "${lt_cv_path_LD+set}" = set; then
3190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3984
if ${lt_cv_path_LD+:} false; then :
 
3985
  $as_echo_n "(cached) " >&6
3191
3986
else
3192
3987
  if test -z "$LD"; then
3193
3988
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3217
4012
 
3218
4013
LD="$lt_cv_path_LD"
3219
4014
if test -n "$LD"; then
3220
 
  echo "$as_me:$LINENO: result: $LD" >&5
3221
 
echo "${ECHO_T}$LD" >&6
 
4015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4016
$as_echo "$LD" >&6; }
3222
4017
else
3223
 
  echo "$as_me:$LINENO: result: no" >&5
3224
 
echo "${ECHO_T}no" >&6
 
4018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4019
$as_echo "no" >&6; }
3225
4020
fi
3226
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3227
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3228
 
   { (exit 1); exit 1; }; }
3229
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3230
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3231
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3232
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4021
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4023
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4024
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4025
  $as_echo_n "(cached) " >&6
3233
4026
else
3234
4027
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3235
4028
case `$LD -v 2>&1 </dev/null` in
3241
4034
  ;;
3242
4035
esac
3243
4036
fi
3244
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3245
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4038
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3246
4039
with_gnu_ld=$lt_cv_prog_gnu_ld
3247
4040
 
3248
4041
 
3249
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3250
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3251
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3253
 
else
3254
 
  lt_cv_ld_reload_flag='-r'
3255
 
fi
3256
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3257
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3258
 
reload_flag=$lt_cv_ld_reload_flag
3259
 
case $reload_flag in
3260
 
"" | " "*) ;;
3261
 
*) reload_flag=" $reload_flag" ;;
3262
 
esac
3263
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3264
 
case $host_os in
3265
 
  darwin*)
3266
 
    if test "$GCC" = yes; then
3267
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3268
 
    else
3269
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3270
 
    fi
3271
 
    ;;
3272
 
esac
3273
 
 
3274
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3275
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3276
 
if test "${lt_cv_path_NM+set}" = set; then
3277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4042
 
 
4043
 
 
4044
 
 
4045
 
 
4046
 
 
4047
 
 
4048
 
 
4049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4050
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4051
if ${lt_cv_path_NM+:} false; then :
 
4052
  $as_echo_n "(cached) " >&6
3278
4053
else
3279
4054
  if test -n "$NM"; then
3280
4055
  # Let the user override the test.
3317
4092
    done
3318
4093
    IFS="$lt_save_ifs"
3319
4094
  done
3320
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3321
 
fi
3322
 
fi
3323
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3324
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
3325
 
NM="$lt_cv_path_NM"
3326
 
 
3327
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3328
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4095
  : ${lt_cv_path_NM=no}
 
4096
fi
 
4097
fi
 
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4099
$as_echo "$lt_cv_path_NM" >&6; }
 
4100
if test "$lt_cv_path_NM" != "no"; then
 
4101
  NM="$lt_cv_path_NM"
 
4102
else
 
4103
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4104
  if test -n "$DUMPBIN"; then :
 
4105
    # Let the user override the test.
 
4106
  else
 
4107
    if test -n "$ac_tool_prefix"; then
 
4108
  for ac_prog in dumpbin "link -dump"
 
4109
  do
 
4110
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4111
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4113
$as_echo_n "checking for $ac_word... " >&6; }
 
4114
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4115
  $as_echo_n "(cached) " >&6
 
4116
else
 
4117
  if test -n "$DUMPBIN"; then
 
4118
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4119
else
 
4120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4121
for as_dir in $PATH
 
4122
do
 
4123
  IFS=$as_save_IFS
 
4124
  test -z "$as_dir" && as_dir=.
 
4125
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4126
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4127
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4129
    break 2
 
4130
  fi
 
4131
done
 
4132
  done
 
4133
IFS=$as_save_IFS
 
4134
 
 
4135
fi
 
4136
fi
 
4137
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4138
if test -n "$DUMPBIN"; then
 
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4140
$as_echo "$DUMPBIN" >&6; }
 
4141
else
 
4142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4143
$as_echo "no" >&6; }
 
4144
fi
 
4145
 
 
4146
 
 
4147
    test -n "$DUMPBIN" && break
 
4148
  done
 
4149
fi
 
4150
if test -z "$DUMPBIN"; then
 
4151
  ac_ct_DUMPBIN=$DUMPBIN
 
4152
  for ac_prog in dumpbin "link -dump"
 
4153
do
 
4154
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4155
set dummy $ac_prog; ac_word=$2
 
4156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4157
$as_echo_n "checking for $ac_word... " >&6; }
 
4158
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4159
  $as_echo_n "(cached) " >&6
 
4160
else
 
4161
  if test -n "$ac_ct_DUMPBIN"; then
 
4162
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4163
else
 
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4165
for as_dir in $PATH
 
4166
do
 
4167
  IFS=$as_save_IFS
 
4168
  test -z "$as_dir" && as_dir=.
 
4169
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4171
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4173
    break 2
 
4174
  fi
 
4175
done
 
4176
  done
 
4177
IFS=$as_save_IFS
 
4178
 
 
4179
fi
 
4180
fi
 
4181
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4182
if test -n "$ac_ct_DUMPBIN"; then
 
4183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4184
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4185
else
 
4186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4187
$as_echo "no" >&6; }
 
4188
fi
 
4189
 
 
4190
 
 
4191
  test -n "$ac_ct_DUMPBIN" && break
 
4192
done
 
4193
 
 
4194
  if test "x$ac_ct_DUMPBIN" = x; then
 
4195
    DUMPBIN=":"
 
4196
  else
 
4197
    case $cross_compiling:$ac_tool_warned in
 
4198
yes:)
 
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4201
ac_tool_warned=yes ;;
 
4202
esac
 
4203
    DUMPBIN=$ac_ct_DUMPBIN
 
4204
  fi
 
4205
fi
 
4206
 
 
4207
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4208
    *COFF*)
 
4209
      DUMPBIN="$DUMPBIN -symbols"
 
4210
      ;;
 
4211
    *)
 
4212
      DUMPBIN=:
 
4213
      ;;
 
4214
    esac
 
4215
  fi
 
4216
 
 
4217
  if test "$DUMPBIN" != ":"; then
 
4218
    NM="$DUMPBIN"
 
4219
  fi
 
4220
fi
 
4221
test -z "$NM" && NM=nm
 
4222
 
 
4223
 
 
4224
 
 
4225
 
 
4226
 
 
4227
 
 
4228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4229
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4230
if ${lt_cv_nm_interface+:} false; then :
 
4231
  $as_echo_n "(cached) " >&6
 
4232
else
 
4233
  lt_cv_nm_interface="BSD nm"
 
4234
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4235
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4236
  (eval "$ac_compile" 2>conftest.err)
 
4237
  cat conftest.err >&5
 
4238
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4239
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4240
  cat conftest.err >&5
 
4241
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4242
  cat conftest.out >&5
 
4243
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4244
    lt_cv_nm_interface="MS dumpbin"
 
4245
  fi
 
4246
  rm -f conftest*
 
4247
fi
 
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4249
$as_echo "$lt_cv_nm_interface" >&6; }
 
4250
 
 
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4252
$as_echo_n "checking whether ln -s works... " >&6; }
3329
4253
LN_S=$as_ln_s
3330
4254
if test "$LN_S" = "ln -s"; then
3331
 
  echo "$as_me:$LINENO: result: yes" >&5
3332
 
echo "${ECHO_T}yes" >&6
3333
 
else
3334
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3335
 
echo "${ECHO_T}no, using $LN_S" >&6
3336
 
fi
3337
 
 
3338
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3339
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3340
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
3341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4256
$as_echo "yes" >&6; }
 
4257
else
 
4258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4259
$as_echo "no, using $LN_S" >&6; }
 
4260
fi
 
4261
 
 
4262
# find the maximum length of command line arguments
 
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4264
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4265
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4266
  $as_echo_n "(cached) " >&6
 
4267
else
 
4268
    i=0
 
4269
  teststring="ABCD"
 
4270
 
 
4271
  case $build_os in
 
4272
  msdosdjgpp*)
 
4273
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4274
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4275
    # during glob expansion).  Even if it were fixed, the result of this
 
4276
    # check would be larger than it should be.
 
4277
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4278
    ;;
 
4279
 
 
4280
  gnu*)
 
4281
    # Under GNU Hurd, this test is not required because there is
 
4282
    # no limit to the length of command line arguments.
 
4283
    # Libtool will interpret -1 as no limit whatsoever
 
4284
    lt_cv_sys_max_cmd_len=-1;
 
4285
    ;;
 
4286
 
 
4287
  cygwin* | mingw* | cegcc*)
 
4288
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4289
    # about 5 minutes as the teststring grows exponentially.
 
4290
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4291
    # you end up with a "frozen" computer, even though with patience
 
4292
    # the test eventually succeeds (with a max line length of 256k).
 
4293
    # Instead, let's just punt: use the minimum linelength reported by
 
4294
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4295
    lt_cv_sys_max_cmd_len=8192;
 
4296
    ;;
 
4297
 
 
4298
  mint*)
 
4299
    # On MiNT this can take a long time and run out of memory.
 
4300
    lt_cv_sys_max_cmd_len=8192;
 
4301
    ;;
 
4302
 
 
4303
  amigaos*)
 
4304
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4305
    # So we just punt and use a minimum line length of 8192.
 
4306
    lt_cv_sys_max_cmd_len=8192;
 
4307
    ;;
 
4308
 
 
4309
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4310
    # This has been around since 386BSD, at least.  Likely further.
 
4311
    if test -x /sbin/sysctl; then
 
4312
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4313
    elif test -x /usr/sbin/sysctl; then
 
4314
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4315
    else
 
4316
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4317
    fi
 
4318
    # And add a safety zone
 
4319
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4320
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4321
    ;;
 
4322
 
 
4323
  interix*)
 
4324
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4325
    lt_cv_sys_max_cmd_len=196608
 
4326
    ;;
 
4327
 
 
4328
  osf*)
 
4329
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4330
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4331
    # nice to cause kernel panics so lets avoid the loop below.
 
4332
    # First set a reasonable default.
 
4333
    lt_cv_sys_max_cmd_len=16384
 
4334
    #
 
4335
    if test -x /sbin/sysconfig; then
 
4336
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4337
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4338
      esac
 
4339
    fi
 
4340
    ;;
 
4341
  sco3.2v5*)
 
4342
    lt_cv_sys_max_cmd_len=102400
 
4343
    ;;
 
4344
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4345
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4346
    if test -n "$kargmax"; then
 
4347
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4348
    else
 
4349
      lt_cv_sys_max_cmd_len=32768
 
4350
    fi
 
4351
    ;;
 
4352
  *)
 
4353
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4354
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4355
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4356
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4357
    else
 
4358
      # Make teststring a little bigger before we do anything with it.
 
4359
      # a 1K string should be a reasonable start.
 
4360
      for i in 1 2 3 4 5 6 7 8 ; do
 
4361
        teststring=$teststring$teststring
 
4362
      done
 
4363
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4364
      # If test is not a shell built-in, we'll probably end up computing a
 
4365
      # maximum length that is only half of the actual maximum length, but
 
4366
      # we can't tell.
 
4367
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
4368
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4369
              test $i != 17 # 1/2 MB should be enough
 
4370
      do
 
4371
        i=`expr $i + 1`
 
4372
        teststring=$teststring$teststring
 
4373
      done
 
4374
      # Only check the string length outside the loop.
 
4375
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4376
      teststring=
 
4377
      # Add a significant safety factor because C++ compilers can tack on
 
4378
      # massive amounts of additional arguments before passing them to the
 
4379
      # linker.  It appears as though 1/2 is a usable value.
 
4380
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4381
    fi
 
4382
    ;;
 
4383
  esac
 
4384
 
 
4385
fi
 
4386
 
 
4387
if test -n $lt_cv_sys_max_cmd_len ; then
 
4388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4389
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4390
else
 
4391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4392
$as_echo "none" >&6; }
 
4393
fi
 
4394
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4395
 
 
4396
 
 
4397
 
 
4398
 
 
4399
 
 
4400
 
 
4401
: ${CP="cp -f"}
 
4402
: ${MV="mv -f"}
 
4403
: ${RM="rm -f"}
 
4404
 
 
4405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4406
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4407
# Try some XSI features
 
4408
xsi_shell=no
 
4409
( _lt_dummy="a/b/c"
 
4410
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4411
      = c,a/b,b/c, \
 
4412
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4413
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4414
  && xsi_shell=yes
 
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4416
$as_echo "$xsi_shell" >&6; }
 
4417
 
 
4418
 
 
4419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4420
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4421
lt_shell_append=no
 
4422
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4423
    >/dev/null 2>&1 \
 
4424
  && lt_shell_append=yes
 
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4426
$as_echo "$lt_shell_append" >&6; }
 
4427
 
 
4428
 
 
4429
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4430
  lt_unset=unset
 
4431
else
 
4432
  lt_unset=false
 
4433
fi
 
4434
 
 
4435
 
 
4436
 
 
4437
 
 
4438
 
 
4439
# test EBCDIC or ASCII
 
4440
case `echo X|tr X '\101'` in
 
4441
 A) # ASCII based system
 
4442
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4443
  lt_SP2NL='tr \040 \012'
 
4444
  lt_NL2SP='tr \015\012 \040\040'
 
4445
  ;;
 
4446
 *) # EBCDIC based system
 
4447
  lt_SP2NL='tr \100 \n'
 
4448
  lt_NL2SP='tr \r\n \100\100'
 
4449
  ;;
 
4450
esac
 
4451
 
 
4452
 
 
4453
 
 
4454
 
 
4455
 
 
4456
 
 
4457
 
 
4458
 
 
4459
 
 
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4461
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4462
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4463
  $as_echo_n "(cached) " >&6
 
4464
else
 
4465
  case $host in
 
4466
  *-*-mingw* )
 
4467
    case $build in
 
4468
      *-*-mingw* ) # actually msys
 
4469
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4470
        ;;
 
4471
      *-*-cygwin* )
 
4472
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4473
        ;;
 
4474
      * ) # otherwise, assume *nix
 
4475
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4476
        ;;
 
4477
    esac
 
4478
    ;;
 
4479
  *-*-cygwin* )
 
4480
    case $build in
 
4481
      *-*-mingw* ) # actually msys
 
4482
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4483
        ;;
 
4484
      *-*-cygwin* )
 
4485
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4486
        ;;
 
4487
      * ) # otherwise, assume *nix
 
4488
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4489
        ;;
 
4490
    esac
 
4491
    ;;
 
4492
  * ) # unhandled hosts (and "normal" native builds)
 
4493
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4494
    ;;
 
4495
esac
 
4496
 
 
4497
fi
 
4498
 
 
4499
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4501
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4502
 
 
4503
 
 
4504
 
 
4505
 
 
4506
 
 
4507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4508
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4509
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4510
  $as_echo_n "(cached) " >&6
 
4511
else
 
4512
  #assume ordinary cross tools, or native build.
 
4513
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4514
case $host in
 
4515
  *-*-mingw* )
 
4516
    case $build in
 
4517
      *-*-mingw* ) # actually msys
 
4518
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4519
        ;;
 
4520
    esac
 
4521
    ;;
 
4522
esac
 
4523
 
 
4524
fi
 
4525
 
 
4526
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
4527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
4528
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
4529
 
 
4530
 
 
4531
 
 
4532
 
 
4533
 
 
4534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4535
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4536
if ${lt_cv_ld_reload_flag+:} false; then :
 
4537
  $as_echo_n "(cached) " >&6
 
4538
else
 
4539
  lt_cv_ld_reload_flag='-r'
 
4540
fi
 
4541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4542
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4543
reload_flag=$lt_cv_ld_reload_flag
 
4544
case $reload_flag in
 
4545
"" | " "*) ;;
 
4546
*) reload_flag=" $reload_flag" ;;
 
4547
esac
 
4548
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4549
case $host_os in
 
4550
  cygwin* | mingw* | pw32* | cegcc*)
 
4551
    if test "$GCC" != yes; then
 
4552
      reload_cmds=false
 
4553
    fi
 
4554
    ;;
 
4555
  darwin*)
 
4556
    if test "$GCC" = yes; then
 
4557
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4558
    else
 
4559
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4560
    fi
 
4561
    ;;
 
4562
esac
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
 
 
4568
 
 
4569
 
 
4570
 
 
4571
 
 
4572
if test -n "$ac_tool_prefix"; then
 
4573
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4574
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4576
$as_echo_n "checking for $ac_word... " >&6; }
 
4577
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
4578
  $as_echo_n "(cached) " >&6
 
4579
else
 
4580
  if test -n "$OBJDUMP"; then
 
4581
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4582
else
 
4583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4584
for as_dir in $PATH
 
4585
do
 
4586
  IFS=$as_save_IFS
 
4587
  test -z "$as_dir" && as_dir=.
 
4588
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4590
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4592
    break 2
 
4593
  fi
 
4594
done
 
4595
  done
 
4596
IFS=$as_save_IFS
 
4597
 
 
4598
fi
 
4599
fi
 
4600
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4601
if test -n "$OBJDUMP"; then
 
4602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4603
$as_echo "$OBJDUMP" >&6; }
 
4604
else
 
4605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4606
$as_echo "no" >&6; }
 
4607
fi
 
4608
 
 
4609
 
 
4610
fi
 
4611
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4612
  ac_ct_OBJDUMP=$OBJDUMP
 
4613
  # Extract the first word of "objdump", so it can be a program name with args.
 
4614
set dummy objdump; ac_word=$2
 
4615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4616
$as_echo_n "checking for $ac_word... " >&6; }
 
4617
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
4618
  $as_echo_n "(cached) " >&6
 
4619
else
 
4620
  if test -n "$ac_ct_OBJDUMP"; then
 
4621
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4622
else
 
4623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4624
for as_dir in $PATH
 
4625
do
 
4626
  IFS=$as_save_IFS
 
4627
  test -z "$as_dir" && as_dir=.
 
4628
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4629
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4630
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4631
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4632
    break 2
 
4633
  fi
 
4634
done
 
4635
  done
 
4636
IFS=$as_save_IFS
 
4637
 
 
4638
fi
 
4639
fi
 
4640
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4641
if test -n "$ac_ct_OBJDUMP"; then
 
4642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
4643
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4644
else
 
4645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4646
$as_echo "no" >&6; }
 
4647
fi
 
4648
 
 
4649
  if test "x$ac_ct_OBJDUMP" = x; then
 
4650
    OBJDUMP="false"
 
4651
  else
 
4652
    case $cross_compiling:$ac_tool_warned in
 
4653
yes:)
 
4654
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4655
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4656
ac_tool_warned=yes ;;
 
4657
esac
 
4658
    OBJDUMP=$ac_ct_OBJDUMP
 
4659
  fi
 
4660
else
 
4661
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4662
fi
 
4663
 
 
4664
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
 
 
4670
 
 
4671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
4672
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4673
if ${lt_cv_deplibs_check_method+:} false; then :
 
4674
  $as_echo_n "(cached) " >&6
3342
4675
else
3343
4676
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3344
4677
lt_cv_file_magic_test_file=
3355
4688
# whether `pass_all' will *always* work, you probably want this one.
3356
4689
 
3357
4690
case $host_os in
3358
 
aix4* | aix5*)
 
4691
aix[4-9]*)
3359
4692
  lt_cv_deplibs_check_method=pass_all
3360
4693
  ;;
3361
4694
 
3377
4710
 
3378
4711
mingw* | pw32*)
3379
4712
  # Base MSYS/MinGW do not provide the 'file' command needed by
3380
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3381
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4713
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4714
  # unless we find 'file', for example because we are cross-compiling.
 
4715
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
4716
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
4717
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4718
    lt_cv_file_magic_cmd='func_win32_libid'
 
4719
  else
 
4720
    # Keep this pattern in sync with the one in func_win32_libid.
 
4721
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
4722
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4723
  fi
 
4724
  ;;
 
4725
 
 
4726
cegcc*)
 
4727
  # use the weaker test based on 'objdump'. See mingw*.
 
4728
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3382
4729
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3383
4730
  ;;
3384
4731
 
3386
4733
  lt_cv_deplibs_check_method=pass_all
3387
4734
  ;;
3388
4735
 
3389
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3390
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4736
freebsd* | dragonfly*)
 
4737
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3391
4738
    case $host_cpu in
3392
4739
    i*86 )
3393
4740
      # Not sure whether the presence of OpenBSD here was a mistake.
3406
4753
  lt_cv_deplibs_check_method=pass_all
3407
4754
  ;;
3408
4755
 
 
4756
haiku*)
 
4757
  lt_cv_deplibs_check_method=pass_all
 
4758
  ;;
 
4759
 
3409
4760
hpux10.20* | hpux11*)
3410
4761
  lt_cv_file_magic_cmd=/usr/bin/file
3411
4762
  case $host_cpu in
3414
4765
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3415
4766
    ;;
3416
4767
  hppa*64*)
3417
 
    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]'
 
4768
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
3418
4769
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3419
4770
    ;;
3420
4771
  *)
3421
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4772
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
3422
4773
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3423
4774
    ;;
3424
4775
  esac
3425
4776
  ;;
3426
4777
 
3427
 
interix3*)
 
4778
interix[3-9]*)
3428
4779
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3429
4780
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3430
4781
  ;;
3440
4791
  ;;
3441
4792
 
3442
4793
# This must be Linux ELF.
3443
 
linux*)
 
4794
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3444
4795
  lt_cv_deplibs_check_method=pass_all
3445
4796
  ;;
3446
4797
 
3447
 
netbsd*)
3448
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4798
netbsd* | netbsdelf*-gnu)
 
4799
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3449
4800
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3450
4801
  else
3451
4802
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3458
4809
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3459
4810
  ;;
3460
4811
 
3461
 
nto-qnx*)
3462
 
  lt_cv_deplibs_check_method=unknown
 
4812
*nto* | *qnx*)
 
4813
  lt_cv_deplibs_check_method=pass_all
3463
4814
  ;;
3464
4815
 
3465
4816
openbsd*)
3466
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4817
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3467
4818
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3468
4819
  else
3469
4820
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3474
4825
  lt_cv_deplibs_check_method=pass_all
3475
4826
  ;;
3476
4827
 
 
4828
rdos*)
 
4829
  lt_cv_deplibs_check_method=pass_all
 
4830
  ;;
 
4831
 
3477
4832
solaris*)
3478
4833
  lt_cv_deplibs_check_method=pass_all
3479
4834
  ;;
3480
4835
 
 
4836
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4837
  lt_cv_deplibs_check_method=pass_all
 
4838
  ;;
 
4839
 
3481
4840
sysv4 | sysv4.3*)
3482
4841
  case $host_vendor in
3483
4842
  motorola)
3505
4864
  esac
3506
4865
  ;;
3507
4866
 
3508
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4867
tpf*)
3509
4868
  lt_cv_deplibs_check_method=pass_all
3510
4869
  ;;
3511
4870
esac
3512
4871
 
3513
4872
fi
3514
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3515
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
4874
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4875
 
 
4876
file_magic_glob=
 
4877
want_nocaseglob=no
 
4878
if test "$build" = "$host"; then
 
4879
  case $host_os in
 
4880
  mingw* | pw32*)
 
4881
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4882
      want_nocaseglob=yes
 
4883
    else
 
4884
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
4885
    fi
 
4886
    ;;
 
4887
  esac
 
4888
fi
 
4889
 
3516
4890
file_magic_cmd=$lt_cv_file_magic_cmd
3517
4891
deplibs_check_method=$lt_cv_deplibs_check_method
3518
4892
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3520
4894
 
3521
4895
 
3522
4896
 
3523
 
# If no C compiler was specified, use CC.
3524
 
LTCC=${LTCC-"$CC"}
3525
 
 
3526
 
# If no C compiler flags were specified, use CFLAGS.
3527
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3528
 
 
3529
 
# Allow CC to be a program name with arguments.
3530
 
compiler=$CC
3531
 
 
3532
 
 
3533
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3534
 
if test "${enable_libtool_lock+set}" = set; then
3535
 
  enableval="$enable_libtool_lock"
3536
 
 
3537
 
fi;
3538
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3539
 
 
3540
 
# Some flags need to be propagated to the compiler or linker for good
3541
 
# libtool support.
3542
 
case $host in
3543
 
ia64-*-hpux*)
3544
 
  # Find out which ABI we are using.
3545
 
  echo 'int i;' > conftest.$ac_ext
3546
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547
 
  (eval $ac_compile) 2>&5
3548
 
  ac_status=$?
3549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550
 
  (exit $ac_status); }; then
3551
 
    case `/usr/bin/file conftest.$ac_objext` in
3552
 
    *ELF-32*)
3553
 
      HPUX_IA64_MODE="32"
3554
 
      ;;
3555
 
    *ELF-64*)
3556
 
      HPUX_IA64_MODE="64"
3557
 
      ;;
3558
 
    esac
3559
 
  fi
3560
 
  rm -rf conftest*
3561
 
  ;;
3562
 
*-*-irix6*)
3563
 
  # Find out which ABI we are using.
3564
 
  echo '#line 3564 "configure"' > conftest.$ac_ext
3565
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566
 
  (eval $ac_compile) 2>&5
3567
 
  ac_status=$?
3568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
 
  (exit $ac_status); }; then
3570
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
3571
 
    case `/usr/bin/file conftest.$ac_objext` in
3572
 
    *32-bit*)
3573
 
      LD="${LD-ld} -melf32bsmip"
3574
 
      ;;
3575
 
    *N32*)
3576
 
      LD="${LD-ld} -melf32bmipn32"
3577
 
      ;;
3578
 
    *64-bit*)
3579
 
      LD="${LD-ld} -melf64bmip"
3580
 
      ;;
3581
 
    esac
3582
 
   else
3583
 
    case `/usr/bin/file conftest.$ac_objext` in
3584
 
    *32-bit*)
3585
 
      LD="${LD-ld} -32"
3586
 
      ;;
3587
 
    *N32*)
3588
 
      LD="${LD-ld} -n32"
3589
 
      ;;
3590
 
    *64-bit*)
3591
 
      LD="${LD-ld} -64"
3592
 
      ;;
3593
 
    esac
3594
 
   fi
3595
 
  fi
3596
 
  rm -rf conftest*
3597
 
  ;;
3598
 
 
3599
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3600
 
  # Find out which ABI we are using.
3601
 
  echo 'int i;' > conftest.$ac_ext
3602
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603
 
  (eval $ac_compile) 2>&5
3604
 
  ac_status=$?
3605
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606
 
  (exit $ac_status); }; then
3607
 
    case `/usr/bin/file conftest.o` in
3608
 
    *32-bit*)
3609
 
      case $host in
3610
 
        x86_64-*linux*)
3611
 
          LD="${LD-ld} -m elf_i386"
3612
 
          ;;
3613
 
        ppc64-*linux*|powerpc64-*linux*)
3614
 
          LD="${LD-ld} -m elf32ppclinux"
3615
 
          ;;
3616
 
        s390x-*linux*)
3617
 
          LD="${LD-ld} -m elf_s390"
3618
 
          ;;
3619
 
        sparc64-*linux*)
3620
 
          LD="${LD-ld} -m elf32_sparc"
3621
 
          ;;
3622
 
      esac
3623
 
      ;;
3624
 
    *64-bit*)
3625
 
      case $host in
3626
 
        x86_64-*linux*)
3627
 
          LD="${LD-ld} -m elf_x86_64"
3628
 
          ;;
3629
 
        ppc*-*linux*|powerpc*-*linux*)
3630
 
          LD="${LD-ld} -m elf64ppc"
3631
 
          ;;
3632
 
        s390*-*linux*)
3633
 
          LD="${LD-ld} -m elf64_s390"
3634
 
          ;;
3635
 
        sparc*-*linux*)
3636
 
          LD="${LD-ld} -m elf64_sparc"
3637
 
          ;;
3638
 
      esac
3639
 
      ;;
3640
 
    esac
3641
 
  fi
3642
 
  rm -rf conftest*
3643
 
  ;;
3644
 
 
3645
 
*-*-sco3.2v5*)
3646
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3647
 
  SAVE_CFLAGS="$CFLAGS"
3648
 
  CFLAGS="$CFLAGS -belf"
3649
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3650
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3651
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
3652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3653
 
else
3654
 
  ac_ext=c
3655
 
ac_cpp='$CPP $CPPFLAGS'
3656
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
 
 
3660
 
     cat >conftest.$ac_ext <<_ACEOF
3661
 
/* confdefs.h.  */
3662
 
_ACEOF
3663
 
cat confdefs.h >>conftest.$ac_ext
3664
 
cat >>conftest.$ac_ext <<_ACEOF
3665
 
/* end confdefs.h.  */
3666
 
 
3667
 
int
3668
 
main ()
3669
 
{
3670
 
 
3671
 
  ;
3672
 
  return 0;
3673
 
}
3674
 
_ACEOF
3675
 
rm -f conftest.$ac_objext conftest$ac_exeext
3676
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677
 
  (eval $ac_link) 2>conftest.er1
3678
 
  ac_status=$?
3679
 
  grep -v '^ *+' conftest.er1 >conftest.err
3680
 
  rm -f conftest.er1
3681
 
  cat conftest.err >&5
3682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683
 
  (exit $ac_status); } &&
3684
 
         { ac_try='test -z "$ac_c_werror_flag"
3685
 
                         || test ! -s conftest.err'
3686
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687
 
  (eval $ac_try) 2>&5
3688
 
  ac_status=$?
3689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
 
  (exit $ac_status); }; } &&
3691
 
         { ac_try='test -s conftest$ac_exeext'
3692
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693
 
  (eval $ac_try) 2>&5
3694
 
  ac_status=$?
3695
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696
 
  (exit $ac_status); }; }; then
3697
 
  lt_cv_cc_needs_belf=yes
3698
 
else
3699
 
  echo "$as_me: failed program was:" >&5
3700
 
sed 's/^/| /' conftest.$ac_ext >&5
3701
 
 
3702
 
lt_cv_cc_needs_belf=no
3703
 
fi
3704
 
rm -f conftest.err conftest.$ac_objext \
3705
 
      conftest$ac_exeext conftest.$ac_ext
3706
 
     ac_ext=c
3707
 
ac_cpp='$CPP $CPPFLAGS'
3708
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
 
 
3712
 
fi
3713
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3714
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3715
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3716
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3717
 
    CFLAGS="$SAVE_CFLAGS"
3718
 
  fi
3719
 
  ;;
3720
 
sparc*-*solaris*)
3721
 
  # Find out which ABI we are using.
3722
 
  echo 'int i;' > conftest.$ac_ext
3723
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724
 
  (eval $ac_compile) 2>&5
3725
 
  ac_status=$?
3726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
 
  (exit $ac_status); }; then
3728
 
    case `/usr/bin/file conftest.o` in
3729
 
    *64-bit*)
3730
 
      case $lt_cv_prog_gnu_ld in
3731
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3732
 
      *)    LD="${LD-ld} -64" ;;
3733
 
      esac
3734
 
      ;;
3735
 
    esac
3736
 
  fi
3737
 
  rm -rf conftest*
3738
 
  ;;
3739
 
 
3740
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3741
 
  if test -n "$ac_tool_prefix"; then
 
4897
 
 
4898
 
 
4899
 
 
4900
 
 
4901
 
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
 
 
4912
 
 
4913
 
 
4914
 
 
4915
if test -n "$ac_tool_prefix"; then
3742
4916
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3743
4917
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3744
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3745
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3747
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4919
$as_echo_n "checking for $ac_word... " >&6; }
 
4920
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
4921
  $as_echo_n "(cached) " >&6
3748
4922
else
3749
4923
  if test -n "$DLLTOOL"; then
3750
4924
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3754
4928
do
3755
4929
  IFS=$as_save_IFS
3756
4930
  test -z "$as_dir" && as_dir=.
3757
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3758
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4931
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4932
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759
4933
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3760
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4934
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761
4935
    break 2
3762
4936
  fi
3763
4937
done
3764
 
done
 
4938
  done
 
4939
IFS=$as_save_IFS
3765
4940
 
3766
4941
fi
3767
4942
fi
3768
4943
DLLTOOL=$ac_cv_prog_DLLTOOL
3769
4944
if test -n "$DLLTOOL"; then
3770
 
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3771
 
echo "${ECHO_T}$DLLTOOL" >&6
 
4945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
4946
$as_echo "$DLLTOOL" >&6; }
3772
4947
else
3773
 
  echo "$as_me:$LINENO: result: no" >&5
3774
 
echo "${ECHO_T}no" >&6
 
4948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4949
$as_echo "no" >&6; }
3775
4950
fi
 
4951
 
3776
4952
 
3777
4953
fi
3778
4954
if test -z "$ac_cv_prog_DLLTOOL"; then
3779
4955
  ac_ct_DLLTOOL=$DLLTOOL
3780
4956
  # Extract the first word of "dlltool", so it can be a program name with args.
3781
4957
set dummy dlltool; ac_word=$2
3782
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3783
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3785
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4959
$as_echo_n "checking for $ac_word... " >&6; }
 
4960
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
4961
  $as_echo_n "(cached) " >&6
3786
4962
else
3787
4963
  if test -n "$ac_ct_DLLTOOL"; then
3788
4964
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3792
4968
do
3793
4969
  IFS=$as_save_IFS
3794
4970
  test -z "$as_dir" && as_dir=.
3795
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3796
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4971
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797
4973
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3798
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4974
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799
4975
    break 2
3800
4976
  fi
3801
4977
done
3802
 
done
 
4978
  done
 
4979
IFS=$as_save_IFS
3803
4980
 
3804
 
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3805
4981
fi
3806
4982
fi
3807
4983
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3808
4984
if test -n "$ac_ct_DLLTOOL"; then
3809
 
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3810
 
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
4986
$as_echo "$ac_ct_DLLTOOL" >&6; }
3811
4987
else
3812
 
  echo "$as_me:$LINENO: result: no" >&5
3813
 
echo "${ECHO_T}no" >&6
 
4988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4989
$as_echo "no" >&6; }
3814
4990
fi
3815
4991
 
3816
 
  DLLTOOL=$ac_ct_DLLTOOL
 
4992
  if test "x$ac_ct_DLLTOOL" = x; then
 
4993
    DLLTOOL="false"
 
4994
  else
 
4995
    case $cross_compiling:$ac_tool_warned in
 
4996
yes:)
 
4997
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4998
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4999
ac_tool_warned=yes ;;
 
5000
esac
 
5001
    DLLTOOL=$ac_ct_DLLTOOL
 
5002
  fi
3817
5003
else
3818
5004
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3819
5005
fi
3820
5006
 
3821
 
  if test -n "$ac_tool_prefix"; then
3822
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3823
 
set dummy ${ac_tool_prefix}as; ac_word=$2
3824
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3825
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826
 
if test "${ac_cv_prog_AS+set}" = set; then
3827
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3828
 
else
3829
 
  if test -n "$AS"; then
3830
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
3831
 
else
3832
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833
 
for as_dir in $PATH
3834
 
do
3835
 
  IFS=$as_save_IFS
3836
 
  test -z "$as_dir" && as_dir=.
3837
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3838
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
3840
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841
 
    break 2
3842
 
  fi
3843
 
done
3844
 
done
3845
 
 
3846
 
fi
3847
 
fi
3848
 
AS=$ac_cv_prog_AS
3849
 
if test -n "$AS"; then
3850
 
  echo "$as_me:$LINENO: result: $AS" >&5
3851
 
echo "${ECHO_T}$AS" >&6
3852
 
else
3853
 
  echo "$as_me:$LINENO: result: no" >&5
3854
 
echo "${ECHO_T}no" >&6
3855
 
fi
3856
 
 
3857
 
fi
3858
 
if test -z "$ac_cv_prog_AS"; then
3859
 
  ac_ct_AS=$AS
3860
 
  # Extract the first word of "as", so it can be a program name with args.
3861
 
set dummy as; ac_word=$2
3862
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3863
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3865
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3866
 
else
3867
 
  if test -n "$ac_ct_AS"; then
3868
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3869
 
else
3870
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871
 
for as_dir in $PATH
3872
 
do
3873
 
  IFS=$as_save_IFS
3874
 
  test -z "$as_dir" && as_dir=.
3875
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3876
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877
 
    ac_cv_prog_ac_ct_AS="as"
3878
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879
 
    break 2
3880
 
  fi
3881
 
done
3882
 
done
3883
 
 
3884
 
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3885
 
fi
3886
 
fi
3887
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3888
 
if test -n "$ac_ct_AS"; then
3889
 
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3890
 
echo "${ECHO_T}$ac_ct_AS" >&6
3891
 
else
3892
 
  echo "$as_me:$LINENO: result: no" >&5
3893
 
echo "${ECHO_T}no" >&6
3894
 
fi
3895
 
 
3896
 
  AS=$ac_ct_AS
3897
 
else
3898
 
  AS="$ac_cv_prog_AS"
3899
 
fi
3900
 
 
3901
 
  if test -n "$ac_tool_prefix"; then
3902
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3903
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3904
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3905
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3907
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3908
 
else
3909
 
  if test -n "$OBJDUMP"; then
3910
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3911
 
else
3912
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913
 
for as_dir in $PATH
3914
 
do
3915
 
  IFS=$as_save_IFS
3916
 
  test -z "$as_dir" && as_dir=.
3917
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3918
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3920
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921
 
    break 2
3922
 
  fi
3923
 
done
3924
 
done
3925
 
 
3926
 
fi
3927
 
fi
3928
 
OBJDUMP=$ac_cv_prog_OBJDUMP
3929
 
if test -n "$OBJDUMP"; then
3930
 
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3931
 
echo "${ECHO_T}$OBJDUMP" >&6
3932
 
else
3933
 
  echo "$as_me:$LINENO: result: no" >&5
3934
 
echo "${ECHO_T}no" >&6
3935
 
fi
3936
 
 
3937
 
fi
3938
 
if test -z "$ac_cv_prog_OBJDUMP"; then
3939
 
  ac_ct_OBJDUMP=$OBJDUMP
3940
 
  # Extract the first word of "objdump", so it can be a program name with args.
3941
 
set dummy objdump; ac_word=$2
3942
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3943
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3945
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3946
 
else
3947
 
  if test -n "$ac_ct_OBJDUMP"; then
3948
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3949
 
else
3950
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951
 
for as_dir in $PATH
3952
 
do
3953
 
  IFS=$as_save_IFS
3954
 
  test -z "$as_dir" && as_dir=.
3955
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3956
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3958
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959
 
    break 2
3960
 
  fi
3961
 
done
3962
 
done
3963
 
 
3964
 
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3965
 
fi
3966
 
fi
3967
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3968
 
if test -n "$ac_ct_OBJDUMP"; then
3969
 
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3970
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3971
 
else
3972
 
  echo "$as_me:$LINENO: result: no" >&5
3973
 
echo "${ECHO_T}no" >&6
3974
 
fi
3975
 
 
3976
 
  OBJDUMP=$ac_ct_OBJDUMP
3977
 
else
3978
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3979
 
fi
3980
 
 
3981
 
  ;;
3982
 
 
3983
 
esac
3984
 
 
3985
 
need_locks="$enable_libtool_lock"
3986
 
 
3987
 
 
3988
 
ac_ext=c
3989
 
ac_cpp='$CPP $CPPFLAGS'
3990
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3994
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3995
 
# On Suns, sometimes $CPP names a directory.
3996
 
if test -n "$CPP" && test -d "$CPP"; then
3997
 
  CPP=
3998
 
fi
3999
 
if test -z "$CPP"; then
4000
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4001
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4002
 
else
4003
 
      # Double quotes because CPP needs to be expanded
4004
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4005
 
    do
4006
 
      ac_preproc_ok=false
4007
 
for ac_c_preproc_warn_flag in '' yes
4008
 
do
4009
 
  # Use a header file that comes with gcc, so configuring glibc
4010
 
  # with a fresh cross-compiler works.
4011
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012
 
  # <limits.h> exists even on freestanding compilers.
4013
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4014
 
  # not just through cpp. "Syntax error" is here to catch this case.
4015
 
  cat >conftest.$ac_ext <<_ACEOF
4016
 
/* confdefs.h.  */
4017
 
_ACEOF
4018
 
cat confdefs.h >>conftest.$ac_ext
4019
 
cat >>conftest.$ac_ext <<_ACEOF
4020
 
/* end confdefs.h.  */
4021
 
#ifdef __STDC__
4022
 
# include <limits.h>
4023
 
#else
4024
 
# include <assert.h>
4025
 
#endif
4026
 
                     Syntax error
4027
 
_ACEOF
4028
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030
 
  ac_status=$?
4031
 
  grep -v '^ *+' conftest.er1 >conftest.err
4032
 
  rm -f conftest.er1
4033
 
  cat conftest.err >&5
4034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035
 
  (exit $ac_status); } >/dev/null; then
4036
 
  if test -s conftest.err; then
4037
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4038
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039
 
  else
4040
 
    ac_cpp_err=
4041
 
  fi
4042
 
else
4043
 
  ac_cpp_err=yes
4044
 
fi
4045
 
if test -z "$ac_cpp_err"; then
4046
 
  :
4047
 
else
4048
 
  echo "$as_me: failed program was:" >&5
4049
 
sed 's/^/| /' conftest.$ac_ext >&5
4050
 
 
4051
 
  # Broken: fails on valid input.
4052
 
continue
4053
 
fi
4054
 
rm -f conftest.err conftest.$ac_ext
4055
 
 
4056
 
  # OK, works on sane cases.  Now check whether non-existent headers
4057
 
  # can be detected and how.
4058
 
  cat >conftest.$ac_ext <<_ACEOF
4059
 
/* confdefs.h.  */
4060
 
_ACEOF
4061
 
cat confdefs.h >>conftest.$ac_ext
4062
 
cat >>conftest.$ac_ext <<_ACEOF
4063
 
/* end confdefs.h.  */
4064
 
#include <ac_nonexistent.h>
4065
 
_ACEOF
4066
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068
 
  ac_status=$?
4069
 
  grep -v '^ *+' conftest.er1 >conftest.err
4070
 
  rm -f conftest.er1
4071
 
  cat conftest.err >&5
4072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
 
  (exit $ac_status); } >/dev/null; then
4074
 
  if test -s conftest.err; then
4075
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4076
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077
 
  else
4078
 
    ac_cpp_err=
4079
 
  fi
4080
 
else
4081
 
  ac_cpp_err=yes
4082
 
fi
4083
 
if test -z "$ac_cpp_err"; then
4084
 
  # Broken: success on invalid input.
4085
 
continue
4086
 
else
4087
 
  echo "$as_me: failed program was:" >&5
4088
 
sed 's/^/| /' conftest.$ac_ext >&5
4089
 
 
4090
 
  # Passes both tests.
4091
 
ac_preproc_ok=:
4092
 
break
4093
 
fi
4094
 
rm -f conftest.err conftest.$ac_ext
4095
 
 
4096
 
done
4097
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098
 
rm -f conftest.err conftest.$ac_ext
4099
 
if $ac_preproc_ok; then
4100
 
  break
4101
 
fi
4102
 
 
4103
 
    done
4104
 
    ac_cv_prog_CPP=$CPP
4105
 
 
4106
 
fi
4107
 
  CPP=$ac_cv_prog_CPP
4108
 
else
4109
 
  ac_cv_prog_CPP=$CPP
4110
 
fi
4111
 
echo "$as_me:$LINENO: result: $CPP" >&5
4112
 
echo "${ECHO_T}$CPP" >&6
4113
 
ac_preproc_ok=false
4114
 
for ac_c_preproc_warn_flag in '' yes
4115
 
do
4116
 
  # Use a header file that comes with gcc, so configuring glibc
4117
 
  # with a fresh cross-compiler works.
4118
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119
 
  # <limits.h> exists even on freestanding compilers.
4120
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4121
 
  # not just through cpp. "Syntax error" is here to catch this case.
4122
 
  cat >conftest.$ac_ext <<_ACEOF
4123
 
/* confdefs.h.  */
4124
 
_ACEOF
4125
 
cat confdefs.h >>conftest.$ac_ext
4126
 
cat >>conftest.$ac_ext <<_ACEOF
4127
 
/* end confdefs.h.  */
4128
 
#ifdef __STDC__
4129
 
# include <limits.h>
4130
 
#else
4131
 
# include <assert.h>
4132
 
#endif
4133
 
                     Syntax error
4134
 
_ACEOF
4135
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4136
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4137
 
  ac_status=$?
4138
 
  grep -v '^ *+' conftest.er1 >conftest.err
4139
 
  rm -f conftest.er1
4140
 
  cat conftest.err >&5
4141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142
 
  (exit $ac_status); } >/dev/null; then
4143
 
  if test -s conftest.err; then
4144
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4145
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4146
 
  else
4147
 
    ac_cpp_err=
4148
 
  fi
4149
 
else
4150
 
  ac_cpp_err=yes
4151
 
fi
4152
 
if test -z "$ac_cpp_err"; then
4153
 
  :
4154
 
else
4155
 
  echo "$as_me: failed program was:" >&5
4156
 
sed 's/^/| /' conftest.$ac_ext >&5
4157
 
 
4158
 
  # Broken: fails on valid input.
4159
 
continue
4160
 
fi
4161
 
rm -f conftest.err conftest.$ac_ext
4162
 
 
4163
 
  # OK, works on sane cases.  Now check whether non-existent headers
4164
 
  # can be detected and how.
4165
 
  cat >conftest.$ac_ext <<_ACEOF
4166
 
/* confdefs.h.  */
4167
 
_ACEOF
4168
 
cat confdefs.h >>conftest.$ac_ext
4169
 
cat >>conftest.$ac_ext <<_ACEOF
4170
 
/* end confdefs.h.  */
4171
 
#include <ac_nonexistent.h>
4172
 
_ACEOF
4173
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4174
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4175
 
  ac_status=$?
4176
 
  grep -v '^ *+' conftest.er1 >conftest.err
4177
 
  rm -f conftest.er1
4178
 
  cat conftest.err >&5
4179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
 
  (exit $ac_status); } >/dev/null; then
4181
 
  if test -s conftest.err; then
4182
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4183
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4184
 
  else
4185
 
    ac_cpp_err=
4186
 
  fi
4187
 
else
4188
 
  ac_cpp_err=yes
4189
 
fi
4190
 
if test -z "$ac_cpp_err"; then
4191
 
  # Broken: success on invalid input.
4192
 
continue
4193
 
else
4194
 
  echo "$as_me: failed program was:" >&5
4195
 
sed 's/^/| /' conftest.$ac_ext >&5
4196
 
 
4197
 
  # Passes both tests.
4198
 
ac_preproc_ok=:
4199
 
break
4200
 
fi
4201
 
rm -f conftest.err conftest.$ac_ext
4202
 
 
4203
 
done
4204
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205
 
rm -f conftest.err conftest.$ac_ext
4206
 
if $ac_preproc_ok; then
4207
 
  :
4208
 
else
4209
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4210
 
See \`config.log' for more details." >&5
4211
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4212
 
See \`config.log' for more details." >&2;}
4213
 
   { (exit 1); exit 1; }; }
4214
 
fi
4215
 
 
4216
 
ac_ext=c
4217
 
ac_cpp='$CPP $CPPFLAGS'
4218
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
 
 
4222
 
 
4223
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4224
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4225
 
if test "${ac_cv_header_stdc+set}" = set; then
4226
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4227
 
else
4228
 
  cat >conftest.$ac_ext <<_ACEOF
4229
 
/* confdefs.h.  */
4230
 
_ACEOF
4231
 
cat confdefs.h >>conftest.$ac_ext
4232
 
cat >>conftest.$ac_ext <<_ACEOF
4233
 
/* end confdefs.h.  */
4234
 
#include <stdlib.h>
4235
 
#include <stdarg.h>
4236
 
#include <string.h>
4237
 
#include <float.h>
4238
 
 
4239
 
int
4240
 
main ()
4241
 
{
4242
 
 
4243
 
  ;
4244
 
  return 0;
4245
 
}
4246
 
_ACEOF
4247
 
rm -f conftest.$ac_objext
4248
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
 
  (eval $ac_compile) 2>conftest.er1
4250
 
  ac_status=$?
4251
 
  grep -v '^ *+' conftest.er1 >conftest.err
4252
 
  rm -f conftest.er1
4253
 
  cat conftest.err >&5
4254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
 
  (exit $ac_status); } &&
4256
 
         { ac_try='test -z "$ac_c_werror_flag"
4257
 
                         || test ! -s conftest.err'
4258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259
 
  (eval $ac_try) 2>&5
4260
 
  ac_status=$?
4261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
 
  (exit $ac_status); }; } &&
4263
 
         { ac_try='test -s conftest.$ac_objext'
4264
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265
 
  (eval $ac_try) 2>&5
4266
 
  ac_status=$?
4267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
 
  (exit $ac_status); }; }; then
4269
 
  ac_cv_header_stdc=yes
4270
 
else
4271
 
  echo "$as_me: failed program was:" >&5
4272
 
sed 's/^/| /' conftest.$ac_ext >&5
4273
 
 
4274
 
ac_cv_header_stdc=no
4275
 
fi
4276
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277
 
 
4278
 
if test $ac_cv_header_stdc = yes; then
4279
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4280
 
  cat >conftest.$ac_ext <<_ACEOF
4281
 
/* confdefs.h.  */
4282
 
_ACEOF
4283
 
cat confdefs.h >>conftest.$ac_ext
4284
 
cat >>conftest.$ac_ext <<_ACEOF
4285
 
/* end confdefs.h.  */
4286
 
#include <string.h>
4287
 
 
4288
 
_ACEOF
4289
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290
 
  $EGREP "memchr" >/dev/null 2>&1; then
4291
 
  :
4292
 
else
4293
 
  ac_cv_header_stdc=no
4294
 
fi
4295
 
rm -f conftest*
4296
 
 
4297
 
fi
4298
 
 
4299
 
if test $ac_cv_header_stdc = yes; then
4300
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301
 
  cat >conftest.$ac_ext <<_ACEOF
4302
 
/* confdefs.h.  */
4303
 
_ACEOF
4304
 
cat confdefs.h >>conftest.$ac_ext
4305
 
cat >>conftest.$ac_ext <<_ACEOF
4306
 
/* end confdefs.h.  */
4307
 
#include <stdlib.h>
4308
 
 
4309
 
_ACEOF
4310
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311
 
  $EGREP "free" >/dev/null 2>&1; then
4312
 
  :
4313
 
else
4314
 
  ac_cv_header_stdc=no
4315
 
fi
4316
 
rm -f conftest*
4317
 
 
4318
 
fi
4319
 
 
4320
 
if test $ac_cv_header_stdc = yes; then
4321
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4322
 
  if test "$cross_compiling" = yes; then
4323
 
  :
4324
 
else
4325
 
  cat >conftest.$ac_ext <<_ACEOF
4326
 
/* confdefs.h.  */
4327
 
_ACEOF
4328
 
cat confdefs.h >>conftest.$ac_ext
4329
 
cat >>conftest.$ac_ext <<_ACEOF
4330
 
/* end confdefs.h.  */
4331
 
#include <ctype.h>
4332
 
#if ((' ' & 0x0FF) == 0x020)
4333
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4334
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4335
 
#else
4336
 
# define ISLOWER(c) \
4337
 
                   (('a' <= (c) && (c) <= 'i') \
4338
 
                     || ('j' <= (c) && (c) <= 'r') \
4339
 
                     || ('s' <= (c) && (c) <= 'z'))
4340
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4341
 
#endif
4342
 
 
4343
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4344
 
int
4345
 
main ()
4346
 
{
4347
 
  int i;
4348
 
  for (i = 0; i < 256; i++)
4349
 
    if (XOR (islower (i), ISLOWER (i))
4350
 
        || toupper (i) != TOUPPER (i))
4351
 
      exit(2);
4352
 
  exit (0);
4353
 
}
4354
 
_ACEOF
4355
 
rm -f conftest$ac_exeext
4356
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357
 
  (eval $ac_link) 2>&5
4358
 
  ac_status=$?
4359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362
 
  (eval $ac_try) 2>&5
4363
 
  ac_status=$?
4364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
 
  (exit $ac_status); }; }; then
4366
 
  :
4367
 
else
4368
 
  echo "$as_me: program exited with status $ac_status" >&5
4369
 
echo "$as_me: failed program was:" >&5
4370
 
sed 's/^/| /' conftest.$ac_ext >&5
4371
 
 
4372
 
( exit $ac_status )
4373
 
ac_cv_header_stdc=no
4374
 
fi
4375
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4376
 
fi
4377
 
fi
4378
 
fi
4379
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4380
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4381
 
if test $ac_cv_header_stdc = yes; then
4382
 
 
4383
 
cat >>confdefs.h <<\_ACEOF
4384
 
#define STDC_HEADERS 1
4385
 
_ACEOF
4386
 
 
4387
 
fi
4388
 
 
4389
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390
 
 
4391
 
 
4392
 
 
4393
 
 
4394
 
 
4395
 
 
4396
 
 
4397
 
 
4398
 
 
4399
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400
 
                  inttypes.h stdint.h unistd.h
4401
 
do
4402
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4404
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4405
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4407
 
else
4408
 
  cat >conftest.$ac_ext <<_ACEOF
4409
 
/* confdefs.h.  */
4410
 
_ACEOF
4411
 
cat confdefs.h >>conftest.$ac_ext
4412
 
cat >>conftest.$ac_ext <<_ACEOF
4413
 
/* end confdefs.h.  */
4414
 
$ac_includes_default
4415
 
 
4416
 
#include <$ac_header>
4417
 
_ACEOF
4418
 
rm -f conftest.$ac_objext
4419
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420
 
  (eval $ac_compile) 2>conftest.er1
4421
 
  ac_status=$?
4422
 
  grep -v '^ *+' conftest.er1 >conftest.err
4423
 
  rm -f conftest.er1
4424
 
  cat conftest.err >&5
4425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
 
  (exit $ac_status); } &&
4427
 
         { ac_try='test -z "$ac_c_werror_flag"
4428
 
                         || test ! -s conftest.err'
4429
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430
 
  (eval $ac_try) 2>&5
4431
 
  ac_status=$?
4432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433
 
  (exit $ac_status); }; } &&
4434
 
         { ac_try='test -s conftest.$ac_objext'
4435
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436
 
  (eval $ac_try) 2>&5
4437
 
  ac_status=$?
4438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
 
  (exit $ac_status); }; }; then
4440
 
  eval "$as_ac_Header=yes"
4441
 
else
4442
 
  echo "$as_me: failed program was:" >&5
4443
 
sed 's/^/| /' conftest.$ac_ext >&5
4444
 
 
4445
 
eval "$as_ac_Header=no"
4446
 
fi
4447
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448
 
fi
4449
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4450
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452
 
  cat >>confdefs.h <<_ACEOF
4453
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454
 
_ACEOF
4455
 
 
4456
 
fi
4457
 
 
4458
 
done
4459
 
 
4460
 
 
4461
 
 
4462
 
for ac_header in dlfcn.h
4463
 
do
4464
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4465
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4466
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4467
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4470
 
fi
4471
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4473
 
else
4474
 
  # Is the header compilable?
4475
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4476
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4477
 
cat >conftest.$ac_ext <<_ACEOF
4478
 
/* confdefs.h.  */
4479
 
_ACEOF
4480
 
cat confdefs.h >>conftest.$ac_ext
4481
 
cat >>conftest.$ac_ext <<_ACEOF
4482
 
/* end confdefs.h.  */
4483
 
$ac_includes_default
4484
 
#include <$ac_header>
4485
 
_ACEOF
4486
 
rm -f conftest.$ac_objext
4487
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488
 
  (eval $ac_compile) 2>conftest.er1
4489
 
  ac_status=$?
4490
 
  grep -v '^ *+' conftest.er1 >conftest.err
4491
 
  rm -f conftest.er1
4492
 
  cat conftest.err >&5
4493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
 
  (exit $ac_status); } &&
4495
 
         { ac_try='test -z "$ac_c_werror_flag"
4496
 
                         || test ! -s conftest.err'
4497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498
 
  (eval $ac_try) 2>&5
4499
 
  ac_status=$?
4500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501
 
  (exit $ac_status); }; } &&
4502
 
         { ac_try='test -s conftest.$ac_objext'
4503
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504
 
  (eval $ac_try) 2>&5
4505
 
  ac_status=$?
4506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507
 
  (exit $ac_status); }; }; then
4508
 
  ac_header_compiler=yes
4509
 
else
4510
 
  echo "$as_me: failed program was:" >&5
4511
 
sed 's/^/| /' conftest.$ac_ext >&5
4512
 
 
4513
 
ac_header_compiler=no
4514
 
fi
4515
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4516
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4517
 
echo "${ECHO_T}$ac_header_compiler" >&6
4518
 
 
4519
 
# Is the header present?
4520
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4521
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4522
 
cat >conftest.$ac_ext <<_ACEOF
4523
 
/* confdefs.h.  */
4524
 
_ACEOF
4525
 
cat confdefs.h >>conftest.$ac_ext
4526
 
cat >>conftest.$ac_ext <<_ACEOF
4527
 
/* end confdefs.h.  */
4528
 
#include <$ac_header>
4529
 
_ACEOF
4530
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531
 
  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4538
 
  if test -s conftest.err; then
4539
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4540
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4541
 
  else
4542
 
    ac_cpp_err=
4543
 
  fi
4544
 
else
4545
 
  ac_cpp_err=yes
4546
 
fi
4547
 
if test -z "$ac_cpp_err"; then
4548
 
  ac_header_preproc=yes
4549
 
else
4550
 
  echo "$as_me: failed program was:" >&5
4551
 
sed 's/^/| /' conftest.$ac_ext >&5
4552
 
 
4553
 
  ac_header_preproc=no
4554
 
fi
4555
 
rm -f conftest.err conftest.$ac_ext
4556
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4557
 
echo "${ECHO_T}$ac_header_preproc" >&6
4558
 
 
4559
 
# So?  What about this header?
4560
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4561
 
  yes:no: )
4562
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4563
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4564
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4565
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4566
 
    ac_header_preproc=yes
4567
 
    ;;
4568
 
  no:yes:* )
4569
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4570
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4571
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4572
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4573
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4574
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4575
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4576
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4577
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4579
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4580
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4581
 
    (
4582
 
      cat <<\_ASBOX
4583
 
## -------------------------------------- ##
4584
 
## Report this to expat-bugs@libexpat.org ##
4585
 
## -------------------------------------- ##
4586
 
_ASBOX
4587
 
    ) |
4588
 
      sed "s/^/$as_me: WARNING:     /" >&2
4589
 
    ;;
4590
 
esac
4591
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4592
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4595
 
else
4596
 
  eval "$as_ac_Header=\$ac_header_preproc"
4597
 
fi
4598
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600
 
 
4601
 
fi
4602
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603
 
  cat >>confdefs.h <<_ACEOF
4604
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605
 
_ACEOF
4606
 
 
4607
 
fi
4608
 
 
4609
 
done
4610
 
 
4611
 
ac_ext=cc
4612
 
ac_cpp='$CXXCPP $CPPFLAGS'
4613
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616
 
if test -n "$ac_tool_prefix"; then
4617
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4618
 
  do
4619
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4622
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623
 
if test "${ac_cv_prog_CXX+set}" = set; then
4624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4625
 
else
4626
 
  if test -n "$CXX"; then
4627
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4628
 
else
4629
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630
 
for as_dir in $PATH
4631
 
do
4632
 
  IFS=$as_save_IFS
4633
 
  test -z "$as_dir" && as_dir=.
4634
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4635
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4637
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638
 
    break 2
4639
 
  fi
4640
 
done
4641
 
done
4642
 
 
4643
 
fi
4644
 
fi
4645
 
CXX=$ac_cv_prog_CXX
4646
 
if test -n "$CXX"; then
4647
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4648
 
echo "${ECHO_T}$CXX" >&6
4649
 
else
4650
 
  echo "$as_me:$LINENO: result: no" >&5
4651
 
echo "${ECHO_T}no" >&6
4652
 
fi
4653
 
 
4654
 
    test -n "$CXX" && break
4655
 
  done
4656
 
fi
4657
 
if test -z "$CXX"; then
4658
 
  ac_ct_CXX=$CXX
4659
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4660
 
do
4661
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4662
 
set dummy $ac_prog; ac_word=$2
4663
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4664
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4666
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4667
 
else
4668
 
  if test -n "$ac_ct_CXX"; then
4669
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4670
 
else
4671
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672
 
for as_dir in $PATH
4673
 
do
4674
 
  IFS=$as_save_IFS
4675
 
  test -z "$as_dir" && as_dir=.
4676
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4677
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4679
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680
 
    break 2
4681
 
  fi
4682
 
done
4683
 
done
4684
 
 
4685
 
fi
4686
 
fi
4687
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4688
 
if test -n "$ac_ct_CXX"; then
4689
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4690
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4691
 
else
4692
 
  echo "$as_me:$LINENO: result: no" >&5
4693
 
echo "${ECHO_T}no" >&6
4694
 
fi
4695
 
 
4696
 
  test -n "$ac_ct_CXX" && break
4697
 
done
4698
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4699
 
 
4700
 
  CXX=$ac_ct_CXX
4701
 
fi
4702
 
 
4703
 
 
4704
 
# Provide some information about the compiler.
4705
 
echo "$as_me:$LINENO:" \
4706
 
     "checking for C++ compiler version" >&5
4707
 
ac_compiler=`set X $ac_compile; echo $2`
4708
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4709
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4710
 
  ac_status=$?
4711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712
 
  (exit $ac_status); }
4713
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4714
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4715
 
  ac_status=$?
4716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717
 
  (exit $ac_status); }
4718
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4719
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4720
 
  ac_status=$?
4721
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722
 
  (exit $ac_status); }
4723
 
 
4724
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4725
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4726
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4728
 
else
4729
 
  cat >conftest.$ac_ext <<_ACEOF
4730
 
/* confdefs.h.  */
4731
 
_ACEOF
4732
 
cat confdefs.h >>conftest.$ac_ext
4733
 
cat >>conftest.$ac_ext <<_ACEOF
4734
 
/* end confdefs.h.  */
4735
 
 
4736
 
int
4737
 
main ()
4738
 
{
4739
 
#ifndef __GNUC__
4740
 
       choke me
4741
 
#endif
4742
 
 
4743
 
  ;
4744
 
  return 0;
4745
 
}
4746
 
_ACEOF
4747
 
rm -f conftest.$ac_objext
4748
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749
 
  (eval $ac_compile) 2>conftest.er1
4750
 
  ac_status=$?
4751
 
  grep -v '^ *+' conftest.er1 >conftest.err
4752
 
  rm -f conftest.er1
4753
 
  cat conftest.err >&5
4754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755
 
  (exit $ac_status); } &&
4756
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4757
 
                         || test ! -s conftest.err'
4758
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759
 
  (eval $ac_try) 2>&5
4760
 
  ac_status=$?
4761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
 
  (exit $ac_status); }; } &&
4763
 
         { ac_try='test -s conftest.$ac_objext'
4764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765
 
  (eval $ac_try) 2>&5
4766
 
  ac_status=$?
4767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768
 
  (exit $ac_status); }; }; then
4769
 
  ac_compiler_gnu=yes
4770
 
else
4771
 
  echo "$as_me: failed program was:" >&5
4772
 
sed 's/^/| /' conftest.$ac_ext >&5
4773
 
 
4774
 
ac_compiler_gnu=no
4775
 
fi
4776
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4778
 
 
4779
 
fi
4780
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4781
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4782
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4783
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4784
 
ac_save_CXXFLAGS=$CXXFLAGS
4785
 
CXXFLAGS="-g"
4786
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4787
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4788
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4789
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4790
 
else
4791
 
  cat >conftest.$ac_ext <<_ACEOF
4792
 
/* confdefs.h.  */
4793
 
_ACEOF
4794
 
cat confdefs.h >>conftest.$ac_ext
4795
 
cat >>conftest.$ac_ext <<_ACEOF
4796
 
/* end confdefs.h.  */
4797
 
 
4798
 
int
4799
 
main ()
4800
 
{
4801
 
 
4802
 
  ;
4803
 
  return 0;
4804
 
}
4805
 
_ACEOF
4806
 
rm -f conftest.$ac_objext
4807
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808
 
  (eval $ac_compile) 2>conftest.er1
4809
 
  ac_status=$?
4810
 
  grep -v '^ *+' conftest.er1 >conftest.err
4811
 
  rm -f conftest.er1
4812
 
  cat conftest.err >&5
4813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
 
  (exit $ac_status); } &&
4815
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4816
 
                         || test ! -s conftest.err'
4817
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818
 
  (eval $ac_try) 2>&5
4819
 
  ac_status=$?
4820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
 
  (exit $ac_status); }; } &&
4822
 
         { ac_try='test -s conftest.$ac_objext'
4823
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824
 
  (eval $ac_try) 2>&5
4825
 
  ac_status=$?
4826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
 
  (exit $ac_status); }; }; then
4828
 
  ac_cv_prog_cxx_g=yes
4829
 
else
4830
 
  echo "$as_me: failed program was:" >&5
4831
 
sed 's/^/| /' conftest.$ac_ext >&5
4832
 
 
4833
 
ac_cv_prog_cxx_g=no
4834
 
fi
4835
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836
 
fi
4837
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4838
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4839
 
if test "$ac_test_CXXFLAGS" = set; then
4840
 
  CXXFLAGS=$ac_save_CXXFLAGS
4841
 
elif test $ac_cv_prog_cxx_g = yes; then
4842
 
  if test "$GXX" = yes; then
4843
 
    CXXFLAGS="-g -O2"
4844
 
  else
4845
 
    CXXFLAGS="-g"
4846
 
  fi
4847
 
else
4848
 
  if test "$GXX" = yes; then
4849
 
    CXXFLAGS="-O2"
4850
 
  else
4851
 
    CXXFLAGS=
4852
 
  fi
4853
 
fi
4854
 
for ac_declaration in \
4855
 
   '' \
4856
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4857
 
   'extern "C" void std::exit (int); using std::exit;' \
4858
 
   'extern "C" void exit (int) throw ();' \
4859
 
   'extern "C" void exit (int);' \
4860
 
   'void exit (int);'
4861
 
do
4862
 
  cat >conftest.$ac_ext <<_ACEOF
4863
 
/* confdefs.h.  */
4864
 
_ACEOF
4865
 
cat confdefs.h >>conftest.$ac_ext
4866
 
cat >>conftest.$ac_ext <<_ACEOF
4867
 
/* end confdefs.h.  */
4868
 
$ac_declaration
4869
 
#include <stdlib.h>
4870
 
int
4871
 
main ()
4872
 
{
4873
 
exit (42);
4874
 
  ;
4875
 
  return 0;
4876
 
}
4877
 
_ACEOF
4878
 
rm -f conftest.$ac_objext
4879
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880
 
  (eval $ac_compile) 2>conftest.er1
4881
 
  ac_status=$?
4882
 
  grep -v '^ *+' conftest.er1 >conftest.err
4883
 
  rm -f conftest.er1
4884
 
  cat conftest.err >&5
4885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
 
  (exit $ac_status); } &&
4887
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4888
 
                         || test ! -s conftest.err'
4889
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890
 
  (eval $ac_try) 2>&5
4891
 
  ac_status=$?
4892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893
 
  (exit $ac_status); }; } &&
4894
 
         { ac_try='test -s conftest.$ac_objext'
4895
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896
 
  (eval $ac_try) 2>&5
4897
 
  ac_status=$?
4898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899
 
  (exit $ac_status); }; }; then
4900
 
  :
4901
 
else
4902
 
  echo "$as_me: failed program was:" >&5
4903
 
sed 's/^/| /' conftest.$ac_ext >&5
4904
 
 
4905
 
continue
4906
 
fi
4907
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4908
 
  cat >conftest.$ac_ext <<_ACEOF
4909
 
/* confdefs.h.  */
4910
 
_ACEOF
4911
 
cat confdefs.h >>conftest.$ac_ext
4912
 
cat >>conftest.$ac_ext <<_ACEOF
4913
 
/* end confdefs.h.  */
4914
 
$ac_declaration
4915
 
int
4916
 
main ()
4917
 
{
4918
 
exit (42);
4919
 
  ;
4920
 
  return 0;
4921
 
}
4922
 
_ACEOF
4923
 
rm -f conftest.$ac_objext
4924
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925
 
  (eval $ac_compile) 2>conftest.er1
4926
 
  ac_status=$?
4927
 
  grep -v '^ *+' conftest.er1 >conftest.err
4928
 
  rm -f conftest.er1
4929
 
  cat conftest.err >&5
4930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931
 
  (exit $ac_status); } &&
4932
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4933
 
                         || test ! -s conftest.err'
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); }; } &&
4939
 
         { ac_try='test -s conftest.$ac_objext'
4940
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941
 
  (eval $ac_try) 2>&5
4942
 
  ac_status=$?
4943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944
 
  (exit $ac_status); }; }; then
4945
 
  break
4946
 
else
4947
 
  echo "$as_me: failed program was:" >&5
4948
 
sed 's/^/| /' conftest.$ac_ext >&5
4949
 
 
4950
 
fi
4951
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952
 
done
4953
 
rm -f conftest*
4954
 
if test -n "$ac_declaration"; then
4955
 
  echo '#ifdef __cplusplus' >>confdefs.h
4956
 
  echo $ac_declaration      >>confdefs.h
4957
 
  echo '#endif'             >>confdefs.h
4958
 
fi
4959
 
 
4960
 
ac_ext=cc
4961
 
ac_cpp='$CXXCPP $CPPFLAGS'
4962
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
 
 
4966
 
 
4967
 
 
4968
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4969
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4970
 
    (test "X$CXX" != "Xg++"))) ; then
4971
 
  ac_ext=cc
4972
 
ac_cpp='$CXXCPP $CPPFLAGS'
4973
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4977
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4978
 
if test -z "$CXXCPP"; then
4979
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4981
 
else
4982
 
      # Double quotes because CXXCPP needs to be expanded
4983
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4984
 
    do
4985
 
      ac_preproc_ok=false
4986
 
for ac_cxx_preproc_warn_flag in '' yes
4987
 
do
4988
 
  # Use a header file that comes with gcc, so configuring glibc
4989
 
  # with a fresh cross-compiler works.
4990
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991
 
  # <limits.h> exists even on freestanding compilers.
4992
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4993
 
  # not just through cpp. "Syntax error" is here to catch this case.
4994
 
  cat >conftest.$ac_ext <<_ACEOF
4995
 
/* confdefs.h.  */
4996
 
_ACEOF
4997
 
cat confdefs.h >>conftest.$ac_ext
4998
 
cat >>conftest.$ac_ext <<_ACEOF
4999
 
/* end confdefs.h.  */
5000
 
#ifdef __STDC__
5001
 
# include <limits.h>
5002
 
#else
5003
 
# include <assert.h>
5004
 
#endif
5005
 
                     Syntax error
5006
 
_ACEOF
5007
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009
 
  ac_status=$?
5010
 
  grep -v '^ *+' conftest.er1 >conftest.err
5011
 
  rm -f conftest.er1
5012
 
  cat conftest.err >&5
5013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014
 
  (exit $ac_status); } >/dev/null; then
5015
 
  if test -s conftest.err; then
5016
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5017
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018
 
  else
5019
 
    ac_cpp_err=
5020
 
  fi
5021
 
else
5022
 
  ac_cpp_err=yes
5023
 
fi
5024
 
if test -z "$ac_cpp_err"; then
5025
 
  :
5026
 
else
5027
 
  echo "$as_me: failed program was:" >&5
5028
 
sed 's/^/| /' conftest.$ac_ext >&5
5029
 
 
5030
 
  # Broken: fails on valid input.
5031
 
continue
5032
 
fi
5033
 
rm -f conftest.err conftest.$ac_ext
5034
 
 
5035
 
  # OK, works on sane cases.  Now check whether non-existent headers
5036
 
  # can be detected and how.
5037
 
  cat >conftest.$ac_ext <<_ACEOF
5038
 
/* confdefs.h.  */
5039
 
_ACEOF
5040
 
cat confdefs.h >>conftest.$ac_ext
5041
 
cat >>conftest.$ac_ext <<_ACEOF
5042
 
/* end confdefs.h.  */
5043
 
#include <ac_nonexistent.h>
5044
 
_ACEOF
5045
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047
 
  ac_status=$?
5048
 
  grep -v '^ *+' conftest.er1 >conftest.err
5049
 
  rm -f conftest.er1
5050
 
  cat conftest.err >&5
5051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
 
  (exit $ac_status); } >/dev/null; then
5053
 
  if test -s conftest.err; then
5054
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5055
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056
 
  else
5057
 
    ac_cpp_err=
5058
 
  fi
5059
 
else
5060
 
  ac_cpp_err=yes
5061
 
fi
5062
 
if test -z "$ac_cpp_err"; then
5063
 
  # Broken: success on invalid input.
5064
 
continue
5065
 
else
5066
 
  echo "$as_me: failed program was:" >&5
5067
 
sed 's/^/| /' conftest.$ac_ext >&5
5068
 
 
5069
 
  # Passes both tests.
5070
 
ac_preproc_ok=:
5071
 
break
5072
 
fi
5073
 
rm -f conftest.err conftest.$ac_ext
5074
 
 
5075
 
done
5076
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077
 
rm -f conftest.err conftest.$ac_ext
5078
 
if $ac_preproc_ok; then
5079
 
  break
5080
 
fi
5081
 
 
5082
 
    done
5083
 
    ac_cv_prog_CXXCPP=$CXXCPP
5084
 
 
5085
 
fi
5086
 
  CXXCPP=$ac_cv_prog_CXXCPP
5087
 
else
5088
 
  ac_cv_prog_CXXCPP=$CXXCPP
5089
 
fi
5090
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5091
 
echo "${ECHO_T}$CXXCPP" >&6
5092
 
ac_preproc_ok=false
5093
 
for ac_cxx_preproc_warn_flag in '' yes
5094
 
do
5095
 
  # Use a header file that comes with gcc, so configuring glibc
5096
 
  # with a fresh cross-compiler works.
5097
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098
 
  # <limits.h> exists even on freestanding compilers.
5099
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5100
 
  # not just through cpp. "Syntax error" is here to catch this case.
5101
 
  cat >conftest.$ac_ext <<_ACEOF
5102
 
/* confdefs.h.  */
5103
 
_ACEOF
5104
 
cat confdefs.h >>conftest.$ac_ext
5105
 
cat >>conftest.$ac_ext <<_ACEOF
5106
 
/* end confdefs.h.  */
5107
 
#ifdef __STDC__
5108
 
# include <limits.h>
5109
 
#else
5110
 
# include <assert.h>
5111
 
#endif
5112
 
                     Syntax error
5113
 
_ACEOF
5114
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116
 
  ac_status=$?
5117
 
  grep -v '^ *+' conftest.er1 >conftest.err
5118
 
  rm -f conftest.er1
5119
 
  cat conftest.err >&5
5120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
 
  (exit $ac_status); } >/dev/null; then
5122
 
  if test -s conftest.err; then
5123
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5124
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125
 
  else
5126
 
    ac_cpp_err=
5127
 
  fi
5128
 
else
5129
 
  ac_cpp_err=yes
5130
 
fi
5131
 
if test -z "$ac_cpp_err"; then
5132
 
  :
5133
 
else
5134
 
  echo "$as_me: failed program was:" >&5
5135
 
sed 's/^/| /' conftest.$ac_ext >&5
5136
 
 
5137
 
  # Broken: fails on valid input.
5138
 
continue
5139
 
fi
5140
 
rm -f conftest.err conftest.$ac_ext
5141
 
 
5142
 
  # OK, works on sane cases.  Now check whether non-existent headers
5143
 
  # can be detected and how.
5144
 
  cat >conftest.$ac_ext <<_ACEOF
5145
 
/* confdefs.h.  */
5146
 
_ACEOF
5147
 
cat confdefs.h >>conftest.$ac_ext
5148
 
cat >>conftest.$ac_ext <<_ACEOF
5149
 
/* end confdefs.h.  */
5150
 
#include <ac_nonexistent.h>
5151
 
_ACEOF
5152
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154
 
  ac_status=$?
5155
 
  grep -v '^ *+' conftest.er1 >conftest.err
5156
 
  rm -f conftest.er1
5157
 
  cat conftest.err >&5
5158
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
 
  (exit $ac_status); } >/dev/null; then
5160
 
  if test -s conftest.err; then
5161
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5162
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5163
 
  else
5164
 
    ac_cpp_err=
5165
 
  fi
5166
 
else
5167
 
  ac_cpp_err=yes
5168
 
fi
5169
 
if test -z "$ac_cpp_err"; then
5170
 
  # Broken: success on invalid input.
5171
 
continue
5172
 
else
5173
 
  echo "$as_me: failed program was:" >&5
5174
 
sed 's/^/| /' conftest.$ac_ext >&5
5175
 
 
5176
 
  # Passes both tests.
5177
 
ac_preproc_ok=:
5178
 
break
5179
 
fi
5180
 
rm -f conftest.err conftest.$ac_ext
5181
 
 
5182
 
done
5183
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184
 
rm -f conftest.err conftest.$ac_ext
5185
 
if $ac_preproc_ok; then
5186
 
  :
5187
 
else
5188
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5189
 
See \`config.log' for more details." >&5
5190
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191
 
See \`config.log' for more details." >&2;}
5192
 
   { (exit 1); exit 1; }; }
5193
 
fi
5194
 
 
5195
 
ac_ext=cc
5196
 
ac_cpp='$CXXCPP $CPPFLAGS'
5197
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
 
 
5201
 
fi
5202
 
 
5203
 
 
5204
 
ac_ext=f
5205
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208
 
if test -n "$ac_tool_prefix"; then
5209
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5210
 
  do
5211
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5214
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215
 
if test "${ac_cv_prog_F77+set}" = set; then
5216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5217
 
else
5218
 
  if test -n "$F77"; then
5219
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5220
 
else
5221
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222
 
for as_dir in $PATH
5223
 
do
5224
 
  IFS=$as_save_IFS
5225
 
  test -z "$as_dir" && as_dir=.
5226
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5227
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230
 
    break 2
5231
 
  fi
5232
 
done
5233
 
done
5234
 
 
5235
 
fi
5236
 
fi
5237
 
F77=$ac_cv_prog_F77
5238
 
if test -n "$F77"; then
5239
 
  echo "$as_me:$LINENO: result: $F77" >&5
5240
 
echo "${ECHO_T}$F77" >&6
5241
 
else
5242
 
  echo "$as_me:$LINENO: result: no" >&5
5243
 
echo "${ECHO_T}no" >&6
5244
 
fi
5245
 
 
5246
 
    test -n "$F77" && break
5247
 
  done
5248
 
fi
5249
 
if test -z "$F77"; then
5250
 
  ac_ct_F77=$F77
5251
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5252
 
do
5253
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5254
 
set dummy $ac_prog; ac_word=$2
5255
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5256
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5259
 
else
5260
 
  if test -n "$ac_ct_F77"; then
5261
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5262
 
else
5263
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264
 
for as_dir in $PATH
5265
 
do
5266
 
  IFS=$as_save_IFS
5267
 
  test -z "$as_dir" && as_dir=.
5268
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5269
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5271
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272
 
    break 2
5273
 
  fi
5274
 
done
5275
 
done
5276
 
 
5277
 
fi
5278
 
fi
5279
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280
 
if test -n "$ac_ct_F77"; then
5281
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282
 
echo "${ECHO_T}$ac_ct_F77" >&6
5283
 
else
5284
 
  echo "$as_me:$LINENO: result: no" >&5
5285
 
echo "${ECHO_T}no" >&6
5286
 
fi
5287
 
 
5288
 
  test -n "$ac_ct_F77" && break
5289
 
done
5290
 
 
5291
 
  F77=$ac_ct_F77
5292
 
fi
5293
 
 
5294
 
 
5295
 
# Provide some information about the compiler.
5296
 
echo "$as_me:5296:" \
5297
 
     "checking for Fortran 77 compiler version" >&5
5298
 
ac_compiler=`set X $ac_compile; echo $2`
5299
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5301
 
  ac_status=$?
5302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
 
  (exit $ac_status); }
5304
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5306
 
  ac_status=$?
5307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308
 
  (exit $ac_status); }
5309
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5311
 
  ac_status=$?
5312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313
 
  (exit $ac_status); }
5314
 
rm -f a.out
5315
 
 
5316
 
# If we don't use `.F' as extension, the preprocessor is not run on the
5317
 
# input file.  (Note that this only needs to work for GNU compilers.)
5318
 
ac_save_ext=$ac_ext
5319
 
ac_ext=F
5320
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5321
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5322
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5323
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5324
 
else
5325
 
  cat >conftest.$ac_ext <<_ACEOF
5326
 
      program main
5327
 
#ifndef __GNUC__
5328
 
       choke me
5329
 
#endif
5330
 
 
5331
 
      end
5332
 
_ACEOF
5333
 
rm -f conftest.$ac_objext
5334
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335
 
  (eval $ac_compile) 2>conftest.er1
5336
 
  ac_status=$?
5337
 
  grep -v '^ *+' conftest.er1 >conftest.err
5338
 
  rm -f conftest.er1
5339
 
  cat conftest.err >&5
5340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341
 
  (exit $ac_status); } &&
5342
 
         { ac_try='test -z "$ac_f77_werror_flag"
5343
 
                         || test ! -s conftest.err'
5344
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345
 
  (eval $ac_try) 2>&5
5346
 
  ac_status=$?
5347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348
 
  (exit $ac_status); }; } &&
5349
 
         { ac_try='test -s conftest.$ac_objext'
5350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351
 
  (eval $ac_try) 2>&5
5352
 
  ac_status=$?
5353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354
 
  (exit $ac_status); }; }; then
5355
 
  ac_compiler_gnu=yes
5356
 
else
5357
 
  echo "$as_me: failed program was:" >&5
5358
 
sed 's/^/| /' conftest.$ac_ext >&5
5359
 
 
5360
 
ac_compiler_gnu=no
5361
 
fi
5362
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5364
 
 
5365
 
fi
5366
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5367
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5368
 
ac_ext=$ac_save_ext
5369
 
ac_test_FFLAGS=${FFLAGS+set}
5370
 
ac_save_FFLAGS=$FFLAGS
5371
 
FFLAGS=
5372
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5373
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5374
 
if test "${ac_cv_prog_f77_g+set}" = set; then
5375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5376
 
else
5377
 
  FFLAGS=-g
5378
 
cat >conftest.$ac_ext <<_ACEOF
5379
 
      program main
5380
 
 
5381
 
      end
5382
 
_ACEOF
5383
 
rm -f conftest.$ac_objext
5384
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385
 
  (eval $ac_compile) 2>conftest.er1
5386
 
  ac_status=$?
5387
 
  grep -v '^ *+' conftest.er1 >conftest.err
5388
 
  rm -f conftest.er1
5389
 
  cat conftest.err >&5
5390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391
 
  (exit $ac_status); } &&
5392
 
         { ac_try='test -z "$ac_f77_werror_flag"
5393
 
                         || test ! -s conftest.err'
5394
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395
 
  (eval $ac_try) 2>&5
5396
 
  ac_status=$?
5397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
 
  (exit $ac_status); }; } &&
5399
 
         { ac_try='test -s conftest.$ac_objext'
5400
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401
 
  (eval $ac_try) 2>&5
5402
 
  ac_status=$?
5403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404
 
  (exit $ac_status); }; }; then
5405
 
  ac_cv_prog_f77_g=yes
5406
 
else
5407
 
  echo "$as_me: failed program was:" >&5
5408
 
sed 's/^/| /' conftest.$ac_ext >&5
5409
 
 
5410
 
ac_cv_prog_f77_g=no
5411
 
fi
5412
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413
 
 
5414
 
fi
5415
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5416
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5417
 
if test "$ac_test_FFLAGS" = set; then
5418
 
  FFLAGS=$ac_save_FFLAGS
5419
 
elif test $ac_cv_prog_f77_g = yes; then
5420
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5421
 
    FFLAGS="-g -O2"
5422
 
  else
5423
 
    FFLAGS="-g"
5424
 
  fi
5425
 
else
5426
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5427
 
    FFLAGS="-O2"
5428
 
  else
5429
 
    FFLAGS=
5430
 
  fi
5431
 
fi
5432
 
 
5433
 
G77=`test $ac_compiler_gnu = yes && echo yes`
5434
 
ac_ext=c
5435
 
ac_cpp='$CPP $CPPFLAGS'
5436
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
 
 
5440
 
 
5441
 
 
5442
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5443
 
 
5444
 
# find the maximum length of command line arguments
5445
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5446
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5447
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5448
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5449
 
else
5450
 
    i=0
5451
 
  teststring="ABCD"
5452
 
 
5453
 
  case $build_os in
5454
 
  msdosdjgpp*)
5455
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5456
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5457
 
    # during glob expansion).  Even if it were fixed, the result of this
5458
 
    # check would be larger than it should be.
5459
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5460
 
    ;;
5461
 
 
5462
 
  gnu*)
5463
 
    # Under GNU Hurd, this test is not required because there is
5464
 
    # no limit to the length of command line arguments.
5465
 
    # Libtool will interpret -1 as no limit whatsoever
5466
 
    lt_cv_sys_max_cmd_len=-1;
5467
 
    ;;
5468
 
 
5469
 
  cygwin* | mingw*)
5470
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5471
 
    # about 5 minutes as the teststring grows exponentially.
5472
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5473
 
    # you end up with a "frozen" computer, even though with patience
5474
 
    # the test eventually succeeds (with a max line length of 256k).
5475
 
    # Instead, let's just punt: use the minimum linelength reported by
5476
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5477
 
    lt_cv_sys_max_cmd_len=8192;
5478
 
    ;;
5479
 
 
5480
 
  amigaos*)
5481
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5482
 
    # So we just punt and use a minimum line length of 8192.
5483
 
    lt_cv_sys_max_cmd_len=8192;
5484
 
    ;;
5485
 
 
5486
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5487
 
    # This has been around since 386BSD, at least.  Likely further.
5488
 
    if test -x /sbin/sysctl; then
5489
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5490
 
    elif test -x /usr/sbin/sysctl; then
5491
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5492
 
    else
5493
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5494
 
    fi
5495
 
    # And add a safety zone
5496
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5497
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5498
 
    ;;
5499
 
 
5500
 
  interix*)
5501
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5502
 
    lt_cv_sys_max_cmd_len=196608
5503
 
    ;;
5504
 
 
5505
 
  osf*)
5506
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508
 
    # nice to cause kernel panics so lets avoid the loop below.
5509
 
    # First set a reasonable default.
5510
 
    lt_cv_sys_max_cmd_len=16384
5511
 
    #
5512
 
    if test -x /sbin/sysconfig; then
5513
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515
 
      esac
5516
 
    fi
5517
 
    ;;
5518
 
  sco3.2v5*)
5519
 
    lt_cv_sys_max_cmd_len=102400
5520
 
    ;;
5521
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5522
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5523
 
    if test -n "$kargmax"; then
5524
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5525
 
    else
5526
 
      lt_cv_sys_max_cmd_len=32768
5527
 
    fi
5528
 
    ;;
5529
 
  *)
5530
 
    # If test is not a shell built-in, we'll probably end up computing a
5531
 
    # maximum length that is only half of the actual maximum length, but
5532
 
    # we can't tell.
5533
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5534
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5535
 
               = "XX$teststring") >/dev/null 2>&1 &&
5536
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5537
 
            lt_cv_sys_max_cmd_len=$new_result &&
5538
 
            test $i != 17 # 1/2 MB should be enough
5539
 
    do
5540
 
      i=`expr $i + 1`
5541
 
      teststring=$teststring$teststring
5542
 
    done
5543
 
    teststring=
5544
 
    # Add a significant safety factor because C++ compilers can tack on massive
5545
 
    # amounts of additional arguments before passing them to the linker.
5546
 
    # It appears as though 1/2 is a usable value.
5547
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5548
 
    ;;
5549
 
  esac
5550
 
 
5551
 
fi
5552
 
 
5553
 
if test -n $lt_cv_sys_max_cmd_len ; then
5554
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5555
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5556
 
else
5557
 
  echo "$as_me:$LINENO: result: none" >&5
5558
 
echo "${ECHO_T}none" >&6
5559
 
fi
5560
 
 
5561
 
 
 
5007
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5016
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5017
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5018
  $as_echo_n "(cached) " >&6
 
5019
else
 
5020
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5021
 
 
5022
case $host_os in
 
5023
cygwin* | mingw* | pw32* | cegcc*)
 
5024
  # two different shell functions defined in ltmain.sh
 
5025
  # decide which to use based on capabilities of $DLLTOOL
 
5026
  case `$DLLTOOL --help 2>&1` in
 
5027
  *--identify-strict*)
 
5028
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5029
    ;;
 
5030
  *)
 
5031
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5032
    ;;
 
5033
  esac
 
5034
  ;;
 
5035
*)
 
5036
  # fallback: assume linklib IS sharedlib
 
5037
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5038
  ;;
 
5039
esac
 
5040
 
 
5041
fi
 
5042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5043
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5044
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5045
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
if test -n "$ac_tool_prefix"; then
 
5055
  for ac_prog in ar
 
5056
  do
 
5057
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5058
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5060
$as_echo_n "checking for $ac_word... " >&6; }
 
5061
if ${ac_cv_prog_AR+:} false; then :
 
5062
  $as_echo_n "(cached) " >&6
 
5063
else
 
5064
  if test -n "$AR"; then
 
5065
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5066
else
 
5067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5068
for as_dir in $PATH
 
5069
do
 
5070
  IFS=$as_save_IFS
 
5071
  test -z "$as_dir" && as_dir=.
 
5072
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5073
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5074
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5075
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5076
    break 2
 
5077
  fi
 
5078
done
 
5079
  done
 
5080
IFS=$as_save_IFS
 
5081
 
 
5082
fi
 
5083
fi
 
5084
AR=$ac_cv_prog_AR
 
5085
if test -n "$AR"; then
 
5086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5087
$as_echo "$AR" >&6; }
 
5088
else
 
5089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5090
$as_echo "no" >&6; }
 
5091
fi
 
5092
 
 
5093
 
 
5094
    test -n "$AR" && break
 
5095
  done
 
5096
fi
 
5097
if test -z "$AR"; then
 
5098
  ac_ct_AR=$AR
 
5099
  for ac_prog in ar
 
5100
do
 
5101
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5102
set dummy $ac_prog; ac_word=$2
 
5103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5104
$as_echo_n "checking for $ac_word... " >&6; }
 
5105
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5106
  $as_echo_n "(cached) " >&6
 
5107
else
 
5108
  if test -n "$ac_ct_AR"; then
 
5109
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5110
else
 
5111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5112
for as_dir in $PATH
 
5113
do
 
5114
  IFS=$as_save_IFS
 
5115
  test -z "$as_dir" && as_dir=.
 
5116
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5117
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5118
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5119
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5120
    break 2
 
5121
  fi
 
5122
done
 
5123
  done
 
5124
IFS=$as_save_IFS
 
5125
 
 
5126
fi
 
5127
fi
 
5128
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5129
if test -n "$ac_ct_AR"; then
 
5130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5131
$as_echo "$ac_ct_AR" >&6; }
 
5132
else
 
5133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5134
$as_echo "no" >&6; }
 
5135
fi
 
5136
 
 
5137
 
 
5138
  test -n "$ac_ct_AR" && break
 
5139
done
 
5140
 
 
5141
  if test "x$ac_ct_AR" = x; then
 
5142
    AR="false"
 
5143
  else
 
5144
    case $cross_compiling:$ac_tool_warned in
 
5145
yes:)
 
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5147
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5148
ac_tool_warned=yes ;;
 
5149
esac
 
5150
    AR=$ac_ct_AR
 
5151
  fi
 
5152
fi
 
5153
 
 
5154
: ${AR=ar}
 
5155
: ${AR_FLAGS=cru}
 
5156
 
 
5157
 
 
5158
 
 
5159
 
 
5160
 
 
5161
 
 
5162
 
 
5163
 
 
5164
 
 
5165
 
 
5166
 
 
5167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5168
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5169
if ${lt_cv_ar_at_file+:} false; then :
 
5170
  $as_echo_n "(cached) " >&6
 
5171
else
 
5172
  lt_cv_ar_at_file=no
 
5173
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5174
/* end confdefs.h.  */
 
5175
 
 
5176
int
 
5177
main ()
 
5178
{
 
5179
 
 
5180
  ;
 
5181
  return 0;
 
5182
}
 
5183
_ACEOF
 
5184
if ac_fn_c_try_compile "$LINENO"; then :
 
5185
  echo conftest.$ac_objext > conftest.lst
 
5186
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5187
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5188
  (eval $lt_ar_try) 2>&5
 
5189
  ac_status=$?
 
5190
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5191
  test $ac_status = 0; }
 
5192
      if test "$ac_status" -eq 0; then
 
5193
        # Ensure the archiver fails upon bogus file names.
 
5194
        rm -f conftest.$ac_objext libconftest.a
 
5195
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5196
  (eval $lt_ar_try) 2>&5
 
5197
  ac_status=$?
 
5198
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5199
  test $ac_status = 0; }
 
5200
        if test "$ac_status" -ne 0; then
 
5201
          lt_cv_ar_at_file=@
 
5202
        fi
 
5203
      fi
 
5204
      rm -f conftest.* libconftest.a
 
5205
 
 
5206
fi
 
5207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5208
 
 
5209
fi
 
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5211
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5212
 
 
5213
if test "x$lt_cv_ar_at_file" = xno; then
 
5214
  archiver_list_spec=
 
5215
else
 
5216
  archiver_list_spec=$lt_cv_ar_at_file
 
5217
fi
 
5218
 
 
5219
 
 
5220
 
 
5221
 
 
5222
 
 
5223
 
 
5224
 
 
5225
if test -n "$ac_tool_prefix"; then
 
5226
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5227
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5229
$as_echo_n "checking for $ac_word... " >&6; }
 
5230
if ${ac_cv_prog_STRIP+:} false; then :
 
5231
  $as_echo_n "(cached) " >&6
 
5232
else
 
5233
  if test -n "$STRIP"; then
 
5234
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5235
else
 
5236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5237
for as_dir in $PATH
 
5238
do
 
5239
  IFS=$as_save_IFS
 
5240
  test -z "$as_dir" && as_dir=.
 
5241
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5243
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5244
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5245
    break 2
 
5246
  fi
 
5247
done
 
5248
  done
 
5249
IFS=$as_save_IFS
 
5250
 
 
5251
fi
 
5252
fi
 
5253
STRIP=$ac_cv_prog_STRIP
 
5254
if test -n "$STRIP"; then
 
5255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5256
$as_echo "$STRIP" >&6; }
 
5257
else
 
5258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5259
$as_echo "no" >&6; }
 
5260
fi
 
5261
 
 
5262
 
 
5263
fi
 
5264
if test -z "$ac_cv_prog_STRIP"; then
 
5265
  ac_ct_STRIP=$STRIP
 
5266
  # Extract the first word of "strip", so it can be a program name with args.
 
5267
set dummy strip; ac_word=$2
 
5268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5269
$as_echo_n "checking for $ac_word... " >&6; }
 
5270
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5271
  $as_echo_n "(cached) " >&6
 
5272
else
 
5273
  if test -n "$ac_ct_STRIP"; then
 
5274
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5275
else
 
5276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5277
for as_dir in $PATH
 
5278
do
 
5279
  IFS=$as_save_IFS
 
5280
  test -z "$as_dir" && as_dir=.
 
5281
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5283
    ac_cv_prog_ac_ct_STRIP="strip"
 
5284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5285
    break 2
 
5286
  fi
 
5287
done
 
5288
  done
 
5289
IFS=$as_save_IFS
 
5290
 
 
5291
fi
 
5292
fi
 
5293
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5294
if test -n "$ac_ct_STRIP"; then
 
5295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5296
$as_echo "$ac_ct_STRIP" >&6; }
 
5297
else
 
5298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5299
$as_echo "no" >&6; }
 
5300
fi
 
5301
 
 
5302
  if test "x$ac_ct_STRIP" = x; then
 
5303
    STRIP=":"
 
5304
  else
 
5305
    case $cross_compiling:$ac_tool_warned in
 
5306
yes:)
 
5307
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5308
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5309
ac_tool_warned=yes ;;
 
5310
esac
 
5311
    STRIP=$ac_ct_STRIP
 
5312
  fi
 
5313
else
 
5314
  STRIP="$ac_cv_prog_STRIP"
 
5315
fi
 
5316
 
 
5317
test -z "$STRIP" && STRIP=:
 
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
if test -n "$ac_tool_prefix"; then
 
5325
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5326
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5328
$as_echo_n "checking for $ac_word... " >&6; }
 
5329
if ${ac_cv_prog_RANLIB+:} false; then :
 
5330
  $as_echo_n "(cached) " >&6
 
5331
else
 
5332
  if test -n "$RANLIB"; then
 
5333
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5334
else
 
5335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5336
for as_dir in $PATH
 
5337
do
 
5338
  IFS=$as_save_IFS
 
5339
  test -z "$as_dir" && as_dir=.
 
5340
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5341
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5342
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5343
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5344
    break 2
 
5345
  fi
 
5346
done
 
5347
  done
 
5348
IFS=$as_save_IFS
 
5349
 
 
5350
fi
 
5351
fi
 
5352
RANLIB=$ac_cv_prog_RANLIB
 
5353
if test -n "$RANLIB"; then
 
5354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5355
$as_echo "$RANLIB" >&6; }
 
5356
else
 
5357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5358
$as_echo "no" >&6; }
 
5359
fi
 
5360
 
 
5361
 
 
5362
fi
 
5363
if test -z "$ac_cv_prog_RANLIB"; then
 
5364
  ac_ct_RANLIB=$RANLIB
 
5365
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5366
set dummy ranlib; ac_word=$2
 
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5368
$as_echo_n "checking for $ac_word... " >&6; }
 
5369
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5370
  $as_echo_n "(cached) " >&6
 
5371
else
 
5372
  if test -n "$ac_ct_RANLIB"; then
 
5373
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5374
else
 
5375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5376
for as_dir in $PATH
 
5377
do
 
5378
  IFS=$as_save_IFS
 
5379
  test -z "$as_dir" && as_dir=.
 
5380
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5381
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5382
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5384
    break 2
 
5385
  fi
 
5386
done
 
5387
  done
 
5388
IFS=$as_save_IFS
 
5389
 
 
5390
fi
 
5391
fi
 
5392
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5393
if test -n "$ac_ct_RANLIB"; then
 
5394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5395
$as_echo "$ac_ct_RANLIB" >&6; }
 
5396
else
 
5397
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5398
$as_echo "no" >&6; }
 
5399
fi
 
5400
 
 
5401
  if test "x$ac_ct_RANLIB" = x; then
 
5402
    RANLIB=":"
 
5403
  else
 
5404
    case $cross_compiling:$ac_tool_warned in
 
5405
yes:)
 
5406
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5407
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5408
ac_tool_warned=yes ;;
 
5409
esac
 
5410
    RANLIB=$ac_ct_RANLIB
 
5411
  fi
 
5412
else
 
5413
  RANLIB="$ac_cv_prog_RANLIB"
 
5414
fi
 
5415
 
 
5416
test -z "$RANLIB" && RANLIB=:
 
5417
 
 
5418
 
 
5419
 
 
5420
 
 
5421
 
 
5422
 
 
5423
# Determine commands to create old-style static archives.
 
5424
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5425
old_postinstall_cmds='chmod 644 $oldlib'
 
5426
old_postuninstall_cmds=
 
5427
 
 
5428
if test -n "$RANLIB"; then
 
5429
  case $host_os in
 
5430
  openbsd*)
 
5431
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5432
    ;;
 
5433
  *)
 
5434
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5435
    ;;
 
5436
  esac
 
5437
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5438
fi
 
5439
 
 
5440
case $host_os in
 
5441
  darwin*)
 
5442
    lock_old_archive_extraction=yes ;;
 
5443
  *)
 
5444
    lock_old_archive_extraction=no ;;
 
5445
esac
 
5446
 
 
5447
 
 
5448
 
 
5449
 
 
5450
 
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
 
 
5467
for ac_prog in gawk mawk nawk awk
 
5468
do
 
5469
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5470
set dummy $ac_prog; ac_word=$2
 
5471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5472
$as_echo_n "checking for $ac_word... " >&6; }
 
5473
if ${ac_cv_prog_AWK+:} false; then :
 
5474
  $as_echo_n "(cached) " >&6
 
5475
else
 
5476
  if test -n "$AWK"; then
 
5477
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
5478
else
 
5479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5480
for as_dir in $PATH
 
5481
do
 
5482
  IFS=$as_save_IFS
 
5483
  test -z "$as_dir" && as_dir=.
 
5484
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5486
    ac_cv_prog_AWK="$ac_prog"
 
5487
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5488
    break 2
 
5489
  fi
 
5490
done
 
5491
  done
 
5492
IFS=$as_save_IFS
 
5493
 
 
5494
fi
 
5495
fi
 
5496
AWK=$ac_cv_prog_AWK
 
5497
if test -n "$AWK"; then
 
5498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
5499
$as_echo "$AWK" >&6; }
 
5500
else
 
5501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5502
$as_echo "no" >&6; }
 
5503
fi
 
5504
 
 
5505
 
 
5506
  test -n "$AWK" && break
 
5507
done
 
5508
 
 
5509
 
 
5510
 
 
5511
 
 
5512
 
 
5513
 
 
5514
 
 
5515
 
 
5516
 
 
5517
 
 
5518
 
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
# If no C compiler was specified, use CC.
 
5528
LTCC=${LTCC-"$CC"}
 
5529
 
 
5530
# If no C compiler flags were specified, use CFLAGS.
 
5531
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5532
 
 
5533
# Allow CC to be a program name with arguments.
 
5534
compiler=$CC
5562
5535
 
5563
5536
 
5564
5537
# Check for command to grab the raw symbol name followed by C symbol from nm.
5565
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5566
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5567
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5568
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5539
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5540
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5541
  $as_echo_n "(cached) " >&6
5569
5542
else
5570
5543
 
5571
5544
# These are sane defaults that work on at least a few old systems.
5577
5550
# Regexp to match symbols that can be accessed directly from C.
5578
5551
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5579
5552
 
5580
 
# Transform an extracted symbol line into a proper C declaration
5581
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5582
 
 
5583
 
# Transform an extracted symbol line into symbol name and symbol address
5584
 
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'"
5585
 
 
5586
5553
# Define system-specific variables.
5587
5554
case $host_os in
5588
5555
aix*)
5589
5556
  symcode='[BCDT]'
5590
5557
  ;;
5591
 
cygwin* | mingw* | pw32*)
 
5558
cygwin* | mingw* | pw32* | cegcc*)
5592
5559
  symcode='[ABCDGISTW]'
5593
5560
  ;;
5594
 
hpux*) # Its linker distinguishes data from code symbols
 
5561
hpux*)
5595
5562
  if test "$host_cpu" = ia64; then
5596
5563
    symcode='[ABCDEGRST]'
5597
5564
  fi
5598
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599
 
  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'"
5600
 
  ;;
5601
 
linux*)
5602
 
  if test "$host_cpu" = ia64; then
5603
 
    symcode='[ABCDGIRSTW]'
5604
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605
 
    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'"
5606
 
  fi
5607
5565
  ;;
5608
5566
irix* | nonstopux*)
5609
5567
  symcode='[BCDEGRST]'
5628
5586
  ;;
5629
5587
esac
5630
5588
 
 
5589
# If we're using GNU nm, then use its standard symbol codes.
 
5590
case `$NM -V 2>&1` in
 
5591
*GNU* | *'with BFD'*)
 
5592
  symcode='[ABCDGIRSTW]' ;;
 
5593
esac
 
5594
 
 
5595
# Transform an extracted symbol line into a proper C declaration.
 
5596
# Some systems (esp. on ia64) link data and code symbols differently,
 
5597
# so use this general approach.
 
5598
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5599
 
 
5600
# Transform an extracted symbol line into symbol name and symbol address
 
5601
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5602
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5603
 
5631
5604
# Handle CRLF in mingw tool chain
5632
5605
opt_cr=
5633
5606
case $build_os in
5634
5607
mingw*)
5635
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5608
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5636
5609
  ;;
5637
5610
esac
5638
5611
 
5639
 
# If we're using GNU nm, then use its standard symbol codes.
5640
 
case `$NM -V 2>&1` in
5641
 
*GNU* | *'with BFD'*)
5642
 
  symcode='[ABCDGIRSTW]' ;;
5643
 
esac
5644
 
 
5645
 
# Try without a prefix undercore, then with it.
 
5612
# Try without a prefix underscore, then with it.
5646
5613
for ac_symprfx in "" "_"; do
5647
5614
 
5648
5615
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649
5616
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5650
5617
 
5651
5618
  # Write the raw and C identifiers.
5652
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5619
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5620
    # Fake it for dumpbin and say T for any non-static function
 
5621
    # and D for any global variable.
 
5622
    # Also find C++ and __fastcall symbols from MSVC++,
 
5623
    # which start with @ or ?.
 
5624
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5625
"     {last_section=section; section=\$ 3};"\
 
5626
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5627
"     \$ 0!~/External *\|/{next};"\
 
5628
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5629
"     {if(hide[section]) next};"\
 
5630
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5631
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5632
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5633
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5634
"     ' prfx=^$ac_symprfx"
 
5635
  else
 
5636
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5637
  fi
 
5638
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5653
5639
 
5654
5640
  # Check to see that the pipe works correctly.
5655
5641
  pipe_works=no
5656
5642
 
5657
5643
  rm -f conftest*
5658
 
  cat > conftest.$ac_ext <<EOF
 
5644
  cat > conftest.$ac_ext <<_LT_EOF
5659
5645
#ifdef __cplusplus
5660
5646
extern "C" {
5661
5647
#endif
5662
5648
char nm_test_var;
5663
 
void nm_test_func(){}
 
5649
void nm_test_func(void);
 
5650
void nm_test_func(void){}
5664
5651
#ifdef __cplusplus
5665
5652
}
5666
5653
#endif
5667
5654
int main(){nm_test_var='a';nm_test_func();return(0);}
5668
 
EOF
 
5655
_LT_EOF
5669
5656
 
5670
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5657
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5671
5658
  (eval $ac_compile) 2>&5
5672
5659
  ac_status=$?
5673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674
 
  (exit $ac_status); }; then
 
5660
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5661
  test $ac_status = 0; }; then
5675
5662
    # Now try to grab the symbols.
5676
5663
    nlist=conftest.nm
5677
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5678
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5664
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
5665
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5679
5666
  ac_status=$?
5680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681
 
  (exit $ac_status); } && test -s "$nlist"; then
 
5667
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5668
  test $ac_status = 0; } && test -s "$nlist"; then
5682
5669
      # Try sorting and uniquifying the output.
5683
5670
      if sort "$nlist" | uniq > "$nlist"T; then
5684
5671
        mv -f "$nlist"T "$nlist"
5687
5674
      fi
5688
5675
 
5689
5676
      # Make sure that we snagged all the symbols we need.
5690
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5691
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5692
 
          cat <<EOF > conftest.$ac_ext
 
5677
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5678
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5679
          cat <<_LT_EOF > conftest.$ac_ext
 
5680
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
5681
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
5682
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
5683
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
5684
# define LT_DLSYM_CONST
 
5685
#elif defined(__osf__)
 
5686
/* This system does not cope well with relocations in const data.  */
 
5687
# define LT_DLSYM_CONST
 
5688
#else
 
5689
# define LT_DLSYM_CONST const
 
5690
#endif
 
5691
 
5693
5692
#ifdef __cplusplus
5694
5693
extern "C" {
5695
5694
#endif
5696
5695
 
5697
 
EOF
 
5696
_LT_EOF
5698
5697
          # Now generate the symbol file.
5699
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5700
 
 
5701
 
          cat <<EOF >> conftest.$ac_ext
5702
 
#if defined (__STDC__) && __STDC__
5703
 
# define lt_ptr_t void *
5704
 
#else
5705
 
# define lt_ptr_t char *
5706
 
# define const
5707
 
#endif
5708
 
 
5709
 
/* The mapping between symbol names and symbols. */
5710
 
const struct {
 
5698
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5699
 
 
5700
          cat <<_LT_EOF >> conftest.$ac_ext
 
5701
 
 
5702
/* The mapping between symbol names and symbols.  */
 
5703
LT_DLSYM_CONST struct {
5711
5704
  const char *name;
5712
 
  lt_ptr_t address;
 
5705
  void       *address;
5713
5706
}
5714
 
lt_preloaded_symbols[] =
 
5707
lt__PROGRAM__LTX_preloaded_symbols[] =
5715
5708
{
5716
 
EOF
5717
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5718
 
          cat <<\EOF >> conftest.$ac_ext
5719
 
  {0, (lt_ptr_t) 0}
 
5709
  { "@PROGRAM@", (void *) 0 },
 
5710
_LT_EOF
 
5711
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5712
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5713
  {0, (void *) 0}
5720
5714
};
5721
5715
 
 
5716
/* This works around a problem in FreeBSD linker */
 
5717
#ifdef FREEBSD_WORKAROUND
 
5718
static const void *lt_preloaded_setup() {
 
5719
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5720
}
 
5721
#endif
 
5722
 
5722
5723
#ifdef __cplusplus
5723
5724
}
5724
5725
#endif
5725
 
EOF
 
5726
_LT_EOF
5726
5727
          # Now try linking the two files.
5727
5728
          mv conftest.$ac_objext conftstm.$ac_objext
5728
 
          lt_save_LIBS="$LIBS"
5729
 
          lt_save_CFLAGS="$CFLAGS"
 
5729
          lt_globsym_save_LIBS=$LIBS
 
5730
          lt_globsym_save_CFLAGS=$CFLAGS
5730
5731
          LIBS="conftstm.$ac_objext"
5731
5732
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5732
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5733
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5733
5734
  (eval $ac_link) 2>&5
5734
5735
  ac_status=$?
5735
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5736
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5737
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5737
5738
            pipe_works=yes
5738
5739
          fi
5739
 
          LIBS="$lt_save_LIBS"
5740
 
          CFLAGS="$lt_save_CFLAGS"
 
5740
          LIBS=$lt_globsym_save_LIBS
 
5741
          CFLAGS=$lt_globsym_save_CFLAGS
5741
5742
        else
5742
5743
          echo "cannot find nm_test_func in $nlist" >&5
5743
5744
        fi
5751
5752
    echo "$progname: failed program was:" >&5
5752
5753
    cat conftest.$ac_ext >&5
5753
5754
  fi
5754
 
  rm -f conftest* conftst*
 
5755
  rm -rf conftest* conftst*
5755
5756
 
5756
5757
  # Do not use the global_symbol_pipe unless it works.
5757
5758
  if test "$pipe_works" = yes; then
5767
5768
  lt_cv_sys_global_symbol_to_cdecl=
5768
5769
fi
5769
5770
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5770
 
  echo "$as_me:$LINENO: result: failed" >&5
5771
 
echo "${ECHO_T}failed" >&6
5772
 
else
5773
 
  echo "$as_me:$LINENO: result: ok" >&5
5774
 
echo "${ECHO_T}ok" >&6
5775
 
fi
5776
 
 
5777
 
echo "$as_me:$LINENO: checking for objdir" >&5
5778
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5779
 
if test "${lt_cv_objdir+set}" = set; then
5780
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
5772
$as_echo "failed" >&6; }
 
5773
else
 
5774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
5775
$as_echo "ok" >&6; }
 
5776
fi
 
5777
 
 
5778
# Response file support.
 
5779
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5780
  nm_file_list_spec='@'
 
5781
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
5782
  nm_file_list_spec='@'
 
5783
fi
 
5784
 
 
5785
 
 
5786
 
 
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
 
 
5792
 
 
5793
 
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
5812
$as_echo_n "checking for sysroot... " >&6; }
 
5813
 
 
5814
# Check whether --with-sysroot was given.
 
5815
if test "${with_sysroot+set}" = set; then :
 
5816
  withval=$with_sysroot;
 
5817
else
 
5818
  with_sysroot=no
 
5819
fi
 
5820
 
 
5821
 
 
5822
lt_sysroot=
 
5823
case ${with_sysroot} in #(
 
5824
 yes)
 
5825
   if test "$GCC" = yes; then
 
5826
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
5827
   fi
 
5828
   ;; #(
 
5829
 /*)
 
5830
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
5831
   ;; #(
 
5832
 no|'')
 
5833
   ;; #(
 
5834
 *)
 
5835
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
5836
$as_echo "${with_sysroot}" >&6; }
 
5837
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
5838
   ;;
 
5839
esac
 
5840
 
 
5841
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
5842
$as_echo "${lt_sysroot:-no}" >&6; }
 
5843
 
 
5844
 
 
5845
 
 
5846
 
 
5847
 
 
5848
# Check whether --enable-libtool-lock was given.
 
5849
if test "${enable_libtool_lock+set}" = set; then :
 
5850
  enableval=$enable_libtool_lock;
 
5851
fi
 
5852
 
 
5853
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5854
 
 
5855
# Some flags need to be propagated to the compiler or linker for good
 
5856
# libtool support.
 
5857
case $host in
 
5858
ia64-*-hpux*)
 
5859
  # Find out which ABI we are using.
 
5860
  echo 'int i;' > conftest.$ac_ext
 
5861
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5862
  (eval $ac_compile) 2>&5
 
5863
  ac_status=$?
 
5864
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5865
  test $ac_status = 0; }; then
 
5866
    case `/usr/bin/file conftest.$ac_objext` in
 
5867
      *ELF-32*)
 
5868
        HPUX_IA64_MODE="32"
 
5869
        ;;
 
5870
      *ELF-64*)
 
5871
        HPUX_IA64_MODE="64"
 
5872
        ;;
 
5873
    esac
 
5874
  fi
 
5875
  rm -rf conftest*
 
5876
  ;;
 
5877
*-*-irix6*)
 
5878
  # Find out which ABI we are using.
 
5879
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
5880
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5881
  (eval $ac_compile) 2>&5
 
5882
  ac_status=$?
 
5883
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5884
  test $ac_status = 0; }; then
 
5885
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5886
      case `/usr/bin/file conftest.$ac_objext` in
 
5887
        *32-bit*)
 
5888
          LD="${LD-ld} -melf32bsmip"
 
5889
          ;;
 
5890
        *N32*)
 
5891
          LD="${LD-ld} -melf32bmipn32"
 
5892
          ;;
 
5893
        *64-bit*)
 
5894
          LD="${LD-ld} -melf64bmip"
 
5895
        ;;
 
5896
      esac
 
5897
    else
 
5898
      case `/usr/bin/file conftest.$ac_objext` in
 
5899
        *32-bit*)
 
5900
          LD="${LD-ld} -32"
 
5901
          ;;
 
5902
        *N32*)
 
5903
          LD="${LD-ld} -n32"
 
5904
          ;;
 
5905
        *64-bit*)
 
5906
          LD="${LD-ld} -64"
 
5907
          ;;
 
5908
      esac
 
5909
    fi
 
5910
  fi
 
5911
  rm -rf conftest*
 
5912
  ;;
 
5913
 
 
5914
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5915
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5916
  # Find out which ABI we are using.
 
5917
  echo 'int i;' > conftest.$ac_ext
 
5918
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5919
  (eval $ac_compile) 2>&5
 
5920
  ac_status=$?
 
5921
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5922
  test $ac_status = 0; }; then
 
5923
    case `/usr/bin/file conftest.o` in
 
5924
      *32-bit*)
 
5925
        case $host in
 
5926
          x86_64-*kfreebsd*-gnu)
 
5927
            LD="${LD-ld} -m elf_i386_fbsd"
 
5928
            ;;
 
5929
          x86_64-*linux*)
 
5930
            LD="${LD-ld} -m elf_i386"
 
5931
            ;;
 
5932
          ppc64-*linux*|powerpc64-*linux*)
 
5933
            LD="${LD-ld} -m elf32ppclinux"
 
5934
            ;;
 
5935
          s390x-*linux*)
 
5936
            LD="${LD-ld} -m elf_s390"
 
5937
            ;;
 
5938
          sparc64-*linux*)
 
5939
            LD="${LD-ld} -m elf32_sparc"
 
5940
            ;;
 
5941
        esac
 
5942
        ;;
 
5943
      *64-bit*)
 
5944
        case $host in
 
5945
          x86_64-*kfreebsd*-gnu)
 
5946
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5947
            ;;
 
5948
          x86_64-*linux*)
 
5949
            LD="${LD-ld} -m elf_x86_64"
 
5950
            ;;
 
5951
          ppc*-*linux*|powerpc*-*linux*)
 
5952
            LD="${LD-ld} -m elf64ppc"
 
5953
            ;;
 
5954
          s390*-*linux*|s390*-*tpf*)
 
5955
            LD="${LD-ld} -m elf64_s390"
 
5956
            ;;
 
5957
          sparc*-*linux*)
 
5958
            LD="${LD-ld} -m elf64_sparc"
 
5959
            ;;
 
5960
        esac
 
5961
        ;;
 
5962
    esac
 
5963
  fi
 
5964
  rm -rf conftest*
 
5965
  ;;
 
5966
 
 
5967
*-*-sco3.2v5*)
 
5968
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5969
  SAVE_CFLAGS="$CFLAGS"
 
5970
  CFLAGS="$CFLAGS -belf"
 
5971
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
5972
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5973
if ${lt_cv_cc_needs_belf+:} false; then :
 
5974
  $as_echo_n "(cached) " >&6
 
5975
else
 
5976
  ac_ext=c
 
5977
ac_cpp='$CPP $CPPFLAGS'
 
5978
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5979
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5980
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5981
 
 
5982
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5983
/* end confdefs.h.  */
 
5984
 
 
5985
int
 
5986
main ()
 
5987
{
 
5988
 
 
5989
  ;
 
5990
  return 0;
 
5991
}
 
5992
_ACEOF
 
5993
if ac_fn_c_try_link "$LINENO"; then :
 
5994
  lt_cv_cc_needs_belf=yes
 
5995
else
 
5996
  lt_cv_cc_needs_belf=no
 
5997
fi
 
5998
rm -f core conftest.err conftest.$ac_objext \
 
5999
    conftest$ac_exeext conftest.$ac_ext
 
6000
     ac_ext=c
 
6001
ac_cpp='$CPP $CPPFLAGS'
 
6002
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6003
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6004
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6005
 
 
6006
fi
 
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6008
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6009
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6010
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6011
    CFLAGS="$SAVE_CFLAGS"
 
6012
  fi
 
6013
  ;;
 
6014
sparc*-*solaris*)
 
6015
  # Find out which ABI we are using.
 
6016
  echo 'int i;' > conftest.$ac_ext
 
6017
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6018
  (eval $ac_compile) 2>&5
 
6019
  ac_status=$?
 
6020
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6021
  test $ac_status = 0; }; then
 
6022
    case `/usr/bin/file conftest.o` in
 
6023
    *64-bit*)
 
6024
      case $lt_cv_prog_gnu_ld in
 
6025
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6026
      *)
 
6027
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6028
          LD="${LD-ld} -64"
 
6029
        fi
 
6030
        ;;
 
6031
      esac
 
6032
      ;;
 
6033
    esac
 
6034
  fi
 
6035
  rm -rf conftest*
 
6036
  ;;
 
6037
esac
 
6038
 
 
6039
need_locks="$enable_libtool_lock"
 
6040
 
 
6041
if test -n "$ac_tool_prefix"; then
 
6042
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6043
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6045
$as_echo_n "checking for $ac_word... " >&6; }
 
6046
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6047
  $as_echo_n "(cached) " >&6
 
6048
else
 
6049
  if test -n "$MANIFEST_TOOL"; then
 
6050
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6051
else
 
6052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6053
for as_dir in $PATH
 
6054
do
 
6055
  IFS=$as_save_IFS
 
6056
  test -z "$as_dir" && as_dir=.
 
6057
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6059
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6060
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6061
    break 2
 
6062
  fi
 
6063
done
 
6064
  done
 
6065
IFS=$as_save_IFS
 
6066
 
 
6067
fi
 
6068
fi
 
6069
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6070
if test -n "$MANIFEST_TOOL"; then
 
6071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6072
$as_echo "$MANIFEST_TOOL" >&6; }
 
6073
else
 
6074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6075
$as_echo "no" >&6; }
 
6076
fi
 
6077
 
 
6078
 
 
6079
fi
 
6080
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6081
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6082
  # Extract the first word of "mt", so it can be a program name with args.
 
6083
set dummy mt; ac_word=$2
 
6084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6085
$as_echo_n "checking for $ac_word... " >&6; }
 
6086
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6087
  $as_echo_n "(cached) " >&6
 
6088
else
 
6089
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6090
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6091
else
 
6092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6093
for as_dir in $PATH
 
6094
do
 
6095
  IFS=$as_save_IFS
 
6096
  test -z "$as_dir" && as_dir=.
 
6097
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6099
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6100
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6101
    break 2
 
6102
  fi
 
6103
done
 
6104
  done
 
6105
IFS=$as_save_IFS
 
6106
 
 
6107
fi
 
6108
fi
 
6109
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6110
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6112
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6113
else
 
6114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6115
$as_echo "no" >&6; }
 
6116
fi
 
6117
 
 
6118
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6119
    MANIFEST_TOOL=":"
 
6120
  else
 
6121
    case $cross_compiling:$ac_tool_warned in
 
6122
yes:)
 
6123
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6124
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6125
ac_tool_warned=yes ;;
 
6126
esac
 
6127
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6128
  fi
 
6129
else
 
6130
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6131
fi
 
6132
 
 
6133
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6135
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6136
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6137
  $as_echo_n "(cached) " >&6
 
6138
else
 
6139
  lt_cv_path_mainfest_tool=no
 
6140
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6141
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6142
  cat conftest.err >&5
 
6143
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6144
    lt_cv_path_mainfest_tool=yes
 
6145
  fi
 
6146
  rm -f conftest*
 
6147
fi
 
6148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6149
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6150
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6151
  MANIFEST_TOOL=:
 
6152
fi
 
6153
 
 
6154
 
 
6155
 
 
6156
 
 
6157
 
 
6158
 
 
6159
  case $host_os in
 
6160
    rhapsody* | darwin*)
 
6161
    if test -n "$ac_tool_prefix"; then
 
6162
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6163
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6165
$as_echo_n "checking for $ac_word... " >&6; }
 
6166
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6167
  $as_echo_n "(cached) " >&6
 
6168
else
 
6169
  if test -n "$DSYMUTIL"; then
 
6170
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6171
else
 
6172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6173
for as_dir in $PATH
 
6174
do
 
6175
  IFS=$as_save_IFS
 
6176
  test -z "$as_dir" && as_dir=.
 
6177
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6179
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6180
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6181
    break 2
 
6182
  fi
 
6183
done
 
6184
  done
 
6185
IFS=$as_save_IFS
 
6186
 
 
6187
fi
 
6188
fi
 
6189
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6190
if test -n "$DSYMUTIL"; then
 
6191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6192
$as_echo "$DSYMUTIL" >&6; }
 
6193
else
 
6194
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6195
$as_echo "no" >&6; }
 
6196
fi
 
6197
 
 
6198
 
 
6199
fi
 
6200
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6201
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6202
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6203
set dummy dsymutil; ac_word=$2
 
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6205
$as_echo_n "checking for $ac_word... " >&6; }
 
6206
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6207
  $as_echo_n "(cached) " >&6
 
6208
else
 
6209
  if test -n "$ac_ct_DSYMUTIL"; then
 
6210
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6211
else
 
6212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6213
for as_dir in $PATH
 
6214
do
 
6215
  IFS=$as_save_IFS
 
6216
  test -z "$as_dir" && as_dir=.
 
6217
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6218
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6219
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6220
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6221
    break 2
 
6222
  fi
 
6223
done
 
6224
  done
 
6225
IFS=$as_save_IFS
 
6226
 
 
6227
fi
 
6228
fi
 
6229
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6230
if test -n "$ac_ct_DSYMUTIL"; then
 
6231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6232
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6233
else
 
6234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6235
$as_echo "no" >&6; }
 
6236
fi
 
6237
 
 
6238
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6239
    DSYMUTIL=":"
 
6240
  else
 
6241
    case $cross_compiling:$ac_tool_warned in
 
6242
yes:)
 
6243
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6244
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6245
ac_tool_warned=yes ;;
 
6246
esac
 
6247
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6248
  fi
 
6249
else
 
6250
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6251
fi
 
6252
 
 
6253
    if test -n "$ac_tool_prefix"; then
 
6254
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6255
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6257
$as_echo_n "checking for $ac_word... " >&6; }
 
6258
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6259
  $as_echo_n "(cached) " >&6
 
6260
else
 
6261
  if test -n "$NMEDIT"; then
 
6262
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6263
else
 
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6265
for as_dir in $PATH
 
6266
do
 
6267
  IFS=$as_save_IFS
 
6268
  test -z "$as_dir" && as_dir=.
 
6269
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6271
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6272
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6273
    break 2
 
6274
  fi
 
6275
done
 
6276
  done
 
6277
IFS=$as_save_IFS
 
6278
 
 
6279
fi
 
6280
fi
 
6281
NMEDIT=$ac_cv_prog_NMEDIT
 
6282
if test -n "$NMEDIT"; then
 
6283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6284
$as_echo "$NMEDIT" >&6; }
 
6285
else
 
6286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6287
$as_echo "no" >&6; }
 
6288
fi
 
6289
 
 
6290
 
 
6291
fi
 
6292
if test -z "$ac_cv_prog_NMEDIT"; then
 
6293
  ac_ct_NMEDIT=$NMEDIT
 
6294
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6295
set dummy nmedit; ac_word=$2
 
6296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6297
$as_echo_n "checking for $ac_word... " >&6; }
 
6298
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6299
  $as_echo_n "(cached) " >&6
 
6300
else
 
6301
  if test -n "$ac_ct_NMEDIT"; then
 
6302
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6303
else
 
6304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6305
for as_dir in $PATH
 
6306
do
 
6307
  IFS=$as_save_IFS
 
6308
  test -z "$as_dir" && as_dir=.
 
6309
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6310
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6311
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6312
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6313
    break 2
 
6314
  fi
 
6315
done
 
6316
  done
 
6317
IFS=$as_save_IFS
 
6318
 
 
6319
fi
 
6320
fi
 
6321
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6322
if test -n "$ac_ct_NMEDIT"; then
 
6323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6324
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6325
else
 
6326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6327
$as_echo "no" >&6; }
 
6328
fi
 
6329
 
 
6330
  if test "x$ac_ct_NMEDIT" = x; then
 
6331
    NMEDIT=":"
 
6332
  else
 
6333
    case $cross_compiling:$ac_tool_warned in
 
6334
yes:)
 
6335
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6336
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6337
ac_tool_warned=yes ;;
 
6338
esac
 
6339
    NMEDIT=$ac_ct_NMEDIT
 
6340
  fi
 
6341
else
 
6342
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6343
fi
 
6344
 
 
6345
    if test -n "$ac_tool_prefix"; then
 
6346
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6347
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6349
$as_echo_n "checking for $ac_word... " >&6; }
 
6350
if ${ac_cv_prog_LIPO+:} false; then :
 
6351
  $as_echo_n "(cached) " >&6
 
6352
else
 
6353
  if test -n "$LIPO"; then
 
6354
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6355
else
 
6356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6357
for as_dir in $PATH
 
6358
do
 
6359
  IFS=$as_save_IFS
 
6360
  test -z "$as_dir" && as_dir=.
 
6361
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6363
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6364
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6365
    break 2
 
6366
  fi
 
6367
done
 
6368
  done
 
6369
IFS=$as_save_IFS
 
6370
 
 
6371
fi
 
6372
fi
 
6373
LIPO=$ac_cv_prog_LIPO
 
6374
if test -n "$LIPO"; then
 
6375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6376
$as_echo "$LIPO" >&6; }
 
6377
else
 
6378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6379
$as_echo "no" >&6; }
 
6380
fi
 
6381
 
 
6382
 
 
6383
fi
 
6384
if test -z "$ac_cv_prog_LIPO"; then
 
6385
  ac_ct_LIPO=$LIPO
 
6386
  # Extract the first word of "lipo", so it can be a program name with args.
 
6387
set dummy lipo; ac_word=$2
 
6388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6389
$as_echo_n "checking for $ac_word... " >&6; }
 
6390
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6391
  $as_echo_n "(cached) " >&6
 
6392
else
 
6393
  if test -n "$ac_ct_LIPO"; then
 
6394
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6395
else
 
6396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6397
for as_dir in $PATH
 
6398
do
 
6399
  IFS=$as_save_IFS
 
6400
  test -z "$as_dir" && as_dir=.
 
6401
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6403
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6404
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6405
    break 2
 
6406
  fi
 
6407
done
 
6408
  done
 
6409
IFS=$as_save_IFS
 
6410
 
 
6411
fi
 
6412
fi
 
6413
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6414
if test -n "$ac_ct_LIPO"; then
 
6415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6416
$as_echo "$ac_ct_LIPO" >&6; }
 
6417
else
 
6418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6419
$as_echo "no" >&6; }
 
6420
fi
 
6421
 
 
6422
  if test "x$ac_ct_LIPO" = x; then
 
6423
    LIPO=":"
 
6424
  else
 
6425
    case $cross_compiling:$ac_tool_warned in
 
6426
yes:)
 
6427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6429
ac_tool_warned=yes ;;
 
6430
esac
 
6431
    LIPO=$ac_ct_LIPO
 
6432
  fi
 
6433
else
 
6434
  LIPO="$ac_cv_prog_LIPO"
 
6435
fi
 
6436
 
 
6437
    if test -n "$ac_tool_prefix"; then
 
6438
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6439
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6441
$as_echo_n "checking for $ac_word... " >&6; }
 
6442
if ${ac_cv_prog_OTOOL+:} false; then :
 
6443
  $as_echo_n "(cached) " >&6
 
6444
else
 
6445
  if test -n "$OTOOL"; then
 
6446
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6447
else
 
6448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6449
for as_dir in $PATH
 
6450
do
 
6451
  IFS=$as_save_IFS
 
6452
  test -z "$as_dir" && as_dir=.
 
6453
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6455
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6456
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6457
    break 2
 
6458
  fi
 
6459
done
 
6460
  done
 
6461
IFS=$as_save_IFS
 
6462
 
 
6463
fi
 
6464
fi
 
6465
OTOOL=$ac_cv_prog_OTOOL
 
6466
if test -n "$OTOOL"; then
 
6467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6468
$as_echo "$OTOOL" >&6; }
 
6469
else
 
6470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6471
$as_echo "no" >&6; }
 
6472
fi
 
6473
 
 
6474
 
 
6475
fi
 
6476
if test -z "$ac_cv_prog_OTOOL"; then
 
6477
  ac_ct_OTOOL=$OTOOL
 
6478
  # Extract the first word of "otool", so it can be a program name with args.
 
6479
set dummy otool; ac_word=$2
 
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6481
$as_echo_n "checking for $ac_word... " >&6; }
 
6482
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6483
  $as_echo_n "(cached) " >&6
 
6484
else
 
6485
  if test -n "$ac_ct_OTOOL"; then
 
6486
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6487
else
 
6488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6489
for as_dir in $PATH
 
6490
do
 
6491
  IFS=$as_save_IFS
 
6492
  test -z "$as_dir" && as_dir=.
 
6493
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6494
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6495
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6496
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6497
    break 2
 
6498
  fi
 
6499
done
 
6500
  done
 
6501
IFS=$as_save_IFS
 
6502
 
 
6503
fi
 
6504
fi
 
6505
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6506
if test -n "$ac_ct_OTOOL"; then
 
6507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6508
$as_echo "$ac_ct_OTOOL" >&6; }
 
6509
else
 
6510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6511
$as_echo "no" >&6; }
 
6512
fi
 
6513
 
 
6514
  if test "x$ac_ct_OTOOL" = x; then
 
6515
    OTOOL=":"
 
6516
  else
 
6517
    case $cross_compiling:$ac_tool_warned in
 
6518
yes:)
 
6519
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6520
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6521
ac_tool_warned=yes ;;
 
6522
esac
 
6523
    OTOOL=$ac_ct_OTOOL
 
6524
  fi
 
6525
else
 
6526
  OTOOL="$ac_cv_prog_OTOOL"
 
6527
fi
 
6528
 
 
6529
    if test -n "$ac_tool_prefix"; then
 
6530
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6531
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6533
$as_echo_n "checking for $ac_word... " >&6; }
 
6534
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6535
  $as_echo_n "(cached) " >&6
 
6536
else
 
6537
  if test -n "$OTOOL64"; then
 
6538
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6539
else
 
6540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6541
for as_dir in $PATH
 
6542
do
 
6543
  IFS=$as_save_IFS
 
6544
  test -z "$as_dir" && as_dir=.
 
6545
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6547
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6549
    break 2
 
6550
  fi
 
6551
done
 
6552
  done
 
6553
IFS=$as_save_IFS
 
6554
 
 
6555
fi
 
6556
fi
 
6557
OTOOL64=$ac_cv_prog_OTOOL64
 
6558
if test -n "$OTOOL64"; then
 
6559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6560
$as_echo "$OTOOL64" >&6; }
 
6561
else
 
6562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6563
$as_echo "no" >&6; }
 
6564
fi
 
6565
 
 
6566
 
 
6567
fi
 
6568
if test -z "$ac_cv_prog_OTOOL64"; then
 
6569
  ac_ct_OTOOL64=$OTOOL64
 
6570
  # Extract the first word of "otool64", so it can be a program name with args.
 
6571
set dummy otool64; ac_word=$2
 
6572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6573
$as_echo_n "checking for $ac_word... " >&6; }
 
6574
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
6575
  $as_echo_n "(cached) " >&6
 
6576
else
 
6577
  if test -n "$ac_ct_OTOOL64"; then
 
6578
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6579
else
 
6580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6581
for as_dir in $PATH
 
6582
do
 
6583
  IFS=$as_save_IFS
 
6584
  test -z "$as_dir" && as_dir=.
 
6585
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6587
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6589
    break 2
 
6590
  fi
 
6591
done
 
6592
  done
 
6593
IFS=$as_save_IFS
 
6594
 
 
6595
fi
 
6596
fi
 
6597
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6598
if test -n "$ac_ct_OTOOL64"; then
 
6599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6600
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6601
else
 
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6603
$as_echo "no" >&6; }
 
6604
fi
 
6605
 
 
6606
  if test "x$ac_ct_OTOOL64" = x; then
 
6607
    OTOOL64=":"
 
6608
  else
 
6609
    case $cross_compiling:$ac_tool_warned in
 
6610
yes:)
 
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6613
ac_tool_warned=yes ;;
 
6614
esac
 
6615
    OTOOL64=$ac_ct_OTOOL64
 
6616
  fi
 
6617
else
 
6618
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6619
fi
 
6620
 
 
6621
 
 
6622
 
 
6623
 
 
6624
 
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
 
 
6635
 
 
6636
 
 
6637
 
 
6638
 
 
6639
 
 
6640
 
 
6641
 
 
6642
 
 
6643
 
 
6644
 
 
6645
 
 
6646
 
 
6647
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6648
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6649
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
6650
  $as_echo_n "(cached) " >&6
 
6651
else
 
6652
  lt_cv_apple_cc_single_mod=no
 
6653
      if test -z "${LT_MULTI_MODULE}"; then
 
6654
        # By default we will add the -single_module flag. You can override
 
6655
        # by either setting the environment variable LT_MULTI_MODULE
 
6656
        # non-empty at configure time, or by adding -multi_module to the
 
6657
        # link flags.
 
6658
        rm -rf libconftest.dylib*
 
6659
        echo "int foo(void){return 1;}" > conftest.c
 
6660
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6661
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6662
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6663
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6664
        _lt_result=$?
 
6665
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6666
          lt_cv_apple_cc_single_mod=yes
 
6667
        else
 
6668
          cat conftest.err >&5
 
6669
        fi
 
6670
        rm -rf libconftest.dylib*
 
6671
        rm -f conftest.*
 
6672
      fi
 
6673
fi
 
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6675
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6676
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6677
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6678
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
6679
  $as_echo_n "(cached) " >&6
 
6680
else
 
6681
  lt_cv_ld_exported_symbols_list=no
 
6682
      save_LDFLAGS=$LDFLAGS
 
6683
      echo "_main" > conftest.sym
 
6684
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6685
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6686
/* end confdefs.h.  */
 
6687
 
 
6688
int
 
6689
main ()
 
6690
{
 
6691
 
 
6692
  ;
 
6693
  return 0;
 
6694
}
 
6695
_ACEOF
 
6696
if ac_fn_c_try_link "$LINENO"; then :
 
6697
  lt_cv_ld_exported_symbols_list=yes
 
6698
else
 
6699
  lt_cv_ld_exported_symbols_list=no
 
6700
fi
 
6701
rm -f core conftest.err conftest.$ac_objext \
 
6702
    conftest$ac_exeext conftest.$ac_ext
 
6703
        LDFLAGS="$save_LDFLAGS"
 
6704
 
 
6705
fi
 
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6707
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6708
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
6709
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
6710
if ${lt_cv_ld_force_load+:} false; then :
 
6711
  $as_echo_n "(cached) " >&6
 
6712
else
 
6713
  lt_cv_ld_force_load=no
 
6714
      cat > conftest.c << _LT_EOF
 
6715
int forced_loaded() { return 2;}
 
6716
_LT_EOF
 
6717
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
6718
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
6719
      echo "$AR cru libconftest.a conftest.o" >&5
 
6720
      $AR cru libconftest.a conftest.o 2>&5
 
6721
      echo "$RANLIB libconftest.a" >&5
 
6722
      $RANLIB libconftest.a 2>&5
 
6723
      cat > conftest.c << _LT_EOF
 
6724
int main() { return 0;}
 
6725
_LT_EOF
 
6726
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
6727
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
6728
      _lt_result=$?
 
6729
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
6730
        lt_cv_ld_force_load=yes
 
6731
      else
 
6732
        cat conftest.err >&5
 
6733
      fi
 
6734
        rm -f conftest.err libconftest.a conftest conftest.c
 
6735
        rm -rf conftest.dSYM
 
6736
 
 
6737
fi
 
6738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
6739
$as_echo "$lt_cv_ld_force_load" >&6; }
 
6740
    case $host_os in
 
6741
    rhapsody* | darwin1.[012])
 
6742
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6743
    darwin1.*)
 
6744
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6745
    darwin*) # darwin 5.x on
 
6746
      # if running on 10.5 or later, the deployment target defaults
 
6747
      # to the OS version, if on x86, and 10.4, the deployment
 
6748
      # target defaults to 10.4. Don't you love it?
 
6749
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6750
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6751
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6752
        10.[012]*)
 
6753
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6754
        10.*)
 
6755
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6756
      esac
 
6757
    ;;
 
6758
  esac
 
6759
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6760
      _lt_dar_single_mod='$single_module'
 
6761
    fi
 
6762
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6763
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6764
    else
 
6765
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6766
    fi
 
6767
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
6768
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6769
    else
 
6770
      _lt_dsymutil=
 
6771
    fi
 
6772
    ;;
 
6773
  esac
 
6774
 
 
6775
ac_ext=c
 
6776
ac_cpp='$CPP $CPPFLAGS'
 
6777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6781
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6782
# On Suns, sometimes $CPP names a directory.
 
6783
if test -n "$CPP" && test -d "$CPP"; then
 
6784
  CPP=
 
6785
fi
 
6786
if test -z "$CPP"; then
 
6787
  if ${ac_cv_prog_CPP+:} false; then :
 
6788
  $as_echo_n "(cached) " >&6
 
6789
else
 
6790
      # Double quotes because CPP needs to be expanded
 
6791
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6792
    do
 
6793
      ac_preproc_ok=false
 
6794
for ac_c_preproc_warn_flag in '' yes
 
6795
do
 
6796
  # Use a header file that comes with gcc, so configuring glibc
 
6797
  # with a fresh cross-compiler works.
 
6798
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6799
  # <limits.h> exists even on freestanding compilers.
 
6800
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6801
  # not just through cpp. "Syntax error" is here to catch this case.
 
6802
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6803
/* end confdefs.h.  */
 
6804
#ifdef __STDC__
 
6805
# include <limits.h>
 
6806
#else
 
6807
# include <assert.h>
 
6808
#endif
 
6809
                     Syntax error
 
6810
_ACEOF
 
6811
if ac_fn_c_try_cpp "$LINENO"; then :
 
6812
 
 
6813
else
 
6814
  # Broken: fails on valid input.
 
6815
continue
 
6816
fi
 
6817
rm -f conftest.err conftest.i conftest.$ac_ext
 
6818
 
 
6819
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6820
  # can be detected and how.
 
6821
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6822
/* end confdefs.h.  */
 
6823
#include <ac_nonexistent.h>
 
6824
_ACEOF
 
6825
if ac_fn_c_try_cpp "$LINENO"; then :
 
6826
  # Broken: success on invalid input.
 
6827
continue
 
6828
else
 
6829
  # Passes both tests.
 
6830
ac_preproc_ok=:
 
6831
break
 
6832
fi
 
6833
rm -f conftest.err conftest.i conftest.$ac_ext
 
6834
 
 
6835
done
 
6836
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6837
rm -f conftest.i conftest.err conftest.$ac_ext
 
6838
if $ac_preproc_ok; then :
 
6839
  break
 
6840
fi
 
6841
 
 
6842
    done
 
6843
    ac_cv_prog_CPP=$CPP
 
6844
 
 
6845
fi
 
6846
  CPP=$ac_cv_prog_CPP
 
6847
else
 
6848
  ac_cv_prog_CPP=$CPP
 
6849
fi
 
6850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6851
$as_echo "$CPP" >&6; }
 
6852
ac_preproc_ok=false
 
6853
for ac_c_preproc_warn_flag in '' yes
 
6854
do
 
6855
  # Use a header file that comes with gcc, so configuring glibc
 
6856
  # with a fresh cross-compiler works.
 
6857
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6858
  # <limits.h> exists even on freestanding compilers.
 
6859
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6860
  # not just through cpp. "Syntax error" is here to catch this case.
 
6861
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6862
/* end confdefs.h.  */
 
6863
#ifdef __STDC__
 
6864
# include <limits.h>
 
6865
#else
 
6866
# include <assert.h>
 
6867
#endif
 
6868
                     Syntax error
 
6869
_ACEOF
 
6870
if ac_fn_c_try_cpp "$LINENO"; then :
 
6871
 
 
6872
else
 
6873
  # Broken: fails on valid input.
 
6874
continue
 
6875
fi
 
6876
rm -f conftest.err conftest.i conftest.$ac_ext
 
6877
 
 
6878
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6879
  # can be detected and how.
 
6880
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6881
/* end confdefs.h.  */
 
6882
#include <ac_nonexistent.h>
 
6883
_ACEOF
 
6884
if ac_fn_c_try_cpp "$LINENO"; then :
 
6885
  # Broken: success on invalid input.
 
6886
continue
 
6887
else
 
6888
  # Passes both tests.
 
6889
ac_preproc_ok=:
 
6890
break
 
6891
fi
 
6892
rm -f conftest.err conftest.i conftest.$ac_ext
 
6893
 
 
6894
done
 
6895
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6896
rm -f conftest.i conftest.err conftest.$ac_ext
 
6897
if $ac_preproc_ok; then :
 
6898
 
 
6899
else
 
6900
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6901
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6902
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
6903
See \`config.log' for more details" "$LINENO" 5; }
 
6904
fi
 
6905
 
 
6906
ac_ext=c
 
6907
ac_cpp='$CPP $CPPFLAGS'
 
6908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6911
 
 
6912
 
 
6913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6914
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6915
if ${ac_cv_header_stdc+:} false; then :
 
6916
  $as_echo_n "(cached) " >&6
 
6917
else
 
6918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6919
/* end confdefs.h.  */
 
6920
#include <stdlib.h>
 
6921
#include <stdarg.h>
 
6922
#include <string.h>
 
6923
#include <float.h>
 
6924
 
 
6925
int
 
6926
main ()
 
6927
{
 
6928
 
 
6929
  ;
 
6930
  return 0;
 
6931
}
 
6932
_ACEOF
 
6933
if ac_fn_c_try_compile "$LINENO"; then :
 
6934
  ac_cv_header_stdc=yes
 
6935
else
 
6936
  ac_cv_header_stdc=no
 
6937
fi
 
6938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6939
 
 
6940
if test $ac_cv_header_stdc = yes; then
 
6941
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6942
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6943
/* end confdefs.h.  */
 
6944
#include <string.h>
 
6945
 
 
6946
_ACEOF
 
6947
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6948
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6949
 
 
6950
else
 
6951
  ac_cv_header_stdc=no
 
6952
fi
 
6953
rm -f conftest*
 
6954
 
 
6955
fi
 
6956
 
 
6957
if test $ac_cv_header_stdc = yes; then
 
6958
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6959
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6960
/* end confdefs.h.  */
 
6961
#include <stdlib.h>
 
6962
 
 
6963
_ACEOF
 
6964
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6965
  $EGREP "free" >/dev/null 2>&1; then :
 
6966
 
 
6967
else
 
6968
  ac_cv_header_stdc=no
 
6969
fi
 
6970
rm -f conftest*
 
6971
 
 
6972
fi
 
6973
 
 
6974
if test $ac_cv_header_stdc = yes; then
 
6975
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6976
  if test "$cross_compiling" = yes; then :
 
6977
  :
 
6978
else
 
6979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6980
/* end confdefs.h.  */
 
6981
#include <ctype.h>
 
6982
#include <stdlib.h>
 
6983
#if ((' ' & 0x0FF) == 0x020)
 
6984
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6985
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6986
#else
 
6987
# define ISLOWER(c) \
 
6988
                   (('a' <= (c) && (c) <= 'i') \
 
6989
                     || ('j' <= (c) && (c) <= 'r') \
 
6990
                     || ('s' <= (c) && (c) <= 'z'))
 
6991
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6992
#endif
 
6993
 
 
6994
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6995
int
 
6996
main ()
 
6997
{
 
6998
  int i;
 
6999
  for (i = 0; i < 256; i++)
 
7000
    if (XOR (islower (i), ISLOWER (i))
 
7001
        || toupper (i) != TOUPPER (i))
 
7002
      return 2;
 
7003
  return 0;
 
7004
}
 
7005
_ACEOF
 
7006
if ac_fn_c_try_run "$LINENO"; then :
 
7007
 
 
7008
else
 
7009
  ac_cv_header_stdc=no
 
7010
fi
 
7011
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7012
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7013
fi
 
7014
 
 
7015
fi
 
7016
fi
 
7017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7018
$as_echo "$ac_cv_header_stdc" >&6; }
 
7019
if test $ac_cv_header_stdc = yes; then
 
7020
 
 
7021
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7022
 
 
7023
fi
 
7024
 
 
7025
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7026
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7027
                  inttypes.h stdint.h unistd.h
 
7028
do :
 
7029
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7030
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7031
"
 
7032
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7033
  cat >>confdefs.h <<_ACEOF
 
7034
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7035
_ACEOF
 
7036
 
 
7037
fi
 
7038
 
 
7039
done
 
7040
 
 
7041
 
 
7042
for ac_header in dlfcn.h
 
7043
do :
 
7044
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7045
"
 
7046
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7047
  cat >>confdefs.h <<_ACEOF
 
7048
#define HAVE_DLFCN_H 1
 
7049
_ACEOF
 
7050
 
 
7051
fi
 
7052
 
 
7053
done
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
# Set options
 
7060
 
 
7061
 
 
7062
 
 
7063
        enable_dlopen=no
 
7064
 
 
7065
 
 
7066
 
 
7067
            # Check whether --enable-shared was given.
 
7068
if test "${enable_shared+set}" = set; then :
 
7069
  enableval=$enable_shared; p=${PACKAGE-default}
 
7070
    case $enableval in
 
7071
    yes) enable_shared=yes ;;
 
7072
    no) enable_shared=no ;;
 
7073
    *)
 
7074
      enable_shared=no
 
7075
      # Look at the argument we got.  We use all the common list separators.
 
7076
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7077
      for pkg in $enableval; do
 
7078
        IFS="$lt_save_ifs"
 
7079
        if test "X$pkg" = "X$p"; then
 
7080
          enable_shared=yes
 
7081
        fi
 
7082
      done
 
7083
      IFS="$lt_save_ifs"
 
7084
      ;;
 
7085
    esac
 
7086
else
 
7087
  enable_shared=yes
 
7088
fi
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
  # Check whether --enable-static was given.
 
7099
if test "${enable_static+set}" = set; then :
 
7100
  enableval=$enable_static; p=${PACKAGE-default}
 
7101
    case $enableval in
 
7102
    yes) enable_static=yes ;;
 
7103
    no) enable_static=no ;;
 
7104
    *)
 
7105
     enable_static=no
 
7106
      # Look at the argument we got.  We use all the common list separators.
 
7107
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7108
      for pkg in $enableval; do
 
7109
        IFS="$lt_save_ifs"
 
7110
        if test "X$pkg" = "X$p"; then
 
7111
          enable_static=yes
 
7112
        fi
 
7113
      done
 
7114
      IFS="$lt_save_ifs"
 
7115
      ;;
 
7116
    esac
 
7117
else
 
7118
  enable_static=yes
 
7119
fi
 
7120
 
 
7121
 
 
7122
 
 
7123
 
 
7124
 
 
7125
 
 
7126
 
 
7127
 
 
7128
 
 
7129
 
 
7130
# Check whether --with-pic was given.
 
7131
if test "${with_pic+set}" = set; then :
 
7132
  withval=$with_pic; pic_mode="$withval"
 
7133
else
 
7134
  pic_mode=default
 
7135
fi
 
7136
 
 
7137
 
 
7138
test -z "$pic_mode" && pic_mode=default
 
7139
 
 
7140
 
 
7141
 
 
7142
 
 
7143
 
 
7144
 
 
7145
 
 
7146
  # Check whether --enable-fast-install was given.
 
7147
if test "${enable_fast_install+set}" = set; then :
 
7148
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7149
    case $enableval in
 
7150
    yes) enable_fast_install=yes ;;
 
7151
    no) enable_fast_install=no ;;
 
7152
    *)
 
7153
      enable_fast_install=no
 
7154
      # Look at the argument we got.  We use all the common list separators.
 
7155
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7156
      for pkg in $enableval; do
 
7157
        IFS="$lt_save_ifs"
 
7158
        if test "X$pkg" = "X$p"; then
 
7159
          enable_fast_install=yes
 
7160
        fi
 
7161
      done
 
7162
      IFS="$lt_save_ifs"
 
7163
      ;;
 
7164
    esac
 
7165
else
 
7166
  enable_fast_install=yes
 
7167
fi
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
# This can be used to rebuild libtool when needed
 
7180
LIBTOOL_DEPS="$ltmain"
 
7181
 
 
7182
# Always use our own libtool.
 
7183
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
test -z "$LN_S" && LN_S="ln -s"
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
if test -n "${ZSH_VERSION+set}" ; then
 
7226
   setopt NO_GLOB_SUBST
 
7227
fi
 
7228
 
 
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7230
$as_echo_n "checking for objdir... " >&6; }
 
7231
if ${lt_cv_objdir+:} false; then :
 
7232
  $as_echo_n "(cached) " >&6
5781
7233
else
5782
7234
  rm -f .libs 2>/dev/null
5783
7235
mkdir .libs 2>/dev/null
5789
7241
fi
5790
7242
rmdir .libs 2>/dev/null
5791
7243
fi
5792
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5793
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7245
$as_echo "$lt_cv_objdir" >&6; }
5794
7246
objdir=$lt_cv_objdir
5795
7247
 
5796
7248
 
5797
7249
 
5798
7250
 
5799
7251
 
 
7252
cat >>confdefs.h <<_ACEOF
 
7253
#define LT_OBJDIR "$lt_cv_objdir/"
 
7254
_ACEOF
 
7255
 
 
7256
 
 
7257
 
 
7258
 
5800
7259
case $host_os in
5801
7260
aix3*)
5802
7261
  # AIX sometimes has problems with the GCC collect2 program.  For some
5809
7268
  ;;
5810
7269
esac
5811
7270
 
5812
 
# Sed substitution that helps us do robust quoting.  It backslashifies
5813
 
# metacharacters that are still active within double-quoted strings.
5814
 
Xsed='sed -e 1s/^X//'
5815
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5816
 
 
5817
 
# Same as above, but do not quote variable references.
5818
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5819
 
 
5820
 
# Sed substitution to delay expansion of an escaped shell variable in a
5821
 
# double_quote_subst'ed string.
5822
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5823
 
 
5824
 
# Sed substitution to avoid accidental globbing in evaled expressions
5825
 
no_glob_subst='s/\*/\\\*/g'
5826
 
 
5827
 
# Constants:
5828
 
rm="rm -f"
5829
 
 
5830
7271
# Global variables:
5831
 
default_ofile=libtool
 
7272
ofile=libtool
5832
7273
can_build_shared=yes
5833
7274
 
5834
7275
# All known linkers require a `.a' archive for static linking (except MSVC,
5835
7276
# which needs '.lib').
5836
7277
libext=a
5837
 
ltmain="$ac_aux_dir/ltmain.sh"
5838
 
ofile="$default_ofile"
 
7278
 
5839
7279
with_gnu_ld="$lt_cv_prog_gnu_ld"
5840
7280
 
5841
 
if test -n "$ac_tool_prefix"; then
5842
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5843
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5844
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5845
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846
 
if test "${ac_cv_prog_AR+set}" = set; then
5847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5848
 
else
5849
 
  if test -n "$AR"; then
5850
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5851
 
else
5852
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853
 
for as_dir in $PATH
5854
 
do
5855
 
  IFS=$as_save_IFS
5856
 
  test -z "$as_dir" && as_dir=.
5857
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5858
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5860
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861
 
    break 2
5862
 
  fi
5863
 
done
5864
 
done
5865
 
 
5866
 
fi
5867
 
fi
5868
 
AR=$ac_cv_prog_AR
5869
 
if test -n "$AR"; then
5870
 
  echo "$as_me:$LINENO: result: $AR" >&5
5871
 
echo "${ECHO_T}$AR" >&6
5872
 
else
5873
 
  echo "$as_me:$LINENO: result: no" >&5
5874
 
echo "${ECHO_T}no" >&6
5875
 
fi
5876
 
 
5877
 
fi
5878
 
if test -z "$ac_cv_prog_AR"; then
5879
 
  ac_ct_AR=$AR
5880
 
  # Extract the first word of "ar", so it can be a program name with args.
5881
 
set dummy ar; ac_word=$2
5882
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5883
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5884
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5886
 
else
5887
 
  if test -n "$ac_ct_AR"; then
5888
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889
 
else
5890
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891
 
for as_dir in $PATH
5892
 
do
5893
 
  IFS=$as_save_IFS
5894
 
  test -z "$as_dir" && as_dir=.
5895
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5896
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897
 
    ac_cv_prog_ac_ct_AR="ar"
5898
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899
 
    break 2
5900
 
  fi
5901
 
done
5902
 
done
5903
 
 
5904
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5905
 
fi
5906
 
fi
5907
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908
 
if test -n "$ac_ct_AR"; then
5909
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5910
 
echo "${ECHO_T}$ac_ct_AR" >&6
5911
 
else
5912
 
  echo "$as_me:$LINENO: result: no" >&5
5913
 
echo "${ECHO_T}no" >&6
5914
 
fi
5915
 
 
5916
 
  AR=$ac_ct_AR
5917
 
else
5918
 
  AR="$ac_cv_prog_AR"
5919
 
fi
5920
 
 
5921
 
if test -n "$ac_tool_prefix"; then
5922
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5923
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5924
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5925
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5928
 
else
5929
 
  if test -n "$RANLIB"; then
5930
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5931
 
else
5932
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933
 
for as_dir in $PATH
5934
 
do
5935
 
  IFS=$as_save_IFS
5936
 
  test -z "$as_dir" && as_dir=.
5937
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5938
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5940
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941
 
    break 2
5942
 
  fi
5943
 
done
5944
 
done
5945
 
 
5946
 
fi
5947
 
fi
5948
 
RANLIB=$ac_cv_prog_RANLIB
5949
 
if test -n "$RANLIB"; then
5950
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5951
 
echo "${ECHO_T}$RANLIB" >&6
5952
 
else
5953
 
  echo "$as_me:$LINENO: result: no" >&5
5954
 
echo "${ECHO_T}no" >&6
5955
 
fi
5956
 
 
5957
 
fi
5958
 
if test -z "$ac_cv_prog_RANLIB"; then
5959
 
  ac_ct_RANLIB=$RANLIB
5960
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5961
 
set dummy ranlib; ac_word=$2
5962
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5963
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5966
 
else
5967
 
  if test -n "$ac_ct_RANLIB"; then
5968
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969
 
else
5970
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971
 
for as_dir in $PATH
5972
 
do
5973
 
  IFS=$as_save_IFS
5974
 
  test -z "$as_dir" && as_dir=.
5975
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5976
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5978
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979
 
    break 2
5980
 
  fi
5981
 
done
5982
 
done
5983
 
 
5984
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5985
 
fi
5986
 
fi
5987
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988
 
if test -n "$ac_ct_RANLIB"; then
5989
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5990
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5991
 
else
5992
 
  echo "$as_me:$LINENO: result: no" >&5
5993
 
echo "${ECHO_T}no" >&6
5994
 
fi
5995
 
 
5996
 
  RANLIB=$ac_ct_RANLIB
5997
 
else
5998
 
  RANLIB="$ac_cv_prog_RANLIB"
5999
 
fi
6000
 
 
6001
 
if test -n "$ac_tool_prefix"; then
6002
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6004
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6005
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6008
 
else
6009
 
  if test -n "$STRIP"; then
6010
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6011
 
else
6012
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013
 
for as_dir in $PATH
6014
 
do
6015
 
  IFS=$as_save_IFS
6016
 
  test -z "$as_dir" && as_dir=.
6017
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6018
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021
 
    break 2
6022
 
  fi
6023
 
done
6024
 
done
6025
 
 
6026
 
fi
6027
 
fi
6028
 
STRIP=$ac_cv_prog_STRIP
6029
 
if test -n "$STRIP"; then
6030
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
6031
 
echo "${ECHO_T}$STRIP" >&6
6032
 
else
6033
 
  echo "$as_me:$LINENO: result: no" >&5
6034
 
echo "${ECHO_T}no" >&6
6035
 
fi
6036
 
 
6037
 
fi
6038
 
if test -z "$ac_cv_prog_STRIP"; then
6039
 
  ac_ct_STRIP=$STRIP
6040
 
  # Extract the first word of "strip", so it can be a program name with args.
6041
 
set dummy strip; ac_word=$2
6042
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6043
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6044
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6046
 
else
6047
 
  if test -n "$ac_ct_STRIP"; then
6048
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049
 
else
6050
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051
 
for as_dir in $PATH
6052
 
do
6053
 
  IFS=$as_save_IFS
6054
 
  test -z "$as_dir" && as_dir=.
6055
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6056
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057
 
    ac_cv_prog_ac_ct_STRIP="strip"
6058
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059
 
    break 2
6060
 
  fi
6061
 
done
6062
 
done
6063
 
 
6064
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6065
 
fi
6066
 
fi
6067
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068
 
if test -n "$ac_ct_STRIP"; then
6069
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
6071
 
else
6072
 
  echo "$as_me:$LINENO: result: no" >&5
6073
 
echo "${ECHO_T}no" >&6
6074
 
fi
6075
 
 
6076
 
  STRIP=$ac_ct_STRIP
6077
 
else
6078
 
  STRIP="$ac_cv_prog_STRIP"
6079
 
fi
6080
 
 
6081
 
 
6082
7281
old_CC="$CC"
6083
7282
old_CFLAGS="$CFLAGS"
6084
7283
 
6085
7284
# Set sane defaults for various variables
6086
 
test -z "$AR" && AR=ar
6087
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6088
 
test -z "$AS" && AS=as
6089
7285
test -z "$CC" && CC=cc
6090
7286
test -z "$LTCC" && LTCC=$CC
6091
7287
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6092
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6093
7288
test -z "$LD" && LD=ld
6094
 
test -z "$LN_S" && LN_S="ln -s"
6095
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096
 
test -z "$NM" && NM=nm
6097
 
test -z "$SED" && SED=sed
6098
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6099
 
test -z "$RANLIB" && RANLIB=:
6100
 
test -z "$STRIP" && STRIP=:
6101
7289
test -z "$ac_objext" && ac_objext=o
6102
7290
 
6103
 
# Determine commands to create old-style static archives.
6104
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105
 
old_postinstall_cmds='chmod 644 $oldlib'
6106
 
old_postuninstall_cmds=
6107
 
 
6108
 
if test -n "$RANLIB"; then
6109
 
  case $host_os in
6110
 
  openbsd*)
6111
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6112
 
    ;;
6113
 
  *)
6114
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6115
 
    ;;
6116
 
  esac
6117
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6118
 
fi
6119
 
 
6120
7291
for cc_temp in $compiler""; do
6121
7292
  case $cc_temp in
6122
7293
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6125
7296
    *) break;;
6126
7297
  esac
6127
7298
done
6128
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7299
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6129
7300
 
6130
7301
 
6131
7302
# Only perform the check for file, if the check method requires it
 
7303
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6132
7304
case $deplibs_check_method in
6133
7305
file_magic*)
6134
7306
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6135
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6136
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6137
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7307
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7308
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7309
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7310
  $as_echo_n "(cached) " >&6
6139
7311
else
6140
7312
  case $MAGIC_CMD in
6141
7313
[\\/*] |  ?:[\\/]*)
6159
7331
            $EGREP "$file_magic_regex" > /dev/null; then
6160
7332
            :
6161
7333
          else
6162
 
            cat <<EOF 1>&2
 
7334
            cat <<_LT_EOF 1>&2
6163
7335
 
6164
7336
*** Warning: the command libtool uses to detect shared libraries,
6165
7337
*** $file_magic_cmd, produces output that libtool cannot recognize.
6170
7342
*** may want to report the problem to your system manager and/or to
6171
7343
*** bug-libtool@gnu.org
6172
7344
 
6173
 
EOF
 
7345
_LT_EOF
6174
7346
          fi ;;
6175
7347
        esac
6176
7348
      fi
6185
7357
 
6186
7358
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187
7359
if test -n "$MAGIC_CMD"; then
6188
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7361
$as_echo "$MAGIC_CMD" >&6; }
6190
7362
else
6191
 
  echo "$as_me:$LINENO: result: no" >&5
6192
 
echo "${ECHO_T}no" >&6
 
7363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7364
$as_echo "no" >&6; }
6193
7365
fi
6194
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
6195
7371
if test -z "$lt_cv_path_MAGIC_CMD"; then
6196
7372
  if test -n "$ac_tool_prefix"; then
6197
 
    echo "$as_me:$LINENO: checking for file" >&5
6198
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
6199
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6200
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7373
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7374
$as_echo_n "checking for file... " >&6; }
 
7375
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7376
  $as_echo_n "(cached) " >&6
6201
7377
else
6202
7378
  case $MAGIC_CMD in
6203
7379
[\\/*] |  ?:[\\/]*)
6221
7397
            $EGREP "$file_magic_regex" > /dev/null; then
6222
7398
            :
6223
7399
          else
6224
 
            cat <<EOF 1>&2
 
7400
            cat <<_LT_EOF 1>&2
6225
7401
 
6226
7402
*** Warning: the command libtool uses to detect shared libraries,
6227
7403
*** $file_magic_cmd, produces output that libtool cannot recognize.
6232
7408
*** may want to report the problem to your system manager and/or to
6233
7409
*** bug-libtool@gnu.org
6234
7410
 
6235
 
EOF
 
7411
_LT_EOF
6236
7412
          fi ;;
6237
7413
        esac
6238
7414
      fi
6247
7423
 
6248
7424
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6249
7425
if test -n "$MAGIC_CMD"; then
6250
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6251
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7427
$as_echo "$MAGIC_CMD" >&6; }
6252
7428
else
6253
 
  echo "$as_me:$LINENO: result: no" >&5
6254
 
echo "${ECHO_T}no" >&6
 
7429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7430
$as_echo "no" >&6; }
6255
7431
fi
6256
7432
 
 
7433
 
6257
7434
  else
6258
7435
    MAGIC_CMD=:
6259
7436
  fi
6263
7440
  ;;
6264
7441
esac
6265
7442
 
6266
 
enable_dlopen=no
6267
 
enable_win32_dll=yes
6268
 
 
6269
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6270
 
if test "${enable_libtool_lock+set}" = set; then
6271
 
  enableval="$enable_libtool_lock"
6272
 
 
6273
 
fi;
6274
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6275
 
 
6276
 
 
6277
 
# Check whether --with-pic or --without-pic was given.
6278
 
if test "${with_pic+set}" = set; then
6279
 
  withval="$with_pic"
6280
 
  pic_mode="$withval"
6281
 
else
6282
 
  pic_mode=default
6283
 
fi;
6284
 
test -z "$pic_mode" && pic_mode=default
6285
 
 
6286
7443
# Use C for the default configuration in the libtool script
6287
 
tagname=
 
7444
 
6288
7445
lt_save_CC="$CC"
6289
7446
ac_ext=c
6290
7447
ac_cpp='$CPP $CPPFLAGS'
6301
7458
objext=$objext
6302
7459
 
6303
7460
# Code to be used in simple compile tests
6304
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7461
lt_simple_compile_test_code="int some_variable = 0;"
6305
7462
 
6306
7463
# Code to be used in simple link tests
6307
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7464
lt_simple_link_test_code='int main(){return(0);}'
 
7465
 
 
7466
 
 
7467
 
 
7468
 
 
7469
 
6308
7470
 
6309
7471
 
6310
7472
# If no C compiler was specified, use CC.
6316
7478
# Allow CC to be a program name with arguments.
6317
7479
compiler=$CC
6318
7480
 
 
7481
# Save the default compiler, since it gets overwritten when the other
 
7482
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7483
compiler_DEFAULT=$CC
6319
7484
 
6320
7485
# save warnings/boilerplate of simple test code
6321
7486
ac_outfile=conftest.$ac_objext
6322
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7487
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6323
7488
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6324
7489
_lt_compiler_boilerplate=`cat conftest.err`
6325
 
$rm conftest*
 
7490
$RM conftest*
6326
7491
 
6327
7492
ac_outfile=conftest.$ac_objext
6328
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7493
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6329
7494
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6330
7495
_lt_linker_boilerplate=`cat conftest.err`
6331
 
$rm conftest*
6332
 
 
6333
 
 
6334
 
## CAVEAT EMPTOR:
6335
 
## There is no encapsulation within the following macros, do not change
6336
 
## the running order or otherwise move them around unless you know exactly
6337
 
## what you are doing...
 
7496
$RM -r conftest*
 
7497
 
 
7498
 
 
7499
if test -n "$compiler"; then
6338
7500
 
6339
7501
lt_prog_compiler_no_builtin_flag=
6340
7502
 
6341
7503
if test "$GCC" = yes; then
6342
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6343
 
 
6344
 
 
6345
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6346
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6347
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6348
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7504
  case $cc_basename in
 
7505
  nvcc*)
 
7506
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7507
  *)
 
7508
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7509
  esac
 
7510
 
 
7511
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7512
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7513
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
7514
  $as_echo_n "(cached) " >&6
6349
7515
else
6350
7516
  lt_cv_prog_compiler_rtti_exceptions=no
6351
 
  ac_outfile=conftest.$ac_objext
6352
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7517
   ac_outfile=conftest.$ac_objext
 
7518
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6353
7519
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6354
7520
   # Insert the option either (1) after the last *FLAGS variable, or
6355
7521
   # (2) before a word containing "conftest.", or (3) at the end.
6360
7526
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6361
7527
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6362
7528
   -e 's:$: $lt_compiler_flag:'`
6363
 
   (eval echo "\"\$as_me:6363: $lt_compile\"" >&5)
 
7529
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
6364
7530
   (eval "$lt_compile" 2>conftest.err)
6365
7531
   ac_status=$?
6366
7532
   cat conftest.err >&5
6367
 
   echo "$as_me:6367: \$? = $ac_status" >&5
 
7533
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
7534
   if (exit $ac_status) && test -s "$ac_outfile"; then
6369
7535
     # The compiler can only warn and ignore the option if not recognized
6370
7536
     # So say no if there are warnings other than the usual output.
6371
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7537
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
6372
7538
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6373
7539
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6374
7540
       lt_cv_prog_compiler_rtti_exceptions=yes
6375
7541
     fi
6376
7542
   fi
6377
 
   $rm conftest*
 
7543
   $RM conftest*
6378
7544
 
6379
7545
fi
6380
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6381
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7547
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6382
7548
 
6383
7549
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6384
7550
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6388
7554
 
6389
7555
fi
6390
7556
 
6391
 
lt_prog_compiler_wl=
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
  lt_prog_compiler_wl=
6392
7563
lt_prog_compiler_pic=
6393
7564
lt_prog_compiler_static=
6394
7565
 
6395
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6396
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6397
7566
 
6398
7567
  if test "$GCC" = yes; then
6399
7568
    lt_prog_compiler_wl='-Wl,'
6409
7578
      ;;
6410
7579
 
6411
7580
    amigaos*)
6412
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6413
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6414
 
      # like `-m68040'.
6415
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7581
      case $host_cpu in
 
7582
      powerpc)
 
7583
            # see comment about AmigaOS4 .so support
 
7584
            lt_prog_compiler_pic='-fPIC'
 
7585
        ;;
 
7586
      m68k)
 
7587
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7588
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7589
            # like `-m68040'.
 
7590
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7591
        ;;
 
7592
      esac
6416
7593
      ;;
6417
7594
 
6418
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7595
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6419
7596
      # PIC is the default for these OSes.
6420
7597
      ;;
6421
7598
 
6422
 
    mingw* | pw32* | os2*)
 
7599
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6423
7600
      # This hack is so that the source file can tell whether it is being
6424
7601
      # built for inclusion in a dll (and should export symbols for example).
 
7602
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7603
      # (--disable-auto-import) libraries
6425
7604
      lt_prog_compiler_pic='-DDLL_EXPORT'
6426
7605
      ;;
6427
7606
 
6431
7610
      lt_prog_compiler_pic='-fno-common'
6432
7611
      ;;
6433
7612
 
6434
 
    interix3*)
 
7613
    haiku*)
 
7614
      # PIC is the default for Haiku.
 
7615
      # The "-static" flag exists, but is broken.
 
7616
      lt_prog_compiler_static=
 
7617
      ;;
 
7618
 
 
7619
    hpux*)
 
7620
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7621
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7622
      # sets the default TLS model and affects inlining.
 
7623
      case $host_cpu in
 
7624
      hppa*64*)
 
7625
        # +Z the default
 
7626
        ;;
 
7627
      *)
 
7628
        lt_prog_compiler_pic='-fPIC'
 
7629
        ;;
 
7630
      esac
 
7631
      ;;
 
7632
 
 
7633
    interix[3-9]*)
6435
7634
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6436
7635
      # Instead, we relocate shared libraries at runtime.
6437
7636
      ;;
6443
7642
      enable_shared=no
6444
7643
      ;;
6445
7644
 
 
7645
    *nto* | *qnx*)
 
7646
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7647
      # it will coredump.
 
7648
      lt_prog_compiler_pic='-fPIC -shared'
 
7649
      ;;
 
7650
 
6446
7651
    sysv4*MP*)
6447
7652
      if test -d /usr/nec; then
6448
7653
        lt_prog_compiler_pic=-Kconform_pic
6449
7654
      fi
6450
7655
      ;;
6451
7656
 
6452
 
    hpux*)
6453
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6454
 
      # not for PA HP-UX.
6455
 
      case $host_cpu in
6456
 
      hppa*64*|ia64*)
6457
 
        # +Z the default
6458
 
        ;;
6459
 
      *)
6460
 
        lt_prog_compiler_pic='-fPIC'
6461
 
        ;;
6462
 
      esac
6463
 
      ;;
6464
 
 
6465
7657
    *)
6466
7658
      lt_prog_compiler_pic='-fPIC'
6467
7659
      ;;
6468
7660
    esac
 
7661
 
 
7662
    case $cc_basename in
 
7663
    nvcc*) # Cuda Compiler Driver 2.2
 
7664
      lt_prog_compiler_wl='-Xlinker '
 
7665
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
7666
      ;;
 
7667
    esac
6469
7668
  else
6470
7669
    # PORTME Check for flag to pass linker flags through the system compiler.
6471
7670
    case $host_os in
6478
7677
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6479
7678
      fi
6480
7679
      ;;
6481
 
      darwin*)
6482
 
        # PIC is the default on this platform
6483
 
        # Common symbols not allowed in MH_DYLIB files
6484
 
       case $cc_basename in
6485
 
         xlc*)
6486
 
         lt_prog_compiler_pic='-qnocommon'
6487
 
         lt_prog_compiler_wl='-Wl,'
6488
 
         ;;
6489
 
       esac
6490
 
       ;;
6491
7680
 
6492
 
    mingw* | pw32* | os2*)
 
7681
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6493
7682
      # This hack is so that the source file can tell whether it is being
6494
7683
      # built for inclusion in a dll (and should export symbols for example).
6495
7684
      lt_prog_compiler_pic='-DDLL_EXPORT'
6517
7706
      lt_prog_compiler_static='-non_shared'
6518
7707
      ;;
6519
7708
 
6520
 
    newsos6)
6521
 
      lt_prog_compiler_pic='-KPIC'
6522
 
      lt_prog_compiler_static='-Bstatic'
6523
 
      ;;
6524
 
 
6525
 
    linux*)
 
7709
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
6526
7710
      case $cc_basename in
6527
 
      icc* | ecc*)
 
7711
      # old Intel for x86_64 which still supported -KPIC.
 
7712
      ecc*)
6528
7713
        lt_prog_compiler_wl='-Wl,'
6529
7714
        lt_prog_compiler_pic='-KPIC'
6530
7715
        lt_prog_compiler_static='-static'
6531
7716
        ;;
6532
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7717
      # icc used to be incompatible with GCC.
 
7718
      # ICC 10 doesn't accept -KPIC any more.
 
7719
      icc* | ifort*)
 
7720
        lt_prog_compiler_wl='-Wl,'
 
7721
        lt_prog_compiler_pic='-fPIC'
 
7722
        lt_prog_compiler_static='-static'
 
7723
        ;;
 
7724
      # Lahey Fortran 8.1.
 
7725
      lf95*)
 
7726
        lt_prog_compiler_wl='-Wl,'
 
7727
        lt_prog_compiler_pic='--shared'
 
7728
        lt_prog_compiler_static='--static'
 
7729
        ;;
 
7730
      nagfor*)
 
7731
        # NAG Fortran compiler
 
7732
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
7733
        lt_prog_compiler_pic='-PIC'
 
7734
        lt_prog_compiler_static='-Bstatic'
 
7735
        ;;
 
7736
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6533
7737
        # Portland Group compilers (*not* the Pentium gcc compiler,
6534
7738
        # which looks to be a dead project)
6535
7739
        lt_prog_compiler_wl='-Wl,'
6541
7745
        # All Alpha code is PIC.
6542
7746
        lt_prog_compiler_static='-non_shared'
6543
7747
        ;;
 
7748
      xl* | bgxl* | bgf* | mpixl*)
 
7749
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
7750
        lt_prog_compiler_wl='-Wl,'
 
7751
        lt_prog_compiler_pic='-qpic'
 
7752
        lt_prog_compiler_static='-qstaticlink'
 
7753
        ;;
 
7754
      *)
 
7755
        case `$CC -V 2>&1 | sed 5q` in
 
7756
        *Sun\ F* | *Sun*Fortran*)
 
7757
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7758
          lt_prog_compiler_pic='-KPIC'
 
7759
          lt_prog_compiler_static='-Bstatic'
 
7760
          lt_prog_compiler_wl=''
 
7761
          ;;
 
7762
        *Sun\ C*)
 
7763
          # Sun C 5.9
 
7764
          lt_prog_compiler_pic='-KPIC'
 
7765
          lt_prog_compiler_static='-Bstatic'
 
7766
          lt_prog_compiler_wl='-Wl,'
 
7767
          ;;
 
7768
        esac
 
7769
        ;;
6544
7770
      esac
6545
7771
      ;;
6546
7772
 
 
7773
    newsos6)
 
7774
      lt_prog_compiler_pic='-KPIC'
 
7775
      lt_prog_compiler_static='-Bstatic'
 
7776
      ;;
 
7777
 
 
7778
    *nto* | *qnx*)
 
7779
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7780
      # it will coredump.
 
7781
      lt_prog_compiler_pic='-fPIC -shared'
 
7782
      ;;
 
7783
 
6547
7784
    osf3* | osf4* | osf5*)
6548
7785
      lt_prog_compiler_wl='-Wl,'
6549
7786
      # All OSF/1 code is PIC.
6550
7787
      lt_prog_compiler_static='-non_shared'
6551
7788
      ;;
6552
7789
 
 
7790
    rdos*)
 
7791
      lt_prog_compiler_static='-non_shared'
 
7792
      ;;
 
7793
 
6553
7794
    solaris*)
6554
7795
      lt_prog_compiler_pic='-KPIC'
6555
7796
      lt_prog_compiler_static='-Bstatic'
6556
7797
      case $cc_basename in
6557
 
      f77* | f90* | f95*)
 
7798
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6558
7799
        lt_prog_compiler_wl='-Qoption ld ';;
6559
7800
      *)
6560
7801
        lt_prog_compiler_wl='-Wl,';;
6602
7843
    esac
6603
7844
  fi
6604
7845
 
6605
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6606
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7846
case $host_os in
 
7847
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7848
  *djgpp*)
 
7849
    lt_prog_compiler_pic=
 
7850
    ;;
 
7851
  *)
 
7852
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7853
    ;;
 
7854
esac
 
7855
 
 
7856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
7857
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7858
if ${lt_cv_prog_compiler_pic+:} false; then :
 
7859
  $as_echo_n "(cached) " >&6
 
7860
else
 
7861
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
7862
fi
 
7863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
7864
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
7865
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
6607
7866
 
6608
7867
#
6609
7868
# Check to make sure the PIC flag actually works.
6610
7869
#
6611
7870
if test -n "$lt_prog_compiler_pic"; then
6612
 
 
6613
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6614
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6615
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
6616
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7871
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7872
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7873
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
7874
  $as_echo_n "(cached) " >&6
6617
7875
else
6618
 
  lt_prog_compiler_pic_works=no
6619
 
  ac_outfile=conftest.$ac_objext
6620
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7876
  lt_cv_prog_compiler_pic_works=no
 
7877
   ac_outfile=conftest.$ac_objext
 
7878
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6621
7879
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6622
7880
   # Insert the option either (1) after the last *FLAGS variable, or
6623
7881
   # (2) before a word containing "conftest.", or (3) at the end.
6628
7886
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6629
7887
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6630
7888
   -e 's:$: $lt_compiler_flag:'`
6631
 
   (eval echo "\"\$as_me:6631: $lt_compile\"" >&5)
 
7889
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
6632
7890
   (eval "$lt_compile" 2>conftest.err)
6633
7891
   ac_status=$?
6634
7892
   cat conftest.err >&5
6635
 
   echo "$as_me:6635: \$? = $ac_status" >&5
 
7893
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636
7894
   if (exit $ac_status) && test -s "$ac_outfile"; then
6637
7895
     # The compiler can only warn and ignore the option if not recognized
6638
7896
     # So say no if there are warnings other than the usual output.
6639
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7897
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
6640
7898
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6641
7899
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6642
 
       lt_prog_compiler_pic_works=yes
 
7900
       lt_cv_prog_compiler_pic_works=yes
6643
7901
     fi
6644
7902
   fi
6645
 
   $rm conftest*
 
7903
   $RM conftest*
6646
7904
 
6647
7905
fi
6648
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6649
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
7907
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6650
7908
 
6651
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7909
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6652
7910
    case $lt_prog_compiler_pic in
6653
7911
     "" | " "*) ;;
6654
7912
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6659
7917
fi
6660
7918
 
6661
7919
fi
6662
 
case $host_os in
6663
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6664
 
  *djgpp*)
6665
 
    lt_prog_compiler_pic=
6666
 
    ;;
6667
 
  *)
6668
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669
 
    ;;
6670
 
esac
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
6671
7930
 
6672
7931
#
6673
7932
# Check to make sure the static flag actually works.
6674
7933
#
6675
7934
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6676
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6677
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6678
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7936
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7937
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
7938
  $as_echo_n "(cached) " >&6
6680
7939
else
6681
 
  lt_prog_compiler_static_works=no
 
7940
  lt_cv_prog_compiler_static_works=no
6682
7941
   save_LDFLAGS="$LDFLAGS"
6683
7942
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6684
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7943
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6685
7944
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6686
7945
     # The linker can only warn and ignore the option if not recognized
6687
7946
     # So say no if there are warnings
6688
7947
     if test -s conftest.err; then
6689
7948
       # Append any errors to the config.log.
6690
7949
       cat conftest.err 1>&5
6691
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7950
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
6692
7951
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6693
7952
       if diff conftest.exp conftest.er2 >/dev/null; then
6694
 
         lt_prog_compiler_static_works=yes
 
7953
         lt_cv_prog_compiler_static_works=yes
6695
7954
       fi
6696
7955
     else
6697
 
       lt_prog_compiler_static_works=yes
 
7956
       lt_cv_prog_compiler_static_works=yes
6698
7957
     fi
6699
7958
   fi
6700
 
   $rm conftest*
 
7959
   $RM -r conftest*
6701
7960
   LDFLAGS="$save_LDFLAGS"
6702
7961
 
6703
7962
fi
6704
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6705
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
7964
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
6706
7965
 
6707
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7966
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6708
7967
    :
6709
7968
else
6710
7969
    lt_prog_compiler_static=
6711
7970
fi
6712
7971
 
6713
7972
 
6714
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6715
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6716
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6717
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6718
 
else
6719
 
  lt_cv_prog_compiler_c_o=no
6720
 
   $rm -r conftest 2>/dev/null
6721
 
   mkdir conftest
6722
 
   cd conftest
6723
 
   mkdir out
6724
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6725
 
 
6726
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6727
 
   # Insert the option either (1) after the last *FLAGS variable, or
6728
 
   # (2) before a word containing "conftest.", or (3) at the end.
6729
 
   # Note that $ac_compile itself does not contain backslashes and begins
6730
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6731
 
   lt_compile=`echo "$ac_compile" | $SED \
6732
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6733
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6734
 
   -e 's:$: $lt_compiler_flag:'`
6735
 
   (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
6736
 
   (eval "$lt_compile" 2>out/conftest.err)
6737
 
   ac_status=$?
6738
 
   cat out/conftest.err >&5
6739
 
   echo "$as_me:6739: \$? = $ac_status" >&5
6740
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6741
 
   then
6742
 
     # The compiler can only warn and ignore the option if not recognized
6743
 
     # So say no if there are warnings
6744
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6745
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6746
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6747
 
       lt_cv_prog_compiler_c_o=yes
6748
 
     fi
6749
 
   fi
6750
 
   chmod u+w . 2>&5
6751
 
   $rm conftest*
6752
 
   # SGI C++ compiler will create directory out/ii_files/ for
6753
 
   # template instantiation
6754
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6755
 
   $rm out/* && rmdir out
6756
 
   cd ..
6757
 
   rmdir conftest
6758
 
   $rm conftest*
6759
 
 
6760
 
fi
6761
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6762
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7973
 
 
7974
 
 
7975
 
 
7976
 
 
7977
 
 
7978
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7979
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7980
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
7981
  $as_echo_n "(cached) " >&6
 
7982
else
 
7983
  lt_cv_prog_compiler_c_o=no
 
7984
   $RM -r conftest 2>/dev/null
 
7985
   mkdir conftest
 
7986
   cd conftest
 
7987
   mkdir out
 
7988
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7989
 
 
7990
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7991
   # Insert the option either (1) after the last *FLAGS variable, or
 
7992
   # (2) before a word containing "conftest.", or (3) at the end.
 
7993
   # Note that $ac_compile itself does not contain backslashes and begins
 
7994
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7995
   lt_compile=`echo "$ac_compile" | $SED \
 
7996
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7997
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7998
   -e 's:$: $lt_compiler_flag:'`
 
7999
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8000
   (eval "$lt_compile" 2>out/conftest.err)
 
8001
   ac_status=$?
 
8002
   cat out/conftest.err >&5
 
8003
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8004
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8005
   then
 
8006
     # The compiler can only warn and ignore the option if not recognized
 
8007
     # So say no if there are warnings
 
8008
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8009
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8010
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8011
       lt_cv_prog_compiler_c_o=yes
 
8012
     fi
 
8013
   fi
 
8014
   chmod u+w . 2>&5
 
8015
   $RM conftest*
 
8016
   # SGI C++ compiler will create directory out/ii_files/ for
 
8017
   # template instantiation
 
8018
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8019
   $RM out/* && rmdir out
 
8020
   cd ..
 
8021
   $RM -r conftest
 
8022
   $RM conftest*
 
8023
 
 
8024
fi
 
8025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8026
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
 
 
8032
 
 
8033
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8034
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8035
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8036
  $as_echo_n "(cached) " >&6
 
8037
else
 
8038
  lt_cv_prog_compiler_c_o=no
 
8039
   $RM -r conftest 2>/dev/null
 
8040
   mkdir conftest
 
8041
   cd conftest
 
8042
   mkdir out
 
8043
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8044
 
 
8045
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8046
   # Insert the option either (1) after the last *FLAGS variable, or
 
8047
   # (2) before a word containing "conftest.", or (3) at the end.
 
8048
   # Note that $ac_compile itself does not contain backslashes and begins
 
8049
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8050
   lt_compile=`echo "$ac_compile" | $SED \
 
8051
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8052
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8053
   -e 's:$: $lt_compiler_flag:'`
 
8054
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8055
   (eval "$lt_compile" 2>out/conftest.err)
 
8056
   ac_status=$?
 
8057
   cat out/conftest.err >&5
 
8058
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8059
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8060
   then
 
8061
     # The compiler can only warn and ignore the option if not recognized
 
8062
     # So say no if there are warnings
 
8063
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8064
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8065
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8066
       lt_cv_prog_compiler_c_o=yes
 
8067
     fi
 
8068
   fi
 
8069
   chmod u+w . 2>&5
 
8070
   $RM conftest*
 
8071
   # SGI C++ compiler will create directory out/ii_files/ for
 
8072
   # template instantiation
 
8073
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8074
   $RM out/* && rmdir out
 
8075
   cd ..
 
8076
   $RM -r conftest
 
8077
   $RM conftest*
 
8078
 
 
8079
fi
 
8080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8081
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8082
 
 
8083
 
6763
8084
 
6764
8085
 
6765
8086
hard_links="nottested"
6766
8087
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6767
8088
  # do not overwrite the value of need_locks provided by the user
6768
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6769
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8089
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8090
$as_echo_n "checking if we can lock with hard links... " >&6; }
6770
8091
  hard_links=yes
6771
 
  $rm conftest*
 
8092
  $RM conftest*
6772
8093
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6773
8094
  touch conftest.a
6774
8095
  ln conftest.a conftest.b 2>&5 || hard_links=no
6775
8096
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6776
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6777
 
echo "${ECHO_T}$hard_links" >&6
 
8097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8098
$as_echo "$hard_links" >&6; }
6778
8099
  if test "$hard_links" = no; then
6779
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6780
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8100
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8101
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6781
8102
    need_locks=warn
6782
8103
  fi
6783
8104
else
6784
8105
  need_locks=no
6785
8106
fi
6786
8107
 
6787
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6788
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8114
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6789
8115
 
6790
8116
  runpath_var=
6791
8117
  allow_undefined_flag=
6792
 
  enable_shared_with_static_runtimes=no
 
8118
  always_export_symbols=no
6793
8119
  archive_cmds=
6794
8120
  archive_expsym_cmds=
6795
 
  old_archive_From_new_cmds=
6796
 
  old_archive_from_expsyms_cmds=
 
8121
  compiler_needs_object=no
 
8122
  enable_shared_with_static_runtimes=no
6797
8123
  export_dynamic_flag_spec=
6798
 
  whole_archive_flag_spec=
6799
 
  thread_safe_flag_spec=
 
8124
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8125
  hardcode_automatic=no
 
8126
  hardcode_direct=no
 
8127
  hardcode_direct_absolute=no
6800
8128
  hardcode_libdir_flag_spec=
6801
8129
  hardcode_libdir_flag_spec_ld=
6802
8130
  hardcode_libdir_separator=
6803
 
  hardcode_direct=no
6804
8131
  hardcode_minus_L=no
6805
8132
  hardcode_shlibpath_var=unsupported
 
8133
  inherit_rpath=no
6806
8134
  link_all_deplibs=unknown
6807
 
  hardcode_automatic=no
6808
8135
  module_cmds=
6809
8136
  module_expsym_cmds=
6810
 
  always_export_symbols=no
6811
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8137
  old_archive_from_new_cmds=
 
8138
  old_archive_from_expsyms_cmds=
 
8139
  thread_safe_flag_spec=
 
8140
  whole_archive_flag_spec=
6812
8141
  # include_expsyms should be a list of space-separated symbols to be *always*
6813
8142
  # included in the symbol list
6814
8143
  include_expsyms=
6816
8145
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6817
8146
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6818
8147
  # as well as any symbol that contains `d'.
6819
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8148
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6820
8149
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6821
8150
  # platforms (ab)use it in PIC code, but their linkers get confused if
6822
8151
  # the symbol is explicitly referenced.  Since portable code cannot
6823
8152
  # rely on this symbol name, it's probably fine to never include it in
6824
8153
  # preloaded symbol tables.
 
8154
  # Exclude shared library initialization/finalization symbols.
6825
8155
  extract_expsyms_cmds=
6826
 
  # Just being paranoid about ensuring that cc_basename is set.
6827
 
  for cc_temp in $compiler""; do
6828
 
  case $cc_temp in
6829
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6830
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831
 
    \-*) ;;
6832
 
    *) break;;
6833
 
  esac
6834
 
done
6835
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6836
8156
 
6837
8157
  case $host_os in
6838
 
  cygwin* | mingw* | pw32*)
 
8158
  cygwin* | mingw* | pw32* | cegcc*)
6839
8159
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6840
8160
    # When not using gcc, we currently assume that we are using
6841
8161
    # Microsoft Visual C++.
6850
8170
  openbsd*)
6851
8171
    with_gnu_ld=no
6852
8172
    ;;
 
8173
  linux* | k*bsd*-gnu | gnu*)
 
8174
    link_all_deplibs=no
 
8175
    ;;
6853
8176
  esac
6854
8177
 
6855
8178
  ld_shlibs=yes
 
8179
 
 
8180
  # On some targets, GNU ld is compatible enough with the native linker
 
8181
  # that we're better off using the native interface for both.
 
8182
  lt_use_gnu_ld_interface=no
6856
8183
  if test "$with_gnu_ld" = yes; then
 
8184
    case $host_os in
 
8185
      aix*)
 
8186
        # The AIX port of GNU ld has always aspired to compatibility
 
8187
        # with the native linker.  However, as the warning in the GNU ld
 
8188
        # block says, versions before 2.19.5* couldn't really create working
 
8189
        # shared libraries, regardless of the interface used.
 
8190
        case `$LD -v 2>&1` in
 
8191
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8192
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8193
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8194
          *)
 
8195
            lt_use_gnu_ld_interface=yes
 
8196
            ;;
 
8197
        esac
 
8198
        ;;
 
8199
      *)
 
8200
        lt_use_gnu_ld_interface=yes
 
8201
        ;;
 
8202
    esac
 
8203
  fi
 
8204
 
 
8205
  if test "$lt_use_gnu_ld_interface" = yes; then
6857
8206
    # If archive_cmds runs LD, not CC, wlarc should be empty
6858
8207
    wlarc='${wl}'
6859
8208
 
6861
8210
    # are reset later if shared libraries are not supported. Putting them
6862
8211
    # here allows them to be overridden if necessary.
6863
8212
    runpath_var=LD_RUN_PATH
6864
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8213
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6865
8214
    export_dynamic_flag_spec='${wl}--export-dynamic'
6866
8215
    # ancient GNU ld didn't support --whole-archive et. al.
6867
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6868
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6869
 
      else
6870
 
        whole_archive_flag_spec=
 
8216
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8217
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8218
    else
 
8219
      whole_archive_flag_spec=
6871
8220
    fi
6872
8221
    supports_anon_versioning=no
6873
 
    case `$LD -v 2>/dev/null` in
 
8222
    case `$LD -v 2>&1` in
 
8223
      *GNU\ gold*) supports_anon_versioning=yes ;;
6874
8224
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6875
8225
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6876
8226
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6880
8230
 
6881
8231
    # See if GNU ld supports shared libraries.
6882
8232
    case $host_os in
6883
 
    aix3* | aix4* | aix5*)
 
8233
    aix[3-9]*)
6884
8234
      # On AIX/PPC, the GNU linker is very broken
6885
8235
      if test "$host_cpu" != ia64; then
6886
8236
        ld_shlibs=no
6887
 
        cat <<EOF 1>&2
 
8237
        cat <<_LT_EOF 1>&2
6888
8238
 
6889
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8239
*** Warning: the GNU linker, at least up to release 2.19, is reported
6890
8240
*** to be unable to reliably create shared libraries on AIX.
6891
8241
*** Therefore, libtool is disabling shared libraries support.  If you
6892
 
*** really care for shared libraries, you may want to modify your PATH
6893
 
*** so that a non-GNU linker is found, and then restart.
 
8242
*** really care for shared libraries, you may want to install binutils
 
8243
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8244
*** You will then need to restart the configuration process.
6894
8245
 
6895
 
EOF
 
8246
_LT_EOF
6896
8247
      fi
6897
8248
      ;;
6898
8249
 
6899
8250
    amigaos*)
6900
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6901
 
      hardcode_libdir_flag_spec='-L$libdir'
6902
 
      hardcode_minus_L=yes
6903
 
 
6904
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6905
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6906
 
      # to version 4, is to share data among multiple programs linked
6907
 
      # with the same dynamic library.  Since this doesn't match the
6908
 
      # behavior of shared libraries on other platforms, we can't use
6909
 
      # them.
6910
 
      ld_shlibs=no
 
8251
      case $host_cpu in
 
8252
      powerpc)
 
8253
            # see comment about AmigaOS4 .so support
 
8254
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8255
            archive_expsym_cmds=''
 
8256
        ;;
 
8257
      m68k)
 
8258
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8259
            hardcode_libdir_flag_spec='-L$libdir'
 
8260
            hardcode_minus_L=yes
 
8261
        ;;
 
8262
      esac
6911
8263
      ;;
6912
8264
 
6913
8265
    beos*)
6914
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8266
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6915
8267
        allow_undefined_flag=unsupported
6916
8268
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6917
8269
        # support --undefined.  This deserves some investigation.  FIXME
6921
8273
      fi
6922
8274
      ;;
6923
8275
 
6924
 
    cygwin* | mingw* | pw32*)
6925
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8276
    cygwin* | mingw* | pw32* | cegcc*)
 
8277
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6926
8278
      # as there is no search path for DLLs.
6927
8279
      hardcode_libdir_flag_spec='-L$libdir'
 
8280
      export_dynamic_flag_spec='${wl}--export-all-symbols'
6928
8281
      allow_undefined_flag=unsupported
6929
8282
      always_export_symbols=no
6930
8283
      enable_shared_with_static_runtimes=yes
6931
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8284
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
8285
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
6932
8286
 
6933
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8287
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6934
8288
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6935
8289
        # If the export-symbols file already is a .def file (1st line
6936
8290
        # is EXPORTS), use it as is; otherwise, prepend...
6946
8300
      fi
6947
8301
      ;;
6948
8302
 
6949
 
    interix3*)
 
8303
    haiku*)
 
8304
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8305
      link_all_deplibs=yes
 
8306
      ;;
 
8307
 
 
8308
    interix[3-9]*)
6950
8309
      hardcode_direct=no
6951
8310
      hardcode_shlibpath_var=no
6952
8311
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6961
8320
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6962
8321
      ;;
6963
8322
 
6964
 
    linux*)
6965
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6966
 
        tmp_addflag=
 
8323
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8324
      tmp_diet=no
 
8325
      if test "$host_os" = linux-dietlibc; then
 
8326
        case $cc_basename in
 
8327
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8328
        esac
 
8329
      fi
 
8330
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8331
         && test "$tmp_diet" = no
 
8332
      then
 
8333
        tmp_addflag=' $pic_flag'
 
8334
        tmp_sharedflag='-shared'
6967
8335
        case $cc_basename,$host_cpu in
6968
 
        pgcc*)                          # Portland Group C compiler
6969
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8336
        pgcc*)                          # Portland Group C compiler
 
8337
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6970
8338
          tmp_addflag=' $pic_flag'
6971
8339
          ;;
6972
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6973
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8340
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8341
                                        # Portland Group f77 and f90 compilers
 
8342
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6974
8343
          tmp_addflag=' $pic_flag -Mnomain' ;;
6975
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8344
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6976
8345
          tmp_addflag=' -i_dynamic' ;;
6977
8346
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6978
8347
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6979
8348
        ifc* | ifort*)                  # Intel Fortran compiler
6980
8349
          tmp_addflag=' -nofor_main' ;;
6981
 
        esac
6982
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983
 
 
6984
 
        if test $supports_anon_versioning = yes; then
6985
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6986
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6987
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6988
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6989
 
        fi
 
8350
        lf95*)                          # Lahey Fortran 8.1
 
8351
          whole_archive_flag_spec=
 
8352
          tmp_sharedflag='--shared' ;;
 
8353
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8354
          tmp_sharedflag='-qmkshrobj'
 
8355
          tmp_addflag= ;;
 
8356
        nvcc*)  # Cuda Compiler Driver 2.2
 
8357
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8358
          compiler_needs_object=yes
 
8359
          ;;
 
8360
        esac
 
8361
        case `$CC -V 2>&1 | sed 5q` in
 
8362
        *Sun\ C*)                       # Sun C 5.9
 
8363
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8364
          compiler_needs_object=yes
 
8365
          tmp_sharedflag='-G' ;;
 
8366
        *Sun\ F*)                       # Sun Fortran 8.3
 
8367
          tmp_sharedflag='-G' ;;
 
8368
        esac
 
8369
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8370
 
 
8371
        if test "x$supports_anon_versioning" = xyes; then
 
8372
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8373
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8374
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8375
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8376
        fi
 
8377
 
 
8378
        case $cc_basename in
 
8379
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8380
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8381
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8382
          hardcode_libdir_flag_spec=
 
8383
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8384
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8385
          if test "x$supports_anon_versioning" = xyes; then
 
8386
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8387
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8388
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8389
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8390
          fi
 
8391
          ;;
 
8392
        esac
6990
8393
      else
6991
 
        ld_shlibs=no
 
8394
        ld_shlibs=no
6992
8395
      fi
6993
8396
      ;;
6994
8397
 
6995
 
    netbsd*)
6996
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8398
    netbsd* | netbsdelf*-gnu)
 
8399
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6997
8400
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6998
8401
        wlarc=
6999
8402
      else
7000
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8403
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8404
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002
8405
      fi
7003
8406
      ;;
7004
8407
 
7005
8408
    solaris*)
7006
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8409
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7007
8410
        ld_shlibs=no
7008
 
        cat <<EOF 1>&2
 
8411
        cat <<_LT_EOF 1>&2
7009
8412
 
7010
8413
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7011
8414
*** create shared libraries on Solaris systems.  Therefore, libtool
7014
8417
*** your PATH or compiler configuration so that the native linker is
7015
8418
*** used, and then restart.
7016
8419
 
7017
 
EOF
7018
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7019
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8420
_LT_EOF
 
8421
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8422
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8423
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7021
8424
      else
7022
8425
        ld_shlibs=no
7023
8426
      fi
7039
8442
_LT_EOF
7040
8443
        ;;
7041
8444
        *)
7042
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7044
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7045
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8445
          # For security reasons, it is highly recommended that you always
 
8446
          # use absolute paths for naming shared libraries, and exclude the
 
8447
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8448
          # requires that you compile everything twice, which is a pain.
 
8449
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8450
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8451
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8452
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7046
8453
          else
7047
8454
            ld_shlibs=no
7048
8455
          fi
7058
8465
      ;;
7059
8466
 
7060
8467
    *)
7061
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8468
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8469
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8470
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064
8471
      else
7065
8472
        ld_shlibs=no
7066
8473
      fi
7090
8497
      fi
7091
8498
      ;;
7092
8499
 
7093
 
    aix4* | aix5*)
 
8500
    aix[4-9]*)
7094
8501
      if test "$host_cpu" = ia64; then
7095
8502
        # On IA64, the linker does run time linking by default, so we don't
7096
8503
        # have to do anything special.
7100
8507
      else
7101
8508
        # If we're using GNU nm, then we don't want the "-C" option.
7102
8509
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7103
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7104
 
          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'
 
8510
        # Also, AIX nm treats weak defined symbols like other global
 
8511
        # defined symbols, whereas GNU nm marks them as "W".
 
8512
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8513
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7105
8514
        else
7106
 
          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'
 
8515
          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'
7107
8516
        fi
7108
8517
        aix_use_runtimelinking=no
7109
8518
 
7110
8519
        # Test if we are trying to use run time linking or normal
7111
8520
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7112
8521
        # need to do runtime linking.
7113
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8522
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7114
8523
          for ld_flag in $LDFLAGS; do
7115
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7116
 
            aix_use_runtimelinking=yes
7117
 
            break
7118
 
          fi
 
8524
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8525
            aix_use_runtimelinking=yes
 
8526
            break
 
8527
          fi
7119
8528
          done
7120
8529
          ;;
7121
8530
        esac
7132
8541
 
7133
8542
      archive_cmds=''
7134
8543
      hardcode_direct=yes
 
8544
      hardcode_direct_absolute=yes
7135
8545
      hardcode_libdir_separator=':'
7136
8546
      link_all_deplibs=yes
 
8547
      file_list_spec='${wl}-f,'
7137
8548
 
7138
8549
      if test "$GCC" = yes; then
7139
8550
        case $host_os in aix4.[012]|aix4.[012].*)
7140
8551
        # We only want to do this on AIX 4.2 and lower, the check
7141
8552
        # below for broken collect2 doesn't work under 4.3+
7142
8553
          collect2name=`${CC} -print-prog-name=collect2`
7143
 
          if test -f "$collect2name" && \
7144
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8554
          if test -f "$collect2name" &&
 
8555
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7145
8556
          then
7146
 
          # We have reworked collect2
7147
 
          hardcode_direct=yes
 
8557
          # We have reworked collect2
 
8558
          :
7148
8559
          else
7149
 
          # We have old collect2
7150
 
          hardcode_direct=unsupported
7151
 
          # It fails to find uninstalled libraries when the uninstalled
7152
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7153
 
          # to unsupported forces relinking
7154
 
          hardcode_minus_L=yes
7155
 
          hardcode_libdir_flag_spec='-L$libdir'
7156
 
          hardcode_libdir_separator=
 
8560
          # We have old collect2
 
8561
          hardcode_direct=unsupported
 
8562
          # It fails to find uninstalled libraries when the uninstalled
 
8563
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8564
          # to unsupported forces relinking
 
8565
          hardcode_minus_L=yes
 
8566
          hardcode_libdir_flag_spec='-L$libdir'
 
8567
          hardcode_libdir_separator=
7157
8568
          fi
7158
8569
          ;;
7159
8570
        esac
7161
8572
        if test "$aix_use_runtimelinking" = yes; then
7162
8573
          shared_flag="$shared_flag "'${wl}-G'
7163
8574
        fi
 
8575
        link_all_deplibs=no
7164
8576
      else
7165
8577
        # not using gcc
7166
8578
        if test "$host_cpu" = ia64; then
7167
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7168
 
        # chokes on -Wl,-G. The following line is correct:
 
8579
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8580
        # chokes on -Wl,-G. The following line is correct:
7169
8581
          shared_flag='-G'
7170
8582
        else
7171
8583
          if test "$aix_use_runtimelinking" = yes; then
7176
8588
        fi
7177
8589
      fi
7178
8590
 
 
8591
      export_dynamic_flag_spec='${wl}-bexpall'
7179
8592
      # It seems that -bexpall does not export symbols beginning with
7180
8593
      # underscore (_), so it is better to generate a list of symbols to export.
7181
8594
      always_export_symbols=yes
7183
8596
        # Warning - without using the other runtime loading flags (-brtl),
7184
8597
        # -berok will link without error, but may produce a broken library.
7185
8598
        allow_undefined_flag='-berok'
7186
 
       # Determine the default libpath from the value encoded in an empty executable.
7187
 
       cat >conftest.$ac_ext <<_ACEOF
7188
 
/* confdefs.h.  */
7189
 
_ACEOF
7190
 
cat confdefs.h >>conftest.$ac_ext
7191
 
cat >>conftest.$ac_ext <<_ACEOF
 
8599
        # Determine the default libpath from the value encoded in an
 
8600
        # empty executable.
 
8601
        if test "${lt_cv_aix_libpath+set}" = set; then
 
8602
  aix_libpath=$lt_cv_aix_libpath
 
8603
else
 
8604
  if ${lt_cv_aix_libpath_+:} false; then :
 
8605
  $as_echo_n "(cached) " >&6
 
8606
else
 
8607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192
8608
/* end confdefs.h.  */
7193
8609
 
7194
8610
int
7199
8615
  return 0;
7200
8616
}
7201
8617
_ACEOF
7202
 
rm -f conftest.$ac_objext conftest$ac_exeext
7203
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204
 
  (eval $ac_link) 2>conftest.er1
7205
 
  ac_status=$?
7206
 
  grep -v '^ *+' conftest.er1 >conftest.err
7207
 
  rm -f conftest.er1
7208
 
  cat conftest.err >&5
7209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210
 
  (exit $ac_status); } &&
7211
 
         { ac_try='test -z "$ac_c_werror_flag"
7212
 
                         || test ! -s conftest.err'
7213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214
 
  (eval $ac_try) 2>&5
7215
 
  ac_status=$?
7216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217
 
  (exit $ac_status); }; } &&
7218
 
         { ac_try='test -s conftest$ac_exeext'
7219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220
 
  (eval $ac_try) 2>&5
7221
 
  ac_status=$?
7222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223
 
  (exit $ac_status); }; }; then
7224
 
 
7225
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7226
 
}'`
7227
 
# Check for a 64-bit object if we didn't find anything.
7228
 
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; }
7229
 
}'`; fi
7230
 
else
7231
 
  echo "$as_me: failed program was:" >&5
7232
 
sed 's/^/| /' conftest.$ac_ext >&5
7233
 
 
7234
 
fi
7235
 
rm -f conftest.err conftest.$ac_objext \
7236
 
      conftest$ac_exeext conftest.$ac_ext
7237
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7238
 
 
7239
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7240
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7241
 
       else
 
8618
if ac_fn_c_try_link "$LINENO"; then :
 
8619
 
 
8620
  lt_aix_libpath_sed='
 
8621
      /Import File Strings/,/^$/ {
 
8622
          /^0/ {
 
8623
              s/^0  *\([^ ]*\) *$/\1/
 
8624
              p
 
8625
          }
 
8626
      }'
 
8627
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8628
  # Check for a 64-bit object if we didn't find anything.
 
8629
  if test -z "$lt_cv_aix_libpath_"; then
 
8630
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8631
  fi
 
8632
fi
 
8633
rm -f core conftest.err conftest.$ac_objext \
 
8634
    conftest$ac_exeext conftest.$ac_ext
 
8635
  if test -z "$lt_cv_aix_libpath_"; then
 
8636
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
8637
  fi
 
8638
 
 
8639
fi
 
8640
 
 
8641
  aix_libpath=$lt_cv_aix_libpath_
 
8642
fi
 
8643
 
 
8644
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8645
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8646
      else
7242
8647
        if test "$host_cpu" = ia64; then
7243
8648
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7244
8649
          allow_undefined_flag="-z nodefs"
7245
8650
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7246
8651
        else
7247
 
         # Determine the default libpath from the value encoded in an empty executable.
7248
 
         cat >conftest.$ac_ext <<_ACEOF
7249
 
/* confdefs.h.  */
7250
 
_ACEOF
7251
 
cat confdefs.h >>conftest.$ac_ext
7252
 
cat >>conftest.$ac_ext <<_ACEOF
 
8652
         # Determine the default libpath from the value encoded in an
 
8653
         # empty executable.
 
8654
         if test "${lt_cv_aix_libpath+set}" = set; then
 
8655
  aix_libpath=$lt_cv_aix_libpath
 
8656
else
 
8657
  if ${lt_cv_aix_libpath_+:} false; then :
 
8658
  $as_echo_n "(cached) " >&6
 
8659
else
 
8660
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253
8661
/* end confdefs.h.  */
7254
8662
 
7255
8663
int
7260
8668
  return 0;
7261
8669
}
7262
8670
_ACEOF
7263
 
rm -f conftest.$ac_objext conftest$ac_exeext
7264
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265
 
  (eval $ac_link) 2>conftest.er1
7266
 
  ac_status=$?
7267
 
  grep -v '^ *+' conftest.er1 >conftest.err
7268
 
  rm -f conftest.er1
7269
 
  cat conftest.err >&5
7270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271
 
  (exit $ac_status); } &&
7272
 
         { ac_try='test -z "$ac_c_werror_flag"
7273
 
                         || test ! -s conftest.err'
7274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275
 
  (eval $ac_try) 2>&5
7276
 
  ac_status=$?
7277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278
 
  (exit $ac_status); }; } &&
7279
 
         { ac_try='test -s conftest$ac_exeext'
7280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281
 
  (eval $ac_try) 2>&5
7282
 
  ac_status=$?
7283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284
 
  (exit $ac_status); }; }; then
7285
 
 
7286
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7287
 
}'`
7288
 
# Check for a 64-bit object if we didn't find anything.
7289
 
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; }
7290
 
}'`; fi
7291
 
else
7292
 
  echo "$as_me: failed program was:" >&5
7293
 
sed 's/^/| /' conftest.$ac_ext >&5
7294
 
 
7295
 
fi
7296
 
rm -f conftest.err conftest.$ac_objext \
7297
 
      conftest$ac_exeext conftest.$ac_ext
7298
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8671
if ac_fn_c_try_link "$LINENO"; then :
 
8672
 
 
8673
  lt_aix_libpath_sed='
 
8674
      /Import File Strings/,/^$/ {
 
8675
          /^0/ {
 
8676
              s/^0  *\([^ ]*\) *$/\1/
 
8677
              p
 
8678
          }
 
8679
      }'
 
8680
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8681
  # Check for a 64-bit object if we didn't find anything.
 
8682
  if test -z "$lt_cv_aix_libpath_"; then
 
8683
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8684
  fi
 
8685
fi
 
8686
rm -f core conftest.err conftest.$ac_objext \
 
8687
    conftest$ac_exeext conftest.$ac_ext
 
8688
  if test -z "$lt_cv_aix_libpath_"; then
 
8689
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
8690
  fi
 
8691
 
 
8692
fi
 
8693
 
 
8694
  aix_libpath=$lt_cv_aix_libpath_
 
8695
fi
7299
8696
 
7300
8697
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7301
8698
          # Warning - without using the other run time loading flags,
7302
8699
          # -berok will link without error, but may produce a broken library.
7303
8700
          no_undefined_flag=' ${wl}-bernotok'
7304
8701
          allow_undefined_flag=' ${wl}-berok'
7305
 
          # Exported symbols can be pulled into shared objects from archives
7306
 
          whole_archive_flag_spec='$convenience'
 
8702
          if test "$with_gnu_ld" = yes; then
 
8703
            # We only use this code for GNU lds that support --whole-archive.
 
8704
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
8705
          else
 
8706
            # Exported symbols can be pulled into shared objects from archives
 
8707
            whole_archive_flag_spec='$convenience'
 
8708
          fi
7307
8709
          archive_cmds_need_lc=yes
7308
8710
          # This is similar to how AIX traditionally builds its shared libraries.
7309
8711
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7312
8714
      ;;
7313
8715
 
7314
8716
    amigaos*)
7315
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7316
 
      hardcode_libdir_flag_spec='-L$libdir'
7317
 
      hardcode_minus_L=yes
7318
 
      # see comment about different semantics on the GNU ld section
7319
 
      ld_shlibs=no
 
8717
      case $host_cpu in
 
8718
      powerpc)
 
8719
            # see comment about AmigaOS4 .so support
 
8720
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8721
            archive_expsym_cmds=''
 
8722
        ;;
 
8723
      m68k)
 
8724
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8725
            hardcode_libdir_flag_spec='-L$libdir'
 
8726
            hardcode_minus_L=yes
 
8727
        ;;
 
8728
      esac
7320
8729
      ;;
7321
8730
 
7322
8731
    bsdi[45]*)
7323
8732
      export_dynamic_flag_spec=-rdynamic
7324
8733
      ;;
7325
8734
 
7326
 
    cygwin* | mingw* | pw32*)
 
8735
    cygwin* | mingw* | pw32* | cegcc*)
7327
8736
      # When not using gcc, we currently assume that we are using
7328
8737
      # Microsoft Visual C++.
7329
8738
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7330
8739
      # no search path for DLLs.
7331
 
      hardcode_libdir_flag_spec=' '
7332
 
      allow_undefined_flag=unsupported
7333
 
      # Tell ltmain to make .lib files, not .a files.
7334
 
      libext=lib
7335
 
      # Tell ltmain to make .dll files, not .so files.
7336
 
      shrext_cmds=".dll"
7337
 
      # FIXME: Setting linknames here is a bad hack.
7338
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7339
 
      # The linker will automatically build a .lib file if we build a DLL.
7340
 
      old_archive_From_new_cmds='true'
7341
 
      # FIXME: Should let the user specify the lib program.
7342
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7343
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7344
 
      enable_shared_with_static_runtimes=yes
 
8740
      case $cc_basename in
 
8741
      cl*)
 
8742
        # Native MSVC
 
8743
        hardcode_libdir_flag_spec=' '
 
8744
        allow_undefined_flag=unsupported
 
8745
        always_export_symbols=yes
 
8746
        file_list_spec='@'
 
8747
        # Tell ltmain to make .lib files, not .a files.
 
8748
        libext=lib
 
8749
        # Tell ltmain to make .dll files, not .so files.
 
8750
        shrext_cmds=".dll"
 
8751
        # FIXME: Setting linknames here is a bad hack.
 
8752
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
8753
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8754
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
8755
          else
 
8756
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
8757
          fi~
 
8758
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
8759
          linknames='
 
8760
        # The linker will not automatically build a static lib if we build a DLL.
 
8761
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
8762
        enable_shared_with_static_runtimes=yes
 
8763
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8764
        # Don't use ranlib
 
8765
        old_postinstall_cmds='chmod 644 $oldlib'
 
8766
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
8767
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
8768
          case $lt_outputfile in
 
8769
            *.exe|*.EXE) ;;
 
8770
            *)
 
8771
              lt_outputfile="$lt_outputfile.exe"
 
8772
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
8773
              ;;
 
8774
          esac~
 
8775
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
8776
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
8777
            $RM "$lt_outputfile.manifest";
 
8778
          fi'
 
8779
        ;;
 
8780
      *)
 
8781
        # Assume MSVC wrapper
 
8782
        hardcode_libdir_flag_spec=' '
 
8783
        allow_undefined_flag=unsupported
 
8784
        # Tell ltmain to make .lib files, not .a files.
 
8785
        libext=lib
 
8786
        # Tell ltmain to make .dll files, not .so files.
 
8787
        shrext_cmds=".dll"
 
8788
        # FIXME: Setting linknames here is a bad hack.
 
8789
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
8790
        # The linker will automatically build a .lib file if we build a DLL.
 
8791
        old_archive_from_new_cmds='true'
 
8792
        # FIXME: Should let the user specify the lib program.
 
8793
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8794
        enable_shared_with_static_runtimes=yes
 
8795
        ;;
 
8796
      esac
7345
8797
      ;;
7346
8798
 
7347
8799
    darwin* | rhapsody*)
7348
 
      case $host_os in
7349
 
        rhapsody* | darwin1.[012])
7350
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7351
 
         ;;
7352
 
       *) # Darwin 1.3 on
7353
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7354
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7355
 
         else
7356
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7357
 
             10.[012])
7358
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7359
 
               ;;
7360
 
             10.*)
7361
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7362
 
               ;;
7363
 
           esac
7364
 
         fi
7365
 
         ;;
7366
 
      esac
7367
 
      archive_cmds_need_lc=no
7368
 
      hardcode_direct=no
7369
 
      hardcode_automatic=yes
7370
 
      hardcode_shlibpath_var=unsupported
7371
 
      whole_archive_flag_spec=''
7372
 
      link_all_deplibs=yes
7373
 
    if test "$GCC" = yes ; then
7374
 
        output_verbose_link_cmd='echo'
7375
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7376
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7377
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7378
 
      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}'
7379
 
      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}'
7380
 
    else
7381
 
      case $cc_basename in
7382
 
        xlc*)
7383
 
         output_verbose_link_cmd='echo'
7384
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7385
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7386
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7387
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7388
 
          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}'
7389
 
          ;;
7390
 
       *)
7391
 
         ld_shlibs=no
7392
 
          ;;
7393
 
      esac
7394
 
    fi
 
8800
 
 
8801
 
 
8802
  archive_cmds_need_lc=no
 
8803
  hardcode_direct=no
 
8804
  hardcode_automatic=yes
 
8805
  hardcode_shlibpath_var=unsupported
 
8806
  if test "$lt_cv_ld_force_load" = "yes"; then
 
8807
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
8808
  else
 
8809
    whole_archive_flag_spec=''
 
8810
  fi
 
8811
  link_all_deplibs=yes
 
8812
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8813
  case $cc_basename in
 
8814
     ifort*) _lt_dar_can_shared=yes ;;
 
8815
     *) _lt_dar_can_shared=$GCC ;;
 
8816
  esac
 
8817
  if test "$_lt_dar_can_shared" = "yes"; then
 
8818
    output_verbose_link_cmd=func_echo_all
 
8819
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8820
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8821
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8822
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8823
 
 
8824
  else
 
8825
  ld_shlibs=no
 
8826
  fi
 
8827
 
7395
8828
      ;;
7396
8829
 
7397
8830
    dgux*)
7424
8857
      ;;
7425
8858
 
7426
8859
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7427
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
7428
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8860
    freebsd* | dragonfly*)
 
8861
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429
8862
      hardcode_libdir_flag_spec='-R$libdir'
7430
8863
      hardcode_direct=yes
7431
8864
      hardcode_shlibpath_var=no
7433
8866
 
7434
8867
    hpux9*)
7435
8868
      if test "$GCC" = yes; then
7436
 
        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'
 
8869
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7437
8870
      else
7438
 
        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'
 
8871
        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'
7439
8872
      fi
7440
8873
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7441
8874
      hardcode_libdir_separator=:
7448
8881
      ;;
7449
8882
 
7450
8883
    hpux10*)
7451
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7452
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8884
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
8885
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7453
8886
      else
7454
8887
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7455
8888
      fi
7456
8889
      if test "$with_gnu_ld" = no; then
7457
8890
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8891
        hardcode_libdir_flag_spec_ld='+b $libdir'
7458
8892
        hardcode_libdir_separator=:
7459
 
 
7460
8893
        hardcode_direct=yes
 
8894
        hardcode_direct_absolute=yes
7461
8895
        export_dynamic_flag_spec='${wl}-E'
7462
 
 
7463
8896
        # hardcode_minus_L: Not really in the search PATH,
7464
8897
        # but as the default location of the library.
7465
8898
        hardcode_minus_L=yes
7467
8900
      ;;
7468
8901
 
7469
8902
    hpux11*)
7470
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8903
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7471
8904
        case $host_cpu in
7472
8905
        hppa*64*)
7473
8906
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474
8907
          ;;
7475
8908
        ia64*)
7476
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8909
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7477
8910
          ;;
7478
8911
        *)
7479
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8912
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480
8913
          ;;
7481
8914
        esac
7482
8915
      else
7488
8921
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7489
8922
          ;;
7490
8923
        *)
7491
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8924
 
 
8925
          # Older versions of the 11.00 compiler do not understand -b yet
 
8926
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
8927
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
8928
$as_echo_n "checking if $CC understands -b... " >&6; }
 
8929
if ${lt_cv_prog_compiler__b+:} false; then :
 
8930
  $as_echo_n "(cached) " >&6
 
8931
else
 
8932
  lt_cv_prog_compiler__b=no
 
8933
   save_LDFLAGS="$LDFLAGS"
 
8934
   LDFLAGS="$LDFLAGS -b"
 
8935
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8936
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8937
     # The linker can only warn and ignore the option if not recognized
 
8938
     # So say no if there are warnings
 
8939
     if test -s conftest.err; then
 
8940
       # Append any errors to the config.log.
 
8941
       cat conftest.err 1>&5
 
8942
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8943
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8944
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8945
         lt_cv_prog_compiler__b=yes
 
8946
       fi
 
8947
     else
 
8948
       lt_cv_prog_compiler__b=yes
 
8949
     fi
 
8950
   fi
 
8951
   $RM -r conftest*
 
8952
   LDFLAGS="$save_LDFLAGS"
 
8953
 
 
8954
fi
 
8955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
8956
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
8957
 
 
8958
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
8959
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8960
else
 
8961
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8962
fi
 
8963
 
7492
8964
          ;;
7493
8965
        esac
7494
8966
      fi
7498
8970
 
7499
8971
        case $host_cpu in
7500
8972
        hppa*64*|ia64*)
7501
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
7502
8973
          hardcode_direct=no
7503
8974
          hardcode_shlibpath_var=no
7504
8975
          ;;
7505
8976
        *)
7506
8977
          hardcode_direct=yes
 
8978
          hardcode_direct_absolute=yes
7507
8979
          export_dynamic_flag_spec='${wl}-E'
7508
8980
 
7509
8981
          # hardcode_minus_L: Not really in the search PATH,
7516
8988
 
7517
8989
    irix5* | irix6* | nonstopux*)
7518
8990
      if test "$GCC" = yes; then
7519
 
        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'
 
8991
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8992
        # Try to use the -exported_symbol ld option, if it does not
 
8993
        # work, assume that -exports_file does not work either and
 
8994
        # implicitly export all symbols.
 
8995
        # This should be the same for all languages, so no per-tag cache variable.
 
8996
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
8997
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
8998
if ${lt_cv_irix_exported_symbol+:} false; then :
 
8999
  $as_echo_n "(cached) " >&6
 
9000
else
 
9001
  save_LDFLAGS="$LDFLAGS"
 
9002
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9003
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9004
/* end confdefs.h.  */
 
9005
int foo (void) { return 0; }
 
9006
_ACEOF
 
9007
if ac_fn_c_try_link "$LINENO"; then :
 
9008
  lt_cv_irix_exported_symbol=yes
 
9009
else
 
9010
  lt_cv_irix_exported_symbol=no
 
9011
fi
 
9012
rm -f core conftest.err conftest.$ac_objext \
 
9013
    conftest$ac_exeext conftest.$ac_ext
 
9014
           LDFLAGS="$save_LDFLAGS"
 
9015
fi
 
9016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9017
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9018
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9019
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9020
        fi
7520
9021
      else
7521
 
        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'
7522
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9022
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9023
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7523
9024
      fi
 
9025
      archive_cmds_need_lc='no'
7524
9026
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525
9027
      hardcode_libdir_separator=:
 
9028
      inherit_rpath=yes
7526
9029
      link_all_deplibs=yes
7527
9030
      ;;
7528
9031
 
7529
 
    netbsd*)
7530
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9032
    netbsd* | netbsdelf*-gnu)
 
9033
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7531
9034
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7532
9035
      else
7533
9036
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7545
9048
      hardcode_shlibpath_var=no
7546
9049
      ;;
7547
9050
 
 
9051
    *nto* | *qnx*)
 
9052
      ;;
 
9053
 
7548
9054
    openbsd*)
7549
 
      hardcode_direct=yes
7550
 
      hardcode_shlibpath_var=no
7551
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7552
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7553
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7554
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7555
 
        export_dynamic_flag_spec='${wl}-E'
 
9055
      if test -f /usr/libexec/ld.so; then
 
9056
        hardcode_direct=yes
 
9057
        hardcode_shlibpath_var=no
 
9058
        hardcode_direct_absolute=yes
 
9059
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9060
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9061
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9062
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9063
          export_dynamic_flag_spec='${wl}-E'
 
9064
        else
 
9065
          case $host_os in
 
9066
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9067
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9068
             hardcode_libdir_flag_spec='-R$libdir'
 
9069
             ;;
 
9070
           *)
 
9071
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9072
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9073
             ;;
 
9074
          esac
 
9075
        fi
7556
9076
      else
7557
 
       case $host_os in
7558
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7559
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7560
 
           hardcode_libdir_flag_spec='-R$libdir'
7561
 
           ;;
7562
 
         *)
7563
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7564
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7565
 
           ;;
7566
 
       esac
 
9077
        ld_shlibs=no
7567
9078
      fi
7568
9079
      ;;
7569
9080
 
7571
9082
      hardcode_libdir_flag_spec='-L$libdir'
7572
9083
      hardcode_minus_L=yes
7573
9084
      allow_undefined_flag=unsupported
7574
 
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7575
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9085
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9086
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7576
9087
      ;;
7577
9088
 
7578
9089
    osf3*)
7579
9090
      if test "$GCC" = yes; then
7580
9091
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581
 
        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'
 
9092
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7582
9093
      else
7583
9094
        allow_undefined_flag=' -expect_unresolved \*'
7584
 
        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'
 
9095
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7585
9096
      fi
 
9097
      archive_cmds_need_lc='no'
7586
9098
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587
9099
      hardcode_libdir_separator=:
7588
9100
      ;;
7590
9102
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7591
9103
      if test "$GCC" = yes; then
7592
9104
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7593
 
        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'
 
9105
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7594
9106
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7595
9107
      else
7596
9108
        allow_undefined_flag=' -expect_unresolved \*'
7597
 
        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'
7598
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7599
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9109
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9110
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9111
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7600
9112
 
7601
9113
        # Both c and cxx compiler support -rpath directly
7602
9114
        hardcode_libdir_flag_spec='-rpath $libdir'
7603
9115
      fi
 
9116
      archive_cmds_need_lc='no'
7604
9117
      hardcode_libdir_separator=:
7605
9118
      ;;
7606
9119
 
7607
9120
    solaris*)
7608
 
      no_undefined_flag=' -z text'
 
9121
      no_undefined_flag=' -z defs'
7609
9122
      if test "$GCC" = yes; then
7610
9123
        wlarc='${wl}'
7611
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7612
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7613
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9124
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9125
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9126
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7614
9127
      else
7615
 
        wlarc=''
7616
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7618
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9128
        case `$CC -V 2>&1` in
 
9129
        *"Compilers 5.0"*)
 
9130
          wlarc=''
 
9131
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9132
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9133
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9134
          ;;
 
9135
        *)
 
9136
          wlarc='${wl}'
 
9137
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9138
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9139
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9140
          ;;
 
9141
        esac
7619
9142
      fi
7620
9143
      hardcode_libdir_flag_spec='-R$libdir'
7621
9144
      hardcode_shlibpath_var=no
7622
9145
      case $host_os in
7623
9146
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7624
9147
      *)
7625
 
        # The compiler driver will combine linker options so we
7626
 
        # cannot just pass the convience library names through
7627
 
        # without $wl, iff we do not link with $LD.
7628
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
7629
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7630
 
        case $wlarc in
7631
 
        '')
7632
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7633
 
        *)
7634
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7635
 
        esac ;;
 
9148
        # The compiler driver will combine and reorder linker options,
 
9149
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9150
        # but is careful enough not to reorder.
 
9151
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9152
        if test "$GCC" = yes; then
 
9153
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9154
        else
 
9155
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9156
        fi
 
9157
        ;;
7636
9158
      esac
7637
9159
      link_all_deplibs=yes
7638
9160
      ;;
7689
9211
      fi
7690
9212
      ;;
7691
9213
 
7692
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9214
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7693
9215
      no_undefined_flag='${wl}-z,text'
7694
9216
      archive_cmds_need_lc=no
7695
9217
      hardcode_shlibpath_var=no
7715
9237
      allow_undefined_flag='${wl}-z,nodefs'
7716
9238
      archive_cmds_need_lc=no
7717
9239
      hardcode_shlibpath_var=no
7718
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9240
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
7719
9241
      hardcode_libdir_separator=':'
7720
9242
      link_all_deplibs=yes
7721
9243
      export_dynamic_flag_spec='${wl}-Bexport'
7722
9244
      runpath_var='LD_RUN_PATH'
7723
9245
 
7724
9246
      if test "$GCC" = yes; then
7725
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9247
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9248
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7727
9249
      else
7728
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9250
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9251
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7730
9252
      fi
7731
9253
      ;;
7732
9254
 
7740
9262
      ld_shlibs=no
7741
9263
      ;;
7742
9264
    esac
 
9265
 
 
9266
    if test x$host_vendor = xsni; then
 
9267
      case $host in
 
9268
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9269
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9270
        ;;
 
9271
      esac
 
9272
    fi
7743
9273
  fi
7744
9274
 
7745
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7746
 
echo "${ECHO_T}$ld_shlibs" >&6
 
9275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9276
$as_echo "$ld_shlibs" >&6; }
7747
9277
test "$ld_shlibs" = no && can_build_shared=no
7748
9278
 
 
9279
with_gnu_ld=$with_gnu_ld
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
 
7749
9295
#
7750
9296
# Do we need to explicitly link libc?
7751
9297
#
7763
9309
      # Test whether the compiler implicitly links with -lc since on some
7764
9310
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7765
9311
      # to ld, don't add -lc before -lgcc.
7766
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7767
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7768
 
      $rm conftest*
7769
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9312
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9313
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9314
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9315
  $as_echo_n "(cached) " >&6
 
9316
else
 
9317
  $RM conftest*
 
9318
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7770
9319
 
7771
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9320
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7772
9321
  (eval $ac_compile) 2>&5
7773
9322
  ac_status=$?
7774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775
 
  (exit $ac_status); } 2>conftest.err; then
7776
 
        soname=conftest
7777
 
        lib=conftest
7778
 
        libobjs=conftest.$ac_objext
7779
 
        deplibs=
7780
 
        wl=$lt_prog_compiler_wl
7781
 
        pic_flag=$lt_prog_compiler_pic
7782
 
        compiler_flags=-v
7783
 
        linker_flags=-v
7784
 
        verstring=
7785
 
        output_objdir=.
7786
 
        libname=conftest
7787
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
7788
 
        allow_undefined_flag=
7789
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7790
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9323
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9324
  test $ac_status = 0; } 2>conftest.err; then
 
9325
          soname=conftest
 
9326
          lib=conftest
 
9327
          libobjs=conftest.$ac_objext
 
9328
          deplibs=
 
9329
          wl=$lt_prog_compiler_wl
 
9330
          pic_flag=$lt_prog_compiler_pic
 
9331
          compiler_flags=-v
 
9332
          linker_flags=-v
 
9333
          verstring=
 
9334
          output_objdir=.
 
9335
          libname=conftest
 
9336
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9337
          allow_undefined_flag=
 
9338
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9339
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7791
9340
  ac_status=$?
7792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793
 
  (exit $ac_status); }
7794
 
        then
7795
 
          archive_cmds_need_lc=no
7796
 
        else
7797
 
          archive_cmds_need_lc=yes
7798
 
        fi
7799
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
7800
 
      else
7801
 
        cat conftest.err 1>&5
7802
 
      fi
7803
 
      $rm conftest*
7804
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7805
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9341
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9342
  test $ac_status = 0; }
 
9343
          then
 
9344
            lt_cv_archive_cmds_need_lc=no
 
9345
          else
 
9346
            lt_cv_archive_cmds_need_lc=yes
 
9347
          fi
 
9348
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9349
        else
 
9350
          cat conftest.err 1>&5
 
9351
        fi
 
9352
        $RM conftest*
 
9353
 
 
9354
fi
 
9355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9356
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9357
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
7806
9358
      ;;
7807
9359
    esac
7808
9360
  fi
7809
9361
  ;;
7810
9362
esac
7811
9363
 
7812
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7813
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
 
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
 
 
9397
 
 
9398
 
 
9399
 
 
9400
 
 
9401
 
 
9402
 
 
9403
 
 
9404
 
 
9405
 
 
9406
 
 
9407
 
 
9408
 
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
 
 
9417
 
 
9418
 
 
9419
 
 
9420
 
 
9421
 
 
9422
 
 
9423
 
 
9424
 
 
9425
 
 
9426
 
 
9427
 
 
9428
 
 
9429
 
 
9430
 
 
9431
 
 
9432
 
 
9433
 
 
9434
 
 
9435
 
 
9436
 
 
9437
 
 
9438
 
 
9439
 
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
 
 
9448
 
 
9449
 
 
9450
 
 
9451
 
 
9452
 
 
9453
 
 
9454
 
 
9455
 
 
9456
 
 
9457
 
 
9458
 
 
9459
 
 
9460
 
 
9461
 
 
9462
 
 
9463
 
 
9464
 
 
9465
 
 
9466
 
 
9467
 
 
9468
 
 
9469
 
 
9470
 
 
9471
 
 
9472
 
 
9473
 
 
9474
 
 
9475
 
 
9476
 
 
9477
 
 
9478
 
 
9479
 
 
9480
 
 
9481
 
 
9482
 
 
9483
 
 
9484
 
 
9485
 
 
9486
 
 
9487
 
 
9488
 
 
9489
 
 
9490
 
 
9491
 
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
 
 
9501
 
 
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9521
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9522
 
 
9523
if test "$GCC" = yes; then
 
9524
  case $host_os in
 
9525
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9526
    *) lt_awk_arg="/^libraries:/" ;;
 
9527
  esac
 
9528
  case $host_os in
 
9529
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
9530
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
9531
  esac
 
9532
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
9533
  case $lt_search_path_spec in
 
9534
  *\;*)
 
9535
    # if the path contains ";" then we assume it to be the separator
 
9536
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9537
    # assumed that no part of a normal pathname contains ";" but that should
 
9538
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9539
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
9540
    ;;
 
9541
  *)
 
9542
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
9543
    ;;
 
9544
  esac
 
9545
  # Ok, now we have the path, separated by spaces, we can step through it
 
9546
  # and add multilib dir if necessary.
 
9547
  lt_tmp_lt_search_path_spec=
 
9548
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9549
  for lt_sys_path in $lt_search_path_spec; do
 
9550
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9551
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9552
    else
 
9553
      test -d "$lt_sys_path" && \
 
9554
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9555
    fi
 
9556
  done
 
9557
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
9558
BEGIN {RS=" "; FS="/|\n";} {
 
9559
  lt_foo="";
 
9560
  lt_count=0;
 
9561
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9562
    if ($lt_i != "" && $lt_i != ".") {
 
9563
      if ($lt_i == "..") {
 
9564
        lt_count++;
 
9565
      } else {
 
9566
        if (lt_count == 0) {
 
9567
          lt_foo="/" $lt_i lt_foo;
 
9568
        } else {
 
9569
          lt_count--;
 
9570
        }
 
9571
      }
 
9572
    }
 
9573
  }
 
9574
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9575
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9576
}'`
 
9577
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
9578
  # for these hosts.
 
9579
  case $host_os in
 
9580
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
9581
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
9582
  esac
 
9583
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
9584
else
 
9585
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9586
fi
7814
9587
library_names_spec=
7815
9588
libname_spec='lib$name'
7816
9589
soname_spec=
7824
9597
version_type=none
7825
9598
dynamic_linker="$host_os ld.so"
7826
9599
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7827
 
if test "$GCC" = yes; then
7828
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7829
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7830
 
    # if the path contains ";" then we assume it to be the separator
7831
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7832
 
    # assumed that no part of a normal pathname contains ";" but that should
7833
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7834
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7835
 
  else
7836
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7837
 
  fi
7838
 
else
7839
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7840
 
fi
7841
9600
need_lib_prefix=unknown
7842
9601
hardcode_into_libs=no
7843
9602
 
7855
9614
  soname_spec='${libname}${release}${shared_ext}$major'
7856
9615
  ;;
7857
9616
 
7858
 
aix4* | aix5*)
 
9617
aix[4-9]*)
7859
9618
  version_type=linux
7860
9619
  need_lib_prefix=no
7861
9620
  need_version=no
7874
9633
      aix4 | aix4.[01] | aix4.[01].*)
7875
9634
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7876
9635
           echo ' yes '
7877
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9636
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7878
9637
        :
7879
9638
      else
7880
9639
        can_build_shared=no
7900
9659
  ;;
7901
9660
 
7902
9661
amigaos*)
7903
 
  library_names_spec='$libname.ixlibrary $libname.a'
7904
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7905
 
  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'
 
9662
  case $host_cpu in
 
9663
  powerpc)
 
9664
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9665
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9666
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9667
    ;;
 
9668
  m68k)
 
9669
    library_names_spec='$libname.ixlibrary $libname.a'
 
9670
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9671
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9672
    ;;
 
9673
  esac
7906
9674
  ;;
7907
9675
 
7908
9676
beos*)
7925
9693
  # libtool to hard-code these into programs
7926
9694
  ;;
7927
9695
 
7928
 
cygwin* | mingw* | pw32*)
 
9696
cygwin* | mingw* | pw32* | cegcc*)
7929
9697
  version_type=windows
7930
9698
  shrext_cmds=".dll"
7931
9699
  need_version=no
7932
9700
  need_lib_prefix=no
7933
9701
 
7934
 
  case $GCC,$host_os in
7935
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9702
  case $GCC,$cc_basename in
 
9703
  yes,*)
 
9704
    # gcc
7936
9705
    library_names_spec='$libname.dll.a'
7937
9706
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7938
9707
    postinstall_cmds='base_file=`basename \${file}`~
7939
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9708
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7940
9709
      dldir=$destdir/`dirname \$dlpath`~
7941
9710
      test -d \$dldir || mkdir -p \$dldir~
7942
9711
      $install_prog $dir/$dlname \$dldir/$dlname~
7943
 
      chmod a+x \$dldir/$dlname'
 
9712
      chmod a+x \$dldir/$dlname~
 
9713
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9714
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9715
      fi'
7944
9716
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7945
9717
      dlpath=$dir/\$dldll~
7946
 
       $rm \$dlpath'
 
9718
       $RM \$dlpath'
7947
9719
    shlibpath_overrides_runpath=yes
7948
9720
 
7949
9721
    case $host_os in
7950
9722
    cygwin*)
7951
9723
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7952
9724
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7953
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9725
 
 
9726
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
7954
9727
      ;;
7955
 
    mingw*)
 
9728
    mingw* | cegcc*)
7956
9729
      # MinGW DLLs use traditional 'lib' prefix
7957
9730
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7958
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7959
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7960
 
        # It is most probably a Windows format PATH printed by
7961
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7962
 
        # path with ; separators, and with drive letters. We can handle the
7963
 
        # drive letters (cygwin fileutils understands them), so leave them,
7964
 
        # especially as we might pass files found there to a mingw objdump,
7965
 
        # which wouldn't understand a cygwinified path. Ahh.
7966
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7967
 
      else
7968
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7969
 
      fi
7970
9731
      ;;
7971
9732
    pw32*)
7972
9733
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7973
9734
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7974
9735
      ;;
7975
9736
    esac
 
9737
    dynamic_linker='Win32 ld.exe'
 
9738
    ;;
 
9739
 
 
9740
  *,cl*)
 
9741
    # Native MSVC
 
9742
    libname_spec='$name'
 
9743
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9744
    library_names_spec='${libname}.dll.lib'
 
9745
 
 
9746
    case $build_os in
 
9747
    mingw*)
 
9748
      sys_lib_search_path_spec=
 
9749
      lt_save_ifs=$IFS
 
9750
      IFS=';'
 
9751
      for lt_path in $LIB
 
9752
      do
 
9753
        IFS=$lt_save_ifs
 
9754
        # Let DOS variable expansion print the short 8.3 style file name.
 
9755
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
9756
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
9757
      done
 
9758
      IFS=$lt_save_ifs
 
9759
      # Convert to MSYS style.
 
9760
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
9761
      ;;
 
9762
    cygwin*)
 
9763
      # Convert to unix form, then to dos form, then back to unix form
 
9764
      # but this time dos style (no spaces!) so that the unix form looks
 
9765
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
9766
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
9767
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
9768
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
9769
      ;;
 
9770
    *)
 
9771
      sys_lib_search_path_spec="$LIB"
 
9772
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9773
        # It is most probably a Windows format PATH.
 
9774
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9775
      else
 
9776
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
9777
      fi
 
9778
      # FIXME: find the short name or the path components, as spaces are
 
9779
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
9780
      ;;
 
9781
    esac
 
9782
 
 
9783
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9784
    postinstall_cmds='base_file=`basename \${file}`~
 
9785
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9786
      dldir=$destdir/`dirname \$dlpath`~
 
9787
      test -d \$dldir || mkdir -p \$dldir~
 
9788
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9789
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9790
      dlpath=$dir/\$dldll~
 
9791
       $RM \$dlpath'
 
9792
    shlibpath_overrides_runpath=yes
 
9793
    dynamic_linker='Win32 link.exe'
7976
9794
    ;;
7977
9795
 
7978
9796
  *)
 
9797
    # Assume MSVC wrapper
7979
9798
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9799
    dynamic_linker='Win32 ld.exe'
7980
9800
    ;;
7981
9801
  esac
7982
 
  dynamic_linker='Win32 ld.exe'
7983
9802
  # FIXME: first we should search . and the directory the executable is in
7984
9803
  shlibpath_var=PATH
7985
9804
  ;;
7989
9808
  version_type=darwin
7990
9809
  need_lib_prefix=no
7991
9810
  need_version=no
7992
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9811
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7993
9812
  soname_spec='${libname}${release}${major}$shared_ext'
7994
9813
  shlibpath_overrides_runpath=yes
7995
9814
  shlibpath_var=DYLD_LIBRARY_PATH
7996
9815
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7997
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7998
 
  if test "$GCC" = yes; then
7999
 
    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"`
8000
 
  else
8001
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8002
 
  fi
 
9816
 
 
9817
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8003
9818
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8004
9819
  ;;
8005
9820
 
8016
9831
  dynamic_linker=no
8017
9832
  ;;
8018
9833
 
8019
 
kfreebsd*-gnu)
8020
 
  version_type=linux
8021
 
  need_lib_prefix=no
8022
 
  need_version=no
8023
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8024
 
  soname_spec='${libname}${release}${shared_ext}$major'
8025
 
  shlibpath_var=LD_LIBRARY_PATH
8026
 
  shlibpath_overrides_runpath=no
8027
 
  hardcode_into_libs=yes
8028
 
  dynamic_linker='GNU ld.so'
8029
 
  ;;
8030
 
 
8031
9834
freebsd* | dragonfly*)
8032
9835
  # DragonFly does not have aout.  When/if they implement a new
8033
9836
  # versioning mechanism, adjust this.
8065
9868
    shlibpath_overrides_runpath=no
8066
9869
    hardcode_into_libs=yes
8067
9870
    ;;
8068
 
  freebsd*) # from 4.6 on
 
9871
  *) # from 4.6 on, and DragonFly
8069
9872
    shlibpath_overrides_runpath=yes
8070
9873
    hardcode_into_libs=yes
8071
9874
    ;;
8079
9882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8080
9883
  soname_spec='${libname}${release}${shared_ext}$major'
8081
9884
  shlibpath_var=LD_LIBRARY_PATH
 
9885
  shlibpath_overrides_runpath=no
 
9886
  hardcode_into_libs=yes
 
9887
  ;;
 
9888
 
 
9889
haiku*)
 
9890
  version_type=linux
 
9891
  need_lib_prefix=no
 
9892
  need_version=no
 
9893
  dynamic_linker="$host_os runtime_loader"
 
9894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9895
  soname_spec='${libname}${release}${shared_ext}$major'
 
9896
  shlibpath_var=LIBRARY_PATH
 
9897
  shlibpath_overrides_runpath=yes
 
9898
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
8082
9899
  hardcode_into_libs=yes
8083
9900
  ;;
8084
9901
 
8104
9921
    fi
8105
9922
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8106
9923
    ;;
8107
 
   hppa*64*)
8108
 
     shrext_cmds='.sl'
8109
 
     hardcode_into_libs=yes
8110
 
     dynamic_linker="$host_os dld.sl"
8111
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8112
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8113
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114
 
     soname_spec='${libname}${release}${shared_ext}$major'
8115
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8116
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8117
 
     ;;
8118
 
   *)
 
9924
  hppa*64*)
 
9925
    shrext_cmds='.sl'
 
9926
    hardcode_into_libs=yes
 
9927
    dynamic_linker="$host_os dld.sl"
 
9928
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9929
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9930
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9931
    soname_spec='${libname}${release}${shared_ext}$major'
 
9932
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9933
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9934
    ;;
 
9935
  *)
8119
9936
    shrext_cmds='.sl'
8120
9937
    dynamic_linker="$host_os dld.sl"
8121
9938
    shlibpath_var=SHLIB_PATH
8124
9941
    soname_spec='${libname}${release}${shared_ext}$major'
8125
9942
    ;;
8126
9943
  esac
8127
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9944
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
8128
9945
  postinstall_cmds='chmod 555 $lib'
 
9946
  # or fails outright, so override atomically:
 
9947
  install_override_mode=555
8129
9948
  ;;
8130
9949
 
8131
 
interix3*)
 
9950
interix[3-9]*)
8132
9951
  version_type=linux
8133
9952
  need_lib_prefix=no
8134
9953
  need_version=no
8183
10002
  ;;
8184
10003
 
8185
10004
# This must be Linux ELF.
8186
 
linux*)
 
10005
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8187
10006
  version_type=linux
8188
10007
  need_lib_prefix=no
8189
10008
  need_version=no
8192
10011
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8193
10012
  shlibpath_var=LD_LIBRARY_PATH
8194
10013
  shlibpath_overrides_runpath=no
 
10014
 
 
10015
  # Some binutils ld are patched to set DT_RUNPATH
 
10016
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10017
  $as_echo_n "(cached) " >&6
 
10018
else
 
10019
  lt_cv_shlibpath_overrides_runpath=no
 
10020
    save_LDFLAGS=$LDFLAGS
 
10021
    save_libdir=$libdir
 
10022
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10023
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10024
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10025
/* end confdefs.h.  */
 
10026
 
 
10027
int
 
10028
main ()
 
10029
{
 
10030
 
 
10031
  ;
 
10032
  return 0;
 
10033
}
 
10034
_ACEOF
 
10035
if ac_fn_c_try_link "$LINENO"; then :
 
10036
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10037
  lt_cv_shlibpath_overrides_runpath=yes
 
10038
fi
 
10039
fi
 
10040
rm -f core conftest.err conftest.$ac_objext \
 
10041
    conftest$ac_exeext conftest.$ac_ext
 
10042
    LDFLAGS=$save_LDFLAGS
 
10043
    libdir=$save_libdir
 
10044
 
 
10045
fi
 
10046
 
 
10047
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10048
 
8195
10049
  # This implies no fast_install, which is unacceptable.
8196
10050
  # Some rework will be needed to allow for fast_install
8197
10051
  # before this can be enabled.
8199
10053
 
8200
10054
  # Append ld.so.conf contents to the search path
8201
10055
  if test -f /etc/ld.so.conf; then
8202
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10056
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
8203
10057
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8204
10058
  fi
8205
10059
 
8212
10066
  dynamic_linker='GNU/Linux ld.so'
8213
10067
  ;;
8214
10068
 
8215
 
knetbsd*-gnu)
 
10069
netbsdelf*-gnu)
8216
10070
  version_type=linux
8217
10071
  need_lib_prefix=no
8218
10072
  need_version=no
8221
10075
  shlibpath_var=LD_LIBRARY_PATH
8222
10076
  shlibpath_overrides_runpath=no
8223
10077
  hardcode_into_libs=yes
8224
 
  dynamic_linker='GNU ld.so'
 
10078
  dynamic_linker='NetBSD ld.elf_so'
8225
10079
  ;;
8226
10080
 
8227
10081
netbsd*)
8228
10082
  version_type=sunos
8229
10083
  need_lib_prefix=no
8230
10084
  need_version=no
8231
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10085
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8232
10086
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8233
10087
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8234
10088
    dynamic_linker='NetBSD (a.out) ld.so'
8249
10103
  shlibpath_overrides_runpath=yes
8250
10104
  ;;
8251
10105
 
8252
 
nto-qnx*)
8253
 
  version_type=linux
 
10106
*nto* | *qnx*)
 
10107
  version_type=qnx
8254
10108
  need_lib_prefix=no
8255
10109
  need_version=no
8256
10110
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257
10111
  soname_spec='${libname}${release}${shared_ext}$major'
8258
10112
  shlibpath_var=LD_LIBRARY_PATH
8259
 
  shlibpath_overrides_runpath=yes
 
10113
  shlibpath_overrides_runpath=no
 
10114
  hardcode_into_libs=yes
 
10115
  dynamic_linker='ldqnx.so'
8260
10116
  ;;
8261
10117
 
8262
10118
openbsd*)
8265
10121
  need_lib_prefix=no
8266
10122
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8267
10123
  case $host_os in
8268
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8269
 
    *)                         need_version=no  ;;
 
10124
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10125
    *)                          need_version=no  ;;
8270
10126
  esac
8271
10127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8272
10128
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8273
10129
  shlibpath_var=LD_LIBRARY_PATH
8274
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10130
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275
10131
    case $host_os in
8276
10132
      openbsd2.[89] | openbsd2.[89].*)
8277
10133
        shlibpath_overrides_runpath=no
8305
10161
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8306
10162
  ;;
8307
10163
 
 
10164
rdos*)
 
10165
  dynamic_linker=no
 
10166
  ;;
 
10167
 
8308
10168
solaris*)
8309
10169
  version_type=linux
8310
10170
  need_lib_prefix=no
8339
10199
    sni)
8340
10200
      shlibpath_overrides_runpath=no
8341
10201
      need_lib_prefix=no
8342
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8343
10202
      runpath_var=LD_RUN_PATH
8344
10203
      ;;
8345
10204
    siemens)
8370
10229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8371
10230
  soname_spec='${libname}${release}${shared_ext}$major'
8372
10231
  shlibpath_var=LD_LIBRARY_PATH
 
10232
  shlibpath_overrides_runpath=yes
8373
10233
  hardcode_into_libs=yes
8374
10234
  if test "$with_gnu_ld" = yes; then
8375
10235
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8376
 
    shlibpath_overrides_runpath=no
8377
10236
  else
8378
10237
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8379
 
    shlibpath_overrides_runpath=yes
8380
10238
    case $host_os in
8381
10239
      sco3.2v5*)
8382
10240
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8386
10244
  sys_lib_dlsearch_path_spec='/usr/lib'
8387
10245
  ;;
8388
10246
 
 
10247
tpf*)
 
10248
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10249
  version_type=linux
 
10250
  need_lib_prefix=no
 
10251
  need_version=no
 
10252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10253
  shlibpath_var=LD_LIBRARY_PATH
 
10254
  shlibpath_overrides_runpath=no
 
10255
  hardcode_into_libs=yes
 
10256
  ;;
 
10257
 
8389
10258
uts4*)
8390
10259
  version_type=linux
8391
10260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397
10266
  dynamic_linker=no
8398
10267
  ;;
8399
10268
esac
8400
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8401
 
echo "${ECHO_T}$dynamic_linker" >&6
 
10269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10270
$as_echo "$dynamic_linker" >&6; }
8402
10271
test "$dynamic_linker" = no && can_build_shared=no
8403
10272
 
8404
10273
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8406
10275
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8407
10276
fi
8408
10277
 
8409
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10278
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10279
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10280
fi
 
10281
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10282
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10283
fi
 
10284
 
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10377
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8411
10378
hardcode_action=
8412
 
if test -n "$hardcode_libdir_flag_spec" || \
8413
 
   test -n "$runpath_var" || \
 
10379
if test -n "$hardcode_libdir_flag_spec" ||
 
10380
   test -n "$runpath_var" ||
8414
10381
   test "X$hardcode_automatic" = "Xyes" ; then
8415
10382
 
8416
 
  # We can hardcode non-existant directories.
 
10383
  # We can hardcode non-existent directories.
8417
10384
  if test "$hardcode_direct" != no &&
8418
10385
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419
10386
     # have to relink, otherwise we might link with an installed library
8420
10387
     # when we should be linking with a yet-to-be-installed one
8421
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10388
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8422
10389
     test "$hardcode_minus_L" != no; then
8423
10390
    # Linking always hardcodes the temporary library directory.
8424
10391
    hardcode_action=relink
8431
10398
  # directories.
8432
10399
  hardcode_action=unsupported
8433
10400
fi
8434
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435
 
echo "${ECHO_T}$hardcode_action" >&6
 
10401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10402
$as_echo "$hardcode_action" >&6; }
8436
10403
 
8437
 
if test "$hardcode_action" = relink; then
 
10404
if test "$hardcode_action" = relink ||
 
10405
   test "$inherit_rpath" = yes; then
8438
10406
  # Fast installation is not supported
8439
10407
  enable_fast_install=no
8440
10408
elif test "$shlibpath_overrides_runpath" = yes ||
8443
10411
  enable_fast_install=needless
8444
10412
fi
8445
10413
 
8446
 
striplib=
8447
 
old_striplib=
8448
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8449
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8450
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8451
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8452
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8453
 
  echo "$as_me:$LINENO: result: yes" >&5
8454
 
echo "${ECHO_T}yes" >&6
8455
 
else
8456
 
# FIXME - insert some real tests, host_os isn't really good enough
8457
 
  case $host_os in
8458
 
   darwin*)
8459
 
       if test -n "$STRIP" ; then
8460
 
         striplib="$STRIP -x"
8461
 
         echo "$as_me:$LINENO: result: yes" >&5
8462
 
echo "${ECHO_T}yes" >&6
8463
 
       else
8464
 
  echo "$as_me:$LINENO: result: no" >&5
8465
 
echo "${ECHO_T}no" >&6
8466
 
fi
8467
 
       ;;
8468
 
   *)
8469
 
  echo "$as_me:$LINENO: result: no" >&5
8470
 
echo "${ECHO_T}no" >&6
8471
 
    ;;
8472
 
  esac
8473
 
fi
8474
 
 
8475
 
if test "x$enable_dlopen" != xyes; then
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
  if test "x$enable_dlopen" != xyes; then
8476
10420
  enable_dlopen=unknown
8477
10421
  enable_dlopen_self=unknown
8478
10422
  enable_dlopen_self_static=unknown
8487
10431
    lt_cv_dlopen_self=yes
8488
10432
    ;;
8489
10433
 
8490
 
  mingw* | pw32*)
 
10434
  mingw* | pw32* | cegcc*)
8491
10435
    lt_cv_dlopen="LoadLibrary"
8492
10436
    lt_cv_dlopen_libs=
8493
 
   ;;
 
10437
    ;;
8494
10438
 
8495
10439
  cygwin*)
8496
10440
    lt_cv_dlopen="dlopen"
8497
10441
    lt_cv_dlopen_libs=
8498
 
   ;;
 
10442
    ;;
8499
10443
 
8500
10444
  darwin*)
8501
10445
  # if libdl is installed we need to link against it
8502
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8503
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8504
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8505
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10446
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10447
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10448
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10449
  $as_echo_n "(cached) " >&6
8506
10450
else
8507
10451
  ac_check_lib_save_LIBS=$LIBS
8508
10452
LIBS="-ldl  $LIBS"
8509
 
cat >conftest.$ac_ext <<_ACEOF
8510
 
/* confdefs.h.  */
8511
 
_ACEOF
8512
 
cat confdefs.h >>conftest.$ac_ext
8513
 
cat >>conftest.$ac_ext <<_ACEOF
 
10453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514
10454
/* end confdefs.h.  */
8515
10455
 
8516
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10456
/* Override any GCC internal prototype to avoid an error.
 
10457
   Use char because int might match the return type of a GCC
 
10458
   builtin and then its argument prototype would still apply.  */
8517
10459
#ifdef __cplusplus
8518
10460
extern "C"
8519
10461
#endif
8520
 
/* We use char because int might match the return type of a gcc2
8521
 
   builtin and then its argument prototype would still apply.  */
8522
10462
char dlopen ();
8523
10463
int
8524
10464
main ()
8525
10465
{
8526
 
dlopen ();
 
10466
return dlopen ();
8527
10467
  ;
8528
10468
  return 0;
8529
10469
}
8530
10470
_ACEOF
8531
 
rm -f conftest.$ac_objext conftest$ac_exeext
8532
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533
 
  (eval $ac_link) 2>conftest.er1
8534
 
  ac_status=$?
8535
 
  grep -v '^ *+' conftest.er1 >conftest.err
8536
 
  rm -f conftest.er1
8537
 
  cat conftest.err >&5
8538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
 
  (exit $ac_status); } &&
8540
 
         { ac_try='test -z "$ac_c_werror_flag"
8541
 
                         || test ! -s conftest.err'
8542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543
 
  (eval $ac_try) 2>&5
8544
 
  ac_status=$?
8545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
 
  (exit $ac_status); }; } &&
8547
 
         { ac_try='test -s conftest$ac_exeext'
8548
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549
 
  (eval $ac_try) 2>&5
8550
 
  ac_status=$?
8551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552
 
  (exit $ac_status); }; }; then
 
10471
if ac_fn_c_try_link "$LINENO"; then :
8553
10472
  ac_cv_lib_dl_dlopen=yes
8554
10473
else
8555
 
  echo "$as_me: failed program was:" >&5
8556
 
sed 's/^/| /' conftest.$ac_ext >&5
8557
 
 
8558
 
ac_cv_lib_dl_dlopen=no
 
10474
  ac_cv_lib_dl_dlopen=no
8559
10475
fi
8560
 
rm -f conftest.err conftest.$ac_objext \
8561
 
      conftest$ac_exeext conftest.$ac_ext
 
10476
rm -f core conftest.err conftest.$ac_objext \
 
10477
    conftest$ac_exeext conftest.$ac_ext
8562
10478
LIBS=$ac_check_lib_save_LIBS
8563
10479
fi
8564
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8565
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8566
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
10480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10481
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10482
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8567
10483
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8568
10484
else
8569
10485
 
8573
10489
 
8574
10490
fi
8575
10491
 
8576
 
   ;;
 
10492
    ;;
8577
10493
 
8578
10494
  *)
8579
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8580
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8581
 
if test "${ac_cv_func_shl_load+set}" = set; then
8582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8583
 
else
8584
 
  cat >conftest.$ac_ext <<_ACEOF
8585
 
/* confdefs.h.  */
8586
 
_ACEOF
8587
 
cat confdefs.h >>conftest.$ac_ext
8588
 
cat >>conftest.$ac_ext <<_ACEOF
8589
 
/* end confdefs.h.  */
8590
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8591
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8592
 
#define shl_load innocuous_shl_load
8593
 
 
8594
 
/* System header to define __stub macros and hopefully few prototypes,
8595
 
    which can conflict with char shl_load (); below.
8596
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8597
 
    <limits.h> exists even on freestanding compilers.  */
8598
 
 
8599
 
#ifdef __STDC__
8600
 
# include <limits.h>
8601
 
#else
8602
 
# include <assert.h>
8603
 
#endif
8604
 
 
8605
 
#undef shl_load
8606
 
 
8607
 
/* Override any gcc2 internal prototype to avoid an error.  */
8608
 
#ifdef __cplusplus
8609
 
extern "C"
8610
 
{
8611
 
#endif
8612
 
/* We use char because int might match the return type of a gcc2
8613
 
   builtin and then its argument prototype would still apply.  */
8614
 
char shl_load ();
8615
 
/* The GNU C library defines this for functions which it implements
8616
 
    to always fail with ENOSYS.  Some functions are actually named
8617
 
    something starting with __ and the normal name is an alias.  */
8618
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8619
 
choke me
8620
 
#else
8621
 
char (*f) () = shl_load;
8622
 
#endif
8623
 
#ifdef __cplusplus
8624
 
}
8625
 
#endif
8626
 
 
8627
 
int
8628
 
main ()
8629
 
{
8630
 
return f != shl_load;
8631
 
  ;
8632
 
  return 0;
8633
 
}
8634
 
_ACEOF
8635
 
rm -f conftest.$ac_objext conftest$ac_exeext
8636
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637
 
  (eval $ac_link) 2>conftest.er1
8638
 
  ac_status=$?
8639
 
  grep -v '^ *+' conftest.er1 >conftest.err
8640
 
  rm -f conftest.er1
8641
 
  cat conftest.err >&5
8642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643
 
  (exit $ac_status); } &&
8644
 
         { ac_try='test -z "$ac_c_werror_flag"
8645
 
                         || test ! -s conftest.err'
8646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647
 
  (eval $ac_try) 2>&5
8648
 
  ac_status=$?
8649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650
 
  (exit $ac_status); }; } &&
8651
 
         { ac_try='test -s conftest$ac_exeext'
8652
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653
 
  (eval $ac_try) 2>&5
8654
 
  ac_status=$?
8655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
 
  (exit $ac_status); }; }; then
8657
 
  ac_cv_func_shl_load=yes
8658
 
else
8659
 
  echo "$as_me: failed program was:" >&5
8660
 
sed 's/^/| /' conftest.$ac_ext >&5
8661
 
 
8662
 
ac_cv_func_shl_load=no
8663
 
fi
8664
 
rm -f conftest.err conftest.$ac_objext \
8665
 
      conftest$ac_exeext conftest.$ac_ext
8666
 
fi
8667
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8668
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8669
 
if test $ac_cv_func_shl_load = yes; then
 
10495
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10496
if test "x$ac_cv_func_shl_load" = xyes; then :
8670
10497
  lt_cv_dlopen="shl_load"
8671
10498
else
8672
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8673
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8674
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10499
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10500
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10501
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10502
  $as_echo_n "(cached) " >&6
8676
10503
else
8677
10504
  ac_check_lib_save_LIBS=$LIBS
8678
10505
LIBS="-ldld  $LIBS"
8679
 
cat >conftest.$ac_ext <<_ACEOF
8680
 
/* confdefs.h.  */
8681
 
_ACEOF
8682
 
cat confdefs.h >>conftest.$ac_ext
8683
 
cat >>conftest.$ac_ext <<_ACEOF
 
10506
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684
10507
/* end confdefs.h.  */
8685
10508
 
8686
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10509
/* Override any GCC internal prototype to avoid an error.
 
10510
   Use char because int might match the return type of a GCC
 
10511
   builtin and then its argument prototype would still apply.  */
8687
10512
#ifdef __cplusplus
8688
10513
extern "C"
8689
10514
#endif
8690
 
/* We use char because int might match the return type of a gcc2
8691
 
   builtin and then its argument prototype would still apply.  */
8692
10515
char shl_load ();
8693
10516
int
8694
10517
main ()
8695
10518
{
8696
 
shl_load ();
 
10519
return shl_load ();
8697
10520
  ;
8698
10521
  return 0;
8699
10522
}
8700
10523
_ACEOF
8701
 
rm -f conftest.$ac_objext conftest$ac_exeext
8702
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703
 
  (eval $ac_link) 2>conftest.er1
8704
 
  ac_status=$?
8705
 
  grep -v '^ *+' conftest.er1 >conftest.err
8706
 
  rm -f conftest.er1
8707
 
  cat conftest.err >&5
8708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709
 
  (exit $ac_status); } &&
8710
 
         { ac_try='test -z "$ac_c_werror_flag"
8711
 
                         || test ! -s conftest.err'
8712
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713
 
  (eval $ac_try) 2>&5
8714
 
  ac_status=$?
8715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716
 
  (exit $ac_status); }; } &&
8717
 
         { ac_try='test -s conftest$ac_exeext'
8718
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719
 
  (eval $ac_try) 2>&5
8720
 
  ac_status=$?
8721
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722
 
  (exit $ac_status); }; }; then
 
10524
if ac_fn_c_try_link "$LINENO"; then :
8723
10525
  ac_cv_lib_dld_shl_load=yes
8724
10526
else
8725
 
  echo "$as_me: failed program was:" >&5
8726
 
sed 's/^/| /' conftest.$ac_ext >&5
8727
 
 
8728
 
ac_cv_lib_dld_shl_load=no
 
10527
  ac_cv_lib_dld_shl_load=no
8729
10528
fi
8730
 
rm -f conftest.err conftest.$ac_objext \
8731
 
      conftest$ac_exeext conftest.$ac_ext
 
10529
rm -f core conftest.err conftest.$ac_objext \
 
10530
    conftest$ac_exeext conftest.$ac_ext
8732
10531
LIBS=$ac_check_lib_save_LIBS
8733
10532
fi
8734
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8735
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8736
 
if test $ac_cv_lib_dld_shl_load = yes; then
8737
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8738
 
else
8739
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8740
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8741
 
if test "${ac_cv_func_dlopen+set}" = set; then
8742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8743
 
else
8744
 
  cat >conftest.$ac_ext <<_ACEOF
8745
 
/* confdefs.h.  */
8746
 
_ACEOF
8747
 
cat confdefs.h >>conftest.$ac_ext
8748
 
cat >>conftest.$ac_ext <<_ACEOF
8749
 
/* end confdefs.h.  */
8750
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8751
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8752
 
#define dlopen innocuous_dlopen
8753
 
 
8754
 
/* System header to define __stub macros and hopefully few prototypes,
8755
 
    which can conflict with char dlopen (); below.
8756
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757
 
    <limits.h> exists even on freestanding compilers.  */
8758
 
 
8759
 
#ifdef __STDC__
8760
 
# include <limits.h>
8761
 
#else
8762
 
# include <assert.h>
8763
 
#endif
8764
 
 
8765
 
#undef dlopen
8766
 
 
8767
 
/* Override any gcc2 internal prototype to avoid an error.  */
8768
 
#ifdef __cplusplus
8769
 
extern "C"
8770
 
{
8771
 
#endif
8772
 
/* We use char because int might match the return type of a gcc2
8773
 
   builtin and then its argument prototype would still apply.  */
8774
 
char dlopen ();
8775
 
/* The GNU C library defines this for functions which it implements
8776
 
    to always fail with ENOSYS.  Some functions are actually named
8777
 
    something starting with __ and the normal name is an alias.  */
8778
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8779
 
choke me
8780
 
#else
8781
 
char (*f) () = dlopen;
8782
 
#endif
8783
 
#ifdef __cplusplus
8784
 
}
8785
 
#endif
8786
 
 
8787
 
int
8788
 
main ()
8789
 
{
8790
 
return f != dlopen;
8791
 
  ;
8792
 
  return 0;
8793
 
}
8794
 
_ACEOF
8795
 
rm -f conftest.$ac_objext conftest$ac_exeext
8796
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797
 
  (eval $ac_link) 2>conftest.er1
8798
 
  ac_status=$?
8799
 
  grep -v '^ *+' conftest.er1 >conftest.err
8800
 
  rm -f conftest.er1
8801
 
  cat conftest.err >&5
8802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803
 
  (exit $ac_status); } &&
8804
 
         { ac_try='test -z "$ac_c_werror_flag"
8805
 
                         || test ! -s conftest.err'
8806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807
 
  (eval $ac_try) 2>&5
8808
 
  ac_status=$?
8809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
 
  (exit $ac_status); }; } &&
8811
 
         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8817
 
  ac_cv_func_dlopen=yes
8818
 
else
8819
 
  echo "$as_me: failed program was:" >&5
8820
 
sed 's/^/| /' conftest.$ac_ext >&5
8821
 
 
8822
 
ac_cv_func_dlopen=no
8823
 
fi
8824
 
rm -f conftest.err conftest.$ac_objext \
8825
 
      conftest$ac_exeext conftest.$ac_ext
8826
 
fi
8827
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8828
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8829
 
if test $ac_cv_func_dlopen = yes; then
 
10533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10534
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10535
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
10536
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10537
else
 
10538
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10539
if test "x$ac_cv_func_dlopen" = xyes; then :
8830
10540
  lt_cv_dlopen="dlopen"
8831
10541
else
8832
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8833
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8834
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8835
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10542
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10543
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10544
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10545
  $as_echo_n "(cached) " >&6
8836
10546
else
8837
10547
  ac_check_lib_save_LIBS=$LIBS
8838
10548
LIBS="-ldl  $LIBS"
8839
 
cat >conftest.$ac_ext <<_ACEOF
8840
 
/* confdefs.h.  */
8841
 
_ACEOF
8842
 
cat confdefs.h >>conftest.$ac_ext
8843
 
cat >>conftest.$ac_ext <<_ACEOF
 
10549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844
10550
/* end confdefs.h.  */
8845
10551
 
8846
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10552
/* Override any GCC internal prototype to avoid an error.
 
10553
   Use char because int might match the return type of a GCC
 
10554
   builtin and then its argument prototype would still apply.  */
8847
10555
#ifdef __cplusplus
8848
10556
extern "C"
8849
10557
#endif
8850
 
/* We use char because int might match the return type of a gcc2
8851
 
   builtin and then its argument prototype would still apply.  */
8852
10558
char dlopen ();
8853
10559
int
8854
10560
main ()
8855
10561
{
8856
 
dlopen ();
 
10562
return dlopen ();
8857
10563
  ;
8858
10564
  return 0;
8859
10565
}
8860
10566
_ACEOF
8861
 
rm -f conftest.$ac_objext conftest$ac_exeext
8862
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863
 
  (eval $ac_link) 2>conftest.er1
8864
 
  ac_status=$?
8865
 
  grep -v '^ *+' conftest.er1 >conftest.err
8866
 
  rm -f conftest.er1
8867
 
  cat conftest.err >&5
8868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869
 
  (exit $ac_status); } &&
8870
 
         { ac_try='test -z "$ac_c_werror_flag"
8871
 
                         || test ! -s conftest.err'
8872
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873
 
  (eval $ac_try) 2>&5
8874
 
  ac_status=$?
8875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876
 
  (exit $ac_status); }; } &&
8877
 
         { ac_try='test -s conftest$ac_exeext'
8878
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879
 
  (eval $ac_try) 2>&5
8880
 
  ac_status=$?
8881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882
 
  (exit $ac_status); }; }; then
 
10567
if ac_fn_c_try_link "$LINENO"; then :
8883
10568
  ac_cv_lib_dl_dlopen=yes
8884
10569
else
8885
 
  echo "$as_me: failed program was:" >&5
8886
 
sed 's/^/| /' conftest.$ac_ext >&5
8887
 
 
8888
 
ac_cv_lib_dl_dlopen=no
 
10570
  ac_cv_lib_dl_dlopen=no
8889
10571
fi
8890
 
rm -f conftest.err conftest.$ac_objext \
8891
 
      conftest$ac_exeext conftest.$ac_ext
 
10572
rm -f core conftest.err conftest.$ac_objext \
 
10573
    conftest$ac_exeext conftest.$ac_ext
8892
10574
LIBS=$ac_check_lib_save_LIBS
8893
10575
fi
8894
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8895
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8896
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
10576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10577
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10578
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8897
10579
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8898
10580
else
8899
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8900
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8901
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10581
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10582
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10583
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
10584
  $as_echo_n "(cached) " >&6
8903
10585
else
8904
10586
  ac_check_lib_save_LIBS=$LIBS
8905
10587
LIBS="-lsvld  $LIBS"
8906
 
cat >conftest.$ac_ext <<_ACEOF
8907
 
/* confdefs.h.  */
8908
 
_ACEOF
8909
 
cat confdefs.h >>conftest.$ac_ext
8910
 
cat >>conftest.$ac_ext <<_ACEOF
 
10588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911
10589
/* end confdefs.h.  */
8912
10590
 
8913
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10591
/* Override any GCC internal prototype to avoid an error.
 
10592
   Use char because int might match the return type of a GCC
 
10593
   builtin and then its argument prototype would still apply.  */
8914
10594
#ifdef __cplusplus
8915
10595
extern "C"
8916
10596
#endif
8917
 
/* We use char because int might match the return type of a gcc2
8918
 
   builtin and then its argument prototype would still apply.  */
8919
10597
char dlopen ();
8920
10598
int
8921
10599
main ()
8922
10600
{
8923
 
dlopen ();
 
10601
return dlopen ();
8924
10602
  ;
8925
10603
  return 0;
8926
10604
}
8927
10605
_ACEOF
8928
 
rm -f conftest.$ac_objext conftest$ac_exeext
8929
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930
 
  (eval $ac_link) 2>conftest.er1
8931
 
  ac_status=$?
8932
 
  grep -v '^ *+' conftest.er1 >conftest.err
8933
 
  rm -f conftest.er1
8934
 
  cat conftest.err >&5
8935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
 
  (exit $ac_status); } &&
8937
 
         { ac_try='test -z "$ac_c_werror_flag"
8938
 
                         || test ! -s conftest.err'
8939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940
 
  (eval $ac_try) 2>&5
8941
 
  ac_status=$?
8942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943
 
  (exit $ac_status); }; } &&
8944
 
         { ac_try='test -s conftest$ac_exeext'
8945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946
 
  (eval $ac_try) 2>&5
8947
 
  ac_status=$?
8948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949
 
  (exit $ac_status); }; }; then
 
10606
if ac_fn_c_try_link "$LINENO"; then :
8950
10607
  ac_cv_lib_svld_dlopen=yes
8951
10608
else
8952
 
  echo "$as_me: failed program was:" >&5
8953
 
sed 's/^/| /' conftest.$ac_ext >&5
8954
 
 
8955
 
ac_cv_lib_svld_dlopen=no
 
10609
  ac_cv_lib_svld_dlopen=no
8956
10610
fi
8957
 
rm -f conftest.err conftest.$ac_objext \
8958
 
      conftest$ac_exeext conftest.$ac_ext
 
10611
rm -f core conftest.err conftest.$ac_objext \
 
10612
    conftest$ac_exeext conftest.$ac_ext
8959
10613
LIBS=$ac_check_lib_save_LIBS
8960
10614
fi
8961
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8962
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8963
 
if test $ac_cv_lib_svld_dlopen = yes; then
 
10615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10616
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10617
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8964
10618
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8965
10619
else
8966
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8967
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8968
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8969
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10620
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10621
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10622
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
10623
  $as_echo_n "(cached) " >&6
8970
10624
else
8971
10625
  ac_check_lib_save_LIBS=$LIBS
8972
10626
LIBS="-ldld  $LIBS"
8973
 
cat >conftest.$ac_ext <<_ACEOF
8974
 
/* confdefs.h.  */
8975
 
_ACEOF
8976
 
cat confdefs.h >>conftest.$ac_ext
8977
 
cat >>conftest.$ac_ext <<_ACEOF
 
10627
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978
10628
/* end confdefs.h.  */
8979
10629
 
8980
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10630
/* Override any GCC internal prototype to avoid an error.
 
10631
   Use char because int might match the return type of a GCC
 
10632
   builtin and then its argument prototype would still apply.  */
8981
10633
#ifdef __cplusplus
8982
10634
extern "C"
8983
10635
#endif
8984
 
/* We use char because int might match the return type of a gcc2
8985
 
   builtin and then its argument prototype would still apply.  */
8986
10636
char dld_link ();
8987
10637
int
8988
10638
main ()
8989
10639
{
8990
 
dld_link ();
 
10640
return dld_link ();
8991
10641
  ;
8992
10642
  return 0;
8993
10643
}
8994
10644
_ACEOF
8995
 
rm -f conftest.$ac_objext conftest$ac_exeext
8996
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997
 
  (eval $ac_link) 2>conftest.er1
8998
 
  ac_status=$?
8999
 
  grep -v '^ *+' conftest.er1 >conftest.err
9000
 
  rm -f conftest.er1
9001
 
  cat conftest.err >&5
9002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003
 
  (exit $ac_status); } &&
9004
 
         { ac_try='test -z "$ac_c_werror_flag"
9005
 
                         || test ! -s conftest.err'
9006
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007
 
  (eval $ac_try) 2>&5
9008
 
  ac_status=$?
9009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010
 
  (exit $ac_status); }; } &&
9011
 
         { ac_try='test -s conftest$ac_exeext'
9012
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013
 
  (eval $ac_try) 2>&5
9014
 
  ac_status=$?
9015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016
 
  (exit $ac_status); }; }; then
 
10645
if ac_fn_c_try_link "$LINENO"; then :
9017
10646
  ac_cv_lib_dld_dld_link=yes
9018
10647
else
9019
 
  echo "$as_me: failed program was:" >&5
9020
 
sed 's/^/| /' conftest.$ac_ext >&5
9021
 
 
9022
 
ac_cv_lib_dld_dld_link=no
 
10648
  ac_cv_lib_dld_dld_link=no
9023
10649
fi
9024
 
rm -f conftest.err conftest.$ac_objext \
9025
 
      conftest$ac_exeext conftest.$ac_ext
 
10650
rm -f core conftest.err conftest.$ac_objext \
 
10651
    conftest$ac_exeext conftest.$ac_ext
9026
10652
LIBS=$ac_check_lib_save_LIBS
9027
10653
fi
9028
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9029
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9030
 
if test $ac_cv_lib_dld_dld_link = yes; then
9031
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10655
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10656
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
10657
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9032
10658
fi
9033
10659
 
9034
10660
 
9066
10692
    save_LIBS="$LIBS"
9067
10693
    LIBS="$lt_cv_dlopen_libs $LIBS"
9068
10694
 
9069
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9070
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9071
 
if test "${lt_cv_dlopen_self+set}" = set; then
9072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10695
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10696
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10697
if ${lt_cv_dlopen_self+:} false; then :
 
10698
  $as_echo_n "(cached) " >&6
9073
10699
else
9074
10700
          if test "$cross_compiling" = yes; then :
9075
10701
  lt_cv_dlopen_self=cross
9076
10702
else
9077
10703
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9078
10704
  lt_status=$lt_dlunknown
9079
 
  cat > conftest.$ac_ext <<EOF
9080
 
#line 9080 "configure"
 
10705
  cat > conftest.$ac_ext <<_LT_EOF
 
10706
#line $LINENO "configure"
9081
10707
#include "confdefs.h"
9082
10708
 
9083
10709
#if HAVE_DLFCN_H
9118
10744
#  endif
9119
10745
#endif
9120
10746
 
9121
 
#ifdef __cplusplus
9122
 
extern "C" void exit (int);
 
10747
/* When -fvisbility=hidden is used, assume the code has been annotated
 
10748
   correspondingly for the symbols needed.  */
 
10749
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
10750
int fnord () __attribute__((visibility("default")));
9123
10751
#endif
9124
10752
 
9125
 
void fnord() { int i=42;}
 
10753
int fnord () { return 42; }
9126
10754
int main ()
9127
10755
{
9128
10756
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9131
10759
  if (self)
9132
10760
    {
9133
10761
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9134
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10762
      else
 
10763
        {
 
10764
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
10765
          else puts (dlerror ());
 
10766
        }
9135
10767
      /* dlclose (self); */
9136
10768
    }
9137
10769
  else
9138
10770
    puts (dlerror ());
9139
10771
 
9140
 
    exit (status);
 
10772
  return status;
9141
10773
}
9142
 
EOF
9143
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10774
_LT_EOF
 
10775
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9144
10776
  (eval $ac_link) 2>&5
9145
10777
  ac_status=$?
9146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10778
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10779
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9148
10780
    (./conftest; exit; ) >&5 2>/dev/null
9149
10781
    lt_status=$?
9150
10782
    case x$lt_status in
9161
10793
 
9162
10794
 
9163
10795
fi
9164
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9165
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10797
$as_echo "$lt_cv_dlopen_self" >&6; }
9166
10798
 
9167
10799
    if test "x$lt_cv_dlopen_self" = xyes; then
9168
10800
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9169
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9170
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9171
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
9172
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10801
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10802
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10803
if ${lt_cv_dlopen_self_static+:} false; then :
 
10804
  $as_echo_n "(cached) " >&6
9173
10805
else
9174
10806
          if test "$cross_compiling" = yes; then :
9175
10807
  lt_cv_dlopen_self_static=cross
9176
10808
else
9177
10809
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9178
10810
  lt_status=$lt_dlunknown
9179
 
  cat > conftest.$ac_ext <<EOF
9180
 
#line 9180 "configure"
 
10811
  cat > conftest.$ac_ext <<_LT_EOF
 
10812
#line $LINENO "configure"
9181
10813
#include "confdefs.h"
9182
10814
 
9183
10815
#if HAVE_DLFCN_H
9218
10850
#  endif
9219
10851
#endif
9220
10852
 
9221
 
#ifdef __cplusplus
9222
 
extern "C" void exit (int);
 
10853
/* When -fvisbility=hidden is used, assume the code has been annotated
 
10854
   correspondingly for the symbols needed.  */
 
10855
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
10856
int fnord () __attribute__((visibility("default")));
9223
10857
#endif
9224
10858
 
9225
 
void fnord() { int i=42;}
 
10859
int fnord () { return 42; }
9226
10860
int main ()
9227
10861
{
9228
10862
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9231
10865
  if (self)
9232
10866
    {
9233
10867
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9234
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10868
      else
 
10869
        {
 
10870
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
10871
          else puts (dlerror ());
 
10872
        }
9235
10873
      /* dlclose (self); */
9236
10874
    }
9237
10875
  else
9238
10876
    puts (dlerror ());
9239
10877
 
9240
 
    exit (status);
 
10878
  return status;
9241
10879
}
9242
 
EOF
9243
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10880
_LT_EOF
 
10881
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9244
10882
  (eval $ac_link) 2>&5
9245
10883
  ac_status=$?
9246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10884
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10885
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9248
10886
    (./conftest; exit; ) >&5 2>/dev/null
9249
10887
    lt_status=$?
9250
10888
    case x$lt_status in
9261
10899
 
9262
10900
 
9263
10901
fi
9264
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9265
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
10903
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9266
10904
    fi
9267
10905
 
9268
10906
    CPPFLAGS="$save_CPPFLAGS"
9283
10921
fi
9284
10922
 
9285
10923
 
9286
 
# Report which library types will actually be built
9287
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9288
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9289
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9290
 
echo "${ECHO_T}$can_build_shared" >&6
9291
 
 
9292
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9293
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9294
 
test "$can_build_shared" = "no" && enable_shared=no
9295
 
 
9296
 
# On AIX, shared libraries and static libraries use the same namespace, and
9297
 
# are all built from PIC.
9298
 
case $host_os in
9299
 
aix3*)
9300
 
  test "$enable_shared" = yes && enable_static=no
9301
 
  if test -n "$RANLIB"; then
9302
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9303
 
    postinstall_cmds='$RANLIB $lib'
9304
 
  fi
9305
 
  ;;
9306
 
 
9307
 
aix4* | aix5*)
9308
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10924
 
 
10925
 
 
10926
 
 
10927
 
 
10928
 
 
10929
 
 
10930
 
 
10931
 
 
10932
 
 
10933
 
 
10934
 
 
10935
 
 
10936
 
 
10937
 
 
10938
 
 
10939
striplib=
 
10940
old_striplib=
 
10941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
10942
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10943
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
10944
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10945
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10947
$as_echo "yes" >&6; }
 
10948
else
 
10949
# FIXME - insert some real tests, host_os isn't really good enough
 
10950
  case $host_os in
 
10951
  darwin*)
 
10952
    if test -n "$STRIP" ; then
 
10953
      striplib="$STRIP -x"
 
10954
      old_striplib="$STRIP -S"
 
10955
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10956
$as_echo "yes" >&6; }
 
10957
    else
 
10958
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10959
$as_echo "no" >&6; }
 
10960
    fi
 
10961
    ;;
 
10962
  *)
 
10963
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10964
$as_echo "no" >&6; }
 
10965
    ;;
 
10966
  esac
 
10967
fi
 
10968
 
 
10969
 
 
10970
 
 
10971
 
 
10972
 
 
10973
 
 
10974
 
 
10975
 
 
10976
 
 
10977
 
 
10978
 
 
10979
 
 
10980
  # Report which library types will actually be built
 
10981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
10982
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
10984
$as_echo "$can_build_shared" >&6; }
 
10985
 
 
10986
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
10987
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10988
  test "$can_build_shared" = "no" && enable_shared=no
 
10989
 
 
10990
  # On AIX, shared libraries and static libraries use the same namespace, and
 
10991
  # are all built from PIC.
 
10992
  case $host_os in
 
10993
  aix3*)
9309
10994
    test "$enable_shared" = yes && enable_static=no
9310
 
  fi
9311
 
    ;;
9312
 
esac
9313
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
9314
 
echo "${ECHO_T}$enable_shared" >&6
9315
 
 
9316
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9317
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9318
 
# Make sure either enable_shared or enable_static is yes.
9319
 
test "$enable_shared" = yes || enable_static=yes
9320
 
echo "$as_me:$LINENO: result: $enable_static" >&5
9321
 
echo "${ECHO_T}$enable_static" >&6
9322
 
 
9323
 
# The else clause should only fire when bootstrapping the
9324
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
9325
 
# with your package, and you will get complaints that there are
9326
 
# no rules to generate ltmain.sh.
9327
 
if test -f "$ltmain"; then
9328
 
  # See if we are running on zsh, and set the options which allow our commands through
9329
 
  # without removal of \ escapes.
9330
 
  if test -n "${ZSH_VERSION+set}" ; then
9331
 
    setopt NO_GLOB_SUBST
9332
 
  fi
9333
 
  # Now quote all the things that may contain metacharacters while being
9334
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9335
 
  # variables and quote the copies for generation of the libtool script.
9336
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9337
 
    SED SHELL STRIP \
9338
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9339
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9340
 
    deplibs_check_method reload_flag reload_cmds need_locks \
9341
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9342
 
    lt_cv_sys_global_symbol_to_c_name_address \
9343
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9344
 
    old_postinstall_cmds old_postuninstall_cmds \
9345
 
    compiler \
9346
 
    CC \
9347
 
    LD \
9348
 
    lt_prog_compiler_wl \
9349
 
    lt_prog_compiler_pic \
9350
 
    lt_prog_compiler_static \
9351
 
    lt_prog_compiler_no_builtin_flag \
9352
 
    export_dynamic_flag_spec \
9353
 
    thread_safe_flag_spec \
9354
 
    whole_archive_flag_spec \
9355
 
    enable_shared_with_static_runtimes \
9356
 
    old_archive_cmds \
9357
 
    old_archive_from_new_cmds \
9358
 
    predep_objects \
9359
 
    postdep_objects \
9360
 
    predeps \
9361
 
    postdeps \
9362
 
    compiler_lib_search_path \
9363
 
    archive_cmds \
9364
 
    archive_expsym_cmds \
9365
 
    postinstall_cmds \
9366
 
    postuninstall_cmds \
9367
 
    old_archive_from_expsyms_cmds \
9368
 
    allow_undefined_flag \
9369
 
    no_undefined_flag \
9370
 
    export_symbols_cmds \
9371
 
    hardcode_libdir_flag_spec \
9372
 
    hardcode_libdir_flag_spec_ld \
9373
 
    hardcode_libdir_separator \
9374
 
    hardcode_automatic \
9375
 
    module_cmds \
9376
 
    module_expsym_cmds \
9377
 
    lt_cv_prog_compiler_c_o \
9378
 
    exclude_expsyms \
9379
 
    include_expsyms; do
9380
 
 
9381
 
    case $var in
9382
 
    old_archive_cmds | \
9383
 
    old_archive_from_new_cmds | \
9384
 
    archive_cmds | \
9385
 
    archive_expsym_cmds | \
9386
 
    module_cmds | \
9387
 
    module_expsym_cmds | \
9388
 
    old_archive_from_expsyms_cmds | \
9389
 
    export_symbols_cmds | \
9390
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9391
 
    postinstall_cmds | postuninstall_cmds | \
9392
 
    old_postinstall_cmds | old_postuninstall_cmds | \
9393
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9394
 
      # Double-quote double-evaled strings.
9395
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9396
 
      ;;
9397
 
    *)
9398
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9399
 
      ;;
9400
 
    esac
9401
 
  done
9402
 
 
9403
 
  case $lt_echo in
9404
 
  *'\$0 --fallback-echo"')
9405
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9406
 
    ;;
9407
 
  esac
9408
 
 
9409
 
cfgfile="${ofile}T"
9410
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9411
 
  $rm -f "$cfgfile"
9412
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
9413
 
echo "$as_me: creating $ofile" >&6;}
9414
 
 
9415
 
  cat <<__EOF__ >> "$cfgfile"
9416
 
#! $SHELL
9417
 
 
9418
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9419
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9420
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9421
 
#
9422
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9423
 
# Free Software Foundation, Inc.
9424
 
#
9425
 
# This file is part of GNU Libtool:
9426
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9427
 
#
9428
 
# This program is free software; you can redistribute it and/or modify
9429
 
# it under the terms of the GNU General Public License as published by
9430
 
# the Free Software Foundation; either version 2 of the License, or
9431
 
# (at your option) any later version.
9432
 
#
9433
 
# This program is distributed in the hope that it will be useful, but
9434
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9435
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9436
 
# General Public License for more details.
9437
 
#
9438
 
# You should have received a copy of the GNU General Public License
9439
 
# along with this program; if not, write to the Free Software
9440
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9441
 
#
9442
 
# As a special exception to the GNU General Public License, if you
9443
 
# distribute this file as part of a program that contains a
9444
 
# configuration script generated by Autoconf, you may include it under
9445
 
# the same distribution terms that you use for the rest of that program.
9446
 
 
9447
 
# A sed program that does not truncate output.
9448
 
SED=$lt_SED
9449
 
 
9450
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9451
 
Xsed="$SED -e 1s/^X//"
9452
 
 
9453
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
9454
 
# if CDPATH is set.
9455
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9456
 
 
9457
 
# The names of the tagged configurations supported by this script.
9458
 
available_tags=
9459
 
 
9460
 
# ### BEGIN LIBTOOL CONFIG
9461
 
 
9462
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9463
 
 
9464
 
# Shell to use when invoking shell scripts.
9465
 
SHELL=$lt_SHELL
9466
 
 
9467
 
# Whether or not to build shared libraries.
9468
 
build_libtool_libs=$enable_shared
9469
 
 
9470
 
# Whether or not to build static libraries.
9471
 
build_old_libs=$enable_static
9472
 
 
9473
 
# Whether or not to add -lc for building shared libraries.
9474
 
build_libtool_need_lc=$archive_cmds_need_lc
9475
 
 
9476
 
# Whether or not to disallow shared libs when runtime libs are static
9477
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9478
 
 
9479
 
# Whether or not to optimize for fast installation.
9480
 
fast_install=$enable_fast_install
9481
 
 
9482
 
# The host system.
9483
 
host_alias=$host_alias
9484
 
host=$host
9485
 
host_os=$host_os
9486
 
 
9487
 
# The build system.
9488
 
build_alias=$build_alias
9489
 
build=$build
9490
 
build_os=$build_os
9491
 
 
9492
 
# An echo program that does not interpret backslashes.
9493
 
echo=$lt_echo
9494
 
 
9495
 
# The archiver.
9496
 
AR=$lt_AR
9497
 
AR_FLAGS=$lt_AR_FLAGS
9498
 
 
9499
 
# A C compiler.
9500
 
LTCC=$lt_LTCC
9501
 
 
9502
 
# LTCC compiler flags.
9503
 
LTCFLAGS=$lt_LTCFLAGS
9504
 
 
9505
 
# A language-specific compiler.
9506
 
CC=$lt_compiler
9507
 
 
9508
 
# Is the compiler the GNU C compiler?
9509
 
with_gcc=$GCC
9510
 
 
9511
 
# An ERE matcher.
9512
 
EGREP=$lt_EGREP
9513
 
 
9514
 
# The linker used to build libraries.
9515
 
LD=$lt_LD
9516
 
 
9517
 
# Whether we need hard or soft links.
9518
 
LN_S=$lt_LN_S
9519
 
 
9520
 
# A BSD-compatible nm program.
9521
 
NM=$lt_NM
9522
 
 
9523
 
# A symbol stripping program
9524
 
STRIP=$lt_STRIP
9525
 
 
9526
 
# Used to examine libraries when file_magic_cmd begins "file"
9527
 
MAGIC_CMD=$MAGIC_CMD
9528
 
 
9529
 
# Used on cygwin: DLL creation program.
9530
 
DLLTOOL="$DLLTOOL"
9531
 
 
9532
 
# Used on cygwin: object dumper.
9533
 
OBJDUMP="$OBJDUMP"
9534
 
 
9535
 
# Used on cygwin: assembler.
9536
 
AS="$AS"
9537
 
 
9538
 
# The name of the directory that contains temporary libtool files.
9539
 
objdir=$objdir
9540
 
 
9541
 
# How to create reloadable object files.
9542
 
reload_flag=$lt_reload_flag
9543
 
reload_cmds=$lt_reload_cmds
9544
 
 
9545
 
# How to pass a linker flag through the compiler.
9546
 
wl=$lt_lt_prog_compiler_wl
9547
 
 
9548
 
# Object file suffix (normally "o").
9549
 
objext="$ac_objext"
9550
 
 
9551
 
# Old archive suffix (normally "a").
9552
 
libext="$libext"
9553
 
 
9554
 
# Shared library suffix (normally ".so").
9555
 
shrext_cmds='$shrext_cmds'
9556
 
 
9557
 
# Executable file suffix (normally "").
9558
 
exeext="$exeext"
9559
 
 
9560
 
# Additional compiler flags for building library objects.
9561
 
pic_flag=$lt_lt_prog_compiler_pic
9562
 
pic_mode=$pic_mode
9563
 
 
9564
 
# What is the maximum length of a command?
9565
 
max_cmd_len=$lt_cv_sys_max_cmd_len
9566
 
 
9567
 
# Does compiler simultaneously support -c and -o options?
9568
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9569
 
 
9570
 
# Must we lock files when doing compilation?
9571
 
need_locks=$lt_need_locks
9572
 
 
9573
 
# Do we need the lib prefix for modules?
9574
 
need_lib_prefix=$need_lib_prefix
9575
 
 
9576
 
# Do we need a version for libraries?
9577
 
need_version=$need_version
9578
 
 
9579
 
# Whether dlopen is supported.
9580
 
dlopen_support=$enable_dlopen
9581
 
 
9582
 
# Whether dlopen of programs is supported.
9583
 
dlopen_self=$enable_dlopen_self
9584
 
 
9585
 
# Whether dlopen of statically linked programs is supported.
9586
 
dlopen_self_static=$enable_dlopen_self_static
9587
 
 
9588
 
# Compiler flag to prevent dynamic linking.
9589
 
link_static_flag=$lt_lt_prog_compiler_static
9590
 
 
9591
 
# Compiler flag to turn off builtin functions.
9592
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9593
 
 
9594
 
# Compiler flag to allow reflexive dlopens.
9595
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9596
 
 
9597
 
# Compiler flag to generate shared objects directly from archives.
9598
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9599
 
 
9600
 
# Compiler flag to generate thread-safe objects.
9601
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9602
 
 
9603
 
# Library versioning type.
9604
 
version_type=$version_type
9605
 
 
9606
 
# Format of library name prefix.
9607
 
libname_spec=$lt_libname_spec
9608
 
 
9609
 
# List of archive names.  First name is the real one, the rest are links.
9610
 
# The last name is the one that the linker finds with -lNAME.
9611
 
library_names_spec=$lt_library_names_spec
9612
 
 
9613
 
# The coded name of the library, if different from the real name.
9614
 
soname_spec=$lt_soname_spec
9615
 
 
9616
 
# Commands used to build and install an old-style archive.
9617
 
RANLIB=$lt_RANLIB
9618
 
old_archive_cmds=$lt_old_archive_cmds
9619
 
old_postinstall_cmds=$lt_old_postinstall_cmds
9620
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9621
 
 
9622
 
# Create an old-style archive from a shared archive.
9623
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9624
 
 
9625
 
# Create a temporary old-style archive to link instead of a shared archive.
9626
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9627
 
 
9628
 
# Commands used to build and install a shared archive.
9629
 
archive_cmds=$lt_archive_cmds
9630
 
archive_expsym_cmds=$lt_archive_expsym_cmds
9631
 
postinstall_cmds=$lt_postinstall_cmds
9632
 
postuninstall_cmds=$lt_postuninstall_cmds
9633
 
 
9634
 
# Commands used to build a loadable module (assumed same as above if empty)
9635
 
module_cmds=$lt_module_cmds
9636
 
module_expsym_cmds=$lt_module_expsym_cmds
9637
 
 
9638
 
# Commands to strip libraries.
9639
 
old_striplib=$lt_old_striplib
9640
 
striplib=$lt_striplib
9641
 
 
9642
 
# Dependencies to place before the objects being linked to create a
9643
 
# shared library.
9644
 
predep_objects=$lt_predep_objects
9645
 
 
9646
 
# Dependencies to place after the objects being linked to create a
9647
 
# shared library.
9648
 
postdep_objects=$lt_postdep_objects
9649
 
 
9650
 
# Dependencies to place before the objects being linked to create a
9651
 
# shared library.
9652
 
predeps=$lt_predeps
9653
 
 
9654
 
# Dependencies to place after the objects being linked to create a
9655
 
# shared library.
9656
 
postdeps=$lt_postdeps
9657
 
 
9658
 
# The library search path used internally by the compiler when linking
9659
 
# a shared library.
9660
 
compiler_lib_search_path=$lt_compiler_lib_search_path
9661
 
 
9662
 
# Method to check whether dependent libraries are shared objects.
9663
 
deplibs_check_method=$lt_deplibs_check_method
9664
 
 
9665
 
# Command to use when deplibs_check_method == file_magic.
9666
 
file_magic_cmd=$lt_file_magic_cmd
9667
 
 
9668
 
# Flag that allows shared libraries with undefined symbols to be built.
9669
 
allow_undefined_flag=$lt_allow_undefined_flag
9670
 
 
9671
 
# Flag that forces no undefined symbols.
9672
 
no_undefined_flag=$lt_no_undefined_flag
9673
 
 
9674
 
# Commands used to finish a libtool library installation in a directory.
9675
 
finish_cmds=$lt_finish_cmds
9676
 
 
9677
 
# Same as above, but a single script fragment to be evaled but not shown.
9678
 
finish_eval=$lt_finish_eval
9679
 
 
9680
 
# Take the output of nm and produce a listing of raw symbols and C names.
9681
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9682
 
 
9683
 
# Transform the output of nm in a proper C declaration
9684
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9685
 
 
9686
 
# Transform the output of nm in a C name address pair
9687
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9688
 
 
9689
 
# This is the shared library runtime path variable.
9690
 
runpath_var=$runpath_var
9691
 
 
9692
 
# This is the shared library path variable.
9693
 
shlibpath_var=$shlibpath_var
9694
 
 
9695
 
# Is shlibpath searched before the hard-coded library search path?
9696
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9697
 
 
9698
 
# How to hardcode a shared library path into an executable.
9699
 
hardcode_action=$hardcode_action
9700
 
 
9701
 
# Whether we should hardcode library paths into libraries.
9702
 
hardcode_into_libs=$hardcode_into_libs
9703
 
 
9704
 
# Flag to hardcode \$libdir into a binary during linking.
9705
 
# This must work even if \$libdir does not exist.
9706
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9707
 
 
9708
 
# If ld is used when linking, flag to hardcode \$libdir into
9709
 
# a binary during linking. This must work even if \$libdir does
9710
 
# not exist.
9711
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9712
 
 
9713
 
# Whether we need a single -rpath flag with a separated argument.
9714
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9715
 
 
9716
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9717
 
# resulting binary.
9718
 
hardcode_direct=$hardcode_direct
9719
 
 
9720
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9721
 
# resulting binary.
9722
 
hardcode_minus_L=$hardcode_minus_L
9723
 
 
9724
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9725
 
# the resulting binary.
9726
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
9727
 
 
9728
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
9729
 
# and all subsequent libraries and executables linked against it.
9730
 
hardcode_automatic=$hardcode_automatic
9731
 
 
9732
 
# Variables whose values should be saved in libtool wrapper scripts and
9733
 
# restored at relink time.
9734
 
variables_saved_for_relink="$variables_saved_for_relink"
9735
 
 
9736
 
# Whether libtool must link a program against all its dependency libraries.
9737
 
link_all_deplibs=$link_all_deplibs
9738
 
 
9739
 
# Compile-time system search path for libraries
9740
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9741
 
 
9742
 
# Run-time system search path for libraries
9743
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9744
 
 
9745
 
# Fix the shell variable \$srcfile for the compiler.
9746
 
fix_srcfile_path="$fix_srcfile_path"
9747
 
 
9748
 
# Set to yes if exported symbols are required.
9749
 
always_export_symbols=$always_export_symbols
9750
 
 
9751
 
# The commands to list exported symbols.
9752
 
export_symbols_cmds=$lt_export_symbols_cmds
9753
 
 
9754
 
# The commands to extract the exported symbol list from a shared archive.
9755
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9756
 
 
9757
 
# Symbols that should not be listed in the preloaded symbols.
9758
 
exclude_expsyms=$lt_exclude_expsyms
9759
 
 
9760
 
# Symbols that must always be exported.
9761
 
include_expsyms=$lt_include_expsyms
9762
 
 
9763
 
# ### END LIBTOOL CONFIG
9764
 
 
9765
 
__EOF__
9766
 
 
9767
 
 
9768
 
  case $host_os in
9769
 
  aix3*)
9770
 
    cat <<\EOF >> "$cfgfile"
9771
 
 
9772
 
# AIX sometimes has problems with the GCC collect2 program.  For some
9773
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
9774
 
# vanish in a puff of smoke.
9775
 
if test "X${COLLECT_NAMES+set}" != Xset; then
9776
 
  COLLECT_NAMES=
9777
 
  export COLLECT_NAMES
9778
 
fi
9779
 
EOF
9780
 
    ;;
9781
 
  esac
9782
 
 
9783
 
  # We use sed instead of cat because bash on DJGPP gets confused if
9784
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9785
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
9786
 
  # is reportedly fixed, but why not run on old versions too?
9787
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9788
 
 
9789
 
  mv -f "$cfgfile" "$ofile" || \
9790
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9791
 
  chmod +x "$ofile"
9792
 
 
9793
 
else
9794
 
  # If there is no Makefile yet, we rely on a make rule to execute
9795
 
  # `config.status --recheck' to rerun these tests and create the
9796
 
  # libtool script then.
9797
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9798
 
  if test -f "$ltmain_in"; then
9799
 
    test -f Makefile && make "$ltmain"
9800
 
  fi
9801
 
fi
9802
 
 
9803
 
 
 
10995
    if test -n "$RANLIB"; then
 
10996
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10997
      postinstall_cmds='$RANLIB $lib'
 
10998
    fi
 
10999
    ;;
 
11000
 
 
11001
  aix[4-9]*)
 
11002
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11003
      test "$enable_shared" = yes && enable_static=no
 
11004
    fi
 
11005
    ;;
 
11006
  esac
 
11007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11008
$as_echo "$enable_shared" >&6; }
 
11009
 
 
11010
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11011
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11012
  # Make sure either enable_shared or enable_static is yes.
 
11013
  test "$enable_shared" = yes || enable_static=yes
 
11014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11015
$as_echo "$enable_static" >&6; }
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
fi
9804
11021
ac_ext=c
9805
11022
ac_cpp='$CPP $CPPFLAGS'
9806
11023
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810
11027
CC="$lt_save_CC"
9811
11028
 
9812
11029
 
9813
 
# Check whether --with-tags or --without-tags was given.
9814
 
if test "${with_tags+set}" = set; then
9815
 
  withval="$with_tags"
9816
 
  tagnames="$withval"
9817
 
fi;
9818
 
 
9819
 
if test -f "$ltmain" && test -n "$tagnames"; then
9820
 
  if test ! -f "${ofile}"; then
9821
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9822
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9823
 
  fi
9824
 
 
9825
 
  if test -z "$LTCC"; then
9826
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9827
 
    if test -z "$LTCC"; then
9828
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9829
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9830
 
    else
9831
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9832
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9833
 
    fi
9834
 
  fi
9835
 
  if test -z "$LTCFLAGS"; then
9836
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9837
 
  fi
9838
 
 
9839
 
  # Extract list of available tagged configurations in $ofile.
9840
 
  # Note that this assumes the entire list is on one line.
9841
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9842
 
 
9843
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9844
 
  for tagname in $tagnames; do
9845
 
    IFS="$lt_save_ifs"
9846
 
    # Check whether tagname contains only valid characters
9847
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9848
 
    "") ;;
9849
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9850
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9851
 
   { (exit 1); exit 1; }; }
9852
 
        ;;
9853
 
    esac
9854
 
 
9855
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9856
 
    then
9857
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9858
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9859
 
   { (exit 1); exit 1; }; }
9860
 
    fi
9861
 
 
9862
 
    # Update the list of available tags.
9863
 
    if test -n "$tagname"; then
9864
 
      echo appending configuration tag \"$tagname\" to $ofile
9865
 
 
9866
 
      case $tagname in
9867
 
      CXX)
9868
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9869
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9870
 
            (test "X$CXX" != "Xg++"))) ; then
9871
 
          ac_ext=cc
9872
 
ac_cpp='$CXXCPP $CPPFLAGS'
9873
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9876
 
 
9877
 
 
9878
 
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
        ac_config_commands="$ac_config_commands libtool"
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
# Only expand once:
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
ac_ext=c
 
11055
ac_cpp='$CPP $CPPFLAGS'
 
11056
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11057
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11058
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11059
if test -n "$ac_tool_prefix"; then
 
11060
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
11061
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
11062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11063
$as_echo_n "checking for $ac_word... " >&6; }
 
11064
if ${ac_cv_prog_CC+:} false; then :
 
11065
  $as_echo_n "(cached) " >&6
 
11066
else
 
11067
  if test -n "$CC"; then
 
11068
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11069
else
 
11070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11071
for as_dir in $PATH
 
11072
do
 
11073
  IFS=$as_save_IFS
 
11074
  test -z "$as_dir" && as_dir=.
 
11075
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11077
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
11078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11079
    break 2
 
11080
  fi
 
11081
done
 
11082
  done
 
11083
IFS=$as_save_IFS
 
11084
 
 
11085
fi
 
11086
fi
 
11087
CC=$ac_cv_prog_CC
 
11088
if test -n "$CC"; then
 
11089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11090
$as_echo "$CC" >&6; }
 
11091
else
 
11092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11093
$as_echo "no" >&6; }
 
11094
fi
 
11095
 
 
11096
 
 
11097
fi
 
11098
if test -z "$ac_cv_prog_CC"; then
 
11099
  ac_ct_CC=$CC
 
11100
  # Extract the first word of "gcc", so it can be a program name with args.
 
11101
set dummy gcc; ac_word=$2
 
11102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11103
$as_echo_n "checking for $ac_word... " >&6; }
 
11104
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11105
  $as_echo_n "(cached) " >&6
 
11106
else
 
11107
  if test -n "$ac_ct_CC"; then
 
11108
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11109
else
 
11110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11111
for as_dir in $PATH
 
11112
do
 
11113
  IFS=$as_save_IFS
 
11114
  test -z "$as_dir" && as_dir=.
 
11115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11116
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11117
    ac_cv_prog_ac_ct_CC="gcc"
 
11118
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11119
    break 2
 
11120
  fi
 
11121
done
 
11122
  done
 
11123
IFS=$as_save_IFS
 
11124
 
 
11125
fi
 
11126
fi
 
11127
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11128
if test -n "$ac_ct_CC"; then
 
11129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11130
$as_echo "$ac_ct_CC" >&6; }
 
11131
else
 
11132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11133
$as_echo "no" >&6; }
 
11134
fi
 
11135
 
 
11136
  if test "x$ac_ct_CC" = x; then
 
11137
    CC=""
 
11138
  else
 
11139
    case $cross_compiling:$ac_tool_warned in
 
11140
yes:)
 
11141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11143
ac_tool_warned=yes ;;
 
11144
esac
 
11145
    CC=$ac_ct_CC
 
11146
  fi
 
11147
else
 
11148
  CC="$ac_cv_prog_CC"
 
11149
fi
 
11150
 
 
11151
if test -z "$CC"; then
 
11152
          if test -n "$ac_tool_prefix"; then
 
11153
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
11154
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
11155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11156
$as_echo_n "checking for $ac_word... " >&6; }
 
11157
if ${ac_cv_prog_CC+:} false; then :
 
11158
  $as_echo_n "(cached) " >&6
 
11159
else
 
11160
  if test -n "$CC"; then
 
11161
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11162
else
 
11163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11164
for as_dir in $PATH
 
11165
do
 
11166
  IFS=$as_save_IFS
 
11167
  test -z "$as_dir" && as_dir=.
 
11168
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11169
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11170
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
11171
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11172
    break 2
 
11173
  fi
 
11174
done
 
11175
  done
 
11176
IFS=$as_save_IFS
 
11177
 
 
11178
fi
 
11179
fi
 
11180
CC=$ac_cv_prog_CC
 
11181
if test -n "$CC"; then
 
11182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11183
$as_echo "$CC" >&6; }
 
11184
else
 
11185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11186
$as_echo "no" >&6; }
 
11187
fi
 
11188
 
 
11189
 
 
11190
  fi
 
11191
fi
 
11192
if test -z "$CC"; then
 
11193
  # Extract the first word of "cc", so it can be a program name with args.
 
11194
set dummy cc; ac_word=$2
 
11195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11196
$as_echo_n "checking for $ac_word... " >&6; }
 
11197
if ${ac_cv_prog_CC+:} false; then :
 
11198
  $as_echo_n "(cached) " >&6
 
11199
else
 
11200
  if test -n "$CC"; then
 
11201
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11202
else
 
11203
  ac_prog_rejected=no
 
11204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11205
for as_dir in $PATH
 
11206
do
 
11207
  IFS=$as_save_IFS
 
11208
  test -z "$as_dir" && as_dir=.
 
11209
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11211
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
11212
       ac_prog_rejected=yes
 
11213
       continue
 
11214
     fi
 
11215
    ac_cv_prog_CC="cc"
 
11216
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11217
    break 2
 
11218
  fi
 
11219
done
 
11220
  done
 
11221
IFS=$as_save_IFS
 
11222
 
 
11223
if test $ac_prog_rejected = yes; then
 
11224
  # We found a bogon in the path, so make sure we never use it.
 
11225
  set dummy $ac_cv_prog_CC
 
11226
  shift
 
11227
  if test $# != 0; then
 
11228
    # We chose a different compiler from the bogus one.
 
11229
    # However, it has the same basename, so the bogon will be chosen
 
11230
    # first if we set CC to just the basename; use the full file name.
 
11231
    shift
 
11232
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
11233
  fi
 
11234
fi
 
11235
fi
 
11236
fi
 
11237
CC=$ac_cv_prog_CC
 
11238
if test -n "$CC"; then
 
11239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11240
$as_echo "$CC" >&6; }
 
11241
else
 
11242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11243
$as_echo "no" >&6; }
 
11244
fi
 
11245
 
 
11246
 
 
11247
fi
 
11248
if test -z "$CC"; then
 
11249
  if test -n "$ac_tool_prefix"; then
 
11250
  for ac_prog in cl.exe
 
11251
  do
 
11252
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11253
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11255
$as_echo_n "checking for $ac_word... " >&6; }
 
11256
if ${ac_cv_prog_CC+:} false; then :
 
11257
  $as_echo_n "(cached) " >&6
 
11258
else
 
11259
  if test -n "$CC"; then
 
11260
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11261
else
 
11262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11263
for as_dir in $PATH
 
11264
do
 
11265
  IFS=$as_save_IFS
 
11266
  test -z "$as_dir" && as_dir=.
 
11267
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11268
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11269
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
11270
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11271
    break 2
 
11272
  fi
 
11273
done
 
11274
  done
 
11275
IFS=$as_save_IFS
 
11276
 
 
11277
fi
 
11278
fi
 
11279
CC=$ac_cv_prog_CC
 
11280
if test -n "$CC"; then
 
11281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11282
$as_echo "$CC" >&6; }
 
11283
else
 
11284
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11285
$as_echo "no" >&6; }
 
11286
fi
 
11287
 
 
11288
 
 
11289
    test -n "$CC" && break
 
11290
  done
 
11291
fi
 
11292
if test -z "$CC"; then
 
11293
  ac_ct_CC=$CC
 
11294
  for ac_prog in cl.exe
 
11295
do
 
11296
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11297
set dummy $ac_prog; ac_word=$2
 
11298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11299
$as_echo_n "checking for $ac_word... " >&6; }
 
11300
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11301
  $as_echo_n "(cached) " >&6
 
11302
else
 
11303
  if test -n "$ac_ct_CC"; then
 
11304
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11305
else
 
11306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11307
for as_dir in $PATH
 
11308
do
 
11309
  IFS=$as_save_IFS
 
11310
  test -z "$as_dir" && as_dir=.
 
11311
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11313
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
11314
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11315
    break 2
 
11316
  fi
 
11317
done
 
11318
  done
 
11319
IFS=$as_save_IFS
 
11320
 
 
11321
fi
 
11322
fi
 
11323
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11324
if test -n "$ac_ct_CC"; then
 
11325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11326
$as_echo "$ac_ct_CC" >&6; }
 
11327
else
 
11328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11329
$as_echo "no" >&6; }
 
11330
fi
 
11331
 
 
11332
 
 
11333
  test -n "$ac_ct_CC" && break
 
11334
done
 
11335
 
 
11336
  if test "x$ac_ct_CC" = x; then
 
11337
    CC=""
 
11338
  else
 
11339
    case $cross_compiling:$ac_tool_warned in
 
11340
yes:)
 
11341
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11342
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11343
ac_tool_warned=yes ;;
 
11344
esac
 
11345
    CC=$ac_ct_CC
 
11346
  fi
 
11347
fi
 
11348
 
 
11349
fi
 
11350
 
 
11351
 
 
11352
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11353
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11354
as_fn_error $? "no acceptable C compiler found in \$PATH
 
11355
See \`config.log' for more details" "$LINENO" 5; }
 
11356
 
 
11357
# Provide some information about the compiler.
 
11358
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
11359
set X $ac_compile
 
11360
ac_compiler=$2
 
11361
for ac_option in --version -v -V -qversion; do
 
11362
  { { ac_try="$ac_compiler $ac_option >&5"
 
11363
case "(($ac_try" in
 
11364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11365
  *) ac_try_echo=$ac_try;;
 
11366
esac
 
11367
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11368
$as_echo "$ac_try_echo"; } >&5
 
11369
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11370
  ac_status=$?
 
11371
  if test -s conftest.err; then
 
11372
    sed '10a\
 
11373
... rest of stderr output deleted ...
 
11374
         10q' conftest.err >conftest.er1
 
11375
    cat conftest.er1 >&5
 
11376
  fi
 
11377
  rm -f conftest.er1 conftest.err
 
11378
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11379
  test $ac_status = 0; }
 
11380
done
 
11381
 
 
11382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
11383
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
11384
if ${ac_cv_c_compiler_gnu+:} false; then :
 
11385
  $as_echo_n "(cached) " >&6
 
11386
else
 
11387
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11388
/* end confdefs.h.  */
 
11389
 
 
11390
int
 
11391
main ()
 
11392
{
 
11393
#ifndef __GNUC__
 
11394
       choke me
 
11395
#endif
 
11396
 
 
11397
  ;
 
11398
  return 0;
 
11399
}
 
11400
_ACEOF
 
11401
if ac_fn_c_try_compile "$LINENO"; then :
 
11402
  ac_compiler_gnu=yes
 
11403
else
 
11404
  ac_compiler_gnu=no
 
11405
fi
 
11406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11407
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
11408
 
 
11409
fi
 
11410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
11411
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
11412
if test $ac_compiler_gnu = yes; then
 
11413
  GCC=yes
 
11414
else
 
11415
  GCC=
 
11416
fi
 
11417
ac_test_CFLAGS=${CFLAGS+set}
 
11418
ac_save_CFLAGS=$CFLAGS
 
11419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
11420
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
11421
if ${ac_cv_prog_cc_g+:} false; then :
 
11422
  $as_echo_n "(cached) " >&6
 
11423
else
 
11424
  ac_save_c_werror_flag=$ac_c_werror_flag
 
11425
   ac_c_werror_flag=yes
 
11426
   ac_cv_prog_cc_g=no
 
11427
   CFLAGS="-g"
 
11428
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11429
/* end confdefs.h.  */
 
11430
 
 
11431
int
 
11432
main ()
 
11433
{
 
11434
 
 
11435
  ;
 
11436
  return 0;
 
11437
}
 
11438
_ACEOF
 
11439
if ac_fn_c_try_compile "$LINENO"; then :
 
11440
  ac_cv_prog_cc_g=yes
 
11441
else
 
11442
  CFLAGS=""
 
11443
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11444
/* end confdefs.h.  */
 
11445
 
 
11446
int
 
11447
main ()
 
11448
{
 
11449
 
 
11450
  ;
 
11451
  return 0;
 
11452
}
 
11453
_ACEOF
 
11454
if ac_fn_c_try_compile "$LINENO"; then :
 
11455
 
 
11456
else
 
11457
  ac_c_werror_flag=$ac_save_c_werror_flag
 
11458
         CFLAGS="-g"
 
11459
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11460
/* end confdefs.h.  */
 
11461
 
 
11462
int
 
11463
main ()
 
11464
{
 
11465
 
 
11466
  ;
 
11467
  return 0;
 
11468
}
 
11469
_ACEOF
 
11470
if ac_fn_c_try_compile "$LINENO"; then :
 
11471
  ac_cv_prog_cc_g=yes
 
11472
fi
 
11473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11474
fi
 
11475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11476
fi
 
11477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11478
   ac_c_werror_flag=$ac_save_c_werror_flag
 
11479
fi
 
11480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
11481
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
11482
if test "$ac_test_CFLAGS" = set; then
 
11483
  CFLAGS=$ac_save_CFLAGS
 
11484
elif test $ac_cv_prog_cc_g = yes; then
 
11485
  if test "$GCC" = yes; then
 
11486
    CFLAGS="-g -O2"
 
11487
  else
 
11488
    CFLAGS="-g"
 
11489
  fi
 
11490
else
 
11491
  if test "$GCC" = yes; then
 
11492
    CFLAGS="-O2"
 
11493
  else
 
11494
    CFLAGS=
 
11495
  fi
 
11496
fi
 
11497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
11498
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
11499
if ${ac_cv_prog_cc_c89+:} false; then :
 
11500
  $as_echo_n "(cached) " >&6
 
11501
else
 
11502
  ac_cv_prog_cc_c89=no
 
11503
ac_save_CC=$CC
 
11504
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11505
/* end confdefs.h.  */
 
11506
#include <stdarg.h>
 
11507
#include <stdio.h>
 
11508
#include <sys/types.h>
 
11509
#include <sys/stat.h>
 
11510
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11511
struct buf { int x; };
 
11512
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11513
static char *e (p, i)
 
11514
     char **p;
 
11515
     int i;
 
11516
{
 
11517
  return p[i];
 
11518
}
 
11519
static char *f (char * (*g) (char **, int), char **p, ...)
 
11520
{
 
11521
  char *s;
 
11522
  va_list v;
 
11523
  va_start (v,p);
 
11524
  s = g (p, va_arg (v,int));
 
11525
  va_end (v);
 
11526
  return s;
 
11527
}
 
11528
 
 
11529
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
11530
   function prototypes and stuff, but not '\xHH' hex character constants.
 
11531
   These don't provoke an error unfortunately, instead are silently treated
 
11532
   as 'x'.  The following induces an error, until -std is added to get
 
11533
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
11534
   array size at least.  It's necessary to write '\x00'==0 to get something
 
11535
   that's true only with -std.  */
 
11536
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
11537
 
 
11538
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
11539
   inside strings and character constants.  */
 
11540
#define FOO(x) 'x'
 
11541
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
11542
 
 
11543
int test (int i, double x);
 
11544
struct s1 {int (*f) (int a);};
 
11545
struct s2 {int (*f) (double a);};
 
11546
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11547
int argc;
 
11548
char **argv;
 
11549
int
 
11550
main ()
 
11551
{
 
11552
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11553
  ;
 
11554
  return 0;
 
11555
}
 
11556
_ACEOF
 
11557
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
11558
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11559
do
 
11560
  CC="$ac_save_CC $ac_arg"
 
11561
  if ac_fn_c_try_compile "$LINENO"; then :
 
11562
  ac_cv_prog_cc_c89=$ac_arg
 
11563
fi
 
11564
rm -f core conftest.err conftest.$ac_objext
 
11565
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
11566
done
 
11567
rm -f conftest.$ac_ext
 
11568
CC=$ac_save_CC
 
11569
 
 
11570
fi
 
11571
# AC_CACHE_VAL
 
11572
case "x$ac_cv_prog_cc_c89" in
 
11573
  x)
 
11574
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
11575
$as_echo "none needed" >&6; } ;;
 
11576
  xno)
 
11577
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
11578
$as_echo "unsupported" >&6; } ;;
 
11579
  *)
 
11580
    CC="$CC $ac_cv_prog_cc_c89"
 
11581
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
11582
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
11583
esac
 
11584
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
11585
 
 
11586
fi
 
11587
 
 
11588
ac_ext=c
 
11589
ac_cpp='$CPP $CPPFLAGS'
 
11590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11593
 
 
11594
ac_ext=cpp
 
11595
ac_cpp='$CXXCPP $CPPFLAGS'
 
11596
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11597
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11598
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11599
if test -z "$CXX"; then
 
11600
  if test -n "$CCC"; then
 
11601
    CXX=$CCC
 
11602
  else
 
11603
    if test -n "$ac_tool_prefix"; then
 
11604
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11605
  do
 
11606
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11607
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11609
$as_echo_n "checking for $ac_word... " >&6; }
 
11610
if ${ac_cv_prog_CXX+:} false; then :
 
11611
  $as_echo_n "(cached) " >&6
 
11612
else
 
11613
  if test -n "$CXX"; then
 
11614
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
11615
else
 
11616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11617
for as_dir in $PATH
 
11618
do
 
11619
  IFS=$as_save_IFS
 
11620
  test -z "$as_dir" && as_dir=.
 
11621
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11623
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
11624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11625
    break 2
 
11626
  fi
 
11627
done
 
11628
  done
 
11629
IFS=$as_save_IFS
 
11630
 
 
11631
fi
 
11632
fi
 
11633
CXX=$ac_cv_prog_CXX
 
11634
if test -n "$CXX"; then
 
11635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
11636
$as_echo "$CXX" >&6; }
 
11637
else
 
11638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11639
$as_echo "no" >&6; }
 
11640
fi
 
11641
 
 
11642
 
 
11643
    test -n "$CXX" && break
 
11644
  done
 
11645
fi
 
11646
if test -z "$CXX"; then
 
11647
  ac_ct_CXX=$CXX
 
11648
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11649
do
 
11650
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11651
set dummy $ac_prog; ac_word=$2
 
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11653
$as_echo_n "checking for $ac_word... " >&6; }
 
11654
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
11655
  $as_echo_n "(cached) " >&6
 
11656
else
 
11657
  if test -n "$ac_ct_CXX"; then
 
11658
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
11659
else
 
11660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11661
for as_dir in $PATH
 
11662
do
 
11663
  IFS=$as_save_IFS
 
11664
  test -z "$as_dir" && as_dir=.
 
11665
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11666
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11667
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
11668
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11669
    break 2
 
11670
  fi
 
11671
done
 
11672
  done
 
11673
IFS=$as_save_IFS
 
11674
 
 
11675
fi
 
11676
fi
 
11677
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
11678
if test -n "$ac_ct_CXX"; then
 
11679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
11680
$as_echo "$ac_ct_CXX" >&6; }
 
11681
else
 
11682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11683
$as_echo "no" >&6; }
 
11684
fi
 
11685
 
 
11686
 
 
11687
  test -n "$ac_ct_CXX" && break
 
11688
done
 
11689
 
 
11690
  if test "x$ac_ct_CXX" = x; then
 
11691
    CXX="g++"
 
11692
  else
 
11693
    case $cross_compiling:$ac_tool_warned in
 
11694
yes:)
 
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11696
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11697
ac_tool_warned=yes ;;
 
11698
esac
 
11699
    CXX=$ac_ct_CXX
 
11700
  fi
 
11701
fi
 
11702
 
 
11703
  fi
 
11704
fi
 
11705
# Provide some information about the compiler.
 
11706
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
11707
set X $ac_compile
 
11708
ac_compiler=$2
 
11709
for ac_option in --version -v -V -qversion; do
 
11710
  { { ac_try="$ac_compiler $ac_option >&5"
 
11711
case "(($ac_try" in
 
11712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11713
  *) ac_try_echo=$ac_try;;
 
11714
esac
 
11715
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11716
$as_echo "$ac_try_echo"; } >&5
 
11717
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11718
  ac_status=$?
 
11719
  if test -s conftest.err; then
 
11720
    sed '10a\
 
11721
... rest of stderr output deleted ...
 
11722
         10q' conftest.err >conftest.er1
 
11723
    cat conftest.er1 >&5
 
11724
  fi
 
11725
  rm -f conftest.er1 conftest.err
 
11726
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11727
  test $ac_status = 0; }
 
11728
done
 
11729
 
 
11730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
11731
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
11732
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
11733
  $as_echo_n "(cached) " >&6
 
11734
else
 
11735
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11736
/* end confdefs.h.  */
 
11737
 
 
11738
int
 
11739
main ()
 
11740
{
 
11741
#ifndef __GNUC__
 
11742
       choke me
 
11743
#endif
 
11744
 
 
11745
  ;
 
11746
  return 0;
 
11747
}
 
11748
_ACEOF
 
11749
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11750
  ac_compiler_gnu=yes
 
11751
else
 
11752
  ac_compiler_gnu=no
 
11753
fi
 
11754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11755
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
11756
 
 
11757
fi
 
11758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
11759
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
11760
if test $ac_compiler_gnu = yes; then
 
11761
  GXX=yes
 
11762
else
 
11763
  GXX=
 
11764
fi
 
11765
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
11766
ac_save_CXXFLAGS=$CXXFLAGS
 
11767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
11768
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
11769
if ${ac_cv_prog_cxx_g+:} false; then :
 
11770
  $as_echo_n "(cached) " >&6
 
11771
else
 
11772
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
11773
   ac_cxx_werror_flag=yes
 
11774
   ac_cv_prog_cxx_g=no
 
11775
   CXXFLAGS="-g"
 
11776
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11777
/* end confdefs.h.  */
 
11778
 
 
11779
int
 
11780
main ()
 
11781
{
 
11782
 
 
11783
  ;
 
11784
  return 0;
 
11785
}
 
11786
_ACEOF
 
11787
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11788
  ac_cv_prog_cxx_g=yes
 
11789
else
 
11790
  CXXFLAGS=""
 
11791
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11792
/* end confdefs.h.  */
 
11793
 
 
11794
int
 
11795
main ()
 
11796
{
 
11797
 
 
11798
  ;
 
11799
  return 0;
 
11800
}
 
11801
_ACEOF
 
11802
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11803
 
 
11804
else
 
11805
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11806
         CXXFLAGS="-g"
 
11807
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11808
/* end confdefs.h.  */
 
11809
 
 
11810
int
 
11811
main ()
 
11812
{
 
11813
 
 
11814
  ;
 
11815
  return 0;
 
11816
}
 
11817
_ACEOF
 
11818
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11819
  ac_cv_prog_cxx_g=yes
 
11820
fi
 
11821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11822
fi
 
11823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11824
fi
 
11825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11826
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11827
fi
 
11828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
11829
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
11830
if test "$ac_test_CXXFLAGS" = set; then
 
11831
  CXXFLAGS=$ac_save_CXXFLAGS
 
11832
elif test $ac_cv_prog_cxx_g = yes; then
 
11833
  if test "$GXX" = yes; then
 
11834
    CXXFLAGS="-g -O2"
 
11835
  else
 
11836
    CXXFLAGS="-g"
 
11837
  fi
 
11838
else
 
11839
  if test "$GXX" = yes; then
 
11840
    CXXFLAGS="-O2"
 
11841
  else
 
11842
    CXXFLAGS=
 
11843
  fi
 
11844
fi
 
11845
ac_ext=c
 
11846
ac_cpp='$CPP $CPPFLAGS'
 
11847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11850
 
 
11851
 
 
11852
 
 
11853
func_stripname_cnf ()
 
11854
{
 
11855
  case ${2} in
 
11856
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
11857
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
11858
  esac
 
11859
} # func_stripname_cnf
 
11860
 
 
11861
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11862
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11863
    (test "X$CXX" != "Xg++"))) ; then
 
11864
  ac_ext=cpp
 
11865
ac_cpp='$CXXCPP $CPPFLAGS'
 
11866
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11867
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11868
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
11870
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
11871
if test -z "$CXXCPP"; then
 
11872
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
11873
  $as_echo_n "(cached) " >&6
 
11874
else
 
11875
      # Double quotes because CXXCPP needs to be expanded
 
11876
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
11877
    do
 
11878
      ac_preproc_ok=false
 
11879
for ac_cxx_preproc_warn_flag in '' yes
 
11880
do
 
11881
  # Use a header file that comes with gcc, so configuring glibc
 
11882
  # with a fresh cross-compiler works.
 
11883
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11884
  # <limits.h> exists even on freestanding compilers.
 
11885
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
11886
  # not just through cpp. "Syntax error" is here to catch this case.
 
11887
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11888
/* end confdefs.h.  */
 
11889
#ifdef __STDC__
 
11890
# include <limits.h>
 
11891
#else
 
11892
# include <assert.h>
 
11893
#endif
 
11894
                     Syntax error
 
11895
_ACEOF
 
11896
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11897
 
 
11898
else
 
11899
  # Broken: fails on valid input.
 
11900
continue
 
11901
fi
 
11902
rm -f conftest.err conftest.i conftest.$ac_ext
 
11903
 
 
11904
  # OK, works on sane cases.  Now check whether nonexistent headers
 
11905
  # can be detected and how.
 
11906
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11907
/* end confdefs.h.  */
 
11908
#include <ac_nonexistent.h>
 
11909
_ACEOF
 
11910
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11911
  # Broken: success on invalid input.
 
11912
continue
 
11913
else
 
11914
  # Passes both tests.
 
11915
ac_preproc_ok=:
 
11916
break
 
11917
fi
 
11918
rm -f conftest.err conftest.i conftest.$ac_ext
 
11919
 
 
11920
done
 
11921
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
11922
rm -f conftest.i conftest.err conftest.$ac_ext
 
11923
if $ac_preproc_ok; then :
 
11924
  break
 
11925
fi
 
11926
 
 
11927
    done
 
11928
    ac_cv_prog_CXXCPP=$CXXCPP
 
11929
 
 
11930
fi
 
11931
  CXXCPP=$ac_cv_prog_CXXCPP
 
11932
else
 
11933
  ac_cv_prog_CXXCPP=$CXXCPP
 
11934
fi
 
11935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
11936
$as_echo "$CXXCPP" >&6; }
 
11937
ac_preproc_ok=false
 
11938
for ac_cxx_preproc_warn_flag in '' yes
 
11939
do
 
11940
  # Use a header file that comes with gcc, so configuring glibc
 
11941
  # with a fresh cross-compiler works.
 
11942
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11943
  # <limits.h> exists even on freestanding compilers.
 
11944
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
11945
  # not just through cpp. "Syntax error" is here to catch this case.
 
11946
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11947
/* end confdefs.h.  */
 
11948
#ifdef __STDC__
 
11949
# include <limits.h>
 
11950
#else
 
11951
# include <assert.h>
 
11952
#endif
 
11953
                     Syntax error
 
11954
_ACEOF
 
11955
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11956
 
 
11957
else
 
11958
  # Broken: fails on valid input.
 
11959
continue
 
11960
fi
 
11961
rm -f conftest.err conftest.i conftest.$ac_ext
 
11962
 
 
11963
  # OK, works on sane cases.  Now check whether nonexistent headers
 
11964
  # can be detected and how.
 
11965
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11966
/* end confdefs.h.  */
 
11967
#include <ac_nonexistent.h>
 
11968
_ACEOF
 
11969
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11970
  # Broken: success on invalid input.
 
11971
continue
 
11972
else
 
11973
  # Passes both tests.
 
11974
ac_preproc_ok=:
 
11975
break
 
11976
fi
 
11977
rm -f conftest.err conftest.i conftest.$ac_ext
 
11978
 
 
11979
done
 
11980
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
11981
rm -f conftest.i conftest.err conftest.$ac_ext
 
11982
if $ac_preproc_ok; then :
 
11983
 
 
11984
else
 
11985
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11986
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11987
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
11988
See \`config.log' for more details" "$LINENO" 5; }
 
11989
fi
 
11990
 
 
11991
ac_ext=c
 
11992
ac_cpp='$CPP $CPPFLAGS'
 
11993
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11994
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11995
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11996
 
 
11997
else
 
11998
  _lt_caught_CXX_error=yes
 
11999
fi
 
12000
 
 
12001
ac_ext=cpp
 
12002
ac_cpp='$CXXCPP $CPPFLAGS'
 
12003
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12004
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12005
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9879
12006
 
9880
12007
archive_cmds_need_lc_CXX=no
9881
12008
allow_undefined_flag_CXX=
9882
12009
always_export_symbols_CXX=no
9883
12010
archive_expsym_cmds_CXX=
 
12011
compiler_needs_object_CXX=no
9884
12012
export_dynamic_flag_spec_CXX=
9885
12013
hardcode_direct_CXX=no
 
12014
hardcode_direct_absolute_CXX=no
9886
12015
hardcode_libdir_flag_spec_CXX=
9887
12016
hardcode_libdir_flag_spec_ld_CXX=
9888
12017
hardcode_libdir_separator_CXX=
9889
12018
hardcode_minus_L_CXX=no
9890
12019
hardcode_shlibpath_var_CXX=unsupported
9891
12020
hardcode_automatic_CXX=no
 
12021
inherit_rpath_CXX=no
9892
12022
module_cmds_CXX=
9893
12023
module_expsym_cmds_CXX=
9894
12024
link_all_deplibs_CXX=unknown
9895
12025
old_archive_cmds_CXX=$old_archive_cmds
 
12026
reload_flag_CXX=$reload_flag
 
12027
reload_cmds_CXX=$reload_cmds
9896
12028
no_undefined_flag_CXX=
9897
12029
whole_archive_flag_spec_CXX=
9898
12030
enable_shared_with_static_runtimes_CXX=no
9899
12031
 
9900
 
# Dependencies to place before and after the object being linked:
9901
 
predep_objects_CXX=
9902
 
postdep_objects_CXX=
9903
 
predeps_CXX=
9904
 
postdeps_CXX=
9905
 
compiler_lib_search_path_CXX=
9906
 
 
9907
12032
# Source file extension for C++ test sources.
9908
12033
ac_ext=cpp
9909
12034
 
9911
12036
objext=o
9912
12037
objext_CXX=$objext
9913
12038
 
9914
 
# Code to be used in simple compile tests
9915
 
lt_simple_compile_test_code="int some_variable = 0;\n"
9916
 
 
9917
 
# Code to be used in simple link tests
9918
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9919
 
 
9920
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12039
# No sense in running all these tests if we already determined that
 
12040
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12041
# are currently assumed to apply to all compilers on this platform,
 
12042
# and will be corrupted by setting them based on a non-working compiler.
 
12043
if test "$_lt_caught_CXX_error" != yes; then
 
12044
  # Code to be used in simple compile tests
 
12045
  lt_simple_compile_test_code="int some_variable = 0;"
 
12046
 
 
12047
  # Code to be used in simple link tests
 
12048
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12049
 
 
12050
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
9921
12056
 
9922
12057
# If no C compiler was specified, use CC.
9923
12058
LTCC=${LTCC-"$CC"}
9929
12064
compiler=$CC
9930
12065
 
9931
12066
 
9932
 
# save warnings/boilerplate of simple test code
9933
 
ac_outfile=conftest.$ac_objext
9934
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12067
  # save warnings/boilerplate of simple test code
 
12068
  ac_outfile=conftest.$ac_objext
 
12069
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9935
12070
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9936
12071
_lt_compiler_boilerplate=`cat conftest.err`
9937
 
$rm conftest*
 
12072
$RM conftest*
9938
12073
 
9939
 
ac_outfile=conftest.$ac_objext
9940
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12074
  ac_outfile=conftest.$ac_objext
 
12075
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9941
12076
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9942
12077
_lt_linker_boilerplate=`cat conftest.err`
9943
 
$rm conftest*
9944
 
 
9945
 
 
9946
 
# Allow CC to be a program name with arguments.
9947
 
lt_save_CC=$CC
9948
 
lt_save_LD=$LD
9949
 
lt_save_GCC=$GCC
9950
 
GCC=$GXX
9951
 
lt_save_with_gnu_ld=$with_gnu_ld
9952
 
lt_save_path_LD=$lt_cv_path_LD
9953
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9954
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9955
 
else
9956
 
  $as_unset lt_cv_prog_gnu_ld
9957
 
fi
9958
 
if test -n "${lt_cv_path_LDCXX+set}"; then
9959
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
9960
 
else
9961
 
  $as_unset lt_cv_path_LD
9962
 
fi
9963
 
test -z "${LDCXX+set}" || LD=$LDCXX
9964
 
CC=${CXX-"c++"}
9965
 
compiler=$CC
9966
 
compiler_CXX=$CC
9967
 
for cc_temp in $compiler""; do
 
12078
$RM -r conftest*
 
12079
 
 
12080
 
 
12081
  # Allow CC to be a program name with arguments.
 
12082
  lt_save_CC=$CC
 
12083
  lt_save_CFLAGS=$CFLAGS
 
12084
  lt_save_LD=$LD
 
12085
  lt_save_GCC=$GCC
 
12086
  GCC=$GXX
 
12087
  lt_save_with_gnu_ld=$with_gnu_ld
 
12088
  lt_save_path_LD=$lt_cv_path_LD
 
12089
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12090
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12091
  else
 
12092
    $as_unset lt_cv_prog_gnu_ld
 
12093
  fi
 
12094
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12095
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12096
  else
 
12097
    $as_unset lt_cv_path_LD
 
12098
  fi
 
12099
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12100
  CC=${CXX-"c++"}
 
12101
  CFLAGS=$CXXFLAGS
 
12102
  compiler=$CC
 
12103
  compiler_CXX=$CC
 
12104
  for cc_temp in $compiler""; do
9968
12105
  case $cc_temp in
9969
12106
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970
12107
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9972
12109
    *) break;;
9973
12110
  esac
9974
12111
done
9975
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9976
 
 
9977
 
 
9978
 
# We don't want -fno-exception wen compiling C++ code, so set the
9979
 
# no_builtin_flag separately
9980
 
if test "$GXX" = yes; then
9981
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12112
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12113
 
 
12114
 
 
12115
  if test -n "$compiler"; then
 
12116
    # We don't want -fno-exception when compiling C++ code, so set the
 
12117
    # no_builtin_flag separately
 
12118
    if test "$GXX" = yes; then
 
12119
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12120
    else
 
12121
      lt_prog_compiler_no_builtin_flag_CXX=
 
12122
    fi
 
12123
 
 
12124
    if test "$GXX" = yes; then
 
12125
      # Set up default GNU C++ configuration
 
12126
 
 
12127
 
 
12128
 
 
12129
# Check whether --with-gnu-ld was given.
 
12130
if test "${with_gnu_ld+set}" = set; then :
 
12131
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9982
12132
else
9983
 
  lt_prog_compiler_no_builtin_flag_CXX=
 
12133
  with_gnu_ld=no
9984
12134
fi
9985
12135
 
9986
 
if test "$GXX" = yes; then
9987
 
  # Set up default GNU C++ configuration
9988
 
 
9989
 
 
9990
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9991
 
if test "${with_gnu_ld+set}" = set; then
9992
 
  withval="$with_gnu_ld"
9993
 
  test "$withval" = no || with_gnu_ld=yes
9994
 
else
9995
 
  with_gnu_ld=no
9996
 
fi;
9997
12136
ac_prog=ld
9998
12137
if test "$GCC" = yes; then
9999
12138
  # Check if gcc -print-prog-name=ld gives a path.
10000
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10001
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12139
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12140
$as_echo_n "checking for ld used by $CC... " >&6; }
10002
12141
  case $host in
10003
12142
  *-*-mingw*)
10004
12143
    # gcc leaves a trailing carriage return which upsets mingw
10011
12150
    [\\/]* | ?:[\\/]*)
10012
12151
      re_direlt='/[^/][^/]*/\.\./'
10013
12152
      # Canonicalize the pathname of ld
10014
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10015
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10016
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12153
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12154
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12155
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10017
12156
      done
10018
12157
      test -z "$LD" && LD="$ac_prog"
10019
12158
      ;;
10027
12166
    ;;
10028
12167
  esac
10029
12168
elif test "$with_gnu_ld" = yes; then
10030
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10031
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12169
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12170
$as_echo_n "checking for GNU ld... " >&6; }
10032
12171
else
10033
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10034
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12172
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12173
$as_echo_n "checking for non-GNU ld... " >&6; }
10035
12174
fi
10036
 
if test "${lt_cv_path_LD+set}" = set; then
10037
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12175
if ${lt_cv_path_LD+:} false; then :
 
12176
  $as_echo_n "(cached) " >&6
10038
12177
else
10039
12178
  if test -z "$LD"; then
10040
12179
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10064
12203
 
10065
12204
LD="$lt_cv_path_LD"
10066
12205
if test -n "$LD"; then
10067
 
  echo "$as_me:$LINENO: result: $LD" >&5
10068
 
echo "${ECHO_T}$LD" >&6
 
12206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12207
$as_echo "$LD" >&6; }
10069
12208
else
10070
 
  echo "$as_me:$LINENO: result: no" >&5
10071
 
echo "${ECHO_T}no" >&6
 
12209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12210
$as_echo "no" >&6; }
10072
12211
fi
10073
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10074
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10075
 
   { (exit 1); exit 1; }; }
10076
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10077
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10078
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12212
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12214
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12215
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12216
  $as_echo_n "(cached) " >&6
10080
12217
else
10081
12218
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10082
12219
case `$LD -v 2>&1 </dev/null` in
10088
12225
  ;;
10089
12226
esac
10090
12227
fi
10091
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10092
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12229
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10093
12230
with_gnu_ld=$lt_cv_prog_gnu_ld
10094
12231
 
10095
12232
 
10096
12233
 
10097
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10098
 
  # archiving commands below assume that GNU ld is being used.
10099
 
  if test "$with_gnu_ld" = yes; then
10100
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101
 
    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'
10102
 
 
10103
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10104
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10105
 
 
10106
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10107
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10108
 
    #     investigate it a little bit more. (MM)
10109
 
    wlarc='${wl}'
10110
 
 
10111
 
    # ancient GNU ld didn't support --whole-archive et. al.
10112
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10113
 
        grep 'no-whole-archive' > /dev/null; then
10114
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10115
 
    else
10116
 
      whole_archive_flag_spec_CXX=
10117
 
    fi
10118
 
  else
10119
 
    with_gnu_ld=no
10120
 
    wlarc=
10121
 
 
10122
 
    # A generic and very simple default shared library creation
10123
 
    # command for GNU C++ for the case where it uses the native
10124
 
    # linker, instead of GNU ld.  If possible, this setting should
10125
 
    # overridden to take advantage of the native linker features on
10126
 
    # the platform it is being used on.
10127
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10128
 
  fi
10129
 
 
10130
 
  # Commands to make compiler produce verbose output that lists
10131
 
  # what "hidden" libraries, object files and flags are used when
10132
 
  # linking a shared library.
10133
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134
 
 
10135
 
else
10136
 
  GXX=no
10137
 
  with_gnu_ld=no
10138
 
  wlarc=
10139
 
fi
10140
 
 
10141
 
# PORTME: fill in a description of your system's C++ link characteristics
10142
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10144
 
ld_shlibs_CXX=yes
10145
 
case $host_os in
10146
 
  aix3*)
10147
 
    # FIXME: insert proper C++ library support
10148
 
    ld_shlibs_CXX=no
10149
 
    ;;
10150
 
  aix4* | aix5*)
10151
 
    if test "$host_cpu" = ia64; then
10152
 
      # On IA64, the linker does run time linking by default, so we don't
10153
 
      # have to do anything special.
10154
 
      aix_use_runtimelinking=no
10155
 
      exp_sym_flag='-Bexport'
10156
 
      no_entry_flag=""
10157
 
    else
10158
 
      aix_use_runtimelinking=no
10159
 
 
10160
 
      # Test if we are trying to use run time linking or normal
10161
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10162
 
      # need to do runtime linking.
10163
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10164
 
        for ld_flag in $LDFLAGS; do
10165
 
          case $ld_flag in
10166
 
          *-brtl*)
10167
 
            aix_use_runtimelinking=yes
10168
 
            break
10169
 
            ;;
10170
 
          esac
10171
 
        done
10172
 
        ;;
10173
 
      esac
10174
 
 
10175
 
      exp_sym_flag='-bexport'
10176
 
      no_entry_flag='-bnoentry'
10177
 
    fi
10178
 
 
10179
 
    # When large executables or shared objects are built, AIX ld can
10180
 
    # have problems creating the table of contents.  If linking a library
10181
 
    # or program results in "error TOC overflow" add -mminimal-toc to
10182
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10183
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10184
 
 
10185
 
    archive_cmds_CXX=''
10186
 
    hardcode_direct_CXX=yes
10187
 
    hardcode_libdir_separator_CXX=':'
10188
 
    link_all_deplibs_CXX=yes
10189
 
 
10190
 
    if test "$GXX" = yes; then
10191
 
      case $host_os in aix4.[012]|aix4.[012].*)
10192
 
      # We only want to do this on AIX 4.2 and lower, the check
10193
 
      # below for broken collect2 doesn't work under 4.3+
10194
 
        collect2name=`${CC} -print-prog-name=collect2`
10195
 
        if test -f "$collect2name" && \
10196
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10197
 
        then
10198
 
          # We have reworked collect2
10199
 
          hardcode_direct_CXX=yes
10200
 
        else
10201
 
          # We have old collect2
10202
 
          hardcode_direct_CXX=unsupported
10203
 
          # It fails to find uninstalled libraries when the uninstalled
10204
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
10205
 
          # to unsupported forces relinking
10206
 
          hardcode_minus_L_CXX=yes
10207
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10208
 
          hardcode_libdir_separator_CXX=
10209
 
        fi
10210
 
        ;;
10211
 
      esac
10212
 
      shared_flag='-shared'
10213
 
      if test "$aix_use_runtimelinking" = yes; then
10214
 
        shared_flag="$shared_flag "'${wl}-G'
10215
 
      fi
10216
 
    else
10217
 
      # not using gcc
10218
 
      if test "$host_cpu" = ia64; then
10219
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10220
 
        # chokes on -Wl,-G. The following line is correct:
10221
 
        shared_flag='-G'
10222
 
      else
10223
 
        if test "$aix_use_runtimelinking" = yes; then
10224
 
          shared_flag='${wl}-G'
10225
 
        else
10226
 
          shared_flag='${wl}-bM:SRE'
10227
 
        fi
10228
 
      fi
10229
 
    fi
10230
 
 
10231
 
    # It seems that -bexpall does not export symbols beginning with
10232
 
    # underscore (_), so it is better to generate a list of symbols to export.
10233
 
    always_export_symbols_CXX=yes
10234
 
    if test "$aix_use_runtimelinking" = yes; then
10235
 
      # Warning - without using the other runtime loading flags (-brtl),
10236
 
      # -berok will link without error, but may produce a broken library.
10237
 
      allow_undefined_flag_CXX='-berok'
10238
 
      # Determine the default libpath from the value encoded in an empty executable.
10239
 
      cat >conftest.$ac_ext <<_ACEOF
10240
 
/* confdefs.h.  */
10241
 
_ACEOF
10242
 
cat confdefs.h >>conftest.$ac_ext
10243
 
cat >>conftest.$ac_ext <<_ACEOF
10244
 
/* end confdefs.h.  */
10245
 
 
10246
 
int
10247
 
main ()
10248
 
{
10249
 
 
10250
 
  ;
10251
 
  return 0;
10252
 
}
10253
 
_ACEOF
10254
 
rm -f conftest.$ac_objext conftest$ac_exeext
10255
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256
 
  (eval $ac_link) 2>conftest.er1
10257
 
  ac_status=$?
10258
 
  grep -v '^ *+' conftest.er1 >conftest.err
10259
 
  rm -f conftest.er1
10260
 
  cat conftest.err >&5
10261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262
 
  (exit $ac_status); } &&
10263
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10264
 
                         || test ! -s conftest.err'
10265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266
 
  (eval $ac_try) 2>&5
10267
 
  ac_status=$?
10268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269
 
  (exit $ac_status); }; } &&
10270
 
         { ac_try='test -s conftest$ac_exeext'
10271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272
 
  (eval $ac_try) 2>&5
10273
 
  ac_status=$?
10274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275
 
  (exit $ac_status); }; }; then
10276
 
 
10277
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10278
 
}'`
10279
 
# Check for a 64-bit object if we didn't find anything.
10280
 
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; }
10281
 
}'`; fi
10282
 
else
10283
 
  echo "$as_me: failed program was:" >&5
10284
 
sed 's/^/| /' conftest.$ac_ext >&5
10285
 
 
10286
 
fi
10287
 
rm -f conftest.err conftest.$ac_objext \
10288
 
      conftest$ac_exeext conftest.$ac_ext
10289
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10290
 
 
10291
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10292
 
 
10293
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10294
 
     else
10295
 
      if test "$host_cpu" = ia64; then
10296
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10297
 
        allow_undefined_flag_CXX="-z nodefs"
10298
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10299
 
      else
10300
 
        # Determine the default libpath from the value encoded in an empty executable.
10301
 
        cat >conftest.$ac_ext <<_ACEOF
10302
 
/* confdefs.h.  */
10303
 
_ACEOF
10304
 
cat confdefs.h >>conftest.$ac_ext
10305
 
cat >>conftest.$ac_ext <<_ACEOF
10306
 
/* end confdefs.h.  */
10307
 
 
10308
 
int
10309
 
main ()
10310
 
{
10311
 
 
10312
 
  ;
10313
 
  return 0;
10314
 
}
10315
 
_ACEOF
10316
 
rm -f conftest.$ac_objext conftest$ac_exeext
10317
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318
 
  (eval $ac_link) 2>conftest.er1
10319
 
  ac_status=$?
10320
 
  grep -v '^ *+' conftest.er1 >conftest.err
10321
 
  rm -f conftest.er1
10322
 
  cat conftest.err >&5
10323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324
 
  (exit $ac_status); } &&
10325
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10326
 
                         || test ! -s conftest.err'
10327
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328
 
  (eval $ac_try) 2>&5
10329
 
  ac_status=$?
10330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331
 
  (exit $ac_status); }; } &&
10332
 
         { ac_try='test -s conftest$ac_exeext'
10333
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334
 
  (eval $ac_try) 2>&5
10335
 
  ac_status=$?
10336
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337
 
  (exit $ac_status); }; }; then
10338
 
 
10339
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10340
 
}'`
10341
 
# Check for a 64-bit object if we didn't find anything.
10342
 
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; }
10343
 
}'`; fi
10344
 
else
10345
 
  echo "$as_me: failed program was:" >&5
10346
 
sed 's/^/| /' conftest.$ac_ext >&5
10347
 
 
10348
 
fi
10349
 
rm -f conftest.err conftest.$ac_objext \
10350
 
      conftest$ac_exeext conftest.$ac_ext
10351
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10352
 
 
10353
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10354
 
        # Warning - without using the other run time loading flags,
10355
 
        # -berok will link without error, but may produce a broken library.
10356
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
10357
 
        allow_undefined_flag_CXX=' ${wl}-berok'
10358
 
        # Exported symbols can be pulled into shared objects from archives
10359
 
        whole_archive_flag_spec_CXX='$convenience'
10360
 
        archive_cmds_need_lc_CXX=yes
10361
 
        # This is similar to how AIX traditionally builds its shared libraries.
10362
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10363
 
      fi
10364
 
    fi
10365
 
    ;;
10366
 
 
10367
 
  beos*)
10368
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10369
 
      allow_undefined_flag_CXX=unsupported
10370
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10371
 
      # support --undefined.  This deserves some investigation.  FIXME
10372
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373
 
    else
10374
 
      ld_shlibs_CXX=no
10375
 
    fi
10376
 
    ;;
10377
 
 
10378
 
  chorus*)
10379
 
    case $cc_basename in
10380
 
      *)
10381
 
        # FIXME: insert proper C++ library support
10382
 
        ld_shlibs_CXX=no
10383
 
        ;;
10384
 
    esac
10385
 
    ;;
10386
 
 
10387
 
  cygwin* | mingw* | pw32*)
10388
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10389
 
    # as there is no search path for DLLs.
10390
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10391
 
    allow_undefined_flag_CXX=unsupported
10392
 
    always_export_symbols_CXX=no
10393
 
    enable_shared_with_static_runtimes_CXX=yes
10394
 
 
10395
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10396
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10397
 
      # If the export-symbols file already is a .def file (1st line
10398
 
      # is EXPORTS), use it as is; otherwise, prepend...
10399
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10400
 
        cp $export_symbols $output_objdir/$soname.def;
10401
 
      else
10402
 
        echo EXPORTS > $output_objdir/$soname.def;
10403
 
        cat $export_symbols >> $output_objdir/$soname.def;
10404
 
      fi~
10405
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406
 
    else
10407
 
      ld_shlibs_CXX=no
10408
 
    fi
10409
 
  ;;
10410
 
      darwin* | rhapsody*)
10411
 
        case $host_os in
10412
 
        rhapsody* | darwin1.[012])
10413
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10414
 
         ;;
10415
 
       *) # Darwin 1.3 on
10416
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10417
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10418
 
         else
10419
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
10420
 
             10.[012])
10421
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10422
 
               ;;
10423
 
             10.*)
10424
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10425
 
               ;;
10426
 
           esac
10427
 
         fi
10428
 
         ;;
10429
 
        esac
10430
 
      archive_cmds_need_lc_CXX=no
10431
 
      hardcode_direct_CXX=no
10432
 
      hardcode_automatic_CXX=yes
10433
 
      hardcode_shlibpath_var_CXX=unsupported
10434
 
      whole_archive_flag_spec_CXX=''
10435
 
      link_all_deplibs_CXX=yes
10436
 
 
10437
 
    if test "$GXX" = yes ; then
10438
 
      lt_int_apple_cc_single_mod=no
10439
 
      output_verbose_link_cmd='echo'
10440
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10441
 
       lt_int_apple_cc_single_mod=yes
10442
 
      fi
10443
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10444
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10445
 
      else
10446
 
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12234
 
 
12235
 
 
12236
 
 
12237
 
 
12238
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12239
      # archiving commands below assume that GNU ld is being used.
 
12240
      if test "$with_gnu_ld" = yes; then
 
12241
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12242
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12243
 
 
12244
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12245
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12246
 
 
12247
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12248
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12249
        #     investigate it a little bit more. (MM)
 
12250
        wlarc='${wl}'
 
12251
 
 
12252
        # ancient GNU ld didn't support --whole-archive et. al.
 
12253
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12254
          $GREP 'no-whole-archive' > /dev/null; then
 
12255
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12256
        else
 
12257
          whole_archive_flag_spec_CXX=
10447
12258
        fi
10448
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10449
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10450
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10451
 
            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}'
10452
 
          else
10453
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10454
 
          fi
10455
 
            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}'
10456
12259
      else
10457
 
      case $cc_basename in
10458
 
        xlc*)
10459
 
         output_verbose_link_cmd='echo'
10460
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10461
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10462
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10463
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10464
 
          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}'
10465
 
          ;;
10466
 
       *)
10467
 
         ld_shlibs_CXX=no
10468
 
          ;;
10469
 
      esac
 
12260
        with_gnu_ld=no
 
12261
        wlarc=
 
12262
 
 
12263
        # A generic and very simple default shared library creation
 
12264
        # command for GNU C++ for the case where it uses the native
 
12265
        # linker, instead of GNU ld.  If possible, this setting should
 
12266
        # overridden to take advantage of the native linker features on
 
12267
        # the platform it is being used on.
 
12268
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10470
12269
      fi
10471
 
        ;;
10472
 
 
10473
 
  dgux*)
10474
 
    case $cc_basename in
10475
 
      ec++*)
10476
 
        # FIXME: insert proper C++ library support
10477
 
        ld_shlibs_CXX=no
10478
 
        ;;
10479
 
      ghcx*)
10480
 
        # Green Hills C++ Compiler
10481
 
        # FIXME: insert proper C++ library support
10482
 
        ld_shlibs_CXX=no
10483
 
        ;;
10484
 
      *)
10485
 
        # FIXME: insert proper C++ library support
10486
 
        ld_shlibs_CXX=no
10487
 
        ;;
10488
 
    esac
10489
 
    ;;
10490
 
  freebsd[12]*)
10491
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
10492
 
    ld_shlibs_CXX=no
10493
 
    ;;
10494
 
  freebsd-elf*)
10495
 
    archive_cmds_need_lc_CXX=no
10496
 
    ;;
10497
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
10498
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10499
 
    # conventions
10500
 
    ld_shlibs_CXX=yes
10501
 
    ;;
10502
 
  gnu*)
10503
 
    ;;
10504
 
  hpux9*)
10505
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10506
 
    hardcode_libdir_separator_CXX=:
10507
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10508
 
    hardcode_direct_CXX=yes
10509
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10510
 
                                # but as the default
10511
 
                                # location of the library.
10512
 
 
10513
 
    case $cc_basename in
10514
 
    CC*)
10515
 
      # FIXME: insert proper C++ library support
10516
 
      ld_shlibs_CXX=no
10517
 
      ;;
10518
 
    aCC*)
10519
 
      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'
 
12270
 
10520
12271
      # Commands to make compiler produce verbose output that lists
10521
12272
      # what "hidden" libraries, object files and flags are used when
10522
12273
      # linking a shared library.
10523
 
      #
10524
 
      # There doesn't appear to be a way to prevent this compiler from
10525
 
      # explicitly linking system object files so we need to strip them
10526
 
      # from the output so that they don't get included in the library
10527
 
      # dependencies.
10528
 
      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'
10529
 
      ;;
10530
 
    *)
10531
 
      if test "$GXX" = yes; then
10532
 
        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'
10533
 
      else
 
12274
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12275
 
 
12276
    else
 
12277
      GXX=no
 
12278
      with_gnu_ld=no
 
12279
      wlarc=
 
12280
    fi
 
12281
 
 
12282
    # PORTME: fill in a description of your system's C++ link characteristics
 
12283
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12284
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12285
    ld_shlibs_CXX=yes
 
12286
    case $host_os in
 
12287
      aix3*)
10534
12288
        # FIXME: insert proper C++ library support
10535
12289
        ld_shlibs_CXX=no
10536
 
      fi
10537
 
      ;;
10538
 
    esac
10539
 
    ;;
10540
 
  hpux10*|hpux11*)
10541
 
    if test $with_gnu_ld = no; then
10542
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10543
 
      hardcode_libdir_separator_CXX=:
10544
 
 
10545
 
      case $host_cpu in
10546
 
      hppa*64*|ia64*)
10547
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10548
 
        ;;
10549
 
      *)
 
12290
        ;;
 
12291
      aix[4-9]*)
 
12292
        if test "$host_cpu" = ia64; then
 
12293
          # On IA64, the linker does run time linking by default, so we don't
 
12294
          # have to do anything special.
 
12295
          aix_use_runtimelinking=no
 
12296
          exp_sym_flag='-Bexport'
 
12297
          no_entry_flag=""
 
12298
        else
 
12299
          aix_use_runtimelinking=no
 
12300
 
 
12301
          # Test if we are trying to use run time linking or normal
 
12302
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12303
          # need to do runtime linking.
 
12304
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12305
            for ld_flag in $LDFLAGS; do
 
12306
              case $ld_flag in
 
12307
              *-brtl*)
 
12308
                aix_use_runtimelinking=yes
 
12309
                break
 
12310
                ;;
 
12311
              esac
 
12312
            done
 
12313
            ;;
 
12314
          esac
 
12315
 
 
12316
          exp_sym_flag='-bexport'
 
12317
          no_entry_flag='-bnoentry'
 
12318
        fi
 
12319
 
 
12320
        # When large executables or shared objects are built, AIX ld can
 
12321
        # have problems creating the table of contents.  If linking a library
 
12322
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12323
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12324
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12325
 
 
12326
        archive_cmds_CXX=''
 
12327
        hardcode_direct_CXX=yes
 
12328
        hardcode_direct_absolute_CXX=yes
 
12329
        hardcode_libdir_separator_CXX=':'
 
12330
        link_all_deplibs_CXX=yes
 
12331
        file_list_spec_CXX='${wl}-f,'
 
12332
 
 
12333
        if test "$GXX" = yes; then
 
12334
          case $host_os in aix4.[012]|aix4.[012].*)
 
12335
          # We only want to do this on AIX 4.2 and lower, the check
 
12336
          # below for broken collect2 doesn't work under 4.3+
 
12337
          collect2name=`${CC} -print-prog-name=collect2`
 
12338
          if test -f "$collect2name" &&
 
12339
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12340
          then
 
12341
            # We have reworked collect2
 
12342
            :
 
12343
          else
 
12344
            # We have old collect2
 
12345
            hardcode_direct_CXX=unsupported
 
12346
            # It fails to find uninstalled libraries when the uninstalled
 
12347
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12348
            # to unsupported forces relinking
 
12349
            hardcode_minus_L_CXX=yes
 
12350
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12351
            hardcode_libdir_separator_CXX=
 
12352
          fi
 
12353
          esac
 
12354
          shared_flag='-shared'
 
12355
          if test "$aix_use_runtimelinking" = yes; then
 
12356
            shared_flag="$shared_flag "'${wl}-G'
 
12357
          fi
 
12358
        else
 
12359
          # not using gcc
 
12360
          if test "$host_cpu" = ia64; then
 
12361
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12362
          # chokes on -Wl,-G. The following line is correct:
 
12363
          shared_flag='-G'
 
12364
          else
 
12365
            if test "$aix_use_runtimelinking" = yes; then
 
12366
              shared_flag='${wl}-G'
 
12367
            else
 
12368
              shared_flag='${wl}-bM:SRE'
 
12369
            fi
 
12370
          fi
 
12371
        fi
 
12372
 
 
12373
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12374
        # It seems that -bexpall does not export symbols beginning with
 
12375
        # underscore (_), so it is better to generate a list of symbols to
 
12376
        # export.
 
12377
        always_export_symbols_CXX=yes
 
12378
        if test "$aix_use_runtimelinking" = yes; then
 
12379
          # Warning - without using the other runtime loading flags (-brtl),
 
12380
          # -berok will link without error, but may produce a broken library.
 
12381
          allow_undefined_flag_CXX='-berok'
 
12382
          # Determine the default libpath from the value encoded in an empty
 
12383
          # executable.
 
12384
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12385
  aix_libpath=$lt_cv_aix_libpath
 
12386
else
 
12387
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12388
  $as_echo_n "(cached) " >&6
 
12389
else
 
12390
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12391
/* end confdefs.h.  */
 
12392
 
 
12393
int
 
12394
main ()
 
12395
{
 
12396
 
 
12397
  ;
 
12398
  return 0;
 
12399
}
 
12400
_ACEOF
 
12401
if ac_fn_cxx_try_link "$LINENO"; then :
 
12402
 
 
12403
  lt_aix_libpath_sed='
 
12404
      /Import File Strings/,/^$/ {
 
12405
          /^0/ {
 
12406
              s/^0  *\([^ ]*\) *$/\1/
 
12407
              p
 
12408
          }
 
12409
      }'
 
12410
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12411
  # Check for a 64-bit object if we didn't find anything.
 
12412
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12413
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12414
  fi
 
12415
fi
 
12416
rm -f core conftest.err conftest.$ac_objext \
 
12417
    conftest$ac_exeext conftest.$ac_ext
 
12418
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12419
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12420
  fi
 
12421
 
 
12422
fi
 
12423
 
 
12424
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12425
fi
 
12426
 
 
12427
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12428
 
 
12429
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12430
        else
 
12431
          if test "$host_cpu" = ia64; then
 
12432
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12433
            allow_undefined_flag_CXX="-z nodefs"
 
12434
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
12435
          else
 
12436
            # Determine the default libpath from the value encoded in an
 
12437
            # empty executable.
 
12438
            if test "${lt_cv_aix_libpath+set}" = set; then
 
12439
  aix_libpath=$lt_cv_aix_libpath
 
12440
else
 
12441
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12442
  $as_echo_n "(cached) " >&6
 
12443
else
 
12444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12445
/* end confdefs.h.  */
 
12446
 
 
12447
int
 
12448
main ()
 
12449
{
 
12450
 
 
12451
  ;
 
12452
  return 0;
 
12453
}
 
12454
_ACEOF
 
12455
if ac_fn_cxx_try_link "$LINENO"; then :
 
12456
 
 
12457
  lt_aix_libpath_sed='
 
12458
      /Import File Strings/,/^$/ {
 
12459
          /^0/ {
 
12460
              s/^0  *\([^ ]*\) *$/\1/
 
12461
              p
 
12462
          }
 
12463
      }'
 
12464
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12465
  # Check for a 64-bit object if we didn't find anything.
 
12466
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12467
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12468
  fi
 
12469
fi
 
12470
rm -f core conftest.err conftest.$ac_objext \
 
12471
    conftest$ac_exeext conftest.$ac_ext
 
12472
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12473
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12474
  fi
 
12475
 
 
12476
fi
 
12477
 
 
12478
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12479
fi
 
12480
 
 
12481
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12482
            # Warning - without using the other run time loading flags,
 
12483
            # -berok will link without error, but may produce a broken library.
 
12484
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12485
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12486
            if test "$with_gnu_ld" = yes; then
 
12487
              # We only use this code for GNU lds that support --whole-archive.
 
12488
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12489
            else
 
12490
              # Exported symbols can be pulled into shared objects from archives
 
12491
              whole_archive_flag_spec_CXX='$convenience'
 
12492
            fi
 
12493
            archive_cmds_need_lc_CXX=yes
 
12494
            # This is similar to how AIX traditionally builds its shared
 
12495
            # libraries.
 
12496
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12497
          fi
 
12498
        fi
 
12499
        ;;
 
12500
 
 
12501
      beos*)
 
12502
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12503
          allow_undefined_flag_CXX=unsupported
 
12504
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12505
          # support --undefined.  This deserves some investigation.  FIXME
 
12506
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12507
        else
 
12508
          ld_shlibs_CXX=no
 
12509
        fi
 
12510
        ;;
 
12511
 
 
12512
      chorus*)
 
12513
        case $cc_basename in
 
12514
          *)
 
12515
          # FIXME: insert proper C++ library support
 
12516
          ld_shlibs_CXX=no
 
12517
          ;;
 
12518
        esac
 
12519
        ;;
 
12520
 
 
12521
      cygwin* | mingw* | pw32* | cegcc*)
 
12522
        case $GXX,$cc_basename in
 
12523
        ,cl* | no,cl*)
 
12524
          # Native MSVC
 
12525
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
12526
          # no search path for DLLs.
 
12527
          hardcode_libdir_flag_spec_CXX=' '
 
12528
          allow_undefined_flag_CXX=unsupported
 
12529
          always_export_symbols_CXX=yes
 
12530
          file_list_spec_CXX='@'
 
12531
          # Tell ltmain to make .lib files, not .a files.
 
12532
          libext=lib
 
12533
          # Tell ltmain to make .dll files, not .so files.
 
12534
          shrext_cmds=".dll"
 
12535
          # FIXME: Setting linknames here is a bad hack.
 
12536
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
12537
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12538
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
12539
            else
 
12540
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
12541
            fi~
 
12542
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
12543
            linknames='
 
12544
          # The linker will not automatically build a static lib if we build a DLL.
 
12545
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
12546
          enable_shared_with_static_runtimes_CXX=yes
 
12547
          # Don't use ranlib
 
12548
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
12549
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
12550
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
12551
            case $lt_outputfile in
 
12552
              *.exe|*.EXE) ;;
 
12553
              *)
 
12554
                lt_outputfile="$lt_outputfile.exe"
 
12555
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
12556
                ;;
 
12557
            esac~
 
12558
            func_to_tool_file "$lt_outputfile"~
 
12559
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
12560
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
12561
              $RM "$lt_outputfile.manifest";
 
12562
            fi'
 
12563
          ;;
 
12564
        *)
 
12565
          # g++
 
12566
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12567
          # as there is no search path for DLLs.
 
12568
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12569
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
12570
          allow_undefined_flag_CXX=unsupported
 
12571
          always_export_symbols_CXX=no
 
12572
          enable_shared_with_static_runtimes_CXX=yes
 
12573
 
 
12574
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12575
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12576
            # If the export-symbols file already is a .def file (1st line
 
12577
            # is EXPORTS), use it as is; otherwise, prepend...
 
12578
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12579
              cp $export_symbols $output_objdir/$soname.def;
 
12580
            else
 
12581
              echo EXPORTS > $output_objdir/$soname.def;
 
12582
              cat $export_symbols >> $output_objdir/$soname.def;
 
12583
            fi~
 
12584
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12585
          else
 
12586
            ld_shlibs_CXX=no
 
12587
          fi
 
12588
          ;;
 
12589
        esac
 
12590
        ;;
 
12591
      darwin* | rhapsody*)
 
12592
 
 
12593
 
 
12594
  archive_cmds_need_lc_CXX=no
 
12595
  hardcode_direct_CXX=no
 
12596
  hardcode_automatic_CXX=yes
 
12597
  hardcode_shlibpath_var_CXX=unsupported
 
12598
  if test "$lt_cv_ld_force_load" = "yes"; then
 
12599
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
12600
  else
 
12601
    whole_archive_flag_spec_CXX=''
 
12602
  fi
 
12603
  link_all_deplibs_CXX=yes
 
12604
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12605
  case $cc_basename in
 
12606
     ifort*) _lt_dar_can_shared=yes ;;
 
12607
     *) _lt_dar_can_shared=$GCC ;;
 
12608
  esac
 
12609
  if test "$_lt_dar_can_shared" = "yes"; then
 
12610
    output_verbose_link_cmd=func_echo_all
 
12611
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12612
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12613
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
12614
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
12615
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12616
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
12617
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
12618
    fi
 
12619
 
 
12620
  else
 
12621
  ld_shlibs_CXX=no
 
12622
  fi
 
12623
 
 
12624
        ;;
 
12625
 
 
12626
      dgux*)
 
12627
        case $cc_basename in
 
12628
          ec++*)
 
12629
            # FIXME: insert proper C++ library support
 
12630
            ld_shlibs_CXX=no
 
12631
            ;;
 
12632
          ghcx*)
 
12633
            # Green Hills C++ Compiler
 
12634
            # FIXME: insert proper C++ library support
 
12635
            ld_shlibs_CXX=no
 
12636
            ;;
 
12637
          *)
 
12638
            # FIXME: insert proper C++ library support
 
12639
            ld_shlibs_CXX=no
 
12640
            ;;
 
12641
        esac
 
12642
        ;;
 
12643
 
 
12644
      freebsd[12]*)
 
12645
        # C++ shared libraries reported to be fairly broken before
 
12646
        # switch to ELF
 
12647
        ld_shlibs_CXX=no
 
12648
        ;;
 
12649
 
 
12650
      freebsd-elf*)
 
12651
        archive_cmds_need_lc_CXX=no
 
12652
        ;;
 
12653
 
 
12654
      freebsd* | dragonfly*)
 
12655
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12656
        # conventions
 
12657
        ld_shlibs_CXX=yes
 
12658
        ;;
 
12659
 
 
12660
      gnu*)
 
12661
        ;;
 
12662
 
 
12663
      haiku*)
 
12664
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12665
        link_all_deplibs_CXX=yes
 
12666
        ;;
 
12667
 
 
12668
      hpux9*)
 
12669
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12670
        hardcode_libdir_separator_CXX=:
 
12671
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12672
        hardcode_direct_CXX=yes
 
12673
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12674
                                             # but as the default
 
12675
                                             # location of the library.
 
12676
 
 
12677
        case $cc_basename in
 
12678
          CC*)
 
12679
            # FIXME: insert proper C++ library support
 
12680
            ld_shlibs_CXX=no
 
12681
            ;;
 
12682
          aCC*)
 
12683
            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'
 
12684
            # Commands to make compiler produce verbose output that lists
 
12685
            # what "hidden" libraries, object files and flags are used when
 
12686
            # linking a shared library.
 
12687
            #
 
12688
            # There doesn't appear to be a way to prevent this compiler from
 
12689
            # explicitly linking system object files so we need to strip them
 
12690
            # from the output so that they don't get included in the library
 
12691
            # dependencies.
 
12692
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12693
            ;;
 
12694
          *)
 
12695
            if test "$GXX" = yes; then
 
12696
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12697
            else
 
12698
              # FIXME: insert proper C++ library support
 
12699
              ld_shlibs_CXX=no
 
12700
            fi
 
12701
            ;;
 
12702
        esac
 
12703
        ;;
 
12704
 
 
12705
      hpux10*|hpux11*)
 
12706
        if test $with_gnu_ld = no; then
 
12707
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12708
          hardcode_libdir_separator_CXX=:
 
12709
 
 
12710
          case $host_cpu in
 
12711
            hppa*64*|ia64*)
 
12712
              ;;
 
12713
            *)
 
12714
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12715
              ;;
 
12716
          esac
 
12717
        fi
 
12718
        case $host_cpu in
 
12719
          hppa*64*|ia64*)
 
12720
            hardcode_direct_CXX=no
 
12721
            hardcode_shlibpath_var_CXX=no
 
12722
            ;;
 
12723
          *)
 
12724
            hardcode_direct_CXX=yes
 
12725
            hardcode_direct_absolute_CXX=yes
 
12726
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12727
                                                 # but as the default
 
12728
                                                 # location of the library.
 
12729
            ;;
 
12730
        esac
 
12731
 
 
12732
        case $cc_basename in
 
12733
          CC*)
 
12734
            # FIXME: insert proper C++ library support
 
12735
            ld_shlibs_CXX=no
 
12736
            ;;
 
12737
          aCC*)
 
12738
            case $host_cpu in
 
12739
              hppa*64*)
 
12740
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12741
                ;;
 
12742
              ia64*)
 
12743
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12744
                ;;
 
12745
              *)
 
12746
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12747
                ;;
 
12748
            esac
 
12749
            # Commands to make compiler produce verbose output that lists
 
12750
            # what "hidden" libraries, object files and flags are used when
 
12751
            # linking a shared library.
 
12752
            #
 
12753
            # There doesn't appear to be a way to prevent this compiler from
 
12754
            # explicitly linking system object files so we need to strip them
 
12755
            # from the output so that they don't get included in the library
 
12756
            # dependencies.
 
12757
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12758
            ;;
 
12759
          *)
 
12760
            if test "$GXX" = yes; then
 
12761
              if test $with_gnu_ld = no; then
 
12762
                case $host_cpu in
 
12763
                  hppa*64*)
 
12764
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12765
                    ;;
 
12766
                  ia64*)
 
12767
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12768
                    ;;
 
12769
                  *)
 
12770
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12771
                    ;;
 
12772
                esac
 
12773
              fi
 
12774
            else
 
12775
              # FIXME: insert proper C++ library support
 
12776
              ld_shlibs_CXX=no
 
12777
            fi
 
12778
            ;;
 
12779
        esac
 
12780
        ;;
 
12781
 
 
12782
      interix[3-9]*)
 
12783
        hardcode_direct_CXX=no
 
12784
        hardcode_shlibpath_var_CXX=no
 
12785
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10550
12786
        export_dynamic_flag_spec_CXX='${wl}-E'
10551
 
        ;;
10552
 
      esac
10553
 
    fi
10554
 
    case $host_cpu in
10555
 
    hppa*64*|ia64*)
10556
 
      hardcode_direct_CXX=no
 
12787
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12788
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12789
        # default) and relocated if they conflict, which is a slow very memory
 
12790
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12791
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12792
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12793
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12794
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12795
        ;;
 
12796
      irix5* | irix6*)
 
12797
        case $cc_basename in
 
12798
          CC*)
 
12799
            # SGI C++
 
12800
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
12801
 
 
12802
            # Archives containing C++ object files must be created using
 
12803
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12804
            # necessary to make sure instantiated templates are included
 
12805
            # in the archive.
 
12806
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12807
            ;;
 
12808
          *)
 
12809
            if test "$GXX" = yes; then
 
12810
              if test "$with_gnu_ld" = no; then
 
12811
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12812
              else
 
12813
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
12814
              fi
 
12815
            fi
 
12816
            link_all_deplibs_CXX=yes
 
12817
            ;;
 
12818
        esac
 
12819
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12820
        hardcode_libdir_separator_CXX=:
 
12821
        inherit_rpath_CXX=yes
 
12822
        ;;
 
12823
 
 
12824
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12825
        case $cc_basename in
 
12826
          KCC*)
 
12827
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12828
 
 
12829
            # KCC will only create a shared library if the output file
 
12830
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12831
            # to its proper name (with version) after linking.
 
12832
            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'
 
12833
            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'
 
12834
            # Commands to make compiler produce verbose output that lists
 
12835
            # what "hidden" libraries, object files and flags are used when
 
12836
            # linking a shared library.
 
12837
            #
 
12838
            # There doesn't appear to be a way to prevent this compiler from
 
12839
            # explicitly linking system object files so we need to strip them
 
12840
            # from the output so that they don't get included in the library
 
12841
            # dependencies.
 
12842
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12843
 
 
12844
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12845
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12846
 
 
12847
            # Archives containing C++ object files must be created using
 
12848
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12849
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12850
            ;;
 
12851
          icpc* | ecpc* )
 
12852
            # Intel C++
 
12853
            with_gnu_ld=yes
 
12854
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12855
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12856
            # earlier do not add the objects themselves.
 
12857
            case `$CC -V 2>&1` in
 
12858
              *"Version 7."*)
 
12859
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12860
                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'
 
12861
                ;;
 
12862
              *)  # Version 8.0 or newer
 
12863
                tmp_idyn=
 
12864
                case $host_cpu in
 
12865
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12866
                esac
 
12867
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12868
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12869
                ;;
 
12870
            esac
 
12871
            archive_cmds_need_lc_CXX=no
 
12872
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12873
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12874
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12875
            ;;
 
12876
          pgCC* | pgcpp*)
 
12877
            # Portland Group C++ compiler
 
12878
            case `$CC -V` in
 
12879
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
12880
              prelink_cmds_CXX='tpldir=Template.dir~
 
12881
                rm -rf $tpldir~
 
12882
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12883
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
12884
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12885
                rm -rf $tpldir~
 
12886
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12887
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
12888
                $RANLIB $oldlib'
 
12889
              archive_cmds_CXX='tpldir=Template.dir~
 
12890
                rm -rf $tpldir~
 
12891
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12892
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12893
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12894
                rm -rf $tpldir~
 
12895
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12896
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12897
              ;;
 
12898
            *) # Version 6 and above use weak symbols
 
12899
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12900
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12901
              ;;
 
12902
            esac
 
12903
 
 
12904
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12905
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12906
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
12907
            ;;
 
12908
          cxx*)
 
12909
            # Compaq C++
 
12910
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12911
            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'
 
12912
 
 
12913
            runpath_var=LD_RUN_PATH
 
12914
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12915
            hardcode_libdir_separator_CXX=:
 
12916
 
 
12917
            # Commands to make compiler produce verbose output that lists
 
12918
            # what "hidden" libraries, object files and flags are used when
 
12919
            # linking a shared library.
 
12920
            #
 
12921
            # There doesn't appear to be a way to prevent this compiler from
 
12922
            # explicitly linking system object files so we need to strip them
 
12923
            # from the output so that they don't get included in the library
 
12924
            # dependencies.
 
12925
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
12926
            ;;
 
12927
          xl* | mpixl* | bgxl*)
 
12928
            # IBM XL 8.0 on PPC, with GNU ld
 
12929
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12930
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12931
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12932
            if test "x$supports_anon_versioning" = xyes; then
 
12933
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12934
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12935
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12936
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12937
            fi
 
12938
            ;;
 
12939
          *)
 
12940
            case `$CC -V 2>&1 | sed 5q` in
 
12941
            *Sun\ C*)
 
12942
              # Sun C++ 5.9
 
12943
              no_undefined_flag_CXX=' -zdefs'
 
12944
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12945
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12946
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12947
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
12948
              compiler_needs_object_CXX=yes
 
12949
 
 
12950
              # Not sure whether something based on
 
12951
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12952
              # would be better.
 
12953
              output_verbose_link_cmd='func_echo_all'
 
12954
 
 
12955
              # Archives containing C++ object files must be created using
 
12956
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12957
              # necessary to make sure instantiated templates are included
 
12958
              # in the archive.
 
12959
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12960
              ;;
 
12961
            esac
 
12962
            ;;
 
12963
        esac
 
12964
        ;;
 
12965
 
 
12966
      lynxos*)
 
12967
        # FIXME: insert proper C++ library support
 
12968
        ld_shlibs_CXX=no
 
12969
        ;;
 
12970
 
 
12971
      m88k*)
 
12972
        # FIXME: insert proper C++ library support
 
12973
        ld_shlibs_CXX=no
 
12974
        ;;
 
12975
 
 
12976
      mvs*)
 
12977
        case $cc_basename in
 
12978
          cxx*)
 
12979
            # FIXME: insert proper C++ library support
 
12980
            ld_shlibs_CXX=no
 
12981
            ;;
 
12982
          *)
 
12983
            # FIXME: insert proper C++ library support
 
12984
            ld_shlibs_CXX=no
 
12985
            ;;
 
12986
        esac
 
12987
        ;;
 
12988
 
 
12989
      netbsd*)
 
12990
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12991
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12992
          wlarc=
 
12993
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12994
          hardcode_direct_CXX=yes
 
12995
          hardcode_shlibpath_var_CXX=no
 
12996
        fi
 
12997
        # Workaround some broken pre-1.5 toolchains
 
12998
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12999
        ;;
 
13000
 
 
13001
      *nto* | *qnx*)
 
13002
        ld_shlibs_CXX=yes
 
13003
        ;;
 
13004
 
 
13005
      openbsd2*)
 
13006
        # C++ shared libraries are fairly broken
 
13007
        ld_shlibs_CXX=no
 
13008
        ;;
 
13009
 
 
13010
      openbsd*)
 
13011
        if test -f /usr/libexec/ld.so; then
 
13012
          hardcode_direct_CXX=yes
 
13013
          hardcode_shlibpath_var_CXX=no
 
13014
          hardcode_direct_absolute_CXX=yes
 
13015
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13016
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13017
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13018
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13019
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13020
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13021
          fi
 
13022
          output_verbose_link_cmd=func_echo_all
 
13023
        else
 
13024
          ld_shlibs_CXX=no
 
13025
        fi
 
13026
        ;;
 
13027
 
 
13028
      osf3* | osf4* | osf5*)
 
13029
        case $cc_basename in
 
13030
          KCC*)
 
13031
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13032
 
 
13033
            # KCC will only create a shared library if the output file
 
13034
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13035
            # to its proper name (with version) after linking.
 
13036
            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'
 
13037
 
 
13038
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13039
            hardcode_libdir_separator_CXX=:
 
13040
 
 
13041
            # Archives containing C++ object files must be created using
 
13042
            # the KAI C++ compiler.
 
13043
            case $host in
 
13044
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13045
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13046
            esac
 
13047
            ;;
 
13048
          RCC*)
 
13049
            # Rational C++ 2.4.1
 
13050
            # FIXME: insert proper C++ library support
 
13051
            ld_shlibs_CXX=no
 
13052
            ;;
 
13053
          cxx*)
 
13054
            case $host in
 
13055
              osf3*)
 
13056
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13057
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13058
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13059
                ;;
 
13060
              *)
 
13061
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13062
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13063
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13064
                  echo "-hidden">> $lib.exp~
 
13065
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
13066
                  $RM $lib.exp'
 
13067
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13068
                ;;
 
13069
            esac
 
13070
 
 
13071
            hardcode_libdir_separator_CXX=:
 
13072
 
 
13073
            # Commands to make compiler produce verbose output that lists
 
13074
            # what "hidden" libraries, object files and flags are used when
 
13075
            # linking a shared library.
 
13076
            #
 
13077
            # There doesn't appear to be a way to prevent this compiler from
 
13078
            # explicitly linking system object files so we need to strip them
 
13079
            # from the output so that they don't get included in the library
 
13080
            # dependencies.
 
13081
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13082
            ;;
 
13083
          *)
 
13084
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13085
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13086
              case $host in
 
13087
                osf3*)
 
13088
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13089
                  ;;
 
13090
                *)
 
13091
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13092
                  ;;
 
13093
              esac
 
13094
 
 
13095
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13096
              hardcode_libdir_separator_CXX=:
 
13097
 
 
13098
              # Commands to make compiler produce verbose output that lists
 
13099
              # what "hidden" libraries, object files and flags are used when
 
13100
              # linking a shared library.
 
13101
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13102
 
 
13103
            else
 
13104
              # FIXME: insert proper C++ library support
 
13105
              ld_shlibs_CXX=no
 
13106
            fi
 
13107
            ;;
 
13108
        esac
 
13109
        ;;
 
13110
 
 
13111
      psos*)
 
13112
        # FIXME: insert proper C++ library support
 
13113
        ld_shlibs_CXX=no
 
13114
        ;;
 
13115
 
 
13116
      sunos4*)
 
13117
        case $cc_basename in
 
13118
          CC*)
 
13119
            # Sun C++ 4.x
 
13120
            # FIXME: insert proper C++ library support
 
13121
            ld_shlibs_CXX=no
 
13122
            ;;
 
13123
          lcc*)
 
13124
            # Lucid
 
13125
            # FIXME: insert proper C++ library support
 
13126
            ld_shlibs_CXX=no
 
13127
            ;;
 
13128
          *)
 
13129
            # FIXME: insert proper C++ library support
 
13130
            ld_shlibs_CXX=no
 
13131
            ;;
 
13132
        esac
 
13133
        ;;
 
13134
 
 
13135
      solaris*)
 
13136
        case $cc_basename in
 
13137
          CC* | sunCC*)
 
13138
            # Sun C++ 4.2, 5.x and Centerline C++
 
13139
            archive_cmds_need_lc_CXX=yes
 
13140
            no_undefined_flag_CXX=' -zdefs'
 
13141
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13142
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13143
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13144
 
 
13145
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13146
            hardcode_shlibpath_var_CXX=no
 
13147
            case $host_os in
 
13148
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13149
              *)
 
13150
                # The compiler driver will combine and reorder linker options,
 
13151
                # but understands `-z linker_flag'.
 
13152
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13153
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13154
                ;;
 
13155
            esac
 
13156
            link_all_deplibs_CXX=yes
 
13157
 
 
13158
            output_verbose_link_cmd='func_echo_all'
 
13159
 
 
13160
            # Archives containing C++ object files must be created using
 
13161
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13162
            # necessary to make sure instantiated templates are included
 
13163
            # in the archive.
 
13164
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13165
            ;;
 
13166
          gcx*)
 
13167
            # Green Hills C++ Compiler
 
13168
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13169
 
 
13170
            # The C++ compiler must be used to create the archive.
 
13171
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13172
            ;;
 
13173
          *)
 
13174
            # GNU C++ compiler with Solaris linker
 
13175
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13176
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13177
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13178
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13179
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13180
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13181
 
 
13182
                # Commands to make compiler produce verbose output that lists
 
13183
                # what "hidden" libraries, object files and flags are used when
 
13184
                # linking a shared library.
 
13185
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13186
              else
 
13187
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13188
                # platform.
 
13189
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13190
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13191
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13192
 
 
13193
                # Commands to make compiler produce verbose output that lists
 
13194
                # what "hidden" libraries, object files and flags are used when
 
13195
                # linking a shared library.
 
13196
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13197
              fi
 
13198
 
 
13199
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13200
              case $host_os in
 
13201
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13202
                *)
 
13203
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13204
                  ;;
 
13205
              esac
 
13206
            fi
 
13207
            ;;
 
13208
        esac
 
13209
        ;;
 
13210
 
 
13211
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13212
      no_undefined_flag_CXX='${wl}-z,text'
 
13213
      archive_cmds_need_lc_CXX=no
10557
13214
      hardcode_shlibpath_var_CXX=no
10558
 
      ;;
10559
 
    *)
10560
 
      hardcode_direct_CXX=yes
10561
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10562
 
                                              # but as the default
10563
 
                                              # location of the library.
10564
 
      ;;
10565
 
    esac
 
13215
      runpath_var='LD_RUN_PATH'
10566
13216
 
10567
 
    case $cc_basename in
10568
 
      CC*)
10569
 
        # FIXME: insert proper C++ library support
10570
 
        ld_shlibs_CXX=no
10571
 
        ;;
10572
 
      aCC*)
10573
 
        case $host_cpu in
10574
 
        hppa*64*)
10575
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576
 
          ;;
10577
 
        ia64*)
10578
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13217
      case $cc_basename in
 
13218
        CC*)
 
13219
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13220
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579
13221
          ;;
10580
13222
        *)
10581
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10582
 
          ;;
10583
 
        esac
10584
 
        # Commands to make compiler produce verbose output that lists
10585
 
        # what "hidden" libraries, object files and flags are used when
10586
 
        # linking a shared library.
10587
 
        #
10588
 
        # There doesn't appear to be a way to prevent this compiler from
10589
 
        # explicitly linking system object files so we need to strip them
10590
 
        # from the output so that they don't get included in the library
10591
 
        # dependencies.
10592
 
        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'
10593
 
        ;;
10594
 
      *)
10595
 
        if test "$GXX" = yes; then
10596
 
          if test $with_gnu_ld = no; then
10597
 
            case $host_cpu in
10598
 
            hppa*64*)
10599
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10600
 
              ;;
10601
 
            ia64*)
10602
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603
 
              ;;
10604
 
            *)
10605
 
              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'
10606
 
              ;;
10607
 
            esac
10608
 
          fi
10609
 
        else
10610
 
          # FIXME: insert proper C++ library support
10611
 
          ld_shlibs_CXX=no
10612
 
        fi
10613
 
        ;;
10614
 
    esac
10615
 
    ;;
10616
 
  interix3*)
10617
 
    hardcode_direct_CXX=no
10618
 
    hardcode_shlibpath_var_CXX=no
10619
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10620
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10621
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10622
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10623
 
    # default) and relocated if they conflict, which is a slow very memory
10624
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
10625
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10626
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10627
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10628
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10629
 
    ;;
10630
 
  irix5* | irix6*)
10631
 
    case $cc_basename in
10632
 
      CC*)
10633
 
        # SGI C++
10634
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10635
 
 
10636
 
        # Archives containing C++ object files must be created using
10637
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10638
 
        # necessary to make sure instantiated templates are included
10639
 
        # in the archive.
10640
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10641
 
        ;;
10642
 
      *)
10643
 
        if test "$GXX" = yes; then
10644
 
          if test "$with_gnu_ld" = no; then
10645
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10646
 
          else
10647
 
            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'
10648
 
          fi
10649
 
        fi
10650
 
        link_all_deplibs_CXX=yes
10651
 
        ;;
10652
 
    esac
10653
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10654
 
    hardcode_libdir_separator_CXX=:
10655
 
    ;;
10656
 
  linux*)
10657
 
    case $cc_basename in
10658
 
      KCC*)
10659
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10660
 
 
10661
 
        # KCC will only create a shared library if the output file
10662
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10663
 
        # to its proper name (with version) after linking.
10664
 
        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'
10665
 
        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'
10666
 
        # Commands to make compiler produce verbose output that lists
10667
 
        # what "hidden" libraries, object files and flags are used when
10668
 
        # linking a shared library.
10669
 
        #
10670
 
        # There doesn't appear to be a way to prevent this compiler from
10671
 
        # explicitly linking system object files so we need to strip them
10672
 
        # from the output so that they don't get included in the library
10673
 
        # dependencies.
10674
 
        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'
10675
 
 
10676
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10677
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10678
 
 
10679
 
        # Archives containing C++ object files must be created using
10680
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10681
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10682
 
        ;;
10683
 
      icpc*)
10684
 
        # Intel C++
10685
 
        with_gnu_ld=yes
10686
 
        # version 8.0 and above of icpc choke on multiply defined symbols
10687
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10688
 
        # earlier do not add the objects themselves.
10689
 
        case `$CC -V 2>&1` in
10690
 
        *"Version 7."*)
10691
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692
 
          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'
10693
 
          ;;
10694
 
        *)  # Version 8.0 or newer
10695
 
          tmp_idyn=
10696
 
          case $host_cpu in
10697
 
            ia64*) tmp_idyn=' -i_dynamic';;
10698
 
          esac
10699
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10700
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701
 
          ;;
10702
 
        esac
 
13223
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13224
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13225
          ;;
 
13226
      esac
 
13227
      ;;
 
13228
 
 
13229
      sysv5* | sco3.2v5* | sco5v6*)
 
13230
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13231
        # link with -lc, and that would cause any symbols used from libc to
 
13232
        # always be unresolved, which means just about no library would
 
13233
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13234
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13235
        # as -z defs.
 
13236
        no_undefined_flag_CXX='${wl}-z,text'
 
13237
        allow_undefined_flag_CXX='${wl}-z,nodefs'
10703
13238
        archive_cmds_need_lc_CXX=no
10704
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10705
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10707
 
        ;;
10708
 
      pgCC*)
10709
 
        # Portland Group C++ compiler
10710
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10711
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10712
 
 
10713
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10714
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10715
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10716
 
        ;;
10717
 
      cxx*)
10718
 
        # Compaq C++
10719
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10720
 
        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'
10721
 
 
10722
 
        runpath_var=LD_RUN_PATH
10723
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10724
 
        hardcode_libdir_separator_CXX=:
10725
 
 
10726
 
        # Commands to make compiler produce verbose output that lists
10727
 
        # what "hidden" libraries, object files and flags are used when
10728
 
        # linking a shared library.
10729
 
        #
10730
 
        # There doesn't appear to be a way to prevent this compiler from
10731
 
        # explicitly linking system object files so we need to strip them
10732
 
        # from the output so that they don't get included in the library
10733
 
        # dependencies.
10734
 
        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'
10735
 
        ;;
10736
 
    esac
10737
 
    ;;
10738
 
  lynxos*)
10739
 
    # FIXME: insert proper C++ library support
10740
 
    ld_shlibs_CXX=no
10741
 
    ;;
10742
 
  m88k*)
10743
 
    # FIXME: insert proper C++ library support
10744
 
    ld_shlibs_CXX=no
10745
 
    ;;
10746
 
  mvs*)
10747
 
    case $cc_basename in
10748
 
      cxx*)
10749
 
        # FIXME: insert proper C++ library support
10750
 
        ld_shlibs_CXX=no
10751
 
        ;;
10752
 
      *)
10753
 
        # FIXME: insert proper C++ library support
10754
 
        ld_shlibs_CXX=no
10755
 
        ;;
10756
 
    esac
10757
 
    ;;
10758
 
  netbsd*)
10759
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10760
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10761
 
      wlarc=
10762
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10763
 
      hardcode_direct_CXX=yes
10764
 
      hardcode_shlibpath_var_CXX=no
10765
 
    fi
10766
 
    # Workaround some broken pre-1.5 toolchains
10767
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10768
 
    ;;
10769
 
  openbsd2*)
10770
 
    # C++ shared libraries are fairly broken
10771
 
    ld_shlibs_CXX=no
10772
 
    ;;
10773
 
  openbsd*)
10774
 
    hardcode_direct_CXX=yes
10775
 
    hardcode_shlibpath_var_CXX=no
10776
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10777
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10778
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10780
 
      export_dynamic_flag_spec_CXX='${wl}-E'
10781
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10782
 
    fi
10783
 
    output_verbose_link_cmd='echo'
10784
 
    ;;
10785
 
  osf3*)
10786
 
    case $cc_basename in
10787
 
      KCC*)
10788
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10789
 
 
10790
 
        # KCC will only create a shared library if the output file
10791
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10792
 
        # to its proper name (with version) after linking.
10793
 
        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'
10794
 
 
10795
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796
 
        hardcode_libdir_separator_CXX=:
10797
 
 
10798
 
        # Archives containing C++ object files must be created using
10799
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10800
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10801
 
 
10802
 
        ;;
10803
 
      RCC*)
10804
 
        # Rational C++ 2.4.1
10805
 
        # FIXME: insert proper C++ library support
10806
 
        ld_shlibs_CXX=no
10807
 
        ;;
10808
 
      cxx*)
10809
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10810
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10811
 
 
10812
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10813
 
        hardcode_libdir_separator_CXX=:
10814
 
 
10815
 
        # Commands to make compiler produce verbose output that lists
10816
 
        # what "hidden" libraries, object files and flags are used when
10817
 
        # linking a shared library.
10818
 
        #
10819
 
        # There doesn't appear to be a way to prevent this compiler from
10820
 
        # explicitly linking system object files so we need to strip them
10821
 
        # from the output so that they don't get included in the library
10822
 
        # dependencies.
10823
 
        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'
10824
 
        ;;
10825
 
      *)
10826
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10827
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10828
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10829
 
 
10830
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10831
 
          hardcode_libdir_separator_CXX=:
10832
 
 
10833
 
          # Commands to make compiler produce verbose output that lists
10834
 
          # what "hidden" libraries, object files and flags are used when
10835
 
          # linking a shared library.
10836
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10837
 
 
10838
 
        else
10839
 
          # FIXME: insert proper C++ library support
10840
 
          ld_shlibs_CXX=no
10841
 
        fi
10842
 
        ;;
10843
 
    esac
10844
 
    ;;
10845
 
  osf4* | osf5*)
10846
 
    case $cc_basename in
10847
 
      KCC*)
10848
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10849
 
 
10850
 
        # KCC will only create a shared library if the output file
10851
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10852
 
        # to its proper name (with version) after linking.
10853
 
        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'
10854
 
 
10855
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10856
 
        hardcode_libdir_separator_CXX=:
10857
 
 
10858
 
        # Archives containing C++ object files must be created using
10859
 
        # the KAI C++ compiler.
10860
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10861
 
        ;;
10862
 
      RCC*)
10863
 
        # Rational C++ 2.4.1
10864
 
        # FIXME: insert proper C++ library support
10865
 
        ld_shlibs_CXX=no
10866
 
        ;;
10867
 
      cxx*)
10868
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10869
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10870
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10871
 
          echo "-hidden">> $lib.exp~
10872
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10873
 
          $rm $lib.exp'
10874
 
 
10875
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10876
 
        hardcode_libdir_separator_CXX=:
10877
 
 
10878
 
        # Commands to make compiler produce verbose output that lists
10879
 
        # what "hidden" libraries, object files and flags are used when
10880
 
        # linking a shared library.
10881
 
        #
10882
 
        # There doesn't appear to be a way to prevent this compiler from
10883
 
        # explicitly linking system object files so we need to strip them
10884
 
        # from the output so that they don't get included in the library
10885
 
        # dependencies.
10886
 
        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'
10887
 
        ;;
10888
 
      *)
10889
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10890
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10891
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10892
 
 
10893
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10894
 
          hardcode_libdir_separator_CXX=:
10895
 
 
10896
 
          # Commands to make compiler produce verbose output that lists
10897
 
          # what "hidden" libraries, object files and flags are used when
10898
 
          # linking a shared library.
10899
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10900
 
 
10901
 
        else
10902
 
          # FIXME: insert proper C++ library support
10903
 
          ld_shlibs_CXX=no
10904
 
        fi
10905
 
        ;;
10906
 
    esac
10907
 
    ;;
10908
 
  psos*)
10909
 
    # FIXME: insert proper C++ library support
10910
 
    ld_shlibs_CXX=no
10911
 
    ;;
10912
 
  sunos4*)
10913
 
    case $cc_basename in
10914
 
      CC*)
10915
 
        # Sun C++ 4.x
10916
 
        # FIXME: insert proper C++ library support
10917
 
        ld_shlibs_CXX=no
10918
 
        ;;
10919
 
      lcc*)
10920
 
        # Lucid
10921
 
        # FIXME: insert proper C++ library support
10922
 
        ld_shlibs_CXX=no
10923
 
        ;;
10924
 
      *)
10925
 
        # FIXME: insert proper C++ library support
10926
 
        ld_shlibs_CXX=no
10927
 
        ;;
10928
 
    esac
10929
 
    ;;
10930
 
  solaris*)
10931
 
    case $cc_basename in
10932
 
      CC*)
10933
 
        # Sun C++ 4.2, 5.x and Centerline C++
10934
 
        archive_cmds_need_lc_CXX=yes
10935
 
        no_undefined_flag_CXX=' -zdefs'
10936
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10937
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10939
 
 
10940
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10941
13239
        hardcode_shlibpath_var_CXX=no
10942
 
        case $host_os in
10943
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13240
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13241
        hardcode_libdir_separator_CXX=':'
 
13242
        link_all_deplibs_CXX=yes
 
13243
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13244
        runpath_var='LD_RUN_PATH'
 
13245
 
 
13246
        case $cc_basename in
 
13247
          CC*)
 
13248
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13249
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13250
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13251
              '"$old_archive_cmds_CXX"
 
13252
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13253
              '"$reload_cmds_CXX"
 
13254
            ;;
10944
13255
          *)
10945
 
            # The C++ compiler is used as linker so we must use $wl
10946
 
            # flag to pass the commands to the underlying system
10947
 
            # linker. We must also pass each convience library through
10948
 
            # to the system linker between allextract/defaultextract.
10949
 
            # The C++ compiler will combine linker options so we
10950
 
            # cannot just pass the convience library names through
10951
 
            # without $wl.
10952
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10953
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
13256
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13257
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954
13258
            ;;
10955
13259
        esac
10956
 
        link_all_deplibs_CXX=yes
10957
 
 
10958
 
        output_verbose_link_cmd='echo'
10959
 
 
10960
 
        # Archives containing C++ object files must be created using
10961
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10962
 
        # necessary to make sure instantiated templates are included
10963
 
        # in the archive.
10964
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10965
 
        ;;
10966
 
      gcx*)
10967
 
        # Green Hills C++ Compiler
10968
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10969
 
 
10970
 
        # The C++ compiler must be used to create the archive.
10971
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10972
 
        ;;
10973
 
      *)
10974
 
        # GNU C++ compiler with Solaris linker
10975
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10976
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10977
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
10978
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10979
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10980
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10981
 
 
10982
 
            # Commands to make compiler produce verbose output that lists
10983
 
            # what "hidden" libraries, object files and flags are used when
10984
 
            # linking a shared library.
10985
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10986
 
          else
10987
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10988
 
            # platform.
10989
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10992
 
 
10993
 
            # Commands to make compiler produce verbose output that lists
10994
 
            # what "hidden" libraries, object files and flags are used when
10995
 
            # linking a shared library.
10996
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10997
 
          fi
10998
 
 
10999
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11000
 
        fi
11001
 
        ;;
11002
 
    esac
11003
 
    ;;
11004
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005
 
    no_undefined_flag_CXX='${wl}-z,text'
11006
 
    archive_cmds_need_lc_CXX=no
11007
 
    hardcode_shlibpath_var_CXX=no
11008
 
    runpath_var='LD_RUN_PATH'
11009
 
 
11010
 
    case $cc_basename in
11011
 
      CC*)
11012
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014
 
        ;;
11015
 
      *)
11016
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018
 
        ;;
11019
 
    esac
11020
 
    ;;
11021
 
  sysv5* | sco3.2v5* | sco5v6*)
11022
 
    # Note: We can NOT use -z defs as we might desire, because we do not
11023
 
    # link with -lc, and that would cause any symbols used from libc to
11024
 
    # always be unresolved, which means just about no library would
11025
 
    # ever link correctly.  If we're not using GNU ld we use -z text
11026
 
    # though, which does catch some bad symbols but isn't as heavy-handed
11027
 
    # as -z defs.
11028
 
    # For security reasons, it is highly recommended that you always
11029
 
    # use absolute paths for naming shared libraries, and exclude the
11030
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
11031
 
    # requires that you compile everything twice, which is a pain.
11032
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
11033
 
    # non-empty value in the environment.  Most likely only useful for
11034
 
    # creating official distributions of packages.
11035
 
    # This is a hack until libtool officially supports absolute path
11036
 
    # names for shared libraries.
11037
 
    no_undefined_flag_CXX='${wl}-z,text'
11038
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11039
 
    archive_cmds_need_lc_CXX=no
11040
 
    hardcode_shlibpath_var_CXX=no
11041
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11042
 
    hardcode_libdir_separator_CXX=':'
11043
 
    link_all_deplibs_CXX=yes
11044
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11045
 
    runpath_var='LD_RUN_PATH'
11046
 
 
11047
 
    case $cc_basename in
11048
 
      CC*)
11049
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051
 
        ;;
11052
 
      *)
11053
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11054
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055
 
        ;;
11056
 
    esac
11057
 
    ;;
11058
 
  tandem*)
11059
 
    case $cc_basename in
11060
 
      NCC*)
11061
 
        # NonStop-UX NCC 3.20
11062
 
        # FIXME: insert proper C++ library support
11063
 
        ld_shlibs_CXX=no
11064
 
        ;;
11065
 
      *)
11066
 
        # FIXME: insert proper C++ library support
11067
 
        ld_shlibs_CXX=no
11068
 
        ;;
11069
 
    esac
11070
 
    ;;
11071
 
  vxworks*)
11072
 
    # FIXME: insert proper C++ library support
11073
 
    ld_shlibs_CXX=no
11074
 
    ;;
11075
 
  *)
11076
 
    # FIXME: insert proper C++ library support
11077
 
    ld_shlibs_CXX=no
11078
 
    ;;
11079
 
esac
11080
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11081
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11082
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11083
 
 
11084
 
GCC_CXX="$GXX"
11085
 
LD_CXX="$LD"
11086
 
 
11087
 
## CAVEAT EMPTOR:
11088
 
## There is no encapsulation within the following macros, do not change
11089
 
## the running order or otherwise move them around unless you know exactly
11090
 
## what you are doing...
11091
 
 
11092
 
cat > conftest.$ac_ext <<EOF
 
13260
      ;;
 
13261
 
 
13262
      tandem*)
 
13263
        case $cc_basename in
 
13264
          NCC*)
 
13265
            # NonStop-UX NCC 3.20
 
13266
            # FIXME: insert proper C++ library support
 
13267
            ld_shlibs_CXX=no
 
13268
            ;;
 
13269
          *)
 
13270
            # FIXME: insert proper C++ library support
 
13271
            ld_shlibs_CXX=no
 
13272
            ;;
 
13273
        esac
 
13274
        ;;
 
13275
 
 
13276
      vxworks*)
 
13277
        # FIXME: insert proper C++ library support
 
13278
        ld_shlibs_CXX=no
 
13279
        ;;
 
13280
 
 
13281
      *)
 
13282
        # FIXME: insert proper C++ library support
 
13283
        ld_shlibs_CXX=no
 
13284
        ;;
 
13285
    esac
 
13286
 
 
13287
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13288
$as_echo "$ld_shlibs_CXX" >&6; }
 
13289
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13290
 
 
13291
    GCC_CXX="$GXX"
 
13292
    LD_CXX="$LD"
 
13293
 
 
13294
    ## CAVEAT EMPTOR:
 
13295
    ## There is no encapsulation within the following macros, do not change
 
13296
    ## the running order or otherwise move them around unless you know exactly
 
13297
    ## what you are doing...
 
13298
    # Dependencies to place before and after the object being linked:
 
13299
predep_objects_CXX=
 
13300
postdep_objects_CXX=
 
13301
predeps_CXX=
 
13302
postdeps_CXX=
 
13303
compiler_lib_search_path_CXX=
 
13304
 
 
13305
cat > conftest.$ac_ext <<_LT_EOF
11093
13306
class Foo
11094
13307
{
11095
13308
public:
11097
13310
private:
11098
13311
  int a;
11099
13312
};
11100
 
EOF
11101
 
 
11102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13313
_LT_EOF
 
13314
 
 
13315
 
 
13316
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13317
case "$CC $CFLAGS " in #(
 
13318
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13319
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13320
esac
 
13321
 
 
13322
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11103
13323
  (eval $ac_compile) 2>&5
11104
13324
  ac_status=$?
11105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106
 
  (exit $ac_status); }; then
 
13325
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13326
  test $ac_status = 0; }; then
11107
13327
  # Parse the compiler output and extract the necessary
11108
13328
  # objects, libraries and library flags.
11109
13329
 
11111
13331
  # the conftest object file.
11112
13332
  pre_test_object_deps_done=no
11113
13333
 
11114
 
  # The `*' in the case matches for architectures that use `case' in
11115
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11116
 
  # eval without this substitution.
11117
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11118
 
 
11119
 
  for p in `eval $output_verbose_link_cmd`; do
11120
 
    case $p in
 
13334
  for p in `eval "$output_verbose_link_cmd"`; do
 
13335
    case ${prev}${p} in
11121
13336
 
11122
13337
    -L* | -R* | -l*)
11123
13338
       # Some compilers place space between "-{L,R}" and the path.
11124
13339
       # Remove the space.
11125
 
       if test $p = "-L" \
11126
 
          || test $p = "-R"; then
 
13340
       if test $p = "-L" ||
 
13341
          test $p = "-R"; then
11127
13342
         prev=$p
11128
13343
         continue
11129
 
       else
11130
 
         prev=
11131
13344
       fi
11132
13345
 
 
13346
       # Expand the sysroot to ease extracting the directories later.
 
13347
       if test -z "$prev"; then
 
13348
         case $p in
 
13349
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13350
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13351
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13352
         esac
 
13353
       fi
 
13354
       case $p in
 
13355
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13356
       esac
11133
13357
       if test "$pre_test_object_deps_done" = no; then
11134
 
         case $p in
11135
 
         -L* | -R*)
 
13358
         case ${prev} in
 
13359
         -L | -R)
11136
13360
           # Internal compiler library paths should come after those
11137
13361
           # provided the user.  The postdeps already come after the
11138
13362
           # user supplied libs so there is no need to process them.
11152
13376
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11153
13377
         fi
11154
13378
       fi
 
13379
       prev=
11155
13380
       ;;
11156
13381
 
 
13382
    *.lto.$objext) ;; # Ignore GCC LTO objects
11157
13383
    *.$objext)
11158
13384
       # This assumes that the test object file only shows up
11159
13385
       # once in the compiler output.
11188
13414
  echo "libtool.m4: error: problem compiling CXX test program"
11189
13415
fi
11190
13416
 
11191
 
$rm -f confest.$objext
 
13417
$RM -f confest.$objext
 
13418
CFLAGS=$_lt_libdeps_save_CFLAGS
11192
13419
 
11193
13420
# PORTME: override above test on systems where it is broken
11194
13421
case $host_os in
11195
 
interix3*)
 
13422
interix[3-9]*)
11196
13423
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11197
13424
  # hack all around it, let's just trust "g++" to DTRT.
11198
13425
  predep_objects_CXX=
11200
13427
  postdeps_CXX=
11201
13428
  ;;
11202
13429
 
 
13430
linux*)
 
13431
  case `$CC -V 2>&1 | sed 5q` in
 
13432
  *Sun\ C*)
 
13433
    # Sun C++ 5.9
 
13434
 
 
13435
    # The more standards-conforming stlport4 library is
 
13436
    # incompatible with the Cstd library. Avoid specifying
 
13437
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13438
    # -library=stlport4 depends on it.
 
13439
    case " $CXX $CXXFLAGS " in
 
13440
    *" -library=stlport4 "*)
 
13441
      solaris_use_stlport4=yes
 
13442
      ;;
 
13443
    esac
 
13444
 
 
13445
    if test "$solaris_use_stlport4" != yes; then
 
13446
      postdeps_CXX='-library=Cstd -library=Crun'
 
13447
    fi
 
13448
    ;;
 
13449
  esac
 
13450
  ;;
 
13451
 
11203
13452
solaris*)
11204
13453
  case $cc_basename in
11205
 
  CC*)
 
13454
  CC* | sunCC*)
 
13455
    # The more standards-conforming stlport4 library is
 
13456
    # incompatible with the Cstd library. Avoid specifying
 
13457
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13458
    # -library=stlport4 depends on it.
 
13459
    case " $CXX $CXXFLAGS " in
 
13460
    *" -library=stlport4 "*)
 
13461
      solaris_use_stlport4=yes
 
13462
      ;;
 
13463
    esac
 
13464
 
11206
13465
    # Adding this requires a known-good setup of shared libraries for
11207
13466
    # Sun compiler versions before 5.6, else PIC objects from an old
11208
13467
    # archive will be linked into the output, leading to subtle bugs.
11209
 
    postdeps_CXX='-lCstd -lCrun'
 
13468
    if test "$solaris_use_stlport4" != yes; then
 
13469
      postdeps_CXX='-library=Cstd -library=Crun'
 
13470
    fi
11210
13471
    ;;
11211
13472
  esac
11212
13473
  ;;
11216
13477
case " $postdeps_CXX " in
11217
13478
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11218
13479
esac
11219
 
 
11220
 
lt_prog_compiler_wl_CXX=
 
13480
 compiler_lib_search_dirs_CXX=
 
13481
if test -n "${compiler_lib_search_path_CXX}"; then
 
13482
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13483
fi
 
13484
 
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
 
 
13493
 
 
13494
 
 
13495
 
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
 
 
13501
 
 
13502
 
 
13503
 
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
 
 
13514
 
 
13515
    lt_prog_compiler_wl_CXX=
11221
13516
lt_prog_compiler_pic_CXX=
11222
13517
lt_prog_compiler_static_CXX=
11223
13518
 
11224
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11225
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11226
13519
 
11227
13520
  # C++ specific cases for pic, static, wl, etc.
11228
13521
  if test "$GXX" = yes; then
11237
13530
        lt_prog_compiler_static_CXX='-Bstatic'
11238
13531
      fi
11239
13532
      ;;
 
13533
 
11240
13534
    amigaos*)
11241
 
      # FIXME: we need at least 68020 code to build shared libraries, but
11242
 
      # adding the `-m68020' flag to GCC prevents building anything better,
11243
 
      # like `-m68040'.
11244
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13535
      case $host_cpu in
 
13536
      powerpc)
 
13537
            # see comment about AmigaOS4 .so support
 
13538
            lt_prog_compiler_pic_CXX='-fPIC'
 
13539
        ;;
 
13540
      m68k)
 
13541
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13542
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13543
            # like `-m68040'.
 
13544
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13545
        ;;
 
13546
      esac
11245
13547
      ;;
11246
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13548
 
 
13549
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11247
13550
      # PIC is the default for these OSes.
11248
13551
      ;;
11249
 
    mingw* | os2* | pw32*)
 
13552
    mingw* | cygwin* | os2* | pw32* | cegcc*)
11250
13553
      # This hack is so that the source file can tell whether it is being
11251
13554
      # built for inclusion in a dll (and should export symbols for example).
 
13555
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13556
      # (--disable-auto-import) libraries
11252
13557
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11253
13558
      ;;
11254
13559
    darwin* | rhapsody*)
11260
13565
      # DJGPP does not support shared libraries at all
11261
13566
      lt_prog_compiler_pic_CXX=
11262
13567
      ;;
11263
 
    interix3*)
 
13568
    haiku*)
 
13569
      # PIC is the default for Haiku.
 
13570
      # The "-static" flag exists, but is broken.
 
13571
      lt_prog_compiler_static_CXX=
 
13572
      ;;
 
13573
    interix[3-9]*)
11264
13574
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11265
13575
      # Instead, we relocate shared libraries at runtime.
11266
13576
      ;;
11270
13580
      fi
11271
13581
      ;;
11272
13582
    hpux*)
11273
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11274
 
      # not for PA HP-UX.
 
13583
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13584
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13585
      # sets the default TLS model and affects inlining.
11275
13586
      case $host_cpu in
11276
 
      hppa*64*|ia64*)
 
13587
      hppa*64*)
11277
13588
        ;;
11278
13589
      *)
11279
13590
        lt_prog_compiler_pic_CXX='-fPIC'
11280
13591
        ;;
11281
13592
      esac
11282
13593
      ;;
 
13594
    *qnx* | *nto*)
 
13595
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13596
      # it will coredump.
 
13597
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13598
      ;;
11283
13599
    *)
11284
13600
      lt_prog_compiler_pic_CXX='-fPIC'
11285
13601
      ;;
11286
13602
    esac
11287
13603
  else
11288
13604
    case $host_os in
11289
 
      aix4* | aix5*)
 
13605
      aix[4-9]*)
11290
13606
        # All AIX code is PIC.
11291
13607
        if test "$host_cpu" = ia64; then
11292
13608
          # AIX 5 now supports IA64 processor
11299
13615
        case $cc_basename in
11300
13616
        cxch68*)
11301
13617
          # Green Hills C++ Compiler
11302
 
          # _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"
 
13618
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11303
13619
          ;;
11304
13620
        esac
11305
13621
        ;;
11306
 
       darwin*)
11307
 
         # PIC is the default on this platform
11308
 
         # Common symbols not allowed in MH_DYLIB files
11309
 
         case $cc_basename in
11310
 
           xlc*)
11311
 
           lt_prog_compiler_pic_CXX='-qnocommon'
11312
 
           lt_prog_compiler_wl_CXX='-Wl,'
11313
 
           ;;
11314
 
         esac
11315
 
       ;;
 
13622
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13623
        # This hack is so that the source file can tell whether it is being
 
13624
        # built for inclusion in a dll (and should export symbols for example).
 
13625
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13626
        ;;
11316
13627
      dgux*)
11317
13628
        case $cc_basename in
11318
13629
          ec++*)
11326
13637
            ;;
11327
13638
        esac
11328
13639
        ;;
11329
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
13640
      freebsd* | dragonfly*)
11330
13641
        # FreeBSD uses GNU C++
11331
13642
        ;;
11332
13643
      hpux9* | hpux10* | hpux11*)
11369
13680
            ;;
11370
13681
        esac
11371
13682
        ;;
11372
 
      linux*)
 
13683
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
11373
13684
        case $cc_basename in
11374
13685
          KCC*)
11375
13686
            # KAI C++ Compiler
11376
13687
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11377
13688
            lt_prog_compiler_pic_CXX='-fPIC'
11378
13689
            ;;
11379
 
          icpc* | ecpc*)
11380
 
            # Intel C++
 
13690
          ecpc* )
 
13691
            # old Intel C++ for x86_64 which still supported -KPIC.
11381
13692
            lt_prog_compiler_wl_CXX='-Wl,'
11382
13693
            lt_prog_compiler_pic_CXX='-KPIC'
11383
13694
            lt_prog_compiler_static_CXX='-static'
11384
13695
            ;;
11385
 
          pgCC*)
11386
 
            # Portland Group C++ compiler.
 
13696
          icpc* )
 
13697
            # Intel C++, used to be incompatible with GCC.
 
13698
            # ICC 10 doesn't accept -KPIC any more.
 
13699
            lt_prog_compiler_wl_CXX='-Wl,'
 
13700
            lt_prog_compiler_pic_CXX='-fPIC'
 
13701
            lt_prog_compiler_static_CXX='-static'
 
13702
            ;;
 
13703
          pgCC* | pgcpp*)
 
13704
            # Portland Group C++ compiler
11387
13705
            lt_prog_compiler_wl_CXX='-Wl,'
11388
13706
            lt_prog_compiler_pic_CXX='-fpic'
11389
13707
            lt_prog_compiler_static_CXX='-Bstatic'
11395
13713
            lt_prog_compiler_pic_CXX=
11396
13714
            lt_prog_compiler_static_CXX='-non_shared'
11397
13715
            ;;
 
13716
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
13717
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
13718
            lt_prog_compiler_wl_CXX='-Wl,'
 
13719
            lt_prog_compiler_pic_CXX='-qpic'
 
13720
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13721
            ;;
11398
13722
          *)
 
13723
            case `$CC -V 2>&1 | sed 5q` in
 
13724
            *Sun\ C*)
 
13725
              # Sun C++ 5.9
 
13726
              lt_prog_compiler_pic_CXX='-KPIC'
 
13727
              lt_prog_compiler_static_CXX='-Bstatic'
 
13728
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13729
              ;;
 
13730
            esac
11399
13731
            ;;
11400
13732
        esac
11401
13733
        ;;
11412
13744
            ;;
11413
13745
        esac
11414
13746
        ;;
11415
 
      netbsd*)
 
13747
      netbsd* | netbsdelf*-gnu)
11416
13748
        ;;
 
13749
      *qnx* | *nto*)
 
13750
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13751
        # it will coredump.
 
13752
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13753
        ;;
11417
13754
      osf3* | osf4* | osf5*)
11418
13755
        case $cc_basename in
11419
13756
          KCC*)
11439
13776
        ;;
11440
13777
      solaris*)
11441
13778
        case $cc_basename in
11442
 
          CC*)
 
13779
          CC* | sunCC*)
11443
13780
            # Sun C++ 4.2, 5.x and Centerline C++
11444
13781
            lt_prog_compiler_pic_CXX='-KPIC'
11445
13782
            lt_prog_compiler_static_CXX='-Bstatic'
11468
13805
            ;;
11469
13806
        esac
11470
13807
        ;;
 
13808
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13809
        case $cc_basename in
 
13810
          CC*)
 
13811
            lt_prog_compiler_wl_CXX='-Wl,'
 
13812
            lt_prog_compiler_pic_CXX='-KPIC'
 
13813
            lt_prog_compiler_static_CXX='-Bstatic'
 
13814
            ;;
 
13815
        esac
 
13816
        ;;
11471
13817
      tandem*)
11472
13818
        case $cc_basename in
11473
13819
          NCC*)
11478
13824
            ;;
11479
13825
        esac
11480
13826
        ;;
11481
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11482
 
        case $cc_basename in
11483
 
          CC*)
11484
 
            lt_prog_compiler_wl_CXX='-Wl,'
11485
 
            lt_prog_compiler_pic_CXX='-KPIC'
11486
 
            lt_prog_compiler_static_CXX='-Bstatic'
11487
 
            ;;
11488
 
        esac
11489
 
        ;;
11490
13827
      vxworks*)
11491
13828
        ;;
11492
13829
      *)
11495
13832
    esac
11496
13833
  fi
11497
13834
 
11498
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11499
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13835
case $host_os in
 
13836
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13837
  *djgpp*)
 
13838
    lt_prog_compiler_pic_CXX=
 
13839
    ;;
 
13840
  *)
 
13841
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13842
    ;;
 
13843
esac
 
13844
 
 
13845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
13846
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13847
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
13848
  $as_echo_n "(cached) " >&6
 
13849
else
 
13850
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
13851
fi
 
13852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
13853
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
13854
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
11500
13855
 
11501
13856
#
11502
13857
# Check to make sure the PIC flag actually works.
11503
13858
#
11504
13859
if test -n "$lt_prog_compiler_pic_CXX"; then
11505
 
 
11506
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11507
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11508
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13860
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13861
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13862
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
13863
  $as_echo_n "(cached) " >&6
11510
13864
else
11511
 
  lt_prog_compiler_pic_works_CXX=no
11512
 
  ac_outfile=conftest.$ac_objext
11513
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13865
  lt_cv_prog_compiler_pic_works_CXX=no
 
13866
   ac_outfile=conftest.$ac_objext
 
13867
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11514
13868
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11515
13869
   # Insert the option either (1) after the last *FLAGS variable, or
11516
13870
   # (2) before a word containing "conftest.", or (3) at the end.
11521
13875
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522
13876
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523
13877
   -e 's:$: $lt_compiler_flag:'`
11524
 
   (eval echo "\"\$as_me:11524: $lt_compile\"" >&5)
 
13878
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11525
13879
   (eval "$lt_compile" 2>conftest.err)
11526
13880
   ac_status=$?
11527
13881
   cat conftest.err >&5
11528
 
   echo "$as_me:11528: \$? = $ac_status" >&5
 
13882
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529
13883
   if (exit $ac_status) && test -s "$ac_outfile"; then
11530
13884
     # The compiler can only warn and ignore the option if not recognized
11531
13885
     # So say no if there are warnings other than the usual output.
11532
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13886
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11533
13887
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11534
13888
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11535
 
       lt_prog_compiler_pic_works_CXX=yes
 
13889
       lt_cv_prog_compiler_pic_works_CXX=yes
11536
13890
     fi
11537
13891
   fi
11538
 
   $rm conftest*
 
13892
   $RM conftest*
11539
13893
 
11540
13894
fi
11541
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11542
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13896
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
11543
13897
 
11544
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13898
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11545
13899
    case $lt_prog_compiler_pic_CXX in
11546
13900
     "" | " "*) ;;
11547
13901
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11552
13906
fi
11553
13907
 
11554
13908
fi
11555
 
case $host_os in
11556
 
  # For platforms which do not support PIC, -DPIC is meaningless:
11557
 
  *djgpp*)
11558
 
    lt_prog_compiler_pic_CXX=
11559
 
    ;;
11560
 
  *)
11561
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11562
 
    ;;
11563
 
esac
 
13909
 
 
13910
 
 
13911
 
 
13912
 
11564
13913
 
11565
13914
#
11566
13915
# Check to make sure the static flag actually works.
11567
13916
#
11568
13917
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11569
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11570
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11571
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13919
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13920
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
13921
  $as_echo_n "(cached) " >&6
11573
13922
else
11574
 
  lt_prog_compiler_static_works_CXX=no
 
13923
  lt_cv_prog_compiler_static_works_CXX=no
11575
13924
   save_LDFLAGS="$LDFLAGS"
11576
13925
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11577
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13926
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11578
13927
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11579
13928
     # The linker can only warn and ignore the option if not recognized
11580
13929
     # So say no if there are warnings
11581
13930
     if test -s conftest.err; then
11582
13931
       # Append any errors to the config.log.
11583
13932
       cat conftest.err 1>&5
11584
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13933
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11585
13934
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11586
13935
       if diff conftest.exp conftest.er2 >/dev/null; then
11587
 
         lt_prog_compiler_static_works_CXX=yes
 
13936
         lt_cv_prog_compiler_static_works_CXX=yes
11588
13937
       fi
11589
13938
     else
11590
 
       lt_prog_compiler_static_works_CXX=yes
 
13939
       lt_cv_prog_compiler_static_works_CXX=yes
11591
13940
     fi
11592
13941
   fi
11593
 
   $rm conftest*
 
13942
   $RM -r conftest*
11594
13943
   LDFLAGS="$save_LDFLAGS"
11595
13944
 
11596
13945
fi
11597
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11598
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
13946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13947
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
11599
13948
 
11600
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13949
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
11601
13950
    :
11602
13951
else
11603
13952
    lt_prog_compiler_static_CXX=
11604
13953
fi
11605
13954
 
11606
13955
 
11607
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11608
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11609
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11611
 
else
11612
 
  lt_cv_prog_compiler_c_o_CXX=no
11613
 
   $rm -r conftest 2>/dev/null
11614
 
   mkdir conftest
11615
 
   cd conftest
11616
 
   mkdir out
11617
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11618
 
 
11619
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11620
 
   # Insert the option either (1) after the last *FLAGS variable, or
11621
 
   # (2) before a word containing "conftest.", or (3) at the end.
11622
 
   # Note that $ac_compile itself does not contain backslashes and begins
11623
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11624
 
   lt_compile=`echo "$ac_compile" | $SED \
11625
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11626
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11627
 
   -e 's:$: $lt_compiler_flag:'`
11628
 
   (eval echo "\"\$as_me:11628: $lt_compile\"" >&5)
11629
 
   (eval "$lt_compile" 2>out/conftest.err)
11630
 
   ac_status=$?
11631
 
   cat out/conftest.err >&5
11632
 
   echo "$as_me:11632: \$? = $ac_status" >&5
11633
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11634
 
   then
11635
 
     # The compiler can only warn and ignore the option if not recognized
11636
 
     # So say no if there are warnings
11637
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11638
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11639
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11640
 
       lt_cv_prog_compiler_c_o_CXX=yes
11641
 
     fi
11642
 
   fi
11643
 
   chmod u+w . 2>&5
11644
 
   $rm conftest*
11645
 
   # SGI C++ compiler will create directory out/ii_files/ for
11646
 
   # template instantiation
11647
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11648
 
   $rm out/* && rmdir out
11649
 
   cd ..
11650
 
   rmdir conftest
11651
 
   $rm conftest*
11652
 
 
11653
 
fi
11654
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11655
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13956
 
 
13957
 
 
13958
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13959
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13960
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
13961
  $as_echo_n "(cached) " >&6
 
13962
else
 
13963
  lt_cv_prog_compiler_c_o_CXX=no
 
13964
   $RM -r conftest 2>/dev/null
 
13965
   mkdir conftest
 
13966
   cd conftest
 
13967
   mkdir out
 
13968
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13969
 
 
13970
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13971
   # Insert the option either (1) after the last *FLAGS variable, or
 
13972
   # (2) before a word containing "conftest.", or (3) at the end.
 
13973
   # Note that $ac_compile itself does not contain backslashes and begins
 
13974
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13975
   lt_compile=`echo "$ac_compile" | $SED \
 
13976
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13977
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13978
   -e 's:$: $lt_compiler_flag:'`
 
13979
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
13980
   (eval "$lt_compile" 2>out/conftest.err)
 
13981
   ac_status=$?
 
13982
   cat out/conftest.err >&5
 
13983
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13984
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13985
   then
 
13986
     # The compiler can only warn and ignore the option if not recognized
 
13987
     # So say no if there are warnings
 
13988
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
13989
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13990
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13991
       lt_cv_prog_compiler_c_o_CXX=yes
 
13992
     fi
 
13993
   fi
 
13994
   chmod u+w . 2>&5
 
13995
   $RM conftest*
 
13996
   # SGI C++ compiler will create directory out/ii_files/ for
 
13997
   # template instantiation
 
13998
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13999
   $RM out/* && rmdir out
 
14000
   cd ..
 
14001
   $RM -r conftest
 
14002
   $RM conftest*
 
14003
 
 
14004
fi
 
14005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14006
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14007
 
 
14008
 
 
14009
 
 
14010
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14011
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14012
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14013
  $as_echo_n "(cached) " >&6
 
14014
else
 
14015
  lt_cv_prog_compiler_c_o_CXX=no
 
14016
   $RM -r conftest 2>/dev/null
 
14017
   mkdir conftest
 
14018
   cd conftest
 
14019
   mkdir out
 
14020
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14021
 
 
14022
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14023
   # Insert the option either (1) after the last *FLAGS variable, or
 
14024
   # (2) before a word containing "conftest.", or (3) at the end.
 
14025
   # Note that $ac_compile itself does not contain backslashes and begins
 
14026
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14027
   lt_compile=`echo "$ac_compile" | $SED \
 
14028
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14029
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14030
   -e 's:$: $lt_compiler_flag:'`
 
14031
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14032
   (eval "$lt_compile" 2>out/conftest.err)
 
14033
   ac_status=$?
 
14034
   cat out/conftest.err >&5
 
14035
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14036
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14037
   then
 
14038
     # The compiler can only warn and ignore the option if not recognized
 
14039
     # So say no if there are warnings
 
14040
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14041
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14042
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14043
       lt_cv_prog_compiler_c_o_CXX=yes
 
14044
     fi
 
14045
   fi
 
14046
   chmod u+w . 2>&5
 
14047
   $RM conftest*
 
14048
   # SGI C++ compiler will create directory out/ii_files/ for
 
14049
   # template instantiation
 
14050
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14051
   $RM out/* && rmdir out
 
14052
   cd ..
 
14053
   $RM -r conftest
 
14054
   $RM conftest*
 
14055
 
 
14056
fi
 
14057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14058
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14059
 
 
14060
 
11656
14061
 
11657
14062
 
11658
14063
hard_links="nottested"
11659
14064
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11660
14065
  # do not overwrite the value of need_locks provided by the user
11661
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11662
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14066
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14067
$as_echo_n "checking if we can lock with hard links... " >&6; }
11663
14068
  hard_links=yes
11664
 
  $rm conftest*
 
14069
  $RM conftest*
11665
14070
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11666
14071
  touch conftest.a
11667
14072
  ln conftest.a conftest.b 2>&5 || hard_links=no
11668
14073
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11669
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11670
 
echo "${ECHO_T}$hard_links" >&6
 
14074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14075
$as_echo "$hard_links" >&6; }
11671
14076
  if test "$hard_links" = no; then
11672
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11673
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14077
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14078
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11674
14079
    need_locks=warn
11675
14080
  fi
11676
14081
else
11677
14082
  need_locks=no
11678
14083
fi
11679
14084
 
11680
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11681
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14085
 
 
14086
 
 
14087
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14088
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11682
14089
 
11683
14090
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14091
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11684
14092
  case $host_os in
11685
 
  aix4* | aix5*)
 
14093
  aix[4-9]*)
11686
14094
    # If we're using GNU nm, then we don't want the "-C" option.
11687
14095
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11688
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11689
 
      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'
 
14096
    # Also, AIX nm treats weak defined symbols like other global defined
 
14097
    # symbols, whereas GNU nm marks them as "W".
 
14098
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14099
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11690
14100
    else
11691
 
      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'
 
14101
      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'
11692
14102
    fi
11693
14103
    ;;
11694
14104
  pw32*)
11695
14105
    export_symbols_cmds_CXX="$ltdll_cmds"
11696
 
  ;;
11697
 
  cygwin* | mingw*)
11698
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11699
 
  ;;
 
14106
    ;;
 
14107
  cygwin* | mingw* | cegcc*)
 
14108
    case $cc_basename in
 
14109
    cl*) ;;
 
14110
    *)
 
14111
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14112
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14113
      ;;
 
14114
    esac
 
14115
    ;;
 
14116
  linux* | k*bsd*-gnu | gnu*)
 
14117
    link_all_deplibs_CXX=no
 
14118
    ;;
11700
14119
  *)
11701
14120
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11702
 
  ;;
 
14121
    ;;
11703
14122
  esac
11704
14123
 
11705
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11706
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
14124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14125
$as_echo "$ld_shlibs_CXX" >&6; }
11707
14126
test "$ld_shlibs_CXX" = no && can_build_shared=no
11708
14127
 
 
14128
with_gnu_ld_CXX=$with_gnu_ld
 
14129
 
 
14130
 
 
14131
 
 
14132
 
 
14133
 
 
14134
 
11709
14135
#
11710
14136
# Do we need to explicitly link libc?
11711
14137
#
11723
14149
      # Test whether the compiler implicitly links with -lc since on some
11724
14150
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11725
14151
      # to ld, don't add -lc before -lgcc.
11726
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11727
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11728
 
      $rm conftest*
11729
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14152
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14153
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14154
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14155
  $as_echo_n "(cached) " >&6
 
14156
else
 
14157
  $RM conftest*
 
14158
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11730
14159
 
11731
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14160
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11732
14161
  (eval $ac_compile) 2>&5
11733
14162
  ac_status=$?
11734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
 
  (exit $ac_status); } 2>conftest.err; then
11736
 
        soname=conftest
11737
 
        lib=conftest
11738
 
        libobjs=conftest.$ac_objext
11739
 
        deplibs=
11740
 
        wl=$lt_prog_compiler_wl_CXX
11741
 
        pic_flag=$lt_prog_compiler_pic_CXX
11742
 
        compiler_flags=-v
11743
 
        linker_flags=-v
11744
 
        verstring=
11745
 
        output_objdir=.
11746
 
        libname=conftest
11747
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11748
 
        allow_undefined_flag_CXX=
11749
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11750
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14163
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14164
  test $ac_status = 0; } 2>conftest.err; then
 
14165
          soname=conftest
 
14166
          lib=conftest
 
14167
          libobjs=conftest.$ac_objext
 
14168
          deplibs=
 
14169
          wl=$lt_prog_compiler_wl_CXX
 
14170
          pic_flag=$lt_prog_compiler_pic_CXX
 
14171
          compiler_flags=-v
 
14172
          linker_flags=-v
 
14173
          verstring=
 
14174
          output_objdir=.
 
14175
          libname=conftest
 
14176
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14177
          allow_undefined_flag_CXX=
 
14178
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14179
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11751
14180
  ac_status=$?
11752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753
 
  (exit $ac_status); }
11754
 
        then
11755
 
          archive_cmds_need_lc_CXX=no
11756
 
        else
11757
 
          archive_cmds_need_lc_CXX=yes
11758
 
        fi
11759
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11760
 
      else
11761
 
        cat conftest.err 1>&5
11762
 
      fi
11763
 
      $rm conftest*
11764
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11765
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
14181
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14182
  test $ac_status = 0; }
 
14183
          then
 
14184
            lt_cv_archive_cmds_need_lc_CXX=no
 
14185
          else
 
14186
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14187
          fi
 
14188
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14189
        else
 
14190
          cat conftest.err 1>&5
 
14191
        fi
 
14192
        $RM conftest*
 
14193
 
 
14194
fi
 
14195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14196
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14197
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
11766
14198
      ;;
11767
14199
    esac
11768
14200
  fi
11769
14201
  ;;
11770
14202
esac
11771
14203
 
11772
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11773
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14204
 
 
14205
 
 
14206
 
 
14207
 
 
14208
 
 
14209
 
 
14210
 
 
14211
 
 
14212
 
 
14213
 
 
14214
 
 
14215
 
 
14216
 
 
14217
 
 
14218
 
 
14219
 
 
14220
 
 
14221
 
 
14222
 
 
14223
 
 
14224
 
 
14225
 
 
14226
 
 
14227
 
 
14228
 
 
14229
 
 
14230
 
 
14231
 
 
14232
 
 
14233
 
 
14234
 
 
14235
 
 
14236
 
 
14237
 
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
 
 
14245
 
 
14246
 
 
14247
 
 
14248
 
 
14249
 
 
14250
 
 
14251
 
 
14252
 
 
14253
 
 
14254
 
 
14255
 
 
14256
 
 
14257
 
 
14258
 
 
14259
 
 
14260
 
 
14261
 
 
14262
 
 
14263
 
 
14264
 
 
14265
 
 
14266
 
 
14267
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14268
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14269
 
11774
14270
library_names_spec=
11775
14271
libname_spec='lib$name'
11776
14272
soname_spec=
11784
14280
version_type=none
11785
14281
dynamic_linker="$host_os ld.so"
11786
14282
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11787
 
if test "$GCC" = yes; then
11788
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11789
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11790
 
    # if the path contains ";" then we assume it to be the separator
11791
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11792
 
    # assumed that no part of a normal pathname contains ";" but that should
11793
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11794
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11795
 
  else
11796
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11797
 
  fi
11798
 
else
11799
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11800
 
fi
11801
14283
need_lib_prefix=unknown
11802
14284
hardcode_into_libs=no
11803
14285
 
11815
14297
  soname_spec='${libname}${release}${shared_ext}$major'
11816
14298
  ;;
11817
14299
 
11818
 
aix4* | aix5*)
 
14300
aix[4-9]*)
11819
14301
  version_type=linux
11820
14302
  need_lib_prefix=no
11821
14303
  need_version=no
11834
14316
      aix4 | aix4.[01] | aix4.[01].*)
11835
14317
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11836
14318
           echo ' yes '
11837
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14319
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11838
14320
        :
11839
14321
      else
11840
14322
        can_build_shared=no
11860
14342
  ;;
11861
14343
 
11862
14344
amigaos*)
11863
 
  library_names_spec='$libname.ixlibrary $libname.a'
11864
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11865
 
  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'
 
14345
  case $host_cpu in
 
14346
  powerpc)
 
14347
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14348
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14349
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14350
    ;;
 
14351
  m68k)
 
14352
    library_names_spec='$libname.ixlibrary $libname.a'
 
14353
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14354
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14355
    ;;
 
14356
  esac
11866
14357
  ;;
11867
14358
 
11868
14359
beos*)
11885
14376
  # libtool to hard-code these into programs
11886
14377
  ;;
11887
14378
 
11888
 
cygwin* | mingw* | pw32*)
 
14379
cygwin* | mingw* | pw32* | cegcc*)
11889
14380
  version_type=windows
11890
14381
  shrext_cmds=".dll"
11891
14382
  need_version=no
11892
14383
  need_lib_prefix=no
11893
14384
 
11894
 
  case $GCC,$host_os in
11895
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14385
  case $GCC,$cc_basename in
 
14386
  yes,*)
 
14387
    # gcc
11896
14388
    library_names_spec='$libname.dll.a'
11897
14389
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11898
14390
    postinstall_cmds='base_file=`basename \${file}`~
11899
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14391
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11900
14392
      dldir=$destdir/`dirname \$dlpath`~
11901
14393
      test -d \$dldir || mkdir -p \$dldir~
11902
14394
      $install_prog $dir/$dlname \$dldir/$dlname~
11903
 
      chmod a+x \$dldir/$dlname'
 
14395
      chmod a+x \$dldir/$dlname~
 
14396
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14397
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14398
      fi'
11904
14399
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11905
14400
      dlpath=$dir/\$dldll~
11906
 
       $rm \$dlpath'
 
14401
       $RM \$dlpath'
11907
14402
    shlibpath_overrides_runpath=yes
11908
14403
 
11909
14404
    case $host_os in
11910
14405
    cygwin*)
11911
14406
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11912
14407
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14408
 
11914
14409
      ;;
11915
 
    mingw*)
 
14410
    mingw* | cegcc*)
11916
14411
      # MinGW DLLs use traditional 'lib' prefix
11917
14412
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11919
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11920
 
        # It is most probably a Windows format PATH printed by
11921
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11922
 
        # path with ; separators, and with drive letters. We can handle the
11923
 
        # drive letters (cygwin fileutils understands them), so leave them,
11924
 
        # especially as we might pass files found there to a mingw objdump,
11925
 
        # which wouldn't understand a cygwinified path. Ahh.
11926
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11927
 
      else
11928
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11929
 
      fi
11930
14413
      ;;
11931
14414
    pw32*)
11932
14415
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11933
14416
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11934
14417
      ;;
11935
14418
    esac
 
14419
    dynamic_linker='Win32 ld.exe'
 
14420
    ;;
 
14421
 
 
14422
  *,cl*)
 
14423
    # Native MSVC
 
14424
    libname_spec='$name'
 
14425
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14426
    library_names_spec='${libname}.dll.lib'
 
14427
 
 
14428
    case $build_os in
 
14429
    mingw*)
 
14430
      sys_lib_search_path_spec=
 
14431
      lt_save_ifs=$IFS
 
14432
      IFS=';'
 
14433
      for lt_path in $LIB
 
14434
      do
 
14435
        IFS=$lt_save_ifs
 
14436
        # Let DOS variable expansion print the short 8.3 style file name.
 
14437
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
14438
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
14439
      done
 
14440
      IFS=$lt_save_ifs
 
14441
      # Convert to MSYS style.
 
14442
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
14443
      ;;
 
14444
    cygwin*)
 
14445
      # Convert to unix form, then to dos form, then back to unix form
 
14446
      # but this time dos style (no spaces!) so that the unix form looks
 
14447
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
14448
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
14449
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
14450
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14451
      ;;
 
14452
    *)
 
14453
      sys_lib_search_path_spec="$LIB"
 
14454
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14455
        # It is most probably a Windows format PATH.
 
14456
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14457
      else
 
14458
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14459
      fi
 
14460
      # FIXME: find the short name or the path components, as spaces are
 
14461
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
14462
      ;;
 
14463
    esac
 
14464
 
 
14465
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14466
    postinstall_cmds='base_file=`basename \${file}`~
 
14467
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14468
      dldir=$destdir/`dirname \$dlpath`~
 
14469
      test -d \$dldir || mkdir -p \$dldir~
 
14470
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14471
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14472
      dlpath=$dir/\$dldll~
 
14473
       $RM \$dlpath'
 
14474
    shlibpath_overrides_runpath=yes
 
14475
    dynamic_linker='Win32 link.exe'
11936
14476
    ;;
11937
14477
 
11938
14478
  *)
 
14479
    # Assume MSVC wrapper
11939
14480
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14481
    dynamic_linker='Win32 ld.exe'
11940
14482
    ;;
11941
14483
  esac
11942
 
  dynamic_linker='Win32 ld.exe'
11943
14484
  # FIXME: first we should search . and the directory the executable is in
11944
14485
  shlibpath_var=PATH
11945
14486
  ;;
11949
14490
  version_type=darwin
11950
14491
  need_lib_prefix=no
11951
14492
  need_version=no
11952
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14493
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11953
14494
  soname_spec='${libname}${release}${major}$shared_ext'
11954
14495
  shlibpath_overrides_runpath=yes
11955
14496
  shlibpath_var=DYLD_LIBRARY_PATH
11956
14497
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11957
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11958
 
  if test "$GCC" = yes; then
11959
 
    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"`
11960
 
  else
11961
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11962
 
  fi
 
14498
 
11963
14499
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11964
14500
  ;;
11965
14501
 
11976
14512
  dynamic_linker=no
11977
14513
  ;;
11978
14514
 
11979
 
kfreebsd*-gnu)
11980
 
  version_type=linux
11981
 
  need_lib_prefix=no
11982
 
  need_version=no
11983
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11984
 
  soname_spec='${libname}${release}${shared_ext}$major'
11985
 
  shlibpath_var=LD_LIBRARY_PATH
11986
 
  shlibpath_overrides_runpath=no
11987
 
  hardcode_into_libs=yes
11988
 
  dynamic_linker='GNU ld.so'
11989
 
  ;;
11990
 
 
11991
14515
freebsd* | dragonfly*)
11992
14516
  # DragonFly does not have aout.  When/if they implement a new
11993
14517
  # versioning mechanism, adjust this.
12025
14549
    shlibpath_overrides_runpath=no
12026
14550
    hardcode_into_libs=yes
12027
14551
    ;;
12028
 
  freebsd*) # from 4.6 on
 
14552
  *) # from 4.6 on, and DragonFly
12029
14553
    shlibpath_overrides_runpath=yes
12030
14554
    hardcode_into_libs=yes
12031
14555
    ;;
12039
14563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12040
14564
  soname_spec='${libname}${release}${shared_ext}$major'
12041
14565
  shlibpath_var=LD_LIBRARY_PATH
 
14566
  shlibpath_overrides_runpath=no
 
14567
  hardcode_into_libs=yes
 
14568
  ;;
 
14569
 
 
14570
haiku*)
 
14571
  version_type=linux
 
14572
  need_lib_prefix=no
 
14573
  need_version=no
 
14574
  dynamic_linker="$host_os runtime_loader"
 
14575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14576
  soname_spec='${libname}${release}${shared_ext}$major'
 
14577
  shlibpath_var=LIBRARY_PATH
 
14578
  shlibpath_overrides_runpath=yes
 
14579
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12042
14580
  hardcode_into_libs=yes
12043
14581
  ;;
12044
14582
 
12064
14602
    fi
12065
14603
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12066
14604
    ;;
12067
 
   hppa*64*)
12068
 
     shrext_cmds='.sl'
12069
 
     hardcode_into_libs=yes
12070
 
     dynamic_linker="$host_os dld.sl"
12071
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12072
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12073
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074
 
     soname_spec='${libname}${release}${shared_ext}$major'
12075
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12076
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12077
 
     ;;
12078
 
   *)
 
14605
  hppa*64*)
 
14606
    shrext_cmds='.sl'
 
14607
    hardcode_into_libs=yes
 
14608
    dynamic_linker="$host_os dld.sl"
 
14609
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14610
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14611
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14612
    soname_spec='${libname}${release}${shared_ext}$major'
 
14613
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14614
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14615
    ;;
 
14616
  *)
12079
14617
    shrext_cmds='.sl'
12080
14618
    dynamic_linker="$host_os dld.sl"
12081
14619
    shlibpath_var=SHLIB_PATH
12084
14622
    soname_spec='${libname}${release}${shared_ext}$major'
12085
14623
    ;;
12086
14624
  esac
12087
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14625
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12088
14626
  postinstall_cmds='chmod 555 $lib'
 
14627
  # or fails outright, so override atomically:
 
14628
  install_override_mode=555
12089
14629
  ;;
12090
14630
 
12091
 
interix3*)
 
14631
interix[3-9]*)
12092
14632
  version_type=linux
12093
14633
  need_lib_prefix=no
12094
14634
  need_version=no
12143
14683
  ;;
12144
14684
 
12145
14685
# This must be Linux ELF.
12146
 
linux*)
 
14686
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12147
14687
  version_type=linux
12148
14688
  need_lib_prefix=no
12149
14689
  need_version=no
12152
14692
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12153
14693
  shlibpath_var=LD_LIBRARY_PATH
12154
14694
  shlibpath_overrides_runpath=no
 
14695
 
 
14696
  # Some binutils ld are patched to set DT_RUNPATH
 
14697
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
14698
  $as_echo_n "(cached) " >&6
 
14699
else
 
14700
  lt_cv_shlibpath_overrides_runpath=no
 
14701
    save_LDFLAGS=$LDFLAGS
 
14702
    save_libdir=$libdir
 
14703
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14704
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14705
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14706
/* end confdefs.h.  */
 
14707
 
 
14708
int
 
14709
main ()
 
14710
{
 
14711
 
 
14712
  ;
 
14713
  return 0;
 
14714
}
 
14715
_ACEOF
 
14716
if ac_fn_cxx_try_link "$LINENO"; then :
 
14717
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14718
  lt_cv_shlibpath_overrides_runpath=yes
 
14719
fi
 
14720
fi
 
14721
rm -f core conftest.err conftest.$ac_objext \
 
14722
    conftest$ac_exeext conftest.$ac_ext
 
14723
    LDFLAGS=$save_LDFLAGS
 
14724
    libdir=$save_libdir
 
14725
 
 
14726
fi
 
14727
 
 
14728
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
14729
 
12155
14730
  # This implies no fast_install, which is unacceptable.
12156
14731
  # Some rework will be needed to allow for fast_install
12157
14732
  # before this can be enabled.
12159
14734
 
12160
14735
  # Append ld.so.conf contents to the search path
12161
14736
  if test -f /etc/ld.so.conf; then
12162
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14737
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12163
14738
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12164
14739
  fi
12165
14740
 
12172
14747
  dynamic_linker='GNU/Linux ld.so'
12173
14748
  ;;
12174
14749
 
12175
 
knetbsd*-gnu)
 
14750
netbsdelf*-gnu)
12176
14751
  version_type=linux
12177
14752
  need_lib_prefix=no
12178
14753
  need_version=no
12181
14756
  shlibpath_var=LD_LIBRARY_PATH
12182
14757
  shlibpath_overrides_runpath=no
12183
14758
  hardcode_into_libs=yes
12184
 
  dynamic_linker='GNU ld.so'
 
14759
  dynamic_linker='NetBSD ld.elf_so'
12185
14760
  ;;
12186
14761
 
12187
14762
netbsd*)
12188
14763
  version_type=sunos
12189
14764
  need_lib_prefix=no
12190
14765
  need_version=no
12191
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14766
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12192
14767
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12193
14768
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12194
14769
    dynamic_linker='NetBSD (a.out) ld.so'
12209
14784
  shlibpath_overrides_runpath=yes
12210
14785
  ;;
12211
14786
 
12212
 
nto-qnx*)
12213
 
  version_type=linux
 
14787
*nto* | *qnx*)
 
14788
  version_type=qnx
12214
14789
  need_lib_prefix=no
12215
14790
  need_version=no
12216
14791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12217
14792
  soname_spec='${libname}${release}${shared_ext}$major'
12218
14793
  shlibpath_var=LD_LIBRARY_PATH
12219
 
  shlibpath_overrides_runpath=yes
 
14794
  shlibpath_overrides_runpath=no
 
14795
  hardcode_into_libs=yes
 
14796
  dynamic_linker='ldqnx.so'
12220
14797
  ;;
12221
14798
 
12222
14799
openbsd*)
12225
14802
  need_lib_prefix=no
12226
14803
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12227
14804
  case $host_os in
12228
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12229
 
    *)                         need_version=no  ;;
 
14805
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14806
    *)                          need_version=no  ;;
12230
14807
  esac
12231
14808
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232
14809
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233
14810
  shlibpath_var=LD_LIBRARY_PATH
12234
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14811
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12235
14812
    case $host_os in
12236
14813
      openbsd2.[89] | openbsd2.[89].*)
12237
14814
        shlibpath_overrides_runpath=no
12265
14842
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12266
14843
  ;;
12267
14844
 
 
14845
rdos*)
 
14846
  dynamic_linker=no
 
14847
  ;;
 
14848
 
12268
14849
solaris*)
12269
14850
  version_type=linux
12270
14851
  need_lib_prefix=no
12299
14880
    sni)
12300
14881
      shlibpath_overrides_runpath=no
12301
14882
      need_lib_prefix=no
12302
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12303
14883
      runpath_var=LD_RUN_PATH
12304
14884
      ;;
12305
14885
    siemens)
12330
14910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12331
14911
  soname_spec='${libname}${release}${shared_ext}$major'
12332
14912
  shlibpath_var=LD_LIBRARY_PATH
 
14913
  shlibpath_overrides_runpath=yes
12333
14914
  hardcode_into_libs=yes
12334
14915
  if test "$with_gnu_ld" = yes; then
12335
14916
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12336
 
    shlibpath_overrides_runpath=no
12337
14917
  else
12338
14918
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12339
 
    shlibpath_overrides_runpath=yes
12340
14919
    case $host_os in
12341
14920
      sco3.2v5*)
12342
14921
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12346
14925
  sys_lib_dlsearch_path_spec='/usr/lib'
12347
14926
  ;;
12348
14927
 
 
14928
tpf*)
 
14929
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14930
  version_type=linux
 
14931
  need_lib_prefix=no
 
14932
  need_version=no
 
14933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14934
  shlibpath_var=LD_LIBRARY_PATH
 
14935
  shlibpath_overrides_runpath=no
 
14936
  hardcode_into_libs=yes
 
14937
  ;;
 
14938
 
12349
14939
uts4*)
12350
14940
  version_type=linux
12351
14941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357
14947
  dynamic_linker=no
12358
14948
  ;;
12359
14949
esac
12360
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12361
 
echo "${ECHO_T}$dynamic_linker" >&6
 
14950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
14951
$as_echo "$dynamic_linker" >&6; }
12362
14952
test "$dynamic_linker" = no && can_build_shared=no
12363
14953
 
12364
14954
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12366
14956
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12367
14957
fi
12368
14958
 
12369
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12370
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14959
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14960
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14961
fi
 
14962
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14963
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14964
fi
 
14965
 
 
14966
 
 
14967
 
 
14968
 
 
14969
 
 
14970
 
 
14971
 
 
14972
 
 
14973
 
 
14974
 
 
14975
 
 
14976
 
 
14977
 
 
14978
 
 
14979
 
 
14980
 
 
14981
 
 
14982
 
 
14983
 
 
14984
 
 
14985
 
 
14986
 
 
14987
 
 
14988
 
 
14989
 
 
14990
 
 
14991
 
 
14992
 
 
14993
 
 
14994
 
 
14995
 
 
14996
 
 
14997
 
 
14998
 
 
14999
 
 
15000
 
 
15001
 
 
15002
 
 
15003
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15004
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12371
15005
hardcode_action_CXX=
12372
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12373
 
   test -n "$runpath_var_CXX" || \
 
15006
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15007
   test -n "$runpath_var_CXX" ||
12374
15008
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12375
15009
 
12376
 
  # We can hardcode non-existant directories.
 
15010
  # We can hardcode non-existent directories.
12377
15011
  if test "$hardcode_direct_CXX" != no &&
12378
15012
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12379
15013
     # have to relink, otherwise we might link with an installed library
12380
15014
     # when we should be linking with a yet-to-be-installed one
12381
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15015
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12382
15016
     test "$hardcode_minus_L_CXX" != no; then
12383
15017
    # Linking always hardcodes the temporary library directory.
12384
15018
    hardcode_action_CXX=relink
12391
15025
  # directories.
12392
15026
  hardcode_action_CXX=unsupported
12393
15027
fi
12394
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12395
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
12396
 
 
12397
 
if test "$hardcode_action_CXX" = relink; then
12398
 
  # Fast installation is not supported
12399
 
  enable_fast_install=no
12400
 
elif test "$shlibpath_overrides_runpath" = yes ||
12401
 
     test "$enable_shared" = no; then
12402
 
  # Fast installation is not necessary
12403
 
  enable_fast_install=needless
12404
 
fi
12405
 
 
12406
 
 
12407
 
# The else clause should only fire when bootstrapping the
12408
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
12409
 
# with your package, and you will get complaints that there are
12410
 
# no rules to generate ltmain.sh.
12411
 
if test -f "$ltmain"; then
12412
 
  # See if we are running on zsh, and set the options which allow our commands through
12413
 
  # without removal of \ escapes.
12414
 
  if test -n "${ZSH_VERSION+set}" ; then
12415
 
    setopt NO_GLOB_SUBST
12416
 
  fi
12417
 
  # Now quote all the things that may contain metacharacters while being
12418
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12419
 
  # variables and quote the copies for generation of the libtool script.
12420
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12421
 
    SED SHELL STRIP \
12422
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12423
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12424
 
    deplibs_check_method reload_flag reload_cmds need_locks \
12425
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12426
 
    lt_cv_sys_global_symbol_to_c_name_address \
12427
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12428
 
    old_postinstall_cmds old_postuninstall_cmds \
12429
 
    compiler_CXX \
12430
 
    CC_CXX \
12431
 
    LD_CXX \
12432
 
    lt_prog_compiler_wl_CXX \
12433
 
    lt_prog_compiler_pic_CXX \
12434
 
    lt_prog_compiler_static_CXX \
12435
 
    lt_prog_compiler_no_builtin_flag_CXX \
12436
 
    export_dynamic_flag_spec_CXX \
12437
 
    thread_safe_flag_spec_CXX \
12438
 
    whole_archive_flag_spec_CXX \
12439
 
    enable_shared_with_static_runtimes_CXX \
12440
 
    old_archive_cmds_CXX \
12441
 
    old_archive_from_new_cmds_CXX \
12442
 
    predep_objects_CXX \
12443
 
    postdep_objects_CXX \
12444
 
    predeps_CXX \
12445
 
    postdeps_CXX \
12446
 
    compiler_lib_search_path_CXX \
12447
 
    archive_cmds_CXX \
12448
 
    archive_expsym_cmds_CXX \
12449
 
    postinstall_cmds_CXX \
12450
 
    postuninstall_cmds_CXX \
12451
 
    old_archive_from_expsyms_cmds_CXX \
12452
 
    allow_undefined_flag_CXX \
12453
 
    no_undefined_flag_CXX \
12454
 
    export_symbols_cmds_CXX \
12455
 
    hardcode_libdir_flag_spec_CXX \
12456
 
    hardcode_libdir_flag_spec_ld_CXX \
12457
 
    hardcode_libdir_separator_CXX \
12458
 
    hardcode_automatic_CXX \
12459
 
    module_cmds_CXX \
12460
 
    module_expsym_cmds_CXX \
12461
 
    lt_cv_prog_compiler_c_o_CXX \
12462
 
    exclude_expsyms_CXX \
12463
 
    include_expsyms_CXX; do
12464
 
 
12465
 
    case $var in
12466
 
    old_archive_cmds_CXX | \
12467
 
    old_archive_from_new_cmds_CXX | \
12468
 
    archive_cmds_CXX | \
12469
 
    archive_expsym_cmds_CXX | \
12470
 
    module_cmds_CXX | \
12471
 
    module_expsym_cmds_CXX | \
12472
 
    old_archive_from_expsyms_cmds_CXX | \
12473
 
    export_symbols_cmds_CXX | \
12474
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12475
 
    postinstall_cmds | postuninstall_cmds | \
12476
 
    old_postinstall_cmds | old_postuninstall_cmds | \
12477
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12478
 
      # Double-quote double-evaled strings.
12479
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12480
 
      ;;
12481
 
    *)
12482
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12483
 
      ;;
12484
 
    esac
12485
 
  done
12486
 
 
12487
 
  case $lt_echo in
12488
 
  *'\$0 --fallback-echo"')
12489
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12490
 
    ;;
12491
 
  esac
12492
 
 
12493
 
cfgfile="$ofile"
12494
 
 
12495
 
  cat <<__EOF__ >> "$cfgfile"
12496
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12497
 
 
12498
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12499
 
 
12500
 
# Shell to use when invoking shell scripts.
12501
 
SHELL=$lt_SHELL
12502
 
 
12503
 
# Whether or not to build shared libraries.
12504
 
build_libtool_libs=$enable_shared
12505
 
 
12506
 
# Whether or not to build static libraries.
12507
 
build_old_libs=$enable_static
12508
 
 
12509
 
# Whether or not to add -lc for building shared libraries.
12510
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12511
 
 
12512
 
# Whether or not to disallow shared libs when runtime libs are static
12513
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12514
 
 
12515
 
# Whether or not to optimize for fast installation.
12516
 
fast_install=$enable_fast_install
12517
 
 
12518
 
# The host system.
12519
 
host_alias=$host_alias
12520
 
host=$host
12521
 
host_os=$host_os
12522
 
 
12523
 
# The build system.
12524
 
build_alias=$build_alias
12525
 
build=$build
12526
 
build_os=$build_os
12527
 
 
12528
 
# An echo program that does not interpret backslashes.
12529
 
echo=$lt_echo
12530
 
 
12531
 
# The archiver.
12532
 
AR=$lt_AR
12533
 
AR_FLAGS=$lt_AR_FLAGS
12534
 
 
12535
 
# A C compiler.
12536
 
LTCC=$lt_LTCC
12537
 
 
12538
 
# LTCC compiler flags.
12539
 
LTCFLAGS=$lt_LTCFLAGS
12540
 
 
12541
 
# A language-specific compiler.
12542
 
CC=$lt_compiler_CXX
12543
 
 
12544
 
# Is the compiler the GNU C compiler?
12545
 
with_gcc=$GCC_CXX
12546
 
 
12547
 
# An ERE matcher.
12548
 
EGREP=$lt_EGREP
12549
 
 
12550
 
# The linker used to build libraries.
12551
 
LD=$lt_LD_CXX
12552
 
 
12553
 
# Whether we need hard or soft links.
12554
 
LN_S=$lt_LN_S
12555
 
 
12556
 
# A BSD-compatible nm program.
12557
 
NM=$lt_NM
12558
 
 
12559
 
# A symbol stripping program
12560
 
STRIP=$lt_STRIP
12561
 
 
12562
 
# Used to examine libraries when file_magic_cmd begins "file"
12563
 
MAGIC_CMD=$MAGIC_CMD
12564
 
 
12565
 
# Used on cygwin: DLL creation program.
12566
 
DLLTOOL="$DLLTOOL"
12567
 
 
12568
 
# Used on cygwin: object dumper.
12569
 
OBJDUMP="$OBJDUMP"
12570
 
 
12571
 
# Used on cygwin: assembler.
12572
 
AS="$AS"
12573
 
 
12574
 
# The name of the directory that contains temporary libtool files.
12575
 
objdir=$objdir
12576
 
 
12577
 
# How to create reloadable object files.
12578
 
reload_flag=$lt_reload_flag
12579
 
reload_cmds=$lt_reload_cmds
12580
 
 
12581
 
# How to pass a linker flag through the compiler.
12582
 
wl=$lt_lt_prog_compiler_wl_CXX
12583
 
 
12584
 
# Object file suffix (normally "o").
12585
 
objext="$ac_objext"
12586
 
 
12587
 
# Old archive suffix (normally "a").
12588
 
libext="$libext"
12589
 
 
12590
 
# Shared library suffix (normally ".so").
12591
 
shrext_cmds='$shrext_cmds'
12592
 
 
12593
 
# Executable file suffix (normally "").
12594
 
exeext="$exeext"
12595
 
 
12596
 
# Additional compiler flags for building library objects.
12597
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
12598
 
pic_mode=$pic_mode
12599
 
 
12600
 
# What is the maximum length of a command?
12601
 
max_cmd_len=$lt_cv_sys_max_cmd_len
12602
 
 
12603
 
# Does compiler simultaneously support -c and -o options?
12604
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12605
 
 
12606
 
# Must we lock files when doing compilation?
12607
 
need_locks=$lt_need_locks
12608
 
 
12609
 
# Do we need the lib prefix for modules?
12610
 
need_lib_prefix=$need_lib_prefix
12611
 
 
12612
 
# Do we need a version for libraries?
12613
 
need_version=$need_version
12614
 
 
12615
 
# Whether dlopen is supported.
12616
 
dlopen_support=$enable_dlopen
12617
 
 
12618
 
# Whether dlopen of programs is supported.
12619
 
dlopen_self=$enable_dlopen_self
12620
 
 
12621
 
# Whether dlopen of statically linked programs is supported.
12622
 
dlopen_self_static=$enable_dlopen_self_static
12623
 
 
12624
 
# Compiler flag to prevent dynamic linking.
12625
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
12626
 
 
12627
 
# Compiler flag to turn off builtin functions.
12628
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12629
 
 
12630
 
# Compiler flag to allow reflexive dlopens.
12631
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12632
 
 
12633
 
# Compiler flag to generate shared objects directly from archives.
12634
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12635
 
 
12636
 
# Compiler flag to generate thread-safe objects.
12637
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12638
 
 
12639
 
# Library versioning type.
12640
 
version_type=$version_type
12641
 
 
12642
 
# Format of library name prefix.
12643
 
libname_spec=$lt_libname_spec
12644
 
 
12645
 
# List of archive names.  First name is the real one, the rest are links.
12646
 
# The last name is the one that the linker finds with -lNAME.
12647
 
library_names_spec=$lt_library_names_spec
12648
 
 
12649
 
# The coded name of the library, if different from the real name.
12650
 
soname_spec=$lt_soname_spec
12651
 
 
12652
 
# Commands used to build and install an old-style archive.
12653
 
RANLIB=$lt_RANLIB
12654
 
old_archive_cmds=$lt_old_archive_cmds_CXX
12655
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12656
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12657
 
 
12658
 
# Create an old-style archive from a shared archive.
12659
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12660
 
 
12661
 
# Create a temporary old-style archive to link instead of a shared archive.
12662
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12663
 
 
12664
 
# Commands used to build and install a shared archive.
12665
 
archive_cmds=$lt_archive_cmds_CXX
12666
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12667
 
postinstall_cmds=$lt_postinstall_cmds
12668
 
postuninstall_cmds=$lt_postuninstall_cmds
12669
 
 
12670
 
# Commands used to build a loadable module (assumed same as above if empty)
12671
 
module_cmds=$lt_module_cmds_CXX
12672
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12673
 
 
12674
 
# Commands to strip libraries.
12675
 
old_striplib=$lt_old_striplib
12676
 
striplib=$lt_striplib
12677
 
 
12678
 
# Dependencies to place before the objects being linked to create a
12679
 
# shared library.
12680
 
predep_objects=$lt_predep_objects_CXX
12681
 
 
12682
 
# Dependencies to place after the objects being linked to create a
12683
 
# shared library.
12684
 
postdep_objects=$lt_postdep_objects_CXX
12685
 
 
12686
 
# Dependencies to place before the objects being linked to create a
12687
 
# shared library.
12688
 
predeps=$lt_predeps_CXX
12689
 
 
12690
 
# Dependencies to place after the objects being linked to create a
12691
 
# shared library.
12692
 
postdeps=$lt_postdeps_CXX
12693
 
 
12694
 
# The library search path used internally by the compiler when linking
12695
 
# a shared library.
12696
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12697
 
 
12698
 
# Method to check whether dependent libraries are shared objects.
12699
 
deplibs_check_method=$lt_deplibs_check_method
12700
 
 
12701
 
# Command to use when deplibs_check_method == file_magic.
12702
 
file_magic_cmd=$lt_file_magic_cmd
12703
 
 
12704
 
# Flag that allows shared libraries with undefined symbols to be built.
12705
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12706
 
 
12707
 
# Flag that forces no undefined symbols.
12708
 
no_undefined_flag=$lt_no_undefined_flag_CXX
12709
 
 
12710
 
# Commands used to finish a libtool library installation in a directory.
12711
 
finish_cmds=$lt_finish_cmds
12712
 
 
12713
 
# Same as above, but a single script fragment to be evaled but not shown.
12714
 
finish_eval=$lt_finish_eval
12715
 
 
12716
 
# Take the output of nm and produce a listing of raw symbols and C names.
12717
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12718
 
 
12719
 
# Transform the output of nm in a proper C declaration
12720
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12721
 
 
12722
 
# Transform the output of nm in a C name address pair
12723
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12724
 
 
12725
 
# This is the shared library runtime path variable.
12726
 
runpath_var=$runpath_var
12727
 
 
12728
 
# This is the shared library path variable.
12729
 
shlibpath_var=$shlibpath_var
12730
 
 
12731
 
# Is shlibpath searched before the hard-coded library search path?
12732
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12733
 
 
12734
 
# How to hardcode a shared library path into an executable.
12735
 
hardcode_action=$hardcode_action_CXX
12736
 
 
12737
 
# Whether we should hardcode library paths into libraries.
12738
 
hardcode_into_libs=$hardcode_into_libs
12739
 
 
12740
 
# Flag to hardcode \$libdir into a binary during linking.
12741
 
# This must work even if \$libdir does not exist.
12742
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12743
 
 
12744
 
# If ld is used when linking, flag to hardcode \$libdir into
12745
 
# a binary during linking. This must work even if \$libdir does
12746
 
# not exist.
12747
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12748
 
 
12749
 
# Whether we need a single -rpath flag with a separated argument.
12750
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12751
 
 
12752
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12753
 
# resulting binary.
12754
 
hardcode_direct=$hardcode_direct_CXX
12755
 
 
12756
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12757
 
# resulting binary.
12758
 
hardcode_minus_L=$hardcode_minus_L_CXX
12759
 
 
12760
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12761
 
# the resulting binary.
12762
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12763
 
 
12764
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12765
 
# and all subsequent libraries and executables linked against it.
12766
 
hardcode_automatic=$hardcode_automatic_CXX
12767
 
 
12768
 
# Variables whose values should be saved in libtool wrapper scripts and
12769
 
# restored at relink time.
12770
 
variables_saved_for_relink="$variables_saved_for_relink"
12771
 
 
12772
 
# Whether libtool must link a program against all its dependency libraries.
12773
 
link_all_deplibs=$link_all_deplibs_CXX
12774
 
 
12775
 
# Compile-time system search path for libraries
12776
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12777
 
 
12778
 
# Run-time system search path for libraries
12779
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12780
 
 
12781
 
# Fix the shell variable \$srcfile for the compiler.
12782
 
fix_srcfile_path="$fix_srcfile_path_CXX"
12783
 
 
12784
 
# Set to yes if exported symbols are required.
12785
 
always_export_symbols=$always_export_symbols_CXX
12786
 
 
12787
 
# The commands to list exported symbols.
12788
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12789
 
 
12790
 
# The commands to extract the exported symbol list from a shared archive.
12791
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12792
 
 
12793
 
# Symbols that should not be listed in the preloaded symbols.
12794
 
exclude_expsyms=$lt_exclude_expsyms_CXX
12795
 
 
12796
 
# Symbols that must always be exported.
12797
 
include_expsyms=$lt_include_expsyms_CXX
12798
 
 
12799
 
# ### END LIBTOOL TAG CONFIG: $tagname
12800
 
 
12801
 
__EOF__
12802
 
 
12803
 
 
12804
 
else
12805
 
  # If there is no Makefile yet, we rely on a make rule to execute
12806
 
  # `config.status --recheck' to rerun these tests and create the
12807
 
  # libtool script then.
12808
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12809
 
  if test -f "$ltmain_in"; then
12810
 
    test -f Makefile && make "$ltmain"
12811
 
  fi
12812
 
fi
12813
 
 
12814
 
 
12815
 
ac_ext=c
12816
 
ac_cpp='$CPP $CPPFLAGS'
12817
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820
 
 
12821
 
CC=$lt_save_CC
12822
 
LDCXX=$LD
12823
 
LD=$lt_save_LD
12824
 
GCC=$lt_save_GCC
12825
 
with_gnu_ldcxx=$with_gnu_ld
12826
 
with_gnu_ld=$lt_save_with_gnu_ld
12827
 
lt_cv_path_LDCXX=$lt_cv_path_LD
12828
 
lt_cv_path_LD=$lt_save_path_LD
12829
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12830
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12831
 
 
12832
 
        else
12833
 
          tagname=""
12834
 
        fi
12835
 
        ;;
12836
 
 
12837
 
      F77)
12838
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
12839
 
 
12840
 
ac_ext=f
12841
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12842
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12844
 
 
12845
 
 
12846
 
archive_cmds_need_lc_F77=no
12847
 
allow_undefined_flag_F77=
12848
 
always_export_symbols_F77=no
12849
 
archive_expsym_cmds_F77=
12850
 
export_dynamic_flag_spec_F77=
12851
 
hardcode_direct_F77=no
12852
 
hardcode_libdir_flag_spec_F77=
12853
 
hardcode_libdir_flag_spec_ld_F77=
12854
 
hardcode_libdir_separator_F77=
12855
 
hardcode_minus_L_F77=no
12856
 
hardcode_automatic_F77=no
12857
 
module_cmds_F77=
12858
 
module_expsym_cmds_F77=
12859
 
link_all_deplibs_F77=unknown
12860
 
old_archive_cmds_F77=$old_archive_cmds
12861
 
no_undefined_flag_F77=
12862
 
whole_archive_flag_spec_F77=
12863
 
enable_shared_with_static_runtimes_F77=no
12864
 
 
12865
 
# Source file extension for f77 test sources.
12866
 
ac_ext=f
12867
 
 
12868
 
# Object file extension for compiled f77 test sources.
12869
 
objext=o
12870
 
objext_F77=$objext
12871
 
 
12872
 
# Code to be used in simple compile tests
12873
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12874
 
 
12875
 
# Code to be used in simple link tests
12876
 
lt_simple_link_test_code="      program t\n      end\n"
12877
 
 
12878
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12879
 
 
12880
 
# If no C compiler was specified, use CC.
12881
 
LTCC=${LTCC-"$CC"}
12882
 
 
12883
 
# If no C compiler flags were specified, use CFLAGS.
12884
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12885
 
 
12886
 
# Allow CC to be a program name with arguments.
12887
 
compiler=$CC
12888
 
 
12889
 
 
12890
 
# save warnings/boilerplate of simple test code
12891
 
ac_outfile=conftest.$ac_objext
12892
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12893
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12894
 
_lt_compiler_boilerplate=`cat conftest.err`
12895
 
$rm conftest*
12896
 
 
12897
 
ac_outfile=conftest.$ac_objext
12898
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12899
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12900
 
_lt_linker_boilerplate=`cat conftest.err`
12901
 
$rm conftest*
12902
 
 
12903
 
 
12904
 
# Allow CC to be a program name with arguments.
12905
 
lt_save_CC="$CC"
12906
 
CC=${F77-"f77"}
12907
 
compiler=$CC
12908
 
compiler_F77=$CC
12909
 
for cc_temp in $compiler""; do
12910
 
  case $cc_temp in
12911
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12912
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12913
 
    \-*) ;;
12914
 
    *) break;;
12915
 
  esac
12916
 
done
12917
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12918
 
 
12919
 
 
12920
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12921
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12922
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12923
 
echo "${ECHO_T}$can_build_shared" >&6
12924
 
 
12925
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12926
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12927
 
test "$can_build_shared" = "no" && enable_shared=no
12928
 
 
12929
 
# On AIX, shared libraries and static libraries use the same namespace, and
12930
 
# are all built from PIC.
12931
 
case $host_os in
12932
 
aix3*)
12933
 
  test "$enable_shared" = yes && enable_static=no
12934
 
  if test -n "$RANLIB"; then
12935
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12936
 
    postinstall_cmds='$RANLIB $lib'
12937
 
  fi
12938
 
  ;;
12939
 
aix4* | aix5*)
12940
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12941
 
    test "$enable_shared" = yes && enable_static=no
12942
 
  fi
12943
 
  ;;
12944
 
esac
12945
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
12946
 
echo "${ECHO_T}$enable_shared" >&6
12947
 
 
12948
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12949
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12950
 
# Make sure either enable_shared or enable_static is yes.
12951
 
test "$enable_shared" = yes || enable_static=yes
12952
 
echo "$as_me:$LINENO: result: $enable_static" >&5
12953
 
echo "${ECHO_T}$enable_static" >&6
12954
 
 
12955
 
GCC_F77="$G77"
12956
 
LD_F77="$LD"
12957
 
 
12958
 
lt_prog_compiler_wl_F77=
12959
 
lt_prog_compiler_pic_F77=
12960
 
lt_prog_compiler_static_F77=
12961
 
 
12962
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12963
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12964
 
 
12965
 
  if test "$GCC" = yes; then
12966
 
    lt_prog_compiler_wl_F77='-Wl,'
12967
 
    lt_prog_compiler_static_F77='-static'
12968
 
 
12969
 
    case $host_os in
12970
 
      aix*)
12971
 
      # All AIX code is PIC.
12972
 
      if test "$host_cpu" = ia64; then
12973
 
        # AIX 5 now supports IA64 processor
12974
 
        lt_prog_compiler_static_F77='-Bstatic'
12975
 
      fi
12976
 
      ;;
12977
 
 
12978
 
    amigaos*)
12979
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12980
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12981
 
      # like `-m68040'.
12982
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12983
 
      ;;
12984
 
 
12985
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12986
 
      # PIC is the default for these OSes.
12987
 
      ;;
12988
 
 
12989
 
    mingw* | pw32* | os2*)
12990
 
      # This hack is so that the source file can tell whether it is being
12991
 
      # built for inclusion in a dll (and should export symbols for example).
12992
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12993
 
      ;;
12994
 
 
12995
 
    darwin* | rhapsody*)
12996
 
      # PIC is the default on this platform
12997
 
      # Common symbols not allowed in MH_DYLIB files
12998
 
      lt_prog_compiler_pic_F77='-fno-common'
12999
 
      ;;
13000
 
 
13001
 
    interix3*)
13002
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13003
 
      # Instead, we relocate shared libraries at runtime.
13004
 
      ;;
13005
 
 
13006
 
    msdosdjgpp*)
13007
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13008
 
      # on systems that don't support them.
13009
 
      lt_prog_compiler_can_build_shared_F77=no
13010
 
      enable_shared=no
13011
 
      ;;
13012
 
 
13013
 
    sysv4*MP*)
13014
 
      if test -d /usr/nec; then
13015
 
        lt_prog_compiler_pic_F77=-Kconform_pic
13016
 
      fi
13017
 
      ;;
13018
 
 
13019
 
    hpux*)
13020
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13021
 
      # not for PA HP-UX.
13022
 
      case $host_cpu in
13023
 
      hppa*64*|ia64*)
13024
 
        # +Z the default
13025
 
        ;;
13026
 
      *)
13027
 
        lt_prog_compiler_pic_F77='-fPIC'
13028
 
        ;;
13029
 
      esac
13030
 
      ;;
13031
 
 
13032
 
    *)
13033
 
      lt_prog_compiler_pic_F77='-fPIC'
13034
 
      ;;
13035
 
    esac
13036
 
  else
13037
 
    # PORTME Check for flag to pass linker flags through the system compiler.
13038
 
    case $host_os in
13039
 
    aix*)
13040
 
      lt_prog_compiler_wl_F77='-Wl,'
13041
 
      if test "$host_cpu" = ia64; then
13042
 
        # AIX 5 now supports IA64 processor
13043
 
        lt_prog_compiler_static_F77='-Bstatic'
13044
 
      else
13045
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13046
 
      fi
13047
 
      ;;
13048
 
      darwin*)
13049
 
        # PIC is the default on this platform
13050
 
        # Common symbols not allowed in MH_DYLIB files
13051
 
       case $cc_basename in
13052
 
         xlc*)
13053
 
         lt_prog_compiler_pic_F77='-qnocommon'
13054
 
         lt_prog_compiler_wl_F77='-Wl,'
13055
 
         ;;
13056
 
       esac
13057
 
       ;;
13058
 
 
13059
 
    mingw* | pw32* | os2*)
13060
 
      # This hack is so that the source file can tell whether it is being
13061
 
      # built for inclusion in a dll (and should export symbols for example).
13062
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13063
 
      ;;
13064
 
 
13065
 
    hpux9* | hpux10* | hpux11*)
13066
 
      lt_prog_compiler_wl_F77='-Wl,'
13067
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13068
 
      # not for PA HP-UX.
13069
 
      case $host_cpu in
13070
 
      hppa*64*|ia64*)
13071
 
        # +Z the default
13072
 
        ;;
13073
 
      *)
13074
 
        lt_prog_compiler_pic_F77='+Z'
13075
 
        ;;
13076
 
      esac
13077
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13078
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13079
 
      ;;
13080
 
 
13081
 
    irix5* | irix6* | nonstopux*)
13082
 
      lt_prog_compiler_wl_F77='-Wl,'
13083
 
      # PIC (with -KPIC) is the default.
13084
 
      lt_prog_compiler_static_F77='-non_shared'
13085
 
      ;;
13086
 
 
13087
 
    newsos6)
13088
 
      lt_prog_compiler_pic_F77='-KPIC'
13089
 
      lt_prog_compiler_static_F77='-Bstatic'
13090
 
      ;;
13091
 
 
13092
 
    linux*)
13093
 
      case $cc_basename in
13094
 
      icc* | ecc*)
13095
 
        lt_prog_compiler_wl_F77='-Wl,'
13096
 
        lt_prog_compiler_pic_F77='-KPIC'
13097
 
        lt_prog_compiler_static_F77='-static'
13098
 
        ;;
13099
 
      pgcc* | pgf77* | pgf90* | pgf95*)
13100
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
13101
 
        # which looks to be a dead project)
13102
 
        lt_prog_compiler_wl_F77='-Wl,'
13103
 
        lt_prog_compiler_pic_F77='-fpic'
13104
 
        lt_prog_compiler_static_F77='-Bstatic'
13105
 
        ;;
13106
 
      ccc*)
13107
 
        lt_prog_compiler_wl_F77='-Wl,'
13108
 
        # All Alpha code is PIC.
13109
 
        lt_prog_compiler_static_F77='-non_shared'
13110
 
        ;;
13111
 
      esac
13112
 
      ;;
13113
 
 
13114
 
    osf3* | osf4* | osf5*)
13115
 
      lt_prog_compiler_wl_F77='-Wl,'
13116
 
      # All OSF/1 code is PIC.
13117
 
      lt_prog_compiler_static_F77='-non_shared'
13118
 
      ;;
13119
 
 
13120
 
    solaris*)
13121
 
      lt_prog_compiler_pic_F77='-KPIC'
13122
 
      lt_prog_compiler_static_F77='-Bstatic'
13123
 
      case $cc_basename in
13124
 
      f77* | f90* | f95*)
13125
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13126
 
      *)
13127
 
        lt_prog_compiler_wl_F77='-Wl,';;
13128
 
      esac
13129
 
      ;;
13130
 
 
13131
 
    sunos4*)
13132
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13133
 
      lt_prog_compiler_pic_F77='-PIC'
13134
 
      lt_prog_compiler_static_F77='-Bstatic'
13135
 
      ;;
13136
 
 
13137
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
13138
 
      lt_prog_compiler_wl_F77='-Wl,'
13139
 
      lt_prog_compiler_pic_F77='-KPIC'
13140
 
      lt_prog_compiler_static_F77='-Bstatic'
13141
 
      ;;
13142
 
 
13143
 
    sysv4*MP*)
13144
 
      if test -d /usr/nec ;then
13145
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13146
 
        lt_prog_compiler_static_F77='-Bstatic'
13147
 
      fi
13148
 
      ;;
13149
 
 
13150
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13151
 
      lt_prog_compiler_wl_F77='-Wl,'
13152
 
      lt_prog_compiler_pic_F77='-KPIC'
13153
 
      lt_prog_compiler_static_F77='-Bstatic'
13154
 
      ;;
13155
 
 
13156
 
    unicos*)
13157
 
      lt_prog_compiler_wl_F77='-Wl,'
13158
 
      lt_prog_compiler_can_build_shared_F77=no
13159
 
      ;;
13160
 
 
13161
 
    uts4*)
13162
 
      lt_prog_compiler_pic_F77='-pic'
13163
 
      lt_prog_compiler_static_F77='-Bstatic'
13164
 
      ;;
13165
 
 
13166
 
    *)
13167
 
      lt_prog_compiler_can_build_shared_F77=no
13168
 
      ;;
13169
 
    esac
13170
 
  fi
13171
 
 
13172
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13173
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13174
 
 
13175
 
#
13176
 
# Check to make sure the PIC flag actually works.
13177
 
#
13178
 
if test -n "$lt_prog_compiler_pic_F77"; then
13179
 
 
13180
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13181
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13182
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13183
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13184
 
else
13185
 
  lt_prog_compiler_pic_works_F77=no
13186
 
  ac_outfile=conftest.$ac_objext
13187
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13188
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13189
 
   # Insert the option either (1) after the last *FLAGS variable, or
13190
 
   # (2) before a word containing "conftest.", or (3) at the end.
13191
 
   # Note that $ac_compile itself does not contain backslashes and begins
13192
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13193
 
   # The option is referenced via a variable to avoid confusing sed.
13194
 
   lt_compile=`echo "$ac_compile" | $SED \
13195
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13196
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13197
 
   -e 's:$: $lt_compiler_flag:'`
13198
 
   (eval echo "\"\$as_me:13198: $lt_compile\"" >&5)
13199
 
   (eval "$lt_compile" 2>conftest.err)
13200
 
   ac_status=$?
13201
 
   cat conftest.err >&5
13202
 
   echo "$as_me:13202: \$? = $ac_status" >&5
13203
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13204
 
     # The compiler can only warn and ignore the option if not recognized
13205
 
     # So say no if there are warnings other than the usual output.
13206
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13207
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13208
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13209
 
       lt_prog_compiler_pic_works_F77=yes
13210
 
     fi
13211
 
   fi
13212
 
   $rm conftest*
13213
 
 
13214
 
fi
13215
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13216
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13217
 
 
13218
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13219
 
    case $lt_prog_compiler_pic_F77 in
13220
 
     "" | " "*) ;;
13221
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13222
 
     esac
13223
 
else
13224
 
    lt_prog_compiler_pic_F77=
13225
 
     lt_prog_compiler_can_build_shared_F77=no
13226
 
fi
13227
 
 
13228
 
fi
13229
 
case $host_os in
13230
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13231
 
  *djgpp*)
13232
 
    lt_prog_compiler_pic_F77=
13233
 
    ;;
13234
 
  *)
13235
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13236
 
    ;;
13237
 
esac
13238
 
 
13239
 
#
13240
 
# Check to make sure the static flag actually works.
13241
 
#
13242
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13243
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13244
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13245
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13246
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13247
 
else
13248
 
  lt_prog_compiler_static_works_F77=no
13249
 
   save_LDFLAGS="$LDFLAGS"
13250
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13251
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13252
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13253
 
     # The linker can only warn and ignore the option if not recognized
13254
 
     # So say no if there are warnings
13255
 
     if test -s conftest.err; then
13256
 
       # Append any errors to the config.log.
13257
 
       cat conftest.err 1>&5
13258
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13259
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13260
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13261
 
         lt_prog_compiler_static_works_F77=yes
13262
 
       fi
13263
 
     else
13264
 
       lt_prog_compiler_static_works_F77=yes
13265
 
     fi
13266
 
   fi
13267
 
   $rm conftest*
13268
 
   LDFLAGS="$save_LDFLAGS"
13269
 
 
13270
 
fi
13271
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13272
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13273
 
 
13274
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13275
 
    :
13276
 
else
13277
 
    lt_prog_compiler_static_F77=
13278
 
fi
13279
 
 
13280
 
 
13281
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13282
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13283
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13284
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13285
 
else
13286
 
  lt_cv_prog_compiler_c_o_F77=no
13287
 
   $rm -r conftest 2>/dev/null
13288
 
   mkdir conftest
13289
 
   cd conftest
13290
 
   mkdir out
13291
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13292
 
 
13293
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13294
 
   # Insert the option either (1) after the last *FLAGS variable, or
13295
 
   # (2) before a word containing "conftest.", or (3) at the end.
13296
 
   # Note that $ac_compile itself does not contain backslashes and begins
13297
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13298
 
   lt_compile=`echo "$ac_compile" | $SED \
13299
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13300
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13301
 
   -e 's:$: $lt_compiler_flag:'`
13302
 
   (eval echo "\"\$as_me:13302: $lt_compile\"" >&5)
13303
 
   (eval "$lt_compile" 2>out/conftest.err)
13304
 
   ac_status=$?
13305
 
   cat out/conftest.err >&5
13306
 
   echo "$as_me:13306: \$? = $ac_status" >&5
13307
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13308
 
   then
13309
 
     # The compiler can only warn and ignore the option if not recognized
13310
 
     # So say no if there are warnings
13311
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13312
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13313
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13314
 
       lt_cv_prog_compiler_c_o_F77=yes
13315
 
     fi
13316
 
   fi
13317
 
   chmod u+w . 2>&5
13318
 
   $rm conftest*
13319
 
   # SGI C++ compiler will create directory out/ii_files/ for
13320
 
   # template instantiation
13321
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13322
 
   $rm out/* && rmdir out
13323
 
   cd ..
13324
 
   rmdir conftest
13325
 
   $rm conftest*
13326
 
 
13327
 
fi
13328
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13329
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13330
 
 
13331
 
 
13332
 
hard_links="nottested"
13333
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13334
 
  # do not overwrite the value of need_locks provided by the user
13335
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13336
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13337
 
  hard_links=yes
13338
 
  $rm conftest*
13339
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13340
 
  touch conftest.a
13341
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13342
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13343
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13344
 
echo "${ECHO_T}$hard_links" >&6
13345
 
  if test "$hard_links" = no; then
13346
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13347
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13348
 
    need_locks=warn
13349
 
  fi
13350
 
else
13351
 
  need_locks=no
13352
 
fi
13353
 
 
13354
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13355
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13356
 
 
13357
 
  runpath_var=
13358
 
  allow_undefined_flag_F77=
13359
 
  enable_shared_with_static_runtimes_F77=no
13360
 
  archive_cmds_F77=
13361
 
  archive_expsym_cmds_F77=
13362
 
  old_archive_From_new_cmds_F77=
13363
 
  old_archive_from_expsyms_cmds_F77=
13364
 
  export_dynamic_flag_spec_F77=
13365
 
  whole_archive_flag_spec_F77=
13366
 
  thread_safe_flag_spec_F77=
13367
 
  hardcode_libdir_flag_spec_F77=
13368
 
  hardcode_libdir_flag_spec_ld_F77=
13369
 
  hardcode_libdir_separator_F77=
13370
 
  hardcode_direct_F77=no
13371
 
  hardcode_minus_L_F77=no
13372
 
  hardcode_shlibpath_var_F77=unsupported
13373
 
  link_all_deplibs_F77=unknown
13374
 
  hardcode_automatic_F77=no
13375
 
  module_cmds_F77=
13376
 
  module_expsym_cmds_F77=
13377
 
  always_export_symbols_F77=no
13378
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13379
 
  # include_expsyms should be a list of space-separated symbols to be *always*
13380
 
  # included in the symbol list
13381
 
  include_expsyms_F77=
13382
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
13383
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13384
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13385
 
  # as well as any symbol that contains `d'.
13386
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13387
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13388
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
13389
 
  # the symbol is explicitly referenced.  Since portable code cannot
13390
 
  # rely on this symbol name, it's probably fine to never include it in
13391
 
  # preloaded symbol tables.
13392
 
  extract_expsyms_cmds=
13393
 
  # Just being paranoid about ensuring that cc_basename is set.
13394
 
  for cc_temp in $compiler""; do
13395
 
  case $cc_temp in
13396
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13397
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13398
 
    \-*) ;;
13399
 
    *) break;;
13400
 
  esac
13401
 
done
13402
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13403
 
 
13404
 
  case $host_os in
13405
 
  cygwin* | mingw* | pw32*)
13406
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13407
 
    # When not using gcc, we currently assume that we are using
13408
 
    # Microsoft Visual C++.
13409
 
    if test "$GCC" != yes; then
13410
 
      with_gnu_ld=no
13411
 
    fi
13412
 
    ;;
13413
 
  interix*)
13414
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13415
 
    with_gnu_ld=yes
13416
 
    ;;
13417
 
  openbsd*)
13418
 
    with_gnu_ld=no
13419
 
    ;;
13420
 
  esac
13421
 
 
13422
 
  ld_shlibs_F77=yes
13423
 
  if test "$with_gnu_ld" = yes; then
13424
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
13425
 
    wlarc='${wl}'
13426
 
 
13427
 
    # Set some defaults for GNU ld with shared library support. These
13428
 
    # are reset later if shared libraries are not supported. Putting them
13429
 
    # here allows them to be overridden if necessary.
13430
 
    runpath_var=LD_RUN_PATH
13431
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13432
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13433
 
    # ancient GNU ld didn't support --whole-archive et. al.
13434
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13435
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13436
 
      else
13437
 
        whole_archive_flag_spec_F77=
13438
 
    fi
13439
 
    supports_anon_versioning=no
13440
 
    case `$LD -v 2>/dev/null` in
13441
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13442
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13443
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13444
 
      *\ 2.11.*) ;; # other 2.11 versions
13445
 
      *) supports_anon_versioning=yes ;;
13446
 
    esac
13447
 
 
13448
 
    # See if GNU ld supports shared libraries.
13449
 
    case $host_os in
13450
 
    aix3* | aix4* | aix5*)
13451
 
      # On AIX/PPC, the GNU linker is very broken
13452
 
      if test "$host_cpu" != ia64; then
13453
 
        ld_shlibs_F77=no
13454
 
        cat <<EOF 1>&2
13455
 
 
13456
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13457
 
*** to be unable to reliably create shared libraries on AIX.
13458
 
*** Therefore, libtool is disabling shared libraries support.  If you
13459
 
*** really care for shared libraries, you may want to modify your PATH
13460
 
*** so that a non-GNU linker is found, and then restart.
13461
 
 
13462
 
EOF
13463
 
      fi
13464
 
      ;;
13465
 
 
13466
 
    amigaos*)
13467
 
      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)'
13468
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13469
 
      hardcode_minus_L_F77=yes
13470
 
 
13471
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13472
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
13473
 
      # to version 4, is to share data among multiple programs linked
13474
 
      # with the same dynamic library.  Since this doesn't match the
13475
 
      # behavior of shared libraries on other platforms, we can't use
13476
 
      # them.
13477
 
      ld_shlibs_F77=no
13478
 
      ;;
13479
 
 
13480
 
    beos*)
13481
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13482
 
        allow_undefined_flag_F77=unsupported
13483
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13484
 
        # support --undefined.  This deserves some investigation.  FIXME
13485
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13486
 
      else
13487
 
        ld_shlibs_F77=no
13488
 
      fi
13489
 
      ;;
13490
 
 
13491
 
    cygwin* | mingw* | pw32*)
13492
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13493
 
      # as there is no search path for DLLs.
13494
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13495
 
      allow_undefined_flag_F77=unsupported
13496
 
      always_export_symbols_F77=no
13497
 
      enable_shared_with_static_runtimes_F77=yes
13498
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13499
 
 
13500
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13501
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13502
 
        # If the export-symbols file already is a .def file (1st line
13503
 
        # is EXPORTS), use it as is; otherwise, prepend...
13504
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13505
 
          cp $export_symbols $output_objdir/$soname.def;
13506
 
        else
13507
 
          echo EXPORTS > $output_objdir/$soname.def;
13508
 
          cat $export_symbols >> $output_objdir/$soname.def;
13509
 
        fi~
13510
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13511
 
      else
13512
 
        ld_shlibs_F77=no
13513
 
      fi
13514
 
      ;;
13515
 
 
13516
 
    interix3*)
13517
 
      hardcode_direct_F77=no
13518
 
      hardcode_shlibpath_var_F77=no
13519
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13520
 
      export_dynamic_flag_spec_F77='${wl}-E'
13521
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13522
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13523
 
      # default) and relocated if they conflict, which is a slow very memory
13524
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
13525
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13526
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13527
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13528
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13529
 
      ;;
13530
 
 
13531
 
    linux*)
13532
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13533
 
        tmp_addflag=
13534
 
        case $cc_basename,$host_cpu in
13535
 
        pgcc*)                          # Portland Group C compiler
13536
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13537
 
          tmp_addflag=' $pic_flag'
13538
 
          ;;
13539
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13540
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13541
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
13542
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13543
 
          tmp_addflag=' -i_dynamic' ;;
13544
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13545
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13546
 
        ifc* | ifort*)                  # Intel Fortran compiler
13547
 
          tmp_addflag=' -nofor_main' ;;
13548
 
        esac
13549
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13550
 
 
13551
 
        if test $supports_anon_versioning = yes; then
13552
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13553
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13554
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13555
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13556
 
        fi
13557
 
      else
13558
 
        ld_shlibs_F77=no
13559
 
      fi
13560
 
      ;;
13561
 
 
13562
 
    netbsd*)
13563
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13564
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13565
 
        wlarc=
13566
 
      else
13567
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13568
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13569
 
      fi
13570
 
      ;;
13571
 
 
13572
 
    solaris*)
13573
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13574
 
        ld_shlibs_F77=no
13575
 
        cat <<EOF 1>&2
13576
 
 
13577
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13578
 
*** create shared libraries on Solaris systems.  Therefore, libtool
13579
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13580
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
13581
 
*** your PATH or compiler configuration so that the native linker is
13582
 
*** used, and then restart.
13583
 
 
13584
 
EOF
13585
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13586
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13587
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13588
 
      else
13589
 
        ld_shlibs_F77=no
13590
 
      fi
13591
 
      ;;
13592
 
 
13593
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13594
 
      case `$LD -v 2>&1` in
13595
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13596
 
        ld_shlibs_F77=no
13597
 
        cat <<_LT_EOF 1>&2
13598
 
 
13599
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13600
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13601
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13602
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13603
 
*** your PATH or compiler configuration so that the native linker is
13604
 
*** used, and then restart.
13605
 
 
13606
 
_LT_EOF
13607
 
        ;;
13608
 
        *)
13609
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13610
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13611
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13612
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13613
 
          else
13614
 
            ld_shlibs_F77=no
13615
 
          fi
13616
 
        ;;
13617
 
      esac
13618
 
      ;;
13619
 
 
13620
 
    sunos4*)
13621
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13622
 
      wlarc=
13623
 
      hardcode_direct_F77=yes
13624
 
      hardcode_shlibpath_var_F77=no
13625
 
      ;;
13626
 
 
13627
 
    *)
13628
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13629
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13630
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13631
 
      else
13632
 
        ld_shlibs_F77=no
13633
 
      fi
13634
 
      ;;
13635
 
    esac
13636
 
 
13637
 
    if test "$ld_shlibs_F77" = no; then
13638
 
      runpath_var=
13639
 
      hardcode_libdir_flag_spec_F77=
13640
 
      export_dynamic_flag_spec_F77=
13641
 
      whole_archive_flag_spec_F77=
13642
 
    fi
13643
 
  else
13644
 
    # PORTME fill in a description of your system's linker (not GNU ld)
13645
 
    case $host_os in
13646
 
    aix3*)
13647
 
      allow_undefined_flag_F77=unsupported
13648
 
      always_export_symbols_F77=yes
13649
 
      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'
13650
 
      # Note: this linker hardcodes the directories in LIBPATH if there
13651
 
      # are no directories specified by -L.
13652
 
      hardcode_minus_L_F77=yes
13653
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13654
 
        # Neither direct hardcoding nor static linking is supported with a
13655
 
        # broken collect2.
13656
 
        hardcode_direct_F77=unsupported
13657
 
      fi
13658
 
      ;;
13659
 
 
13660
 
    aix4* | aix5*)
13661
 
      if test "$host_cpu" = ia64; then
13662
 
        # On IA64, the linker does run time linking by default, so we don't
13663
 
        # have to do anything special.
13664
 
        aix_use_runtimelinking=no
13665
 
        exp_sym_flag='-Bexport'
13666
 
        no_entry_flag=""
13667
 
      else
13668
 
        # If we're using GNU nm, then we don't want the "-C" option.
13669
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13670
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13671
 
          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'
13672
 
        else
13673
 
          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'
13674
 
        fi
13675
 
        aix_use_runtimelinking=no
13676
 
 
13677
 
        # Test if we are trying to use run time linking or normal
13678
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13679
 
        # need to do runtime linking.
13680
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13681
 
          for ld_flag in $LDFLAGS; do
13682
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13683
 
            aix_use_runtimelinking=yes
13684
 
            break
13685
 
          fi
13686
 
          done
13687
 
          ;;
13688
 
        esac
13689
 
 
13690
 
        exp_sym_flag='-bexport'
13691
 
        no_entry_flag='-bnoentry'
13692
 
      fi
13693
 
 
13694
 
      # When large executables or shared objects are built, AIX ld can
13695
 
      # have problems creating the table of contents.  If linking a library
13696
 
      # or program results in "error TOC overflow" add -mminimal-toc to
13697
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13698
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13699
 
 
13700
 
      archive_cmds_F77=''
13701
 
      hardcode_direct_F77=yes
13702
 
      hardcode_libdir_separator_F77=':'
13703
 
      link_all_deplibs_F77=yes
13704
 
 
13705
 
      if test "$GCC" = yes; then
13706
 
        case $host_os in aix4.[012]|aix4.[012].*)
13707
 
        # We only want to do this on AIX 4.2 and lower, the check
13708
 
        # below for broken collect2 doesn't work under 4.3+
13709
 
          collect2name=`${CC} -print-prog-name=collect2`
13710
 
          if test -f "$collect2name" && \
13711
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13712
 
          then
13713
 
          # We have reworked collect2
13714
 
          hardcode_direct_F77=yes
13715
 
          else
13716
 
          # We have old collect2
13717
 
          hardcode_direct_F77=unsupported
13718
 
          # It fails to find uninstalled libraries when the uninstalled
13719
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
13720
 
          # to unsupported forces relinking
13721
 
          hardcode_minus_L_F77=yes
13722
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13723
 
          hardcode_libdir_separator_F77=
13724
 
          fi
13725
 
          ;;
13726
 
        esac
13727
 
        shared_flag='-shared'
13728
 
        if test "$aix_use_runtimelinking" = yes; then
13729
 
          shared_flag="$shared_flag "'${wl}-G'
13730
 
        fi
13731
 
      else
13732
 
        # not using gcc
13733
 
        if test "$host_cpu" = ia64; then
13734
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13735
 
        # chokes on -Wl,-G. The following line is correct:
13736
 
          shared_flag='-G'
13737
 
        else
13738
 
          if test "$aix_use_runtimelinking" = yes; then
13739
 
            shared_flag='${wl}-G'
13740
 
          else
13741
 
            shared_flag='${wl}-bM:SRE'
13742
 
          fi
13743
 
        fi
13744
 
      fi
13745
 
 
13746
 
      # It seems that -bexpall does not export symbols beginning with
13747
 
      # underscore (_), so it is better to generate a list of symbols to export.
13748
 
      always_export_symbols_F77=yes
13749
 
      if test "$aix_use_runtimelinking" = yes; then
13750
 
        # Warning - without using the other runtime loading flags (-brtl),
13751
 
        # -berok will link without error, but may produce a broken library.
13752
 
        allow_undefined_flag_F77='-berok'
13753
 
       # Determine the default libpath from the value encoded in an empty executable.
13754
 
       cat >conftest.$ac_ext <<_ACEOF
13755
 
      program main
13756
 
 
13757
 
      end
13758
 
_ACEOF
13759
 
rm -f conftest.$ac_objext conftest$ac_exeext
13760
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761
 
  (eval $ac_link) 2>conftest.er1
13762
 
  ac_status=$?
13763
 
  grep -v '^ *+' conftest.er1 >conftest.err
13764
 
  rm -f conftest.er1
13765
 
  cat conftest.err >&5
13766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767
 
  (exit $ac_status); } &&
13768
 
         { ac_try='test -z "$ac_f77_werror_flag"
13769
 
                         || test ! -s conftest.err'
13770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771
 
  (eval $ac_try) 2>&5
13772
 
  ac_status=$?
13773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774
 
  (exit $ac_status); }; } &&
13775
 
         { ac_try='test -s conftest$ac_exeext'
13776
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777
 
  (eval $ac_try) 2>&5
13778
 
  ac_status=$?
13779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780
 
  (exit $ac_status); }; }; then
13781
 
 
13782
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13783
 
}'`
13784
 
# Check for a 64-bit object if we didn't find anything.
13785
 
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; }
13786
 
}'`; fi
13787
 
else
13788
 
  echo "$as_me: failed program was:" >&5
13789
 
sed 's/^/| /' conftest.$ac_ext >&5
13790
 
 
13791
 
fi
13792
 
rm -f conftest.err conftest.$ac_objext \
13793
 
      conftest$ac_exeext conftest.$ac_ext
13794
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13795
 
 
13796
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13797
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13798
 
       else
13799
 
        if test "$host_cpu" = ia64; then
13800
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13801
 
          allow_undefined_flag_F77="-z nodefs"
13802
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13803
 
        else
13804
 
         # Determine the default libpath from the value encoded in an empty executable.
13805
 
         cat >conftest.$ac_ext <<_ACEOF
13806
 
      program main
13807
 
 
13808
 
      end
13809
 
_ACEOF
13810
 
rm -f conftest.$ac_objext conftest$ac_exeext
13811
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812
 
  (eval $ac_link) 2>conftest.er1
13813
 
  ac_status=$?
13814
 
  grep -v '^ *+' conftest.er1 >conftest.err
13815
 
  rm -f conftest.er1
13816
 
  cat conftest.err >&5
13817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818
 
  (exit $ac_status); } &&
13819
 
         { ac_try='test -z "$ac_f77_werror_flag"
13820
 
                         || test ! -s conftest.err'
13821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822
 
  (eval $ac_try) 2>&5
13823
 
  ac_status=$?
13824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825
 
  (exit $ac_status); }; } &&
13826
 
         { ac_try='test -s conftest$ac_exeext'
13827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828
 
  (eval $ac_try) 2>&5
13829
 
  ac_status=$?
13830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831
 
  (exit $ac_status); }; }; then
13832
 
 
13833
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13834
 
}'`
13835
 
# Check for a 64-bit object if we didn't find anything.
13836
 
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; }
13837
 
}'`; fi
13838
 
else
13839
 
  echo "$as_me: failed program was:" >&5
13840
 
sed 's/^/| /' conftest.$ac_ext >&5
13841
 
 
13842
 
fi
13843
 
rm -f conftest.err conftest.$ac_objext \
13844
 
      conftest$ac_exeext conftest.$ac_ext
13845
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13846
 
 
13847
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13848
 
          # Warning - without using the other run time loading flags,
13849
 
          # -berok will link without error, but may produce a broken library.
13850
 
          no_undefined_flag_F77=' ${wl}-bernotok'
13851
 
          allow_undefined_flag_F77=' ${wl}-berok'
13852
 
          # Exported symbols can be pulled into shared objects from archives
13853
 
          whole_archive_flag_spec_F77='$convenience'
13854
 
          archive_cmds_need_lc_F77=yes
13855
 
          # This is similar to how AIX traditionally builds its shared libraries.
13856
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13857
 
        fi
13858
 
      fi
13859
 
      ;;
13860
 
 
13861
 
    amigaos*)
13862
 
      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)'
13863
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13864
 
      hardcode_minus_L_F77=yes
13865
 
      # see comment about different semantics on the GNU ld section
13866
 
      ld_shlibs_F77=no
13867
 
      ;;
13868
 
 
13869
 
    bsdi[45]*)
13870
 
      export_dynamic_flag_spec_F77=-rdynamic
13871
 
      ;;
13872
 
 
13873
 
    cygwin* | mingw* | pw32*)
13874
 
      # When not using gcc, we currently assume that we are using
13875
 
      # Microsoft Visual C++.
13876
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13877
 
      # no search path for DLLs.
13878
 
      hardcode_libdir_flag_spec_F77=' '
13879
 
      allow_undefined_flag_F77=unsupported
13880
 
      # Tell ltmain to make .lib files, not .a files.
13881
 
      libext=lib
13882
 
      # Tell ltmain to make .dll files, not .so files.
13883
 
      shrext_cmds=".dll"
13884
 
      # FIXME: Setting linknames here is a bad hack.
13885
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13886
 
      # The linker will automatically build a .lib file if we build a DLL.
13887
 
      old_archive_From_new_cmds_F77='true'
13888
 
      # FIXME: Should let the user specify the lib program.
13889
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13890
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13891
 
      enable_shared_with_static_runtimes_F77=yes
13892
 
      ;;
13893
 
 
13894
 
    darwin* | rhapsody*)
13895
 
      case $host_os in
13896
 
        rhapsody* | darwin1.[012])
13897
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13898
 
         ;;
13899
 
       *) # Darwin 1.3 on
13900
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13901
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13902
 
         else
13903
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
13904
 
             10.[012])
13905
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13906
 
               ;;
13907
 
             10.*)
13908
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13909
 
               ;;
13910
 
           esac
13911
 
         fi
13912
 
         ;;
13913
 
      esac
13914
 
      archive_cmds_need_lc_F77=no
13915
 
      hardcode_direct_F77=no
13916
 
      hardcode_automatic_F77=yes
13917
 
      hardcode_shlibpath_var_F77=unsupported
13918
 
      whole_archive_flag_spec_F77=''
13919
 
      link_all_deplibs_F77=yes
13920
 
    if test "$GCC" = yes ; then
13921
 
        output_verbose_link_cmd='echo'
13922
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13923
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13924
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13925
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13926
 
      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}'
13927
 
    else
13928
 
      case $cc_basename in
13929
 
        xlc*)
13930
 
         output_verbose_link_cmd='echo'
13931
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13932
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13933
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13934
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13935
 
          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}'
13936
 
          ;;
13937
 
       *)
13938
 
         ld_shlibs_F77=no
13939
 
          ;;
13940
 
      esac
13941
 
    fi
13942
 
      ;;
13943
 
 
13944
 
    dgux*)
13945
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13947
 
      hardcode_shlibpath_var_F77=no
13948
 
      ;;
13949
 
 
13950
 
    freebsd1*)
13951
 
      ld_shlibs_F77=no
13952
 
      ;;
13953
 
 
13954
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13955
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13956
 
    # does not break anything, and helps significantly (at the cost of a little
13957
 
    # extra space).
13958
 
    freebsd2.2*)
13959
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13960
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13961
 
      hardcode_direct_F77=yes
13962
 
      hardcode_shlibpath_var_F77=no
13963
 
      ;;
13964
 
 
13965
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13966
 
    freebsd2*)
13967
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13968
 
      hardcode_direct_F77=yes
13969
 
      hardcode_minus_L_F77=yes
13970
 
      hardcode_shlibpath_var_F77=no
13971
 
      ;;
13972
 
 
13973
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13974
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
13975
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13976
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13977
 
      hardcode_direct_F77=yes
13978
 
      hardcode_shlibpath_var_F77=no
13979
 
      ;;
13980
 
 
13981
 
    hpux9*)
13982
 
      if test "$GCC" = yes; then
13983
 
        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'
13984
 
      else
13985
 
        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'
13986
 
      fi
13987
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13988
 
      hardcode_libdir_separator_F77=:
13989
 
      hardcode_direct_F77=yes
13990
 
 
13991
 
      # hardcode_minus_L: Not really in the search PATH,
13992
 
      # but as the default location of the library.
13993
 
      hardcode_minus_L_F77=yes
13994
 
      export_dynamic_flag_spec_F77='${wl}-E'
13995
 
      ;;
13996
 
 
13997
 
    hpux10*)
13998
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13999
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14000
 
      else
14001
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14002
 
      fi
14003
 
      if test "$with_gnu_ld" = no; then
14004
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14005
 
        hardcode_libdir_separator_F77=:
14006
 
 
14007
 
        hardcode_direct_F77=yes
14008
 
        export_dynamic_flag_spec_F77='${wl}-E'
14009
 
 
14010
 
        # hardcode_minus_L: Not really in the search PATH,
14011
 
        # but as the default location of the library.
14012
 
        hardcode_minus_L_F77=yes
14013
 
      fi
14014
 
      ;;
14015
 
 
14016
 
    hpux11*)
14017
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14018
 
        case $host_cpu in
14019
 
        hppa*64*)
14020
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14021
 
          ;;
14022
 
        ia64*)
14023
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14024
 
          ;;
14025
 
        *)
14026
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027
 
          ;;
14028
 
        esac
14029
 
      else
14030
 
        case $host_cpu in
14031
 
        hppa*64*)
14032
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033
 
          ;;
14034
 
        ia64*)
14035
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14036
 
          ;;
14037
 
        *)
14038
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14039
 
          ;;
14040
 
        esac
14041
 
      fi
14042
 
      if test "$with_gnu_ld" = no; then
14043
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14044
 
        hardcode_libdir_separator_F77=:
14045
 
 
14046
 
        case $host_cpu in
14047
 
        hppa*64*|ia64*)
14048
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14049
 
          hardcode_direct_F77=no
14050
 
          hardcode_shlibpath_var_F77=no
14051
 
          ;;
14052
 
        *)
14053
 
          hardcode_direct_F77=yes
14054
 
          export_dynamic_flag_spec_F77='${wl}-E'
14055
 
 
14056
 
          # hardcode_minus_L: Not really in the search PATH,
14057
 
          # but as the default location of the library.
14058
 
          hardcode_minus_L_F77=yes
14059
 
          ;;
14060
 
        esac
14061
 
      fi
14062
 
      ;;
14063
 
 
14064
 
    irix5* | irix6* | nonstopux*)
14065
 
      if test "$GCC" = yes; then
14066
 
        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'
14067
 
      else
14068
 
        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'
14069
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14070
 
      fi
14071
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14072
 
      hardcode_libdir_separator_F77=:
14073
 
      link_all_deplibs_F77=yes
14074
 
      ;;
14075
 
 
14076
 
    netbsd*)
14077
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14078
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14079
 
      else
14080
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14081
 
      fi
14082
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14083
 
      hardcode_direct_F77=yes
14084
 
      hardcode_shlibpath_var_F77=no
14085
 
      ;;
14086
 
 
14087
 
    newsos6)
14088
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089
 
      hardcode_direct_F77=yes
14090
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14091
 
      hardcode_libdir_separator_F77=:
14092
 
      hardcode_shlibpath_var_F77=no
14093
 
      ;;
14094
 
 
14095
 
    openbsd*)
14096
 
      hardcode_direct_F77=yes
14097
 
      hardcode_shlibpath_var_F77=no
14098
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14099
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14100
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14101
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14102
 
        export_dynamic_flag_spec_F77='${wl}-E'
14103
 
      else
14104
 
       case $host_os in
14105
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14106
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14107
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14108
 
           ;;
14109
 
         *)
14110
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14111
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14112
 
           ;;
14113
 
       esac
14114
 
      fi
14115
 
      ;;
14116
 
 
14117
 
    os2*)
14118
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14119
 
      hardcode_minus_L_F77=yes
14120
 
      allow_undefined_flag_F77=unsupported
14121
 
      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'
14122
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14123
 
      ;;
14124
 
 
14125
 
    osf3*)
14126
 
      if test "$GCC" = yes; then
14127
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14128
 
        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'
14129
 
      else
14130
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14131
 
        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'
14132
 
      fi
14133
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14134
 
      hardcode_libdir_separator_F77=:
14135
 
      ;;
14136
 
 
14137
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14138
 
      if test "$GCC" = yes; then
14139
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14140
 
        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'
14141
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142
 
      else
14143
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14144
 
        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'
14145
 
        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~
14146
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14147
 
 
14148
 
        # Both c and cxx compiler support -rpath directly
14149
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14150
 
      fi
14151
 
      hardcode_libdir_separator_F77=:
14152
 
      ;;
14153
 
 
14154
 
    solaris*)
14155
 
      no_undefined_flag_F77=' -z text'
14156
 
      if test "$GCC" = yes; then
14157
 
        wlarc='${wl}'
14158
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14161
 
      else
14162
 
        wlarc=''
14163
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14165
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14166
 
      fi
14167
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14168
 
      hardcode_shlibpath_var_F77=no
14169
 
      case $host_os in
14170
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14171
 
      *)
14172
 
        # The compiler driver will combine linker options so we
14173
 
        # cannot just pass the convience library names through
14174
 
        # without $wl, iff we do not link with $LD.
14175
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
14176
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14177
 
        case $wlarc in
14178
 
        '')
14179
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14180
 
        *)
14181
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14182
 
        esac ;;
14183
 
      esac
14184
 
      link_all_deplibs_F77=yes
14185
 
      ;;
14186
 
 
14187
 
    sunos4*)
14188
 
      if test "x$host_vendor" = xsequent; then
14189
 
        # Use $CC to link under sequent, because it throws in some extra .o
14190
 
        # files that make .init and .fini sections work.
14191
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14192
 
      else
14193
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14194
 
      fi
14195
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14196
 
      hardcode_direct_F77=yes
14197
 
      hardcode_minus_L_F77=yes
14198
 
      hardcode_shlibpath_var_F77=no
14199
 
      ;;
14200
 
 
14201
 
    sysv4)
14202
 
      case $host_vendor in
14203
 
        sni)
14204
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14205
 
          hardcode_direct_F77=yes # is this really true???
14206
 
        ;;
14207
 
        siemens)
14208
 
          ## LD is ld it makes a PLAMLIB
14209
 
          ## CC just makes a GrossModule.
14210
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14211
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14212
 
          hardcode_direct_F77=no
14213
 
        ;;
14214
 
        motorola)
14215
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14217
 
        ;;
14218
 
      esac
14219
 
      runpath_var='LD_RUN_PATH'
14220
 
      hardcode_shlibpath_var_F77=no
14221
 
      ;;
14222
 
 
14223
 
    sysv4.3*)
14224
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225
 
      hardcode_shlibpath_var_F77=no
14226
 
      export_dynamic_flag_spec_F77='-Bexport'
14227
 
      ;;
14228
 
 
14229
 
    sysv4*MP*)
14230
 
      if test -d /usr/nec; then
14231
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232
 
        hardcode_shlibpath_var_F77=no
14233
 
        runpath_var=LD_RUN_PATH
14234
 
        hardcode_runpath_var=yes
14235
 
        ld_shlibs_F77=yes
14236
 
      fi
14237
 
      ;;
14238
 
 
14239
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14240
 
      no_undefined_flag_F77='${wl}-z,text'
14241
 
      archive_cmds_need_lc_F77=no
14242
 
      hardcode_shlibpath_var_F77=no
14243
 
      runpath_var='LD_RUN_PATH'
14244
 
 
14245
 
      if test "$GCC" = yes; then
14246
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248
 
      else
14249
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251
 
      fi
14252
 
      ;;
14253
 
 
14254
 
    sysv5* | sco3.2v5* | sco5v6*)
14255
 
      # Note: We can NOT use -z defs as we might desire, because we do not
14256
 
      # link with -lc, and that would cause any symbols used from libc to
14257
 
      # always be unresolved, which means just about no library would
14258
 
      # ever link correctly.  If we're not using GNU ld we use -z text
14259
 
      # though, which does catch some bad symbols but isn't as heavy-handed
14260
 
      # as -z defs.
14261
 
      no_undefined_flag_F77='${wl}-z,text'
14262
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
14263
 
      archive_cmds_need_lc_F77=no
14264
 
      hardcode_shlibpath_var_F77=no
14265
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14266
 
      hardcode_libdir_separator_F77=':'
14267
 
      link_all_deplibs_F77=yes
14268
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14269
 
      runpath_var='LD_RUN_PATH'
14270
 
 
14271
 
      if test "$GCC" = yes; then
14272
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14273
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14274
 
      else
14275
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277
 
      fi
14278
 
      ;;
14279
 
 
14280
 
    uts4*)
14281
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14282
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14283
 
      hardcode_shlibpath_var_F77=no
14284
 
      ;;
14285
 
 
14286
 
    *)
14287
 
      ld_shlibs_F77=no
14288
 
      ;;
14289
 
    esac
14290
 
  fi
14291
 
 
14292
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14293
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
14294
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14295
 
 
14296
 
#
14297
 
# Do we need to explicitly link libc?
14298
 
#
14299
 
case "x$archive_cmds_need_lc_F77" in
14300
 
x|xyes)
14301
 
  # Assume -lc should be added
14302
 
  archive_cmds_need_lc_F77=yes
14303
 
 
14304
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14305
 
    case $archive_cmds_F77 in
14306
 
    *'~'*)
14307
 
      # FIXME: we may have to deal with multi-command sequences.
14308
 
      ;;
14309
 
    '$CC '*)
14310
 
      # Test whether the compiler implicitly links with -lc since on some
14311
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14312
 
      # to ld, don't add -lc before -lgcc.
14313
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14314
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14315
 
      $rm conftest*
14316
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14317
 
 
14318
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319
 
  (eval $ac_compile) 2>&5
14320
 
  ac_status=$?
14321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322
 
  (exit $ac_status); } 2>conftest.err; then
14323
 
        soname=conftest
14324
 
        lib=conftest
14325
 
        libobjs=conftest.$ac_objext
14326
 
        deplibs=
14327
 
        wl=$lt_prog_compiler_wl_F77
14328
 
        pic_flag=$lt_prog_compiler_pic_F77
14329
 
        compiler_flags=-v
14330
 
        linker_flags=-v
14331
 
        verstring=
14332
 
        output_objdir=.
14333
 
        libname=conftest
14334
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14335
 
        allow_undefined_flag_F77=
14336
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14337
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14338
 
  ac_status=$?
14339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340
 
  (exit $ac_status); }
14341
 
        then
14342
 
          archive_cmds_need_lc_F77=no
14343
 
        else
14344
 
          archive_cmds_need_lc_F77=yes
14345
 
        fi
14346
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14347
 
      else
14348
 
        cat conftest.err 1>&5
14349
 
      fi
14350
 
      $rm conftest*
14351
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14352
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14353
 
      ;;
14354
 
    esac
14355
 
  fi
14356
 
  ;;
14357
 
esac
14358
 
 
14359
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14360
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14361
 
library_names_spec=
14362
 
libname_spec='lib$name'
14363
 
soname_spec=
14364
 
shrext_cmds=".so"
14365
 
postinstall_cmds=
14366
 
postuninstall_cmds=
14367
 
finish_cmds=
14368
 
finish_eval=
14369
 
shlibpath_var=
14370
 
shlibpath_overrides_runpath=unknown
14371
 
version_type=none
14372
 
dynamic_linker="$host_os ld.so"
14373
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14374
 
if test "$GCC" = yes; then
14375
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14376
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14377
 
    # if the path contains ";" then we assume it to be the separator
14378
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14379
 
    # assumed that no part of a normal pathname contains ";" but that should
14380
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14381
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14382
 
  else
14383
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14384
 
  fi
14385
 
else
14386
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14387
 
fi
14388
 
need_lib_prefix=unknown
14389
 
hardcode_into_libs=no
14390
 
 
14391
 
# when you set need_version to no, make sure it does not cause -set_version
14392
 
# flags to be left without arguments
14393
 
need_version=unknown
14394
 
 
14395
 
case $host_os in
14396
 
aix3*)
14397
 
  version_type=linux
14398
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14399
 
  shlibpath_var=LIBPATH
14400
 
 
14401
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14402
 
  soname_spec='${libname}${release}${shared_ext}$major'
14403
 
  ;;
14404
 
 
14405
 
aix4* | aix5*)
14406
 
  version_type=linux
14407
 
  need_lib_prefix=no
14408
 
  need_version=no
14409
 
  hardcode_into_libs=yes
14410
 
  if test "$host_cpu" = ia64; then
14411
 
    # AIX 5 supports IA64
14412
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14413
 
    shlibpath_var=LD_LIBRARY_PATH
14414
 
  else
14415
 
    # With GCC up to 2.95.x, collect2 would create an import file
14416
 
    # for dependence libraries.  The import file would start with
14417
 
    # the line `#! .'.  This would cause the generated library to
14418
 
    # depend on `.', always an invalid library.  This was fixed in
14419
 
    # development snapshots of GCC prior to 3.0.
14420
 
    case $host_os in
14421
 
      aix4 | aix4.[01] | aix4.[01].*)
14422
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14423
 
           echo ' yes '
14424
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14425
 
        :
14426
 
      else
14427
 
        can_build_shared=no
14428
 
      fi
14429
 
      ;;
14430
 
    esac
14431
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14432
 
    # soname into executable. Probably we can add versioning support to
14433
 
    # collect2, so additional links can be useful in future.
14434
 
    if test "$aix_use_runtimelinking" = yes; then
14435
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14436
 
      # instead of lib<name>.a to let people know that these are not
14437
 
      # typical AIX shared libraries.
14438
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439
 
    else
14440
 
      # We preserve .a as extension for shared libraries through AIX4.2
14441
 
      # and later when we are not doing run time linking.
14442
 
      library_names_spec='${libname}${release}.a $libname.a'
14443
 
      soname_spec='${libname}${release}${shared_ext}$major'
14444
 
    fi
14445
 
    shlibpath_var=LIBPATH
14446
 
  fi
14447
 
  ;;
14448
 
 
14449
 
amigaos*)
14450
 
  library_names_spec='$libname.ixlibrary $libname.a'
14451
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14452
 
  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'
14453
 
  ;;
14454
 
 
14455
 
beos*)
14456
 
  library_names_spec='${libname}${shared_ext}'
14457
 
  dynamic_linker="$host_os ld.so"
14458
 
  shlibpath_var=LIBRARY_PATH
14459
 
  ;;
14460
 
 
14461
 
bsdi[45]*)
14462
 
  version_type=linux
14463
 
  need_version=no
14464
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465
 
  soname_spec='${libname}${release}${shared_ext}$major'
14466
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14467
 
  shlibpath_var=LD_LIBRARY_PATH
14468
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14469
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14470
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14471
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14472
 
  # libtool to hard-code these into programs
14473
 
  ;;
14474
 
 
14475
 
cygwin* | mingw* | pw32*)
14476
 
  version_type=windows
14477
 
  shrext_cmds=".dll"
14478
 
  need_version=no
14479
 
  need_lib_prefix=no
14480
 
 
14481
 
  case $GCC,$host_os in
14482
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14483
 
    library_names_spec='$libname.dll.a'
14484
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14485
 
    postinstall_cmds='base_file=`basename \${file}`~
14486
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14487
 
      dldir=$destdir/`dirname \$dlpath`~
14488
 
      test -d \$dldir || mkdir -p \$dldir~
14489
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14490
 
      chmod a+x \$dldir/$dlname'
14491
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14492
 
      dlpath=$dir/\$dldll~
14493
 
       $rm \$dlpath'
14494
 
    shlibpath_overrides_runpath=yes
14495
 
 
14496
 
    case $host_os in
14497
 
    cygwin*)
14498
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14499
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14501
 
      ;;
14502
 
    mingw*)
14503
 
      # MinGW DLLs use traditional 'lib' prefix
14504
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14506
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14507
 
        # It is most probably a Windows format PATH printed by
14508
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14509
 
        # path with ; separators, and with drive letters. We can handle the
14510
 
        # drive letters (cygwin fileutils understands them), so leave them,
14511
 
        # especially as we might pass files found there to a mingw objdump,
14512
 
        # which wouldn't understand a cygwinified path. Ahh.
14513
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14514
 
      else
14515
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14516
 
      fi
14517
 
      ;;
14518
 
    pw32*)
14519
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14520
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521
 
      ;;
14522
 
    esac
14523
 
    ;;
14524
 
 
14525
 
  *)
14526
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14527
 
    ;;
14528
 
  esac
14529
 
  dynamic_linker='Win32 ld.exe'
14530
 
  # FIXME: first we should search . and the directory the executable is in
14531
 
  shlibpath_var=PATH
14532
 
  ;;
14533
 
 
14534
 
darwin* | rhapsody*)
14535
 
  dynamic_linker="$host_os dyld"
14536
 
  version_type=darwin
14537
 
  need_lib_prefix=no
14538
 
  need_version=no
14539
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14540
 
  soname_spec='${libname}${release}${major}$shared_ext'
14541
 
  shlibpath_overrides_runpath=yes
14542
 
  shlibpath_var=DYLD_LIBRARY_PATH
14543
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14544
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14545
 
  if test "$GCC" = yes; then
14546
 
    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"`
14547
 
  else
14548
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14549
 
  fi
14550
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14551
 
  ;;
14552
 
 
14553
 
dgux*)
14554
 
  version_type=linux
14555
 
  need_lib_prefix=no
14556
 
  need_version=no
14557
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14558
 
  soname_spec='${libname}${release}${shared_ext}$major'
14559
 
  shlibpath_var=LD_LIBRARY_PATH
14560
 
  ;;
14561
 
 
14562
 
freebsd1*)
14563
 
  dynamic_linker=no
14564
 
  ;;
14565
 
 
14566
 
kfreebsd*-gnu)
14567
 
  version_type=linux
14568
 
  need_lib_prefix=no
14569
 
  need_version=no
14570
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14571
 
  soname_spec='${libname}${release}${shared_ext}$major'
14572
 
  shlibpath_var=LD_LIBRARY_PATH
14573
 
  shlibpath_overrides_runpath=no
14574
 
  hardcode_into_libs=yes
14575
 
  dynamic_linker='GNU ld.so'
14576
 
  ;;
14577
 
 
14578
 
freebsd* | dragonfly*)
14579
 
  # DragonFly does not have aout.  When/if they implement a new
14580
 
  # versioning mechanism, adjust this.
14581
 
  if test -x /usr/bin/objformat; then
14582
 
    objformat=`/usr/bin/objformat`
14583
 
  else
14584
 
    case $host_os in
14585
 
    freebsd[123]*) objformat=aout ;;
14586
 
    *) objformat=elf ;;
14587
 
    esac
14588
 
  fi
14589
 
  version_type=freebsd-$objformat
14590
 
  case $version_type in
14591
 
    freebsd-elf*)
14592
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593
 
      need_version=no
14594
 
      need_lib_prefix=no
14595
 
      ;;
14596
 
    freebsd-*)
14597
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14598
 
      need_version=yes
14599
 
      ;;
14600
 
  esac
14601
 
  shlibpath_var=LD_LIBRARY_PATH
14602
 
  case $host_os in
14603
 
  freebsd2*)
14604
 
    shlibpath_overrides_runpath=yes
14605
 
    ;;
14606
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14607
 
    shlibpath_overrides_runpath=yes
14608
 
    hardcode_into_libs=yes
14609
 
    ;;
14610
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14611
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14612
 
    shlibpath_overrides_runpath=no
14613
 
    hardcode_into_libs=yes
14614
 
    ;;
14615
 
  freebsd*) # from 4.6 on
14616
 
    shlibpath_overrides_runpath=yes
14617
 
    hardcode_into_libs=yes
14618
 
    ;;
14619
 
  esac
14620
 
  ;;
14621
 
 
14622
 
gnu*)
14623
 
  version_type=linux
14624
 
  need_lib_prefix=no
14625
 
  need_version=no
14626
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14627
 
  soname_spec='${libname}${release}${shared_ext}$major'
14628
 
  shlibpath_var=LD_LIBRARY_PATH
14629
 
  hardcode_into_libs=yes
14630
 
  ;;
14631
 
 
14632
 
hpux9* | hpux10* | hpux11*)
14633
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14634
 
  # link against other versions.
14635
 
  version_type=sunos
14636
 
  need_lib_prefix=no
14637
 
  need_version=no
14638
 
  case $host_cpu in
14639
 
  ia64*)
14640
 
    shrext_cmds='.so'
14641
 
    hardcode_into_libs=yes
14642
 
    dynamic_linker="$host_os dld.so"
14643
 
    shlibpath_var=LD_LIBRARY_PATH
14644
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14645
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646
 
    soname_spec='${libname}${release}${shared_ext}$major'
14647
 
    if test "X$HPUX_IA64_MODE" = X32; then
14648
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14649
 
    else
14650
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14651
 
    fi
14652
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14653
 
    ;;
14654
 
   hppa*64*)
14655
 
     shrext_cmds='.sl'
14656
 
     hardcode_into_libs=yes
14657
 
     dynamic_linker="$host_os dld.sl"
14658
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14659
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14660
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661
 
     soname_spec='${libname}${release}${shared_ext}$major'
14662
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14663
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14664
 
     ;;
14665
 
   *)
14666
 
    shrext_cmds='.sl'
14667
 
    dynamic_linker="$host_os dld.sl"
14668
 
    shlibpath_var=SHLIB_PATH
14669
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14670
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671
 
    soname_spec='${libname}${release}${shared_ext}$major'
14672
 
    ;;
14673
 
  esac
14674
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14675
 
  postinstall_cmds='chmod 555 $lib'
14676
 
  ;;
14677
 
 
14678
 
interix3*)
14679
 
  version_type=linux
14680
 
  need_lib_prefix=no
14681
 
  need_version=no
14682
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14683
 
  soname_spec='${libname}${release}${shared_ext}$major'
14684
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14685
 
  shlibpath_var=LD_LIBRARY_PATH
14686
 
  shlibpath_overrides_runpath=no
14687
 
  hardcode_into_libs=yes
14688
 
  ;;
14689
 
 
14690
 
irix5* | irix6* | nonstopux*)
14691
 
  case $host_os in
14692
 
    nonstopux*) version_type=nonstopux ;;
14693
 
    *)
14694
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14695
 
                version_type=linux
14696
 
        else
14697
 
                version_type=irix
14698
 
        fi ;;
14699
 
  esac
14700
 
  need_lib_prefix=no
14701
 
  need_version=no
14702
 
  soname_spec='${libname}${release}${shared_ext}$major'
14703
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14704
 
  case $host_os in
14705
 
  irix5* | nonstopux*)
14706
 
    libsuff= shlibsuff=
14707
 
    ;;
14708
 
  *)
14709
 
    case $LD in # libtool.m4 will add one of these switches to LD
14710
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14711
 
      libsuff= shlibsuff= libmagic=32-bit;;
14712
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14713
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14714
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14715
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14716
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14717
 
    esac
14718
 
    ;;
14719
 
  esac
14720
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14721
 
  shlibpath_overrides_runpath=no
14722
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14723
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14724
 
  hardcode_into_libs=yes
14725
 
  ;;
14726
 
 
14727
 
# No shared lib support for Linux oldld, aout, or coff.
14728
 
linux*oldld* | linux*aout* | linux*coff*)
14729
 
  dynamic_linker=no
14730
 
  ;;
14731
 
 
14732
 
# This must be Linux ELF.
14733
 
linux*)
14734
 
  version_type=linux
14735
 
  need_lib_prefix=no
14736
 
  need_version=no
14737
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738
 
  soname_spec='${libname}${release}${shared_ext}$major'
14739
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14740
 
  shlibpath_var=LD_LIBRARY_PATH
14741
 
  shlibpath_overrides_runpath=no
14742
 
  # This implies no fast_install, which is unacceptable.
14743
 
  # Some rework will be needed to allow for fast_install
14744
 
  # before this can be enabled.
14745
 
  hardcode_into_libs=yes
14746
 
 
14747
 
  # Append ld.so.conf contents to the search path
14748
 
  if test -f /etc/ld.so.conf; then
14749
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14750
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14751
 
  fi
14752
 
 
14753
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14754
 
  # powerpc, because MkLinux only supported shared libraries with the
14755
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14756
 
  # most powerpc-linux boxes support dynamic linking these days and
14757
 
  # people can always --disable-shared, the test was removed, and we
14758
 
  # assume the GNU/Linux dynamic linker is in use.
14759
 
  dynamic_linker='GNU/Linux ld.so'
14760
 
  ;;
14761
 
 
14762
 
knetbsd*-gnu)
14763
 
  version_type=linux
14764
 
  need_lib_prefix=no
14765
 
  need_version=no
14766
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767
 
  soname_spec='${libname}${release}${shared_ext}$major'
14768
 
  shlibpath_var=LD_LIBRARY_PATH
14769
 
  shlibpath_overrides_runpath=no
14770
 
  hardcode_into_libs=yes
14771
 
  dynamic_linker='GNU ld.so'
14772
 
  ;;
14773
 
 
14774
 
netbsd*)
14775
 
  version_type=sunos
14776
 
  need_lib_prefix=no
14777
 
  need_version=no
14778
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14779
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14780
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14781
 
    dynamic_linker='NetBSD (a.out) ld.so'
14782
 
  else
14783
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14784
 
    soname_spec='${libname}${release}${shared_ext}$major'
14785
 
    dynamic_linker='NetBSD ld.elf_so'
14786
 
  fi
14787
 
  shlibpath_var=LD_LIBRARY_PATH
14788
 
  shlibpath_overrides_runpath=yes
14789
 
  hardcode_into_libs=yes
14790
 
  ;;
14791
 
 
14792
 
newsos6)
14793
 
  version_type=linux
14794
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795
 
  shlibpath_var=LD_LIBRARY_PATH
14796
 
  shlibpath_overrides_runpath=yes
14797
 
  ;;
14798
 
 
14799
 
nto-qnx*)
14800
 
  version_type=linux
14801
 
  need_lib_prefix=no
14802
 
  need_version=no
14803
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804
 
  soname_spec='${libname}${release}${shared_ext}$major'
14805
 
  shlibpath_var=LD_LIBRARY_PATH
14806
 
  shlibpath_overrides_runpath=yes
14807
 
  ;;
14808
 
 
14809
 
openbsd*)
14810
 
  version_type=sunos
14811
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14812
 
  need_lib_prefix=no
14813
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14814
 
  case $host_os in
14815
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14816
 
    *)                         need_version=no  ;;
14817
 
  esac
14818
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820
 
  shlibpath_var=LD_LIBRARY_PATH
14821
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14822
 
    case $host_os in
14823
 
      openbsd2.[89] | openbsd2.[89].*)
14824
 
        shlibpath_overrides_runpath=no
14825
 
        ;;
14826
 
      *)
14827
 
        shlibpath_overrides_runpath=yes
14828
 
        ;;
14829
 
      esac
14830
 
  else
14831
 
    shlibpath_overrides_runpath=yes
14832
 
  fi
14833
 
  ;;
14834
 
 
14835
 
os2*)
14836
 
  libname_spec='$name'
14837
 
  shrext_cmds=".dll"
14838
 
  need_lib_prefix=no
14839
 
  library_names_spec='$libname${shared_ext} $libname.a'
14840
 
  dynamic_linker='OS/2 ld.exe'
14841
 
  shlibpath_var=LIBPATH
14842
 
  ;;
14843
 
 
14844
 
osf3* | osf4* | osf5*)
14845
 
  version_type=osf
14846
 
  need_lib_prefix=no
14847
 
  need_version=no
14848
 
  soname_spec='${libname}${release}${shared_ext}$major'
14849
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850
 
  shlibpath_var=LD_LIBRARY_PATH
14851
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14852
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14853
 
  ;;
14854
 
 
14855
 
solaris*)
14856
 
  version_type=linux
14857
 
  need_lib_prefix=no
14858
 
  need_version=no
14859
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860
 
  soname_spec='${libname}${release}${shared_ext}$major'
14861
 
  shlibpath_var=LD_LIBRARY_PATH
14862
 
  shlibpath_overrides_runpath=yes
14863
 
  hardcode_into_libs=yes
14864
 
  # ldd complains unless libraries are executable
14865
 
  postinstall_cmds='chmod +x $lib'
14866
 
  ;;
14867
 
 
14868
 
sunos4*)
14869
 
  version_type=sunos
14870
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14872
 
  shlibpath_var=LD_LIBRARY_PATH
14873
 
  shlibpath_overrides_runpath=yes
14874
 
  if test "$with_gnu_ld" = yes; then
14875
 
    need_lib_prefix=no
14876
 
  fi
14877
 
  need_version=yes
14878
 
  ;;
14879
 
 
14880
 
sysv4 | sysv4.3*)
14881
 
  version_type=linux
14882
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883
 
  soname_spec='${libname}${release}${shared_ext}$major'
14884
 
  shlibpath_var=LD_LIBRARY_PATH
14885
 
  case $host_vendor in
14886
 
    sni)
14887
 
      shlibpath_overrides_runpath=no
14888
 
      need_lib_prefix=no
14889
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14890
 
      runpath_var=LD_RUN_PATH
14891
 
      ;;
14892
 
    siemens)
14893
 
      need_lib_prefix=no
14894
 
      ;;
14895
 
    motorola)
14896
 
      need_lib_prefix=no
14897
 
      need_version=no
14898
 
      shlibpath_overrides_runpath=no
14899
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14900
 
      ;;
14901
 
  esac
14902
 
  ;;
14903
 
 
14904
 
sysv4*MP*)
14905
 
  if test -d /usr/nec ;then
14906
 
    version_type=linux
14907
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14908
 
    soname_spec='$libname${shared_ext}.$major'
14909
 
    shlibpath_var=LD_LIBRARY_PATH
14910
 
  fi
14911
 
  ;;
14912
 
 
14913
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14914
 
  version_type=freebsd-elf
14915
 
  need_lib_prefix=no
14916
 
  need_version=no
14917
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14918
 
  soname_spec='${libname}${release}${shared_ext}$major'
14919
 
  shlibpath_var=LD_LIBRARY_PATH
14920
 
  hardcode_into_libs=yes
14921
 
  if test "$with_gnu_ld" = yes; then
14922
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14923
 
    shlibpath_overrides_runpath=no
14924
 
  else
14925
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14926
 
    shlibpath_overrides_runpath=yes
14927
 
    case $host_os in
14928
 
      sco3.2v5*)
14929
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14930
 
        ;;
14931
 
    esac
14932
 
  fi
14933
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14934
 
  ;;
14935
 
 
14936
 
uts4*)
14937
 
  version_type=linux
14938
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939
 
  soname_spec='${libname}${release}${shared_ext}$major'
14940
 
  shlibpath_var=LD_LIBRARY_PATH
14941
 
  ;;
14942
 
 
14943
 
*)
14944
 
  dynamic_linker=no
14945
 
  ;;
14946
 
esac
14947
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14948
 
echo "${ECHO_T}$dynamic_linker" >&6
14949
 
test "$dynamic_linker" = no && can_build_shared=no
14950
 
 
14951
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14952
 
if test "$GCC" = yes; then
14953
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14954
 
fi
14955
 
 
14956
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14957
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14958
 
hardcode_action_F77=
14959
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
14960
 
   test -n "$runpath_var_F77" || \
14961
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14962
 
 
14963
 
  # We can hardcode non-existant directories.
14964
 
  if test "$hardcode_direct_F77" != no &&
14965
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14966
 
     # have to relink, otherwise we might link with an installed library
14967
 
     # when we should be linking with a yet-to-be-installed one
14968
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14969
 
     test "$hardcode_minus_L_F77" != no; then
14970
 
    # Linking always hardcodes the temporary library directory.
14971
 
    hardcode_action_F77=relink
14972
 
  else
14973
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14974
 
    hardcode_action_F77=immediate
14975
 
  fi
14976
 
else
14977
 
  # We cannot hardcode anything, or else we can only hardcode existing
14978
 
  # directories.
14979
 
  hardcode_action_F77=unsupported
14980
 
fi
14981
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14982
 
echo "${ECHO_T}$hardcode_action_F77" >&6
14983
 
 
14984
 
if test "$hardcode_action_F77" = relink; then
14985
 
  # Fast installation is not supported
14986
 
  enable_fast_install=no
14987
 
elif test "$shlibpath_overrides_runpath" = yes ||
14988
 
     test "$enable_shared" = no; then
14989
 
  # Fast installation is not necessary
14990
 
  enable_fast_install=needless
14991
 
fi
14992
 
 
14993
 
 
14994
 
# The else clause should only fire when bootstrapping the
14995
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14996
 
# with your package, and you will get complaints that there are
14997
 
# no rules to generate ltmain.sh.
14998
 
if test -f "$ltmain"; then
14999
 
  # See if we are running on zsh, and set the options which allow our commands through
15000
 
  # without removal of \ escapes.
15001
 
  if test -n "${ZSH_VERSION+set}" ; then
15002
 
    setopt NO_GLOB_SUBST
15003
 
  fi
15004
 
  # Now quote all the things that may contain metacharacters while being
15005
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15006
 
  # variables and quote the copies for generation of the libtool script.
15007
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15008
 
    SED SHELL STRIP \
15009
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15010
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15011
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15012
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15013
 
    lt_cv_sys_global_symbol_to_c_name_address \
15014
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15015
 
    old_postinstall_cmds old_postuninstall_cmds \
15016
 
    compiler_F77 \
15017
 
    CC_F77 \
15018
 
    LD_F77 \
15019
 
    lt_prog_compiler_wl_F77 \
15020
 
    lt_prog_compiler_pic_F77 \
15021
 
    lt_prog_compiler_static_F77 \
15022
 
    lt_prog_compiler_no_builtin_flag_F77 \
15023
 
    export_dynamic_flag_spec_F77 \
15024
 
    thread_safe_flag_spec_F77 \
15025
 
    whole_archive_flag_spec_F77 \
15026
 
    enable_shared_with_static_runtimes_F77 \
15027
 
    old_archive_cmds_F77 \
15028
 
    old_archive_from_new_cmds_F77 \
15029
 
    predep_objects_F77 \
15030
 
    postdep_objects_F77 \
15031
 
    predeps_F77 \
15032
 
    postdeps_F77 \
15033
 
    compiler_lib_search_path_F77 \
15034
 
    archive_cmds_F77 \
15035
 
    archive_expsym_cmds_F77 \
15036
 
    postinstall_cmds_F77 \
15037
 
    postuninstall_cmds_F77 \
15038
 
    old_archive_from_expsyms_cmds_F77 \
15039
 
    allow_undefined_flag_F77 \
15040
 
    no_undefined_flag_F77 \
15041
 
    export_symbols_cmds_F77 \
15042
 
    hardcode_libdir_flag_spec_F77 \
15043
 
    hardcode_libdir_flag_spec_ld_F77 \
15044
 
    hardcode_libdir_separator_F77 \
15045
 
    hardcode_automatic_F77 \
15046
 
    module_cmds_F77 \
15047
 
    module_expsym_cmds_F77 \
15048
 
    lt_cv_prog_compiler_c_o_F77 \
15049
 
    exclude_expsyms_F77 \
15050
 
    include_expsyms_F77; do
15051
 
 
15052
 
    case $var in
15053
 
    old_archive_cmds_F77 | \
15054
 
    old_archive_from_new_cmds_F77 | \
15055
 
    archive_cmds_F77 | \
15056
 
    archive_expsym_cmds_F77 | \
15057
 
    module_cmds_F77 | \
15058
 
    module_expsym_cmds_F77 | \
15059
 
    old_archive_from_expsyms_cmds_F77 | \
15060
 
    export_symbols_cmds_F77 | \
15061
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15062
 
    postinstall_cmds | postuninstall_cmds | \
15063
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15064
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15065
 
      # Double-quote double-evaled strings.
15066
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15067
 
      ;;
15068
 
    *)
15069
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15070
 
      ;;
15071
 
    esac
15072
 
  done
15073
 
 
15074
 
  case $lt_echo in
15075
 
  *'\$0 --fallback-echo"')
15076
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15077
 
    ;;
15078
 
  esac
15079
 
 
15080
 
cfgfile="$ofile"
15081
 
 
15082
 
  cat <<__EOF__ >> "$cfgfile"
15083
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15084
 
 
15085
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15086
 
 
15087
 
# Shell to use when invoking shell scripts.
15088
 
SHELL=$lt_SHELL
15089
 
 
15090
 
# Whether or not to build shared libraries.
15091
 
build_libtool_libs=$enable_shared
15092
 
 
15093
 
# Whether or not to build static libraries.
15094
 
build_old_libs=$enable_static
15095
 
 
15096
 
# Whether or not to add -lc for building shared libraries.
15097
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
15098
 
 
15099
 
# Whether or not to disallow shared libs when runtime libs are static
15100
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15101
 
 
15102
 
# Whether or not to optimize for fast installation.
15103
 
fast_install=$enable_fast_install
15104
 
 
15105
 
# The host system.
15106
 
host_alias=$host_alias
15107
 
host=$host
15108
 
host_os=$host_os
15109
 
 
15110
 
# The build system.
15111
 
build_alias=$build_alias
15112
 
build=$build
15113
 
build_os=$build_os
15114
 
 
15115
 
# An echo program that does not interpret backslashes.
15116
 
echo=$lt_echo
15117
 
 
15118
 
# The archiver.
15119
 
AR=$lt_AR
15120
 
AR_FLAGS=$lt_AR_FLAGS
15121
 
 
15122
 
# A C compiler.
15123
 
LTCC=$lt_LTCC
15124
 
 
15125
 
# LTCC compiler flags.
15126
 
LTCFLAGS=$lt_LTCFLAGS
15127
 
 
15128
 
# A language-specific compiler.
15129
 
CC=$lt_compiler_F77
15130
 
 
15131
 
# Is the compiler the GNU C compiler?
15132
 
with_gcc=$GCC_F77
15133
 
 
15134
 
# An ERE matcher.
15135
 
EGREP=$lt_EGREP
15136
 
 
15137
 
# The linker used to build libraries.
15138
 
LD=$lt_LD_F77
15139
 
 
15140
 
# Whether we need hard or soft links.
15141
 
LN_S=$lt_LN_S
15142
 
 
15143
 
# A BSD-compatible nm program.
15144
 
NM=$lt_NM
15145
 
 
15146
 
# A symbol stripping program
15147
 
STRIP=$lt_STRIP
15148
 
 
15149
 
# Used to examine libraries when file_magic_cmd begins "file"
15150
 
MAGIC_CMD=$MAGIC_CMD
15151
 
 
15152
 
# Used on cygwin: DLL creation program.
15153
 
DLLTOOL="$DLLTOOL"
15154
 
 
15155
 
# Used on cygwin: object dumper.
15156
 
OBJDUMP="$OBJDUMP"
15157
 
 
15158
 
# Used on cygwin: assembler.
15159
 
AS="$AS"
15160
 
 
15161
 
# The name of the directory that contains temporary libtool files.
15162
 
objdir=$objdir
15163
 
 
15164
 
# How to create reloadable object files.
15165
 
reload_flag=$lt_reload_flag
15166
 
reload_cmds=$lt_reload_cmds
15167
 
 
15168
 
# How to pass a linker flag through the compiler.
15169
 
wl=$lt_lt_prog_compiler_wl_F77
15170
 
 
15171
 
# Object file suffix (normally "o").
15172
 
objext="$ac_objext"
15173
 
 
15174
 
# Old archive suffix (normally "a").
15175
 
libext="$libext"
15176
 
 
15177
 
# Shared library suffix (normally ".so").
15178
 
shrext_cmds='$shrext_cmds'
15179
 
 
15180
 
# Executable file suffix (normally "").
15181
 
exeext="$exeext"
15182
 
 
15183
 
# Additional compiler flags for building library objects.
15184
 
pic_flag=$lt_lt_prog_compiler_pic_F77
15185
 
pic_mode=$pic_mode
15186
 
 
15187
 
# What is the maximum length of a command?
15188
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15189
 
 
15190
 
# Does compiler simultaneously support -c and -o options?
15191
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15192
 
 
15193
 
# Must we lock files when doing compilation?
15194
 
need_locks=$lt_need_locks
15195
 
 
15196
 
# Do we need the lib prefix for modules?
15197
 
need_lib_prefix=$need_lib_prefix
15198
 
 
15199
 
# Do we need a version for libraries?
15200
 
need_version=$need_version
15201
 
 
15202
 
# Whether dlopen is supported.
15203
 
dlopen_support=$enable_dlopen
15204
 
 
15205
 
# Whether dlopen of programs is supported.
15206
 
dlopen_self=$enable_dlopen_self
15207
 
 
15208
 
# Whether dlopen of statically linked programs is supported.
15209
 
dlopen_self_static=$enable_dlopen_self_static
15210
 
 
15211
 
# Compiler flag to prevent dynamic linking.
15212
 
link_static_flag=$lt_lt_prog_compiler_static_F77
15213
 
 
15214
 
# Compiler flag to turn off builtin functions.
15215
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15216
 
 
15217
 
# Compiler flag to allow reflexive dlopens.
15218
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15219
 
 
15220
 
# Compiler flag to generate shared objects directly from archives.
15221
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15222
 
 
15223
 
# Compiler flag to generate thread-safe objects.
15224
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15225
 
 
15226
 
# Library versioning type.
15227
 
version_type=$version_type
15228
 
 
15229
 
# Format of library name prefix.
15230
 
libname_spec=$lt_libname_spec
15231
 
 
15232
 
# List of archive names.  First name is the real one, the rest are links.
15233
 
# The last name is the one that the linker finds with -lNAME.
15234
 
library_names_spec=$lt_library_names_spec
15235
 
 
15236
 
# The coded name of the library, if different from the real name.
15237
 
soname_spec=$lt_soname_spec
15238
 
 
15239
 
# Commands used to build and install an old-style archive.
15240
 
RANLIB=$lt_RANLIB
15241
 
old_archive_cmds=$lt_old_archive_cmds_F77
15242
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15243
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15244
 
 
15245
 
# Create an old-style archive from a shared archive.
15246
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15247
 
 
15248
 
# Create a temporary old-style archive to link instead of a shared archive.
15249
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15250
 
 
15251
 
# Commands used to build and install a shared archive.
15252
 
archive_cmds=$lt_archive_cmds_F77
15253
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15254
 
postinstall_cmds=$lt_postinstall_cmds
15255
 
postuninstall_cmds=$lt_postuninstall_cmds
15256
 
 
15257
 
# Commands used to build a loadable module (assumed same as above if empty)
15258
 
module_cmds=$lt_module_cmds_F77
15259
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
15260
 
 
15261
 
# Commands to strip libraries.
15262
 
old_striplib=$lt_old_striplib
15263
 
striplib=$lt_striplib
15264
 
 
15265
 
# Dependencies to place before the objects being linked to create a
15266
 
# shared library.
15267
 
predep_objects=$lt_predep_objects_F77
15268
 
 
15269
 
# Dependencies to place after the objects being linked to create a
15270
 
# shared library.
15271
 
postdep_objects=$lt_postdep_objects_F77
15272
 
 
15273
 
# Dependencies to place before the objects being linked to create a
15274
 
# shared library.
15275
 
predeps=$lt_predeps_F77
15276
 
 
15277
 
# Dependencies to place after the objects being linked to create a
15278
 
# shared library.
15279
 
postdeps=$lt_postdeps_F77
15280
 
 
15281
 
# The library search path used internally by the compiler when linking
15282
 
# a shared library.
15283
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15284
 
 
15285
 
# Method to check whether dependent libraries are shared objects.
15286
 
deplibs_check_method=$lt_deplibs_check_method
15287
 
 
15288
 
# Command to use when deplibs_check_method == file_magic.
15289
 
file_magic_cmd=$lt_file_magic_cmd
15290
 
 
15291
 
# Flag that allows shared libraries with undefined symbols to be built.
15292
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
15293
 
 
15294
 
# Flag that forces no undefined symbols.
15295
 
no_undefined_flag=$lt_no_undefined_flag_F77
15296
 
 
15297
 
# Commands used to finish a libtool library installation in a directory.
15298
 
finish_cmds=$lt_finish_cmds
15299
 
 
15300
 
# Same as above, but a single script fragment to be evaled but not shown.
15301
 
finish_eval=$lt_finish_eval
15302
 
 
15303
 
# Take the output of nm and produce a listing of raw symbols and C names.
15304
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15305
 
 
15306
 
# Transform the output of nm in a proper C declaration
15307
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15308
 
 
15309
 
# Transform the output of nm in a C name address pair
15310
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15311
 
 
15312
 
# This is the shared library runtime path variable.
15313
 
runpath_var=$runpath_var
15314
 
 
15315
 
# This is the shared library path variable.
15316
 
shlibpath_var=$shlibpath_var
15317
 
 
15318
 
# Is shlibpath searched before the hard-coded library search path?
15319
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15320
 
 
15321
 
# How to hardcode a shared library path into an executable.
15322
 
hardcode_action=$hardcode_action_F77
15323
 
 
15324
 
# Whether we should hardcode library paths into libraries.
15325
 
hardcode_into_libs=$hardcode_into_libs
15326
 
 
15327
 
# Flag to hardcode \$libdir into a binary during linking.
15328
 
# This must work even if \$libdir does not exist.
15329
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15330
 
 
15331
 
# If ld is used when linking, flag to hardcode \$libdir into
15332
 
# a binary during linking. This must work even if \$libdir does
15333
 
# not exist.
15334
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15335
 
 
15336
 
# Whether we need a single -rpath flag with a separated argument.
15337
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15338
 
 
15339
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15340
 
# resulting binary.
15341
 
hardcode_direct=$hardcode_direct_F77
15342
 
 
15343
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15344
 
# resulting binary.
15345
 
hardcode_minus_L=$hardcode_minus_L_F77
15346
 
 
15347
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15348
 
# the resulting binary.
15349
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15350
 
 
15351
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15352
 
# and all subsequent libraries and executables linked against it.
15353
 
hardcode_automatic=$hardcode_automatic_F77
15354
 
 
15355
 
# Variables whose values should be saved in libtool wrapper scripts and
15356
 
# restored at relink time.
15357
 
variables_saved_for_relink="$variables_saved_for_relink"
15358
 
 
15359
 
# Whether libtool must link a program against all its dependency libraries.
15360
 
link_all_deplibs=$link_all_deplibs_F77
15361
 
 
15362
 
# Compile-time system search path for libraries
15363
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15364
 
 
15365
 
# Run-time system search path for libraries
15366
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15367
 
 
15368
 
# Fix the shell variable \$srcfile for the compiler.
15369
 
fix_srcfile_path="$fix_srcfile_path_F77"
15370
 
 
15371
 
# Set to yes if exported symbols are required.
15372
 
always_export_symbols=$always_export_symbols_F77
15373
 
 
15374
 
# The commands to list exported symbols.
15375
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
15376
 
 
15377
 
# The commands to extract the exported symbol list from a shared archive.
15378
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15379
 
 
15380
 
# Symbols that should not be listed in the preloaded symbols.
15381
 
exclude_expsyms=$lt_exclude_expsyms_F77
15382
 
 
15383
 
# Symbols that must always be exported.
15384
 
include_expsyms=$lt_include_expsyms_F77
15385
 
 
15386
 
# ### END LIBTOOL TAG CONFIG: $tagname
15387
 
 
15388
 
__EOF__
15389
 
 
15390
 
 
15391
 
else
15392
 
  # If there is no Makefile yet, we rely on a make rule to execute
15393
 
  # `config.status --recheck' to rerun these tests and create the
15394
 
  # libtool script then.
15395
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15396
 
  if test -f "$ltmain_in"; then
15397
 
    test -f Makefile && make "$ltmain"
15398
 
  fi
15399
 
fi
15400
 
 
15401
 
 
15402
 
ac_ext=c
15403
 
ac_cpp='$CPP $CPPFLAGS'
15404
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
 
 
15408
 
CC="$lt_save_CC"
15409
 
 
15410
 
        else
15411
 
          tagname=""
15412
 
        fi
15413
 
        ;;
15414
 
 
15415
 
      GCJ)
15416
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15417
 
 
15418
 
 
15419
 
 
15420
 
# Source file extension for Java test sources.
15421
 
ac_ext=java
15422
 
 
15423
 
# Object file extension for compiled Java test sources.
15424
 
objext=o
15425
 
objext_GCJ=$objext
15426
 
 
15427
 
# Code to be used in simple compile tests
15428
 
lt_simple_compile_test_code="class foo {}\n"
15429
 
 
15430
 
# Code to be used in simple link tests
15431
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15432
 
 
15433
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15434
 
 
15435
 
# If no C compiler was specified, use CC.
15436
 
LTCC=${LTCC-"$CC"}
15437
 
 
15438
 
# If no C compiler flags were specified, use CFLAGS.
15439
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15440
 
 
15441
 
# Allow CC to be a program name with arguments.
15442
 
compiler=$CC
15443
 
 
15444
 
 
15445
 
# save warnings/boilerplate of simple test code
15446
 
ac_outfile=conftest.$ac_objext
15447
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15448
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15449
 
_lt_compiler_boilerplate=`cat conftest.err`
15450
 
$rm conftest*
15451
 
 
15452
 
ac_outfile=conftest.$ac_objext
15453
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15454
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15455
 
_lt_linker_boilerplate=`cat conftest.err`
15456
 
$rm conftest*
15457
 
 
15458
 
 
15459
 
# Allow CC to be a program name with arguments.
15460
 
lt_save_CC="$CC"
15461
 
CC=${GCJ-"gcj"}
15462
 
compiler=$CC
15463
 
compiler_GCJ=$CC
15464
 
for cc_temp in $compiler""; do
15465
 
  case $cc_temp in
15466
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15467
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15468
 
    \-*) ;;
15469
 
    *) break;;
15470
 
  esac
15471
 
done
15472
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15473
 
 
15474
 
 
15475
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15476
 
archive_cmds_need_lc_GCJ=no
15477
 
 
15478
 
old_archive_cmds_GCJ=$old_archive_cmds
15479
 
 
15480
 
## CAVEAT EMPTOR:
15481
 
## There is no encapsulation within the following macros, do not change
15482
 
## the running order or otherwise move them around unless you know exactly
15483
 
## what you are doing...
15484
 
 
15485
 
lt_prog_compiler_no_builtin_flag_GCJ=
15486
 
 
15487
 
if test "$GCC" = yes; then
15488
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15489
 
 
15490
 
 
15491
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15492
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15493
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15494
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15495
 
else
15496
 
  lt_cv_prog_compiler_rtti_exceptions=no
15497
 
  ac_outfile=conftest.$ac_objext
15498
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15499
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15500
 
   # Insert the option either (1) after the last *FLAGS variable, or
15501
 
   # (2) before a word containing "conftest.", or (3) at the end.
15502
 
   # Note that $ac_compile itself does not contain backslashes and begins
15503
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15504
 
   # The option is referenced via a variable to avoid confusing sed.
15505
 
   lt_compile=`echo "$ac_compile" | $SED \
15506
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15507
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15508
 
   -e 's:$: $lt_compiler_flag:'`
15509
 
   (eval echo "\"\$as_me:15509: $lt_compile\"" >&5)
15510
 
   (eval "$lt_compile" 2>conftest.err)
15511
 
   ac_status=$?
15512
 
   cat conftest.err >&5
15513
 
   echo "$as_me:15513: \$? = $ac_status" >&5
15514
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15515
 
     # The compiler can only warn and ignore the option if not recognized
15516
 
     # So say no if there are warnings other than the usual output.
15517
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15518
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15519
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15520
 
       lt_cv_prog_compiler_rtti_exceptions=yes
15521
 
     fi
15522
 
   fi
15523
 
   $rm conftest*
15524
 
 
15525
 
fi
15526
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15527
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15528
 
 
15529
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15530
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15531
 
else
15532
 
    :
15533
 
fi
15534
 
 
15535
 
fi
15536
 
 
15537
 
lt_prog_compiler_wl_GCJ=
15538
 
lt_prog_compiler_pic_GCJ=
15539
 
lt_prog_compiler_static_GCJ=
15540
 
 
15541
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15542
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15543
 
 
15544
 
  if test "$GCC" = yes; then
15545
 
    lt_prog_compiler_wl_GCJ='-Wl,'
15546
 
    lt_prog_compiler_static_GCJ='-static'
15547
 
 
15548
 
    case $host_os in
15549
 
      aix*)
15550
 
      # All AIX code is PIC.
15551
 
      if test "$host_cpu" = ia64; then
15552
 
        # AIX 5 now supports IA64 processor
15553
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15554
 
      fi
15555
 
      ;;
15556
 
 
15557
 
    amigaos*)
15558
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15559
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15560
 
      # like `-m68040'.
15561
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15562
 
      ;;
15563
 
 
15564
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15565
 
      # PIC is the default for these OSes.
15566
 
      ;;
15567
 
 
15568
 
    mingw* | pw32* | os2*)
15569
 
      # This hack is so that the source file can tell whether it is being
15570
 
      # built for inclusion in a dll (and should export symbols for example).
15571
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15572
 
      ;;
15573
 
 
15574
 
    darwin* | rhapsody*)
15575
 
      # PIC is the default on this platform
15576
 
      # Common symbols not allowed in MH_DYLIB files
15577
 
      lt_prog_compiler_pic_GCJ='-fno-common'
15578
 
      ;;
15579
 
 
15580
 
    interix3*)
15581
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15582
 
      # Instead, we relocate shared libraries at runtime.
15583
 
      ;;
15584
 
 
15585
 
    msdosdjgpp*)
15586
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15587
 
      # on systems that don't support them.
15588
 
      lt_prog_compiler_can_build_shared_GCJ=no
15589
 
      enable_shared=no
15590
 
      ;;
15591
 
 
15592
 
    sysv4*MP*)
15593
 
      if test -d /usr/nec; then
15594
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15595
 
      fi
15596
 
      ;;
15597
 
 
15598
 
    hpux*)
15599
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15600
 
      # not for PA HP-UX.
15601
 
      case $host_cpu in
15602
 
      hppa*64*|ia64*)
15603
 
        # +Z the default
15604
 
        ;;
15605
 
      *)
15606
 
        lt_prog_compiler_pic_GCJ='-fPIC'
15607
 
        ;;
15608
 
      esac
15609
 
      ;;
15610
 
 
15611
 
    *)
15612
 
      lt_prog_compiler_pic_GCJ='-fPIC'
15613
 
      ;;
15614
 
    esac
15615
 
  else
15616
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15617
 
    case $host_os in
15618
 
    aix*)
15619
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15620
 
      if test "$host_cpu" = ia64; then
15621
 
        # AIX 5 now supports IA64 processor
15622
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15623
 
      else
15624
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15625
 
      fi
15626
 
      ;;
15627
 
      darwin*)
15628
 
        # PIC is the default on this platform
15629
 
        # Common symbols not allowed in MH_DYLIB files
15630
 
       case $cc_basename in
15631
 
         xlc*)
15632
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
15633
 
         lt_prog_compiler_wl_GCJ='-Wl,'
15634
 
         ;;
15635
 
       esac
15636
 
       ;;
15637
 
 
15638
 
    mingw* | pw32* | os2*)
15639
 
      # This hack is so that the source file can tell whether it is being
15640
 
      # built for inclusion in a dll (and should export symbols for example).
15641
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15642
 
      ;;
15643
 
 
15644
 
    hpux9* | hpux10* | hpux11*)
15645
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15646
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15647
 
      # not for PA HP-UX.
15648
 
      case $host_cpu in
15649
 
      hppa*64*|ia64*)
15650
 
        # +Z the default
15651
 
        ;;
15652
 
      *)
15653
 
        lt_prog_compiler_pic_GCJ='+Z'
15654
 
        ;;
15655
 
      esac
15656
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15657
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15658
 
      ;;
15659
 
 
15660
 
    irix5* | irix6* | nonstopux*)
15661
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15662
 
      # PIC (with -KPIC) is the default.
15663
 
      lt_prog_compiler_static_GCJ='-non_shared'
15664
 
      ;;
15665
 
 
15666
 
    newsos6)
15667
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15668
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15669
 
      ;;
15670
 
 
15671
 
    linux*)
15672
 
      case $cc_basename in
15673
 
      icc* | ecc*)
15674
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15675
 
        lt_prog_compiler_pic_GCJ='-KPIC'
15676
 
        lt_prog_compiler_static_GCJ='-static'
15677
 
        ;;
15678
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15679
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15680
 
        # which looks to be a dead project)
15681
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15682
 
        lt_prog_compiler_pic_GCJ='-fpic'
15683
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15684
 
        ;;
15685
 
      ccc*)
15686
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15687
 
        # All Alpha code is PIC.
15688
 
        lt_prog_compiler_static_GCJ='-non_shared'
15689
 
        ;;
15690
 
      esac
15691
 
      ;;
15692
 
 
15693
 
    osf3* | osf4* | osf5*)
15694
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15695
 
      # All OSF/1 code is PIC.
15696
 
      lt_prog_compiler_static_GCJ='-non_shared'
15697
 
      ;;
15698
 
 
15699
 
    solaris*)
15700
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15701
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15702
 
      case $cc_basename in
15703
 
      f77* | f90* | f95*)
15704
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15705
 
      *)
15706
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
15707
 
      esac
15708
 
      ;;
15709
 
 
15710
 
    sunos4*)
15711
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15712
 
      lt_prog_compiler_pic_GCJ='-PIC'
15713
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15714
 
      ;;
15715
 
 
15716
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15717
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15718
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15719
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15720
 
      ;;
15721
 
 
15722
 
    sysv4*MP*)
15723
 
      if test -d /usr/nec ;then
15724
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15725
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15726
 
      fi
15727
 
      ;;
15728
 
 
15729
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15730
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15731
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15732
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15733
 
      ;;
15734
 
 
15735
 
    unicos*)
15736
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15737
 
      lt_prog_compiler_can_build_shared_GCJ=no
15738
 
      ;;
15739
 
 
15740
 
    uts4*)
15741
 
      lt_prog_compiler_pic_GCJ='-pic'
15742
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15743
 
      ;;
15744
 
 
15745
 
    *)
15746
 
      lt_prog_compiler_can_build_shared_GCJ=no
15747
 
      ;;
15748
 
    esac
15749
 
  fi
15750
 
 
15751
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15752
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15753
 
 
15754
 
#
15755
 
# Check to make sure the PIC flag actually works.
15756
 
#
15757
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
15758
 
 
15759
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15760
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15761
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15762
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15763
 
else
15764
 
  lt_prog_compiler_pic_works_GCJ=no
15765
 
  ac_outfile=conftest.$ac_objext
15766
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15767
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15768
 
   # Insert the option either (1) after the last *FLAGS variable, or
15769
 
   # (2) before a word containing "conftest.", or (3) at the end.
15770
 
   # Note that $ac_compile itself does not contain backslashes and begins
15771
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15772
 
   # The option is referenced via a variable to avoid confusing sed.
15773
 
   lt_compile=`echo "$ac_compile" | $SED \
15774
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15775
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776
 
   -e 's:$: $lt_compiler_flag:'`
15777
 
   (eval echo "\"\$as_me:15777: $lt_compile\"" >&5)
15778
 
   (eval "$lt_compile" 2>conftest.err)
15779
 
   ac_status=$?
15780
 
   cat conftest.err >&5
15781
 
   echo "$as_me:15781: \$? = $ac_status" >&5
15782
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15783
 
     # The compiler can only warn and ignore the option if not recognized
15784
 
     # So say no if there are warnings other than the usual output.
15785
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15786
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15787
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15788
 
       lt_prog_compiler_pic_works_GCJ=yes
15789
 
     fi
15790
 
   fi
15791
 
   $rm conftest*
15792
 
 
15793
 
fi
15794
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15795
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15796
 
 
15797
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15798
 
    case $lt_prog_compiler_pic_GCJ in
15799
 
     "" | " "*) ;;
15800
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15801
 
     esac
15802
 
else
15803
 
    lt_prog_compiler_pic_GCJ=
15804
 
     lt_prog_compiler_can_build_shared_GCJ=no
15805
 
fi
15806
 
 
15807
 
fi
15808
 
case $host_os in
15809
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15810
 
  *djgpp*)
15811
 
    lt_prog_compiler_pic_GCJ=
15812
 
    ;;
15813
 
  *)
15814
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15815
 
    ;;
15816
 
esac
15817
 
 
15818
 
#
15819
 
# Check to make sure the static flag actually works.
15820
 
#
15821
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15822
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15823
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15824
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15825
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15826
 
else
15827
 
  lt_prog_compiler_static_works_GCJ=no
15828
 
   save_LDFLAGS="$LDFLAGS"
15829
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15830
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15831
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15832
 
     # The linker can only warn and ignore the option if not recognized
15833
 
     # So say no if there are warnings
15834
 
     if test -s conftest.err; then
15835
 
       # Append any errors to the config.log.
15836
 
       cat conftest.err 1>&5
15837
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15838
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15840
 
         lt_prog_compiler_static_works_GCJ=yes
15841
 
       fi
15842
 
     else
15843
 
       lt_prog_compiler_static_works_GCJ=yes
15844
 
     fi
15845
 
   fi
15846
 
   $rm conftest*
15847
 
   LDFLAGS="$save_LDFLAGS"
15848
 
 
15849
 
fi
15850
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15851
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15852
 
 
15853
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15854
 
    :
15855
 
else
15856
 
    lt_prog_compiler_static_GCJ=
15857
 
fi
15858
 
 
15859
 
 
15860
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15861
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15862
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15864
 
else
15865
 
  lt_cv_prog_compiler_c_o_GCJ=no
15866
 
   $rm -r conftest 2>/dev/null
15867
 
   mkdir conftest
15868
 
   cd conftest
15869
 
   mkdir out
15870
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871
 
 
15872
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15873
 
   # Insert the option either (1) after the last *FLAGS variable, or
15874
 
   # (2) before a word containing "conftest.", or (3) at the end.
15875
 
   # Note that $ac_compile itself does not contain backslashes and begins
15876
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15877
 
   lt_compile=`echo "$ac_compile" | $SED \
15878
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15879
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880
 
   -e 's:$: $lt_compiler_flag:'`
15881
 
   (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882
 
   (eval "$lt_compile" 2>out/conftest.err)
15883
 
   ac_status=$?
15884
 
   cat out/conftest.err >&5
15885
 
   echo "$as_me:15885: \$? = $ac_status" >&5
15886
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15887
 
   then
15888
 
     # The compiler can only warn and ignore the option if not recognized
15889
 
     # So say no if there are warnings
15890
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15891
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15892
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15893
 
       lt_cv_prog_compiler_c_o_GCJ=yes
15894
 
     fi
15895
 
   fi
15896
 
   chmod u+w . 2>&5
15897
 
   $rm conftest*
15898
 
   # SGI C++ compiler will create directory out/ii_files/ for
15899
 
   # template instantiation
15900
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15901
 
   $rm out/* && rmdir out
15902
 
   cd ..
15903
 
   rmdir conftest
15904
 
   $rm conftest*
15905
 
 
15906
 
fi
15907
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15908
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15909
 
 
15910
 
 
15911
 
hard_links="nottested"
15912
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15913
 
  # do not overwrite the value of need_locks provided by the user
15914
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15915
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15916
 
  hard_links=yes
15917
 
  $rm conftest*
15918
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15919
 
  touch conftest.a
15920
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15921
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15923
 
echo "${ECHO_T}$hard_links" >&6
15924
 
  if test "$hard_links" = no; then
15925
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15926
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15927
 
    need_locks=warn
15928
 
  fi
15929
 
else
15930
 
  need_locks=no
15931
 
fi
15932
 
 
15933
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15934
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15935
 
 
15936
 
  runpath_var=
15937
 
  allow_undefined_flag_GCJ=
15938
 
  enable_shared_with_static_runtimes_GCJ=no
15939
 
  archive_cmds_GCJ=
15940
 
  archive_expsym_cmds_GCJ=
15941
 
  old_archive_From_new_cmds_GCJ=
15942
 
  old_archive_from_expsyms_cmds_GCJ=
15943
 
  export_dynamic_flag_spec_GCJ=
15944
 
  whole_archive_flag_spec_GCJ=
15945
 
  thread_safe_flag_spec_GCJ=
15946
 
  hardcode_libdir_flag_spec_GCJ=
15947
 
  hardcode_libdir_flag_spec_ld_GCJ=
15948
 
  hardcode_libdir_separator_GCJ=
15949
 
  hardcode_direct_GCJ=no
15950
 
  hardcode_minus_L_GCJ=no
15951
 
  hardcode_shlibpath_var_GCJ=unsupported
15952
 
  link_all_deplibs_GCJ=unknown
15953
 
  hardcode_automatic_GCJ=no
15954
 
  module_cmds_GCJ=
15955
 
  module_expsym_cmds_GCJ=
15956
 
  always_export_symbols_GCJ=no
15957
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15958
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15959
 
  # included in the symbol list
15960
 
  include_expsyms_GCJ=
15961
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15962
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15963
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15964
 
  # as well as any symbol that contains `d'.
15965
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15966
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15967
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15968
 
  # the symbol is explicitly referenced.  Since portable code cannot
15969
 
  # rely on this symbol name, it's probably fine to never include it in
15970
 
  # preloaded symbol tables.
15971
 
  extract_expsyms_cmds=
15972
 
  # Just being paranoid about ensuring that cc_basename is set.
15973
 
  for cc_temp in $compiler""; do
15974
 
  case $cc_temp in
15975
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15976
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15977
 
    \-*) ;;
15978
 
    *) break;;
15979
 
  esac
15980
 
done
15981
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15982
 
 
15983
 
  case $host_os in
15984
 
  cygwin* | mingw* | pw32*)
15985
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15986
 
    # When not using gcc, we currently assume that we are using
15987
 
    # Microsoft Visual C++.
15988
 
    if test "$GCC" != yes; then
15989
 
      with_gnu_ld=no
15990
 
    fi
15991
 
    ;;
15992
 
  interix*)
15993
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15994
 
    with_gnu_ld=yes
15995
 
    ;;
15996
 
  openbsd*)
15997
 
    with_gnu_ld=no
15998
 
    ;;
15999
 
  esac
16000
 
 
16001
 
  ld_shlibs_GCJ=yes
16002
 
  if test "$with_gnu_ld" = yes; then
16003
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16004
 
    wlarc='${wl}'
16005
 
 
16006
 
    # Set some defaults for GNU ld with shared library support. These
16007
 
    # are reset later if shared libraries are not supported. Putting them
16008
 
    # here allows them to be overridden if necessary.
16009
 
    runpath_var=LD_RUN_PATH
16010
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16011
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16012
 
    # ancient GNU ld didn't support --whole-archive et. al.
16013
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16014
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16015
 
      else
16016
 
        whole_archive_flag_spec_GCJ=
16017
 
    fi
16018
 
    supports_anon_versioning=no
16019
 
    case `$LD -v 2>/dev/null` in
16020
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023
 
      *\ 2.11.*) ;; # other 2.11 versions
16024
 
      *) supports_anon_versioning=yes ;;
16025
 
    esac
16026
 
 
16027
 
    # See if GNU ld supports shared libraries.
16028
 
    case $host_os in
16029
 
    aix3* | aix4* | aix5*)
16030
 
      # On AIX/PPC, the GNU linker is very broken
16031
 
      if test "$host_cpu" != ia64; then
16032
 
        ld_shlibs_GCJ=no
16033
 
        cat <<EOF 1>&2
16034
 
 
16035
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16036
 
*** to be unable to reliably create shared libraries on AIX.
16037
 
*** Therefore, libtool is disabling shared libraries support.  If you
16038
 
*** really care for shared libraries, you may want to modify your PATH
16039
 
*** so that a non-GNU linker is found, and then restart.
16040
 
 
16041
 
EOF
16042
 
      fi
16043
 
      ;;
16044
 
 
16045
 
    amigaos*)
16046
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16047
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048
 
      hardcode_minus_L_GCJ=yes
16049
 
 
16050
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16051
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16052
 
      # to version 4, is to share data among multiple programs linked
16053
 
      # with the same dynamic library.  Since this doesn't match the
16054
 
      # behavior of shared libraries on other platforms, we can't use
16055
 
      # them.
16056
 
      ld_shlibs_GCJ=no
16057
 
      ;;
16058
 
 
16059
 
    beos*)
16060
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16061
 
        allow_undefined_flag_GCJ=unsupported
16062
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16063
 
        # support --undefined.  This deserves some investigation.  FIXME
16064
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065
 
      else
16066
 
        ld_shlibs_GCJ=no
16067
 
      fi
16068
 
      ;;
16069
 
 
16070
 
    cygwin* | mingw* | pw32*)
16071
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16072
 
      # as there is no search path for DLLs.
16073
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16074
 
      allow_undefined_flag_GCJ=unsupported
16075
 
      always_export_symbols_GCJ=no
16076
 
      enable_shared_with_static_runtimes_GCJ=yes
16077
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16078
 
 
16079
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16080
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16081
 
        # If the export-symbols file already is a .def file (1st line
16082
 
        # is EXPORTS), use it as is; otherwise, prepend...
16083
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16084
 
          cp $export_symbols $output_objdir/$soname.def;
16085
 
        else
16086
 
          echo EXPORTS > $output_objdir/$soname.def;
16087
 
          cat $export_symbols >> $output_objdir/$soname.def;
16088
 
        fi~
16089
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16090
 
      else
16091
 
        ld_shlibs_GCJ=no
16092
 
      fi
16093
 
      ;;
16094
 
 
16095
 
    interix3*)
16096
 
      hardcode_direct_GCJ=no
16097
 
      hardcode_shlibpath_var_GCJ=no
16098
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16099
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16100
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16101
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16102
 
      # default) and relocated if they conflict, which is a slow very memory
16103
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16104
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16105
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16106
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16107
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16108
 
      ;;
16109
 
 
16110
 
    linux*)
16111
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112
 
        tmp_addflag=
16113
 
        case $cc_basename,$host_cpu in
16114
 
        pgcc*)                          # Portland Group C compiler
16115
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16116
 
          tmp_addflag=' $pic_flag'
16117
 
          ;;
16118
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16119
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16120
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16121
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16122
 
          tmp_addflag=' -i_dynamic' ;;
16123
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16124
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16125
 
        ifc* | ifort*)                  # Intel Fortran compiler
16126
 
          tmp_addflag=' -nofor_main' ;;
16127
 
        esac
16128
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129
 
 
16130
 
        if test $supports_anon_versioning = yes; then
16131
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16132
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16133
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16134
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16135
 
        fi
16136
 
      else
16137
 
        ld_shlibs_GCJ=no
16138
 
      fi
16139
 
      ;;
16140
 
 
16141
 
    netbsd*)
16142
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16144
 
        wlarc=
16145
 
      else
16146
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148
 
      fi
16149
 
      ;;
16150
 
 
16151
 
    solaris*)
16152
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16153
 
        ld_shlibs_GCJ=no
16154
 
        cat <<EOF 1>&2
16155
 
 
16156
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16157
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16158
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16159
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16160
 
*** your PATH or compiler configuration so that the native linker is
16161
 
*** used, and then restart.
16162
 
 
16163
 
EOF
16164
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16167
 
      else
16168
 
        ld_shlibs_GCJ=no
16169
 
      fi
16170
 
      ;;
16171
 
 
16172
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16173
 
      case `$LD -v 2>&1` in
16174
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16175
 
        ld_shlibs_GCJ=no
16176
 
        cat <<_LT_EOF 1>&2
16177
 
 
16178
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16179
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16180
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16181
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16182
 
*** your PATH or compiler configuration so that the native linker is
16183
 
*** used, and then restart.
16184
 
 
16185
 
_LT_EOF
16186
 
        ;;
16187
 
        *)
16188
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16189
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16190
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16191
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16192
 
          else
16193
 
            ld_shlibs_GCJ=no
16194
 
          fi
16195
 
        ;;
16196
 
      esac
16197
 
      ;;
16198
 
 
16199
 
    sunos4*)
16200
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16201
 
      wlarc=
16202
 
      hardcode_direct_GCJ=yes
16203
 
      hardcode_shlibpath_var_GCJ=no
16204
 
      ;;
16205
 
 
16206
 
    *)
16207
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16208
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16210
 
      else
16211
 
        ld_shlibs_GCJ=no
16212
 
      fi
16213
 
      ;;
16214
 
    esac
16215
 
 
16216
 
    if test "$ld_shlibs_GCJ" = no; then
16217
 
      runpath_var=
16218
 
      hardcode_libdir_flag_spec_GCJ=
16219
 
      export_dynamic_flag_spec_GCJ=
16220
 
      whole_archive_flag_spec_GCJ=
16221
 
    fi
16222
 
  else
16223
 
    # PORTME fill in a description of your system's linker (not GNU ld)
16224
 
    case $host_os in
16225
 
    aix3*)
16226
 
      allow_undefined_flag_GCJ=unsupported
16227
 
      always_export_symbols_GCJ=yes
16228
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16229
 
      # Note: this linker hardcodes the directories in LIBPATH if there
16230
 
      # are no directories specified by -L.
16231
 
      hardcode_minus_L_GCJ=yes
16232
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16233
 
        # Neither direct hardcoding nor static linking is supported with a
16234
 
        # broken collect2.
16235
 
        hardcode_direct_GCJ=unsupported
16236
 
      fi
16237
 
      ;;
16238
 
 
16239
 
    aix4* | aix5*)
16240
 
      if test "$host_cpu" = ia64; then
16241
 
        # On IA64, the linker does run time linking by default, so we don't
16242
 
        # have to do anything special.
16243
 
        aix_use_runtimelinking=no
16244
 
        exp_sym_flag='-Bexport'
16245
 
        no_entry_flag=""
16246
 
      else
16247
 
        # If we're using GNU nm, then we don't want the "-C" option.
16248
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16249
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16250
 
          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'
16251
 
        else
16252
 
          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'
16253
 
        fi
16254
 
        aix_use_runtimelinking=no
16255
 
 
16256
 
        # Test if we are trying to use run time linking or normal
16257
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16258
 
        # need to do runtime linking.
16259
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16260
 
          for ld_flag in $LDFLAGS; do
16261
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16262
 
            aix_use_runtimelinking=yes
16263
 
            break
16264
 
          fi
16265
 
          done
16266
 
          ;;
16267
 
        esac
16268
 
 
16269
 
        exp_sym_flag='-bexport'
16270
 
        no_entry_flag='-bnoentry'
16271
 
      fi
16272
 
 
16273
 
      # When large executables or shared objects are built, AIX ld can
16274
 
      # have problems creating the table of contents.  If linking a library
16275
 
      # or program results in "error TOC overflow" add -mminimal-toc to
16276
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16277
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16278
 
 
16279
 
      archive_cmds_GCJ=''
16280
 
      hardcode_direct_GCJ=yes
16281
 
      hardcode_libdir_separator_GCJ=':'
16282
 
      link_all_deplibs_GCJ=yes
16283
 
 
16284
 
      if test "$GCC" = yes; then
16285
 
        case $host_os in aix4.[012]|aix4.[012].*)
16286
 
        # We only want to do this on AIX 4.2 and lower, the check
16287
 
        # below for broken collect2 doesn't work under 4.3+
16288
 
          collect2name=`${CC} -print-prog-name=collect2`
16289
 
          if test -f "$collect2name" && \
16290
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16291
 
          then
16292
 
          # We have reworked collect2
16293
 
          hardcode_direct_GCJ=yes
16294
 
          else
16295
 
          # We have old collect2
16296
 
          hardcode_direct_GCJ=unsupported
16297
 
          # It fails to find uninstalled libraries when the uninstalled
16298
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
16299
 
          # to unsupported forces relinking
16300
 
          hardcode_minus_L_GCJ=yes
16301
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16302
 
          hardcode_libdir_separator_GCJ=
16303
 
          fi
16304
 
          ;;
16305
 
        esac
16306
 
        shared_flag='-shared'
16307
 
        if test "$aix_use_runtimelinking" = yes; then
16308
 
          shared_flag="$shared_flag "'${wl}-G'
16309
 
        fi
16310
 
      else
16311
 
        # not using gcc
16312
 
        if test "$host_cpu" = ia64; then
16313
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16314
 
        # chokes on -Wl,-G. The following line is correct:
16315
 
          shared_flag='-G'
16316
 
        else
16317
 
          if test "$aix_use_runtimelinking" = yes; then
16318
 
            shared_flag='${wl}-G'
16319
 
          else
16320
 
            shared_flag='${wl}-bM:SRE'
16321
 
          fi
16322
 
        fi
16323
 
      fi
16324
 
 
16325
 
      # It seems that -bexpall does not export symbols beginning with
16326
 
      # underscore (_), so it is better to generate a list of symbols to export.
16327
 
      always_export_symbols_GCJ=yes
16328
 
      if test "$aix_use_runtimelinking" = yes; then
16329
 
        # Warning - without using the other runtime loading flags (-brtl),
16330
 
        # -berok will link without error, but may produce a broken library.
16331
 
        allow_undefined_flag_GCJ='-berok'
16332
 
       # Determine the default libpath from the value encoded in an empty executable.
16333
 
       cat >conftest.$ac_ext <<_ACEOF
16334
 
/* confdefs.h.  */
16335
 
_ACEOF
16336
 
cat confdefs.h >>conftest.$ac_ext
16337
 
cat >>conftest.$ac_ext <<_ACEOF
16338
 
/* end confdefs.h.  */
16339
 
 
16340
 
int
16341
 
main ()
16342
 
{
16343
 
 
16344
 
  ;
16345
 
  return 0;
16346
 
}
16347
 
_ACEOF
16348
 
rm -f conftest.$ac_objext conftest$ac_exeext
16349
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350
 
  (eval $ac_link) 2>conftest.er1
16351
 
  ac_status=$?
16352
 
  grep -v '^ *+' conftest.er1 >conftest.err
16353
 
  rm -f conftest.er1
16354
 
  cat conftest.err >&5
16355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356
 
  (exit $ac_status); } &&
16357
 
         { ac_try='test -z "$ac_c_werror_flag"
16358
 
                         || test ! -s conftest.err'
16359
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360
 
  (eval $ac_try) 2>&5
16361
 
  ac_status=$?
16362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363
 
  (exit $ac_status); }; } &&
16364
 
         { ac_try='test -s conftest$ac_exeext'
16365
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366
 
  (eval $ac_try) 2>&5
16367
 
  ac_status=$?
16368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369
 
  (exit $ac_status); }; }; then
16370
 
 
16371
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16372
 
}'`
16373
 
# Check for a 64-bit object if we didn't find anything.
16374
 
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; }
16375
 
}'`; fi
16376
 
else
16377
 
  echo "$as_me: failed program was:" >&5
16378
 
sed 's/^/| /' conftest.$ac_ext >&5
16379
 
 
16380
 
fi
16381
 
rm -f conftest.err conftest.$ac_objext \
16382
 
      conftest$ac_exeext conftest.$ac_ext
16383
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16384
 
 
16385
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16386
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16387
 
       else
16388
 
        if test "$host_cpu" = ia64; then
16389
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16390
 
          allow_undefined_flag_GCJ="-z nodefs"
16391
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16392
 
        else
16393
 
         # Determine the default libpath from the value encoded in an empty executable.
16394
 
         cat >conftest.$ac_ext <<_ACEOF
16395
 
/* confdefs.h.  */
16396
 
_ACEOF
16397
 
cat confdefs.h >>conftest.$ac_ext
16398
 
cat >>conftest.$ac_ext <<_ACEOF
16399
 
/* end confdefs.h.  */
16400
 
 
16401
 
int
16402
 
main ()
16403
 
{
16404
 
 
16405
 
  ;
16406
 
  return 0;
16407
 
}
16408
 
_ACEOF
16409
 
rm -f conftest.$ac_objext conftest$ac_exeext
16410
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16411
 
  (eval $ac_link) 2>conftest.er1
16412
 
  ac_status=$?
16413
 
  grep -v '^ *+' conftest.er1 >conftest.err
16414
 
  rm -f conftest.er1
16415
 
  cat conftest.err >&5
16416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417
 
  (exit $ac_status); } &&
16418
 
         { ac_try='test -z "$ac_c_werror_flag"
16419
 
                         || test ! -s conftest.err'
16420
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421
 
  (eval $ac_try) 2>&5
16422
 
  ac_status=$?
16423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424
 
  (exit $ac_status); }; } &&
16425
 
         { ac_try='test -s conftest$ac_exeext'
16426
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427
 
  (eval $ac_try) 2>&5
16428
 
  ac_status=$?
16429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430
 
  (exit $ac_status); }; }; then
16431
 
 
16432
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16433
 
}'`
16434
 
# Check for a 64-bit object if we didn't find anything.
16435
 
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; }
16436
 
}'`; fi
16437
 
else
16438
 
  echo "$as_me: failed program was:" >&5
16439
 
sed 's/^/| /' conftest.$ac_ext >&5
16440
 
 
16441
 
fi
16442
 
rm -f conftest.err conftest.$ac_objext \
16443
 
      conftest$ac_exeext conftest.$ac_ext
16444
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16445
 
 
16446
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16447
 
          # Warning - without using the other run time loading flags,
16448
 
          # -berok will link without error, but may produce a broken library.
16449
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16450
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
16451
 
          # Exported symbols can be pulled into shared objects from archives
16452
 
          whole_archive_flag_spec_GCJ='$convenience'
16453
 
          archive_cmds_need_lc_GCJ=yes
16454
 
          # This is similar to how AIX traditionally builds its shared libraries.
16455
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16456
 
        fi
16457
 
      fi
16458
 
      ;;
16459
 
 
16460
 
    amigaos*)
16461
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16462
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463
 
      hardcode_minus_L_GCJ=yes
16464
 
      # see comment about different semantics on the GNU ld section
16465
 
      ld_shlibs_GCJ=no
16466
 
      ;;
16467
 
 
16468
 
    bsdi[45]*)
16469
 
      export_dynamic_flag_spec_GCJ=-rdynamic
16470
 
      ;;
16471
 
 
16472
 
    cygwin* | mingw* | pw32*)
16473
 
      # When not using gcc, we currently assume that we are using
16474
 
      # Microsoft Visual C++.
16475
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16476
 
      # no search path for DLLs.
16477
 
      hardcode_libdir_flag_spec_GCJ=' '
16478
 
      allow_undefined_flag_GCJ=unsupported
16479
 
      # Tell ltmain to make .lib files, not .a files.
16480
 
      libext=lib
16481
 
      # Tell ltmain to make .dll files, not .so files.
16482
 
      shrext_cmds=".dll"
16483
 
      # FIXME: Setting linknames here is a bad hack.
16484
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16485
 
      # The linker will automatically build a .lib file if we build a DLL.
16486
 
      old_archive_From_new_cmds_GCJ='true'
16487
 
      # FIXME: Should let the user specify the lib program.
16488
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16489
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16490
 
      enable_shared_with_static_runtimes_GCJ=yes
16491
 
      ;;
16492
 
 
16493
 
    darwin* | rhapsody*)
16494
 
      case $host_os in
16495
 
        rhapsody* | darwin1.[012])
16496
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16497
 
         ;;
16498
 
       *) # Darwin 1.3 on
16499
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16500
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16501
 
         else
16502
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16503
 
             10.[012])
16504
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16505
 
               ;;
16506
 
             10.*)
16507
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16508
 
               ;;
16509
 
           esac
16510
 
         fi
16511
 
         ;;
16512
 
      esac
16513
 
      archive_cmds_need_lc_GCJ=no
16514
 
      hardcode_direct_GCJ=no
16515
 
      hardcode_automatic_GCJ=yes
16516
 
      hardcode_shlibpath_var_GCJ=unsupported
16517
 
      whole_archive_flag_spec_GCJ=''
16518
 
      link_all_deplibs_GCJ=yes
16519
 
    if test "$GCC" = yes ; then
16520
 
        output_verbose_link_cmd='echo'
16521
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16522
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16523
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16524
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16525
 
      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}'
16526
 
    else
16527
 
      case $cc_basename in
16528
 
        xlc*)
16529
 
         output_verbose_link_cmd='echo'
16530
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16531
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16532
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16533
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16534
 
          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}'
16535
 
          ;;
16536
 
       *)
16537
 
         ld_shlibs_GCJ=no
16538
 
          ;;
16539
 
      esac
16540
 
    fi
16541
 
      ;;
16542
 
 
16543
 
    dgux*)
16544
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16546
 
      hardcode_shlibpath_var_GCJ=no
16547
 
      ;;
16548
 
 
16549
 
    freebsd1*)
16550
 
      ld_shlibs_GCJ=no
16551
 
      ;;
16552
 
 
16553
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16554
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16555
 
    # does not break anything, and helps significantly (at the cost of a little
16556
 
    # extra space).
16557
 
    freebsd2.2*)
16558
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16559
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560
 
      hardcode_direct_GCJ=yes
16561
 
      hardcode_shlibpath_var_GCJ=no
16562
 
      ;;
16563
 
 
16564
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16565
 
    freebsd2*)
16566
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16567
 
      hardcode_direct_GCJ=yes
16568
 
      hardcode_minus_L_GCJ=yes
16569
 
      hardcode_shlibpath_var_GCJ=no
16570
 
      ;;
16571
 
 
16572
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16573
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
16574
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16575
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16576
 
      hardcode_direct_GCJ=yes
16577
 
      hardcode_shlibpath_var_GCJ=no
16578
 
      ;;
16579
 
 
16580
 
    hpux9*)
16581
 
      if test "$GCC" = yes; then
16582
 
        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'
16583
 
      else
16584
 
        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'
16585
 
      fi
16586
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16587
 
      hardcode_libdir_separator_GCJ=:
16588
 
      hardcode_direct_GCJ=yes
16589
 
 
16590
 
      # hardcode_minus_L: Not really in the search PATH,
16591
 
      # but as the default location of the library.
16592
 
      hardcode_minus_L_GCJ=yes
16593
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16594
 
      ;;
16595
 
 
16596
 
    hpux10*)
16597
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16598
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16599
 
      else
16600
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16601
 
      fi
16602
 
      if test "$with_gnu_ld" = no; then
16603
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16604
 
        hardcode_libdir_separator_GCJ=:
16605
 
 
16606
 
        hardcode_direct_GCJ=yes
16607
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16608
 
 
16609
 
        # hardcode_minus_L: Not really in the search PATH,
16610
 
        # but as the default location of the library.
16611
 
        hardcode_minus_L_GCJ=yes
16612
 
      fi
16613
 
      ;;
16614
 
 
16615
 
    hpux11*)
16616
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16617
 
        case $host_cpu in
16618
 
        hppa*64*)
16619
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16620
 
          ;;
16621
 
        ia64*)
16622
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16623
 
          ;;
16624
 
        *)
16625
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16626
 
          ;;
16627
 
        esac
16628
 
      else
16629
 
        case $host_cpu in
16630
 
        hppa*64*)
16631
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16632
 
          ;;
16633
 
        ia64*)
16634
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16635
 
          ;;
16636
 
        *)
16637
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16638
 
          ;;
16639
 
        esac
16640
 
      fi
16641
 
      if test "$with_gnu_ld" = no; then
16642
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16643
 
        hardcode_libdir_separator_GCJ=:
16644
 
 
16645
 
        case $host_cpu in
16646
 
        hppa*64*|ia64*)
16647
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16648
 
          hardcode_direct_GCJ=no
16649
 
          hardcode_shlibpath_var_GCJ=no
16650
 
          ;;
16651
 
        *)
16652
 
          hardcode_direct_GCJ=yes
16653
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
16654
 
 
16655
 
          # hardcode_minus_L: Not really in the search PATH,
16656
 
          # but as the default location of the library.
16657
 
          hardcode_minus_L_GCJ=yes
16658
 
          ;;
16659
 
        esac
16660
 
      fi
16661
 
      ;;
16662
 
 
16663
 
    irix5* | irix6* | nonstopux*)
16664
 
      if test "$GCC" = yes; then
16665
 
        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'
16666
 
      else
16667
 
        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'
16668
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16669
 
      fi
16670
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16671
 
      hardcode_libdir_separator_GCJ=:
16672
 
      link_all_deplibs_GCJ=yes
16673
 
      ;;
16674
 
 
16675
 
    netbsd*)
16676
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16677
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16678
 
      else
16679
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16680
 
      fi
16681
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16682
 
      hardcode_direct_GCJ=yes
16683
 
      hardcode_shlibpath_var_GCJ=no
16684
 
      ;;
16685
 
 
16686
 
    newsos6)
16687
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688
 
      hardcode_direct_GCJ=yes
16689
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16690
 
      hardcode_libdir_separator_GCJ=:
16691
 
      hardcode_shlibpath_var_GCJ=no
16692
 
      ;;
16693
 
 
16694
 
    openbsd*)
16695
 
      hardcode_direct_GCJ=yes
16696
 
      hardcode_shlibpath_var_GCJ=no
16697
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16698
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16699
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16700
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16701
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16702
 
      else
16703
 
       case $host_os in
16704
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16705
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16706
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16707
 
           ;;
16708
 
         *)
16709
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16711
 
           ;;
16712
 
       esac
16713
 
      fi
16714
 
      ;;
16715
 
 
16716
 
    os2*)
16717
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718
 
      hardcode_minus_L_GCJ=yes
16719
 
      allow_undefined_flag_GCJ=unsupported
16720
 
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16721
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16722
 
      ;;
16723
 
 
16724
 
    osf3*)
16725
 
      if test "$GCC" = yes; then
16726
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16727
 
        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'
16728
 
      else
16729
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16730
 
        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'
16731
 
      fi
16732
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16733
 
      hardcode_libdir_separator_GCJ=:
16734
 
      ;;
16735
 
 
16736
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16737
 
      if test "$GCC" = yes; then
16738
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16739
 
        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'
16740
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16741
 
      else
16742
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16743
 
        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'
16744
 
        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~
16745
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16746
 
 
16747
 
        # Both c and cxx compiler support -rpath directly
16748
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16749
 
      fi
16750
 
      hardcode_libdir_separator_GCJ=:
16751
 
      ;;
16752
 
 
16753
 
    solaris*)
16754
 
      no_undefined_flag_GCJ=' -z text'
16755
 
      if test "$GCC" = yes; then
16756
 
        wlarc='${wl}'
16757
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16760
 
      else
16761
 
        wlarc=''
16762
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16764
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16765
 
      fi
16766
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16767
 
      hardcode_shlibpath_var_GCJ=no
16768
 
      case $host_os in
16769
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16770
 
      *)
16771
 
        # The compiler driver will combine linker options so we
16772
 
        # cannot just pass the convience library names through
16773
 
        # without $wl, iff we do not link with $LD.
16774
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
16775
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16776
 
        case $wlarc in
16777
 
        '')
16778
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16779
 
        *)
16780
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16781
 
        esac ;;
16782
 
      esac
16783
 
      link_all_deplibs_GCJ=yes
16784
 
      ;;
16785
 
 
16786
 
    sunos4*)
16787
 
      if test "x$host_vendor" = xsequent; then
16788
 
        # Use $CC to link under sequent, because it throws in some extra .o
16789
 
        # files that make .init and .fini sections work.
16790
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16791
 
      else
16792
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16793
 
      fi
16794
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795
 
      hardcode_direct_GCJ=yes
16796
 
      hardcode_minus_L_GCJ=yes
16797
 
      hardcode_shlibpath_var_GCJ=no
16798
 
      ;;
16799
 
 
16800
 
    sysv4)
16801
 
      case $host_vendor in
16802
 
        sni)
16803
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804
 
          hardcode_direct_GCJ=yes # is this really true???
16805
 
        ;;
16806
 
        siemens)
16807
 
          ## LD is ld it makes a PLAMLIB
16808
 
          ## CC just makes a GrossModule.
16809
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16810
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16811
 
          hardcode_direct_GCJ=no
16812
 
        ;;
16813
 
        motorola)
16814
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16816
 
        ;;
16817
 
      esac
16818
 
      runpath_var='LD_RUN_PATH'
16819
 
      hardcode_shlibpath_var_GCJ=no
16820
 
      ;;
16821
 
 
16822
 
    sysv4.3*)
16823
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16824
 
      hardcode_shlibpath_var_GCJ=no
16825
 
      export_dynamic_flag_spec_GCJ='-Bexport'
16826
 
      ;;
16827
 
 
16828
 
    sysv4*MP*)
16829
 
      if test -d /usr/nec; then
16830
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831
 
        hardcode_shlibpath_var_GCJ=no
16832
 
        runpath_var=LD_RUN_PATH
16833
 
        hardcode_runpath_var=yes
16834
 
        ld_shlibs_GCJ=yes
16835
 
      fi
16836
 
      ;;
16837
 
 
16838
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16839
 
      no_undefined_flag_GCJ='${wl}-z,text'
16840
 
      archive_cmds_need_lc_GCJ=no
16841
 
      hardcode_shlibpath_var_GCJ=no
16842
 
      runpath_var='LD_RUN_PATH'
16843
 
 
16844
 
      if test "$GCC" = yes; then
16845
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16846
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16847
 
      else
16848
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16849
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16850
 
      fi
16851
 
      ;;
16852
 
 
16853
 
    sysv5* | sco3.2v5* | sco5v6*)
16854
 
      # Note: We can NOT use -z defs as we might desire, because we do not
16855
 
      # link with -lc, and that would cause any symbols used from libc to
16856
 
      # always be unresolved, which means just about no library would
16857
 
      # ever link correctly.  If we're not using GNU ld we use -z text
16858
 
      # though, which does catch some bad symbols but isn't as heavy-handed
16859
 
      # as -z defs.
16860
 
      no_undefined_flag_GCJ='${wl}-z,text'
16861
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16862
 
      archive_cmds_need_lc_GCJ=no
16863
 
      hardcode_shlibpath_var_GCJ=no
16864
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16865
 
      hardcode_libdir_separator_GCJ=':'
16866
 
      link_all_deplibs_GCJ=yes
16867
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16868
 
      runpath_var='LD_RUN_PATH'
16869
 
 
16870
 
      if test "$GCC" = yes; then
16871
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16872
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16873
 
      else
16874
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16875
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16876
 
      fi
16877
 
      ;;
16878
 
 
16879
 
    uts4*)
16880
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882
 
      hardcode_shlibpath_var_GCJ=no
16883
 
      ;;
16884
 
 
16885
 
    *)
16886
 
      ld_shlibs_GCJ=no
16887
 
      ;;
16888
 
    esac
16889
 
  fi
16890
 
 
16891
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16892
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16893
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16894
 
 
16895
 
#
16896
 
# Do we need to explicitly link libc?
16897
 
#
16898
 
case "x$archive_cmds_need_lc_GCJ" in
16899
 
x|xyes)
16900
 
  # Assume -lc should be added
16901
 
  archive_cmds_need_lc_GCJ=yes
16902
 
 
16903
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16904
 
    case $archive_cmds_GCJ in
16905
 
    *'~'*)
16906
 
      # FIXME: we may have to deal with multi-command sequences.
16907
 
      ;;
16908
 
    '$CC '*)
16909
 
      # Test whether the compiler implicitly links with -lc since on some
16910
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16911
 
      # to ld, don't add -lc before -lgcc.
16912
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16913
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16914
 
      $rm conftest*
16915
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16916
 
 
16917
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918
 
  (eval $ac_compile) 2>&5
16919
 
  ac_status=$?
16920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921
 
  (exit $ac_status); } 2>conftest.err; then
16922
 
        soname=conftest
16923
 
        lib=conftest
16924
 
        libobjs=conftest.$ac_objext
16925
 
        deplibs=
16926
 
        wl=$lt_prog_compiler_wl_GCJ
16927
 
        pic_flag=$lt_prog_compiler_pic_GCJ
16928
 
        compiler_flags=-v
16929
 
        linker_flags=-v
16930
 
        verstring=
16931
 
        output_objdir=.
16932
 
        libname=conftest
16933
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16934
 
        allow_undefined_flag_GCJ=
16935
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16936
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16937
 
  ac_status=$?
16938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939
 
  (exit $ac_status); }
16940
 
        then
16941
 
          archive_cmds_need_lc_GCJ=no
16942
 
        else
16943
 
          archive_cmds_need_lc_GCJ=yes
16944
 
        fi
16945
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16946
 
      else
16947
 
        cat conftest.err 1>&5
16948
 
      fi
16949
 
      $rm conftest*
16950
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16951
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16952
 
      ;;
16953
 
    esac
16954
 
  fi
16955
 
  ;;
16956
 
esac
16957
 
 
16958
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16959
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16960
 
library_names_spec=
16961
 
libname_spec='lib$name'
16962
 
soname_spec=
16963
 
shrext_cmds=".so"
16964
 
postinstall_cmds=
16965
 
postuninstall_cmds=
16966
 
finish_cmds=
16967
 
finish_eval=
16968
 
shlibpath_var=
16969
 
shlibpath_overrides_runpath=unknown
16970
 
version_type=none
16971
 
dynamic_linker="$host_os ld.so"
16972
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16973
 
if test "$GCC" = yes; then
16974
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16975
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16976
 
    # if the path contains ";" then we assume it to be the separator
16977
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16978
 
    # assumed that no part of a normal pathname contains ";" but that should
16979
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16980
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16981
 
  else
16982
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16983
 
  fi
16984
 
else
16985
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16986
 
fi
16987
 
need_lib_prefix=unknown
16988
 
hardcode_into_libs=no
16989
 
 
16990
 
# when you set need_version to no, make sure it does not cause -set_version
16991
 
# flags to be left without arguments
16992
 
need_version=unknown
16993
 
 
16994
 
case $host_os in
16995
 
aix3*)
16996
 
  version_type=linux
16997
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16998
 
  shlibpath_var=LIBPATH
16999
 
 
17000
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17001
 
  soname_spec='${libname}${release}${shared_ext}$major'
17002
 
  ;;
17003
 
 
17004
 
aix4* | aix5*)
17005
 
  version_type=linux
17006
 
  need_lib_prefix=no
17007
 
  need_version=no
17008
 
  hardcode_into_libs=yes
17009
 
  if test "$host_cpu" = ia64; then
17010
 
    # AIX 5 supports IA64
17011
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17012
 
    shlibpath_var=LD_LIBRARY_PATH
17013
 
  else
17014
 
    # With GCC up to 2.95.x, collect2 would create an import file
17015
 
    # for dependence libraries.  The import file would start with
17016
 
    # the line `#! .'.  This would cause the generated library to
17017
 
    # depend on `.', always an invalid library.  This was fixed in
17018
 
    # development snapshots of GCC prior to 3.0.
17019
 
    case $host_os in
17020
 
      aix4 | aix4.[01] | aix4.[01].*)
17021
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17022
 
           echo ' yes '
17023
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17024
 
        :
17025
 
      else
17026
 
        can_build_shared=no
17027
 
      fi
17028
 
      ;;
17029
 
    esac
17030
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17031
 
    # soname into executable. Probably we can add versioning support to
17032
 
    # collect2, so additional links can be useful in future.
17033
 
    if test "$aix_use_runtimelinking" = yes; then
17034
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17035
 
      # instead of lib<name>.a to let people know that these are not
17036
 
      # typical AIX shared libraries.
17037
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038
 
    else
17039
 
      # We preserve .a as extension for shared libraries through AIX4.2
17040
 
      # and later when we are not doing run time linking.
17041
 
      library_names_spec='${libname}${release}.a $libname.a'
17042
 
      soname_spec='${libname}${release}${shared_ext}$major'
17043
 
    fi
17044
 
    shlibpath_var=LIBPATH
17045
 
  fi
17046
 
  ;;
17047
 
 
17048
 
amigaos*)
17049
 
  library_names_spec='$libname.ixlibrary $libname.a'
17050
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17051
 
  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'
17052
 
  ;;
17053
 
 
17054
 
beos*)
17055
 
  library_names_spec='${libname}${shared_ext}'
17056
 
  dynamic_linker="$host_os ld.so"
17057
 
  shlibpath_var=LIBRARY_PATH
17058
 
  ;;
17059
 
 
17060
 
bsdi[45]*)
17061
 
  version_type=linux
17062
 
  need_version=no
17063
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064
 
  soname_spec='${libname}${release}${shared_ext}$major'
17065
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17066
 
  shlibpath_var=LD_LIBRARY_PATH
17067
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17068
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17069
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17070
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17071
 
  # libtool to hard-code these into programs
17072
 
  ;;
17073
 
 
17074
 
cygwin* | mingw* | pw32*)
17075
 
  version_type=windows
17076
 
  shrext_cmds=".dll"
17077
 
  need_version=no
17078
 
  need_lib_prefix=no
17079
 
 
17080
 
  case $GCC,$host_os in
17081
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17082
 
    library_names_spec='$libname.dll.a'
17083
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17084
 
    postinstall_cmds='base_file=`basename \${file}`~
17085
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17086
 
      dldir=$destdir/`dirname \$dlpath`~
17087
 
      test -d \$dldir || mkdir -p \$dldir~
17088
 
      $install_prog $dir/$dlname \$dldir/$dlname~
17089
 
      chmod a+x \$dldir/$dlname'
17090
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17091
 
      dlpath=$dir/\$dldll~
17092
 
       $rm \$dlpath'
17093
 
    shlibpath_overrides_runpath=yes
17094
 
 
17095
 
    case $host_os in
17096
 
    cygwin*)
17097
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17098
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17099
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17100
 
      ;;
17101
 
    mingw*)
17102
 
      # MinGW DLLs use traditional 'lib' prefix
17103
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17104
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17105
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17106
 
        # It is most probably a Windows format PATH printed by
17107
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17108
 
        # path with ; separators, and with drive letters. We can handle the
17109
 
        # drive letters (cygwin fileutils understands them), so leave them,
17110
 
        # especially as we might pass files found there to a mingw objdump,
17111
 
        # which wouldn't understand a cygwinified path. Ahh.
17112
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17113
 
      else
17114
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17115
 
      fi
17116
 
      ;;
17117
 
    pw32*)
17118
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17119
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17120
 
      ;;
17121
 
    esac
17122
 
    ;;
17123
 
 
17124
 
  *)
17125
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17126
 
    ;;
17127
 
  esac
17128
 
  dynamic_linker='Win32 ld.exe'
17129
 
  # FIXME: first we should search . and the directory the executable is in
17130
 
  shlibpath_var=PATH
17131
 
  ;;
17132
 
 
17133
 
darwin* | rhapsody*)
17134
 
  dynamic_linker="$host_os dyld"
17135
 
  version_type=darwin
17136
 
  need_lib_prefix=no
17137
 
  need_version=no
17138
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17139
 
  soname_spec='${libname}${release}${major}$shared_ext'
17140
 
  shlibpath_overrides_runpath=yes
17141
 
  shlibpath_var=DYLD_LIBRARY_PATH
17142
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17143
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17144
 
  if test "$GCC" = yes; then
17145
 
    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"`
17146
 
  else
17147
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17148
 
  fi
17149
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17150
 
  ;;
17151
 
 
17152
 
dgux*)
17153
 
  version_type=linux
17154
 
  need_lib_prefix=no
17155
 
  need_version=no
17156
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17157
 
  soname_spec='${libname}${release}${shared_ext}$major'
17158
 
  shlibpath_var=LD_LIBRARY_PATH
17159
 
  ;;
17160
 
 
17161
 
freebsd1*)
17162
 
  dynamic_linker=no
17163
 
  ;;
17164
 
 
17165
 
kfreebsd*-gnu)
17166
 
  version_type=linux
17167
 
  need_lib_prefix=no
17168
 
  need_version=no
17169
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170
 
  soname_spec='${libname}${release}${shared_ext}$major'
17171
 
  shlibpath_var=LD_LIBRARY_PATH
17172
 
  shlibpath_overrides_runpath=no
17173
 
  hardcode_into_libs=yes
17174
 
  dynamic_linker='GNU ld.so'
17175
 
  ;;
17176
 
 
17177
 
freebsd* | dragonfly*)
17178
 
  # DragonFly does not have aout.  When/if they implement a new
17179
 
  # versioning mechanism, adjust this.
17180
 
  if test -x /usr/bin/objformat; then
17181
 
    objformat=`/usr/bin/objformat`
17182
 
  else
17183
 
    case $host_os in
17184
 
    freebsd[123]*) objformat=aout ;;
17185
 
    *) objformat=elf ;;
17186
 
    esac
17187
 
  fi
17188
 
  version_type=freebsd-$objformat
17189
 
  case $version_type in
17190
 
    freebsd-elf*)
17191
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17192
 
      need_version=no
17193
 
      need_lib_prefix=no
17194
 
      ;;
17195
 
    freebsd-*)
17196
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17197
 
      need_version=yes
17198
 
      ;;
17199
 
  esac
17200
 
  shlibpath_var=LD_LIBRARY_PATH
17201
 
  case $host_os in
17202
 
  freebsd2*)
17203
 
    shlibpath_overrides_runpath=yes
17204
 
    ;;
17205
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17206
 
    shlibpath_overrides_runpath=yes
17207
 
    hardcode_into_libs=yes
17208
 
    ;;
17209
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17210
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17211
 
    shlibpath_overrides_runpath=no
17212
 
    hardcode_into_libs=yes
17213
 
    ;;
17214
 
  freebsd*) # from 4.6 on
17215
 
    shlibpath_overrides_runpath=yes
17216
 
    hardcode_into_libs=yes
17217
 
    ;;
17218
 
  esac
17219
 
  ;;
17220
 
 
17221
 
gnu*)
17222
 
  version_type=linux
17223
 
  need_lib_prefix=no
17224
 
  need_version=no
17225
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17226
 
  soname_spec='${libname}${release}${shared_ext}$major'
17227
 
  shlibpath_var=LD_LIBRARY_PATH
17228
 
  hardcode_into_libs=yes
17229
 
  ;;
17230
 
 
17231
 
hpux9* | hpux10* | hpux11*)
17232
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17233
 
  # link against other versions.
17234
 
  version_type=sunos
17235
 
  need_lib_prefix=no
17236
 
  need_version=no
17237
 
  case $host_cpu in
17238
 
  ia64*)
17239
 
    shrext_cmds='.so'
17240
 
    hardcode_into_libs=yes
17241
 
    dynamic_linker="$host_os dld.so"
17242
 
    shlibpath_var=LD_LIBRARY_PATH
17243
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17244
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245
 
    soname_spec='${libname}${release}${shared_ext}$major'
17246
 
    if test "X$HPUX_IA64_MODE" = X32; then
17247
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17248
 
    else
17249
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17250
 
    fi
17251
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17252
 
    ;;
17253
 
   hppa*64*)
17254
 
     shrext_cmds='.sl'
17255
 
     hardcode_into_libs=yes
17256
 
     dynamic_linker="$host_os dld.sl"
17257
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17258
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17259
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260
 
     soname_spec='${libname}${release}${shared_ext}$major'
17261
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17262
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263
 
     ;;
17264
 
   *)
17265
 
    shrext_cmds='.sl'
17266
 
    dynamic_linker="$host_os dld.sl"
17267
 
    shlibpath_var=SHLIB_PATH
17268
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17269
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270
 
    soname_spec='${libname}${release}${shared_ext}$major'
17271
 
    ;;
17272
 
  esac
17273
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17274
 
  postinstall_cmds='chmod 555 $lib'
17275
 
  ;;
17276
 
 
17277
 
interix3*)
17278
 
  version_type=linux
17279
 
  need_lib_prefix=no
17280
 
  need_version=no
17281
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282
 
  soname_spec='${libname}${release}${shared_ext}$major'
17283
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17284
 
  shlibpath_var=LD_LIBRARY_PATH
17285
 
  shlibpath_overrides_runpath=no
17286
 
  hardcode_into_libs=yes
17287
 
  ;;
17288
 
 
17289
 
irix5* | irix6* | nonstopux*)
17290
 
  case $host_os in
17291
 
    nonstopux*) version_type=nonstopux ;;
17292
 
    *)
17293
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17294
 
                version_type=linux
17295
 
        else
17296
 
                version_type=irix
17297
 
        fi ;;
17298
 
  esac
17299
 
  need_lib_prefix=no
17300
 
  need_version=no
17301
 
  soname_spec='${libname}${release}${shared_ext}$major'
17302
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17303
 
  case $host_os in
17304
 
  irix5* | nonstopux*)
17305
 
    libsuff= shlibsuff=
17306
 
    ;;
17307
 
  *)
17308
 
    case $LD in # libtool.m4 will add one of these switches to LD
17309
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17310
 
      libsuff= shlibsuff= libmagic=32-bit;;
17311
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17312
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17313
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17314
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17315
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17316
 
    esac
17317
 
    ;;
17318
 
  esac
17319
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17320
 
  shlibpath_overrides_runpath=no
17321
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17322
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17323
 
  hardcode_into_libs=yes
17324
 
  ;;
17325
 
 
17326
 
# No shared lib support for Linux oldld, aout, or coff.
17327
 
linux*oldld* | linux*aout* | linux*coff*)
17328
 
  dynamic_linker=no
17329
 
  ;;
17330
 
 
17331
 
# This must be Linux ELF.
17332
 
linux*)
17333
 
  version_type=linux
17334
 
  need_lib_prefix=no
17335
 
  need_version=no
17336
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337
 
  soname_spec='${libname}${release}${shared_ext}$major'
17338
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17339
 
  shlibpath_var=LD_LIBRARY_PATH
17340
 
  shlibpath_overrides_runpath=no
17341
 
  # This implies no fast_install, which is unacceptable.
17342
 
  # Some rework will be needed to allow for fast_install
17343
 
  # before this can be enabled.
17344
 
  hardcode_into_libs=yes
17345
 
 
17346
 
  # Append ld.so.conf contents to the search path
17347
 
  if test -f /etc/ld.so.conf; then
17348
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17349
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17350
 
  fi
17351
 
 
17352
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17353
 
  # powerpc, because MkLinux only supported shared libraries with the
17354
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17355
 
  # most powerpc-linux boxes support dynamic linking these days and
17356
 
  # people can always --disable-shared, the test was removed, and we
17357
 
  # assume the GNU/Linux dynamic linker is in use.
17358
 
  dynamic_linker='GNU/Linux ld.so'
17359
 
  ;;
17360
 
 
17361
 
knetbsd*-gnu)
17362
 
  version_type=linux
17363
 
  need_lib_prefix=no
17364
 
  need_version=no
17365
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17366
 
  soname_spec='${libname}${release}${shared_ext}$major'
17367
 
  shlibpath_var=LD_LIBRARY_PATH
17368
 
  shlibpath_overrides_runpath=no
17369
 
  hardcode_into_libs=yes
17370
 
  dynamic_linker='GNU ld.so'
17371
 
  ;;
17372
 
 
17373
 
netbsd*)
17374
 
  version_type=sunos
17375
 
  need_lib_prefix=no
17376
 
  need_version=no
17377
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17378
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17379
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17380
 
    dynamic_linker='NetBSD (a.out) ld.so'
17381
 
  else
17382
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17383
 
    soname_spec='${libname}${release}${shared_ext}$major'
17384
 
    dynamic_linker='NetBSD ld.elf_so'
17385
 
  fi
17386
 
  shlibpath_var=LD_LIBRARY_PATH
17387
 
  shlibpath_overrides_runpath=yes
17388
 
  hardcode_into_libs=yes
17389
 
  ;;
17390
 
 
17391
 
newsos6)
17392
 
  version_type=linux
17393
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394
 
  shlibpath_var=LD_LIBRARY_PATH
17395
 
  shlibpath_overrides_runpath=yes
17396
 
  ;;
17397
 
 
17398
 
nto-qnx*)
17399
 
  version_type=linux
17400
 
  need_lib_prefix=no
17401
 
  need_version=no
17402
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403
 
  soname_spec='${libname}${release}${shared_ext}$major'
17404
 
  shlibpath_var=LD_LIBRARY_PATH
17405
 
  shlibpath_overrides_runpath=yes
17406
 
  ;;
17407
 
 
17408
 
openbsd*)
17409
 
  version_type=sunos
17410
 
  sys_lib_dlsearch_path_spec="/usr/lib"
17411
 
  need_lib_prefix=no
17412
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17413
 
  case $host_os in
17414
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17415
 
    *)                         need_version=no  ;;
17416
 
  esac
17417
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17418
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17419
 
  shlibpath_var=LD_LIBRARY_PATH
17420
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17421
 
    case $host_os in
17422
 
      openbsd2.[89] | openbsd2.[89].*)
17423
 
        shlibpath_overrides_runpath=no
17424
 
        ;;
17425
 
      *)
17426
 
        shlibpath_overrides_runpath=yes
17427
 
        ;;
17428
 
      esac
17429
 
  else
17430
 
    shlibpath_overrides_runpath=yes
17431
 
  fi
17432
 
  ;;
17433
 
 
17434
 
os2*)
17435
 
  libname_spec='$name'
17436
 
  shrext_cmds=".dll"
17437
 
  need_lib_prefix=no
17438
 
  library_names_spec='$libname${shared_ext} $libname.a'
17439
 
  dynamic_linker='OS/2 ld.exe'
17440
 
  shlibpath_var=LIBPATH
17441
 
  ;;
17442
 
 
17443
 
osf3* | osf4* | osf5*)
17444
 
  version_type=osf
17445
 
  need_lib_prefix=no
17446
 
  need_version=no
17447
 
  soname_spec='${libname}${release}${shared_ext}$major'
17448
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449
 
  shlibpath_var=LD_LIBRARY_PATH
17450
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17451
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17452
 
  ;;
17453
 
 
17454
 
solaris*)
17455
 
  version_type=linux
17456
 
  need_lib_prefix=no
17457
 
  need_version=no
17458
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459
 
  soname_spec='${libname}${release}${shared_ext}$major'
17460
 
  shlibpath_var=LD_LIBRARY_PATH
17461
 
  shlibpath_overrides_runpath=yes
17462
 
  hardcode_into_libs=yes
17463
 
  # ldd complains unless libraries are executable
17464
 
  postinstall_cmds='chmod +x $lib'
17465
 
  ;;
17466
 
 
17467
 
sunos4*)
17468
 
  version_type=sunos
17469
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17471
 
  shlibpath_var=LD_LIBRARY_PATH
17472
 
  shlibpath_overrides_runpath=yes
17473
 
  if test "$with_gnu_ld" = yes; then
17474
 
    need_lib_prefix=no
17475
 
  fi
17476
 
  need_version=yes
17477
 
  ;;
17478
 
 
17479
 
sysv4 | sysv4.3*)
17480
 
  version_type=linux
17481
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482
 
  soname_spec='${libname}${release}${shared_ext}$major'
17483
 
  shlibpath_var=LD_LIBRARY_PATH
17484
 
  case $host_vendor in
17485
 
    sni)
17486
 
      shlibpath_overrides_runpath=no
17487
 
      need_lib_prefix=no
17488
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17489
 
      runpath_var=LD_RUN_PATH
17490
 
      ;;
17491
 
    siemens)
17492
 
      need_lib_prefix=no
17493
 
      ;;
17494
 
    motorola)
17495
 
      need_lib_prefix=no
17496
 
      need_version=no
17497
 
      shlibpath_overrides_runpath=no
17498
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17499
 
      ;;
17500
 
  esac
17501
 
  ;;
17502
 
 
17503
 
sysv4*MP*)
17504
 
  if test -d /usr/nec ;then
17505
 
    version_type=linux
17506
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17507
 
    soname_spec='$libname${shared_ext}.$major'
17508
 
    shlibpath_var=LD_LIBRARY_PATH
17509
 
  fi
17510
 
  ;;
17511
 
 
17512
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17513
 
  version_type=freebsd-elf
17514
 
  need_lib_prefix=no
17515
 
  need_version=no
17516
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17517
 
  soname_spec='${libname}${release}${shared_ext}$major'
17518
 
  shlibpath_var=LD_LIBRARY_PATH
17519
 
  hardcode_into_libs=yes
17520
 
  if test "$with_gnu_ld" = yes; then
17521
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17522
 
    shlibpath_overrides_runpath=no
17523
 
  else
17524
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17525
 
    shlibpath_overrides_runpath=yes
17526
 
    case $host_os in
17527
 
      sco3.2v5*)
17528
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17529
 
        ;;
17530
 
    esac
17531
 
  fi
17532
 
  sys_lib_dlsearch_path_spec='/usr/lib'
17533
 
  ;;
17534
 
 
17535
 
uts4*)
17536
 
  version_type=linux
17537
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538
 
  soname_spec='${libname}${release}${shared_ext}$major'
17539
 
  shlibpath_var=LD_LIBRARY_PATH
17540
 
  ;;
17541
 
 
17542
 
*)
17543
 
  dynamic_linker=no
17544
 
  ;;
17545
 
esac
17546
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17547
 
echo "${ECHO_T}$dynamic_linker" >&6
17548
 
test "$dynamic_linker" = no && can_build_shared=no
17549
 
 
17550
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17551
 
if test "$GCC" = yes; then
17552
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17553
 
fi
17554
 
 
17555
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17556
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17557
 
hardcode_action_GCJ=
17558
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17559
 
   test -n "$runpath_var_GCJ" || \
17560
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17561
 
 
17562
 
  # We can hardcode non-existant directories.
17563
 
  if test "$hardcode_direct_GCJ" != no &&
17564
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17565
 
     # have to relink, otherwise we might link with an installed library
17566
 
     # when we should be linking with a yet-to-be-installed one
17567
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17568
 
     test "$hardcode_minus_L_GCJ" != no; then
17569
 
    # Linking always hardcodes the temporary library directory.
17570
 
    hardcode_action_GCJ=relink
17571
 
  else
17572
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17573
 
    hardcode_action_GCJ=immediate
17574
 
  fi
17575
 
else
17576
 
  # We cannot hardcode anything, or else we can only hardcode existing
17577
 
  # directories.
17578
 
  hardcode_action_GCJ=unsupported
17579
 
fi
17580
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17581
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17582
 
 
17583
 
if test "$hardcode_action_GCJ" = relink; then
17584
 
  # Fast installation is not supported
17585
 
  enable_fast_install=no
17586
 
elif test "$shlibpath_overrides_runpath" = yes ||
17587
 
     test "$enable_shared" = no; then
17588
 
  # Fast installation is not necessary
17589
 
  enable_fast_install=needless
17590
 
fi
17591
 
 
17592
 
 
17593
 
# The else clause should only fire when bootstrapping the
17594
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17595
 
# with your package, and you will get complaints that there are
17596
 
# no rules to generate ltmain.sh.
17597
 
if test -f "$ltmain"; then
17598
 
  # See if we are running on zsh, and set the options which allow our commands through
17599
 
  # without removal of \ escapes.
17600
 
  if test -n "${ZSH_VERSION+set}" ; then
17601
 
    setopt NO_GLOB_SUBST
17602
 
  fi
17603
 
  # Now quote all the things that may contain metacharacters while being
17604
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17605
 
  # variables and quote the copies for generation of the libtool script.
17606
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17607
 
    SED SHELL STRIP \
17608
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17609
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17610
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17611
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17612
 
    lt_cv_sys_global_symbol_to_c_name_address \
17613
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17614
 
    old_postinstall_cmds old_postuninstall_cmds \
17615
 
    compiler_GCJ \
17616
 
    CC_GCJ \
17617
 
    LD_GCJ \
17618
 
    lt_prog_compiler_wl_GCJ \
17619
 
    lt_prog_compiler_pic_GCJ \
17620
 
    lt_prog_compiler_static_GCJ \
17621
 
    lt_prog_compiler_no_builtin_flag_GCJ \
17622
 
    export_dynamic_flag_spec_GCJ \
17623
 
    thread_safe_flag_spec_GCJ \
17624
 
    whole_archive_flag_spec_GCJ \
17625
 
    enable_shared_with_static_runtimes_GCJ \
17626
 
    old_archive_cmds_GCJ \
17627
 
    old_archive_from_new_cmds_GCJ \
17628
 
    predep_objects_GCJ \
17629
 
    postdep_objects_GCJ \
17630
 
    predeps_GCJ \
17631
 
    postdeps_GCJ \
17632
 
    compiler_lib_search_path_GCJ \
17633
 
    archive_cmds_GCJ \
17634
 
    archive_expsym_cmds_GCJ \
17635
 
    postinstall_cmds_GCJ \
17636
 
    postuninstall_cmds_GCJ \
17637
 
    old_archive_from_expsyms_cmds_GCJ \
17638
 
    allow_undefined_flag_GCJ \
17639
 
    no_undefined_flag_GCJ \
17640
 
    export_symbols_cmds_GCJ \
17641
 
    hardcode_libdir_flag_spec_GCJ \
17642
 
    hardcode_libdir_flag_spec_ld_GCJ \
17643
 
    hardcode_libdir_separator_GCJ \
17644
 
    hardcode_automatic_GCJ \
17645
 
    module_cmds_GCJ \
17646
 
    module_expsym_cmds_GCJ \
17647
 
    lt_cv_prog_compiler_c_o_GCJ \
17648
 
    exclude_expsyms_GCJ \
17649
 
    include_expsyms_GCJ; do
17650
 
 
17651
 
    case $var in
17652
 
    old_archive_cmds_GCJ | \
17653
 
    old_archive_from_new_cmds_GCJ | \
17654
 
    archive_cmds_GCJ | \
17655
 
    archive_expsym_cmds_GCJ | \
17656
 
    module_cmds_GCJ | \
17657
 
    module_expsym_cmds_GCJ | \
17658
 
    old_archive_from_expsyms_cmds_GCJ | \
17659
 
    export_symbols_cmds_GCJ | \
17660
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17661
 
    postinstall_cmds | postuninstall_cmds | \
17662
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17663
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17664
 
      # Double-quote double-evaled strings.
17665
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17666
 
      ;;
17667
 
    *)
17668
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17669
 
      ;;
17670
 
    esac
17671
 
  done
17672
 
 
17673
 
  case $lt_echo in
17674
 
  *'\$0 --fallback-echo"')
17675
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17676
 
    ;;
17677
 
  esac
17678
 
 
17679
 
cfgfile="$ofile"
17680
 
 
17681
 
  cat <<__EOF__ >> "$cfgfile"
17682
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17683
 
 
17684
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17685
 
 
17686
 
# Shell to use when invoking shell scripts.
17687
 
SHELL=$lt_SHELL
17688
 
 
17689
 
# Whether or not to build shared libraries.
17690
 
build_libtool_libs=$enable_shared
17691
 
 
17692
 
# Whether or not to build static libraries.
17693
 
build_old_libs=$enable_static
17694
 
 
17695
 
# Whether or not to add -lc for building shared libraries.
17696
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17697
 
 
17698
 
# Whether or not to disallow shared libs when runtime libs are static
17699
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17700
 
 
17701
 
# Whether or not to optimize for fast installation.
17702
 
fast_install=$enable_fast_install
17703
 
 
17704
 
# The host system.
17705
 
host_alias=$host_alias
17706
 
host=$host
17707
 
host_os=$host_os
17708
 
 
17709
 
# The build system.
17710
 
build_alias=$build_alias
17711
 
build=$build
17712
 
build_os=$build_os
17713
 
 
17714
 
# An echo program that does not interpret backslashes.
17715
 
echo=$lt_echo
17716
 
 
17717
 
# The archiver.
17718
 
AR=$lt_AR
17719
 
AR_FLAGS=$lt_AR_FLAGS
17720
 
 
17721
 
# A C compiler.
17722
 
LTCC=$lt_LTCC
17723
 
 
17724
 
# LTCC compiler flags.
17725
 
LTCFLAGS=$lt_LTCFLAGS
17726
 
 
17727
 
# A language-specific compiler.
17728
 
CC=$lt_compiler_GCJ
17729
 
 
17730
 
# Is the compiler the GNU C compiler?
17731
 
with_gcc=$GCC_GCJ
17732
 
 
17733
 
# An ERE matcher.
17734
 
EGREP=$lt_EGREP
17735
 
 
17736
 
# The linker used to build libraries.
17737
 
LD=$lt_LD_GCJ
17738
 
 
17739
 
# Whether we need hard or soft links.
17740
 
LN_S=$lt_LN_S
17741
 
 
17742
 
# A BSD-compatible nm program.
17743
 
NM=$lt_NM
17744
 
 
17745
 
# A symbol stripping program
17746
 
STRIP=$lt_STRIP
17747
 
 
17748
 
# Used to examine libraries when file_magic_cmd begins "file"
17749
 
MAGIC_CMD=$MAGIC_CMD
17750
 
 
17751
 
# Used on cygwin: DLL creation program.
17752
 
DLLTOOL="$DLLTOOL"
17753
 
 
17754
 
# Used on cygwin: object dumper.
17755
 
OBJDUMP="$OBJDUMP"
17756
 
 
17757
 
# Used on cygwin: assembler.
17758
 
AS="$AS"
17759
 
 
17760
 
# The name of the directory that contains temporary libtool files.
17761
 
objdir=$objdir
17762
 
 
17763
 
# How to create reloadable object files.
17764
 
reload_flag=$lt_reload_flag
17765
 
reload_cmds=$lt_reload_cmds
17766
 
 
17767
 
# How to pass a linker flag through the compiler.
17768
 
wl=$lt_lt_prog_compiler_wl_GCJ
17769
 
 
17770
 
# Object file suffix (normally "o").
17771
 
objext="$ac_objext"
17772
 
 
17773
 
# Old archive suffix (normally "a").
17774
 
libext="$libext"
17775
 
 
17776
 
# Shared library suffix (normally ".so").
17777
 
shrext_cmds='$shrext_cmds'
17778
 
 
17779
 
# Executable file suffix (normally "").
17780
 
exeext="$exeext"
17781
 
 
17782
 
# Additional compiler flags for building library objects.
17783
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17784
 
pic_mode=$pic_mode
17785
 
 
17786
 
# What is the maximum length of a command?
17787
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17788
 
 
17789
 
# Does compiler simultaneously support -c and -o options?
17790
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17791
 
 
17792
 
# Must we lock files when doing compilation?
17793
 
need_locks=$lt_need_locks
17794
 
 
17795
 
# Do we need the lib prefix for modules?
17796
 
need_lib_prefix=$need_lib_prefix
17797
 
 
17798
 
# Do we need a version for libraries?
17799
 
need_version=$need_version
17800
 
 
17801
 
# Whether dlopen is supported.
17802
 
dlopen_support=$enable_dlopen
17803
 
 
17804
 
# Whether dlopen of programs is supported.
17805
 
dlopen_self=$enable_dlopen_self
17806
 
 
17807
 
# Whether dlopen of statically linked programs is supported.
17808
 
dlopen_self_static=$enable_dlopen_self_static
17809
 
 
17810
 
# Compiler flag to prevent dynamic linking.
17811
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17812
 
 
17813
 
# Compiler flag to turn off builtin functions.
17814
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17815
 
 
17816
 
# Compiler flag to allow reflexive dlopens.
17817
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17818
 
 
17819
 
# Compiler flag to generate shared objects directly from archives.
17820
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17821
 
 
17822
 
# Compiler flag to generate thread-safe objects.
17823
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17824
 
 
17825
 
# Library versioning type.
17826
 
version_type=$version_type
17827
 
 
17828
 
# Format of library name prefix.
17829
 
libname_spec=$lt_libname_spec
17830
 
 
17831
 
# List of archive names.  First name is the real one, the rest are links.
17832
 
# The last name is the one that the linker finds with -lNAME.
17833
 
library_names_spec=$lt_library_names_spec
17834
 
 
17835
 
# The coded name of the library, if different from the real name.
17836
 
soname_spec=$lt_soname_spec
17837
 
 
17838
 
# Commands used to build and install an old-style archive.
17839
 
RANLIB=$lt_RANLIB
17840
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
17841
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17842
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17843
 
 
17844
 
# Create an old-style archive from a shared archive.
17845
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17846
 
 
17847
 
# Create a temporary old-style archive to link instead of a shared archive.
17848
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17849
 
 
17850
 
# Commands used to build and install a shared archive.
17851
 
archive_cmds=$lt_archive_cmds_GCJ
17852
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17853
 
postinstall_cmds=$lt_postinstall_cmds
17854
 
postuninstall_cmds=$lt_postuninstall_cmds
17855
 
 
17856
 
# Commands used to build a loadable module (assumed same as above if empty)
17857
 
module_cmds=$lt_module_cmds_GCJ
17858
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17859
 
 
17860
 
# Commands to strip libraries.
17861
 
old_striplib=$lt_old_striplib
17862
 
striplib=$lt_striplib
17863
 
 
17864
 
# Dependencies to place before the objects being linked to create a
17865
 
# shared library.
17866
 
predep_objects=$lt_predep_objects_GCJ
17867
 
 
17868
 
# Dependencies to place after the objects being linked to create a
17869
 
# shared library.
17870
 
postdep_objects=$lt_postdep_objects_GCJ
17871
 
 
17872
 
# Dependencies to place before the objects being linked to create a
17873
 
# shared library.
17874
 
predeps=$lt_predeps_GCJ
17875
 
 
17876
 
# Dependencies to place after the objects being linked to create a
17877
 
# shared library.
17878
 
postdeps=$lt_postdeps_GCJ
17879
 
 
17880
 
# The library search path used internally by the compiler when linking
17881
 
# a shared library.
17882
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17883
 
 
17884
 
# Method to check whether dependent libraries are shared objects.
17885
 
deplibs_check_method=$lt_deplibs_check_method
17886
 
 
17887
 
# Command to use when deplibs_check_method == file_magic.
17888
 
file_magic_cmd=$lt_file_magic_cmd
17889
 
 
17890
 
# Flag that allows shared libraries with undefined symbols to be built.
17891
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17892
 
 
17893
 
# Flag that forces no undefined symbols.
17894
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
17895
 
 
17896
 
# Commands used to finish a libtool library installation in a directory.
17897
 
finish_cmds=$lt_finish_cmds
17898
 
 
17899
 
# Same as above, but a single script fragment to be evaled but not shown.
17900
 
finish_eval=$lt_finish_eval
17901
 
 
17902
 
# Take the output of nm and produce a listing of raw symbols and C names.
17903
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17904
 
 
17905
 
# Transform the output of nm in a proper C declaration
17906
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17907
 
 
17908
 
# Transform the output of nm in a C name address pair
17909
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17910
 
 
17911
 
# This is the shared library runtime path variable.
17912
 
runpath_var=$runpath_var
17913
 
 
17914
 
# This is the shared library path variable.
17915
 
shlibpath_var=$shlibpath_var
17916
 
 
17917
 
# Is shlibpath searched before the hard-coded library search path?
17918
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17919
 
 
17920
 
# How to hardcode a shared library path into an executable.
17921
 
hardcode_action=$hardcode_action_GCJ
17922
 
 
17923
 
# Whether we should hardcode library paths into libraries.
17924
 
hardcode_into_libs=$hardcode_into_libs
17925
 
 
17926
 
# Flag to hardcode \$libdir into a binary during linking.
17927
 
# This must work even if \$libdir does not exist.
17928
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17929
 
 
17930
 
# If ld is used when linking, flag to hardcode \$libdir into
17931
 
# a binary during linking. This must work even if \$libdir does
17932
 
# not exist.
17933
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17934
 
 
17935
 
# Whether we need a single -rpath flag with a separated argument.
17936
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17937
 
 
17938
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17939
 
# resulting binary.
17940
 
hardcode_direct=$hardcode_direct_GCJ
17941
 
 
17942
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17943
 
# resulting binary.
17944
 
hardcode_minus_L=$hardcode_minus_L_GCJ
17945
 
 
17946
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17947
 
# the resulting binary.
17948
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17949
 
 
17950
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17951
 
# and all subsequent libraries and executables linked against it.
17952
 
hardcode_automatic=$hardcode_automatic_GCJ
17953
 
 
17954
 
# Variables whose values should be saved in libtool wrapper scripts and
17955
 
# restored at relink time.
17956
 
variables_saved_for_relink="$variables_saved_for_relink"
17957
 
 
17958
 
# Whether libtool must link a program against all its dependency libraries.
17959
 
link_all_deplibs=$link_all_deplibs_GCJ
17960
 
 
17961
 
# Compile-time system search path for libraries
17962
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17963
 
 
17964
 
# Run-time system search path for libraries
17965
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17966
 
 
17967
 
# Fix the shell variable \$srcfile for the compiler.
17968
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
17969
 
 
17970
 
# Set to yes if exported symbols are required.
17971
 
always_export_symbols=$always_export_symbols_GCJ
17972
 
 
17973
 
# The commands to list exported symbols.
17974
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17975
 
 
17976
 
# The commands to extract the exported symbol list from a shared archive.
17977
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17978
 
 
17979
 
# Symbols that should not be listed in the preloaded symbols.
17980
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
17981
 
 
17982
 
# Symbols that must always be exported.
17983
 
include_expsyms=$lt_include_expsyms_GCJ
17984
 
 
17985
 
# ### END LIBTOOL TAG CONFIG: $tagname
17986
 
 
17987
 
__EOF__
17988
 
 
17989
 
 
17990
 
else
17991
 
  # If there is no Makefile yet, we rely on a make rule to execute
17992
 
  # `config.status --recheck' to rerun these tests and create the
17993
 
  # libtool script then.
17994
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17995
 
  if test -f "$ltmain_in"; then
17996
 
    test -f Makefile && make "$ltmain"
17997
 
  fi
17998
 
fi
17999
 
 
18000
 
 
18001
 
ac_ext=c
18002
 
ac_cpp='$CPP $CPPFLAGS'
18003
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18006
 
 
18007
 
CC="$lt_save_CC"
18008
 
 
18009
 
        else
18010
 
          tagname=""
18011
 
        fi
18012
 
        ;;
18013
 
 
18014
 
      RC)
18015
 
 
18016
 
 
18017
 
 
18018
 
# Source file extension for RC test sources.
18019
 
ac_ext=rc
18020
 
 
18021
 
# Object file extension for compiled RC test sources.
18022
 
objext=o
18023
 
objext_RC=$objext
18024
 
 
18025
 
# Code to be used in simple compile tests
18026
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18027
 
 
18028
 
# Code to be used in simple link tests
18029
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18030
 
 
18031
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18032
 
 
18033
 
# If no C compiler was specified, use CC.
18034
 
LTCC=${LTCC-"$CC"}
18035
 
 
18036
 
# If no C compiler flags were specified, use CFLAGS.
18037
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18038
 
 
18039
 
# Allow CC to be a program name with arguments.
18040
 
compiler=$CC
18041
 
 
18042
 
 
18043
 
# save warnings/boilerplate of simple test code
18044
 
ac_outfile=conftest.$ac_objext
18045
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18046
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18047
 
_lt_compiler_boilerplate=`cat conftest.err`
18048
 
$rm conftest*
18049
 
 
18050
 
ac_outfile=conftest.$ac_objext
18051
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18052
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18053
 
_lt_linker_boilerplate=`cat conftest.err`
18054
 
$rm conftest*
18055
 
 
18056
 
 
18057
 
# Allow CC to be a program name with arguments.
18058
 
lt_save_CC="$CC"
18059
 
CC=${RC-"windres"}
18060
 
compiler=$CC
18061
 
compiler_RC=$CC
18062
 
for cc_temp in $compiler""; do
18063
 
  case $cc_temp in
18064
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18065
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18066
 
    \-*) ;;
18067
 
    *) break;;
18068
 
  esac
18069
 
done
18070
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18071
 
 
18072
 
lt_cv_prog_compiler_c_o_RC=yes
18073
 
 
18074
 
# The else clause should only fire when bootstrapping the
18075
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18076
 
# with your package, and you will get complaints that there are
18077
 
# no rules to generate ltmain.sh.
18078
 
if test -f "$ltmain"; then
18079
 
  # See if we are running on zsh, and set the options which allow our commands through
18080
 
  # without removal of \ escapes.
18081
 
  if test -n "${ZSH_VERSION+set}" ; then
18082
 
    setopt NO_GLOB_SUBST
18083
 
  fi
18084
 
  # Now quote all the things that may contain metacharacters while being
18085
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18086
 
  # variables and quote the copies for generation of the libtool script.
18087
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18088
 
    SED SHELL STRIP \
18089
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18090
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18091
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18092
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18093
 
    lt_cv_sys_global_symbol_to_c_name_address \
18094
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18095
 
    old_postinstall_cmds old_postuninstall_cmds \
18096
 
    compiler_RC \
18097
 
    CC_RC \
18098
 
    LD_RC \
18099
 
    lt_prog_compiler_wl_RC \
18100
 
    lt_prog_compiler_pic_RC \
18101
 
    lt_prog_compiler_static_RC \
18102
 
    lt_prog_compiler_no_builtin_flag_RC \
18103
 
    export_dynamic_flag_spec_RC \
18104
 
    thread_safe_flag_spec_RC \
18105
 
    whole_archive_flag_spec_RC \
18106
 
    enable_shared_with_static_runtimes_RC \
18107
 
    old_archive_cmds_RC \
18108
 
    old_archive_from_new_cmds_RC \
18109
 
    predep_objects_RC \
18110
 
    postdep_objects_RC \
18111
 
    predeps_RC \
18112
 
    postdeps_RC \
18113
 
    compiler_lib_search_path_RC \
18114
 
    archive_cmds_RC \
18115
 
    archive_expsym_cmds_RC \
18116
 
    postinstall_cmds_RC \
18117
 
    postuninstall_cmds_RC \
18118
 
    old_archive_from_expsyms_cmds_RC \
18119
 
    allow_undefined_flag_RC \
18120
 
    no_undefined_flag_RC \
18121
 
    export_symbols_cmds_RC \
18122
 
    hardcode_libdir_flag_spec_RC \
18123
 
    hardcode_libdir_flag_spec_ld_RC \
18124
 
    hardcode_libdir_separator_RC \
18125
 
    hardcode_automatic_RC \
18126
 
    module_cmds_RC \
18127
 
    module_expsym_cmds_RC \
18128
 
    lt_cv_prog_compiler_c_o_RC \
18129
 
    exclude_expsyms_RC \
18130
 
    include_expsyms_RC; do
18131
 
 
18132
 
    case $var in
18133
 
    old_archive_cmds_RC | \
18134
 
    old_archive_from_new_cmds_RC | \
18135
 
    archive_cmds_RC | \
18136
 
    archive_expsym_cmds_RC | \
18137
 
    module_cmds_RC | \
18138
 
    module_expsym_cmds_RC | \
18139
 
    old_archive_from_expsyms_cmds_RC | \
18140
 
    export_symbols_cmds_RC | \
18141
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18142
 
    postinstall_cmds | postuninstall_cmds | \
18143
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18144
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18145
 
      # Double-quote double-evaled strings.
18146
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18147
 
      ;;
18148
 
    *)
18149
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18150
 
      ;;
18151
 
    esac
18152
 
  done
18153
 
 
18154
 
  case $lt_echo in
18155
 
  *'\$0 --fallback-echo"')
18156
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18157
 
    ;;
18158
 
  esac
18159
 
 
18160
 
cfgfile="$ofile"
18161
 
 
18162
 
  cat <<__EOF__ >> "$cfgfile"
18163
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18164
 
 
18165
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18166
 
 
18167
 
# Shell to use when invoking shell scripts.
18168
 
SHELL=$lt_SHELL
18169
 
 
18170
 
# Whether or not to build shared libraries.
18171
 
build_libtool_libs=$enable_shared
18172
 
 
18173
 
# Whether or not to build static libraries.
18174
 
build_old_libs=$enable_static
18175
 
 
18176
 
# Whether or not to add -lc for building shared libraries.
18177
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18178
 
 
18179
 
# Whether or not to disallow shared libs when runtime libs are static
18180
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18181
 
 
18182
 
# Whether or not to optimize for fast installation.
18183
 
fast_install=$enable_fast_install
18184
 
 
18185
 
# The host system.
18186
 
host_alias=$host_alias
18187
 
host=$host
18188
 
host_os=$host_os
18189
 
 
18190
 
# The build system.
18191
 
build_alias=$build_alias
18192
 
build=$build
18193
 
build_os=$build_os
18194
 
 
18195
 
# An echo program that does not interpret backslashes.
18196
 
echo=$lt_echo
18197
 
 
18198
 
# The archiver.
18199
 
AR=$lt_AR
18200
 
AR_FLAGS=$lt_AR_FLAGS
18201
 
 
18202
 
# A C compiler.
18203
 
LTCC=$lt_LTCC
18204
 
 
18205
 
# LTCC compiler flags.
18206
 
LTCFLAGS=$lt_LTCFLAGS
18207
 
 
18208
 
# A language-specific compiler.
18209
 
CC=$lt_compiler_RC
18210
 
 
18211
 
# Is the compiler the GNU C compiler?
18212
 
with_gcc=$GCC_RC
18213
 
 
18214
 
# An ERE matcher.
18215
 
EGREP=$lt_EGREP
18216
 
 
18217
 
# The linker used to build libraries.
18218
 
LD=$lt_LD_RC
18219
 
 
18220
 
# Whether we need hard or soft links.
18221
 
LN_S=$lt_LN_S
18222
 
 
18223
 
# A BSD-compatible nm program.
18224
 
NM=$lt_NM
18225
 
 
18226
 
# A symbol stripping program
18227
 
STRIP=$lt_STRIP
18228
 
 
18229
 
# Used to examine libraries when file_magic_cmd begins "file"
18230
 
MAGIC_CMD=$MAGIC_CMD
18231
 
 
18232
 
# Used on cygwin: DLL creation program.
18233
 
DLLTOOL="$DLLTOOL"
18234
 
 
18235
 
# Used on cygwin: object dumper.
18236
 
OBJDUMP="$OBJDUMP"
18237
 
 
18238
 
# Used on cygwin: assembler.
18239
 
AS="$AS"
18240
 
 
18241
 
# The name of the directory that contains temporary libtool files.
18242
 
objdir=$objdir
18243
 
 
18244
 
# How to create reloadable object files.
18245
 
reload_flag=$lt_reload_flag
18246
 
reload_cmds=$lt_reload_cmds
18247
 
 
18248
 
# How to pass a linker flag through the compiler.
18249
 
wl=$lt_lt_prog_compiler_wl_RC
18250
 
 
18251
 
# Object file suffix (normally "o").
18252
 
objext="$ac_objext"
18253
 
 
18254
 
# Old archive suffix (normally "a").
18255
 
libext="$libext"
18256
 
 
18257
 
# Shared library suffix (normally ".so").
18258
 
shrext_cmds='$shrext_cmds'
18259
 
 
18260
 
# Executable file suffix (normally "").
18261
 
exeext="$exeext"
18262
 
 
18263
 
# Additional compiler flags for building library objects.
18264
 
pic_flag=$lt_lt_prog_compiler_pic_RC
18265
 
pic_mode=$pic_mode
18266
 
 
18267
 
# What is the maximum length of a command?
18268
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18269
 
 
18270
 
# Does compiler simultaneously support -c and -o options?
18271
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18272
 
 
18273
 
# Must we lock files when doing compilation?
18274
 
need_locks=$lt_need_locks
18275
 
 
18276
 
# Do we need the lib prefix for modules?
18277
 
need_lib_prefix=$need_lib_prefix
18278
 
 
18279
 
# Do we need a version for libraries?
18280
 
need_version=$need_version
18281
 
 
18282
 
# Whether dlopen is supported.
18283
 
dlopen_support=$enable_dlopen
18284
 
 
18285
 
# Whether dlopen of programs is supported.
18286
 
dlopen_self=$enable_dlopen_self
18287
 
 
18288
 
# Whether dlopen of statically linked programs is supported.
18289
 
dlopen_self_static=$enable_dlopen_self_static
18290
 
 
18291
 
# Compiler flag to prevent dynamic linking.
18292
 
link_static_flag=$lt_lt_prog_compiler_static_RC
18293
 
 
18294
 
# Compiler flag to turn off builtin functions.
18295
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18296
 
 
18297
 
# Compiler flag to allow reflexive dlopens.
18298
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18299
 
 
18300
 
# Compiler flag to generate shared objects directly from archives.
18301
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18302
 
 
18303
 
# Compiler flag to generate thread-safe objects.
18304
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18305
 
 
18306
 
# Library versioning type.
18307
 
version_type=$version_type
18308
 
 
18309
 
# Format of library name prefix.
18310
 
libname_spec=$lt_libname_spec
18311
 
 
18312
 
# List of archive names.  First name is the real one, the rest are links.
18313
 
# The last name is the one that the linker finds with -lNAME.
18314
 
library_names_spec=$lt_library_names_spec
18315
 
 
18316
 
# The coded name of the library, if different from the real name.
18317
 
soname_spec=$lt_soname_spec
18318
 
 
18319
 
# Commands used to build and install an old-style archive.
18320
 
RANLIB=$lt_RANLIB
18321
 
old_archive_cmds=$lt_old_archive_cmds_RC
18322
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18323
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18324
 
 
18325
 
# Create an old-style archive from a shared archive.
18326
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18327
 
 
18328
 
# Create a temporary old-style archive to link instead of a shared archive.
18329
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18330
 
 
18331
 
# Commands used to build and install a shared archive.
18332
 
archive_cmds=$lt_archive_cmds_RC
18333
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18334
 
postinstall_cmds=$lt_postinstall_cmds
18335
 
postuninstall_cmds=$lt_postuninstall_cmds
18336
 
 
18337
 
# Commands used to build a loadable module (assumed same as above if empty)
18338
 
module_cmds=$lt_module_cmds_RC
18339
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
18340
 
 
18341
 
# Commands to strip libraries.
18342
 
old_striplib=$lt_old_striplib
18343
 
striplib=$lt_striplib
18344
 
 
18345
 
# Dependencies to place before the objects being linked to create a
18346
 
# shared library.
18347
 
predep_objects=$lt_predep_objects_RC
18348
 
 
18349
 
# Dependencies to place after the objects being linked to create a
18350
 
# shared library.
18351
 
postdep_objects=$lt_postdep_objects_RC
18352
 
 
18353
 
# Dependencies to place before the objects being linked to create a
18354
 
# shared library.
18355
 
predeps=$lt_predeps_RC
18356
 
 
18357
 
# Dependencies to place after the objects being linked to create a
18358
 
# shared library.
18359
 
postdeps=$lt_postdeps_RC
18360
 
 
18361
 
# The library search path used internally by the compiler when linking
18362
 
# a shared library.
18363
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18364
 
 
18365
 
# Method to check whether dependent libraries are shared objects.
18366
 
deplibs_check_method=$lt_deplibs_check_method
18367
 
 
18368
 
# Command to use when deplibs_check_method == file_magic.
18369
 
file_magic_cmd=$lt_file_magic_cmd
18370
 
 
18371
 
# Flag that allows shared libraries with undefined symbols to be built.
18372
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
18373
 
 
18374
 
# Flag that forces no undefined symbols.
18375
 
no_undefined_flag=$lt_no_undefined_flag_RC
18376
 
 
18377
 
# Commands used to finish a libtool library installation in a directory.
18378
 
finish_cmds=$lt_finish_cmds
18379
 
 
18380
 
# Same as above, but a single script fragment to be evaled but not shown.
18381
 
finish_eval=$lt_finish_eval
18382
 
 
18383
 
# Take the output of nm and produce a listing of raw symbols and C names.
18384
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18385
 
 
18386
 
# Transform the output of nm in a proper C declaration
18387
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18388
 
 
18389
 
# Transform the output of nm in a C name address pair
18390
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18391
 
 
18392
 
# This is the shared library runtime path variable.
18393
 
runpath_var=$runpath_var
18394
 
 
18395
 
# This is the shared library path variable.
18396
 
shlibpath_var=$shlibpath_var
18397
 
 
18398
 
# Is shlibpath searched before the hard-coded library search path?
18399
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18400
 
 
18401
 
# How to hardcode a shared library path into an executable.
18402
 
hardcode_action=$hardcode_action_RC
18403
 
 
18404
 
# Whether we should hardcode library paths into libraries.
18405
 
hardcode_into_libs=$hardcode_into_libs
18406
 
 
18407
 
# Flag to hardcode \$libdir into a binary during linking.
18408
 
# This must work even if \$libdir does not exist.
18409
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18410
 
 
18411
 
# If ld is used when linking, flag to hardcode \$libdir into
18412
 
# a binary during linking. This must work even if \$libdir does
18413
 
# not exist.
18414
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18415
 
 
18416
 
# Whether we need a single -rpath flag with a separated argument.
18417
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18418
 
 
18419
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18420
 
# resulting binary.
18421
 
hardcode_direct=$hardcode_direct_RC
18422
 
 
18423
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18424
 
# resulting binary.
18425
 
hardcode_minus_L=$hardcode_minus_L_RC
18426
 
 
18427
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18428
 
# the resulting binary.
18429
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18430
 
 
18431
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18432
 
# and all subsequent libraries and executables linked against it.
18433
 
hardcode_automatic=$hardcode_automatic_RC
18434
 
 
18435
 
# Variables whose values should be saved in libtool wrapper scripts and
18436
 
# restored at relink time.
18437
 
variables_saved_for_relink="$variables_saved_for_relink"
18438
 
 
18439
 
# Whether libtool must link a program against all its dependency libraries.
18440
 
link_all_deplibs=$link_all_deplibs_RC
18441
 
 
18442
 
# Compile-time system search path for libraries
18443
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18444
 
 
18445
 
# Run-time system search path for libraries
18446
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18447
 
 
18448
 
# Fix the shell variable \$srcfile for the compiler.
18449
 
fix_srcfile_path="$fix_srcfile_path_RC"
18450
 
 
18451
 
# Set to yes if exported symbols are required.
18452
 
always_export_symbols=$always_export_symbols_RC
18453
 
 
18454
 
# The commands to list exported symbols.
18455
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
18456
 
 
18457
 
# The commands to extract the exported symbol list from a shared archive.
18458
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18459
 
 
18460
 
# Symbols that should not be listed in the preloaded symbols.
18461
 
exclude_expsyms=$lt_exclude_expsyms_RC
18462
 
 
18463
 
# Symbols that must always be exported.
18464
 
include_expsyms=$lt_include_expsyms_RC
18465
 
 
18466
 
# ### END LIBTOOL TAG CONFIG: $tagname
18467
 
 
18468
 
__EOF__
18469
 
 
18470
 
 
18471
 
else
18472
 
  # If there is no Makefile yet, we rely on a make rule to execute
18473
 
  # `config.status --recheck' to rerun these tests and create the
18474
 
  # libtool script then.
18475
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18476
 
  if test -f "$ltmain_in"; then
18477
 
    test -f Makefile && make "$ltmain"
18478
 
  fi
18479
 
fi
18480
 
 
18481
 
 
18482
 
ac_ext=c
18483
 
ac_cpp='$CPP $CPPFLAGS'
18484
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487
 
 
18488
 
CC="$lt_save_CC"
18489
 
 
18490
 
        ;;
18491
 
 
18492
 
      *)
18493
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18494
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18495
 
   { (exit 1); exit 1; }; }
18496
 
        ;;
18497
 
      esac
18498
 
 
18499
 
      # Append the new tag name to the list of available tags.
18500
 
      if test -n "$tagname" ; then
18501
 
      available_tags="$available_tags $tagname"
18502
 
    fi
18503
 
    fi
18504
 
  done
18505
 
  IFS="$lt_save_ifs"
18506
 
 
18507
 
  # Now substitute the updated list of available tags.
18508
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18509
 
    mv "${ofile}T" "$ofile"
18510
 
    chmod +x "$ofile"
18511
 
  else
18512
 
    rm -f "${ofile}T"
18513
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18514
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18515
 
   { (exit 1); exit 1; }; }
18516
 
  fi
18517
 
fi
18518
 
 
18519
 
 
18520
 
 
18521
 
# This can be used to rebuild libtool when needed
18522
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18523
 
 
18524
 
# Always use our own libtool.
18525
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18526
 
 
18527
 
# Prevent multiple expansion
18528
 
 
18529
 
 
18530
 
 
18531
 
 
18532
 
 
18533
 
 
18534
 
 
18535
 
 
18536
 
 
18537
 
 
18538
 
 
18539
 
 
18540
 
 
18541
 
 
18542
 
 
18543
 
 
18544
 
 
18545
 
 
18546
 
 
18547
 
 
18548
 
 
18549
 
 
18550
 
 
18551
 
 
18552
 
 
18553
 
ac_ext=c
18554
 
ac_cpp='$CPP $CPPFLAGS'
18555
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18558
 
if test -n "$ac_tool_prefix"; then
18559
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18560
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
18561
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18562
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563
 
if test "${ac_cv_prog_CC+set}" = set; then
18564
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18565
 
else
18566
 
  if test -n "$CC"; then
18567
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
18568
 
else
18569
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570
 
for as_dir in $PATH
18571
 
do
18572
 
  IFS=$as_save_IFS
18573
 
  test -z "$as_dir" && as_dir=.
18574
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18575
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18577
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18578
 
    break 2
18579
 
  fi
18580
 
done
18581
 
done
18582
 
 
18583
 
fi
18584
 
fi
18585
 
CC=$ac_cv_prog_CC
18586
 
if test -n "$CC"; then
18587
 
  echo "$as_me:$LINENO: result: $CC" >&5
18588
 
echo "${ECHO_T}$CC" >&6
18589
 
else
18590
 
  echo "$as_me:$LINENO: result: no" >&5
18591
 
echo "${ECHO_T}no" >&6
18592
 
fi
18593
 
 
18594
 
fi
18595
 
if test -z "$ac_cv_prog_CC"; then
18596
 
  ac_ct_CC=$CC
18597
 
  # Extract the first word of "gcc", so it can be a program name with args.
18598
 
set dummy gcc; ac_word=$2
18599
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18600
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18603
 
else
18604
 
  if test -n "$ac_ct_CC"; then
18605
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18606
 
else
18607
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608
 
for as_dir in $PATH
18609
 
do
18610
 
  IFS=$as_save_IFS
18611
 
  test -z "$as_dir" && as_dir=.
18612
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18613
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614
 
    ac_cv_prog_ac_ct_CC="gcc"
18615
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18616
 
    break 2
18617
 
  fi
18618
 
done
18619
 
done
18620
 
 
18621
 
fi
18622
 
fi
18623
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18624
 
if test -n "$ac_ct_CC"; then
18625
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18626
 
echo "${ECHO_T}$ac_ct_CC" >&6
18627
 
else
18628
 
  echo "$as_me:$LINENO: result: no" >&5
18629
 
echo "${ECHO_T}no" >&6
18630
 
fi
18631
 
 
18632
 
  CC=$ac_ct_CC
18633
 
else
18634
 
  CC="$ac_cv_prog_CC"
18635
 
fi
18636
 
 
18637
 
if test -z "$CC"; then
18638
 
  if test -n "$ac_tool_prefix"; then
18639
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18640
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
18641
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18642
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18643
 
if test "${ac_cv_prog_CC+set}" = set; then
18644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18645
 
else
18646
 
  if test -n "$CC"; then
18647
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
18648
 
else
18649
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650
 
for as_dir in $PATH
18651
 
do
18652
 
  IFS=$as_save_IFS
18653
 
  test -z "$as_dir" && as_dir=.
18654
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18655
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
18657
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658
 
    break 2
18659
 
  fi
18660
 
done
18661
 
done
18662
 
 
18663
 
fi
18664
 
fi
18665
 
CC=$ac_cv_prog_CC
18666
 
if test -n "$CC"; then
18667
 
  echo "$as_me:$LINENO: result: $CC" >&5
18668
 
echo "${ECHO_T}$CC" >&6
18669
 
else
18670
 
  echo "$as_me:$LINENO: result: no" >&5
18671
 
echo "${ECHO_T}no" >&6
18672
 
fi
18673
 
 
18674
 
fi
18675
 
if test -z "$ac_cv_prog_CC"; then
18676
 
  ac_ct_CC=$CC
18677
 
  # Extract the first word of "cc", so it can be a program name with args.
18678
 
set dummy cc; ac_word=$2
18679
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18680
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18682
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18683
 
else
18684
 
  if test -n "$ac_ct_CC"; then
18685
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18686
 
else
18687
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688
 
for as_dir in $PATH
18689
 
do
18690
 
  IFS=$as_save_IFS
18691
 
  test -z "$as_dir" && as_dir=.
18692
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18693
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694
 
    ac_cv_prog_ac_ct_CC="cc"
18695
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696
 
    break 2
18697
 
  fi
18698
 
done
18699
 
done
18700
 
 
18701
 
fi
18702
 
fi
18703
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18704
 
if test -n "$ac_ct_CC"; then
18705
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18706
 
echo "${ECHO_T}$ac_ct_CC" >&6
18707
 
else
18708
 
  echo "$as_me:$LINENO: result: no" >&5
18709
 
echo "${ECHO_T}no" >&6
18710
 
fi
18711
 
 
18712
 
  CC=$ac_ct_CC
18713
 
else
18714
 
  CC="$ac_cv_prog_CC"
18715
 
fi
18716
 
 
18717
 
fi
18718
 
if test -z "$CC"; then
18719
 
  # Extract the first word of "cc", so it can be a program name with args.
18720
 
set dummy cc; ac_word=$2
18721
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18722
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723
 
if test "${ac_cv_prog_CC+set}" = set; then
18724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18725
 
else
18726
 
  if test -n "$CC"; then
18727
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
18728
 
else
18729
 
  ac_prog_rejected=no
18730
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731
 
for as_dir in $PATH
18732
 
do
18733
 
  IFS=$as_save_IFS
18734
 
  test -z "$as_dir" && as_dir=.
18735
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18736
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18737
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18738
 
       ac_prog_rejected=yes
18739
 
       continue
18740
 
     fi
18741
 
    ac_cv_prog_CC="cc"
18742
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743
 
    break 2
18744
 
  fi
18745
 
done
18746
 
done
18747
 
 
18748
 
if test $ac_prog_rejected = yes; then
18749
 
  # We found a bogon in the path, so make sure we never use it.
18750
 
  set dummy $ac_cv_prog_CC
18751
 
  shift
18752
 
  if test $# != 0; then
18753
 
    # We chose a different compiler from the bogus one.
18754
 
    # However, it has the same basename, so the bogon will be chosen
18755
 
    # first if we set CC to just the basename; use the full file name.
18756
 
    shift
18757
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18758
 
  fi
18759
 
fi
18760
 
fi
18761
 
fi
18762
 
CC=$ac_cv_prog_CC
18763
 
if test -n "$CC"; then
18764
 
  echo "$as_me:$LINENO: result: $CC" >&5
18765
 
echo "${ECHO_T}$CC" >&6
18766
 
else
18767
 
  echo "$as_me:$LINENO: result: no" >&5
18768
 
echo "${ECHO_T}no" >&6
18769
 
fi
18770
 
 
18771
 
fi
18772
 
if test -z "$CC"; then
18773
 
  if test -n "$ac_tool_prefix"; then
18774
 
  for ac_prog in cl
18775
 
  do
18776
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18777
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18778
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18779
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18780
 
if test "${ac_cv_prog_CC+set}" = set; then
18781
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18782
 
else
18783
 
  if test -n "$CC"; then
18784
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
18785
 
else
18786
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787
 
for as_dir in $PATH
18788
 
do
18789
 
  IFS=$as_save_IFS
18790
 
  test -z "$as_dir" && as_dir=.
18791
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18792
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18793
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18794
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18795
 
    break 2
18796
 
  fi
18797
 
done
18798
 
done
18799
 
 
18800
 
fi
18801
 
fi
18802
 
CC=$ac_cv_prog_CC
18803
 
if test -n "$CC"; then
18804
 
  echo "$as_me:$LINENO: result: $CC" >&5
18805
 
echo "${ECHO_T}$CC" >&6
18806
 
else
18807
 
  echo "$as_me:$LINENO: result: no" >&5
18808
 
echo "${ECHO_T}no" >&6
18809
 
fi
18810
 
 
18811
 
    test -n "$CC" && break
18812
 
  done
18813
 
fi
18814
 
if test -z "$CC"; then
18815
 
  ac_ct_CC=$CC
18816
 
  for ac_prog in cl
18817
 
do
18818
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18819
 
set dummy $ac_prog; ac_word=$2
18820
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
18821
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18822
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18823
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18824
 
else
18825
 
  if test -n "$ac_ct_CC"; then
18826
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18827
 
else
18828
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829
 
for as_dir in $PATH
18830
 
do
18831
 
  IFS=$as_save_IFS
18832
 
  test -z "$as_dir" && as_dir=.
18833
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18834
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
18836
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18837
 
    break 2
18838
 
  fi
18839
 
done
18840
 
done
18841
 
 
18842
 
fi
18843
 
fi
18844
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18845
 
if test -n "$ac_ct_CC"; then
18846
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18847
 
echo "${ECHO_T}$ac_ct_CC" >&6
18848
 
else
18849
 
  echo "$as_me:$LINENO: result: no" >&5
18850
 
echo "${ECHO_T}no" >&6
18851
 
fi
18852
 
 
18853
 
  test -n "$ac_ct_CC" && break
18854
 
done
18855
 
 
18856
 
  CC=$ac_ct_CC
18857
 
fi
18858
 
 
18859
 
fi
18860
 
 
18861
 
 
18862
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18863
 
See \`config.log' for more details." >&5
18864
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
18865
 
See \`config.log' for more details." >&2;}
18866
 
   { (exit 1); exit 1; }; }
18867
 
 
18868
 
# Provide some information about the compiler.
18869
 
echo "$as_me:$LINENO:" \
18870
 
     "checking for C compiler version" >&5
18871
 
ac_compiler=`set X $ac_compile; echo $2`
18872
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18873
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
18874
 
  ac_status=$?
18875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876
 
  (exit $ac_status); }
18877
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18878
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
18879
 
  ac_status=$?
18880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881
 
  (exit $ac_status); }
18882
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18883
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
18884
 
  ac_status=$?
18885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886
 
  (exit $ac_status); }
18887
 
 
18888
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18889
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18890
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
18891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18892
 
else
18893
 
  cat >conftest.$ac_ext <<_ACEOF
18894
 
/* confdefs.h.  */
18895
 
_ACEOF
18896
 
cat confdefs.h >>conftest.$ac_ext
18897
 
cat >>conftest.$ac_ext <<_ACEOF
18898
 
/* end confdefs.h.  */
18899
 
 
18900
 
int
18901
 
main ()
18902
 
{
18903
 
#ifndef __GNUC__
18904
 
       choke me
18905
 
#endif
18906
 
 
18907
 
  ;
18908
 
  return 0;
18909
 
}
18910
 
_ACEOF
18911
 
rm -f conftest.$ac_objext
18912
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913
 
  (eval $ac_compile) 2>conftest.er1
18914
 
  ac_status=$?
18915
 
  grep -v '^ *+' conftest.er1 >conftest.err
18916
 
  rm -f conftest.er1
18917
 
  cat conftest.err >&5
18918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919
 
  (exit $ac_status); } &&
18920
 
         { ac_try='test -z "$ac_c_werror_flag"
18921
 
                         || test ! -s conftest.err'
18922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923
 
  (eval $ac_try) 2>&5
18924
 
  ac_status=$?
18925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926
 
  (exit $ac_status); }; } &&
18927
 
         { ac_try='test -s conftest.$ac_objext'
18928
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929
 
  (eval $ac_try) 2>&5
18930
 
  ac_status=$?
18931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932
 
  (exit $ac_status); }; }; then
18933
 
  ac_compiler_gnu=yes
18934
 
else
18935
 
  echo "$as_me: failed program was:" >&5
18936
 
sed 's/^/| /' conftest.$ac_ext >&5
18937
 
 
18938
 
ac_compiler_gnu=no
18939
 
fi
18940
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
18942
 
 
18943
 
fi
18944
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18945
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18946
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
18947
 
ac_test_CFLAGS=${CFLAGS+set}
18948
 
ac_save_CFLAGS=$CFLAGS
18949
 
CFLAGS="-g"
18950
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18951
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18952
 
if test "${ac_cv_prog_cc_g+set}" = set; then
18953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18954
 
else
18955
 
  cat >conftest.$ac_ext <<_ACEOF
18956
 
/* confdefs.h.  */
18957
 
_ACEOF
18958
 
cat confdefs.h >>conftest.$ac_ext
18959
 
cat >>conftest.$ac_ext <<_ACEOF
18960
 
/* end confdefs.h.  */
18961
 
 
18962
 
int
18963
 
main ()
18964
 
{
18965
 
 
18966
 
  ;
18967
 
  return 0;
18968
 
}
18969
 
_ACEOF
18970
 
rm -f conftest.$ac_objext
18971
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18972
 
  (eval $ac_compile) 2>conftest.er1
18973
 
  ac_status=$?
18974
 
  grep -v '^ *+' conftest.er1 >conftest.err
18975
 
  rm -f conftest.er1
18976
 
  cat conftest.err >&5
18977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978
 
  (exit $ac_status); } &&
18979
 
         { ac_try='test -z "$ac_c_werror_flag"
18980
 
                         || test ! -s conftest.err'
18981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982
 
  (eval $ac_try) 2>&5
18983
 
  ac_status=$?
18984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985
 
  (exit $ac_status); }; } &&
18986
 
         { ac_try='test -s conftest.$ac_objext'
18987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988
 
  (eval $ac_try) 2>&5
18989
 
  ac_status=$?
18990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991
 
  (exit $ac_status); }; }; then
18992
 
  ac_cv_prog_cc_g=yes
18993
 
else
18994
 
  echo "$as_me: failed program was:" >&5
18995
 
sed 's/^/| /' conftest.$ac_ext >&5
18996
 
 
18997
 
ac_cv_prog_cc_g=no
18998
 
fi
18999
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19000
 
fi
19001
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19002
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19003
 
if test "$ac_test_CFLAGS" = set; then
19004
 
  CFLAGS=$ac_save_CFLAGS
19005
 
elif test $ac_cv_prog_cc_g = yes; then
19006
 
  if test "$GCC" = yes; then
19007
 
    CFLAGS="-g -O2"
19008
 
  else
19009
 
    CFLAGS="-g"
19010
 
  fi
19011
 
else
19012
 
  if test "$GCC" = yes; then
19013
 
    CFLAGS="-O2"
19014
 
  else
19015
 
    CFLAGS=
19016
 
  fi
19017
 
fi
19018
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19019
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19020
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19022
 
else
19023
 
  ac_cv_prog_cc_stdc=no
19024
 
ac_save_CC=$CC
19025
 
cat >conftest.$ac_ext <<_ACEOF
19026
 
/* confdefs.h.  */
19027
 
_ACEOF
19028
 
cat confdefs.h >>conftest.$ac_ext
19029
 
cat >>conftest.$ac_ext <<_ACEOF
19030
 
/* end confdefs.h.  */
19031
 
#include <stdarg.h>
19032
 
#include <stdio.h>
19033
 
#include <sys/types.h>
19034
 
#include <sys/stat.h>
19035
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19036
 
struct buf { int x; };
19037
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19038
 
static char *e (p, i)
19039
 
     char **p;
19040
 
     int i;
19041
 
{
19042
 
  return p[i];
19043
 
}
19044
 
static char *f (char * (*g) (char **, int), char **p, ...)
19045
 
{
19046
 
  char *s;
19047
 
  va_list v;
19048
 
  va_start (v,p);
19049
 
  s = g (p, va_arg (v,int));
19050
 
  va_end (v);
19051
 
  return s;
19052
 
}
19053
 
 
19054
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19055
 
   function prototypes and stuff, but not '\xHH' hex character constants.
19056
 
   These don't provoke an error unfortunately, instead are silently treated
19057
 
   as 'x'.  The following induces an error, until -std1 is added to get
19058
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19059
 
   array size at least.  It's necessary to write '\x00'==0 to get something
19060
 
   that's true only with -std1.  */
19061
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19062
 
 
19063
 
int test (int i, double x);
19064
 
struct s1 {int (*f) (int a);};
19065
 
struct s2 {int (*f) (double a);};
19066
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19067
 
int argc;
19068
 
char **argv;
19069
 
int
19070
 
main ()
19071
 
{
19072
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19073
 
  ;
19074
 
  return 0;
19075
 
}
19076
 
_ACEOF
19077
 
# Don't try gcc -ansi; that turns off useful extensions and
19078
 
# breaks some systems' header files.
19079
 
# AIX                   -qlanglvl=ansi
19080
 
# Ultrix and OSF/1      -std1
19081
 
# HP-UX 10.20 and later -Ae
19082
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
19083
 
# SVR4                  -Xc -D__EXTENSIONS__
19084
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19085
 
do
19086
 
  CC="$ac_save_CC $ac_arg"
19087
 
  rm -f conftest.$ac_objext
19088
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089
 
  (eval $ac_compile) 2>conftest.er1
19090
 
  ac_status=$?
19091
 
  grep -v '^ *+' conftest.er1 >conftest.err
19092
 
  rm -f conftest.er1
19093
 
  cat conftest.err >&5
19094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095
 
  (exit $ac_status); } &&
19096
 
         { ac_try='test -z "$ac_c_werror_flag"
19097
 
                         || test ! -s conftest.err'
19098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099
 
  (eval $ac_try) 2>&5
19100
 
  ac_status=$?
19101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102
 
  (exit $ac_status); }; } &&
19103
 
         { ac_try='test -s conftest.$ac_objext'
19104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105
 
  (eval $ac_try) 2>&5
19106
 
  ac_status=$?
19107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108
 
  (exit $ac_status); }; }; then
19109
 
  ac_cv_prog_cc_stdc=$ac_arg
19110
 
break
19111
 
else
19112
 
  echo "$as_me: failed program was:" >&5
19113
 
sed 's/^/| /' conftest.$ac_ext >&5
19114
 
 
19115
 
fi
19116
 
rm -f conftest.err conftest.$ac_objext
19117
 
done
19118
 
rm -f conftest.$ac_ext conftest.$ac_objext
19119
 
CC=$ac_save_CC
19120
 
 
19121
 
fi
19122
 
 
19123
 
case "x$ac_cv_prog_cc_stdc" in
19124
 
  x|xno)
19125
 
    echo "$as_me:$LINENO: result: none needed" >&5
19126
 
echo "${ECHO_T}none needed" >&6 ;;
19127
 
  *)
19128
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19129
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19130
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
19131
 
esac
19132
 
 
19133
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
19134
 
# in C++ we need to declare it.  In case someone uses the same compiler
19135
 
# for both compiling C and C++ we need to have the C++ compiler decide
19136
 
# the declaration of exit, since it's the most demanding environment.
19137
 
cat >conftest.$ac_ext <<_ACEOF
19138
 
#ifndef __cplusplus
19139
 
  choke me
19140
 
#endif
19141
 
_ACEOF
19142
 
rm -f conftest.$ac_objext
19143
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144
 
  (eval $ac_compile) 2>conftest.er1
19145
 
  ac_status=$?
19146
 
  grep -v '^ *+' conftest.er1 >conftest.err
19147
 
  rm -f conftest.er1
19148
 
  cat conftest.err >&5
19149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150
 
  (exit $ac_status); } &&
19151
 
         { ac_try='test -z "$ac_c_werror_flag"
19152
 
                         || test ! -s conftest.err'
19153
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154
 
  (eval $ac_try) 2>&5
19155
 
  ac_status=$?
19156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
 
  (exit $ac_status); }; } &&
19158
 
         { ac_try='test -s conftest.$ac_objext'
19159
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160
 
  (eval $ac_try) 2>&5
19161
 
  ac_status=$?
19162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163
 
  (exit $ac_status); }; }; then
19164
 
  for ac_declaration in \
19165
 
   '' \
19166
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
19167
 
   'extern "C" void std::exit (int); using std::exit;' \
19168
 
   'extern "C" void exit (int) throw ();' \
19169
 
   'extern "C" void exit (int);' \
19170
 
   'void exit (int);'
19171
 
do
19172
 
  cat >conftest.$ac_ext <<_ACEOF
19173
 
/* confdefs.h.  */
19174
 
_ACEOF
19175
 
cat confdefs.h >>conftest.$ac_ext
19176
 
cat >>conftest.$ac_ext <<_ACEOF
19177
 
/* end confdefs.h.  */
19178
 
$ac_declaration
19179
 
#include <stdlib.h>
19180
 
int
19181
 
main ()
19182
 
{
19183
 
exit (42);
19184
 
  ;
19185
 
  return 0;
19186
 
}
19187
 
_ACEOF
19188
 
rm -f conftest.$ac_objext
19189
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19190
 
  (eval $ac_compile) 2>conftest.er1
19191
 
  ac_status=$?
19192
 
  grep -v '^ *+' conftest.er1 >conftest.err
19193
 
  rm -f conftest.er1
19194
 
  cat conftest.err >&5
19195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196
 
  (exit $ac_status); } &&
19197
 
         { ac_try='test -z "$ac_c_werror_flag"
19198
 
                         || test ! -s conftest.err'
19199
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200
 
  (eval $ac_try) 2>&5
19201
 
  ac_status=$?
19202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203
 
  (exit $ac_status); }; } &&
19204
 
         { ac_try='test -s conftest.$ac_objext'
19205
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206
 
  (eval $ac_try) 2>&5
19207
 
  ac_status=$?
19208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209
 
  (exit $ac_status); }; }; then
19210
 
  :
19211
 
else
19212
 
  echo "$as_me: failed program was:" >&5
19213
 
sed 's/^/| /' conftest.$ac_ext >&5
19214
 
 
19215
 
continue
19216
 
fi
19217
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19218
 
  cat >conftest.$ac_ext <<_ACEOF
19219
 
/* confdefs.h.  */
19220
 
_ACEOF
19221
 
cat confdefs.h >>conftest.$ac_ext
19222
 
cat >>conftest.$ac_ext <<_ACEOF
19223
 
/* end confdefs.h.  */
19224
 
$ac_declaration
19225
 
int
19226
 
main ()
19227
 
{
19228
 
exit (42);
19229
 
  ;
19230
 
  return 0;
19231
 
}
19232
 
_ACEOF
19233
 
rm -f conftest.$ac_objext
19234
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235
 
  (eval $ac_compile) 2>conftest.er1
19236
 
  ac_status=$?
19237
 
  grep -v '^ *+' conftest.er1 >conftest.err
19238
 
  rm -f conftest.er1
19239
 
  cat conftest.err >&5
19240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241
 
  (exit $ac_status); } &&
19242
 
         { ac_try='test -z "$ac_c_werror_flag"
19243
 
                         || test ! -s conftest.err'
19244
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245
 
  (eval $ac_try) 2>&5
19246
 
  ac_status=$?
19247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
 
  (exit $ac_status); }; } &&
19249
 
         { ac_try='test -s conftest.$ac_objext'
19250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251
 
  (eval $ac_try) 2>&5
19252
 
  ac_status=$?
19253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254
 
  (exit $ac_status); }; }; then
19255
 
  break
19256
 
else
19257
 
  echo "$as_me: failed program was:" >&5
19258
 
sed 's/^/| /' conftest.$ac_ext >&5
19259
 
 
19260
 
fi
19261
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19262
 
done
19263
 
rm -f conftest*
19264
 
if test -n "$ac_declaration"; then
19265
 
  echo '#ifdef __cplusplus' >>confdefs.h
19266
 
  echo $ac_declaration      >>confdefs.h
19267
 
  echo '#endif'             >>confdefs.h
19268
 
fi
19269
 
 
19270
 
else
19271
 
  echo "$as_me: failed program was:" >&5
19272
 
sed 's/^/| /' conftest.$ac_ext >&5
19273
 
 
19274
 
fi
19275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276
 
ac_ext=c
19277
 
ac_cpp='$CPP $CPPFLAGS'
19278
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15029
$as_echo "$hardcode_action_CXX" >&6; }
 
15030
 
 
15031
if test "$hardcode_action_CXX" = relink ||
 
15032
   test "$inherit_rpath_CXX" = yes; then
 
15033
  # Fast installation is not supported
 
15034
  enable_fast_install=no
 
15035
elif test "$shlibpath_overrides_runpath" = yes ||
 
15036
     test "$enable_shared" = no; then
 
15037
  # Fast installation is not necessary
 
15038
  enable_fast_install=needless
 
15039
fi
 
15040
 
 
15041
 
 
15042
 
 
15043
 
 
15044
 
 
15045
 
 
15046
 
 
15047
  fi # test -n "$compiler"
 
15048
 
 
15049
  CC=$lt_save_CC
 
15050
  CFLAGS=$lt_save_CFLAGS
 
15051
  LDCXX=$LD
 
15052
  LD=$lt_save_LD
 
15053
  GCC=$lt_save_GCC
 
15054
  with_gnu_ld=$lt_save_with_gnu_ld
 
15055
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15056
  lt_cv_path_LD=$lt_save_path_LD
 
15057
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15058
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15059
fi # test "$_lt_caught_CXX_error" != yes
 
15060
 
 
15061
ac_ext=c
 
15062
ac_cpp='$CPP $CPPFLAGS'
 
15063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15066
 
19281
15067
 
19282
15068
# Find a good install program.  We prefer a C program (faster),
19283
15069
# so one script is as good as another.  But avoid the broken or
19292
15078
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19293
15079
# OS/2's system install, which has a completely different semantic
19294
15080
# ./install, which can be erroneously created by make from ./install.sh.
19295
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19296
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
15081
# Reject install programs that cannot install multiple files.
 
15082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
15083
$as_echo_n "checking for a BSD-compatible install... " >&6; }
19297
15084
if test -z "$INSTALL"; then
19298
 
if test "${ac_cv_path_install+set}" = set; then
19299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15085
if ${ac_cv_path_install+:} false; then :
 
15086
  $as_echo_n "(cached) " >&6
19300
15087
else
19301
15088
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19302
15089
for as_dir in $PATH
19303
15090
do
19304
15091
  IFS=$as_save_IFS
19305
15092
  test -z "$as_dir" && as_dir=.
19306
 
  # Account for people who put trailing slashes in PATH elements.
19307
 
case $as_dir/ in
19308
 
  ./ | .// | /cC/* | \
 
15093
    # Account for people who put trailing slashes in PATH elements.
 
15094
case $as_dir/ in #((
 
15095
  ./ | .// | /[cC]/* | \
19309
15096
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19310
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
15097
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19311
15098
  /usr/ucb/* ) ;;
19312
15099
  *)
19313
15100
    # OSF1 and SCO ODT 3.0 have their own names for install.
19315
15102
    # by default.
19316
15103
    for ac_prog in ginstall scoinst install; do
19317
15104
      for ac_exec_ext in '' $ac_executable_extensions; do
19318
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
15105
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19319
15106
          if test $ac_prog = install &&
19320
15107
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19321
15108
            # AIX install.  It has an incompatible calling convention.
19325
15112
            # program-specific install script used by HP pwplus--don't use.
19326
15113
            :
19327
15114
          else
19328
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19329
 
            break 3
 
15115
            rm -rf conftest.one conftest.two conftest.dir
 
15116
            echo one > conftest.one
 
15117
            echo two > conftest.two
 
15118
            mkdir conftest.dir
 
15119
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
15120
              test -s conftest.one && test -s conftest.two &&
 
15121
              test -s conftest.dir/conftest.one &&
 
15122
              test -s conftest.dir/conftest.two
 
15123
            then
 
15124
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
15125
              break 3
 
15126
            fi
19330
15127
          fi
19331
15128
        fi
19332
15129
      done
19333
15130
    done
19334
15131
    ;;
19335
15132
esac
19336
 
done
19337
 
 
 
15133
 
 
15134
  done
 
15135
IFS=$as_save_IFS
 
15136
 
 
15137
rm -rf conftest.one conftest.two conftest.dir
19338
15138
 
19339
15139
fi
19340
15140
  if test "${ac_cv_path_install+set}" = set; then
19341
15141
    INSTALL=$ac_cv_path_install
19342
15142
  else
19343
 
    # As a last resort, use the slow shell script.  We don't cache a
19344
 
    # path for INSTALL within a source directory, because that will
 
15143
    # As a last resort, use the slow shell script.  Don't cache a
 
15144
    # value for INSTALL within a source directory, because that will
19345
15145
    # break other packages using the cache if that directory is
19346
 
    # removed, or if the path is relative.
 
15146
    # removed, or if the value is a relative name.
19347
15147
    INSTALL=$ac_install_sh
19348
15148
  fi
19349
15149
fi
19350
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
19351
 
echo "${ECHO_T}$INSTALL" >&6
 
15150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
15151
$as_echo "$INSTALL" >&6; }
19352
15152
 
19353
15153
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19354
15154
# It thinks the first close brace ends the variable substitution.
19362
15162
if test "$GCC" = yes ; then
19363
15163
                        OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
19364
15164
    CFLAGS="$OLDCFLAGS -fexceptions"
19365
 
    echo "$as_me:$LINENO: checking whether $CC accepts -fexceptions" >&5
19366
 
echo $ECHO_N "checking whether $CC accepts -fexceptions... $ECHO_C" >&6
19367
 
    cat >conftest.$ac_ext <<_ACEOF
19368
 
/* confdefs.h.  */
19369
 
_ACEOF
19370
 
cat confdefs.h >>conftest.$ac_ext
19371
 
cat >>conftest.$ac_ext <<_ACEOF
 
15165
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
 
15166
$as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
 
15167
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19372
15168
/* end confdefs.h.  */
19373
15169
 
19374
15170
int
19379
15175
  return 0;
19380
15176
}
19381
15177
_ACEOF
19382
 
rm -f conftest.$ac_objext conftest$ac_exeext
19383
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19384
 
  (eval $ac_link) 2>conftest.er1
19385
 
  ac_status=$?
19386
 
  grep -v '^ *+' conftest.er1 >conftest.err
19387
 
  rm -f conftest.er1
19388
 
  cat conftest.err >&5
19389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390
 
  (exit $ac_status); } &&
19391
 
         { ac_try='test -z "$ac_c_werror_flag"
19392
 
                         || test ! -s conftest.err'
19393
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394
 
  (eval $ac_try) 2>&5
19395
 
  ac_status=$?
19396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397
 
  (exit $ac_status); }; } &&
19398
 
         { ac_try='test -s conftest$ac_exeext'
19399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400
 
  (eval $ac_try) 2>&5
19401
 
  ac_status=$?
19402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403
 
  (exit $ac_status); }; }; then
19404
 
  echo "$as_me:$LINENO: result: yes" >&5
19405
 
echo "${ECHO_T}yes" >&6
 
15178
if ac_fn_c_try_link "$LINENO"; then :
 
15179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15180
$as_echo "yes" >&6; }
19406
15181
else
19407
 
  echo "$as_me: failed program was:" >&5
19408
 
sed 's/^/| /' conftest.$ac_ext >&5
19409
 
 
19410
 
echo "$as_me:$LINENO: result: no" >&5
19411
 
echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
 
15182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15183
$as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
19412
15184
fi
19413
 
rm -f conftest.err conftest.$ac_objext \
19414
 
      conftest$ac_exeext conftest.$ac_ext
 
15185
rm -f core conftest.err conftest.$ac_objext \
 
15186
    conftest$ac_exeext conftest.$ac_ext
19415
15187
    CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
19416
15188
fi
19417
15189
 
19418
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19419
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19420
 
if test "${ac_cv_header_stdc+set}" = set; then
19421
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
15191
$as_echo_n "checking for ANSI C header files... " >&6; }
 
15192
if ${ac_cv_header_stdc+:} false; then :
 
15193
  $as_echo_n "(cached) " >&6
19422
15194
else
19423
 
  cat >conftest.$ac_ext <<_ACEOF
19424
 
/* confdefs.h.  */
19425
 
_ACEOF
19426
 
cat confdefs.h >>conftest.$ac_ext
19427
 
cat >>conftest.$ac_ext <<_ACEOF
 
15195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428
15196
/* end confdefs.h.  */
19429
15197
#include <stdlib.h>
19430
15198
#include <stdarg.h>
19439
15207
  return 0;
19440
15208
}
19441
15209
_ACEOF
19442
 
rm -f conftest.$ac_objext
19443
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444
 
  (eval $ac_compile) 2>conftest.er1
19445
 
  ac_status=$?
19446
 
  grep -v '^ *+' conftest.er1 >conftest.err
19447
 
  rm -f conftest.er1
19448
 
  cat conftest.err >&5
19449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450
 
  (exit $ac_status); } &&
19451
 
         { ac_try='test -z "$ac_c_werror_flag"
19452
 
                         || test ! -s conftest.err'
19453
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454
 
  (eval $ac_try) 2>&5
19455
 
  ac_status=$?
19456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457
 
  (exit $ac_status); }; } &&
19458
 
         { ac_try='test -s conftest.$ac_objext'
19459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460
 
  (eval $ac_try) 2>&5
19461
 
  ac_status=$?
19462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463
 
  (exit $ac_status); }; }; then
 
15210
if ac_fn_c_try_compile "$LINENO"; then :
19464
15211
  ac_cv_header_stdc=yes
19465
15212
else
19466
 
  echo "$as_me: failed program was:" >&5
19467
 
sed 's/^/| /' conftest.$ac_ext >&5
19468
 
 
19469
 
ac_cv_header_stdc=no
 
15213
  ac_cv_header_stdc=no
19470
15214
fi
19471
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472
15216
 
19473
15217
if test $ac_cv_header_stdc = yes; then
19474
15218
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19475
 
  cat >conftest.$ac_ext <<_ACEOF
19476
 
/* confdefs.h.  */
19477
 
_ACEOF
19478
 
cat confdefs.h >>conftest.$ac_ext
19479
 
cat >>conftest.$ac_ext <<_ACEOF
 
15219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480
15220
/* end confdefs.h.  */
19481
15221
#include <string.h>
19482
15222
 
19483
15223
_ACEOF
19484
15224
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19485
 
  $EGREP "memchr" >/dev/null 2>&1; then
19486
 
  :
 
15225
  $EGREP "memchr" >/dev/null 2>&1; then :
 
15226
 
19487
15227
else
19488
15228
  ac_cv_header_stdc=no
19489
15229
fi
19493
15233
 
19494
15234
if test $ac_cv_header_stdc = yes; then
19495
15235
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19496
 
  cat >conftest.$ac_ext <<_ACEOF
19497
 
/* confdefs.h.  */
19498
 
_ACEOF
19499
 
cat confdefs.h >>conftest.$ac_ext
19500
 
cat >>conftest.$ac_ext <<_ACEOF
 
15236
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501
15237
/* end confdefs.h.  */
19502
15238
#include <stdlib.h>
19503
15239
 
19504
15240
_ACEOF
19505
15241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19506
 
  $EGREP "free" >/dev/null 2>&1; then
19507
 
  :
 
15242
  $EGREP "free" >/dev/null 2>&1; then :
 
15243
 
19508
15244
else
19509
15245
  ac_cv_header_stdc=no
19510
15246
fi
19514
15250
 
19515
15251
if test $ac_cv_header_stdc = yes; then
19516
15252
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19517
 
  if test "$cross_compiling" = yes; then
 
15253
  if test "$cross_compiling" = yes; then :
19518
15254
  :
19519
15255
else
19520
 
  cat >conftest.$ac_ext <<_ACEOF
19521
 
/* confdefs.h.  */
19522
 
_ACEOF
19523
 
cat confdefs.h >>conftest.$ac_ext
19524
 
cat >>conftest.$ac_ext <<_ACEOF
 
15256
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19525
15257
/* end confdefs.h.  */
19526
15258
#include <ctype.h>
 
15259
#include <stdlib.h>
19527
15260
#if ((' ' & 0x0FF) == 0x020)
19528
15261
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19529
15262
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19543
15276
  for (i = 0; i < 256; i++)
19544
15277
    if (XOR (islower (i), ISLOWER (i))
19545
15278
        || toupper (i) != TOUPPER (i))
19546
 
      exit(2);
19547
 
  exit (0);
 
15279
      return 2;
 
15280
  return 0;
19548
15281
}
19549
15282
_ACEOF
19550
 
rm -f conftest$ac_exeext
19551
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552
 
  (eval $ac_link) 2>&5
19553
 
  ac_status=$?
19554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557
 
  (eval $ac_try) 2>&5
19558
 
  ac_status=$?
19559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560
 
  (exit $ac_status); }; }; then
19561
 
  :
 
15283
if ac_fn_c_try_run "$LINENO"; then :
 
15284
 
19562
15285
else
19563
 
  echo "$as_me: program exited with status $ac_status" >&5
19564
 
echo "$as_me: failed program was:" >&5
19565
 
sed 's/^/| /' conftest.$ac_ext >&5
 
15286
  ac_cv_header_stdc=no
 
15287
fi
 
15288
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15289
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15290
fi
19566
15291
 
19567
 
( exit $ac_status )
19568
 
ac_cv_header_stdc=no
19569
 
fi
19570
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19571
 
fi
19572
 
fi
19573
 
fi
19574
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19575
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
15292
fi
 
15293
fi
 
15294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
15295
$as_echo "$ac_cv_header_stdc" >&6; }
19576
15296
if test $ac_cv_header_stdc = yes; then
19577
15297
 
19578
 
cat >>confdefs.h <<\_ACEOF
19579
 
#define STDC_HEADERS 1
19580
 
_ACEOF
 
15298
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19581
15299
 
19582
15300
fi
19583
15301
 
19584
15302
 
19585
15303
 
19586
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19587
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19588
 
if test "${ac_cv_c_bigendian+set}" = set; then
19589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
15305
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
15306
if ${ac_cv_c_bigendian+:} false; then :
 
15307
  $as_echo_n "(cached) " >&6
19590
15308
else
19591
15309
  ac_cv_c_bigendian=unknown
19592
15310
# See if sys/param.h defines the BYTE_ORDER macro.
19593
 
cat >conftest.$ac_ext <<_ACEOF
19594
 
/* confdefs.h.  */
19595
 
_ACEOF
19596
 
cat confdefs.h >>conftest.$ac_ext
19597
 
cat >>conftest.$ac_ext <<_ACEOF
 
15311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598
15312
/* end confdefs.h.  */
19599
15313
#include <sys/types.h>
19600
15314
#include <sys/param.h>
19609
15323
  return 0;
19610
15324
}
19611
15325
_ACEOF
19612
 
rm -f conftest.$ac_objext
19613
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614
 
  (eval $ac_compile) 2>conftest.er1
19615
 
  ac_status=$?
19616
 
  grep -v '^ *+' conftest.er1 >conftest.err
19617
 
  rm -f conftest.er1
19618
 
  cat conftest.err >&5
19619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620
 
  (exit $ac_status); } &&
19621
 
         { ac_try='test -z "$ac_c_werror_flag"
19622
 
                         || test ! -s conftest.err'
19623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624
 
  (eval $ac_try) 2>&5
19625
 
  ac_status=$?
19626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627
 
  (exit $ac_status); }; } &&
19628
 
         { ac_try='test -s conftest.$ac_objext'
19629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630
 
  (eval $ac_try) 2>&5
19631
 
  ac_status=$?
19632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633
 
  (exit $ac_status); }; }; then
 
15326
if ac_fn_c_try_compile "$LINENO"; then :
19634
15327
  # It does; now see whether it defined to BIG_ENDIAN or not.
19635
 
cat >conftest.$ac_ext <<_ACEOF
19636
 
/* confdefs.h.  */
19637
 
_ACEOF
19638
 
cat confdefs.h >>conftest.$ac_ext
19639
 
cat >>conftest.$ac_ext <<_ACEOF
 
15328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640
15329
/* end confdefs.h.  */
19641
15330
#include <sys/types.h>
19642
15331
#include <sys/param.h>
19651
15340
  return 0;
19652
15341
}
19653
15342
_ACEOF
19654
 
rm -f conftest.$ac_objext
19655
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656
 
  (eval $ac_compile) 2>conftest.er1
19657
 
  ac_status=$?
19658
 
  grep -v '^ *+' conftest.er1 >conftest.err
19659
 
  rm -f conftest.er1
19660
 
  cat conftest.err >&5
19661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662
 
  (exit $ac_status); } &&
19663
 
         { ac_try='test -z "$ac_c_werror_flag"
19664
 
                         || test ! -s conftest.err'
19665
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666
 
  (eval $ac_try) 2>&5
19667
 
  ac_status=$?
19668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669
 
  (exit $ac_status); }; } &&
19670
 
         { ac_try='test -s conftest.$ac_objext'
19671
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672
 
  (eval $ac_try) 2>&5
19673
 
  ac_status=$?
19674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675
 
  (exit $ac_status); }; }; then
 
15343
if ac_fn_c_try_compile "$LINENO"; then :
19676
15344
  ac_cv_c_bigendian=yes
19677
15345
else
19678
 
  echo "$as_me: failed program was:" >&5
19679
 
sed 's/^/| /' conftest.$ac_ext >&5
19680
 
 
19681
 
ac_cv_c_bigendian=no
19682
 
fi
19683
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19684
 
else
19685
 
  echo "$as_me: failed program was:" >&5
19686
 
sed 's/^/| /' conftest.$ac_ext >&5
19687
 
 
19688
 
fi
19689
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15346
  ac_cv_c_bigendian=no
 
15347
fi
 
15348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15349
fi
 
15350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690
15351
if test $ac_cv_c_bigendian = unknown; then
19691
 
if test "$cross_compiling" = yes; then
 
15352
if test "$cross_compiling" = yes; then :
19692
15353
   echo $ac_n "cross-compiling... " 2>&6
19693
15354
else
19694
 
  cat >conftest.$ac_ext <<_ACEOF
19695
 
/* confdefs.h.  */
19696
 
_ACEOF
19697
 
cat confdefs.h >>conftest.$ac_ext
19698
 
cat >>conftest.$ac_ext <<_ACEOF
 
15355
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699
15356
/* end confdefs.h.  */
19700
15357
main () {
19701
15358
  /* Are we little or big endian?  From Harbison&Steele.  */
19708
15365
  exit (u.c[sizeof (long) - 1] == 1);
19709
15366
}
19710
15367
_ACEOF
19711
 
rm -f conftest$ac_exeext
19712
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713
 
  (eval $ac_link) 2>&5
19714
 
  ac_status=$?
19715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718
 
  (eval $ac_try) 2>&5
19719
 
  ac_status=$?
19720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721
 
  (exit $ac_status); }; }; then
 
15368
if ac_fn_c_try_run "$LINENO"; then :
19722
15369
  ac_cv_c_bigendian=no
19723
15370
else
19724
 
  echo "$as_me: program exited with status $ac_status" >&5
19725
 
echo "$as_me: failed program was:" >&5
19726
 
sed 's/^/| /' conftest.$ac_ext >&5
 
15371
  ac_cv_c_bigendian=yes
 
15372
fi
 
15373
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15374
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15375
fi
19727
15376
 
19728
 
( exit $ac_status )
19729
 
ac_cv_c_bigendian=yes
19730
 
fi
19731
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19732
 
fi
19733
 
fi
19734
 
fi
19735
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19736
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
15377
fi
 
15378
fi
 
15379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
15380
$as_echo "$ac_cv_c_bigendian" >&6; }
19737
15381
if test $ac_cv_c_bigendian = unknown; then
19738
 
echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
19739
 
echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
 
15382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
 
15383
$as_echo_n "checking to probe for byte ordering... " >&6; }
19740
15384
 
19741
15385
cat >conftest.c <<EOF
19742
15386
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19764
15408
        echo $ac_n 'guessing bigendian ...  ' >&6
19765
15409
     fi
19766
15410
  fi
19767
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19768
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
15411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
15412
$as_echo "$ac_cv_c_bigendian" >&6; }
19769
15413
fi
19770
15414
if test $ac_cv_c_bigendian = yes; then
19771
15415
 
19772
 
cat >>confdefs.h <<\_ACEOF
19773
 
#define WORDS_BIGENDIAN 1
19774
 
_ACEOF
 
15416
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19775
15417
 
19776
15418
  BYTEORDER=4321
19777
15419
else
19783
15425
_ACEOF
19784
15426
 
19785
15427
if test $ac_cv_c_bigendian = unknown; then
19786
 
  { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
19787
 
echo "$as_me: error: unknown endianess - sorry" >&2;}
19788
 
   { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
 
15428
  as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
19789
15429
fi
19790
15430
 
19791
15431
 
19792
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19793
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19794
 
if test "${ac_cv_c_const+set}" = set; then
19795
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
15433
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
15434
if ${ac_cv_c_const+:} false; then :
 
15435
  $as_echo_n "(cached) " >&6
19796
15436
else
19797
 
  cat >conftest.$ac_ext <<_ACEOF
19798
 
/* confdefs.h.  */
19799
 
_ACEOF
19800
 
cat confdefs.h >>conftest.$ac_ext
19801
 
cat >>conftest.$ac_ext <<_ACEOF
 
15437
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802
15438
/* end confdefs.h.  */
19803
15439
 
19804
15440
int
19808
15444
#ifndef __cplusplus
19809
15445
  /* Ultrix mips cc rejects this.  */
19810
15446
  typedef int charset[2];
19811
 
  const charset x;
 
15447
  const charset cs;
19812
15448
  /* SunOS 4.1.1 cc rejects this.  */
19813
 
  char const *const *ccp;
19814
 
  char **p;
 
15449
  char const *const *pcpcc;
 
15450
  char **ppc;
19815
15451
  /* NEC SVR4.0.2 mips cc rejects this.  */
19816
15452
  struct point {int x, y;};
19817
15453
  static struct point const zero = {0,0};
19820
15456
     an arm of an if-expression whose if-part is not a constant
19821
15457
     expression */
19822
15458
  const char *g = "string";
19823
 
  ccp = &g + (g ? g-g : 0);
 
15459
  pcpcc = &g + (g ? g-g : 0);
19824
15460
  /* HPUX 7.0 cc rejects these. */
19825
 
  ++ccp;
19826
 
  p = (char**) ccp;
19827
 
  ccp = (char const *const *) p;
 
15461
  ++pcpcc;
 
15462
  ppc = (char**) pcpcc;
 
15463
  pcpcc = (char const *const *) ppc;
19828
15464
  { /* SCO 3.2v4 cc rejects this.  */
19829
15465
    char *t;
19830
15466
    char const *s = 0 ? (char *) 0 : (char const *) 0;
19831
15467
 
19832
15468
    *t++ = 0;
 
15469
    if (s) return 0;
19833
15470
  }
19834
15471
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19835
15472
    int x[] = {25, 17};
19848
15485
  }
19849
15486
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19850
15487
    const int foo = 10;
 
15488
    if (!foo) return 0;
19851
15489
  }
 
15490
  return !cs[0] && !zero.x;
19852
15491
#endif
19853
15492
 
19854
15493
  ;
19855
15494
  return 0;
19856
15495
}
19857
15496
_ACEOF
19858
 
rm -f conftest.$ac_objext
19859
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860
 
  (eval $ac_compile) 2>conftest.er1
19861
 
  ac_status=$?
19862
 
  grep -v '^ *+' conftest.er1 >conftest.err
19863
 
  rm -f conftest.er1
19864
 
  cat conftest.err >&5
19865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866
 
  (exit $ac_status); } &&
19867
 
         { ac_try='test -z "$ac_c_werror_flag"
19868
 
                         || test ! -s conftest.err'
19869
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870
 
  (eval $ac_try) 2>&5
19871
 
  ac_status=$?
19872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873
 
  (exit $ac_status); }; } &&
19874
 
         { ac_try='test -s conftest.$ac_objext'
19875
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876
 
  (eval $ac_try) 2>&5
19877
 
  ac_status=$?
19878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879
 
  (exit $ac_status); }; }; then
 
15497
if ac_fn_c_try_compile "$LINENO"; then :
19880
15498
  ac_cv_c_const=yes
19881
15499
else
19882
 
  echo "$as_me: failed program was:" >&5
19883
 
sed 's/^/| /' conftest.$ac_ext >&5
19884
 
 
19885
 
ac_cv_c_const=no
19886
 
fi
19887
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19888
 
fi
19889
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19890
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
15500
  ac_cv_c_const=no
 
15501
fi
 
15502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15503
fi
 
15504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
15505
$as_echo "$ac_cv_c_const" >&6; }
19891
15506
if test $ac_cv_c_const = no; then
19892
15507
 
19893
 
cat >>confdefs.h <<\_ACEOF
19894
 
#define const
19895
 
_ACEOF
19896
 
 
19897
 
fi
19898
 
 
19899
 
echo "$as_me:$LINENO: checking for size_t" >&5
19900
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19901
 
if test "${ac_cv_type_size_t+set}" = set; then
19902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19903
 
else
19904
 
  cat >conftest.$ac_ext <<_ACEOF
19905
 
/* confdefs.h.  */
19906
 
_ACEOF
19907
 
cat confdefs.h >>conftest.$ac_ext
19908
 
cat >>conftest.$ac_ext <<_ACEOF
19909
 
/* end confdefs.h.  */
19910
 
$ac_includes_default
19911
 
int
19912
 
main ()
19913
 
{
19914
 
if ((size_t *) 0)
19915
 
  return 0;
19916
 
if (sizeof (size_t))
19917
 
  return 0;
19918
 
  ;
19919
 
  return 0;
19920
 
}
19921
 
_ACEOF
19922
 
rm -f conftest.$ac_objext
19923
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924
 
  (eval $ac_compile) 2>conftest.er1
19925
 
  ac_status=$?
19926
 
  grep -v '^ *+' conftest.er1 >conftest.err
19927
 
  rm -f conftest.er1
19928
 
  cat conftest.err >&5
19929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930
 
  (exit $ac_status); } &&
19931
 
         { ac_try='test -z "$ac_c_werror_flag"
19932
 
                         || test ! -s conftest.err'
19933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934
 
  (eval $ac_try) 2>&5
19935
 
  ac_status=$?
19936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937
 
  (exit $ac_status); }; } &&
19938
 
         { ac_try='test -s conftest.$ac_objext'
19939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940
 
  (eval $ac_try) 2>&5
19941
 
  ac_status=$?
19942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943
 
  (exit $ac_status); }; }; then
19944
 
  ac_cv_type_size_t=yes
19945
 
else
19946
 
  echo "$as_me: failed program was:" >&5
19947
 
sed 's/^/| /' conftest.$ac_ext >&5
19948
 
 
19949
 
ac_cv_type_size_t=no
19950
 
fi
19951
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952
 
fi
19953
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19954
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
19955
 
if test $ac_cv_type_size_t = yes; then
19956
 
  :
 
15508
$as_echo "#define const /**/" >>confdefs.h
 
15509
 
 
15510
fi
 
15511
 
 
15512
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
15513
if test "x$ac_cv_type_size_t" = xyes; then :
 
15514
 
19957
15515
else
19958
15516
 
19959
15517
cat >>confdefs.h <<_ACEOF
19960
 
#define size_t unsigned
 
15518
#define size_t unsigned int
19961
15519
_ACEOF
19962
15520
 
19963
15521
fi
19964
15522
 
19965
 
 
19966
 
 
19967
15523
for ac_func in memmove bcopy
19968
 
do
19969
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19971
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19972
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19974
 
else
19975
 
  cat >conftest.$ac_ext <<_ACEOF
19976
 
/* confdefs.h.  */
19977
 
_ACEOF
19978
 
cat confdefs.h >>conftest.$ac_ext
19979
 
cat >>conftest.$ac_ext <<_ACEOF
19980
 
/* end confdefs.h.  */
19981
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19982
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19983
 
#define $ac_func innocuous_$ac_func
19984
 
 
19985
 
/* System header to define __stub macros and hopefully few prototypes,
19986
 
    which can conflict with char $ac_func (); below.
19987
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19988
 
    <limits.h> exists even on freestanding compilers.  */
19989
 
 
19990
 
#ifdef __STDC__
19991
 
# include <limits.h>
19992
 
#else
19993
 
# include <assert.h>
19994
 
#endif
19995
 
 
19996
 
#undef $ac_func
19997
 
 
19998
 
/* Override any gcc2 internal prototype to avoid an error.  */
19999
 
#ifdef __cplusplus
20000
 
extern "C"
20001
 
{
20002
 
#endif
20003
 
/* We use char because int might match the return type of a gcc2
20004
 
   builtin and then its argument prototype would still apply.  */
20005
 
char $ac_func ();
20006
 
/* The GNU C library defines this for functions which it implements
20007
 
    to always fail with ENOSYS.  Some functions are actually named
20008
 
    something starting with __ and the normal name is an alias.  */
20009
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20010
 
choke me
20011
 
#else
20012
 
char (*f) () = $ac_func;
20013
 
#endif
20014
 
#ifdef __cplusplus
20015
 
}
20016
 
#endif
20017
 
 
20018
 
int
20019
 
main ()
20020
 
{
20021
 
return f != $ac_func;
20022
 
  ;
20023
 
  return 0;
20024
 
}
20025
 
_ACEOF
20026
 
rm -f conftest.$ac_objext conftest$ac_exeext
20027
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028
 
  (eval $ac_link) 2>conftest.er1
20029
 
  ac_status=$?
20030
 
  grep -v '^ *+' conftest.er1 >conftest.err
20031
 
  rm -f conftest.er1
20032
 
  cat conftest.err >&5
20033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034
 
  (exit $ac_status); } &&
20035
 
         { ac_try='test -z "$ac_c_werror_flag"
20036
 
                         || test ! -s conftest.err'
20037
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038
 
  (eval $ac_try) 2>&5
20039
 
  ac_status=$?
20040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041
 
  (exit $ac_status); }; } &&
20042
 
         { ac_try='test -s conftest$ac_exeext'
20043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044
 
  (eval $ac_try) 2>&5
20045
 
  ac_status=$?
20046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047
 
  (exit $ac_status); }; }; then
20048
 
  eval "$as_ac_var=yes"
20049
 
else
20050
 
  echo "$as_me: failed program was:" >&5
20051
 
sed 's/^/| /' conftest.$ac_ext >&5
20052
 
 
20053
 
eval "$as_ac_var=no"
20054
 
fi
20055
 
rm -f conftest.err conftest.$ac_objext \
20056
 
      conftest$ac_exeext conftest.$ac_ext
20057
 
fi
20058
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20059
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20060
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15524
do :
 
15525
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15526
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
15527
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20061
15528
  cat >>confdefs.h <<_ACEOF
20062
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15529
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20063
15530
_ACEOF
20064
15531
 
20065
15532
fi
20066
15533
done
20067
15534
 
20068
15535
 
20069
 
 
20070
 
 
20071
15536
for ac_header in fcntl.h unistd.h
20072
 
do
20073
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20074
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20075
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20076
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20077
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20079
 
fi
20080
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20081
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20082
 
else
20083
 
  # Is the header compilable?
20084
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20085
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20086
 
cat >conftest.$ac_ext <<_ACEOF
20087
 
/* confdefs.h.  */
20088
 
_ACEOF
20089
 
cat confdefs.h >>conftest.$ac_ext
20090
 
cat >>conftest.$ac_ext <<_ACEOF
20091
 
/* end confdefs.h.  */
20092
 
$ac_includes_default
20093
 
#include <$ac_header>
20094
 
_ACEOF
20095
 
rm -f conftest.$ac_objext
20096
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097
 
  (eval $ac_compile) 2>conftest.er1
20098
 
  ac_status=$?
20099
 
  grep -v '^ *+' conftest.er1 >conftest.err
20100
 
  rm -f conftest.er1
20101
 
  cat conftest.err >&5
20102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103
 
  (exit $ac_status); } &&
20104
 
         { ac_try='test -z "$ac_c_werror_flag"
20105
 
                         || test ! -s conftest.err'
20106
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107
 
  (eval $ac_try) 2>&5
20108
 
  ac_status=$?
20109
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110
 
  (exit $ac_status); }; } &&
20111
 
         { ac_try='test -s conftest.$ac_objext'
20112
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113
 
  (eval $ac_try) 2>&5
20114
 
  ac_status=$?
20115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116
 
  (exit $ac_status); }; }; then
20117
 
  ac_header_compiler=yes
20118
 
else
20119
 
  echo "$as_me: failed program was:" >&5
20120
 
sed 's/^/| /' conftest.$ac_ext >&5
20121
 
 
20122
 
ac_header_compiler=no
20123
 
fi
20124
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20126
 
echo "${ECHO_T}$ac_header_compiler" >&6
20127
 
 
20128
 
# Is the header present?
20129
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20130
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20131
 
cat >conftest.$ac_ext <<_ACEOF
20132
 
/* confdefs.h.  */
20133
 
_ACEOF
20134
 
cat confdefs.h >>conftest.$ac_ext
20135
 
cat >>conftest.$ac_ext <<_ACEOF
20136
 
/* end confdefs.h.  */
20137
 
#include <$ac_header>
20138
 
_ACEOF
20139
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20140
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20141
 
  ac_status=$?
20142
 
  grep -v '^ *+' conftest.er1 >conftest.err
20143
 
  rm -f conftest.er1
20144
 
  cat conftest.err >&5
20145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146
 
  (exit $ac_status); } >/dev/null; then
20147
 
  if test -s conftest.err; then
20148
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20149
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20150
 
  else
20151
 
    ac_cpp_err=
20152
 
  fi
20153
 
else
20154
 
  ac_cpp_err=yes
20155
 
fi
20156
 
if test -z "$ac_cpp_err"; then
20157
 
  ac_header_preproc=yes
20158
 
else
20159
 
  echo "$as_me: failed program was:" >&5
20160
 
sed 's/^/| /' conftest.$ac_ext >&5
20161
 
 
20162
 
  ac_header_preproc=no
20163
 
fi
20164
 
rm -f conftest.err conftest.$ac_ext
20165
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20166
 
echo "${ECHO_T}$ac_header_preproc" >&6
20167
 
 
20168
 
# So?  What about this header?
20169
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20170
 
  yes:no: )
20171
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20172
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20173
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20174
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20175
 
    ac_header_preproc=yes
20176
 
    ;;
20177
 
  no:yes:* )
20178
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20179
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20180
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20181
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20182
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20183
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20184
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20185
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20186
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20187
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20188
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20189
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20190
 
    (
20191
 
      cat <<\_ASBOX
20192
 
## -------------------------------------- ##
20193
 
## Report this to expat-bugs@libexpat.org ##
20194
 
## -------------------------------------- ##
20195
 
_ASBOX
20196
 
    ) |
20197
 
      sed "s/^/$as_me: WARNING:     /" >&2
20198
 
    ;;
20199
 
esac
20200
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20201
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20202
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20204
 
else
20205
 
  eval "$as_ac_Header=\$ac_header_preproc"
20206
 
fi
20207
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20208
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20209
 
 
20210
 
fi
20211
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15537
do :
 
15538
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15539
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15540
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20212
15541
  cat >>confdefs.h <<_ACEOF
20213
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15542
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20214
15543
_ACEOF
20215
15544
 
20216
15545
fi
20217
15546
 
20218
15547
done
20219
15548
 
20220
 
echo "$as_me:$LINENO: checking for off_t" >&5
20221
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20222
 
if test "${ac_cv_type_off_t+set}" = set; then
20223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20224
 
else
20225
 
  cat >conftest.$ac_ext <<_ACEOF
20226
 
/* confdefs.h.  */
20227
 
_ACEOF
20228
 
cat confdefs.h >>conftest.$ac_ext
20229
 
cat >>conftest.$ac_ext <<_ACEOF
20230
 
/* end confdefs.h.  */
20231
 
$ac_includes_default
20232
 
int
20233
 
main ()
20234
 
{
20235
 
if ((off_t *) 0)
20236
 
  return 0;
20237
 
if (sizeof (off_t))
20238
 
  return 0;
20239
 
  ;
20240
 
  return 0;
20241
 
}
20242
 
_ACEOF
20243
 
rm -f conftest.$ac_objext
20244
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245
 
  (eval $ac_compile) 2>conftest.er1
20246
 
  ac_status=$?
20247
 
  grep -v '^ *+' conftest.er1 >conftest.err
20248
 
  rm -f conftest.er1
20249
 
  cat conftest.err >&5
20250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251
 
  (exit $ac_status); } &&
20252
 
         { ac_try='test -z "$ac_c_werror_flag"
20253
 
                         || test ! -s conftest.err'
20254
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255
 
  (eval $ac_try) 2>&5
20256
 
  ac_status=$?
20257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258
 
  (exit $ac_status); }; } &&
20259
 
         { ac_try='test -s conftest.$ac_objext'
20260
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261
 
  (eval $ac_try) 2>&5
20262
 
  ac_status=$?
20263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264
 
  (exit $ac_status); }; }; then
20265
 
  ac_cv_type_off_t=yes
20266
 
else
20267
 
  echo "$as_me: failed program was:" >&5
20268
 
sed 's/^/| /' conftest.$ac_ext >&5
 
15549
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
15550
if test "x$ac_cv_type_off_t" = xyes; then :
20269
15551
 
20270
 
ac_cv_type_off_t=no
20271
 
fi
20272
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273
 
fi
20274
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20275
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
20276
 
if test $ac_cv_type_off_t = yes; then
20277
 
  :
20278
15552
else
20279
15553
 
20280
15554
cat >>confdefs.h <<_ACEOF
20281
 
#define off_t long
20282
 
_ACEOF
20283
 
 
20284
 
fi
20285
 
 
20286
 
 
20287
 
 
20288
 
for ac_header in stdlib.h unistd.h
20289
 
do
20290
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20293
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20296
 
fi
20297
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299
 
else
20300
 
  # Is the header compilable?
20301
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303
 
cat >conftest.$ac_ext <<_ACEOF
20304
 
/* confdefs.h.  */
20305
 
_ACEOF
20306
 
cat confdefs.h >>conftest.$ac_ext
20307
 
cat >>conftest.$ac_ext <<_ACEOF
20308
 
/* end confdefs.h.  */
20309
 
$ac_includes_default
20310
 
#include <$ac_header>
20311
 
_ACEOF
20312
 
rm -f conftest.$ac_objext
20313
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314
 
  (eval $ac_compile) 2>conftest.er1
20315
 
  ac_status=$?
20316
 
  grep -v '^ *+' conftest.er1 >conftest.err
20317
 
  rm -f conftest.er1
20318
 
  cat conftest.err >&5
20319
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320
 
  (exit $ac_status); } &&
20321
 
         { ac_try='test -z "$ac_c_werror_flag"
20322
 
                         || test ! -s conftest.err'
20323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324
 
  (eval $ac_try) 2>&5
20325
 
  ac_status=$?
20326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327
 
  (exit $ac_status); }; } &&
20328
 
         { ac_try='test -s conftest.$ac_objext'
20329
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330
 
  (eval $ac_try) 2>&5
20331
 
  ac_status=$?
20332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333
 
  (exit $ac_status); }; }; then
20334
 
  ac_header_compiler=yes
20335
 
else
20336
 
  echo "$as_me: failed program was:" >&5
20337
 
sed 's/^/| /' conftest.$ac_ext >&5
20338
 
 
20339
 
ac_header_compiler=no
20340
 
fi
20341
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343
 
echo "${ECHO_T}$ac_header_compiler" >&6
20344
 
 
20345
 
# Is the header present?
20346
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348
 
cat >conftest.$ac_ext <<_ACEOF
20349
 
/* confdefs.h.  */
20350
 
_ACEOF
20351
 
cat confdefs.h >>conftest.$ac_ext
20352
 
cat >>conftest.$ac_ext <<_ACEOF
20353
 
/* end confdefs.h.  */
20354
 
#include <$ac_header>
20355
 
_ACEOF
20356
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20357
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20358
 
  ac_status=$?
20359
 
  grep -v '^ *+' conftest.er1 >conftest.err
20360
 
  rm -f conftest.er1
20361
 
  cat conftest.err >&5
20362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363
 
  (exit $ac_status); } >/dev/null; then
20364
 
  if test -s conftest.err; then
20365
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20366
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20367
 
  else
20368
 
    ac_cpp_err=
20369
 
  fi
20370
 
else
20371
 
  ac_cpp_err=yes
20372
 
fi
20373
 
if test -z "$ac_cpp_err"; then
20374
 
  ac_header_preproc=yes
20375
 
else
20376
 
  echo "$as_me: failed program was:" >&5
20377
 
sed 's/^/| /' conftest.$ac_ext >&5
20378
 
 
20379
 
  ac_header_preproc=no
20380
 
fi
20381
 
rm -f conftest.err conftest.$ac_ext
20382
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383
 
echo "${ECHO_T}$ac_header_preproc" >&6
20384
 
 
20385
 
# So?  What about this header?
20386
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387
 
  yes:no: )
20388
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392
 
    ac_header_preproc=yes
20393
 
    ;;
20394
 
  no:yes:* )
20395
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20398
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20399
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20402
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20403
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20405
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20407
 
    (
20408
 
      cat <<\_ASBOX
20409
 
## -------------------------------------- ##
20410
 
## Report this to expat-bugs@libexpat.org ##
20411
 
## -------------------------------------- ##
20412
 
_ASBOX
20413
 
    ) |
20414
 
      sed "s/^/$as_me: WARNING:     /" >&2
20415
 
    ;;
20416
 
esac
20417
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20418
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20421
 
else
20422
 
  eval "$as_ac_Header=\$ac_header_preproc"
20423
 
fi
20424
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20426
 
 
20427
 
fi
20428
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15555
#define off_t long int
 
15556
_ACEOF
 
15557
 
 
15558
fi
 
15559
 
 
15560
 
 
15561
 
 
15562
 
 
15563
  for ac_header in $ac_header_list
 
15564
do :
 
15565
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15566
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
15567
"
 
15568
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20429
15569
  cat >>confdefs.h <<_ACEOF
20430
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15570
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431
15571
_ACEOF
20432
15572
 
20433
15573
fi
20435
15575
done
20436
15576
 
20437
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
 
20438
15584
for ac_func in getpagesize
20439
 
do
20440
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20441
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20442
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20443
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
20444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20445
 
else
20446
 
  cat >conftest.$ac_ext <<_ACEOF
20447
 
/* confdefs.h.  */
20448
 
_ACEOF
20449
 
cat confdefs.h >>conftest.$ac_ext
20450
 
cat >>conftest.$ac_ext <<_ACEOF
20451
 
/* end confdefs.h.  */
20452
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20453
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20454
 
#define $ac_func innocuous_$ac_func
20455
 
 
20456
 
/* System header to define __stub macros and hopefully few prototypes,
20457
 
    which can conflict with char $ac_func (); below.
20458
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20459
 
    <limits.h> exists even on freestanding compilers.  */
20460
 
 
20461
 
#ifdef __STDC__
20462
 
# include <limits.h>
20463
 
#else
20464
 
# include <assert.h>
20465
 
#endif
20466
 
 
20467
 
#undef $ac_func
20468
 
 
20469
 
/* Override any gcc2 internal prototype to avoid an error.  */
20470
 
#ifdef __cplusplus
20471
 
extern "C"
20472
 
{
20473
 
#endif
20474
 
/* We use char because int might match the return type of a gcc2
20475
 
   builtin and then its argument prototype would still apply.  */
20476
 
char $ac_func ();
20477
 
/* The GNU C library defines this for functions which it implements
20478
 
    to always fail with ENOSYS.  Some functions are actually named
20479
 
    something starting with __ and the normal name is an alias.  */
20480
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20481
 
choke me
20482
 
#else
20483
 
char (*f) () = $ac_func;
20484
 
#endif
20485
 
#ifdef __cplusplus
20486
 
}
20487
 
#endif
20488
 
 
20489
 
int
20490
 
main ()
20491
 
{
20492
 
return f != $ac_func;
20493
 
  ;
20494
 
  return 0;
20495
 
}
20496
 
_ACEOF
20497
 
rm -f conftest.$ac_objext conftest$ac_exeext
20498
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499
 
  (eval $ac_link) 2>conftest.er1
20500
 
  ac_status=$?
20501
 
  grep -v '^ *+' conftest.er1 >conftest.err
20502
 
  rm -f conftest.er1
20503
 
  cat conftest.err >&5
20504
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505
 
  (exit $ac_status); } &&
20506
 
         { ac_try='test -z "$ac_c_werror_flag"
20507
 
                         || test ! -s conftest.err'
20508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509
 
  (eval $ac_try) 2>&5
20510
 
  ac_status=$?
20511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512
 
  (exit $ac_status); }; } &&
20513
 
         { ac_try='test -s conftest$ac_exeext'
20514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515
 
  (eval $ac_try) 2>&5
20516
 
  ac_status=$?
20517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518
 
  (exit $ac_status); }; }; then
20519
 
  eval "$as_ac_var=yes"
20520
 
else
20521
 
  echo "$as_me: failed program was:" >&5
20522
 
sed 's/^/| /' conftest.$ac_ext >&5
20523
 
 
20524
 
eval "$as_ac_var=no"
20525
 
fi
20526
 
rm -f conftest.err conftest.$ac_objext \
20527
 
      conftest$ac_exeext conftest.$ac_ext
20528
 
fi
20529
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20530
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20531
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15585
do :
 
15586
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
15587
if test "x$ac_cv_func_getpagesize" = xyes; then :
20532
15588
  cat >>confdefs.h <<_ACEOF
20533
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15589
#define HAVE_GETPAGESIZE 1
20534
15590
_ACEOF
20535
15591
 
20536
15592
fi
20537
15593
done
20538
15594
 
20539
 
echo "$as_me:$LINENO: checking for working mmap" >&5
20540
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20541
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20542
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 
15596
$as_echo_n "checking for working mmap... " >&6; }
 
15597
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
 
15598
  $as_echo_n "(cached) " >&6
20543
15599
else
20544
 
  if test "$cross_compiling" = yes; then
 
15600
  if test "$cross_compiling" = yes; then :
20545
15601
  ac_cv_func_mmap_fixed_mapped=no
20546
15602
else
20547
 
  cat >conftest.$ac_ext <<_ACEOF
20548
 
/* confdefs.h.  */
20549
 
_ACEOF
20550
 
cat confdefs.h >>conftest.$ac_ext
20551
 
cat >>conftest.$ac_ext <<_ACEOF
 
15603
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552
15604
/* end confdefs.h.  */
20553
15605
$ac_includes_default
20554
15606
/* malloc might have been renamed as rpl_malloc. */
20579
15631
#include <fcntl.h>
20580
15632
#include <sys/mman.h>
20581
15633
 
20582
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
15634
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20583
15635
char *malloc ();
20584
15636
#endif
20585
15637
 
20586
15638
/* This mess was copied from the GNU getpagesize.h.  */
20587
 
#if !HAVE_GETPAGESIZE
20588
 
/* Assume that all systems that can run configure have sys/param.h.  */
20589
 
# if !HAVE_SYS_PARAM_H
20590
 
#  define HAVE_SYS_PARAM_H 1
20591
 
# endif
20592
 
 
 
15639
#ifndef HAVE_GETPAGESIZE
20593
15640
# ifdef _SC_PAGESIZE
20594
15641
#  define getpagesize() sysconf(_SC_PAGESIZE)
20595
15642
# else /* no _SC_PAGESIZE */
20596
 
#  if HAVE_SYS_PARAM_H
 
15643
#  ifdef HAVE_SYS_PARAM_H
20597
15644
#   include <sys/param.h>
20598
15645
#   ifdef EXEC_PAGESIZE
20599
15646
#    define getpagesize() EXEC_PAGESIZE
20624
15671
main ()
20625
15672
{
20626
15673
  char *data, *data2, *data3;
 
15674
  const char *cdata2;
20627
15675
  int i, pagesize;
20628
 
  int fd;
 
15676
  int fd, fd2;
20629
15677
 
20630
15678
  pagesize = getpagesize ();
20631
15679
 
20632
15680
  /* First, make a file with some known garbage in it. */
20633
15681
  data = (char *) malloc (pagesize);
20634
15682
  if (!data)
20635
 
    exit (1);
 
15683
    return 1;
20636
15684
  for (i = 0; i < pagesize; ++i)
20637
15685
    *(data + i) = rand ();
20638
15686
  umask (0);
20639
15687
  fd = creat ("conftest.mmap", 0600);
20640
15688
  if (fd < 0)
20641
 
    exit (1);
 
15689
    return 2;
20642
15690
  if (write (fd, data, pagesize) != pagesize)
20643
 
    exit (1);
 
15691
    return 3;
20644
15692
  close (fd);
20645
15693
 
 
15694
  /* Next, check that the tail of a page is zero-filled.  File must have
 
15695
     non-zero length, otherwise we risk SIGBUS for entire page.  */
 
15696
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 
15697
  if (fd2 < 0)
 
15698
    return 4;
 
15699
  cdata2 = "";
 
15700
  if (write (fd2, cdata2, 1) != 1)
 
15701
    return 5;
 
15702
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 
15703
  if (data2 == MAP_FAILED)
 
15704
    return 6;
 
15705
  for (i = 0; i < pagesize; ++i)
 
15706
    if (*(data2 + i))
 
15707
      return 7;
 
15708
  close (fd2);
 
15709
  if (munmap (data2, pagesize))
 
15710
    return 8;
 
15711
 
20646
15712
  /* Next, try to mmap the file at a fixed address which already has
20647
15713
     something else allocated at it.  If we can, also make sure that
20648
15714
     we see the same garbage.  */
20649
15715
  fd = open ("conftest.mmap", O_RDWR);
20650
15716
  if (fd < 0)
20651
 
    exit (1);
20652
 
  data2 = (char *) malloc (2 * pagesize);
20653
 
  if (!data2)
20654
 
    exit (1);
20655
 
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
15717
    return 9;
20656
15718
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20657
15719
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20658
 
    exit (1);
 
15720
    return 10;
20659
15721
  for (i = 0; i < pagesize; ++i)
20660
15722
    if (*(data + i) != *(data2 + i))
20661
 
      exit (1);
 
15723
      return 11;
20662
15724
 
20663
15725
  /* Finally, make sure that changes to the mapped area do not
20664
15726
     percolate back to the file as seen by read().  (This is a bug on
20667
15729
    *(data2 + i) = *(data2 + i) + 1;
20668
15730
  data3 = (char *) malloc (pagesize);
20669
15731
  if (!data3)
20670
 
    exit (1);
 
15732
    return 12;
20671
15733
  if (read (fd, data3, pagesize) != pagesize)
20672
 
    exit (1);
 
15734
    return 13;
20673
15735
  for (i = 0; i < pagesize; ++i)
20674
15736
    if (*(data + i) != *(data3 + i))
20675
 
      exit (1);
 
15737
      return 14;
20676
15738
  close (fd);
20677
 
  exit (0);
 
15739
  return 0;
20678
15740
}
20679
15741
_ACEOF
20680
 
rm -f conftest$ac_exeext
20681
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682
 
  (eval $ac_link) 2>&5
20683
 
  ac_status=$?
20684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687
 
  (eval $ac_try) 2>&5
20688
 
  ac_status=$?
20689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690
 
  (exit $ac_status); }; }; then
 
15742
if ac_fn_c_try_run "$LINENO"; then :
20691
15743
  ac_cv_func_mmap_fixed_mapped=yes
20692
15744
else
20693
 
  echo "$as_me: program exited with status $ac_status" >&5
20694
 
echo "$as_me: failed program was:" >&5
20695
 
sed 's/^/| /' conftest.$ac_ext >&5
 
15745
  ac_cv_func_mmap_fixed_mapped=no
 
15746
fi
 
15747
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15748
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15749
fi
20696
15750
 
20697
 
( exit $ac_status )
20698
 
ac_cv_func_mmap_fixed_mapped=no
20699
 
fi
20700
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20701
 
fi
20702
 
fi
20703
 
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20704
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
15751
fi
 
15752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
15753
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20705
15754
if test $ac_cv_func_mmap_fixed_mapped = yes; then
20706
15755
 
20707
 
cat >>confdefs.h <<\_ACEOF
20708
 
#define HAVE_MMAP 1
20709
 
_ACEOF
 
15756
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
20710
15757
 
20711
15758
fi
20712
 
rm -f conftest.mmap
 
15759
rm -f conftest.mmap conftest.txt
20713
15760
 
20714
15761
 
20715
15762
if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
20727
15774
# If not, we'll just define __func__ to "".
20728
15775
# AC_CPP_FUNC
20729
15776
 
20730
 
 
20731
 
echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
20732
 
echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6
20733
 
if test "${ac_cv_cpp_func+set}" = set; then
20734
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20735
 
else
20736
 
  cat >conftest.$ac_ext <<_ACEOF
20737
 
/* confdefs.h.  */
20738
 
_ACEOF
20739
 
cat confdefs.h >>conftest.$ac_ext
20740
 
cat >>conftest.$ac_ext <<_ACEOF
 
15777
   case $ac_cv_prog_cc_stdc in #(
 
15778
  no) :
 
15779
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
 
15780
  *) :
 
15781
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
15782
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
15783
if ${ac_cv_prog_cc_c99+:} false; then :
 
15784
  $as_echo_n "(cached) " >&6
 
15785
else
 
15786
  ac_cv_prog_cc_c99=no
 
15787
ac_save_CC=$CC
 
15788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15789
/* end confdefs.h.  */
 
15790
#include <stdarg.h>
 
15791
#include <stdbool.h>
 
15792
#include <stdlib.h>
 
15793
#include <wchar.h>
 
15794
#include <stdio.h>
 
15795
 
 
15796
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
15797
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
15798
#define showlist(...) puts (#__VA_ARGS__)
 
15799
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
15800
static void
 
15801
test_varargs_macros (void)
 
15802
{
 
15803
  int x = 1234;
 
15804
  int y = 5678;
 
15805
  debug ("Flag");
 
15806
  debug ("X = %d\n", x);
 
15807
  showlist (The first, second, and third items.);
 
15808
  report (x>y, "x is %d but y is %d", x, y);
 
15809
}
 
15810
 
 
15811
// Check long long types.
 
15812
#define BIG64 18446744073709551615ull
 
15813
#define BIG32 4294967295ul
 
15814
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
15815
#if !BIG_OK
 
15816
  your preprocessor is broken;
 
15817
#endif
 
15818
#if BIG_OK
 
15819
#else
 
15820
  your preprocessor is broken;
 
15821
#endif
 
15822
static long long int bignum = -9223372036854775807LL;
 
15823
static unsigned long long int ubignum = BIG64;
 
15824
 
 
15825
struct incomplete_array
 
15826
{
 
15827
  int datasize;
 
15828
  double data[];
 
15829
};
 
15830
 
 
15831
struct named_init {
 
15832
  int number;
 
15833
  const wchar_t *name;
 
15834
  double average;
 
15835
};
 
15836
 
 
15837
typedef const char *ccp;
 
15838
 
 
15839
static inline int
 
15840
test_restrict (ccp restrict text)
 
15841
{
 
15842
  // See if C++-style comments work.
 
15843
  // Iterate through items via the restricted pointer.
 
15844
  // Also check for declarations in for loops.
 
15845
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
15846
    continue;
 
15847
  return 0;
 
15848
}
 
15849
 
 
15850
// Check varargs and va_copy.
 
15851
static void
 
15852
test_varargs (const char *format, ...)
 
15853
{
 
15854
  va_list args;
 
15855
  va_start (args, format);
 
15856
  va_list args_copy;
 
15857
  va_copy (args_copy, args);
 
15858
 
 
15859
  const char *str;
 
15860
  int number;
 
15861
  float fnumber;
 
15862
 
 
15863
  while (*format)
 
15864
    {
 
15865
      switch (*format++)
 
15866
        {
 
15867
        case 's': // string
 
15868
          str = va_arg (args_copy, const char *);
 
15869
          break;
 
15870
        case 'd': // int
 
15871
          number = va_arg (args_copy, int);
 
15872
          break;
 
15873
        case 'f': // float
 
15874
          fnumber = va_arg (args_copy, double);
 
15875
          break;
 
15876
        default:
 
15877
          break;
 
15878
        }
 
15879
    }
 
15880
  va_end (args_copy);
 
15881
  va_end (args);
 
15882
}
 
15883
 
 
15884
int
 
15885
main ()
 
15886
{
 
15887
 
 
15888
  // Check bool.
 
15889
  _Bool success = false;
 
15890
 
 
15891
  // Check restrict.
 
15892
  if (test_restrict ("String literal") == 0)
 
15893
    success = true;
 
15894
  char *restrict newvar = "Another string";
 
15895
 
 
15896
  // Check varargs.
 
15897
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
15898
  test_varargs_macros ();
 
15899
 
 
15900
  // Check flexible array members.
 
15901
  struct incomplete_array *ia =
 
15902
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
15903
  ia->datasize = 10;
 
15904
  for (int i = 0; i < ia->datasize; ++i)
 
15905
    ia->data[i] = i * 1.234;
 
15906
 
 
15907
  // Check named initializers.
 
15908
  struct named_init ni = {
 
15909
    .number = 34,
 
15910
    .name = L"Test wide string",
 
15911
    .average = 543.34343,
 
15912
  };
 
15913
 
 
15914
  ni.number = 58;
 
15915
 
 
15916
  int dynamic_array[ni.number];
 
15917
  dynamic_array[ni.number - 1] = 543;
 
15918
 
 
15919
  // work around unused variable warnings
 
15920
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
15921
          || dynamic_array[ni.number - 1] != 543);
 
15922
 
 
15923
  ;
 
15924
  return 0;
 
15925
}
 
15926
_ACEOF
 
15927
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
15928
do
 
15929
  CC="$ac_save_CC $ac_arg"
 
15930
  if ac_fn_c_try_compile "$LINENO"; then :
 
15931
  ac_cv_prog_cc_c99=$ac_arg
 
15932
fi
 
15933
rm -f core conftest.err conftest.$ac_objext
 
15934
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
15935
done
 
15936
rm -f conftest.$ac_ext
 
15937
CC=$ac_save_CC
 
15938
 
 
15939
fi
 
15940
# AC_CACHE_VAL
 
15941
case "x$ac_cv_prog_cc_c99" in
 
15942
  x)
 
15943
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
15944
$as_echo "none needed" >&6; } ;;
 
15945
  xno)
 
15946
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
15947
$as_echo "unsupported" >&6; } ;;
 
15948
  *)
 
15949
    CC="$CC $ac_cv_prog_cc_c99"
 
15950
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
15951
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
15952
esac
 
15953
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
15954
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
15955
else
 
15956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
15957
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
15958
if ${ac_cv_prog_cc_c89+:} false; then :
 
15959
  $as_echo_n "(cached) " >&6
 
15960
else
 
15961
  ac_cv_prog_cc_c89=no
 
15962
ac_save_CC=$CC
 
15963
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15964
/* end confdefs.h.  */
 
15965
#include <stdarg.h>
 
15966
#include <stdio.h>
 
15967
#include <sys/types.h>
 
15968
#include <sys/stat.h>
 
15969
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
15970
struct buf { int x; };
 
15971
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
15972
static char *e (p, i)
 
15973
     char **p;
 
15974
     int i;
 
15975
{
 
15976
  return p[i];
 
15977
}
 
15978
static char *f (char * (*g) (char **, int), char **p, ...)
 
15979
{
 
15980
  char *s;
 
15981
  va_list v;
 
15982
  va_start (v,p);
 
15983
  s = g (p, va_arg (v,int));
 
15984
  va_end (v);
 
15985
  return s;
 
15986
}
 
15987
 
 
15988
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
15989
   function prototypes and stuff, but not '\xHH' hex character constants.
 
15990
   These don't provoke an error unfortunately, instead are silently treated
 
15991
   as 'x'.  The following induces an error, until -std is added to get
 
15992
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
15993
   array size at least.  It's necessary to write '\x00'==0 to get something
 
15994
   that's true only with -std.  */
 
15995
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
15996
 
 
15997
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
15998
   inside strings and character constants.  */
 
15999
#define FOO(x) 'x'
 
16000
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
16001
 
 
16002
int test (int i, double x);
 
16003
struct s1 {int (*f) (int a);};
 
16004
struct s2 {int (*f) (double a);};
 
16005
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
16006
int argc;
 
16007
char **argv;
 
16008
int
 
16009
main ()
 
16010
{
 
16011
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
16012
  ;
 
16013
  return 0;
 
16014
}
 
16015
_ACEOF
 
16016
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
16017
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
16018
do
 
16019
  CC="$ac_save_CC $ac_arg"
 
16020
  if ac_fn_c_try_compile "$LINENO"; then :
 
16021
  ac_cv_prog_cc_c89=$ac_arg
 
16022
fi
 
16023
rm -f core conftest.err conftest.$ac_objext
 
16024
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
16025
done
 
16026
rm -f conftest.$ac_ext
 
16027
CC=$ac_save_CC
 
16028
 
 
16029
fi
 
16030
# AC_CACHE_VAL
 
16031
case "x$ac_cv_prog_cc_c89" in
 
16032
  x)
 
16033
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
16034
$as_echo "none needed" >&6; } ;;
 
16035
  xno)
 
16036
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
16037
$as_echo "unsupported" >&6; } ;;
 
16038
  *)
 
16039
    CC="$CC $ac_cv_prog_cc_c89"
 
16040
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
16041
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
16042
esac
 
16043
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
16044
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
16045
else
 
16046
  ac_cv_prog_cc_stdc=no
 
16047
fi
 
16048
 
 
16049
fi
 
16050
 ;;
 
16051
esac
 
16052
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
 
16053
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
 
16054
  if ${ac_cv_prog_cc_stdc+:} false; then :
 
16055
  $as_echo_n "(cached) " >&6
 
16056
fi
 
16057
 
 
16058
  case $ac_cv_prog_cc_stdc in #(
 
16059
  no) :
 
16060
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
16061
$as_echo "unsupported" >&6; } ;; #(
 
16062
  '') :
 
16063
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
16064
$as_echo "none needed" >&6; } ;; #(
 
16065
  *) :
 
16066
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
 
16067
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
 
16068
esac
 
16069
 
 
16070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
 
16071
$as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
 
16072
if ${ac_cv_cpp_func+:} false; then :
 
16073
  $as_echo_n "(cached) " >&6
 
16074
else
 
16075
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741
16076
/* end confdefs.h.  */
20742
16077
 
20743
16078
int
20748
16083
  return 0;
20749
16084
}
20750
16085
_ACEOF
20751
 
rm -f conftest.$ac_objext
20752
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753
 
  (eval $ac_compile) 2>conftest.er1
20754
 
  ac_status=$?
20755
 
  grep -v '^ *+' conftest.er1 >conftest.err
20756
 
  rm -f conftest.er1
20757
 
  cat conftest.err >&5
20758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759
 
  (exit $ac_status); } &&
20760
 
         { ac_try='test -z "$ac_c_werror_flag"
20761
 
                         || test ! -s conftest.err'
20762
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763
 
  (eval $ac_try) 2>&5
20764
 
  ac_status=$?
20765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766
 
  (exit $ac_status); }; } &&
20767
 
         { ac_try='test -s conftest.$ac_objext'
20768
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769
 
  (eval $ac_try) 2>&5
20770
 
  ac_status=$?
20771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772
 
  (exit $ac_status); }; }; then
 
16086
if ac_fn_c_try_compile "$LINENO"; then :
20773
16087
  ac_cv_cpp_func=yes
20774
16088
else
20775
 
  echo "$as_me: failed program was:" >&5
20776
 
sed 's/^/| /' conftest.$ac_ext >&5
20777
 
 
20778
 
cat >conftest.$ac_ext <<_ACEOF
20779
 
/* confdefs.h.  */
20780
 
_ACEOF
20781
 
cat confdefs.h >>conftest.$ac_ext
20782
 
cat >>conftest.$ac_ext <<_ACEOF
 
16089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20783
16090
/* end confdefs.h.  */
20784
16091
 
20785
16092
int
20790
16097
  return 0;
20791
16098
}
20792
16099
_ACEOF
20793
 
rm -f conftest.$ac_objext
20794
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20795
 
  (eval $ac_compile) 2>conftest.er1
20796
 
  ac_status=$?
20797
 
  grep -v '^ *+' conftest.er1 >conftest.err
20798
 
  rm -f conftest.er1
20799
 
  cat conftest.err >&5
20800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801
 
  (exit $ac_status); } &&
20802
 
         { ac_try='test -z "$ac_c_werror_flag"
20803
 
                         || test ! -s conftest.err'
20804
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805
 
  (eval $ac_try) 2>&5
20806
 
  ac_status=$?
20807
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808
 
  (exit $ac_status); }; } &&
20809
 
         { ac_try='test -s conftest.$ac_objext'
20810
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811
 
  (eval $ac_try) 2>&5
20812
 
  ac_status=$?
20813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814
 
  (exit $ac_status); }; }; then
 
16100
if ac_fn_c_try_compile "$LINENO"; then :
20815
16101
  ac_cv_cpp_func=__FUNCTION__
20816
16102
else
20817
 
  echo "$as_me: failed program was:" >&5
20818
 
sed 's/^/| /' conftest.$ac_ext >&5
20819
 
 
20820
 
ac_cv_cpp_func=no
20821
 
fi
20822
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823
 
fi
20824
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825
 
fi
20826
 
echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
20827
 
echo "${ECHO_T}$ac_cv_cpp_func" >&6
 
16103
  ac_cv_cpp_func=no
 
16104
fi
 
16105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16106
fi
 
16107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16108
fi
 
16109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
 
16110
$as_echo "$ac_cv_cpp_func" >&6; }
20828
16111
if test $ac_cv_cpp_func = __FUNCTION__; then
20829
16112
 
20830
 
cat >>confdefs.h <<\_ACEOF
20831
 
#define __func__ __FUNCTION__
20832
 
_ACEOF
 
16113
$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
20833
16114
 
20834
16115
elif test $ac_cv_cpp_func = no; then
20835
16116
 
20836
 
cat >>confdefs.h <<\_ACEOF
20837
 
#define __func__ ""
20838
 
_ACEOF
 
16117
$as_echo "#define __func__ \"\"" >>confdefs.h
20839
16118
 
20840
16119
fi
20841
16120
 
20842
16121
 
20843
16122
 
20844
16123
 
20845
 
cat >>confdefs.h <<\_ACEOF
20846
 
#define XML_NS 1
20847
 
_ACEOF
20848
 
 
20849
 
 
20850
 
cat >>confdefs.h <<\_ACEOF
20851
 
#define XML_DTD 1
20852
 
_ACEOF
20853
 
 
20854
 
 
20855
 
cat >>confdefs.h <<\_ACEOF
20856
 
#define XML_CONTEXT_BYTES 1024
20857
 
_ACEOF
20858
 
 
20859
 
 
20860
 
          ac_config_files="$ac_config_files Makefile"
 
16124
$as_echo "#define XML_NS 1" >>confdefs.h
 
16125
 
 
16126
 
 
16127
$as_echo "#define XML_DTD 1" >>confdefs.h
 
16128
 
 
16129
 
 
16130
$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
 
16131
 
 
16132
 
 
16133
ac_config_files="$ac_config_files Makefile expat.pc"
20861
16134
 
20862
16135
cat >confcache <<\_ACEOF
20863
16136
# This file is a shell script that caches the results of configure
20877
16150
 
20878
16151
# The following way of writing the cache mishandles newlines in values,
20879
16152
# but we know of no workaround that is simple, portable, and efficient.
20880
 
# So, don't put newlines in cache variables' values.
 
16153
# So, we kill variables containing newlines.
20881
16154
# Ultrix sh set writes to stderr and can't be redirected directly,
20882
16155
# and sets the high bit in the cache file unless we assign to the vars.
20883
 
{
 
16156
(
 
16157
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
16158
    eval ac_val=\$$ac_var
 
16159
    case $ac_val in #(
 
16160
    *${as_nl}*)
 
16161
      case $ac_var in #(
 
16162
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
16163
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
16164
      esac
 
16165
      case $ac_var in #(
 
16166
      _ | IFS | as_nl) ;; #(
 
16167
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
16168
      *) { eval $ac_var=; unset $ac_var;} ;;
 
16169
      esac ;;
 
16170
    esac
 
16171
  done
 
16172
 
20884
16173
  (set) 2>&1 |
20885
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20886
 
    *ac_space=\ *)
20887
 
      # `set' does not quote correctly, so add quotes (double-quote
20888
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
16174
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
16175
    *${as_nl}ac_space=\ *)
 
16176
      # `set' does not quote correctly, so add quotes: double-quote
 
16177
      # substitution turns \\\\ into \\, and sed turns \\ into \.
20889
16178
      sed -n \
20890
16179
        "s/'/'\\\\''/g;
20891
16180
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20892
 
      ;;
 
16181
      ;; #(
20893
16182
    *)
20894
16183
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20895
 
      sed -n \
20896
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
16184
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20897
16185
      ;;
20898
 
    esac;
20899
 
} |
 
16186
    esac |
 
16187
    sort
 
16188
) |
20900
16189
  sed '
 
16190
     /^ac_cv_env_/b end
20901
16191
     t clear
20902
 
     : clear
 
16192
     :clear
20903
16193
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20904
16194
     t end
20905
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20906
 
     : end' >>confcache
20907
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20908
 
  if test -w $cache_file; then
20909
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20910
 
    cat confcache >$cache_file
 
16195
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16196
     :end' >>confcache
 
16197
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
16198
  if test -w "$cache_file"; then
 
16199
    if test "x$cache_file" != "x/dev/null"; then
 
16200
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
16201
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
16202
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
16203
        cat confcache >"$cache_file"
 
16204
      else
 
16205
        case $cache_file in #(
 
16206
        */* | ?:*)
 
16207
          mv -f confcache "$cache_file"$$ &&
 
16208
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
16209
        *)
 
16210
          mv -f confcache "$cache_file" ;;
 
16211
        esac
 
16212
      fi
 
16213
    fi
20911
16214
  else
20912
 
    echo "not updating unwritable cache $cache_file"
 
16215
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
16216
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20913
16217
  fi
20914
16218
fi
20915
16219
rm -f confcache
20918
16222
# Let make expand exec_prefix.
20919
16223
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20920
16224
 
20921
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20922
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20923
 
# trailing colons and then remove the whole line if VPATH becomes empty
20924
 
# (actually we leave an empty line to preserve line numbers).
20925
 
if test "x$srcdir" = x.; then
20926
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20927
 
s/:*\$(srcdir):*/:/;
20928
 
s/:*\${srcdir}:*/:/;
20929
 
s/:*@srcdir@:*/:/;
20930
 
s/^\([^=]*=[     ]*\):*/\1/;
20931
 
s/:*$//;
20932
 
s/^[^=]*=[       ]*$//;
20933
 
}'
20934
 
fi
20935
 
 
20936
16225
DEFS=-DHAVE_CONFIG_H
20937
16226
 
20938
16227
ac_libobjs=
20939
16228
ac_ltlibobjs=
 
16229
U=
20940
16230
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20941
16231
  # 1. Remove the extension, and $U if already installed.
20942
 
  ac_i=`echo "$ac_i" |
20943
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20944
 
  # 2. Add them.
20945
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20946
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
16232
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
16233
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
16234
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
16235
  #    will be set to the directory where LIBOBJS objects are built.
 
16236
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
16237
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20947
16238
done
20948
16239
LIBOBJS=$ac_libobjs
20949
16240
 
20951
16242
 
20952
16243
 
20953
16244
 
20954
 
: ${CONFIG_STATUS=./config.status}
 
16245
: "${CONFIG_STATUS=./config.status}"
 
16246
ac_write_fail=0
20955
16247
ac_clean_files_save=$ac_clean_files
20956
16248
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20957
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20958
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20959
 
cat >$CONFIG_STATUS <<_ACEOF
 
16249
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
16250
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16251
as_write_fail=0
 
16252
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20960
16253
#! $SHELL
20961
16254
# Generated by $as_me.
20962
16255
# Run this file to recreate the current configuration.
20966
16259
debug=false
20967
16260
ac_cs_recheck=false
20968
16261
ac_cs_silent=false
 
16262
 
20969
16263
SHELL=\${CONFIG_SHELL-$SHELL}
20970
 
_ACEOF
20971
 
 
20972
 
cat >>$CONFIG_STATUS <<\_ACEOF
20973
 
## --------------------- ##
20974
 
## M4sh Initialization.  ##
20975
 
## --------------------- ##
20976
 
 
20977
 
# Be Bourne compatible
20978
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16264
export SHELL
 
16265
_ASEOF
 
16266
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
16267
## -------------------- ##
 
16268
## M4sh Initialization. ##
 
16269
## -------------------- ##
 
16270
 
 
16271
# Be more Bourne compatible
 
16272
DUALCASE=1; export DUALCASE # for MKS sh
 
16273
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20979
16274
  emulate sh
20980
16275
  NULLCMD=:
20981
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
16276
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20982
16277
  # is contrary to our usage.  Disable this feature.
20983
16278
  alias -g '${1+"$@"}'='"$@"'
20984
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20985
 
  set -o posix
20986
 
fi
20987
 
DUALCASE=1; export DUALCASE # for MKS sh
20988
 
 
20989
 
# Support unset when possible.
20990
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20991
 
  as_unset=unset
20992
 
else
20993
 
  as_unset=false
20994
 
fi
20995
 
 
20996
 
 
20997
 
# Work around bugs in pre-3.0 UWIN ksh.
20998
 
$as_unset ENV MAIL MAILPATH
 
16279
  setopt NO_GLOB_SUBST
 
16280
else
 
16281
  case `(set -o) 2>/dev/null` in #(
 
16282
  *posix*) :
 
16283
    set -o posix ;; #(
 
16284
  *) :
 
16285
     ;;
 
16286
esac
 
16287
fi
 
16288
 
 
16289
 
 
16290
as_nl='
 
16291
'
 
16292
export as_nl
 
16293
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
16294
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
16295
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
16296
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
16297
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
16298
# but without wasting forks for bash or zsh.
 
16299
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
16300
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16301
  as_echo='print -r --'
 
16302
  as_echo_n='print -rn --'
 
16303
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16304
  as_echo='printf %s\n'
 
16305
  as_echo_n='printf %s'
 
16306
else
 
16307
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
16308
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
16309
    as_echo_n='/usr/ucb/echo -n'
 
16310
  else
 
16311
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
16312
    as_echo_n_body='eval
 
16313
      arg=$1;
 
16314
      case $arg in #(
 
16315
      *"$as_nl"*)
 
16316
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
16317
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
16318
      esac;
 
16319
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
16320
    '
 
16321
    export as_echo_n_body
 
16322
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
16323
  fi
 
16324
  export as_echo_body
 
16325
  as_echo='sh -c $as_echo_body as_echo'
 
16326
fi
 
16327
 
 
16328
# The user is always right.
 
16329
if test "${PATH_SEPARATOR+set}" != set; then
 
16330
  PATH_SEPARATOR=:
 
16331
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
16332
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
16333
      PATH_SEPARATOR=';'
 
16334
  }
 
16335
fi
 
16336
 
 
16337
 
 
16338
# IFS
 
16339
# We need space, tab and new line, in precisely that order.  Quoting is
 
16340
# there to prevent editors from complaining about space-tab.
 
16341
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
16342
# splitting by setting IFS to empty value.)
 
16343
IFS=" ""        $as_nl"
 
16344
 
 
16345
# Find who we are.  Look in the path if we contain no directory separator.
 
16346
as_myself=
 
16347
case $0 in #((
 
16348
  *[\\/]* ) as_myself=$0 ;;
 
16349
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16350
for as_dir in $PATH
 
16351
do
 
16352
  IFS=$as_save_IFS
 
16353
  test -z "$as_dir" && as_dir=.
 
16354
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16355
  done
 
16356
IFS=$as_save_IFS
 
16357
 
 
16358
     ;;
 
16359
esac
 
16360
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
16361
# in which case we are not to be found in the path.
 
16362
if test "x$as_myself" = x; then
 
16363
  as_myself=$0
 
16364
fi
 
16365
if test ! -f "$as_myself"; then
 
16366
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
16367
  exit 1
 
16368
fi
 
16369
 
 
16370
# Unset variables that we do not need and which cause bugs (e.g. in
 
16371
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
16372
# suppresses any "Segmentation fault" message there.  '((' could
 
16373
# trigger a bug in pdksh 5.2.14.
 
16374
for as_var in BASH_ENV ENV MAIL MAILPATH
 
16375
do eval test x\${$as_var+set} = xset \
 
16376
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
16377
done
20999
16378
PS1='$ '
21000
16379
PS2='> '
21001
16380
PS4='+ '
21002
16381
 
21003
16382
# NLS nuisances.
21004
 
for as_var in \
21005
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21006
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21007
 
  LC_TELEPHONE LC_TIME
21008
 
do
21009
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21010
 
    eval $as_var=C; export $as_var
21011
 
  else
21012
 
    $as_unset $as_var
 
16383
LC_ALL=C
 
16384
export LC_ALL
 
16385
LANGUAGE=C
 
16386
export LANGUAGE
 
16387
 
 
16388
# CDPATH.
 
16389
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16390
 
 
16391
 
 
16392
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
16393
# ----------------------------------------
 
16394
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
16395
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
16396
# script with STATUS, using 1 if that was 0.
 
16397
as_fn_error ()
 
16398
{
 
16399
  as_status=$1; test $as_status -eq 0 && as_status=1
 
16400
  if test "$4"; then
 
16401
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
16402
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21013
16403
  fi
21014
 
done
21015
 
 
21016
 
# Required to use basename.
21017
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
16404
  $as_echo "$as_me: error: $2" >&2
 
16405
  as_fn_exit $as_status
 
16406
} # as_fn_error
 
16407
 
 
16408
 
 
16409
# as_fn_set_status STATUS
 
16410
# -----------------------
 
16411
# Set $? to STATUS, without forking.
 
16412
as_fn_set_status ()
 
16413
{
 
16414
  return $1
 
16415
} # as_fn_set_status
 
16416
 
 
16417
# as_fn_exit STATUS
 
16418
# -----------------
 
16419
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
16420
as_fn_exit ()
 
16421
{
 
16422
  set +e
 
16423
  as_fn_set_status $1
 
16424
  exit $1
 
16425
} # as_fn_exit
 
16426
 
 
16427
# as_fn_unset VAR
 
16428
# ---------------
 
16429
# Portably unset VAR.
 
16430
as_fn_unset ()
 
16431
{
 
16432
  { eval $1=; unset $1;}
 
16433
}
 
16434
as_unset=as_fn_unset
 
16435
# as_fn_append VAR VALUE
 
16436
# ----------------------
 
16437
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
16438
# advantage of any shell optimizations that allow amortized linear growth over
 
16439
# repeated appends, instead of the typical quadratic growth present in naive
 
16440
# implementations.
 
16441
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
16442
  eval 'as_fn_append ()
 
16443
  {
 
16444
    eval $1+=\$2
 
16445
  }'
 
16446
else
 
16447
  as_fn_append ()
 
16448
  {
 
16449
    eval $1=\$$1\$2
 
16450
  }
 
16451
fi # as_fn_append
 
16452
 
 
16453
# as_fn_arith ARG...
 
16454
# ------------------
 
16455
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
16456
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
16457
# must be portable across $(()) and expr.
 
16458
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
16459
  eval 'as_fn_arith ()
 
16460
  {
 
16461
    as_val=$(( $* ))
 
16462
  }'
 
16463
else
 
16464
  as_fn_arith ()
 
16465
  {
 
16466
    as_val=`expr "$@" || test $? -eq 1`
 
16467
  }
 
16468
fi # as_fn_arith
 
16469
 
 
16470
 
 
16471
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
16472
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21018
16473
  as_expr=expr
21019
16474
else
21020
16475
  as_expr=false
21021
16476
fi
21022
16477
 
21023
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
16478
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21024
16479
  as_basename=basename
21025
16480
else
21026
16481
  as_basename=false
21027
16482
fi
21028
16483
 
 
16484
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
16485
  as_dirname=dirname
 
16486
else
 
16487
  as_dirname=false
 
16488
fi
21029
16489
 
21030
 
# Name of the executable.
21031
 
as_me=`$as_basename "$0" ||
 
16490
as_me=`$as_basename -- "$0" ||
21032
16491
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21033
16492
         X"$0" : 'X\(//\)$' \| \
21034
 
         X"$0" : 'X\(/\)$' \| \
21035
 
         .     : '\(.\)' 2>/dev/null ||
21036
 
echo X/"$0" |
21037
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21038
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
21039
 
          /^X\/\(\/\).*/{ s//\1/; q; }
21040
 
          s/.*/./; q'`
21041
 
 
21042
 
 
21043
 
# PATH needs CR, and LINENO needs CR and PATH.
 
16493
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
16494
$as_echo X/"$0" |
 
16495
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
16496
            s//\1/
 
16497
            q
 
16498
          }
 
16499
          /^X\/\(\/\/\)$/{
 
16500
            s//\1/
 
16501
            q
 
16502
          }
 
16503
          /^X\/\(\/\).*/{
 
16504
            s//\1/
 
16505
            q
 
16506
          }
 
16507
          s/.*/./; q'`
 
16508
 
21044
16509
# Avoid depending upon Character Ranges.
21045
16510
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21046
16511
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21048
16513
as_cr_digits='0123456789'
21049
16514
as_cr_alnum=$as_cr_Letters$as_cr_digits
21050
16515
 
21051
 
# The user is always right.
21052
 
if test "${PATH_SEPARATOR+set}" != set; then
21053
 
  echo "#! /bin/sh" >conf$$.sh
21054
 
  echo  "exit 0"   >>conf$$.sh
21055
 
  chmod +x conf$$.sh
21056
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21057
 
    PATH_SEPARATOR=';'
21058
 
  else
21059
 
    PATH_SEPARATOR=:
21060
 
  fi
21061
 
  rm -f conf$$.sh
21062
 
fi
21063
 
 
21064
 
 
21065
 
  as_lineno_1=$LINENO
21066
 
  as_lineno_2=$LINENO
21067
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21068
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21069
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21070
 
  # Find who we are.  Look in the path if we contain no path at all
21071
 
  # relative or not.
21072
 
  case $0 in
21073
 
    *[\\/]* ) as_myself=$0 ;;
21074
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21075
 
for as_dir in $PATH
21076
 
do
21077
 
  IFS=$as_save_IFS
21078
 
  test -z "$as_dir" && as_dir=.
21079
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21080
 
done
21081
 
 
21082
 
       ;;
21083
 
  esac
21084
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
21085
 
  # in which case we are not to be found in the path.
21086
 
  if test "x$as_myself" = x; then
21087
 
    as_myself=$0
21088
 
  fi
21089
 
  if test ! -f "$as_myself"; then
21090
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21091
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21092
 
   { (exit 1); exit 1; }; }
21093
 
  fi
21094
 
  case $CONFIG_SHELL in
21095
 
  '')
21096
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21097
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21098
 
do
21099
 
  IFS=$as_save_IFS
21100
 
  test -z "$as_dir" && as_dir=.
21101
 
  for as_base in sh bash ksh sh5; do
21102
 
         case $as_dir in
21103
 
         /*)
21104
 
           if ("$as_dir/$as_base" -c '
21105
 
  as_lineno_1=$LINENO
21106
 
  as_lineno_2=$LINENO
21107
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21108
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21109
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21110
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21111
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21112
 
             CONFIG_SHELL=$as_dir/$as_base
21113
 
             export CONFIG_SHELL
21114
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21115
 
           fi;;
21116
 
         esac
21117
 
       done
21118
 
done
21119
 
;;
21120
 
  esac
21121
 
 
21122
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21123
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
21124
 
  # line-number line before each line; the second 'sed' does the real
21125
 
  # work.  The second script uses 'N' to pair each line-number line
21126
 
  # with the numbered line, and appends trailing '-' during
21127
 
  # substitution so that $LINENO is not a special case at line end.
21128
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21129
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21130
 
  sed '=' <$as_myself |
21131
 
    sed '
21132
 
      N
21133
 
      s,$,-,
21134
 
      : loop
21135
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21136
 
      t loop
21137
 
      s,-$,,
21138
 
      s,^['$as_cr_digits']*\n,,
21139
 
    ' >$as_me.lineno &&
21140
 
  chmod +x $as_me.lineno ||
21141
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21142
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21143
 
   { (exit 1); exit 1; }; }
21144
 
 
21145
 
  # Don't try to exec as it changes $[0], causing all sort of problems
21146
 
  # (the dirname of $[0] is not the place where we might find the
21147
 
  # original and so on.  Autoconf is especially sensible to this).
21148
 
  . ./$as_me.lineno
21149
 
  # Exit status is that of the last command.
21150
 
  exit
21151
 
}
21152
 
 
21153
 
 
21154
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21155
 
  *c*,-n*) ECHO_N= ECHO_C='
21156
 
' ECHO_T='      ' ;;
21157
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21158
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
16516
ECHO_C= ECHO_N= ECHO_T=
 
16517
case `echo -n x` in #(((((
 
16518
-n*)
 
16519
  case `echo 'xy\c'` in
 
16520
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
16521
  xy)  ECHO_C='\c';;
 
16522
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
16523
       ECHO_T=' ';;
 
16524
  esac;;
 
16525
*)
 
16526
  ECHO_N='-n';;
21159
16527
esac
21160
16528
 
21161
 
if expr a : '\(a\)' >/dev/null 2>&1; then
21162
 
  as_expr=expr
 
16529
rm -f conf$$ conf$$.exe conf$$.file
 
16530
if test -d conf$$.dir; then
 
16531
  rm -f conf$$.dir/conf$$.file
21163
16532
else
21164
 
  as_expr=false
 
16533
  rm -f conf$$.dir
 
16534
  mkdir conf$$.dir 2>/dev/null
21165
16535
fi
21166
 
 
21167
 
rm -f conf$$ conf$$.exe conf$$.file
21168
 
echo >conf$$.file
21169
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
21170
 
  # We could just check for DJGPP; but this test a) works b) is more generic
21171
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21172
 
  if test -f conf$$.exe; then
21173
 
    # Don't use ln at all; we don't have any links
 
16536
if (echo >conf$$.file) 2>/dev/null; then
 
16537
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16538
    as_ln_s='ln -s'
 
16539
    # ... but there are two gotchas:
 
16540
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
16541
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
16542
    # In both cases, we have to default to `cp -p'.
 
16543
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
16544
      as_ln_s='cp -p'
 
16545
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
16546
    as_ln_s=ln
 
16547
  else
21174
16548
    as_ln_s='cp -p'
21175
 
  else
21176
 
    as_ln_s='ln -s'
21177
16549
  fi
21178
 
elif ln conf$$.file conf$$ 2>/dev/null; then
21179
 
  as_ln_s=ln
21180
16550
else
21181
16551
  as_ln_s='cp -p'
21182
16552
fi
21183
 
rm -f conf$$ conf$$.exe conf$$.file
21184
 
 
 
16553
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
16554
rmdir conf$$.dir 2>/dev/null
 
16555
 
 
16556
 
 
16557
# as_fn_mkdir_p
 
16558
# -------------
 
16559
# Create "$as_dir" as a directory, including parents if necessary.
 
16560
as_fn_mkdir_p ()
 
16561
{
 
16562
 
 
16563
  case $as_dir in #(
 
16564
  -*) as_dir=./$as_dir;;
 
16565
  esac
 
16566
  test -d "$as_dir" || eval $as_mkdir_p || {
 
16567
    as_dirs=
 
16568
    while :; do
 
16569
      case $as_dir in #(
 
16570
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
16571
      *) as_qdir=$as_dir;;
 
16572
      esac
 
16573
      as_dirs="'$as_qdir' $as_dirs"
 
16574
      as_dir=`$as_dirname -- "$as_dir" ||
 
16575
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16576
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16577
         X"$as_dir" : 'X\(//\)$' \| \
 
16578
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
16579
$as_echo X"$as_dir" |
 
16580
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16581
            s//\1/
 
16582
            q
 
16583
          }
 
16584
          /^X\(\/\/\)[^/].*/{
 
16585
            s//\1/
 
16586
            q
 
16587
          }
 
16588
          /^X\(\/\/\)$/{
 
16589
            s//\1/
 
16590
            q
 
16591
          }
 
16592
          /^X\(\/\).*/{
 
16593
            s//\1/
 
16594
            q
 
16595
          }
 
16596
          s/.*/./; q'`
 
16597
      test -d "$as_dir" && break
 
16598
    done
 
16599
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
16600
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
16601
 
 
16602
 
 
16603
} # as_fn_mkdir_p
21185
16604
if mkdir -p . 2>/dev/null; then
21186
 
  as_mkdir_p=:
 
16605
  as_mkdir_p='mkdir -p "$as_dir"'
21187
16606
else
21188
16607
  test -d ./-p && rmdir ./-p
21189
16608
  as_mkdir_p=false
21190
16609
fi
21191
16610
 
21192
 
as_executable_p="test -f"
 
16611
if test -x / >/dev/null 2>&1; then
 
16612
  as_test_x='test -x'
 
16613
else
 
16614
  if ls -dL / >/dev/null 2>&1; then
 
16615
    as_ls_L_option=L
 
16616
  else
 
16617
    as_ls_L_option=
 
16618
  fi
 
16619
  as_test_x='
 
16620
    eval sh -c '\''
 
16621
      if test -d "$1"; then
 
16622
        test -d "$1/.";
 
16623
      else
 
16624
        case $1 in #(
 
16625
        -*)set "./$1";;
 
16626
        esac;
 
16627
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
16628
        ???[sx]*):;;*)false;;esac;fi
 
16629
    '\'' sh
 
16630
  '
 
16631
fi
 
16632
as_executable_p=$as_test_x
21193
16633
 
21194
16634
# Sed expression to map a string onto a valid CPP name.
21195
16635
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21198
16638
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21199
16639
 
21200
16640
 
21201
 
# IFS
21202
 
# We need space, tab and new line, in precisely that order.
21203
 
as_nl='
21204
 
'
21205
 
IFS="   $as_nl"
21206
 
 
21207
 
# CDPATH.
21208
 
$as_unset CDPATH
21209
 
 
21210
16641
exec 6>&1
 
16642
## ----------------------------------- ##
 
16643
## Main body of $CONFIG_STATUS script. ##
 
16644
## ----------------------------------- ##
 
16645
_ASEOF
 
16646
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21211
16647
 
21212
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
16648
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16649
# Save the log message, to keep $0 and so on meaningful, and to
21213
16650
# report actual input values of CONFIG_FILES etc. instead of their
21214
 
# values after options handling.  Logging --version etc. is OK.
21215
 
exec 5>>config.log
21216
 
{
21217
 
  echo
21218
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21219
 
## Running $as_me. ##
21220
 
_ASBOX
21221
 
} >&5
21222
 
cat >&5 <<_CSEOF
21223
 
 
21224
 
This file was extended by expat $as_me 2.0.1, which was
21225
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
16651
# values after options handling.
 
16652
ac_log="
 
16653
This file was extended by expat $as_me 2.1.0, which was
 
16654
generated by GNU Autoconf 2.68.  Invocation command line was
21226
16655
 
21227
16656
  CONFIG_FILES    = $CONFIG_FILES
21228
16657
  CONFIG_HEADERS  = $CONFIG_HEADERS
21230
16659
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21231
16660
  $ $0 $@
21232
16661
 
21233
 
_CSEOF
21234
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21235
 
echo >&5
 
16662
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
16663
"
 
16664
 
21236
16665
_ACEOF
21237
16666
 
 
16667
case $ac_config_files in *"
 
16668
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
16669
esac
 
16670
 
 
16671
case $ac_config_headers in *"
 
16672
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
16673
esac
 
16674
 
 
16675
 
 
16676
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21238
16677
# Files that config.status was made for.
21239
 
if test -n "$ac_config_files"; then
21240
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21241
 
fi
21242
 
 
21243
 
if test -n "$ac_config_headers"; then
21244
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21245
 
fi
21246
 
 
21247
 
if test -n "$ac_config_links"; then
21248
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21249
 
fi
21250
 
 
21251
 
if test -n "$ac_config_commands"; then
21252
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21253
 
fi
21254
 
 
21255
 
cat >>$CONFIG_STATUS <<\_ACEOF
21256
 
 
 
16678
config_files="$ac_config_files"
 
16679
config_headers="$ac_config_headers"
 
16680
config_commands="$ac_config_commands"
 
16681
 
 
16682
_ACEOF
 
16683
 
 
16684
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21257
16685
ac_cs_usage="\
21258
 
\`$as_me' instantiates files from templates according to the
21259
 
current configuration.
 
16686
\`$as_me' instantiates files and other configuration actions
 
16687
from templates according to the current configuration.  Unless the files
 
16688
and actions are specified as TAGs, all are instantiated by default.
21260
16689
 
21261
 
Usage: $0 [OPTIONS] [FILE]...
 
16690
Usage: $0 [OPTION]... [TAG]...
21262
16691
 
21263
16692
  -h, --help       print this help, then exit
21264
 
  -V, --version    print version number, then exit
21265
 
  -q, --quiet      do not print progress messages
 
16693
  -V, --version    print version number and configuration settings, then exit
 
16694
      --config     print configuration, then exit
 
16695
  -q, --quiet, --silent
 
16696
                   do not print progress messages
21266
16697
  -d, --debug      don't remove temporary files
21267
16698
      --recheck    update $as_me by reconfiguring in the same conditions
21268
 
  --file=FILE[:TEMPLATE]
21269
 
                   instantiate the configuration file FILE
21270
 
  --header=FILE[:TEMPLATE]
21271
 
                   instantiate the configuration header FILE
 
16699
      --file=FILE[:TEMPLATE]
 
16700
                   instantiate the configuration file FILE
 
16701
      --header=FILE[:TEMPLATE]
 
16702
                   instantiate the configuration header FILE
21272
16703
 
21273
16704
Configuration files:
21274
16705
$config_files
21276
16707
Configuration headers:
21277
16708
$config_headers
21278
16709
 
21279
 
Report bugs to <bug-autoconf@gnu.org>."
 
16710
Configuration commands:
 
16711
$config_commands
 
16712
 
 
16713
Report bugs to <expat-bugs@libexpat.org>."
 
16714
 
21280
16715
_ACEOF
21281
 
 
21282
 
cat >>$CONFIG_STATUS <<_ACEOF
 
16716
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16717
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21283
16718
ac_cs_version="\\
21284
 
expat config.status 2.0.1
21285
 
configured by $0, generated by GNU Autoconf 2.59,
21286
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
16719
expat config.status 2.1.0
 
16720
configured by $0, generated by GNU Autoconf 2.68,
 
16721
  with options \\"\$ac_cs_config\\"
21287
16722
 
21288
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
16723
Copyright (C) 2010 Free Software Foundation, Inc.
21289
16724
This config.status script is free software; the Free Software Foundation
21290
16725
gives unlimited permission to copy, distribute and modify it."
21291
 
srcdir=$srcdir
21292
 
INSTALL="$INSTALL"
 
16726
 
 
16727
ac_pwd='$ac_pwd'
 
16728
srcdir='$srcdir'
 
16729
INSTALL='$INSTALL'
 
16730
AWK='$AWK'
 
16731
test -n "\$AWK" || AWK=awk
21293
16732
_ACEOF
21294
16733
 
21295
 
cat >>$CONFIG_STATUS <<\_ACEOF
21296
 
# If no file are specified by the user, then we need to provide default
21297
 
# value.  By we need to know if files were specified by the user.
 
16734
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16735
# The default lists apply if the user does not specify any file.
21298
16736
ac_need_defaults=:
21299
16737
while test $# != 0
21300
16738
do
21301
16739
  case $1 in
21302
 
  --*=*)
21303
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21304
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21305
 
    ac_shift=:
21306
 
    ;;
21307
 
  -*)
 
16740
  --*=?*)
 
16741
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16742
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
16743
    ac_shift=:
 
16744
    ;;
 
16745
  --*=)
 
16746
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16747
    ac_optarg=
 
16748
    ac_shift=:
 
16749
    ;;
 
16750
  *)
21308
16751
    ac_option=$1
21309
16752
    ac_optarg=$2
21310
16753
    ac_shift=shift
21311
16754
    ;;
21312
 
  *) # This is not an option, so the user has probably given explicit
21313
 
     # arguments.
21314
 
     ac_option=$1
21315
 
     ac_need_defaults=false;;
21316
16755
  esac
21317
16756
 
21318
16757
  case $ac_option in
21319
16758
  # Handling of the options.
21320
 
_ACEOF
21321
 
cat >>$CONFIG_STATUS <<\_ACEOF
21322
16759
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21323
16760
    ac_cs_recheck=: ;;
21324
 
  --version | --vers* | -V )
21325
 
    echo "$ac_cs_version"; exit 0 ;;
 
16761
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
16762
    $as_echo "$ac_cs_version"; exit ;;
 
16763
  --config | --confi | --conf | --con | --co | --c )
 
16764
    $as_echo "$ac_cs_config"; exit ;;
 
16765
  --debug | --debu | --deb | --de | --d | -d )
 
16766
    debug=: ;;
 
16767
  --file | --fil | --fi | --f )
 
16768
    $ac_shift
 
16769
    case $ac_optarg in
 
16770
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16771
    '') as_fn_error $? "missing file argument" ;;
 
16772
    esac
 
16773
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
16774
    ac_need_defaults=false;;
 
16775
  --header | --heade | --head | --hea )
 
16776
    $ac_shift
 
16777
    case $ac_optarg in
 
16778
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16779
    esac
 
16780
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
16781
    ac_need_defaults=false;;
21326
16782
  --he | --h)
21327
16783
    # Conflict between --help and --header
21328
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21329
 
Try \`$0 --help' for more information." >&5
21330
 
echo "$as_me: error: ambiguous option: $1
21331
 
Try \`$0 --help' for more information." >&2;}
21332
 
   { (exit 1); exit 1; }; };;
 
16784
    as_fn_error $? "ambiguous option: \`$1'
 
16785
Try \`$0 --help' for more information.";;
21333
16786
  --help | --hel | -h )
21334
 
    echo "$ac_cs_usage"; exit 0 ;;
21335
 
  --debug | --d* | -d )
21336
 
    debug=: ;;
21337
 
  --file | --fil | --fi | --f )
21338
 
    $ac_shift
21339
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21340
 
    ac_need_defaults=false;;
21341
 
  --header | --heade | --head | --hea )
21342
 
    $ac_shift
21343
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21344
 
    ac_need_defaults=false;;
 
16787
    $as_echo "$ac_cs_usage"; exit ;;
21345
16788
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21346
16789
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21347
16790
    ac_cs_silent=: ;;
21348
16791
 
21349
16792
  # This is an error.
21350
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21351
 
Try \`$0 --help' for more information." >&5
21352
 
echo "$as_me: error: unrecognized option: $1
21353
 
Try \`$0 --help' for more information." >&2;}
21354
 
   { (exit 1); exit 1; }; } ;;
 
16793
  -*) as_fn_error $? "unrecognized option: \`$1'
 
16794
Try \`$0 --help' for more information." ;;
21355
16795
 
21356
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
16796
  *) as_fn_append ac_config_targets " $1"
 
16797
     ac_need_defaults=false ;;
21357
16798
 
21358
16799
  esac
21359
16800
  shift
21367
16808
fi
21368
16809
 
21369
16810
_ACEOF
21370
 
cat >>$CONFIG_STATUS <<_ACEOF
 
16811
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21371
16812
if \$ac_cs_recheck; then
21372
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21373
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21374
 
fi
21375
 
 
21376
 
_ACEOF
21377
 
 
21378
 
 
21379
 
 
21380
 
 
21381
 
 
21382
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
16813
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
16814
  shift
 
16815
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
16816
  CONFIG_SHELL='$SHELL'
 
16817
  export CONFIG_SHELL
 
16818
  exec "\$@"
 
16819
fi
 
16820
 
 
16821
_ACEOF
 
16822
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16823
exec 5>>config.log
 
16824
{
 
16825
  echo
 
16826
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
16827
## Running $as_me. ##
 
16828
_ASBOX
 
16829
  $as_echo "$ac_log"
 
16830
} >&5
 
16831
 
 
16832
_ACEOF
 
16833
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16834
#
 
16835
# INIT-COMMANDS
 
16836
#
 
16837
 
 
16838
 
 
16839
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16840
# if CDPATH is set.
 
16841
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16842
 
 
16843
sed_quote_subst='$sed_quote_subst'
 
16844
double_quote_subst='$double_quote_subst'
 
16845
delay_variable_subst='$delay_variable_subst'
 
16846
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
 
16847
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
16848
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
16849
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
16850
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
16851
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
16852
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
16853
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
16854
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
16855
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
16856
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
16857
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
16858
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
16859
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
16860
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
16861
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
16862
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
16863
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
16864
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
16865
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
16866
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
16867
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
16868
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
16869
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
16870
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
16871
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
16872
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
16873
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
16874
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
16875
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
16876
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
16877
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16878
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16879
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
16880
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
16881
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
16882
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
16883
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
16884
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
16885
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
16886
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
16887
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
16888
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
16889
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
16890
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
16891
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16892
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16893
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16894
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
16895
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
16896
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
16897
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
16898
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
16899
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
16900
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
16901
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
16902
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
16903
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16904
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
16905
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
16906
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
16907
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
16908
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
16909
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
16910
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
16911
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
16912
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
16913
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
16914
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
16915
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
16916
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
16917
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
16918
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
16919
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
16920
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
16921
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16922
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
16923
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
16924
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16925
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16926
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
16927
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
16928
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16929
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16930
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16931
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
16932
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16933
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
16934
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16935
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16936
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16937
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
 
16938
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
16939
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
16940
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
16941
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
16942
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16943
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
16944
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
16945
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
16946
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
16947
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
16948
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
16949
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
16950
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
16951
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
16952
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16953
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
16954
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
16955
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
16956
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
16957
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
16958
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16959
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
16960
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
16961
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
16962
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
16963
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
16964
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16965
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16966
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
16967
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
16968
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
16969
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
16970
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
16971
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
16972
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
16973
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
16974
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
16975
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
16976
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
16977
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
16978
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
16979
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
16980
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
16981
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
16982
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
16983
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
16984
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16985
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16986
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16987
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
16988
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
16989
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16990
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
16991
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
16992
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
16993
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
16994
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
16995
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
16996
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16997
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16998
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
16999
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17000
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17001
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17002
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17003
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17004
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17005
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
17006
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17007
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17008
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17009
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
17010
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
17011
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
17012
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
17013
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
17014
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
17015
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
17016
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
17017
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
17018
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
17019
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17020
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17021
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17022
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17023
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17024
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17025
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
17026
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
17027
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17028
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17029
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17030
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17031
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
17032
 
 
17033
LTCC='$LTCC'
 
17034
LTCFLAGS='$LTCFLAGS'
 
17035
compiler='$compiler_DEFAULT'
 
17036
 
 
17037
# A function that is used when there is no print builtin or printf.
 
17038
func_fallback_echo ()
 
17039
{
 
17040
  eval 'cat <<_LTECHO_EOF
 
17041
\$1
 
17042
_LTECHO_EOF'
 
17043
}
 
17044
 
 
17045
# Quote evaled strings.
 
17046
for var in AS \
 
17047
DLLTOOL \
 
17048
OBJDUMP \
 
17049
SHELL \
 
17050
ECHO \
 
17051
SED \
 
17052
GREP \
 
17053
EGREP \
 
17054
FGREP \
 
17055
LD \
 
17056
NM \
 
17057
LN_S \
 
17058
lt_SP2NL \
 
17059
lt_NL2SP \
 
17060
reload_flag \
 
17061
deplibs_check_method \
 
17062
file_magic_cmd \
 
17063
file_magic_glob \
 
17064
want_nocaseglob \
 
17065
sharedlib_from_linklib_cmd \
 
17066
AR \
 
17067
AR_FLAGS \
 
17068
archiver_list_spec \
 
17069
STRIP \
 
17070
RANLIB \
 
17071
CC \
 
17072
CFLAGS \
 
17073
compiler \
 
17074
lt_cv_sys_global_symbol_pipe \
 
17075
lt_cv_sys_global_symbol_to_cdecl \
 
17076
lt_cv_sys_global_symbol_to_c_name_address \
 
17077
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
17078
nm_file_list_spec \
 
17079
lt_prog_compiler_no_builtin_flag \
 
17080
lt_prog_compiler_pic \
 
17081
lt_prog_compiler_wl \
 
17082
lt_prog_compiler_static \
 
17083
lt_cv_prog_compiler_c_o \
 
17084
need_locks \
 
17085
MANIFEST_TOOL \
 
17086
DSYMUTIL \
 
17087
NMEDIT \
 
17088
LIPO \
 
17089
OTOOL \
 
17090
OTOOL64 \
 
17091
shrext_cmds \
 
17092
export_dynamic_flag_spec \
 
17093
whole_archive_flag_spec \
 
17094
compiler_needs_object \
 
17095
with_gnu_ld \
 
17096
allow_undefined_flag \
 
17097
no_undefined_flag \
 
17098
hardcode_libdir_flag_spec \
 
17099
hardcode_libdir_flag_spec_ld \
 
17100
hardcode_libdir_separator \
 
17101
exclude_expsyms \
 
17102
include_expsyms \
 
17103
file_list_spec \
 
17104
variables_saved_for_relink \
 
17105
libname_spec \
 
17106
library_names_spec \
 
17107
soname_spec \
 
17108
install_override_mode \
 
17109
finish_eval \
 
17110
old_striplib \
 
17111
striplib \
 
17112
compiler_lib_search_dirs \
 
17113
predep_objects \
 
17114
postdep_objects \
 
17115
predeps \
 
17116
postdeps \
 
17117
compiler_lib_search_path \
 
17118
LD_CXX \
 
17119
reload_flag_CXX \
 
17120
compiler_CXX \
 
17121
lt_prog_compiler_no_builtin_flag_CXX \
 
17122
lt_prog_compiler_pic_CXX \
 
17123
lt_prog_compiler_wl_CXX \
 
17124
lt_prog_compiler_static_CXX \
 
17125
lt_cv_prog_compiler_c_o_CXX \
 
17126
export_dynamic_flag_spec_CXX \
 
17127
whole_archive_flag_spec_CXX \
 
17128
compiler_needs_object_CXX \
 
17129
with_gnu_ld_CXX \
 
17130
allow_undefined_flag_CXX \
 
17131
no_undefined_flag_CXX \
 
17132
hardcode_libdir_flag_spec_CXX \
 
17133
hardcode_libdir_flag_spec_ld_CXX \
 
17134
hardcode_libdir_separator_CXX \
 
17135
exclude_expsyms_CXX \
 
17136
include_expsyms_CXX \
 
17137
file_list_spec_CXX \
 
17138
compiler_lib_search_dirs_CXX \
 
17139
predep_objects_CXX \
 
17140
postdep_objects_CXX \
 
17141
predeps_CXX \
 
17142
postdeps_CXX \
 
17143
compiler_lib_search_path_CXX; do
 
17144
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17145
    *[\\\\\\\`\\"\\\$]*)
 
17146
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
17147
      ;;
 
17148
    *)
 
17149
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17150
      ;;
 
17151
    esac
 
17152
done
 
17153
 
 
17154
# Double-quote double-evaled strings.
 
17155
for var in reload_cmds \
 
17156
old_postinstall_cmds \
 
17157
old_postuninstall_cmds \
 
17158
old_archive_cmds \
 
17159
extract_expsyms_cmds \
 
17160
old_archive_from_new_cmds \
 
17161
old_archive_from_expsyms_cmds \
 
17162
archive_cmds \
 
17163
archive_expsym_cmds \
 
17164
module_cmds \
 
17165
module_expsym_cmds \
 
17166
export_symbols_cmds \
 
17167
prelink_cmds \
 
17168
postlink_cmds \
 
17169
postinstall_cmds \
 
17170
postuninstall_cmds \
 
17171
finish_cmds \
 
17172
sys_lib_search_path_spec \
 
17173
sys_lib_dlsearch_path_spec \
 
17174
reload_cmds_CXX \
 
17175
old_archive_cmds_CXX \
 
17176
old_archive_from_new_cmds_CXX \
 
17177
old_archive_from_expsyms_cmds_CXX \
 
17178
archive_cmds_CXX \
 
17179
archive_expsym_cmds_CXX \
 
17180
module_cmds_CXX \
 
17181
module_expsym_cmds_CXX \
 
17182
export_symbols_cmds_CXX \
 
17183
prelink_cmds_CXX \
 
17184
postlink_cmds_CXX; do
 
17185
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17186
    *[\\\\\\\`\\"\\\$]*)
 
17187
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
17188
      ;;
 
17189
    *)
 
17190
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17191
      ;;
 
17192
    esac
 
17193
done
 
17194
 
 
17195
ac_aux_dir='$ac_aux_dir'
 
17196
xsi_shell='$xsi_shell'
 
17197
lt_shell_append='$lt_shell_append'
 
17198
 
 
17199
# See if we are running on zsh, and set the options which allow our
 
17200
# commands through without removal of \ escapes INIT.
 
17201
if test -n "\${ZSH_VERSION+set}" ; then
 
17202
   setopt NO_GLOB_SUBST
 
17203
fi
 
17204
 
 
17205
 
 
17206
    PACKAGE='$PACKAGE'
 
17207
    VERSION='$VERSION'
 
17208
    TIMESTAMP='$TIMESTAMP'
 
17209
    RM='$RM'
 
17210
    ofile='$ofile'
 
17211
 
 
17212
 
 
17213
 
 
17214
 
 
17215
 
 
17216
 
 
17217
_ACEOF
 
17218
 
 
17219
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17220
 
 
17221
# Handling of arguments.
21383
17222
for ac_config_target in $ac_config_targets
21384
17223
do
21385
 
  case "$ac_config_target" in
21386
 
  # Handling of arguments.
21387
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21388
 
  "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
21389
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21390
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21391
 
   { (exit 1); exit 1; }; };;
 
17224
  case $ac_config_target in
 
17225
    "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
 
17226
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
17227
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17228
    "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
 
17229
 
 
17230
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21392
17231
  esac
21393
17232
done
21394
17233
 
 
17234
 
21395
17235
# If the user did not use the arguments to specify the items to instantiate,
21396
17236
# then the envvar interface is used.  Set only those that are not.
21397
17237
# We use the long form for the default assignment because of an extremely
21399
17239
if $ac_need_defaults; then
21400
17240
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21401
17241
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
17242
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21402
17243
fi
21403
17244
 
21404
17245
# Have a temporary directory for convenience.  Make it in the build tree
21405
 
# simply because there is no reason to put it here, and in addition,
 
17246
# simply because there is no reason against having it here, and in addition,
21406
17247
# creating and moving files from /tmp can sometimes cause problems.
21407
 
# Create a temporary directory, and hook for its removal unless debugging.
 
17248
# Hook for its removal unless debugging.
 
17249
# Note that there is a small window in which the directory will not be cleaned:
 
17250
# after its creation but before its name has been assigned to `$tmp'.
21408
17251
$debug ||
21409
17252
{
21410
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21411
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
17253
  tmp= ac_tmp=
 
17254
  trap 'exit_status=$?
 
17255
  : "${ac_tmp:=$tmp}"
 
17256
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
17257
' 0
 
17258
  trap 'as_fn_exit 1' 1 2 13 15
21412
17259
}
21413
 
 
21414
17260
# Create a (secure) tmp directory for tmp files.
21415
17261
 
21416
17262
{
21417
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21418
 
  test -n "$tmp" && test -d "$tmp"
 
17263
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
17264
  test -d "$tmp"
21419
17265
}  ||
21420
17266
{
21421
 
  tmp=./confstat$$-$RANDOM
21422
 
  (umask 077 && mkdir $tmp)
21423
 
} ||
 
17267
  tmp=./conf$$-$RANDOM
 
17268
  (umask 077 && mkdir "$tmp")
 
17269
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
17270
ac_tmp=$tmp
 
17271
 
 
17272
# Set up the scripts for CONFIG_FILES section.
 
17273
# No need to generate them if there are no CONFIG_FILES.
 
17274
# This happens for instance with `./config.status config.h'.
 
17275
if test -n "$CONFIG_FILES"; then
 
17276
 
 
17277
 
 
17278
ac_cr=`echo X | tr X '\015'`
 
17279
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
17280
# But we know of no other shell where ac_cr would be empty at this
 
17281
# point, so we can use a bashism as a fallback.
 
17282
if test "x$ac_cr" = x; then
 
17283
  eval ac_cr=\$\'\\r\'
 
17284
fi
 
17285
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
17286
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
17287
  ac_cs_awk_cr='\\r'
 
17288
else
 
17289
  ac_cs_awk_cr=$ac_cr
 
17290
fi
 
17291
 
 
17292
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
17293
_ACEOF
 
17294
 
 
17295
 
21424
17296
{
21425
 
   echo "$me: cannot create a temporary directory in ." >&2
21426
 
   { (exit 1); exit 1; }
21427
 
}
21428
 
 
21429
 
_ACEOF
21430
 
 
21431
 
cat >>$CONFIG_STATUS <<_ACEOF
21432
 
 
21433
 
#
21434
 
# CONFIG_FILES section.
21435
 
#
21436
 
 
21437
 
# No need to generate the scripts if there are no CONFIG_FILES.
21438
 
# This happens for instance when ./config.status config.h
21439
 
if test -n "\$CONFIG_FILES"; then
21440
 
  # Protect against being on the right side of a sed subst in config.status.
21441
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21442
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21443
 
s,@SHELL@,$SHELL,;t t
21444
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21445
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21446
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21447
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21448
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21449
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21450
 
s,@exec_prefix@,$exec_prefix,;t t
21451
 
s,@prefix@,$prefix,;t t
21452
 
s,@program_transform_name@,$program_transform_name,;t t
21453
 
s,@bindir@,$bindir,;t t
21454
 
s,@sbindir@,$sbindir,;t t
21455
 
s,@libexecdir@,$libexecdir,;t t
21456
 
s,@datadir@,$datadir,;t t
21457
 
s,@sysconfdir@,$sysconfdir,;t t
21458
 
s,@sharedstatedir@,$sharedstatedir,;t t
21459
 
s,@localstatedir@,$localstatedir,;t t
21460
 
s,@libdir@,$libdir,;t t
21461
 
s,@includedir@,$includedir,;t t
21462
 
s,@oldincludedir@,$oldincludedir,;t t
21463
 
s,@infodir@,$infodir,;t t
21464
 
s,@mandir@,$mandir,;t t
21465
 
s,@build_alias@,$build_alias,;t t
21466
 
s,@host_alias@,$host_alias,;t t
21467
 
s,@target_alias@,$target_alias,;t t
21468
 
s,@DEFS@,$DEFS,;t t
21469
 
s,@ECHO_C@,$ECHO_C,;t t
21470
 
s,@ECHO_N@,$ECHO_N,;t t
21471
 
s,@ECHO_T@,$ECHO_T,;t t
21472
 
s,@LIBS@,$LIBS,;t t
21473
 
s,@build@,$build,;t t
21474
 
s,@build_cpu@,$build_cpu,;t t
21475
 
s,@build_vendor@,$build_vendor,;t t
21476
 
s,@build_os@,$build_os,;t t
21477
 
s,@host@,$host,;t t
21478
 
s,@host_cpu@,$host_cpu,;t t
21479
 
s,@host_vendor@,$host_vendor,;t t
21480
 
s,@host_os@,$host_os,;t t
21481
 
s,@CC@,$CC,;t t
21482
 
s,@CFLAGS@,$CFLAGS,;t t
21483
 
s,@LDFLAGS@,$LDFLAGS,;t t
21484
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
21485
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
21486
 
s,@EXEEXT@,$EXEEXT,;t t
21487
 
s,@OBJEXT@,$OBJEXT,;t t
21488
 
s,@EGREP@,$EGREP,;t t
21489
 
s,@LN_S@,$LN_S,;t t
21490
 
s,@ECHO@,$ECHO,;t t
21491
 
s,@AR@,$AR,;t t
21492
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
21493
 
s,@RANLIB@,$RANLIB,;t t
21494
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21495
 
s,@STRIP@,$STRIP,;t t
21496
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21497
 
s,@DLLTOOL@,$DLLTOOL,;t t
21498
 
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21499
 
s,@AS@,$AS,;t t
21500
 
s,@ac_ct_AS@,$ac_ct_AS,;t t
21501
 
s,@OBJDUMP@,$OBJDUMP,;t t
21502
 
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21503
 
s,@CPP@,$CPP,;t t
21504
 
s,@CXX@,$CXX,;t t
21505
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
21506
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21507
 
s,@CXXCPP@,$CXXCPP,;t t
21508
 
s,@F77@,$F77,;t t
21509
 
s,@FFLAGS@,$FFLAGS,;t t
21510
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
21511
 
s,@LIBTOOL@,$LIBTOOL,;t t
21512
 
s,@LIBCURRENT@,$LIBCURRENT,;t t
21513
 
s,@LIBREVISION@,$LIBREVISION,;t t
21514
 
s,@LIBAGE@,$LIBAGE,;t t
21515
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21516
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21517
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21518
 
s,@FILEMAP@,$FILEMAP,;t t
21519
 
s,@LIBOBJS@,$LIBOBJS,;t t
21520
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21521
 
CEOF
21522
 
 
21523
 
_ACEOF
21524
 
 
21525
 
  cat >>$CONFIG_STATUS <<\_ACEOF
21526
 
  # Split the substitutions into bite-sized pieces for seds with
21527
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
21528
 
  ac_max_sed_lines=48
21529
 
  ac_sed_frag=1 # Number of current file.
21530
 
  ac_beg=1 # First line for current file.
21531
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21532
 
  ac_more_lines=:
21533
 
  ac_sed_cmds=
21534
 
  while $ac_more_lines; do
21535
 
    if test $ac_beg -gt 1; then
21536
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21537
 
    else
21538
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21539
 
    fi
21540
 
    if test ! -s $tmp/subs.frag; then
21541
 
      ac_more_lines=false
21542
 
    else
21543
 
      # The purpose of the label and of the branching condition is to
21544
 
      # speed up the sed processing (if there are no `@' at all, there
21545
 
      # is no need to browse any of the substitutions).
21546
 
      # These are the two extra sed commands mentioned above.
21547
 
      (echo ':t
21548
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21549
 
      if test -z "$ac_sed_cmds"; then
21550
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21551
 
      else
21552
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21553
 
      fi
21554
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
21555
 
      ac_beg=$ac_end
21556
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21557
 
    fi
21558
 
  done
21559
 
  if test -z "$ac_sed_cmds"; then
21560
 
    ac_sed_cmds=cat
 
17297
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
17298
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
17299
  echo "_ACEOF"
 
17300
} >conf$$subs.sh ||
 
17301
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17302
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
17303
ac_delim='%!_!# '
 
17304
for ac_last_try in false false false false false :; do
 
17305
  . ./conf$$subs.sh ||
 
17306
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17307
 
 
17308
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
17309
  if test $ac_delim_n = $ac_delim_num; then
 
17310
    break
 
17311
  elif $ac_last_try; then
 
17312
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17313
  else
 
17314
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21561
17315
  fi
 
17316
done
 
17317
rm -f conf$$subs.sh
 
17318
 
 
17319
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17320
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
17321
_ACEOF
 
17322
sed -n '
 
17323
h
 
17324
s/^/S["/; s/!.*/"]=/
 
17325
p
 
17326
g
 
17327
s/^[^!]*!//
 
17328
:repl
 
17329
t repl
 
17330
s/'"$ac_delim"'$//
 
17331
t delim
 
17332
:nl
 
17333
h
 
17334
s/\(.\{148\}\)..*/\1/
 
17335
t more1
 
17336
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
17337
p
 
17338
n
 
17339
b repl
 
17340
:more1
 
17341
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17342
p
 
17343
g
 
17344
s/.\{148\}//
 
17345
t nl
 
17346
:delim
 
17347
h
 
17348
s/\(.\{148\}\)..*/\1/
 
17349
t more2
 
17350
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
17351
p
 
17352
b
 
17353
:more2
 
17354
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17355
p
 
17356
g
 
17357
s/.\{148\}//
 
17358
t delim
 
17359
' <conf$$subs.awk | sed '
 
17360
/^[^""]/{
 
17361
  N
 
17362
  s/\n//
 
17363
}
 
17364
' >>$CONFIG_STATUS || ac_write_fail=1
 
17365
rm -f conf$$subs.awk
 
17366
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17367
_ACAWK
 
17368
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
17369
  for (key in S) S_is_set[key] = 1
 
17370
  FS = ""
 
17371
 
 
17372
}
 
17373
{
 
17374
  line = $ 0
 
17375
  nfields = split(line, field, "@")
 
17376
  substed = 0
 
17377
  len = length(field[1])
 
17378
  for (i = 2; i < nfields; i++) {
 
17379
    key = field[i]
 
17380
    keylen = length(key)
 
17381
    if (S_is_set[key]) {
 
17382
      value = S[key]
 
17383
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
17384
      len += length(value) + length(field[++i])
 
17385
      substed = 1
 
17386
    } else
 
17387
      len += 1 + keylen
 
17388
  }
 
17389
 
 
17390
  print line
 
17391
}
 
17392
 
 
17393
_ACAWK
 
17394
_ACEOF
 
17395
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17396
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
17397
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
17398
else
 
17399
  cat
 
17400
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
17401
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
17402
_ACEOF
 
17403
 
 
17404
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
17405
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
17406
# trailing colons and then remove the whole line if VPATH becomes empty
 
17407
# (actually we leave an empty line to preserve line numbers).
 
17408
if test "x$srcdir" = x.; then
 
17409
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
17410
h
 
17411
s///
 
17412
s/^/:/
 
17413
s/[      ]*$/:/
 
17414
s/:\$(srcdir):/:/g
 
17415
s/:\${srcdir}:/:/g
 
17416
s/:@srcdir@:/:/g
 
17417
s/^:*//
 
17418
s/:*$//
 
17419
x
 
17420
s/\(=[   ]*\).*/\1/
 
17421
G
 
17422
s/\n//
 
17423
s/^[^=]*=[       ]*$//
 
17424
}'
 
17425
fi
 
17426
 
 
17427
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21562
17428
fi # test -n "$CONFIG_FILES"
21563
17429
 
21564
 
_ACEOF
21565
 
cat >>$CONFIG_STATUS <<\_ACEOF
21566
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21567
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21568
 
  case $ac_file in
21569
 
  - | *:- | *:-:* ) # input from stdin
21570
 
        cat >$tmp/stdin
21571
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21572
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21573
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21574
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21575
 
  * )   ac_file_in=$ac_file.in ;;
21576
 
  esac
21577
 
 
21578
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21579
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
17430
# Set up the scripts for CONFIG_HEADERS section.
 
17431
# No need to generate them if there are no CONFIG_HEADERS.
 
17432
# This happens for instance with `./config.status Makefile'.
 
17433
if test -n "$CONFIG_HEADERS"; then
 
17434
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
17435
BEGIN {
 
17436
_ACEOF
 
17437
 
 
17438
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
17439
# here-document in config.status, that substitutes the proper values into
 
17440
# config.h.in to produce config.h.
 
17441
 
 
17442
# Create a delimiter string that does not exist in confdefs.h, to ease
 
17443
# handling of long lines.
 
17444
ac_delim='%!_!# '
 
17445
for ac_last_try in false false :; do
 
17446
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
17447
  if test -z "$ac_tt"; then
 
17448
    break
 
17449
  elif $ac_last_try; then
 
17450
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
17451
  else
 
17452
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17453
  fi
 
17454
done
 
17455
 
 
17456
# For the awk script, D is an array of macro values keyed by name,
 
17457
# likewise P contains macro parameters if any.  Preserve backslash
 
17458
# newline sequences.
 
17459
 
 
17460
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
17461
sed -n '
 
17462
s/.\{148\}/&'"$ac_delim"'/g
 
17463
t rset
 
17464
:rset
 
17465
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
17466
t def
 
17467
d
 
17468
:def
 
17469
s/\\$//
 
17470
t bsnl
 
17471
s/["\\]/\\&/g
 
17472
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17473
D["\1"]=" \3"/p
 
17474
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
17475
d
 
17476
:bsnl
 
17477
s/["\\]/\\&/g
 
17478
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17479
D["\1"]=" \3\\\\\\n"\\/p
 
17480
t cont
 
17481
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
17482
t cont
 
17483
d
 
17484
:cont
 
17485
n
 
17486
s/.\{148\}/&'"$ac_delim"'/g
 
17487
t clear
 
17488
:clear
 
17489
s/\\$//
 
17490
t bsnlc
 
17491
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
17492
d
 
17493
:bsnlc
 
17494
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
17495
b cont
 
17496
' <confdefs.h | sed '
 
17497
s/'"$ac_delim"'/"\\\
 
17498
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
17499
 
 
17500
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17501
  for (key in D) D_is_set[key] = 1
 
17502
  FS = ""
 
17503
}
 
17504
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
17505
  line = \$ 0
 
17506
  split(line, arg, " ")
 
17507
  if (arg[1] == "#") {
 
17508
    defundef = arg[2]
 
17509
    mac1 = arg[3]
 
17510
  } else {
 
17511
    defundef = substr(arg[1], 2)
 
17512
    mac1 = arg[2]
 
17513
  }
 
17514
  split(mac1, mac2, "(") #)
 
17515
  macro = mac2[1]
 
17516
  prefix = substr(line, 1, index(line, defundef) - 1)
 
17517
  if (D_is_set[macro]) {
 
17518
    # Preserve the white space surrounding the "#".
 
17519
    print prefix "define", macro P[macro] D[macro]
 
17520
    next
 
17521
  } else {
 
17522
    # Replace #undef with comments.  This is necessary, for example,
 
17523
    # in the case of _POSIX_SOURCE, which is predefined and required
 
17524
    # on some systems where configure will not decide to define it.
 
17525
    if (defundef == "undef") {
 
17526
      print "/*", prefix defundef, macro, "*/"
 
17527
      next
 
17528
    }
 
17529
  }
 
17530
}
 
17531
{ print }
 
17532
_ACAWK
 
17533
_ACEOF
 
17534
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17535
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
17536
fi # test -n "$CONFIG_HEADERS"
 
17537
 
 
17538
 
 
17539
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
17540
shift
 
17541
for ac_tag
 
17542
do
 
17543
  case $ac_tag in
 
17544
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
17545
  esac
 
17546
  case $ac_mode$ac_tag in
 
17547
  :[FHL]*:*);;
 
17548
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
17549
  :[FH]-) ac_tag=-:-;;
 
17550
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
17551
  esac
 
17552
  ac_save_IFS=$IFS
 
17553
  IFS=:
 
17554
  set x $ac_tag
 
17555
  IFS=$ac_save_IFS
 
17556
  shift
 
17557
  ac_file=$1
 
17558
  shift
 
17559
 
 
17560
  case $ac_mode in
 
17561
  :L) ac_source=$1;;
 
17562
  :[FH])
 
17563
    ac_file_inputs=
 
17564
    for ac_f
 
17565
    do
 
17566
      case $ac_f in
 
17567
      -) ac_f="$ac_tmp/stdin";;
 
17568
      *) # Look for the file first in the build tree, then in the source tree
 
17569
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
17570
         # because $ac_f cannot contain `:'.
 
17571
         test -f "$ac_f" ||
 
17572
           case $ac_f in
 
17573
           [\\/$]*) false;;
 
17574
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
17575
           esac ||
 
17576
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
17577
      esac
 
17578
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
17579
      as_fn_append ac_file_inputs " '$ac_f'"
 
17580
    done
 
17581
 
 
17582
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17583
    # use $as_me), people would be surprised to read:
 
17584
    #    /* config.h.  Generated by config.status.  */
 
17585
    configure_input='Generated from '`
 
17586
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
17587
        `' by configure.'
 
17588
    if test x"$ac_file" != x-; then
 
17589
      configure_input="$ac_file.  $configure_input"
 
17590
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
17591
$as_echo "$as_me: creating $ac_file" >&6;}
 
17592
    fi
 
17593
    # Neutralize special characters interpreted by sed in replacement strings.
 
17594
    case $configure_input in #(
 
17595
    *\&* | *\|* | *\\* )
 
17596
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
17597
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
17598
    *) ac_sed_conf_input=$configure_input;;
 
17599
    esac
 
17600
 
 
17601
    case $ac_tag in
 
17602
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
17603
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
17604
    esac
 
17605
    ;;
 
17606
  esac
 
17607
 
 
17608
  ac_dir=`$as_dirname -- "$ac_file" ||
21580
17609
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21581
17610
         X"$ac_file" : 'X\(//\)[^/]' \| \
21582
17611
         X"$ac_file" : 'X\(//\)$' \| \
21583
 
         X"$ac_file" : 'X\(/\)' \| \
21584
 
         .     : '\(.\)' 2>/dev/null ||
21585
 
echo X"$ac_file" |
21586
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21587
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21588
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21589
 
          /^X\(\/\).*/{ s//\1/; q; }
21590
 
          s/.*/./; q'`
21591
 
  { if $as_mkdir_p; then
21592
 
    mkdir -p "$ac_dir"
21593
 
  else
21594
 
    as_dir="$ac_dir"
21595
 
    as_dirs=
21596
 
    while test ! -d "$as_dir"; do
21597
 
      as_dirs="$as_dir $as_dirs"
21598
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21599
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21600
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21601
 
         X"$as_dir" : 'X\(//\)$' \| \
21602
 
         X"$as_dir" : 'X\(/\)' \| \
21603
 
         .     : '\(.\)' 2>/dev/null ||
21604
 
echo X"$as_dir" |
21605
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21606
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21607
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21608
 
          /^X\(\/\).*/{ s//\1/; q; }
21609
 
          s/.*/./; q'`
21610
 
    done
21611
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21612
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21613
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21614
 
   { (exit 1); exit 1; }; }; }
21615
 
 
 
17612
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
17613
$as_echo X"$ac_file" |
 
17614
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17615
            s//\1/
 
17616
            q
 
17617
          }
 
17618
          /^X\(\/\/\)[^/].*/{
 
17619
            s//\1/
 
17620
            q
 
17621
          }
 
17622
          /^X\(\/\/\)$/{
 
17623
            s//\1/
 
17624
            q
 
17625
          }
 
17626
          /^X\(\/\).*/{
 
17627
            s//\1/
 
17628
            q
 
17629
          }
 
17630
          s/.*/./; q'`
 
17631
  as_dir="$ac_dir"; as_fn_mkdir_p
21616
17632
  ac_builddir=.
21617
17633
 
21618
 
if test "$ac_dir" != .; then
21619
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21620
 
  # A "../" for each directory in $ac_dir_suffix.
21621
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21622
 
else
21623
 
  ac_dir_suffix= ac_top_builddir=
21624
 
fi
 
17634
case "$ac_dir" in
 
17635
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17636
*)
 
17637
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
17638
  # A ".." for each directory in $ac_dir_suffix.
 
17639
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
17640
  case $ac_top_builddir_sub in
 
17641
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17642
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
17643
  esac ;;
 
17644
esac
 
17645
ac_abs_top_builddir=$ac_pwd
 
17646
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
17647
# for backward compatibility:
 
17648
ac_top_builddir=$ac_top_build_prefix
21625
17649
 
21626
17650
case $srcdir in
21627
 
  .)  # No --srcdir option.  We are building in place.
 
17651
  .)  # We are building in place.
21628
17652
    ac_srcdir=.
21629
 
    if test -z "$ac_top_builddir"; then
21630
 
       ac_top_srcdir=.
21631
 
    else
21632
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21633
 
    fi ;;
21634
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
17653
    ac_top_srcdir=$ac_top_builddir_sub
 
17654
    ac_abs_top_srcdir=$ac_pwd ;;
 
17655
  [\\/]* | ?:[\\/]* )  # Absolute name.
21635
17656
    ac_srcdir=$srcdir$ac_dir_suffix;
21636
 
    ac_top_srcdir=$srcdir ;;
21637
 
  *) # Relative path.
21638
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21639
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21640
 
esac
21641
 
 
21642
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21643
 
# the directories may not exist.
21644
 
case `pwd` in
21645
 
.) ac_abs_builddir="$ac_dir";;
21646
 
*)
21647
 
  case "$ac_dir" in
21648
 
  .) ac_abs_builddir=`pwd`;;
21649
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21650
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21651
 
  esac;;
21652
 
esac
21653
 
case $ac_abs_builddir in
21654
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21655
 
*)
21656
 
  case ${ac_top_builddir}. in
21657
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21658
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21659
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21660
 
  esac;;
21661
 
esac
21662
 
case $ac_abs_builddir in
21663
 
.) ac_abs_srcdir=$ac_srcdir;;
21664
 
*)
21665
 
  case $ac_srcdir in
21666
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21667
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21668
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21669
 
  esac;;
21670
 
esac
21671
 
case $ac_abs_builddir in
21672
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21673
 
*)
21674
 
  case $ac_top_srcdir in
21675
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21676
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21677
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21678
 
  esac;;
21679
 
esac
21680
 
 
 
17657
    ac_top_srcdir=$srcdir
 
17658
    ac_abs_top_srcdir=$srcdir ;;
 
17659
  *) # Relative name.
 
17660
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
17661
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
17662
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
17663
esac
 
17664
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
17665
 
 
17666
 
 
17667
  case $ac_mode in
 
17668
  :F)
 
17669
  #
 
17670
  # CONFIG_FILE
 
17671
  #
21681
17672
 
21682
17673
  case $INSTALL in
21683
17674
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21684
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
17675
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21685
17676
  esac
21686
 
 
21687
 
  if test x"$ac_file" != x-; then
21688
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21689
 
echo "$as_me: creating $ac_file" >&6;}
21690
 
    rm -f "$ac_file"
21691
 
  fi
21692
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21693
 
  # use $as_me), people would be surprised to read:
21694
 
  #    /* config.h.  Generated by config.status.  */
21695
 
  if test x"$ac_file" = x-; then
21696
 
    configure_input=
21697
 
  else
21698
 
    configure_input="$ac_file.  "
21699
 
  fi
21700
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21701
 
                                     sed 's,.*/,,'` by configure."
21702
 
 
21703
 
  # First look for the input files in the build tree, otherwise in the
21704
 
  # src tree.
21705
 
  ac_file_inputs=`IFS=:
21706
 
    for f in $ac_file_in; do
21707
 
      case $f in
21708
 
      -) echo $tmp/stdin ;;
21709
 
      [\\/$]*)
21710
 
         # Absolute (can't be DOS-style, as IFS=:)
21711
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21712
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21713
 
   { (exit 1); exit 1; }; }
21714
 
         echo "$f";;
21715
 
      *) # Relative
21716
 
         if test -f "$f"; then
21717
 
           # Build tree
21718
 
           echo "$f"
21719
 
         elif test -f "$srcdir/$f"; then
21720
 
           # Source tree
21721
 
           echo "$srcdir/$f"
21722
 
         else
21723
 
           # /dev/null tree
21724
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21725
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21726
 
   { (exit 1); exit 1; }; }
21727
 
         fi;;
21728
 
      esac
21729
 
    done` || { (exit 1); exit 1; }
21730
 
_ACEOF
21731
 
cat >>$CONFIG_STATUS <<_ACEOF
21732
 
  sed "$ac_vpsub
 
17677
_ACEOF
 
17678
 
 
17679
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17680
# If the template does not know about datarootdir, expand it.
 
17681
# FIXME: This hack should be removed a few years after 2.60.
 
17682
ac_datarootdir_hack=; ac_datarootdir_seen=
 
17683
ac_sed_dataroot='
 
17684
/datarootdir/ {
 
17685
  p
 
17686
  q
 
17687
}
 
17688
/@datadir@/p
 
17689
/@docdir@/p
 
17690
/@infodir@/p
 
17691
/@localedir@/p
 
17692
/@mandir@/p'
 
17693
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
17694
*datarootdir*) ac_datarootdir_seen=yes;;
 
17695
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
17696
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
17697
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
17698
_ACEOF
 
17699
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17700
  ac_datarootdir_hack='
 
17701
  s&@datadir@&$datadir&g
 
17702
  s&@docdir@&$docdir&g
 
17703
  s&@infodir@&$infodir&g
 
17704
  s&@localedir@&$localedir&g
 
17705
  s&@mandir@&$mandir&g
 
17706
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
17707
esac
 
17708
_ACEOF
 
17709
 
 
17710
# Neutralize VPATH when `$srcdir' = `.'.
 
17711
# Shell code in configure.ac might set extrasub.
 
17712
# FIXME: do we really want to maintain this feature?
 
17713
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17714
ac_sed_extra="$ac_vpsub
21733
17715
$extrasub
21734
17716
_ACEOF
21735
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
17717
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21736
17718
:t
21737
17719
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21738
 
s,@configure_input@,$configure_input,;t t
21739
 
s,@srcdir@,$ac_srcdir,;t t
21740
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21741
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21742
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21743
 
s,@builddir@,$ac_builddir,;t t
21744
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21745
 
s,@top_builddir@,$ac_top_builddir,;t t
21746
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21747
 
s,@INSTALL@,$ac_INSTALL,;t t
21748
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21749
 
  rm -f $tmp/stdin
21750
 
  if test x"$ac_file" != x-; then
21751
 
    mv $tmp/out $ac_file
21752
 
  else
21753
 
    cat $tmp/out
21754
 
    rm -f $tmp/out
21755
 
  fi
21756
 
 
21757
 
done
21758
 
_ACEOF
21759
 
cat >>$CONFIG_STATUS <<\_ACEOF
21760
 
 
21761
 
#
21762
 
# CONFIG_HEADER section.
21763
 
#
21764
 
 
21765
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21766
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21767
 
#
21768
 
# ac_d sets the value in "#define NAME VALUE" lines.
21769
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21770
 
ac_dB='[         ].*$,\1#\2'
21771
 
ac_dC=' '
21772
 
ac_dD=',;t'
21773
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21774
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21775
 
ac_uB='$,\1#\2define\3'
21776
 
ac_uC=' '
21777
 
ac_uD=',;t'
21778
 
 
21779
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21780
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
17720
s|@configure_input@|$ac_sed_conf_input|;t t
 
17721
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
17722
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
17723
s&@srcdir@&$ac_srcdir&;t t
 
17724
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
17725
s&@top_srcdir@&$ac_top_srcdir&;t t
 
17726
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
17727
s&@builddir@&$ac_builddir&;t t
 
17728
s&@abs_builddir@&$ac_abs_builddir&;t t
 
17729
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
17730
s&@INSTALL@&$ac_INSTALL&;t t
 
17731
$ac_datarootdir_hack
 
17732
"
 
17733
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
17734
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17735
 
 
17736
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
17737
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
17738
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
17739
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
17740
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17741
which seems to be undefined.  Please make sure it is defined" >&5
 
17742
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17743
which seems to be undefined.  Please make sure it is defined" >&2;}
 
17744
 
 
17745
  rm -f "$ac_tmp/stdin"
21781
17746
  case $ac_file in
21782
 
  - | *:- | *:-:* ) # input from stdin
21783
 
        cat >$tmp/stdin
21784
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21785
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21786
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21787
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21788
 
  * )   ac_file_in=$ac_file.in ;;
21789
 
  esac
21790
 
 
21791
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21792
 
echo "$as_me: creating $ac_file" >&6;}
21793
 
 
21794
 
  # First look for the input files in the build tree, otherwise in the
21795
 
  # src tree.
21796
 
  ac_file_inputs=`IFS=:
21797
 
    for f in $ac_file_in; do
21798
 
      case $f in
21799
 
      -) echo $tmp/stdin ;;
21800
 
      [\\/$]*)
21801
 
         # Absolute (can't be DOS-style, as IFS=:)
21802
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21803
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21804
 
   { (exit 1); exit 1; }; }
21805
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
21806
 
         echo "$f";;
21807
 
      *) # Relative
21808
 
         if test -f "$f"; then
21809
 
           # Build tree
21810
 
           echo "$f"
21811
 
         elif test -f "$srcdir/$f"; then
21812
 
           # Source tree
21813
 
           echo "$srcdir/$f"
21814
 
         else
21815
 
           # /dev/null tree
21816
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21817
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21818
 
   { (exit 1); exit 1; }; }
21819
 
         fi;;
21820
 
      esac
21821
 
    done` || { (exit 1); exit 1; }
21822
 
  # Remove the trailing spaces.
21823
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21824
 
 
21825
 
_ACEOF
21826
 
 
21827
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21828
 
# `conftest.undefs', that substitutes the proper values into
21829
 
# config.h.in to produce config.h.  The first handles `#define'
21830
 
# templates, and the second `#undef' templates.
21831
 
# And first: Protect against being on the right side of a sed subst in
21832
 
# config.status.  Protect against being in an unquoted here document
21833
 
# in config.status.
21834
 
rm -f conftest.defines conftest.undefs
21835
 
# Using a here document instead of a string reduces the quoting nightmare.
21836
 
# Putting comments in sed scripts is not portable.
21837
 
#
21838
 
# `end' is used to avoid that the second main sed command (meant for
21839
 
# 0-ary CPP macros) applies to n-ary macro definitions.
21840
 
# See the Autoconf documentation for `clear'.
21841
 
cat >confdef2sed.sed <<\_ACEOF
21842
 
s/[\\&,]/\\&/g
21843
 
s,[\\$`],\\&,g
21844
 
t clear
21845
 
: clear
21846
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21847
 
t end
21848
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21849
 
: end
21850
 
_ACEOF
21851
 
# If some macros were called several times there might be several times
21852
 
# the same #defines, which is useless.  Nevertheless, we may not want to
21853
 
# sort them, since we want the *last* AC-DEFINE to be honored.
21854
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21855
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21856
 
rm -f confdef2sed.sed
21857
 
 
21858
 
# This sed command replaces #undef with comments.  This is necessary, for
21859
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
21860
 
# on some systems where configure will not decide to define it.
21861
 
cat >>conftest.undefs <<\_ACEOF
21862
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21863
 
_ACEOF
21864
 
 
21865
 
# Break up conftest.defines because some shells have a limit on the size
21866
 
# of here documents, and old seds have small limits too (100 cmds).
21867
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21868
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21869
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21870
 
echo '  :' >>$CONFIG_STATUS
21871
 
rm -f conftest.tail
21872
 
while grep . conftest.defines >/dev/null
21873
 
do
21874
 
  # Write a limited-size here document to $tmp/defines.sed.
21875
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21876
 
  # Speed up: don't consider the non `#define' lines.
21877
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21878
 
  # Work around the forget-to-reset-the-flag bug.
21879
 
  echo 't clr' >>$CONFIG_STATUS
21880
 
  echo ': clr' >>$CONFIG_STATUS
21881
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21882
 
  echo 'CEOF
21883
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21884
 
  rm -f $tmp/in
21885
 
  mv $tmp/out $tmp/in
21886
 
' >>$CONFIG_STATUS
21887
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21888
 
  rm -f conftest.defines
21889
 
  mv conftest.tail conftest.defines
21890
 
done
21891
 
rm -f conftest.defines
21892
 
echo '  fi # grep' >>$CONFIG_STATUS
21893
 
echo >>$CONFIG_STATUS
21894
 
 
21895
 
# Break up conftest.undefs because some shells have a limit on the size
21896
 
# of here documents, and old seds have small limits too (100 cmds).
21897
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21898
 
rm -f conftest.tail
21899
 
while grep . conftest.undefs >/dev/null
21900
 
do
21901
 
  # Write a limited-size here document to $tmp/undefs.sed.
21902
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21903
 
  # Speed up: don't consider the non `#undef'
21904
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21905
 
  # Work around the forget-to-reset-the-flag bug.
21906
 
  echo 't clr' >>$CONFIG_STATUS
21907
 
  echo ': clr' >>$CONFIG_STATUS
21908
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21909
 
  echo 'CEOF
21910
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21911
 
  rm -f $tmp/in
21912
 
  mv $tmp/out $tmp/in
21913
 
' >>$CONFIG_STATUS
21914
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21915
 
  rm -f conftest.undefs
21916
 
  mv conftest.tail conftest.undefs
21917
 
done
21918
 
rm -f conftest.undefs
21919
 
 
21920
 
cat >>$CONFIG_STATUS <<\_ACEOF
21921
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21922
 
  # use $as_me), people would be surprised to read:
21923
 
  #    /* config.h.  Generated by config.status.  */
21924
 
  if test x"$ac_file" = x-; then
21925
 
    echo "/* Generated by configure.  */" >$tmp/config.h
21926
 
  else
21927
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21928
 
  fi
21929
 
  cat $tmp/in >>$tmp/config.h
21930
 
  rm -f $tmp/in
 
17747
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
17748
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
17749
  esac \
 
17750
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17751
 ;;
 
17752
  :H)
 
17753
  #
 
17754
  # CONFIG_HEADER
 
17755
  #
21931
17756
  if test x"$ac_file" != x-; then
21932
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21933
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21934
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
17757
    {
 
17758
      $as_echo "/* $configure_input  */" \
 
17759
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
17760
    } >"$ac_tmp/config.h" \
 
17761
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17762
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
17763
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
17764
$as_echo "$as_me: $ac_file is unchanged" >&6;}
21935
17765
    else
21936
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21937
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21938
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21939
 
         X"$ac_file" : 'X\(//\)$' \| \
21940
 
         X"$ac_file" : 'X\(/\)' \| \
21941
 
         .     : '\(.\)' 2>/dev/null ||
21942
 
echo X"$ac_file" |
21943
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21944
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21945
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21946
 
          /^X\(\/\).*/{ s//\1/; q; }
21947
 
          s/.*/./; q'`
21948
 
      { if $as_mkdir_p; then
21949
 
    mkdir -p "$ac_dir"
21950
 
  else
21951
 
    as_dir="$ac_dir"
21952
 
    as_dirs=
21953
 
    while test ! -d "$as_dir"; do
21954
 
      as_dirs="$as_dir $as_dirs"
21955
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21956
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21957
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21958
 
         X"$as_dir" : 'X\(//\)$' \| \
21959
 
         X"$as_dir" : 'X\(/\)' \| \
21960
 
         .     : '\(.\)' 2>/dev/null ||
21961
 
echo X"$as_dir" |
21962
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21963
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21964
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21965
 
          /^X\(\/\).*/{ s//\1/; q; }
21966
 
          s/.*/./; q'`
21967
 
    done
21968
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21969
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21970
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21971
 
   { (exit 1); exit 1; }; }; }
21972
 
 
21973
 
      rm -f $ac_file
21974
 
      mv $tmp/config.h $ac_file
 
17766
      rm -f "$ac_file"
 
17767
      mv "$ac_tmp/config.h" "$ac_file" \
 
17768
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21975
17769
    fi
21976
17770
  else
21977
 
    cat $tmp/config.h
21978
 
    rm -f $tmp/config.h
 
17771
    $as_echo "/* $configure_input  */" \
 
17772
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
17773
      || as_fn_error $? "could not create -" "$LINENO" 5
21979
17774
  fi
21980
 
done
21981
 
_ACEOF
21982
 
 
21983
 
cat >>$CONFIG_STATUS <<\_ACEOF
21984
 
 
21985
 
{ (exit 0); exit 0; }
21986
 
_ACEOF
21987
 
chmod +x $CONFIG_STATUS
 
17775
 ;;
 
17776
 
 
17777
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
17778
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
17779
 ;;
 
17780
  esac
 
17781
 
 
17782
 
 
17783
  case $ac_file$ac_mode in
 
17784
    "libtool":C)
 
17785
 
 
17786
    # See if we are running on zsh, and set the options which allow our
 
17787
    # commands through without removal of \ escapes.
 
17788
    if test -n "${ZSH_VERSION+set}" ; then
 
17789
      setopt NO_GLOB_SUBST
 
17790
    fi
 
17791
 
 
17792
    cfgfile="${ofile}T"
 
17793
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17794
    $RM "$cfgfile"
 
17795
 
 
17796
    cat <<_LT_EOF >> "$cfgfile"
 
17797
#! $SHELL
 
17798
 
 
17799
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17800
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17801
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17802
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17803
#
 
17804
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17805
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
17806
#                 Inc.
 
17807
#   Written by Gordon Matzigkeit, 1996
 
17808
#
 
17809
#   This file is part of GNU Libtool.
 
17810
#
 
17811
# GNU Libtool is free software; you can redistribute it and/or
 
17812
# modify it under the terms of the GNU General Public License as
 
17813
# published by the Free Software Foundation; either version 2 of
 
17814
# the License, or (at your option) any later version.
 
17815
#
 
17816
# As a special exception to the GNU General Public License,
 
17817
# if you distribute this file as part of a program or library that
 
17818
# is built using GNU Libtool, you may include this file under the
 
17819
# same distribution terms that you use for the rest of that program.
 
17820
#
 
17821
# GNU Libtool is distributed in the hope that it will be useful,
 
17822
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17823
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17824
# GNU General Public License for more details.
 
17825
#
 
17826
# You should have received a copy of the GNU General Public License
 
17827
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17828
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17829
# obtained by writing to the Free Software Foundation, Inc.,
 
17830
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17831
 
 
17832
 
 
17833
# The names of the tagged configurations supported by this script.
 
17834
available_tags="CXX "
 
17835
 
 
17836
# ### BEGIN LIBTOOL CONFIG
 
17837
 
 
17838
# Assembler program.
 
17839
AS=$lt_AS
 
17840
 
 
17841
# DLL creation program.
 
17842
DLLTOOL=$lt_DLLTOOL
 
17843
 
 
17844
# Object dumper program.
 
17845
OBJDUMP=$lt_OBJDUMP
 
17846
 
 
17847
# Which release of libtool.m4 was used?
 
17848
macro_version=$macro_version
 
17849
macro_revision=$macro_revision
 
17850
 
 
17851
# Whether or not to build shared libraries.
 
17852
build_libtool_libs=$enable_shared
 
17853
 
 
17854
# Whether or not to build static libraries.
 
17855
build_old_libs=$enable_static
 
17856
 
 
17857
# What type of objects to build.
 
17858
pic_mode=$pic_mode
 
17859
 
 
17860
# Whether or not to optimize for fast installation.
 
17861
fast_install=$enable_fast_install
 
17862
 
 
17863
# Shell to use when invoking shell scripts.
 
17864
SHELL=$lt_SHELL
 
17865
 
 
17866
# An echo program that protects backslashes.
 
17867
ECHO=$lt_ECHO
 
17868
 
 
17869
# The host system.
 
17870
host_alias=$host_alias
 
17871
host=$host
 
17872
host_os=$host_os
 
17873
 
 
17874
# The build system.
 
17875
build_alias=$build_alias
 
17876
build=$build
 
17877
build_os=$build_os
 
17878
 
 
17879
# A sed program that does not truncate output.
 
17880
SED=$lt_SED
 
17881
 
 
17882
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17883
Xsed="\$SED -e 1s/^X//"
 
17884
 
 
17885
# A grep program that handles long lines.
 
17886
GREP=$lt_GREP
 
17887
 
 
17888
# An ERE matcher.
 
17889
EGREP=$lt_EGREP
 
17890
 
 
17891
# A literal string matcher.
 
17892
FGREP=$lt_FGREP
 
17893
 
 
17894
# A BSD- or MS-compatible name lister.
 
17895
NM=$lt_NM
 
17896
 
 
17897
# Whether we need soft or hard links.
 
17898
LN_S=$lt_LN_S
 
17899
 
 
17900
# What is the maximum length of a command?
 
17901
max_cmd_len=$max_cmd_len
 
17902
 
 
17903
# Object file suffix (normally "o").
 
17904
objext=$ac_objext
 
17905
 
 
17906
# Executable file suffix (normally "").
 
17907
exeext=$exeext
 
17908
 
 
17909
# whether the shell understands "unset".
 
17910
lt_unset=$lt_unset
 
17911
 
 
17912
# turn spaces into newlines.
 
17913
SP2NL=$lt_lt_SP2NL
 
17914
 
 
17915
# turn newlines into spaces.
 
17916
NL2SP=$lt_lt_NL2SP
 
17917
 
 
17918
# convert \$build file names to \$host format.
 
17919
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
17920
 
 
17921
# convert \$build files to toolchain format.
 
17922
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
17923
 
 
17924
# Method to check whether dependent libraries are shared objects.
 
17925
deplibs_check_method=$lt_deplibs_check_method
 
17926
 
 
17927
# Command to use when deplibs_check_method = "file_magic".
 
17928
file_magic_cmd=$lt_file_magic_cmd
 
17929
 
 
17930
# How to find potential files when deplibs_check_method = "file_magic".
 
17931
file_magic_glob=$lt_file_magic_glob
 
17932
 
 
17933
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
17934
want_nocaseglob=$lt_want_nocaseglob
 
17935
 
 
17936
# Command to associate shared and link libraries.
 
17937
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
17938
 
 
17939
# The archiver.
 
17940
AR=$lt_AR
 
17941
 
 
17942
# Flags to create an archive.
 
17943
AR_FLAGS=$lt_AR_FLAGS
 
17944
 
 
17945
# How to feed a file listing to the archiver.
 
17946
archiver_list_spec=$lt_archiver_list_spec
 
17947
 
 
17948
# A symbol stripping program.
 
17949
STRIP=$lt_STRIP
 
17950
 
 
17951
# Commands used to install an old-style archive.
 
17952
RANLIB=$lt_RANLIB
 
17953
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17955
 
 
17956
# Whether to use a lock for old archive extraction.
 
17957
lock_old_archive_extraction=$lock_old_archive_extraction
 
17958
 
 
17959
# A C compiler.
 
17960
LTCC=$lt_CC
 
17961
 
 
17962
# LTCC compiler flags.
 
17963
LTCFLAGS=$lt_CFLAGS
 
17964
 
 
17965
# Take the output of nm and produce a listing of raw symbols and C names.
 
17966
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17967
 
 
17968
# Transform the output of nm in a proper C declaration.
 
17969
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17970
 
 
17971
# Transform the output of nm in a C name address pair.
 
17972
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17973
 
 
17974
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
17975
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
17976
 
 
17977
# Specify filename containing input files for \$NM.
 
17978
nm_file_list_spec=$lt_nm_file_list_spec
 
17979
 
 
17980
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
17981
lt_sysroot=$lt_sysroot
 
17982
 
 
17983
# The name of the directory that contains temporary libtool files.
 
17984
objdir=$objdir
 
17985
 
 
17986
# Used to examine libraries when file_magic_cmd begins with "file".
 
17987
MAGIC_CMD=$MAGIC_CMD
 
17988
 
 
17989
# Must we lock files when doing compilation?
 
17990
need_locks=$lt_need_locks
 
17991
 
 
17992
# Manifest tool.
 
17993
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
17994
 
 
17995
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
17996
DSYMUTIL=$lt_DSYMUTIL
 
17997
 
 
17998
# Tool to change global to local symbols on Mac OS X.
 
17999
NMEDIT=$lt_NMEDIT
 
18000
 
 
18001
# Tool to manipulate fat objects and archives on Mac OS X.
 
18002
LIPO=$lt_LIPO
 
18003
 
 
18004
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
18005
OTOOL=$lt_OTOOL
 
18006
 
 
18007
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
18008
OTOOL64=$lt_OTOOL64
 
18009
 
 
18010
# Old archive suffix (normally "a").
 
18011
libext=$libext
 
18012
 
 
18013
# Shared library suffix (normally ".so").
 
18014
shrext_cmds=$lt_shrext_cmds
 
18015
 
 
18016
# The commands to extract the exported symbol list from a shared archive.
 
18017
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18018
 
 
18019
# Variables whose values should be saved in libtool wrapper scripts and
 
18020
# restored at link time.
 
18021
variables_saved_for_relink=$lt_variables_saved_for_relink
 
18022
 
 
18023
# Do we need the "lib" prefix for modules?
 
18024
need_lib_prefix=$need_lib_prefix
 
18025
 
 
18026
# Do we need a version for libraries?
 
18027
need_version=$need_version
 
18028
 
 
18029
# Library versioning type.
 
18030
version_type=$version_type
 
18031
 
 
18032
# Shared library runtime path variable.
 
18033
runpath_var=$runpath_var
 
18034
 
 
18035
# Shared library path variable.
 
18036
shlibpath_var=$shlibpath_var
 
18037
 
 
18038
# Is shlibpath searched before the hard-coded library search path?
 
18039
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18040
 
 
18041
# Format of library name prefix.
 
18042
libname_spec=$lt_libname_spec
 
18043
 
 
18044
# List of archive names.  First name is the real one, the rest are links.
 
18045
# The last name is the one that the linker finds with -lNAME
 
18046
library_names_spec=$lt_library_names_spec
 
18047
 
 
18048
# The coded name of the library, if different from the real name.
 
18049
soname_spec=$lt_soname_spec
 
18050
 
 
18051
# Permission mode override for installation of shared libraries.
 
18052
install_override_mode=$lt_install_override_mode
 
18053
 
 
18054
# Command to use after installation of a shared archive.
 
18055
postinstall_cmds=$lt_postinstall_cmds
 
18056
 
 
18057
# Command to use after uninstallation of a shared archive.
 
18058
postuninstall_cmds=$lt_postuninstall_cmds
 
18059
 
 
18060
# Commands used to finish a libtool library installation in a directory.
 
18061
finish_cmds=$lt_finish_cmds
 
18062
 
 
18063
# As "finish_cmds", except a single script fragment to be evaled but
 
18064
# not shown.
 
18065
finish_eval=$lt_finish_eval
 
18066
 
 
18067
# Whether we should hardcode library paths into libraries.
 
18068
hardcode_into_libs=$hardcode_into_libs
 
18069
 
 
18070
# Compile-time system search path for libraries.
 
18071
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18072
 
 
18073
# Run-time system search path for libraries.
 
18074
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18075
 
 
18076
# Whether dlopen is supported.
 
18077
dlopen_support=$enable_dlopen
 
18078
 
 
18079
# Whether dlopen of programs is supported.
 
18080
dlopen_self=$enable_dlopen_self
 
18081
 
 
18082
# Whether dlopen of statically linked programs is supported.
 
18083
dlopen_self_static=$enable_dlopen_self_static
 
18084
 
 
18085
# Commands to strip libraries.
 
18086
old_striplib=$lt_old_striplib
 
18087
striplib=$lt_striplib
 
18088
 
 
18089
 
 
18090
# The linker used to build libraries.
 
18091
LD=$lt_LD
 
18092
 
 
18093
# How to create reloadable object files.
 
18094
reload_flag=$lt_reload_flag
 
18095
reload_cmds=$lt_reload_cmds
 
18096
 
 
18097
# Commands used to build an old-style archive.
 
18098
old_archive_cmds=$lt_old_archive_cmds
 
18099
 
 
18100
# A language specific compiler.
 
18101
CC=$lt_compiler
 
18102
 
 
18103
# Is the compiler the GNU compiler?
 
18104
with_gcc=$GCC
 
18105
 
 
18106
# Compiler flag to turn off builtin functions.
 
18107
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18108
 
 
18109
# Additional compiler flags for building library objects.
 
18110
pic_flag=$lt_lt_prog_compiler_pic
 
18111
 
 
18112
# How to pass a linker flag through the compiler.
 
18113
wl=$lt_lt_prog_compiler_wl
 
18114
 
 
18115
# Compiler flag to prevent dynamic linking.
 
18116
link_static_flag=$lt_lt_prog_compiler_static
 
18117
 
 
18118
# Does compiler simultaneously support -c and -o options?
 
18119
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18120
 
 
18121
# Whether or not to add -lc for building shared libraries.
 
18122
build_libtool_need_lc=$archive_cmds_need_lc
 
18123
 
 
18124
# Whether or not to disallow shared libs when runtime libs are static.
 
18125
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18126
 
 
18127
# Compiler flag to allow reflexive dlopens.
 
18128
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18129
 
 
18130
# Compiler flag to generate shared objects directly from archives.
 
18131
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18132
 
 
18133
# Whether the compiler copes with passing no objects directly.
 
18134
compiler_needs_object=$lt_compiler_needs_object
 
18135
 
 
18136
# Create an old-style archive from a shared archive.
 
18137
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18138
 
 
18139
# Create a temporary old-style archive to link instead of a shared archive.
 
18140
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18141
 
 
18142
# Commands used to build a shared archive.
 
18143
archive_cmds=$lt_archive_cmds
 
18144
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18145
 
 
18146
# Commands used to build a loadable module if different from building
 
18147
# a shared archive.
 
18148
module_cmds=$lt_module_cmds
 
18149
module_expsym_cmds=$lt_module_expsym_cmds
 
18150
 
 
18151
# Whether we are building with GNU ld or not.
 
18152
with_gnu_ld=$lt_with_gnu_ld
 
18153
 
 
18154
# Flag that allows shared libraries with undefined symbols to be built.
 
18155
allow_undefined_flag=$lt_allow_undefined_flag
 
18156
 
 
18157
# Flag that enforces no undefined symbols.
 
18158
no_undefined_flag=$lt_no_undefined_flag
 
18159
 
 
18160
# Flag to hardcode \$libdir into a binary during linking.
 
18161
# This must work even if \$libdir does not exist
 
18162
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18163
 
 
18164
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18165
# during linking.  This must work even if \$libdir does not exist.
 
18166
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
18167
 
 
18168
# Whether we need a single "-rpath" flag with a separated argument.
 
18169
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18170
 
 
18171
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18172
# DIR into the resulting binary.
 
18173
hardcode_direct=$hardcode_direct
 
18174
 
 
18175
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18176
# DIR into the resulting binary and the resulting library dependency is
 
18177
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18178
# library is relocated.
 
18179
hardcode_direct_absolute=$hardcode_direct_absolute
 
18180
 
 
18181
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18182
# into the resulting binary.
 
18183
hardcode_minus_L=$hardcode_minus_L
 
18184
 
 
18185
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18186
# into the resulting binary.
 
18187
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18188
 
 
18189
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18190
# into the library and all subsequent libraries and executables linked
 
18191
# against it.
 
18192
hardcode_automatic=$hardcode_automatic
 
18193
 
 
18194
# Set to yes if linker adds runtime paths of dependent libraries
 
18195
# to runtime path list.
 
18196
inherit_rpath=$inherit_rpath
 
18197
 
 
18198
# Whether libtool must link a program against all its dependency libraries.
 
18199
link_all_deplibs=$link_all_deplibs
 
18200
 
 
18201
# Set to "yes" if exported symbols are required.
 
18202
always_export_symbols=$always_export_symbols
 
18203
 
 
18204
# The commands to list exported symbols.
 
18205
export_symbols_cmds=$lt_export_symbols_cmds
 
18206
 
 
18207
# Symbols that should not be listed in the preloaded symbols.
 
18208
exclude_expsyms=$lt_exclude_expsyms
 
18209
 
 
18210
# Symbols that must always be exported.
 
18211
include_expsyms=$lt_include_expsyms
 
18212
 
 
18213
# Commands necessary for linking programs (against libraries) with templates.
 
18214
prelink_cmds=$lt_prelink_cmds
 
18215
 
 
18216
# Commands necessary for finishing linking programs.
 
18217
postlink_cmds=$lt_postlink_cmds
 
18218
 
 
18219
# Specify filename containing input files.
 
18220
file_list_spec=$lt_file_list_spec
 
18221
 
 
18222
# How to hardcode a shared library path into an executable.
 
18223
hardcode_action=$hardcode_action
 
18224
 
 
18225
# The directories searched by this compiler when creating a shared library.
 
18226
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18227
 
 
18228
# Dependencies to place before and after the objects being linked to
 
18229
# create a shared library.
 
18230
predep_objects=$lt_predep_objects
 
18231
postdep_objects=$lt_postdep_objects
 
18232
predeps=$lt_predeps
 
18233
postdeps=$lt_postdeps
 
18234
 
 
18235
# The library search path used internally by the compiler when linking
 
18236
# a shared library.
 
18237
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18238
 
 
18239
# ### END LIBTOOL CONFIG
 
18240
 
 
18241
_LT_EOF
 
18242
 
 
18243
  case $host_os in
 
18244
  aix3*)
 
18245
    cat <<\_LT_EOF >> "$cfgfile"
 
18246
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18247
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18248
# vanish in a puff of smoke.
 
18249
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18250
  COLLECT_NAMES=
 
18251
  export COLLECT_NAMES
 
18252
fi
 
18253
_LT_EOF
 
18254
    ;;
 
18255
  esac
 
18256
 
 
18257
 
 
18258
ltmain="$ac_aux_dir/ltmain.sh"
 
18259
 
 
18260
 
 
18261
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18262
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18263
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18264
  # is reportedly fixed, but why not run on old versions too?
 
18265
  sed '$q' "$ltmain" >> "$cfgfile" \
 
18266
     || (rm -f "$cfgfile"; exit 1)
 
18267
 
 
18268
  if test x"$xsi_shell" = xyes; then
 
18269
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
18270
func_dirname ()\
 
18271
{\
 
18272
\    case ${1} in\
 
18273
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18274
\      *  ) func_dirname_result="${3}" ;;\
 
18275
\    esac\
 
18276
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
18277
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18278
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18279
test 0 -eq $? || _lt_function_replace_fail=:
 
18280
 
 
18281
 
 
18282
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
18283
func_basename ()\
 
18284
{\
 
18285
\    func_basename_result="${1##*/}"\
 
18286
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18287
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18288
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18289
test 0 -eq $? || _lt_function_replace_fail=:
 
18290
 
 
18291
 
 
18292
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
18293
func_dirname_and_basename ()\
 
18294
{\
 
18295
\    case ${1} in\
 
18296
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18297
\      *  ) func_dirname_result="${3}" ;;\
 
18298
\    esac\
 
18299
\    func_basename_result="${1##*/}"\
 
18300
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18301
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18302
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18303
test 0 -eq $? || _lt_function_replace_fail=:
 
18304
 
 
18305
 
 
18306
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
18307
func_stripname ()\
 
18308
{\
 
18309
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
18310
\    # positional parameters, so assign one to ordinary parameter first.\
 
18311
\    func_stripname_result=${3}\
 
18312
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
18313
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
18314
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
18315
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18316
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18317
test 0 -eq $? || _lt_function_replace_fail=:
 
18318
 
 
18319
 
 
18320
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
18321
func_split_long_opt ()\
 
18322
{\
 
18323
\    func_split_long_opt_name=${1%%=*}\
 
18324
\    func_split_long_opt_arg=${1#*=}\
 
18325
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18326
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18327
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18328
test 0 -eq $? || _lt_function_replace_fail=:
 
18329
 
 
18330
 
 
18331
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
18332
func_split_short_opt ()\
 
18333
{\
 
18334
\    func_split_short_opt_arg=${1#??}\
 
18335
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
18336
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18337
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18338
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18339
test 0 -eq $? || _lt_function_replace_fail=:
 
18340
 
 
18341
 
 
18342
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
18343
func_lo2o ()\
 
18344
{\
 
18345
\    case ${1} in\
 
18346
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
18347
\      *)    func_lo2o_result=${1} ;;\
 
18348
\    esac\
 
18349
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
18350
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18351
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18352
test 0 -eq $? || _lt_function_replace_fail=:
 
18353
 
 
18354
 
 
18355
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
18356
func_xform ()\
 
18357
{\
 
18358
    func_xform_result=${1%.*}.lo\
 
18359
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
18360
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18361
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18362
test 0 -eq $? || _lt_function_replace_fail=:
 
18363
 
 
18364
 
 
18365
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
18366
func_arith ()\
 
18367
{\
 
18368
    func_arith_result=$(( $* ))\
 
18369
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
18370
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18371
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18372
test 0 -eq $? || _lt_function_replace_fail=:
 
18373
 
 
18374
 
 
18375
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
18376
func_len ()\
 
18377
{\
 
18378
    func_len_result=${#1}\
 
18379
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
18380
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18381
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18382
test 0 -eq $? || _lt_function_replace_fail=:
 
18383
 
 
18384
fi
 
18385
 
 
18386
if test x"$lt_shell_append" = xyes; then
 
18387
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
18388
func_append ()\
 
18389
{\
 
18390
    eval "${1}+=\\${2}"\
 
18391
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
18392
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18393
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18394
test 0 -eq $? || _lt_function_replace_fail=:
 
18395
 
 
18396
 
 
18397
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
18398
func_append_quoted ()\
 
18399
{\
 
18400
\    func_quote_for_eval "${2}"\
 
18401
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
18402
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
18403
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18404
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18405
test 0 -eq $? || _lt_function_replace_fail=:
 
18406
 
 
18407
 
 
18408
  # Save a `func_append' function call where possible by direct use of '+='
 
18409
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
18410
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18411
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18412
  test 0 -eq $? || _lt_function_replace_fail=:
 
18413
else
 
18414
  # Save a `func_append' function call even when '+=' is not available
 
18415
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
18416
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18417
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18418
  test 0 -eq $? || _lt_function_replace_fail=:
 
18419
fi
 
18420
 
 
18421
if test x"$_lt_function_replace_fail" = x":"; then
 
18422
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
18423
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
18424
fi
 
18425
 
 
18426
 
 
18427
   mv -f "$cfgfile" "$ofile" ||
 
18428
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18429
  chmod +x "$ofile"
 
18430
 
 
18431
 
 
18432
    cat <<_LT_EOF >> "$ofile"
 
18433
 
 
18434
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
18435
 
 
18436
# The linker used to build libraries.
 
18437
LD=$lt_LD_CXX
 
18438
 
 
18439
# How to create reloadable object files.
 
18440
reload_flag=$lt_reload_flag_CXX
 
18441
reload_cmds=$lt_reload_cmds_CXX
 
18442
 
 
18443
# Commands used to build an old-style archive.
 
18444
old_archive_cmds=$lt_old_archive_cmds_CXX
 
18445
 
 
18446
# A language specific compiler.
 
18447
CC=$lt_compiler_CXX
 
18448
 
 
18449
# Is the compiler the GNU compiler?
 
18450
with_gcc=$GCC_CXX
 
18451
 
 
18452
# Compiler flag to turn off builtin functions.
 
18453
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
18454
 
 
18455
# Additional compiler flags for building library objects.
 
18456
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
18457
 
 
18458
# How to pass a linker flag through the compiler.
 
18459
wl=$lt_lt_prog_compiler_wl_CXX
 
18460
 
 
18461
# Compiler flag to prevent dynamic linking.
 
18462
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
18463
 
 
18464
# Does compiler simultaneously support -c and -o options?
 
18465
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
18466
 
 
18467
# Whether or not to add -lc for building shared libraries.
 
18468
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
18469
 
 
18470
# Whether or not to disallow shared libs when runtime libs are static.
 
18471
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
18472
 
 
18473
# Compiler flag to allow reflexive dlopens.
 
18474
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
18475
 
 
18476
# Compiler flag to generate shared objects directly from archives.
 
18477
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
18478
 
 
18479
# Whether the compiler copes with passing no objects directly.
 
18480
compiler_needs_object=$lt_compiler_needs_object_CXX
 
18481
 
 
18482
# Create an old-style archive from a shared archive.
 
18483
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
18484
 
 
18485
# Create a temporary old-style archive to link instead of a shared archive.
 
18486
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
18487
 
 
18488
# Commands used to build a shared archive.
 
18489
archive_cmds=$lt_archive_cmds_CXX
 
18490
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
18491
 
 
18492
# Commands used to build a loadable module if different from building
 
18493
# a shared archive.
 
18494
module_cmds=$lt_module_cmds_CXX
 
18495
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
18496
 
 
18497
# Whether we are building with GNU ld or not.
 
18498
with_gnu_ld=$lt_with_gnu_ld_CXX
 
18499
 
 
18500
# Flag that allows shared libraries with undefined symbols to be built.
 
18501
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
18502
 
 
18503
# Flag that enforces no undefined symbols.
 
18504
no_undefined_flag=$lt_no_undefined_flag_CXX
 
18505
 
 
18506
# Flag to hardcode \$libdir into a binary during linking.
 
18507
# This must work even if \$libdir does not exist
 
18508
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
18509
 
 
18510
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18511
# during linking.  This must work even if \$libdir does not exist.
 
18512
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
18513
 
 
18514
# Whether we need a single "-rpath" flag with a separated argument.
 
18515
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
18516
 
 
18517
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18518
# DIR into the resulting binary.
 
18519
hardcode_direct=$hardcode_direct_CXX
 
18520
 
 
18521
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18522
# DIR into the resulting binary and the resulting library dependency is
 
18523
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18524
# library is relocated.
 
18525
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
18526
 
 
18527
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18528
# into the resulting binary.
 
18529
hardcode_minus_L=$hardcode_minus_L_CXX
 
18530
 
 
18531
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18532
# into the resulting binary.
 
18533
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
18534
 
 
18535
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18536
# into the library and all subsequent libraries and executables linked
 
18537
# against it.
 
18538
hardcode_automatic=$hardcode_automatic_CXX
 
18539
 
 
18540
# Set to yes if linker adds runtime paths of dependent libraries
 
18541
# to runtime path list.
 
18542
inherit_rpath=$inherit_rpath_CXX
 
18543
 
 
18544
# Whether libtool must link a program against all its dependency libraries.
 
18545
link_all_deplibs=$link_all_deplibs_CXX
 
18546
 
 
18547
# Set to "yes" if exported symbols are required.
 
18548
always_export_symbols=$always_export_symbols_CXX
 
18549
 
 
18550
# The commands to list exported symbols.
 
18551
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
18552
 
 
18553
# Symbols that should not be listed in the preloaded symbols.
 
18554
exclude_expsyms=$lt_exclude_expsyms_CXX
 
18555
 
 
18556
# Symbols that must always be exported.
 
18557
include_expsyms=$lt_include_expsyms_CXX
 
18558
 
 
18559
# Commands necessary for linking programs (against libraries) with templates.
 
18560
prelink_cmds=$lt_prelink_cmds_CXX
 
18561
 
 
18562
# Commands necessary for finishing linking programs.
 
18563
postlink_cmds=$lt_postlink_cmds_CXX
 
18564
 
 
18565
# Specify filename containing input files.
 
18566
file_list_spec=$lt_file_list_spec_CXX
 
18567
 
 
18568
# How to hardcode a shared library path into an executable.
 
18569
hardcode_action=$hardcode_action_CXX
 
18570
 
 
18571
# The directories searched by this compiler when creating a shared library.
 
18572
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
18573
 
 
18574
# Dependencies to place before and after the objects being linked to
 
18575
# create a shared library.
 
18576
predep_objects=$lt_predep_objects_CXX
 
18577
postdep_objects=$lt_postdep_objects_CXX
 
18578
predeps=$lt_predeps_CXX
 
18579
postdeps=$lt_postdeps_CXX
 
18580
 
 
18581
# The library search path used internally by the compiler when linking
 
18582
# a shared library.
 
18583
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
18584
 
 
18585
# ### END LIBTOOL TAG CONFIG: CXX
 
18586
_LT_EOF
 
18587
 
 
18588
 ;;
 
18589
 
 
18590
  esac
 
18591
done # for ac_tag
 
18592
 
 
18593
 
 
18594
as_fn_exit 0
 
18595
_ACEOF
21988
18596
ac_clean_files=$ac_clean_files_save
21989
18597
 
 
18598
test $ac_write_fail = 0 ||
 
18599
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
18600
 
21990
18601
 
21991
18602
# configure is writing to config.log, and then calls config.status.
21992
18603
# config.status does its own redirection, appending to config.log.
22006
18617
  exec 5>>config.log
22007
18618
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22008
18619
  # would make configure fail if this is the last instruction.
22009
 
  $ac_cs_success || { (exit 1); exit 1; }
 
18620
  $ac_cs_success || as_fn_exit 1
 
18621
fi
 
18622
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
18623
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
18624
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22010
18625
fi
22011
18626
 
22012
18627