~ubuntu-branches/ubuntu/natty/libgpg-error/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Meurer
  • Date: 2010-12-16 12:55:05 UTC
  • mfrom: (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20101216125505-zmdtr4zdfnwu5pox
Tags: 1.10-0.1
* Non-maintainer upload.
* New upstream release 1.10. (Closes: #554234)
* Upload to experimental due to squeeze deep freeze
* Add debian/watch file.
* debian/control:
  + Move source package to section libs.
  + Add misc Depends for debhelper.
  + Update short description for libgpg-error-dev
  + Bump standards-version to 3.9.1, no changes required
  + Add Homepage header
  + Set Priority=standard for source package
* debian/rules:
  + Remove unused dpatch patch system implementation and patches
  + Remove unneeded 'chmod +x configure' from configure-stamp target
  + Move libgpg-error0 library to /lib. (Closes: #604945)
  + Fix targets to always depend on target-stamp, add install-stamp
  + Remove '-V 'libgpg-error0 (>= 1.6-1)'' from dh_makeshlibs
* move debian/doc to debian/libgpg-error0.doc:
  + ship NEWS and README in library package, not in dev package
* debian/libgpg-error-dev.install:
  + don't install unavailable libgpg-error.a
* debian/gpg-error(-config).1:
  + Fix manpages, thanks to lintian
* debian/copyright:
  + refer to versioned LGPL 2.1, thanks to lintian

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.61 for libgpg-error 1.6.
 
3
# Generated by GNU Autoconf 2.64 for libgpg-error 1.10.
4
4
#
5
5
# Report bugs to <bug-gnupg@gnupg.org>.
6
6
#
7
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
9
# Foundation, Inc.
 
10
#
9
11
# This configure script is free software; the Free Software Foundation
10
12
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
14
16
 
15
17
# Be more Bourne compatible
16
18
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
20
  emulate sh
19
21
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
23
  # is contrary to our usage.  Disable this feature.
22
24
  alias -g '${1+"$@"}'='"$@"'
23
25
  setopt NO_GLOB_SUBST
24
26
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
27
32
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
41
73
 
42
74
# The user is always right.
43
75
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
 
 
55
 
# Support unset when possible.
56
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
 
  as_unset=unset
58
 
else
59
 
  as_unset=false
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
60
81
fi
61
82
 
62
83
 
65
86
# there to prevent editors from complaining about space-tab.
66
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
88
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
89
IFS=" ""        $as_nl"
71
90
 
72
91
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
 
92
case $0 in #((
74
93
  *[\\/]* ) as_myself=$0 ;;
75
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
95
for as_dir in $PATH
77
96
do
78
97
  IFS=$as_save_IFS
79
98
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
82
101
IFS=$as_save_IFS
83
102
 
84
103
     ;;
89
108
  as_myself=$0
90
109
fi
91
110
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
94
113
fi
95
114
 
96
 
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
99
122
done
100
123
PS1='$ '
101
124
PS2='> '
102
125
PS4='+ '
103
126
 
104
127
# NLS nuisances.
105
 
for as_var in \
106
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
 
  LC_TELEPHONE LC_TIME
109
 
do
110
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
 
    eval $as_var=C; export $as_var
112
 
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
 
  fi
115
 
done
116
 
 
117
 
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
 
  as_expr=expr
121
 
else
122
 
  as_expr=false
123
 
fi
124
 
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
 
  as_basename=basename
127
 
else
128
 
  as_basename=false
129
 
fi
130
 
 
131
 
 
132
 
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
134
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
 
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
 
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
151
132
 
152
133
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
155
135
 
156
136
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
158
176
  as_have_required=yes
159
177
else
160
178
  as_have_required=no
161
179
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
223
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
224
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
186
do
226
187
  IFS=$as_save_IFS
227
188
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
 
189
  as_found=:
 
190
  case $as_dir in #(
229
191
         /*)
230
192
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
232
202
           done;;
233
203
       esac
 
204
  as_found=false
234
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
235
210
IFS=$as_save_IFS
236
211
 
237
212
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
 
430
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
437
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
232
$0: bug-gnupg@gnupg.org about your system, including any
 
233
$0: error possibly output before this message. Then install
 
234
$0: a modern shell, or manually run the script under such a
 
235
$0: shell if you do have one."
 
236
  fi
 
237
  exit 1
 
238
fi
 
239
fi
 
240
fi
 
241
SHELL=${CONFIG_SHELL-/bin/sh}
 
242
export SHELL
 
243
# Unset more variables known to interfere with behavior of common tools.
 
244
CLICOLOR_FORCE= GREP_OPTIONS=
 
245
unset CLICOLOR_FORCE GREP_OPTIONS
 
246
 
 
247
## --------------------- ##
 
248
## M4sh Shell Functions. ##
 
249
## --------------------- ##
 
250
# as_fn_unset VAR
 
251
# ---------------
 
252
# Portably unset VAR.
 
253
as_fn_unset ()
 
254
{
 
255
  { eval $1=; unset $1;}
 
256
}
 
257
as_unset=as_fn_unset
 
258
 
 
259
# as_fn_set_status STATUS
 
260
# -----------------------
 
261
# Set $? to STATUS, without forking.
 
262
as_fn_set_status ()
 
263
{
 
264
  return $1
 
265
} # as_fn_set_status
 
266
 
 
267
# as_fn_exit STATUS
 
268
# -----------------
 
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
270
as_fn_exit ()
 
271
{
 
272
  set +e
 
273
  as_fn_set_status $1
 
274
  exit $1
 
275
} # as_fn_exit
 
276
 
 
277
# as_fn_mkdir_p
 
278
# -------------
 
279
# Create "$as_dir" as a directory, including parents if necessary.
 
280
as_fn_mkdir_p ()
 
281
{
 
282
 
 
283
  case $as_dir in #(
 
284
  -*) as_dir=./$as_dir;;
 
285
  esac
 
286
  test -d "$as_dir" || eval $as_mkdir_p || {
 
287
    as_dirs=
 
288
    while :; do
 
289
      case $as_dir in #(
 
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
291
      *) as_qdir=$as_dir;;
 
292
      esac
 
293
      as_dirs="'$as_qdir' $as_dirs"
 
294
      as_dir=`$as_dirname -- "$as_dir" ||
 
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
297
         X"$as_dir" : 'X\(//\)$' \| \
 
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
299
$as_echo X"$as_dir" |
 
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
301
            s//\1/
 
302
            q
 
303
          }
 
304
          /^X\(\/\/\)[^/].*/{
 
305
            s//\1/
 
306
            q
 
307
          }
 
308
          /^X\(\/\/\)$/{
 
309
            s//\1/
 
310
            q
 
311
          }
 
312
          /^X\(\/\).*/{
 
313
            s//\1/
 
314
            q
 
315
          }
 
316
          s/.*/./; q'`
 
317
      test -d "$as_dir" && break
 
318
    done
 
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
321
 
 
322
 
 
323
} # as_fn_mkdir_p
 
324
# as_fn_append VAR VALUE
 
325
# ----------------------
 
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
327
# advantage of any shell optimizations that allow amortized linear growth over
 
328
# repeated appends, instead of the typical quadratic growth present in naive
 
329
# implementations.
 
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
331
  eval 'as_fn_append ()
 
332
  {
 
333
    eval $1+=\$2
 
334
  }'
 
335
else
 
336
  as_fn_append ()
 
337
  {
 
338
    eval $1=\$$1\$2
 
339
  }
 
340
fi # as_fn_append
 
341
 
 
342
# as_fn_arith ARG...
 
343
# ------------------
 
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
346
# must be portable across $(()) and expr.
 
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
348
  eval 'as_fn_arith ()
 
349
  {
 
350
    as_val=$(( $* ))
 
351
  }'
 
352
else
 
353
  as_fn_arith ()
 
354
  {
 
355
    as_val=`expr "$@" || test $? -eq 1`
 
356
  }
 
357
fi # as_fn_arith
 
358
 
 
359
 
 
360
# as_fn_error ERROR [LINENO LOG_FD]
 
361
# ---------------------------------
 
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
364
# script with status $?, using 1 if that was 0.
 
365
as_fn_error ()
 
366
{
 
367
  as_status=$?; test $as_status -eq 0 && as_status=1
 
368
  if test "$3"; then
 
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
371
  fi
 
372
  $as_echo "$as_me: error: $1" >&2
 
373
  as_fn_exit $as_status
 
374
} # as_fn_error
 
375
 
 
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
378
  as_expr=expr
 
379
else
 
380
  as_expr=false
 
381
fi
 
382
 
 
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
384
  as_basename=basename
 
385
else
 
386
  as_basename=false
 
387
fi
 
388
 
 
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
390
  as_dirname=dirname
 
391
else
 
392
  as_dirname=false
 
393
fi
 
394
 
 
395
as_me=`$as_basename -- "$0" ||
 
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
397
         X"$0" : 'X\(//\)$' \| \
 
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
399
$as_echo X/"$0" |
 
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
401
            s//\1/
 
402
            q
 
403
          }
 
404
          /^X\/\(\/\/\)$/{
 
405
            s//\1/
 
406
            q
 
407
          }
 
408
          /^X\/\(\/\).*/{
 
409
            s//\1/
 
410
            q
 
411
          }
 
412
          s/.*/./; q'`
 
413
 
 
414
# Avoid depending upon Character Ranges.
 
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
418
as_cr_digits='0123456789'
 
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
420
 
 
421
 
 
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
440
427
  sed -n '
441
428
    p
442
429
    /[$]LINENO/=
453
440
      s/-\n.*//
454
441
    ' >$as_me.lineno &&
455
442
  chmod +x "$as_me.lineno" ||
456
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
 
   { (exit 1); exit 1; }; }
 
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
444
 
459
445
  # Don't try to exec as it changes $[0], causing all sort of problems
460
446
  # (the dirname of $[0] is not the place where we might find the
464
450
  exit
465
451
}
466
452
 
467
 
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
453
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
 
454
case `echo -n x` in #(((((
476
455
-n*)
477
 
  case `echo 'x\c'` in
 
456
  case `echo 'xy\c'` in
478
457
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
 
458
  xy)  ECHO_C='\c';;
 
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
460
       ECHO_T=' ';;
480
461
  esac;;
481
462
*)
482
463
  ECHO_N='-n';;
483
464
esac
484
465
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
 
  as_expr=expr
488
 
else
489
 
  as_expr=false
490
 
fi
491
 
 
492
466
rm -f conf$$ conf$$.exe conf$$.file
493
467
if test -d conf$$.dir; then
494
468
  rm -f conf$$.dir/conf$$.file
495
469
else
496
470
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
 
471
  mkdir conf$$.dir 2>/dev/null
498
472
fi
499
 
echo >conf$$.file
500
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
473
if (echo >conf$$.file) 2>/dev/null; then
 
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
475
    as_ln_s='ln -s'
 
476
    # ... but there are two gotchas:
 
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
479
    # In both cases, we have to default to `cp -p'.
 
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
481
      as_ln_s='cp -p'
 
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
483
    as_ln_s=ln
 
484
  else
507
485
    as_ln_s='cp -p'
508
 
elif ln conf$$.file conf$$ 2>/dev/null; then
509
 
  as_ln_s=ln
 
486
  fi
510
487
else
511
488
  as_ln_s='cp -p'
512
489
fi
514
491
rmdir conf$$.dir 2>/dev/null
515
492
 
516
493
if mkdir -p . 2>/dev/null; then
517
 
  as_mkdir_p=:
 
494
  as_mkdir_p='mkdir -p "$as_dir"'
518
495
else
519
496
  test -d ./-p && rmdir ./-p
520
497
  as_mkdir_p=false
531
508
  as_test_x='
532
509
    eval sh -c '\''
533
510
      if test -d "$1"; then
534
 
        test -d "$1/.";
 
511
        test -d "$1/.";
535
512
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
 
513
        case $1 in #(
 
514
        -*)set "./$1";;
538
515
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
516
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
540
517
        ???[sx]*):;;*)false;;esac;fi
541
518
    '\'' sh
542
519
  '
551
528
 
552
529
 
553
530
 
554
 
tagnames=${tagnames+${tagnames},}RC
555
 
 
556
 
 
557
531
# Check that we are running under the correct shell.
558
532
SHELL=${CONFIG_SHELL-/bin/sh}
559
533
 
560
 
case X$ECHO in
 
534
case X$lt_ECHO in
561
535
X*--fallback-echo)
562
536
  # Remove one level of quotation (which was required for Make).
563
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
538
  ;;
565
539
esac
566
540
 
567
 
echo=${ECHO-echo}
 
541
ECHO=${lt_ECHO-echo}
568
542
if test "X$1" = X--no-reexec; then
569
543
  # Discard the --no-reexec flag, and continue.
570
544
  shift
571
545
elif test "X$1" = X--fallback-echo; then
572
546
  # Avoid inline document here, it may be left over
573
547
  :
574
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575
 
  # Yippee, $echo works!
 
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
549
  # Yippee, $ECHO works!
576
550
  :
577
551
else
578
552
  # Restart under the correct shell.
582
556
if test "X$1" = X--fallback-echo; then
583
557
  # used as fallback echo
584
558
  shift
585
 
  cat <<EOF
 
559
  cat <<_LT_EOF
586
560
$*
587
 
EOF
 
561
_LT_EOF
588
562
  exit 0
589
563
fi
590
564
 
591
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
592
566
# if CDPATH is set.
593
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
594
 
 
595
 
if test -z "$ECHO"; then
596
 
if test "X${echo_test_string+set}" != Xset; then
597
 
# find a string as large as possible, as long as the shell can cope with it
598
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
601
 
       echo_test_string="`eval $cmd`" &&
602
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603
 
    then
604
 
      break
605
 
    fi
606
 
  done
607
 
fi
608
 
 
609
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
612
 
  :
613
 
else
614
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
615
 
  # backslashes.  This makes it impossible to quote backslashes using
616
 
  #   echo "$something" | sed 's/\\/\\\\/g'
617
 
  #
618
 
  # So, first we look for a working echo in the user's PATH.
619
 
 
620
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621
 
  for dir in $PATH /usr/ucb; do
 
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
568
 
 
569
if test -z "$lt_ECHO"; then
 
570
  if test "X${echo_test_string+set}" != Xset; then
 
571
    # find a string as large as possible, as long as the shell can cope with it
 
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
575
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
576
      then
 
577
        break
 
578
      fi
 
579
    done
 
580
  fi
 
581
 
 
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
585
    :
 
586
  else
 
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
588
    # backslashes.  This makes it impossible to quote backslashes using
 
589
    #   echo "$something" | sed 's/\\/\\\\/g'
 
590
    #
 
591
    # So, first we look for a working echo in the user's PATH.
 
592
 
 
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
594
    for dir in $PATH /usr/ucb; do
 
595
      IFS="$lt_save_ifs"
 
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
600
        ECHO="$dir/echo"
 
601
        break
 
602
      fi
 
603
    done
622
604
    IFS="$lt_save_ifs"
623
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
627
 
      echo="$dir/echo"
628
 
      break
629
 
    fi
630
 
  done
631
 
  IFS="$lt_save_ifs"
632
605
 
633
 
  if test "X$echo" = Xecho; then
634
 
    # We didn't find a better echo, so look for alternatives.
635
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
638
 
      # This shell has a builtin print -r that does the trick.
639
 
      echo='print -r'
640
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
642
 
      # If we have ksh, try running configure again with it.
643
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644
 
      export ORIGINAL_CONFIG_SHELL
645
 
      CONFIG_SHELL=/bin/ksh
646
 
      export CONFIG_SHELL
647
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648
 
    else
649
 
      # Try using printf.
650
 
      echo='printf %s\n'
651
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
654
 
        # Cool, printf works
655
 
        :
656
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657
 
           test "X$echo_testing_string" = 'X\t' &&
658
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
660
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661
 
        export CONFIG_SHELL
662
 
        SHELL="$CONFIG_SHELL"
663
 
        export SHELL
664
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
665
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666
 
           test "X$echo_testing_string" = 'X\t' &&
667
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
669
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
606
    if test "X$ECHO" = Xecho; then
 
607
      # We didn't find a better echo, so look for alternatives.
 
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
611
        # This shell has a builtin print -r that does the trick.
 
612
        ECHO='print -r'
 
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
614
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
615
        # If we have ksh, try running configure again with it.
 
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
617
        export ORIGINAL_CONFIG_SHELL
 
618
        CONFIG_SHELL=/bin/ksh
 
619
        export CONFIG_SHELL
 
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670
621
      else
671
 
        # maybe with a smaller string...
672
 
        prev=:
673
 
 
674
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676
 
          then
677
 
            break
 
622
        # Try using printf.
 
623
        ECHO='printf %s\n'
 
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
625
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
626
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
627
          # Cool, printf works
 
628
          :
 
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
630
             test "X$echo_testing_string" = 'X\t' &&
 
631
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
633
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
634
          export CONFIG_SHELL
 
635
          SHELL="$CONFIG_SHELL"
 
636
          export SHELL
 
637
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
639
             test "X$echo_testing_string" = 'X\t' &&
 
640
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
642
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
643
        else
 
644
          # maybe with a smaller string...
 
645
          prev=:
 
646
 
 
647
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
648
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
649
            then
 
650
              break
 
651
            fi
 
652
            prev="$cmd"
 
653
          done
 
654
 
 
655
          if test "$prev" != 'sed 50q "$0"'; then
 
656
            echo_test_string=`eval $prev`
 
657
            export echo_test_string
 
658
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
659
          else
 
660
            # Oops.  We lost completely, so just stick with echo.
 
661
            ECHO=echo
678
662
          fi
679
 
          prev="$cmd"
680
 
        done
681
 
 
682
 
        if test "$prev" != 'sed 50q "$0"'; then
683
 
          echo_test_string=`eval $prev`
684
 
          export echo_test_string
685
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686
 
        else
687
 
          # Oops.  We lost completely, so just stick with echo.
688
 
          echo=echo
689
 
        fi
 
663
        fi
690
664
      fi
691
665
    fi
692
666
  fi
693
667
fi
694
 
fi
695
668
 
696
669
# Copy echo and quote the copy suitably for passing to libtool from
697
670
# the Makefile, instead of quoting the original, which is used later.
698
 
ECHO=$echo
699
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
671
lt_ECHO=$ECHO
 
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701
674
fi
702
675
 
703
676
 
704
677
 
705
678
 
706
 
tagnames=${tagnames+${tagnames},}CXX
707
 
 
708
 
tagnames=${tagnames+${tagnames},}F77
709
 
 
710
679
exec 7<&0 </dev/null 6>&1
711
680
 
712
681
# Name of the host.
725
694
subdirs=
726
695
MFLAGS=
727
696
MAKEFLAGS=
728
 
SHELL=${CONFIG_SHELL-/bin/sh}
729
697
 
730
698
# Identity of this package.
731
699
PACKAGE_NAME='libgpg-error'
732
700
PACKAGE_TARNAME='libgpg-error'
733
 
PACKAGE_VERSION='1.6'
734
 
PACKAGE_STRING='libgpg-error 1.6'
 
701
PACKAGE_VERSION='1.10'
 
702
PACKAGE_STRING='libgpg-error 1.10'
735
703
PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
 
704
PACKAGE_URL=''
736
705
 
737
706
ac_unique_file="src/err-sources.h.in"
738
707
# Factoring default headers for most tests.
771
740
# include <unistd.h>
772
741
#endif"
773
742
 
774
 
ac_subst_vars='SHELL
775
 
PATH_SEPARATOR
776
 
PACKAGE_NAME
777
 
PACKAGE_TARNAME
778
 
PACKAGE_VERSION
779
 
PACKAGE_STRING
780
 
PACKAGE_BUGREPORT
781
 
exec_prefix
782
 
prefix
783
 
program_transform_name
784
 
bindir
785
 
sbindir
786
 
libexecdir
787
 
datarootdir
788
 
datadir
789
 
sysconfdir
790
 
sharedstatedir
791
 
localstatedir
792
 
includedir
793
 
oldincludedir
794
 
docdir
795
 
infodir
796
 
htmldir
797
 
dvidir
798
 
pdfdir
799
 
psdir
800
 
libdir
801
 
localedir
802
 
mandir
803
 
DEFS
804
 
ECHO_C
805
 
ECHO_N
806
 
ECHO_T
807
 
LIBS
808
 
build_alias
809
 
host_alias
810
 
target_alias
811
 
LIBGPG_ERROR_LT_CURRENT
812
 
LIBGPG_ERROR_LT_AGE
813
 
LIBGPG_ERROR_LT_REVISION
814
 
INSTALL_PROGRAM
815
 
INSTALL_SCRIPT
816
 
INSTALL_DATA
817
 
am__isrc
818
 
CYGPATH_W
819
 
PACKAGE
820
 
VERSION
821
 
ACLOCAL
822
 
AUTOCONF
823
 
AUTOMAKE
824
 
AUTOHEADER
825
 
MAKEINFO
826
 
install_sh
827
 
STRIP
828
 
INSTALL_STRIP_PROGRAM
829
 
mkdir_p
830
 
AWK
831
 
SET_MAKE
832
 
am__leading_dot
833
 
AMTAR
834
 
am__tar
835
 
am__untar
836
 
MAINTAINER_MODE_TRUE
837
 
MAINTAINER_MODE_FALSE
838
 
MAINT
839
 
build
840
 
build_cpu
841
 
build_vendor
842
 
build_os
843
 
host
844
 
host_cpu
845
 
host_vendor
846
 
host_os
847
 
CC
848
 
CFLAGS
849
 
LDFLAGS
850
 
CPPFLAGS
851
 
ac_ct_CC
852
 
EXEEXT
853
 
OBJEXT
854
 
DEPDIR
855
 
am__include
856
 
am__quote
857
 
AMDEP_TRUE
858
 
AMDEP_FALSE
859
 
AMDEPBACKSLASH
860
 
CCDEPMODE
861
 
am__fastdepCC_TRUE
862
 
am__fastdepCC_FALSE
863
 
CPP
864
 
AR
 
743
gt_needs=
 
744
ac_subst_vars='LTLIBOBJS
 
745
LIBOBJS
 
746
LANGUAGES_SOME_FALSE
 
747
LANGUAGES_SOME_TRUE
 
748
HAVE_W32CE_SYSTEM_FALSE
 
749
HAVE_W32CE_SYSTEM_TRUE
 
750
HAVE_W32_SYSTEM_FALSE
 
751
HAVE_W32_SYSTEM_TRUE
 
752
BUILD_FILEVERSION
 
753
BUILD_TIMESTAMP
 
754
GPG_ERROR_CONFIG_ISUBDIRAFTER
 
755
GPG_ERROR_CONFIG_CFLAGS
 
756
GPG_ERROR_CONFIG_LIBS
 
757
POSUB
 
758
LTLIBINTL
 
759
LIBINTL
 
760
INTLLIBS
 
761
LTLIBICONV
 
762
LIBICONV
 
763
INTL_MACOSX_LIBS
 
764
XGETTEXT_EXTRA_OPTIONS
 
765
MSGMERGE
 
766
XGETTEXT_015
 
767
XGETTEXT
 
768
GMSGFMT_015
 
769
MSGFMT_015
 
770
GMSGFMT
 
771
MSGFMT
 
772
GETTEXT_MACRO_VERSION
 
773
USE_NLS
 
774
CC_FOR_BUILD
865
775
RC
866
 
GREP
867
 
EGREP
 
776
OTOOL64
 
777
OTOOL
 
778
LIPO
 
779
NMEDIT
 
780
DSYMUTIL
 
781
lt_ECHO
 
782
RANLIB
868
783
LN_S
869
 
ECHO
870
 
RANLIB
 
784
NM
 
785
ac_ct_DUMPBIN
 
786
DUMPBIN
 
787
LD
 
788
FGREP
 
789
SED
 
790
LIBTOOL
 
791
OBJDUMP
871
792
DLLTOOL
872
793
AS
873
 
OBJDUMP
874
 
CXX
875
 
CXXFLAGS
876
 
ac_ct_CXX
877
 
CXXDEPMODE
878
 
am__fastdepCXX_TRUE
879
 
am__fastdepCXX_FALSE
880
 
CXXCPP
881
 
F77
882
 
FFLAGS
883
 
ac_ct_F77
884
 
LIBTOOL
885
 
CC_FOR_BUILD
886
 
USE_NLS
887
 
MSGFMT
888
 
GMSGFMT
889
 
MSGFMT_015
890
 
GMSGFMT_015
891
 
XGETTEXT
892
 
XGETTEXT_015
893
 
MSGMERGE
894
 
INTL_MACOSX_LIBS
895
 
LIBICONV
896
 
LTLIBICONV
897
 
INTLLIBS
898
 
LIBINTL
899
 
LTLIBINTL
900
 
POSUB
901
 
GPG_ERROR_CONFIG_LIBS
902
 
GPG_ERROR_CONFIG_CFLAGS
903
 
BUILD_TIMESTAMP
904
 
BUILD_FILEVERSION
905
 
HAVE_W32_SYSTEM_TRUE
906
 
HAVE_W32_SYSTEM_FALSE
907
 
LANGUAGES_SOME_TRUE
908
 
LANGUAGES_SOME_FALSE
909
 
LIBOBJS
910
 
LTLIBOBJS'
 
794
EGREP
 
795
GREP
 
796
AR
 
797
CPP
 
798
am__fastdepCC_FALSE
 
799
am__fastdepCC_TRUE
 
800
CCDEPMODE
 
801
AMDEPBACKSLASH
 
802
AMDEP_FALSE
 
803
AMDEP_TRUE
 
804
am__quote
 
805
am__include
 
806
DEPDIR
 
807
OBJEXT
 
808
EXEEXT
 
809
ac_ct_CC
 
810
CPPFLAGS
 
811
LDFLAGS
 
812
CFLAGS
 
813
CC
 
814
host_os
 
815
host_vendor
 
816
host_cpu
 
817
host
 
818
build_os
 
819
build_vendor
 
820
build_cpu
 
821
build
 
822
MAINT
 
823
MAINTAINER_MODE_FALSE
 
824
MAINTAINER_MODE_TRUE
 
825
am__untar
 
826
am__tar
 
827
AMTAR
 
828
am__leading_dot
 
829
SET_MAKE
 
830
AWK
 
831
mkdir_p
 
832
MKDIR_P
 
833
INSTALL_STRIP_PROGRAM
 
834
STRIP
 
835
install_sh
 
836
MAKEINFO
 
837
AUTOHEADER
 
838
AUTOMAKE
 
839
AUTOCONF
 
840
ACLOCAL
 
841
VERSION
 
842
PACKAGE
 
843
CYGPATH_W
 
844
am__isrc
 
845
INSTALL_DATA
 
846
INSTALL_SCRIPT
 
847
INSTALL_PROGRAM
 
848
LIBGPG_ERROR_LT_REVISION
 
849
LIBGPG_ERROR_LT_AGE
 
850
LIBGPG_ERROR_LT_CURRENT
 
851
target_alias
 
852
host_alias
 
853
build_alias
 
854
LIBS
 
855
ECHO_T
 
856
ECHO_N
 
857
ECHO_C
 
858
DEFS
 
859
mandir
 
860
localedir
 
861
libdir
 
862
psdir
 
863
pdfdir
 
864
dvidir
 
865
htmldir
 
866
infodir
 
867
docdir
 
868
oldincludedir
 
869
includedir
 
870
localstatedir
 
871
sharedstatedir
 
872
sysconfdir
 
873
datadir
 
874
datarootdir
 
875
libexecdir
 
876
sbindir
 
877
bindir
 
878
program_transform_name
 
879
prefix
 
880
exec_prefix
 
881
PACKAGE_URL
 
882
PACKAGE_BUGREPORT
 
883
PACKAGE_STRING
 
884
PACKAGE_VERSION
 
885
PACKAGE_TARNAME
 
886
PACKAGE_NAME
 
887
PATH_SEPARATOR
 
888
SHELL'
911
889
ac_subst_files=''
 
890
ac_user_opts='
 
891
enable_option_checking
 
892
enable_maintainer_mode
 
893
enable_dependency_tracking
 
894
enable_static
 
895
enable_shared
 
896
with_pic
 
897
enable_fast_install
 
898
with_gnu_ld
 
899
enable_libtool_lock
 
900
enable_nls
 
901
enable_rpath
 
902
with_libiconv_prefix
 
903
with_libintl_prefix
 
904
enable_languages
 
905
'
912
906
      ac_precious_vars='build_alias
913
907
host_alias
914
908
target_alias
918
912
LIBS
919
913
CPPFLAGS
920
914
CPP
921
 
CXX
922
 
CXXFLAGS
923
 
CCC
924
 
CXXCPP
925
 
F77
926
 
FFLAGS
927
915
CC_FOR_BUILD'
928
916
 
929
917
 
930
918
# Initialize some variables set by options.
931
919
ac_init_help=
932
920
ac_init_version=false
 
921
ac_unrecognized_opts=
 
922
ac_unrecognized_sep=
933
923
# The variables have the same names as the options, with
934
924
# dashes changed to underlines.
935
925
cache_file=/dev/null
1028
1018
    datarootdir=$ac_optarg ;;
1029
1019
 
1030
1020
  -disable-* | --disable-*)
1031
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1021
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032
1022
    # Reject names that are not valid shell variable names.
1033
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035
 
   { (exit 1); exit 1; }; }
1036
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037
 
    eval enable_$ac_feature=no ;;
 
1023
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1024
      as_fn_error "invalid feature name: $ac_useropt"
 
1025
    ac_useropt_orig=$ac_useropt
 
1026
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1027
    case $ac_user_opts in
 
1028
      *"
 
1029
"enable_$ac_useropt"
 
1030
"*) ;;
 
1031
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1032
         ac_unrecognized_sep=', ';;
 
1033
    esac
 
1034
    eval enable_$ac_useropt=no ;;
1038
1035
 
1039
1036
  -docdir | --docdir | --docdi | --doc | --do)
1040
1037
    ac_prev=docdir ;;
1047
1044
    dvidir=$ac_optarg ;;
1048
1045
 
1049
1046
  -enable-* | --enable-*)
1050
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1047
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051
1048
    # Reject names that are not valid shell variable names.
1052
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054
 
   { (exit 1); exit 1; }; }
1055
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
1049
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1050
      as_fn_error "invalid feature name: $ac_useropt"
 
1051
    ac_useropt_orig=$ac_useropt
 
1052
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1053
    case $ac_user_opts in
 
1054
      *"
 
1055
"enable_$ac_useropt"
 
1056
"*) ;;
 
1057
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1058
         ac_unrecognized_sep=', ';;
 
1059
    esac
 
1060
    eval enable_$ac_useropt=\$ac_optarg ;;
1057
1061
 
1058
1062
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059
1063
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1244
1248
    ac_init_version=: ;;
1245
1249
 
1246
1250
  -with-* | --with-*)
1247
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1251
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248
1252
    # Reject names that are not valid shell variable names.
1249
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251
 
   { (exit 1); exit 1; }; }
1252
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
 
    eval with_$ac_package=\$ac_optarg ;;
 
1253
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1254
      as_fn_error "invalid package name: $ac_useropt"
 
1255
    ac_useropt_orig=$ac_useropt
 
1256
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1257
    case $ac_user_opts in
 
1258
      *"
 
1259
"with_$ac_useropt"
 
1260
"*) ;;
 
1261
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1262
         ac_unrecognized_sep=', ';;
 
1263
    esac
 
1264
    eval with_$ac_useropt=\$ac_optarg ;;
1254
1265
 
1255
1266
  -without-* | --without-*)
1256
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1267
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257
1268
    # Reject names that are not valid shell variable names.
1258
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1260
 
   { (exit 1); exit 1; }; }
1261
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262
 
    eval with_$ac_package=no ;;
 
1269
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1270
      as_fn_error "invalid package name: $ac_useropt"
 
1271
    ac_useropt_orig=$ac_useropt
 
1272
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1273
    case $ac_user_opts in
 
1274
      *"
 
1275
"with_$ac_useropt"
 
1276
"*) ;;
 
1277
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1278
         ac_unrecognized_sep=', ';;
 
1279
    esac
 
1280
    eval with_$ac_useropt=no ;;
1263
1281
 
1264
1282
  --x)
1265
1283
    # Obsolete; use --with-x.
1279
1297
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280
1298
    x_libraries=$ac_optarg ;;
1281
1299
 
1282
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1283
 
Try \`$0 --help' for more information." >&2
1284
 
   { (exit 1); exit 1; }; }
 
1300
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1301
Try \`$0 --help' for more information."
1285
1302
    ;;
1286
1303
 
1287
1304
  *=*)
1288
1305
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289
1306
    # Reject names that are not valid shell variable names.
1290
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292
 
   { (exit 1); exit 1; }; }
 
1307
    case $ac_envvar in #(
 
1308
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1309
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1310
    esac
1293
1311
    eval $ac_envvar=\$ac_optarg
1294
1312
    export $ac_envvar ;;
1295
1313
 
1296
1314
  *)
1297
1315
    # FIXME: should be removed in autoconf 3.0.
1298
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1316
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299
1317
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1318
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301
1319
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302
1320
    ;;
1303
1321
 
1306
1324
 
1307
1325
if test -n "$ac_prev"; then
1308
1326
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1310
 
   { (exit 1); exit 1; }; }
1311
 
fi
1312
 
 
1313
 
# Be sure to have absolute directory names.
 
1327
  as_fn_error "missing argument to $ac_option"
 
1328
fi
 
1329
 
 
1330
if test -n "$ac_unrecognized_opts"; then
 
1331
  case $enable_option_checking in
 
1332
    no) ;;
 
1333
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1334
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1335
  esac
 
1336
fi
 
1337
 
 
1338
# Check all directory arguments for consistency.
1314
1339
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315
1340
                datadir sysconfdir sharedstatedir localstatedir includedir \
1316
1341
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317
1342
                libdir localedir mandir
1318
1343
do
1319
1344
  eval ac_val=\$$ac_var
 
1345
  # Remove trailing slashes.
 
1346
  case $ac_val in
 
1347
    */ )
 
1348
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1349
      eval $ac_var=\$ac_val;;
 
1350
  esac
 
1351
  # Be sure to have absolute directory names.
1320
1352
  case $ac_val in
1321
1353
    [\\/$]* | ?:[\\/]* )  continue;;
1322
1354
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323
1355
  esac
1324
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325
 
   { (exit 1); exit 1; }; }
 
1356
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1326
1357
done
1327
1358
 
1328
1359
# There might be people who depend on the old broken behavior: `$host'
1336
1367
if test "x$host_alias" != x; then
1337
1368
  if test "x$build_alias" = x; then
1338
1369
    cross_compiling=maybe
1339
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1370
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340
1371
    If a cross compiler is detected then cross compile mode will be used." >&2
1341
1372
  elif test "x$build_alias" != "x$host_alias"; then
1342
1373
    cross_compiling=yes
1352
1383
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353
1384
ac_ls_di=`ls -di .` &&
1354
1385
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1356
 
   { (exit 1); exit 1; }; }
 
1386
  as_fn_error "working directory cannot be determined"
1357
1387
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1359
 
   { (exit 1); exit 1; }; }
 
1388
  as_fn_error "pwd does not report name of working directory"
1360
1389
 
1361
1390
 
1362
1391
# Find the source files, if location was not specified.
1363
1392
if test -z "$srcdir"; then
1364
1393
  ac_srcdir_defaulted=yes
1365
1394
  # Try the directory containing this script, then the parent directory.
1366
 
  ac_confdir=`$as_dirname -- "$0" ||
1367
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368
 
         X"$0" : 'X\(//\)[^/]' \| \
1369
 
         X"$0" : 'X\(//\)$' \| \
1370
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371
 
echo X"$0" |
 
1395
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1396
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1397
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1398
         X"$as_myself" : 'X\(//\)$' \| \
 
1399
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1400
$as_echo X"$as_myself" |
1372
1401
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373
1402
            s//\1/
1374
1403
            q
1395
1424
fi
1396
1425
if test ! -r "$srcdir/$ac_unique_file"; then
1397
1426
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399
 
   { (exit 1); exit 1; }; }
 
1427
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1400
1428
fi
1401
1429
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402
1430
ac_abs_confdir=`(
1403
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404
 
   { (exit 1); exit 1; }; }
 
1431
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1405
1432
        pwd)`
1406
1433
# When building in place, set srcdir=.
1407
1434
if test "$ac_abs_confdir" = "$ac_pwd"; then
1427
1454
  # Omit some internal or obsolete options to make the list less imposing.
1428
1455
  # This message is too long to be a string in the A/UX 3.1 sh.
1429
1456
  cat <<_ACEOF
1430
 
\`configure' configures libgpg-error 1.6 to adapt to many kinds of systems.
 
1457
\`configure' configures libgpg-error 1.10 to adapt to many kinds of systems.
1431
1458
 
1432
1459
Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1460
 
1449
1476
 
1450
1477
Installation directories:
1451
1478
  --prefix=PREFIX         install architecture-independent files in PREFIX
1452
 
                          [$ac_default_prefix]
 
1479
                          [$ac_default_prefix]
1453
1480
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454
 
                          [PREFIX]
 
1481
                          [PREFIX]
1455
1482
 
1456
1483
By default, \`make install' will install all the files in
1457
1484
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1461
1488
For better control, use the options below.
1462
1489
 
1463
1490
Fine tuning of the installation directories:
1464
 
  --bindir=DIR           user executables [EPREFIX/bin]
1465
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1467
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1471
 
  --includedir=DIR       C header files [PREFIX/include]
1472
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1476
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1478
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/libgpg-error]
1479
 
  --htmldir=DIR          html documentation [DOCDIR]
1480
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1481
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1482
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1491
  --bindir=DIR            user executables [EPREFIX/bin]
 
1492
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1493
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1494
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1495
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1496
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1497
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1498
  --includedir=DIR        C header files [PREFIX/include]
 
1499
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1500
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1501
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1502
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1503
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1504
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1505
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgpg-error]
 
1506
  --htmldir=DIR           html documentation [DOCDIR]
 
1507
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1508
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1509
  --psdir=DIR             ps documentation [DOCDIR]
1483
1510
_ACEOF
1484
1511
 
1485
1512
  cat <<\_ACEOF
1497
1524
 
1498
1525
if test -n "$ac_init_help"; then
1499
1526
  case $ac_init_help in
1500
 
     short | recursive ) echo "Configuration of libgpg-error 1.6:";;
 
1527
     short | recursive ) echo "Configuration of libgpg-error 1.10:";;
1501
1528
   esac
1502
1529
  cat <<\_ACEOF
1503
1530
 
1504
1531
Optional Features:
 
1532
  --disable-option-checking  ignore unrecognized --enable/--with options
1505
1533
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506
1534
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507
1535
  --enable-maintainer-mode  enable make rules and dependencies not useful
1508
1536
                          (and sometimes confusing) to the casual installer
1509
1537
  --disable-dependency-tracking  speeds up one-time build
1510
1538
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1539
  --enable-static[=PKGS]  build static libraries [default=no]
1511
1540
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1512
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1513
1541
  --enable-fast-install[=PKGS]
1514
1542
                          optimize for fast installation [default=yes]
1515
1543
  --disable-libtool-lock  avoid locking (might break parallel builds)
1520
1548
Optional Packages:
1521
1549
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522
1550
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524
1551
  --with-pic              try to use only PIC/non-PIC objects [default=use
1525
1552
                          both]
1526
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1553
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527
1554
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1528
1555
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1529
1556
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1539
1566
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540
1567
              you have headers in a nonstandard directory <include dir>
1541
1568
  CPP         C preprocessor
1542
 
  CXX         C++ compiler command
1543
 
  CXXFLAGS    C++ compiler flags
1544
 
  CXXCPP      C++ preprocessor
1545
 
  F77         Fortran 77 compiler command
1546
 
  FFLAGS      Fortran 77 compiler flags
1547
1569
  CC_FOR_BUILD
1548
1570
              build system C compiler
1549
1571
 
1558
1580
if test "$ac_init_help" = "recursive"; then
1559
1581
  # If there are subdirs, report their specific --help.
1560
1582
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561
 
    test -d "$ac_dir" || continue
 
1583
    test -d "$ac_dir" ||
 
1584
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1585
      continue
1562
1586
    ac_builddir=.
1563
1587
 
1564
1588
case "$ac_dir" in
1565
1589
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566
1590
*)
1567
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1591
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568
1592
  # A ".." for each directory in $ac_dir_suffix.
1569
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1593
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570
1594
  case $ac_top_builddir_sub in
1571
1595
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572
1596
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602
1626
      echo &&
1603
1627
      $SHELL "$ac_srcdir/configure" --help=recursive
1604
1628
    else
1605
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1629
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606
1630
    fi || ac_status=$?
1607
1631
    cd "$ac_pwd" || { ac_status=$?; break; }
1608
1632
  done
1611
1635
test -n "$ac_init_help" && exit $ac_status
1612
1636
if $ac_init_version; then
1613
1637
  cat <<\_ACEOF
1614
 
libgpg-error configure 1.6
1615
 
generated by GNU Autoconf 2.61
 
1638
libgpg-error configure 1.10
 
1639
generated by GNU Autoconf 2.64
1616
1640
 
1617
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1618
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1641
Copyright (C) 2009 Free Software Foundation, Inc.
1619
1642
This configure script is free software; the Free Software Foundation
1620
1643
gives unlimited permission to copy, distribute and modify it.
1621
1644
_ACEOF
1622
1645
  exit
1623
1646
fi
 
1647
 
 
1648
## ------------------------ ##
 
1649
## Autoconf initialization. ##
 
1650
## ------------------------ ##
 
1651
 
 
1652
# ac_fn_c_try_compile LINENO
 
1653
# --------------------------
 
1654
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1655
ac_fn_c_try_compile ()
 
1656
{
 
1657
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1658
  rm -f conftest.$ac_objext
 
1659
  if { { ac_try="$ac_compile"
 
1660
case "(($ac_try" in
 
1661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1662
  *) ac_try_echo=$ac_try;;
 
1663
esac
 
1664
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1665
$as_echo "$ac_try_echo"; } >&5
 
1666
  (eval "$ac_compile") 2>conftest.err
 
1667
  ac_status=$?
 
1668
  if test -s conftest.err; then
 
1669
    grep -v '^ *+' conftest.err >conftest.er1
 
1670
    cat conftest.er1 >&5
 
1671
    mv -f conftest.er1 conftest.err
 
1672
  fi
 
1673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1674
  test $ac_status = 0; } && {
 
1675
         test -z "$ac_c_werror_flag" ||
 
1676
         test ! -s conftest.err
 
1677
       } && test -s conftest.$ac_objext; then :
 
1678
  ac_retval=0
 
1679
else
 
1680
  $as_echo "$as_me: failed program was:" >&5
 
1681
sed 's/^/| /' conftest.$ac_ext >&5
 
1682
 
 
1683
        ac_retval=1
 
1684
fi
 
1685
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1686
  return $ac_retval
 
1687
 
 
1688
} # ac_fn_c_try_compile
 
1689
 
 
1690
# ac_fn_c_try_cpp LINENO
 
1691
# ----------------------
 
1692
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1693
ac_fn_c_try_cpp ()
 
1694
{
 
1695
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1696
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1697
case "(($ac_try" in
 
1698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1699
  *) ac_try_echo=$ac_try;;
 
1700
esac
 
1701
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1702
$as_echo "$ac_try_echo"; } >&5
 
1703
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1704
  ac_status=$?
 
1705
  if test -s conftest.err; then
 
1706
    grep -v '^ *+' conftest.err >conftest.er1
 
1707
    cat conftest.er1 >&5
 
1708
    mv -f conftest.er1 conftest.err
 
1709
  fi
 
1710
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1711
  test $ac_status = 0; } >/dev/null && {
 
1712
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1713
         test ! -s conftest.err
 
1714
       }; then :
 
1715
  ac_retval=0
 
1716
else
 
1717
  $as_echo "$as_me: failed program was:" >&5
 
1718
sed 's/^/| /' conftest.$ac_ext >&5
 
1719
 
 
1720
    ac_retval=1
 
1721
fi
 
1722
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1723
  return $ac_retval
 
1724
 
 
1725
} # ac_fn_c_try_cpp
 
1726
 
 
1727
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1728
# -------------------------------------------------------
 
1729
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1730
# the include files in INCLUDES and setting the cache variable VAR
 
1731
# accordingly.
 
1732
ac_fn_c_check_header_mongrel ()
 
1733
{
 
1734
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1735
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1737
$as_echo_n "checking for $2... " >&6; }
 
1738
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1739
  $as_echo_n "(cached) " >&6
 
1740
fi
 
1741
eval ac_res=\$$3
 
1742
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1743
$as_echo "$ac_res" >&6; }
 
1744
else
 
1745
  # Is the header compilable?
 
1746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1747
$as_echo_n "checking $2 usability... " >&6; }
 
1748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1749
/* end confdefs.h.  */
 
1750
$4
 
1751
#include <$2>
 
1752
_ACEOF
 
1753
if ac_fn_c_try_compile "$LINENO"; then :
 
1754
  ac_header_compiler=yes
 
1755
else
 
1756
  ac_header_compiler=no
 
1757
fi
 
1758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1760
$as_echo "$ac_header_compiler" >&6; }
 
1761
 
 
1762
# Is the header present?
 
1763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1764
$as_echo_n "checking $2 presence... " >&6; }
 
1765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1766
/* end confdefs.h.  */
 
1767
#include <$2>
 
1768
_ACEOF
 
1769
if ac_fn_c_try_cpp "$LINENO"; then :
 
1770
  ac_header_preproc=yes
 
1771
else
 
1772
  ac_header_preproc=no
 
1773
fi
 
1774
rm -f conftest.err conftest.$ac_ext
 
1775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1776
$as_echo "$ac_header_preproc" >&6; }
 
1777
 
 
1778
# So?  What about this header?
 
1779
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1780
  yes:no: )
 
1781
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1782
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1783
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1784
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1785
    ;;
 
1786
  no:yes:* )
 
1787
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1788
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1789
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1790
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1791
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1792
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1793
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1794
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1795
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1796
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1797
( cat <<\_ASBOX
 
1798
## ---------------------------------- ##
 
1799
## Report this to bug-gnupg@gnupg.org ##
 
1800
## ---------------------------------- ##
 
1801
_ASBOX
 
1802
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1803
    ;;
 
1804
esac
 
1805
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1806
$as_echo_n "checking for $2... " >&6; }
 
1807
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1808
  $as_echo_n "(cached) " >&6
 
1809
else
 
1810
  eval "$3=\$ac_header_compiler"
 
1811
fi
 
1812
eval ac_res=\$$3
 
1813
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1814
$as_echo "$ac_res" >&6; }
 
1815
fi
 
1816
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1817
 
 
1818
} # ac_fn_c_check_header_mongrel
 
1819
 
 
1820
# ac_fn_c_try_run LINENO
 
1821
# ----------------------
 
1822
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1823
# that executables *can* be run.
 
1824
ac_fn_c_try_run ()
 
1825
{
 
1826
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1827
  if { { ac_try="$ac_link"
 
1828
case "(($ac_try" in
 
1829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1830
  *) ac_try_echo=$ac_try;;
 
1831
esac
 
1832
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1833
$as_echo "$ac_try_echo"; } >&5
 
1834
  (eval "$ac_link") 2>&5
 
1835
  ac_status=$?
 
1836
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1837
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1838
  { { case "(($ac_try" in
 
1839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1840
  *) ac_try_echo=$ac_try;;
 
1841
esac
 
1842
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1843
$as_echo "$ac_try_echo"; } >&5
 
1844
  (eval "$ac_try") 2>&5
 
1845
  ac_status=$?
 
1846
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1847
  test $ac_status = 0; }; }; then :
 
1848
  ac_retval=0
 
1849
else
 
1850
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1851
       $as_echo "$as_me: failed program was:" >&5
 
1852
sed 's/^/| /' conftest.$ac_ext >&5
 
1853
 
 
1854
       ac_retval=$ac_status
 
1855
fi
 
1856
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1857
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1858
  return $ac_retval
 
1859
 
 
1860
} # ac_fn_c_try_run
 
1861
 
 
1862
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1863
# -------------------------------------------------------
 
1864
# Tests whether HEADER exists and can be compiled using the include files in
 
1865
# INCLUDES, setting the cache variable VAR accordingly.
 
1866
ac_fn_c_check_header_compile ()
 
1867
{
 
1868
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1869
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1870
$as_echo_n "checking for $2... " >&6; }
 
1871
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1872
  $as_echo_n "(cached) " >&6
 
1873
else
 
1874
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1875
/* end confdefs.h.  */
 
1876
$4
 
1877
#include <$2>
 
1878
_ACEOF
 
1879
if ac_fn_c_try_compile "$LINENO"; then :
 
1880
  eval "$3=yes"
 
1881
else
 
1882
  eval "$3=no"
 
1883
fi
 
1884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1885
fi
 
1886
eval ac_res=\$$3
 
1887
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1888
$as_echo "$ac_res" >&6; }
 
1889
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1890
 
 
1891
} # ac_fn_c_check_header_compile
 
1892
 
 
1893
# ac_fn_c_try_link LINENO
 
1894
# -----------------------
 
1895
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1896
ac_fn_c_try_link ()
 
1897
{
 
1898
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1899
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1900
  if { { ac_try="$ac_link"
 
1901
case "(($ac_try" in
 
1902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1903
  *) ac_try_echo=$ac_try;;
 
1904
esac
 
1905
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1906
$as_echo "$ac_try_echo"; } >&5
 
1907
  (eval "$ac_link") 2>conftest.err
 
1908
  ac_status=$?
 
1909
  if test -s conftest.err; then
 
1910
    grep -v '^ *+' conftest.err >conftest.er1
 
1911
    cat conftest.er1 >&5
 
1912
    mv -f conftest.er1 conftest.err
 
1913
  fi
 
1914
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1915
  test $ac_status = 0; } && {
 
1916
         test -z "$ac_c_werror_flag" ||
 
1917
         test ! -s conftest.err
 
1918
       } && test -s conftest$ac_exeext && {
 
1919
         test "$cross_compiling" = yes ||
 
1920
         $as_test_x conftest$ac_exeext
 
1921
       }; then :
 
1922
  ac_retval=0
 
1923
else
 
1924
  $as_echo "$as_me: failed program was:" >&5
 
1925
sed 's/^/| /' conftest.$ac_ext >&5
 
1926
 
 
1927
        ac_retval=1
 
1928
fi
 
1929
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1930
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1931
  # interfere with the next link command; also delete a directory that is
 
1932
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1933
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1934
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1935
  return $ac_retval
 
1936
 
 
1937
} # ac_fn_c_try_link
 
1938
 
 
1939
# ac_fn_c_check_func LINENO FUNC VAR
 
1940
# ----------------------------------
 
1941
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1942
ac_fn_c_check_func ()
 
1943
{
 
1944
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1945
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1946
$as_echo_n "checking for $2... " >&6; }
 
1947
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1948
  $as_echo_n "(cached) " >&6
 
1949
else
 
1950
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1951
/* end confdefs.h.  */
 
1952
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1953
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1954
#define $2 innocuous_$2
 
1955
 
 
1956
/* System header to define __stub macros and hopefully few prototypes,
 
1957
    which can conflict with char $2 (); below.
 
1958
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1959
    <limits.h> exists even on freestanding compilers.  */
 
1960
 
 
1961
#ifdef __STDC__
 
1962
# include <limits.h>
 
1963
#else
 
1964
# include <assert.h>
 
1965
#endif
 
1966
 
 
1967
#undef $2
 
1968
 
 
1969
/* Override any GCC internal prototype to avoid an error.
 
1970
   Use char because int might match the return type of a GCC
 
1971
   builtin and then its argument prototype would still apply.  */
 
1972
#ifdef __cplusplus
 
1973
extern "C"
 
1974
#endif
 
1975
char $2 ();
 
1976
/* The GNU C library defines this for functions which it implements
 
1977
    to always fail with ENOSYS.  Some functions are actually named
 
1978
    something starting with __ and the normal name is an alias.  */
 
1979
#if defined __stub_$2 || defined __stub___$2
 
1980
choke me
 
1981
#endif
 
1982
 
 
1983
int
 
1984
main ()
 
1985
{
 
1986
return $2 ();
 
1987
  ;
 
1988
  return 0;
 
1989
}
 
1990
_ACEOF
 
1991
if ac_fn_c_try_link "$LINENO"; then :
 
1992
  eval "$3=yes"
 
1993
else
 
1994
  eval "$3=no"
 
1995
fi
 
1996
rm -f core conftest.err conftest.$ac_objext \
 
1997
    conftest$ac_exeext conftest.$ac_ext
 
1998
fi
 
1999
eval ac_res=\$$3
 
2000
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2001
$as_echo "$ac_res" >&6; }
 
2002
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2003
 
 
2004
} # ac_fn_c_check_func
 
2005
 
 
2006
# ac_fn_c_check_decl LINENO SYMBOL VAR
 
2007
# ------------------------------------
 
2008
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
2009
ac_fn_c_check_decl ()
 
2010
{
 
2011
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
 
2013
$as_echo_n "checking whether $2 is declared... " >&6; }
 
2014
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2015
  $as_echo_n "(cached) " >&6
 
2016
else
 
2017
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2018
/* end confdefs.h.  */
 
2019
$4
 
2020
int
 
2021
main ()
 
2022
{
 
2023
#ifndef $2
 
2024
  (void) $2;
 
2025
#endif
 
2026
 
 
2027
  ;
 
2028
  return 0;
 
2029
}
 
2030
_ACEOF
 
2031
if ac_fn_c_try_compile "$LINENO"; then :
 
2032
  eval "$3=yes"
 
2033
else
 
2034
  eval "$3=no"
 
2035
fi
 
2036
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2037
fi
 
2038
eval ac_res=\$$3
 
2039
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2040
$as_echo "$ac_res" >&6; }
 
2041
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2042
 
 
2043
} # ac_fn_c_check_decl
1624
2044
cat >config.log <<_ACEOF
1625
2045
This file contains any messages produced by compilers while
1626
2046
running configure, to aid debugging if configure makes a mistake.
1627
2047
 
1628
 
It was created by libgpg-error $as_me 1.6, which was
1629
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
2048
It was created by libgpg-error $as_me 1.10, which was
 
2049
generated by GNU Autoconf 2.64.  Invocation command line was
1630
2050
 
1631
2051
  $ $0 $@
1632
2052
 
1662
2082
do
1663
2083
  IFS=$as_save_IFS
1664
2084
  test -z "$as_dir" && as_dir=.
1665
 
  echo "PATH: $as_dir"
1666
 
done
 
2085
    $as_echo "PATH: $as_dir"
 
2086
  done
1667
2087
IFS=$as_save_IFS
1668
2088
 
1669
2089
} >&5
1697
2117
    | -silent | --silent | --silen | --sile | --sil)
1698
2118
      continue ;;
1699
2119
    *\'*)
1700
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2120
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1701
2121
    esac
1702
2122
    case $ac_pass in
1703
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2123
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1704
2124
    2)
1705
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2125
      as_fn_append ac_configure_args1 " '$ac_arg'"
1706
2126
      if test $ac_must_keep_next = true; then
1707
2127
        ac_must_keep_next=false # Got value, back to normal.
1708
2128
      else
1718
2138
          -* ) ac_must_keep_next=true ;;
1719
2139
        esac
1720
2140
      fi
1721
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2141
      as_fn_append ac_configure_args " '$ac_arg'"
1722
2142
      ;;
1723
2143
    esac
1724
2144
  done
1725
2145
done
1726
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1727
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2146
{ ac_configure_args0=; unset ac_configure_args0;}
 
2147
{ ac_configure_args1=; unset ac_configure_args1;}
1728
2148
 
1729
2149
# When interrupted or exit'd, cleanup temporary files, and complete
1730
2150
# config.log.  We remove comments because anyway the quotes in there
1749
2169
    case $ac_val in #(
1750
2170
    *${as_nl}*)
1751
2171
      case $ac_var in #(
1752
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1753
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2172
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2173
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1754
2174
      esac
1755
2175
      case $ac_var in #(
1756
2176
      _ | IFS | as_nl) ;; #(
1757
 
      *) $as_unset $ac_var ;;
 
2177
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2178
      *) { eval $ac_var=; unset $ac_var;} ;;
1758
2179
      esac ;;
1759
2180
    esac
1760
2181
  done
1783
2204
    do
1784
2205
      eval ac_val=\$$ac_var
1785
2206
      case $ac_val in
1786
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2207
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787
2208
      esac
1788
 
      echo "$ac_var='\''$ac_val'\''"
 
2209
      $as_echo "$ac_var='\''$ac_val'\''"
1789
2210
    done | sort
1790
2211
    echo
1791
2212
 
1800
2221
      do
1801
2222
        eval ac_val=\$$ac_var
1802
2223
        case $ac_val in
1803
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2224
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804
2225
        esac
1805
 
        echo "$ac_var='\''$ac_val'\''"
 
2226
        $as_echo "$ac_var='\''$ac_val'\''"
1806
2227
      done | sort
1807
2228
      echo
1808
2229
    fi
1818
2239
      echo
1819
2240
    fi
1820
2241
    test "$ac_signal" != 0 &&
1821
 
      echo "$as_me: caught signal $ac_signal"
1822
 
    echo "$as_me: exit $exit_status"
 
2242
      $as_echo "$as_me: caught signal $ac_signal"
 
2243
    $as_echo "$as_me: exit $exit_status"
1823
2244
  } >&5
1824
2245
  rm -f core *.core core.conftest.* &&
1825
2246
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826
2247
    exit $exit_status
1827
2248
' 0
1828
2249
for ac_signal in 1 2 13 15; do
1829
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2250
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1830
2251
done
1831
2252
ac_signal=0
1832
2253
 
1833
2254
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1834
2255
rm -f -r conftest* confdefs.h
1835
2256
 
 
2257
$as_echo "/* confdefs.h */" > confdefs.h
 
2258
 
1836
2259
# Predefined preprocessor variables.
1837
2260
 
1838
2261
cat >>confdefs.h <<_ACEOF
1839
2262
#define PACKAGE_NAME "$PACKAGE_NAME"
1840
2263
_ACEOF
1841
2264
 
1842
 
 
1843
2265
cat >>confdefs.h <<_ACEOF
1844
2266
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1845
2267
_ACEOF
1846
2268
 
1847
 
 
1848
2269
cat >>confdefs.h <<_ACEOF
1849
2270
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1850
2271
_ACEOF
1851
2272
 
1852
 
 
1853
2273
cat >>confdefs.h <<_ACEOF
1854
2274
#define PACKAGE_STRING "$PACKAGE_STRING"
1855
2275
_ACEOF
1856
2276
 
1857
 
 
1858
2277
cat >>confdefs.h <<_ACEOF
1859
2278
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1860
2279
_ACEOF
1861
2280
 
 
2281
cat >>confdefs.h <<_ACEOF
 
2282
#define PACKAGE_URL "$PACKAGE_URL"
 
2283
_ACEOF
 
2284
 
1862
2285
 
1863
2286
# Let the site file select an alternate cache file if it wants to.
1864
 
# Prefer explicitly selected file to automatically selected ones.
 
2287
# Prefer an explicitly selected file to automatically selected ones.
 
2288
ac_site_file1=NONE
 
2289
ac_site_file2=NONE
1865
2290
if test -n "$CONFIG_SITE"; then
1866
 
  set x "$CONFIG_SITE"
 
2291
  ac_site_file1=$CONFIG_SITE
1867
2292
elif test "x$prefix" != xNONE; then
1868
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2293
  ac_site_file1=$prefix/share/config.site
 
2294
  ac_site_file2=$prefix/etc/config.site
1869
2295
else
1870
 
  set x "$ac_default_prefix/share/config.site" \
1871
 
        "$ac_default_prefix/etc/config.site"
 
2296
  ac_site_file1=$ac_default_prefix/share/config.site
 
2297
  ac_site_file2=$ac_default_prefix/etc/config.site
1872
2298
fi
1873
 
shift
1874
 
for ac_site_file
 
2299
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1875
2300
do
 
2301
  test "x$ac_site_file" = xNONE && continue
1876
2302
  if test -r "$ac_site_file"; then
1877
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2303
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2304
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1879
2305
    sed 's/^/| /' "$ac_site_file" >&5
1880
2306
    . "$ac_site_file"
1881
2307
  fi
1885
2311
  # Some versions of bash will fail to source /dev/null (special
1886
2312
  # files actually), so we avoid doing that.
1887
2313
  if test -f "$cache_file"; then
1888
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1889
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2314
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2315
$as_echo "$as_me: loading cache $cache_file" >&6;}
1890
2316
    case $cache_file in
1891
2317
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892
2318
      *)                      . "./$cache_file";;
1893
2319
    esac
1894
2320
  fi
1895
2321
else
1896
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1897
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2322
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2323
$as_echo "$as_me: creating cache $cache_file" >&6;}
1898
2324
  >$cache_file
1899
2325
fi
1900
2326
 
 
2327
gt_needs="$gt_needs "
1901
2328
# Check that the precious variables saved in the cache have kept the same
1902
2329
# value.
1903
2330
ac_cache_corrupted=false
1908
2335
  eval ac_new_val=\$ac_env_${ac_var}_value
1909
2336
  case $ac_old_set,$ac_new_set in
1910
2337
    set,)
1911
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1912
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2338
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2339
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1913
2340
      ac_cache_corrupted=: ;;
1914
2341
    ,set)
1915
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1916
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2342
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2343
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1917
2344
      ac_cache_corrupted=: ;;
1918
2345
    ,);;
1919
2346
    *)
1920
2347
      if test "x$ac_old_val" != "x$ac_new_val"; then
1921
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1923
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1924
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1925
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1926
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1927
 
        ac_cache_corrupted=:
 
2348
        # differences in whitespace do not lead to failure.
 
2349
        ac_old_val_w=`echo x $ac_old_val`
 
2350
        ac_new_val_w=`echo x $ac_new_val`
 
2351
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2352
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2353
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2354
          ac_cache_corrupted=:
 
2355
        else
 
2356
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2357
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2358
          eval $ac_var=\$ac_old_val
 
2359
        fi
 
2360
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2361
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2362
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2363
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1928
2364
      fi;;
1929
2365
  esac
1930
2366
  # Pass precious variables to config.status.
1931
2367
  if test "$ac_new_set" = set; then
1932
2368
    case $ac_new_val in
1933
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2369
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1934
2370
    *) ac_arg=$ac_var=$ac_new_val ;;
1935
2371
    esac
1936
2372
    case " $ac_configure_args " in
1937
2373
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1938
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2374
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1939
2375
    esac
1940
2376
  fi
1941
2377
done
1942
2378
if $ac_cache_corrupted; then
1943
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947
 
   { (exit 1); exit 1; }; }
 
2379
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2380
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2381
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2382
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2383
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1948
2384
fi
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
 
 
1972
 
 
 
2385
## -------------------- ##
 
2386
## Main body of script. ##
 
2387
## -------------------- ##
1973
2388
 
1974
2389
ac_ext=c
1975
2390
ac_cpp='$CPP $CPPFLAGS'
1984
2399
#   (Interfaces added:                  AGE++)
1985
2400
#   (Interfaces removed:                AGE=0)
1986
2401
# Note that added error codes don't constitute an interface change.
1987
 
LIBGPG_ERROR_LT_CURRENT=4
1988
 
LIBGPG_ERROR_LT_AGE=4
 
2402
LIBGPG_ERROR_LT_CURRENT=8
 
2403
LIBGPG_ERROR_LT_AGE=8
1989
2404
LIBGPG_ERROR_LT_REVISION=0
1990
2405
 
1991
2406
 
1995
2410
 
1996
2411
ac_aux_dir=
1997
2412
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998
 
  if test -f "$ac_dir/install-sh"; then
1999
 
    ac_aux_dir=$ac_dir
2000
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2001
 
    break
2002
 
  elif test -f "$ac_dir/install.sh"; then
2003
 
    ac_aux_dir=$ac_dir
2004
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2005
 
    break
2006
 
  elif test -f "$ac_dir/shtool"; then
2007
 
    ac_aux_dir=$ac_dir
2008
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2009
 
    break
2010
 
  fi
 
2413
  for ac_t in install-sh install.sh shtool; do
 
2414
    if test -f "$ac_dir/$ac_t"; then
 
2415
      ac_aux_dir=$ac_dir
 
2416
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2417
      break 2
 
2418
    fi
 
2419
  done
2011
2420
done
2012
2421
if test -z "$ac_aux_dir"; then
2013
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015
 
   { (exit 1); exit 1; }; }
 
2422
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2016
2423
fi
2017
2424
 
2018
2425
# These three variables are undocumented and unsupported,
2037
2444
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038
2445
# OS/2's system install, which has a completely different semantic
2039
2446
# ./install, which can be erroneously created by make from ./install.sh.
2040
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2447
# Reject install programs that cannot install multiple files.
 
2448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2449
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2042
2450
if test -z "$INSTALL"; then
2043
 
if test "${ac_cv_path_install+set}" = set; then
2044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2451
if test "${ac_cv_path_install+set}" = set; then :
 
2452
  $as_echo_n "(cached) " >&6
2045
2453
else
2046
2454
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047
2455
for as_dir in $PATH
2048
2456
do
2049
2457
  IFS=$as_save_IFS
2050
2458
  test -z "$as_dir" && as_dir=.
2051
 
  # Account for people who put trailing slashes in PATH elements.
2052
 
case $as_dir/ in
2053
 
  ./ | .// | /cC/* | \
 
2459
    # Account for people who put trailing slashes in PATH elements.
 
2460
case $as_dir/ in #((
 
2461
  ./ | .// | /[cC]/* | \
2054
2462
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2463
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2056
2464
  /usr/ucb/* ) ;;
2057
2465
  *)
2058
2466
    # OSF1 and SCO ODT 3.0 have their own names for install.
2070
2478
            # program-specific install script used by HP pwplus--don't use.
2071
2479
            :
2072
2480
          else
2073
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074
 
            break 3
 
2481
            rm -rf conftest.one conftest.two conftest.dir
 
2482
            echo one > conftest.one
 
2483
            echo two > conftest.two
 
2484
            mkdir conftest.dir
 
2485
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2486
              test -s conftest.one && test -s conftest.two &&
 
2487
              test -s conftest.dir/conftest.one &&
 
2488
              test -s conftest.dir/conftest.two
 
2489
            then
 
2490
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2491
              break 3
 
2492
            fi
2075
2493
          fi
2076
2494
        fi
2077
2495
      done
2078
2496
    done
2079
2497
    ;;
2080
2498
esac
2081
 
done
 
2499
 
 
2500
  done
2082
2501
IFS=$as_save_IFS
2083
2502
 
 
2503
rm -rf conftest.one conftest.two conftest.dir
2084
2504
 
2085
2505
fi
2086
2506
  if test "${ac_cv_path_install+set}" = set; then
2093
2513
    INSTALL=$ac_install_sh
2094
2514
  fi
2095
2515
fi
2096
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2097
 
echo "${ECHO_T}$INSTALL" >&6; }
 
2516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2517
$as_echo "$INSTALL" >&6; }
2098
2518
 
2099
2519
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100
2520
# It thinks the first close brace ends the variable substitution.
2104
2524
 
2105
2525
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
2526
 
2107
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2528
$as_echo_n "checking whether build environment is sane... " >&6; }
2109
2529
# Just in case
2110
2530
sleep 1
2111
2531
echo timestamp > conftest.file
2128
2548
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2129
2549
      # broken ls alias from the environment.  This has actually
2130
2550
      # happened.  Such a system could not be considered "sane".
2131
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2132
 
alias in your environment" >&5
2133
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2134
 
alias in your environment" >&2;}
2135
 
   { (exit 1); exit 1; }; }
 
2551
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2552
alias in your environment" "$LINENO" 5
2136
2553
   fi
2137
2554
 
2138
2555
   test "$2" = conftest.file
2141
2558
   # Ok.
2142
2559
   :
2143
2560
else
2144
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145
 
Check your system clock" >&5
2146
 
echo "$as_me: error: newly created file is older than distributed files!
2147
 
Check your system clock" >&2;}
2148
 
   { (exit 1); exit 1; }; }
 
2561
   as_fn_error "newly created file is older than distributed files!
 
2562
Check your system clock" "$LINENO" 5
2149
2563
fi
2150
 
{ echo "$as_me:$LINENO: result: yes" >&5
2151
 
echo "${ECHO_T}yes" >&6; }
 
2564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2565
$as_echo "yes" >&6; }
2152
2566
test "$program_prefix" != NONE &&
2153
2567
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154
2568
# Use a double $ so make ignores it.
2155
2569
test "$program_suffix" != NONE &&
2156
2570
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157
 
# Double any \ or $.  echo might interpret backslashes.
 
2571
# Double any \ or $.
2158
2572
# By default was `s,x,x', remove it if useless.
2159
 
cat <<\_ACEOF >conftest.sed
2160
 
s/[\\$]/&&/g;s/;s,x,x,$//
2161
 
_ACEOF
2162
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2163
 
rm -f conftest.sed
 
2573
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2574
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2164
2575
 
2165
2576
# expand $ac_aux_dir to an absolute path
2166
2577
am_aux_dir=`cd $ac_aux_dir && pwd`
2171
2582
  am_missing_run="$MISSING --run "
2172
2583
else
2173
2584
  am_missing_run=
2174
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2585
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2586
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2176
2587
fi
2177
2588
 
2178
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2179
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2590
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2180
2591
if test -z "$MKDIR_P"; then
2181
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2182
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2592
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2593
  $as_echo_n "(cached) " >&6
2183
2594
else
2184
2595
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185
2596
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2186
2597
do
2187
2598
  IFS=$as_save_IFS
2188
2599
  test -z "$as_dir" && as_dir=.
2189
 
  for ac_prog in mkdir gmkdir; do
 
2600
    for ac_prog in mkdir gmkdir; do
2190
2601
         for ac_exec_ext in '' $ac_executable_extensions; do
2191
2602
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2192
2603
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2198
2609
           esac
2199
2610
         done
2200
2611
       done
2201
 
done
 
2612
  done
2202
2613
IFS=$as_save_IFS
2203
2614
 
2204
2615
fi
2214
2625
    MKDIR_P="$ac_install_sh -d"
2215
2626
  fi
2216
2627
fi
2217
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2218
 
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2629
$as_echo "$MKDIR_P" >&6; }
2219
2630
 
2220
2631
mkdir_p="$MKDIR_P"
2221
2632
case $mkdir_p in
2227
2638
do
2228
2639
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2229
2640
set dummy $ac_prog; ac_word=$2
2230
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2231
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232
 
if test "${ac_cv_prog_AWK+set}" = set; then
2233
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2642
$as_echo_n "checking for $ac_word... " >&6; }
 
2643
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2644
  $as_echo_n "(cached) " >&6
2234
2645
else
2235
2646
  if test -n "$AWK"; then
2236
2647
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2240
2651
do
2241
2652
  IFS=$as_save_IFS
2242
2653
  test -z "$as_dir" && as_dir=.
2243
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2654
    for ac_exec_ext in '' $ac_executable_extensions; do
2244
2655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245
2656
    ac_cv_prog_AWK="$ac_prog"
2246
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2657
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2247
2658
    break 2
2248
2659
  fi
2249
2660
done
2250
 
done
 
2661
  done
2251
2662
IFS=$as_save_IFS
2252
2663
 
2253
2664
fi
2254
2665
fi
2255
2666
AWK=$ac_cv_prog_AWK
2256
2667
if test -n "$AWK"; then
2257
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2258
 
echo "${ECHO_T}$AWK" >&6; }
 
2668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2669
$as_echo "$AWK" >&6; }
2259
2670
else
2260
 
  { echo "$as_me:$LINENO: result: no" >&5
2261
 
echo "${ECHO_T}no" >&6; }
 
2671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2672
$as_echo "no" >&6; }
2262
2673
fi
2263
2674
 
2264
2675
 
2265
2676
  test -n "$AWK" && break
2266
2677
done
2267
2678
 
2268
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2269
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2270
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2271
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2272
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2680
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2681
set x ${MAKE-make}
 
2682
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2683
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2684
  $as_echo_n "(cached) " >&6
2273
2685
else
2274
2686
  cat >conftest.make <<\_ACEOF
2275
2687
SHELL = /bin/sh
2286
2698
rm -f conftest.make
2287
2699
fi
2288
2700
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2289
 
  { echo "$as_me:$LINENO: result: yes" >&5
2290
 
echo "${ECHO_T}yes" >&6; }
 
2701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2702
$as_echo "yes" >&6; }
2291
2703
  SET_MAKE=
2292
2704
else
2293
 
  { echo "$as_me:$LINENO: result: no" >&5
2294
 
echo "${ECHO_T}no" >&6; }
 
2705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2706
$as_echo "no" >&6; }
2295
2707
  SET_MAKE="MAKE=${MAKE-make}"
2296
2708
fi
2297
2709
 
2310
2722
  am__isrc=' -I$(srcdir)'
2311
2723
  # test to see if srcdir already configured
2312
2724
  if test -f $srcdir/config.status; then
2313
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2314
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2315
 
   { (exit 1); exit 1; }; }
 
2725
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2316
2726
  fi
2317
2727
fi
2318
2728
 
2328
2738
 
2329
2739
# Define the identity of the package.
2330
2740
 PACKAGE='libgpg-error'
2331
 
 VERSION='1.6'
 
2741
 VERSION='1.10'
2332
2742
 
2333
2743
 
2334
2744
cat >>confdefs.h <<_ACEOF
2366
2776
  if test -n "$ac_tool_prefix"; then
2367
2777
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368
2778
set dummy ${ac_tool_prefix}strip; ac_word=$2
2369
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2370
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2780
$as_echo_n "checking for $ac_word... " >&6; }
 
2781
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2782
  $as_echo_n "(cached) " >&6
2373
2783
else
2374
2784
  if test -n "$STRIP"; then
2375
2785
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2379
2789
do
2380
2790
  IFS=$as_save_IFS
2381
2791
  test -z "$as_dir" && as_dir=.
2382
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2792
    for ac_exec_ext in '' $ac_executable_extensions; do
2383
2793
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384
2794
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2795
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386
2796
    break 2
2387
2797
  fi
2388
2798
done
2389
 
done
 
2799
  done
2390
2800
IFS=$as_save_IFS
2391
2801
 
2392
2802
fi
2393
2803
fi
2394
2804
STRIP=$ac_cv_prog_STRIP
2395
2805
if test -n "$STRIP"; then
2396
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2397
 
echo "${ECHO_T}$STRIP" >&6; }
 
2806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2807
$as_echo "$STRIP" >&6; }
2398
2808
else
2399
 
  { echo "$as_me:$LINENO: result: no" >&5
2400
 
echo "${ECHO_T}no" >&6; }
 
2809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2810
$as_echo "no" >&6; }
2401
2811
fi
2402
2812
 
2403
2813
 
2406
2816
  ac_ct_STRIP=$STRIP
2407
2817
  # Extract the first word of "strip", so it can be a program name with args.
2408
2818
set dummy strip; ac_word=$2
2409
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2410
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2820
$as_echo_n "checking for $ac_word... " >&6; }
 
2821
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2822
  $as_echo_n "(cached) " >&6
2413
2823
else
2414
2824
  if test -n "$ac_ct_STRIP"; then
2415
2825
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2419
2829
do
2420
2830
  IFS=$as_save_IFS
2421
2831
  test -z "$as_dir" && as_dir=.
2422
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2832
    for ac_exec_ext in '' $ac_executable_extensions; do
2423
2833
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424
2834
    ac_cv_prog_ac_ct_STRIP="strip"
2425
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2835
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426
2836
    break 2
2427
2837
  fi
2428
2838
done
2429
 
done
 
2839
  done
2430
2840
IFS=$as_save_IFS
2431
2841
 
2432
2842
fi
2433
2843
fi
2434
2844
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435
2845
if test -n "$ac_ct_STRIP"; then
2436
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2437
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2847
$as_echo "$ac_ct_STRIP" >&6; }
2438
2848
else
2439
 
  { echo "$as_me:$LINENO: result: no" >&5
2440
 
echo "${ECHO_T}no" >&6; }
 
2849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2850
$as_echo "no" >&6; }
2441
2851
fi
2442
2852
 
2443
2853
  if test "x$ac_ct_STRIP" = x; then
2445
2855
  else
2446
2856
    case $cross_compiling:$ac_tool_warned in
2447
2857
yes:)
2448
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449
 
whose name does not start with the host triplet.  If you think this
2450
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2451
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452
 
whose name does not start with the host triplet.  If you think this
2453
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2858
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2859
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2454
2860
ac_tool_warned=yes ;;
2455
2861
esac
2456
2862
    STRIP=$ac_ct_STRIP
2474
2880
 
2475
2881
 
2476
2882
 
2477
 
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2478
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2884
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2479
2885
    # Check whether --enable-maintainer-mode was given.
2480
 
if test "${enable_maintainer_mode+set}" = set; then
 
2886
if test "${enable_maintainer_mode+set}" = set; then :
2481
2887
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2482
2888
else
2483
2889
  USE_MAINTAINER_MODE=no
2484
2890
fi
2485
2891
 
2486
 
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2487
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2893
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2488
2894
   if test $USE_MAINTAINER_MODE = yes; then
2489
2895
  MAINTAINER_MODE_TRUE=
2490
2896
  MAINTAINER_MODE_FALSE='#'
2500
2906
ac_config_headers="$ac_config_headers config.h"
2501
2907
 
2502
2908
 
 
2909
 
2503
2910
# We need to know about the host architecture to avoid spurious
2504
2911
# warnings.
2505
2912
# Make sure we can run config.sub.
2506
2913
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2507
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2508
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2509
 
   { (exit 1); exit 1; }; }
 
2914
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2510
2915
 
2511
 
{ echo "$as_me:$LINENO: checking build system type" >&5
2512
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2513
 
if test "${ac_cv_build+set}" = set; then
2514
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2917
$as_echo_n "checking build system type... " >&6; }
 
2918
if test "${ac_cv_build+set}" = set; then :
 
2919
  $as_echo_n "(cached) " >&6
2515
2920
else
2516
2921
  ac_build_alias=$build_alias
2517
2922
test "x$ac_build_alias" = x &&
2518
2923
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2519
2924
test "x$ac_build_alias" = x &&
2520
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2521
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2522
 
   { (exit 1); exit 1; }; }
 
2925
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2523
2926
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2524
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2525
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2526
 
   { (exit 1); exit 1; }; }
 
2927
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2527
2928
 
2528
2929
fi
2529
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2530
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2931
$as_echo "$ac_cv_build" >&6; }
2531
2932
case $ac_cv_build in
2532
2933
*-*-*) ;;
2533
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2534
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2535
 
   { (exit 1); exit 1; }; };;
 
2934
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2536
2935
esac
2537
2936
build=$ac_cv_build
2538
2937
ac_save_IFS=$IFS; IFS='-'
2548
2947
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549
2948
 
2550
2949
 
2551
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2552
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2553
 
if test "${ac_cv_host+set}" = set; then
2554
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2951
$as_echo_n "checking host system type... " >&6; }
 
2952
if test "${ac_cv_host+set}" = set; then :
 
2953
  $as_echo_n "(cached) " >&6
2555
2954
else
2556
2955
  if test "x$host_alias" = x; then
2557
2956
  ac_cv_host=$ac_cv_build
2558
2957
else
2559
2958
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2560
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2561
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2562
 
   { (exit 1); exit 1; }; }
 
2959
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2563
2960
fi
2564
2961
 
2565
2962
fi
2566
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2567
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2964
$as_echo "$ac_cv_host" >&6; }
2568
2965
case $ac_cv_host in
2569
2966
*-*-*) ;;
2570
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2571
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2572
 
   { (exit 1); exit 1; }; };;
 
2967
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2573
2968
esac
2574
2969
host=$ac_cv_host
2575
2970
ac_save_IFS=$IFS; IFS='-'
2589
2984
 
2590
2985
 
2591
2986
 
2592
 
        { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2593
 
echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2594
 
        { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2595
 
echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
 
2987
        { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
 
2988
$as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
 
2989
        { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
 
2990
$as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2596
2991
        hostname=`hostname`
2597
2992
        if test "$hostname"; then
2598
 
           { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2599
 
echo "$as_me: autobuild hostname... $hostname" >&6;}
 
2993
           { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
 
2994
$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2600
2995
        fi
2601
2996
 
2602
2997
        date=`date +%Y%m%d-%H%M%S`
2604
2999
           date=`date`
2605
3000
        fi
2606
3001
        if test "$date"; then
2607
 
           { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2608
 
echo "$as_me: autobuild timestamp... $date" >&6;}
 
3002
           { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
 
3003
$as_echo "$as_me: autobuild timestamp... $date" >&6;}
2609
3004
        fi
2610
3005
 
2611
3006
 
2618
3013
if test -n "$ac_tool_prefix"; then
2619
3014
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620
3015
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623
 
if test "${ac_cv_prog_CC+set}" = set; then
2624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3017
$as_echo_n "checking for $ac_word... " >&6; }
 
3018
if test "${ac_cv_prog_CC+set}" = set; then :
 
3019
  $as_echo_n "(cached) " >&6
2625
3020
else
2626
3021
  if test -n "$CC"; then
2627
3022
  ac_cv_prog_CC="$CC" # Let the user override the test.
2631
3026
do
2632
3027
  IFS=$as_save_IFS
2633
3028
  test -z "$as_dir" && as_dir=.
2634
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3029
    for ac_exec_ext in '' $ac_executable_extensions; do
2635
3030
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636
3031
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3032
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638
3033
    break 2
2639
3034
  fi
2640
3035
done
2641
 
done
 
3036
  done
2642
3037
IFS=$as_save_IFS
2643
3038
 
2644
3039
fi
2645
3040
fi
2646
3041
CC=$ac_cv_prog_CC
2647
3042
if test -n "$CC"; then
2648
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2649
 
echo "${ECHO_T}$CC" >&6; }
 
3043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3044
$as_echo "$CC" >&6; }
2650
3045
else
2651
 
  { echo "$as_me:$LINENO: result: no" >&5
2652
 
echo "${ECHO_T}no" >&6; }
 
3046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3047
$as_echo "no" >&6; }
2653
3048
fi
2654
3049
 
2655
3050
 
2658
3053
  ac_ct_CC=$CC
2659
3054
  # Extract the first word of "gcc", so it can be a program name with args.
2660
3055
set dummy gcc; ac_word=$2
2661
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3057
$as_echo_n "checking for $ac_word... " >&6; }
 
3058
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3059
  $as_echo_n "(cached) " >&6
2665
3060
else
2666
3061
  if test -n "$ac_ct_CC"; then
2667
3062
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671
3066
do
2672
3067
  IFS=$as_save_IFS
2673
3068
  test -z "$as_dir" && as_dir=.
2674
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3069
    for ac_exec_ext in '' $ac_executable_extensions; do
2675
3070
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676
3071
    ac_cv_prog_ac_ct_CC="gcc"
2677
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3072
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678
3073
    break 2
2679
3074
  fi
2680
3075
done
2681
 
done
 
3076
  done
2682
3077
IFS=$as_save_IFS
2683
3078
 
2684
3079
fi
2685
3080
fi
2686
3081
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687
3082
if test -n "$ac_ct_CC"; then
2688
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3084
$as_echo "$ac_ct_CC" >&6; }
2690
3085
else
2691
 
  { echo "$as_me:$LINENO: result: no" >&5
2692
 
echo "${ECHO_T}no" >&6; }
 
3086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3087
$as_echo "no" >&6; }
2693
3088
fi
2694
3089
 
2695
3090
  if test "x$ac_ct_CC" = x; then
2697
3092
  else
2698
3093
    case $cross_compiling:$ac_tool_warned in
2699
3094
yes:)
2700
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701
 
whose name does not start with the host triplet.  If you think this
2702
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2703
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704
 
whose name does not start with the host triplet.  If you think this
2705
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3096
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706
3097
ac_tool_warned=yes ;;
2707
3098
esac
2708
3099
    CC=$ac_ct_CC
2715
3106
          if test -n "$ac_tool_prefix"; then
2716
3107
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717
3108
set dummy ${ac_tool_prefix}cc; ac_word=$2
2718
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2719
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720
 
if test "${ac_cv_prog_CC+set}" = set; then
2721
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3110
$as_echo_n "checking for $ac_word... " >&6; }
 
3111
if test "${ac_cv_prog_CC+set}" = set; then :
 
3112
  $as_echo_n "(cached) " >&6
2722
3113
else
2723
3114
  if test -n "$CC"; then
2724
3115
  ac_cv_prog_CC="$CC" # Let the user override the test.
2728
3119
do
2729
3120
  IFS=$as_save_IFS
2730
3121
  test -z "$as_dir" && as_dir=.
2731
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3122
    for ac_exec_ext in '' $ac_executable_extensions; do
2732
3123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733
3124
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2734
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735
3126
    break 2
2736
3127
  fi
2737
3128
done
2738
 
done
 
3129
  done
2739
3130
IFS=$as_save_IFS
2740
3131
 
2741
3132
fi
2742
3133
fi
2743
3134
CC=$ac_cv_prog_CC
2744
3135
if test -n "$CC"; then
2745
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2746
 
echo "${ECHO_T}$CC" >&6; }
 
3136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3137
$as_echo "$CC" >&6; }
2747
3138
else
2748
 
  { echo "$as_me:$LINENO: result: no" >&5
2749
 
echo "${ECHO_T}no" >&6; }
 
3139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3140
$as_echo "no" >&6; }
2750
3141
fi
2751
3142
 
2752
3143
 
2755
3146
if test -z "$CC"; then
2756
3147
  # Extract the first word of "cc", so it can be a program name with args.
2757
3148
set dummy cc; ac_word=$2
2758
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2759
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760
 
if test "${ac_cv_prog_CC+set}" = set; then
2761
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3150
$as_echo_n "checking for $ac_word... " >&6; }
 
3151
if test "${ac_cv_prog_CC+set}" = set; then :
 
3152
  $as_echo_n "(cached) " >&6
2762
3153
else
2763
3154
  if test -n "$CC"; then
2764
3155
  ac_cv_prog_CC="$CC" # Let the user override the test.
2769
3160
do
2770
3161
  IFS=$as_save_IFS
2771
3162
  test -z "$as_dir" && as_dir=.
2772
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3163
    for ac_exec_ext in '' $ac_executable_extensions; do
2773
3164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774
3165
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775
3166
       ac_prog_rejected=yes
2776
3167
       continue
2777
3168
     fi
2778
3169
    ac_cv_prog_CC="cc"
2779
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3170
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780
3171
    break 2
2781
3172
  fi
2782
3173
done
2783
 
done
 
3174
  done
2784
3175
IFS=$as_save_IFS
2785
3176
 
2786
3177
if test $ac_prog_rejected = yes; then
2799
3190
fi
2800
3191
CC=$ac_cv_prog_CC
2801
3192
if test -n "$CC"; then
2802
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2803
 
echo "${ECHO_T}$CC" >&6; }
 
3193
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3194
$as_echo "$CC" >&6; }
2804
3195
else
2805
 
  { echo "$as_me:$LINENO: result: no" >&5
2806
 
echo "${ECHO_T}no" >&6; }
 
3196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3197
$as_echo "no" >&6; }
2807
3198
fi
2808
3199
 
2809
3200
 
2814
3205
  do
2815
3206
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816
3207
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2818
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819
 
if test "${ac_cv_prog_CC+set}" = set; then
2820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3209
$as_echo_n "checking for $ac_word... " >&6; }
 
3210
if test "${ac_cv_prog_CC+set}" = set; then :
 
3211
  $as_echo_n "(cached) " >&6
2821
3212
else
2822
3213
  if test -n "$CC"; then
2823
3214
  ac_cv_prog_CC="$CC" # Let the user override the test.
2827
3218
do
2828
3219
  IFS=$as_save_IFS
2829
3220
  test -z "$as_dir" && as_dir=.
2830
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3221
    for ac_exec_ext in '' $ac_executable_extensions; do
2831
3222
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832
3223
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3224
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834
3225
    break 2
2835
3226
  fi
2836
3227
done
2837
 
done
 
3228
  done
2838
3229
IFS=$as_save_IFS
2839
3230
 
2840
3231
fi
2841
3232
fi
2842
3233
CC=$ac_cv_prog_CC
2843
3234
if test -n "$CC"; then
2844
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2845
 
echo "${ECHO_T}$CC" >&6; }
 
3235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3236
$as_echo "$CC" >&6; }
2846
3237
else
2847
 
  { echo "$as_me:$LINENO: result: no" >&5
2848
 
echo "${ECHO_T}no" >&6; }
 
3238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3239
$as_echo "no" >&6; }
2849
3240
fi
2850
3241
 
2851
3242
 
2858
3249
do
2859
3250
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2860
3251
set dummy $ac_prog; ac_word=$2
2861
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2862
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3253
$as_echo_n "checking for $ac_word... " >&6; }
 
3254
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3255
  $as_echo_n "(cached) " >&6
2865
3256
else
2866
3257
  if test -n "$ac_ct_CC"; then
2867
3258
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871
3262
do
2872
3263
  IFS=$as_save_IFS
2873
3264
  test -z "$as_dir" && as_dir=.
2874
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3265
    for ac_exec_ext in '' $ac_executable_extensions; do
2875
3266
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876
3267
    ac_cv_prog_ac_ct_CC="$ac_prog"
2877
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3268
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878
3269
    break 2
2879
3270
  fi
2880
3271
done
2881
 
done
 
3272
  done
2882
3273
IFS=$as_save_IFS
2883
3274
 
2884
3275
fi
2885
3276
fi
2886
3277
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887
3278
if test -n "$ac_ct_CC"; then
2888
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3280
$as_echo "$ac_ct_CC" >&6; }
2890
3281
else
2891
 
  { echo "$as_me:$LINENO: result: no" >&5
2892
 
echo "${ECHO_T}no" >&6; }
 
3282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3283
$as_echo "no" >&6; }
2893
3284
fi
2894
3285
 
2895
3286
 
2901
3292
  else
2902
3293
    case $cross_compiling:$ac_tool_warned in
2903
3294
yes:)
2904
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905
 
whose name does not start with the host triplet.  If you think this
2906
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2907
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908
 
whose name does not start with the host triplet.  If you think this
2909
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3295
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3296
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910
3297
ac_tool_warned=yes ;;
2911
3298
esac
2912
3299
    CC=$ac_ct_CC
2916
3303
fi
2917
3304
 
2918
3305
 
2919
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2920
 
See \`config.log' for more details." >&5
2921
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2922
 
See \`config.log' for more details." >&2;}
2923
 
   { (exit 1); exit 1; }; }
 
3306
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3308
as_fn_error "no acceptable C compiler found in \$PATH
 
3309
See \`config.log' for more details." "$LINENO" 5; }
2924
3310
 
2925
3311
# Provide some information about the compiler.
2926
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2927
 
ac_compiler=`set X $ac_compile; echo $2`
2928
 
{ (ac_try="$ac_compiler --version >&5"
2929
 
case "(($ac_try" in
2930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931
 
  *) ac_try_echo=$ac_try;;
2932
 
esac
2933
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934
 
  (eval "$ac_compiler --version >&5") 2>&5
2935
 
  ac_status=$?
2936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937
 
  (exit $ac_status); }
2938
 
{ (ac_try="$ac_compiler -v >&5"
2939
 
case "(($ac_try" in
2940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941
 
  *) ac_try_echo=$ac_try;;
2942
 
esac
2943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944
 
  (eval "$ac_compiler -v >&5") 2>&5
2945
 
  ac_status=$?
2946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947
 
  (exit $ac_status); }
2948
 
{ (ac_try="$ac_compiler -V >&5"
2949
 
case "(($ac_try" in
2950
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951
 
  *) ac_try_echo=$ac_try;;
2952
 
esac
2953
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954
 
  (eval "$ac_compiler -V >&5") 2>&5
2955
 
  ac_status=$?
2956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957
 
  (exit $ac_status); }
 
3312
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3313
set X $ac_compile
 
3314
ac_compiler=$2
 
3315
for ac_option in --version -v -V -qversion; do
 
3316
  { { ac_try="$ac_compiler $ac_option >&5"
 
3317
case "(($ac_try" in
 
3318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3319
  *) ac_try_echo=$ac_try;;
 
3320
esac
 
3321
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3322
$as_echo "$ac_try_echo"; } >&5
 
3323
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3324
  ac_status=$?
 
3325
  if test -s conftest.err; then
 
3326
    sed '10a\
 
3327
... rest of stderr output deleted ...
 
3328
         10q' conftest.err >conftest.er1
 
3329
    cat conftest.er1 >&5
 
3330
    rm -f conftest.er1 conftest.err
 
3331
  fi
 
3332
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3333
  test $ac_status = 0; }
 
3334
done
2958
3335
 
2959
 
cat >conftest.$ac_ext <<_ACEOF
2960
 
/* confdefs.h.  */
2961
 
_ACEOF
2962
 
cat confdefs.h >>conftest.$ac_ext
2963
 
cat >>conftest.$ac_ext <<_ACEOF
 
3336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964
3337
/* end confdefs.h.  */
2965
 
 
 
3338
#include <stdio.h>
2966
3339
int
2967
3340
main ()
2968
3341
{
 
3342
FILE *f = fopen ("conftest.out", "w");
 
3343
 return ferror (f) || fclose (f) != 0;
2969
3344
 
2970
3345
  ;
2971
3346
  return 0;
2972
3347
}
2973
3348
_ACEOF
2974
3349
ac_clean_files_save=$ac_clean_files
2975
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3350
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2976
3351
# Try to create an executable without -o first, disregard a.out.
2977
3352
# It will help us diagnose broken compilers, and finding out an intuition
2978
3353
# of exeext.
2979
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2980
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2981
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982
 
#
2983
 
# List of possible output files, starting from the most likely.
2984
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2985
 
# only as a last resort.  b.out is created by i960 compilers.
2986
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2987
 
#
2988
 
# The IRIX 6 linker writes into existing files which may not be
2989
 
# executable, retaining their permissions.  Remove them first so a
2990
 
# subsequent execution test works.
 
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3355
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3356
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3357
 
 
3358
# The possible output files:
 
3359
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3360
 
2991
3361
ac_rmfiles=
2992
3362
for ac_file in $ac_files
2993
3363
do
2994
3364
  case $ac_file in
2995
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3365
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996
3366
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997
3367
  esac
2998
3368
done
2999
3369
rm -f $ac_rmfiles
3000
3370
 
3001
 
if { (ac_try="$ac_link_default"
 
3371
if { { ac_try="$ac_link_default"
3002
3372
case "(($ac_try" in
3003
3373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004
3374
  *) ac_try_echo=$ac_try;;
3005
3375
esac
3006
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3376
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3377
$as_echo "$ac_try_echo"; } >&5
3007
3378
  (eval "$ac_link_default") 2>&5
3008
3379
  ac_status=$?
3009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010
 
  (exit $ac_status); }; then
 
3380
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3381
  test $ac_status = 0; }; then :
3011
3382
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012
3383
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013
3384
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3017
3388
do
3018
3389
  test -f "$ac_file" || continue
3019
3390
  case $ac_file in
3020
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3391
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021
3392
        ;;
3022
3393
    [ab].out )
3023
3394
        # We found the default executable, but exeext='' is most
3024
3395
        # certainly right.
3025
3396
        break;;
3026
3397
    *.* )
3027
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3398
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028
3399
        then :; else
3029
3400
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030
3401
        fi
3043
3414
else
3044
3415
  ac_file=''
3045
3416
fi
3046
 
 
3047
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3048
 
echo "${ECHO_T}$ac_file" >&6; }
3049
 
if test -z "$ac_file"; then
3050
 
  echo "$as_me: failed program was:" >&5
 
3417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3418
$as_echo "$ac_file" >&6; }
 
3419
if test -z "$ac_file"; then :
 
3420
  $as_echo "$as_me: failed program was:" >&5
3051
3421
sed 's/^/| /' conftest.$ac_ext >&5
3052
3422
 
3053
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3054
 
See \`config.log' for more details." >&5
3055
 
echo "$as_me: error: C compiler cannot create executables
3056
 
See \`config.log' for more details." >&2;}
3057
 
   { (exit 77); exit 77; }; }
 
3423
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3424
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3425
{ as_fn_set_status 77
 
3426
as_fn_error "C compiler cannot create executables
 
3427
See \`config.log' for more details." "$LINENO" 5; }; }
3058
3428
fi
3059
 
 
3060
3429
ac_exeext=$ac_cv_exeext
3061
3430
 
3062
3431
# Check that the compiler produces executables we can run.  If not, either
3063
3432
# the compiler is broken, or we cross compile.
3064
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3065
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3066
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3434
$as_echo_n "checking whether the C compiler works... " >&6; }
3067
3435
# If not cross compiling, check that we can run a simple program.
3068
3436
if test "$cross_compiling" != yes; then
3069
3437
  if { ac_try='./$ac_file'
3070
 
  { (case "(($ac_try" in
 
3438
  { { case "(($ac_try" in
3071
3439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072
3440
  *) ac_try_echo=$ac_try;;
3073
3441
esac
3074
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3442
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3443
$as_echo "$ac_try_echo"; } >&5
3075
3444
  (eval "$ac_try") 2>&5
3076
3445
  ac_status=$?
3077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078
 
  (exit $ac_status); }; }; then
 
3446
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3447
  test $ac_status = 0; }; }; then
3079
3448
    cross_compiling=no
3080
3449
  else
3081
3450
    if test "$cross_compiling" = maybe; then
3082
3451
        cross_compiling=yes
3083
3452
    else
3084
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085
 
If you meant to cross compile, use \`--host'.
3086
 
See \`config.log' for more details." >&5
3087
 
echo "$as_me: error: cannot run C compiled programs.
3088
 
If you meant to cross compile, use \`--host'.
3089
 
See \`config.log' for more details." >&2;}
3090
 
   { (exit 1); exit 1; }; }
 
3453
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3454
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3455
as_fn_error "cannot run C compiled programs.
 
3456
If you meant to cross compile, use \`--host'.
 
3457
See \`config.log' for more details." "$LINENO" 5; }
3091
3458
    fi
3092
3459
  fi
3093
3460
fi
3094
 
{ echo "$as_me:$LINENO: result: yes" >&5
3095
 
echo "${ECHO_T}yes" >&6; }
 
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3462
$as_echo "yes" >&6; }
3096
3463
 
3097
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3464
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3098
3465
ac_clean_files=$ac_clean_files_save
3099
3466
# Check that the compiler produces executables we can run.  If not, either
3100
3467
# the compiler is broken, or we cross compile.
3101
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3103
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104
 
echo "${ECHO_T}$cross_compiling" >&6; }
 
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3469
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3471
$as_echo "$cross_compiling" >&6; }
3105
3472
 
3106
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3108
 
if { (ac_try="$ac_link"
 
3473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3474
$as_echo_n "checking for suffix of executables... " >&6; }
 
3475
if { { ac_try="$ac_link"
3109
3476
case "(($ac_try" in
3110
3477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111
3478
  *) ac_try_echo=$ac_try;;
3112
3479
esac
3113
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3480
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3481
$as_echo "$ac_try_echo"; } >&5
3114
3482
  (eval "$ac_link") 2>&5
3115
3483
  ac_status=$?
3116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117
 
  (exit $ac_status); }; then
 
3484
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3485
  test $ac_status = 0; }; then :
3118
3486
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119
3487
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3120
3488
# work properly (i.e., refer to `conftest.exe'), while it won't with
3122
3490
for ac_file in conftest.exe conftest conftest.*; do
3123
3491
  test -f "$ac_file" || continue
3124
3492
  case $ac_file in
3125
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3493
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126
3494
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127
3495
          break;;
3128
3496
    * ) break;;
3129
3497
  esac
3130
3498
done
3131
3499
else
3132
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3133
 
See \`config.log' for more details." >&5
3134
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3135
 
See \`config.log' for more details." >&2;}
3136
 
   { (exit 1); exit 1; }; }
 
3500
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3501
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3502
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3503
See \`config.log' for more details." "$LINENO" 5; }
3137
3504
fi
3138
 
 
3139
3505
rm -f conftest$ac_cv_exeext
3140
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3141
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3507
$as_echo "$ac_cv_exeext" >&6; }
3142
3508
 
3143
3509
rm -f conftest.$ac_ext
3144
3510
EXEEXT=$ac_cv_exeext
3145
3511
ac_exeext=$EXEEXT
3146
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3147
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3148
 
if test "${ac_cv_objext+set}" = set; then
3149
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3513
$as_echo_n "checking for suffix of object files... " >&6; }
 
3514
if test "${ac_cv_objext+set}" = set; then :
 
3515
  $as_echo_n "(cached) " >&6
3150
3516
else
3151
 
  cat >conftest.$ac_ext <<_ACEOF
3152
 
/* confdefs.h.  */
3153
 
_ACEOF
3154
 
cat confdefs.h >>conftest.$ac_ext
3155
 
cat >>conftest.$ac_ext <<_ACEOF
 
3517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156
3518
/* end confdefs.h.  */
3157
3519
 
3158
3520
int
3164
3526
}
3165
3527
_ACEOF
3166
3528
rm -f conftest.o conftest.obj
3167
 
if { (ac_try="$ac_compile"
 
3529
if { { ac_try="$ac_compile"
3168
3530
case "(($ac_try" in
3169
3531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170
3532
  *) ac_try_echo=$ac_try;;
3171
3533
esac
3172
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3535
$as_echo "$ac_try_echo"; } >&5
3173
3536
  (eval "$ac_compile") 2>&5
3174
3537
  ac_status=$?
3175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176
 
  (exit $ac_status); }; then
 
3538
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3539
  test $ac_status = 0; }; then :
3177
3540
  for ac_file in conftest.o conftest.obj conftest.*; do
3178
3541
  test -f "$ac_file" || continue;
3179
3542
  case $ac_file in
3180
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3543
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181
3544
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182
3545
       break;;
3183
3546
  esac
3184
3547
done
3185
3548
else
3186
 
  echo "$as_me: failed program was:" >&5
 
3549
  $as_echo "$as_me: failed program was:" >&5
3187
3550
sed 's/^/| /' conftest.$ac_ext >&5
3188
3551
 
3189
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3190
 
See \`config.log' for more details." >&5
3191
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3192
 
See \`config.log' for more details." >&2;}
3193
 
   { (exit 1); exit 1; }; }
 
3552
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3553
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3554
as_fn_error "cannot compute suffix of object files: cannot compile
 
3555
See \`config.log' for more details." "$LINENO" 5; }
3194
3556
fi
3195
 
 
3196
3557
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197
3558
fi
3198
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3560
$as_echo "$ac_cv_objext" >&6; }
3200
3561
OBJEXT=$ac_cv_objext
3201
3562
ac_objext=$OBJEXT
3202
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3203
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3204
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3564
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3565
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3566
  $as_echo_n "(cached) " >&6
3206
3567
else
3207
 
  cat >conftest.$ac_ext <<_ACEOF
3208
 
/* confdefs.h.  */
3209
 
_ACEOF
3210
 
cat confdefs.h >>conftest.$ac_ext
3211
 
cat >>conftest.$ac_ext <<_ACEOF
 
3568
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212
3569
/* end confdefs.h.  */
3213
3570
 
3214
3571
int
3222
3579
  return 0;
3223
3580
}
3224
3581
_ACEOF
3225
 
rm -f conftest.$ac_objext
3226
 
if { (ac_try="$ac_compile"
3227
 
case "(($ac_try" in
3228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229
 
  *) ac_try_echo=$ac_try;;
3230
 
esac
3231
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232
 
  (eval "$ac_compile") 2>conftest.er1
3233
 
  ac_status=$?
3234
 
  grep -v '^ *+' conftest.er1 >conftest.err
3235
 
  rm -f conftest.er1
3236
 
  cat conftest.err >&5
3237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238
 
  (exit $ac_status); } && {
3239
 
         test -z "$ac_c_werror_flag" ||
3240
 
         test ! -s conftest.err
3241
 
       } && test -s conftest.$ac_objext; then
 
3582
if ac_fn_c_try_compile "$LINENO"; then :
3242
3583
  ac_compiler_gnu=yes
3243
3584
else
3244
 
  echo "$as_me: failed program was:" >&5
3245
 
sed 's/^/| /' conftest.$ac_ext >&5
3246
 
 
3247
 
        ac_compiler_gnu=no
 
3585
  ac_compiler_gnu=no
3248
3586
fi
3249
 
 
3250
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251
3588
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3252
3589
 
3253
3590
fi
3254
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3256
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3592
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3593
if test $ac_compiler_gnu = yes; then
 
3594
  GCC=yes
 
3595
else
 
3596
  GCC=
 
3597
fi
3257
3598
ac_test_CFLAGS=${CFLAGS+set}
3258
3599
ac_save_CFLAGS=$CFLAGS
3259
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3260
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3261
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3262
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3601
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3602
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3603
  $as_echo_n "(cached) " >&6
3263
3604
else
3264
3605
  ac_save_c_werror_flag=$ac_c_werror_flag
3265
3606
   ac_c_werror_flag=yes
3266
3607
   ac_cv_prog_cc_g=no
3267
3608
   CFLAGS="-g"
3268
 
   cat >conftest.$ac_ext <<_ACEOF
3269
 
/* confdefs.h.  */
3270
 
_ACEOF
3271
 
cat confdefs.h >>conftest.$ac_ext
3272
 
cat >>conftest.$ac_ext <<_ACEOF
 
3609
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273
3610
/* end confdefs.h.  */
3274
3611
 
3275
3612
int
3280
3617
  return 0;
3281
3618
}
3282
3619
_ACEOF
3283
 
rm -f conftest.$ac_objext
3284
 
if { (ac_try="$ac_compile"
3285
 
case "(($ac_try" in
3286
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287
 
  *) ac_try_echo=$ac_try;;
3288
 
esac
3289
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290
 
  (eval "$ac_compile") 2>conftest.er1
3291
 
  ac_status=$?
3292
 
  grep -v '^ *+' conftest.er1 >conftest.err
3293
 
  rm -f conftest.er1
3294
 
  cat conftest.err >&5
3295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296
 
  (exit $ac_status); } && {
3297
 
         test -z "$ac_c_werror_flag" ||
3298
 
         test ! -s conftest.err
3299
 
       } && test -s conftest.$ac_objext; then
 
3620
if ac_fn_c_try_compile "$LINENO"; then :
3300
3621
  ac_cv_prog_cc_g=yes
3301
3622
else
3302
 
  echo "$as_me: failed program was:" >&5
3303
 
sed 's/^/| /' conftest.$ac_ext >&5
3304
 
 
3305
 
        CFLAGS=""
3306
 
      cat >conftest.$ac_ext <<_ACEOF
3307
 
/* confdefs.h.  */
3308
 
_ACEOF
3309
 
cat confdefs.h >>conftest.$ac_ext
3310
 
cat >>conftest.$ac_ext <<_ACEOF
 
3623
  CFLAGS=""
 
3624
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311
3625
/* end confdefs.h.  */
3312
3626
 
3313
3627
int
3318
3632
  return 0;
3319
3633
}
3320
3634
_ACEOF
3321
 
rm -f conftest.$ac_objext
3322
 
if { (ac_try="$ac_compile"
3323
 
case "(($ac_try" in
3324
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325
 
  *) ac_try_echo=$ac_try;;
3326
 
esac
3327
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328
 
  (eval "$ac_compile") 2>conftest.er1
3329
 
  ac_status=$?
3330
 
  grep -v '^ *+' conftest.er1 >conftest.err
3331
 
  rm -f conftest.er1
3332
 
  cat conftest.err >&5
3333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334
 
  (exit $ac_status); } && {
3335
 
         test -z "$ac_c_werror_flag" ||
3336
 
         test ! -s conftest.err
3337
 
       } && test -s conftest.$ac_objext; then
3338
 
  :
 
3635
if ac_fn_c_try_compile "$LINENO"; then :
 
3636
 
3339
3637
else
3340
 
  echo "$as_me: failed program was:" >&5
3341
 
sed 's/^/| /' conftest.$ac_ext >&5
3342
 
 
3343
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3638
  ac_c_werror_flag=$ac_save_c_werror_flag
3344
3639
         CFLAGS="-g"
3345
 
         cat >conftest.$ac_ext <<_ACEOF
3346
 
/* confdefs.h.  */
3347
 
_ACEOF
3348
 
cat confdefs.h >>conftest.$ac_ext
3349
 
cat >>conftest.$ac_ext <<_ACEOF
 
3640
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350
3641
/* end confdefs.h.  */
3351
3642
 
3352
3643
int
3357
3648
  return 0;
3358
3649
}
3359
3650
_ACEOF
3360
 
rm -f conftest.$ac_objext
3361
 
if { (ac_try="$ac_compile"
3362
 
case "(($ac_try" in
3363
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364
 
  *) ac_try_echo=$ac_try;;
3365
 
esac
3366
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367
 
  (eval "$ac_compile") 2>conftest.er1
3368
 
  ac_status=$?
3369
 
  grep -v '^ *+' conftest.er1 >conftest.err
3370
 
  rm -f conftest.er1
3371
 
  cat conftest.err >&5
3372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373
 
  (exit $ac_status); } && {
3374
 
         test -z "$ac_c_werror_flag" ||
3375
 
         test ! -s conftest.err
3376
 
       } && test -s conftest.$ac_objext; then
 
3651
if ac_fn_c_try_compile "$LINENO"; then :
3377
3652
  ac_cv_prog_cc_g=yes
3378
 
else
3379
 
  echo "$as_me: failed program was:" >&5
3380
 
sed 's/^/| /' conftest.$ac_ext >&5
3381
 
 
3382
 
 
3383
 
fi
3384
 
 
3385
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386
 
fi
3387
 
 
3388
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389
 
fi
3390
 
 
 
3653
fi
 
3654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3655
fi
 
3656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3657
fi
3391
3658
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392
3659
   ac_c_werror_flag=$ac_save_c_werror_flag
3393
3660
fi
3394
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3662
$as_echo "$ac_cv_prog_cc_g" >&6; }
3396
3663
if test "$ac_test_CFLAGS" = set; then
3397
3664
  CFLAGS=$ac_save_CFLAGS
3398
3665
elif test $ac_cv_prog_cc_g = yes; then
3408
3675
    CFLAGS=
3409
3676
  fi
3410
3677
fi
3411
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3412
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3413
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3414
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3679
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3680
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3681
  $as_echo_n "(cached) " >&6
3415
3682
else
3416
3683
  ac_cv_prog_cc_c89=no
3417
3684
ac_save_CC=$CC
3418
 
cat >conftest.$ac_ext <<_ACEOF
3419
 
/* confdefs.h.  */
3420
 
_ACEOF
3421
 
cat confdefs.h >>conftest.$ac_ext
3422
 
cat >>conftest.$ac_ext <<_ACEOF
 
3685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423
3686
/* end confdefs.h.  */
3424
3687
#include <stdarg.h>
3425
3688
#include <stdio.h>
3476
3739
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477
3740
do
3478
3741
  CC="$ac_save_CC $ac_arg"
3479
 
  rm -f conftest.$ac_objext
3480
 
if { (ac_try="$ac_compile"
3481
 
case "(($ac_try" in
3482
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483
 
  *) ac_try_echo=$ac_try;;
3484
 
esac
3485
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486
 
  (eval "$ac_compile") 2>conftest.er1
3487
 
  ac_status=$?
3488
 
  grep -v '^ *+' conftest.er1 >conftest.err
3489
 
  rm -f conftest.er1
3490
 
  cat conftest.err >&5
3491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492
 
  (exit $ac_status); } && {
3493
 
         test -z "$ac_c_werror_flag" ||
3494
 
         test ! -s conftest.err
3495
 
       } && test -s conftest.$ac_objext; then
 
3742
  if ac_fn_c_try_compile "$LINENO"; then :
3496
3743
  ac_cv_prog_cc_c89=$ac_arg
3497
 
else
3498
 
  echo "$as_me: failed program was:" >&5
3499
 
sed 's/^/| /' conftest.$ac_ext >&5
3500
 
 
3501
 
 
3502
3744
fi
3503
 
 
3504
3745
rm -f core conftest.err conftest.$ac_objext
3505
3746
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3506
3747
done
3511
3752
# AC_CACHE_VAL
3512
3753
case "x$ac_cv_prog_cc_c89" in
3513
3754
  x)
3514
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3515
 
echo "${ECHO_T}none needed" >&6; } ;;
 
3755
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3756
$as_echo "none needed" >&6; } ;;
3516
3757
  xno)
3517
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3518
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3758
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3759
$as_echo "unsupported" >&6; } ;;
3519
3760
  *)
3520
3761
    CC="$CC $ac_cv_prog_cc_c89"
3521
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3522
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3762
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3763
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523
3764
esac
 
3765
if test "x$ac_cv_prog_cc_c89" != xno; then :
3524
3766
 
 
3767
fi
3525
3768
 
3526
3769
ac_ext=c
3527
3770
ac_cpp='$CPP $CPPFLAGS'
3540
3783
.PHONY: am__doit
3541
3784
END
3542
3785
# If we don't find an include directive, just comment out the code.
3543
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3544
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3787
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3545
3788
am__include="#"
3546
3789
am__quote=
3547
3790
_am_result=none
3568
3811
fi
3569
3812
 
3570
3813
 
3571
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3572
 
echo "${ECHO_T}$_am_result" >&6; }
 
3814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3815
$as_echo "$_am_result" >&6; }
3573
3816
rm -f confinc confmf
3574
3817
 
3575
3818
# Check whether --enable-dependency-tracking was given.
3576
 
if test "${enable_dependency_tracking+set}" = set; then
 
3819
if test "${enable_dependency_tracking+set}" = set; then :
3577
3820
  enableval=$enable_dependency_tracking;
3578
3821
fi
3579
3822
 
3593
3836
 
3594
3837
depcc="$CC"   am_compiler_list=
3595
3838
 
3596
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3597
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3598
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3599
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3840
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3841
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3842
  $as_echo_n "(cached) " >&6
3600
3843
else
3601
3844
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3602
3845
  # We make a subdir and do the tests there.  Otherwise we can end up
3684
3927
fi
3685
3928
 
3686
3929
fi
3687
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3688
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3931
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3689
3932
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3690
3933
 
3691
3934
 if
3700
3943
 
3701
3944
 
3702
3945
if test "x$CC" != xcc; then
3703
 
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3704
 
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3946
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
3947
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3705
3948
else
3706
 
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3707
 
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3949
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
3950
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3708
3951
fi
3709
 
set dummy $CC; ac_cc=`echo $2 |
 
3952
set dummy $CC; ac_cc=`$as_echo "$2" |
3710
3953
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3711
 
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3712
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3954
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3955
  $as_echo_n "(cached) " >&6
3713
3956
else
3714
 
  cat >conftest.$ac_ext <<_ACEOF
3715
 
/* confdefs.h.  */
3716
 
_ACEOF
3717
 
cat confdefs.h >>conftest.$ac_ext
3718
 
cat >>conftest.$ac_ext <<_ACEOF
 
3957
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719
3958
/* end confdefs.h.  */
3720
3959
 
3721
3960
int
3731
3970
# existing .o file with -o, though they will create one.
3732
3971
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3733
3972
rm -f conftest2.*
3734
 
if { (case "(($ac_try" in
3735
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736
 
  *) ac_try_echo=$ac_try;;
3737
 
esac
3738
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739
 
  (eval "$ac_try") 2>&5
3740
 
  ac_status=$?
3741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742
 
  (exit $ac_status); } &&
3743
 
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
3744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745
 
  *) ac_try_echo=$ac_try;;
3746
 
esac
3747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748
 
  (eval "$ac_try") 2>&5
3749
 
  ac_status=$?
3750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
 
  (exit $ac_status); };
 
3973
if { { case "(($ac_try" in
 
3974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3975
  *) ac_try_echo=$ac_try;;
 
3976
esac
 
3977
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3978
$as_echo "$ac_try_echo"; } >&5
 
3979
  (eval "$ac_try") 2>&5
 
3980
  ac_status=$?
 
3981
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3982
  test $ac_status = 0; } &&
 
3983
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
3984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3985
  *) ac_try_echo=$ac_try;;
 
3986
esac
 
3987
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3988
$as_echo "$ac_try_echo"; } >&5
 
3989
  (eval "$ac_try") 2>&5
 
3990
  ac_status=$?
 
3991
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3992
  test $ac_status = 0; };
3752
3993
then
3753
3994
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3754
3995
  if test "x$CC" != xcc; then
3755
3996
    # Test first that cc exists at all.
3756
3997
    if { ac_try='cc -c conftest.$ac_ext >&5'
3757
 
  { (case "(($ac_try" in
 
3998
  { { case "(($ac_try" in
3758
3999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759
4000
  *) ac_try_echo=$ac_try;;
3760
4001
esac
3761
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4002
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4003
$as_echo "$ac_try_echo"; } >&5
3762
4004
  (eval "$ac_try") 2>&5
3763
4005
  ac_status=$?
3764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
 
  (exit $ac_status); }; }; then
 
4006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4007
  test $ac_status = 0; }; }; then
3766
4008
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3767
4009
      rm -f conftest2.*
3768
 
      if { (case "(($ac_try" in
3769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770
 
  *) ac_try_echo=$ac_try;;
3771
 
esac
3772
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773
 
  (eval "$ac_try") 2>&5
3774
 
  ac_status=$?
3775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
 
  (exit $ac_status); } &&
3777
 
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
3778
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779
 
  *) ac_try_echo=$ac_try;;
3780
 
esac
3781
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782
 
  (eval "$ac_try") 2>&5
3783
 
  ac_status=$?
3784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
 
  (exit $ac_status); };
 
4010
      if { { case "(($ac_try" in
 
4011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4012
  *) ac_try_echo=$ac_try;;
 
4013
esac
 
4014
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4015
$as_echo "$ac_try_echo"; } >&5
 
4016
  (eval "$ac_try") 2>&5
 
4017
  ac_status=$?
 
4018
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4019
  test $ac_status = 0; } &&
 
4020
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4022
  *) ac_try_echo=$ac_try;;
 
4023
esac
 
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4025
$as_echo "$ac_try_echo"; } >&5
 
4026
  (eval "$ac_try") 2>&5
 
4027
  ac_status=$?
 
4028
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4029
  test $ac_status = 0; };
3786
4030
      then
3787
4031
        # cc works too.
3788
4032
        :
3799
4043
 
3800
4044
fi
3801
4045
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3802
 
  { echo "$as_me:$LINENO: result: yes" >&5
3803
 
echo "${ECHO_T}yes" >&6; }
 
4046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4047
$as_echo "yes" >&6; }
3804
4048
else
3805
 
  { echo "$as_me:$LINENO: result: no" >&5
3806
 
echo "${ECHO_T}no" >&6; }
 
4049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4050
$as_echo "no" >&6; }
3807
4051
 
3808
 
cat >>confdefs.h <<\_ACEOF
3809
 
#define NO_MINUS_C_MINUS_O 1
3810
 
_ACEOF
 
4052
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3811
4053
 
3812
4054
fi
3813
4055
 
3814
4056
# FIXME: we rely on the cache variable name because
3815
4057
# there is no other way.
3816
4058
set dummy $CC
3817
 
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3818
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
4059
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4060
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4061
if test "$am_t" != yes; then
3819
4062
   # Losing compiler, so override with the script.
3820
4063
   # FIXME: It is wrong to rewrite CC.
3821
4064
   # But if we don't then we get into trouble of one sort or another.
3830
4073
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831
4074
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832
4075
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3834
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4077
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3835
4078
# On Suns, sometimes $CPP names a directory.
3836
4079
if test -n "$CPP" && test -d "$CPP"; then
3837
4080
  CPP=
3838
4081
fi
3839
4082
if test -z "$CPP"; then
3840
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3841
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4083
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4084
  $as_echo_n "(cached) " >&6
3842
4085
else
3843
4086
      # Double quotes because CPP needs to be expanded
3844
4087
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3852
4095
  # <limits.h> exists even on freestanding compilers.
3853
4096
  # On the NeXT, cc -E runs the code through the compiler's parser,
3854
4097
  # not just through cpp. "Syntax error" is here to catch this case.
3855
 
  cat >conftest.$ac_ext <<_ACEOF
3856
 
/* confdefs.h.  */
3857
 
_ACEOF
3858
 
cat confdefs.h >>conftest.$ac_ext
3859
 
cat >>conftest.$ac_ext <<_ACEOF
 
4098
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860
4099
/* end confdefs.h.  */
3861
4100
#ifdef __STDC__
3862
4101
# include <limits.h>
3865
4104
#endif
3866
4105
                     Syntax error
3867
4106
_ACEOF
3868
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3869
 
case "(($ac_try" in
3870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871
 
  *) ac_try_echo=$ac_try;;
3872
 
esac
3873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3875
 
  ac_status=$?
3876
 
  grep -v '^ *+' conftest.er1 >conftest.err
3877
 
  rm -f conftest.er1
3878
 
  cat conftest.err >&5
3879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
 
  (exit $ac_status); } >/dev/null && {
3881
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3882
 
         test ! -s conftest.err
3883
 
       }; then
3884
 
  :
 
4107
if ac_fn_c_try_cpp "$LINENO"; then :
 
4108
 
3885
4109
else
3886
 
  echo "$as_me: failed program was:" >&5
3887
 
sed 's/^/| /' conftest.$ac_ext >&5
3888
 
 
3889
4110
  # Broken: fails on valid input.
3890
4111
continue
3891
4112
fi
3892
 
 
3893
4113
rm -f conftest.err conftest.$ac_ext
3894
4114
 
3895
4115
  # OK, works on sane cases.  Now check whether nonexistent headers
3896
4116
  # can be detected and how.
3897
 
  cat >conftest.$ac_ext <<_ACEOF
3898
 
/* confdefs.h.  */
3899
 
_ACEOF
3900
 
cat confdefs.h >>conftest.$ac_ext
3901
 
cat >>conftest.$ac_ext <<_ACEOF
 
4117
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902
4118
/* end confdefs.h.  */
3903
4119
#include <ac_nonexistent.h>
3904
4120
_ACEOF
3905
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3906
 
case "(($ac_try" in
3907
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908
 
  *) ac_try_echo=$ac_try;;
3909
 
esac
3910
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912
 
  ac_status=$?
3913
 
  grep -v '^ *+' conftest.er1 >conftest.err
3914
 
  rm -f conftest.er1
3915
 
  cat conftest.err >&5
3916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917
 
  (exit $ac_status); } >/dev/null && {
3918
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3919
 
         test ! -s conftest.err
3920
 
       }; then
 
4121
if ac_fn_c_try_cpp "$LINENO"; then :
3921
4122
  # Broken: success on invalid input.
3922
4123
continue
3923
4124
else
3924
 
  echo "$as_me: failed program was:" >&5
3925
 
sed 's/^/| /' conftest.$ac_ext >&5
3926
 
 
3927
4125
  # Passes both tests.
3928
4126
ac_preproc_ok=:
3929
4127
break
3930
4128
fi
3931
 
 
3932
4129
rm -f conftest.err conftest.$ac_ext
3933
4130
 
3934
4131
done
3935
4132
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936
4133
rm -f conftest.err conftest.$ac_ext
3937
 
if $ac_preproc_ok; then
 
4134
if $ac_preproc_ok; then :
3938
4135
  break
3939
4136
fi
3940
4137
 
3946
4143
else
3947
4144
  ac_cv_prog_CPP=$CPP
3948
4145
fi
3949
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
3950
 
echo "${ECHO_T}$CPP" >&6; }
 
4146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4147
$as_echo "$CPP" >&6; }
3951
4148
ac_preproc_ok=false
3952
4149
for ac_c_preproc_warn_flag in '' yes
3953
4150
do
3957
4154
  # <limits.h> exists even on freestanding compilers.
3958
4155
  # On the NeXT, cc -E runs the code through the compiler's parser,
3959
4156
  # not just through cpp. "Syntax error" is here to catch this case.
3960
 
  cat >conftest.$ac_ext <<_ACEOF
3961
 
/* confdefs.h.  */
3962
 
_ACEOF
3963
 
cat confdefs.h >>conftest.$ac_ext
3964
 
cat >>conftest.$ac_ext <<_ACEOF
 
4157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965
4158
/* end confdefs.h.  */
3966
4159
#ifdef __STDC__
3967
4160
# include <limits.h>
3970
4163
#endif
3971
4164
                     Syntax error
3972
4165
_ACEOF
3973
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3974
 
case "(($ac_try" in
3975
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976
 
  *) ac_try_echo=$ac_try;;
3977
 
esac
3978
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980
 
  ac_status=$?
3981
 
  grep -v '^ *+' conftest.er1 >conftest.err
3982
 
  rm -f conftest.er1
3983
 
  cat conftest.err >&5
3984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985
 
  (exit $ac_status); } >/dev/null && {
3986
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987
 
         test ! -s conftest.err
3988
 
       }; then
3989
 
  :
 
4166
if ac_fn_c_try_cpp "$LINENO"; then :
 
4167
 
3990
4168
else
3991
 
  echo "$as_me: failed program was:" >&5
3992
 
sed 's/^/| /' conftest.$ac_ext >&5
3993
 
 
3994
4169
  # Broken: fails on valid input.
3995
4170
continue
3996
4171
fi
3997
 
 
3998
4172
rm -f conftest.err conftest.$ac_ext
3999
4173
 
4000
4174
  # OK, works on sane cases.  Now check whether nonexistent headers
4001
4175
  # can be detected and how.
4002
 
  cat >conftest.$ac_ext <<_ACEOF
4003
 
/* confdefs.h.  */
4004
 
_ACEOF
4005
 
cat confdefs.h >>conftest.$ac_ext
4006
 
cat >>conftest.$ac_ext <<_ACEOF
 
4176
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007
4177
/* end confdefs.h.  */
4008
4178
#include <ac_nonexistent.h>
4009
4179
_ACEOF
4010
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4011
 
case "(($ac_try" in
4012
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013
 
  *) ac_try_echo=$ac_try;;
4014
 
esac
4015
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4017
 
  ac_status=$?
4018
 
  grep -v '^ *+' conftest.er1 >conftest.err
4019
 
  rm -f conftest.er1
4020
 
  cat conftest.err >&5
4021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022
 
  (exit $ac_status); } >/dev/null && {
4023
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024
 
         test ! -s conftest.err
4025
 
       }; then
 
4180
if ac_fn_c_try_cpp "$LINENO"; then :
4026
4181
  # Broken: success on invalid input.
4027
4182
continue
4028
4183
else
4029
 
  echo "$as_me: failed program was:" >&5
4030
 
sed 's/^/| /' conftest.$ac_ext >&5
4031
 
 
4032
4184
  # Passes both tests.
4033
4185
ac_preproc_ok=:
4034
4186
break
4035
4187
fi
4036
 
 
4037
4188
rm -f conftest.err conftest.$ac_ext
4038
4189
 
4039
4190
done
4040
4191
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041
4192
rm -f conftest.err conftest.$ac_ext
4042
 
if $ac_preproc_ok; then
4043
 
  :
 
4193
if $ac_preproc_ok; then :
 
4194
 
4044
4195
else
4045
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4046
 
See \`config.log' for more details." >&5
4047
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4048
 
See \`config.log' for more details." >&2;}
4049
 
   { (exit 1); exit 1; }; }
 
4196
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4197
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4198
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4199
See \`config.log' for more details." "$LINENO" 5; }
4050
4200
fi
4051
4201
 
4052
4202
ac_ext=c
4059
4209
do
4060
4210
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4061
4211
set dummy $ac_prog; ac_word=$2
4062
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4063
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4064
 
if test "${ac_cv_prog_AWK+set}" = set; then
4065
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4213
$as_echo_n "checking for $ac_word... " >&6; }
 
4214
if test "${ac_cv_prog_AWK+set}" = set; then :
 
4215
  $as_echo_n "(cached) " >&6
4066
4216
else
4067
4217
  if test -n "$AWK"; then
4068
4218
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4072
4222
do
4073
4223
  IFS=$as_save_IFS
4074
4224
  test -z "$as_dir" && as_dir=.
4075
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4225
    for ac_exec_ext in '' $ac_executable_extensions; do
4076
4226
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077
4227
    ac_cv_prog_AWK="$ac_prog"
4078
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4228
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079
4229
    break 2
4080
4230
  fi
4081
4231
done
4082
 
done
 
4232
  done
4083
4233
IFS=$as_save_IFS
4084
4234
 
4085
4235
fi
4086
4236
fi
4087
4237
AWK=$ac_cv_prog_AWK
4088
4238
if test -n "$AWK"; then
4089
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
4090
 
echo "${ECHO_T}$AWK" >&6; }
 
4239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4240
$as_echo "$AWK" >&6; }
4091
4241
else
4092
 
  { echo "$as_me:$LINENO: result: no" >&5
4093
 
echo "${ECHO_T}no" >&6; }
 
4242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4243
$as_echo "no" >&6; }
4094
4244
fi
4095
4245
 
4096
4246
 
4100
4250
if test -n "$ac_tool_prefix"; then
4101
4251
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4102
4252
set dummy ${ac_tool_prefix}ar; ac_word=$2
4103
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4104
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4105
 
if test "${ac_cv_prog_AR+set}" = set; then
4106
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4254
$as_echo_n "checking for $ac_word... " >&6; }
 
4255
if test "${ac_cv_prog_AR+set}" = set; then :
 
4256
  $as_echo_n "(cached) " >&6
4107
4257
else
4108
4258
  if test -n "$AR"; then
4109
4259
  ac_cv_prog_AR="$AR" # Let the user override the test.
4113
4263
do
4114
4264
  IFS=$as_save_IFS
4115
4265
  test -z "$as_dir" && as_dir=.
4116
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4266
    for ac_exec_ext in '' $ac_executable_extensions; do
4117
4267
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118
4268
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4119
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4269
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120
4270
    break 2
4121
4271
  fi
4122
4272
done
4123
 
done
 
4273
  done
4124
4274
IFS=$as_save_IFS
4125
4275
 
4126
4276
fi
4127
4277
fi
4128
4278
AR=$ac_cv_prog_AR
4129
4279
if test -n "$AR"; then
4130
 
  { echo "$as_me:$LINENO: result: $AR" >&5
4131
 
echo "${ECHO_T}$AR" >&6; }
 
4280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
4281
$as_echo "$AR" >&6; }
4132
4282
else
4133
 
  { echo "$as_me:$LINENO: result: no" >&5
4134
 
echo "${ECHO_T}no" >&6; }
 
4283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4284
$as_echo "no" >&6; }
4135
4285
fi
4136
4286
 
4137
4287
 
4140
4290
  ac_ct_AR=$AR
4141
4291
  # Extract the first word of "ar", so it can be a program name with args.
4142
4292
set dummy ar; ac_word=$2
4143
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4144
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4145
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4294
$as_echo_n "checking for $ac_word... " >&6; }
 
4295
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
4296
  $as_echo_n "(cached) " >&6
4147
4297
else
4148
4298
  if test -n "$ac_ct_AR"; then
4149
4299
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4153
4303
do
4154
4304
  IFS=$as_save_IFS
4155
4305
  test -z "$as_dir" && as_dir=.
4156
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4306
    for ac_exec_ext in '' $ac_executable_extensions; do
4157
4307
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158
4308
    ac_cv_prog_ac_ct_AR="ar"
4159
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4309
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160
4310
    break 2
4161
4311
  fi
4162
4312
done
4163
 
done
 
4313
  done
4164
4314
IFS=$as_save_IFS
4165
4315
 
4166
4316
fi
4167
4317
fi
4168
4318
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4169
4319
if test -n "$ac_ct_AR"; then
4170
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4171
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
4320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
4321
$as_echo "$ac_ct_AR" >&6; }
4172
4322
else
4173
 
  { echo "$as_me:$LINENO: result: no" >&5
4174
 
echo "${ECHO_T}no" >&6; }
 
4323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4324
$as_echo "no" >&6; }
4175
4325
fi
4176
4326
 
4177
4327
  if test "x$ac_ct_AR" = x; then
4179
4329
  else
4180
4330
    case $cross_compiling:$ac_tool_warned in
4181
4331
yes:)
4182
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4183
 
whose name does not start with the host triplet.  If you think this
4184
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4185
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4186
 
whose name does not start with the host triplet.  If you think this
4187
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4332
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4333
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188
4334
ac_tool_warned=yes ;;
4189
4335
esac
4190
4336
    AR=$ac_ct_AR
4195
4341
 
4196
4342
 
4197
4343
 
4198
 
if test -n "$ac_tool_prefix"; then
4199
 
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4200
 
set dummy ${ac_tool_prefix}windres; ac_word=$2
4201
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4202
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203
 
if test "${ac_cv_prog_RC+set}" = set; then
4204
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4205
 
else
4206
 
  if test -n "$RC"; then
4207
 
  ac_cv_prog_RC="$RC" # Let the user override the test.
4208
 
else
4209
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210
 
for as_dir in $PATH
4211
 
do
4212
 
  IFS=$as_save_IFS
4213
 
  test -z "$as_dir" && as_dir=.
4214
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4215
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216
 
    ac_cv_prog_RC="${ac_tool_prefix}windres"
4217
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218
 
    break 2
4219
 
  fi
4220
 
done
4221
 
done
4222
 
IFS=$as_save_IFS
4223
 
 
4224
 
fi
4225
 
fi
4226
 
RC=$ac_cv_prog_RC
4227
 
if test -n "$RC"; then
4228
 
  { echo "$as_me:$LINENO: result: $RC" >&5
4229
 
echo "${ECHO_T}$RC" >&6; }
4230
 
else
4231
 
  { echo "$as_me:$LINENO: result: no" >&5
4232
 
echo "${ECHO_T}no" >&6; }
4233
 
fi
4234
 
 
4235
 
 
4236
 
fi
4237
 
if test -z "$ac_cv_prog_RC"; then
4238
 
  ac_ct_RC=$RC
4239
 
  # Extract the first word of "windres", so it can be a program name with args.
4240
 
set dummy windres; ac_word=$2
4241
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4242
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243
 
if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
4244
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4245
 
else
4246
 
  if test -n "$ac_ct_RC"; then
4247
 
  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
4248
 
else
4249
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250
 
for as_dir in $PATH
4251
 
do
4252
 
  IFS=$as_save_IFS
4253
 
  test -z "$as_dir" && as_dir=.
4254
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4255
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256
 
    ac_cv_prog_ac_ct_RC="windres"
4257
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258
 
    break 2
4259
 
  fi
4260
 
done
4261
 
done
4262
 
IFS=$as_save_IFS
4263
 
 
4264
 
fi
4265
 
fi
4266
 
ac_ct_RC=$ac_cv_prog_ac_ct_RC
4267
 
if test -n "$ac_ct_RC"; then
4268
 
  { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
4269
 
echo "${ECHO_T}$ac_ct_RC" >&6; }
4270
 
else
4271
 
  { echo "$as_me:$LINENO: result: no" >&5
4272
 
echo "${ECHO_T}no" >&6; }
4273
 
fi
4274
 
 
4275
 
  if test "x$ac_ct_RC" = x; then
4276
 
    RC="no"
4277
 
  else
4278
 
    case $cross_compiling:$ac_tool_warned in
4279
 
yes:)
4280
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4281
 
whose name does not start with the host triplet.  If you think this
4282
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4283
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4284
 
whose name does not start with the host triplet.  If you think this
4285
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4286
 
ac_tool_warned=yes ;;
4287
 
esac
4288
 
    RC=$ac_ct_RC
4289
 
  fi
4290
 
else
4291
 
  RC="$ac_cv_prog_RC"
4292
 
fi
4293
 
 
4294
 
 
4295
 
 
4296
 
 
4297
 
 
4298
 
 
4299
 
 
4300
 
cat >>confdefs.h <<\_ACEOF
4301
 
#define _GNU_SOURCE 1
4302
 
_ACEOF
4303
 
 
4304
 
 
4305
 
 
4306
 
# Check whether --enable-shared was given.
4307
 
if test "${enable_shared+set}" = set; then
4308
 
  enableval=$enable_shared; p=${PACKAGE-default}
4309
 
    case $enableval in
4310
 
    yes) enable_shared=yes ;;
4311
 
    no) enable_shared=no ;;
4312
 
    *)
4313
 
      enable_shared=no
4314
 
      # Look at the argument we got.  We use all the common list separators.
4315
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316
 
      for pkg in $enableval; do
4317
 
        IFS="$lt_save_ifs"
4318
 
        if test "X$pkg" = "X$p"; then
4319
 
          enable_shared=yes
4320
 
        fi
4321
 
      done
4322
 
      IFS="$lt_save_ifs"
4323
 
      ;;
4324
 
    esac
4325
 
else
4326
 
  enable_shared=yes
4327
 
fi
4328
 
 
4329
 
 
4330
 
# Check whether --enable-static was given.
4331
 
if test "${enable_static+set}" = set; then
4332
 
  enableval=$enable_static; p=${PACKAGE-default}
4333
 
    case $enableval in
4334
 
    yes) enable_static=yes ;;
4335
 
    no) enable_static=no ;;
4336
 
    *)
4337
 
     enable_static=no
4338
 
      # Look at the argument we got.  We use all the common list separators.
4339
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4340
 
      for pkg in $enableval; do
4341
 
        IFS="$lt_save_ifs"
4342
 
        if test "X$pkg" = "X$p"; then
4343
 
          enable_static=yes
4344
 
        fi
4345
 
      done
4346
 
      IFS="$lt_save_ifs"
4347
 
      ;;
4348
 
    esac
4349
 
else
4350
 
  enable_static=yes
4351
 
fi
4352
 
 
4353
 
 
4354
 
# Check whether --enable-fast-install was given.
4355
 
if test "${enable_fast_install+set}" = set; then
4356
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
4357
 
    case $enableval in
4358
 
    yes) enable_fast_install=yes ;;
4359
 
    no) enable_fast_install=no ;;
4360
 
    *)
4361
 
      enable_fast_install=no
4362
 
      # Look at the argument we got.  We use all the common list separators.
4363
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4364
 
      for pkg in $enableval; do
4365
 
        IFS="$lt_save_ifs"
4366
 
        if test "X$pkg" = "X$p"; then
4367
 
          enable_fast_install=yes
4368
 
        fi
4369
 
      done
4370
 
      IFS="$lt_save_ifs"
4371
 
      ;;
4372
 
    esac
4373
 
else
4374
 
  enable_fast_install=yes
4375
 
fi
4376
 
 
4377
 
 
4378
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4379
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4380
 
if test "${lt_cv_path_SED+set}" = set; then
4381
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4382
 
else
4383
 
  # Loop through the user's path and test for sed and gsed.
4384
 
# Then use that list of sed's as ones to test for truncation.
4385
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386
 
for as_dir in $PATH
4387
 
do
4388
 
  IFS=$as_save_IFS
4389
 
  test -z "$as_dir" && as_dir=.
4390
 
  for lt_ac_prog in sed gsed; do
4391
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4392
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4393
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4394
 
      fi
4395
 
    done
4396
 
  done
4397
 
done
4398
 
lt_ac_max=0
4399
 
lt_ac_count=0
4400
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4401
 
# along with /bin/sed that truncates output.
4402
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4403
 
  test ! -f $lt_ac_sed && break
4404
 
  cat /dev/null > conftest.in
4405
 
  lt_ac_count=0
4406
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4407
 
  # Check for GNU sed and select it if it is found.
4408
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4409
 
    lt_cv_path_SED=$lt_ac_sed
4410
 
    break
4411
 
  fi
4412
 
  while true; do
4413
 
    cat conftest.in conftest.in >conftest.tmp
4414
 
    mv conftest.tmp conftest.in
4415
 
    cp conftest.in conftest.nl
4416
 
    echo >>conftest.nl
4417
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4418
 
    cmp -s conftest.out conftest.nl || break
4419
 
    # 10000 chars as input seems more than enough
4420
 
    test $lt_ac_count -gt 10 && break
4421
 
    lt_ac_count=`expr $lt_ac_count + 1`
4422
 
    if test $lt_ac_count -gt $lt_ac_max; then
4423
 
      lt_ac_max=$lt_ac_count
4424
 
      lt_cv_path_SED=$lt_ac_sed
4425
 
    fi
4426
 
  done
4427
 
done
4428
 
SED=$lt_cv_path_SED
4429
 
 
4430
 
fi
4431
 
 
4432
 
{ echo "$as_me:$LINENO: result: $SED" >&5
4433
 
echo "${ECHO_T}$SED" >&6; }
4434
 
 
4435
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4436
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4437
 
if test "${ac_cv_path_GREP+set}" = set; then
4438
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4439
 
else
4440
 
  # Extract the first word of "grep ggrep" to use in msg output
4441
 
if test -z "$GREP"; then
4442
 
set dummy grep ggrep; ac_prog_name=$2
4443
 
if test "${ac_cv_path_GREP+set}" = set; then
4444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4445
 
else
 
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4345
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4346
if test "${ac_cv_path_GREP+set}" = set; then :
 
4347
  $as_echo_n "(cached) " >&6
 
4348
else
 
4349
  if test -z "$GREP"; then
4446
4350
  ac_path_GREP_found=false
4447
 
# Loop through the user's path and test for each of PROGNAME-LIST
4448
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4351
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4352
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449
4353
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450
4354
do
4451
4355
  IFS=$as_save_IFS
4452
4356
  test -z "$as_dir" && as_dir=.
4453
 
  for ac_prog in grep ggrep; do
4454
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4455
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4457
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
4357
    for ac_prog in grep ggrep; do
 
4358
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4359
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4360
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4361
# Check for GNU ac_path_GREP and select it if it is found.
4458
4362
  # Check for GNU $ac_path_GREP
4459
4363
case `"$ac_path_GREP" --version 2>&1` in
4460
4364
*GNU*)
4461
4365
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462
4366
*)
4463
4367
  ac_count=0
4464
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4368
  $as_echo_n 0123456789 >"conftest.in"
4465
4369
  while :
4466
4370
  do
4467
4371
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4468
4372
    mv "conftest.tmp" "conftest.in"
4469
4373
    cp "conftest.in" "conftest.nl"
4470
 
    echo 'GREP' >> "conftest.nl"
 
4374
    $as_echo 'GREP' >> "conftest.nl"
4471
4375
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472
4376
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473
 
    ac_count=`expr $ac_count + 1`
 
4377
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4474
4378
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475
4379
      # Best one so far, save it but keep looking for a better one
4476
4380
      ac_cv_path_GREP="$ac_path_GREP"
4482
4386
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483
4387
esac
4484
4388
 
4485
 
 
4486
 
    $ac_path_GREP_found && break 3
4487
 
  done
4488
 
done
4489
 
 
4490
 
done
 
4389
      $ac_path_GREP_found && break 3
 
4390
    done
 
4391
  done
 
4392
  done
4491
4393
IFS=$as_save_IFS
4492
 
 
4493
 
 
4494
 
fi
4495
 
 
4496
 
GREP="$ac_cv_path_GREP"
4497
 
if test -z "$GREP"; then
4498
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500
 
   { (exit 1); exit 1; }; }
4501
 
fi
4502
 
 
 
4394
  if test -z "$ac_cv_path_GREP"; then
 
4395
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4396
  fi
4503
4397
else
4504
4398
  ac_cv_path_GREP=$GREP
4505
4399
fi
4506
4400
 
4507
 
 
4508
4401
fi
4509
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4510
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4403
$as_echo "$ac_cv_path_GREP" >&6; }
4511
4404
 GREP="$ac_cv_path_GREP"
4512
4405
 
4513
4406
 
4514
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4515
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4516
 
if test "${ac_cv_path_EGREP+set}" = set; then
4517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4408
$as_echo_n "checking for egrep... " >&6; }
 
4409
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4410
  $as_echo_n "(cached) " >&6
4518
4411
else
4519
4412
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520
4413
   then ac_cv_path_EGREP="$GREP -E"
4521
4414
   else
4522
 
     # Extract the first word of "egrep" to use in msg output
4523
 
if test -z "$EGREP"; then
4524
 
set dummy egrep; ac_prog_name=$2
4525
 
if test "${ac_cv_path_EGREP+set}" = set; then
4526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4527
 
else
 
4415
     if test -z "$EGREP"; then
4528
4416
  ac_path_EGREP_found=false
4529
 
# Loop through the user's path and test for each of PROGNAME-LIST
4530
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4417
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4418
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531
4419
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532
4420
do
4533
4421
  IFS=$as_save_IFS
4534
4422
  test -z "$as_dir" && as_dir=.
4535
 
  for ac_prog in egrep; do
4536
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4537
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4539
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4423
    for ac_prog in egrep; do
 
4424
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4425
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4426
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4427
# Check for GNU ac_path_EGREP and select it if it is found.
4540
4428
  # Check for GNU $ac_path_EGREP
4541
4429
case `"$ac_path_EGREP" --version 2>&1` in
4542
4430
*GNU*)
4543
4431
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4544
4432
*)
4545
4433
  ac_count=0
4546
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4434
  $as_echo_n 0123456789 >"conftest.in"
4547
4435
  while :
4548
4436
  do
4549
4437
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4550
4438
    mv "conftest.tmp" "conftest.in"
4551
4439
    cp "conftest.in" "conftest.nl"
4552
 
    echo 'EGREP' >> "conftest.nl"
 
4440
    $as_echo 'EGREP' >> "conftest.nl"
4553
4441
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554
4442
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555
 
    ac_count=`expr $ac_count + 1`
 
4443
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4556
4444
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557
4445
      # Best one so far, save it but keep looking for a better one
4558
4446
      ac_cv_path_EGREP="$ac_path_EGREP"
4564
4452
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565
4453
esac
4566
4454
 
4567
 
 
4568
 
    $ac_path_EGREP_found && break 3
4569
 
  done
4570
 
done
4571
 
 
4572
 
done
 
4455
      $ac_path_EGREP_found && break 3
 
4456
    done
 
4457
  done
 
4458
  done
4573
4459
IFS=$as_save_IFS
4574
 
 
4575
 
 
4576
 
fi
4577
 
 
4578
 
EGREP="$ac_cv_path_EGREP"
4579
 
if test -z "$EGREP"; then
4580
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582
 
   { (exit 1); exit 1; }; }
4583
 
fi
4584
 
 
 
4460
  if test -z "$ac_cv_path_EGREP"; then
 
4461
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4462
  fi
4585
4463
else
4586
4464
  ac_cv_path_EGREP=$EGREP
4587
4465
fi
4588
4466
 
4589
 
 
4590
4467
   fi
4591
4468
fi
4592
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4593
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4470
$as_echo "$ac_cv_path_EGREP" >&6; }
4594
4471
 EGREP="$ac_cv_path_EGREP"
4595
4472
 
4596
4473
 
 
4474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4475
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4476
if test "${ac_cv_header_stdc+set}" = set; then :
 
4477
  $as_echo_n "(cached) " >&6
 
4478
else
 
4479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4480
/* end confdefs.h.  */
 
4481
#include <stdlib.h>
 
4482
#include <stdarg.h>
 
4483
#include <string.h>
 
4484
#include <float.h>
 
4485
 
 
4486
int
 
4487
main ()
 
4488
{
 
4489
 
 
4490
  ;
 
4491
  return 0;
 
4492
}
 
4493
_ACEOF
 
4494
if ac_fn_c_try_compile "$LINENO"; then :
 
4495
  ac_cv_header_stdc=yes
 
4496
else
 
4497
  ac_cv_header_stdc=no
 
4498
fi
 
4499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4500
 
 
4501
if test $ac_cv_header_stdc = yes; then
 
4502
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4503
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4504
/* end confdefs.h.  */
 
4505
#include <string.h>
 
4506
 
 
4507
_ACEOF
 
4508
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4509
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4510
 
 
4511
else
 
4512
  ac_cv_header_stdc=no
 
4513
fi
 
4514
rm -f conftest*
 
4515
 
 
4516
fi
 
4517
 
 
4518
if test $ac_cv_header_stdc = yes; then
 
4519
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4520
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4521
/* end confdefs.h.  */
 
4522
#include <stdlib.h>
 
4523
 
 
4524
_ACEOF
 
4525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4526
  $EGREP "free" >/dev/null 2>&1; then :
 
4527
 
 
4528
else
 
4529
  ac_cv_header_stdc=no
 
4530
fi
 
4531
rm -f conftest*
 
4532
 
 
4533
fi
 
4534
 
 
4535
if test $ac_cv_header_stdc = yes; then
 
4536
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4537
  if test "$cross_compiling" = yes; then :
 
4538
  :
 
4539
else
 
4540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4541
/* end confdefs.h.  */
 
4542
#include <ctype.h>
 
4543
#include <stdlib.h>
 
4544
#if ((' ' & 0x0FF) == 0x020)
 
4545
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4546
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4547
#else
 
4548
# define ISLOWER(c) \
 
4549
                   (('a' <= (c) && (c) <= 'i') \
 
4550
                     || ('j' <= (c) && (c) <= 'r') \
 
4551
                     || ('s' <= (c) && (c) <= 'z'))
 
4552
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4553
#endif
 
4554
 
 
4555
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4556
int
 
4557
main ()
 
4558
{
 
4559
  int i;
 
4560
  for (i = 0; i < 256; i++)
 
4561
    if (XOR (islower (i), ISLOWER (i))
 
4562
        || toupper (i) != TOUPPER (i))
 
4563
      return 2;
 
4564
  return 0;
 
4565
}
 
4566
_ACEOF
 
4567
if ac_fn_c_try_run "$LINENO"; then :
 
4568
 
 
4569
else
 
4570
  ac_cv_header_stdc=no
 
4571
fi
 
4572
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4573
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4574
fi
 
4575
 
 
4576
fi
 
4577
fi
 
4578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4579
$as_echo "$ac_cv_header_stdc" >&6; }
 
4580
if test $ac_cv_header_stdc = yes; then
 
4581
 
 
4582
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4583
 
 
4584
fi
 
4585
 
 
4586
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4587
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4588
                  inttypes.h stdint.h unistd.h
 
4589
do :
 
4590
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4591
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4592
"
 
4593
eval as_val=\$$as_ac_Header
 
4594
   if test "x$as_val" = x""yes; then :
 
4595
  cat >>confdefs.h <<_ACEOF
 
4596
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4597
_ACEOF
 
4598
 
 
4599
fi
 
4600
 
 
4601
done
 
4602
 
 
4603
 
 
4604
 
 
4605
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4606
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
4607
  MINIX=yes
 
4608
else
 
4609
  MINIX=
 
4610
fi
 
4611
 
 
4612
 
 
4613
  if test "$MINIX" = yes; then
 
4614
 
 
4615
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4616
 
 
4617
 
 
4618
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4619
 
 
4620
 
 
4621
$as_echo "#define _MINIX 1" >>confdefs.h
 
4622
 
 
4623
  fi
 
4624
 
 
4625
 
 
4626
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4627
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4628
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
4629
  $as_echo_n "(cached) " >&6
 
4630
else
 
4631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4632
/* end confdefs.h.  */
 
4633
 
 
4634
#         define __EXTENSIONS__ 1
 
4635
          $ac_includes_default
 
4636
int
 
4637
main ()
 
4638
{
 
4639
 
 
4640
  ;
 
4641
  return 0;
 
4642
}
 
4643
_ACEOF
 
4644
if ac_fn_c_try_compile "$LINENO"; then :
 
4645
  ac_cv_safe_to_define___extensions__=yes
 
4646
else
 
4647
  ac_cv_safe_to_define___extensions__=no
 
4648
fi
 
4649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4650
fi
 
4651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4652
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4653
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4654
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4655
 
 
4656
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4657
 
 
4658
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4659
 
 
4660
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4661
 
 
4662
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4663
 
 
4664
 
 
4665
 
 
4666
 
 
4667
 
 
4668
case `pwd` in
 
4669
  *\ * | *\     *)
 
4670
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4671
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4672
esac
 
4673
 
 
4674
 
 
4675
 
 
4676
macro_version='2.2.6'
 
4677
macro_revision='1.3012'
 
4678
 
 
4679
 
 
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
 
4685
 
 
4686
 
 
4687
 
 
4688
 
 
4689
 
 
4690
 
 
4691
ltmain="$ac_aux_dir/ltmain.sh"
 
4692
 
 
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4694
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4695
if test "${ac_cv_path_SED+set}" = set; then :
 
4696
  $as_echo_n "(cached) " >&6
 
4697
else
 
4698
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4699
     for ac_i in 1 2 3 4 5 6 7; do
 
4700
       ac_script="$ac_script$as_nl$ac_script"
 
4701
     done
 
4702
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4703
     { ac_script=; unset ac_script;}
 
4704
     if test -z "$SED"; then
 
4705
  ac_path_SED_found=false
 
4706
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4707
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4708
for as_dir in $PATH
 
4709
do
 
4710
  IFS=$as_save_IFS
 
4711
  test -z "$as_dir" && as_dir=.
 
4712
    for ac_prog in sed gsed; do
 
4713
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4714
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4715
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4716
# Check for GNU ac_path_SED and select it if it is found.
 
4717
  # Check for GNU $ac_path_SED
 
4718
case `"$ac_path_SED" --version 2>&1` in
 
4719
*GNU*)
 
4720
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4721
*)
 
4722
  ac_count=0
 
4723
  $as_echo_n 0123456789 >"conftest.in"
 
4724
  while :
 
4725
  do
 
4726
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4727
    mv "conftest.tmp" "conftest.in"
 
4728
    cp "conftest.in" "conftest.nl"
 
4729
    $as_echo '' >> "conftest.nl"
 
4730
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4731
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4732
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4733
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4734
      # Best one so far, save it but keep looking for a better one
 
4735
      ac_cv_path_SED="$ac_path_SED"
 
4736
      ac_path_SED_max=$ac_count
 
4737
    fi
 
4738
    # 10*(2^10) chars as input seems more than enough
 
4739
    test $ac_count -gt 10 && break
 
4740
  done
 
4741
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4742
esac
 
4743
 
 
4744
      $ac_path_SED_found && break 3
 
4745
    done
 
4746
  done
 
4747
  done
 
4748
IFS=$as_save_IFS
 
4749
  if test -z "$ac_cv_path_SED"; then
 
4750
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4751
  fi
 
4752
else
 
4753
  ac_cv_path_SED=$SED
 
4754
fi
 
4755
 
 
4756
fi
 
4757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4758
$as_echo "$ac_cv_path_SED" >&6; }
 
4759
 SED="$ac_cv_path_SED"
 
4760
  rm -f conftest.sed
 
4761
 
 
4762
test -z "$SED" && SED=sed
 
4763
Xsed="$SED -e 1s/^X//"
 
4764
 
 
4765
 
 
4766
 
 
4767
 
 
4768
 
 
4769
 
 
4770
 
 
4771
 
 
4772
 
 
4773
 
 
4774
 
 
4775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4776
$as_echo_n "checking for fgrep... " >&6; }
 
4777
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4778
  $as_echo_n "(cached) " >&6
 
4779
else
 
4780
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4781
   then ac_cv_path_FGREP="$GREP -F"
 
4782
   else
 
4783
     if test -z "$FGREP"; then
 
4784
  ac_path_FGREP_found=false
 
4785
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4786
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4787
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4788
do
 
4789
  IFS=$as_save_IFS
 
4790
  test -z "$as_dir" && as_dir=.
 
4791
    for ac_prog in fgrep; do
 
4792
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4793
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4794
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4795
# Check for GNU ac_path_FGREP and select it if it is found.
 
4796
  # Check for GNU $ac_path_FGREP
 
4797
case `"$ac_path_FGREP" --version 2>&1` in
 
4798
*GNU*)
 
4799
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4800
*)
 
4801
  ac_count=0
 
4802
  $as_echo_n 0123456789 >"conftest.in"
 
4803
  while :
 
4804
  do
 
4805
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4806
    mv "conftest.tmp" "conftest.in"
 
4807
    cp "conftest.in" "conftest.nl"
 
4808
    $as_echo 'FGREP' >> "conftest.nl"
 
4809
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4810
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4811
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4812
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4813
      # Best one so far, save it but keep looking for a better one
 
4814
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4815
      ac_path_FGREP_max=$ac_count
 
4816
    fi
 
4817
    # 10*(2^10) chars as input seems more than enough
 
4818
    test $ac_count -gt 10 && break
 
4819
  done
 
4820
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4821
esac
 
4822
 
 
4823
      $ac_path_FGREP_found && break 3
 
4824
    done
 
4825
  done
 
4826
  done
 
4827
IFS=$as_save_IFS
 
4828
  if test -z "$ac_cv_path_FGREP"; then
 
4829
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4830
  fi
 
4831
else
 
4832
  ac_cv_path_FGREP=$FGREP
 
4833
fi
 
4834
 
 
4835
   fi
 
4836
fi
 
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4838
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4839
 FGREP="$ac_cv_path_FGREP"
 
4840
 
 
4841
 
 
4842
test -z "$GREP" && GREP=grep
 
4843
 
 
4844
 
 
4845
 
 
4846
 
 
4847
 
 
4848
 
 
4849
 
 
4850
 
 
4851
 
 
4852
 
 
4853
 
 
4854
 
 
4855
 
 
4856
 
 
4857
 
 
4858
 
 
4859
 
 
4860
 
4597
4861
 
4598
4862
# Check whether --with-gnu-ld was given.
4599
 
if test "${with_gnu_ld+set}" = set; then
 
4863
if test "${with_gnu_ld+set}" = set; then :
4600
4864
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4601
4865
else
4602
4866
  with_gnu_ld=no
4605
4869
ac_prog=ld
4606
4870
if test "$GCC" = yes; then
4607
4871
  # Check if gcc -print-prog-name=ld gives a path.
4608
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4609
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4872
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4873
$as_echo_n "checking for ld used by $CC... " >&6; }
4610
4874
  case $host in
4611
4875
  *-*-mingw*)
4612
4876
    # gcc leaves a trailing carriage return which upsets mingw
4619
4883
    [\\/]* | ?:[\\/]*)
4620
4884
      re_direlt='/[^/][^/]*/\.\./'
4621
4885
      # Canonicalize the pathname of ld
4622
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4623
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4624
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4886
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4887
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4888
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4625
4889
      done
4626
4890
      test -z "$LD" && LD="$ac_prog"
4627
4891
      ;;
4635
4899
    ;;
4636
4900
  esac
4637
4901
elif test "$with_gnu_ld" = yes; then
4638
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4639
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4902
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4903
$as_echo_n "checking for GNU ld... " >&6; }
4640
4904
else
4641
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4642
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4906
$as_echo_n "checking for non-GNU ld... " >&6; }
4643
4907
fi
4644
 
if test "${lt_cv_path_LD+set}" = set; then
4645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4908
if test "${lt_cv_path_LD+set}" = set; then :
 
4909
  $as_echo_n "(cached) " >&6
4646
4910
else
4647
4911
  if test -z "$LD"; then
4648
4912
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4652
4916
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653
4917
      lt_cv_path_LD="$ac_dir/$ac_prog"
4654
4918
      # Check to see if the program is GNU ld.  I'd rather use --version,
4655
 
      # but apparently some GNU ld's only accept -v.
 
4919
      # but apparently some variants of GNU ld only accept -v.
4656
4920
      # Break only if it was the GNU/non-GNU ld that we prefer.
4657
4921
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658
4922
      *GNU* | *'with BFD'*)
4672
4936
 
4673
4937
LD="$lt_cv_path_LD"
4674
4938
if test -n "$LD"; then
4675
 
  { echo "$as_me:$LINENO: result: $LD" >&5
4676
 
echo "${ECHO_T}$LD" >&6; }
 
4939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4940
$as_echo "$LD" >&6; }
4677
4941
else
4678
 
  { echo "$as_me:$LINENO: result: no" >&5
4679
 
echo "${ECHO_T}no" >&6; }
 
4942
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4943
$as_echo "no" >&6; }
4680
4944
fi
4681
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4682
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4683
 
   { (exit 1); exit 1; }; }
4684
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4685
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4686
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4687
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4945
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4947
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4948
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4949
  $as_echo_n "(cached) " >&6
4688
4950
else
4689
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4951
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4690
4952
case `$LD -v 2>&1 </dev/null` in
4691
4953
*GNU* | *'with BFD'*)
4692
4954
  lt_cv_prog_gnu_ld=yes
4696
4958
  ;;
4697
4959
esac
4698
4960
fi
4699
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4700
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4962
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4701
4963
with_gnu_ld=$lt_cv_prog_gnu_ld
4702
4964
 
4703
4965
 
4704
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4705
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4706
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4707
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4966
 
 
4967
 
 
4968
 
 
4969
 
 
4970
 
 
4971
 
 
4972
 
 
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4974
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4975
if test "${lt_cv_path_NM+set}" = set; then :
 
4976
  $as_echo_n "(cached) " >&6
 
4977
else
 
4978
  if test -n "$NM"; then
 
4979
  # Let the user override the test.
 
4980
  lt_cv_path_NM="$NM"
 
4981
else
 
4982
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4983
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4984
    lt_nm_to_check="$lt_nm_to_check nm"
 
4985
  fi
 
4986
  for lt_tmp_nm in $lt_nm_to_check; do
 
4987
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4988
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4989
      IFS="$lt_save_ifs"
 
4990
      test -z "$ac_dir" && ac_dir=.
 
4991
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4992
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4993
        # Check to see if the nm accepts a BSD-compat flag.
 
4994
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4995
        #   nm: unknown option "B" ignored
 
4996
        # Tru64's nm complains that /dev/null is an invalid object file
 
4997
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4998
        */dev/null* | *'Invalid file or object type'*)
 
4999
          lt_cv_path_NM="$tmp_nm -B"
 
5000
          break
 
5001
          ;;
 
5002
        *)
 
5003
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5004
          */dev/null*)
 
5005
            lt_cv_path_NM="$tmp_nm -p"
 
5006
            break
 
5007
            ;;
 
5008
          *)
 
5009
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5010
            continue # so that we can try to find one that supports BSD flags
 
5011
            ;;
 
5012
          esac
 
5013
          ;;
 
5014
        esac
 
5015
      fi
 
5016
    done
 
5017
    IFS="$lt_save_ifs"
 
5018
  done
 
5019
  : ${lt_cv_path_NM=no}
 
5020
fi
 
5021
fi
 
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5023
$as_echo "$lt_cv_path_NM" >&6; }
 
5024
if test "$lt_cv_path_NM" != "no"; then
 
5025
  NM="$lt_cv_path_NM"
 
5026
else
 
5027
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5028
  if test -n "$ac_tool_prefix"; then
 
5029
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5030
  do
 
5031
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5032
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5034
$as_echo_n "checking for $ac_word... " >&6; }
 
5035
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5036
  $as_echo_n "(cached) " >&6
 
5037
else
 
5038
  if test -n "$DUMPBIN"; then
 
5039
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5040
else
 
5041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5042
for as_dir in $PATH
 
5043
do
 
5044
  IFS=$as_save_IFS
 
5045
  test -z "$as_dir" && as_dir=.
 
5046
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5048
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5049
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5050
    break 2
 
5051
  fi
 
5052
done
 
5053
  done
 
5054
IFS=$as_save_IFS
 
5055
 
 
5056
fi
 
5057
fi
 
5058
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5059
if test -n "$DUMPBIN"; then
 
5060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5061
$as_echo "$DUMPBIN" >&6; }
 
5062
else
 
5063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5064
$as_echo "no" >&6; }
 
5065
fi
 
5066
 
 
5067
 
 
5068
    test -n "$DUMPBIN" && break
 
5069
  done
 
5070
fi
 
5071
if test -z "$DUMPBIN"; then
 
5072
  ac_ct_DUMPBIN=$DUMPBIN
 
5073
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5074
do
 
5075
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5076
set dummy $ac_prog; ac_word=$2
 
5077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5078
$as_echo_n "checking for $ac_word... " >&6; }
 
5079
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5080
  $as_echo_n "(cached) " >&6
 
5081
else
 
5082
  if test -n "$ac_ct_DUMPBIN"; then
 
5083
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5084
else
 
5085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5086
for as_dir in $PATH
 
5087
do
 
5088
  IFS=$as_save_IFS
 
5089
  test -z "$as_dir" && as_dir=.
 
5090
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5091
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5092
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5093
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5094
    break 2
 
5095
  fi
 
5096
done
 
5097
  done
 
5098
IFS=$as_save_IFS
 
5099
 
 
5100
fi
 
5101
fi
 
5102
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5103
if test -n "$ac_ct_DUMPBIN"; then
 
5104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5105
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5106
else
 
5107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5108
$as_echo "no" >&6; }
 
5109
fi
 
5110
 
 
5111
 
 
5112
  test -n "$ac_ct_DUMPBIN" && break
 
5113
done
 
5114
 
 
5115
  if test "x$ac_ct_DUMPBIN" = x; then
 
5116
    DUMPBIN=":"
 
5117
  else
 
5118
    case $cross_compiling:$ac_tool_warned in
 
5119
yes:)
 
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5121
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5122
ac_tool_warned=yes ;;
 
5123
esac
 
5124
    DUMPBIN=$ac_ct_DUMPBIN
 
5125
  fi
 
5126
fi
 
5127
 
 
5128
 
 
5129
  if test "$DUMPBIN" != ":"; then
 
5130
    NM="$DUMPBIN"
 
5131
  fi
 
5132
fi
 
5133
test -z "$NM" && NM=nm
 
5134
 
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
 
 
5140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5141
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5142
if test "${lt_cv_nm_interface+set}" = set; then :
 
5143
  $as_echo_n "(cached) " >&6
 
5144
else
 
5145
  lt_cv_nm_interface="BSD nm"
 
5146
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5147
  (eval echo "\"\$as_me:5147: $ac_compile\"" >&5)
 
5148
  (eval "$ac_compile" 2>conftest.err)
 
5149
  cat conftest.err >&5
 
5150
  (eval echo "\"\$as_me:5150: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5151
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5152
  cat conftest.err >&5
 
5153
  (eval echo "\"\$as_me:5153: output\"" >&5)
 
5154
  cat conftest.out >&5
 
5155
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5156
    lt_cv_nm_interface="MS dumpbin"
 
5157
  fi
 
5158
  rm -f conftest*
 
5159
fi
 
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5161
$as_echo "$lt_cv_nm_interface" >&6; }
 
5162
 
 
5163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5164
$as_echo_n "checking whether ln -s works... " >&6; }
 
5165
LN_S=$as_ln_s
 
5166
if test "$LN_S" = "ln -s"; then
 
5167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5168
$as_echo "yes" >&6; }
 
5169
else
 
5170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5171
$as_echo "no, using $LN_S" >&6; }
 
5172
fi
 
5173
 
 
5174
# find the maximum length of command line arguments
 
5175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5176
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5177
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5178
  $as_echo_n "(cached) " >&6
 
5179
else
 
5180
    i=0
 
5181
  teststring="ABCD"
 
5182
 
 
5183
  case $build_os in
 
5184
  msdosdjgpp*)
 
5185
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5186
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5187
    # during glob expansion).  Even if it were fixed, the result of this
 
5188
    # check would be larger than it should be.
 
5189
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5190
    ;;
 
5191
 
 
5192
  gnu*)
 
5193
    # Under GNU Hurd, this test is not required because there is
 
5194
    # no limit to the length of command line arguments.
 
5195
    # Libtool will interpret -1 as no limit whatsoever
 
5196
    lt_cv_sys_max_cmd_len=-1;
 
5197
    ;;
 
5198
 
 
5199
  cygwin* | mingw* | cegcc*)
 
5200
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5201
    # about 5 minutes as the teststring grows exponentially.
 
5202
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5203
    # you end up with a "frozen" computer, even though with patience
 
5204
    # the test eventually succeeds (with a max line length of 256k).
 
5205
    # Instead, let's just punt: use the minimum linelength reported by
 
5206
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5207
    lt_cv_sys_max_cmd_len=8192;
 
5208
    ;;
 
5209
 
 
5210
  amigaos*)
 
5211
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5212
    # So we just punt and use a minimum line length of 8192.
 
5213
    lt_cv_sys_max_cmd_len=8192;
 
5214
    ;;
 
5215
 
 
5216
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5217
    # This has been around since 386BSD, at least.  Likely further.
 
5218
    if test -x /sbin/sysctl; then
 
5219
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5220
    elif test -x /usr/sbin/sysctl; then
 
5221
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5222
    else
 
5223
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5224
    fi
 
5225
    # And add a safety zone
 
5226
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5227
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5228
    ;;
 
5229
 
 
5230
  interix*)
 
5231
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5232
    lt_cv_sys_max_cmd_len=196608
 
5233
    ;;
 
5234
 
 
5235
  osf*)
 
5236
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5237
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5238
    # nice to cause kernel panics so lets avoid the loop below.
 
5239
    # First set a reasonable default.
 
5240
    lt_cv_sys_max_cmd_len=16384
 
5241
    #
 
5242
    if test -x /sbin/sysconfig; then
 
5243
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5244
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5245
      esac
 
5246
    fi
 
5247
    ;;
 
5248
  sco3.2v5*)
 
5249
    lt_cv_sys_max_cmd_len=102400
 
5250
    ;;
 
5251
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5252
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5253
    if test -n "$kargmax"; then
 
5254
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5255
    else
 
5256
      lt_cv_sys_max_cmd_len=32768
 
5257
    fi
 
5258
    ;;
 
5259
  *)
 
5260
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5261
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5262
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5263
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5264
    else
 
5265
      # Make teststring a little bigger before we do anything with it.
 
5266
      # a 1K string should be a reasonable start.
 
5267
      for i in 1 2 3 4 5 6 7 8 ; do
 
5268
        teststring=$teststring$teststring
 
5269
      done
 
5270
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5271
      # If test is not a shell built-in, we'll probably end up computing a
 
5272
      # maximum length that is only half of the actual maximum length, but
 
5273
      # we can't tell.
 
5274
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5275
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5276
              test $i != 17 # 1/2 MB should be enough
 
5277
      do
 
5278
        i=`expr $i + 1`
 
5279
        teststring=$teststring$teststring
 
5280
      done
 
5281
      # Only check the string length outside the loop.
 
5282
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5283
      teststring=
 
5284
      # Add a significant safety factor because C++ compilers can tack on
 
5285
      # massive amounts of additional arguments before passing them to the
 
5286
      # linker.  It appears as though 1/2 is a usable value.
 
5287
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5288
    fi
 
5289
    ;;
 
5290
  esac
 
5291
 
 
5292
fi
 
5293
 
 
5294
if test -n $lt_cv_sys_max_cmd_len ; then
 
5295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5296
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5297
else
 
5298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5299
$as_echo "none" >&6; }
 
5300
fi
 
5301
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5302
 
 
5303
 
 
5304
 
 
5305
 
 
5306
 
 
5307
 
 
5308
: ${CP="cp -f"}
 
5309
: ${MV="mv -f"}
 
5310
: ${RM="rm -f"}
 
5311
 
 
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5313
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5314
# Try some XSI features
 
5315
xsi_shell=no
 
5316
( _lt_dummy="a/b/c"
 
5317
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5318
      = c,a/b,, \
 
5319
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5320
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5321
  && xsi_shell=yes
 
5322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5323
$as_echo "$xsi_shell" >&6; }
 
5324
 
 
5325
 
 
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5327
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5328
lt_shell_append=no
 
5329
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5330
    >/dev/null 2>&1 \
 
5331
  && lt_shell_append=yes
 
5332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5333
$as_echo "$lt_shell_append" >&6; }
 
5334
 
 
5335
 
 
5336
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5337
  lt_unset=unset
 
5338
else
 
5339
  lt_unset=false
 
5340
fi
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
# test EBCDIC or ASCII
 
5347
case `echo X|tr X '\101'` in
 
5348
 A) # ASCII based system
 
5349
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5350
  lt_SP2NL='tr \040 \012'
 
5351
  lt_NL2SP='tr \015\012 \040\040'
 
5352
  ;;
 
5353
 *) # EBCDIC based system
 
5354
  lt_SP2NL='tr \100 \n'
 
5355
  lt_NL2SP='tr \r\n \100\100'
 
5356
  ;;
 
5357
esac
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5368
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5369
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5370
  $as_echo_n "(cached) " >&6
4708
5371
else
4709
5372
  lt_cv_ld_reload_flag='-r'
4710
5373
fi
4711
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4712
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5375
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4713
5376
reload_flag=$lt_cv_ld_reload_flag
4714
5377
case $reload_flag in
4715
5378
"" | " "*) ;;
4716
5379
*) reload_flag=" $reload_flag" ;;
4717
5380
esac
4718
5381
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4719
 
 
4720
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4721
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4722
 
if test "${lt_cv_path_NM+set}" = set; then
4723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4724
 
else
4725
 
  if test -n "$NM"; then
4726
 
  # Let the user override the test.
4727
 
  lt_cv_path_NM="$NM"
4728
 
else
4729
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4730
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4731
 
    IFS="$lt_save_ifs"
4732
 
    test -z "$ac_dir" && ac_dir=.
4733
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4734
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4735
 
      # Check to see if the nm accepts a BSD-compat flag.
4736
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4737
 
      #   nm: unknown option "B" ignored
4738
 
      # Tru64's nm complains that /dev/null is an invalid object file
4739
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4740
 
      */dev/null* | *'Invalid file or object type'*)
4741
 
        lt_cv_path_NM="$tmp_nm -B"
4742
 
        break
4743
 
        ;;
4744
 
      *)
4745
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4746
 
        */dev/null*)
4747
 
          lt_cv_path_NM="$tmp_nm -p"
4748
 
          break
4749
 
          ;;
4750
 
        *)
4751
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4752
 
          continue # so that we can try to find one that supports BSD flags
4753
 
          ;;
4754
 
        esac
4755
 
      esac
 
5382
case $host_os in
 
5383
  darwin*)
 
5384
    if test "$GCC" = yes; then
 
5385
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5386
    else
 
5387
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756
5388
    fi
4757
 
  done
4758
 
  IFS="$lt_save_ifs"
4759
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4760
 
fi
4761
 
fi
4762
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4763
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4764
 
NM="$lt_cv_path_NM"
4765
 
 
4766
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4767
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4768
 
LN_S=$as_ln_s
4769
 
if test "$LN_S" = "ln -s"; then
4770
 
  { echo "$as_me:$LINENO: result: yes" >&5
4771
 
echo "${ECHO_T}yes" >&6; }
4772
 
else
4773
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4774
 
echo "${ECHO_T}no, using $LN_S" >&6; }
4775
 
fi
4776
 
 
4777
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4778
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4779
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4780
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5389
    ;;
 
5390
esac
 
5391
 
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
 
 
5397
 
 
5398
 
 
5399
 
 
5400
if test -n "$ac_tool_prefix"; then
 
5401
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5402
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5404
$as_echo_n "checking for $ac_word... " >&6; }
 
5405
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5406
  $as_echo_n "(cached) " >&6
 
5407
else
 
5408
  if test -n "$OBJDUMP"; then
 
5409
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5410
else
 
5411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5412
for as_dir in $PATH
 
5413
do
 
5414
  IFS=$as_save_IFS
 
5415
  test -z "$as_dir" && as_dir=.
 
5416
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5418
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5419
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5420
    break 2
 
5421
  fi
 
5422
done
 
5423
  done
 
5424
IFS=$as_save_IFS
 
5425
 
 
5426
fi
 
5427
fi
 
5428
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5429
if test -n "$OBJDUMP"; then
 
5430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5431
$as_echo "$OBJDUMP" >&6; }
 
5432
else
 
5433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5434
$as_echo "no" >&6; }
 
5435
fi
 
5436
 
 
5437
 
 
5438
fi
 
5439
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5440
  ac_ct_OBJDUMP=$OBJDUMP
 
5441
  # Extract the first word of "objdump", so it can be a program name with args.
 
5442
set dummy objdump; ac_word=$2
 
5443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5444
$as_echo_n "checking for $ac_word... " >&6; }
 
5445
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5446
  $as_echo_n "(cached) " >&6
 
5447
else
 
5448
  if test -n "$ac_ct_OBJDUMP"; then
 
5449
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5450
else
 
5451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5452
for as_dir in $PATH
 
5453
do
 
5454
  IFS=$as_save_IFS
 
5455
  test -z "$as_dir" && as_dir=.
 
5456
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5458
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5460
    break 2
 
5461
  fi
 
5462
done
 
5463
  done
 
5464
IFS=$as_save_IFS
 
5465
 
 
5466
fi
 
5467
fi
 
5468
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5469
if test -n "$ac_ct_OBJDUMP"; then
 
5470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5471
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5472
else
 
5473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5474
$as_echo "no" >&6; }
 
5475
fi
 
5476
 
 
5477
  if test "x$ac_ct_OBJDUMP" = x; then
 
5478
    OBJDUMP="false"
 
5479
  else
 
5480
    case $cross_compiling:$ac_tool_warned in
 
5481
yes:)
 
5482
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5483
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5484
ac_tool_warned=yes ;;
 
5485
esac
 
5486
    OBJDUMP=$ac_ct_OBJDUMP
 
5487
  fi
 
5488
else
 
5489
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5490
fi
 
5491
 
 
5492
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5500
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5501
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5502
  $as_echo_n "(cached) " >&6
4781
5503
else
4782
5504
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4783
5505
lt_cv_file_magic_test_file=
4794
5516
# whether `pass_all' will *always* work, you probably want this one.
4795
5517
 
4796
5518
case $host_os in
4797
 
aix4* | aix5*)
 
5519
aix[4-9]*)
4798
5520
  lt_cv_deplibs_check_method=pass_all
4799
5521
  ;;
4800
5522
 
4802
5524
  lt_cv_deplibs_check_method=pass_all
4803
5525
  ;;
4804
5526
 
4805
 
bsdi4*)
 
5527
bsdi[45]*)
4806
5528
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807
5529
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4808
5530
  lt_cv_file_magic_test_file=/shlib/libc.so
4816
5538
 
4817
5539
mingw* | pw32*)
4818
5540
  # Base MSYS/MinGW do not provide the 'file' command needed by
4819
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4820
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5541
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5542
  # unless we find 'file', for example because we are cross-compiling.
 
5543
  if ( file / ) >/dev/null 2>&1; then
 
5544
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5545
    lt_cv_file_magic_cmd='func_win32_libid'
 
5546
  else
 
5547
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5548
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5549
  fi
 
5550
  ;;
 
5551
 
 
5552
cegcc)
 
5553
  # use the weaker test based on 'objdump'. See mingw*.
 
5554
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4821
5555
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4822
5556
  ;;
4823
5557
 
4825
5559
  lt_cv_deplibs_check_method=pass_all
4826
5560
  ;;
4827
5561
 
4828
 
freebsd* | kfreebsd*-gnu)
4829
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5562
freebsd* | dragonfly*)
 
5563
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4830
5564
    case $host_cpu in
4831
5565
    i*86 )
4832
5566
      # Not sure whether the presence of OpenBSD here was a mistake.
4833
5567
      # Let's accept both of them until this is cleared up.
4834
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5568
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4835
5569
      lt_cv_file_magic_cmd=/usr/bin/file
4836
5570
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4837
5571
      ;;
4847
5581
 
4848
5582
hpux10.20* | hpux11*)
4849
5583
  lt_cv_file_magic_cmd=/usr/bin/file
4850
 
  case "$host_cpu" in
 
5584
  case $host_cpu in
4851
5585
  ia64*)
4852
5586
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4853
5587
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4863
5597
  esac
4864
5598
  ;;
4865
5599
 
 
5600
interix[3-9]*)
 
5601
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5602
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5603
  ;;
 
5604
 
4866
5605
irix5* | irix6* | nonstopux*)
4867
5606
  case $LD in
4868
5607
  *-32|*"-32 ") libmagic=32-bit;;
4874
5613
  ;;
4875
5614
 
4876
5615
# This must be Linux ELF.
4877
 
linux*)
 
5616
linux* | k*bsd*-gnu)
4878
5617
  lt_cv_deplibs_check_method=pass_all
4879
5618
  ;;
4880
5619
 
4881
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4882
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5620
netbsd* | netbsdelf*-gnu)
 
5621
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4883
5622
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4884
5623
  else
4885
5624
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4892
5631
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4893
5632
  ;;
4894
5633
 
4895
 
nto-qnx*)
4896
 
  lt_cv_deplibs_check_method=unknown
 
5634
*nto* | *qnx*)
 
5635
  lt_cv_deplibs_check_method=pass_all
4897
5636
  ;;
4898
5637
 
4899
5638
openbsd*)
4900
 
  lt_cv_file_magic_cmd=/usr/bin/file
4901
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4902
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
5639
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5640
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4904
5641
  else
4905
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
5642
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4906
5643
  fi
4907
5644
  ;;
4908
5645
 
4910
5647
  lt_cv_deplibs_check_method=pass_all
4911
5648
  ;;
4912
5649
 
4913
 
sco3.2v5*)
 
5650
rdos*)
4914
5651
  lt_cv_deplibs_check_method=pass_all
4915
5652
  ;;
4916
5653
 
4918
5655
  lt_cv_deplibs_check_method=pass_all
4919
5656
  ;;
4920
5657
 
4921
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5658
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5659
  lt_cv_deplibs_check_method=pass_all
 
5660
  ;;
 
5661
 
 
5662
sysv4 | sysv4.3*)
4922
5663
  case $host_vendor in
4923
5664
  motorola)
4924
5665
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4939
5680
  siemens)
4940
5681
    lt_cv_deplibs_check_method=pass_all
4941
5682
    ;;
 
5683
  pc)
 
5684
    lt_cv_deplibs_check_method=pass_all
 
5685
    ;;
4942
5686
  esac
4943
5687
  ;;
4944
5688
 
4945
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5689
tpf*)
4946
5690
  lt_cv_deplibs_check_method=pass_all
4947
5691
  ;;
4948
5692
esac
4949
5693
 
4950
5694
fi
4951
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4952
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5696
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4953
5697
file_magic_cmd=$lt_cv_file_magic_cmd
4954
5698
deplibs_check_method=$lt_cv_deplibs_check_method
4955
5699
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4957
5701
 
4958
5702
 
4959
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
if test -n "$ac_tool_prefix"; then
 
5713
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5714
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5716
$as_echo_n "checking for $ac_word... " >&6; }
 
5717
if test "${ac_cv_prog_AR+set}" = set; then :
 
5718
  $as_echo_n "(cached) " >&6
 
5719
else
 
5720
  if test -n "$AR"; then
 
5721
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5722
else
 
5723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5724
for as_dir in $PATH
 
5725
do
 
5726
  IFS=$as_save_IFS
 
5727
  test -z "$as_dir" && as_dir=.
 
5728
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5729
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5730
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5731
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5732
    break 2
 
5733
  fi
 
5734
done
 
5735
  done
 
5736
IFS=$as_save_IFS
 
5737
 
 
5738
fi
 
5739
fi
 
5740
AR=$ac_cv_prog_AR
 
5741
if test -n "$AR"; then
 
5742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5743
$as_echo "$AR" >&6; }
 
5744
else
 
5745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5746
$as_echo "no" >&6; }
 
5747
fi
 
5748
 
 
5749
 
 
5750
fi
 
5751
if test -z "$ac_cv_prog_AR"; then
 
5752
  ac_ct_AR=$AR
 
5753
  # Extract the first word of "ar", so it can be a program name with args.
 
5754
set dummy ar; ac_word=$2
 
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5756
$as_echo_n "checking for $ac_word... " >&6; }
 
5757
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5758
  $as_echo_n "(cached) " >&6
 
5759
else
 
5760
  if test -n "$ac_ct_AR"; then
 
5761
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5762
else
 
5763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5764
for as_dir in $PATH
 
5765
do
 
5766
  IFS=$as_save_IFS
 
5767
  test -z "$as_dir" && as_dir=.
 
5768
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5769
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5770
    ac_cv_prog_ac_ct_AR="ar"
 
5771
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5772
    break 2
 
5773
  fi
 
5774
done
 
5775
  done
 
5776
IFS=$as_save_IFS
 
5777
 
 
5778
fi
 
5779
fi
 
5780
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5781
if test -n "$ac_ct_AR"; then
 
5782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5783
$as_echo "$ac_ct_AR" >&6; }
 
5784
else
 
5785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5786
$as_echo "no" >&6; }
 
5787
fi
 
5788
 
 
5789
  if test "x$ac_ct_AR" = x; then
 
5790
    AR="false"
 
5791
  else
 
5792
    case $cross_compiling:$ac_tool_warned in
 
5793
yes:)
 
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5795
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5796
ac_tool_warned=yes ;;
 
5797
esac
 
5798
    AR=$ac_ct_AR
 
5799
  fi
 
5800
else
 
5801
  AR="$ac_cv_prog_AR"
 
5802
fi
 
5803
 
 
5804
test -z "$AR" && AR=ar
 
5805
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
 
 
5816
 
 
5817
if test -n "$ac_tool_prefix"; then
 
5818
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5819
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5821
$as_echo_n "checking for $ac_word... " >&6; }
 
5822
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5823
  $as_echo_n "(cached) " >&6
 
5824
else
 
5825
  if test -n "$STRIP"; then
 
5826
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5827
else
 
5828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5829
for as_dir in $PATH
 
5830
do
 
5831
  IFS=$as_save_IFS
 
5832
  test -z "$as_dir" && as_dir=.
 
5833
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5834
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5835
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5836
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5837
    break 2
 
5838
  fi
 
5839
done
 
5840
  done
 
5841
IFS=$as_save_IFS
 
5842
 
 
5843
fi
 
5844
fi
 
5845
STRIP=$ac_cv_prog_STRIP
 
5846
if test -n "$STRIP"; then
 
5847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5848
$as_echo "$STRIP" >&6; }
 
5849
else
 
5850
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5851
$as_echo "no" >&6; }
 
5852
fi
 
5853
 
 
5854
 
 
5855
fi
 
5856
if test -z "$ac_cv_prog_STRIP"; then
 
5857
  ac_ct_STRIP=$STRIP
 
5858
  # Extract the first word of "strip", so it can be a program name with args.
 
5859
set dummy strip; ac_word=$2
 
5860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5861
$as_echo_n "checking for $ac_word... " >&6; }
 
5862
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5863
  $as_echo_n "(cached) " >&6
 
5864
else
 
5865
  if test -n "$ac_ct_STRIP"; then
 
5866
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5867
else
 
5868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5869
for as_dir in $PATH
 
5870
do
 
5871
  IFS=$as_save_IFS
 
5872
  test -z "$as_dir" && as_dir=.
 
5873
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5875
    ac_cv_prog_ac_ct_STRIP="strip"
 
5876
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5877
    break 2
 
5878
  fi
 
5879
done
 
5880
  done
 
5881
IFS=$as_save_IFS
 
5882
 
 
5883
fi
 
5884
fi
 
5885
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5886
if test -n "$ac_ct_STRIP"; then
 
5887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5888
$as_echo "$ac_ct_STRIP" >&6; }
 
5889
else
 
5890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5891
$as_echo "no" >&6; }
 
5892
fi
 
5893
 
 
5894
  if test "x$ac_ct_STRIP" = x; then
 
5895
    STRIP=":"
 
5896
  else
 
5897
    case $cross_compiling:$ac_tool_warned in
 
5898
yes:)
 
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5900
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5901
ac_tool_warned=yes ;;
 
5902
esac
 
5903
    STRIP=$ac_ct_STRIP
 
5904
  fi
 
5905
else
 
5906
  STRIP="$ac_cv_prog_STRIP"
 
5907
fi
 
5908
 
 
5909
test -z "$STRIP" && STRIP=:
 
5910
 
 
5911
 
 
5912
 
 
5913
 
 
5914
 
 
5915
 
 
5916
if test -n "$ac_tool_prefix"; then
 
5917
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5918
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5920
$as_echo_n "checking for $ac_word... " >&6; }
 
5921
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5922
  $as_echo_n "(cached) " >&6
 
5923
else
 
5924
  if test -n "$RANLIB"; then
 
5925
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5926
else
 
5927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5928
for as_dir in $PATH
 
5929
do
 
5930
  IFS=$as_save_IFS
 
5931
  test -z "$as_dir" && as_dir=.
 
5932
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5934
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5935
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5936
    break 2
 
5937
  fi
 
5938
done
 
5939
  done
 
5940
IFS=$as_save_IFS
 
5941
 
 
5942
fi
 
5943
fi
 
5944
RANLIB=$ac_cv_prog_RANLIB
 
5945
if test -n "$RANLIB"; then
 
5946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5947
$as_echo "$RANLIB" >&6; }
 
5948
else
 
5949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5950
$as_echo "no" >&6; }
 
5951
fi
 
5952
 
 
5953
 
 
5954
fi
 
5955
if test -z "$ac_cv_prog_RANLIB"; then
 
5956
  ac_ct_RANLIB=$RANLIB
 
5957
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5958
set dummy ranlib; ac_word=$2
 
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5960
$as_echo_n "checking for $ac_word... " >&6; }
 
5961
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5962
  $as_echo_n "(cached) " >&6
 
5963
else
 
5964
  if test -n "$ac_ct_RANLIB"; then
 
5965
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5966
else
 
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5968
for as_dir in $PATH
 
5969
do
 
5970
  IFS=$as_save_IFS
 
5971
  test -z "$as_dir" && as_dir=.
 
5972
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5974
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5975
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5976
    break 2
 
5977
  fi
 
5978
done
 
5979
  done
 
5980
IFS=$as_save_IFS
 
5981
 
 
5982
fi
 
5983
fi
 
5984
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5985
if test -n "$ac_ct_RANLIB"; then
 
5986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5987
$as_echo "$ac_ct_RANLIB" >&6; }
 
5988
else
 
5989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5990
$as_echo "no" >&6; }
 
5991
fi
 
5992
 
 
5993
  if test "x$ac_ct_RANLIB" = x; then
 
5994
    RANLIB=":"
 
5995
  else
 
5996
    case $cross_compiling:$ac_tool_warned in
 
5997
yes:)
 
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6000
ac_tool_warned=yes ;;
 
6001
esac
 
6002
    RANLIB=$ac_ct_RANLIB
 
6003
  fi
 
6004
else
 
6005
  RANLIB="$ac_cv_prog_RANLIB"
 
6006
fi
 
6007
 
 
6008
test -z "$RANLIB" && RANLIB=:
 
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
# Determine commands to create old-style static archives.
 
6016
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6017
old_postinstall_cmds='chmod 644 $oldlib'
 
6018
old_postuninstall_cmds=
 
6019
 
 
6020
if test -n "$RANLIB"; then
 
6021
  case $host_os in
 
6022
  openbsd*)
 
6023
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6024
    ;;
 
6025
  *)
 
6026
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6027
    ;;
 
6028
  esac
 
6029
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6030
fi
 
6031
 
 
6032
 
 
6033
 
 
6034
 
 
6035
 
 
6036
 
 
6037
 
 
6038
 
 
6039
 
 
6040
 
 
6041
 
 
6042
 
 
6043
 
 
6044
 
 
6045
 
 
6046
 
 
6047
 
 
6048
 
 
6049
 
 
6050
 
 
6051
 
 
6052
 
 
6053
 
 
6054
 
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
 
 
6064
 
4960
6065
# If no C compiler was specified, use CC.
4961
6066
LTCC=${LTCC-"$CC"}
4962
6067
 
 
6068
# If no C compiler flags were specified, use CFLAGS.
 
6069
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6070
 
4963
6071
# Allow CC to be a program name with arguments.
4964
6072
compiler=$CC
4965
6073
 
4966
6074
 
4967
 
# Check whether --enable-libtool-lock was given.
4968
 
if test "${enable_libtool_lock+set}" = set; then
4969
 
  enableval=$enable_libtool_lock;
4970
 
fi
4971
 
 
4972
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4973
 
 
4974
 
# Some flags need to be propagated to the compiler or linker for good
4975
 
# libtool support.
4976
 
case $host in
4977
 
ia64-*-hpux*)
4978
 
  # Find out which ABI we are using.
4979
 
  echo 'int i;' > conftest.$ac_ext
4980
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981
 
  (eval $ac_compile) 2>&5
4982
 
  ac_status=$?
4983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984
 
  (exit $ac_status); }; then
4985
 
    case `/usr/bin/file conftest.$ac_objext` in
4986
 
    *ELF-32*)
4987
 
      HPUX_IA64_MODE="32"
4988
 
      ;;
4989
 
    *ELF-64*)
4990
 
      HPUX_IA64_MODE="64"
4991
 
      ;;
4992
 
    esac
4993
 
  fi
4994
 
  rm -rf conftest*
4995
 
  ;;
4996
 
*-*-irix6*)
4997
 
  # Find out which ABI we are using.
4998
 
  echo '#line 4998 "configure"' > conftest.$ac_ext
4999
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000
 
  (eval $ac_compile) 2>&5
5001
 
  ac_status=$?
5002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003
 
  (exit $ac_status); }; then
5004
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
5005
 
    case `/usr/bin/file conftest.$ac_objext` in
5006
 
    *32-bit*)
5007
 
      LD="${LD-ld} -melf32bsmip"
5008
 
      ;;
5009
 
    *N32*)
5010
 
      LD="${LD-ld} -melf32bmipn32"
5011
 
      ;;
5012
 
    *64-bit*)
5013
 
      LD="${LD-ld} -melf64bmip"
5014
 
      ;;
5015
 
    esac
5016
 
   else
5017
 
    case `/usr/bin/file conftest.$ac_objext` in
5018
 
    *32-bit*)
5019
 
      LD="${LD-ld} -32"
5020
 
      ;;
5021
 
    *N32*)
5022
 
      LD="${LD-ld} -n32"
5023
 
      ;;
5024
 
    *64-bit*)
5025
 
      LD="${LD-ld} -64"
5026
 
      ;;
5027
 
    esac
5028
 
   fi
5029
 
  fi
5030
 
  rm -rf conftest*
5031
 
  ;;
5032
 
 
5033
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5034
 
  # Find out which ABI we are using.
5035
 
  echo 'int i;' > conftest.$ac_ext
5036
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037
 
  (eval $ac_compile) 2>&5
5038
 
  ac_status=$?
5039
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
 
  (exit $ac_status); }; then
5041
 
    case "`/usr/bin/file conftest.o`" in
5042
 
    *32-bit*)
5043
 
      case $host in
5044
 
        x86_64-*linux*)
5045
 
          LD="${LD-ld} -m elf_i386"
5046
 
          ;;
5047
 
        ppc64-*linux*|powerpc64-*linux*)
5048
 
          LD="${LD-ld} -m elf32ppclinux"
5049
 
          ;;
5050
 
        s390x-*linux*)
5051
 
          LD="${LD-ld} -m elf_s390"
5052
 
          ;;
5053
 
        sparc64-*linux*)
5054
 
          LD="${LD-ld} -m elf32_sparc"
5055
 
          ;;
5056
 
      esac
5057
 
      ;;
5058
 
    *64-bit*)
5059
 
      case $host in
5060
 
        x86_64-*linux*)
5061
 
          LD="${LD-ld} -m elf_x86_64"
5062
 
          ;;
5063
 
        ppc*-*linux*|powerpc*-*linux*)
5064
 
          LD="${LD-ld} -m elf64ppc"
5065
 
          ;;
5066
 
        s390*-*linux*)
5067
 
          LD="${LD-ld} -m elf64_s390"
5068
 
          ;;
5069
 
        sparc*-*linux*)
5070
 
          LD="${LD-ld} -m elf64_sparc"
5071
 
          ;;
5072
 
      esac
5073
 
      ;;
5074
 
    esac
5075
 
  fi
5076
 
  rm -rf conftest*
5077
 
  ;;
5078
 
 
5079
 
*-*-sco3.2v5*)
5080
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5081
 
  SAVE_CFLAGS="$CFLAGS"
5082
 
  CFLAGS="$CFLAGS -belf"
5083
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5084
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5085
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5086
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5087
 
else
5088
 
  ac_ext=c
5089
 
ac_cpp='$CPP $CPPFLAGS'
5090
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
 
 
5094
 
     cat >conftest.$ac_ext <<_ACEOF
5095
 
/* confdefs.h.  */
5096
 
_ACEOF
5097
 
cat confdefs.h >>conftest.$ac_ext
5098
 
cat >>conftest.$ac_ext <<_ACEOF
5099
 
/* end confdefs.h.  */
5100
 
 
5101
 
int
5102
 
main ()
5103
 
{
5104
 
 
5105
 
  ;
5106
 
  return 0;
5107
 
}
5108
 
_ACEOF
5109
 
rm -f conftest.$ac_objext conftest$ac_exeext
5110
 
if { (ac_try="$ac_link"
5111
 
case "(($ac_try" in
5112
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113
 
  *) ac_try_echo=$ac_try;;
5114
 
esac
5115
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116
 
  (eval "$ac_link") 2>conftest.er1
5117
 
  ac_status=$?
5118
 
  grep -v '^ *+' conftest.er1 >conftest.err
5119
 
  rm -f conftest.er1
5120
 
  cat conftest.err >&5
5121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122
 
  (exit $ac_status); } && {
5123
 
         test -z "$ac_c_werror_flag" ||
5124
 
         test ! -s conftest.err
5125
 
       } && test -s conftest$ac_exeext &&
5126
 
       $as_test_x conftest$ac_exeext; then
5127
 
  lt_cv_cc_needs_belf=yes
5128
 
else
5129
 
  echo "$as_me: failed program was:" >&5
5130
 
sed 's/^/| /' conftest.$ac_ext >&5
5131
 
 
5132
 
        lt_cv_cc_needs_belf=no
5133
 
fi
5134
 
 
5135
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5136
 
      conftest$ac_exeext conftest.$ac_ext
5137
 
     ac_ext=c
5138
 
ac_cpp='$CPP $CPPFLAGS'
5139
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
 
 
5143
 
fi
5144
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5146
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148
 
    CFLAGS="$SAVE_CFLAGS"
5149
 
  fi
5150
 
  ;;
5151
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5152
 
  if test -n "$ac_tool_prefix"; then
5153
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5154
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5155
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5156
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5158
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5159
 
else
5160
 
  if test -n "$DLLTOOL"; then
5161
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5162
 
else
5163
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164
 
for as_dir in $PATH
5165
 
do
5166
 
  IFS=$as_save_IFS
5167
 
  test -z "$as_dir" && as_dir=.
5168
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5169
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5171
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172
 
    break 2
5173
 
  fi
5174
 
done
5175
 
done
5176
 
IFS=$as_save_IFS
5177
 
 
5178
 
fi
5179
 
fi
5180
 
DLLTOOL=$ac_cv_prog_DLLTOOL
5181
 
if test -n "$DLLTOOL"; then
5182
 
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5183
 
echo "${ECHO_T}$DLLTOOL" >&6; }
5184
 
else
5185
 
  { echo "$as_me:$LINENO: result: no" >&5
5186
 
echo "${ECHO_T}no" >&6; }
5187
 
fi
5188
 
 
5189
 
 
5190
 
fi
5191
 
if test -z "$ac_cv_prog_DLLTOOL"; then
5192
 
  ac_ct_DLLTOOL=$DLLTOOL
5193
 
  # Extract the first word of "dlltool", so it can be a program name with args.
5194
 
set dummy dlltool; ac_word=$2
5195
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5196
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5198
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5199
 
else
5200
 
  if test -n "$ac_ct_DLLTOOL"; then
5201
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5202
 
else
5203
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204
 
for as_dir in $PATH
5205
 
do
5206
 
  IFS=$as_save_IFS
5207
 
  test -z "$as_dir" && as_dir=.
5208
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5209
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5211
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212
 
    break 2
5213
 
  fi
5214
 
done
5215
 
done
5216
 
IFS=$as_save_IFS
5217
 
 
5218
 
fi
5219
 
fi
5220
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5221
 
if test -n "$ac_ct_DLLTOOL"; then
5222
 
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5223
 
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5224
 
else
5225
 
  { echo "$as_me:$LINENO: result: no" >&5
5226
 
echo "${ECHO_T}no" >&6; }
5227
 
fi
5228
 
 
5229
 
  if test "x$ac_ct_DLLTOOL" = x; then
5230
 
    DLLTOOL="false"
5231
 
  else
5232
 
    case $cross_compiling:$ac_tool_warned in
5233
 
yes:)
5234
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235
 
whose name does not start with the host triplet.  If you think this
5236
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5237
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238
 
whose name does not start with the host triplet.  If you think this
5239
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240
 
ac_tool_warned=yes ;;
5241
 
esac
5242
 
    DLLTOOL=$ac_ct_DLLTOOL
5243
 
  fi
5244
 
else
5245
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5246
 
fi
5247
 
 
5248
 
  if test -n "$ac_tool_prefix"; then
5249
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250
 
set dummy ${ac_tool_prefix}as; ac_word=$2
5251
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5252
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253
 
if test "${ac_cv_prog_AS+set}" = set; then
5254
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5255
 
else
5256
 
  if test -n "$AS"; then
5257
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
5258
 
else
5259
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260
 
for as_dir in $PATH
5261
 
do
5262
 
  IFS=$as_save_IFS
5263
 
  test -z "$as_dir" && as_dir=.
5264
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5265
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
5267
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268
 
    break 2
5269
 
  fi
5270
 
done
5271
 
done
5272
 
IFS=$as_save_IFS
5273
 
 
5274
 
fi
5275
 
fi
5276
 
AS=$ac_cv_prog_AS
5277
 
if test -n "$AS"; then
5278
 
  { echo "$as_me:$LINENO: result: $AS" >&5
5279
 
echo "${ECHO_T}$AS" >&6; }
5280
 
else
5281
 
  { echo "$as_me:$LINENO: result: no" >&5
5282
 
echo "${ECHO_T}no" >&6; }
5283
 
fi
5284
 
 
5285
 
 
5286
 
fi
5287
 
if test -z "$ac_cv_prog_AS"; then
5288
 
  ac_ct_AS=$AS
5289
 
  # Extract the first word of "as", so it can be a program name with args.
5290
 
set dummy as; ac_word=$2
5291
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5292
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5294
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5295
 
else
5296
 
  if test -n "$ac_ct_AS"; then
5297
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5298
 
else
5299
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300
 
for as_dir in $PATH
5301
 
do
5302
 
  IFS=$as_save_IFS
5303
 
  test -z "$as_dir" && as_dir=.
5304
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5305
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306
 
    ac_cv_prog_ac_ct_AS="as"
5307
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308
 
    break 2
5309
 
  fi
5310
 
done
5311
 
done
5312
 
IFS=$as_save_IFS
5313
 
 
5314
 
fi
5315
 
fi
5316
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317
 
if test -n "$ac_ct_AS"; then
5318
 
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5319
 
echo "${ECHO_T}$ac_ct_AS" >&6; }
5320
 
else
5321
 
  { echo "$as_me:$LINENO: result: no" >&5
5322
 
echo "${ECHO_T}no" >&6; }
5323
 
fi
5324
 
 
5325
 
  if test "x$ac_ct_AS" = x; then
5326
 
    AS="false"
5327
 
  else
5328
 
    case $cross_compiling:$ac_tool_warned in
5329
 
yes:)
5330
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5331
 
whose name does not start with the host triplet.  If you think this
5332
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5333
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5334
 
whose name does not start with the host triplet.  If you think this
5335
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336
 
ac_tool_warned=yes ;;
5337
 
esac
5338
 
    AS=$ac_ct_AS
5339
 
  fi
5340
 
else
5341
 
  AS="$ac_cv_prog_AS"
5342
 
fi
5343
 
 
5344
 
  if test -n "$ac_tool_prefix"; then
5345
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5348
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5351
 
else
5352
 
  if test -n "$OBJDUMP"; then
5353
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5354
 
else
5355
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356
 
for as_dir in $PATH
5357
 
do
5358
 
  IFS=$as_save_IFS
5359
 
  test -z "$as_dir" && as_dir=.
5360
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5361
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364
 
    break 2
5365
 
  fi
5366
 
done
5367
 
done
5368
 
IFS=$as_save_IFS
5369
 
 
5370
 
fi
5371
 
fi
5372
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5373
 
if test -n "$OBJDUMP"; then
5374
 
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5375
 
echo "${ECHO_T}$OBJDUMP" >&6; }
5376
 
else
5377
 
  { echo "$as_me:$LINENO: result: no" >&5
5378
 
echo "${ECHO_T}no" >&6; }
5379
 
fi
5380
 
 
5381
 
 
5382
 
fi
5383
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5384
 
  ac_ct_OBJDUMP=$OBJDUMP
5385
 
  # Extract the first word of "objdump", so it can be a program name with args.
5386
 
set dummy objdump; ac_word=$2
5387
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5388
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5391
 
else
5392
 
  if test -n "$ac_ct_OBJDUMP"; then
5393
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5394
 
else
5395
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396
 
for as_dir in $PATH
5397
 
do
5398
 
  IFS=$as_save_IFS
5399
 
  test -z "$as_dir" && as_dir=.
5400
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5401
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404
 
    break 2
5405
 
  fi
5406
 
done
5407
 
done
5408
 
IFS=$as_save_IFS
5409
 
 
5410
 
fi
5411
 
fi
5412
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413
 
if test -n "$ac_ct_OBJDUMP"; then
5414
 
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5415
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5416
 
else
5417
 
  { echo "$as_me:$LINENO: result: no" >&5
5418
 
echo "${ECHO_T}no" >&6; }
5419
 
fi
5420
 
 
5421
 
  if test "x$ac_ct_OBJDUMP" = x; then
5422
 
    OBJDUMP="false"
5423
 
  else
5424
 
    case $cross_compiling:$ac_tool_warned in
5425
 
yes:)
5426
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427
 
whose name does not start with the host triplet.  If you think this
5428
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5429
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430
 
whose name does not start with the host triplet.  If you think this
5431
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432
 
ac_tool_warned=yes ;;
5433
 
esac
5434
 
    OBJDUMP=$ac_ct_OBJDUMP
5435
 
  fi
5436
 
else
5437
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5438
 
fi
5439
 
 
5440
 
  ;;
5441
 
 
5442
 
esac
5443
 
 
5444
 
need_locks="$enable_libtool_lock"
5445
 
 
5446
 
 
5447
 
 
5448
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5449
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5450
 
if test "${ac_cv_header_stdc+set}" = set; then
5451
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5452
 
else
5453
 
  cat >conftest.$ac_ext <<_ACEOF
5454
 
/* confdefs.h.  */
5455
 
_ACEOF
5456
 
cat confdefs.h >>conftest.$ac_ext
5457
 
cat >>conftest.$ac_ext <<_ACEOF
5458
 
/* end confdefs.h.  */
5459
 
#include <stdlib.h>
5460
 
#include <stdarg.h>
5461
 
#include <string.h>
5462
 
#include <float.h>
5463
 
 
5464
 
int
5465
 
main ()
5466
 
{
5467
 
 
5468
 
  ;
5469
 
  return 0;
5470
 
}
5471
 
_ACEOF
5472
 
rm -f conftest.$ac_objext
5473
 
if { (ac_try="$ac_compile"
5474
 
case "(($ac_try" in
5475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476
 
  *) ac_try_echo=$ac_try;;
5477
 
esac
5478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479
 
  (eval "$ac_compile") 2>conftest.er1
5480
 
  ac_status=$?
5481
 
  grep -v '^ *+' conftest.er1 >conftest.err
5482
 
  rm -f conftest.er1
5483
 
  cat conftest.err >&5
5484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485
 
  (exit $ac_status); } && {
5486
 
         test -z "$ac_c_werror_flag" ||
5487
 
         test ! -s conftest.err
5488
 
       } && test -s conftest.$ac_objext; then
5489
 
  ac_cv_header_stdc=yes
5490
 
else
5491
 
  echo "$as_me: failed program was:" >&5
5492
 
sed 's/^/| /' conftest.$ac_ext >&5
5493
 
 
5494
 
        ac_cv_header_stdc=no
5495
 
fi
5496
 
 
5497
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498
 
 
5499
 
if test $ac_cv_header_stdc = yes; then
5500
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5501
 
  cat >conftest.$ac_ext <<_ACEOF
5502
 
/* confdefs.h.  */
5503
 
_ACEOF
5504
 
cat confdefs.h >>conftest.$ac_ext
5505
 
cat >>conftest.$ac_ext <<_ACEOF
5506
 
/* end confdefs.h.  */
5507
 
#include <string.h>
5508
 
 
5509
 
_ACEOF
5510
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511
 
  $EGREP "memchr" >/dev/null 2>&1; then
5512
 
  :
5513
 
else
5514
 
  ac_cv_header_stdc=no
5515
 
fi
5516
 
rm -f conftest*
5517
 
 
5518
 
fi
5519
 
 
5520
 
if test $ac_cv_header_stdc = yes; then
5521
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5522
 
  cat >conftest.$ac_ext <<_ACEOF
5523
 
/* confdefs.h.  */
5524
 
_ACEOF
5525
 
cat confdefs.h >>conftest.$ac_ext
5526
 
cat >>conftest.$ac_ext <<_ACEOF
5527
 
/* end confdefs.h.  */
5528
 
#include <stdlib.h>
5529
 
 
5530
 
_ACEOF
5531
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532
 
  $EGREP "free" >/dev/null 2>&1; then
5533
 
  :
5534
 
else
5535
 
  ac_cv_header_stdc=no
5536
 
fi
5537
 
rm -f conftest*
5538
 
 
5539
 
fi
5540
 
 
5541
 
if test $ac_cv_header_stdc = yes; then
5542
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543
 
  if test "$cross_compiling" = yes; then
5544
 
  :
5545
 
else
5546
 
  cat >conftest.$ac_ext <<_ACEOF
5547
 
/* confdefs.h.  */
5548
 
_ACEOF
5549
 
cat confdefs.h >>conftest.$ac_ext
5550
 
cat >>conftest.$ac_ext <<_ACEOF
5551
 
/* end confdefs.h.  */
5552
 
#include <ctype.h>
5553
 
#include <stdlib.h>
5554
 
#if ((' ' & 0x0FF) == 0x020)
5555
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557
 
#else
5558
 
# define ISLOWER(c) \
5559
 
                   (('a' <= (c) && (c) <= 'i') \
5560
 
                     || ('j' <= (c) && (c) <= 'r') \
5561
 
                     || ('s' <= (c) && (c) <= 'z'))
5562
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563
 
#endif
5564
 
 
5565
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566
 
int
5567
 
main ()
5568
 
{
5569
 
  int i;
5570
 
  for (i = 0; i < 256; i++)
5571
 
    if (XOR (islower (i), ISLOWER (i))
5572
 
        || toupper (i) != TOUPPER (i))
5573
 
      return 2;
5574
 
  return 0;
5575
 
}
5576
 
_ACEOF
5577
 
rm -f conftest$ac_exeext
5578
 
if { (ac_try="$ac_link"
5579
 
case "(($ac_try" in
5580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581
 
  *) ac_try_echo=$ac_try;;
5582
 
esac
5583
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584
 
  (eval "$ac_link") 2>&5
5585
 
  ac_status=$?
5586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5588
 
  { (case "(($ac_try" in
5589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590
 
  *) ac_try_echo=$ac_try;;
5591
 
esac
5592
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593
 
  (eval "$ac_try") 2>&5
5594
 
  ac_status=$?
5595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596
 
  (exit $ac_status); }; }; then
5597
 
  :
5598
 
else
5599
 
  echo "$as_me: program exited with status $ac_status" >&5
5600
 
echo "$as_me: failed program was:" >&5
5601
 
sed 's/^/| /' conftest.$ac_ext >&5
5602
 
 
5603
 
( exit $ac_status )
5604
 
ac_cv_header_stdc=no
5605
 
fi
5606
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5607
 
fi
5608
 
 
5609
 
 
5610
 
fi
5611
 
fi
5612
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5613
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5614
 
if test $ac_cv_header_stdc = yes; then
5615
 
 
5616
 
cat >>confdefs.h <<\_ACEOF
5617
 
#define STDC_HEADERS 1
5618
 
_ACEOF
5619
 
 
5620
 
fi
5621
 
 
5622
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5623
 
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5633
 
                  inttypes.h stdint.h unistd.h
5634
 
do
5635
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5636
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5637
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5638
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5639
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5640
 
else
5641
 
  cat >conftest.$ac_ext <<_ACEOF
5642
 
/* confdefs.h.  */
5643
 
_ACEOF
5644
 
cat confdefs.h >>conftest.$ac_ext
5645
 
cat >>conftest.$ac_ext <<_ACEOF
5646
 
/* end confdefs.h.  */
5647
 
$ac_includes_default
5648
 
 
5649
 
#include <$ac_header>
5650
 
_ACEOF
5651
 
rm -f conftest.$ac_objext
5652
 
if { (ac_try="$ac_compile"
5653
 
case "(($ac_try" in
5654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
 
  *) ac_try_echo=$ac_try;;
5656
 
esac
5657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658
 
  (eval "$ac_compile") 2>conftest.er1
5659
 
  ac_status=$?
5660
 
  grep -v '^ *+' conftest.er1 >conftest.err
5661
 
  rm -f conftest.er1
5662
 
  cat conftest.err >&5
5663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
 
  (exit $ac_status); } && {
5665
 
         test -z "$ac_c_werror_flag" ||
5666
 
         test ! -s conftest.err
5667
 
       } && test -s conftest.$ac_objext; then
5668
 
  eval "$as_ac_Header=yes"
5669
 
else
5670
 
  echo "$as_me: failed program was:" >&5
5671
 
sed 's/^/| /' conftest.$ac_ext >&5
5672
 
 
5673
 
        eval "$as_ac_Header=no"
5674
 
fi
5675
 
 
5676
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677
 
fi
5678
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5679
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5680
 
echo "${ECHO_T}$ac_res" >&6; }
5681
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5682
 
  cat >>confdefs.h <<_ACEOF
5683
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684
 
_ACEOF
5685
 
 
5686
 
fi
5687
 
 
5688
 
done
5689
 
 
5690
 
 
5691
 
 
5692
 
for ac_header in dlfcn.h
5693
 
do
5694
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5695
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5696
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5697
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5698
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5700
 
fi
5701
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5702
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5703
 
echo "${ECHO_T}$ac_res" >&6; }
5704
 
else
5705
 
  # Is the header compilable?
5706
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5707
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5708
 
cat >conftest.$ac_ext <<_ACEOF
5709
 
/* confdefs.h.  */
5710
 
_ACEOF
5711
 
cat confdefs.h >>conftest.$ac_ext
5712
 
cat >>conftest.$ac_ext <<_ACEOF
5713
 
/* end confdefs.h.  */
5714
 
$ac_includes_default
5715
 
#include <$ac_header>
5716
 
_ACEOF
5717
 
rm -f conftest.$ac_objext
5718
 
if { (ac_try="$ac_compile"
5719
 
case "(($ac_try" in
5720
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721
 
  *) ac_try_echo=$ac_try;;
5722
 
esac
5723
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724
 
  (eval "$ac_compile") 2>conftest.er1
5725
 
  ac_status=$?
5726
 
  grep -v '^ *+' conftest.er1 >conftest.err
5727
 
  rm -f conftest.er1
5728
 
  cat conftest.err >&5
5729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
 
  (exit $ac_status); } && {
5731
 
         test -z "$ac_c_werror_flag" ||
5732
 
         test ! -s conftest.err
5733
 
       } && test -s conftest.$ac_objext; then
5734
 
  ac_header_compiler=yes
5735
 
else
5736
 
  echo "$as_me: failed program was:" >&5
5737
 
sed 's/^/| /' conftest.$ac_ext >&5
5738
 
 
5739
 
        ac_header_compiler=no
5740
 
fi
5741
 
 
5742
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5744
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5745
 
 
5746
 
# Is the header present?
5747
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5748
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5749
 
cat >conftest.$ac_ext <<_ACEOF
5750
 
/* confdefs.h.  */
5751
 
_ACEOF
5752
 
cat confdefs.h >>conftest.$ac_ext
5753
 
cat >>conftest.$ac_ext <<_ACEOF
5754
 
/* end confdefs.h.  */
5755
 
#include <$ac_header>
5756
 
_ACEOF
5757
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5758
 
case "(($ac_try" in
5759
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760
 
  *) ac_try_echo=$ac_try;;
5761
 
esac
5762
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5764
 
  ac_status=$?
5765
 
  grep -v '^ *+' conftest.er1 >conftest.err
5766
 
  rm -f conftest.er1
5767
 
  cat conftest.err >&5
5768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
 
  (exit $ac_status); } >/dev/null && {
5770
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771
 
         test ! -s conftest.err
5772
 
       }; then
5773
 
  ac_header_preproc=yes
5774
 
else
5775
 
  echo "$as_me: failed program was:" >&5
5776
 
sed 's/^/| /' conftest.$ac_ext >&5
5777
 
 
5778
 
  ac_header_preproc=no
5779
 
fi
5780
 
 
5781
 
rm -f conftest.err conftest.$ac_ext
5782
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5783
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5784
 
 
5785
 
# So?  What about this header?
5786
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5787
 
  yes:no: )
5788
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5789
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5790
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5791
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5792
 
    ac_header_preproc=yes
5793
 
    ;;
5794
 
  no:yes:* )
5795
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5796
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5797
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5798
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5799
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5800
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5801
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5802
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5803
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5805
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5806
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5807
 
    ( cat <<\_ASBOX
5808
 
## ---------------------------------- ##
5809
 
## Report this to bug-gnupg@gnupg.org ##
5810
 
## ---------------------------------- ##
5811
 
_ASBOX
5812
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5813
 
    ;;
5814
 
esac
5815
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5816
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5817
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5819
 
else
5820
 
  eval "$as_ac_Header=\$ac_header_preproc"
5821
 
fi
5822
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5823
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5824
 
echo "${ECHO_T}$ac_res" >&6; }
5825
 
 
5826
 
fi
5827
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828
 
  cat >>confdefs.h <<_ACEOF
5829
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830
 
_ACEOF
5831
 
 
5832
 
fi
5833
 
 
5834
 
done
5835
 
 
5836
 
ac_ext=cpp
5837
 
ac_cpp='$CXXCPP $CPPFLAGS'
5838
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841
 
if test -z "$CXX"; then
5842
 
  if test -n "$CCC"; then
5843
 
    CXX=$CCC
5844
 
  else
5845
 
    if test -n "$ac_tool_prefix"; then
5846
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5847
 
  do
5848
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852
 
if test "${ac_cv_prog_CXX+set}" = set; then
5853
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5854
 
else
5855
 
  if test -n "$CXX"; then
5856
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5857
 
else
5858
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859
 
for as_dir in $PATH
5860
 
do
5861
 
  IFS=$as_save_IFS
5862
 
  test -z "$as_dir" && as_dir=.
5863
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5864
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5866
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867
 
    break 2
5868
 
  fi
5869
 
done
5870
 
done
5871
 
IFS=$as_save_IFS
5872
 
 
5873
 
fi
5874
 
fi
5875
 
CXX=$ac_cv_prog_CXX
5876
 
if test -n "$CXX"; then
5877
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
5878
 
echo "${ECHO_T}$CXX" >&6; }
5879
 
else
5880
 
  { echo "$as_me:$LINENO: result: no" >&5
5881
 
echo "${ECHO_T}no" >&6; }
5882
 
fi
5883
 
 
5884
 
 
5885
 
    test -n "$CXX" && break
5886
 
  done
5887
 
fi
5888
 
if test -z "$CXX"; then
5889
 
  ac_ct_CXX=$CXX
5890
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5891
 
do
5892
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5893
 
set dummy $ac_prog; ac_word=$2
5894
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5895
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5898
 
else
5899
 
  if test -n "$ac_ct_CXX"; then
5900
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5901
 
else
5902
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
 
for as_dir in $PATH
5904
 
do
5905
 
  IFS=$as_save_IFS
5906
 
  test -z "$as_dir" && as_dir=.
5907
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5908
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5910
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911
 
    break 2
5912
 
  fi
5913
 
done
5914
 
done
5915
 
IFS=$as_save_IFS
5916
 
 
5917
 
fi
5918
 
fi
5919
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5920
 
if test -n "$ac_ct_CXX"; then
5921
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5922
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5923
 
else
5924
 
  { echo "$as_me:$LINENO: result: no" >&5
5925
 
echo "${ECHO_T}no" >&6; }
5926
 
fi
5927
 
 
5928
 
 
5929
 
  test -n "$ac_ct_CXX" && break
5930
 
done
5931
 
 
5932
 
  if test "x$ac_ct_CXX" = x; then
5933
 
    CXX="g++"
5934
 
  else
5935
 
    case $cross_compiling:$ac_tool_warned in
5936
 
yes:)
5937
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938
 
whose name does not start with the host triplet.  If you think this
5939
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5940
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941
 
whose name does not start with the host triplet.  If you think this
5942
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943
 
ac_tool_warned=yes ;;
5944
 
esac
5945
 
    CXX=$ac_ct_CXX
5946
 
  fi
5947
 
fi
5948
 
 
5949
 
  fi
5950
 
fi
5951
 
# Provide some information about the compiler.
5952
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5953
 
ac_compiler=`set X $ac_compile; echo $2`
5954
 
{ (ac_try="$ac_compiler --version >&5"
5955
 
case "(($ac_try" in
5956
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957
 
  *) ac_try_echo=$ac_try;;
5958
 
esac
5959
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960
 
  (eval "$ac_compiler --version >&5") 2>&5
5961
 
  ac_status=$?
5962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
 
  (exit $ac_status); }
5964
 
{ (ac_try="$ac_compiler -v >&5"
5965
 
case "(($ac_try" in
5966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967
 
  *) ac_try_echo=$ac_try;;
5968
 
esac
5969
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970
 
  (eval "$ac_compiler -v >&5") 2>&5
5971
 
  ac_status=$?
5972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973
 
  (exit $ac_status); }
5974
 
{ (ac_try="$ac_compiler -V >&5"
5975
 
case "(($ac_try" in
5976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977
 
  *) ac_try_echo=$ac_try;;
5978
 
esac
5979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980
 
  (eval "$ac_compiler -V >&5") 2>&5
5981
 
  ac_status=$?
5982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983
 
  (exit $ac_status); }
5984
 
 
5985
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5986
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5987
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5989
 
else
5990
 
  cat >conftest.$ac_ext <<_ACEOF
5991
 
/* confdefs.h.  */
5992
 
_ACEOF
5993
 
cat confdefs.h >>conftest.$ac_ext
5994
 
cat >>conftest.$ac_ext <<_ACEOF
5995
 
/* end confdefs.h.  */
5996
 
 
5997
 
int
5998
 
main ()
5999
 
{
6000
 
#ifndef __GNUC__
6001
 
       choke me
6002
 
#endif
6003
 
 
6004
 
  ;
6005
 
  return 0;
6006
 
}
6007
 
_ACEOF
6008
 
rm -f conftest.$ac_objext
6009
 
if { (ac_try="$ac_compile"
6010
 
case "(($ac_try" in
6011
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012
 
  *) ac_try_echo=$ac_try;;
6013
 
esac
6014
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015
 
  (eval "$ac_compile") 2>conftest.er1
6016
 
  ac_status=$?
6017
 
  grep -v '^ *+' conftest.er1 >conftest.err
6018
 
  rm -f conftest.er1
6019
 
  cat conftest.err >&5
6020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
 
  (exit $ac_status); } && {
6022
 
         test -z "$ac_cxx_werror_flag" ||
6023
 
         test ! -s conftest.err
6024
 
       } && test -s conftest.$ac_objext; then
6025
 
  ac_compiler_gnu=yes
6026
 
else
6027
 
  echo "$as_me: failed program was:" >&5
6028
 
sed 's/^/| /' conftest.$ac_ext >&5
6029
 
 
6030
 
        ac_compiler_gnu=no
6031
 
fi
6032
 
 
6033
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6035
 
 
6036
 
fi
6037
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6038
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6039
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
6040
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
6041
 
ac_save_CXXFLAGS=$CXXFLAGS
6042
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6043
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6044
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
6045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6046
 
else
6047
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6048
 
   ac_cxx_werror_flag=yes
6049
 
   ac_cv_prog_cxx_g=no
6050
 
   CXXFLAGS="-g"
6051
 
   cat >conftest.$ac_ext <<_ACEOF
6052
 
/* confdefs.h.  */
6053
 
_ACEOF
6054
 
cat confdefs.h >>conftest.$ac_ext
6055
 
cat >>conftest.$ac_ext <<_ACEOF
6056
 
/* end confdefs.h.  */
6057
 
 
6058
 
int
6059
 
main ()
6060
 
{
6061
 
 
6062
 
  ;
6063
 
  return 0;
6064
 
}
6065
 
_ACEOF
6066
 
rm -f conftest.$ac_objext
6067
 
if { (ac_try="$ac_compile"
6068
 
case "(($ac_try" in
6069
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070
 
  *) ac_try_echo=$ac_try;;
6071
 
esac
6072
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073
 
  (eval "$ac_compile") 2>conftest.er1
6074
 
  ac_status=$?
6075
 
  grep -v '^ *+' conftest.er1 >conftest.err
6076
 
  rm -f conftest.er1
6077
 
  cat conftest.err >&5
6078
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079
 
  (exit $ac_status); } && {
6080
 
         test -z "$ac_cxx_werror_flag" ||
6081
 
         test ! -s conftest.err
6082
 
       } && test -s conftest.$ac_objext; then
6083
 
  ac_cv_prog_cxx_g=yes
6084
 
else
6085
 
  echo "$as_me: failed program was:" >&5
6086
 
sed 's/^/| /' conftest.$ac_ext >&5
6087
 
 
6088
 
        CXXFLAGS=""
6089
 
      cat >conftest.$ac_ext <<_ACEOF
6090
 
/* confdefs.h.  */
6091
 
_ACEOF
6092
 
cat confdefs.h >>conftest.$ac_ext
6093
 
cat >>conftest.$ac_ext <<_ACEOF
6094
 
/* end confdefs.h.  */
6095
 
 
6096
 
int
6097
 
main ()
6098
 
{
6099
 
 
6100
 
  ;
6101
 
  return 0;
6102
 
}
6103
 
_ACEOF
6104
 
rm -f conftest.$ac_objext
6105
 
if { (ac_try="$ac_compile"
6106
 
case "(($ac_try" in
6107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108
 
  *) ac_try_echo=$ac_try;;
6109
 
esac
6110
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111
 
  (eval "$ac_compile") 2>conftest.er1
6112
 
  ac_status=$?
6113
 
  grep -v '^ *+' conftest.er1 >conftest.err
6114
 
  rm -f conftest.er1
6115
 
  cat conftest.err >&5
6116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
 
  (exit $ac_status); } && {
6118
 
         test -z "$ac_cxx_werror_flag" ||
6119
 
         test ! -s conftest.err
6120
 
       } && test -s conftest.$ac_objext; then
6121
 
  :
6122
 
else
6123
 
  echo "$as_me: failed program was:" >&5
6124
 
sed 's/^/| /' conftest.$ac_ext >&5
6125
 
 
6126
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6127
 
         CXXFLAGS="-g"
6128
 
         cat >conftest.$ac_ext <<_ACEOF
6129
 
/* confdefs.h.  */
6130
 
_ACEOF
6131
 
cat confdefs.h >>conftest.$ac_ext
6132
 
cat >>conftest.$ac_ext <<_ACEOF
6133
 
/* end confdefs.h.  */
6134
 
 
6135
 
int
6136
 
main ()
6137
 
{
6138
 
 
6139
 
  ;
6140
 
  return 0;
6141
 
}
6142
 
_ACEOF
6143
 
rm -f conftest.$ac_objext
6144
 
if { (ac_try="$ac_compile"
6145
 
case "(($ac_try" in
6146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147
 
  *) ac_try_echo=$ac_try;;
6148
 
esac
6149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150
 
  (eval "$ac_compile") 2>conftest.er1
6151
 
  ac_status=$?
6152
 
  grep -v '^ *+' conftest.er1 >conftest.err
6153
 
  rm -f conftest.er1
6154
 
  cat conftest.err >&5
6155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
 
  (exit $ac_status); } && {
6157
 
         test -z "$ac_cxx_werror_flag" ||
6158
 
         test ! -s conftest.err
6159
 
       } && test -s conftest.$ac_objext; then
6160
 
  ac_cv_prog_cxx_g=yes
6161
 
else
6162
 
  echo "$as_me: failed program was:" >&5
6163
 
sed 's/^/| /' conftest.$ac_ext >&5
6164
 
 
6165
 
 
6166
 
fi
6167
 
 
6168
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169
 
fi
6170
 
 
6171
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172
 
fi
6173
 
 
6174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6176
 
fi
6177
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6178
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6179
 
if test "$ac_test_CXXFLAGS" = set; then
6180
 
  CXXFLAGS=$ac_save_CXXFLAGS
6181
 
elif test $ac_cv_prog_cxx_g = yes; then
6182
 
  if test "$GXX" = yes; then
6183
 
    CXXFLAGS="-g -O2"
6184
 
  else
6185
 
    CXXFLAGS="-g"
6186
 
  fi
6187
 
else
6188
 
  if test "$GXX" = yes; then
6189
 
    CXXFLAGS="-O2"
6190
 
  else
6191
 
    CXXFLAGS=
6192
 
  fi
6193
 
fi
6194
 
ac_ext=cpp
6195
 
ac_cpp='$CXXCPP $CPPFLAGS'
6196
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199
 
 
6200
 
depcc="$CXX"  am_compiler_list=
6201
 
 
6202
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6203
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6204
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6206
 
else
6207
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6208
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6209
 
  # making bogus files that we don't know about and never remove.  For
6210
 
  # instance it was reported that on HP-UX the gcc test will end up
6211
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6212
 
  # in D'.
6213
 
  mkdir conftest.dir
6214
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6215
 
  # using a relative directory.
6216
 
  cp "$am_depcomp" conftest.dir
6217
 
  cd conftest.dir
6218
 
  # We will build objects and dependencies in a subdirectory because
6219
 
  # it helps to detect inapplicable dependency modes.  For instance
6220
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6221
 
  # side effect of compilation, but ICC will put the dependencies in
6222
 
  # the current directory while Tru64 will put them in the object
6223
 
  # directory.
6224
 
  mkdir sub
6225
 
 
6226
 
  am_cv_CXX_dependencies_compiler_type=none
6227
 
  if test "$am_compiler_list" = ""; then
6228
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6229
 
  fi
6230
 
  for depmode in $am_compiler_list; do
6231
 
    # Setup a source with many dependencies, because some compilers
6232
 
    # like to wrap large dependency lists on column 80 (with \), and
6233
 
    # we should not choose a depcomp mode which is confused by this.
6234
 
    #
6235
 
    # We need to recreate these files for each test, as the compiler may
6236
 
    # overwrite some of them when testing with obscure command lines.
6237
 
    # This happens at least with the AIX C compiler.
6238
 
    : > sub/conftest.c
6239
 
    for i in 1 2 3 4 5 6; do
6240
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6242
 
      # Solaris 8's {/usr,}/bin/sh.
6243
 
      touch sub/conftst$i.h
6244
 
    done
6245
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6246
 
 
6247
 
    case $depmode in
6248
 
    nosideeffect)
6249
 
      # after this tag, mechanisms are not by side-effect, so they'll
6250
 
      # only be used when explicitly requested
6251
 
      if test "x$enable_dependency_tracking" = xyes; then
6252
 
        continue
6253
 
      else
6254
 
        break
6255
 
      fi
6256
 
      ;;
6257
 
    none) break ;;
6258
 
    esac
6259
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6260
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6261
 
    # handle `-M -o', and we need to detect this.
6262
 
    if depmode=$depmode \
6263
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6264
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6265
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6266
 
         >/dev/null 2>conftest.err &&
6267
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6268
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271
 
      # icc doesn't choke on unknown options, it will just issue warnings
6272
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6273
 
      # that says an option was ignored or not supported.
6274
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6275
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6276
 
      # The diagnosis changed in icc 8.0:
6277
 
      #   icc: Command line remark: option '-MP' not supported
6278
 
      if (grep 'ignoring option' conftest.err ||
6279
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6281
 
        break
6282
 
      fi
6283
 
    fi
6284
 
  done
6285
 
 
6286
 
  cd ..
6287
 
  rm -rf conftest.dir
6288
 
else
6289
 
  am_cv_CXX_dependencies_compiler_type=none
6290
 
fi
6291
 
 
6292
 
fi
6293
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6294
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6295
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6296
 
 
6297
 
 if
6298
 
  test "x$enable_dependency_tracking" != xno \
6299
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6300
 
  am__fastdepCXX_TRUE=
6301
 
  am__fastdepCXX_FALSE='#'
6302
 
else
6303
 
  am__fastdepCXX_TRUE='#'
6304
 
  am__fastdepCXX_FALSE=
6305
 
fi
6306
 
 
6307
 
 
6308
 
ac_ext=cpp
6309
 
ac_cpp='$CXXCPP $CPPFLAGS'
6310
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6314
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6315
 
if test -z "$CXXCPP"; then
6316
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6318
 
else
6319
 
      # Double quotes because CXXCPP needs to be expanded
6320
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6321
 
    do
6322
 
      ac_preproc_ok=false
6323
 
for ac_cxx_preproc_warn_flag in '' yes
6324
 
do
6325
 
  # Use a header file that comes with gcc, so configuring glibc
6326
 
  # with a fresh cross-compiler works.
6327
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328
 
  # <limits.h> exists even on freestanding compilers.
6329
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6330
 
  # not just through cpp. "Syntax error" is here to catch this case.
6331
 
  cat >conftest.$ac_ext <<_ACEOF
6332
 
/* confdefs.h.  */
6333
 
_ACEOF
6334
 
cat confdefs.h >>conftest.$ac_ext
6335
 
cat >>conftest.$ac_ext <<_ACEOF
6336
 
/* end confdefs.h.  */
6337
 
#ifdef __STDC__
6338
 
# include <limits.h>
6339
 
#else
6340
 
# include <assert.h>
6341
 
#endif
6342
 
                     Syntax error
6343
 
_ACEOF
6344
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6345
 
case "(($ac_try" in
6346
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347
 
  *) ac_try_echo=$ac_try;;
6348
 
esac
6349
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351
 
  ac_status=$?
6352
 
  grep -v '^ *+' conftest.er1 >conftest.err
6353
 
  rm -f conftest.er1
6354
 
  cat conftest.err >&5
6355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356
 
  (exit $ac_status); } >/dev/null && {
6357
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6358
 
         test ! -s conftest.err
6359
 
       }; then
6360
 
  :
6361
 
else
6362
 
  echo "$as_me: failed program was:" >&5
6363
 
sed 's/^/| /' conftest.$ac_ext >&5
6364
 
 
6365
 
  # Broken: fails on valid input.
6366
 
continue
6367
 
fi
6368
 
 
6369
 
rm -f conftest.err conftest.$ac_ext
6370
 
 
6371
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6372
 
  # can be detected and how.
6373
 
  cat >conftest.$ac_ext <<_ACEOF
6374
 
/* confdefs.h.  */
6375
 
_ACEOF
6376
 
cat confdefs.h >>conftest.$ac_ext
6377
 
cat >>conftest.$ac_ext <<_ACEOF
6378
 
/* end confdefs.h.  */
6379
 
#include <ac_nonexistent.h>
6380
 
_ACEOF
6381
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6382
 
case "(($ac_try" in
6383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384
 
  *) ac_try_echo=$ac_try;;
6385
 
esac
6386
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388
 
  ac_status=$?
6389
 
  grep -v '^ *+' conftest.er1 >conftest.err
6390
 
  rm -f conftest.er1
6391
 
  cat conftest.err >&5
6392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393
 
  (exit $ac_status); } >/dev/null && {
6394
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395
 
         test ! -s conftest.err
6396
 
       }; then
6397
 
  # Broken: success on invalid input.
6398
 
continue
6399
 
else
6400
 
  echo "$as_me: failed program was:" >&5
6401
 
sed 's/^/| /' conftest.$ac_ext >&5
6402
 
 
6403
 
  # Passes both tests.
6404
 
ac_preproc_ok=:
6405
 
break
6406
 
fi
6407
 
 
6408
 
rm -f conftest.err conftest.$ac_ext
6409
 
 
6410
 
done
6411
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412
 
rm -f conftest.err conftest.$ac_ext
6413
 
if $ac_preproc_ok; then
6414
 
  break
6415
 
fi
6416
 
 
6417
 
    done
6418
 
    ac_cv_prog_CXXCPP=$CXXCPP
6419
 
 
6420
 
fi
6421
 
  CXXCPP=$ac_cv_prog_CXXCPP
6422
 
else
6423
 
  ac_cv_prog_CXXCPP=$CXXCPP
6424
 
fi
6425
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6426
 
echo "${ECHO_T}$CXXCPP" >&6; }
6427
 
ac_preproc_ok=false
6428
 
for ac_cxx_preproc_warn_flag in '' yes
6429
 
do
6430
 
  # Use a header file that comes with gcc, so configuring glibc
6431
 
  # with a fresh cross-compiler works.
6432
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6433
 
  # <limits.h> exists even on freestanding compilers.
6434
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6435
 
  # not just through cpp. "Syntax error" is here to catch this case.
6436
 
  cat >conftest.$ac_ext <<_ACEOF
6437
 
/* confdefs.h.  */
6438
 
_ACEOF
6439
 
cat confdefs.h >>conftest.$ac_ext
6440
 
cat >>conftest.$ac_ext <<_ACEOF
6441
 
/* end confdefs.h.  */
6442
 
#ifdef __STDC__
6443
 
# include <limits.h>
6444
 
#else
6445
 
# include <assert.h>
6446
 
#endif
6447
 
                     Syntax error
6448
 
_ACEOF
6449
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6450
 
case "(($ac_try" in
6451
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452
 
  *) ac_try_echo=$ac_try;;
6453
 
esac
6454
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6456
 
  ac_status=$?
6457
 
  grep -v '^ *+' conftest.er1 >conftest.err
6458
 
  rm -f conftest.er1
6459
 
  cat conftest.err >&5
6460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461
 
  (exit $ac_status); } >/dev/null && {
6462
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6463
 
         test ! -s conftest.err
6464
 
       }; then
6465
 
  :
6466
 
else
6467
 
  echo "$as_me: failed program was:" >&5
6468
 
sed 's/^/| /' conftest.$ac_ext >&5
6469
 
 
6470
 
  # Broken: fails on valid input.
6471
 
continue
6472
 
fi
6473
 
 
6474
 
rm -f conftest.err conftest.$ac_ext
6475
 
 
6476
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6477
 
  # can be detected and how.
6478
 
  cat >conftest.$ac_ext <<_ACEOF
6479
 
/* confdefs.h.  */
6480
 
_ACEOF
6481
 
cat confdefs.h >>conftest.$ac_ext
6482
 
cat >>conftest.$ac_ext <<_ACEOF
6483
 
/* end confdefs.h.  */
6484
 
#include <ac_nonexistent.h>
6485
 
_ACEOF
6486
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6487
 
case "(($ac_try" in
6488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489
 
  *) ac_try_echo=$ac_try;;
6490
 
esac
6491
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6493
 
  ac_status=$?
6494
 
  grep -v '^ *+' conftest.er1 >conftest.err
6495
 
  rm -f conftest.er1
6496
 
  cat conftest.err >&5
6497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
 
  (exit $ac_status); } >/dev/null && {
6499
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6500
 
         test ! -s conftest.err
6501
 
       }; then
6502
 
  # Broken: success on invalid input.
6503
 
continue
6504
 
else
6505
 
  echo "$as_me: failed program was:" >&5
6506
 
sed 's/^/| /' conftest.$ac_ext >&5
6507
 
 
6508
 
  # Passes both tests.
6509
 
ac_preproc_ok=:
6510
 
break
6511
 
fi
6512
 
 
6513
 
rm -f conftest.err conftest.$ac_ext
6514
 
 
6515
 
done
6516
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6517
 
rm -f conftest.err conftest.$ac_ext
6518
 
if $ac_preproc_ok; then
6519
 
  :
6520
 
else
6521
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6522
 
See \`config.log' for more details." >&5
6523
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6524
 
See \`config.log' for more details." >&2;}
6525
 
   { (exit 1); exit 1; }; }
6526
 
fi
6527
 
 
6528
 
ac_ext=cpp
6529
 
ac_cpp='$CXXCPP $CPPFLAGS'
6530
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6533
 
 
6534
 
 
6535
 
ac_ext=f
6536
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6537
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6539
 
if test -n "$ac_tool_prefix"; then
6540
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6541
 
  do
6542
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6543
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6544
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6545
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546
 
if test "${ac_cv_prog_F77+set}" = set; then
6547
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6548
 
else
6549
 
  if test -n "$F77"; then
6550
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6551
 
else
6552
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553
 
for as_dir in $PATH
6554
 
do
6555
 
  IFS=$as_save_IFS
6556
 
  test -z "$as_dir" && as_dir=.
6557
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6558
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6560
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561
 
    break 2
6562
 
  fi
6563
 
done
6564
 
done
6565
 
IFS=$as_save_IFS
6566
 
 
6567
 
fi
6568
 
fi
6569
 
F77=$ac_cv_prog_F77
6570
 
if test -n "$F77"; then
6571
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6572
 
echo "${ECHO_T}$F77" >&6; }
6573
 
else
6574
 
  { echo "$as_me:$LINENO: result: no" >&5
6575
 
echo "${ECHO_T}no" >&6; }
6576
 
fi
6577
 
 
6578
 
 
6579
 
    test -n "$F77" && break
6580
 
  done
6581
 
fi
6582
 
if test -z "$F77"; then
6583
 
  ac_ct_F77=$F77
6584
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6585
 
do
6586
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6587
 
set dummy $ac_prog; ac_word=$2
6588
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6591
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6592
 
else
6593
 
  if test -n "$ac_ct_F77"; then
6594
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6595
 
else
6596
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597
 
for as_dir in $PATH
6598
 
do
6599
 
  IFS=$as_save_IFS
6600
 
  test -z "$as_dir" && as_dir=.
6601
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6602
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6604
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605
 
    break 2
6606
 
  fi
6607
 
done
6608
 
done
6609
 
IFS=$as_save_IFS
6610
 
 
6611
 
fi
6612
 
fi
6613
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6614
 
if test -n "$ac_ct_F77"; then
6615
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6616
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
6617
 
else
6618
 
  { echo "$as_me:$LINENO: result: no" >&5
6619
 
echo "${ECHO_T}no" >&6; }
6620
 
fi
6621
 
 
6622
 
 
6623
 
  test -n "$ac_ct_F77" && break
6624
 
done
6625
 
 
6626
 
  if test "x$ac_ct_F77" = x; then
6627
 
    F77=""
6628
 
  else
6629
 
    case $cross_compiling:$ac_tool_warned in
6630
 
yes:)
6631
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632
 
whose name does not start with the host triplet.  If you think this
6633
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6634
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635
 
whose name does not start with the host triplet.  If you think this
6636
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637
 
ac_tool_warned=yes ;;
6638
 
esac
6639
 
    F77=$ac_ct_F77
6640
 
  fi
6641
 
fi
6642
 
 
6643
 
 
6644
 
# Provide some information about the compiler.
6645
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6646
 
ac_compiler=`set X $ac_compile; echo $2`
6647
 
{ (ac_try="$ac_compiler --version >&5"
6648
 
case "(($ac_try" in
6649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650
 
  *) ac_try_echo=$ac_try;;
6651
 
esac
6652
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653
 
  (eval "$ac_compiler --version >&5") 2>&5
6654
 
  ac_status=$?
6655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656
 
  (exit $ac_status); }
6657
 
{ (ac_try="$ac_compiler -v >&5"
6658
 
case "(($ac_try" in
6659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660
 
  *) ac_try_echo=$ac_try;;
6661
 
esac
6662
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663
 
  (eval "$ac_compiler -v >&5") 2>&5
6664
 
  ac_status=$?
6665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666
 
  (exit $ac_status); }
6667
 
{ (ac_try="$ac_compiler -V >&5"
6668
 
case "(($ac_try" in
6669
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670
 
  *) ac_try_echo=$ac_try;;
6671
 
esac
6672
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673
 
  (eval "$ac_compiler -V >&5") 2>&5
6674
 
  ac_status=$?
6675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676
 
  (exit $ac_status); }
6677
 
rm -f a.out
6678
 
 
6679
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6680
 
# input file.  (Note that this only needs to work for GNU compilers.)
6681
 
ac_save_ext=$ac_ext
6682
 
ac_ext=F
6683
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6684
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6685
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6686
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6687
 
else
6688
 
  cat >conftest.$ac_ext <<_ACEOF
6689
 
      program main
6690
 
#ifndef __GNUC__
6691
 
       choke me
6692
 
#endif
6693
 
 
6694
 
      end
6695
 
_ACEOF
6696
 
rm -f conftest.$ac_objext
6697
 
if { (ac_try="$ac_compile"
6698
 
case "(($ac_try" in
6699
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700
 
  *) ac_try_echo=$ac_try;;
6701
 
esac
6702
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703
 
  (eval "$ac_compile") 2>conftest.er1
6704
 
  ac_status=$?
6705
 
  grep -v '^ *+' conftest.er1 >conftest.err
6706
 
  rm -f conftest.er1
6707
 
  cat conftest.err >&5
6708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709
 
  (exit $ac_status); } && {
6710
 
         test -z "$ac_f77_werror_flag" ||
6711
 
         test ! -s conftest.err
6712
 
       } && test -s conftest.$ac_objext; then
6713
 
  ac_compiler_gnu=yes
6714
 
else
6715
 
  echo "$as_me: failed program was:" >&5
6716
 
sed 's/^/| /' conftest.$ac_ext >&5
6717
 
 
6718
 
        ac_compiler_gnu=no
6719
 
fi
6720
 
 
6721
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6723
 
 
6724
 
fi
6725
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6726
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6727
 
ac_ext=$ac_save_ext
6728
 
ac_test_FFLAGS=${FFLAGS+set}
6729
 
ac_save_FFLAGS=$FFLAGS
6730
 
FFLAGS=
6731
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6732
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6733
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6734
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6735
 
else
6736
 
  FFLAGS=-g
6737
 
cat >conftest.$ac_ext <<_ACEOF
6738
 
      program main
6739
 
 
6740
 
      end
6741
 
_ACEOF
6742
 
rm -f conftest.$ac_objext
6743
 
if { (ac_try="$ac_compile"
6744
 
case "(($ac_try" in
6745
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746
 
  *) ac_try_echo=$ac_try;;
6747
 
esac
6748
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749
 
  (eval "$ac_compile") 2>conftest.er1
6750
 
  ac_status=$?
6751
 
  grep -v '^ *+' conftest.er1 >conftest.err
6752
 
  rm -f conftest.er1
6753
 
  cat conftest.err >&5
6754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755
 
  (exit $ac_status); } && {
6756
 
         test -z "$ac_f77_werror_flag" ||
6757
 
         test ! -s conftest.err
6758
 
       } && test -s conftest.$ac_objext; then
6759
 
  ac_cv_prog_f77_g=yes
6760
 
else
6761
 
  echo "$as_me: failed program was:" >&5
6762
 
sed 's/^/| /' conftest.$ac_ext >&5
6763
 
 
6764
 
        ac_cv_prog_f77_g=no
6765
 
fi
6766
 
 
6767
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768
 
 
6769
 
fi
6770
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6771
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6772
 
if test "$ac_test_FFLAGS" = set; then
6773
 
  FFLAGS=$ac_save_FFLAGS
6774
 
elif test $ac_cv_prog_f77_g = yes; then
6775
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6776
 
    FFLAGS="-g -O2"
6777
 
  else
6778
 
    FFLAGS="-g"
6779
 
  fi
6780
 
else
6781
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6782
 
    FFLAGS="-O2"
6783
 
  else
6784
 
    FFLAGS=
6785
 
  fi
6786
 
fi
6787
 
 
6788
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6789
 
ac_ext=c
6790
 
ac_cpp='$CPP $CPPFLAGS'
6791
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
 
 
6795
 
 
6796
 
 
6797
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6798
 
 
6799
 
# find the maximum length of command line arguments
6800
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6801
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6802
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6804
 
else
6805
 
    i=0
6806
 
  teststring="ABCD"
6807
 
 
6808
 
  case $build_os in
6809
 
  msdosdjgpp*)
6810
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6811
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6812
 
    # during glob expansion).  Even if it were fixed, the result of this
6813
 
    # check would be larger than it should be.
6814
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6815
 
    ;;
6816
 
 
6817
 
  gnu*)
6818
 
    # Under GNU Hurd, this test is not required because there is
6819
 
    # no limit to the length of command line arguments.
6820
 
    # Libtool will interpret -1 as no limit whatsoever
6821
 
    lt_cv_sys_max_cmd_len=-1;
6822
 
    ;;
6823
 
 
6824
 
  cygwin* | mingw*)
6825
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6826
 
    # about 5 minutes as the teststring grows exponentially.
6827
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6828
 
    # you end up with a "frozen" computer, even though with patience
6829
 
    # the test eventually succeeds (with a max line length of 256k).
6830
 
    # Instead, let's just punt: use the minimum linelength reported by
6831
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6832
 
    lt_cv_sys_max_cmd_len=8192;
6833
 
    ;;
6834
 
 
6835
 
  amigaos*)
6836
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6837
 
    # So we just punt and use a minimum line length of 8192.
6838
 
    lt_cv_sys_max_cmd_len=8192;
6839
 
    ;;
6840
 
 
6841
 
 *)
6842
 
    # If test is not a shell built-in, we'll probably end up computing a
6843
 
    # maximum length that is only half of the actual maximum length, but
6844
 
    # we can't tell.
6845
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846
 
               = "XX$teststring") >/dev/null 2>&1 &&
6847
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848
 
            lt_cv_sys_max_cmd_len=$new_result &&
6849
 
            test $i != 17 # 1/2 MB should be enough
6850
 
    do
6851
 
      i=`expr $i + 1`
6852
 
      teststring=$teststring$teststring
6853
 
    done
6854
 
    teststring=
6855
 
    # Add a significant safety factor because C++ compilers can tack on massive
6856
 
    # amounts of additional arguments before passing them to the linker.
6857
 
    # It appears as though 1/2 is a usable value.
6858
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6859
 
    ;;
6860
 
  esac
6861
 
 
6862
 
fi
6863
 
 
6864
 
if test -n $lt_cv_sys_max_cmd_len ; then
6865
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6867
 
else
6868
 
  { echo "$as_me:$LINENO: result: none" >&5
6869
 
echo "${ECHO_T}none" >&6; }
6870
 
fi
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
6075
# Check for command to grab the raw symbol name followed by C symbol from nm.
6876
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6878
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6077
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6078
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6079
  $as_echo_n "(cached) " >&6
6880
6080
else
6881
6081
 
6882
6082
# These are sane defaults that work on at least a few old systems.
6888
6088
# Regexp to match symbols that can be accessed directly from C.
6889
6089
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6890
6090
 
6891
 
# Transform the above into a raw symbol and a C symbol.
6892
 
symxfrm='\1 \2\3 \3'
6893
 
 
6894
 
# Transform an extracted symbol line into a proper C declaration
6895
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6896
 
 
6897
 
# Transform an extracted symbol line into symbol name and symbol address
6898
 
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'"
6899
 
 
6900
6091
# Define system-specific variables.
6901
6092
case $host_os in
6902
6093
aix*)
6903
6094
  symcode='[BCDT]'
6904
6095
  ;;
6905
 
cygwin* | mingw* | pw32*)
 
6096
cygwin* | mingw* | pw32* | cegcc*)
6906
6097
  symcode='[ABCDGISTW]'
6907
6098
  ;;
6908
 
hpux*) # Its linker distinguishes data from code symbols
 
6099
hpux*)
6909
6100
  if test "$host_cpu" = ia64; then
6910
6101
    symcode='[ABCDEGRST]'
6911
6102
  fi
6912
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6913
 
  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'"
6914
6103
  ;;
6915
6104
irix* | nonstopux*)
6916
6105
  symcode='[BCDEGRST]'
6918
6107
osf*)
6919
6108
  symcode='[BCDEGQRST]'
6920
6109
  ;;
6921
 
solaris* | sysv5*)
 
6110
solaris*)
6922
6111
  symcode='[BDRT]'
6923
6112
  ;;
 
6113
sco3.2v5*)
 
6114
  symcode='[DT]'
 
6115
  ;;
 
6116
sysv4.2uw2*)
 
6117
  symcode='[DT]'
 
6118
  ;;
 
6119
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6120
  symcode='[ABDT]'
 
6121
  ;;
6924
6122
sysv4)
6925
6123
  symcode='[DFNSTU]'
6926
6124
  ;;
6927
6125
esac
6928
6126
 
 
6127
# If we're using GNU nm, then use its standard symbol codes.
 
6128
case `$NM -V 2>&1` in
 
6129
*GNU* | *'with BFD'*)
 
6130
  symcode='[ABCDGIRSTW]' ;;
 
6131
esac
 
6132
 
 
6133
# Transform an extracted symbol line into a proper C declaration.
 
6134
# Some systems (esp. on ia64) link data and code symbols differently,
 
6135
# so use this general approach.
 
6136
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6137
 
 
6138
# Transform an extracted symbol line into symbol name and symbol address
 
6139
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6140
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'"
 
6141
 
6929
6142
# Handle CRLF in mingw tool chain
6930
6143
opt_cr=
6931
6144
case $build_os in
6932
6145
mingw*)
6933
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6146
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6934
6147
  ;;
6935
6148
esac
6936
6149
 
6937
 
# If we're using GNU nm, then use its standard symbol codes.
6938
 
case `$NM -V 2>&1` in
6939
 
*GNU* | *'with BFD'*)
6940
 
  symcode='[ABCDGIRSTW]' ;;
6941
 
esac
6942
 
 
6943
 
# Try without a prefix undercore, then with it.
 
6150
# Try without a prefix underscore, then with it.
6944
6151
for ac_symprfx in "" "_"; do
6945
6152
 
 
6153
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6154
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6155
 
6946
6156
  # Write the raw and C identifiers.
6947
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6157
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6158
    # Fake it for dumpbin and say T for any non-static function
 
6159
    # and D for any global variable.
 
6160
    # Also find C++ and __fastcall symbols from MSVC++,
 
6161
    # which start with @ or ?.
 
6162
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6163
"     {last_section=section; section=\$ 3};"\
 
6164
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6165
"     \$ 0!~/External *\|/{next};"\
 
6166
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6167
"     {if(hide[section]) next};"\
 
6168
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6169
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6170
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6171
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6172
"     ' prfx=^$ac_symprfx"
 
6173
  else
 
6174
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6175
  fi
6948
6176
 
6949
6177
  # Check to see that the pipe works correctly.
6950
6178
  pipe_works=no
6951
6179
 
6952
6180
  rm -f conftest*
6953
 
  cat > conftest.$ac_ext <<EOF
 
6181
  cat > conftest.$ac_ext <<_LT_EOF
6954
6182
#ifdef __cplusplus
6955
6183
extern "C" {
6956
6184
#endif
6957
6185
char nm_test_var;
6958
 
void nm_test_func(){}
 
6186
void nm_test_func(void);
 
6187
void nm_test_func(void){}
6959
6188
#ifdef __cplusplus
6960
6189
}
6961
6190
#endif
6962
6191
int main(){nm_test_var='a';nm_test_func();return(0);}
6963
 
EOF
 
6192
_LT_EOF
6964
6193
 
6965
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6194
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966
6195
  (eval $ac_compile) 2>&5
6967
6196
  ac_status=$?
6968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969
 
  (exit $ac_status); }; then
 
6197
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6198
  test $ac_status = 0; }; then
6970
6199
    # Now try to grab the symbols.
6971
6200
    nlist=conftest.nm
6972
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6201
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6973
6202
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6974
6203
  ac_status=$?
6975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
 
  (exit $ac_status); } && test -s "$nlist"; then
 
6204
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6205
  test $ac_status = 0; } && test -s "$nlist"; then
6977
6206
      # Try sorting and uniquifying the output.
6978
6207
      if sort "$nlist" | uniq > "$nlist"T; then
6979
6208
        mv -f "$nlist"T "$nlist"
6982
6211
      fi
6983
6212
 
6984
6213
      # Make sure that we snagged all the symbols we need.
6985
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6986
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6987
 
          cat <<EOF > conftest.$ac_ext
 
6214
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6215
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6216
          cat <<_LT_EOF > conftest.$ac_ext
6988
6217
#ifdef __cplusplus
6989
6218
extern "C" {
6990
6219
#endif
6991
6220
 
6992
 
EOF
 
6221
_LT_EOF
6993
6222
          # Now generate the symbol file.
6994
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6995
 
 
6996
 
          cat <<EOF >> conftest.$ac_ext
6997
 
#if defined (__STDC__) && __STDC__
6998
 
# define lt_ptr_t void *
6999
 
#else
7000
 
# define lt_ptr_t char *
7001
 
# define const
7002
 
#endif
7003
 
 
7004
 
/* The mapping between symbol names and symbols. */
 
6223
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6224
 
 
6225
          cat <<_LT_EOF >> conftest.$ac_ext
 
6226
 
 
6227
/* The mapping between symbol names and symbols.  */
7005
6228
const struct {
7006
6229
  const char *name;
7007
 
  lt_ptr_t address;
 
6230
  void       *address;
7008
6231
}
7009
 
lt_preloaded_symbols[] =
 
6232
lt__PROGRAM__LTX_preloaded_symbols[] =
7010
6233
{
7011
 
EOF
7012
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7013
 
          cat <<\EOF >> conftest.$ac_ext
7014
 
  {0, (lt_ptr_t) 0}
 
6234
  { "@PROGRAM@", (void *) 0 },
 
6235
_LT_EOF
 
6236
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6237
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6238
  {0, (void *) 0}
7015
6239
};
7016
6240
 
 
6241
/* This works around a problem in FreeBSD linker */
 
6242
#ifdef FREEBSD_WORKAROUND
 
6243
static const void *lt_preloaded_setup() {
 
6244
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6245
}
 
6246
#endif
 
6247
 
7017
6248
#ifdef __cplusplus
7018
6249
}
7019
6250
#endif
7020
 
EOF
 
6251
_LT_EOF
7021
6252
          # Now try linking the two files.
7022
6253
          mv conftest.$ac_objext conftstm.$ac_objext
7023
6254
          lt_save_LIBS="$LIBS"
7024
6255
          lt_save_CFLAGS="$CFLAGS"
7025
6256
          LIBS="conftstm.$ac_objext"
7026
6257
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7027
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6258
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7028
6259
  (eval $ac_link) 2>&5
7029
6260
  ac_status=$?
7030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6261
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6262
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7032
6263
            pipe_works=yes
7033
6264
          fi
7034
6265
          LIBS="$lt_save_LIBS"
7046
6277
    echo "$progname: failed program was:" >&5
7047
6278
    cat conftest.$ac_ext >&5
7048
6279
  fi
7049
 
  rm -f conftest* conftst*
 
6280
  rm -rf conftest* conftst*
7050
6281
 
7051
6282
  # Do not use the global_symbol_pipe unless it works.
7052
6283
  if test "$pipe_works" = yes; then
7062
6293
  lt_cv_sys_global_symbol_to_cdecl=
7063
6294
fi
7064
6295
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7065
 
  { echo "$as_me:$LINENO: result: failed" >&5
7066
 
echo "${ECHO_T}failed" >&6; }
7067
 
else
7068
 
  { echo "$as_me:$LINENO: result: ok" >&5
7069
 
echo "${ECHO_T}ok" >&6; }
7070
 
fi
7071
 
 
7072
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
7073
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7074
 
if test "${lt_cv_objdir+set}" = set; then
7075
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6297
$as_echo "failed" >&6; }
 
6298
else
 
6299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6300
$as_echo "ok" >&6; }
 
6301
fi
 
6302
 
 
6303
 
 
6304
 
 
6305
 
 
6306
 
 
6307
 
 
6308
 
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
 
 
6314
 
 
6315
 
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
 
 
6322
 
 
6323
 
 
6324
# Check whether --enable-libtool-lock was given.
 
6325
if test "${enable_libtool_lock+set}" = set; then :
 
6326
  enableval=$enable_libtool_lock;
 
6327
fi
 
6328
 
 
6329
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6330
 
 
6331
# Some flags need to be propagated to the compiler or linker for good
 
6332
# libtool support.
 
6333
case $host in
 
6334
ia64-*-hpux*)
 
6335
  # Find out which ABI we are using.
 
6336
  echo 'int i;' > conftest.$ac_ext
 
6337
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6338
  (eval $ac_compile) 2>&5
 
6339
  ac_status=$?
 
6340
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6341
  test $ac_status = 0; }; then
 
6342
    case `/usr/bin/file conftest.$ac_objext` in
 
6343
      *ELF-32*)
 
6344
        HPUX_IA64_MODE="32"
 
6345
        ;;
 
6346
      *ELF-64*)
 
6347
        HPUX_IA64_MODE="64"
 
6348
        ;;
 
6349
    esac
 
6350
  fi
 
6351
  rm -rf conftest*
 
6352
  ;;
 
6353
*-*-irix6*)
 
6354
  # Find out which ABI we are using.
 
6355
  echo '#line 6355 "configure"' > conftest.$ac_ext
 
6356
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6357
  (eval $ac_compile) 2>&5
 
6358
  ac_status=$?
 
6359
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6360
  test $ac_status = 0; }; then
 
6361
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6362
      case `/usr/bin/file conftest.$ac_objext` in
 
6363
        *32-bit*)
 
6364
          LD="${LD-ld} -melf32bsmip"
 
6365
          ;;
 
6366
        *N32*)
 
6367
          LD="${LD-ld} -melf32bmipn32"
 
6368
          ;;
 
6369
        *64-bit*)
 
6370
          LD="${LD-ld} -melf64bmip"
 
6371
        ;;
 
6372
      esac
 
6373
    else
 
6374
      case `/usr/bin/file conftest.$ac_objext` in
 
6375
        *32-bit*)
 
6376
          LD="${LD-ld} -32"
 
6377
          ;;
 
6378
        *N32*)
 
6379
          LD="${LD-ld} -n32"
 
6380
          ;;
 
6381
        *64-bit*)
 
6382
          LD="${LD-ld} -64"
 
6383
          ;;
 
6384
      esac
 
6385
    fi
 
6386
  fi
 
6387
  rm -rf conftest*
 
6388
  ;;
 
6389
 
 
6390
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6391
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6392
  # Find out which ABI we are using.
 
6393
  echo 'int i;' > conftest.$ac_ext
 
6394
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6395
  (eval $ac_compile) 2>&5
 
6396
  ac_status=$?
 
6397
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6398
  test $ac_status = 0; }; then
 
6399
    case `/usr/bin/file conftest.o` in
 
6400
      *32-bit*)
 
6401
        case $host in
 
6402
          x86_64-*kfreebsd*-gnu)
 
6403
            LD="${LD-ld} -m elf_i386_fbsd"
 
6404
            ;;
 
6405
          x86_64-*linux*)
 
6406
            LD="${LD-ld} -m elf_i386"
 
6407
            ;;
 
6408
          ppc64-*linux*|powerpc64-*linux*)
 
6409
            LD="${LD-ld} -m elf32ppclinux"
 
6410
            ;;
 
6411
          s390x-*linux*)
 
6412
            LD="${LD-ld} -m elf_s390"
 
6413
            ;;
 
6414
          sparc64-*linux*)
 
6415
            LD="${LD-ld} -m elf32_sparc"
 
6416
            ;;
 
6417
        esac
 
6418
        ;;
 
6419
      *64-bit*)
 
6420
        case $host in
 
6421
          x86_64-*kfreebsd*-gnu)
 
6422
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6423
            ;;
 
6424
          x86_64-*linux*)
 
6425
            LD="${LD-ld} -m elf_x86_64"
 
6426
            ;;
 
6427
          ppc*-*linux*|powerpc*-*linux*)
 
6428
            LD="${LD-ld} -m elf64ppc"
 
6429
            ;;
 
6430
          s390*-*linux*|s390*-*tpf*)
 
6431
            LD="${LD-ld} -m elf64_s390"
 
6432
            ;;
 
6433
          sparc*-*linux*)
 
6434
            LD="${LD-ld} -m elf64_sparc"
 
6435
            ;;
 
6436
        esac
 
6437
        ;;
 
6438
    esac
 
6439
  fi
 
6440
  rm -rf conftest*
 
6441
  ;;
 
6442
 
 
6443
*-*-sco3.2v5*)
 
6444
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6445
  SAVE_CFLAGS="$CFLAGS"
 
6446
  CFLAGS="$CFLAGS -belf"
 
6447
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6448
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6449
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6450
  $as_echo_n "(cached) " >&6
 
6451
else
 
6452
  ac_ext=c
 
6453
ac_cpp='$CPP $CPPFLAGS'
 
6454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6457
 
 
6458
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6459
/* end confdefs.h.  */
 
6460
 
 
6461
int
 
6462
main ()
 
6463
{
 
6464
 
 
6465
  ;
 
6466
  return 0;
 
6467
}
 
6468
_ACEOF
 
6469
if ac_fn_c_try_link "$LINENO"; then :
 
6470
  lt_cv_cc_needs_belf=yes
 
6471
else
 
6472
  lt_cv_cc_needs_belf=no
 
6473
fi
 
6474
rm -f core conftest.err conftest.$ac_objext \
 
6475
    conftest$ac_exeext conftest.$ac_ext
 
6476
     ac_ext=c
 
6477
ac_cpp='$CPP $CPPFLAGS'
 
6478
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6479
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6480
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6481
 
 
6482
fi
 
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6484
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6485
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6486
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6487
    CFLAGS="$SAVE_CFLAGS"
 
6488
  fi
 
6489
  ;;
 
6490
sparc*-*solaris*)
 
6491
  # Find out which ABI we are using.
 
6492
  echo 'int i;' > conftest.$ac_ext
 
6493
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6494
  (eval $ac_compile) 2>&5
 
6495
  ac_status=$?
 
6496
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6497
  test $ac_status = 0; }; then
 
6498
    case `/usr/bin/file conftest.o` in
 
6499
    *64-bit*)
 
6500
      case $lt_cv_prog_gnu_ld in
 
6501
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6502
      *)
 
6503
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6504
          LD="${LD-ld} -64"
 
6505
        fi
 
6506
        ;;
 
6507
      esac
 
6508
      ;;
 
6509
    esac
 
6510
  fi
 
6511
  rm -rf conftest*
 
6512
  ;;
 
6513
esac
 
6514
 
 
6515
need_locks="$enable_libtool_lock"
 
6516
 
 
6517
 
 
6518
  case $host_os in
 
6519
    rhapsody* | darwin*)
 
6520
    if test -n "$ac_tool_prefix"; then
 
6521
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6522
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6524
$as_echo_n "checking for $ac_word... " >&6; }
 
6525
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6526
  $as_echo_n "(cached) " >&6
 
6527
else
 
6528
  if test -n "$DSYMUTIL"; then
 
6529
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6530
else
 
6531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6532
for as_dir in $PATH
 
6533
do
 
6534
  IFS=$as_save_IFS
 
6535
  test -z "$as_dir" && as_dir=.
 
6536
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6538
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6539
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6540
    break 2
 
6541
  fi
 
6542
done
 
6543
  done
 
6544
IFS=$as_save_IFS
 
6545
 
 
6546
fi
 
6547
fi
 
6548
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6549
if test -n "$DSYMUTIL"; then
 
6550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6551
$as_echo "$DSYMUTIL" >&6; }
 
6552
else
 
6553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6554
$as_echo "no" >&6; }
 
6555
fi
 
6556
 
 
6557
 
 
6558
fi
 
6559
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6560
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6561
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6562
set dummy dsymutil; ac_word=$2
 
6563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6564
$as_echo_n "checking for $ac_word... " >&6; }
 
6565
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6566
  $as_echo_n "(cached) " >&6
 
6567
else
 
6568
  if test -n "$ac_ct_DSYMUTIL"; then
 
6569
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6570
else
 
6571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6572
for as_dir in $PATH
 
6573
do
 
6574
  IFS=$as_save_IFS
 
6575
  test -z "$as_dir" && as_dir=.
 
6576
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6577
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6578
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6580
    break 2
 
6581
  fi
 
6582
done
 
6583
  done
 
6584
IFS=$as_save_IFS
 
6585
 
 
6586
fi
 
6587
fi
 
6588
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6589
if test -n "$ac_ct_DSYMUTIL"; then
 
6590
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6591
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6592
else
 
6593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6594
$as_echo "no" >&6; }
 
6595
fi
 
6596
 
 
6597
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6598
    DSYMUTIL=":"
 
6599
  else
 
6600
    case $cross_compiling:$ac_tool_warned in
 
6601
yes:)
 
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6603
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6604
ac_tool_warned=yes ;;
 
6605
esac
 
6606
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6607
  fi
 
6608
else
 
6609
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6610
fi
 
6611
 
 
6612
    if test -n "$ac_tool_prefix"; then
 
6613
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6614
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6616
$as_echo_n "checking for $ac_word... " >&6; }
 
6617
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6618
  $as_echo_n "(cached) " >&6
 
6619
else
 
6620
  if test -n "$NMEDIT"; then
 
6621
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6622
else
 
6623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6624
for as_dir in $PATH
 
6625
do
 
6626
  IFS=$as_save_IFS
 
6627
  test -z "$as_dir" && as_dir=.
 
6628
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6629
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6630
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6631
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6632
    break 2
 
6633
  fi
 
6634
done
 
6635
  done
 
6636
IFS=$as_save_IFS
 
6637
 
 
6638
fi
 
6639
fi
 
6640
NMEDIT=$ac_cv_prog_NMEDIT
 
6641
if test -n "$NMEDIT"; then
 
6642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6643
$as_echo "$NMEDIT" >&6; }
 
6644
else
 
6645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6646
$as_echo "no" >&6; }
 
6647
fi
 
6648
 
 
6649
 
 
6650
fi
 
6651
if test -z "$ac_cv_prog_NMEDIT"; then
 
6652
  ac_ct_NMEDIT=$NMEDIT
 
6653
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6654
set dummy nmedit; ac_word=$2
 
6655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6656
$as_echo_n "checking for $ac_word... " >&6; }
 
6657
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6658
  $as_echo_n "(cached) " >&6
 
6659
else
 
6660
  if test -n "$ac_ct_NMEDIT"; then
 
6661
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6662
else
 
6663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6664
for as_dir in $PATH
 
6665
do
 
6666
  IFS=$as_save_IFS
 
6667
  test -z "$as_dir" && as_dir=.
 
6668
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6670
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6672
    break 2
 
6673
  fi
 
6674
done
 
6675
  done
 
6676
IFS=$as_save_IFS
 
6677
 
 
6678
fi
 
6679
fi
 
6680
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6681
if test -n "$ac_ct_NMEDIT"; then
 
6682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6683
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6684
else
 
6685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6686
$as_echo "no" >&6; }
 
6687
fi
 
6688
 
 
6689
  if test "x$ac_ct_NMEDIT" = x; then
 
6690
    NMEDIT=":"
 
6691
  else
 
6692
    case $cross_compiling:$ac_tool_warned in
 
6693
yes:)
 
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6696
ac_tool_warned=yes ;;
 
6697
esac
 
6698
    NMEDIT=$ac_ct_NMEDIT
 
6699
  fi
 
6700
else
 
6701
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6702
fi
 
6703
 
 
6704
    if test -n "$ac_tool_prefix"; then
 
6705
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6706
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6708
$as_echo_n "checking for $ac_word... " >&6; }
 
6709
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6710
  $as_echo_n "(cached) " >&6
 
6711
else
 
6712
  if test -n "$LIPO"; then
 
6713
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6714
else
 
6715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6716
for as_dir in $PATH
 
6717
do
 
6718
  IFS=$as_save_IFS
 
6719
  test -z "$as_dir" && as_dir=.
 
6720
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6722
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6723
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6724
    break 2
 
6725
  fi
 
6726
done
 
6727
  done
 
6728
IFS=$as_save_IFS
 
6729
 
 
6730
fi
 
6731
fi
 
6732
LIPO=$ac_cv_prog_LIPO
 
6733
if test -n "$LIPO"; then
 
6734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6735
$as_echo "$LIPO" >&6; }
 
6736
else
 
6737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6738
$as_echo "no" >&6; }
 
6739
fi
 
6740
 
 
6741
 
 
6742
fi
 
6743
if test -z "$ac_cv_prog_LIPO"; then
 
6744
  ac_ct_LIPO=$LIPO
 
6745
  # Extract the first word of "lipo", so it can be a program name with args.
 
6746
set dummy lipo; ac_word=$2
 
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6748
$as_echo_n "checking for $ac_word... " >&6; }
 
6749
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6750
  $as_echo_n "(cached) " >&6
 
6751
else
 
6752
  if test -n "$ac_ct_LIPO"; then
 
6753
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6754
else
 
6755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6756
for as_dir in $PATH
 
6757
do
 
6758
  IFS=$as_save_IFS
 
6759
  test -z "$as_dir" && as_dir=.
 
6760
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6762
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6763
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6764
    break 2
 
6765
  fi
 
6766
done
 
6767
  done
 
6768
IFS=$as_save_IFS
 
6769
 
 
6770
fi
 
6771
fi
 
6772
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6773
if test -n "$ac_ct_LIPO"; then
 
6774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6775
$as_echo "$ac_ct_LIPO" >&6; }
 
6776
else
 
6777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6778
$as_echo "no" >&6; }
 
6779
fi
 
6780
 
 
6781
  if test "x$ac_ct_LIPO" = x; then
 
6782
    LIPO=":"
 
6783
  else
 
6784
    case $cross_compiling:$ac_tool_warned in
 
6785
yes:)
 
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6787
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6788
ac_tool_warned=yes ;;
 
6789
esac
 
6790
    LIPO=$ac_ct_LIPO
 
6791
  fi
 
6792
else
 
6793
  LIPO="$ac_cv_prog_LIPO"
 
6794
fi
 
6795
 
 
6796
    if test -n "$ac_tool_prefix"; then
 
6797
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6798
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6800
$as_echo_n "checking for $ac_word... " >&6; }
 
6801
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6802
  $as_echo_n "(cached) " >&6
 
6803
else
 
6804
  if test -n "$OTOOL"; then
 
6805
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6806
else
 
6807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6808
for as_dir in $PATH
 
6809
do
 
6810
  IFS=$as_save_IFS
 
6811
  test -z "$as_dir" && as_dir=.
 
6812
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6813
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6814
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6815
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6816
    break 2
 
6817
  fi
 
6818
done
 
6819
  done
 
6820
IFS=$as_save_IFS
 
6821
 
 
6822
fi
 
6823
fi
 
6824
OTOOL=$ac_cv_prog_OTOOL
 
6825
if test -n "$OTOOL"; then
 
6826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6827
$as_echo "$OTOOL" >&6; }
 
6828
else
 
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6830
$as_echo "no" >&6; }
 
6831
fi
 
6832
 
 
6833
 
 
6834
fi
 
6835
if test -z "$ac_cv_prog_OTOOL"; then
 
6836
  ac_ct_OTOOL=$OTOOL
 
6837
  # Extract the first word of "otool", so it can be a program name with args.
 
6838
set dummy otool; ac_word=$2
 
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6840
$as_echo_n "checking for $ac_word... " >&6; }
 
6841
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6842
  $as_echo_n "(cached) " >&6
 
6843
else
 
6844
  if test -n "$ac_ct_OTOOL"; then
 
6845
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6846
else
 
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6848
for as_dir in $PATH
 
6849
do
 
6850
  IFS=$as_save_IFS
 
6851
  test -z "$as_dir" && as_dir=.
 
6852
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6853
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6854
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6855
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6856
    break 2
 
6857
  fi
 
6858
done
 
6859
  done
 
6860
IFS=$as_save_IFS
 
6861
 
 
6862
fi
 
6863
fi
 
6864
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6865
if test -n "$ac_ct_OTOOL"; then
 
6866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6867
$as_echo "$ac_ct_OTOOL" >&6; }
 
6868
else
 
6869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6870
$as_echo "no" >&6; }
 
6871
fi
 
6872
 
 
6873
  if test "x$ac_ct_OTOOL" = x; then
 
6874
    OTOOL=":"
 
6875
  else
 
6876
    case $cross_compiling:$ac_tool_warned in
 
6877
yes:)
 
6878
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6879
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6880
ac_tool_warned=yes ;;
 
6881
esac
 
6882
    OTOOL=$ac_ct_OTOOL
 
6883
  fi
 
6884
else
 
6885
  OTOOL="$ac_cv_prog_OTOOL"
 
6886
fi
 
6887
 
 
6888
    if test -n "$ac_tool_prefix"; then
 
6889
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6890
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6892
$as_echo_n "checking for $ac_word... " >&6; }
 
6893
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6894
  $as_echo_n "(cached) " >&6
 
6895
else
 
6896
  if test -n "$OTOOL64"; then
 
6897
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6898
else
 
6899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6900
for as_dir in $PATH
 
6901
do
 
6902
  IFS=$as_save_IFS
 
6903
  test -z "$as_dir" && as_dir=.
 
6904
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6905
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6906
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6907
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6908
    break 2
 
6909
  fi
 
6910
done
 
6911
  done
 
6912
IFS=$as_save_IFS
 
6913
 
 
6914
fi
 
6915
fi
 
6916
OTOOL64=$ac_cv_prog_OTOOL64
 
6917
if test -n "$OTOOL64"; then
 
6918
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6919
$as_echo "$OTOOL64" >&6; }
 
6920
else
 
6921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6922
$as_echo "no" >&6; }
 
6923
fi
 
6924
 
 
6925
 
 
6926
fi
 
6927
if test -z "$ac_cv_prog_OTOOL64"; then
 
6928
  ac_ct_OTOOL64=$OTOOL64
 
6929
  # Extract the first word of "otool64", so it can be a program name with args.
 
6930
set dummy otool64; ac_word=$2
 
6931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6932
$as_echo_n "checking for $ac_word... " >&6; }
 
6933
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6934
  $as_echo_n "(cached) " >&6
 
6935
else
 
6936
  if test -n "$ac_ct_OTOOL64"; then
 
6937
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6938
else
 
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6940
for as_dir in $PATH
 
6941
do
 
6942
  IFS=$as_save_IFS
 
6943
  test -z "$as_dir" && as_dir=.
 
6944
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6946
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6947
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6948
    break 2
 
6949
  fi
 
6950
done
 
6951
  done
 
6952
IFS=$as_save_IFS
 
6953
 
 
6954
fi
 
6955
fi
 
6956
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6957
if test -n "$ac_ct_OTOOL64"; then
 
6958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6959
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6960
else
 
6961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6962
$as_echo "no" >&6; }
 
6963
fi
 
6964
 
 
6965
  if test "x$ac_ct_OTOOL64" = x; then
 
6966
    OTOOL64=":"
 
6967
  else
 
6968
    case $cross_compiling:$ac_tool_warned in
 
6969
yes:)
 
6970
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6971
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6972
ac_tool_warned=yes ;;
 
6973
esac
 
6974
    OTOOL64=$ac_ct_OTOOL64
 
6975
  fi
 
6976
else
 
6977
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6978
fi
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
 
 
6984
 
 
6985
 
 
6986
 
 
6987
 
 
6988
 
 
6989
 
 
6990
 
 
6991
 
 
6992
 
 
6993
 
 
6994
 
 
6995
 
 
6996
 
 
6997
 
 
6998
 
 
6999
 
 
7000
 
 
7001
 
 
7002
 
 
7003
 
 
7004
 
 
7005
 
 
7006
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7007
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7008
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7009
  $as_echo_n "(cached) " >&6
 
7010
else
 
7011
  lt_cv_apple_cc_single_mod=no
 
7012
      if test -z "${LT_MULTI_MODULE}"; then
 
7013
        # By default we will add the -single_module flag. You can override
 
7014
        # by either setting the environment variable LT_MULTI_MODULE
 
7015
        # non-empty at configure time, or by adding -multi_module to the
 
7016
        # link flags.
 
7017
        rm -rf libconftest.dylib*
 
7018
        echo "int foo(void){return 1;}" > conftest.c
 
7019
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7020
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7021
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7022
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7023
        _lt_result=$?
 
7024
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7025
          lt_cv_apple_cc_single_mod=yes
 
7026
        else
 
7027
          cat conftest.err >&5
 
7028
        fi
 
7029
        rm -rf libconftest.dylib*
 
7030
        rm -f conftest.*
 
7031
      fi
 
7032
fi
 
7033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7034
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7035
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7036
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7037
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7038
  $as_echo_n "(cached) " >&6
 
7039
else
 
7040
  lt_cv_ld_exported_symbols_list=no
 
7041
      save_LDFLAGS=$LDFLAGS
 
7042
      echo "_main" > conftest.sym
 
7043
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7044
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7045
/* end confdefs.h.  */
 
7046
 
 
7047
int
 
7048
main ()
 
7049
{
 
7050
 
 
7051
  ;
 
7052
  return 0;
 
7053
}
 
7054
_ACEOF
 
7055
if ac_fn_c_try_link "$LINENO"; then :
 
7056
  lt_cv_ld_exported_symbols_list=yes
 
7057
else
 
7058
  lt_cv_ld_exported_symbols_list=no
 
7059
fi
 
7060
rm -f core conftest.err conftest.$ac_objext \
 
7061
    conftest$ac_exeext conftest.$ac_ext
 
7062
        LDFLAGS="$save_LDFLAGS"
 
7063
 
 
7064
fi
 
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7066
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7067
    case $host_os in
 
7068
    rhapsody* | darwin1.[012])
 
7069
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7070
    darwin1.*)
 
7071
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7072
    darwin*) # darwin 5.x on
 
7073
      # if running on 10.5 or later, the deployment target defaults
 
7074
      # to the OS version, if on x86, and 10.4, the deployment
 
7075
      # target defaults to 10.4. Don't you love it?
 
7076
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7077
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7078
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7079
        10.[012]*)
 
7080
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7081
        10.*)
 
7082
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7083
      esac
 
7084
    ;;
 
7085
  esac
 
7086
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7087
      _lt_dar_single_mod='$single_module'
 
7088
    fi
 
7089
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7090
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7091
    else
 
7092
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7093
    fi
 
7094
    if test "$DSYMUTIL" != ":"; then
 
7095
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7096
    else
 
7097
      _lt_dsymutil=
 
7098
    fi
 
7099
    ;;
 
7100
  esac
 
7101
 
 
7102
for ac_header in dlfcn.h
 
7103
do :
 
7104
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7105
"
 
7106
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7107
  cat >>confdefs.h <<_ACEOF
 
7108
#define HAVE_DLFCN_H 1
 
7109
_ACEOF
 
7110
 
 
7111
fi
 
7112
 
 
7113
done
 
7114
 
 
7115
 
 
7116
 
 
7117
# Set options
 
7118
enable_win32_dll=yes
 
7119
 
 
7120
case $host in
 
7121
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7122
  if test -n "$ac_tool_prefix"; then
 
7123
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
7124
set dummy ${ac_tool_prefix}as; ac_word=$2
 
7125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7126
$as_echo_n "checking for $ac_word... " >&6; }
 
7127
if test "${ac_cv_prog_AS+set}" = set; then :
 
7128
  $as_echo_n "(cached) " >&6
 
7129
else
 
7130
  if test -n "$AS"; then
 
7131
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
7132
else
 
7133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7134
for as_dir in $PATH
 
7135
do
 
7136
  IFS=$as_save_IFS
 
7137
  test -z "$as_dir" && as_dir=.
 
7138
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7140
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
7141
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7142
    break 2
 
7143
  fi
 
7144
done
 
7145
  done
 
7146
IFS=$as_save_IFS
 
7147
 
 
7148
fi
 
7149
fi
 
7150
AS=$ac_cv_prog_AS
 
7151
if test -n "$AS"; then
 
7152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
7153
$as_echo "$AS" >&6; }
 
7154
else
 
7155
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7156
$as_echo "no" >&6; }
 
7157
fi
 
7158
 
 
7159
 
 
7160
fi
 
7161
if test -z "$ac_cv_prog_AS"; then
 
7162
  ac_ct_AS=$AS
 
7163
  # Extract the first word of "as", so it can be a program name with args.
 
7164
set dummy as; ac_word=$2
 
7165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7166
$as_echo_n "checking for $ac_word... " >&6; }
 
7167
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
 
7168
  $as_echo_n "(cached) " >&6
 
7169
else
 
7170
  if test -n "$ac_ct_AS"; then
 
7171
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
7172
else
 
7173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7174
for as_dir in $PATH
 
7175
do
 
7176
  IFS=$as_save_IFS
 
7177
  test -z "$as_dir" && as_dir=.
 
7178
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7179
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7180
    ac_cv_prog_ac_ct_AS="as"
 
7181
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7182
    break 2
 
7183
  fi
 
7184
done
 
7185
  done
 
7186
IFS=$as_save_IFS
 
7187
 
 
7188
fi
 
7189
fi
 
7190
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
7191
if test -n "$ac_ct_AS"; then
 
7192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
7193
$as_echo "$ac_ct_AS" >&6; }
 
7194
else
 
7195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7196
$as_echo "no" >&6; }
 
7197
fi
 
7198
 
 
7199
  if test "x$ac_ct_AS" = x; then
 
7200
    AS="false"
 
7201
  else
 
7202
    case $cross_compiling:$ac_tool_warned in
 
7203
yes:)
 
7204
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7205
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7206
ac_tool_warned=yes ;;
 
7207
esac
 
7208
    AS=$ac_ct_AS
 
7209
  fi
 
7210
else
 
7211
  AS="$ac_cv_prog_AS"
 
7212
fi
 
7213
 
 
7214
  if test -n "$ac_tool_prefix"; then
 
7215
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
7216
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
7217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7218
$as_echo_n "checking for $ac_word... " >&6; }
 
7219
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
7220
  $as_echo_n "(cached) " >&6
 
7221
else
 
7222
  if test -n "$DLLTOOL"; then
 
7223
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
7224
else
 
7225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7226
for as_dir in $PATH
 
7227
do
 
7228
  IFS=$as_save_IFS
 
7229
  test -z "$as_dir" && as_dir=.
 
7230
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7232
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
7233
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7234
    break 2
 
7235
  fi
 
7236
done
 
7237
  done
 
7238
IFS=$as_save_IFS
 
7239
 
 
7240
fi
 
7241
fi
 
7242
DLLTOOL=$ac_cv_prog_DLLTOOL
 
7243
if test -n "$DLLTOOL"; then
 
7244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
7245
$as_echo "$DLLTOOL" >&6; }
 
7246
else
 
7247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7248
$as_echo "no" >&6; }
 
7249
fi
 
7250
 
 
7251
 
 
7252
fi
 
7253
if test -z "$ac_cv_prog_DLLTOOL"; then
 
7254
  ac_ct_DLLTOOL=$DLLTOOL
 
7255
  # Extract the first word of "dlltool", so it can be a program name with args.
 
7256
set dummy dlltool; ac_word=$2
 
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7258
$as_echo_n "checking for $ac_word... " >&6; }
 
7259
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
7260
  $as_echo_n "(cached) " >&6
 
7261
else
 
7262
  if test -n "$ac_ct_DLLTOOL"; then
 
7263
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
7264
else
 
7265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7266
for as_dir in $PATH
 
7267
do
 
7268
  IFS=$as_save_IFS
 
7269
  test -z "$as_dir" && as_dir=.
 
7270
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7271
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7272
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
7273
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7274
    break 2
 
7275
  fi
 
7276
done
 
7277
  done
 
7278
IFS=$as_save_IFS
 
7279
 
 
7280
fi
 
7281
fi
 
7282
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
7283
if test -n "$ac_ct_DLLTOOL"; then
 
7284
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
7285
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
7286
else
 
7287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7288
$as_echo "no" >&6; }
 
7289
fi
 
7290
 
 
7291
  if test "x$ac_ct_DLLTOOL" = x; then
 
7292
    DLLTOOL="false"
 
7293
  else
 
7294
    case $cross_compiling:$ac_tool_warned in
 
7295
yes:)
 
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7297
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7298
ac_tool_warned=yes ;;
 
7299
esac
 
7300
    DLLTOOL=$ac_ct_DLLTOOL
 
7301
  fi
 
7302
else
 
7303
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
7304
fi
 
7305
 
 
7306
  if test -n "$ac_tool_prefix"; then
 
7307
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7308
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7310
$as_echo_n "checking for $ac_word... " >&6; }
 
7311
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
7312
  $as_echo_n "(cached) " >&6
 
7313
else
 
7314
  if test -n "$OBJDUMP"; then
 
7315
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7316
else
 
7317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7318
for as_dir in $PATH
 
7319
do
 
7320
  IFS=$as_save_IFS
 
7321
  test -z "$as_dir" && as_dir=.
 
7322
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7323
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7324
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7325
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7326
    break 2
 
7327
  fi
 
7328
done
 
7329
  done
 
7330
IFS=$as_save_IFS
 
7331
 
 
7332
fi
 
7333
fi
 
7334
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7335
if test -n "$OBJDUMP"; then
 
7336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
7337
$as_echo "$OBJDUMP" >&6; }
 
7338
else
 
7339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7340
$as_echo "no" >&6; }
 
7341
fi
 
7342
 
 
7343
 
 
7344
fi
 
7345
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7346
  ac_ct_OBJDUMP=$OBJDUMP
 
7347
  # Extract the first word of "objdump", so it can be a program name with args.
 
7348
set dummy objdump; ac_word=$2
 
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7350
$as_echo_n "checking for $ac_word... " >&6; }
 
7351
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
7352
  $as_echo_n "(cached) " >&6
 
7353
else
 
7354
  if test -n "$ac_ct_OBJDUMP"; then
 
7355
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7356
else
 
7357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7358
for as_dir in $PATH
 
7359
do
 
7360
  IFS=$as_save_IFS
 
7361
  test -z "$as_dir" && as_dir=.
 
7362
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7364
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7365
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7366
    break 2
 
7367
  fi
 
7368
done
 
7369
  done
 
7370
IFS=$as_save_IFS
 
7371
 
 
7372
fi
 
7373
fi
 
7374
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7375
if test -n "$ac_ct_OBJDUMP"; then
 
7376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
7377
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7378
else
 
7379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7380
$as_echo "no" >&6; }
 
7381
fi
 
7382
 
 
7383
  if test "x$ac_ct_OBJDUMP" = x; then
 
7384
    OBJDUMP="false"
 
7385
  else
 
7386
    case $cross_compiling:$ac_tool_warned in
 
7387
yes:)
 
7388
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7389
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7390
ac_tool_warned=yes ;;
 
7391
esac
 
7392
    OBJDUMP=$ac_ct_OBJDUMP
 
7393
  fi
 
7394
else
 
7395
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7396
fi
 
7397
 
 
7398
  ;;
 
7399
esac
 
7400
 
 
7401
test -z "$AS" && AS=as
 
7402
 
 
7403
 
 
7404
 
 
7405
 
 
7406
 
 
7407
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
# Check whether --enable-static was given.
 
7419
if test "${enable_static+set}" = set; then :
 
7420
  enableval=$enable_static; p=${PACKAGE-default}
 
7421
    case $enableval in
 
7422
    yes) enable_static=yes ;;
 
7423
    no) enable_static=no ;;
 
7424
    *)
 
7425
     enable_static=no
 
7426
      # Look at the argument we got.  We use all the common list separators.
 
7427
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7428
      for pkg in $enableval; do
 
7429
        IFS="$lt_save_ifs"
 
7430
        if test "X$pkg" = "X$p"; then
 
7431
          enable_static=yes
 
7432
        fi
 
7433
      done
 
7434
      IFS="$lt_save_ifs"
 
7435
      ;;
 
7436
    esac
 
7437
else
 
7438
  enable_static=no
 
7439
fi
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
 
 
7448
 
 
7449
 
 
7450
        enable_dlopen=no
 
7451
 
 
7452
 
 
7453
 
 
7454
            # Check whether --enable-shared was given.
 
7455
if test "${enable_shared+set}" = set; then :
 
7456
  enableval=$enable_shared; p=${PACKAGE-default}
 
7457
    case $enableval in
 
7458
    yes) enable_shared=yes ;;
 
7459
    no) enable_shared=no ;;
 
7460
    *)
 
7461
      enable_shared=no
 
7462
      # Look at the argument we got.  We use all the common list separators.
 
7463
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7464
      for pkg in $enableval; do
 
7465
        IFS="$lt_save_ifs"
 
7466
        if test "X$pkg" = "X$p"; then
 
7467
          enable_shared=yes
 
7468
        fi
 
7469
      done
 
7470
      IFS="$lt_save_ifs"
 
7471
      ;;
 
7472
    esac
 
7473
else
 
7474
  enable_shared=yes
 
7475
fi
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
# Check whether --with-pic was given.
 
7488
if test "${with_pic+set}" = set; then :
 
7489
  withval=$with_pic; pic_mode="$withval"
 
7490
else
 
7491
  pic_mode=default
 
7492
fi
 
7493
 
 
7494
 
 
7495
test -z "$pic_mode" && pic_mode=default
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
  # Check whether --enable-fast-install was given.
 
7504
if test "${enable_fast_install+set}" = set; then :
 
7505
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7506
    case $enableval in
 
7507
    yes) enable_fast_install=yes ;;
 
7508
    no) enable_fast_install=no ;;
 
7509
    *)
 
7510
      enable_fast_install=no
 
7511
      # Look at the argument we got.  We use all the common list separators.
 
7512
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7513
      for pkg in $enableval; do
 
7514
        IFS="$lt_save_ifs"
 
7515
        if test "X$pkg" = "X$p"; then
 
7516
          enable_fast_install=yes
 
7517
        fi
 
7518
      done
 
7519
      IFS="$lt_save_ifs"
 
7520
      ;;
 
7521
    esac
 
7522
else
 
7523
  enable_fast_install=yes
 
7524
fi
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
# This can be used to rebuild libtool when needed
 
7537
LIBTOOL_DEPS="$ltmain"
 
7538
 
 
7539
# Always use our own libtool.
 
7540
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
test -z "$LN_S" && LN_S="ln -s"
 
7567
 
 
7568
 
 
7569
 
 
7570
 
 
7571
 
 
7572
 
 
7573
 
 
7574
 
 
7575
 
 
7576
 
 
7577
 
 
7578
 
 
7579
 
 
7580
 
 
7581
if test -n "${ZSH_VERSION+set}" ; then
 
7582
   setopt NO_GLOB_SUBST
 
7583
fi
 
7584
 
 
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7586
$as_echo_n "checking for objdir... " >&6; }
 
7587
if test "${lt_cv_objdir+set}" = set; then :
 
7588
  $as_echo_n "(cached) " >&6
7076
7589
else
7077
7590
  rm -f .libs 2>/dev/null
7078
7591
mkdir .libs 2>/dev/null
7084
7597
fi
7085
7598
rmdir .libs 2>/dev/null
7086
7599
fi
7087
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7088
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7601
$as_echo "$lt_cv_objdir" >&6; }
7089
7602
objdir=$lt_cv_objdir
7090
7603
 
7091
7604
 
7092
7605
 
7093
7606
 
7094
7607
 
 
7608
cat >>confdefs.h <<_ACEOF
 
7609
#define LT_OBJDIR "$lt_cv_objdir/"
 
7610
_ACEOF
 
7611
 
 
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
 
7619
 
 
7620
 
 
7621
 
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
7095
7628
case $host_os in
7096
7629
aix3*)
7097
7630
  # AIX sometimes has problems with the GCC collect2 program.  For some
7106
7639
 
7107
7640
# Sed substitution that helps us do robust quoting.  It backslashifies
7108
7641
# metacharacters that are still active within double-quoted strings.
7109
 
Xsed='sed -e s/^X//'
7110
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7642
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7111
7643
 
7112
7644
# Same as above, but do not quote variable references.
7113
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7645
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7114
7646
 
7115
7647
# Sed substitution to delay expansion of an escaped shell variable in a
7116
7648
# double_quote_subst'ed string.
7117
7649
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7118
7650
 
 
7651
# Sed substitution to delay expansion of an escaped single quote.
 
7652
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7653
 
7119
7654
# Sed substitution to avoid accidental globbing in evaled expressions
7120
7655
no_glob_subst='s/\*/\\\*/g'
7121
7656
 
7122
 
# Constants:
7123
 
rm="rm -f"
7124
 
 
7125
7657
# Global variables:
7126
 
default_ofile=libtool
 
7658
ofile=libtool
7127
7659
can_build_shared=yes
7128
7660
 
7129
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7661
# All known linkers require a `.a' archive for static linking (except MSVC,
7130
7662
# which needs '.lib').
7131
7663
libext=a
7132
 
ltmain="$ac_aux_dir/ltmain.sh"
7133
 
ofile="$default_ofile"
 
7664
 
7134
7665
with_gnu_ld="$lt_cv_prog_gnu_ld"
7135
7666
 
7136
 
if test -n "$ac_tool_prefix"; then
7137
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7138
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7139
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141
 
if test "${ac_cv_prog_AR+set}" = set; then
7142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7143
 
else
7144
 
  if test -n "$AR"; then
7145
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7146
 
else
7147
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148
 
for as_dir in $PATH
7149
 
do
7150
 
  IFS=$as_save_IFS
7151
 
  test -z "$as_dir" && as_dir=.
7152
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7153
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7155
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156
 
    break 2
7157
 
  fi
7158
 
done
7159
 
done
7160
 
IFS=$as_save_IFS
7161
 
 
7162
 
fi
7163
 
fi
7164
 
AR=$ac_cv_prog_AR
7165
 
if test -n "$AR"; then
7166
 
  { echo "$as_me:$LINENO: result: $AR" >&5
7167
 
echo "${ECHO_T}$AR" >&6; }
7168
 
else
7169
 
  { echo "$as_me:$LINENO: result: no" >&5
7170
 
echo "${ECHO_T}no" >&6; }
7171
 
fi
7172
 
 
7173
 
 
7174
 
fi
7175
 
if test -z "$ac_cv_prog_AR"; then
7176
 
  ac_ct_AR=$AR
7177
 
  # Extract the first word of "ar", so it can be a program name with args.
7178
 
set dummy ar; ac_word=$2
7179
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7182
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7183
 
else
7184
 
  if test -n "$ac_ct_AR"; then
7185
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7186
 
else
7187
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188
 
for as_dir in $PATH
7189
 
do
7190
 
  IFS=$as_save_IFS
7191
 
  test -z "$as_dir" && as_dir=.
7192
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7193
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194
 
    ac_cv_prog_ac_ct_AR="ar"
7195
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196
 
    break 2
7197
 
  fi
7198
 
done
7199
 
done
7200
 
IFS=$as_save_IFS
7201
 
 
7202
 
fi
7203
 
fi
7204
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205
 
if test -n "$ac_ct_AR"; then
7206
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7207
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
7208
 
else
7209
 
  { echo "$as_me:$LINENO: result: no" >&5
7210
 
echo "${ECHO_T}no" >&6; }
7211
 
fi
7212
 
 
7213
 
  if test "x$ac_ct_AR" = x; then
7214
 
    AR="false"
7215
 
  else
7216
 
    case $cross_compiling:$ac_tool_warned in
7217
 
yes:)
7218
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7219
 
whose name does not start with the host triplet.  If you think this
7220
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7221
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7222
 
whose name does not start with the host triplet.  If you think this
7223
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7224
 
ac_tool_warned=yes ;;
7225
 
esac
7226
 
    AR=$ac_ct_AR
7227
 
  fi
7228
 
else
7229
 
  AR="$ac_cv_prog_AR"
7230
 
fi
7231
 
 
7232
 
if test -n "$ac_tool_prefix"; then
7233
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7234
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7235
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7236
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7238
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7239
 
else
7240
 
  if test -n "$RANLIB"; then
7241
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7242
 
else
7243
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244
 
for as_dir in $PATH
7245
 
do
7246
 
  IFS=$as_save_IFS
7247
 
  test -z "$as_dir" && as_dir=.
7248
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7249
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7251
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252
 
    break 2
7253
 
  fi
7254
 
done
7255
 
done
7256
 
IFS=$as_save_IFS
7257
 
 
7258
 
fi
7259
 
fi
7260
 
RANLIB=$ac_cv_prog_RANLIB
7261
 
if test -n "$RANLIB"; then
7262
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7263
 
echo "${ECHO_T}$RANLIB" >&6; }
7264
 
else
7265
 
  { echo "$as_me:$LINENO: result: no" >&5
7266
 
echo "${ECHO_T}no" >&6; }
7267
 
fi
7268
 
 
7269
 
 
7270
 
fi
7271
 
if test -z "$ac_cv_prog_RANLIB"; then
7272
 
  ac_ct_RANLIB=$RANLIB
7273
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7274
 
set dummy ranlib; ac_word=$2
7275
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7276
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7278
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7279
 
else
7280
 
  if test -n "$ac_ct_RANLIB"; then
7281
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7282
 
else
7283
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284
 
for as_dir in $PATH
7285
 
do
7286
 
  IFS=$as_save_IFS
7287
 
  test -z "$as_dir" && as_dir=.
7288
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7289
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7291
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292
 
    break 2
7293
 
  fi
7294
 
done
7295
 
done
7296
 
IFS=$as_save_IFS
7297
 
 
7298
 
fi
7299
 
fi
7300
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7301
 
if test -n "$ac_ct_RANLIB"; then
7302
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7303
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7304
 
else
7305
 
  { echo "$as_me:$LINENO: result: no" >&5
7306
 
echo "${ECHO_T}no" >&6; }
7307
 
fi
7308
 
 
7309
 
  if test "x$ac_ct_RANLIB" = x; then
7310
 
    RANLIB=":"
7311
 
  else
7312
 
    case $cross_compiling:$ac_tool_warned in
7313
 
yes:)
7314
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7315
 
whose name does not start with the host triplet.  If you think this
7316
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7317
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7318
 
whose name does not start with the host triplet.  If you think this
7319
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7320
 
ac_tool_warned=yes ;;
7321
 
esac
7322
 
    RANLIB=$ac_ct_RANLIB
7323
 
  fi
7324
 
else
7325
 
  RANLIB="$ac_cv_prog_RANLIB"
7326
 
fi
7327
 
 
7328
 
if test -n "$ac_tool_prefix"; then
7329
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7330
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7331
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7332
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7335
 
else
7336
 
  if test -n "$STRIP"; then
7337
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7338
 
else
7339
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340
 
for as_dir in $PATH
7341
 
do
7342
 
  IFS=$as_save_IFS
7343
 
  test -z "$as_dir" && as_dir=.
7344
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7345
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7347
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348
 
    break 2
7349
 
  fi
7350
 
done
7351
 
done
7352
 
IFS=$as_save_IFS
7353
 
 
7354
 
fi
7355
 
fi
7356
 
STRIP=$ac_cv_prog_STRIP
7357
 
if test -n "$STRIP"; then
7358
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7359
 
echo "${ECHO_T}$STRIP" >&6; }
7360
 
else
7361
 
  { echo "$as_me:$LINENO: result: no" >&5
7362
 
echo "${ECHO_T}no" >&6; }
7363
 
fi
7364
 
 
7365
 
 
7366
 
fi
7367
 
if test -z "$ac_cv_prog_STRIP"; then
7368
 
  ac_ct_STRIP=$STRIP
7369
 
  # Extract the first word of "strip", so it can be a program name with args.
7370
 
set dummy strip; ac_word=$2
7371
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7372
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7375
 
else
7376
 
  if test -n "$ac_ct_STRIP"; then
7377
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7378
 
else
7379
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380
 
for as_dir in $PATH
7381
 
do
7382
 
  IFS=$as_save_IFS
7383
 
  test -z "$as_dir" && as_dir=.
7384
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7385
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386
 
    ac_cv_prog_ac_ct_STRIP="strip"
7387
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388
 
    break 2
7389
 
  fi
7390
 
done
7391
 
done
7392
 
IFS=$as_save_IFS
7393
 
 
7394
 
fi
7395
 
fi
7396
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7397
 
if test -n "$ac_ct_STRIP"; then
7398
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7399
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7400
 
else
7401
 
  { echo "$as_me:$LINENO: result: no" >&5
7402
 
echo "${ECHO_T}no" >&6; }
7403
 
fi
7404
 
 
7405
 
  if test "x$ac_ct_STRIP" = x; then
7406
 
    STRIP=":"
7407
 
  else
7408
 
    case $cross_compiling:$ac_tool_warned in
7409
 
yes:)
7410
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7411
 
whose name does not start with the host triplet.  If you think this
7412
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7413
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7414
 
whose name does not start with the host triplet.  If you think this
7415
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7416
 
ac_tool_warned=yes ;;
7417
 
esac
7418
 
    STRIP=$ac_ct_STRIP
7419
 
  fi
7420
 
else
7421
 
  STRIP="$ac_cv_prog_STRIP"
7422
 
fi
7423
 
 
7424
 
 
7425
7667
old_CC="$CC"
7426
7668
old_CFLAGS="$CFLAGS"
7427
7669
 
7428
7670
# Set sane defaults for various variables
7429
 
test -z "$AR" && AR=ar
7430
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7431
 
test -z "$AS" && AS=as
7432
7671
test -z "$CC" && CC=cc
7433
7672
test -z "$LTCC" && LTCC=$CC
7434
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7673
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7435
7674
test -z "$LD" && LD=ld
7436
 
test -z "$LN_S" && LN_S="ln -s"
7437
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7438
 
test -z "$NM" && NM=nm
7439
 
test -z "$SED" && SED=sed
7440
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7441
 
test -z "$RANLIB" && RANLIB=:
7442
 
test -z "$STRIP" && STRIP=:
7443
7675
test -z "$ac_objext" && ac_objext=o
7444
7676
 
7445
 
# Determine commands to create old-style static archives.
7446
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7447
 
old_postinstall_cmds='chmod 644 $oldlib'
7448
 
old_postuninstall_cmds=
7449
 
 
7450
 
if test -n "$RANLIB"; then
7451
 
  case $host_os in
7452
 
  openbsd*)
7453
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7454
 
    ;;
7455
 
  *)
7456
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7457
 
    ;;
 
7677
for cc_temp in $compiler""; do
 
7678
  case $cc_temp in
 
7679
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7680
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7681
    \-*) ;;
 
7682
    *) break;;
7458
7683
  esac
7459
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7460
 
fi
 
7684
done
 
7685
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7686
 
7461
7687
 
7462
7688
# Only perform the check for file, if the check method requires it
 
7689
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7463
7690
case $deplibs_check_method in
7464
7691
file_magic*)
7465
7692
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7466
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7467
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7468
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7693
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7694
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7695
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7696
  $as_echo_n "(cached) " >&6
7470
7697
else
7471
7698
  case $MAGIC_CMD in
7472
7699
[\\/*] |  ?:[\\/]*)
7484
7711
      if test -n "$file_magic_test_file"; then
7485
7712
        case $deplibs_check_method in
7486
7713
        "file_magic "*)
7487
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7714
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7488
7715
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489
7716
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490
7717
            $EGREP "$file_magic_regex" > /dev/null; then
7491
7718
            :
7492
7719
          else
7493
 
            cat <<EOF 1>&2
 
7720
            cat <<_LT_EOF 1>&2
7494
7721
 
7495
7722
*** Warning: the command libtool uses to detect shared libraries,
7496
7723
*** $file_magic_cmd, produces output that libtool cannot recognize.
7501
7728
*** may want to report the problem to your system manager and/or to
7502
7729
*** bug-libtool@gnu.org
7503
7730
 
7504
 
EOF
 
7731
_LT_EOF
7505
7732
          fi ;;
7506
7733
        esac
7507
7734
      fi
7516
7743
 
7517
7744
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518
7745
if test -n "$MAGIC_CMD"; then
7519
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7747
$as_echo "$MAGIC_CMD" >&6; }
7521
7748
else
7522
 
  { echo "$as_me:$LINENO: result: no" >&5
7523
 
echo "${ECHO_T}no" >&6; }
 
7749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7750
$as_echo "no" >&6; }
7524
7751
fi
7525
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
7526
7757
if test -z "$lt_cv_path_MAGIC_CMD"; then
7527
7758
  if test -n "$ac_tool_prefix"; then
7528
 
    { echo "$as_me:$LINENO: checking for file" >&5
7529
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7530
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7759
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7760
$as_echo_n "checking for file... " >&6; }
 
7761
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7762
  $as_echo_n "(cached) " >&6
7532
7763
else
7533
7764
  case $MAGIC_CMD in
7534
7765
[\\/*] |  ?:[\\/]*)
7546
7777
      if test -n "$file_magic_test_file"; then
7547
7778
        case $deplibs_check_method in
7548
7779
        "file_magic "*)
7549
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7780
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7550
7781
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551
7782
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7552
7783
            $EGREP "$file_magic_regex" > /dev/null; then
7553
7784
            :
7554
7785
          else
7555
 
            cat <<EOF 1>&2
 
7786
            cat <<_LT_EOF 1>&2
7556
7787
 
7557
7788
*** Warning: the command libtool uses to detect shared libraries,
7558
7789
*** $file_magic_cmd, produces output that libtool cannot recognize.
7563
7794
*** may want to report the problem to your system manager and/or to
7564
7795
*** bug-libtool@gnu.org
7565
7796
 
7566
 
EOF
 
7797
_LT_EOF
7567
7798
          fi ;;
7568
7799
        esac
7569
7800
      fi
7578
7809
 
7579
7810
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580
7811
if test -n "$MAGIC_CMD"; then
7581
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7582
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7813
$as_echo "$MAGIC_CMD" >&6; }
7583
7814
else
7584
 
  { echo "$as_me:$LINENO: result: no" >&5
7585
 
echo "${ECHO_T}no" >&6; }
 
7815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7816
$as_echo "no" >&6; }
7586
7817
fi
7587
7818
 
 
7819
 
7588
7820
  else
7589
7821
    MAGIC_CMD=:
7590
7822
  fi
7594
7826
  ;;
7595
7827
esac
7596
7828
 
7597
 
enable_dlopen=no
7598
 
enable_win32_dll=yes
7599
 
 
7600
 
# Check whether --enable-libtool-lock was given.
7601
 
if test "${enable_libtool_lock+set}" = set; then
7602
 
  enableval=$enable_libtool_lock;
7603
 
fi
7604
 
 
7605
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7606
 
 
7607
 
 
7608
 
# Check whether --with-pic was given.
7609
 
if test "${with_pic+set}" = set; then
7610
 
  withval=$with_pic; pic_mode="$withval"
7611
 
else
7612
 
  pic_mode=default
7613
 
fi
7614
 
 
7615
 
test -z "$pic_mode" && pic_mode=default
7616
 
 
7617
7829
# Use C for the default configuration in the libtool script
7618
 
tagname=
 
7830
 
7619
7831
lt_save_CC="$CC"
7620
7832
ac_ext=c
7621
7833
ac_cpp='$CPP $CPPFLAGS'
7632
7844
objext=$objext
7633
7845
 
7634
7846
# Code to be used in simple compile tests
7635
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7847
lt_simple_compile_test_code="int some_variable = 0;"
7636
7848
 
7637
7849
# Code to be used in simple link tests
7638
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7850
lt_simple_link_test_code='int main(){return(0);}'
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
7639
7856
 
7640
7857
 
7641
7858
# If no C compiler was specified, use CC.
7642
7859
LTCC=${LTCC-"$CC"}
7643
7860
 
 
7861
# If no C compiler flags were specified, use CFLAGS.
 
7862
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7863
 
7644
7864
# Allow CC to be a program name with arguments.
7645
7865
compiler=$CC
7646
7866
 
7647
 
 
7648
 
#
7649
 
# Check for any special shared library compilation flags.
7650
 
#
7651
 
lt_prog_cc_shlib=
7652
 
if test "$GCC" = no; then
7653
 
  case $host_os in
7654
 
  sco3.2v5*)
7655
 
    lt_prog_cc_shlib='-belf'
7656
 
    ;;
7657
 
  esac
7658
 
fi
7659
 
if test -n "$lt_prog_cc_shlib"; then
7660
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7661
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7662
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7663
 
  else
7664
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7665
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7666
 
    lt_cv_prog_cc_can_build_shared=no
7667
 
  fi
7668
 
fi
7669
 
 
7670
 
 
7671
 
#
7672
 
# Check to make sure the static flag actually works.
7673
 
#
7674
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7675
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7676
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7677
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7678
 
else
7679
 
  lt_prog_compiler_static_works=no
7680
 
   save_LDFLAGS="$LDFLAGS"
7681
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7682
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7683
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7684
 
     # The compiler can only warn and ignore the option if not recognized
7685
 
     # So say no if there are warnings
7686
 
     if test -s conftest.err; then
7687
 
       # Append any errors to the config.log.
7688
 
       cat conftest.err 1>&5
7689
 
     else
7690
 
       lt_prog_compiler_static_works=yes
7691
 
     fi
7692
 
   fi
7693
 
   $rm conftest*
7694
 
   LDFLAGS="$save_LDFLAGS"
7695
 
 
7696
 
fi
7697
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7698
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7699
 
 
7700
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7701
 
    :
7702
 
else
7703
 
    lt_prog_compiler_static=
7704
 
fi
7705
 
 
 
7867
# Save the default compiler, since it gets overwritten when the other
 
7868
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7869
compiler_DEFAULT=$CC
 
7870
 
 
7871
# save warnings/boilerplate of simple test code
 
7872
ac_outfile=conftest.$ac_objext
 
7873
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7874
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7875
_lt_compiler_boilerplate=`cat conftest.err`
 
7876
$RM conftest*
 
7877
 
 
7878
ac_outfile=conftest.$ac_objext
 
7879
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7880
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7881
_lt_linker_boilerplate=`cat conftest.err`
 
7882
$RM -r conftest*
7706
7883
 
7707
7884
 
7708
7885
## CAVEAT EMPTOR:
7709
7886
## There is no encapsulation within the following macros, do not change
7710
7887
## the running order or otherwise move them around unless you know exactly
7711
7888
## what you are doing...
 
7889
if test -n "$compiler"; then
7712
7890
 
7713
7891
lt_prog_compiler_no_builtin_flag=
7714
7892
 
7715
7893
if test "$GCC" = yes; then
7716
7894
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7717
7895
 
7718
 
 
7719
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7721
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7897
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7898
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
7899
  $as_echo_n "(cached) " >&6
7723
7900
else
7724
7901
  lt_cv_prog_compiler_rtti_exceptions=no
7725
 
  ac_outfile=conftest.$ac_objext
7726
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7902
   ac_outfile=conftest.$ac_objext
 
7903
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727
7904
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7728
7905
   # Insert the option either (1) after the last *FLAGS variable, or
7729
7906
   # (2) before a word containing "conftest.", or (3) at the end.
7731
7908
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7732
7909
   # The option is referenced via a variable to avoid confusing sed.
7733
7910
   lt_compile=`echo "$ac_compile" | $SED \
7734
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735
7912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736
7913
   -e 's:$: $lt_compiler_flag:'`
7737
 
   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
 
7914
   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7738
7915
   (eval "$lt_compile" 2>conftest.err)
7739
7916
   ac_status=$?
7740
7917
   cat conftest.err >&5
7741
 
   echo "$as_me:7741: \$? = $ac_status" >&5
 
7918
   echo "$as_me:7918: \$? = $ac_status" >&5
7742
7919
   if (exit $ac_status) && test -s "$ac_outfile"; then
7743
7920
     # The compiler can only warn and ignore the option if not recognized
7744
 
     # So say no if there are warnings
7745
 
     if test ! -s conftest.err; then
 
7921
     # So say no if there are warnings other than the usual output.
 
7922
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7923
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7924
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7746
7925
       lt_cv_prog_compiler_rtti_exceptions=yes
7747
7926
     fi
7748
7927
   fi
7749
 
   $rm conftest*
 
7928
   $RM conftest*
7750
7929
 
7751
7930
fi
7752
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7932
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7754
7933
 
7755
7934
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756
7935
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7760
7939
 
7761
7940
fi
7762
7941
 
7763
 
lt_prog_compiler_wl=
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
  lt_prog_compiler_wl=
7764
7948
lt_prog_compiler_pic=
7765
7949
lt_prog_compiler_static=
7766
7950
 
7767
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7768
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
7952
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7769
7953
 
7770
7954
  if test "$GCC" = yes; then
7771
7955
    lt_prog_compiler_wl='-Wl,'
7781
7965
      ;;
7782
7966
 
7783
7967
    amigaos*)
7784
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7785
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7786
 
      # like `-m68040'.
7787
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7968
      case $host_cpu in
 
7969
      powerpc)
 
7970
            # see comment about AmigaOS4 .so support
 
7971
            lt_prog_compiler_pic='-fPIC'
 
7972
        ;;
 
7973
      m68k)
 
7974
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7975
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7976
            # like `-m68040'.
 
7977
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7978
        ;;
 
7979
      esac
7788
7980
      ;;
7789
7981
 
7790
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7982
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7791
7983
      # PIC is the default for these OSes.
7792
7984
      ;;
7793
7985
 
7794
 
    mingw* | pw32* | os2*)
 
7986
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7795
7987
      # This hack is so that the source file can tell whether it is being
7796
7988
      # built for inclusion in a dll (and should export symbols for example).
 
7989
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7990
      # (--disable-auto-import) libraries
7797
7991
      lt_prog_compiler_pic='-DDLL_EXPORT'
7798
7992
      ;;
7799
7993
 
7803
7997
      lt_prog_compiler_pic='-fno-common'
7804
7998
      ;;
7805
7999
 
 
8000
    hpux*)
 
8001
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8002
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8003
      # sets the default TLS model and affects inlining.
 
8004
      case $host_cpu in
 
8005
      hppa*64*)
 
8006
        # +Z the default
 
8007
        ;;
 
8008
      *)
 
8009
        lt_prog_compiler_pic='-fPIC'
 
8010
        ;;
 
8011
      esac
 
8012
      ;;
 
8013
 
 
8014
    interix[3-9]*)
 
8015
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8016
      # Instead, we relocate shared libraries at runtime.
 
8017
      ;;
 
8018
 
7806
8019
    msdosdjgpp*)
7807
8020
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7808
8021
      # on systems that don't support them.
7810
8023
      enable_shared=no
7811
8024
      ;;
7812
8025
 
 
8026
    *nto* | *qnx*)
 
8027
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8028
      # it will coredump.
 
8029
      lt_prog_compiler_pic='-fPIC -shared'
 
8030
      ;;
 
8031
 
7813
8032
    sysv4*MP*)
7814
8033
      if test -d /usr/nec; then
7815
8034
        lt_prog_compiler_pic=-Kconform_pic
7816
8035
      fi
7817
8036
      ;;
7818
8037
 
7819
 
    hpux*)
7820
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821
 
      # not for PA HP-UX.
7822
 
      case "$host_cpu" in
7823
 
      hppa*64*|ia64*)
7824
 
        # +Z the default
7825
 
        ;;
7826
 
      *)
7827
 
        lt_prog_compiler_pic='-fPIC'
7828
 
        ;;
7829
 
      esac
7830
 
      ;;
7831
 
 
7832
8038
    *)
7833
8039
      lt_prog_compiler_pic='-fPIC'
7834
8040
      ;;
7846
8052
      fi
7847
8053
      ;;
7848
8054
 
7849
 
    mingw* | pw32* | os2*)
 
8055
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7850
8056
      # This hack is so that the source file can tell whether it is being
7851
8057
      # built for inclusion in a dll (and should export symbols for example).
7852
8058
      lt_prog_compiler_pic='-DDLL_EXPORT'
7856
8062
      lt_prog_compiler_wl='-Wl,'
7857
8063
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7858
8064
      # not for PA HP-UX.
7859
 
      case "$host_cpu" in
 
8065
      case $host_cpu in
7860
8066
      hppa*64*|ia64*)
7861
8067
        # +Z the default
7862
8068
        ;;
7874
8080
      lt_prog_compiler_static='-non_shared'
7875
8081
      ;;
7876
8082
 
7877
 
    newsos6)
7878
 
      lt_prog_compiler_pic='-KPIC'
7879
 
      lt_prog_compiler_static='-Bstatic'
7880
 
      ;;
7881
 
 
7882
 
    linux*)
7883
 
      case $CC in
7884
 
      icc* | ecc*)
 
8083
    linux* | k*bsd*-gnu)
 
8084
      case $cc_basename in
 
8085
      # old Intel for x86_64 which still supported -KPIC.
 
8086
      ecc*)
7885
8087
        lt_prog_compiler_wl='-Wl,'
7886
8088
        lt_prog_compiler_pic='-KPIC'
7887
8089
        lt_prog_compiler_static='-static'
7888
8090
        ;;
 
8091
      # icc used to be incompatible with GCC.
 
8092
      # ICC 10 doesn't accept -KPIC any more.
 
8093
      icc* | ifort*)
 
8094
        lt_prog_compiler_wl='-Wl,'
 
8095
        lt_prog_compiler_pic='-fPIC'
 
8096
        lt_prog_compiler_static='-static'
 
8097
        ;;
 
8098
      # Lahey Fortran 8.1.
 
8099
      lf95*)
 
8100
        lt_prog_compiler_wl='-Wl,'
 
8101
        lt_prog_compiler_pic='--shared'
 
8102
        lt_prog_compiler_static='--static'
 
8103
        ;;
 
8104
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8105
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8106
        # which looks to be a dead project)
 
8107
        lt_prog_compiler_wl='-Wl,'
 
8108
        lt_prog_compiler_pic='-fpic'
 
8109
        lt_prog_compiler_static='-Bstatic'
 
8110
        ;;
7889
8111
      ccc*)
7890
8112
        lt_prog_compiler_wl='-Wl,'
7891
8113
        # All Alpha code is PIC.
7892
8114
        lt_prog_compiler_static='-non_shared'
7893
8115
        ;;
 
8116
      xl*)
 
8117
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8118
        lt_prog_compiler_wl='-Wl,'
 
8119
        lt_prog_compiler_pic='-qpic'
 
8120
        lt_prog_compiler_static='-qstaticlink'
 
8121
        ;;
 
8122
      *)
 
8123
        case `$CC -V 2>&1 | sed 5q` in
 
8124
        *Sun\ C*)
 
8125
          # Sun C 5.9
 
8126
          lt_prog_compiler_pic='-KPIC'
 
8127
          lt_prog_compiler_static='-Bstatic'
 
8128
          lt_prog_compiler_wl='-Wl,'
 
8129
          ;;
 
8130
        *Sun\ F*)
 
8131
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8132
          lt_prog_compiler_pic='-KPIC'
 
8133
          lt_prog_compiler_static='-Bstatic'
 
8134
          lt_prog_compiler_wl=''
 
8135
          ;;
 
8136
        esac
 
8137
        ;;
7894
8138
      esac
7895
8139
      ;;
7896
8140
 
 
8141
    newsos6)
 
8142
      lt_prog_compiler_pic='-KPIC'
 
8143
      lt_prog_compiler_static='-Bstatic'
 
8144
      ;;
 
8145
 
 
8146
    *nto* | *qnx*)
 
8147
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8148
      # it will coredump.
 
8149
      lt_prog_compiler_pic='-fPIC -shared'
 
8150
      ;;
 
8151
 
7897
8152
    osf3* | osf4* | osf5*)
7898
8153
      lt_prog_compiler_wl='-Wl,'
7899
8154
      # All OSF/1 code is PIC.
7900
8155
      lt_prog_compiler_static='-non_shared'
7901
8156
      ;;
7902
8157
 
7903
 
    sco3.2v5*)
7904
 
      lt_prog_compiler_pic='-Kpic'
7905
 
      lt_prog_compiler_static='-dn'
 
8158
    rdos*)
 
8159
      lt_prog_compiler_static='-non_shared'
7906
8160
      ;;
7907
8161
 
7908
8162
    solaris*)
7909
 
      lt_prog_compiler_wl='-Wl,'
7910
8163
      lt_prog_compiler_pic='-KPIC'
7911
8164
      lt_prog_compiler_static='-Bstatic'
 
8165
      case $cc_basename in
 
8166
      f77* | f90* | f95*)
 
8167
        lt_prog_compiler_wl='-Qoption ld ';;
 
8168
      *)
 
8169
        lt_prog_compiler_wl='-Wl,';;
 
8170
      esac
7912
8171
      ;;
7913
8172
 
7914
8173
    sunos4*)
7917
8176
      lt_prog_compiler_static='-Bstatic'
7918
8177
      ;;
7919
8178
 
7920
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8179
    sysv4 | sysv4.2uw2* | sysv4.3*)
7921
8180
      lt_prog_compiler_wl='-Wl,'
7922
8181
      lt_prog_compiler_pic='-KPIC'
7923
8182
      lt_prog_compiler_static='-Bstatic'
7930
8189
      fi
7931
8190
      ;;
7932
8191
 
 
8192
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8193
      lt_prog_compiler_wl='-Wl,'
 
8194
      lt_prog_compiler_pic='-KPIC'
 
8195
      lt_prog_compiler_static='-Bstatic'
 
8196
      ;;
 
8197
 
 
8198
    unicos*)
 
8199
      lt_prog_compiler_wl='-Wl,'
 
8200
      lt_prog_compiler_can_build_shared=no
 
8201
      ;;
 
8202
 
7933
8203
    uts4*)
7934
8204
      lt_prog_compiler_pic='-pic'
7935
8205
      lt_prog_compiler_static='-Bstatic'
7941
8211
    esac
7942
8212
  fi
7943
8213
 
7944
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7945
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8214
case $host_os in
 
8215
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8216
  *djgpp*)
 
8217
    lt_prog_compiler_pic=
 
8218
    ;;
 
8219
  *)
 
8220
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8221
    ;;
 
8222
esac
 
8223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8224
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
7946
8230
 
7947
8231
#
7948
8232
# Check to make sure the PIC flag actually works.
7949
8233
#
7950
8234
if test -n "$lt_prog_compiler_pic"; then
7951
 
 
7952
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7953
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7954
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8236
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8237
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8238
  $as_echo_n "(cached) " >&6
7956
8239
else
7957
 
  lt_prog_compiler_pic_works=no
7958
 
  ac_outfile=conftest.$ac_objext
7959
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8240
  lt_cv_prog_compiler_pic_works=no
 
8241
   ac_outfile=conftest.$ac_objext
 
8242
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7960
8243
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7961
8244
   # Insert the option either (1) after the last *FLAGS variable, or
7962
8245
   # (2) before a word containing "conftest.", or (3) at the end.
7964
8247
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7965
8248
   # The option is referenced via a variable to avoid confusing sed.
7966
8249
   lt_compile=`echo "$ac_compile" | $SED \
7967
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8250
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7968
8251
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7969
8252
   -e 's:$: $lt_compiler_flag:'`
7970
 
   (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
 
8253
   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
7971
8254
   (eval "$lt_compile" 2>conftest.err)
7972
8255
   ac_status=$?
7973
8256
   cat conftest.err >&5
7974
 
   echo "$as_me:7974: \$? = $ac_status" >&5
 
8257
   echo "$as_me:8257: \$? = $ac_status" >&5
7975
8258
   if (exit $ac_status) && test -s "$ac_outfile"; then
7976
8259
     # The compiler can only warn and ignore the option if not recognized
7977
 
     # So say no if there are warnings
7978
 
     if test ! -s conftest.err; then
7979
 
       lt_prog_compiler_pic_works=yes
 
8260
     # So say no if there are warnings other than the usual output.
 
8261
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8262
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8263
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8264
       lt_cv_prog_compiler_pic_works=yes
7980
8265
     fi
7981
8266
   fi
7982
 
   $rm conftest*
 
8267
   $RM conftest*
7983
8268
 
7984
8269
fi
7985
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7986
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
8270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8271
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7987
8272
 
7988
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8273
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7989
8274
    case $lt_prog_compiler_pic in
7990
8275
     "" | " "*) ;;
7991
8276
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7996
8281
fi
7997
8282
 
7998
8283
fi
7999
 
case "$host_os" in
8000
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8001
 
  *djgpp*)
8002
 
    lt_prog_compiler_pic=
8003
 
    ;;
8004
 
  *)
8005
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8006
 
    ;;
8007
 
esac
8008
 
 
8009
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8010
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8011
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8013
 
else
8014
 
  lt_cv_prog_compiler_c_o=no
8015
 
   $rm -r conftest 2>/dev/null
8016
 
   mkdir conftest
8017
 
   cd conftest
8018
 
   mkdir out
8019
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8020
 
 
8021
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8022
 
   # Insert the option either (1) after the last *FLAGS variable, or
8023
 
   # (2) before a word containing "conftest.", or (3) at the end.
8024
 
   # Note that $ac_compile itself does not contain backslashes and begins
8025
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8026
 
   lt_compile=`echo "$ac_compile" | $SED \
8027
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8028
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8029
 
   -e 's:$: $lt_compiler_flag:'`
8030
 
   (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
8031
 
   (eval "$lt_compile" 2>out/conftest.err)
8032
 
   ac_status=$?
8033
 
   cat out/conftest.err >&5
8034
 
   echo "$as_me:8034: \$? = $ac_status" >&5
8035
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8036
 
   then
8037
 
     # The compiler can only warn and ignore the option if not recognized
8038
 
     # So say no if there are warnings
8039
 
     if test ! -s out/conftest.err; then
8040
 
       lt_cv_prog_compiler_c_o=yes
8041
 
     fi
8042
 
   fi
8043
 
   chmod u+w .
8044
 
   $rm conftest*
8045
 
   # SGI C++ compiler will create directory out/ii_files/ for
8046
 
   # template instantiation
8047
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8048
 
   $rm out/* && rmdir out
8049
 
   cd ..
8050
 
   rmdir conftest
8051
 
   $rm conftest*
8052
 
 
8053
 
fi
8054
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8055
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
#
 
8291
# Check to make sure the static flag actually works.
 
8292
#
 
8293
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8295
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8296
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8297
  $as_echo_n "(cached) " >&6
 
8298
else
 
8299
  lt_cv_prog_compiler_static_works=no
 
8300
   save_LDFLAGS="$LDFLAGS"
 
8301
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8302
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8303
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8304
     # The linker can only warn and ignore the option if not recognized
 
8305
     # So say no if there are warnings
 
8306
     if test -s conftest.err; then
 
8307
       # Append any errors to the config.log.
 
8308
       cat conftest.err 1>&5
 
8309
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8310
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8311
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8312
         lt_cv_prog_compiler_static_works=yes
 
8313
       fi
 
8314
     else
 
8315
       lt_cv_prog_compiler_static_works=yes
 
8316
     fi
 
8317
   fi
 
8318
   $RM -r conftest*
 
8319
   LDFLAGS="$save_LDFLAGS"
 
8320
 
 
8321
fi
 
8322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8323
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8324
 
 
8325
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8326
    :
 
8327
else
 
8328
    lt_prog_compiler_static=
 
8329
fi
 
8330
 
 
8331
 
 
8332
 
 
8333
 
 
8334
 
 
8335
 
 
8336
 
 
8337
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8338
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8339
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8340
  $as_echo_n "(cached) " >&6
 
8341
else
 
8342
  lt_cv_prog_compiler_c_o=no
 
8343
   $RM -r conftest 2>/dev/null
 
8344
   mkdir conftest
 
8345
   cd conftest
 
8346
   mkdir out
 
8347
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8348
 
 
8349
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8350
   # Insert the option either (1) after the last *FLAGS variable, or
 
8351
   # (2) before a word containing "conftest.", or (3) at the end.
 
8352
   # Note that $ac_compile itself does not contain backslashes and begins
 
8353
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8354
   lt_compile=`echo "$ac_compile" | $SED \
 
8355
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8356
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8357
   -e 's:$: $lt_compiler_flag:'`
 
8358
   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
 
8359
   (eval "$lt_compile" 2>out/conftest.err)
 
8360
   ac_status=$?
 
8361
   cat out/conftest.err >&5
 
8362
   echo "$as_me:8362: \$? = $ac_status" >&5
 
8363
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8364
   then
 
8365
     # The compiler can only warn and ignore the option if not recognized
 
8366
     # So say no if there are warnings
 
8367
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8368
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8369
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8370
       lt_cv_prog_compiler_c_o=yes
 
8371
     fi
 
8372
   fi
 
8373
   chmod u+w . 2>&5
 
8374
   $RM conftest*
 
8375
   # SGI C++ compiler will create directory out/ii_files/ for
 
8376
   # template instantiation
 
8377
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8378
   $RM out/* && rmdir out
 
8379
   cd ..
 
8380
   $RM -r conftest
 
8381
   $RM conftest*
 
8382
 
 
8383
fi
 
8384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8385
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8386
 
 
8387
 
 
8388
 
 
8389
 
 
8390
 
 
8391
 
 
8392
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8393
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8394
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8395
  $as_echo_n "(cached) " >&6
 
8396
else
 
8397
  lt_cv_prog_compiler_c_o=no
 
8398
   $RM -r conftest 2>/dev/null
 
8399
   mkdir conftest
 
8400
   cd conftest
 
8401
   mkdir out
 
8402
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8403
 
 
8404
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8405
   # Insert the option either (1) after the last *FLAGS variable, or
 
8406
   # (2) before a word containing "conftest.", or (3) at the end.
 
8407
   # Note that $ac_compile itself does not contain backslashes and begins
 
8408
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8409
   lt_compile=`echo "$ac_compile" | $SED \
 
8410
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8411
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8412
   -e 's:$: $lt_compiler_flag:'`
 
8413
   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
 
8414
   (eval "$lt_compile" 2>out/conftest.err)
 
8415
   ac_status=$?
 
8416
   cat out/conftest.err >&5
 
8417
   echo "$as_me:8417: \$? = $ac_status" >&5
 
8418
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8419
   then
 
8420
     # The compiler can only warn and ignore the option if not recognized
 
8421
     # So say no if there are warnings
 
8422
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8423
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8424
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8425
       lt_cv_prog_compiler_c_o=yes
 
8426
     fi
 
8427
   fi
 
8428
   chmod u+w . 2>&5
 
8429
   $RM conftest*
 
8430
   # SGI C++ compiler will create directory out/ii_files/ for
 
8431
   # template instantiation
 
8432
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8433
   $RM out/* && rmdir out
 
8434
   cd ..
 
8435
   $RM -r conftest
 
8436
   $RM conftest*
 
8437
 
 
8438
fi
 
8439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8440
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8441
 
 
8442
 
8056
8443
 
8057
8444
 
8058
8445
hard_links="nottested"
8059
8446
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8060
8447
  # do not overwrite the value of need_locks provided by the user
8061
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8062
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8448
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8449
$as_echo_n "checking if we can lock with hard links... " >&6; }
8063
8450
  hard_links=yes
8064
 
  $rm conftest*
 
8451
  $RM conftest*
8065
8452
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8066
8453
  touch conftest.a
8067
8454
  ln conftest.a conftest.b 2>&5 || hard_links=no
8068
8455
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
8070
 
echo "${ECHO_T}$hard_links" >&6; }
 
8456
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8457
$as_echo "$hard_links" >&6; }
8071
8458
  if test "$hard_links" = no; then
8072
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8073
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8459
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8460
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8074
8461
    need_locks=warn
8075
8462
  fi
8076
8463
else
8077
8464
  need_locks=no
8078
8465
fi
8079
8466
 
8080
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8081
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8467
 
 
8468
 
 
8469
 
 
8470
 
 
8471
 
 
8472
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8473
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8082
8474
 
8083
8475
  runpath_var=
8084
8476
  allow_undefined_flag=
8085
 
  enable_shared_with_static_runtimes=no
 
8477
  always_export_symbols=no
8086
8478
  archive_cmds=
8087
8479
  archive_expsym_cmds=
8088
 
  old_archive_From_new_cmds=
8089
 
  old_archive_from_expsyms_cmds=
 
8480
  compiler_needs_object=no
 
8481
  enable_shared_with_static_runtimes=no
8090
8482
  export_dynamic_flag_spec=
8091
 
  whole_archive_flag_spec=
8092
 
  thread_safe_flag_spec=
 
8483
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8484
  hardcode_automatic=no
 
8485
  hardcode_direct=no
 
8486
  hardcode_direct_absolute=no
8093
8487
  hardcode_libdir_flag_spec=
8094
8488
  hardcode_libdir_flag_spec_ld=
8095
8489
  hardcode_libdir_separator=
8096
 
  hardcode_direct=no
8097
8490
  hardcode_minus_L=no
8098
8491
  hardcode_shlibpath_var=unsupported
 
8492
  inherit_rpath=no
8099
8493
  link_all_deplibs=unknown
8100
 
  hardcode_automatic=no
8101
8494
  module_cmds=
8102
8495
  module_expsym_cmds=
8103
 
  always_export_symbols=no
8104
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8496
  old_archive_from_new_cmds=
 
8497
  old_archive_from_expsyms_cmds=
 
8498
  thread_safe_flag_spec=
 
8499
  whole_archive_flag_spec=
8105
8500
  # include_expsyms should be a list of space-separated symbols to be *always*
8106
8501
  # included in the symbol list
8107
8502
  include_expsyms=
8109
8504
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8110
8505
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8111
8506
  # as well as any symbol that contains `d'.
8112
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8507
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8113
8508
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8114
8509
  # platforms (ab)use it in PIC code, but their linkers get confused if
8115
8510
  # the symbol is explicitly referenced.  Since portable code cannot
8116
8511
  # rely on this symbol name, it's probably fine to never include it in
8117
8512
  # preloaded symbol tables.
 
8513
  # Exclude shared library initialization/finalization symbols.
8118
8514
  extract_expsyms_cmds=
8119
8515
 
8120
8516
  case $host_os in
8121
 
  cygwin* | mingw* | pw32*)
 
8517
  cygwin* | mingw* | pw32* | cegcc*)
8122
8518
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123
8519
    # When not using gcc, we currently assume that we are using
8124
8520
    # Microsoft Visual C++.
8126
8522
      with_gnu_ld=no
8127
8523
    fi
8128
8524
    ;;
 
8525
  interix*)
 
8526
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8527
    with_gnu_ld=yes
 
8528
    ;;
8129
8529
  openbsd*)
8130
8530
    with_gnu_ld=no
8131
8531
    ;;
8136
8536
    # If archive_cmds runs LD, not CC, wlarc should be empty
8137
8537
    wlarc='${wl}'
8138
8538
 
 
8539
    # Set some defaults for GNU ld with shared library support. These
 
8540
    # are reset later if shared libraries are not supported. Putting them
 
8541
    # here allows them to be overridden if necessary.
 
8542
    runpath_var=LD_RUN_PATH
 
8543
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8544
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8545
    # ancient GNU ld didn't support --whole-archive et. al.
 
8546
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8547
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8548
    else
 
8549
      whole_archive_flag_spec=
 
8550
    fi
 
8551
    supports_anon_versioning=no
 
8552
    case `$LD -v 2>&1` in
 
8553
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8554
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8555
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8556
      *\ 2.11.*) ;; # other 2.11 versions
 
8557
      *) supports_anon_versioning=yes ;;
 
8558
    esac
 
8559
 
8139
8560
    # See if GNU ld supports shared libraries.
8140
8561
    case $host_os in
8141
 
    aix3* | aix4* | aix5*)
 
8562
    aix[3-9]*)
8142
8563
      # On AIX/PPC, the GNU linker is very broken
8143
8564
      if test "$host_cpu" != ia64; then
8144
8565
        ld_shlibs=no
8145
 
        cat <<EOF 1>&2
 
8566
        cat <<_LT_EOF 1>&2
8146
8567
 
8147
8568
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8148
8569
*** to be unable to reliably create shared libraries on AIX.
8150
8571
*** really care for shared libraries, you may want to modify your PATH
8151
8572
*** so that a non-GNU linker is found, and then restart.
8152
8573
 
8153
 
EOF
 
8574
_LT_EOF
8154
8575
      fi
8155
8576
      ;;
8156
8577
 
8157
8578
    amigaos*)
8158
 
      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)'
8159
 
      hardcode_libdir_flag_spec='-L$libdir'
8160
 
      hardcode_minus_L=yes
8161
 
 
8162
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8163
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8164
 
      # to version 4, is to share data among multiple programs linked
8165
 
      # with the same dynamic library.  Since this doesn't match the
8166
 
      # behavior of shared libraries on other platforms, we can't use
8167
 
      # them.
8168
 
      ld_shlibs=no
 
8579
      case $host_cpu in
 
8580
      powerpc)
 
8581
            # see comment about AmigaOS4 .so support
 
8582
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8583
            archive_expsym_cmds=''
 
8584
        ;;
 
8585
      m68k)
 
8586
            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)'
 
8587
            hardcode_libdir_flag_spec='-L$libdir'
 
8588
            hardcode_minus_L=yes
 
8589
        ;;
 
8590
      esac
8169
8591
      ;;
8170
8592
 
8171
8593
    beos*)
8172
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8594
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173
8595
        allow_undefined_flag=unsupported
8174
8596
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8175
8597
        # support --undefined.  This deserves some investigation.  FIXME
8179
8601
      fi
8180
8602
      ;;
8181
8603
 
8182
 
    cygwin* | mingw* | pw32*)
8183
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8604
    cygwin* | mingw* | pw32* | cegcc*)
 
8605
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8184
8606
      # as there is no search path for DLLs.
8185
8607
      hardcode_libdir_flag_spec='-L$libdir'
8186
8608
      allow_undefined_flag=unsupported
8187
8609
      always_export_symbols=no
8188
8610
      enable_shared_with_static_runtimes=yes
8189
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8611
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8190
8612
 
8191
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8192
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8613
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8614
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8193
8615
        # If the export-symbols file already is a .def file (1st line
8194
8616
        # is EXPORTS), use it as is; otherwise, prepend...
8195
8617
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8198
8620
          echo EXPORTS > $output_objdir/$soname.def;
8199
8621
          cat $export_symbols >> $output_objdir/$soname.def;
8200
8622
        fi~
8201
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8623
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8202
8624
      else
8203
8625
        ld_shlibs=no
8204
8626
      fi
8205
8627
      ;;
8206
8628
 
8207
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8208
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8629
    interix[3-9]*)
 
8630
      hardcode_direct=no
 
8631
      hardcode_shlibpath_var=no
 
8632
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8633
      export_dynamic_flag_spec='${wl}-E'
 
8634
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8635
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8636
      # default) and relocated if they conflict, which is a slow very memory
 
8637
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8638
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8639
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8640
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8641
      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'
 
8642
      ;;
 
8643
 
 
8644
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8645
      tmp_diet=no
 
8646
      if test "$host_os" = linux-dietlibc; then
 
8647
        case $cc_basename in
 
8648
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8649
        esac
 
8650
      fi
 
8651
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8652
         && test "$tmp_diet" = no
 
8653
      then
 
8654
        tmp_addflag=
 
8655
        tmp_sharedflag='-shared'
 
8656
        case $cc_basename,$host_cpu in
 
8657
        pgcc*)                          # Portland Group C compiler
 
8658
          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'
 
8659
          tmp_addflag=' $pic_flag'
 
8660
          ;;
 
8661
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8662
          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'
 
8663
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8664
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8665
          tmp_addflag=' -i_dynamic' ;;
 
8666
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8667
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8668
        ifc* | ifort*)                  # Intel Fortran compiler
 
8669
          tmp_addflag=' -nofor_main' ;;
 
8670
        lf95*)                          # Lahey Fortran 8.1
 
8671
          whole_archive_flag_spec=
 
8672
          tmp_sharedflag='--shared' ;;
 
8673
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8674
          tmp_sharedflag='-qmkshrobj'
 
8675
          tmp_addflag= ;;
 
8676
        esac
 
8677
        case `$CC -V 2>&1 | sed 5q` in
 
8678
        *Sun\ C*)                       # Sun C 5.9
 
8679
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8680
          compiler_needs_object=yes
 
8681
          tmp_sharedflag='-G' ;;
 
8682
        *Sun\ F*)                       # Sun Fortran 8.3
 
8683
          tmp_sharedflag='-G' ;;
 
8684
        esac
 
8685
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8686
 
 
8687
        if test "x$supports_anon_versioning" = xyes; then
 
8688
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8689
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8690
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8691
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8692
        fi
 
8693
 
 
8694
        case $cc_basename in
 
8695
        xlf*)
 
8696
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8697
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8698
          hardcode_libdir_flag_spec=
 
8699
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8700
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8701
          if test "x$supports_anon_versioning" = xyes; then
 
8702
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8703
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8704
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8705
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8706
          fi
 
8707
          ;;
 
8708
        esac
 
8709
      else
 
8710
        ld_shlibs=no
 
8711
      fi
 
8712
      ;;
 
8713
 
 
8714
    netbsd* | netbsdelf*-gnu)
 
8715
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8209
8716
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8210
8717
        wlarc=
8211
8718
      else
8214
8721
      fi
8215
8722
      ;;
8216
8723
 
8217
 
    solaris* | sysv5*)
8218
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8724
    solaris*)
 
8725
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8219
8726
        ld_shlibs=no
8220
 
        cat <<EOF 1>&2
 
8727
        cat <<_LT_EOF 1>&2
8221
8728
 
8222
8729
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8223
8730
*** create shared libraries on Solaris systems.  Therefore, libtool
8226
8733
*** your PATH or compiler configuration so that the native linker is
8227
8734
*** used, and then restart.
8228
8735
 
8229
 
EOF
8230
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8736
_LT_EOF
 
8737
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8231
8738
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232
8739
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233
8740
      else
8235
8742
      fi
8236
8743
      ;;
8237
8744
 
 
8745
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8746
      case `$LD -v 2>&1` in
 
8747
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8748
        ld_shlibs=no
 
8749
        cat <<_LT_EOF 1>&2
 
8750
 
 
8751
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8752
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8753
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8754
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8755
*** your PATH or compiler configuration so that the native linker is
 
8756
*** used, and then restart.
 
8757
 
 
8758
_LT_EOF
 
8759
        ;;
 
8760
        *)
 
8761
          # For security reasons, it is highly recommended that you always
 
8762
          # use absolute paths for naming shared libraries, and exclude the
 
8763
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8764
          # requires that you compile everything twice, which is a pain.
 
8765
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8766
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8767
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8768
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8769
          else
 
8770
            ld_shlibs=no
 
8771
          fi
 
8772
        ;;
 
8773
      esac
 
8774
      ;;
 
8775
 
8238
8776
    sunos4*)
8239
8777
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8240
8778
      wlarc=
8242
8780
      hardcode_shlibpath_var=no
8243
8781
      ;;
8244
8782
 
8245
 
  linux*)
8246
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8247
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248
 
        archive_cmds="$tmp_archive_cmds"
8249
 
      supports_anon_versioning=no
8250
 
      case `$LD -v 2>/dev/null` in
8251
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8252
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8253
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8254
 
        *\ 2.11.*) ;; # other 2.11 versions
8255
 
        *) supports_anon_versioning=yes ;;
8256
 
      esac
8257
 
      if test $supports_anon_versioning = yes; then
8258
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8259
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8261
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262
 
      else
8263
 
        archive_expsym_cmds="$tmp_archive_cmds"
8264
 
      fi
8265
 
      link_all_deplibs=no
8266
 
    else
8267
 
      ld_shlibs=no
8268
 
    fi
8269
 
    ;;
8270
 
 
8271
8783
    *)
8272
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8784
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8273
8785
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274
8786
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275
8787
      else
8278
8790
      ;;
8279
8791
    esac
8280
8792
 
8281
 
    if test "$ld_shlibs" = yes; then
8282
 
      runpath_var=LD_RUN_PATH
8283
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8284
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8285
 
      # ancient GNU ld didn't support --whole-archive et. al.
8286
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8287
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8288
 
      else
8289
 
        whole_archive_flag_spec=
8290
 
      fi
 
8793
    if test "$ld_shlibs" = no; then
 
8794
      runpath_var=
 
8795
      hardcode_libdir_flag_spec=
 
8796
      export_dynamic_flag_spec=
 
8797
      whole_archive_flag_spec=
8291
8798
    fi
8292
8799
  else
8293
8800
    # PORTME fill in a description of your system's linker (not GNU ld)
8299
8806
      # Note: this linker hardcodes the directories in LIBPATH if there
8300
8807
      # are no directories specified by -L.
8301
8808
      hardcode_minus_L=yes
8302
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8809
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8303
8810
        # Neither direct hardcoding nor static linking is supported with a
8304
8811
        # broken collect2.
8305
8812
        hardcode_direct=unsupported
8306
8813
      fi
8307
8814
      ;;
8308
8815
 
8309
 
    aix4* | aix5*)
 
8816
    aix[4-9]*)
8310
8817
      if test "$host_cpu" = ia64; then
8311
8818
        # On IA64, the linker does run time linking by default, so we don't
8312
8819
        # have to do anything special.
8316
8823
      else
8317
8824
        # If we're using GNU nm, then we don't want the "-C" option.
8318
8825
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8319
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8320
 
          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'
 
8826
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8827
          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'
8321
8828
        else
8322
 
          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'
 
8829
          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'
8323
8830
        fi
8324
8831
        aix_use_runtimelinking=no
8325
8832
 
8326
8833
        # Test if we are trying to use run time linking or normal
8327
8834
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8328
8835
        # need to do runtime linking.
8329
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8836
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8330
8837
          for ld_flag in $LDFLAGS; do
8331
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8332
 
            aix_use_runtimelinking=yes
8333
 
            break
8334
 
          fi
 
8838
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8839
            aix_use_runtimelinking=yes
 
8840
            break
 
8841
          fi
8335
8842
          done
 
8843
          ;;
8336
8844
        esac
8337
8845
 
8338
8846
        exp_sym_flag='-bexport'
8347
8855
 
8348
8856
      archive_cmds=''
8349
8857
      hardcode_direct=yes
 
8858
      hardcode_direct_absolute=yes
8350
8859
      hardcode_libdir_separator=':'
8351
8860
      link_all_deplibs=yes
 
8861
      file_list_spec='${wl}-f,'
8352
8862
 
8353
8863
      if test "$GCC" = yes; then
8354
 
        case $host_os in aix4.012|aix4.012.*)
 
8864
        case $host_os in aix4.[012]|aix4.[012].*)
8355
8865
        # We only want to do this on AIX 4.2 and lower, the check
8356
8866
        # below for broken collect2 doesn't work under 4.3+
8357
8867
          collect2name=`${CC} -print-prog-name=collect2`
8358
 
          if test -f "$collect2name" && \
8359
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8868
          if test -f "$collect2name" &&
 
8869
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8360
8870
          then
8361
 
          # We have reworked collect2
8362
 
          hardcode_direct=yes
 
8871
          # We have reworked collect2
 
8872
          :
8363
8873
          else
8364
 
          # We have old collect2
8365
 
          hardcode_direct=unsupported
8366
 
          # It fails to find uninstalled libraries when the uninstalled
8367
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8368
 
          # to unsupported forces relinking
8369
 
          hardcode_minus_L=yes
8370
 
          hardcode_libdir_flag_spec='-L$libdir'
8371
 
          hardcode_libdir_separator=
 
8874
          # We have old collect2
 
8875
          hardcode_direct=unsupported
 
8876
          # It fails to find uninstalled libraries when the uninstalled
 
8877
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8878
          # to unsupported forces relinking
 
8879
          hardcode_minus_L=yes
 
8880
          hardcode_libdir_flag_spec='-L$libdir'
 
8881
          hardcode_libdir_separator=
8372
8882
          fi
 
8883
          ;;
8373
8884
        esac
8374
8885
        shared_flag='-shared'
 
8886
        if test "$aix_use_runtimelinking" = yes; then
 
8887
          shared_flag="$shared_flag "'${wl}-G'
 
8888
        fi
 
8889
        link_all_deplibs=no
8375
8890
      else
8376
8891
        # not using gcc
8377
8892
        if test "$host_cpu" = ia64; then
8378
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379
 
        # chokes on -Wl,-G. The following line is correct:
 
8893
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8894
        # chokes on -Wl,-G. The following line is correct:
8380
8895
          shared_flag='-G'
8381
8896
        else
8382
 
        if test "$aix_use_runtimelinking" = yes; then
 
8897
          if test "$aix_use_runtimelinking" = yes; then
8383
8898
            shared_flag='${wl}-G'
8384
8899
          else
8385
8900
            shared_flag='${wl}-bM:SRE'
8386
 
        fi
 
8901
          fi
8387
8902
        fi
8388
8903
      fi
8389
8904
 
 
8905
      export_dynamic_flag_spec='${wl}-bexpall'
8390
8906
      # It seems that -bexpall does not export symbols beginning with
8391
8907
      # underscore (_), so it is better to generate a list of symbols to export.
8392
8908
      always_export_symbols=yes
8394
8910
        # Warning - without using the other runtime loading flags (-brtl),
8395
8911
        # -berok will link without error, but may produce a broken library.
8396
8912
        allow_undefined_flag='-berok'
8397
 
       # Determine the default libpath from the value encoded in an empty executable.
8398
 
       cat >conftest.$ac_ext <<_ACEOF
8399
 
/* confdefs.h.  */
8400
 
_ACEOF
8401
 
cat confdefs.h >>conftest.$ac_ext
8402
 
cat >>conftest.$ac_ext <<_ACEOF
 
8913
        # Determine the default libpath from the value encoded in an
 
8914
        # empty executable.
 
8915
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403
8916
/* end confdefs.h.  */
8404
8917
 
8405
8918
int
8410
8923
  return 0;
8411
8924
}
8412
8925
_ACEOF
8413
 
rm -f conftest.$ac_objext conftest$ac_exeext
8414
 
if { (ac_try="$ac_link"
8415
 
case "(($ac_try" in
8416
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417
 
  *) ac_try_echo=$ac_try;;
8418
 
esac
8419
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420
 
  (eval "$ac_link") 2>conftest.er1
8421
 
  ac_status=$?
8422
 
  grep -v '^ *+' conftest.er1 >conftest.err
8423
 
  rm -f conftest.er1
8424
 
  cat conftest.err >&5
8425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426
 
  (exit $ac_status); } && {
8427
 
         test -z "$ac_c_werror_flag" ||
8428
 
         test ! -s conftest.err
8429
 
       } && test -s conftest$ac_exeext &&
8430
 
       $as_test_x conftest$ac_exeext; then
 
8926
if ac_fn_c_try_link "$LINENO"; then :
8431
8927
 
8432
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8433
 
}'`
 
8928
lt_aix_libpath_sed='
 
8929
    /Import File Strings/,/^$/ {
 
8930
        /^0/ {
 
8931
            s/^0  *\(.*\)$/\1/
 
8932
            p
 
8933
        }
 
8934
    }'
 
8935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434
8936
# Check for a 64-bit object if we didn't find anything.
8435
 
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; }
8436
 
}'`; fi
8437
 
else
8438
 
  echo "$as_me: failed program was:" >&5
8439
 
sed 's/^/| /' conftest.$ac_ext >&5
8440
 
 
8441
 
 
8442
 
fi
8443
 
 
8444
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8445
 
      conftest$ac_exeext conftest.$ac_ext
 
8937
if test -z "$aix_libpath"; then
 
8938
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8939
fi
 
8940
fi
 
8941
rm -f core conftest.err conftest.$ac_objext \
 
8942
    conftest$ac_exeext conftest.$ac_ext
8446
8943
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8447
8944
 
8448
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8449
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8450
 
       else
 
8945
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8946
        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8947
      else
8451
8948
        if test "$host_cpu" = ia64; then
8452
8949
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8453
8950
          allow_undefined_flag="-z nodefs"
8454
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8951
          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"
8455
8952
        else
8456
 
         # Determine the default libpath from the value encoded in an empty executable.
8457
 
         cat >conftest.$ac_ext <<_ACEOF
8458
 
/* confdefs.h.  */
8459
 
_ACEOF
8460
 
cat confdefs.h >>conftest.$ac_ext
8461
 
cat >>conftest.$ac_ext <<_ACEOF
 
8953
         # Determine the default libpath from the value encoded in an
 
8954
         # empty executable.
 
8955
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462
8956
/* end confdefs.h.  */
8463
8957
 
8464
8958
int
8469
8963
  return 0;
8470
8964
}
8471
8965
_ACEOF
8472
 
rm -f conftest.$ac_objext conftest$ac_exeext
8473
 
if { (ac_try="$ac_link"
8474
 
case "(($ac_try" in
8475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476
 
  *) ac_try_echo=$ac_try;;
8477
 
esac
8478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479
 
  (eval "$ac_link") 2>conftest.er1
8480
 
  ac_status=$?
8481
 
  grep -v '^ *+' conftest.er1 >conftest.err
8482
 
  rm -f conftest.er1
8483
 
  cat conftest.err >&5
8484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485
 
  (exit $ac_status); } && {
8486
 
         test -z "$ac_c_werror_flag" ||
8487
 
         test ! -s conftest.err
8488
 
       } && test -s conftest$ac_exeext &&
8489
 
       $as_test_x conftest$ac_exeext; then
 
8966
if ac_fn_c_try_link "$LINENO"; then :
8490
8967
 
8491
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8492
 
}'`
 
8968
lt_aix_libpath_sed='
 
8969
    /Import File Strings/,/^$/ {
 
8970
        /^0/ {
 
8971
            s/^0  *\(.*\)$/\1/
 
8972
            p
 
8973
        }
 
8974
    }'
 
8975
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8493
8976
# Check for a 64-bit object if we didn't find anything.
8494
 
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; }
8495
 
}'`; fi
8496
 
else
8497
 
  echo "$as_me: failed program was:" >&5
8498
 
sed 's/^/| /' conftest.$ac_ext >&5
8499
 
 
8500
 
 
8501
 
fi
8502
 
 
8503
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504
 
      conftest$ac_exeext conftest.$ac_ext
 
8977
if test -z "$aix_libpath"; then
 
8978
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8979
fi
 
8980
fi
 
8981
rm -f core conftest.err conftest.$ac_objext \
 
8982
    conftest$ac_exeext conftest.$ac_ext
8505
8983
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506
8984
 
8507
8985
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509
8987
          # -berok will link without error, but may produce a broken library.
8510
8988
          no_undefined_flag=' ${wl}-bernotok'
8511
8989
          allow_undefined_flag=' ${wl}-berok'
8512
 
          # -bexpall does not export symbols beginning with underscore (_)
8513
 
          always_export_symbols=yes
8514
8990
          # Exported symbols can be pulled into shared objects from archives
8515
 
          whole_archive_flag_spec=' '
 
8991
          whole_archive_flag_spec='$convenience'
8516
8992
          archive_cmds_need_lc=yes
8517
 
          # This is similar to how AIX traditionally builds it's shared libraries.
8518
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8993
          # This is similar to how AIX traditionally builds its shared libraries.
 
8994
          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'
8519
8995
        fi
8520
8996
      fi
8521
8997
      ;;
8522
8998
 
8523
8999
    amigaos*)
8524
 
      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)'
8525
 
      hardcode_libdir_flag_spec='-L$libdir'
8526
 
      hardcode_minus_L=yes
8527
 
      # see comment about different semantics on the GNU ld section
8528
 
      ld_shlibs=no
 
9000
      case $host_cpu in
 
9001
      powerpc)
 
9002
            # see comment about AmigaOS4 .so support
 
9003
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9004
            archive_expsym_cmds=''
 
9005
        ;;
 
9006
      m68k)
 
9007
            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)'
 
9008
            hardcode_libdir_flag_spec='-L$libdir'
 
9009
            hardcode_minus_L=yes
 
9010
        ;;
 
9011
      esac
8529
9012
      ;;
8530
9013
 
8531
 
    bsdi4*)
 
9014
    bsdi[45]*)
8532
9015
      export_dynamic_flag_spec=-rdynamic
8533
9016
      ;;
8534
9017
 
8535
 
    cygwin* | mingw* | pw32*)
 
9018
    cygwin* | mingw* | pw32* | cegcc*)
8536
9019
      # When not using gcc, we currently assume that we are using
8537
9020
      # Microsoft Visual C++.
8538
9021
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8544
9027
      # Tell ltmain to make .dll files, not .so files.
8545
9028
      shrext_cmds=".dll"
8546
9029
      # FIXME: Setting linknames here is a bad hack.
8547
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9030
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8548
9031
      # The linker will automatically build a .lib file if we build a DLL.
8549
 
      old_archive_From_new_cmds='true'
 
9032
      old_archive_from_new_cmds='true'
8550
9033
      # FIXME: Should let the user specify the lib program.
8551
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9034
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8552
9035
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8553
9036
      enable_shared_with_static_runtimes=yes
8554
9037
      ;;
8555
9038
 
8556
9039
    darwin* | rhapsody*)
8557
 
    if test "$GXX" = yes ; then
8558
 
      archive_cmds_need_lc=no
8559
 
      case "$host_os" in
8560
 
      rhapsody* | darwin1.[012])
8561
 
        allow_undefined_flag='-undefined suppress'
8562
 
        ;;
8563
 
      *) # Darwin 1.3 on
8564
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8565
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8566
 
      else
8567
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8568
 
          10.[012])
8569
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8570
 
            ;;
8571
 
          10.*)
8572
 
            allow_undefined_flag='-undefined dynamic_lookup'
8573
 
            ;;
8574
 
        esac
8575
 
      fi
8576
 
        ;;
8577
 
      esac
8578
 
        lt_int_apple_cc_single_mod=no
8579
 
        output_verbose_link_cmd='echo'
8580
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8581
 
          lt_int_apple_cc_single_mod=yes
8582
 
        fi
8583
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8584
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8585
 
        else
8586
 
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8587
 
      fi
8588
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8591
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8592
 
        else
8593
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8594
 
        fi
8595
 
          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}'
8596
 
      hardcode_direct=no
8597
 
      hardcode_automatic=yes
8598
 
      hardcode_shlibpath_var=unsupported
8599
 
      whole_archive_flag_spec='-all_load $convenience'
8600
 
      link_all_deplibs=yes
8601
 
    else
8602
 
      ld_shlibs=no
8603
 
    fi
 
9040
 
 
9041
 
 
9042
  archive_cmds_need_lc=no
 
9043
  hardcode_direct=no
 
9044
  hardcode_automatic=yes
 
9045
  hardcode_shlibpath_var=unsupported
 
9046
  whole_archive_flag_spec=''
 
9047
  link_all_deplibs=yes
 
9048
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9049
  case $cc_basename in
 
9050
     ifort*) _lt_dar_can_shared=yes ;;
 
9051
     *) _lt_dar_can_shared=$GCC ;;
 
9052
  esac
 
9053
  if test "$_lt_dar_can_shared" = "yes"; then
 
9054
    output_verbose_link_cmd=echo
 
9055
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9056
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9057
    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}"
 
9058
    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}"
 
9059
 
 
9060
  else
 
9061
  ld_shlibs=no
 
9062
  fi
 
9063
 
8604
9064
      ;;
8605
9065
 
8606
9066
    dgux*)
8633
9093
      ;;
8634
9094
 
8635
9095
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8636
 
    freebsd* | kfreebsd*-gnu)
 
9096
    freebsd* | dragonfly*)
8637
9097
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8638
9098
      hardcode_libdir_flag_spec='-R$libdir'
8639
9099
      hardcode_direct=yes
8642
9102
 
8643
9103
    hpux9*)
8644
9104
      if test "$GCC" = yes; then
8645
 
        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'
 
9105
        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'
8646
9106
      else
8647
 
        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'
 
9107
        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'
8648
9108
      fi
8649
9109
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650
9110
      hardcode_libdir_separator=:
8656
9116
      export_dynamic_flag_spec='${wl}-E'
8657
9117
      ;;
8658
9118
 
8659
 
    hpux10* | hpux11*)
8660
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8661
 
        case "$host_cpu" in
8662
 
        hppa*64*|ia64*)
 
9119
    hpux10*)
 
9120
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9121
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9122
      else
 
9123
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9124
      fi
 
9125
      if test "$with_gnu_ld" = no; then
 
9126
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9127
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9128
        hardcode_libdir_separator=:
 
9129
        hardcode_direct=yes
 
9130
        hardcode_direct_absolute=yes
 
9131
        export_dynamic_flag_spec='${wl}-E'
 
9132
        # hardcode_minus_L: Not really in the search PATH,
 
9133
        # but as the default location of the library.
 
9134
        hardcode_minus_L=yes
 
9135
      fi
 
9136
      ;;
 
9137
 
 
9138
    hpux11*)
 
9139
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9140
        case $host_cpu in
 
9141
        hppa*64*)
8663
9142
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664
9143
          ;;
 
9144
        ia64*)
 
9145
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9146
          ;;
8665
9147
        *)
8666
9148
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8667
9149
          ;;
8668
9150
        esac
8669
9151
      else
8670
 
        case "$host_cpu" in
8671
 
        hppa*64*|ia64*)
8672
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9152
        case $host_cpu in
 
9153
        hppa*64*)
 
9154
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9155
          ;;
 
9156
        ia64*)
 
9157
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8673
9158
          ;;
8674
9159
        *)
8675
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9160
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8676
9161
          ;;
8677
9162
        esac
8678
9163
      fi
8679
9164
      if test "$with_gnu_ld" = no; then
8680
 
        case "$host_cpu" in
8681
 
        hppa*64*)
8682
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8684
 
          hardcode_libdir_separator=:
8685
 
          hardcode_direct=no
8686
 
          hardcode_shlibpath_var=no
8687
 
          ;;
8688
 
        ia64*)
8689
 
          hardcode_libdir_flag_spec='-L$libdir'
8690
 
          hardcode_direct=no
8691
 
          hardcode_shlibpath_var=no
 
9165
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9166
        hardcode_libdir_separator=:
8692
9167
 
8693
 
          # hardcode_minus_L: Not really in the search PATH,
8694
 
          # but as the default location of the library.
8695
 
          hardcode_minus_L=yes
 
9168
        case $host_cpu in
 
9169
        hppa*64*|ia64*)
 
9170
          hardcode_direct=no
 
9171
          hardcode_shlibpath_var=no
8696
9172
          ;;
8697
9173
        *)
8698
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699
 
          hardcode_libdir_separator=:
8700
9174
          hardcode_direct=yes
 
9175
          hardcode_direct_absolute=yes
8701
9176
          export_dynamic_flag_spec='${wl}-E'
8702
9177
 
8703
9178
          # hardcode_minus_L: Not really in the search PATH,
8710
9185
 
8711
9186
    irix5* | irix6* | nonstopux*)
8712
9187
      if test "$GCC" = yes; then
8713
 
        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'
 
9188
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9189
        # Try to use the -exported_symbol ld option, if it does not
 
9190
        # work, assume that -exports_file does not work either and
 
9191
        # implicitly export all symbols.
 
9192
        save_LDFLAGS="$LDFLAGS"
 
9193
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9194
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9195
/* end confdefs.h.  */
 
9196
int foo(void) {}
 
9197
_ACEOF
 
9198
if ac_fn_c_try_link "$LINENO"; then :
 
9199
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9200
 
 
9201
fi
 
9202
rm -f core conftest.err conftest.$ac_objext \
 
9203
    conftest$ac_exeext conftest.$ac_ext
 
9204
        LDFLAGS="$save_LDFLAGS"
8714
9205
      else
8715
 
        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'
8716
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9206
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9207
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8717
9208
      fi
 
9209
      archive_cmds_need_lc='no'
8718
9210
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719
9211
      hardcode_libdir_separator=:
 
9212
      inherit_rpath=yes
8720
9213
      link_all_deplibs=yes
8721
9214
      ;;
8722
9215
 
8723
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8724
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9216
    netbsd* | netbsdelf*-gnu)
 
9217
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8725
9218
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8726
9219
      else
8727
9220
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8739
9232
      hardcode_shlibpath_var=no
8740
9233
      ;;
8741
9234
 
 
9235
    *nto* | *qnx*)
 
9236
      ;;
 
9237
 
8742
9238
    openbsd*)
8743
 
      hardcode_direct=yes
8744
 
      hardcode_shlibpath_var=no
8745
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8747
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748
 
        export_dynamic_flag_spec='${wl}-E'
 
9239
      if test -f /usr/libexec/ld.so; then
 
9240
        hardcode_direct=yes
 
9241
        hardcode_shlibpath_var=no
 
9242
        hardcode_direct_absolute=yes
 
9243
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9244
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9245
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9246
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9247
          export_dynamic_flag_spec='${wl}-E'
 
9248
        else
 
9249
          case $host_os in
 
9250
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9251
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9252
             hardcode_libdir_flag_spec='-R$libdir'
 
9253
             ;;
 
9254
           *)
 
9255
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9256
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9257
             ;;
 
9258
          esac
 
9259
        fi
8749
9260
      else
8750
 
       case $host_os in
8751
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8752
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753
 
           hardcode_libdir_flag_spec='-R$libdir'
8754
 
           ;;
8755
 
         *)
8756
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8757
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758
 
           ;;
8759
 
       esac
 
9261
        ld_shlibs=no
8760
9262
      fi
8761
9263
      ;;
8762
9264
 
8764
9266
      hardcode_libdir_flag_spec='-L$libdir'
8765
9267
      hardcode_minus_L=yes
8766
9268
      allow_undefined_flag=unsupported
8767
 
      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'
8768
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9269
      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'
 
9270
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8769
9271
      ;;
8770
9272
 
8771
9273
    osf3*)
8772
9274
      if test "$GCC" = yes; then
8773
9275
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8774
 
        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'
 
9276
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8775
9277
      else
8776
9278
        allow_undefined_flag=' -expect_unresolved \*'
8777
 
        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'
 
9279
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8778
9280
      fi
 
9281
      archive_cmds_need_lc='no'
8779
9282
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780
9283
      hardcode_libdir_separator=:
8781
9284
      ;;
8783
9286
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8784
9287
      if test "$GCC" = yes; then
8785
9288
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786
 
        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'
 
9289
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8787
9290
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788
9291
      else
8789
9292
        allow_undefined_flag=' -expect_unresolved \*'
8790
 
        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'
8791
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8792
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
9293
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9294
        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~
 
9295
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8793
9296
 
8794
9297
        # Both c and cxx compiler support -rpath directly
8795
9298
        hardcode_libdir_flag_spec='-rpath $libdir'
8796
9299
      fi
 
9300
      archive_cmds_need_lc='no'
8797
9301
      hardcode_libdir_separator=:
8798
9302
      ;;
8799
9303
 
8800
 
    sco3.2v5*)
8801
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802
 
      hardcode_shlibpath_var=no
8803
 
      export_dynamic_flag_spec='${wl}-Bexport'
8804
 
      runpath_var=LD_RUN_PATH
8805
 
      hardcode_runpath_var=yes
8806
 
      ;;
8807
 
 
8808
9304
    solaris*)
8809
 
      no_undefined_flag=' -z text'
 
9305
      no_undefined_flag=' -z defs'
8810
9306
      if test "$GCC" = yes; then
8811
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9307
        wlarc='${wl}'
 
9308
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9309
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9310
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8814
9311
      else
8815
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8817
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9312
        case `$CC -V 2>&1` in
 
9313
        *"Compilers 5.0"*)
 
9314
          wlarc=''
 
9315
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9316
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9317
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9318
          ;;
 
9319
        *)
 
9320
          wlarc='${wl}'
 
9321
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9322
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9323
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9324
          ;;
 
9325
        esac
8818
9326
      fi
8819
9327
      hardcode_libdir_flag_spec='-R$libdir'
8820
9328
      hardcode_shlibpath_var=no
8821
9329
      case $host_os in
8822
9330
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8823
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8824
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9331
      *)
 
9332
        # The compiler driver will combine and reorder linker options,
 
9333
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9334
        # but is careful enough not to reorder.
 
9335
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9336
        if test "$GCC" = yes; then
 
9337
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9338
        else
 
9339
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9340
        fi
 
9341
        ;;
8825
9342
      esac
8826
9343
      link_all_deplibs=yes
8827
9344
      ;;
8878
9395
      fi
8879
9396
      ;;
8880
9397
 
8881
 
    sysv4.2uw2*)
8882
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8883
 
      hardcode_direct=yes
8884
 
      hardcode_minus_L=no
8885
 
      hardcode_shlibpath_var=no
8886
 
      hardcode_runpath_var=yes
8887
 
      runpath_var=LD_RUN_PATH
8888
 
      ;;
8889
 
 
8890
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8891
 
      no_undefined_flag='${wl}-z ${wl}text'
8892
 
      if test "$GCC" = yes; then
8893
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894
 
      else
8895
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8896
 
      fi
8897
 
      runpath_var='LD_RUN_PATH'
8898
 
      hardcode_shlibpath_var=no
8899
 
      ;;
8900
 
 
8901
 
    sysv5*)
8902
 
      no_undefined_flag=' -z text'
8903
 
      # $CC -shared without GNU ld will not create a library from C++
8904
 
      # object files and a static libstdc++, better avoid it by now
8905
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8907
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8908
 
      hardcode_libdir_flag_spec=
8909
 
      hardcode_shlibpath_var=no
8910
 
      runpath_var='LD_RUN_PATH'
 
9398
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9399
      no_undefined_flag='${wl}-z,text'
 
9400
      archive_cmds_need_lc=no
 
9401
      hardcode_shlibpath_var=no
 
9402
      runpath_var='LD_RUN_PATH'
 
9403
 
 
9404
      if test "$GCC" = yes; then
 
9405
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9406
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9407
      else
 
9408
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9409
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9410
      fi
 
9411
      ;;
 
9412
 
 
9413
    sysv5* | sco3.2v5* | sco5v6*)
 
9414
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9415
      # link with -lc, and that would cause any symbols used from libc to
 
9416
      # always be unresolved, which means just about no library would
 
9417
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9418
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9419
      # as -z defs.
 
9420
      no_undefined_flag='${wl}-z,text'
 
9421
      allow_undefined_flag='${wl}-z,nodefs'
 
9422
      archive_cmds_need_lc=no
 
9423
      hardcode_shlibpath_var=no
 
9424
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9425
      hardcode_libdir_separator=':'
 
9426
      link_all_deplibs=yes
 
9427
      export_dynamic_flag_spec='${wl}-Bexport'
 
9428
      runpath_var='LD_RUN_PATH'
 
9429
 
 
9430
      if test "$GCC" = yes; then
 
9431
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9432
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9433
      else
 
9434
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9435
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9436
      fi
8911
9437
      ;;
8912
9438
 
8913
9439
    uts4*)
8920
9446
      ld_shlibs=no
8921
9447
      ;;
8922
9448
    esac
 
9449
 
 
9450
    if test x$host_vendor = xsni; then
 
9451
      case $host in
 
9452
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9453
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9454
        ;;
 
9455
      esac
 
9456
    fi
8923
9457
  fi
8924
9458
 
8925
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8926
 
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9460
$as_echo "$ld_shlibs" >&6; }
8927
9461
test "$ld_shlibs" = no && can_build_shared=no
8928
9462
 
8929
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8930
 
if test "$GCC" = yes; then
8931
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8932
 
fi
 
9463
with_gnu_ld=$with_gnu_ld
 
9464
 
 
9465
 
 
9466
 
 
9467
 
 
9468
 
 
9469
 
 
9470
 
 
9471
 
 
9472
 
 
9473
 
 
9474
 
 
9475
 
 
9476
 
 
9477
 
8933
9478
 
8934
9479
#
8935
9480
# Do we need to explicitly link libc?
8948
9493
      # Test whether the compiler implicitly links with -lc since on some
8949
9494
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8950
9495
      # to ld, don't add -lc before -lgcc.
8951
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8952
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8953
 
      $rm conftest*
8954
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9496
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9497
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9498
      $RM conftest*
 
9499
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955
9500
 
8956
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9501
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957
9502
  (eval $ac_compile) 2>&5
8958
9503
  ac_status=$?
8959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960
 
  (exit $ac_status); } 2>conftest.err; then
 
9504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9505
  test $ac_status = 0; } 2>conftest.err; then
8961
9506
        soname=conftest
8962
9507
        lib=conftest
8963
9508
        libobjs=conftest.$ac_objext
8964
9509
        deplibs=
8965
9510
        wl=$lt_prog_compiler_wl
 
9511
        pic_flag=$lt_prog_compiler_pic
8966
9512
        compiler_flags=-v
8967
9513
        linker_flags=-v
8968
9514
        verstring=
8970
9516
        libname=conftest
8971
9517
        lt_save_allow_undefined_flag=$allow_undefined_flag
8972
9518
        allow_undefined_flag=
8973
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9519
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9520
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8975
9521
  ac_status=$?
8976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977
 
  (exit $ac_status); }
 
9522
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9523
  test $ac_status = 0; }
8978
9524
        then
8979
9525
          archive_cmds_need_lc=no
8980
9526
        else
8984
9530
      else
8985
9531
        cat conftest.err 1>&5
8986
9532
      fi
8987
 
      $rm conftest*
8988
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9533
      $RM conftest*
 
9534
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9535
$as_echo "$archive_cmds_need_lc" >&6; }
8990
9536
      ;;
8991
9537
    esac
8992
9538
  fi
8993
9539
  ;;
8994
9540
esac
8995
9541
 
8996
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9542
 
 
9543
 
 
9544
 
 
9545
 
 
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
 
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
 
 
9569
 
 
9570
 
 
9571
 
 
9572
 
 
9573
 
 
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
9582
 
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
 
 
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
 
 
9694
 
 
9695
 
 
9696
 
 
9697
 
 
9698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9699
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9700
 
 
9701
if test "$GCC" = yes; then
 
9702
  case $host_os in
 
9703
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9704
    *) lt_awk_arg="/^libraries:/" ;;
 
9705
  esac
 
9706
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9707
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9708
    # if the path contains ";" then we assume it to be the separator
 
9709
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9710
    # assumed that no part of a normal pathname contains ";" but that should
 
9711
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9712
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9713
  else
 
9714
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9715
  fi
 
9716
  # Ok, now we have the path, separated by spaces, we can step through it
 
9717
  # and add multilib dir if necessary.
 
9718
  lt_tmp_lt_search_path_spec=
 
9719
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9720
  for lt_sys_path in $lt_search_path_spec; do
 
9721
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9722
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9723
    else
 
9724
      test -d "$lt_sys_path" && \
 
9725
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9726
    fi
 
9727
  done
 
9728
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9729
BEGIN {RS=" "; FS="/|\n";} {
 
9730
  lt_foo="";
 
9731
  lt_count=0;
 
9732
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9733
    if ($lt_i != "" && $lt_i != ".") {
 
9734
      if ($lt_i == "..") {
 
9735
        lt_count++;
 
9736
      } else {
 
9737
        if (lt_count == 0) {
 
9738
          lt_foo="/" $lt_i lt_foo;
 
9739
        } else {
 
9740
          lt_count--;
 
9741
        }
 
9742
      }
 
9743
    }
 
9744
  }
 
9745
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9746
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9747
}'`
 
9748
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9749
else
 
9750
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9751
fi
8998
9752
library_names_spec=
8999
9753
libname_spec='lib$name'
9000
9754
soname_spec=
9008
9762
version_type=none
9009
9763
dynamic_linker="$host_os ld.so"
9010
9764
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9011
 
if test "$GCC" = yes; then
9012
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9014
 
    # if the path contains ";" then we assume it to be the separator
9015
 
    # otherwise default to the standard path separator (i.e. ":") - it is
9016
 
    # assumed that no part of a normal pathname contains ";" but that should
9017
 
    # okay in the real world where ";" in dirpaths is itself problematic.
9018
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9019
 
  else
9020
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9021
 
  fi
9022
 
else
9023
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9024
 
fi
9025
9765
need_lib_prefix=unknown
9026
9766
hardcode_into_libs=no
9027
9767
 
9039
9779
  soname_spec='${libname}${release}${shared_ext}$major'
9040
9780
  ;;
9041
9781
 
9042
 
aix4* | aix5*)
 
9782
aix[4-9]*)
9043
9783
  version_type=linux
9044
9784
  need_lib_prefix=no
9045
9785
  need_version=no
9058
9798
      aix4 | aix4.[01] | aix4.[01].*)
9059
9799
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9060
9800
           echo ' yes '
9061
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9801
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9062
9802
        :
9063
9803
      else
9064
9804
        can_build_shared=no
9084
9824
  ;;
9085
9825
 
9086
9826
amigaos*)
9087
 
  library_names_spec='$libname.ixlibrary $libname.a'
9088
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9089
 
  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'
 
9827
  case $host_cpu in
 
9828
  powerpc)
 
9829
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9830
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9831
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9832
    ;;
 
9833
  m68k)
 
9834
    library_names_spec='$libname.ixlibrary $libname.a'
 
9835
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9836
    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'
 
9837
    ;;
 
9838
  esac
9090
9839
  ;;
9091
9840
 
9092
9841
beos*)
9095
9844
  shlibpath_var=LIBRARY_PATH
9096
9845
  ;;
9097
9846
 
9098
 
bsdi4*)
 
9847
bsdi[45]*)
9099
9848
  version_type=linux
9100
9849
  need_version=no
9101
9850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109
9858
  # libtool to hard-code these into programs
9110
9859
  ;;
9111
9860
 
9112
 
cygwin* | mingw* | pw32*)
 
9861
cygwin* | mingw* | pw32* | cegcc*)
9113
9862
  version_type=windows
9114
9863
  shrext_cmds=".dll"
9115
9864
  need_version=no
9116
9865
  need_lib_prefix=no
9117
9866
 
9118
9867
  case $GCC,$host_os in
9119
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9868
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9120
9869
    library_names_spec='$libname.dll.a'
9121
9870
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9122
9871
    postinstall_cmds='base_file=`basename \${file}`~
9123
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9872
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9124
9873
      dldir=$destdir/`dirname \$dlpath`~
9125
9874
      test -d \$dldir || mkdir -p \$dldir~
9126
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9875
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9876
      chmod a+x \$dldir/$dlname~
 
9877
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9878
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9879
      fi'
9127
9880
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9128
9881
      dlpath=$dir/\$dldll~
9129
 
       $rm \$dlpath'
 
9882
       $RM \$dlpath'
9130
9883
    shlibpath_overrides_runpath=yes
9131
9884
 
9132
9885
    case $host_os in
9135
9888
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9136
9889
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9137
9890
      ;;
9138
 
    mingw*)
 
9891
    mingw* | cegcc*)
9139
9892
      # MinGW DLLs use traditional 'lib' prefix
9140
9893
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9141
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9142
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9894
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9895
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9143
9896
        # It is most probably a Windows format PATH printed by
9144
9897
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9145
9898
        # path with ; separators, and with drive letters. We can handle the
9146
9899
        # drive letters (cygwin fileutils understands them), so leave them,
9147
9900
        # especially as we might pass files found there to a mingw objdump,
9148
9901
        # which wouldn't understand a cygwinified path. Ahh.
9149
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9902
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150
9903
      else
9151
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9904
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9152
9905
      fi
9153
9906
      ;;
9154
9907
    pw32*)
9155
9908
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9156
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9909
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9157
9910
      ;;
9158
9911
    esac
9159
9912
    ;;
9172
9925
  version_type=darwin
9173
9926
  need_lib_prefix=no
9174
9927
  need_version=no
9175
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9928
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176
9929
  soname_spec='${libname}${release}${major}$shared_ext'
9177
9930
  shlibpath_overrides_runpath=yes
9178
9931
  shlibpath_var=DYLD_LIBRARY_PATH
9179
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9180
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9181
 
  if test "$GCC" = yes; then
9182
 
    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"`
9183
 
  else
9184
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9185
 
  fi
 
9932
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9933
 
 
9934
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9186
9935
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9187
9936
  ;;
9188
9937
 
9199
9948
  dynamic_linker=no
9200
9949
  ;;
9201
9950
 
9202
 
kfreebsd*-gnu)
9203
 
  version_type=linux
9204
 
  need_lib_prefix=no
9205
 
  need_version=no
9206
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207
 
  soname_spec='${libname}${release}${shared_ext}$major'
9208
 
  shlibpath_var=LD_LIBRARY_PATH
9209
 
  shlibpath_overrides_runpath=no
9210
 
  hardcode_into_libs=yes
9211
 
  dynamic_linker='GNU ld.so'
9212
 
  ;;
9213
 
 
9214
 
freebsd*)
9215
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9951
freebsd* | dragonfly*)
 
9952
  # DragonFly does not have aout.  When/if they implement a new
 
9953
  # versioning mechanism, adjust this.
 
9954
  if test -x /usr/bin/objformat; then
 
9955
    objformat=`/usr/bin/objformat`
 
9956
  else
 
9957
    case $host_os in
 
9958
    freebsd[123]*) objformat=aout ;;
 
9959
    *) objformat=elf ;;
 
9960
    esac
 
9961
  fi
9216
9962
  version_type=freebsd-$objformat
9217
9963
  case $version_type in
9218
9964
    freebsd-elf*)
9230
9976
  freebsd2*)
9231
9977
    shlibpath_overrides_runpath=yes
9232
9978
    ;;
9233
 
  freebsd3.01* | freebsdelf3.01*)
 
9979
  freebsd3.[01]* | freebsdelf3.[01]*)
9234
9980
    shlibpath_overrides_runpath=yes
9235
9981
    hardcode_into_libs=yes
9236
9982
    ;;
9237
 
  *) # from 3.2 on
 
9983
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9984
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9238
9985
    shlibpath_overrides_runpath=no
9239
9986
    hardcode_into_libs=yes
9240
9987
    ;;
 
9988
  *) # from 4.6 on, and DragonFly
 
9989
    shlibpath_overrides_runpath=yes
 
9990
    hardcode_into_libs=yes
 
9991
    ;;
9241
9992
  esac
9242
9993
  ;;
9243
9994
 
9257
10008
  version_type=sunos
9258
10009
  need_lib_prefix=no
9259
10010
  need_version=no
9260
 
  case "$host_cpu" in
 
10011
  case $host_cpu in
9261
10012
  ia64*)
9262
10013
    shrext_cmds='.so'
9263
10014
    hardcode_into_libs=yes
9273
10024
    fi
9274
10025
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9275
10026
    ;;
9276
 
   hppa*64*)
9277
 
     shrext_cmds='.sl'
9278
 
     hardcode_into_libs=yes
9279
 
     dynamic_linker="$host_os dld.sl"
9280
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9281
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283
 
     soname_spec='${libname}${release}${shared_ext}$major'
9284
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9285
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9286
 
     ;;
9287
 
   *)
 
10027
  hppa*64*)
 
10028
    shrext_cmds='.sl'
 
10029
    hardcode_into_libs=yes
 
10030
    dynamic_linker="$host_os dld.sl"
 
10031
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10032
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10033
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10034
    soname_spec='${libname}${release}${shared_ext}$major'
 
10035
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10036
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10037
    ;;
 
10038
  *)
9288
10039
    shrext_cmds='.sl'
9289
10040
    dynamic_linker="$host_os dld.sl"
9290
10041
    shlibpath_var=SHLIB_PATH
9297
10048
  postinstall_cmds='chmod 555 $lib'
9298
10049
  ;;
9299
10050
 
 
10051
interix[3-9]*)
 
10052
  version_type=linux
 
10053
  need_lib_prefix=no
 
10054
  need_version=no
 
10055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10056
  soname_spec='${libname}${release}${shared_ext}$major'
 
10057
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10058
  shlibpath_var=LD_LIBRARY_PATH
 
10059
  shlibpath_overrides_runpath=no
 
10060
  hardcode_into_libs=yes
 
10061
  ;;
 
10062
 
9300
10063
irix5* | irix6* | nonstopux*)
9301
10064
  case $host_os in
9302
10065
    nonstopux*) version_type=nonstopux ;;
9340
10103
  ;;
9341
10104
 
9342
10105
# This must be Linux ELF.
9343
 
linux*)
 
10106
linux* | k*bsd*-gnu)
9344
10107
  version_type=linux
9345
10108
  need_lib_prefix=no
9346
10109
  need_version=no
9349
10112
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9350
10113
  shlibpath_var=LD_LIBRARY_PATH
9351
10114
  shlibpath_overrides_runpath=no
 
10115
  # Some binutils ld are patched to set DT_RUNPATH
 
10116
  save_LDFLAGS=$LDFLAGS
 
10117
  save_libdir=$libdir
 
10118
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10119
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10120
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10121
/* end confdefs.h.  */
 
10122
 
 
10123
int
 
10124
main ()
 
10125
{
 
10126
 
 
10127
  ;
 
10128
  return 0;
 
10129
}
 
10130
_ACEOF
 
10131
if ac_fn_c_try_link "$LINENO"; then :
 
10132
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10133
  shlibpath_overrides_runpath=yes
 
10134
fi
 
10135
fi
 
10136
rm -f core conftest.err conftest.$ac_objext \
 
10137
    conftest$ac_exeext conftest.$ac_ext
 
10138
  LDFLAGS=$save_LDFLAGS
 
10139
  libdir=$save_libdir
 
10140
 
9352
10141
  # This implies no fast_install, which is unacceptable.
9353
10142
  # Some rework will be needed to allow for fast_install
9354
10143
  # before this can be enabled.
9356
10145
 
9357
10146
  # Append ld.so.conf contents to the search path
9358
10147
  if test -f /etc/ld.so.conf; then
9359
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
10148
    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;/^$/d' | tr '\n' ' '`
9360
10149
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9361
10150
  fi
9362
10151
 
9381
10170
  dynamic_linker='NetBSD ld.elf_so'
9382
10171
  ;;
9383
10172
 
9384
 
knetbsd*-gnu)
9385
 
  version_type=linux
9386
 
  need_lib_prefix=no
9387
 
  need_version=no
9388
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389
 
  soname_spec='${libname}${release}${shared_ext}$major'
9390
 
  shlibpath_var=LD_LIBRARY_PATH
9391
 
  shlibpath_overrides_runpath=no
9392
 
  hardcode_into_libs=yes
9393
 
  dynamic_linker='GNU ld.so'
9394
 
  ;;
9395
 
 
9396
10173
netbsd*)
9397
10174
  version_type=sunos
9398
10175
  need_lib_prefix=no
9399
10176
  need_version=no
9400
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10177
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9401
10178
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402
10179
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403
10180
    dynamic_linker='NetBSD (a.out) ld.so'
9418
10195
  shlibpath_overrides_runpath=yes
9419
10196
  ;;
9420
10197
 
9421
 
nto-qnx*)
9422
 
  version_type=linux
 
10198
*nto* | *qnx*)
 
10199
  version_type=qnx
9423
10200
  need_lib_prefix=no
9424
10201
  need_version=no
9425
10202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426
10203
  soname_spec='${libname}${release}${shared_ext}$major'
9427
10204
  shlibpath_var=LD_LIBRARY_PATH
9428
 
  shlibpath_overrides_runpath=yes
 
10205
  shlibpath_overrides_runpath=no
 
10206
  hardcode_into_libs=yes
 
10207
  dynamic_linker='ldqnx.so'
9429
10208
  ;;
9430
10209
 
9431
10210
openbsd*)
9432
10211
  version_type=sunos
 
10212
  sys_lib_dlsearch_path_spec="/usr/lib"
9433
10213
  need_lib_prefix=no
9434
 
  need_version=yes
 
10214
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10215
  case $host_os in
 
10216
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10217
    *)                          need_version=no  ;;
 
10218
  esac
9435
10219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436
10220
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9437
10221
  shlibpath_var=LD_LIBRARY_PATH
9438
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10222
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9439
10223
    case $host_os in
9440
10224
      openbsd2.[89] | openbsd2.[89].*)
9441
10225
        shlibpath_overrides_runpath=no
9469
10253
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9470
10254
  ;;
9471
10255
 
9472
 
sco3.2v5*)
9473
 
  version_type=osf
9474
 
  soname_spec='${libname}${release}${shared_ext}$major'
9475
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476
 
  shlibpath_var=LD_LIBRARY_PATH
 
10256
rdos*)
 
10257
  dynamic_linker=no
9477
10258
  ;;
9478
10259
 
9479
10260
solaris*)
9501
10282
  need_version=yes
9502
10283
  ;;
9503
10284
 
9504
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10285
sysv4 | sysv4.3*)
9505
10286
  version_type=linux
9506
10287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507
10288
  soname_spec='${libname}${release}${shared_ext}$major'
9510
10291
    sni)
9511
10292
      shlibpath_overrides_runpath=no
9512
10293
      need_lib_prefix=no
9513
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9514
10294
      runpath_var=LD_RUN_PATH
9515
10295
      ;;
9516
10296
    siemens)
9534
10314
  fi
9535
10315
  ;;
9536
10316
 
 
10317
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10318
  version_type=freebsd-elf
 
10319
  need_lib_prefix=no
 
10320
  need_version=no
 
10321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10322
  soname_spec='${libname}${release}${shared_ext}$major'
 
10323
  shlibpath_var=LD_LIBRARY_PATH
 
10324
  shlibpath_overrides_runpath=yes
 
10325
  hardcode_into_libs=yes
 
10326
  if test "$with_gnu_ld" = yes; then
 
10327
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10328
  else
 
10329
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10330
    case $host_os in
 
10331
      sco3.2v5*)
 
10332
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10333
        ;;
 
10334
    esac
 
10335
  fi
 
10336
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10337
  ;;
 
10338
 
 
10339
tpf*)
 
10340
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10341
  version_type=linux
 
10342
  need_lib_prefix=no
 
10343
  need_version=no
 
10344
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10345
  shlibpath_var=LD_LIBRARY_PATH
 
10346
  shlibpath_overrides_runpath=no
 
10347
  hardcode_into_libs=yes
 
10348
  ;;
 
10349
 
9537
10350
uts4*)
9538
10351
  version_type=linux
9539
10352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545
10358
  dynamic_linker=no
9546
10359
  ;;
9547
10360
esac
9548
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9549
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
10361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10362
$as_echo "$dynamic_linker" >&6; }
9550
10363
test "$dynamic_linker" = no && can_build_shared=no
9551
10364
 
9552
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9553
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
10365
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10366
if test "$GCC" = yes; then
 
10367
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10368
fi
 
10369
 
 
10370
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10371
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10372
fi
 
10373
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10374
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10375
fi
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
 
 
10437
 
 
10438
 
 
10439
 
 
10440
 
 
10441
 
 
10442
 
 
10443
 
 
10444
 
 
10445
 
 
10446
 
 
10447
 
 
10448
 
 
10449
 
 
10450
 
 
10451
 
 
10452
 
 
10453
 
 
10454
 
 
10455
 
 
10456
 
 
10457
 
 
10458
 
 
10459
 
 
10460
 
 
10461
 
 
10462
 
 
10463
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10464
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9554
10465
hardcode_action=
9555
 
if test -n "$hardcode_libdir_flag_spec" || \
9556
 
   test -n "$runpath_var " || \
9557
 
   test "X$hardcode_automatic"="Xyes" ; then
 
10466
if test -n "$hardcode_libdir_flag_spec" ||
 
10467
   test -n "$runpath_var" ||
 
10468
   test "X$hardcode_automatic" = "Xyes" ; then
9558
10469
 
9559
 
  # We can hardcode non-existant directories.
 
10470
  # We can hardcode non-existent directories.
9560
10471
  if test "$hardcode_direct" != no &&
9561
10472
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9562
10473
     # have to relink, otherwise we might link with an installed library
9563
10474
     # when we should be linking with a yet-to-be-installed one
9564
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10475
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9565
10476
     test "$hardcode_minus_L" != no; then
9566
10477
    # Linking always hardcodes the temporary library directory.
9567
10478
    hardcode_action=relink
9574
10485
  # directories.
9575
10486
  hardcode_action=unsupported
9576
10487
fi
9577
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9578
 
echo "${ECHO_T}$hardcode_action" >&6; }
 
10488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10489
$as_echo "$hardcode_action" >&6; }
9579
10490
 
9580
 
if test "$hardcode_action" = relink; then
 
10491
if test "$hardcode_action" = relink ||
 
10492
   test "$inherit_rpath" = yes; then
9581
10493
  # Fast installation is not supported
9582
10494
  enable_fast_install=no
9583
10495
elif test "$shlibpath_overrides_runpath" = yes ||
9586
10498
  enable_fast_install=needless
9587
10499
fi
9588
10500
 
9589
 
striplib=
9590
 
old_striplib=
9591
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9592
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9593
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9594
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9595
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9596
 
  { echo "$as_me:$LINENO: result: yes" >&5
9597
 
echo "${ECHO_T}yes" >&6; }
9598
 
else
9599
 
# FIXME - insert some real tests, host_os isn't really good enough
9600
 
  case $host_os in
9601
 
   darwin*)
9602
 
       if test -n "$STRIP" ; then
9603
 
         striplib="$STRIP -x"
9604
 
         { echo "$as_me:$LINENO: result: yes" >&5
9605
 
echo "${ECHO_T}yes" >&6; }
9606
 
       else
9607
 
  { echo "$as_me:$LINENO: result: no" >&5
9608
 
echo "${ECHO_T}no" >&6; }
9609
 
fi
9610
 
       ;;
9611
 
   *)
9612
 
  { echo "$as_me:$LINENO: result: no" >&5
9613
 
echo "${ECHO_T}no" >&6; }
9614
 
    ;;
9615
 
  esac
9616
 
fi
9617
 
 
9618
 
if test "x$enable_dlopen" != xyes; then
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
  if test "x$enable_dlopen" != xyes; then
9619
10507
  enable_dlopen=unknown
9620
10508
  enable_dlopen_self=unknown
9621
10509
  enable_dlopen_self_static=unknown
9630
10518
    lt_cv_dlopen_self=yes
9631
10519
    ;;
9632
10520
 
9633
 
  mingw* | pw32*)
 
10521
  mingw* | pw32* | cegcc*)
9634
10522
    lt_cv_dlopen="LoadLibrary"
9635
10523
    lt_cv_dlopen_libs=
9636
 
   ;;
 
10524
    ;;
9637
10525
 
9638
10526
  cygwin*)
9639
10527
    lt_cv_dlopen="dlopen"
9640
10528
    lt_cv_dlopen_libs=
9641
 
   ;;
 
10529
    ;;
9642
10530
 
9643
10531
  darwin*)
9644
10532
  # if libdl is installed we need to link against it
9645
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9647
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10533
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10534
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10535
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10536
  $as_echo_n "(cached) " >&6
9649
10537
else
9650
10538
  ac_check_lib_save_LIBS=$LIBS
9651
10539
LIBS="-ldl  $LIBS"
9652
 
cat >conftest.$ac_ext <<_ACEOF
9653
 
/* confdefs.h.  */
9654
 
_ACEOF
9655
 
cat confdefs.h >>conftest.$ac_ext
9656
 
cat >>conftest.$ac_ext <<_ACEOF
 
10540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657
10541
/* end confdefs.h.  */
9658
10542
 
9659
10543
/* Override any GCC internal prototype to avoid an error.
9671
10555
  return 0;
9672
10556
}
9673
10557
_ACEOF
9674
 
rm -f conftest.$ac_objext conftest$ac_exeext
9675
 
if { (ac_try="$ac_link"
9676
 
case "(($ac_try" in
9677
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678
 
  *) ac_try_echo=$ac_try;;
9679
 
esac
9680
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681
 
  (eval "$ac_link") 2>conftest.er1
9682
 
  ac_status=$?
9683
 
  grep -v '^ *+' conftest.er1 >conftest.err
9684
 
  rm -f conftest.er1
9685
 
  cat conftest.err >&5
9686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687
 
  (exit $ac_status); } && {
9688
 
         test -z "$ac_c_werror_flag" ||
9689
 
         test ! -s conftest.err
9690
 
       } && test -s conftest$ac_exeext &&
9691
 
       $as_test_x conftest$ac_exeext; then
 
10558
if ac_fn_c_try_link "$LINENO"; then :
9692
10559
  ac_cv_lib_dl_dlopen=yes
9693
10560
else
9694
 
  echo "$as_me: failed program was:" >&5
9695
 
sed 's/^/| /' conftest.$ac_ext >&5
9696
 
 
9697
 
        ac_cv_lib_dl_dlopen=no
 
10561
  ac_cv_lib_dl_dlopen=no
9698
10562
fi
9699
 
 
9700
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701
 
      conftest$ac_exeext conftest.$ac_ext
 
10563
rm -f core conftest.err conftest.$ac_objext \
 
10564
    conftest$ac_exeext conftest.$ac_ext
9702
10565
LIBS=$ac_check_lib_save_LIBS
9703
10566
fi
9704
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
10567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10568
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10569
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9707
10570
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9708
10571
else
9709
10572
 
9713
10576
 
9714
10577
fi
9715
10578
 
9716
 
   ;;
 
10579
    ;;
9717
10580
 
9718
10581
  *)
9719
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9720
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9721
 
if test "${ac_cv_func_shl_load+set}" = set; then
9722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9723
 
else
9724
 
  cat >conftest.$ac_ext <<_ACEOF
9725
 
/* confdefs.h.  */
9726
 
_ACEOF
9727
 
cat confdefs.h >>conftest.$ac_ext
9728
 
cat >>conftest.$ac_ext <<_ACEOF
9729
 
/* end confdefs.h.  */
9730
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9732
 
#define shl_load innocuous_shl_load
9733
 
 
9734
 
/* System header to define __stub macros and hopefully few prototypes,
9735
 
    which can conflict with char shl_load (); below.
9736
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737
 
    <limits.h> exists even on freestanding compilers.  */
9738
 
 
9739
 
#ifdef __STDC__
9740
 
# include <limits.h>
9741
 
#else
9742
 
# include <assert.h>
9743
 
#endif
9744
 
 
9745
 
#undef shl_load
9746
 
 
9747
 
/* Override any GCC internal prototype to avoid an error.
9748
 
   Use char because int might match the return type of a GCC
9749
 
   builtin and then its argument prototype would still apply.  */
9750
 
#ifdef __cplusplus
9751
 
extern "C"
9752
 
#endif
9753
 
char shl_load ();
9754
 
/* The GNU C library defines this for functions which it implements
9755
 
    to always fail with ENOSYS.  Some functions are actually named
9756
 
    something starting with __ and the normal name is an alias.  */
9757
 
#if defined __stub_shl_load || defined __stub___shl_load
9758
 
choke me
9759
 
#endif
9760
 
 
9761
 
int
9762
 
main ()
9763
 
{
9764
 
return shl_load ();
9765
 
  ;
9766
 
  return 0;
9767
 
}
9768
 
_ACEOF
9769
 
rm -f conftest.$ac_objext conftest$ac_exeext
9770
 
if { (ac_try="$ac_link"
9771
 
case "(($ac_try" in
9772
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773
 
  *) ac_try_echo=$ac_try;;
9774
 
esac
9775
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776
 
  (eval "$ac_link") 2>conftest.er1
9777
 
  ac_status=$?
9778
 
  grep -v '^ *+' conftest.er1 >conftest.err
9779
 
  rm -f conftest.er1
9780
 
  cat conftest.err >&5
9781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782
 
  (exit $ac_status); } && {
9783
 
         test -z "$ac_c_werror_flag" ||
9784
 
         test ! -s conftest.err
9785
 
       } && test -s conftest$ac_exeext &&
9786
 
       $as_test_x conftest$ac_exeext; then
9787
 
  ac_cv_func_shl_load=yes
9788
 
else
9789
 
  echo "$as_me: failed program was:" >&5
9790
 
sed 's/^/| /' conftest.$ac_ext >&5
9791
 
 
9792
 
        ac_cv_func_shl_load=no
9793
 
fi
9794
 
 
9795
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796
 
      conftest$ac_exeext conftest.$ac_ext
9797
 
fi
9798
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9799
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9800
 
if test $ac_cv_func_shl_load = yes; then
 
10582
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10583
if test "x$ac_cv_func_shl_load" = x""yes; then :
9801
10584
  lt_cv_dlopen="shl_load"
9802
10585
else
9803
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9804
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9805
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9806
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10586
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10587
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10588
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10589
  $as_echo_n "(cached) " >&6
9807
10590
else
9808
10591
  ac_check_lib_save_LIBS=$LIBS
9809
10592
LIBS="-ldld  $LIBS"
9810
 
cat >conftest.$ac_ext <<_ACEOF
9811
 
/* confdefs.h.  */
9812
 
_ACEOF
9813
 
cat confdefs.h >>conftest.$ac_ext
9814
 
cat >>conftest.$ac_ext <<_ACEOF
 
10593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815
10594
/* end confdefs.h.  */
9816
10595
 
9817
10596
/* Override any GCC internal prototype to avoid an error.
9829
10608
  return 0;
9830
10609
}
9831
10610
_ACEOF
9832
 
rm -f conftest.$ac_objext conftest$ac_exeext
9833
 
if { (ac_try="$ac_link"
9834
 
case "(($ac_try" in
9835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836
 
  *) ac_try_echo=$ac_try;;
9837
 
esac
9838
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839
 
  (eval "$ac_link") 2>conftest.er1
9840
 
  ac_status=$?
9841
 
  grep -v '^ *+' conftest.er1 >conftest.err
9842
 
  rm -f conftest.er1
9843
 
  cat conftest.err >&5
9844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845
 
  (exit $ac_status); } && {
9846
 
         test -z "$ac_c_werror_flag" ||
9847
 
         test ! -s conftest.err
9848
 
       } && test -s conftest$ac_exeext &&
9849
 
       $as_test_x conftest$ac_exeext; then
 
10611
if ac_fn_c_try_link "$LINENO"; then :
9850
10612
  ac_cv_lib_dld_shl_load=yes
9851
10613
else
9852
 
  echo "$as_me: failed program was:" >&5
9853
 
sed 's/^/| /' conftest.$ac_ext >&5
9854
 
 
9855
 
        ac_cv_lib_dld_shl_load=no
 
10614
  ac_cv_lib_dld_shl_load=no
9856
10615
fi
9857
 
 
9858
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859
 
      conftest$ac_exeext conftest.$ac_ext
 
10616
rm -f core conftest.err conftest.$ac_objext \
 
10617
    conftest$ac_exeext conftest.$ac_ext
9860
10618
LIBS=$ac_check_lib_save_LIBS
9861
10619
fi
9862
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864
 
if test $ac_cv_lib_dld_shl_load = yes; then
9865
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9866
 
else
9867
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9868
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9869
 
if test "${ac_cv_func_dlopen+set}" = set; then
9870
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9871
 
else
9872
 
  cat >conftest.$ac_ext <<_ACEOF
9873
 
/* confdefs.h.  */
9874
 
_ACEOF
9875
 
cat confdefs.h >>conftest.$ac_ext
9876
 
cat >>conftest.$ac_ext <<_ACEOF
9877
 
/* end confdefs.h.  */
9878
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9879
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9880
 
#define dlopen innocuous_dlopen
9881
 
 
9882
 
/* System header to define __stub macros and hopefully few prototypes,
9883
 
    which can conflict with char dlopen (); below.
9884
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9885
 
    <limits.h> exists even on freestanding compilers.  */
9886
 
 
9887
 
#ifdef __STDC__
9888
 
# include <limits.h>
9889
 
#else
9890
 
# include <assert.h>
9891
 
#endif
9892
 
 
9893
 
#undef dlopen
9894
 
 
9895
 
/* Override any GCC internal prototype to avoid an error.
9896
 
   Use char because int might match the return type of a GCC
9897
 
   builtin and then its argument prototype would still apply.  */
9898
 
#ifdef __cplusplus
9899
 
extern "C"
9900
 
#endif
9901
 
char dlopen ();
9902
 
/* The GNU C library defines this for functions which it implements
9903
 
    to always fail with ENOSYS.  Some functions are actually named
9904
 
    something starting with __ and the normal name is an alias.  */
9905
 
#if defined __stub_dlopen || defined __stub___dlopen
9906
 
choke me
9907
 
#endif
9908
 
 
9909
 
int
9910
 
main ()
9911
 
{
9912
 
return dlopen ();
9913
 
  ;
9914
 
  return 0;
9915
 
}
9916
 
_ACEOF
9917
 
rm -f conftest.$ac_objext conftest$ac_exeext
9918
 
if { (ac_try="$ac_link"
9919
 
case "(($ac_try" in
9920
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921
 
  *) ac_try_echo=$ac_try;;
9922
 
esac
9923
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924
 
  (eval "$ac_link") 2>conftest.er1
9925
 
  ac_status=$?
9926
 
  grep -v '^ *+' conftest.er1 >conftest.err
9927
 
  rm -f conftest.er1
9928
 
  cat conftest.err >&5
9929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930
 
  (exit $ac_status); } && {
9931
 
         test -z "$ac_c_werror_flag" ||
9932
 
         test ! -s conftest.err
9933
 
       } && test -s conftest$ac_exeext &&
9934
 
       $as_test_x conftest$ac_exeext; then
9935
 
  ac_cv_func_dlopen=yes
9936
 
else
9937
 
  echo "$as_me: failed program was:" >&5
9938
 
sed 's/^/| /' conftest.$ac_ext >&5
9939
 
 
9940
 
        ac_cv_func_dlopen=no
9941
 
fi
9942
 
 
9943
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944
 
      conftest$ac_exeext conftest.$ac_ext
9945
 
fi
9946
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9947
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9948
 
if test $ac_cv_func_dlopen = yes; then
 
10620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10621
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10622
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10623
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10624
else
 
10625
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10626
if test "x$ac_cv_func_dlopen" = x""yes; then :
9949
10627
  lt_cv_dlopen="dlopen"
9950
10628
else
9951
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10629
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10630
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10631
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10632
  $as_echo_n "(cached) " >&6
9955
10633
else
9956
10634
  ac_check_lib_save_LIBS=$LIBS
9957
10635
LIBS="-ldl  $LIBS"
9958
 
cat >conftest.$ac_ext <<_ACEOF
9959
 
/* confdefs.h.  */
9960
 
_ACEOF
9961
 
cat confdefs.h >>conftest.$ac_ext
9962
 
cat >>conftest.$ac_ext <<_ACEOF
 
10636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963
10637
/* end confdefs.h.  */
9964
10638
 
9965
10639
/* Override any GCC internal prototype to avoid an error.
9977
10651
  return 0;
9978
10652
}
9979
10653
_ACEOF
9980
 
rm -f conftest.$ac_objext conftest$ac_exeext
9981
 
if { (ac_try="$ac_link"
9982
 
case "(($ac_try" in
9983
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984
 
  *) ac_try_echo=$ac_try;;
9985
 
esac
9986
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987
 
  (eval "$ac_link") 2>conftest.er1
9988
 
  ac_status=$?
9989
 
  grep -v '^ *+' conftest.er1 >conftest.err
9990
 
  rm -f conftest.er1
9991
 
  cat conftest.err >&5
9992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993
 
  (exit $ac_status); } && {
9994
 
         test -z "$ac_c_werror_flag" ||
9995
 
         test ! -s conftest.err
9996
 
       } && test -s conftest$ac_exeext &&
9997
 
       $as_test_x conftest$ac_exeext; then
 
10654
if ac_fn_c_try_link "$LINENO"; then :
9998
10655
  ac_cv_lib_dl_dlopen=yes
9999
10656
else
10000
 
  echo "$as_me: failed program was:" >&5
10001
 
sed 's/^/| /' conftest.$ac_ext >&5
10002
 
 
10003
 
        ac_cv_lib_dl_dlopen=no
 
10657
  ac_cv_lib_dl_dlopen=no
10004
10658
fi
10005
 
 
10006
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007
 
      conftest$ac_exeext conftest.$ac_ext
 
10659
rm -f core conftest.err conftest.$ac_objext \
 
10660
    conftest$ac_exeext conftest.$ac_ext
10008
10661
LIBS=$ac_check_lib_save_LIBS
10009
10662
fi
10010
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
10663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10664
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10665
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10013
10666
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014
10667
else
10015
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10668
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10669
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10670
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10671
  $as_echo_n "(cached) " >&6
10019
10672
else
10020
10673
  ac_check_lib_save_LIBS=$LIBS
10021
10674
LIBS="-lsvld  $LIBS"
10022
 
cat >conftest.$ac_ext <<_ACEOF
10023
 
/* confdefs.h.  */
10024
 
_ACEOF
10025
 
cat confdefs.h >>conftest.$ac_ext
10026
 
cat >>conftest.$ac_ext <<_ACEOF
 
10675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027
10676
/* end confdefs.h.  */
10028
10677
 
10029
10678
/* Override any GCC internal prototype to avoid an error.
10041
10690
  return 0;
10042
10691
}
10043
10692
_ACEOF
10044
 
rm -f conftest.$ac_objext conftest$ac_exeext
10045
 
if { (ac_try="$ac_link"
10046
 
case "(($ac_try" in
10047
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048
 
  *) ac_try_echo=$ac_try;;
10049
 
esac
10050
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051
 
  (eval "$ac_link") 2>conftest.er1
10052
 
  ac_status=$?
10053
 
  grep -v '^ *+' conftest.er1 >conftest.err
10054
 
  rm -f conftest.er1
10055
 
  cat conftest.err >&5
10056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057
 
  (exit $ac_status); } && {
10058
 
         test -z "$ac_c_werror_flag" ||
10059
 
         test ! -s conftest.err
10060
 
       } && test -s conftest$ac_exeext &&
10061
 
       $as_test_x conftest$ac_exeext; then
 
10693
if ac_fn_c_try_link "$LINENO"; then :
10062
10694
  ac_cv_lib_svld_dlopen=yes
10063
10695
else
10064
 
  echo "$as_me: failed program was:" >&5
10065
 
sed 's/^/| /' conftest.$ac_ext >&5
10066
 
 
10067
 
        ac_cv_lib_svld_dlopen=no
 
10696
  ac_cv_lib_svld_dlopen=no
10068
10697
fi
10069
 
 
10070
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071
 
      conftest$ac_exeext conftest.$ac_ext
 
10698
rm -f core conftest.err conftest.$ac_objext \
 
10699
    conftest$ac_exeext conftest.$ac_ext
10072
10700
LIBS=$ac_check_lib_save_LIBS
10073
10701
fi
10074
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10075
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10076
 
if test $ac_cv_lib_svld_dlopen = yes; then
 
10702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10703
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10704
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10077
10705
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10078
10706
else
10079
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10080
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10081
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10708
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10709
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
10710
  $as_echo_n "(cached) " >&6
10083
10711
else
10084
10712
  ac_check_lib_save_LIBS=$LIBS
10085
10713
LIBS="-ldld  $LIBS"
10086
 
cat >conftest.$ac_ext <<_ACEOF
10087
 
/* confdefs.h.  */
10088
 
_ACEOF
10089
 
cat confdefs.h >>conftest.$ac_ext
10090
 
cat >>conftest.$ac_ext <<_ACEOF
 
10714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091
10715
/* end confdefs.h.  */
10092
10716
 
10093
10717
/* Override any GCC internal prototype to avoid an error.
10105
10729
  return 0;
10106
10730
}
10107
10731
_ACEOF
10108
 
rm -f conftest.$ac_objext conftest$ac_exeext
10109
 
if { (ac_try="$ac_link"
10110
 
case "(($ac_try" in
10111
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112
 
  *) ac_try_echo=$ac_try;;
10113
 
esac
10114
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115
 
  (eval "$ac_link") 2>conftest.er1
10116
 
  ac_status=$?
10117
 
  grep -v '^ *+' conftest.er1 >conftest.err
10118
 
  rm -f conftest.er1
10119
 
  cat conftest.err >&5
10120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121
 
  (exit $ac_status); } && {
10122
 
         test -z "$ac_c_werror_flag" ||
10123
 
         test ! -s conftest.err
10124
 
       } && test -s conftest$ac_exeext &&
10125
 
       $as_test_x conftest$ac_exeext; then
 
10732
if ac_fn_c_try_link "$LINENO"; then :
10126
10733
  ac_cv_lib_dld_dld_link=yes
10127
10734
else
10128
 
  echo "$as_me: failed program was:" >&5
10129
 
sed 's/^/| /' conftest.$ac_ext >&5
10130
 
 
10131
 
        ac_cv_lib_dld_dld_link=no
 
10735
  ac_cv_lib_dld_dld_link=no
10132
10736
fi
10133
 
 
10134
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135
 
      conftest$ac_exeext conftest.$ac_ext
 
10737
rm -f core conftest.err conftest.$ac_objext \
 
10738
    conftest$ac_exeext conftest.$ac_ext
10136
10739
LIBS=$ac_check_lib_save_LIBS
10137
10740
fi
10138
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140
 
if test $ac_cv_lib_dld_dld_link = yes; then
10141
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10742
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10743
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
10744
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10142
10745
fi
10143
10746
 
10144
10747
 
10171
10774
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10172
10775
 
10173
10776
    save_LDFLAGS="$LDFLAGS"
10174
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10777
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10175
10778
 
10176
10779
    save_LIBS="$LIBS"
10177
10780
    LIBS="$lt_cv_dlopen_libs $LIBS"
10178
10781
 
10179
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10180
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10181
 
if test "${lt_cv_dlopen_self+set}" = set; then
10182
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10782
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10783
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10784
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10785
  $as_echo_n "(cached) " >&6
10183
10786
else
10184
10787
          if test "$cross_compiling" = yes; then :
10185
10788
  lt_cv_dlopen_self=cross
10186
10789
else
10187
10790
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10188
10791
  lt_status=$lt_dlunknown
10189
 
  cat > conftest.$ac_ext <<EOF
10190
 
#line 10190 "configure"
 
10792
  cat > conftest.$ac_ext <<_LT_EOF
 
10793
#line 10793 "configure"
10191
10794
#include "confdefs.h"
10192
10795
 
10193
10796
#if HAVE_DLFCN_H
10228
10831
#  endif
10229
10832
#endif
10230
10833
 
10231
 
#ifdef __cplusplus
10232
 
extern "C" void exit (int);
10233
 
#endif
10234
 
 
10235
10834
void fnord() { int i=42;}
10236
10835
int main ()
10237
10836
{
10244
10843
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10245
10844
      /* dlclose (self); */
10246
10845
    }
 
10846
  else
 
10847
    puts (dlerror ());
10247
10848
 
10248
 
    exit (status);
 
10849
  return status;
10249
10850
}
10250
 
EOF
10251
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10851
_LT_EOF
 
10852
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10252
10853
  (eval $ac_link) 2>&5
10253
10854
  ac_status=$?
10254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256
 
    (./conftest; exit; ) 2>/dev/null
 
10855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10856
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10857
    (./conftest; exit; ) >&5 2>/dev/null
10257
10858
    lt_status=$?
10258
10859
    case x$lt_status in
10259
10860
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260
10861
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10862
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10262
10863
    esac
10263
10864
  else :
10264
10865
    # compilation failed
10269
10870
 
10270
10871
 
10271
10872
fi
10272
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10874
$as_echo "$lt_cv_dlopen_self" >&6; }
10274
10875
 
10275
10876
    if test "x$lt_cv_dlopen_self" = xyes; then
10276
 
      LDFLAGS="$LDFLAGS $link_static_flag"
10277
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10279
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10877
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10878
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10879
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10880
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
10881
  $as_echo_n "(cached) " >&6
10281
10882
else
10282
10883
          if test "$cross_compiling" = yes; then :
10283
10884
  lt_cv_dlopen_self_static=cross
10284
10885
else
10285
10886
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286
10887
  lt_status=$lt_dlunknown
10287
 
  cat > conftest.$ac_ext <<EOF
10288
 
#line 10288 "configure"
 
10888
  cat > conftest.$ac_ext <<_LT_EOF
 
10889
#line 10889 "configure"
10289
10890
#include "confdefs.h"
10290
10891
 
10291
10892
#if HAVE_DLFCN_H
10326
10927
#  endif
10327
10928
#endif
10328
10929
 
10329
 
#ifdef __cplusplus
10330
 
extern "C" void exit (int);
10331
 
#endif
10332
 
 
10333
10930
void fnord() { int i=42;}
10334
10931
int main ()
10335
10932
{
10342
10939
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343
10940
      /* dlclose (self); */
10344
10941
    }
 
10942
  else
 
10943
    puts (dlerror ());
10345
10944
 
10346
 
    exit (status);
 
10945
  return status;
10347
10946
}
10348
 
EOF
10349
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10947
_LT_EOF
 
10948
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10350
10949
  (eval $ac_link) 2>&5
10351
10950
  ac_status=$?
10352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10354
 
    (./conftest; exit; ) 2>/dev/null
 
10951
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10952
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10953
    (./conftest; exit; ) >&5 2>/dev/null
10355
10954
    lt_status=$?
10356
10955
    case x$lt_status in
10357
10956
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10358
10957
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10359
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10958
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10360
10959
    esac
10361
10960
  else :
10362
10961
    # compilation failed
10367
10966
 
10368
10967
 
10369
10968
fi
10370
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10371
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
10970
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10372
10971
    fi
10373
10972
 
10374
10973
    CPPFLAGS="$save_CPPFLAGS"
10389
10988
fi
10390
10989
 
10391
10990
 
10392
 
# Report which librarie types wil actually be built
10393
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10395
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396
 
echo "${ECHO_T}$can_build_shared" >&6; }
10397
 
 
10398
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10400
 
test "$can_build_shared" = "no" && enable_shared=no
10401
 
 
10402
 
# On AIX, shared libraries and static libraries use the same namespace, and
10403
 
# are all built from PIC.
10404
 
case "$host_os" in
10405
 
aix3*)
10406
 
  test "$enable_shared" = yes && enable_static=no
10407
 
  if test -n "$RANLIB"; then
10408
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409
 
    postinstall_cmds='$RANLIB $lib'
10410
 
  fi
10411
 
  ;;
10412
 
 
10413
 
aix4* | aix5*)
10414
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10991
 
 
10992
 
 
10993
 
 
10994
 
 
10995
 
 
10996
 
 
10997
 
 
10998
 
 
10999
 
 
11000
 
 
11001
 
 
11002
 
 
11003
 
 
11004
 
 
11005
 
 
11006
striplib=
 
11007
old_striplib=
 
11008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11009
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11010
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11011
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11012
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11014
$as_echo "yes" >&6; }
 
11015
else
 
11016
# FIXME - insert some real tests, host_os isn't really good enough
 
11017
  case $host_os in
 
11018
  darwin*)
 
11019
    if test -n "$STRIP" ; then
 
11020
      striplib="$STRIP -x"
 
11021
      old_striplib="$STRIP -S"
 
11022
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11023
$as_echo "yes" >&6; }
 
11024
    else
 
11025
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11026
$as_echo "no" >&6; }
 
11027
    fi
 
11028
    ;;
 
11029
  *)
 
11030
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11031
$as_echo "no" >&6; }
 
11032
    ;;
 
11033
  esac
 
11034
fi
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
  # Report which library types will actually be built
 
11048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11049
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11051
$as_echo "$can_build_shared" >&6; }
 
11052
 
 
11053
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11054
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11055
  test "$can_build_shared" = "no" && enable_shared=no
 
11056
 
 
11057
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11058
  # are all built from PIC.
 
11059
  case $host_os in
 
11060
  aix3*)
10415
11061
    test "$enable_shared" = yes && enable_static=no
10416
 
  fi
10417
 
  ;;
10418
 
  darwin* | rhapsody*)
10419
 
  if test "$GCC" = yes; then
10420
 
    archive_cmds_need_lc=no
10421
 
    case "$host_os" in
10422
 
    rhapsody* | darwin1.[012])
10423
 
      allow_undefined_flag='-undefined suppress'
10424
 
      ;;
10425
 
    *) # Darwin 1.3 on
10426
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
10428
 
      else
10429
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10430
 
          10.[012])
10431
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
10432
 
            ;;
10433
 
          10.*)
10434
 
            allow_undefined_flag='-undefined dynamic_lookup'
10435
 
            ;;
10436
 
        esac
10437
 
      fi
10438
 
      ;;
10439
 
    esac
10440
 
    output_verbose_link_cmd='echo'
10441
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10442
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10443
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10444
 
    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}'
10445
 
    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}'
10446
 
    hardcode_direct=no
10447
 
    hardcode_automatic=yes
10448
 
    hardcode_shlibpath_var=unsupported
10449
 
    whole_archive_flag_spec='-all_load $convenience'
10450
 
    link_all_deplibs=yes
10451
 
  else
10452
 
    ld_shlibs=no
10453
 
  fi
10454
 
    ;;
10455
 
esac
10456
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10457
 
echo "${ECHO_T}$enable_shared" >&6; }
10458
 
 
10459
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10460
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10461
 
# Make sure either enable_shared or enable_static is yes.
10462
 
test "$enable_shared" = yes || enable_static=yes
10463
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10464
 
echo "${ECHO_T}$enable_static" >&6; }
10465
 
 
10466
 
# The else clause should only fire when bootstrapping the
10467
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10468
 
# with your package, and you will get complaints that there are
10469
 
# no rules to generate ltmain.sh.
10470
 
if test -f "$ltmain"; then
10471
 
  # See if we are running on zsh, and set the options which allow our commands through
10472
 
  # without removal of \ escapes.
10473
 
  if test -n "${ZSH_VERSION+set}" ; then
10474
 
    setopt NO_GLOB_SUBST
10475
 
  fi
10476
 
  # Now quote all the things that may contain metacharacters while being
10477
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10478
 
  # variables and quote the copies for generation of the libtool script.
10479
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10480
 
    SED SHELL STRIP \
10481
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10482
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10483
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10484
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10485
 
    lt_cv_sys_global_symbol_to_c_name_address \
10486
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10487
 
    old_postinstall_cmds old_postuninstall_cmds \
10488
 
    compiler \
10489
 
    CC \
10490
 
    LD \
10491
 
    lt_prog_compiler_wl \
10492
 
    lt_prog_compiler_pic \
10493
 
    lt_prog_compiler_static \
10494
 
    lt_prog_compiler_no_builtin_flag \
10495
 
    export_dynamic_flag_spec \
10496
 
    thread_safe_flag_spec \
10497
 
    whole_archive_flag_spec \
10498
 
    enable_shared_with_static_runtimes \
10499
 
    old_archive_cmds \
10500
 
    old_archive_from_new_cmds \
10501
 
    predep_objects \
10502
 
    postdep_objects \
10503
 
    predeps \
10504
 
    postdeps \
10505
 
    compiler_lib_search_path \
10506
 
    archive_cmds \
10507
 
    archive_expsym_cmds \
10508
 
    postinstall_cmds \
10509
 
    postuninstall_cmds \
10510
 
    old_archive_from_expsyms_cmds \
10511
 
    allow_undefined_flag \
10512
 
    no_undefined_flag \
10513
 
    export_symbols_cmds \
10514
 
    hardcode_libdir_flag_spec \
10515
 
    hardcode_libdir_flag_spec_ld \
10516
 
    hardcode_libdir_separator \
10517
 
    hardcode_automatic \
10518
 
    module_cmds \
10519
 
    module_expsym_cmds \
10520
 
    lt_cv_prog_compiler_c_o \
10521
 
    exclude_expsyms \
10522
 
    include_expsyms; do
10523
 
 
10524
 
    case $var in
10525
 
    old_archive_cmds | \
10526
 
    old_archive_from_new_cmds | \
10527
 
    archive_cmds | \
10528
 
    archive_expsym_cmds | \
10529
 
    module_cmds | \
10530
 
    module_expsym_cmds | \
10531
 
    old_archive_from_expsyms_cmds | \
10532
 
    export_symbols_cmds | \
10533
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10534
 
    postinstall_cmds | postuninstall_cmds | \
10535
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10536
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10537
 
      # Double-quote double-evaled strings.
10538
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10539
 
      ;;
10540
 
    *)
10541
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10542
 
      ;;
10543
 
    esac
10544
 
  done
10545
 
 
10546
 
  case $lt_echo in
10547
 
  *'\$0 --fallback-echo"')
10548
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10549
 
    ;;
10550
 
  esac
10551
 
 
10552
 
cfgfile="${ofile}T"
10553
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10554
 
  $rm -f "$cfgfile"
10555
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10556
 
echo "$as_me: creating $ofile" >&6;}
10557
 
 
10558
 
  cat <<__EOF__ >> "$cfgfile"
10559
 
#! $SHELL
10560
 
 
10561
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10562
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10563
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10564
 
#
10565
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10566
 
# Free Software Foundation, Inc.
10567
 
#
10568
 
# This file is part of GNU Libtool:
10569
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10570
 
#
10571
 
# This program is free software; you can redistribute it and/or modify
10572
 
# it under the terms of the GNU General Public License as published by
10573
 
# the Free Software Foundation; either version 2 of the License, or
10574
 
# (at your option) any later version.
10575
 
#
10576
 
# This program is distributed in the hope that it will be useful, but
10577
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10578
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10579
 
# General Public License for more details.
10580
 
#
10581
 
# You should have received a copy of the GNU General Public License
10582
 
# along with this program; if not, write to the Free Software
10583
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10584
 
#
10585
 
# As a special exception to the GNU General Public License, if you
10586
 
# distribute this file as part of a program that contains a
10587
 
# configuration script generated by Autoconf, you may include it under
10588
 
# the same distribution terms that you use for the rest of that program.
10589
 
 
10590
 
# A sed program that does not truncate output.
10591
 
SED=$lt_SED
10592
 
 
10593
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10594
 
Xsed="$SED -e s/^X//"
10595
 
 
10596
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10597
 
# if CDPATH is set.
10598
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10599
 
 
10600
 
# The names of the tagged configurations supported by this script.
10601
 
available_tags=
10602
 
 
10603
 
# ### BEGIN LIBTOOL CONFIG
10604
 
 
10605
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10606
 
 
10607
 
# Shell to use when invoking shell scripts.
10608
 
SHELL=$lt_SHELL
10609
 
 
10610
 
# Whether or not to build shared libraries.
10611
 
build_libtool_libs=$enable_shared
10612
 
 
10613
 
# Whether or not to build static libraries.
10614
 
build_old_libs=$enable_static
10615
 
 
10616
 
# Whether or not to add -lc for building shared libraries.
10617
 
build_libtool_need_lc=$archive_cmds_need_lc
10618
 
 
10619
 
# Whether or not to disallow shared libs when runtime libs are static
10620
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10621
 
 
10622
 
# Whether or not to optimize for fast installation.
10623
 
fast_install=$enable_fast_install
10624
 
 
10625
 
# The host system.
10626
 
host_alias=$host_alias
10627
 
host=$host
10628
 
 
10629
 
# An echo program that does not interpret backslashes.
10630
 
echo=$lt_echo
10631
 
 
10632
 
# The archiver.
10633
 
AR=$lt_AR
10634
 
AR_FLAGS=$lt_AR_FLAGS
10635
 
 
10636
 
# A C compiler.
10637
 
LTCC=$lt_LTCC
10638
 
 
10639
 
# A language-specific compiler.
10640
 
CC=$lt_compiler
10641
 
 
10642
 
# Is the compiler the GNU C compiler?
10643
 
with_gcc=$GCC
10644
 
 
10645
 
# An ERE matcher.
10646
 
EGREP=$lt_EGREP
10647
 
 
10648
 
# The linker used to build libraries.
10649
 
LD=$lt_LD
10650
 
 
10651
 
# Whether we need hard or soft links.
10652
 
LN_S=$lt_LN_S
10653
 
 
10654
 
# A BSD-compatible nm program.
10655
 
NM=$lt_NM
10656
 
 
10657
 
# A symbol stripping program
10658
 
STRIP=$lt_STRIP
10659
 
 
10660
 
# Used to examine libraries when file_magic_cmd begins "file"
10661
 
MAGIC_CMD=$MAGIC_CMD
10662
 
 
10663
 
# Used on cygwin: DLL creation program.
10664
 
DLLTOOL="$DLLTOOL"
10665
 
 
10666
 
# Used on cygwin: object dumper.
10667
 
OBJDUMP="$OBJDUMP"
10668
 
 
10669
 
# Used on cygwin: assembler.
10670
 
AS="$AS"
10671
 
 
10672
 
# The name of the directory that contains temporary libtool files.
10673
 
objdir=$objdir
10674
 
 
10675
 
# How to create reloadable object files.
10676
 
reload_flag=$lt_reload_flag
10677
 
reload_cmds=$lt_reload_cmds
10678
 
 
10679
 
# How to pass a linker flag through the compiler.
10680
 
wl=$lt_lt_prog_compiler_wl
10681
 
 
10682
 
# Object file suffix (normally "o").
10683
 
objext="$ac_objext"
10684
 
 
10685
 
# Old archive suffix (normally "a").
10686
 
libext="$libext"
10687
 
 
10688
 
# Shared library suffix (normally ".so").
10689
 
shrext_cmds='$shrext_cmds'
10690
 
 
10691
 
# Executable file suffix (normally "").
10692
 
exeext="$exeext"
10693
 
 
10694
 
# Additional compiler flags for building library objects.
10695
 
pic_flag=$lt_lt_prog_compiler_pic
10696
 
pic_mode=$pic_mode
10697
 
 
10698
 
# What is the maximum length of a command?
10699
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10700
 
 
10701
 
# Does compiler simultaneously support -c and -o options?
10702
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10703
 
 
10704
 
# Must we lock files when doing compilation ?
10705
 
need_locks=$lt_need_locks
10706
 
 
10707
 
# Do we need the lib prefix for modules?
10708
 
need_lib_prefix=$need_lib_prefix
10709
 
 
10710
 
# Do we need a version for libraries?
10711
 
need_version=$need_version
10712
 
 
10713
 
# Whether dlopen is supported.
10714
 
dlopen_support=$enable_dlopen
10715
 
 
10716
 
# Whether dlopen of programs is supported.
10717
 
dlopen_self=$enable_dlopen_self
10718
 
 
10719
 
# Whether dlopen of statically linked programs is supported.
10720
 
dlopen_self_static=$enable_dlopen_self_static
10721
 
 
10722
 
# Compiler flag to prevent dynamic linking.
10723
 
link_static_flag=$lt_lt_prog_compiler_static
10724
 
 
10725
 
# Compiler flag to turn off builtin functions.
10726
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10727
 
 
10728
 
# Compiler flag to allow reflexive dlopens.
10729
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10730
 
 
10731
 
# Compiler flag to generate shared objects directly from archives.
10732
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10733
 
 
10734
 
# Compiler flag to generate thread-safe objects.
10735
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10736
 
 
10737
 
# Library versioning type.
10738
 
version_type=$version_type
10739
 
 
10740
 
# Format of library name prefix.
10741
 
libname_spec=$lt_libname_spec
10742
 
 
10743
 
# List of archive names.  First name is the real one, the rest are links.
10744
 
# The last name is the one that the linker finds with -lNAME.
10745
 
library_names_spec=$lt_library_names_spec
10746
 
 
10747
 
# The coded name of the library, if different from the real name.
10748
 
soname_spec=$lt_soname_spec
10749
 
 
10750
 
# Commands used to build and install an old-style archive.
10751
 
RANLIB=$lt_RANLIB
10752
 
old_archive_cmds=$lt_old_archive_cmds
10753
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10754
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10755
 
 
10756
 
# Create an old-style archive from a shared archive.
10757
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10758
 
 
10759
 
# Create a temporary old-style archive to link instead of a shared archive.
10760
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10761
 
 
10762
 
# Commands used to build and install a shared archive.
10763
 
archive_cmds=$lt_archive_cmds
10764
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10765
 
postinstall_cmds=$lt_postinstall_cmds
10766
 
postuninstall_cmds=$lt_postuninstall_cmds
10767
 
 
10768
 
# Commands used to build a loadable module (assumed same as above if empty)
10769
 
module_cmds=$lt_module_cmds
10770
 
module_expsym_cmds=$lt_module_expsym_cmds
10771
 
 
10772
 
# Commands to strip libraries.
10773
 
old_striplib=$lt_old_striplib
10774
 
striplib=$lt_striplib
10775
 
 
10776
 
# Dependencies to place before the objects being linked to create a
10777
 
# shared library.
10778
 
predep_objects=$lt_predep_objects
10779
 
 
10780
 
# Dependencies to place after the objects being linked to create a
10781
 
# shared library.
10782
 
postdep_objects=$lt_postdep_objects
10783
 
 
10784
 
# Dependencies to place before the objects being linked to create a
10785
 
# shared library.
10786
 
predeps=$lt_predeps
10787
 
 
10788
 
# Dependencies to place after the objects being linked to create a
10789
 
# shared library.
10790
 
postdeps=$lt_postdeps
10791
 
 
10792
 
# The library search path used internally by the compiler when linking
10793
 
# a shared library.
10794
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10795
 
 
10796
 
# Method to check whether dependent libraries are shared objects.
10797
 
deplibs_check_method=$lt_deplibs_check_method
10798
 
 
10799
 
# Command to use when deplibs_check_method == file_magic.
10800
 
file_magic_cmd=$lt_file_magic_cmd
10801
 
 
10802
 
# Flag that allows shared libraries with undefined symbols to be built.
10803
 
allow_undefined_flag=$lt_allow_undefined_flag
10804
 
 
10805
 
# Flag that forces no undefined symbols.
10806
 
no_undefined_flag=$lt_no_undefined_flag
10807
 
 
10808
 
# Commands used to finish a libtool library installation in a directory.
10809
 
finish_cmds=$lt_finish_cmds
10810
 
 
10811
 
# Same as above, but a single script fragment to be evaled but not shown.
10812
 
finish_eval=$lt_finish_eval
10813
 
 
10814
 
# Take the output of nm and produce a listing of raw symbols and C names.
10815
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10816
 
 
10817
 
# Transform the output of nm in a proper C declaration
10818
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10819
 
 
10820
 
# Transform the output of nm in a C name address pair
10821
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10822
 
 
10823
 
# This is the shared library runtime path variable.
10824
 
runpath_var=$runpath_var
10825
 
 
10826
 
# This is the shared library path variable.
10827
 
shlibpath_var=$shlibpath_var
10828
 
 
10829
 
# Is shlibpath searched before the hard-coded library search path?
10830
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10831
 
 
10832
 
# How to hardcode a shared library path into an executable.
10833
 
hardcode_action=$hardcode_action
10834
 
 
10835
 
# Whether we should hardcode library paths into libraries.
10836
 
hardcode_into_libs=$hardcode_into_libs
10837
 
 
10838
 
# Flag to hardcode \$libdir into a binary during linking.
10839
 
# This must work even if \$libdir does not exist.
10840
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10841
 
 
10842
 
# If ld is used when linking, flag to hardcode \$libdir into
10843
 
# a binary during linking. This must work even if \$libdir does
10844
 
# not exist.
10845
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10846
 
 
10847
 
# Whether we need a single -rpath flag with a separated argument.
10848
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10849
 
 
10850
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10851
 
# resulting binary.
10852
 
hardcode_direct=$hardcode_direct
10853
 
 
10854
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10855
 
# resulting binary.
10856
 
hardcode_minus_L=$hardcode_minus_L
10857
 
 
10858
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10859
 
# the resulting binary.
10860
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10861
 
 
10862
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10863
 
# and all subsequent libraries and executables linked against it.
10864
 
hardcode_automatic=$hardcode_automatic
10865
 
 
10866
 
# Variables whose values should be saved in libtool wrapper scripts and
10867
 
# restored at relink time.
10868
 
variables_saved_for_relink="$variables_saved_for_relink"
10869
 
 
10870
 
# Whether libtool must link a program against all its dependency libraries.
10871
 
link_all_deplibs=$link_all_deplibs
10872
 
 
10873
 
# Compile-time system search path for libraries
10874
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10875
 
 
10876
 
# Run-time system search path for libraries
10877
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10878
 
 
10879
 
# Fix the shell variable \$srcfile for the compiler.
10880
 
fix_srcfile_path="$fix_srcfile_path"
10881
 
 
10882
 
# Set to yes if exported symbols are required.
10883
 
always_export_symbols=$always_export_symbols
10884
 
 
10885
 
# The commands to list exported symbols.
10886
 
export_symbols_cmds=$lt_export_symbols_cmds
10887
 
 
10888
 
# The commands to extract the exported symbol list from a shared archive.
10889
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10890
 
 
10891
 
# Symbols that should not be listed in the preloaded symbols.
10892
 
exclude_expsyms=$lt_exclude_expsyms
10893
 
 
10894
 
# Symbols that must always be exported.
10895
 
include_expsyms=$lt_include_expsyms
10896
 
 
10897
 
# ### END LIBTOOL CONFIG
10898
 
 
10899
 
__EOF__
10900
 
 
10901
 
 
10902
 
  case $host_os in
10903
 
  aix3*)
10904
 
    cat <<\EOF >> "$cfgfile"
10905
 
 
10906
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10907
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10908
 
# vanish in a puff of smoke.
10909
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10910
 
  COLLECT_NAMES=
10911
 
  export COLLECT_NAMES
10912
 
fi
10913
 
EOF
10914
 
    ;;
10915
 
  esac
10916
 
 
10917
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10918
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10919
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10920
 
  # is reportedly fixed, but why not run on old versions too?
10921
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10922
 
 
10923
 
  mv -f "$cfgfile" "$ofile" || \
10924
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10925
 
  chmod +x "$ofile"
10926
 
 
10927
 
else
10928
 
  # If there is no Makefile yet, we rely on a make rule to execute
10929
 
  # `config.status --recheck' to rerun these tests and create the
10930
 
  # libtool script then.
10931
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10932
 
  if test -f "$ltmain_in"; then
10933
 
    test -f Makefile && make "$ltmain"
10934
 
  fi
10935
 
fi
10936
 
 
10937
 
 
10938
 
ac_ext=c
10939
 
ac_cpp='$CPP $CPPFLAGS'
10940
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943
 
 
10944
 
CC="$lt_save_CC"
10945
 
 
10946
 
 
10947
 
# Check whether --with-tags was given.
10948
 
if test "${with_tags+set}" = set; then
10949
 
  withval=$with_tags; tagnames="$withval"
10950
 
fi
10951
 
 
10952
 
 
10953
 
if test -f "$ltmain" && test -n "$tagnames"; then
10954
 
  if test ! -f "${ofile}"; then
10955
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10956
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10957
 
  fi
10958
 
 
10959
 
  if test -z "$LTCC"; then
10960
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10961
 
    if test -z "$LTCC"; then
10962
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10963
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10964
 
    else
10965
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10966
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10967
 
    fi
10968
 
  fi
10969
 
 
10970
 
  # Extract list of available tagged configurations in $ofile.
10971
 
  # Note that this assumes the entire list is on one line.
10972
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10973
 
 
10974
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10975
 
  for tagname in $tagnames; do
10976
 
    IFS="$lt_save_ifs"
10977
 
    # Check whether tagname contains only valid characters
10978
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10979
 
    "") ;;
10980
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10981
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10982
 
   { (exit 1); exit 1; }; }
10983
 
        ;;
10984
 
    esac
10985
 
 
10986
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10987
 
    then
10988
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10989
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10990
 
   { (exit 1); exit 1; }; }
10991
 
    fi
10992
 
 
10993
 
    # Update the list of available tags.
10994
 
    if test -n "$tagname"; then
10995
 
      echo appending configuration tag \"$tagname\" to $ofile
10996
 
 
10997
 
      case $tagname in
10998
 
      CXX)
10999
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
11000
 
          ac_ext=cpp
11001
 
ac_cpp='$CXXCPP $CPPFLAGS'
11002
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11005
 
 
11006
 
 
11007
 
 
11008
 
 
11009
 
archive_cmds_need_lc_CXX=no
11010
 
allow_undefined_flag_CXX=
11011
 
always_export_symbols_CXX=no
11012
 
archive_expsym_cmds_CXX=
11013
 
export_dynamic_flag_spec_CXX=
11014
 
hardcode_direct_CXX=no
11015
 
hardcode_libdir_flag_spec_CXX=
11016
 
hardcode_libdir_flag_spec_ld_CXX=
11017
 
hardcode_libdir_separator_CXX=
11018
 
hardcode_minus_L_CXX=no
11019
 
hardcode_automatic_CXX=no
11020
 
module_cmds_CXX=
11021
 
module_expsym_cmds_CXX=
11022
 
link_all_deplibs_CXX=unknown
11023
 
old_archive_cmds_CXX=$old_archive_cmds
11024
 
no_undefined_flag_CXX=
11025
 
whole_archive_flag_spec_CXX=
11026
 
enable_shared_with_static_runtimes_CXX=no
11027
 
 
11028
 
# Dependencies to place before and after the object being linked:
11029
 
predep_objects_CXX=
11030
 
postdep_objects_CXX=
11031
 
predeps_CXX=
11032
 
postdeps_CXX=
11033
 
compiler_lib_search_path_CXX=
11034
 
 
11035
 
# Source file extension for C++ test sources.
11036
 
ac_ext=cc
11037
 
 
11038
 
# Object file extension for compiled C++ test sources.
11039
 
objext=o
11040
 
objext_CXX=$objext
11041
 
 
11042
 
# Code to be used in simple compile tests
11043
 
lt_simple_compile_test_code="int some_variable = 0;\n"
11044
 
 
11045
 
# Code to be used in simple link tests
11046
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11047
 
 
11048
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11049
 
 
11050
 
# If no C compiler was specified, use CC.
11051
 
LTCC=${LTCC-"$CC"}
11052
 
 
11053
 
# Allow CC to be a program name with arguments.
11054
 
compiler=$CC
11055
 
 
11056
 
 
11057
 
# Allow CC to be a program name with arguments.
11058
 
lt_save_CC=$CC
11059
 
lt_save_LD=$LD
11060
 
lt_save_GCC=$GCC
11061
 
GCC=$GXX
11062
 
lt_save_with_gnu_ld=$with_gnu_ld
11063
 
lt_save_path_LD=$lt_cv_path_LD
11064
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11065
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11066
 
else
11067
 
  unset lt_cv_prog_gnu_ld
11068
 
fi
11069
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11070
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11071
 
else
11072
 
  unset lt_cv_path_LD
11073
 
fi
11074
 
test -z "${LDCXX+set}" || LD=$LDCXX
11075
 
CC=${CXX-"c++"}
11076
 
compiler=$CC
11077
 
compiler_CXX=$CC
11078
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11079
 
 
11080
 
# We don't want -fno-exception wen compiling C++ code, so set the
11081
 
# no_builtin_flag separately
11082
 
if test "$GXX" = yes; then
11083
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11084
 
else
11085
 
  lt_prog_compiler_no_builtin_flag_CXX=
11086
 
fi
11087
 
 
11088
 
if test "$GXX" = yes; then
11089
 
  # Set up default GNU C++ configuration
11090
 
 
11091
 
 
11092
 
# Check whether --with-gnu-ld was given.
11093
 
if test "${with_gnu_ld+set}" = set; then
11094
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095
 
else
11096
 
  with_gnu_ld=no
11097
 
fi
11098
 
 
11099
 
ac_prog=ld
11100
 
if test "$GCC" = yes; then
11101
 
  # Check if gcc -print-prog-name=ld gives a path.
11102
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11104
 
  case $host in
11105
 
  *-*-mingw*)
11106
 
    # gcc leaves a trailing carriage return which upsets mingw
11107
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11108
 
  *)
11109
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11110
 
  esac
11111
 
  case $ac_prog in
11112
 
    # Accept absolute paths.
11113
 
    [\\/]* | ?:[\\/]*)
11114
 
      re_direlt='/[^/][^/]*/\.\./'
11115
 
      # Canonicalize the pathname of ld
11116
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11117
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11119
 
      done
11120
 
      test -z "$LD" && LD="$ac_prog"
11121
 
      ;;
11122
 
  "")
11123
 
    # If it fails, then pretend we aren't using GCC.
11124
 
    ac_prog=ld
11125
 
    ;;
11126
 
  *)
11127
 
    # If it is relative, then search for the first ld in PATH.
11128
 
    with_gnu_ld=unknown
11129
 
    ;;
11130
 
  esac
11131
 
elif test "$with_gnu_ld" = yes; then
11132
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11133
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11134
 
else
11135
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11137
 
fi
11138
 
if test "${lt_cv_path_LD+set}" = set; then
11139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11140
 
else
11141
 
  if test -z "$LD"; then
11142
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143
 
  for ac_dir in $PATH; do
11144
 
    IFS="$lt_save_ifs"
11145
 
    test -z "$ac_dir" && ac_dir=.
11146
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11148
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11149
 
      # but apparently some GNU ld's only accept -v.
11150
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11151
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152
 
      *GNU* | *'with BFD'*)
11153
 
        test "$with_gnu_ld" != no && break
11154
 
        ;;
11155
 
      *)
11156
 
        test "$with_gnu_ld" != yes && break
11157
 
        ;;
11158
 
      esac
11159
 
    fi
11160
 
  done
11161
 
  IFS="$lt_save_ifs"
11162
 
else
11163
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11164
 
fi
11165
 
fi
11166
 
 
11167
 
LD="$lt_cv_path_LD"
11168
 
if test -n "$LD"; then
11169
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11170
 
echo "${ECHO_T}$LD" >&6; }
11171
 
else
11172
 
  { echo "$as_me:$LINENO: result: no" >&5
11173
 
echo "${ECHO_T}no" >&6; }
11174
 
fi
11175
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177
 
   { (exit 1); exit 1; }; }
11178
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11182
 
else
11183
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11184
 
case `$LD -v 2>&1 </dev/null` in
11185
 
*GNU* | *'with BFD'*)
11186
 
  lt_cv_prog_gnu_ld=yes
11187
 
  ;;
11188
 
*)
11189
 
  lt_cv_prog_gnu_ld=no
11190
 
  ;;
11191
 
esac
11192
 
fi
11193
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11196
 
 
11197
 
 
11198
 
 
11199
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11200
 
  # archiving commands below assume that GNU ld is being used.
11201
 
  if test "$with_gnu_ld" = yes; then
11202
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203
 
    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'
11204
 
 
11205
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11207
 
 
11208
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11209
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210
 
    #     investigate it a little bit more. (MM)
11211
 
    wlarc='${wl}'
11212
 
 
11213
 
    # ancient GNU ld didn't support --whole-archive et. al.
11214
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11215
 
        grep 'no-whole-archive' > /dev/null; then
11216
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11217
 
    else
11218
 
      whole_archive_flag_spec_CXX=
11219
 
    fi
11220
 
  else
11221
 
    with_gnu_ld=no
11222
 
    wlarc=
11223
 
 
11224
 
    # A generic and very simple default shared library creation
11225
 
    # command for GNU C++ for the case where it uses the native
11226
 
    # linker, instead of GNU ld.  If possible, this setting should
11227
 
    # overridden to take advantage of the native linker features on
11228
 
    # the platform it is being used on.
11229
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11230
 
  fi
11231
 
 
11232
 
  # Commands to make compiler produce verbose output that lists
11233
 
  # what "hidden" libraries, object files and flags are used when
11234
 
  # linking a shared library.
11235
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11236
 
 
11237
 
else
11238
 
  GXX=no
11239
 
  with_gnu_ld=no
11240
 
  wlarc=
11241
 
fi
11242
 
 
11243
 
# PORTME: fill in a description of your system's C++ link characteristics
11244
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11246
 
ld_shlibs_CXX=yes
11247
 
case $host_os in
11248
 
  aix3*)
11249
 
    # FIXME: insert proper C++ library support
11250
 
    ld_shlibs_CXX=no
11251
 
    ;;
11252
 
  aix4* | aix5*)
11253
 
    if test "$host_cpu" = ia64; then
11254
 
      # On IA64, the linker does run time linking by default, so we don't
11255
 
      # have to do anything special.
11256
 
      aix_use_runtimelinking=no
11257
 
      exp_sym_flag='-Bexport'
11258
 
      no_entry_flag=""
11259
 
    else
11260
 
      aix_use_runtimelinking=no
11261
 
 
11262
 
      # Test if we are trying to use run time linking or normal
11263
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264
 
      # need to do runtime linking.
11265
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266
 
        for ld_flag in $LDFLAGS; do
11267
 
          case $ld_flag in
11268
 
          *-brtl*)
11269
 
            aix_use_runtimelinking=yes
11270
 
            break
11271
 
            ;;
11272
 
          esac
11273
 
        done
11274
 
      esac
11275
 
 
11276
 
      exp_sym_flag='-bexport'
11277
 
      no_entry_flag='-bnoentry'
11278
 
    fi
11279
 
 
11280
 
    # When large executables or shared objects are built, AIX ld can
11281
 
    # have problems creating the table of contents.  If linking a library
11282
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11283
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11284
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11285
 
 
11286
 
    archive_cmds_CXX=''
11287
 
    hardcode_direct_CXX=yes
11288
 
    hardcode_libdir_separator_CXX=':'
11289
 
    link_all_deplibs_CXX=yes
11290
 
 
11291
 
    if test "$GXX" = yes; then
11292
 
      case $host_os in aix4.012|aix4.012.*)
11293
 
      # We only want to do this on AIX 4.2 and lower, the check
11294
 
      # below for broken collect2 doesn't work under 4.3+
11295
 
        collect2name=`${CC} -print-prog-name=collect2`
11296
 
        if test -f "$collect2name" && \
11297
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11298
 
        then
11299
 
          # We have reworked collect2
11300
 
          hardcode_direct_CXX=yes
11301
 
        else
11302
 
          # We have old collect2
11303
 
          hardcode_direct_CXX=unsupported
11304
 
          # It fails to find uninstalled libraries when the uninstalled
11305
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11306
 
          # to unsupported forces relinking
11307
 
          hardcode_minus_L_CXX=yes
11308
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11309
 
          hardcode_libdir_separator_CXX=
11310
 
        fi
11311
 
      esac
11312
 
      shared_flag='-shared'
11313
 
    else
11314
 
      # not using gcc
11315
 
      if test "$host_cpu" = ia64; then
11316
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11317
 
        # chokes on -Wl,-G. The following line is correct:
11318
 
        shared_flag='-G'
11319
 
      else
11320
 
        if test "$aix_use_runtimelinking" = yes; then
11321
 
          shared_flag='${wl}-G'
11322
 
        else
11323
 
          shared_flag='${wl}-bM:SRE'
11324
 
        fi
11325
 
      fi
11326
 
    fi
11327
 
 
11328
 
    # It seems that -bexpall does not export symbols beginning with
11329
 
    # underscore (_), so it is better to generate a list of symbols to export.
11330
 
    always_export_symbols_CXX=yes
11331
 
    if test "$aix_use_runtimelinking" = yes; then
11332
 
      # Warning - without using the other runtime loading flags (-brtl),
11333
 
      # -berok will link without error, but may produce a broken library.
11334
 
      allow_undefined_flag_CXX='-berok'
11335
 
      # Determine the default libpath from the value encoded in an empty executable.
11336
 
      cat >conftest.$ac_ext <<_ACEOF
11337
 
/* confdefs.h.  */
11338
 
_ACEOF
11339
 
cat confdefs.h >>conftest.$ac_ext
11340
 
cat >>conftest.$ac_ext <<_ACEOF
11341
 
/* end confdefs.h.  */
11342
 
 
11343
 
int
11344
 
main ()
11345
 
{
11346
 
 
11347
 
  ;
11348
 
  return 0;
11349
 
}
11350
 
_ACEOF
11351
 
rm -f conftest.$ac_objext conftest$ac_exeext
11352
 
if { (ac_try="$ac_link"
11353
 
case "(($ac_try" in
11354
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355
 
  *) ac_try_echo=$ac_try;;
11356
 
esac
11357
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358
 
  (eval "$ac_link") 2>conftest.er1
11359
 
  ac_status=$?
11360
 
  grep -v '^ *+' conftest.er1 >conftest.err
11361
 
  rm -f conftest.er1
11362
 
  cat conftest.err >&5
11363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364
 
  (exit $ac_status); } && {
11365
 
         test -z "$ac_cxx_werror_flag" ||
11366
 
         test ! -s conftest.err
11367
 
       } && test -s conftest$ac_exeext &&
11368
 
       $as_test_x conftest$ac_exeext; then
11369
 
 
11370
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11371
 
}'`
11372
 
# Check for a 64-bit object if we didn't find anything.
11373
 
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; }
11374
 
}'`; fi
11375
 
else
11376
 
  echo "$as_me: failed program was:" >&5
11377
 
sed 's/^/| /' conftest.$ac_ext >&5
11378
 
 
11379
 
 
11380
 
fi
11381
 
 
11382
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383
 
      conftest$ac_exeext conftest.$ac_ext
11384
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11385
 
 
11386
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11387
 
 
11388
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11389
 
     else
11390
 
      if test "$host_cpu" = ia64; then
11391
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11392
 
        allow_undefined_flag_CXX="-z nodefs"
11393
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11394
 
      else
11395
 
        # Determine the default libpath from the value encoded in an empty executable.
11396
 
        cat >conftest.$ac_ext <<_ACEOF
11397
 
/* confdefs.h.  */
11398
 
_ACEOF
11399
 
cat confdefs.h >>conftest.$ac_ext
11400
 
cat >>conftest.$ac_ext <<_ACEOF
11401
 
/* end confdefs.h.  */
11402
 
 
11403
 
int
11404
 
main ()
11405
 
{
11406
 
 
11407
 
  ;
11408
 
  return 0;
11409
 
}
11410
 
_ACEOF
11411
 
rm -f conftest.$ac_objext conftest$ac_exeext
11412
 
if { (ac_try="$ac_link"
11413
 
case "(($ac_try" in
11414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415
 
  *) ac_try_echo=$ac_try;;
11416
 
esac
11417
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418
 
  (eval "$ac_link") 2>conftest.er1
11419
 
  ac_status=$?
11420
 
  grep -v '^ *+' conftest.er1 >conftest.err
11421
 
  rm -f conftest.er1
11422
 
  cat conftest.err >&5
11423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424
 
  (exit $ac_status); } && {
11425
 
         test -z "$ac_cxx_werror_flag" ||
11426
 
         test ! -s conftest.err
11427
 
       } && test -s conftest$ac_exeext &&
11428
 
       $as_test_x conftest$ac_exeext; then
11429
 
 
11430
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11431
 
}'`
11432
 
# Check for a 64-bit object if we didn't find anything.
11433
 
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; }
11434
 
}'`; fi
11435
 
else
11436
 
  echo "$as_me: failed program was:" >&5
11437
 
sed 's/^/| /' conftest.$ac_ext >&5
11438
 
 
11439
 
 
11440
 
fi
11441
 
 
11442
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443
 
      conftest$ac_exeext conftest.$ac_ext
11444
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11445
 
 
11446
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11447
 
        # Warning - without using the other run time loading flags,
11448
 
        # -berok will link without error, but may produce a broken library.
11449
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11450
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11451
 
        # -bexpall does not export symbols beginning with underscore (_)
11452
 
        always_export_symbols_CXX=yes
11453
 
        # Exported symbols can be pulled into shared objects from archives
11454
 
        whole_archive_flag_spec_CXX=' '
11455
 
        archive_cmds_need_lc_CXX=yes
11456
 
        # This is similar to how AIX traditionally builds it's shared libraries.
11457
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11458
 
      fi
11459
 
    fi
11460
 
    ;;
11461
 
  chorus*)
11462
 
    case $cc_basename in
11463
 
      *)
11464
 
        # FIXME: insert proper C++ library support
11465
 
        ld_shlibs_CXX=no
11466
 
        ;;
11467
 
    esac
11468
 
    ;;
11469
 
 
11470
 
  cygwin* | mingw* | pw32*)
11471
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11472
 
    # as there is no search path for DLLs.
11473
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11474
 
    allow_undefined_flag_CXX=unsupported
11475
 
    always_export_symbols_CXX=no
11476
 
    enable_shared_with_static_runtimes_CXX=yes
11477
 
 
11478
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11479
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11480
 
      # If the export-symbols file already is a .def file (1st line
11481
 
      # is EXPORTS), use it as is; otherwise, prepend...
11482
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483
 
        cp $export_symbols $output_objdir/$soname.def;
11484
 
      else
11485
 
        echo EXPORTS > $output_objdir/$soname.def;
11486
 
        cat $export_symbols >> $output_objdir/$soname.def;
11487
 
      fi~
11488
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11489
 
    else
11490
 
      ld_shlibs_CXX=no
11491
 
    fi
11492
 
  ;;
11493
 
 
11494
 
  darwin* | rhapsody*)
11495
 
  if test "$GXX" = yes; then
11496
 
    archive_cmds_need_lc_CXX=no
11497
 
    case "$host_os" in
11498
 
    rhapsody* | darwin1.[012])
11499
 
      allow_undefined_flag_CXX='-undefined suppress'
11500
 
      ;;
11501
 
    *) # Darwin 1.3 on
11502
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11503
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11504
 
      else
11505
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
11506
 
          10.[012])
11507
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11508
 
            ;;
11509
 
          10.*)
11510
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
11511
 
            ;;
11512
 
        esac
11513
 
      fi
11514
 
      ;;
11515
 
    esac
11516
 
    lt_int_apple_cc_single_mod=no
11517
 
    output_verbose_link_cmd='echo'
11518
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11519
 
      lt_int_apple_cc_single_mod=yes
11520
 
    fi
11521
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11522
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11523
 
    else
11524
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11525
 
    fi
11526
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11527
 
 
11528
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11529
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11530
 
      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}'
11531
 
    else
11532
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11533
 
    fi
11534
 
    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}'
11535
 
    hardcode_direct_CXX=no
11536
 
    hardcode_automatic_CXX=yes
11537
 
    hardcode_shlibpath_var_CXX=unsupported
11538
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
11539
 
    link_all_deplibs_CXX=yes
11540
 
  else
11541
 
    ld_shlibs_CXX=no
11542
 
  fi
11543
 
    ;;
11544
 
 
11545
 
  dgux*)
11546
 
    case $cc_basename in
11547
 
      ec++)
11548
 
        # FIXME: insert proper C++ library support
11549
 
        ld_shlibs_CXX=no
11550
 
        ;;
11551
 
      ghcx)
11552
 
        # Green Hills C++ Compiler
11553
 
        # FIXME: insert proper C++ library support
11554
 
        ld_shlibs_CXX=no
11555
 
        ;;
11556
 
      *)
11557
 
        # FIXME: insert proper C++ library support
11558
 
        ld_shlibs_CXX=no
11559
 
        ;;
11560
 
    esac
11561
 
    ;;
11562
 
  freebsd12*)
11563
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11564
 
    ld_shlibs_CXX=no
11565
 
    ;;
11566
 
  freebsd-elf*)
11567
 
    archive_cmds_need_lc_CXX=no
11568
 
    ;;
11569
 
  freebsd* | kfreebsd*-gnu)
11570
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11571
 
    # conventions
11572
 
    ld_shlibs_CXX=yes
11573
 
    ;;
11574
 
  gnu*)
11575
 
    ;;
11576
 
  hpux9*)
11577
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11578
 
    hardcode_libdir_separator_CXX=:
11579
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11580
 
    hardcode_direct_CXX=yes
11581
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11582
 
                                # but as the default
11583
 
                                # location of the library.
11584
 
 
11585
 
    case $cc_basename in
11586
 
    CC)
11587
 
      # FIXME: insert proper C++ library support
11588
 
      ld_shlibs_CXX=no
11589
 
      ;;
11590
 
    aCC)
11591
 
      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'
11592
 
      # Commands to make compiler produce verbose output that lists
11593
 
      # what "hidden" libraries, object files and flags are used when
11594
 
      # linking a shared library.
11595
 
      #
11596
 
      # There doesn't appear to be a way to prevent this compiler from
11597
 
      # explicitly linking system object files so we need to strip them
11598
 
      # from the output so that they don't get included in the library
11599
 
      # dependencies.
11600
 
      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'
11601
 
      ;;
11602
 
    *)
11603
 
      if test "$GXX" = yes; then
11604
 
        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'
11605
 
      else
11606
 
        # FIXME: insert proper C++ library support
11607
 
        ld_shlibs_CXX=no
11608
 
      fi
11609
 
      ;;
11610
 
    esac
11611
 
    ;;
11612
 
  hpux10*|hpux11*)
11613
 
    if test $with_gnu_ld = no; then
11614
 
      case "$host_cpu" in
11615
 
      hppa*64*)
11616
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11618
 
        hardcode_libdir_separator_CXX=:
11619
 
        ;;
11620
 
      ia64*)
11621
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11622
 
        ;;
11623
 
      *)
11624
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625
 
        hardcode_libdir_separator_CXX=:
11626
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11627
 
        ;;
11628
 
      esac
11629
 
    fi
11630
 
    case "$host_cpu" in
11631
 
    hppa*64*)
11632
 
      hardcode_direct_CXX=no
11633
 
      hardcode_shlibpath_var_CXX=no
11634
 
      ;;
11635
 
    ia64*)
11636
 
      hardcode_direct_CXX=no
11637
 
      hardcode_shlibpath_var_CXX=no
11638
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11639
 
                                              # but as the default
11640
 
                                              # location of the library.
11641
 
      ;;
11642
 
    *)
11643
 
      hardcode_direct_CXX=yes
11644
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11645
 
                                              # but as the default
11646
 
                                              # location of the library.
11647
 
      ;;
11648
 
    esac
11649
 
 
11650
 
    case $cc_basename in
11651
 
      CC)
11652
 
        # FIXME: insert proper C++ library support
11653
 
        ld_shlibs_CXX=no
11654
 
        ;;
11655
 
      aCC)
11656
 
        case "$host_cpu" in
11657
 
        hppa*64*|ia64*)
11658
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11659
 
          ;;
11660
 
        *)
11661
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11662
 
          ;;
11663
 
        esac
11664
 
        # Commands to make compiler produce verbose output that lists
11665
 
        # what "hidden" libraries, object files and flags are used when
11666
 
        # linking a shared library.
11667
 
        #
11668
 
        # There doesn't appear to be a way to prevent this compiler from
11669
 
        # explicitly linking system object files so we need to strip them
11670
 
        # from the output so that they don't get included in the library
11671
 
        # dependencies.
11672
 
        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'
11673
 
        ;;
11674
 
      *)
11675
 
        if test "$GXX" = yes; then
11676
 
          if test $with_gnu_ld = no; then
11677
 
            case "$host_cpu" in
11678
 
            ia64*|hppa*64*)
11679
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11680
 
              ;;
11681
 
            *)
11682
 
              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'
11683
 
              ;;
11684
 
            esac
11685
 
          fi
11686
 
        else
11687
 
          # FIXME: insert proper C++ library support
11688
 
          ld_shlibs_CXX=no
11689
 
        fi
11690
 
        ;;
11691
 
    esac
11692
 
    ;;
11693
 
  irix5* | irix6*)
11694
 
    case $cc_basename in
11695
 
      CC)
11696
 
        # SGI C++
11697
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11698
 
 
11699
 
        # Archives containing C++ object files must be created using
11700
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11701
 
        # necessary to make sure instantiated templates are included
11702
 
        # in the archive.
11703
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11704
 
        ;;
11705
 
      *)
11706
 
        if test "$GXX" = yes; then
11707
 
          if test "$with_gnu_ld" = no; then
11708
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11709
 
          else
11710
 
            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'
11711
 
          fi
11712
 
        fi
11713
 
        link_all_deplibs_CXX=yes
11714
 
        ;;
11715
 
    esac
11716
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11717
 
    hardcode_libdir_separator_CXX=:
11718
 
    ;;
11719
 
  linux*)
11720
 
    case $cc_basename in
11721
 
      KCC)
11722
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11723
 
 
11724
 
        # KCC will only create a shared library if the output file
11725
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11726
 
        # to its proper name (with version) after linking.
11727
 
        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'
11728
 
        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'
11729
 
        # Commands to make compiler produce verbose output that lists
11730
 
        # what "hidden" libraries, object files and flags are used when
11731
 
        # linking a shared library.
11732
 
        #
11733
 
        # There doesn't appear to be a way to prevent this compiler from
11734
 
        # explicitly linking system object files so we need to strip them
11735
 
        # from the output so that they don't get included in the library
11736
 
        # dependencies.
11737
 
        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'
11738
 
 
11739
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11740
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11741
 
 
11742
 
        # Archives containing C++ object files must be created using
11743
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11744
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11745
 
        ;;
11746
 
      icpc)
11747
 
        # Intel C++
11748
 
        with_gnu_ld=yes
11749
 
        archive_cmds_need_lc_CXX=no
11750
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751
 
        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'
11752
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11753
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11754
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11755
 
        ;;
11756
 
      cxx)
11757
 
        # Compaq C++
11758
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11759
 
        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'
11760
 
 
11761
 
        runpath_var=LD_RUN_PATH
11762
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11763
 
        hardcode_libdir_separator_CXX=:
11764
 
 
11765
 
        # Commands to make compiler produce verbose output that lists
11766
 
        # what "hidden" libraries, object files and flags are used when
11767
 
        # linking a shared library.
11768
 
        #
11769
 
        # There doesn't appear to be a way to prevent this compiler from
11770
 
        # explicitly linking system object files so we need to strip them
11771
 
        # from the output so that they don't get included in the library
11772
 
        # dependencies.
11773
 
        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'
11774
 
        ;;
11775
 
    esac
11776
 
    ;;
11777
 
  lynxos*)
11778
 
    # FIXME: insert proper C++ library support
11779
 
    ld_shlibs_CXX=no
11780
 
    ;;
11781
 
  m88k*)
11782
 
    # FIXME: insert proper C++ library support
11783
 
    ld_shlibs_CXX=no
11784
 
    ;;
11785
 
  mvs*)
11786
 
    case $cc_basename in
11787
 
      cxx)
11788
 
        # FIXME: insert proper C++ library support
11789
 
        ld_shlibs_CXX=no
11790
 
        ;;
11791
 
      *)
11792
 
        # FIXME: insert proper C++ library support
11793
 
        ld_shlibs_CXX=no
11794
 
        ;;
11795
 
    esac
11796
 
    ;;
11797
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11798
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11799
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11800
 
      wlarc=
11801
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11802
 
      hardcode_direct_CXX=yes
11803
 
      hardcode_shlibpath_var_CXX=no
11804
 
    fi
11805
 
    # Workaround some broken pre-1.5 toolchains
11806
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11807
 
    ;;
11808
 
  osf3*)
11809
 
    case $cc_basename in
11810
 
      KCC)
11811
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11812
 
 
11813
 
        # KCC will only create a shared library if the output file
11814
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11815
 
        # to its proper name (with version) after linking.
11816
 
        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'
11817
 
 
11818
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819
 
        hardcode_libdir_separator_CXX=:
11820
 
 
11821
 
        # Archives containing C++ object files must be created using
11822
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824
 
 
11825
 
        ;;
11826
 
      RCC)
11827
 
        # Rational C++ 2.4.1
11828
 
        # FIXME: insert proper C++ library support
11829
 
        ld_shlibs_CXX=no
11830
 
        ;;
11831
 
      cxx)
11832
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11834
 
 
11835
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836
 
        hardcode_libdir_separator_CXX=:
11837
 
 
11838
 
        # Commands to make compiler produce verbose output that lists
11839
 
        # what "hidden" libraries, object files and flags are used when
11840
 
        # linking a shared library.
11841
 
        #
11842
 
        # There doesn't appear to be a way to prevent this compiler from
11843
 
        # explicitly linking system object files so we need to strip them
11844
 
        # from the output so that they don't get included in the library
11845
 
        # dependencies.
11846
 
        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'
11847
 
        ;;
11848
 
      *)
11849
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11852
 
 
11853
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854
 
          hardcode_libdir_separator_CXX=:
11855
 
 
11856
 
          # Commands to make compiler produce verbose output that lists
11857
 
          # what "hidden" libraries, object files and flags are used when
11858
 
          # linking a shared library.
11859
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11860
 
 
11861
 
        else
11862
 
          # FIXME: insert proper C++ library support
11863
 
          ld_shlibs_CXX=no
11864
 
        fi
11865
 
        ;;
11866
 
    esac
11867
 
    ;;
11868
 
  osf4* | osf5*)
11869
 
    case $cc_basename in
11870
 
      KCC)
11871
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11872
 
 
11873
 
        # KCC will only create a shared library if the output file
11874
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875
 
        # to its proper name (with version) after linking.
11876
 
        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'
11877
 
 
11878
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879
 
        hardcode_libdir_separator_CXX=:
11880
 
 
11881
 
        # Archives containing C++ object files must be created using
11882
 
        # the KAI C++ compiler.
11883
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11884
 
        ;;
11885
 
      RCC)
11886
 
        # Rational C++ 2.4.1
11887
 
        # FIXME: insert proper C++ library support
11888
 
        ld_shlibs_CXX=no
11889
 
        ;;
11890
 
      cxx)
11891
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11892
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11893
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894
 
          echo "-hidden">> $lib.exp~
11895
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11896
 
          $rm $lib.exp'
11897
 
 
11898
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899
 
        hardcode_libdir_separator_CXX=:
11900
 
 
11901
 
        # Commands to make compiler produce verbose output that lists
11902
 
        # what "hidden" libraries, object files and flags are used when
11903
 
        # linking a shared library.
11904
 
        #
11905
 
        # There doesn't appear to be a way to prevent this compiler from
11906
 
        # explicitly linking system object files so we need to strip them
11907
 
        # from the output so that they don't get included in the library
11908
 
        # dependencies.
11909
 
        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'
11910
 
        ;;
11911
 
      *)
11912
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11915
 
 
11916
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917
 
          hardcode_libdir_separator_CXX=:
11918
 
 
11919
 
          # Commands to make compiler produce verbose output that lists
11920
 
          # what "hidden" libraries, object files and flags are used when
11921
 
          # linking a shared library.
11922
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11923
 
 
11924
 
        else
11925
 
          # FIXME: insert proper C++ library support
11926
 
          ld_shlibs_CXX=no
11927
 
        fi
11928
 
        ;;
11929
 
    esac
11930
 
    ;;
11931
 
  psos*)
11932
 
    # FIXME: insert proper C++ library support
11933
 
    ld_shlibs_CXX=no
11934
 
    ;;
11935
 
  sco*)
11936
 
    archive_cmds_need_lc_CXX=no
11937
 
    case $cc_basename in
11938
 
      CC)
11939
 
        # FIXME: insert proper C++ library support
11940
 
        ld_shlibs_CXX=no
11941
 
        ;;
11942
 
      *)
11943
 
        # FIXME: insert proper C++ library support
11944
 
        ld_shlibs_CXX=no
11945
 
        ;;
11946
 
    esac
11947
 
    ;;
11948
 
  sunos4*)
11949
 
    case $cc_basename in
11950
 
      CC)
11951
 
        # Sun C++ 4.x
11952
 
        # FIXME: insert proper C++ library support
11953
 
        ld_shlibs_CXX=no
11954
 
        ;;
11955
 
      lcc)
11956
 
        # Lucid
11957
 
        # FIXME: insert proper C++ library support
11958
 
        ld_shlibs_CXX=no
11959
 
        ;;
11960
 
      *)
11961
 
        # FIXME: insert proper C++ library support
11962
 
        ld_shlibs_CXX=no
11963
 
        ;;
11964
 
    esac
11965
 
    ;;
11966
 
  solaris*)
11967
 
    case $cc_basename in
11968
 
      CC)
11969
 
        # Sun C++ 4.2, 5.x and Centerline C++
11970
 
        no_undefined_flag_CXX=' -zdefs'
11971
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11973
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11974
 
 
11975
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11976
 
        hardcode_shlibpath_var_CXX=no
11977
 
        case $host_os in
11978
 
          solaris2.0-5 | solaris2.0-5.*) ;;
11979
 
          *)
11980
 
            # The C++ compiler is used as linker so we must use $wl
11981
 
            # flag to pass the commands to the underlying system
11982
 
            # linker.
11983
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11984
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11985
 
            ;;
11986
 
        esac
11987
 
        link_all_deplibs_CXX=yes
11988
 
 
11989
 
        # Commands to make compiler produce verbose output that lists
11990
 
        # what "hidden" libraries, object files and flags are used when
11991
 
        # linking a shared library.
11992
 
        #
11993
 
        # There doesn't appear to be a way to prevent this compiler from
11994
 
        # explicitly linking system object files so we need to strip them
11995
 
        # from the output so that they don't get included in the library
11996
 
        # dependencies.
11997
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11998
 
 
11999
 
        # Archives containing C++ object files must be created using
12000
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12001
 
        # necessary to make sure instantiated templates are included
12002
 
        # in the archive.
12003
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12004
 
        ;;
12005
 
      gcx)
12006
 
        # Green Hills C++ Compiler
12007
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12008
 
 
12009
 
        # The C++ compiler must be used to create the archive.
12010
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12011
 
        ;;
12012
 
      *)
12013
 
        # GNU C++ compiler with Solaris linker
12014
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12016
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12017
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12020
 
 
12021
 
            # Commands to make compiler produce verbose output that lists
12022
 
            # what "hidden" libraries, object files and flags are used when
12023
 
            # linking a shared library.
12024
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12025
 
          else
12026
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12027
 
            # platform.
12028
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12029
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12030
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12031
 
 
12032
 
            # Commands to make compiler produce verbose output that lists
12033
 
            # what "hidden" libraries, object files and flags are used when
12034
 
            # linking a shared library.
12035
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12036
 
          fi
12037
 
 
12038
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12039
 
        fi
12040
 
        ;;
12041
 
    esac
12042
 
    ;;
12043
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12044
 
    archive_cmds_need_lc_CXX=no
12045
 
    ;;
12046
 
  tandem*)
12047
 
    case $cc_basename in
12048
 
      NCC)
12049
 
        # NonStop-UX NCC 3.20
12050
 
        # FIXME: insert proper C++ library support
12051
 
        ld_shlibs_CXX=no
12052
 
        ;;
12053
 
      *)
12054
 
        # FIXME: insert proper C++ library support
12055
 
        ld_shlibs_CXX=no
12056
 
        ;;
12057
 
    esac
12058
 
    ;;
12059
 
  vxworks*)
12060
 
    # FIXME: insert proper C++ library support
12061
 
    ld_shlibs_CXX=no
12062
 
    ;;
12063
 
  *)
12064
 
    # FIXME: insert proper C++ library support
12065
 
    ld_shlibs_CXX=no
12066
 
    ;;
12067
 
esac
12068
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12069
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12070
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12071
 
 
12072
 
GCC_CXX="$GXX"
12073
 
LD_CXX="$LD"
12074
 
 
12075
 
## CAVEAT EMPTOR:
12076
 
## There is no encapsulation within the following macros, do not change
12077
 
## the running order or otherwise move them around unless you know exactly
12078
 
## what you are doing...
12079
 
 
12080
 
cat > conftest.$ac_ext <<EOF
12081
 
class Foo
12082
 
{
12083
 
public:
12084
 
  Foo (void) { a = 0; }
12085
 
private:
12086
 
  int a;
12087
 
};
12088
 
EOF
12089
 
 
12090
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091
 
  (eval $ac_compile) 2>&5
12092
 
  ac_status=$?
12093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094
 
  (exit $ac_status); }; then
12095
 
  # Parse the compiler output and extract the necessary
12096
 
  # objects, libraries and library flags.
12097
 
 
12098
 
  # Sentinel used to keep track of whether or not we are before
12099
 
  # the conftest object file.
12100
 
  pre_test_object_deps_done=no
12101
 
 
12102
 
  # The `*' in the case matches for architectures that use `case' in
12103
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12104
 
  # eval without this substitution.
12105
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12106
 
 
12107
 
  for p in `eval $output_verbose_link_cmd`; do
12108
 
    case $p in
12109
 
 
12110
 
    -L* | -R* | -l*)
12111
 
       # Some compilers place space between "-{L,R}" and the path.
12112
 
       # Remove the space.
12113
 
       if test $p = "-L" \
12114
 
          || test $p = "-R"; then
12115
 
         prev=$p
12116
 
         continue
12117
 
       else
12118
 
         prev=
12119
 
       fi
12120
 
 
12121
 
       if test "$pre_test_object_deps_done" = no; then
12122
 
         case $p in
12123
 
         -L* | -R*)
12124
 
           # Internal compiler library paths should come after those
12125
 
           # provided the user.  The postdeps already come after the
12126
 
           # user supplied libs so there is no need to process them.
12127
 
           if test -z "$compiler_lib_search_path_CXX"; then
12128
 
             compiler_lib_search_path_CXX="${prev}${p}"
12129
 
           else
12130
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12131
 
           fi
12132
 
           ;;
12133
 
         # The "-l" case would never come before the object being
12134
 
         # linked, so don't bother handling this case.
12135
 
         esac
12136
 
       else
12137
 
         if test -z "$postdeps_CXX"; then
12138
 
           postdeps_CXX="${prev}${p}"
12139
 
         else
12140
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12141
 
         fi
12142
 
       fi
12143
 
       ;;
12144
 
 
12145
 
    *.$objext)
12146
 
       # This assumes that the test object file only shows up
12147
 
       # once in the compiler output.
12148
 
       if test "$p" = "conftest.$objext"; then
12149
 
         pre_test_object_deps_done=yes
12150
 
         continue
12151
 
       fi
12152
 
 
12153
 
       if test "$pre_test_object_deps_done" = no; then
12154
 
         if test -z "$predep_objects_CXX"; then
12155
 
           predep_objects_CXX="$p"
12156
 
         else
12157
 
           predep_objects_CXX="$predep_objects_CXX $p"
12158
 
         fi
12159
 
       else
12160
 
         if test -z "$postdep_objects_CXX"; then
12161
 
           postdep_objects_CXX="$p"
12162
 
         else
12163
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12164
 
         fi
12165
 
       fi
12166
 
       ;;
12167
 
 
12168
 
    *) ;; # Ignore the rest.
12169
 
 
12170
 
    esac
12171
 
  done
12172
 
 
12173
 
  # Clean up.
12174
 
  rm -f a.out a.exe
12175
 
else
12176
 
  echo "libtool.m4: error: problem compiling CXX test program"
12177
 
fi
12178
 
 
12179
 
$rm -f confest.$objext
12180
 
 
12181
 
case " $postdeps_CXX " in
12182
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12183
 
esac
12184
 
 
12185
 
lt_prog_compiler_wl_CXX=
12186
 
lt_prog_compiler_pic_CXX=
12187
 
lt_prog_compiler_static_CXX=
12188
 
 
12189
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12190
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12191
 
 
12192
 
  # C++ specific cases for pic, static, wl, etc.
12193
 
  if test "$GXX" = yes; then
12194
 
    lt_prog_compiler_wl_CXX='-Wl,'
12195
 
    lt_prog_compiler_static_CXX='-static'
12196
 
 
12197
 
    case $host_os in
12198
 
    aix*)
12199
 
      # All AIX code is PIC.
12200
 
      if test "$host_cpu" = ia64; then
12201
 
        # AIX 5 now supports IA64 processor
12202
 
        lt_prog_compiler_static_CXX='-Bstatic'
12203
 
      fi
12204
 
      ;;
12205
 
    amigaos*)
12206
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12207
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12208
 
      # like `-m68040'.
12209
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12210
 
      ;;
12211
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12212
 
      # PIC is the default for these OSes.
12213
 
      ;;
12214
 
    mingw* | os2* | pw32*)
12215
 
      # This hack is so that the source file can tell whether it is being
12216
 
      # built for inclusion in a dll (and should export symbols for example).
12217
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12218
 
      ;;
12219
 
    darwin* | rhapsody*)
12220
 
      # PIC is the default on this platform
12221
 
      # Common symbols not allowed in MH_DYLIB files
12222
 
      lt_prog_compiler_pic_CXX='-fno-common'
12223
 
      ;;
12224
 
    *djgpp*)
12225
 
      # DJGPP does not support shared libraries at all
12226
 
      lt_prog_compiler_pic_CXX=
12227
 
      ;;
12228
 
    sysv4*MP*)
12229
 
      if test -d /usr/nec; then
12230
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12231
 
      fi
12232
 
      ;;
12233
 
    hpux*)
12234
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12235
 
      # not for PA HP-UX.
12236
 
      case "$host_cpu" in
12237
 
      hppa*64*|ia64*)
12238
 
        ;;
12239
 
      *)
12240
 
        lt_prog_compiler_pic_CXX='-fPIC'
12241
 
        ;;
12242
 
      esac
12243
 
      ;;
12244
 
    *)
12245
 
      lt_prog_compiler_pic_CXX='-fPIC'
12246
 
      ;;
12247
 
    esac
12248
 
  else
12249
 
    case $host_os in
12250
 
      aix4* | aix5*)
12251
 
        # All AIX code is PIC.
12252
 
        if test "$host_cpu" = ia64; then
12253
 
          # AIX 5 now supports IA64 processor
12254
 
          lt_prog_compiler_static_CXX='-Bstatic'
12255
 
        else
12256
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12257
 
        fi
12258
 
        ;;
12259
 
      chorus*)
12260
 
        case $cc_basename in
12261
 
        cxch68)
12262
 
          # Green Hills C++ Compiler
12263
 
          # _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"
12264
 
          ;;
12265
 
        esac
12266
 
        ;;
12267
 
      dgux*)
12268
 
        case $cc_basename in
12269
 
          ec++)
12270
 
            lt_prog_compiler_pic_CXX='-KPIC'
12271
 
            ;;
12272
 
          ghcx)
12273
 
            # Green Hills C++ Compiler
12274
 
            lt_prog_compiler_pic_CXX='-pic'
12275
 
            ;;
12276
 
          *)
12277
 
            ;;
12278
 
        esac
12279
 
        ;;
12280
 
      freebsd* | kfreebsd*-gnu)
12281
 
        # FreeBSD uses GNU C++
12282
 
        ;;
12283
 
      hpux9* | hpux10* | hpux11*)
12284
 
        case $cc_basename in
12285
 
          CC)
12286
 
            lt_prog_compiler_wl_CXX='-Wl,'
12287
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12288
 
            if test "$host_cpu" != ia64; then
12289
 
              lt_prog_compiler_pic_CXX='+Z'
12290
 
            fi
12291
 
            ;;
12292
 
          aCC)
12293
 
            lt_prog_compiler_wl_CXX='-Wl,'
12294
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12295
 
            case "$host_cpu" in
12296
 
            hppa*64*|ia64*)
12297
 
              # +Z the default
12298
 
              ;;
12299
 
            *)
12300
 
              lt_prog_compiler_pic_CXX='+Z'
12301
 
              ;;
12302
 
            esac
12303
 
            ;;
12304
 
          *)
12305
 
            ;;
12306
 
        esac
12307
 
        ;;
12308
 
      irix5* | irix6* | nonstopux*)
12309
 
        case $cc_basename in
12310
 
          CC)
12311
 
            lt_prog_compiler_wl_CXX='-Wl,'
12312
 
            lt_prog_compiler_static_CXX='-non_shared'
12313
 
            # CC pic flag -KPIC is the default.
12314
 
            ;;
12315
 
          *)
12316
 
            ;;
12317
 
        esac
12318
 
        ;;
12319
 
      linux*)
12320
 
        case $cc_basename in
12321
 
          KCC)
12322
 
            # KAI C++ Compiler
12323
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12324
 
            lt_prog_compiler_pic_CXX='-fPIC'
12325
 
            ;;
12326
 
          icpc)
12327
 
            # Intel C++
12328
 
            lt_prog_compiler_wl_CXX='-Wl,'
12329
 
            lt_prog_compiler_pic_CXX='-KPIC'
12330
 
            lt_prog_compiler_static_CXX='-static'
12331
 
            ;;
12332
 
          cxx)
12333
 
            # Compaq C++
12334
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12335
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12336
 
            lt_prog_compiler_pic_CXX=
12337
 
            lt_prog_compiler_static_CXX='-non_shared'
12338
 
            ;;
12339
 
          *)
12340
 
            ;;
12341
 
        esac
12342
 
        ;;
12343
 
      lynxos*)
12344
 
        ;;
12345
 
      m88k*)
12346
 
        ;;
12347
 
      mvs*)
12348
 
        case $cc_basename in
12349
 
          cxx)
12350
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12351
 
            ;;
12352
 
          *)
12353
 
            ;;
12354
 
        esac
12355
 
        ;;
12356
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12357
 
        ;;
12358
 
      osf3* | osf4* | osf5*)
12359
 
        case $cc_basename in
12360
 
          KCC)
12361
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12362
 
            ;;
12363
 
          RCC)
12364
 
            # Rational C++ 2.4.1
12365
 
            lt_prog_compiler_pic_CXX='-pic'
12366
 
            ;;
12367
 
          cxx)
12368
 
            # Digital/Compaq C++
12369
 
            lt_prog_compiler_wl_CXX='-Wl,'
12370
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12371
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12372
 
            lt_prog_compiler_pic_CXX=
12373
 
            lt_prog_compiler_static_CXX='-non_shared'
12374
 
            ;;
12375
 
          *)
12376
 
            ;;
12377
 
        esac
12378
 
        ;;
12379
 
      psos*)
12380
 
        ;;
12381
 
      sco*)
12382
 
        case $cc_basename in
12383
 
          CC)
12384
 
            lt_prog_compiler_pic_CXX='-fPIC'
12385
 
            ;;
12386
 
          *)
12387
 
            ;;
12388
 
        esac
12389
 
        ;;
12390
 
      solaris*)
12391
 
        case $cc_basename in
12392
 
          CC)
12393
 
            # Sun C++ 4.2, 5.x and Centerline C++
12394
 
            lt_prog_compiler_pic_CXX='-KPIC'
12395
 
            lt_prog_compiler_static_CXX='-Bstatic'
12396
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12397
 
            ;;
12398
 
          gcx)
12399
 
            # Green Hills C++ Compiler
12400
 
            lt_prog_compiler_pic_CXX='-PIC'
12401
 
            ;;
12402
 
          *)
12403
 
            ;;
12404
 
        esac
12405
 
        ;;
12406
 
      sunos4*)
12407
 
        case $cc_basename in
12408
 
          CC)
12409
 
            # Sun C++ 4.x
12410
 
            lt_prog_compiler_pic_CXX='-pic'
12411
 
            lt_prog_compiler_static_CXX='-Bstatic'
12412
 
            ;;
12413
 
          lcc)
12414
 
            # Lucid
12415
 
            lt_prog_compiler_pic_CXX='-pic'
12416
 
            ;;
12417
 
          *)
12418
 
            ;;
12419
 
        esac
12420
 
        ;;
12421
 
      tandem*)
12422
 
        case $cc_basename in
12423
 
          NCC)
12424
 
            # NonStop-UX NCC 3.20
12425
 
            lt_prog_compiler_pic_CXX='-KPIC'
12426
 
            ;;
12427
 
          *)
12428
 
            ;;
12429
 
        esac
12430
 
        ;;
12431
 
      unixware*)
12432
 
        ;;
12433
 
      vxworks*)
12434
 
        ;;
12435
 
      *)
12436
 
        lt_prog_compiler_can_build_shared_CXX=no
12437
 
        ;;
12438
 
    esac
12439
 
  fi
12440
 
 
12441
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12442
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12443
 
 
12444
 
#
12445
 
# Check to make sure the PIC flag actually works.
12446
 
#
12447
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12448
 
 
12449
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12450
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12451
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12453
 
else
12454
 
  lt_prog_compiler_pic_works_CXX=no
12455
 
  ac_outfile=conftest.$ac_objext
12456
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12457
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12458
 
   # Insert the option either (1) after the last *FLAGS variable, or
12459
 
   # (2) before a word containing "conftest.", or (3) at the end.
12460
 
   # Note that $ac_compile itself does not contain backslashes and begins
12461
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12462
 
   # The option is referenced via a variable to avoid confusing sed.
12463
 
   lt_compile=`echo "$ac_compile" | $SED \
12464
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12465
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12466
 
   -e 's:$: $lt_compiler_flag:'`
12467
 
   (eval echo "\"\$as_me:12467: $lt_compile\"" >&5)
12468
 
   (eval "$lt_compile" 2>conftest.err)
12469
 
   ac_status=$?
12470
 
   cat conftest.err >&5
12471
 
   echo "$as_me:12471: \$? = $ac_status" >&5
12472
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12473
 
     # The compiler can only warn and ignore the option if not recognized
12474
 
     # So say no if there are warnings
12475
 
     if test ! -s conftest.err; then
12476
 
       lt_prog_compiler_pic_works_CXX=yes
12477
 
     fi
12478
 
   fi
12479
 
   $rm conftest*
12480
 
 
12481
 
fi
12482
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12483
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12484
 
 
12485
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12486
 
    case $lt_prog_compiler_pic_CXX in
12487
 
     "" | " "*) ;;
12488
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12489
 
     esac
12490
 
else
12491
 
    lt_prog_compiler_pic_CXX=
12492
 
     lt_prog_compiler_can_build_shared_CXX=no
12493
 
fi
12494
 
 
12495
 
fi
12496
 
case "$host_os" in
12497
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12498
 
  *djgpp*)
12499
 
    lt_prog_compiler_pic_CXX=
12500
 
    ;;
12501
 
  *)
12502
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12503
 
    ;;
12504
 
esac
12505
 
 
12506
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12507
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12508
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12510
 
else
12511
 
  lt_cv_prog_compiler_c_o_CXX=no
12512
 
   $rm -r conftest 2>/dev/null
12513
 
   mkdir conftest
12514
 
   cd conftest
12515
 
   mkdir out
12516
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12517
 
 
12518
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12519
 
   # Insert the option either (1) after the last *FLAGS variable, or
12520
 
   # (2) before a word containing "conftest.", or (3) at the end.
12521
 
   # Note that $ac_compile itself does not contain backslashes and begins
12522
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12523
 
   lt_compile=`echo "$ac_compile" | $SED \
12524
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12525
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526
 
   -e 's:$: $lt_compiler_flag:'`
12527
 
   (eval echo "\"\$as_me:12527: $lt_compile\"" >&5)
12528
 
   (eval "$lt_compile" 2>out/conftest.err)
12529
 
   ac_status=$?
12530
 
   cat out/conftest.err >&5
12531
 
   echo "$as_me:12531: \$? = $ac_status" >&5
12532
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12533
 
   then
12534
 
     # The compiler can only warn and ignore the option if not recognized
12535
 
     # So say no if there are warnings
12536
 
     if test ! -s out/conftest.err; then
12537
 
       lt_cv_prog_compiler_c_o_CXX=yes
12538
 
     fi
12539
 
   fi
12540
 
   chmod u+w .
12541
 
   $rm conftest*
12542
 
   # SGI C++ compiler will create directory out/ii_files/ for
12543
 
   # template instantiation
12544
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12545
 
   $rm out/* && rmdir out
12546
 
   cd ..
12547
 
   rmdir conftest
12548
 
   $rm conftest*
12549
 
 
12550
 
fi
12551
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12552
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12553
 
 
12554
 
 
12555
 
hard_links="nottested"
12556
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12557
 
  # do not overwrite the value of need_locks provided by the user
12558
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12559
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12560
 
  hard_links=yes
12561
 
  $rm conftest*
12562
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12563
 
  touch conftest.a
12564
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12565
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12567
 
echo "${ECHO_T}$hard_links" >&6; }
12568
 
  if test "$hard_links" = no; then
12569
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12570
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12571
 
    need_locks=warn
12572
 
  fi
12573
 
else
12574
 
  need_locks=no
12575
 
fi
12576
 
 
12577
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12578
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12579
 
 
12580
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12581
 
  case $host_os in
12582
 
  aix4* | aix5*)
12583
 
    # If we're using GNU nm, then we don't want the "-C" option.
12584
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12585
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12586
 
      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'
12587
 
    else
12588
 
      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'
12589
 
    fi
12590
 
    ;;
12591
 
  pw32*)
12592
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12593
 
  ;;
12594
 
  cygwin* | mingw*)
12595
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12596
 
  ;;
12597
 
  linux*)
12598
 
    link_all_deplibs_CXX=no
12599
 
  ;;
12600
 
  *)
12601
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12602
 
  ;;
12603
 
  esac
12604
 
 
12605
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12606
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12607
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12608
 
 
12609
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12610
 
if test "$GCC" = yes; then
12611
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12612
 
fi
12613
 
 
12614
 
#
12615
 
# Do we need to explicitly link libc?
12616
 
#
12617
 
case "x$archive_cmds_need_lc_CXX" in
12618
 
x|xyes)
12619
 
  # Assume -lc should be added
12620
 
  archive_cmds_need_lc_CXX=yes
12621
 
 
12622
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12623
 
    case $archive_cmds_CXX in
12624
 
    *'~'*)
12625
 
      # FIXME: we may have to deal with multi-command sequences.
12626
 
      ;;
12627
 
    '$CC '*)
12628
 
      # Test whether the compiler implicitly links with -lc since on some
12629
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12630
 
      # to ld, don't add -lc before -lgcc.
12631
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12632
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12633
 
      $rm conftest*
12634
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12635
 
 
12636
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637
 
  (eval $ac_compile) 2>&5
12638
 
  ac_status=$?
12639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640
 
  (exit $ac_status); } 2>conftest.err; then
12641
 
        soname=conftest
12642
 
        lib=conftest
12643
 
        libobjs=conftest.$ac_objext
12644
 
        deplibs=
12645
 
        wl=$lt_prog_compiler_wl_CXX
12646
 
        compiler_flags=-v
12647
 
        linker_flags=-v
12648
 
        verstring=
12649
 
        output_objdir=.
12650
 
        libname=conftest
12651
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12652
 
        allow_undefined_flag_CXX=
12653
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12654
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12655
 
  ac_status=$?
12656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
 
  (exit $ac_status); }
12658
 
        then
12659
 
          archive_cmds_need_lc_CXX=no
12660
 
        else
12661
 
          archive_cmds_need_lc_CXX=yes
12662
 
        fi
12663
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12664
 
      else
12665
 
        cat conftest.err 1>&5
12666
 
      fi
12667
 
      $rm conftest*
12668
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12669
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12670
 
      ;;
12671
 
    esac
12672
 
  fi
12673
 
  ;;
12674
 
esac
12675
 
 
12676
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12677
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12678
 
library_names_spec=
12679
 
libname_spec='lib$name'
12680
 
soname_spec=
12681
 
shrext_cmds=".so"
12682
 
postinstall_cmds=
12683
 
postuninstall_cmds=
12684
 
finish_cmds=
12685
 
finish_eval=
12686
 
shlibpath_var=
12687
 
shlibpath_overrides_runpath=unknown
12688
 
version_type=none
12689
 
dynamic_linker="$host_os ld.so"
12690
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12691
 
if test "$GCC" = yes; then
12692
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12693
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12694
 
    # if the path contains ";" then we assume it to be the separator
12695
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12696
 
    # assumed that no part of a normal pathname contains ";" but that should
12697
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12698
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12699
 
  else
12700
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12701
 
  fi
12702
 
else
12703
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12704
 
fi
12705
 
need_lib_prefix=unknown
12706
 
hardcode_into_libs=no
12707
 
 
12708
 
# when you set need_version to no, make sure it does not cause -set_version
12709
 
# flags to be left without arguments
12710
 
need_version=unknown
12711
 
 
12712
 
case $host_os in
12713
 
aix3*)
12714
 
  version_type=linux
12715
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12716
 
  shlibpath_var=LIBPATH
12717
 
 
12718
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12719
 
  soname_spec='${libname}${release}${shared_ext}$major'
12720
 
  ;;
12721
 
 
12722
 
aix4* | aix5*)
12723
 
  version_type=linux
12724
 
  need_lib_prefix=no
12725
 
  need_version=no
12726
 
  hardcode_into_libs=yes
12727
 
  if test "$host_cpu" = ia64; then
12728
 
    # AIX 5 supports IA64
12729
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12730
 
    shlibpath_var=LD_LIBRARY_PATH
12731
 
  else
12732
 
    # With GCC up to 2.95.x, collect2 would create an import file
12733
 
    # for dependence libraries.  The import file would start with
12734
 
    # the line `#! .'.  This would cause the generated library to
12735
 
    # depend on `.', always an invalid library.  This was fixed in
12736
 
    # development snapshots of GCC prior to 3.0.
12737
 
    case $host_os in
12738
 
      aix4 | aix4.[01] | aix4.[01].*)
12739
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12740
 
           echo ' yes '
12741
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12742
 
        :
12743
 
      else
12744
 
        can_build_shared=no
12745
 
      fi
12746
 
      ;;
12747
 
    esac
12748
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12749
 
    # soname into executable. Probably we can add versioning support to
12750
 
    # collect2, so additional links can be useful in future.
12751
 
    if test "$aix_use_runtimelinking" = yes; then
12752
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12753
 
      # instead of lib<name>.a to let people know that these are not
12754
 
      # typical AIX shared libraries.
12755
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756
 
    else
12757
 
      # We preserve .a as extension for shared libraries through AIX4.2
12758
 
      # and later when we are not doing run time linking.
12759
 
      library_names_spec='${libname}${release}.a $libname.a'
12760
 
      soname_spec='${libname}${release}${shared_ext}$major'
12761
 
    fi
12762
 
    shlibpath_var=LIBPATH
12763
 
  fi
12764
 
  ;;
12765
 
 
12766
 
amigaos*)
12767
 
  library_names_spec='$libname.ixlibrary $libname.a'
12768
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12769
 
  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'
12770
 
  ;;
12771
 
 
12772
 
beos*)
12773
 
  library_names_spec='${libname}${shared_ext}'
12774
 
  dynamic_linker="$host_os ld.so"
12775
 
  shlibpath_var=LIBRARY_PATH
12776
 
  ;;
12777
 
 
12778
 
bsdi4*)
12779
 
  version_type=linux
12780
 
  need_version=no
12781
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782
 
  soname_spec='${libname}${release}${shared_ext}$major'
12783
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12784
 
  shlibpath_var=LD_LIBRARY_PATH
12785
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12786
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12787
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12788
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12789
 
  # libtool to hard-code these into programs
12790
 
  ;;
12791
 
 
12792
 
cygwin* | mingw* | pw32*)
12793
 
  version_type=windows
12794
 
  shrext_cmds=".dll"
12795
 
  need_version=no
12796
 
  need_lib_prefix=no
12797
 
 
12798
 
  case $GCC,$host_os in
12799
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12800
 
    library_names_spec='$libname.dll.a'
12801
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12802
 
    postinstall_cmds='base_file=`basename \${file}`~
12803
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12804
 
      dldir=$destdir/`dirname \$dlpath`~
12805
 
      test -d \$dldir || mkdir -p \$dldir~
12806
 
      $install_prog $dir/$dlname \$dldir/$dlname'
12807
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12808
 
      dlpath=$dir/\$dldll~
12809
 
       $rm \$dlpath'
12810
 
    shlibpath_overrides_runpath=yes
12811
 
 
12812
 
    case $host_os in
12813
 
    cygwin*)
12814
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12815
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12816
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12817
 
      ;;
12818
 
    mingw*)
12819
 
      # MinGW DLLs use traditional 'lib' prefix
12820
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12822
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12823
 
        # It is most probably a Windows format PATH printed by
12824
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12825
 
        # path with ; separators, and with drive letters. We can handle the
12826
 
        # drive letters (cygwin fileutils understands them), so leave them,
12827
 
        # especially as we might pass files found there to a mingw objdump,
12828
 
        # which wouldn't understand a cygwinified path. Ahh.
12829
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12830
 
      else
12831
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12832
 
      fi
12833
 
      ;;
12834
 
    pw32*)
12835
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12836
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12837
 
      ;;
12838
 
    esac
12839
 
    ;;
12840
 
 
12841
 
  *)
12842
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12843
 
    ;;
12844
 
  esac
12845
 
  dynamic_linker='Win32 ld.exe'
12846
 
  # FIXME: first we should search . and the directory the executable is in
12847
 
  shlibpath_var=PATH
12848
 
  ;;
12849
 
 
12850
 
darwin* | rhapsody*)
12851
 
  dynamic_linker="$host_os dyld"
12852
 
  version_type=darwin
12853
 
  need_lib_prefix=no
12854
 
  need_version=no
12855
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12856
 
  soname_spec='${libname}${release}${major}$shared_ext'
12857
 
  shlibpath_overrides_runpath=yes
12858
 
  shlibpath_var=DYLD_LIBRARY_PATH
12859
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12860
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12861
 
  if test "$GCC" = yes; then
12862
 
    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"`
12863
 
  else
12864
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12865
 
  fi
12866
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12867
 
  ;;
12868
 
 
12869
 
dgux*)
12870
 
  version_type=linux
12871
 
  need_lib_prefix=no
12872
 
  need_version=no
12873
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874
 
  soname_spec='${libname}${release}${shared_ext}$major'
12875
 
  shlibpath_var=LD_LIBRARY_PATH
12876
 
  ;;
12877
 
 
12878
 
freebsd1*)
12879
 
  dynamic_linker=no
12880
 
  ;;
12881
 
 
12882
 
kfreebsd*-gnu)
12883
 
  version_type=linux
12884
 
  need_lib_prefix=no
12885
 
  need_version=no
12886
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12887
 
  soname_spec='${libname}${release}${shared_ext}$major'
12888
 
  shlibpath_var=LD_LIBRARY_PATH
12889
 
  shlibpath_overrides_runpath=no
12890
 
  hardcode_into_libs=yes
12891
 
  dynamic_linker='GNU ld.so'
12892
 
  ;;
12893
 
 
12894
 
freebsd*)
12895
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12896
 
  version_type=freebsd-$objformat
12897
 
  case $version_type in
12898
 
    freebsd-elf*)
12899
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12900
 
      need_version=no
12901
 
      need_lib_prefix=no
12902
 
      ;;
12903
 
    freebsd-*)
12904
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12905
 
      need_version=yes
12906
 
      ;;
12907
 
  esac
12908
 
  shlibpath_var=LD_LIBRARY_PATH
12909
 
  case $host_os in
12910
 
  freebsd2*)
12911
 
    shlibpath_overrides_runpath=yes
12912
 
    ;;
12913
 
  freebsd3.01* | freebsdelf3.01*)
12914
 
    shlibpath_overrides_runpath=yes
12915
 
    hardcode_into_libs=yes
12916
 
    ;;
12917
 
  *) # from 3.2 on
12918
 
    shlibpath_overrides_runpath=no
12919
 
    hardcode_into_libs=yes
12920
 
    ;;
12921
 
  esac
12922
 
  ;;
12923
 
 
12924
 
gnu*)
12925
 
  version_type=linux
12926
 
  need_lib_prefix=no
12927
 
  need_version=no
12928
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12929
 
  soname_spec='${libname}${release}${shared_ext}$major'
12930
 
  shlibpath_var=LD_LIBRARY_PATH
12931
 
  hardcode_into_libs=yes
12932
 
  ;;
12933
 
 
12934
 
hpux9* | hpux10* | hpux11*)
12935
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12936
 
  # link against other versions.
12937
 
  version_type=sunos
12938
 
  need_lib_prefix=no
12939
 
  need_version=no
12940
 
  case "$host_cpu" in
12941
 
  ia64*)
12942
 
    shrext_cmds='.so'
12943
 
    hardcode_into_libs=yes
12944
 
    dynamic_linker="$host_os dld.so"
12945
 
    shlibpath_var=LD_LIBRARY_PATH
12946
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12947
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948
 
    soname_spec='${libname}${release}${shared_ext}$major'
12949
 
    if test "X$HPUX_IA64_MODE" = X32; then
12950
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12951
 
    else
12952
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12953
 
    fi
12954
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12955
 
    ;;
12956
 
   hppa*64*)
12957
 
     shrext_cmds='.sl'
12958
 
     hardcode_into_libs=yes
12959
 
     dynamic_linker="$host_os dld.sl"
12960
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12961
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12962
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963
 
     soname_spec='${libname}${release}${shared_ext}$major'
12964
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12965
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12966
 
     ;;
12967
 
   *)
12968
 
    shrext_cmds='.sl'
12969
 
    dynamic_linker="$host_os dld.sl"
12970
 
    shlibpath_var=SHLIB_PATH
12971
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12972
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973
 
    soname_spec='${libname}${release}${shared_ext}$major'
12974
 
    ;;
12975
 
  esac
12976
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12977
 
  postinstall_cmds='chmod 555 $lib'
12978
 
  ;;
12979
 
 
12980
 
irix5* | irix6* | nonstopux*)
12981
 
  case $host_os in
12982
 
    nonstopux*) version_type=nonstopux ;;
12983
 
    *)
12984
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12985
 
                version_type=linux
12986
 
        else
12987
 
                version_type=irix
12988
 
        fi ;;
12989
 
  esac
12990
 
  need_lib_prefix=no
12991
 
  need_version=no
12992
 
  soname_spec='${libname}${release}${shared_ext}$major'
12993
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12994
 
  case $host_os in
12995
 
  irix5* | nonstopux*)
12996
 
    libsuff= shlibsuff=
12997
 
    ;;
12998
 
  *)
12999
 
    case $LD in # libtool.m4 will add one of these switches to LD
13000
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13001
 
      libsuff= shlibsuff= libmagic=32-bit;;
13002
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13003
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13004
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13005
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13006
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13007
 
    esac
13008
 
    ;;
13009
 
  esac
13010
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13011
 
  shlibpath_overrides_runpath=no
13012
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13013
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13014
 
  hardcode_into_libs=yes
13015
 
  ;;
13016
 
 
13017
 
# No shared lib support for Linux oldld, aout, or coff.
13018
 
linux*oldld* | linux*aout* | linux*coff*)
13019
 
  dynamic_linker=no
13020
 
  ;;
13021
 
 
13022
 
# This must be Linux ELF.
13023
 
linux*)
13024
 
  version_type=linux
13025
 
  need_lib_prefix=no
13026
 
  need_version=no
13027
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028
 
  soname_spec='${libname}${release}${shared_ext}$major'
13029
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13030
 
  shlibpath_var=LD_LIBRARY_PATH
13031
 
  shlibpath_overrides_runpath=no
13032
 
  # This implies no fast_install, which is unacceptable.
13033
 
  # Some rework will be needed to allow for fast_install
13034
 
  # before this can be enabled.
13035
 
  hardcode_into_libs=yes
13036
 
 
13037
 
  # Append ld.so.conf contents to the search path
13038
 
  if test -f /etc/ld.so.conf; then
13039
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13040
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13041
 
  fi
13042
 
 
13043
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13044
 
  # powerpc, because MkLinux only supported shared libraries with the
13045
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13046
 
  # most powerpc-linux boxes support dynamic linking these days and
13047
 
  # people can always --disable-shared, the test was removed, and we
13048
 
  # assume the GNU/Linux dynamic linker is in use.
13049
 
  dynamic_linker='GNU/Linux ld.so'
13050
 
  ;;
13051
 
 
13052
 
netbsdelf*-gnu)
13053
 
  version_type=linux
13054
 
  need_lib_prefix=no
13055
 
  need_version=no
13056
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13057
 
  soname_spec='${libname}${release}${shared_ext}$major'
13058
 
  shlibpath_var=LD_LIBRARY_PATH
13059
 
  shlibpath_overrides_runpath=no
13060
 
  hardcode_into_libs=yes
13061
 
  dynamic_linker='NetBSD ld.elf_so'
13062
 
  ;;
13063
 
 
13064
 
knetbsd*-gnu)
13065
 
  version_type=linux
13066
 
  need_lib_prefix=no
13067
 
  need_version=no
13068
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13069
 
  soname_spec='${libname}${release}${shared_ext}$major'
13070
 
  shlibpath_var=LD_LIBRARY_PATH
13071
 
  shlibpath_overrides_runpath=no
13072
 
  hardcode_into_libs=yes
13073
 
  dynamic_linker='GNU ld.so'
13074
 
  ;;
13075
 
 
13076
 
netbsd*)
13077
 
  version_type=sunos
13078
 
  need_lib_prefix=no
13079
 
  need_version=no
13080
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13081
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13082
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13083
 
    dynamic_linker='NetBSD (a.out) ld.so'
13084
 
  else
13085
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086
 
    soname_spec='${libname}${release}${shared_ext}$major'
13087
 
    dynamic_linker='NetBSD ld.elf_so'
13088
 
  fi
13089
 
  shlibpath_var=LD_LIBRARY_PATH
13090
 
  shlibpath_overrides_runpath=yes
13091
 
  hardcode_into_libs=yes
13092
 
  ;;
13093
 
 
13094
 
newsos6)
13095
 
  version_type=linux
13096
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097
 
  shlibpath_var=LD_LIBRARY_PATH
13098
 
  shlibpath_overrides_runpath=yes
13099
 
  ;;
13100
 
 
13101
 
nto-qnx*)
13102
 
  version_type=linux
13103
 
  need_lib_prefix=no
13104
 
  need_version=no
13105
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106
 
  soname_spec='${libname}${release}${shared_ext}$major'
13107
 
  shlibpath_var=LD_LIBRARY_PATH
13108
 
  shlibpath_overrides_runpath=yes
13109
 
  ;;
13110
 
 
13111
 
openbsd*)
13112
 
  version_type=sunos
13113
 
  need_lib_prefix=no
13114
 
  need_version=yes
13115
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117
 
  shlibpath_var=LD_LIBRARY_PATH
13118
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13119
 
    case $host_os in
13120
 
      openbsd2.[89] | openbsd2.[89].*)
13121
 
        shlibpath_overrides_runpath=no
13122
 
        ;;
13123
 
      *)
13124
 
        shlibpath_overrides_runpath=yes
13125
 
        ;;
13126
 
      esac
13127
 
  else
13128
 
    shlibpath_overrides_runpath=yes
13129
 
  fi
13130
 
  ;;
13131
 
 
13132
 
os2*)
13133
 
  libname_spec='$name'
13134
 
  shrext_cmds=".dll"
13135
 
  need_lib_prefix=no
13136
 
  library_names_spec='$libname${shared_ext} $libname.a'
13137
 
  dynamic_linker='OS/2 ld.exe'
13138
 
  shlibpath_var=LIBPATH
13139
 
  ;;
13140
 
 
13141
 
osf3* | osf4* | osf5*)
13142
 
  version_type=osf
13143
 
  need_lib_prefix=no
13144
 
  need_version=no
13145
 
  soname_spec='${libname}${release}${shared_ext}$major'
13146
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147
 
  shlibpath_var=LD_LIBRARY_PATH
13148
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13149
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13150
 
  ;;
13151
 
 
13152
 
sco3.2v5*)
13153
 
  version_type=osf
13154
 
  soname_spec='${libname}${release}${shared_ext}$major'
13155
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156
 
  shlibpath_var=LD_LIBRARY_PATH
13157
 
  ;;
13158
 
 
13159
 
solaris*)
13160
 
  version_type=linux
13161
 
  need_lib_prefix=no
13162
 
  need_version=no
13163
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164
 
  soname_spec='${libname}${release}${shared_ext}$major'
13165
 
  shlibpath_var=LD_LIBRARY_PATH
13166
 
  shlibpath_overrides_runpath=yes
13167
 
  hardcode_into_libs=yes
13168
 
  # ldd complains unless libraries are executable
13169
 
  postinstall_cmds='chmod +x $lib'
13170
 
  ;;
13171
 
 
13172
 
sunos4*)
13173
 
  version_type=sunos
13174
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13176
 
  shlibpath_var=LD_LIBRARY_PATH
13177
 
  shlibpath_overrides_runpath=yes
13178
 
  if test "$with_gnu_ld" = yes; then
13179
 
    need_lib_prefix=no
13180
 
  fi
13181
 
  need_version=yes
13182
 
  ;;
13183
 
 
13184
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13185
 
  version_type=linux
13186
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187
 
  soname_spec='${libname}${release}${shared_ext}$major'
13188
 
  shlibpath_var=LD_LIBRARY_PATH
13189
 
  case $host_vendor in
13190
 
    sni)
13191
 
      shlibpath_overrides_runpath=no
13192
 
      need_lib_prefix=no
13193
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13194
 
      runpath_var=LD_RUN_PATH
13195
 
      ;;
13196
 
    siemens)
13197
 
      need_lib_prefix=no
13198
 
      ;;
13199
 
    motorola)
13200
 
      need_lib_prefix=no
13201
 
      need_version=no
13202
 
      shlibpath_overrides_runpath=no
13203
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13204
 
      ;;
13205
 
  esac
13206
 
  ;;
13207
 
 
13208
 
sysv4*MP*)
13209
 
  if test -d /usr/nec ;then
13210
 
    version_type=linux
13211
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13212
 
    soname_spec='$libname${shared_ext}.$major'
13213
 
    shlibpath_var=LD_LIBRARY_PATH
13214
 
  fi
13215
 
  ;;
13216
 
 
13217
 
uts4*)
13218
 
  version_type=linux
13219
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220
 
  soname_spec='${libname}${release}${shared_ext}$major'
13221
 
  shlibpath_var=LD_LIBRARY_PATH
13222
 
  ;;
13223
 
 
13224
 
*)
13225
 
  dynamic_linker=no
13226
 
  ;;
13227
 
esac
13228
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13229
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13230
 
test "$dynamic_linker" = no && can_build_shared=no
13231
 
 
13232
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13233
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13234
 
hardcode_action_CXX=
13235
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236
 
   test -n "$runpath_var CXX" || \
13237
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
13238
 
 
13239
 
  # We can hardcode non-existant directories.
13240
 
  if test "$hardcode_direct_CXX" != no &&
13241
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13242
 
     # have to relink, otherwise we might link with an installed library
13243
 
     # when we should be linking with a yet-to-be-installed one
13244
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245
 
     test "$hardcode_minus_L_CXX" != no; then
13246
 
    # Linking always hardcodes the temporary library directory.
13247
 
    hardcode_action_CXX=relink
13248
 
  else
13249
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13250
 
    hardcode_action_CXX=immediate
13251
 
  fi
13252
 
else
13253
 
  # We cannot hardcode anything, or else we can only hardcode existing
13254
 
  # directories.
13255
 
  hardcode_action_CXX=unsupported
13256
 
fi
13257
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13258
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13259
 
 
13260
 
if test "$hardcode_action_CXX" = relink; then
13261
 
  # Fast installation is not supported
13262
 
  enable_fast_install=no
13263
 
elif test "$shlibpath_overrides_runpath" = yes ||
13264
 
     test "$enable_shared" = no; then
13265
 
  # Fast installation is not necessary
13266
 
  enable_fast_install=needless
13267
 
fi
13268
 
 
13269
 
striplib=
13270
 
old_striplib=
13271
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13272
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13273
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13274
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13275
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13276
 
  { echo "$as_me:$LINENO: result: yes" >&5
13277
 
echo "${ECHO_T}yes" >&6; }
13278
 
else
13279
 
# FIXME - insert some real tests, host_os isn't really good enough
13280
 
  case $host_os in
13281
 
   darwin*)
13282
 
       if test -n "$STRIP" ; then
13283
 
         striplib="$STRIP -x"
13284
 
         { echo "$as_me:$LINENO: result: yes" >&5
13285
 
echo "${ECHO_T}yes" >&6; }
13286
 
       else
13287
 
  { echo "$as_me:$LINENO: result: no" >&5
13288
 
echo "${ECHO_T}no" >&6; }
13289
 
fi
13290
 
       ;;
13291
 
   *)
13292
 
  { echo "$as_me:$LINENO: result: no" >&5
13293
 
echo "${ECHO_T}no" >&6; }
13294
 
    ;;
13295
 
  esac
13296
 
fi
13297
 
 
13298
 
if test "x$enable_dlopen" != xyes; then
13299
 
  enable_dlopen=unknown
13300
 
  enable_dlopen_self=unknown
13301
 
  enable_dlopen_self_static=unknown
13302
 
else
13303
 
  lt_cv_dlopen=no
13304
 
  lt_cv_dlopen_libs=
13305
 
 
13306
 
  case $host_os in
13307
 
  beos*)
13308
 
    lt_cv_dlopen="load_add_on"
13309
 
    lt_cv_dlopen_libs=
13310
 
    lt_cv_dlopen_self=yes
13311
 
    ;;
13312
 
 
13313
 
  mingw* | pw32*)
13314
 
    lt_cv_dlopen="LoadLibrary"
13315
 
    lt_cv_dlopen_libs=
13316
 
   ;;
13317
 
 
13318
 
  cygwin*)
13319
 
    lt_cv_dlopen="dlopen"
13320
 
    lt_cv_dlopen_libs=
13321
 
   ;;
13322
 
 
13323
 
  darwin*)
13324
 
  # if libdl is installed we need to link against it
13325
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13326
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13327
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13329
 
else
13330
 
  ac_check_lib_save_LIBS=$LIBS
13331
 
LIBS="-ldl  $LIBS"
13332
 
cat >conftest.$ac_ext <<_ACEOF
13333
 
/* confdefs.h.  */
13334
 
_ACEOF
13335
 
cat confdefs.h >>conftest.$ac_ext
13336
 
cat >>conftest.$ac_ext <<_ACEOF
13337
 
/* end confdefs.h.  */
13338
 
 
13339
 
/* Override any GCC internal prototype to avoid an error.
13340
 
   Use char because int might match the return type of a GCC
13341
 
   builtin and then its argument prototype would still apply.  */
13342
 
#ifdef __cplusplus
13343
 
extern "C"
13344
 
#endif
13345
 
char dlopen ();
13346
 
int
13347
 
main ()
13348
 
{
13349
 
return dlopen ();
13350
 
  ;
13351
 
  return 0;
13352
 
}
13353
 
_ACEOF
13354
 
rm -f conftest.$ac_objext conftest$ac_exeext
13355
 
if { (ac_try="$ac_link"
13356
 
case "(($ac_try" in
13357
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358
 
  *) ac_try_echo=$ac_try;;
13359
 
esac
13360
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361
 
  (eval "$ac_link") 2>conftest.er1
13362
 
  ac_status=$?
13363
 
  grep -v '^ *+' conftest.er1 >conftest.err
13364
 
  rm -f conftest.er1
13365
 
  cat conftest.err >&5
13366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367
 
  (exit $ac_status); } && {
13368
 
         test -z "$ac_cxx_werror_flag" ||
13369
 
         test ! -s conftest.err
13370
 
       } && test -s conftest$ac_exeext &&
13371
 
       $as_test_x conftest$ac_exeext; then
13372
 
  ac_cv_lib_dl_dlopen=yes
13373
 
else
13374
 
  echo "$as_me: failed program was:" >&5
13375
 
sed 's/^/| /' conftest.$ac_ext >&5
13376
 
 
13377
 
        ac_cv_lib_dl_dlopen=no
13378
 
fi
13379
 
 
13380
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381
 
      conftest$ac_exeext conftest.$ac_ext
13382
 
LIBS=$ac_check_lib_save_LIBS
13383
 
fi
13384
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13385
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13386
 
if test $ac_cv_lib_dl_dlopen = yes; then
13387
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13388
 
else
13389
 
 
13390
 
    lt_cv_dlopen="dyld"
13391
 
    lt_cv_dlopen_libs=
13392
 
    lt_cv_dlopen_self=yes
13393
 
 
13394
 
fi
13395
 
 
13396
 
   ;;
13397
 
 
13398
 
  *)
13399
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
13400
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13401
 
if test "${ac_cv_func_shl_load+set}" = set; then
13402
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13403
 
else
13404
 
  cat >conftest.$ac_ext <<_ACEOF
13405
 
/* confdefs.h.  */
13406
 
_ACEOF
13407
 
cat confdefs.h >>conftest.$ac_ext
13408
 
cat >>conftest.$ac_ext <<_ACEOF
13409
 
/* end confdefs.h.  */
13410
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13411
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13412
 
#define shl_load innocuous_shl_load
13413
 
 
13414
 
/* System header to define __stub macros and hopefully few prototypes,
13415
 
    which can conflict with char shl_load (); below.
13416
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417
 
    <limits.h> exists even on freestanding compilers.  */
13418
 
 
13419
 
#ifdef __STDC__
13420
 
# include <limits.h>
13421
 
#else
13422
 
# include <assert.h>
13423
 
#endif
13424
 
 
13425
 
#undef shl_load
13426
 
 
13427
 
/* Override any GCC internal prototype to avoid an error.
13428
 
   Use char because int might match the return type of a GCC
13429
 
   builtin and then its argument prototype would still apply.  */
13430
 
#ifdef __cplusplus
13431
 
extern "C"
13432
 
#endif
13433
 
char shl_load ();
13434
 
/* The GNU C library defines this for functions which it implements
13435
 
    to always fail with ENOSYS.  Some functions are actually named
13436
 
    something starting with __ and the normal name is an alias.  */
13437
 
#if defined __stub_shl_load || defined __stub___shl_load
13438
 
choke me
13439
 
#endif
13440
 
 
13441
 
int
13442
 
main ()
13443
 
{
13444
 
return shl_load ();
13445
 
  ;
13446
 
  return 0;
13447
 
}
13448
 
_ACEOF
13449
 
rm -f conftest.$ac_objext conftest$ac_exeext
13450
 
if { (ac_try="$ac_link"
13451
 
case "(($ac_try" in
13452
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453
 
  *) ac_try_echo=$ac_try;;
13454
 
esac
13455
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456
 
  (eval "$ac_link") 2>conftest.er1
13457
 
  ac_status=$?
13458
 
  grep -v '^ *+' conftest.er1 >conftest.err
13459
 
  rm -f conftest.er1
13460
 
  cat conftest.err >&5
13461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462
 
  (exit $ac_status); } && {
13463
 
         test -z "$ac_cxx_werror_flag" ||
13464
 
         test ! -s conftest.err
13465
 
       } && test -s conftest$ac_exeext &&
13466
 
       $as_test_x conftest$ac_exeext; then
13467
 
  ac_cv_func_shl_load=yes
13468
 
else
13469
 
  echo "$as_me: failed program was:" >&5
13470
 
sed 's/^/| /' conftest.$ac_ext >&5
13471
 
 
13472
 
        ac_cv_func_shl_load=no
13473
 
fi
13474
 
 
13475
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13476
 
      conftest$ac_exeext conftest.$ac_ext
13477
 
fi
13478
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13479
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13480
 
if test $ac_cv_func_shl_load = yes; then
13481
 
  lt_cv_dlopen="shl_load"
13482
 
else
13483
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13484
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13485
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13486
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13487
 
else
13488
 
  ac_check_lib_save_LIBS=$LIBS
13489
 
LIBS="-ldld  $LIBS"
13490
 
cat >conftest.$ac_ext <<_ACEOF
13491
 
/* confdefs.h.  */
13492
 
_ACEOF
13493
 
cat confdefs.h >>conftest.$ac_ext
13494
 
cat >>conftest.$ac_ext <<_ACEOF
13495
 
/* end confdefs.h.  */
13496
 
 
13497
 
/* Override any GCC internal prototype to avoid an error.
13498
 
   Use char because int might match the return type of a GCC
13499
 
   builtin and then its argument prototype would still apply.  */
13500
 
#ifdef __cplusplus
13501
 
extern "C"
13502
 
#endif
13503
 
char shl_load ();
13504
 
int
13505
 
main ()
13506
 
{
13507
 
return shl_load ();
13508
 
  ;
13509
 
  return 0;
13510
 
}
13511
 
_ACEOF
13512
 
rm -f conftest.$ac_objext conftest$ac_exeext
13513
 
if { (ac_try="$ac_link"
13514
 
case "(($ac_try" in
13515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516
 
  *) ac_try_echo=$ac_try;;
13517
 
esac
13518
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519
 
  (eval "$ac_link") 2>conftest.er1
13520
 
  ac_status=$?
13521
 
  grep -v '^ *+' conftest.er1 >conftest.err
13522
 
  rm -f conftest.er1
13523
 
  cat conftest.err >&5
13524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
 
  (exit $ac_status); } && {
13526
 
         test -z "$ac_cxx_werror_flag" ||
13527
 
         test ! -s conftest.err
13528
 
       } && test -s conftest$ac_exeext &&
13529
 
       $as_test_x conftest$ac_exeext; then
13530
 
  ac_cv_lib_dld_shl_load=yes
13531
 
else
13532
 
  echo "$as_me: failed program was:" >&5
13533
 
sed 's/^/| /' conftest.$ac_ext >&5
13534
 
 
13535
 
        ac_cv_lib_dld_shl_load=no
13536
 
fi
13537
 
 
13538
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13539
 
      conftest$ac_exeext conftest.$ac_ext
13540
 
LIBS=$ac_check_lib_save_LIBS
13541
 
fi
13542
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13543
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13544
 
if test $ac_cv_lib_dld_shl_load = yes; then
13545
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13546
 
else
13547
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
13548
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13549
 
if test "${ac_cv_func_dlopen+set}" = set; then
13550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13551
 
else
13552
 
  cat >conftest.$ac_ext <<_ACEOF
13553
 
/* confdefs.h.  */
13554
 
_ACEOF
13555
 
cat confdefs.h >>conftest.$ac_ext
13556
 
cat >>conftest.$ac_ext <<_ACEOF
13557
 
/* end confdefs.h.  */
13558
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13559
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13560
 
#define dlopen innocuous_dlopen
13561
 
 
13562
 
/* System header to define __stub macros and hopefully few prototypes,
13563
 
    which can conflict with char dlopen (); below.
13564
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565
 
    <limits.h> exists even on freestanding compilers.  */
13566
 
 
13567
 
#ifdef __STDC__
13568
 
# include <limits.h>
13569
 
#else
13570
 
# include <assert.h>
13571
 
#endif
13572
 
 
13573
 
#undef dlopen
13574
 
 
13575
 
/* Override any GCC internal prototype to avoid an error.
13576
 
   Use char because int might match the return type of a GCC
13577
 
   builtin and then its argument prototype would still apply.  */
13578
 
#ifdef __cplusplus
13579
 
extern "C"
13580
 
#endif
13581
 
char dlopen ();
13582
 
/* The GNU C library defines this for functions which it implements
13583
 
    to always fail with ENOSYS.  Some functions are actually named
13584
 
    something starting with __ and the normal name is an alias.  */
13585
 
#if defined __stub_dlopen || defined __stub___dlopen
13586
 
choke me
13587
 
#endif
13588
 
 
13589
 
int
13590
 
main ()
13591
 
{
13592
 
return dlopen ();
13593
 
  ;
13594
 
  return 0;
13595
 
}
13596
 
_ACEOF
13597
 
rm -f conftest.$ac_objext conftest$ac_exeext
13598
 
if { (ac_try="$ac_link"
13599
 
case "(($ac_try" in
13600
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601
 
  *) ac_try_echo=$ac_try;;
13602
 
esac
13603
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604
 
  (eval "$ac_link") 2>conftest.er1
13605
 
  ac_status=$?
13606
 
  grep -v '^ *+' conftest.er1 >conftest.err
13607
 
  rm -f conftest.er1
13608
 
  cat conftest.err >&5
13609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610
 
  (exit $ac_status); } && {
13611
 
         test -z "$ac_cxx_werror_flag" ||
13612
 
         test ! -s conftest.err
13613
 
       } && test -s conftest$ac_exeext &&
13614
 
       $as_test_x conftest$ac_exeext; then
13615
 
  ac_cv_func_dlopen=yes
13616
 
else
13617
 
  echo "$as_me: failed program was:" >&5
13618
 
sed 's/^/| /' conftest.$ac_ext >&5
13619
 
 
13620
 
        ac_cv_func_dlopen=no
13621
 
fi
13622
 
 
13623
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624
 
      conftest$ac_exeext conftest.$ac_ext
13625
 
fi
13626
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13627
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13628
 
if test $ac_cv_func_dlopen = yes; then
13629
 
  lt_cv_dlopen="dlopen"
13630
 
else
13631
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13632
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13633
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13634
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13635
 
else
13636
 
  ac_check_lib_save_LIBS=$LIBS
13637
 
LIBS="-ldl  $LIBS"
13638
 
cat >conftest.$ac_ext <<_ACEOF
13639
 
/* confdefs.h.  */
13640
 
_ACEOF
13641
 
cat confdefs.h >>conftest.$ac_ext
13642
 
cat >>conftest.$ac_ext <<_ACEOF
13643
 
/* end confdefs.h.  */
13644
 
 
13645
 
/* Override any GCC internal prototype to avoid an error.
13646
 
   Use char because int might match the return type of a GCC
13647
 
   builtin and then its argument prototype would still apply.  */
13648
 
#ifdef __cplusplus
13649
 
extern "C"
13650
 
#endif
13651
 
char dlopen ();
13652
 
int
13653
 
main ()
13654
 
{
13655
 
return dlopen ();
13656
 
  ;
13657
 
  return 0;
13658
 
}
13659
 
_ACEOF
13660
 
rm -f conftest.$ac_objext conftest$ac_exeext
13661
 
if { (ac_try="$ac_link"
13662
 
case "(($ac_try" in
13663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664
 
  *) ac_try_echo=$ac_try;;
13665
 
esac
13666
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667
 
  (eval "$ac_link") 2>conftest.er1
13668
 
  ac_status=$?
13669
 
  grep -v '^ *+' conftest.er1 >conftest.err
13670
 
  rm -f conftest.er1
13671
 
  cat conftest.err >&5
13672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673
 
  (exit $ac_status); } && {
13674
 
         test -z "$ac_cxx_werror_flag" ||
13675
 
         test ! -s conftest.err
13676
 
       } && test -s conftest$ac_exeext &&
13677
 
       $as_test_x conftest$ac_exeext; then
13678
 
  ac_cv_lib_dl_dlopen=yes
13679
 
else
13680
 
  echo "$as_me: failed program was:" >&5
13681
 
sed 's/^/| /' conftest.$ac_ext >&5
13682
 
 
13683
 
        ac_cv_lib_dl_dlopen=no
13684
 
fi
13685
 
 
13686
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13687
 
      conftest$ac_exeext conftest.$ac_ext
13688
 
LIBS=$ac_check_lib_save_LIBS
13689
 
fi
13690
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13691
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13692
 
if test $ac_cv_lib_dl_dlopen = yes; then
13693
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13694
 
else
13695
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13696
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13697
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13698
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13699
 
else
13700
 
  ac_check_lib_save_LIBS=$LIBS
13701
 
LIBS="-lsvld  $LIBS"
13702
 
cat >conftest.$ac_ext <<_ACEOF
13703
 
/* confdefs.h.  */
13704
 
_ACEOF
13705
 
cat confdefs.h >>conftest.$ac_ext
13706
 
cat >>conftest.$ac_ext <<_ACEOF
13707
 
/* end confdefs.h.  */
13708
 
 
13709
 
/* Override any GCC internal prototype to avoid an error.
13710
 
   Use char because int might match the return type of a GCC
13711
 
   builtin and then its argument prototype would still apply.  */
13712
 
#ifdef __cplusplus
13713
 
extern "C"
13714
 
#endif
13715
 
char dlopen ();
13716
 
int
13717
 
main ()
13718
 
{
13719
 
return dlopen ();
13720
 
  ;
13721
 
  return 0;
13722
 
}
13723
 
_ACEOF
13724
 
rm -f conftest.$ac_objext conftest$ac_exeext
13725
 
if { (ac_try="$ac_link"
13726
 
case "(($ac_try" in
13727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728
 
  *) ac_try_echo=$ac_try;;
13729
 
esac
13730
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731
 
  (eval "$ac_link") 2>conftest.er1
13732
 
  ac_status=$?
13733
 
  grep -v '^ *+' conftest.er1 >conftest.err
13734
 
  rm -f conftest.er1
13735
 
  cat conftest.err >&5
13736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
 
  (exit $ac_status); } && {
13738
 
         test -z "$ac_cxx_werror_flag" ||
13739
 
         test ! -s conftest.err
13740
 
       } && test -s conftest$ac_exeext &&
13741
 
       $as_test_x conftest$ac_exeext; then
13742
 
  ac_cv_lib_svld_dlopen=yes
13743
 
else
13744
 
  echo "$as_me: failed program was:" >&5
13745
 
sed 's/^/| /' conftest.$ac_ext >&5
13746
 
 
13747
 
        ac_cv_lib_svld_dlopen=no
13748
 
fi
13749
 
 
13750
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751
 
      conftest$ac_exeext conftest.$ac_ext
13752
 
LIBS=$ac_check_lib_save_LIBS
13753
 
fi
13754
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13755
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13756
 
if test $ac_cv_lib_svld_dlopen = yes; then
13757
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13758
 
else
13759
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13760
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13761
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13762
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13763
 
else
13764
 
  ac_check_lib_save_LIBS=$LIBS
13765
 
LIBS="-ldld  $LIBS"
13766
 
cat >conftest.$ac_ext <<_ACEOF
13767
 
/* confdefs.h.  */
13768
 
_ACEOF
13769
 
cat confdefs.h >>conftest.$ac_ext
13770
 
cat >>conftest.$ac_ext <<_ACEOF
13771
 
/* end confdefs.h.  */
13772
 
 
13773
 
/* Override any GCC internal prototype to avoid an error.
13774
 
   Use char because int might match the return type of a GCC
13775
 
   builtin and then its argument prototype would still apply.  */
13776
 
#ifdef __cplusplus
13777
 
extern "C"
13778
 
#endif
13779
 
char dld_link ();
13780
 
int
13781
 
main ()
13782
 
{
13783
 
return dld_link ();
13784
 
  ;
13785
 
  return 0;
13786
 
}
13787
 
_ACEOF
13788
 
rm -f conftest.$ac_objext conftest$ac_exeext
13789
 
if { (ac_try="$ac_link"
13790
 
case "(($ac_try" in
13791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792
 
  *) ac_try_echo=$ac_try;;
13793
 
esac
13794
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795
 
  (eval "$ac_link") 2>conftest.er1
13796
 
  ac_status=$?
13797
 
  grep -v '^ *+' conftest.er1 >conftest.err
13798
 
  rm -f conftest.er1
13799
 
  cat conftest.err >&5
13800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801
 
  (exit $ac_status); } && {
13802
 
         test -z "$ac_cxx_werror_flag" ||
13803
 
         test ! -s conftest.err
13804
 
       } && test -s conftest$ac_exeext &&
13805
 
       $as_test_x conftest$ac_exeext; then
13806
 
  ac_cv_lib_dld_dld_link=yes
13807
 
else
13808
 
  echo "$as_me: failed program was:" >&5
13809
 
sed 's/^/| /' conftest.$ac_ext >&5
13810
 
 
13811
 
        ac_cv_lib_dld_dld_link=no
13812
 
fi
13813
 
 
13814
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13815
 
      conftest$ac_exeext conftest.$ac_ext
13816
 
LIBS=$ac_check_lib_save_LIBS
13817
 
fi
13818
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13819
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13820
 
if test $ac_cv_lib_dld_dld_link = yes; then
13821
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13822
 
fi
13823
 
 
13824
 
 
13825
 
fi
13826
 
 
13827
 
 
13828
 
fi
13829
 
 
13830
 
 
13831
 
fi
13832
 
 
13833
 
 
13834
 
fi
13835
 
 
13836
 
 
13837
 
fi
13838
 
 
13839
 
    ;;
13840
 
  esac
13841
 
 
13842
 
  if test "x$lt_cv_dlopen" != xno; then
13843
 
    enable_dlopen=yes
13844
 
  else
13845
 
    enable_dlopen=no
13846
 
  fi
13847
 
 
13848
 
  case $lt_cv_dlopen in
13849
 
  dlopen)
13850
 
    save_CPPFLAGS="$CPPFLAGS"
13851
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13852
 
 
13853
 
    save_LDFLAGS="$LDFLAGS"
13854
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13855
 
 
13856
 
    save_LIBS="$LIBS"
13857
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
13858
 
 
13859
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13860
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13861
 
if test "${lt_cv_dlopen_self+set}" = set; then
13862
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13863
 
else
13864
 
          if test "$cross_compiling" = yes; then :
13865
 
  lt_cv_dlopen_self=cross
13866
 
else
13867
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13868
 
  lt_status=$lt_dlunknown
13869
 
  cat > conftest.$ac_ext <<EOF
13870
 
#line 13870 "configure"
13871
 
#include "confdefs.h"
13872
 
 
13873
 
#if HAVE_DLFCN_H
13874
 
#include <dlfcn.h>
13875
 
#endif
13876
 
 
13877
 
#include <stdio.h>
13878
 
 
13879
 
#ifdef RTLD_GLOBAL
13880
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13881
 
#else
13882
 
#  ifdef DL_GLOBAL
13883
 
#    define LT_DLGLOBAL         DL_GLOBAL
13884
 
#  else
13885
 
#    define LT_DLGLOBAL         0
13886
 
#  endif
13887
 
#endif
13888
 
 
13889
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13890
 
   find out it does not work in some platform. */
13891
 
#ifndef LT_DLLAZY_OR_NOW
13892
 
#  ifdef RTLD_LAZY
13893
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13894
 
#  else
13895
 
#    ifdef DL_LAZY
13896
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13897
 
#    else
13898
 
#      ifdef RTLD_NOW
13899
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13900
 
#      else
13901
 
#        ifdef DL_NOW
13902
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13903
 
#        else
13904
 
#          define LT_DLLAZY_OR_NOW      0
13905
 
#        endif
13906
 
#      endif
13907
 
#    endif
13908
 
#  endif
13909
 
#endif
13910
 
 
13911
 
#ifdef __cplusplus
13912
 
extern "C" void exit (int);
13913
 
#endif
13914
 
 
13915
 
void fnord() { int i=42;}
13916
 
int main ()
13917
 
{
13918
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13919
 
  int status = $lt_dlunknown;
13920
 
 
13921
 
  if (self)
13922
 
    {
13923
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13924
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13925
 
      /* dlclose (self); */
13926
 
    }
13927
 
 
13928
 
    exit (status);
13929
 
}
13930
 
EOF
13931
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932
 
  (eval $ac_link) 2>&5
13933
 
  ac_status=$?
13934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13936
 
    (./conftest; exit; ) 2>/dev/null
13937
 
    lt_status=$?
13938
 
    case x$lt_status in
13939
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13940
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13941
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13942
 
    esac
13943
 
  else :
13944
 
    # compilation failed
13945
 
    lt_cv_dlopen_self=no
13946
 
  fi
13947
 
fi
13948
 
rm -fr conftest*
13949
 
 
13950
 
 
13951
 
fi
13952
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13953
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13954
 
 
13955
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13956
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13957
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13958
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13959
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13961
 
else
13962
 
          if test "$cross_compiling" = yes; then :
13963
 
  lt_cv_dlopen_self_static=cross
13964
 
else
13965
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13966
 
  lt_status=$lt_dlunknown
13967
 
  cat > conftest.$ac_ext <<EOF
13968
 
#line 13968 "configure"
13969
 
#include "confdefs.h"
13970
 
 
13971
 
#if HAVE_DLFCN_H
13972
 
#include <dlfcn.h>
13973
 
#endif
13974
 
 
13975
 
#include <stdio.h>
13976
 
 
13977
 
#ifdef RTLD_GLOBAL
13978
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13979
 
#else
13980
 
#  ifdef DL_GLOBAL
13981
 
#    define LT_DLGLOBAL         DL_GLOBAL
13982
 
#  else
13983
 
#    define LT_DLGLOBAL         0
13984
 
#  endif
13985
 
#endif
13986
 
 
13987
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13988
 
   find out it does not work in some platform. */
13989
 
#ifndef LT_DLLAZY_OR_NOW
13990
 
#  ifdef RTLD_LAZY
13991
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13992
 
#  else
13993
 
#    ifdef DL_LAZY
13994
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13995
 
#    else
13996
 
#      ifdef RTLD_NOW
13997
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13998
 
#      else
13999
 
#        ifdef DL_NOW
14000
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
14001
 
#        else
14002
 
#          define LT_DLLAZY_OR_NOW      0
14003
 
#        endif
14004
 
#      endif
14005
 
#    endif
14006
 
#  endif
14007
 
#endif
14008
 
 
14009
 
#ifdef __cplusplus
14010
 
extern "C" void exit (int);
14011
 
#endif
14012
 
 
14013
 
void fnord() { int i=42;}
14014
 
int main ()
14015
 
{
14016
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017
 
  int status = $lt_dlunknown;
14018
 
 
14019
 
  if (self)
14020
 
    {
14021
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14022
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14023
 
      /* dlclose (self); */
14024
 
    }
14025
 
 
14026
 
    exit (status);
14027
 
}
14028
 
EOF
14029
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030
 
  (eval $ac_link) 2>&5
14031
 
  ac_status=$?
14032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14034
 
    (./conftest; exit; ) 2>/dev/null
14035
 
    lt_status=$?
14036
 
    case x$lt_status in
14037
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14038
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14039
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14040
 
    esac
14041
 
  else :
14042
 
    # compilation failed
14043
 
    lt_cv_dlopen_self_static=no
14044
 
  fi
14045
 
fi
14046
 
rm -fr conftest*
14047
 
 
14048
 
 
14049
 
fi
14050
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14051
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14052
 
    fi
14053
 
 
14054
 
    CPPFLAGS="$save_CPPFLAGS"
14055
 
    LDFLAGS="$save_LDFLAGS"
14056
 
    LIBS="$save_LIBS"
14057
 
    ;;
14058
 
  esac
14059
 
 
14060
 
  case $lt_cv_dlopen_self in
14061
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14062
 
  *) enable_dlopen_self=unknown ;;
14063
 
  esac
14064
 
 
14065
 
  case $lt_cv_dlopen_self_static in
14066
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14067
 
  *) enable_dlopen_self_static=unknown ;;
14068
 
  esac
14069
 
fi
14070
 
 
14071
 
 
14072
 
# The else clause should only fire when bootstrapping the
14073
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14074
 
# with your package, and you will get complaints that there are
14075
 
# no rules to generate ltmain.sh.
14076
 
if test -f "$ltmain"; then
14077
 
  # See if we are running on zsh, and set the options which allow our commands through
14078
 
  # without removal of \ escapes.
14079
 
  if test -n "${ZSH_VERSION+set}" ; then
14080
 
    setopt NO_GLOB_SUBST
14081
 
  fi
14082
 
  # Now quote all the things that may contain metacharacters while being
14083
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14084
 
  # variables and quote the copies for generation of the libtool script.
14085
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14086
 
    SED SHELL STRIP \
14087
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14088
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14089
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14090
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14091
 
    lt_cv_sys_global_symbol_to_c_name_address \
14092
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14093
 
    old_postinstall_cmds old_postuninstall_cmds \
14094
 
    compiler_CXX \
14095
 
    CC_CXX \
14096
 
    LD_CXX \
14097
 
    lt_prog_compiler_wl_CXX \
14098
 
    lt_prog_compiler_pic_CXX \
14099
 
    lt_prog_compiler_static_CXX \
14100
 
    lt_prog_compiler_no_builtin_flag_CXX \
14101
 
    export_dynamic_flag_spec_CXX \
14102
 
    thread_safe_flag_spec_CXX \
14103
 
    whole_archive_flag_spec_CXX \
14104
 
    enable_shared_with_static_runtimes_CXX \
14105
 
    old_archive_cmds_CXX \
14106
 
    old_archive_from_new_cmds_CXX \
14107
 
    predep_objects_CXX \
14108
 
    postdep_objects_CXX \
14109
 
    predeps_CXX \
14110
 
    postdeps_CXX \
14111
 
    compiler_lib_search_path_CXX \
14112
 
    archive_cmds_CXX \
14113
 
    archive_expsym_cmds_CXX \
14114
 
    postinstall_cmds_CXX \
14115
 
    postuninstall_cmds_CXX \
14116
 
    old_archive_from_expsyms_cmds_CXX \
14117
 
    allow_undefined_flag_CXX \
14118
 
    no_undefined_flag_CXX \
14119
 
    export_symbols_cmds_CXX \
14120
 
    hardcode_libdir_flag_spec_CXX \
14121
 
    hardcode_libdir_flag_spec_ld_CXX \
14122
 
    hardcode_libdir_separator_CXX \
14123
 
    hardcode_automatic_CXX \
14124
 
    module_cmds_CXX \
14125
 
    module_expsym_cmds_CXX \
14126
 
    lt_cv_prog_compiler_c_o_CXX \
14127
 
    exclude_expsyms_CXX \
14128
 
    include_expsyms_CXX; do
14129
 
 
14130
 
    case $var in
14131
 
    old_archive_cmds_CXX | \
14132
 
    old_archive_from_new_cmds_CXX | \
14133
 
    archive_cmds_CXX | \
14134
 
    archive_expsym_cmds_CXX | \
14135
 
    module_cmds_CXX | \
14136
 
    module_expsym_cmds_CXX | \
14137
 
    old_archive_from_expsyms_cmds_CXX | \
14138
 
    export_symbols_cmds_CXX | \
14139
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14140
 
    postinstall_cmds | postuninstall_cmds | \
14141
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14142
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14143
 
      # Double-quote double-evaled strings.
14144
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14145
 
      ;;
14146
 
    *)
14147
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14148
 
      ;;
14149
 
    esac
14150
 
  done
14151
 
 
14152
 
  case $lt_echo in
14153
 
  *'\$0 --fallback-echo"')
14154
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14155
 
    ;;
14156
 
  esac
14157
 
 
14158
 
cfgfile="$ofile"
14159
 
 
14160
 
  cat <<__EOF__ >> "$cfgfile"
14161
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14162
 
 
14163
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14164
 
 
14165
 
# Shell to use when invoking shell scripts.
14166
 
SHELL=$lt_SHELL
14167
 
 
14168
 
# Whether or not to build shared libraries.
14169
 
build_libtool_libs=$enable_shared
14170
 
 
14171
 
# Whether or not to build static libraries.
14172
 
build_old_libs=$enable_static
14173
 
 
14174
 
# Whether or not to add -lc for building shared libraries.
14175
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14176
 
 
14177
 
# Whether or not to disallow shared libs when runtime libs are static
14178
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14179
 
 
14180
 
# Whether or not to optimize for fast installation.
14181
 
fast_install=$enable_fast_install
14182
 
 
14183
 
# The host system.
14184
 
host_alias=$host_alias
14185
 
host=$host
14186
 
 
14187
 
# An echo program that does not interpret backslashes.
14188
 
echo=$lt_echo
14189
 
 
14190
 
# The archiver.
14191
 
AR=$lt_AR
14192
 
AR_FLAGS=$lt_AR_FLAGS
14193
 
 
14194
 
# A C compiler.
14195
 
LTCC=$lt_LTCC
14196
 
 
14197
 
# A language-specific compiler.
14198
 
CC=$lt_compiler_CXX
14199
 
 
14200
 
# Is the compiler the GNU C compiler?
14201
 
with_gcc=$GCC_CXX
14202
 
 
14203
 
# An ERE matcher.
14204
 
EGREP=$lt_EGREP
14205
 
 
14206
 
# The linker used to build libraries.
14207
 
LD=$lt_LD_CXX
14208
 
 
14209
 
# Whether we need hard or soft links.
14210
 
LN_S=$lt_LN_S
14211
 
 
14212
 
# A BSD-compatible nm program.
14213
 
NM=$lt_NM
14214
 
 
14215
 
# A symbol stripping program
14216
 
STRIP=$lt_STRIP
14217
 
 
14218
 
# Used to examine libraries when file_magic_cmd begins "file"
14219
 
MAGIC_CMD=$MAGIC_CMD
14220
 
 
14221
 
# Used on cygwin: DLL creation program.
14222
 
DLLTOOL="$DLLTOOL"
14223
 
 
14224
 
# Used on cygwin: object dumper.
14225
 
OBJDUMP="$OBJDUMP"
14226
 
 
14227
 
# Used on cygwin: assembler.
14228
 
AS="$AS"
14229
 
 
14230
 
# The name of the directory that contains temporary libtool files.
14231
 
objdir=$objdir
14232
 
 
14233
 
# How to create reloadable object files.
14234
 
reload_flag=$lt_reload_flag
14235
 
reload_cmds=$lt_reload_cmds
14236
 
 
14237
 
# How to pass a linker flag through the compiler.
14238
 
wl=$lt_lt_prog_compiler_wl_CXX
14239
 
 
14240
 
# Object file suffix (normally "o").
14241
 
objext="$ac_objext"
14242
 
 
14243
 
# Old archive suffix (normally "a").
14244
 
libext="$libext"
14245
 
 
14246
 
# Shared library suffix (normally ".so").
14247
 
shrext_cmds='$shrext_cmds'
14248
 
 
14249
 
# Executable file suffix (normally "").
14250
 
exeext="$exeext"
14251
 
 
14252
 
# Additional compiler flags for building library objects.
14253
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14254
 
pic_mode=$pic_mode
14255
 
 
14256
 
# What is the maximum length of a command?
14257
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14258
 
 
14259
 
# Does compiler simultaneously support -c and -o options?
14260
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14261
 
 
14262
 
# Must we lock files when doing compilation ?
14263
 
need_locks=$lt_need_locks
14264
 
 
14265
 
# Do we need the lib prefix for modules?
14266
 
need_lib_prefix=$need_lib_prefix
14267
 
 
14268
 
# Do we need a version for libraries?
14269
 
need_version=$need_version
14270
 
 
14271
 
# Whether dlopen is supported.
14272
 
dlopen_support=$enable_dlopen
14273
 
 
14274
 
# Whether dlopen of programs is supported.
14275
 
dlopen_self=$enable_dlopen_self
14276
 
 
14277
 
# Whether dlopen of statically linked programs is supported.
14278
 
dlopen_self_static=$enable_dlopen_self_static
14279
 
 
14280
 
# Compiler flag to prevent dynamic linking.
14281
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14282
 
 
14283
 
# Compiler flag to turn off builtin functions.
14284
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14285
 
 
14286
 
# Compiler flag to allow reflexive dlopens.
14287
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14288
 
 
14289
 
# Compiler flag to generate shared objects directly from archives.
14290
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14291
 
 
14292
 
# Compiler flag to generate thread-safe objects.
14293
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14294
 
 
14295
 
# Library versioning type.
14296
 
version_type=$version_type
14297
 
 
14298
 
# Format of library name prefix.
14299
 
libname_spec=$lt_libname_spec
14300
 
 
14301
 
# List of archive names.  First name is the real one, the rest are links.
14302
 
# The last name is the one that the linker finds with -lNAME.
14303
 
library_names_spec=$lt_library_names_spec
14304
 
 
14305
 
# The coded name of the library, if different from the real name.
14306
 
soname_spec=$lt_soname_spec
14307
 
 
14308
 
# Commands used to build and install an old-style archive.
14309
 
RANLIB=$lt_RANLIB
14310
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14311
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14312
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14313
 
 
14314
 
# Create an old-style archive from a shared archive.
14315
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14316
 
 
14317
 
# Create a temporary old-style archive to link instead of a shared archive.
14318
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14319
 
 
14320
 
# Commands used to build and install a shared archive.
14321
 
archive_cmds=$lt_archive_cmds_CXX
14322
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14323
 
postinstall_cmds=$lt_postinstall_cmds
14324
 
postuninstall_cmds=$lt_postuninstall_cmds
14325
 
 
14326
 
# Commands used to build a loadable module (assumed same as above if empty)
14327
 
module_cmds=$lt_module_cmds_CXX
14328
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14329
 
 
14330
 
# Commands to strip libraries.
14331
 
old_striplib=$lt_old_striplib
14332
 
striplib=$lt_striplib
14333
 
 
14334
 
# Dependencies to place before the objects being linked to create a
14335
 
# shared library.
14336
 
predep_objects=$lt_predep_objects_CXX
14337
 
 
14338
 
# Dependencies to place after the objects being linked to create a
14339
 
# shared library.
14340
 
postdep_objects=$lt_postdep_objects_CXX
14341
 
 
14342
 
# Dependencies to place before the objects being linked to create a
14343
 
# shared library.
14344
 
predeps=$lt_predeps_CXX
14345
 
 
14346
 
# Dependencies to place after the objects being linked to create a
14347
 
# shared library.
14348
 
postdeps=$lt_postdeps_CXX
14349
 
 
14350
 
# The library search path used internally by the compiler when linking
14351
 
# a shared library.
14352
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14353
 
 
14354
 
# Method to check whether dependent libraries are shared objects.
14355
 
deplibs_check_method=$lt_deplibs_check_method
14356
 
 
14357
 
# Command to use when deplibs_check_method == file_magic.
14358
 
file_magic_cmd=$lt_file_magic_cmd
14359
 
 
14360
 
# Flag that allows shared libraries with undefined symbols to be built.
14361
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14362
 
 
14363
 
# Flag that forces no undefined symbols.
14364
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14365
 
 
14366
 
# Commands used to finish a libtool library installation in a directory.
14367
 
finish_cmds=$lt_finish_cmds
14368
 
 
14369
 
# Same as above, but a single script fragment to be evaled but not shown.
14370
 
finish_eval=$lt_finish_eval
14371
 
 
14372
 
# Take the output of nm and produce a listing of raw symbols and C names.
14373
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14374
 
 
14375
 
# Transform the output of nm in a proper C declaration
14376
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14377
 
 
14378
 
# Transform the output of nm in a C name address pair
14379
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14380
 
 
14381
 
# This is the shared library runtime path variable.
14382
 
runpath_var=$runpath_var
14383
 
 
14384
 
# This is the shared library path variable.
14385
 
shlibpath_var=$shlibpath_var
14386
 
 
14387
 
# Is shlibpath searched before the hard-coded library search path?
14388
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14389
 
 
14390
 
# How to hardcode a shared library path into an executable.
14391
 
hardcode_action=$hardcode_action_CXX
14392
 
 
14393
 
# Whether we should hardcode library paths into libraries.
14394
 
hardcode_into_libs=$hardcode_into_libs
14395
 
 
14396
 
# Flag to hardcode \$libdir into a binary during linking.
14397
 
# This must work even if \$libdir does not exist.
14398
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14399
 
 
14400
 
# If ld is used when linking, flag to hardcode \$libdir into
14401
 
# a binary during linking. This must work even if \$libdir does
14402
 
# not exist.
14403
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14404
 
 
14405
 
# Whether we need a single -rpath flag with a separated argument.
14406
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14407
 
 
14408
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14409
 
# resulting binary.
14410
 
hardcode_direct=$hardcode_direct_CXX
14411
 
 
14412
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14413
 
# resulting binary.
14414
 
hardcode_minus_L=$hardcode_minus_L_CXX
14415
 
 
14416
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14417
 
# the resulting binary.
14418
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14419
 
 
14420
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14421
 
# and all subsequent libraries and executables linked against it.
14422
 
hardcode_automatic=$hardcode_automatic_CXX
14423
 
 
14424
 
# Variables whose values should be saved in libtool wrapper scripts and
14425
 
# restored at relink time.
14426
 
variables_saved_for_relink="$variables_saved_for_relink"
14427
 
 
14428
 
# Whether libtool must link a program against all its dependency libraries.
14429
 
link_all_deplibs=$link_all_deplibs_CXX
14430
 
 
14431
 
# Compile-time system search path for libraries
14432
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14433
 
 
14434
 
# Run-time system search path for libraries
14435
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14436
 
 
14437
 
# Fix the shell variable \$srcfile for the compiler.
14438
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14439
 
 
14440
 
# Set to yes if exported symbols are required.
14441
 
always_export_symbols=$always_export_symbols_CXX
14442
 
 
14443
 
# The commands to list exported symbols.
14444
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14445
 
 
14446
 
# The commands to extract the exported symbol list from a shared archive.
14447
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14448
 
 
14449
 
# Symbols that should not be listed in the preloaded symbols.
14450
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14451
 
 
14452
 
# Symbols that must always be exported.
14453
 
include_expsyms=$lt_include_expsyms_CXX
14454
 
 
14455
 
# ### END LIBTOOL TAG CONFIG: $tagname
14456
 
 
14457
 
__EOF__
14458
 
 
14459
 
 
14460
 
else
14461
 
  # If there is no Makefile yet, we rely on a make rule to execute
14462
 
  # `config.status --recheck' to rerun these tests and create the
14463
 
  # libtool script then.
14464
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14465
 
  if test -f "$ltmain_in"; then
14466
 
    test -f Makefile && make "$ltmain"
14467
 
  fi
14468
 
fi
14469
 
 
14470
 
 
14471
 
ac_ext=c
14472
 
ac_cpp='$CPP $CPPFLAGS'
14473
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476
 
 
14477
 
CC=$lt_save_CC
14478
 
LDCXX=$LD
14479
 
LD=$lt_save_LD
14480
 
GCC=$lt_save_GCC
14481
 
with_gnu_ldcxx=$with_gnu_ld
14482
 
with_gnu_ld=$lt_save_with_gnu_ld
14483
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14484
 
lt_cv_path_LD=$lt_save_path_LD
14485
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14486
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14487
 
 
14488
 
        else
14489
 
          tagname=""
14490
 
        fi
14491
 
        ;;
14492
 
 
14493
 
      F77)
14494
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14495
 
 
14496
 
ac_ext=f
14497
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14498
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14500
 
 
14501
 
 
14502
 
archive_cmds_need_lc_F77=no
14503
 
allow_undefined_flag_F77=
14504
 
always_export_symbols_F77=no
14505
 
archive_expsym_cmds_F77=
14506
 
export_dynamic_flag_spec_F77=
14507
 
hardcode_direct_F77=no
14508
 
hardcode_libdir_flag_spec_F77=
14509
 
hardcode_libdir_flag_spec_ld_F77=
14510
 
hardcode_libdir_separator_F77=
14511
 
hardcode_minus_L_F77=no
14512
 
hardcode_automatic_F77=no
14513
 
module_cmds_F77=
14514
 
module_expsym_cmds_F77=
14515
 
link_all_deplibs_F77=unknown
14516
 
old_archive_cmds_F77=$old_archive_cmds
14517
 
no_undefined_flag_F77=
14518
 
whole_archive_flag_spec_F77=
14519
 
enable_shared_with_static_runtimes_F77=no
14520
 
 
14521
 
# Source file extension for f77 test sources.
14522
 
ac_ext=f
14523
 
 
14524
 
# Object file extension for compiled f77 test sources.
14525
 
objext=o
14526
 
objext_F77=$objext
14527
 
 
14528
 
# Code to be used in simple compile tests
14529
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14530
 
 
14531
 
# Code to be used in simple link tests
14532
 
lt_simple_link_test_code="      program t\n      end\n"
14533
 
 
14534
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14535
 
 
14536
 
# If no C compiler was specified, use CC.
14537
 
LTCC=${LTCC-"$CC"}
14538
 
 
14539
 
# Allow CC to be a program name with arguments.
14540
 
compiler=$CC
14541
 
 
14542
 
 
14543
 
# Allow CC to be a program name with arguments.
14544
 
lt_save_CC="$CC"
14545
 
CC=${F77-"f77"}
14546
 
compiler=$CC
14547
 
compiler_F77=$CC
14548
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14549
 
 
14550
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14551
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14552
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14553
 
echo "${ECHO_T}$can_build_shared" >&6; }
14554
 
 
14555
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14556
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14557
 
test "$can_build_shared" = "no" && enable_shared=no
14558
 
 
14559
 
# On AIX, shared libraries and static libraries use the same namespace, and
14560
 
# are all built from PIC.
14561
 
case "$host_os" in
14562
 
aix3*)
14563
 
  test "$enable_shared" = yes && enable_static=no
14564
 
  if test -n "$RANLIB"; then
14565
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14566
 
    postinstall_cmds='$RANLIB $lib'
14567
 
  fi
14568
 
  ;;
14569
 
aix4* | aix5*)
14570
 
  test "$enable_shared" = yes && enable_static=no
14571
 
  ;;
14572
 
esac
14573
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14574
 
echo "${ECHO_T}$enable_shared" >&6; }
14575
 
 
14576
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14577
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14578
 
# Make sure either enable_shared or enable_static is yes.
14579
 
test "$enable_shared" = yes || enable_static=yes
14580
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14581
 
echo "${ECHO_T}$enable_static" >&6; }
14582
 
 
14583
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14584
 
 
14585
 
GCC_F77="$G77"
14586
 
LD_F77="$LD"
14587
 
 
14588
 
lt_prog_compiler_wl_F77=
14589
 
lt_prog_compiler_pic_F77=
14590
 
lt_prog_compiler_static_F77=
14591
 
 
14592
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14593
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14594
 
 
14595
 
  if test "$GCC" = yes; then
14596
 
    lt_prog_compiler_wl_F77='-Wl,'
14597
 
    lt_prog_compiler_static_F77='-static'
14598
 
 
14599
 
    case $host_os in
14600
 
      aix*)
14601
 
      # All AIX code is PIC.
14602
 
      if test "$host_cpu" = ia64; then
14603
 
        # AIX 5 now supports IA64 processor
14604
 
        lt_prog_compiler_static_F77='-Bstatic'
14605
 
      fi
14606
 
      ;;
14607
 
 
14608
 
    amigaos*)
14609
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14610
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14611
 
      # like `-m68040'.
14612
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14613
 
      ;;
14614
 
 
14615
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14616
 
      # PIC is the default for these OSes.
14617
 
      ;;
14618
 
 
14619
 
    mingw* | pw32* | os2*)
14620
 
      # This hack is so that the source file can tell whether it is being
14621
 
      # built for inclusion in a dll (and should export symbols for example).
14622
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14623
 
      ;;
14624
 
 
14625
 
    darwin* | rhapsody*)
14626
 
      # PIC is the default on this platform
14627
 
      # Common symbols not allowed in MH_DYLIB files
14628
 
      lt_prog_compiler_pic_F77='-fno-common'
14629
 
      ;;
14630
 
 
14631
 
    msdosdjgpp*)
14632
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14633
 
      # on systems that don't support them.
14634
 
      lt_prog_compiler_can_build_shared_F77=no
14635
 
      enable_shared=no
14636
 
      ;;
14637
 
 
14638
 
    sysv4*MP*)
14639
 
      if test -d /usr/nec; then
14640
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14641
 
      fi
14642
 
      ;;
14643
 
 
14644
 
    hpux*)
14645
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14646
 
      # not for PA HP-UX.
14647
 
      case "$host_cpu" in
14648
 
      hppa*64*|ia64*)
14649
 
        # +Z the default
14650
 
        ;;
14651
 
      *)
14652
 
        lt_prog_compiler_pic_F77='-fPIC'
14653
 
        ;;
14654
 
      esac
14655
 
      ;;
14656
 
 
14657
 
    *)
14658
 
      lt_prog_compiler_pic_F77='-fPIC'
14659
 
      ;;
14660
 
    esac
14661
 
  else
14662
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14663
 
    case $host_os in
14664
 
    aix*)
14665
 
      lt_prog_compiler_wl_F77='-Wl,'
14666
 
      if test "$host_cpu" = ia64; then
14667
 
        # AIX 5 now supports IA64 processor
14668
 
        lt_prog_compiler_static_F77='-Bstatic'
14669
 
      else
14670
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14671
 
      fi
14672
 
      ;;
14673
 
 
14674
 
    mingw* | pw32* | os2*)
14675
 
      # This hack is so that the source file can tell whether it is being
14676
 
      # built for inclusion in a dll (and should export symbols for example).
14677
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14678
 
      ;;
14679
 
 
14680
 
    hpux9* | hpux10* | hpux11*)
14681
 
      lt_prog_compiler_wl_F77='-Wl,'
14682
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683
 
      # not for PA HP-UX.
14684
 
      case "$host_cpu" in
14685
 
      hppa*64*|ia64*)
14686
 
        # +Z the default
14687
 
        ;;
14688
 
      *)
14689
 
        lt_prog_compiler_pic_F77='+Z'
14690
 
        ;;
14691
 
      esac
14692
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14694
 
      ;;
14695
 
 
14696
 
    irix5* | irix6* | nonstopux*)
14697
 
      lt_prog_compiler_wl_F77='-Wl,'
14698
 
      # PIC (with -KPIC) is the default.
14699
 
      lt_prog_compiler_static_F77='-non_shared'
14700
 
      ;;
14701
 
 
14702
 
    newsos6)
14703
 
      lt_prog_compiler_pic_F77='-KPIC'
14704
 
      lt_prog_compiler_static_F77='-Bstatic'
14705
 
      ;;
14706
 
 
14707
 
    linux*)
14708
 
      case $CC in
14709
 
      icc* | ecc*)
14710
 
        lt_prog_compiler_wl_F77='-Wl,'
14711
 
        lt_prog_compiler_pic_F77='-KPIC'
14712
 
        lt_prog_compiler_static_F77='-static'
14713
 
        ;;
14714
 
      ccc*)
14715
 
        lt_prog_compiler_wl_F77='-Wl,'
14716
 
        # All Alpha code is PIC.
14717
 
        lt_prog_compiler_static_F77='-non_shared'
14718
 
        ;;
14719
 
      esac
14720
 
      ;;
14721
 
 
14722
 
    osf3* | osf4* | osf5*)
14723
 
      lt_prog_compiler_wl_F77='-Wl,'
14724
 
      # All OSF/1 code is PIC.
14725
 
      lt_prog_compiler_static_F77='-non_shared'
14726
 
      ;;
14727
 
 
14728
 
    sco3.2v5*)
14729
 
      lt_prog_compiler_pic_F77='-Kpic'
14730
 
      lt_prog_compiler_static_F77='-dn'
14731
 
      ;;
14732
 
 
14733
 
    solaris*)
14734
 
      lt_prog_compiler_wl_F77='-Wl,'
14735
 
      lt_prog_compiler_pic_F77='-KPIC'
14736
 
      lt_prog_compiler_static_F77='-Bstatic'
14737
 
      ;;
14738
 
 
14739
 
    sunos4*)
14740
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14741
 
      lt_prog_compiler_pic_F77='-PIC'
14742
 
      lt_prog_compiler_static_F77='-Bstatic'
14743
 
      ;;
14744
 
 
14745
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14746
 
      lt_prog_compiler_wl_F77='-Wl,'
14747
 
      lt_prog_compiler_pic_F77='-KPIC'
14748
 
      lt_prog_compiler_static_F77='-Bstatic'
14749
 
      ;;
14750
 
 
14751
 
    sysv4*MP*)
14752
 
      if test -d /usr/nec ;then
14753
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14754
 
        lt_prog_compiler_static_F77='-Bstatic'
14755
 
      fi
14756
 
      ;;
14757
 
 
14758
 
    uts4*)
14759
 
      lt_prog_compiler_pic_F77='-pic'
14760
 
      lt_prog_compiler_static_F77='-Bstatic'
14761
 
      ;;
14762
 
 
14763
 
    *)
14764
 
      lt_prog_compiler_can_build_shared_F77=no
14765
 
      ;;
14766
 
    esac
14767
 
  fi
14768
 
 
14769
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14770
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14771
 
 
14772
 
#
14773
 
# Check to make sure the PIC flag actually works.
14774
 
#
14775
 
if test -n "$lt_prog_compiler_pic_F77"; then
14776
 
 
14777
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14778
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14779
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14780
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14781
 
else
14782
 
  lt_prog_compiler_pic_works_F77=no
14783
 
  ac_outfile=conftest.$ac_objext
14784
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14785
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14786
 
   # Insert the option either (1) after the last *FLAGS variable, or
14787
 
   # (2) before a word containing "conftest.", or (3) at the end.
14788
 
   # Note that $ac_compile itself does not contain backslashes and begins
14789
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14790
 
   # The option is referenced via a variable to avoid confusing sed.
14791
 
   lt_compile=`echo "$ac_compile" | $SED \
14792
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14793
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794
 
   -e 's:$: $lt_compiler_flag:'`
14795
 
   (eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
14796
 
   (eval "$lt_compile" 2>conftest.err)
14797
 
   ac_status=$?
14798
 
   cat conftest.err >&5
14799
 
   echo "$as_me:14799: \$? = $ac_status" >&5
14800
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14801
 
     # The compiler can only warn and ignore the option if not recognized
14802
 
     # So say no if there are warnings
14803
 
     if test ! -s conftest.err; then
14804
 
       lt_prog_compiler_pic_works_F77=yes
14805
 
     fi
14806
 
   fi
14807
 
   $rm conftest*
14808
 
 
14809
 
fi
14810
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14811
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14812
 
 
14813
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14814
 
    case $lt_prog_compiler_pic_F77 in
14815
 
     "" | " "*) ;;
14816
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14817
 
     esac
14818
 
else
14819
 
    lt_prog_compiler_pic_F77=
14820
 
     lt_prog_compiler_can_build_shared_F77=no
14821
 
fi
14822
 
 
14823
 
fi
14824
 
case "$host_os" in
14825
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14826
 
  *djgpp*)
14827
 
    lt_prog_compiler_pic_F77=
14828
 
    ;;
14829
 
  *)
14830
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14831
 
    ;;
14832
 
esac
14833
 
 
14834
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14835
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14836
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14837
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14838
 
else
14839
 
  lt_cv_prog_compiler_c_o_F77=no
14840
 
   $rm -r conftest 2>/dev/null
14841
 
   mkdir conftest
14842
 
   cd conftest
14843
 
   mkdir out
14844
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14845
 
 
14846
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14847
 
   # Insert the option either (1) after the last *FLAGS variable, or
14848
 
   # (2) before a word containing "conftest.", or (3) at the end.
14849
 
   # Note that $ac_compile itself does not contain backslashes and begins
14850
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14851
 
   lt_compile=`echo "$ac_compile" | $SED \
14852
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14853
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854
 
   -e 's:$: $lt_compiler_flag:'`
14855
 
   (eval echo "\"\$as_me:14855: $lt_compile\"" >&5)
14856
 
   (eval "$lt_compile" 2>out/conftest.err)
14857
 
   ac_status=$?
14858
 
   cat out/conftest.err >&5
14859
 
   echo "$as_me:14859: \$? = $ac_status" >&5
14860
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14861
 
   then
14862
 
     # The compiler can only warn and ignore the option if not recognized
14863
 
     # So say no if there are warnings
14864
 
     if test ! -s out/conftest.err; then
14865
 
       lt_cv_prog_compiler_c_o_F77=yes
14866
 
     fi
14867
 
   fi
14868
 
   chmod u+w .
14869
 
   $rm conftest*
14870
 
   # SGI C++ compiler will create directory out/ii_files/ for
14871
 
   # template instantiation
14872
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873
 
   $rm out/* && rmdir out
14874
 
   cd ..
14875
 
   rmdir conftest
14876
 
   $rm conftest*
14877
 
 
14878
 
fi
14879
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14881
 
 
14882
 
 
14883
 
hard_links="nottested"
14884
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885
 
  # do not overwrite the value of need_locks provided by the user
14886
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14888
 
  hard_links=yes
14889
 
  $rm conftest*
14890
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14891
 
  touch conftest.a
14892
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14893
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14895
 
echo "${ECHO_T}$hard_links" >&6; }
14896
 
  if test "$hard_links" = no; then
14897
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14899
 
    need_locks=warn
14900
 
  fi
14901
 
else
14902
 
  need_locks=no
14903
 
fi
14904
 
 
14905
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14907
 
 
14908
 
  runpath_var=
14909
 
  allow_undefined_flag_F77=
14910
 
  enable_shared_with_static_runtimes_F77=no
14911
 
  archive_cmds_F77=
14912
 
  archive_expsym_cmds_F77=
14913
 
  old_archive_From_new_cmds_F77=
14914
 
  old_archive_from_expsyms_cmds_F77=
14915
 
  export_dynamic_flag_spec_F77=
14916
 
  whole_archive_flag_spec_F77=
14917
 
  thread_safe_flag_spec_F77=
14918
 
  hardcode_libdir_flag_spec_F77=
14919
 
  hardcode_libdir_flag_spec_ld_F77=
14920
 
  hardcode_libdir_separator_F77=
14921
 
  hardcode_direct_F77=no
14922
 
  hardcode_minus_L_F77=no
14923
 
  hardcode_shlibpath_var_F77=unsupported
14924
 
  link_all_deplibs_F77=unknown
14925
 
  hardcode_automatic_F77=no
14926
 
  module_cmds_F77=
14927
 
  module_expsym_cmds_F77=
14928
 
  always_export_symbols_F77=no
14929
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14931
 
  # included in the symbol list
14932
 
  include_expsyms_F77=
14933
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14934
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14935
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936
 
  # as well as any symbol that contains `d'.
14937
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14940
 
  # the symbol is explicitly referenced.  Since portable code cannot
14941
 
  # rely on this symbol name, it's probably fine to never include it in
14942
 
  # preloaded symbol tables.
14943
 
  extract_expsyms_cmds=
14944
 
 
14945
 
  case $host_os in
14946
 
  cygwin* | mingw* | pw32*)
14947
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14948
 
    # When not using gcc, we currently assume that we are using
14949
 
    # Microsoft Visual C++.
14950
 
    if test "$GCC" != yes; then
14951
 
      with_gnu_ld=no
14952
 
    fi
14953
 
    ;;
14954
 
  openbsd*)
14955
 
    with_gnu_ld=no
14956
 
    ;;
14957
 
  esac
14958
 
 
14959
 
  ld_shlibs_F77=yes
14960
 
  if test "$with_gnu_ld" = yes; then
14961
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14962
 
    wlarc='${wl}'
14963
 
 
14964
 
    # See if GNU ld supports shared libraries.
14965
 
    case $host_os in
14966
 
    aix3* | aix4* | aix5*)
14967
 
      # On AIX/PPC, the GNU linker is very broken
14968
 
      if test "$host_cpu" != ia64; then
14969
 
        ld_shlibs_F77=no
14970
 
        cat <<EOF 1>&2
14971
 
 
14972
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14973
 
*** to be unable to reliably create shared libraries on AIX.
14974
 
*** Therefore, libtool is disabling shared libraries support.  If you
14975
 
*** really care for shared libraries, you may want to modify your PATH
14976
 
*** so that a non-GNU linker is found, and then restart.
14977
 
 
14978
 
EOF
14979
 
      fi
14980
 
      ;;
14981
 
 
14982
 
    amigaos*)
14983
 
      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)'
14984
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14985
 
      hardcode_minus_L_F77=yes
14986
 
 
14987
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14988
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14989
 
      # to version 4, is to share data among multiple programs linked
14990
 
      # with the same dynamic library.  Since this doesn't match the
14991
 
      # behavior of shared libraries on other platforms, we can't use
14992
 
      # them.
14993
 
      ld_shlibs_F77=no
14994
 
      ;;
14995
 
 
14996
 
    beos*)
14997
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14998
 
        allow_undefined_flag_F77=unsupported
14999
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15000
 
        # support --undefined.  This deserves some investigation.  FIXME
15001
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002
 
      else
15003
 
        ld_shlibs_F77=no
15004
 
      fi
15005
 
      ;;
15006
 
 
15007
 
    cygwin* | mingw* | pw32*)
15008
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15009
 
      # as there is no search path for DLLs.
15010
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15011
 
      allow_undefined_flag_F77=unsupported
15012
 
      always_export_symbols_F77=no
15013
 
      enable_shared_with_static_runtimes_F77=yes
15014
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15015
 
 
15016
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15017
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15018
 
        # If the export-symbols file already is a .def file (1st line
15019
 
        # is EXPORTS), use it as is; otherwise, prepend...
15020
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15021
 
          cp $export_symbols $output_objdir/$soname.def;
15022
 
        else
15023
 
          echo EXPORTS > $output_objdir/$soname.def;
15024
 
          cat $export_symbols >> $output_objdir/$soname.def;
15025
 
        fi~
15026
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15027
 
      else
15028
 
        ld_shlibs=no
15029
 
      fi
15030
 
      ;;
15031
 
 
15032
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15033
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15035
 
        wlarc=
15036
 
      else
15037
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15039
 
      fi
15040
 
      ;;
15041
 
 
15042
 
    solaris* | sysv5*)
15043
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15044
 
        ld_shlibs_F77=no
15045
 
        cat <<EOF 1>&2
15046
 
 
15047
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15049
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15050
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15051
 
*** your PATH or compiler configuration so that the native linker is
15052
 
*** used, and then restart.
15053
 
 
15054
 
EOF
15055
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15058
 
      else
15059
 
        ld_shlibs_F77=no
15060
 
      fi
15061
 
      ;;
15062
 
 
15063
 
    sunos4*)
15064
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15065
 
      wlarc=
15066
 
      hardcode_direct_F77=yes
15067
 
      hardcode_shlibpath_var_F77=no
15068
 
      ;;
15069
 
 
15070
 
  linux*)
15071
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073
 
        archive_cmds_F77="$tmp_archive_cmds"
15074
 
      supports_anon_versioning=no
15075
 
      case `$LD -v 2>/dev/null` in
15076
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15077
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15078
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15079
 
        *\ 2.11.*) ;; # other 2.11 versions
15080
 
        *) supports_anon_versioning=yes ;;
15081
 
      esac
15082
 
      if test $supports_anon_versioning = yes; then
15083
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15084
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15086
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15087
 
      else
15088
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
15089
 
      fi
15090
 
      link_all_deplibs_F77=no
15091
 
    else
15092
 
      ld_shlibs_F77=no
15093
 
    fi
15094
 
    ;;
15095
 
 
15096
 
    *)
15097
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100
 
      else
15101
 
        ld_shlibs_F77=no
15102
 
      fi
15103
 
      ;;
15104
 
    esac
15105
 
 
15106
 
    if test "$ld_shlibs_F77" = yes; then
15107
 
      runpath_var=LD_RUN_PATH
15108
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15109
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15110
 
      # ancient GNU ld didn't support --whole-archive et. al.
15111
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15112
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15113
 
      else
15114
 
        whole_archive_flag_spec_F77=
15115
 
      fi
15116
 
    fi
15117
 
  else
15118
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15119
 
    case $host_os in
15120
 
    aix3*)
15121
 
      allow_undefined_flag_F77=unsupported
15122
 
      always_export_symbols_F77=yes
15123
 
      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'
15124
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15125
 
      # are no directories specified by -L.
15126
 
      hardcode_minus_L_F77=yes
15127
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15128
 
        # Neither direct hardcoding nor static linking is supported with a
15129
 
        # broken collect2.
15130
 
        hardcode_direct_F77=unsupported
15131
 
      fi
15132
 
      ;;
15133
 
 
15134
 
    aix4* | aix5*)
15135
 
      if test "$host_cpu" = ia64; then
15136
 
        # On IA64, the linker does run time linking by default, so we don't
15137
 
        # have to do anything special.
15138
 
        aix_use_runtimelinking=no
15139
 
        exp_sym_flag='-Bexport'
15140
 
        no_entry_flag=""
15141
 
      else
15142
 
        # If we're using GNU nm, then we don't want the "-C" option.
15143
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15144
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15145
 
          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'
15146
 
        else
15147
 
          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'
15148
 
        fi
15149
 
        aix_use_runtimelinking=no
15150
 
 
15151
 
        # Test if we are trying to use run time linking or normal
15152
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15153
 
        # need to do runtime linking.
15154
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15155
 
          for ld_flag in $LDFLAGS; do
15156
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15157
 
            aix_use_runtimelinking=yes
15158
 
            break
15159
 
          fi
15160
 
          done
15161
 
        esac
15162
 
 
15163
 
        exp_sym_flag='-bexport'
15164
 
        no_entry_flag='-bnoentry'
15165
 
      fi
15166
 
 
15167
 
      # When large executables or shared objects are built, AIX ld can
15168
 
      # have problems creating the table of contents.  If linking a library
15169
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15170
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15171
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15172
 
 
15173
 
      archive_cmds_F77=''
15174
 
      hardcode_direct_F77=yes
15175
 
      hardcode_libdir_separator_F77=':'
15176
 
      link_all_deplibs_F77=yes
15177
 
 
15178
 
      if test "$GCC" = yes; then
15179
 
        case $host_os in aix4.012|aix4.012.*)
15180
 
        # We only want to do this on AIX 4.2 and lower, the check
15181
 
        # below for broken collect2 doesn't work under 4.3+
15182
 
          collect2name=`${CC} -print-prog-name=collect2`
15183
 
          if test -f "$collect2name" && \
15184
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15185
 
          then
15186
 
          # We have reworked collect2
15187
 
          hardcode_direct_F77=yes
15188
 
          else
15189
 
          # We have old collect2
15190
 
          hardcode_direct_F77=unsupported
15191
 
          # It fails to find uninstalled libraries when the uninstalled
15192
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15193
 
          # to unsupported forces relinking
15194
 
          hardcode_minus_L_F77=yes
15195
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15196
 
          hardcode_libdir_separator_F77=
15197
 
          fi
15198
 
        esac
15199
 
        shared_flag='-shared'
15200
 
      else
15201
 
        # not using gcc
15202
 
        if test "$host_cpu" = ia64; then
15203
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204
 
        # chokes on -Wl,-G. The following line is correct:
15205
 
          shared_flag='-G'
15206
 
        else
15207
 
        if test "$aix_use_runtimelinking" = yes; then
15208
 
            shared_flag='${wl}-G'
15209
 
          else
15210
 
            shared_flag='${wl}-bM:SRE'
15211
 
        fi
15212
 
        fi
15213
 
      fi
15214
 
 
15215
 
      # It seems that -bexpall does not export symbols beginning with
15216
 
      # underscore (_), so it is better to generate a list of symbols to export.
15217
 
      always_export_symbols_F77=yes
15218
 
      if test "$aix_use_runtimelinking" = yes; then
15219
 
        # Warning - without using the other runtime loading flags (-brtl),
15220
 
        # -berok will link without error, but may produce a broken library.
15221
 
        allow_undefined_flag_F77='-berok'
15222
 
       # Determine the default libpath from the value encoded in an empty executable.
15223
 
       cat >conftest.$ac_ext <<_ACEOF
15224
 
      program main
15225
 
 
15226
 
      end
15227
 
_ACEOF
15228
 
rm -f conftest.$ac_objext conftest$ac_exeext
15229
 
if { (ac_try="$ac_link"
15230
 
case "(($ac_try" in
15231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232
 
  *) ac_try_echo=$ac_try;;
15233
 
esac
15234
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235
 
  (eval "$ac_link") 2>conftest.er1
15236
 
  ac_status=$?
15237
 
  grep -v '^ *+' conftest.er1 >conftest.err
15238
 
  rm -f conftest.er1
15239
 
  cat conftest.err >&5
15240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241
 
  (exit $ac_status); } && {
15242
 
         test -z "$ac_f77_werror_flag" ||
15243
 
         test ! -s conftest.err
15244
 
       } && test -s conftest$ac_exeext &&
15245
 
       $as_test_x conftest$ac_exeext; then
15246
 
 
15247
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15248
 
}'`
15249
 
# Check for a 64-bit object if we didn't find anything.
15250
 
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; }
15251
 
}'`; fi
15252
 
else
15253
 
  echo "$as_me: failed program was:" >&5
15254
 
sed 's/^/| /' conftest.$ac_ext >&5
15255
 
 
15256
 
 
15257
 
fi
15258
 
 
15259
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15260
 
      conftest$ac_exeext conftest.$ac_ext
15261
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15262
 
 
15263
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15264
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15265
 
       else
15266
 
        if test "$host_cpu" = ia64; then
15267
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15268
 
          allow_undefined_flag_F77="-z nodefs"
15269
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15270
 
        else
15271
 
         # Determine the default libpath from the value encoded in an empty executable.
15272
 
         cat >conftest.$ac_ext <<_ACEOF
15273
 
      program main
15274
 
 
15275
 
      end
15276
 
_ACEOF
15277
 
rm -f conftest.$ac_objext conftest$ac_exeext
15278
 
if { (ac_try="$ac_link"
15279
 
case "(($ac_try" in
15280
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281
 
  *) ac_try_echo=$ac_try;;
15282
 
esac
15283
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284
 
  (eval "$ac_link") 2>conftest.er1
15285
 
  ac_status=$?
15286
 
  grep -v '^ *+' conftest.er1 >conftest.err
15287
 
  rm -f conftest.er1
15288
 
  cat conftest.err >&5
15289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290
 
  (exit $ac_status); } && {
15291
 
         test -z "$ac_f77_werror_flag" ||
15292
 
         test ! -s conftest.err
15293
 
       } && test -s conftest$ac_exeext &&
15294
 
       $as_test_x conftest$ac_exeext; then
15295
 
 
15296
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15297
 
}'`
15298
 
# Check for a 64-bit object if we didn't find anything.
15299
 
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; }
15300
 
}'`; fi
15301
 
else
15302
 
  echo "$as_me: failed program was:" >&5
15303
 
sed 's/^/| /' conftest.$ac_ext >&5
15304
 
 
15305
 
 
15306
 
fi
15307
 
 
15308
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309
 
      conftest$ac_exeext conftest.$ac_ext
15310
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15311
 
 
15312
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15313
 
          # Warning - without using the other run time loading flags,
15314
 
          # -berok will link without error, but may produce a broken library.
15315
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15316
 
          allow_undefined_flag_F77=' ${wl}-berok'
15317
 
          # -bexpall does not export symbols beginning with underscore (_)
15318
 
          always_export_symbols_F77=yes
15319
 
          # Exported symbols can be pulled into shared objects from archives
15320
 
          whole_archive_flag_spec_F77=' '
15321
 
          archive_cmds_need_lc_F77=yes
15322
 
          # This is similar to how AIX traditionally builds it's shared libraries.
15323
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15324
 
        fi
15325
 
      fi
15326
 
      ;;
15327
 
 
15328
 
    amigaos*)
15329
 
      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)'
15330
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15331
 
      hardcode_minus_L_F77=yes
15332
 
      # see comment about different semantics on the GNU ld section
15333
 
      ld_shlibs_F77=no
15334
 
      ;;
15335
 
 
15336
 
    bsdi4*)
15337
 
      export_dynamic_flag_spec_F77=-rdynamic
15338
 
      ;;
15339
 
 
15340
 
    cygwin* | mingw* | pw32*)
15341
 
      # When not using gcc, we currently assume that we are using
15342
 
      # Microsoft Visual C++.
15343
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15344
 
      # no search path for DLLs.
15345
 
      hardcode_libdir_flag_spec_F77=' '
15346
 
      allow_undefined_flag_F77=unsupported
15347
 
      # Tell ltmain to make .lib files, not .a files.
15348
 
      libext=lib
15349
 
      # Tell ltmain to make .dll files, not .so files.
15350
 
      shrext_cmds=".dll"
15351
 
      # FIXME: Setting linknames here is a bad hack.
15352
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15353
 
      # The linker will automatically build a .lib file if we build a DLL.
15354
 
      old_archive_From_new_cmds_F77='true'
15355
 
      # FIXME: Should let the user specify the lib program.
15356
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15357
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
15358
 
      enable_shared_with_static_runtimes_F77=yes
15359
 
      ;;
15360
 
 
15361
 
    darwin* | rhapsody*)
15362
 
    if test "$GXX" = yes ; then
15363
 
      archive_cmds_need_lc_F77=no
15364
 
      case "$host_os" in
15365
 
      rhapsody* | darwin1.[012])
15366
 
        allow_undefined_flag_F77='-undefined suppress'
15367
 
        ;;
15368
 
      *) # Darwin 1.3 on
15369
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15371
 
      else
15372
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
15373
 
          10.[012])
15374
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15375
 
            ;;
15376
 
          10.*)
15377
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
15378
 
            ;;
15379
 
        esac
15380
 
      fi
15381
 
        ;;
15382
 
      esac
15383
 
        lt_int_apple_cc_single_mod=no
15384
 
        output_verbose_link_cmd='echo'
15385
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15386
 
          lt_int_apple_cc_single_mod=yes
15387
 
        fi
15388
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15389
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15390
 
        else
15391
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15392
 
      fi
15393
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15394
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15395
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15396
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15397
 
        else
15398
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15399
 
        fi
15400
 
          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}'
15401
 
      hardcode_direct_F77=no
15402
 
      hardcode_automatic_F77=yes
15403
 
      hardcode_shlibpath_var_F77=unsupported
15404
 
      whole_archive_flag_spec_F77='-all_load $convenience'
15405
 
      link_all_deplibs_F77=yes
15406
 
    else
15407
 
      ld_shlibs_F77=no
15408
 
    fi
15409
 
      ;;
15410
 
 
15411
 
    dgux*)
15412
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15414
 
      hardcode_shlibpath_var_F77=no
15415
 
      ;;
15416
 
 
15417
 
    freebsd1*)
15418
 
      ld_shlibs_F77=no
15419
 
      ;;
15420
 
 
15421
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15422
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15423
 
    # does not break anything, and helps significantly (at the cost of a little
15424
 
    # extra space).
15425
 
    freebsd2.2*)
15426
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15427
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15428
 
      hardcode_direct_F77=yes
15429
 
      hardcode_shlibpath_var_F77=no
15430
 
      ;;
15431
 
 
15432
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15433
 
    freebsd2*)
15434
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435
 
      hardcode_direct_F77=yes
15436
 
      hardcode_minus_L_F77=yes
15437
 
      hardcode_shlibpath_var_F77=no
15438
 
      ;;
15439
 
 
15440
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15441
 
    freebsd* | kfreebsd*-gnu)
15442
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15443
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15444
 
      hardcode_direct_F77=yes
15445
 
      hardcode_shlibpath_var_F77=no
15446
 
      ;;
15447
 
 
15448
 
    hpux9*)
15449
 
      if test "$GCC" = yes; then
15450
 
        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'
15451
 
      else
15452
 
        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'
15453
 
      fi
15454
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455
 
      hardcode_libdir_separator_F77=:
15456
 
      hardcode_direct_F77=yes
15457
 
 
15458
 
      # hardcode_minus_L: Not really in the search PATH,
15459
 
      # but as the default location of the library.
15460
 
      hardcode_minus_L_F77=yes
15461
 
      export_dynamic_flag_spec_F77='${wl}-E'
15462
 
      ;;
15463
 
 
15464
 
    hpux10* | hpux11*)
15465
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15466
 
        case "$host_cpu" in
15467
 
        hppa*64*|ia64*)
15468
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469
 
          ;;
15470
 
        *)
15471
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472
 
          ;;
15473
 
        esac
15474
 
      else
15475
 
        case "$host_cpu" in
15476
 
        hppa*64*|ia64*)
15477
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15478
 
          ;;
15479
 
        *)
15480
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481
 
          ;;
15482
 
        esac
15483
 
      fi
15484
 
      if test "$with_gnu_ld" = no; then
15485
 
        case "$host_cpu" in
15486
 
        hppa*64*)
15487
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15489
 
          hardcode_libdir_separator_F77=:
15490
 
          hardcode_direct_F77=no
15491
 
          hardcode_shlibpath_var_F77=no
15492
 
          ;;
15493
 
        ia64*)
15494
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15495
 
          hardcode_direct_F77=no
15496
 
          hardcode_shlibpath_var_F77=no
15497
 
 
15498
 
          # hardcode_minus_L: Not really in the search PATH,
15499
 
          # but as the default location of the library.
15500
 
          hardcode_minus_L_F77=yes
15501
 
          ;;
15502
 
        *)
15503
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15504
 
          hardcode_libdir_separator_F77=:
15505
 
          hardcode_direct_F77=yes
15506
 
          export_dynamic_flag_spec_F77='${wl}-E'
15507
 
 
15508
 
          # hardcode_minus_L: Not really in the search PATH,
15509
 
          # but as the default location of the library.
15510
 
          hardcode_minus_L_F77=yes
15511
 
          ;;
15512
 
        esac
15513
 
      fi
15514
 
      ;;
15515
 
 
15516
 
    irix5* | irix6* | nonstopux*)
15517
 
      if test "$GCC" = yes; then
15518
 
        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'
15519
 
      else
15520
 
        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'
15521
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15522
 
      fi
15523
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15524
 
      hardcode_libdir_separator_F77=:
15525
 
      link_all_deplibs_F77=yes
15526
 
      ;;
15527
 
 
15528
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15529
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15530
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15531
 
      else
15532
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15533
 
      fi
15534
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15535
 
      hardcode_direct_F77=yes
15536
 
      hardcode_shlibpath_var_F77=no
15537
 
      ;;
15538
 
 
15539
 
    newsos6)
15540
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541
 
      hardcode_direct_F77=yes
15542
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543
 
      hardcode_libdir_separator_F77=:
15544
 
      hardcode_shlibpath_var_F77=no
15545
 
      ;;
15546
 
 
15547
 
    openbsd*)
15548
 
      hardcode_direct_F77=yes
15549
 
      hardcode_shlibpath_var_F77=no
15550
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15551
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15553
 
        export_dynamic_flag_spec_F77='${wl}-E'
15554
 
      else
15555
 
       case $host_os in
15556
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15557
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15559
 
           ;;
15560
 
         *)
15561
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15562
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15563
 
           ;;
15564
 
       esac
15565
 
      fi
15566
 
      ;;
15567
 
 
15568
 
    os2*)
15569
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15570
 
      hardcode_minus_L_F77=yes
15571
 
      allow_undefined_flag_F77=unsupported
15572
 
      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'
15573
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15574
 
      ;;
15575
 
 
15576
 
    osf3*)
15577
 
      if test "$GCC" = yes; then
15578
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15579
 
        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'
15580
 
      else
15581
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15582
 
        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'
15583
 
      fi
15584
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585
 
      hardcode_libdir_separator_F77=:
15586
 
      ;;
15587
 
 
15588
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15589
 
      if test "$GCC" = yes; then
15590
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15591
 
        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'
15592
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15593
 
      else
15594
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15595
 
        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'
15596
 
        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~
15597
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15598
 
 
15599
 
        # Both c and cxx compiler support -rpath directly
15600
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15601
 
      fi
15602
 
      hardcode_libdir_separator_F77=:
15603
 
      ;;
15604
 
 
15605
 
    sco3.2v5*)
15606
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607
 
      hardcode_shlibpath_var_F77=no
15608
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15609
 
      runpath_var=LD_RUN_PATH
15610
 
      hardcode_runpath_var=yes
15611
 
      ;;
15612
 
 
15613
 
    solaris*)
15614
 
      no_undefined_flag_F77=' -z text'
15615
 
      if test "$GCC" = yes; then
15616
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15618
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15619
 
      else
15620
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15623
 
      fi
15624
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15625
 
      hardcode_shlibpath_var_F77=no
15626
 
      case $host_os in
15627
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15628
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15629
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15630
 
      esac
15631
 
      link_all_deplibs_F77=yes
15632
 
      ;;
15633
 
 
15634
 
    sunos4*)
15635
 
      if test "x$host_vendor" = xsequent; then
15636
 
        # Use $CC to link under sequent, because it throws in some extra .o
15637
 
        # files that make .init and .fini sections work.
15638
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15639
 
      else
15640
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15641
 
      fi
15642
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15643
 
      hardcode_direct_F77=yes
15644
 
      hardcode_minus_L_F77=yes
15645
 
      hardcode_shlibpath_var_F77=no
15646
 
      ;;
15647
 
 
15648
 
    sysv4)
15649
 
      case $host_vendor in
15650
 
        sni)
15651
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652
 
          hardcode_direct_F77=yes # is this really true???
15653
 
        ;;
15654
 
        siemens)
15655
 
          ## LD is ld it makes a PLAMLIB
15656
 
          ## CC just makes a GrossModule.
15657
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15659
 
          hardcode_direct_F77=no
15660
 
        ;;
15661
 
        motorola)
15662
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15664
 
        ;;
15665
 
      esac
15666
 
      runpath_var='LD_RUN_PATH'
15667
 
      hardcode_shlibpath_var_F77=no
15668
 
      ;;
15669
 
 
15670
 
    sysv4.3*)
15671
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672
 
      hardcode_shlibpath_var_F77=no
15673
 
      export_dynamic_flag_spec_F77='-Bexport'
15674
 
      ;;
15675
 
 
15676
 
    sysv4*MP*)
15677
 
      if test -d /usr/nec; then
15678
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679
 
        hardcode_shlibpath_var_F77=no
15680
 
        runpath_var=LD_RUN_PATH
15681
 
        hardcode_runpath_var=yes
15682
 
        ld_shlibs_F77=yes
15683
 
      fi
15684
 
      ;;
15685
 
 
15686
 
    sysv4.2uw2*)
15687
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688
 
      hardcode_direct_F77=yes
15689
 
      hardcode_minus_L_F77=no
15690
 
      hardcode_shlibpath_var_F77=no
15691
 
      hardcode_runpath_var=yes
15692
 
      runpath_var=LD_RUN_PATH
15693
 
      ;;
15694
 
 
15695
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15696
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
15697
 
      if test "$GCC" = yes; then
15698
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15699
 
      else
15700
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15701
 
      fi
15702
 
      runpath_var='LD_RUN_PATH'
15703
 
      hardcode_shlibpath_var_F77=no
15704
 
      ;;
15705
 
 
15706
 
    sysv5*)
15707
 
      no_undefined_flag_F77=' -z text'
15708
 
      # $CC -shared without GNU ld will not create a library from C++
15709
 
      # object files and a static libstdc++, better avoid it by now
15710
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15712
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15713
 
      hardcode_libdir_flag_spec_F77=
15714
 
      hardcode_shlibpath_var_F77=no
15715
 
      runpath_var='LD_RUN_PATH'
15716
 
      ;;
15717
 
 
15718
 
    uts4*)
15719
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15721
 
      hardcode_shlibpath_var_F77=no
15722
 
      ;;
15723
 
 
15724
 
    *)
15725
 
      ld_shlibs_F77=no
15726
 
      ;;
15727
 
    esac
15728
 
  fi
15729
 
 
15730
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15731
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15732
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15733
 
 
15734
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735
 
if test "$GCC" = yes; then
15736
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15737
 
fi
15738
 
 
15739
 
#
15740
 
# Do we need to explicitly link libc?
15741
 
#
15742
 
case "x$archive_cmds_need_lc_F77" in
15743
 
x|xyes)
15744
 
  # Assume -lc should be added
15745
 
  archive_cmds_need_lc_F77=yes
15746
 
 
15747
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15748
 
    case $archive_cmds_F77 in
15749
 
    *'~'*)
15750
 
      # FIXME: we may have to deal with multi-command sequences.
15751
 
      ;;
15752
 
    '$CC '*)
15753
 
      # Test whether the compiler implicitly links with -lc since on some
15754
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15755
 
      # to ld, don't add -lc before -lgcc.
15756
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15757
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15758
 
      $rm conftest*
15759
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15760
 
 
15761
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762
 
  (eval $ac_compile) 2>&5
15763
 
  ac_status=$?
15764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765
 
  (exit $ac_status); } 2>conftest.err; then
15766
 
        soname=conftest
15767
 
        lib=conftest
15768
 
        libobjs=conftest.$ac_objext
15769
 
        deplibs=
15770
 
        wl=$lt_prog_compiler_wl_F77
15771
 
        compiler_flags=-v
15772
 
        linker_flags=-v
15773
 
        verstring=
15774
 
        output_objdir=.
15775
 
        libname=conftest
15776
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15777
 
        allow_undefined_flag_F77=
15778
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15779
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15780
 
  ac_status=$?
15781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782
 
  (exit $ac_status); }
15783
 
        then
15784
 
          archive_cmds_need_lc_F77=no
15785
 
        else
15786
 
          archive_cmds_need_lc_F77=yes
15787
 
        fi
15788
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15789
 
      else
15790
 
        cat conftest.err 1>&5
15791
 
      fi
15792
 
      $rm conftest*
15793
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15794
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15795
 
      ;;
15796
 
    esac
15797
 
  fi
15798
 
  ;;
15799
 
esac
15800
 
 
15801
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15802
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15803
 
library_names_spec=
15804
 
libname_spec='lib$name'
15805
 
soname_spec=
15806
 
shrext_cmds=".so"
15807
 
postinstall_cmds=
15808
 
postuninstall_cmds=
15809
 
finish_cmds=
15810
 
finish_eval=
15811
 
shlibpath_var=
15812
 
shlibpath_overrides_runpath=unknown
15813
 
version_type=none
15814
 
dynamic_linker="$host_os ld.so"
15815
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15816
 
if test "$GCC" = yes; then
15817
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15819
 
    # if the path contains ";" then we assume it to be the separator
15820
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15821
 
    # assumed that no part of a normal pathname contains ";" but that should
15822
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15823
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824
 
  else
15825
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15826
 
  fi
15827
 
else
15828
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15829
 
fi
15830
 
need_lib_prefix=unknown
15831
 
hardcode_into_libs=no
15832
 
 
15833
 
# when you set need_version to no, make sure it does not cause -set_version
15834
 
# flags to be left without arguments
15835
 
need_version=unknown
15836
 
 
15837
 
case $host_os in
15838
 
aix3*)
15839
 
  version_type=linux
15840
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15841
 
  shlibpath_var=LIBPATH
15842
 
 
15843
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15844
 
  soname_spec='${libname}${release}${shared_ext}$major'
15845
 
  ;;
15846
 
 
15847
 
aix4* | aix5*)
15848
 
  version_type=linux
15849
 
  need_lib_prefix=no
15850
 
  need_version=no
15851
 
  hardcode_into_libs=yes
15852
 
  if test "$host_cpu" = ia64; then
15853
 
    # AIX 5 supports IA64
15854
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15855
 
    shlibpath_var=LD_LIBRARY_PATH
15856
 
  else
15857
 
    # With GCC up to 2.95.x, collect2 would create an import file
15858
 
    # for dependence libraries.  The import file would start with
15859
 
    # the line `#! .'.  This would cause the generated library to
15860
 
    # depend on `.', always an invalid library.  This was fixed in
15861
 
    # development snapshots of GCC prior to 3.0.
15862
 
    case $host_os in
15863
 
      aix4 | aix4.[01] | aix4.[01].*)
15864
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15865
 
           echo ' yes '
15866
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15867
 
        :
15868
 
      else
15869
 
        can_build_shared=no
15870
 
      fi
15871
 
      ;;
15872
 
    esac
15873
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15874
 
    # soname into executable. Probably we can add versioning support to
15875
 
    # collect2, so additional links can be useful in future.
15876
 
    if test "$aix_use_runtimelinking" = yes; then
15877
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15878
 
      # instead of lib<name>.a to let people know that these are not
15879
 
      # typical AIX shared libraries.
15880
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881
 
    else
15882
 
      # We preserve .a as extension for shared libraries through AIX4.2
15883
 
      # and later when we are not doing run time linking.
15884
 
      library_names_spec='${libname}${release}.a $libname.a'
15885
 
      soname_spec='${libname}${release}${shared_ext}$major'
15886
 
    fi
15887
 
    shlibpath_var=LIBPATH
15888
 
  fi
15889
 
  ;;
15890
 
 
15891
 
amigaos*)
15892
 
  library_names_spec='$libname.ixlibrary $libname.a'
15893
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15894
 
  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'
15895
 
  ;;
15896
 
 
15897
 
beos*)
15898
 
  library_names_spec='${libname}${shared_ext}'
15899
 
  dynamic_linker="$host_os ld.so"
15900
 
  shlibpath_var=LIBRARY_PATH
15901
 
  ;;
15902
 
 
15903
 
bsdi4*)
15904
 
  version_type=linux
15905
 
  need_version=no
15906
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907
 
  soname_spec='${libname}${release}${shared_ext}$major'
15908
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15909
 
  shlibpath_var=LD_LIBRARY_PATH
15910
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15911
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15912
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15913
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15914
 
  # libtool to hard-code these into programs
15915
 
  ;;
15916
 
 
15917
 
cygwin* | mingw* | pw32*)
15918
 
  version_type=windows
15919
 
  shrext_cmds=".dll"
15920
 
  need_version=no
15921
 
  need_lib_prefix=no
15922
 
 
15923
 
  case $GCC,$host_os in
15924
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15925
 
    library_names_spec='$libname.dll.a'
15926
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15927
 
    postinstall_cmds='base_file=`basename \${file}`~
15928
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15929
 
      dldir=$destdir/`dirname \$dlpath`~
15930
 
      test -d \$dldir || mkdir -p \$dldir~
15931
 
      $install_prog $dir/$dlname \$dldir/$dlname'
15932
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933
 
      dlpath=$dir/\$dldll~
15934
 
       $rm \$dlpath'
15935
 
    shlibpath_overrides_runpath=yes
15936
 
 
15937
 
    case $host_os in
15938
 
    cygwin*)
15939
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15942
 
      ;;
15943
 
    mingw*)
15944
 
      # MinGW DLLs use traditional 'lib' prefix
15945
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948
 
        # It is most probably a Windows format PATH printed by
15949
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950
 
        # path with ; separators, and with drive letters. We can handle the
15951
 
        # drive letters (cygwin fileutils understands them), so leave them,
15952
 
        # especially as we might pass files found there to a mingw objdump,
15953
 
        # which wouldn't understand a cygwinified path. Ahh.
15954
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955
 
      else
15956
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15957
 
      fi
15958
 
      ;;
15959
 
    pw32*)
15960
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15961
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15962
 
      ;;
15963
 
    esac
15964
 
    ;;
15965
 
 
15966
 
  *)
15967
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15968
 
    ;;
15969
 
  esac
15970
 
  dynamic_linker='Win32 ld.exe'
15971
 
  # FIXME: first we should search . and the directory the executable is in
15972
 
  shlibpath_var=PATH
15973
 
  ;;
15974
 
 
15975
 
darwin* | rhapsody*)
15976
 
  dynamic_linker="$host_os dyld"
15977
 
  version_type=darwin
15978
 
  need_lib_prefix=no
15979
 
  need_version=no
15980
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981
 
  soname_spec='${libname}${release}${major}$shared_ext'
15982
 
  shlibpath_overrides_runpath=yes
15983
 
  shlibpath_var=DYLD_LIBRARY_PATH
15984
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15985
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986
 
  if test "$GCC" = yes; then
15987
 
    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"`
15988
 
  else
15989
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15990
 
  fi
15991
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992
 
  ;;
15993
 
 
15994
 
dgux*)
15995
 
  version_type=linux
15996
 
  need_lib_prefix=no
15997
 
  need_version=no
15998
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999
 
  soname_spec='${libname}${release}${shared_ext}$major'
16000
 
  shlibpath_var=LD_LIBRARY_PATH
16001
 
  ;;
16002
 
 
16003
 
freebsd1*)
16004
 
  dynamic_linker=no
16005
 
  ;;
16006
 
 
16007
 
kfreebsd*-gnu)
16008
 
  version_type=linux
16009
 
  need_lib_prefix=no
16010
 
  need_version=no
16011
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012
 
  soname_spec='${libname}${release}${shared_ext}$major'
16013
 
  shlibpath_var=LD_LIBRARY_PATH
16014
 
  shlibpath_overrides_runpath=no
16015
 
  hardcode_into_libs=yes
16016
 
  dynamic_linker='GNU ld.so'
16017
 
  ;;
16018
 
 
16019
 
freebsd*)
16020
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16021
 
  version_type=freebsd-$objformat
16022
 
  case $version_type in
16023
 
    freebsd-elf*)
16024
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16025
 
      need_version=no
16026
 
      need_lib_prefix=no
16027
 
      ;;
16028
 
    freebsd-*)
16029
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16030
 
      need_version=yes
16031
 
      ;;
16032
 
  esac
16033
 
  shlibpath_var=LD_LIBRARY_PATH
16034
 
  case $host_os in
16035
 
  freebsd2*)
16036
 
    shlibpath_overrides_runpath=yes
16037
 
    ;;
16038
 
  freebsd3.01* | freebsdelf3.01*)
16039
 
    shlibpath_overrides_runpath=yes
16040
 
    hardcode_into_libs=yes
16041
 
    ;;
16042
 
  *) # from 3.2 on
16043
 
    shlibpath_overrides_runpath=no
16044
 
    hardcode_into_libs=yes
16045
 
    ;;
16046
 
  esac
16047
 
  ;;
16048
 
 
16049
 
gnu*)
16050
 
  version_type=linux
16051
 
  need_lib_prefix=no
16052
 
  need_version=no
16053
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054
 
  soname_spec='${libname}${release}${shared_ext}$major'
16055
 
  shlibpath_var=LD_LIBRARY_PATH
16056
 
  hardcode_into_libs=yes
16057
 
  ;;
16058
 
 
16059
 
hpux9* | hpux10* | hpux11*)
16060
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16061
 
  # link against other versions.
16062
 
  version_type=sunos
16063
 
  need_lib_prefix=no
16064
 
  need_version=no
16065
 
  case "$host_cpu" in
16066
 
  ia64*)
16067
 
    shrext_cmds='.so'
16068
 
    hardcode_into_libs=yes
16069
 
    dynamic_linker="$host_os dld.so"
16070
 
    shlibpath_var=LD_LIBRARY_PATH
16071
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073
 
    soname_spec='${libname}${release}${shared_ext}$major'
16074
 
    if test "X$HPUX_IA64_MODE" = X32; then
16075
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16076
 
    else
16077
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16078
 
    fi
16079
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16080
 
    ;;
16081
 
   hppa*64*)
16082
 
     shrext_cmds='.sl'
16083
 
     hardcode_into_libs=yes
16084
 
     dynamic_linker="$host_os dld.sl"
16085
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088
 
     soname_spec='${libname}${release}${shared_ext}$major'
16089
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16091
 
     ;;
16092
 
   *)
16093
 
    shrext_cmds='.sl'
16094
 
    dynamic_linker="$host_os dld.sl"
16095
 
    shlibpath_var=SHLIB_PATH
16096
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098
 
    soname_spec='${libname}${release}${shared_ext}$major'
16099
 
    ;;
16100
 
  esac
16101
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16102
 
  postinstall_cmds='chmod 555 $lib'
16103
 
  ;;
16104
 
 
16105
 
irix5* | irix6* | nonstopux*)
16106
 
  case $host_os in
16107
 
    nonstopux*) version_type=nonstopux ;;
16108
 
    *)
16109
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16110
 
                version_type=linux
16111
 
        else
16112
 
                version_type=irix
16113
 
        fi ;;
16114
 
  esac
16115
 
  need_lib_prefix=no
16116
 
  need_version=no
16117
 
  soname_spec='${libname}${release}${shared_ext}$major'
16118
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16119
 
  case $host_os in
16120
 
  irix5* | nonstopux*)
16121
 
    libsuff= shlibsuff=
16122
 
    ;;
16123
 
  *)
16124
 
    case $LD in # libtool.m4 will add one of these switches to LD
16125
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126
 
      libsuff= shlibsuff= libmagic=32-bit;;
16127
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16129
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16132
 
    esac
16133
 
    ;;
16134
 
  esac
16135
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136
 
  shlibpath_overrides_runpath=no
16137
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139
 
  hardcode_into_libs=yes
16140
 
  ;;
16141
 
 
16142
 
# No shared lib support for Linux oldld, aout, or coff.
16143
 
linux*oldld* | linux*aout* | linux*coff*)
16144
 
  dynamic_linker=no
16145
 
  ;;
16146
 
 
16147
 
# This must be Linux ELF.
16148
 
linux*)
16149
 
  version_type=linux
16150
 
  need_lib_prefix=no
16151
 
  need_version=no
16152
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153
 
  soname_spec='${libname}${release}${shared_ext}$major'
16154
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155
 
  shlibpath_var=LD_LIBRARY_PATH
16156
 
  shlibpath_overrides_runpath=no
16157
 
  # This implies no fast_install, which is unacceptable.
16158
 
  # Some rework will be needed to allow for fast_install
16159
 
  # before this can be enabled.
16160
 
  hardcode_into_libs=yes
16161
 
 
16162
 
  # Append ld.so.conf contents to the search path
16163
 
  if test -f /etc/ld.so.conf; then
16164
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16165
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16166
 
  fi
16167
 
 
16168
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16169
 
  # powerpc, because MkLinux only supported shared libraries with the
16170
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16171
 
  # most powerpc-linux boxes support dynamic linking these days and
16172
 
  # people can always --disable-shared, the test was removed, and we
16173
 
  # assume the GNU/Linux dynamic linker is in use.
16174
 
  dynamic_linker='GNU/Linux ld.so'
16175
 
  ;;
16176
 
 
16177
 
netbsdelf*-gnu)
16178
 
  version_type=linux
16179
 
  need_lib_prefix=no
16180
 
  need_version=no
16181
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182
 
  soname_spec='${libname}${release}${shared_ext}$major'
16183
 
  shlibpath_var=LD_LIBRARY_PATH
16184
 
  shlibpath_overrides_runpath=no
16185
 
  hardcode_into_libs=yes
16186
 
  dynamic_linker='NetBSD ld.elf_so'
16187
 
  ;;
16188
 
 
16189
 
knetbsd*-gnu)
16190
 
  version_type=linux
16191
 
  need_lib_prefix=no
16192
 
  need_version=no
16193
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194
 
  soname_spec='${libname}${release}${shared_ext}$major'
16195
 
  shlibpath_var=LD_LIBRARY_PATH
16196
 
  shlibpath_overrides_runpath=no
16197
 
  hardcode_into_libs=yes
16198
 
  dynamic_linker='GNU ld.so'
16199
 
  ;;
16200
 
 
16201
 
netbsd*)
16202
 
  version_type=sunos
16203
 
  need_lib_prefix=no
16204
 
  need_version=no
16205
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16206
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16207
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16208
 
    dynamic_linker='NetBSD (a.out) ld.so'
16209
 
  else
16210
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211
 
    soname_spec='${libname}${release}${shared_ext}$major'
16212
 
    dynamic_linker='NetBSD ld.elf_so'
16213
 
  fi
16214
 
  shlibpath_var=LD_LIBRARY_PATH
16215
 
  shlibpath_overrides_runpath=yes
16216
 
  hardcode_into_libs=yes
16217
 
  ;;
16218
 
 
16219
 
newsos6)
16220
 
  version_type=linux
16221
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222
 
  shlibpath_var=LD_LIBRARY_PATH
16223
 
  shlibpath_overrides_runpath=yes
16224
 
  ;;
16225
 
 
16226
 
nto-qnx*)
16227
 
  version_type=linux
16228
 
  need_lib_prefix=no
16229
 
  need_version=no
16230
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
 
  soname_spec='${libname}${release}${shared_ext}$major'
16232
 
  shlibpath_var=LD_LIBRARY_PATH
16233
 
  shlibpath_overrides_runpath=yes
16234
 
  ;;
16235
 
 
16236
 
openbsd*)
16237
 
  version_type=sunos
16238
 
  need_lib_prefix=no
16239
 
  need_version=yes
16240
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16241
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16242
 
  shlibpath_var=LD_LIBRARY_PATH
16243
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16244
 
    case $host_os in
16245
 
      openbsd2.[89] | openbsd2.[89].*)
16246
 
        shlibpath_overrides_runpath=no
16247
 
        ;;
16248
 
      *)
16249
 
        shlibpath_overrides_runpath=yes
16250
 
        ;;
16251
 
      esac
16252
 
  else
16253
 
    shlibpath_overrides_runpath=yes
16254
 
  fi
16255
 
  ;;
16256
 
 
16257
 
os2*)
16258
 
  libname_spec='$name'
16259
 
  shrext_cmds=".dll"
16260
 
  need_lib_prefix=no
16261
 
  library_names_spec='$libname${shared_ext} $libname.a'
16262
 
  dynamic_linker='OS/2 ld.exe'
16263
 
  shlibpath_var=LIBPATH
16264
 
  ;;
16265
 
 
16266
 
osf3* | osf4* | osf5*)
16267
 
  version_type=osf
16268
 
  need_lib_prefix=no
16269
 
  need_version=no
16270
 
  soname_spec='${libname}${release}${shared_ext}$major'
16271
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272
 
  shlibpath_var=LD_LIBRARY_PATH
16273
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16274
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16275
 
  ;;
16276
 
 
16277
 
sco3.2v5*)
16278
 
  version_type=osf
16279
 
  soname_spec='${libname}${release}${shared_ext}$major'
16280
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281
 
  shlibpath_var=LD_LIBRARY_PATH
16282
 
  ;;
16283
 
 
16284
 
solaris*)
16285
 
  version_type=linux
16286
 
  need_lib_prefix=no
16287
 
  need_version=no
16288
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289
 
  soname_spec='${libname}${release}${shared_ext}$major'
16290
 
  shlibpath_var=LD_LIBRARY_PATH
16291
 
  shlibpath_overrides_runpath=yes
16292
 
  hardcode_into_libs=yes
16293
 
  # ldd complains unless libraries are executable
16294
 
  postinstall_cmds='chmod +x $lib'
16295
 
  ;;
16296
 
 
16297
 
sunos4*)
16298
 
  version_type=sunos
16299
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301
 
  shlibpath_var=LD_LIBRARY_PATH
16302
 
  shlibpath_overrides_runpath=yes
16303
 
  if test "$with_gnu_ld" = yes; then
16304
 
    need_lib_prefix=no
16305
 
  fi
16306
 
  need_version=yes
16307
 
  ;;
16308
 
 
16309
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16310
 
  version_type=linux
16311
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312
 
  soname_spec='${libname}${release}${shared_ext}$major'
16313
 
  shlibpath_var=LD_LIBRARY_PATH
16314
 
  case $host_vendor in
16315
 
    sni)
16316
 
      shlibpath_overrides_runpath=no
16317
 
      need_lib_prefix=no
16318
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16319
 
      runpath_var=LD_RUN_PATH
16320
 
      ;;
16321
 
    siemens)
16322
 
      need_lib_prefix=no
16323
 
      ;;
16324
 
    motorola)
16325
 
      need_lib_prefix=no
16326
 
      need_version=no
16327
 
      shlibpath_overrides_runpath=no
16328
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329
 
      ;;
16330
 
  esac
16331
 
  ;;
16332
 
 
16333
 
sysv4*MP*)
16334
 
  if test -d /usr/nec ;then
16335
 
    version_type=linux
16336
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337
 
    soname_spec='$libname${shared_ext}.$major'
16338
 
    shlibpath_var=LD_LIBRARY_PATH
16339
 
  fi
16340
 
  ;;
16341
 
 
16342
 
uts4*)
16343
 
  version_type=linux
16344
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345
 
  soname_spec='${libname}${release}${shared_ext}$major'
16346
 
  shlibpath_var=LD_LIBRARY_PATH
16347
 
  ;;
16348
 
 
16349
 
*)
16350
 
  dynamic_linker=no
16351
 
  ;;
16352
 
esac
16353
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16354
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16355
 
test "$dynamic_linker" = no && can_build_shared=no
16356
 
 
16357
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16358
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16359
 
hardcode_action_F77=
16360
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16361
 
   test -n "$runpath_var F77" || \
16362
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
16363
 
 
16364
 
  # We can hardcode non-existant directories.
16365
 
  if test "$hardcode_direct_F77" != no &&
16366
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16367
 
     # have to relink, otherwise we might link with an installed library
16368
 
     # when we should be linking with a yet-to-be-installed one
16369
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16370
 
     test "$hardcode_minus_L_F77" != no; then
16371
 
    # Linking always hardcodes the temporary library directory.
16372
 
    hardcode_action_F77=relink
16373
 
  else
16374
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16375
 
    hardcode_action_F77=immediate
16376
 
  fi
16377
 
else
16378
 
  # We cannot hardcode anything, or else we can only hardcode existing
16379
 
  # directories.
16380
 
  hardcode_action_F77=unsupported
16381
 
fi
16382
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16383
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16384
 
 
16385
 
if test "$hardcode_action_F77" = relink; then
16386
 
  # Fast installation is not supported
16387
 
  enable_fast_install=no
16388
 
elif test "$shlibpath_overrides_runpath" = yes ||
16389
 
     test "$enable_shared" = no; then
16390
 
  # Fast installation is not necessary
16391
 
  enable_fast_install=needless
16392
 
fi
16393
 
 
16394
 
striplib=
16395
 
old_striplib=
16396
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16397
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16398
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16399
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401
 
  { echo "$as_me:$LINENO: result: yes" >&5
16402
 
echo "${ECHO_T}yes" >&6; }
16403
 
else
16404
 
# FIXME - insert some real tests, host_os isn't really good enough
16405
 
  case $host_os in
16406
 
   darwin*)
16407
 
       if test -n "$STRIP" ; then
16408
 
         striplib="$STRIP -x"
16409
 
         { echo "$as_me:$LINENO: result: yes" >&5
16410
 
echo "${ECHO_T}yes" >&6; }
16411
 
       else
16412
 
  { echo "$as_me:$LINENO: result: no" >&5
16413
 
echo "${ECHO_T}no" >&6; }
16414
 
fi
16415
 
       ;;
16416
 
   *)
16417
 
  { echo "$as_me:$LINENO: result: no" >&5
16418
 
echo "${ECHO_T}no" >&6; }
16419
 
    ;;
16420
 
  esac
16421
 
fi
16422
 
 
16423
 
 
16424
 
 
16425
 
# The else clause should only fire when bootstrapping the
16426
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16427
 
# with your package, and you will get complaints that there are
16428
 
# no rules to generate ltmain.sh.
16429
 
if test -f "$ltmain"; then
16430
 
  # See if we are running on zsh, and set the options which allow our commands through
16431
 
  # without removal of \ escapes.
16432
 
  if test -n "${ZSH_VERSION+set}" ; then
16433
 
    setopt NO_GLOB_SUBST
16434
 
  fi
16435
 
  # Now quote all the things that may contain metacharacters while being
16436
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16437
 
  # variables and quote the copies for generation of the libtool script.
16438
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16439
 
    SED SHELL STRIP \
16440
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16441
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16442
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16443
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16444
 
    lt_cv_sys_global_symbol_to_c_name_address \
16445
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16446
 
    old_postinstall_cmds old_postuninstall_cmds \
16447
 
    compiler_F77 \
16448
 
    CC_F77 \
16449
 
    LD_F77 \
16450
 
    lt_prog_compiler_wl_F77 \
16451
 
    lt_prog_compiler_pic_F77 \
16452
 
    lt_prog_compiler_static_F77 \
16453
 
    lt_prog_compiler_no_builtin_flag_F77 \
16454
 
    export_dynamic_flag_spec_F77 \
16455
 
    thread_safe_flag_spec_F77 \
16456
 
    whole_archive_flag_spec_F77 \
16457
 
    enable_shared_with_static_runtimes_F77 \
16458
 
    old_archive_cmds_F77 \
16459
 
    old_archive_from_new_cmds_F77 \
16460
 
    predep_objects_F77 \
16461
 
    postdep_objects_F77 \
16462
 
    predeps_F77 \
16463
 
    postdeps_F77 \
16464
 
    compiler_lib_search_path_F77 \
16465
 
    archive_cmds_F77 \
16466
 
    archive_expsym_cmds_F77 \
16467
 
    postinstall_cmds_F77 \
16468
 
    postuninstall_cmds_F77 \
16469
 
    old_archive_from_expsyms_cmds_F77 \
16470
 
    allow_undefined_flag_F77 \
16471
 
    no_undefined_flag_F77 \
16472
 
    export_symbols_cmds_F77 \
16473
 
    hardcode_libdir_flag_spec_F77 \
16474
 
    hardcode_libdir_flag_spec_ld_F77 \
16475
 
    hardcode_libdir_separator_F77 \
16476
 
    hardcode_automatic_F77 \
16477
 
    module_cmds_F77 \
16478
 
    module_expsym_cmds_F77 \
16479
 
    lt_cv_prog_compiler_c_o_F77 \
16480
 
    exclude_expsyms_F77 \
16481
 
    include_expsyms_F77; do
16482
 
 
16483
 
    case $var in
16484
 
    old_archive_cmds_F77 | \
16485
 
    old_archive_from_new_cmds_F77 | \
16486
 
    archive_cmds_F77 | \
16487
 
    archive_expsym_cmds_F77 | \
16488
 
    module_cmds_F77 | \
16489
 
    module_expsym_cmds_F77 | \
16490
 
    old_archive_from_expsyms_cmds_F77 | \
16491
 
    export_symbols_cmds_F77 | \
16492
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16493
 
    postinstall_cmds | postuninstall_cmds | \
16494
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16495
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16496
 
      # Double-quote double-evaled strings.
16497
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16498
 
      ;;
16499
 
    *)
16500
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16501
 
      ;;
16502
 
    esac
16503
 
  done
16504
 
 
16505
 
  case $lt_echo in
16506
 
  *'\$0 --fallback-echo"')
16507
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16508
 
    ;;
16509
 
  esac
16510
 
 
16511
 
cfgfile="$ofile"
16512
 
 
16513
 
  cat <<__EOF__ >> "$cfgfile"
16514
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16515
 
 
16516
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16517
 
 
16518
 
# Shell to use when invoking shell scripts.
16519
 
SHELL=$lt_SHELL
16520
 
 
16521
 
# Whether or not to build shared libraries.
16522
 
build_libtool_libs=$enable_shared
16523
 
 
16524
 
# Whether or not to build static libraries.
16525
 
build_old_libs=$enable_static
16526
 
 
16527
 
# Whether or not to add -lc for building shared libraries.
16528
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16529
 
 
16530
 
# Whether or not to disallow shared libs when runtime libs are static
16531
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16532
 
 
16533
 
# Whether or not to optimize for fast installation.
16534
 
fast_install=$enable_fast_install
16535
 
 
16536
 
# The host system.
16537
 
host_alias=$host_alias
16538
 
host=$host
16539
 
 
16540
 
# An echo program that does not interpret backslashes.
16541
 
echo=$lt_echo
16542
 
 
16543
 
# The archiver.
16544
 
AR=$lt_AR
16545
 
AR_FLAGS=$lt_AR_FLAGS
16546
 
 
16547
 
# A C compiler.
16548
 
LTCC=$lt_LTCC
16549
 
 
16550
 
# A language-specific compiler.
16551
 
CC=$lt_compiler_F77
16552
 
 
16553
 
# Is the compiler the GNU C compiler?
16554
 
with_gcc=$GCC_F77
16555
 
 
16556
 
# An ERE matcher.
16557
 
EGREP=$lt_EGREP
16558
 
 
16559
 
# The linker used to build libraries.
16560
 
LD=$lt_LD_F77
16561
 
 
16562
 
# Whether we need hard or soft links.
16563
 
LN_S=$lt_LN_S
16564
 
 
16565
 
# A BSD-compatible nm program.
16566
 
NM=$lt_NM
16567
 
 
16568
 
# A symbol stripping program
16569
 
STRIP=$lt_STRIP
16570
 
 
16571
 
# Used to examine libraries when file_magic_cmd begins "file"
16572
 
MAGIC_CMD=$MAGIC_CMD
16573
 
 
16574
 
# Used on cygwin: DLL creation program.
16575
 
DLLTOOL="$DLLTOOL"
16576
 
 
16577
 
# Used on cygwin: object dumper.
16578
 
OBJDUMP="$OBJDUMP"
16579
 
 
16580
 
# Used on cygwin: assembler.
16581
 
AS="$AS"
16582
 
 
16583
 
# The name of the directory that contains temporary libtool files.
16584
 
objdir=$objdir
16585
 
 
16586
 
# How to create reloadable object files.
16587
 
reload_flag=$lt_reload_flag
16588
 
reload_cmds=$lt_reload_cmds
16589
 
 
16590
 
# How to pass a linker flag through the compiler.
16591
 
wl=$lt_lt_prog_compiler_wl_F77
16592
 
 
16593
 
# Object file suffix (normally "o").
16594
 
objext="$ac_objext"
16595
 
 
16596
 
# Old archive suffix (normally "a").
16597
 
libext="$libext"
16598
 
 
16599
 
# Shared library suffix (normally ".so").
16600
 
shrext_cmds='$shrext_cmds'
16601
 
 
16602
 
# Executable file suffix (normally "").
16603
 
exeext="$exeext"
16604
 
 
16605
 
# Additional compiler flags for building library objects.
16606
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16607
 
pic_mode=$pic_mode
16608
 
 
16609
 
# What is the maximum length of a command?
16610
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16611
 
 
16612
 
# Does compiler simultaneously support -c and -o options?
16613
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16614
 
 
16615
 
# Must we lock files when doing compilation ?
16616
 
need_locks=$lt_need_locks
16617
 
 
16618
 
# Do we need the lib prefix for modules?
16619
 
need_lib_prefix=$need_lib_prefix
16620
 
 
16621
 
# Do we need a version for libraries?
16622
 
need_version=$need_version
16623
 
 
16624
 
# Whether dlopen is supported.
16625
 
dlopen_support=$enable_dlopen
16626
 
 
16627
 
# Whether dlopen of programs is supported.
16628
 
dlopen_self=$enable_dlopen_self
16629
 
 
16630
 
# Whether dlopen of statically linked programs is supported.
16631
 
dlopen_self_static=$enable_dlopen_self_static
16632
 
 
16633
 
# Compiler flag to prevent dynamic linking.
16634
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16635
 
 
16636
 
# Compiler flag to turn off builtin functions.
16637
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16638
 
 
16639
 
# Compiler flag to allow reflexive dlopens.
16640
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16641
 
 
16642
 
# Compiler flag to generate shared objects directly from archives.
16643
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16644
 
 
16645
 
# Compiler flag to generate thread-safe objects.
16646
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16647
 
 
16648
 
# Library versioning type.
16649
 
version_type=$version_type
16650
 
 
16651
 
# Format of library name prefix.
16652
 
libname_spec=$lt_libname_spec
16653
 
 
16654
 
# List of archive names.  First name is the real one, the rest are links.
16655
 
# The last name is the one that the linker finds with -lNAME.
16656
 
library_names_spec=$lt_library_names_spec
16657
 
 
16658
 
# The coded name of the library, if different from the real name.
16659
 
soname_spec=$lt_soname_spec
16660
 
 
16661
 
# Commands used to build and install an old-style archive.
16662
 
RANLIB=$lt_RANLIB
16663
 
old_archive_cmds=$lt_old_archive_cmds_F77
16664
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16665
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16666
 
 
16667
 
# Create an old-style archive from a shared archive.
16668
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16669
 
 
16670
 
# Create a temporary old-style archive to link instead of a shared archive.
16671
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16672
 
 
16673
 
# Commands used to build and install a shared archive.
16674
 
archive_cmds=$lt_archive_cmds_F77
16675
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16676
 
postinstall_cmds=$lt_postinstall_cmds
16677
 
postuninstall_cmds=$lt_postuninstall_cmds
16678
 
 
16679
 
# Commands used to build a loadable module (assumed same as above if empty)
16680
 
module_cmds=$lt_module_cmds_F77
16681
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16682
 
 
16683
 
# Commands to strip libraries.
16684
 
old_striplib=$lt_old_striplib
16685
 
striplib=$lt_striplib
16686
 
 
16687
 
# Dependencies to place before the objects being linked to create a
16688
 
# shared library.
16689
 
predep_objects=$lt_predep_objects_F77
16690
 
 
16691
 
# Dependencies to place after the objects being linked to create a
16692
 
# shared library.
16693
 
postdep_objects=$lt_postdep_objects_F77
16694
 
 
16695
 
# Dependencies to place before the objects being linked to create a
16696
 
# shared library.
16697
 
predeps=$lt_predeps_F77
16698
 
 
16699
 
# Dependencies to place after the objects being linked to create a
16700
 
# shared library.
16701
 
postdeps=$lt_postdeps_F77
16702
 
 
16703
 
# The library search path used internally by the compiler when linking
16704
 
# a shared library.
16705
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16706
 
 
16707
 
# Method to check whether dependent libraries are shared objects.
16708
 
deplibs_check_method=$lt_deplibs_check_method
16709
 
 
16710
 
# Command to use when deplibs_check_method == file_magic.
16711
 
file_magic_cmd=$lt_file_magic_cmd
16712
 
 
16713
 
# Flag that allows shared libraries with undefined symbols to be built.
16714
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16715
 
 
16716
 
# Flag that forces no undefined symbols.
16717
 
no_undefined_flag=$lt_no_undefined_flag_F77
16718
 
 
16719
 
# Commands used to finish a libtool library installation in a directory.
16720
 
finish_cmds=$lt_finish_cmds
16721
 
 
16722
 
# Same as above, but a single script fragment to be evaled but not shown.
16723
 
finish_eval=$lt_finish_eval
16724
 
 
16725
 
# Take the output of nm and produce a listing of raw symbols and C names.
16726
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16727
 
 
16728
 
# Transform the output of nm in a proper C declaration
16729
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16730
 
 
16731
 
# Transform the output of nm in a C name address pair
16732
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16733
 
 
16734
 
# This is the shared library runtime path variable.
16735
 
runpath_var=$runpath_var
16736
 
 
16737
 
# This is the shared library path variable.
16738
 
shlibpath_var=$shlibpath_var
16739
 
 
16740
 
# Is shlibpath searched before the hard-coded library search path?
16741
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16742
 
 
16743
 
# How to hardcode a shared library path into an executable.
16744
 
hardcode_action=$hardcode_action_F77
16745
 
 
16746
 
# Whether we should hardcode library paths into libraries.
16747
 
hardcode_into_libs=$hardcode_into_libs
16748
 
 
16749
 
# Flag to hardcode \$libdir into a binary during linking.
16750
 
# This must work even if \$libdir does not exist.
16751
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16752
 
 
16753
 
# If ld is used when linking, flag to hardcode \$libdir into
16754
 
# a binary during linking. This must work even if \$libdir does
16755
 
# not exist.
16756
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16757
 
 
16758
 
# Whether we need a single -rpath flag with a separated argument.
16759
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16760
 
 
16761
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762
 
# resulting binary.
16763
 
hardcode_direct=$hardcode_direct_F77
16764
 
 
16765
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766
 
# resulting binary.
16767
 
hardcode_minus_L=$hardcode_minus_L_F77
16768
 
 
16769
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770
 
# the resulting binary.
16771
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16772
 
 
16773
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16774
 
# and all subsequent libraries and executables linked against it.
16775
 
hardcode_automatic=$hardcode_automatic_F77
16776
 
 
16777
 
# Variables whose values should be saved in libtool wrapper scripts and
16778
 
# restored at relink time.
16779
 
variables_saved_for_relink="$variables_saved_for_relink"
16780
 
 
16781
 
# Whether libtool must link a program against all its dependency libraries.
16782
 
link_all_deplibs=$link_all_deplibs_F77
16783
 
 
16784
 
# Compile-time system search path for libraries
16785
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16786
 
 
16787
 
# Run-time system search path for libraries
16788
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16789
 
 
16790
 
# Fix the shell variable \$srcfile for the compiler.
16791
 
fix_srcfile_path="$fix_srcfile_path_F77"
16792
 
 
16793
 
# Set to yes if exported symbols are required.
16794
 
always_export_symbols=$always_export_symbols_F77
16795
 
 
16796
 
# The commands to list exported symbols.
16797
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16798
 
 
16799
 
# The commands to extract the exported symbol list from a shared archive.
16800
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16801
 
 
16802
 
# Symbols that should not be listed in the preloaded symbols.
16803
 
exclude_expsyms=$lt_exclude_expsyms_F77
16804
 
 
16805
 
# Symbols that must always be exported.
16806
 
include_expsyms=$lt_include_expsyms_F77
16807
 
 
16808
 
# ### END LIBTOOL TAG CONFIG: $tagname
16809
 
 
16810
 
__EOF__
16811
 
 
16812
 
 
16813
 
else
16814
 
  # If there is no Makefile yet, we rely on a make rule to execute
16815
 
  # `config.status --recheck' to rerun these tests and create the
16816
 
  # libtool script then.
16817
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16818
 
  if test -f "$ltmain_in"; then
16819
 
    test -f Makefile && make "$ltmain"
16820
 
  fi
16821
 
fi
16822
 
 
16823
 
 
16824
 
ac_ext=c
16825
 
ac_cpp='$CPP $CPPFLAGS'
16826
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16829
 
 
16830
 
CC="$lt_save_CC"
16831
 
 
16832
 
        else
16833
 
          tagname=""
16834
 
        fi
16835
 
        ;;
16836
 
 
16837
 
      GCJ)
16838
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16839
 
 
16840
 
 
16841
 
# Source file extension for Java test sources.
16842
 
ac_ext=java
16843
 
 
16844
 
# Object file extension for compiled Java test sources.
16845
 
objext=o
16846
 
objext_GCJ=$objext
16847
 
 
16848
 
# Code to be used in simple compile tests
16849
 
lt_simple_compile_test_code="class foo {}\n"
16850
 
 
16851
 
# Code to be used in simple link tests
16852
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16853
 
 
16854
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16855
 
 
16856
 
# If no C compiler was specified, use CC.
16857
 
LTCC=${LTCC-"$CC"}
16858
 
 
16859
 
# Allow CC to be a program name with arguments.
16860
 
compiler=$CC
16861
 
 
16862
 
 
16863
 
# Allow CC to be a program name with arguments.
16864
 
lt_save_CC="$CC"
16865
 
CC=${GCJ-"gcj"}
16866
 
compiler=$CC
16867
 
compiler_GCJ=$CC
16868
 
 
16869
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16870
 
archive_cmds_need_lc_GCJ=no
16871
 
 
16872
 
## CAVEAT EMPTOR:
16873
 
## There is no encapsulation within the following macros, do not change
16874
 
## the running order or otherwise move them around unless you know exactly
16875
 
## what you are doing...
16876
 
 
16877
 
lt_prog_compiler_no_builtin_flag_GCJ=
16878
 
 
16879
 
if test "$GCC" = yes; then
16880
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16881
 
 
16882
 
 
16883
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16885
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16887
 
else
16888
 
  lt_cv_prog_compiler_rtti_exceptions=no
16889
 
  ac_outfile=conftest.$ac_objext
16890
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16892
 
   # Insert the option either (1) after the last *FLAGS variable, or
16893
 
   # (2) before a word containing "conftest.", or (3) at the end.
16894
 
   # Note that $ac_compile itself does not contain backslashes and begins
16895
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16896
 
   # The option is referenced via a variable to avoid confusing sed.
16897
 
   lt_compile=`echo "$ac_compile" | $SED \
16898
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16899
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900
 
   -e 's:$: $lt_compiler_flag:'`
16901
 
   (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902
 
   (eval "$lt_compile" 2>conftest.err)
16903
 
   ac_status=$?
16904
 
   cat conftest.err >&5
16905
 
   echo "$as_me:16905: \$? = $ac_status" >&5
16906
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16907
 
     # The compiler can only warn and ignore the option if not recognized
16908
 
     # So say no if there are warnings
16909
 
     if test ! -s conftest.err; then
16910
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16911
 
     fi
16912
 
   fi
16913
 
   $rm conftest*
16914
 
 
16915
 
fi
16916
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16918
 
 
16919
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16921
 
else
16922
 
    :
16923
 
fi
16924
 
 
16925
 
fi
16926
 
 
16927
 
lt_prog_compiler_wl_GCJ=
16928
 
lt_prog_compiler_pic_GCJ=
16929
 
lt_prog_compiler_static_GCJ=
16930
 
 
16931
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16933
 
 
16934
 
  if test "$GCC" = yes; then
16935
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16936
 
    lt_prog_compiler_static_GCJ='-static'
16937
 
 
16938
 
    case $host_os in
16939
 
      aix*)
16940
 
      # All AIX code is PIC.
16941
 
      if test "$host_cpu" = ia64; then
16942
 
        # AIX 5 now supports IA64 processor
16943
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16944
 
      fi
16945
 
      ;;
16946
 
 
16947
 
    amigaos*)
16948
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16949
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16950
 
      # like `-m68040'.
16951
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16952
 
      ;;
16953
 
 
16954
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955
 
      # PIC is the default for these OSes.
16956
 
      ;;
16957
 
 
16958
 
    mingw* | pw32* | os2*)
16959
 
      # This hack is so that the source file can tell whether it is being
16960
 
      # built for inclusion in a dll (and should export symbols for example).
16961
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16962
 
      ;;
16963
 
 
16964
 
    darwin* | rhapsody*)
16965
 
      # PIC is the default on this platform
16966
 
      # Common symbols not allowed in MH_DYLIB files
16967
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16968
 
      ;;
16969
 
 
16970
 
    msdosdjgpp*)
16971
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16972
 
      # on systems that don't support them.
16973
 
      lt_prog_compiler_can_build_shared_GCJ=no
16974
 
      enable_shared=no
16975
 
      ;;
16976
 
 
16977
 
    sysv4*MP*)
16978
 
      if test -d /usr/nec; then
16979
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16980
 
      fi
16981
 
      ;;
16982
 
 
16983
 
    hpux*)
16984
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16985
 
      # not for PA HP-UX.
16986
 
      case "$host_cpu" in
16987
 
      hppa*64*|ia64*)
16988
 
        # +Z the default
16989
 
        ;;
16990
 
      *)
16991
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16992
 
        ;;
16993
 
      esac
16994
 
      ;;
16995
 
 
16996
 
    *)
16997
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16998
 
      ;;
16999
 
    esac
17000
 
  else
17001
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17002
 
    case $host_os in
17003
 
    aix*)
17004
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17005
 
      if test "$host_cpu" = ia64; then
17006
 
        # AIX 5 now supports IA64 processor
17007
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17008
 
      else
17009
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17010
 
      fi
17011
 
      ;;
17012
 
 
17013
 
    mingw* | pw32* | os2*)
17014
 
      # This hack is so that the source file can tell whether it is being
17015
 
      # built for inclusion in a dll (and should export symbols for example).
17016
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17017
 
      ;;
17018
 
 
17019
 
    hpux9* | hpux10* | hpux11*)
17020
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17021
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17022
 
      # not for PA HP-UX.
17023
 
      case "$host_cpu" in
17024
 
      hppa*64*|ia64*)
17025
 
        # +Z the default
17026
 
        ;;
17027
 
      *)
17028
 
        lt_prog_compiler_pic_GCJ='+Z'
17029
 
        ;;
17030
 
      esac
17031
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17032
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17033
 
      ;;
17034
 
 
17035
 
    irix5* | irix6* | nonstopux*)
17036
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17037
 
      # PIC (with -KPIC) is the default.
17038
 
      lt_prog_compiler_static_GCJ='-non_shared'
17039
 
      ;;
17040
 
 
17041
 
    newsos6)
17042
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17043
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17044
 
      ;;
17045
 
 
17046
 
    linux*)
17047
 
      case $CC in
17048
 
      icc* | ecc*)
17049
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17050
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17051
 
        lt_prog_compiler_static_GCJ='-static'
17052
 
        ;;
17053
 
      ccc*)
17054
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17055
 
        # All Alpha code is PIC.
17056
 
        lt_prog_compiler_static_GCJ='-non_shared'
17057
 
        ;;
17058
 
      esac
17059
 
      ;;
17060
 
 
17061
 
    osf3* | osf4* | osf5*)
17062
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17063
 
      # All OSF/1 code is PIC.
17064
 
      lt_prog_compiler_static_GCJ='-non_shared'
17065
 
      ;;
17066
 
 
17067
 
    sco3.2v5*)
17068
 
      lt_prog_compiler_pic_GCJ='-Kpic'
17069
 
      lt_prog_compiler_static_GCJ='-dn'
17070
 
      ;;
17071
 
 
17072
 
    solaris*)
17073
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17074
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17075
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17076
 
      ;;
17077
 
 
17078
 
    sunos4*)
17079
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17080
 
      lt_prog_compiler_pic_GCJ='-PIC'
17081
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17082
 
      ;;
17083
 
 
17084
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17085
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17086
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17087
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17088
 
      ;;
17089
 
 
17090
 
    sysv4*MP*)
17091
 
      if test -d /usr/nec ;then
17092
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17093
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17094
 
      fi
17095
 
      ;;
17096
 
 
17097
 
    uts4*)
17098
 
      lt_prog_compiler_pic_GCJ='-pic'
17099
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17100
 
      ;;
17101
 
 
17102
 
    *)
17103
 
      lt_prog_compiler_can_build_shared_GCJ=no
17104
 
      ;;
17105
 
    esac
17106
 
  fi
17107
 
 
17108
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17109
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17110
 
 
17111
 
#
17112
 
# Check to make sure the PIC flag actually works.
17113
 
#
17114
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17115
 
 
17116
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17117
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17118
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17120
 
else
17121
 
  lt_prog_compiler_pic_works_GCJ=no
17122
 
  ac_outfile=conftest.$ac_objext
17123
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17124
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17125
 
   # Insert the option either (1) after the last *FLAGS variable, or
17126
 
   # (2) before a word containing "conftest.", or (3) at the end.
17127
 
   # Note that $ac_compile itself does not contain backslashes and begins
17128
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17129
 
   # The option is referenced via a variable to avoid confusing sed.
17130
 
   lt_compile=`echo "$ac_compile" | $SED \
17131
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17132
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17133
 
   -e 's:$: $lt_compiler_flag:'`
17134
 
   (eval echo "\"\$as_me:17134: $lt_compile\"" >&5)
17135
 
   (eval "$lt_compile" 2>conftest.err)
17136
 
   ac_status=$?
17137
 
   cat conftest.err >&5
17138
 
   echo "$as_me:17138: \$? = $ac_status" >&5
17139
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17140
 
     # The compiler can only warn and ignore the option if not recognized
17141
 
     # So say no if there are warnings
17142
 
     if test ! -s conftest.err; then
17143
 
       lt_prog_compiler_pic_works_GCJ=yes
17144
 
     fi
17145
 
   fi
17146
 
   $rm conftest*
17147
 
 
17148
 
fi
17149
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17150
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17151
 
 
17152
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17153
 
    case $lt_prog_compiler_pic_GCJ in
17154
 
     "" | " "*) ;;
17155
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17156
 
     esac
17157
 
else
17158
 
    lt_prog_compiler_pic_GCJ=
17159
 
     lt_prog_compiler_can_build_shared_GCJ=no
17160
 
fi
17161
 
 
17162
 
fi
17163
 
case "$host_os" in
17164
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17165
 
  *djgpp*)
17166
 
    lt_prog_compiler_pic_GCJ=
17167
 
    ;;
17168
 
  *)
17169
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17170
 
    ;;
17171
 
esac
17172
 
 
17173
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17177
 
else
17178
 
  lt_cv_prog_compiler_c_o_GCJ=no
17179
 
   $rm -r conftest 2>/dev/null
17180
 
   mkdir conftest
17181
 
   cd conftest
17182
 
   mkdir out
17183
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17184
 
 
17185
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17186
 
   # Insert the option either (1) after the last *FLAGS variable, or
17187
 
   # (2) before a word containing "conftest.", or (3) at the end.
17188
 
   # Note that $ac_compile itself does not contain backslashes and begins
17189
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17190
 
   lt_compile=`echo "$ac_compile" | $SED \
17191
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17192
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193
 
   -e 's:$: $lt_compiler_flag:'`
17194
 
   (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195
 
   (eval "$lt_compile" 2>out/conftest.err)
17196
 
   ac_status=$?
17197
 
   cat out/conftest.err >&5
17198
 
   echo "$as_me:17198: \$? = $ac_status" >&5
17199
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17200
 
   then
17201
 
     # The compiler can only warn and ignore the option if not recognized
17202
 
     # So say no if there are warnings
17203
 
     if test ! -s out/conftest.err; then
17204
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17205
 
     fi
17206
 
   fi
17207
 
   chmod u+w .
17208
 
   $rm conftest*
17209
 
   # SGI C++ compiler will create directory out/ii_files/ for
17210
 
   # template instantiation
17211
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17212
 
   $rm out/* && rmdir out
17213
 
   cd ..
17214
 
   rmdir conftest
17215
 
   $rm conftest*
17216
 
 
17217
 
fi
17218
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17219
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17220
 
 
17221
 
 
17222
 
hard_links="nottested"
17223
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17224
 
  # do not overwrite the value of need_locks provided by the user
17225
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17226
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17227
 
  hard_links=yes
17228
 
  $rm conftest*
17229
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17230
 
  touch conftest.a
17231
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17232
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17234
 
echo "${ECHO_T}$hard_links" >&6; }
17235
 
  if test "$hard_links" = no; then
17236
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17237
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17238
 
    need_locks=warn
17239
 
  fi
17240
 
else
17241
 
  need_locks=no
17242
 
fi
17243
 
 
17244
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17246
 
 
17247
 
  runpath_var=
17248
 
  allow_undefined_flag_GCJ=
17249
 
  enable_shared_with_static_runtimes_GCJ=no
17250
 
  archive_cmds_GCJ=
17251
 
  archive_expsym_cmds_GCJ=
17252
 
  old_archive_From_new_cmds_GCJ=
17253
 
  old_archive_from_expsyms_cmds_GCJ=
17254
 
  export_dynamic_flag_spec_GCJ=
17255
 
  whole_archive_flag_spec_GCJ=
17256
 
  thread_safe_flag_spec_GCJ=
17257
 
  hardcode_libdir_flag_spec_GCJ=
17258
 
  hardcode_libdir_flag_spec_ld_GCJ=
17259
 
  hardcode_libdir_separator_GCJ=
17260
 
  hardcode_direct_GCJ=no
17261
 
  hardcode_minus_L_GCJ=no
17262
 
  hardcode_shlibpath_var_GCJ=unsupported
17263
 
  link_all_deplibs_GCJ=unknown
17264
 
  hardcode_automatic_GCJ=no
17265
 
  module_cmds_GCJ=
17266
 
  module_expsym_cmds_GCJ=
17267
 
  always_export_symbols_GCJ=no
17268
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17269
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17270
 
  # included in the symbol list
17271
 
  include_expsyms_GCJ=
17272
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17273
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17274
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17275
 
  # as well as any symbol that contains `d'.
17276
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17277
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17278
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17279
 
  # the symbol is explicitly referenced.  Since portable code cannot
17280
 
  # rely on this symbol name, it's probably fine to never include it in
17281
 
  # preloaded symbol tables.
17282
 
  extract_expsyms_cmds=
17283
 
 
17284
 
  case $host_os in
17285
 
  cygwin* | mingw* | pw32*)
17286
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17287
 
    # When not using gcc, we currently assume that we are using
17288
 
    # Microsoft Visual C++.
17289
 
    if test "$GCC" != yes; then
17290
 
      with_gnu_ld=no
17291
 
    fi
17292
 
    ;;
17293
 
  openbsd*)
17294
 
    with_gnu_ld=no
17295
 
    ;;
17296
 
  esac
17297
 
 
17298
 
  ld_shlibs_GCJ=yes
17299
 
  if test "$with_gnu_ld" = yes; then
17300
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17301
 
    wlarc='${wl}'
17302
 
 
17303
 
    # See if GNU ld supports shared libraries.
17304
 
    case $host_os in
17305
 
    aix3* | aix4* | aix5*)
17306
 
      # On AIX/PPC, the GNU linker is very broken
17307
 
      if test "$host_cpu" != ia64; then
17308
 
        ld_shlibs_GCJ=no
17309
 
        cat <<EOF 1>&2
17310
 
 
17311
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17312
 
*** to be unable to reliably create shared libraries on AIX.
17313
 
*** Therefore, libtool is disabling shared libraries support.  If you
17314
 
*** really care for shared libraries, you may want to modify your PATH
17315
 
*** so that a non-GNU linker is found, and then restart.
17316
 
 
17317
 
EOF
17318
 
      fi
17319
 
      ;;
17320
 
 
17321
 
    amigaos*)
17322
 
      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)'
17323
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324
 
      hardcode_minus_L_GCJ=yes
17325
 
 
17326
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17327
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17328
 
      # to version 4, is to share data among multiple programs linked
17329
 
      # with the same dynamic library.  Since this doesn't match the
17330
 
      # behavior of shared libraries on other platforms, we can't use
17331
 
      # them.
17332
 
      ld_shlibs_GCJ=no
17333
 
      ;;
17334
 
 
17335
 
    beos*)
17336
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337
 
        allow_undefined_flag_GCJ=unsupported
17338
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17339
 
        # support --undefined.  This deserves some investigation.  FIXME
17340
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17341
 
      else
17342
 
        ld_shlibs_GCJ=no
17343
 
      fi
17344
 
      ;;
17345
 
 
17346
 
    cygwin* | mingw* | pw32*)
17347
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17348
 
      # as there is no search path for DLLs.
17349
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350
 
      allow_undefined_flag_GCJ=unsupported
17351
 
      always_export_symbols_GCJ=no
17352
 
      enable_shared_with_static_runtimes_GCJ=yes
17353
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17354
 
 
17355
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17356
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17357
 
        # If the export-symbols file already is a .def file (1st line
17358
 
        # is EXPORTS), use it as is; otherwise, prepend...
17359
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17360
 
          cp $export_symbols $output_objdir/$soname.def;
17361
 
        else
17362
 
          echo EXPORTS > $output_objdir/$soname.def;
17363
 
          cat $export_symbols >> $output_objdir/$soname.def;
17364
 
        fi~
17365
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17366
 
      else
17367
 
        ld_shlibs=no
17368
 
      fi
17369
 
      ;;
17370
 
 
17371
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17372
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17373
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17374
 
        wlarc=
17375
 
      else
17376
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17378
 
      fi
17379
 
      ;;
17380
 
 
17381
 
    solaris* | sysv5*)
17382
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17383
 
        ld_shlibs_GCJ=no
17384
 
        cat <<EOF 1>&2
17385
 
 
17386
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17387
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17388
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17389
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17390
 
*** your PATH or compiler configuration so that the native linker is
17391
 
*** used, and then restart.
17392
 
 
17393
 
EOF
17394
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17397
 
      else
17398
 
        ld_shlibs_GCJ=no
17399
 
      fi
17400
 
      ;;
17401
 
 
17402
 
    sunos4*)
17403
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17404
 
      wlarc=
17405
 
      hardcode_direct_GCJ=yes
17406
 
      hardcode_shlibpath_var_GCJ=no
17407
 
      ;;
17408
 
 
17409
 
  linux*)
17410
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412
 
        archive_cmds_GCJ="$tmp_archive_cmds"
17413
 
      supports_anon_versioning=no
17414
 
      case `$LD -v 2>/dev/null` in
17415
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17416
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17417
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17418
 
        *\ 2.11.*) ;; # other 2.11 versions
17419
 
        *) supports_anon_versioning=yes ;;
17420
 
      esac
17421
 
      if test $supports_anon_versioning = yes; then
17422
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17423
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17424
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17425
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17426
 
      else
17427
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17428
 
      fi
17429
 
      link_all_deplibs_GCJ=no
17430
 
    else
17431
 
      ld_shlibs_GCJ=no
17432
 
    fi
17433
 
    ;;
17434
 
 
17435
 
    *)
17436
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17437
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17439
 
      else
17440
 
        ld_shlibs_GCJ=no
17441
 
      fi
17442
 
      ;;
17443
 
    esac
17444
 
 
17445
 
    if test "$ld_shlibs_GCJ" = yes; then
17446
 
      runpath_var=LD_RUN_PATH
17447
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17448
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17449
 
      # ancient GNU ld didn't support --whole-archive et. al.
17450
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17451
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17452
 
      else
17453
 
        whole_archive_flag_spec_GCJ=
17454
 
      fi
17455
 
    fi
17456
 
  else
17457
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17458
 
    case $host_os in
17459
 
    aix3*)
17460
 
      allow_undefined_flag_GCJ=unsupported
17461
 
      always_export_symbols_GCJ=yes
17462
 
      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'
17463
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17464
 
      # are no directories specified by -L.
17465
 
      hardcode_minus_L_GCJ=yes
17466
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17467
 
        # Neither direct hardcoding nor static linking is supported with a
17468
 
        # broken collect2.
17469
 
        hardcode_direct_GCJ=unsupported
17470
 
      fi
17471
 
      ;;
17472
 
 
17473
 
    aix4* | aix5*)
17474
 
      if test "$host_cpu" = ia64; then
17475
 
        # On IA64, the linker does run time linking by default, so we don't
17476
 
        # have to do anything special.
17477
 
        aix_use_runtimelinking=no
17478
 
        exp_sym_flag='-Bexport'
17479
 
        no_entry_flag=""
17480
 
      else
17481
 
        # If we're using GNU nm, then we don't want the "-C" option.
17482
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17483
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17484
 
          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'
17485
 
        else
17486
 
          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'
17487
 
        fi
17488
 
        aix_use_runtimelinking=no
17489
 
 
17490
 
        # Test if we are trying to use run time linking or normal
17491
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17492
 
        # need to do runtime linking.
17493
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17494
 
          for ld_flag in $LDFLAGS; do
17495
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17496
 
            aix_use_runtimelinking=yes
17497
 
            break
17498
 
          fi
17499
 
          done
17500
 
        esac
17501
 
 
17502
 
        exp_sym_flag='-bexport'
17503
 
        no_entry_flag='-bnoentry'
17504
 
      fi
17505
 
 
17506
 
      # When large executables or shared objects are built, AIX ld can
17507
 
      # have problems creating the table of contents.  If linking a library
17508
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17509
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17510
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17511
 
 
17512
 
      archive_cmds_GCJ=''
17513
 
      hardcode_direct_GCJ=yes
17514
 
      hardcode_libdir_separator_GCJ=':'
17515
 
      link_all_deplibs_GCJ=yes
17516
 
 
17517
 
      if test "$GCC" = yes; then
17518
 
        case $host_os in aix4.012|aix4.012.*)
17519
 
        # We only want to do this on AIX 4.2 and lower, the check
17520
 
        # below for broken collect2 doesn't work under 4.3+
17521
 
          collect2name=`${CC} -print-prog-name=collect2`
17522
 
          if test -f "$collect2name" && \
17523
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17524
 
          then
17525
 
          # We have reworked collect2
17526
 
          hardcode_direct_GCJ=yes
17527
 
          else
17528
 
          # We have old collect2
17529
 
          hardcode_direct_GCJ=unsupported
17530
 
          # It fails to find uninstalled libraries when the uninstalled
17531
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17532
 
          # to unsupported forces relinking
17533
 
          hardcode_minus_L_GCJ=yes
17534
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535
 
          hardcode_libdir_separator_GCJ=
17536
 
          fi
17537
 
        esac
17538
 
        shared_flag='-shared'
17539
 
      else
17540
 
        # not using gcc
17541
 
        if test "$host_cpu" = ia64; then
17542
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17543
 
        # chokes on -Wl,-G. The following line is correct:
17544
 
          shared_flag='-G'
17545
 
        else
17546
 
        if test "$aix_use_runtimelinking" = yes; then
17547
 
            shared_flag='${wl}-G'
17548
 
          else
17549
 
            shared_flag='${wl}-bM:SRE'
17550
 
        fi
17551
 
        fi
17552
 
      fi
17553
 
 
17554
 
      # It seems that -bexpall does not export symbols beginning with
17555
 
      # underscore (_), so it is better to generate a list of symbols to export.
17556
 
      always_export_symbols_GCJ=yes
17557
 
      if test "$aix_use_runtimelinking" = yes; then
17558
 
        # Warning - without using the other runtime loading flags (-brtl),
17559
 
        # -berok will link without error, but may produce a broken library.
17560
 
        allow_undefined_flag_GCJ='-berok'
17561
 
       # Determine the default libpath from the value encoded in an empty executable.
17562
 
       cat >conftest.$ac_ext <<_ACEOF
17563
 
/* confdefs.h.  */
17564
 
_ACEOF
17565
 
cat confdefs.h >>conftest.$ac_ext
17566
 
cat >>conftest.$ac_ext <<_ACEOF
17567
 
/* end confdefs.h.  */
17568
 
 
17569
 
int
17570
 
main ()
17571
 
{
17572
 
 
17573
 
  ;
17574
 
  return 0;
17575
 
}
17576
 
_ACEOF
17577
 
rm -f conftest.$ac_objext conftest$ac_exeext
17578
 
if { (ac_try="$ac_link"
17579
 
case "(($ac_try" in
17580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581
 
  *) ac_try_echo=$ac_try;;
17582
 
esac
17583
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584
 
  (eval "$ac_link") 2>conftest.er1
17585
 
  ac_status=$?
17586
 
  grep -v '^ *+' conftest.er1 >conftest.err
17587
 
  rm -f conftest.er1
17588
 
  cat conftest.err >&5
17589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590
 
  (exit $ac_status); } && {
17591
 
         test -z "$ac_c_werror_flag" ||
17592
 
         test ! -s conftest.err
17593
 
       } && test -s conftest$ac_exeext &&
17594
 
       $as_test_x conftest$ac_exeext; then
17595
 
 
17596
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17597
 
}'`
17598
 
# Check for a 64-bit object if we didn't find anything.
17599
 
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; }
17600
 
}'`; fi
17601
 
else
17602
 
  echo "$as_me: failed program was:" >&5
17603
 
sed 's/^/| /' conftest.$ac_ext >&5
17604
 
 
17605
 
 
17606
 
fi
17607
 
 
17608
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609
 
      conftest$ac_exeext conftest.$ac_ext
17610
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17611
 
 
17612
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17614
 
       else
17615
 
        if test "$host_cpu" = ia64; then
17616
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617
 
          allow_undefined_flag_GCJ="-z nodefs"
17618
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17619
 
        else
17620
 
         # Determine the default libpath from the value encoded in an empty executable.
17621
 
         cat >conftest.$ac_ext <<_ACEOF
17622
 
/* confdefs.h.  */
17623
 
_ACEOF
17624
 
cat confdefs.h >>conftest.$ac_ext
17625
 
cat >>conftest.$ac_ext <<_ACEOF
17626
 
/* end confdefs.h.  */
17627
 
 
17628
 
int
17629
 
main ()
17630
 
{
17631
 
 
17632
 
  ;
17633
 
  return 0;
17634
 
}
17635
 
_ACEOF
17636
 
rm -f conftest.$ac_objext conftest$ac_exeext
17637
 
if { (ac_try="$ac_link"
17638
 
case "(($ac_try" in
17639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640
 
  *) ac_try_echo=$ac_try;;
17641
 
esac
17642
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643
 
  (eval "$ac_link") 2>conftest.er1
17644
 
  ac_status=$?
17645
 
  grep -v '^ *+' conftest.er1 >conftest.err
17646
 
  rm -f conftest.er1
17647
 
  cat conftest.err >&5
17648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649
 
  (exit $ac_status); } && {
17650
 
         test -z "$ac_c_werror_flag" ||
17651
 
         test ! -s conftest.err
17652
 
       } && test -s conftest$ac_exeext &&
17653
 
       $as_test_x conftest$ac_exeext; then
17654
 
 
17655
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17656
 
}'`
17657
 
# Check for a 64-bit object if we didn't find anything.
17658
 
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; }
17659
 
}'`; fi
17660
 
else
17661
 
  echo "$as_me: failed program was:" >&5
17662
 
sed 's/^/| /' conftest.$ac_ext >&5
17663
 
 
17664
 
 
17665
 
fi
17666
 
 
17667
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668
 
      conftest$ac_exeext conftest.$ac_ext
17669
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17670
 
 
17671
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672
 
          # Warning - without using the other run time loading flags,
17673
 
          # -berok will link without error, but may produce a broken library.
17674
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17675
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17676
 
          # -bexpall does not export symbols beginning with underscore (_)
17677
 
          always_export_symbols_GCJ=yes
17678
 
          # Exported symbols can be pulled into shared objects from archives
17679
 
          whole_archive_flag_spec_GCJ=' '
17680
 
          archive_cmds_need_lc_GCJ=yes
17681
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17682
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17683
 
        fi
17684
 
      fi
17685
 
      ;;
17686
 
 
17687
 
    amigaos*)
17688
 
      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)'
17689
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690
 
      hardcode_minus_L_GCJ=yes
17691
 
      # see comment about different semantics on the GNU ld section
17692
 
      ld_shlibs_GCJ=no
17693
 
      ;;
17694
 
 
17695
 
    bsdi4*)
17696
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17697
 
      ;;
17698
 
 
17699
 
    cygwin* | mingw* | pw32*)
17700
 
      # When not using gcc, we currently assume that we are using
17701
 
      # Microsoft Visual C++.
17702
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17703
 
      # no search path for DLLs.
17704
 
      hardcode_libdir_flag_spec_GCJ=' '
17705
 
      allow_undefined_flag_GCJ=unsupported
17706
 
      # Tell ltmain to make .lib files, not .a files.
17707
 
      libext=lib
17708
 
      # Tell ltmain to make .dll files, not .so files.
17709
 
      shrext_cmds=".dll"
17710
 
      # FIXME: Setting linknames here is a bad hack.
17711
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17712
 
      # The linker will automatically build a .lib file if we build a DLL.
17713
 
      old_archive_From_new_cmds_GCJ='true'
17714
 
      # FIXME: Should let the user specify the lib program.
17715
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17716
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
17717
 
      enable_shared_with_static_runtimes_GCJ=yes
17718
 
      ;;
17719
 
 
17720
 
    darwin* | rhapsody*)
17721
 
    if test "$GXX" = yes ; then
17722
 
      archive_cmds_need_lc_GCJ=no
17723
 
      case "$host_os" in
17724
 
      rhapsody* | darwin1.[012])
17725
 
        allow_undefined_flag_GCJ='-undefined suppress'
17726
 
        ;;
17727
 
      *) # Darwin 1.3 on
17728
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17729
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17730
 
      else
17731
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
17732
 
          10.[012])
17733
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17734
 
            ;;
17735
 
          10.*)
17736
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17737
 
            ;;
17738
 
        esac
17739
 
      fi
17740
 
        ;;
17741
 
      esac
17742
 
        lt_int_apple_cc_single_mod=no
17743
 
        output_verbose_link_cmd='echo'
17744
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17745
 
          lt_int_apple_cc_single_mod=yes
17746
 
        fi
17747
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17748
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17749
 
        else
17750
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17751
 
      fi
17752
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17753
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17754
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17755
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17756
 
        else
17757
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17758
 
        fi
17759
 
          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}'
17760
 
      hardcode_direct_GCJ=no
17761
 
      hardcode_automatic_GCJ=yes
17762
 
      hardcode_shlibpath_var_GCJ=unsupported
17763
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
17764
 
      link_all_deplibs_GCJ=yes
17765
 
    else
17766
 
      ld_shlibs_GCJ=no
17767
 
    fi
17768
 
      ;;
17769
 
 
17770
 
    dgux*)
17771
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773
 
      hardcode_shlibpath_var_GCJ=no
17774
 
      ;;
17775
 
 
17776
 
    freebsd1*)
17777
 
      ld_shlibs_GCJ=no
17778
 
      ;;
17779
 
 
17780
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17782
 
    # does not break anything, and helps significantly (at the cost of a little
17783
 
    # extra space).
17784
 
    freebsd2.2*)
17785
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787
 
      hardcode_direct_GCJ=yes
17788
 
      hardcode_shlibpath_var_GCJ=no
17789
 
      ;;
17790
 
 
17791
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17792
 
    freebsd2*)
17793
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794
 
      hardcode_direct_GCJ=yes
17795
 
      hardcode_minus_L_GCJ=yes
17796
 
      hardcode_shlibpath_var_GCJ=no
17797
 
      ;;
17798
 
 
17799
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800
 
    freebsd* | kfreebsd*-gnu)
17801
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803
 
      hardcode_direct_GCJ=yes
17804
 
      hardcode_shlibpath_var_GCJ=no
17805
 
      ;;
17806
 
 
17807
 
    hpux9*)
17808
 
      if test "$GCC" = yes; then
17809
 
        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'
17810
 
      else
17811
 
        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'
17812
 
      fi
17813
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814
 
      hardcode_libdir_separator_GCJ=:
17815
 
      hardcode_direct_GCJ=yes
17816
 
 
17817
 
      # hardcode_minus_L: Not really in the search PATH,
17818
 
      # but as the default location of the library.
17819
 
      hardcode_minus_L_GCJ=yes
17820
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17821
 
      ;;
17822
 
 
17823
 
    hpux10* | hpux11*)
17824
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825
 
        case "$host_cpu" in
17826
 
        hppa*64*|ia64*)
17827
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828
 
          ;;
17829
 
        *)
17830
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831
 
          ;;
17832
 
        esac
17833
 
      else
17834
 
        case "$host_cpu" in
17835
 
        hppa*64*|ia64*)
17836
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17837
 
          ;;
17838
 
        *)
17839
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17840
 
          ;;
17841
 
        esac
17842
 
      fi
17843
 
      if test "$with_gnu_ld" = no; then
17844
 
        case "$host_cpu" in
17845
 
        hppa*64*)
17846
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17847
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17848
 
          hardcode_libdir_separator_GCJ=:
17849
 
          hardcode_direct_GCJ=no
17850
 
          hardcode_shlibpath_var_GCJ=no
17851
 
          ;;
17852
 
        ia64*)
17853
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17854
 
          hardcode_direct_GCJ=no
17855
 
          hardcode_shlibpath_var_GCJ=no
17856
 
 
17857
 
          # hardcode_minus_L: Not really in the search PATH,
17858
 
          # but as the default location of the library.
17859
 
          hardcode_minus_L_GCJ=yes
17860
 
          ;;
17861
 
        *)
17862
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17863
 
          hardcode_libdir_separator_GCJ=:
17864
 
          hardcode_direct_GCJ=yes
17865
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17866
 
 
17867
 
          # hardcode_minus_L: Not really in the search PATH,
17868
 
          # but as the default location of the library.
17869
 
          hardcode_minus_L_GCJ=yes
17870
 
          ;;
17871
 
        esac
17872
 
      fi
17873
 
      ;;
17874
 
 
17875
 
    irix5* | irix6* | nonstopux*)
17876
 
      if test "$GCC" = yes; then
17877
 
        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'
17878
 
      else
17879
 
        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'
17880
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17881
 
      fi
17882
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17883
 
      hardcode_libdir_separator_GCJ=:
17884
 
      link_all_deplibs_GCJ=yes
17885
 
      ;;
17886
 
 
17887
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17888
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17889
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17890
 
      else
17891
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17892
 
      fi
17893
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17894
 
      hardcode_direct_GCJ=yes
17895
 
      hardcode_shlibpath_var_GCJ=no
17896
 
      ;;
17897
 
 
17898
 
    newsos6)
17899
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900
 
      hardcode_direct_GCJ=yes
17901
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17902
 
      hardcode_libdir_separator_GCJ=:
17903
 
      hardcode_shlibpath_var_GCJ=no
17904
 
      ;;
17905
 
 
17906
 
    openbsd*)
17907
 
      hardcode_direct_GCJ=yes
17908
 
      hardcode_shlibpath_var_GCJ=no
17909
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17910
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17911
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17912
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17913
 
      else
17914
 
       case $host_os in
17915
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17916
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17917
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17918
 
           ;;
17919
 
         *)
17920
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17921
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17922
 
           ;;
17923
 
       esac
17924
 
      fi
17925
 
      ;;
17926
 
 
17927
 
    os2*)
17928
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929
 
      hardcode_minus_L_GCJ=yes
17930
 
      allow_undefined_flag_GCJ=unsupported
17931
 
      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'
17932
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17933
 
      ;;
17934
 
 
17935
 
    osf3*)
17936
 
      if test "$GCC" = yes; then
17937
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17938
 
        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'
17939
 
      else
17940
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941
 
        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'
17942
 
      fi
17943
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944
 
      hardcode_libdir_separator_GCJ=:
17945
 
      ;;
17946
 
 
17947
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17948
 
      if test "$GCC" = yes; then
17949
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17950
 
        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'
17951
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17952
 
      else
17953
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17954
 
        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'
17955
 
        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~
17956
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17957
 
 
17958
 
        # Both c and cxx compiler support -rpath directly
17959
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17960
 
      fi
17961
 
      hardcode_libdir_separator_GCJ=:
17962
 
      ;;
17963
 
 
17964
 
    sco3.2v5*)
17965
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966
 
      hardcode_shlibpath_var_GCJ=no
17967
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17968
 
      runpath_var=LD_RUN_PATH
17969
 
      hardcode_runpath_var=yes
17970
 
      ;;
17971
 
 
17972
 
    solaris*)
17973
 
      no_undefined_flag_GCJ=' -z text'
17974
 
      if test "$GCC" = yes; then
17975
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17977
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17978
 
      else
17979
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17982
 
      fi
17983
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984
 
      hardcode_shlibpath_var_GCJ=no
17985
 
      case $host_os in
17986
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17987
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17988
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17989
 
      esac
17990
 
      link_all_deplibs_GCJ=yes
17991
 
      ;;
17992
 
 
17993
 
    sunos4*)
17994
 
      if test "x$host_vendor" = xsequent; then
17995
 
        # Use $CC to link under sequent, because it throws in some extra .o
17996
 
        # files that make .init and .fini sections work.
17997
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17998
 
      else
17999
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18000
 
      fi
18001
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002
 
      hardcode_direct_GCJ=yes
18003
 
      hardcode_minus_L_GCJ=yes
18004
 
      hardcode_shlibpath_var_GCJ=no
18005
 
      ;;
18006
 
 
18007
 
    sysv4)
18008
 
      case $host_vendor in
18009
 
        sni)
18010
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011
 
          hardcode_direct_GCJ=yes # is this really true???
18012
 
        ;;
18013
 
        siemens)
18014
 
          ## LD is ld it makes a PLAMLIB
18015
 
          ## CC just makes a GrossModule.
18016
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18017
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18018
 
          hardcode_direct_GCJ=no
18019
 
        ;;
18020
 
        motorola)
18021
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18023
 
        ;;
18024
 
      esac
18025
 
      runpath_var='LD_RUN_PATH'
18026
 
      hardcode_shlibpath_var_GCJ=no
18027
 
      ;;
18028
 
 
18029
 
    sysv4.3*)
18030
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031
 
      hardcode_shlibpath_var_GCJ=no
18032
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18033
 
      ;;
18034
 
 
18035
 
    sysv4*MP*)
18036
 
      if test -d /usr/nec; then
18037
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038
 
        hardcode_shlibpath_var_GCJ=no
18039
 
        runpath_var=LD_RUN_PATH
18040
 
        hardcode_runpath_var=yes
18041
 
        ld_shlibs_GCJ=yes
18042
 
      fi
18043
 
      ;;
18044
 
 
18045
 
    sysv4.2uw2*)
18046
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047
 
      hardcode_direct_GCJ=yes
18048
 
      hardcode_minus_L_GCJ=no
18049
 
      hardcode_shlibpath_var_GCJ=no
18050
 
      hardcode_runpath_var=yes
18051
 
      runpath_var=LD_RUN_PATH
18052
 
      ;;
18053
 
 
18054
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18055
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18056
 
      if test "$GCC" = yes; then
18057
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058
 
      else
18059
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18060
 
      fi
18061
 
      runpath_var='LD_RUN_PATH'
18062
 
      hardcode_shlibpath_var_GCJ=no
18063
 
      ;;
18064
 
 
18065
 
    sysv5*)
18066
 
      no_undefined_flag_GCJ=' -z text'
18067
 
      # $CC -shared without GNU ld will not create a library from C++
18068
 
      # object files and a static libstdc++, better avoid it by now
18069
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18071
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18072
 
      hardcode_libdir_flag_spec_GCJ=
18073
 
      hardcode_shlibpath_var_GCJ=no
18074
 
      runpath_var='LD_RUN_PATH'
18075
 
      ;;
18076
 
 
18077
 
    uts4*)
18078
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18080
 
      hardcode_shlibpath_var_GCJ=no
18081
 
      ;;
18082
 
 
18083
 
    *)
18084
 
      ld_shlibs_GCJ=no
18085
 
      ;;
18086
 
    esac
18087
 
  fi
18088
 
 
18089
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18090
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18091
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18092
 
 
18093
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18094
 
if test "$GCC" = yes; then
18095
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18096
 
fi
18097
 
 
18098
 
#
18099
 
# Do we need to explicitly link libc?
18100
 
#
18101
 
case "x$archive_cmds_need_lc_GCJ" in
18102
 
x|xyes)
18103
 
  # Assume -lc should be added
18104
 
  archive_cmds_need_lc_GCJ=yes
18105
 
 
18106
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18107
 
    case $archive_cmds_GCJ in
18108
 
    *'~'*)
18109
 
      # FIXME: we may have to deal with multi-command sequences.
18110
 
      ;;
18111
 
    '$CC '*)
18112
 
      # Test whether the compiler implicitly links with -lc since on some
18113
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18114
 
      # to ld, don't add -lc before -lgcc.
18115
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18116
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18117
 
      $rm conftest*
18118
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18119
 
 
18120
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121
 
  (eval $ac_compile) 2>&5
18122
 
  ac_status=$?
18123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124
 
  (exit $ac_status); } 2>conftest.err; then
18125
 
        soname=conftest
18126
 
        lib=conftest
18127
 
        libobjs=conftest.$ac_objext
18128
 
        deplibs=
18129
 
        wl=$lt_prog_compiler_wl_GCJ
18130
 
        compiler_flags=-v
18131
 
        linker_flags=-v
18132
 
        verstring=
18133
 
        output_objdir=.
18134
 
        libname=conftest
18135
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18136
 
        allow_undefined_flag_GCJ=
18137
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18138
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18139
 
  ac_status=$?
18140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141
 
  (exit $ac_status); }
18142
 
        then
18143
 
          archive_cmds_need_lc_GCJ=no
18144
 
        else
18145
 
          archive_cmds_need_lc_GCJ=yes
18146
 
        fi
18147
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18148
 
      else
18149
 
        cat conftest.err 1>&5
18150
 
      fi
18151
 
      $rm conftest*
18152
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18153
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18154
 
      ;;
18155
 
    esac
18156
 
  fi
18157
 
  ;;
18158
 
esac
18159
 
 
18160
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18161
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18162
 
library_names_spec=
18163
 
libname_spec='lib$name'
18164
 
soname_spec=
18165
 
shrext_cmds=".so"
18166
 
postinstall_cmds=
18167
 
postuninstall_cmds=
18168
 
finish_cmds=
18169
 
finish_eval=
18170
 
shlibpath_var=
18171
 
shlibpath_overrides_runpath=unknown
18172
 
version_type=none
18173
 
dynamic_linker="$host_os ld.so"
18174
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18175
 
if test "$GCC" = yes; then
18176
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18177
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18178
 
    # if the path contains ";" then we assume it to be the separator
18179
 
    # otherwise default to the standard path separator (i.e. ":") - it is
18180
 
    # assumed that no part of a normal pathname contains ";" but that should
18181
 
    # okay in the real world where ";" in dirpaths is itself problematic.
18182
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18183
 
  else
18184
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18185
 
  fi
18186
 
else
18187
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18188
 
fi
18189
 
need_lib_prefix=unknown
18190
 
hardcode_into_libs=no
18191
 
 
18192
 
# when you set need_version to no, make sure it does not cause -set_version
18193
 
# flags to be left without arguments
18194
 
need_version=unknown
18195
 
 
18196
 
case $host_os in
18197
 
aix3*)
18198
 
  version_type=linux
18199
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18200
 
  shlibpath_var=LIBPATH
18201
 
 
18202
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18203
 
  soname_spec='${libname}${release}${shared_ext}$major'
18204
 
  ;;
18205
 
 
18206
 
aix4* | aix5*)
18207
 
  version_type=linux
18208
 
  need_lib_prefix=no
18209
 
  need_version=no
18210
 
  hardcode_into_libs=yes
18211
 
  if test "$host_cpu" = ia64; then
18212
 
    # AIX 5 supports IA64
18213
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18214
 
    shlibpath_var=LD_LIBRARY_PATH
18215
 
  else
18216
 
    # With GCC up to 2.95.x, collect2 would create an import file
18217
 
    # for dependence libraries.  The import file would start with
18218
 
    # the line `#! .'.  This would cause the generated library to
18219
 
    # depend on `.', always an invalid library.  This was fixed in
18220
 
    # development snapshots of GCC prior to 3.0.
18221
 
    case $host_os in
18222
 
      aix4 | aix4.[01] | aix4.[01].*)
18223
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18224
 
           echo ' yes '
18225
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18226
 
        :
18227
 
      else
18228
 
        can_build_shared=no
18229
 
      fi
18230
 
      ;;
18231
 
    esac
18232
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18233
 
    # soname into executable. Probably we can add versioning support to
18234
 
    # collect2, so additional links can be useful in future.
18235
 
    if test "$aix_use_runtimelinking" = yes; then
18236
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18237
 
      # instead of lib<name>.a to let people know that these are not
18238
 
      # typical AIX shared libraries.
18239
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240
 
    else
18241
 
      # We preserve .a as extension for shared libraries through AIX4.2
18242
 
      # and later when we are not doing run time linking.
18243
 
      library_names_spec='${libname}${release}.a $libname.a'
18244
 
      soname_spec='${libname}${release}${shared_ext}$major'
18245
 
    fi
18246
 
    shlibpath_var=LIBPATH
18247
 
  fi
18248
 
  ;;
18249
 
 
18250
 
amigaos*)
18251
 
  library_names_spec='$libname.ixlibrary $libname.a'
18252
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18253
 
  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'
18254
 
  ;;
18255
 
 
18256
 
beos*)
18257
 
  library_names_spec='${libname}${shared_ext}'
18258
 
  dynamic_linker="$host_os ld.so"
18259
 
  shlibpath_var=LIBRARY_PATH
18260
 
  ;;
18261
 
 
18262
 
bsdi4*)
18263
 
  version_type=linux
18264
 
  need_version=no
18265
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266
 
  soname_spec='${libname}${release}${shared_ext}$major'
18267
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18268
 
  shlibpath_var=LD_LIBRARY_PATH
18269
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18270
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18271
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18272
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18273
 
  # libtool to hard-code these into programs
18274
 
  ;;
18275
 
 
18276
 
cygwin* | mingw* | pw32*)
18277
 
  version_type=windows
18278
 
  shrext_cmds=".dll"
18279
 
  need_version=no
18280
 
  need_lib_prefix=no
18281
 
 
18282
 
  case $GCC,$host_os in
18283
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18284
 
    library_names_spec='$libname.dll.a'
18285
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18286
 
    postinstall_cmds='base_file=`basename \${file}`~
18287
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18288
 
      dldir=$destdir/`dirname \$dlpath`~
18289
 
      test -d \$dldir || mkdir -p \$dldir~
18290
 
      $install_prog $dir/$dlname \$dldir/$dlname'
18291
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18292
 
      dlpath=$dir/\$dldll~
18293
 
       $rm \$dlpath'
18294
 
    shlibpath_overrides_runpath=yes
18295
 
 
18296
 
    case $host_os in
18297
 
    cygwin*)
18298
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18299
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18301
 
      ;;
18302
 
    mingw*)
18303
 
      # MinGW DLLs use traditional 'lib' prefix
18304
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18305
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18306
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18307
 
        # It is most probably a Windows format PATH printed by
18308
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18309
 
        # path with ; separators, and with drive letters. We can handle the
18310
 
        # drive letters (cygwin fileutils understands them), so leave them,
18311
 
        # especially as we might pass files found there to a mingw objdump,
18312
 
        # which wouldn't understand a cygwinified path. Ahh.
18313
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18314
 
      else
18315
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18316
 
      fi
18317
 
      ;;
18318
 
    pw32*)
18319
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18320
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18321
 
      ;;
18322
 
    esac
18323
 
    ;;
18324
 
 
18325
 
  *)
18326
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18327
 
    ;;
18328
 
  esac
18329
 
  dynamic_linker='Win32 ld.exe'
18330
 
  # FIXME: first we should search . and the directory the executable is in
18331
 
  shlibpath_var=PATH
18332
 
  ;;
18333
 
 
18334
 
darwin* | rhapsody*)
18335
 
  dynamic_linker="$host_os dyld"
18336
 
  version_type=darwin
18337
 
  need_lib_prefix=no
18338
 
  need_version=no
18339
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18340
 
  soname_spec='${libname}${release}${major}$shared_ext'
18341
 
  shlibpath_overrides_runpath=yes
18342
 
  shlibpath_var=DYLD_LIBRARY_PATH
18343
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18344
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18345
 
  if test "$GCC" = yes; then
18346
 
    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"`
18347
 
  else
18348
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18349
 
  fi
18350
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18351
 
  ;;
18352
 
 
18353
 
dgux*)
18354
 
  version_type=linux
18355
 
  need_lib_prefix=no
18356
 
  need_version=no
18357
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18358
 
  soname_spec='${libname}${release}${shared_ext}$major'
18359
 
  shlibpath_var=LD_LIBRARY_PATH
18360
 
  ;;
18361
 
 
18362
 
freebsd1*)
18363
 
  dynamic_linker=no
18364
 
  ;;
18365
 
 
18366
 
kfreebsd*-gnu)
18367
 
  version_type=linux
18368
 
  need_lib_prefix=no
18369
 
  need_version=no
18370
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18371
 
  soname_spec='${libname}${release}${shared_ext}$major'
18372
 
  shlibpath_var=LD_LIBRARY_PATH
18373
 
  shlibpath_overrides_runpath=no
18374
 
  hardcode_into_libs=yes
18375
 
  dynamic_linker='GNU ld.so'
18376
 
  ;;
18377
 
 
18378
 
freebsd*)
18379
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18380
 
  version_type=freebsd-$objformat
18381
 
  case $version_type in
18382
 
    freebsd-elf*)
18383
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18384
 
      need_version=no
18385
 
      need_lib_prefix=no
18386
 
      ;;
18387
 
    freebsd-*)
18388
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18389
 
      need_version=yes
18390
 
      ;;
18391
 
  esac
18392
 
  shlibpath_var=LD_LIBRARY_PATH
18393
 
  case $host_os in
18394
 
  freebsd2*)
18395
 
    shlibpath_overrides_runpath=yes
18396
 
    ;;
18397
 
  freebsd3.01* | freebsdelf3.01*)
18398
 
    shlibpath_overrides_runpath=yes
18399
 
    hardcode_into_libs=yes
18400
 
    ;;
18401
 
  *) # from 3.2 on
18402
 
    shlibpath_overrides_runpath=no
18403
 
    hardcode_into_libs=yes
18404
 
    ;;
18405
 
  esac
18406
 
  ;;
18407
 
 
18408
 
gnu*)
18409
 
  version_type=linux
18410
 
  need_lib_prefix=no
18411
 
  need_version=no
18412
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18413
 
  soname_spec='${libname}${release}${shared_ext}$major'
18414
 
  shlibpath_var=LD_LIBRARY_PATH
18415
 
  hardcode_into_libs=yes
18416
 
  ;;
18417
 
 
18418
 
hpux9* | hpux10* | hpux11*)
18419
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18420
 
  # link against other versions.
18421
 
  version_type=sunos
18422
 
  need_lib_prefix=no
18423
 
  need_version=no
18424
 
  case "$host_cpu" in
18425
 
  ia64*)
18426
 
    shrext_cmds='.so'
18427
 
    hardcode_into_libs=yes
18428
 
    dynamic_linker="$host_os dld.so"
18429
 
    shlibpath_var=LD_LIBRARY_PATH
18430
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18431
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432
 
    soname_spec='${libname}${release}${shared_ext}$major'
18433
 
    if test "X$HPUX_IA64_MODE" = X32; then
18434
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18435
 
    else
18436
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18437
 
    fi
18438
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18439
 
    ;;
18440
 
   hppa*64*)
18441
 
     shrext_cmds='.sl'
18442
 
     hardcode_into_libs=yes
18443
 
     dynamic_linker="$host_os dld.sl"
18444
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18445
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18446
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447
 
     soname_spec='${libname}${release}${shared_ext}$major'
18448
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18449
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18450
 
     ;;
18451
 
   *)
18452
 
    shrext_cmds='.sl'
18453
 
    dynamic_linker="$host_os dld.sl"
18454
 
    shlibpath_var=SHLIB_PATH
18455
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18456
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457
 
    soname_spec='${libname}${release}${shared_ext}$major'
18458
 
    ;;
18459
 
  esac
18460
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18461
 
  postinstall_cmds='chmod 555 $lib'
18462
 
  ;;
18463
 
 
18464
 
irix5* | irix6* | nonstopux*)
18465
 
  case $host_os in
18466
 
    nonstopux*) version_type=nonstopux ;;
18467
 
    *)
18468
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18469
 
                version_type=linux
18470
 
        else
18471
 
                version_type=irix
18472
 
        fi ;;
18473
 
  esac
18474
 
  need_lib_prefix=no
18475
 
  need_version=no
18476
 
  soname_spec='${libname}${release}${shared_ext}$major'
18477
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18478
 
  case $host_os in
18479
 
  irix5* | nonstopux*)
18480
 
    libsuff= shlibsuff=
18481
 
    ;;
18482
 
  *)
18483
 
    case $LD in # libtool.m4 will add one of these switches to LD
18484
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485
 
      libsuff= shlibsuff= libmagic=32-bit;;
18486
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18488
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18491
 
    esac
18492
 
    ;;
18493
 
  esac
18494
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495
 
  shlibpath_overrides_runpath=no
18496
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18498
 
  hardcode_into_libs=yes
18499
 
  ;;
18500
 
 
18501
 
# No shared lib support for Linux oldld, aout, or coff.
18502
 
linux*oldld* | linux*aout* | linux*coff*)
18503
 
  dynamic_linker=no
18504
 
  ;;
18505
 
 
18506
 
# This must be Linux ELF.
18507
 
linux*)
18508
 
  version_type=linux
18509
 
  need_lib_prefix=no
18510
 
  need_version=no
18511
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512
 
  soname_spec='${libname}${release}${shared_ext}$major'
18513
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514
 
  shlibpath_var=LD_LIBRARY_PATH
18515
 
  shlibpath_overrides_runpath=no
18516
 
  # This implies no fast_install, which is unacceptable.
18517
 
  # Some rework will be needed to allow for fast_install
18518
 
  # before this can be enabled.
18519
 
  hardcode_into_libs=yes
18520
 
 
18521
 
  # Append ld.so.conf contents to the search path
18522
 
  if test -f /etc/ld.so.conf; then
18523
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18524
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18525
 
  fi
18526
 
 
18527
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18528
 
  # powerpc, because MkLinux only supported shared libraries with the
18529
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18530
 
  # most powerpc-linux boxes support dynamic linking these days and
18531
 
  # people can always --disable-shared, the test was removed, and we
18532
 
  # assume the GNU/Linux dynamic linker is in use.
18533
 
  dynamic_linker='GNU/Linux ld.so'
18534
 
  ;;
18535
 
 
18536
 
netbsdelf*-gnu)
18537
 
  version_type=linux
18538
 
  need_lib_prefix=no
18539
 
  need_version=no
18540
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541
 
  soname_spec='${libname}${release}${shared_ext}$major'
18542
 
  shlibpath_var=LD_LIBRARY_PATH
18543
 
  shlibpath_overrides_runpath=no
18544
 
  hardcode_into_libs=yes
18545
 
  dynamic_linker='NetBSD ld.elf_so'
18546
 
  ;;
18547
 
 
18548
 
knetbsd*-gnu)
18549
 
  version_type=linux
18550
 
  need_lib_prefix=no
18551
 
  need_version=no
18552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18553
 
  soname_spec='${libname}${release}${shared_ext}$major'
18554
 
  shlibpath_var=LD_LIBRARY_PATH
18555
 
  shlibpath_overrides_runpath=no
18556
 
  hardcode_into_libs=yes
18557
 
  dynamic_linker='GNU ld.so'
18558
 
  ;;
18559
 
 
18560
 
netbsd*)
18561
 
  version_type=sunos
18562
 
  need_lib_prefix=no
18563
 
  need_version=no
18564
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567
 
    dynamic_linker='NetBSD (a.out) ld.so'
18568
 
  else
18569
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18570
 
    soname_spec='${libname}${release}${shared_ext}$major'
18571
 
    dynamic_linker='NetBSD ld.elf_so'
18572
 
  fi
18573
 
  shlibpath_var=LD_LIBRARY_PATH
18574
 
  shlibpath_overrides_runpath=yes
18575
 
  hardcode_into_libs=yes
18576
 
  ;;
18577
 
 
18578
 
newsos6)
18579
 
  version_type=linux
18580
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581
 
  shlibpath_var=LD_LIBRARY_PATH
18582
 
  shlibpath_overrides_runpath=yes
18583
 
  ;;
18584
 
 
18585
 
nto-qnx*)
18586
 
  version_type=linux
18587
 
  need_lib_prefix=no
18588
 
  need_version=no
18589
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590
 
  soname_spec='${libname}${release}${shared_ext}$major'
18591
 
  shlibpath_var=LD_LIBRARY_PATH
18592
 
  shlibpath_overrides_runpath=yes
18593
 
  ;;
18594
 
 
18595
 
openbsd*)
18596
 
  version_type=sunos
18597
 
  need_lib_prefix=no
18598
 
  need_version=yes
18599
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601
 
  shlibpath_var=LD_LIBRARY_PATH
18602
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18603
 
    case $host_os in
18604
 
      openbsd2.[89] | openbsd2.[89].*)
18605
 
        shlibpath_overrides_runpath=no
18606
 
        ;;
18607
 
      *)
18608
 
        shlibpath_overrides_runpath=yes
18609
 
        ;;
18610
 
      esac
18611
 
  else
18612
 
    shlibpath_overrides_runpath=yes
18613
 
  fi
18614
 
  ;;
18615
 
 
18616
 
os2*)
18617
 
  libname_spec='$name'
18618
 
  shrext_cmds=".dll"
18619
 
  need_lib_prefix=no
18620
 
  library_names_spec='$libname${shared_ext} $libname.a'
18621
 
  dynamic_linker='OS/2 ld.exe'
18622
 
  shlibpath_var=LIBPATH
18623
 
  ;;
18624
 
 
18625
 
osf3* | osf4* | osf5*)
18626
 
  version_type=osf
18627
 
  need_lib_prefix=no
18628
 
  need_version=no
18629
 
  soname_spec='${libname}${release}${shared_ext}$major'
18630
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631
 
  shlibpath_var=LD_LIBRARY_PATH
18632
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18633
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18634
 
  ;;
18635
 
 
18636
 
sco3.2v5*)
18637
 
  version_type=osf
18638
 
  soname_spec='${libname}${release}${shared_ext}$major'
18639
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640
 
  shlibpath_var=LD_LIBRARY_PATH
18641
 
  ;;
18642
 
 
18643
 
solaris*)
18644
 
  version_type=linux
18645
 
  need_lib_prefix=no
18646
 
  need_version=no
18647
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648
 
  soname_spec='${libname}${release}${shared_ext}$major'
18649
 
  shlibpath_var=LD_LIBRARY_PATH
18650
 
  shlibpath_overrides_runpath=yes
18651
 
  hardcode_into_libs=yes
18652
 
  # ldd complains unless libraries are executable
18653
 
  postinstall_cmds='chmod +x $lib'
18654
 
  ;;
18655
 
 
18656
 
sunos4*)
18657
 
  version_type=sunos
18658
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18659
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18660
 
  shlibpath_var=LD_LIBRARY_PATH
18661
 
  shlibpath_overrides_runpath=yes
18662
 
  if test "$with_gnu_ld" = yes; then
18663
 
    need_lib_prefix=no
18664
 
  fi
18665
 
  need_version=yes
18666
 
  ;;
18667
 
 
18668
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18669
 
  version_type=linux
18670
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671
 
  soname_spec='${libname}${release}${shared_ext}$major'
18672
 
  shlibpath_var=LD_LIBRARY_PATH
18673
 
  case $host_vendor in
18674
 
    sni)
18675
 
      shlibpath_overrides_runpath=no
18676
 
      need_lib_prefix=no
18677
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18678
 
      runpath_var=LD_RUN_PATH
18679
 
      ;;
18680
 
    siemens)
18681
 
      need_lib_prefix=no
18682
 
      ;;
18683
 
    motorola)
18684
 
      need_lib_prefix=no
18685
 
      need_version=no
18686
 
      shlibpath_overrides_runpath=no
18687
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18688
 
      ;;
18689
 
  esac
18690
 
  ;;
18691
 
 
18692
 
sysv4*MP*)
18693
 
  if test -d /usr/nec ;then
18694
 
    version_type=linux
18695
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18696
 
    soname_spec='$libname${shared_ext}.$major'
18697
 
    shlibpath_var=LD_LIBRARY_PATH
18698
 
  fi
18699
 
  ;;
18700
 
 
18701
 
uts4*)
18702
 
  version_type=linux
18703
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704
 
  soname_spec='${libname}${release}${shared_ext}$major'
18705
 
  shlibpath_var=LD_LIBRARY_PATH
18706
 
  ;;
18707
 
 
18708
 
*)
18709
 
  dynamic_linker=no
18710
 
  ;;
18711
 
esac
18712
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18713
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18714
 
test "$dynamic_linker" = no && can_build_shared=no
18715
 
 
18716
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718
 
hardcode_action_GCJ=
18719
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720
 
   test -n "$runpath_var GCJ" || \
18721
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
18722
 
 
18723
 
  # We can hardcode non-existant directories.
18724
 
  if test "$hardcode_direct_GCJ" != no &&
18725
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18726
 
     # have to relink, otherwise we might link with an installed library
18727
 
     # when we should be linking with a yet-to-be-installed one
18728
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729
 
     test "$hardcode_minus_L_GCJ" != no; then
18730
 
    # Linking always hardcodes the temporary library directory.
18731
 
    hardcode_action_GCJ=relink
18732
 
  else
18733
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18734
 
    hardcode_action_GCJ=immediate
18735
 
  fi
18736
 
else
18737
 
  # We cannot hardcode anything, or else we can only hardcode existing
18738
 
  # directories.
18739
 
  hardcode_action_GCJ=unsupported
18740
 
fi
18741
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18743
 
 
18744
 
if test "$hardcode_action_GCJ" = relink; then
18745
 
  # Fast installation is not supported
18746
 
  enable_fast_install=no
18747
 
elif test "$shlibpath_overrides_runpath" = yes ||
18748
 
     test "$enable_shared" = no; then
18749
 
  # Fast installation is not necessary
18750
 
  enable_fast_install=needless
18751
 
fi
18752
 
 
18753
 
striplib=
18754
 
old_striplib=
18755
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18756
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18757
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18758
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18759
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18760
 
  { echo "$as_me:$LINENO: result: yes" >&5
18761
 
echo "${ECHO_T}yes" >&6; }
18762
 
else
18763
 
# FIXME - insert some real tests, host_os isn't really good enough
18764
 
  case $host_os in
18765
 
   darwin*)
18766
 
       if test -n "$STRIP" ; then
18767
 
         striplib="$STRIP -x"
18768
 
         { echo "$as_me:$LINENO: result: yes" >&5
18769
 
echo "${ECHO_T}yes" >&6; }
18770
 
       else
18771
 
  { echo "$as_me:$LINENO: result: no" >&5
18772
 
echo "${ECHO_T}no" >&6; }
18773
 
fi
18774
 
       ;;
18775
 
   *)
18776
 
  { echo "$as_me:$LINENO: result: no" >&5
18777
 
echo "${ECHO_T}no" >&6; }
18778
 
    ;;
18779
 
  esac
18780
 
fi
18781
 
 
18782
 
if test "x$enable_dlopen" != xyes; then
18783
 
  enable_dlopen=unknown
18784
 
  enable_dlopen_self=unknown
18785
 
  enable_dlopen_self_static=unknown
18786
 
else
18787
 
  lt_cv_dlopen=no
18788
 
  lt_cv_dlopen_libs=
18789
 
 
18790
 
  case $host_os in
18791
 
  beos*)
18792
 
    lt_cv_dlopen="load_add_on"
18793
 
    lt_cv_dlopen_libs=
18794
 
    lt_cv_dlopen_self=yes
18795
 
    ;;
18796
 
 
18797
 
  mingw* | pw32*)
18798
 
    lt_cv_dlopen="LoadLibrary"
18799
 
    lt_cv_dlopen_libs=
18800
 
   ;;
18801
 
 
18802
 
  cygwin*)
18803
 
    lt_cv_dlopen="dlopen"
18804
 
    lt_cv_dlopen_libs=
18805
 
   ;;
18806
 
 
18807
 
  darwin*)
18808
 
  # if libdl is installed we need to link against it
18809
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18810
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18811
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18812
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18813
 
else
18814
 
  ac_check_lib_save_LIBS=$LIBS
18815
 
LIBS="-ldl  $LIBS"
18816
 
cat >conftest.$ac_ext <<_ACEOF
18817
 
/* confdefs.h.  */
18818
 
_ACEOF
18819
 
cat confdefs.h >>conftest.$ac_ext
18820
 
cat >>conftest.$ac_ext <<_ACEOF
18821
 
/* end confdefs.h.  */
18822
 
 
18823
 
/* Override any GCC internal prototype to avoid an error.
18824
 
   Use char because int might match the return type of a GCC
18825
 
   builtin and then its argument prototype would still apply.  */
18826
 
#ifdef __cplusplus
18827
 
extern "C"
18828
 
#endif
18829
 
char dlopen ();
18830
 
int
18831
 
main ()
18832
 
{
18833
 
return dlopen ();
18834
 
  ;
18835
 
  return 0;
18836
 
}
18837
 
_ACEOF
18838
 
rm -f conftest.$ac_objext conftest$ac_exeext
18839
 
if { (ac_try="$ac_link"
18840
 
case "(($ac_try" in
18841
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842
 
  *) ac_try_echo=$ac_try;;
18843
 
esac
18844
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845
 
  (eval "$ac_link") 2>conftest.er1
18846
 
  ac_status=$?
18847
 
  grep -v '^ *+' conftest.er1 >conftest.err
18848
 
  rm -f conftest.er1
18849
 
  cat conftest.err >&5
18850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851
 
  (exit $ac_status); } && {
18852
 
         test -z "$ac_c_werror_flag" ||
18853
 
         test ! -s conftest.err
18854
 
       } && test -s conftest$ac_exeext &&
18855
 
       $as_test_x conftest$ac_exeext; then
18856
 
  ac_cv_lib_dl_dlopen=yes
18857
 
else
18858
 
  echo "$as_me: failed program was:" >&5
18859
 
sed 's/^/| /' conftest.$ac_ext >&5
18860
 
 
18861
 
        ac_cv_lib_dl_dlopen=no
18862
 
fi
18863
 
 
18864
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865
 
      conftest$ac_exeext conftest.$ac_ext
18866
 
LIBS=$ac_check_lib_save_LIBS
18867
 
fi
18868
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18869
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18870
 
if test $ac_cv_lib_dl_dlopen = yes; then
18871
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18872
 
else
18873
 
 
18874
 
    lt_cv_dlopen="dyld"
18875
 
    lt_cv_dlopen_libs=
18876
 
    lt_cv_dlopen_self=yes
18877
 
 
18878
 
fi
18879
 
 
18880
 
   ;;
18881
 
 
18882
 
  *)
18883
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
18884
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18885
 
if test "${ac_cv_func_shl_load+set}" = set; then
18886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18887
 
else
18888
 
  cat >conftest.$ac_ext <<_ACEOF
18889
 
/* confdefs.h.  */
18890
 
_ACEOF
18891
 
cat confdefs.h >>conftest.$ac_ext
18892
 
cat >>conftest.$ac_ext <<_ACEOF
18893
 
/* end confdefs.h.  */
18894
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18895
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18896
 
#define shl_load innocuous_shl_load
18897
 
 
18898
 
/* System header to define __stub macros and hopefully few prototypes,
18899
 
    which can conflict with char shl_load (); below.
18900
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901
 
    <limits.h> exists even on freestanding compilers.  */
18902
 
 
18903
 
#ifdef __STDC__
18904
 
# include <limits.h>
18905
 
#else
18906
 
# include <assert.h>
18907
 
#endif
18908
 
 
18909
 
#undef shl_load
18910
 
 
18911
 
/* Override any GCC internal prototype to avoid an error.
18912
 
   Use char because int might match the return type of a GCC
18913
 
   builtin and then its argument prototype would still apply.  */
18914
 
#ifdef __cplusplus
18915
 
extern "C"
18916
 
#endif
18917
 
char shl_load ();
18918
 
/* The GNU C library defines this for functions which it implements
18919
 
    to always fail with ENOSYS.  Some functions are actually named
18920
 
    something starting with __ and the normal name is an alias.  */
18921
 
#if defined __stub_shl_load || defined __stub___shl_load
18922
 
choke me
18923
 
#endif
18924
 
 
18925
 
int
18926
 
main ()
18927
 
{
18928
 
return shl_load ();
18929
 
  ;
18930
 
  return 0;
18931
 
}
18932
 
_ACEOF
18933
 
rm -f conftest.$ac_objext conftest$ac_exeext
18934
 
if { (ac_try="$ac_link"
18935
 
case "(($ac_try" in
18936
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937
 
  *) ac_try_echo=$ac_try;;
18938
 
esac
18939
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940
 
  (eval "$ac_link") 2>conftest.er1
18941
 
  ac_status=$?
18942
 
  grep -v '^ *+' conftest.er1 >conftest.err
18943
 
  rm -f conftest.er1
18944
 
  cat conftest.err >&5
18945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946
 
  (exit $ac_status); } && {
18947
 
         test -z "$ac_c_werror_flag" ||
18948
 
         test ! -s conftest.err
18949
 
       } && test -s conftest$ac_exeext &&
18950
 
       $as_test_x conftest$ac_exeext; then
18951
 
  ac_cv_func_shl_load=yes
18952
 
else
18953
 
  echo "$as_me: failed program was:" >&5
18954
 
sed 's/^/| /' conftest.$ac_ext >&5
18955
 
 
18956
 
        ac_cv_func_shl_load=no
18957
 
fi
18958
 
 
18959
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960
 
      conftest$ac_exeext conftest.$ac_ext
18961
 
fi
18962
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18963
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18964
 
if test $ac_cv_func_shl_load = yes; then
18965
 
  lt_cv_dlopen="shl_load"
18966
 
else
18967
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18968
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18969
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18970
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18971
 
else
18972
 
  ac_check_lib_save_LIBS=$LIBS
18973
 
LIBS="-ldld  $LIBS"
18974
 
cat >conftest.$ac_ext <<_ACEOF
18975
 
/* confdefs.h.  */
18976
 
_ACEOF
18977
 
cat confdefs.h >>conftest.$ac_ext
18978
 
cat >>conftest.$ac_ext <<_ACEOF
18979
 
/* end confdefs.h.  */
18980
 
 
18981
 
/* Override any GCC internal prototype to avoid an error.
18982
 
   Use char because int might match the return type of a GCC
18983
 
   builtin and then its argument prototype would still apply.  */
18984
 
#ifdef __cplusplus
18985
 
extern "C"
18986
 
#endif
18987
 
char shl_load ();
18988
 
int
18989
 
main ()
18990
 
{
18991
 
return shl_load ();
18992
 
  ;
18993
 
  return 0;
18994
 
}
18995
 
_ACEOF
18996
 
rm -f conftest.$ac_objext conftest$ac_exeext
18997
 
if { (ac_try="$ac_link"
18998
 
case "(($ac_try" in
18999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000
 
  *) ac_try_echo=$ac_try;;
19001
 
esac
19002
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003
 
  (eval "$ac_link") 2>conftest.er1
19004
 
  ac_status=$?
19005
 
  grep -v '^ *+' conftest.er1 >conftest.err
19006
 
  rm -f conftest.er1
19007
 
  cat conftest.err >&5
19008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009
 
  (exit $ac_status); } && {
19010
 
         test -z "$ac_c_werror_flag" ||
19011
 
         test ! -s conftest.err
19012
 
       } && test -s conftest$ac_exeext &&
19013
 
       $as_test_x conftest$ac_exeext; then
19014
 
  ac_cv_lib_dld_shl_load=yes
19015
 
else
19016
 
  echo "$as_me: failed program was:" >&5
19017
 
sed 's/^/| /' conftest.$ac_ext >&5
19018
 
 
19019
 
        ac_cv_lib_dld_shl_load=no
19020
 
fi
19021
 
 
19022
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023
 
      conftest$ac_exeext conftest.$ac_ext
19024
 
LIBS=$ac_check_lib_save_LIBS
19025
 
fi
19026
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19027
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19028
 
if test $ac_cv_lib_dld_shl_load = yes; then
19029
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19030
 
else
19031
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
19032
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
19033
 
if test "${ac_cv_func_dlopen+set}" = set; then
19034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19035
 
else
19036
 
  cat >conftest.$ac_ext <<_ACEOF
19037
 
/* confdefs.h.  */
19038
 
_ACEOF
19039
 
cat confdefs.h >>conftest.$ac_ext
19040
 
cat >>conftest.$ac_ext <<_ACEOF
19041
 
/* end confdefs.h.  */
19042
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19043
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19044
 
#define dlopen innocuous_dlopen
19045
 
 
19046
 
/* System header to define __stub macros and hopefully few prototypes,
19047
 
    which can conflict with char dlopen (); below.
19048
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049
 
    <limits.h> exists even on freestanding compilers.  */
19050
 
 
19051
 
#ifdef __STDC__
19052
 
# include <limits.h>
19053
 
#else
19054
 
# include <assert.h>
19055
 
#endif
19056
 
 
19057
 
#undef dlopen
19058
 
 
19059
 
/* Override any GCC internal prototype to avoid an error.
19060
 
   Use char because int might match the return type of a GCC
19061
 
   builtin and then its argument prototype would still apply.  */
19062
 
#ifdef __cplusplus
19063
 
extern "C"
19064
 
#endif
19065
 
char dlopen ();
19066
 
/* The GNU C library defines this for functions which it implements
19067
 
    to always fail with ENOSYS.  Some functions are actually named
19068
 
    something starting with __ and the normal name is an alias.  */
19069
 
#if defined __stub_dlopen || defined __stub___dlopen
19070
 
choke me
19071
 
#endif
19072
 
 
19073
 
int
19074
 
main ()
19075
 
{
19076
 
return dlopen ();
19077
 
  ;
19078
 
  return 0;
19079
 
}
19080
 
_ACEOF
19081
 
rm -f conftest.$ac_objext conftest$ac_exeext
19082
 
if { (ac_try="$ac_link"
19083
 
case "(($ac_try" in
19084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085
 
  *) ac_try_echo=$ac_try;;
19086
 
esac
19087
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088
 
  (eval "$ac_link") 2>conftest.er1
19089
 
  ac_status=$?
19090
 
  grep -v '^ *+' conftest.er1 >conftest.err
19091
 
  rm -f conftest.er1
19092
 
  cat conftest.err >&5
19093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
 
  (exit $ac_status); } && {
19095
 
         test -z "$ac_c_werror_flag" ||
19096
 
         test ! -s conftest.err
19097
 
       } && test -s conftest$ac_exeext &&
19098
 
       $as_test_x conftest$ac_exeext; then
19099
 
  ac_cv_func_dlopen=yes
19100
 
else
19101
 
  echo "$as_me: failed program was:" >&5
19102
 
sed 's/^/| /' conftest.$ac_ext >&5
19103
 
 
19104
 
        ac_cv_func_dlopen=no
19105
 
fi
19106
 
 
19107
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108
 
      conftest$ac_exeext conftest.$ac_ext
19109
 
fi
19110
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19111
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19112
 
if test $ac_cv_func_dlopen = yes; then
19113
 
  lt_cv_dlopen="dlopen"
19114
 
else
19115
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19116
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19117
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19118
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19119
 
else
19120
 
  ac_check_lib_save_LIBS=$LIBS
19121
 
LIBS="-ldl  $LIBS"
19122
 
cat >conftest.$ac_ext <<_ACEOF
19123
 
/* confdefs.h.  */
19124
 
_ACEOF
19125
 
cat confdefs.h >>conftest.$ac_ext
19126
 
cat >>conftest.$ac_ext <<_ACEOF
19127
 
/* end confdefs.h.  */
19128
 
 
19129
 
/* Override any GCC internal prototype to avoid an error.
19130
 
   Use char because int might match the return type of a GCC
19131
 
   builtin and then its argument prototype would still apply.  */
19132
 
#ifdef __cplusplus
19133
 
extern "C"
19134
 
#endif
19135
 
char dlopen ();
19136
 
int
19137
 
main ()
19138
 
{
19139
 
return dlopen ();
19140
 
  ;
19141
 
  return 0;
19142
 
}
19143
 
_ACEOF
19144
 
rm -f conftest.$ac_objext conftest$ac_exeext
19145
 
if { (ac_try="$ac_link"
19146
 
case "(($ac_try" in
19147
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148
 
  *) ac_try_echo=$ac_try;;
19149
 
esac
19150
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151
 
  (eval "$ac_link") 2>conftest.er1
19152
 
  ac_status=$?
19153
 
  grep -v '^ *+' conftest.er1 >conftest.err
19154
 
  rm -f conftest.er1
19155
 
  cat conftest.err >&5
19156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
 
  (exit $ac_status); } && {
19158
 
         test -z "$ac_c_werror_flag" ||
19159
 
         test ! -s conftest.err
19160
 
       } && test -s conftest$ac_exeext &&
19161
 
       $as_test_x conftest$ac_exeext; then
19162
 
  ac_cv_lib_dl_dlopen=yes
19163
 
else
19164
 
  echo "$as_me: failed program was:" >&5
19165
 
sed 's/^/| /' conftest.$ac_ext >&5
19166
 
 
19167
 
        ac_cv_lib_dl_dlopen=no
19168
 
fi
19169
 
 
19170
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19171
 
      conftest$ac_exeext conftest.$ac_ext
19172
 
LIBS=$ac_check_lib_save_LIBS
19173
 
fi
19174
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19175
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19176
 
if test $ac_cv_lib_dl_dlopen = yes; then
19177
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19178
 
else
19179
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19180
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19181
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19182
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19183
 
else
19184
 
  ac_check_lib_save_LIBS=$LIBS
19185
 
LIBS="-lsvld  $LIBS"
19186
 
cat >conftest.$ac_ext <<_ACEOF
19187
 
/* confdefs.h.  */
19188
 
_ACEOF
19189
 
cat confdefs.h >>conftest.$ac_ext
19190
 
cat >>conftest.$ac_ext <<_ACEOF
19191
 
/* end confdefs.h.  */
19192
 
 
19193
 
/* Override any GCC internal prototype to avoid an error.
19194
 
   Use char because int might match the return type of a GCC
19195
 
   builtin and then its argument prototype would still apply.  */
19196
 
#ifdef __cplusplus
19197
 
extern "C"
19198
 
#endif
19199
 
char dlopen ();
19200
 
int
19201
 
main ()
19202
 
{
19203
 
return dlopen ();
19204
 
  ;
19205
 
  return 0;
19206
 
}
19207
 
_ACEOF
19208
 
rm -f conftest.$ac_objext conftest$ac_exeext
19209
 
if { (ac_try="$ac_link"
19210
 
case "(($ac_try" in
19211
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212
 
  *) ac_try_echo=$ac_try;;
19213
 
esac
19214
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215
 
  (eval "$ac_link") 2>conftest.er1
19216
 
  ac_status=$?
19217
 
  grep -v '^ *+' conftest.er1 >conftest.err
19218
 
  rm -f conftest.er1
19219
 
  cat conftest.err >&5
19220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221
 
  (exit $ac_status); } && {
19222
 
         test -z "$ac_c_werror_flag" ||
19223
 
         test ! -s conftest.err
19224
 
       } && test -s conftest$ac_exeext &&
19225
 
       $as_test_x conftest$ac_exeext; then
19226
 
  ac_cv_lib_svld_dlopen=yes
19227
 
else
19228
 
  echo "$as_me: failed program was:" >&5
19229
 
sed 's/^/| /' conftest.$ac_ext >&5
19230
 
 
19231
 
        ac_cv_lib_svld_dlopen=no
19232
 
fi
19233
 
 
19234
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235
 
      conftest$ac_exeext conftest.$ac_ext
19236
 
LIBS=$ac_check_lib_save_LIBS
19237
 
fi
19238
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19239
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19240
 
if test $ac_cv_lib_svld_dlopen = yes; then
19241
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19242
 
else
19243
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19244
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19245
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19246
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19247
 
else
19248
 
  ac_check_lib_save_LIBS=$LIBS
19249
 
LIBS="-ldld  $LIBS"
19250
 
cat >conftest.$ac_ext <<_ACEOF
19251
 
/* confdefs.h.  */
19252
 
_ACEOF
19253
 
cat confdefs.h >>conftest.$ac_ext
19254
 
cat >>conftest.$ac_ext <<_ACEOF
19255
 
/* end confdefs.h.  */
19256
 
 
19257
 
/* Override any GCC internal prototype to avoid an error.
19258
 
   Use char because int might match the return type of a GCC
19259
 
   builtin and then its argument prototype would still apply.  */
19260
 
#ifdef __cplusplus
19261
 
extern "C"
19262
 
#endif
19263
 
char dld_link ();
19264
 
int
19265
 
main ()
19266
 
{
19267
 
return dld_link ();
19268
 
  ;
19269
 
  return 0;
19270
 
}
19271
 
_ACEOF
19272
 
rm -f conftest.$ac_objext conftest$ac_exeext
19273
 
if { (ac_try="$ac_link"
19274
 
case "(($ac_try" in
19275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276
 
  *) ac_try_echo=$ac_try;;
19277
 
esac
19278
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279
 
  (eval "$ac_link") 2>conftest.er1
19280
 
  ac_status=$?
19281
 
  grep -v '^ *+' conftest.er1 >conftest.err
19282
 
  rm -f conftest.er1
19283
 
  cat conftest.err >&5
19284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285
 
  (exit $ac_status); } && {
19286
 
         test -z "$ac_c_werror_flag" ||
19287
 
         test ! -s conftest.err
19288
 
       } && test -s conftest$ac_exeext &&
19289
 
       $as_test_x conftest$ac_exeext; then
19290
 
  ac_cv_lib_dld_dld_link=yes
19291
 
else
19292
 
  echo "$as_me: failed program was:" >&5
19293
 
sed 's/^/| /' conftest.$ac_ext >&5
19294
 
 
19295
 
        ac_cv_lib_dld_dld_link=no
19296
 
fi
19297
 
 
19298
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299
 
      conftest$ac_exeext conftest.$ac_ext
19300
 
LIBS=$ac_check_lib_save_LIBS
19301
 
fi
19302
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19303
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19304
 
if test $ac_cv_lib_dld_dld_link = yes; then
19305
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19306
 
fi
19307
 
 
19308
 
 
19309
 
fi
19310
 
 
19311
 
 
19312
 
fi
19313
 
 
19314
 
 
19315
 
fi
19316
 
 
19317
 
 
19318
 
fi
19319
 
 
19320
 
 
19321
 
fi
19322
 
 
19323
 
    ;;
19324
 
  esac
19325
 
 
19326
 
  if test "x$lt_cv_dlopen" != xno; then
19327
 
    enable_dlopen=yes
19328
 
  else
19329
 
    enable_dlopen=no
19330
 
  fi
19331
 
 
19332
 
  case $lt_cv_dlopen in
19333
 
  dlopen)
19334
 
    save_CPPFLAGS="$CPPFLAGS"
19335
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19336
 
 
19337
 
    save_LDFLAGS="$LDFLAGS"
19338
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19339
 
 
19340
 
    save_LIBS="$LIBS"
19341
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19342
 
 
19343
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19344
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19345
 
if test "${lt_cv_dlopen_self+set}" = set; then
19346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19347
 
else
19348
 
          if test "$cross_compiling" = yes; then :
19349
 
  lt_cv_dlopen_self=cross
19350
 
else
19351
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19352
 
  lt_status=$lt_dlunknown
19353
 
  cat > conftest.$ac_ext <<EOF
19354
 
#line 19354 "configure"
19355
 
#include "confdefs.h"
19356
 
 
19357
 
#if HAVE_DLFCN_H
19358
 
#include <dlfcn.h>
19359
 
#endif
19360
 
 
19361
 
#include <stdio.h>
19362
 
 
19363
 
#ifdef RTLD_GLOBAL
19364
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19365
 
#else
19366
 
#  ifdef DL_GLOBAL
19367
 
#    define LT_DLGLOBAL         DL_GLOBAL
19368
 
#  else
19369
 
#    define LT_DLGLOBAL         0
19370
 
#  endif
19371
 
#endif
19372
 
 
19373
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19374
 
   find out it does not work in some platform. */
19375
 
#ifndef LT_DLLAZY_OR_NOW
19376
 
#  ifdef RTLD_LAZY
19377
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19378
 
#  else
19379
 
#    ifdef DL_LAZY
19380
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19381
 
#    else
19382
 
#      ifdef RTLD_NOW
19383
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19384
 
#      else
19385
 
#        ifdef DL_NOW
19386
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19387
 
#        else
19388
 
#          define LT_DLLAZY_OR_NOW      0
19389
 
#        endif
19390
 
#      endif
19391
 
#    endif
19392
 
#  endif
19393
 
#endif
19394
 
 
19395
 
#ifdef __cplusplus
19396
 
extern "C" void exit (int);
19397
 
#endif
19398
 
 
19399
 
void fnord() { int i=42;}
19400
 
int main ()
19401
 
{
19402
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19403
 
  int status = $lt_dlunknown;
19404
 
 
19405
 
  if (self)
19406
 
    {
19407
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19408
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19409
 
      /* dlclose (self); */
19410
 
    }
19411
 
 
19412
 
    exit (status);
19413
 
}
19414
 
EOF
19415
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416
 
  (eval $ac_link) 2>&5
19417
 
  ac_status=$?
19418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19420
 
    (./conftest; exit; ) 2>/dev/null
19421
 
    lt_status=$?
19422
 
    case x$lt_status in
19423
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19424
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19425
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19426
 
    esac
19427
 
  else :
19428
 
    # compilation failed
19429
 
    lt_cv_dlopen_self=no
19430
 
  fi
19431
 
fi
19432
 
rm -fr conftest*
19433
 
 
19434
 
 
19435
 
fi
19436
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19437
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19438
 
 
19439
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19440
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19441
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19442
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19443
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19445
 
else
19446
 
          if test "$cross_compiling" = yes; then :
19447
 
  lt_cv_dlopen_self_static=cross
19448
 
else
19449
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19450
 
  lt_status=$lt_dlunknown
19451
 
  cat > conftest.$ac_ext <<EOF
19452
 
#line 19452 "configure"
19453
 
#include "confdefs.h"
19454
 
 
19455
 
#if HAVE_DLFCN_H
19456
 
#include <dlfcn.h>
19457
 
#endif
19458
 
 
19459
 
#include <stdio.h>
19460
 
 
19461
 
#ifdef RTLD_GLOBAL
19462
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19463
 
#else
19464
 
#  ifdef DL_GLOBAL
19465
 
#    define LT_DLGLOBAL         DL_GLOBAL
19466
 
#  else
19467
 
#    define LT_DLGLOBAL         0
19468
 
#  endif
19469
 
#endif
19470
 
 
19471
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19472
 
   find out it does not work in some platform. */
19473
 
#ifndef LT_DLLAZY_OR_NOW
19474
 
#  ifdef RTLD_LAZY
19475
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19476
 
#  else
19477
 
#    ifdef DL_LAZY
19478
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19479
 
#    else
19480
 
#      ifdef RTLD_NOW
19481
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19482
 
#      else
19483
 
#        ifdef DL_NOW
19484
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19485
 
#        else
19486
 
#          define LT_DLLAZY_OR_NOW      0
19487
 
#        endif
19488
 
#      endif
19489
 
#    endif
19490
 
#  endif
19491
 
#endif
19492
 
 
19493
 
#ifdef __cplusplus
19494
 
extern "C" void exit (int);
19495
 
#endif
19496
 
 
19497
 
void fnord() { int i=42;}
19498
 
int main ()
19499
 
{
19500
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19501
 
  int status = $lt_dlunknown;
19502
 
 
19503
 
  if (self)
19504
 
    {
19505
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19506
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19507
 
      /* dlclose (self); */
19508
 
    }
19509
 
 
19510
 
    exit (status);
19511
 
}
19512
 
EOF
19513
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514
 
  (eval $ac_link) 2>&5
19515
 
  ac_status=$?
19516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19518
 
    (./conftest; exit; ) 2>/dev/null
19519
 
    lt_status=$?
19520
 
    case x$lt_status in
19521
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19522
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19523
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19524
 
    esac
19525
 
  else :
19526
 
    # compilation failed
19527
 
    lt_cv_dlopen_self_static=no
19528
 
  fi
19529
 
fi
19530
 
rm -fr conftest*
19531
 
 
19532
 
 
19533
 
fi
19534
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19535
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19536
 
    fi
19537
 
 
19538
 
    CPPFLAGS="$save_CPPFLAGS"
19539
 
    LDFLAGS="$save_LDFLAGS"
19540
 
    LIBS="$save_LIBS"
19541
 
    ;;
19542
 
  esac
19543
 
 
19544
 
  case $lt_cv_dlopen_self in
19545
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19546
 
  *) enable_dlopen_self=unknown ;;
19547
 
  esac
19548
 
 
19549
 
  case $lt_cv_dlopen_self_static in
19550
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19551
 
  *) enable_dlopen_self_static=unknown ;;
19552
 
  esac
19553
 
fi
19554
 
 
19555
 
 
19556
 
# The else clause should only fire when bootstrapping the
19557
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19558
 
# with your package, and you will get complaints that there are
19559
 
# no rules to generate ltmain.sh.
19560
 
if test -f "$ltmain"; then
19561
 
  # See if we are running on zsh, and set the options which allow our commands through
19562
 
  # without removal of \ escapes.
19563
 
  if test -n "${ZSH_VERSION+set}" ; then
19564
 
    setopt NO_GLOB_SUBST
19565
 
  fi
19566
 
  # Now quote all the things that may contain metacharacters while being
19567
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19568
 
  # variables and quote the copies for generation of the libtool script.
19569
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19570
 
    SED SHELL STRIP \
19571
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19572
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19573
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19574
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19575
 
    lt_cv_sys_global_symbol_to_c_name_address \
19576
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19577
 
    old_postinstall_cmds old_postuninstall_cmds \
19578
 
    compiler_GCJ \
19579
 
    CC_GCJ \
19580
 
    LD_GCJ \
19581
 
    lt_prog_compiler_wl_GCJ \
19582
 
    lt_prog_compiler_pic_GCJ \
19583
 
    lt_prog_compiler_static_GCJ \
19584
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19585
 
    export_dynamic_flag_spec_GCJ \
19586
 
    thread_safe_flag_spec_GCJ \
19587
 
    whole_archive_flag_spec_GCJ \
19588
 
    enable_shared_with_static_runtimes_GCJ \
19589
 
    old_archive_cmds_GCJ \
19590
 
    old_archive_from_new_cmds_GCJ \
19591
 
    predep_objects_GCJ \
19592
 
    postdep_objects_GCJ \
19593
 
    predeps_GCJ \
19594
 
    postdeps_GCJ \
19595
 
    compiler_lib_search_path_GCJ \
19596
 
    archive_cmds_GCJ \
19597
 
    archive_expsym_cmds_GCJ \
19598
 
    postinstall_cmds_GCJ \
19599
 
    postuninstall_cmds_GCJ \
19600
 
    old_archive_from_expsyms_cmds_GCJ \
19601
 
    allow_undefined_flag_GCJ \
19602
 
    no_undefined_flag_GCJ \
19603
 
    export_symbols_cmds_GCJ \
19604
 
    hardcode_libdir_flag_spec_GCJ \
19605
 
    hardcode_libdir_flag_spec_ld_GCJ \
19606
 
    hardcode_libdir_separator_GCJ \
19607
 
    hardcode_automatic_GCJ \
19608
 
    module_cmds_GCJ \
19609
 
    module_expsym_cmds_GCJ \
19610
 
    lt_cv_prog_compiler_c_o_GCJ \
19611
 
    exclude_expsyms_GCJ \
19612
 
    include_expsyms_GCJ; do
19613
 
 
19614
 
    case $var in
19615
 
    old_archive_cmds_GCJ | \
19616
 
    old_archive_from_new_cmds_GCJ | \
19617
 
    archive_cmds_GCJ | \
19618
 
    archive_expsym_cmds_GCJ | \
19619
 
    module_cmds_GCJ | \
19620
 
    module_expsym_cmds_GCJ | \
19621
 
    old_archive_from_expsyms_cmds_GCJ | \
19622
 
    export_symbols_cmds_GCJ | \
19623
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19624
 
    postinstall_cmds | postuninstall_cmds | \
19625
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19626
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19627
 
      # Double-quote double-evaled strings.
19628
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19629
 
      ;;
19630
 
    *)
19631
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19632
 
      ;;
19633
 
    esac
19634
 
  done
19635
 
 
19636
 
  case $lt_echo in
19637
 
  *'\$0 --fallback-echo"')
19638
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19639
 
    ;;
19640
 
  esac
19641
 
 
19642
 
cfgfile="$ofile"
19643
 
 
19644
 
  cat <<__EOF__ >> "$cfgfile"
19645
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19646
 
 
19647
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19648
 
 
19649
 
# Shell to use when invoking shell scripts.
19650
 
SHELL=$lt_SHELL
19651
 
 
19652
 
# Whether or not to build shared libraries.
19653
 
build_libtool_libs=$enable_shared
19654
 
 
19655
 
# Whether or not to build static libraries.
19656
 
build_old_libs=$enable_static
19657
 
 
19658
 
# Whether or not to add -lc for building shared libraries.
19659
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19660
 
 
19661
 
# Whether or not to disallow shared libs when runtime libs are static
19662
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19663
 
 
19664
 
# Whether or not to optimize for fast installation.
19665
 
fast_install=$enable_fast_install
19666
 
 
19667
 
# The host system.
19668
 
host_alias=$host_alias
19669
 
host=$host
19670
 
 
19671
 
# An echo program that does not interpret backslashes.
19672
 
echo=$lt_echo
19673
 
 
19674
 
# The archiver.
19675
 
AR=$lt_AR
19676
 
AR_FLAGS=$lt_AR_FLAGS
19677
 
 
19678
 
# A C compiler.
19679
 
LTCC=$lt_LTCC
19680
 
 
19681
 
# A language-specific compiler.
19682
 
CC=$lt_compiler_GCJ
19683
 
 
19684
 
# Is the compiler the GNU C compiler?
19685
 
with_gcc=$GCC_GCJ
19686
 
 
19687
 
# An ERE matcher.
19688
 
EGREP=$lt_EGREP
19689
 
 
19690
 
# The linker used to build libraries.
19691
 
LD=$lt_LD_GCJ
19692
 
 
19693
 
# Whether we need hard or soft links.
19694
 
LN_S=$lt_LN_S
19695
 
 
19696
 
# A BSD-compatible nm program.
19697
 
NM=$lt_NM
19698
 
 
19699
 
# A symbol stripping program
19700
 
STRIP=$lt_STRIP
19701
 
 
19702
 
# Used to examine libraries when file_magic_cmd begins "file"
19703
 
MAGIC_CMD=$MAGIC_CMD
19704
 
 
19705
 
# Used on cygwin: DLL creation program.
19706
 
DLLTOOL="$DLLTOOL"
19707
 
 
19708
 
# Used on cygwin: object dumper.
19709
 
OBJDUMP="$OBJDUMP"
19710
 
 
19711
 
# Used on cygwin: assembler.
19712
 
AS="$AS"
19713
 
 
19714
 
# The name of the directory that contains temporary libtool files.
19715
 
objdir=$objdir
19716
 
 
19717
 
# How to create reloadable object files.
19718
 
reload_flag=$lt_reload_flag
19719
 
reload_cmds=$lt_reload_cmds
19720
 
 
19721
 
# How to pass a linker flag through the compiler.
19722
 
wl=$lt_lt_prog_compiler_wl_GCJ
19723
 
 
19724
 
# Object file suffix (normally "o").
19725
 
objext="$ac_objext"
19726
 
 
19727
 
# Old archive suffix (normally "a").
19728
 
libext="$libext"
19729
 
 
19730
 
# Shared library suffix (normally ".so").
19731
 
shrext_cmds='$shrext_cmds'
19732
 
 
19733
 
# Executable file suffix (normally "").
19734
 
exeext="$exeext"
19735
 
 
19736
 
# Additional compiler flags for building library objects.
19737
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19738
 
pic_mode=$pic_mode
19739
 
 
19740
 
# What is the maximum length of a command?
19741
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19742
 
 
19743
 
# Does compiler simultaneously support -c and -o options?
19744
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19745
 
 
19746
 
# Must we lock files when doing compilation ?
19747
 
need_locks=$lt_need_locks
19748
 
 
19749
 
# Do we need the lib prefix for modules?
19750
 
need_lib_prefix=$need_lib_prefix
19751
 
 
19752
 
# Do we need a version for libraries?
19753
 
need_version=$need_version
19754
 
 
19755
 
# Whether dlopen is supported.
19756
 
dlopen_support=$enable_dlopen
19757
 
 
19758
 
# Whether dlopen of programs is supported.
19759
 
dlopen_self=$enable_dlopen_self
19760
 
 
19761
 
# Whether dlopen of statically linked programs is supported.
19762
 
dlopen_self_static=$enable_dlopen_self_static
19763
 
 
19764
 
# Compiler flag to prevent dynamic linking.
19765
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19766
 
 
19767
 
# Compiler flag to turn off builtin functions.
19768
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19769
 
 
19770
 
# Compiler flag to allow reflexive dlopens.
19771
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19772
 
 
19773
 
# Compiler flag to generate shared objects directly from archives.
19774
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19775
 
 
19776
 
# Compiler flag to generate thread-safe objects.
19777
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19778
 
 
19779
 
# Library versioning type.
19780
 
version_type=$version_type
19781
 
 
19782
 
# Format of library name prefix.
19783
 
libname_spec=$lt_libname_spec
19784
 
 
19785
 
# List of archive names.  First name is the real one, the rest are links.
19786
 
# The last name is the one that the linker finds with -lNAME.
19787
 
library_names_spec=$lt_library_names_spec
19788
 
 
19789
 
# The coded name of the library, if different from the real name.
19790
 
soname_spec=$lt_soname_spec
19791
 
 
19792
 
# Commands used to build and install an old-style archive.
19793
 
RANLIB=$lt_RANLIB
19794
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19795
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19796
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19797
 
 
19798
 
# Create an old-style archive from a shared archive.
19799
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19800
 
 
19801
 
# Create a temporary old-style archive to link instead of a shared archive.
19802
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19803
 
 
19804
 
# Commands used to build and install a shared archive.
19805
 
archive_cmds=$lt_archive_cmds_GCJ
19806
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19807
 
postinstall_cmds=$lt_postinstall_cmds
19808
 
postuninstall_cmds=$lt_postuninstall_cmds
19809
 
 
19810
 
# Commands used to build a loadable module (assumed same as above if empty)
19811
 
module_cmds=$lt_module_cmds_GCJ
19812
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19813
 
 
19814
 
# Commands to strip libraries.
19815
 
old_striplib=$lt_old_striplib
19816
 
striplib=$lt_striplib
19817
 
 
19818
 
# Dependencies to place before the objects being linked to create a
19819
 
# shared library.
19820
 
predep_objects=$lt_predep_objects_GCJ
19821
 
 
19822
 
# Dependencies to place after the objects being linked to create a
19823
 
# shared library.
19824
 
postdep_objects=$lt_postdep_objects_GCJ
19825
 
 
19826
 
# Dependencies to place before the objects being linked to create a
19827
 
# shared library.
19828
 
predeps=$lt_predeps_GCJ
19829
 
 
19830
 
# Dependencies to place after the objects being linked to create a
19831
 
# shared library.
19832
 
postdeps=$lt_postdeps_GCJ
19833
 
 
19834
 
# The library search path used internally by the compiler when linking
19835
 
# a shared library.
19836
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19837
 
 
19838
 
# Method to check whether dependent libraries are shared objects.
19839
 
deplibs_check_method=$lt_deplibs_check_method
19840
 
 
19841
 
# Command to use when deplibs_check_method == file_magic.
19842
 
file_magic_cmd=$lt_file_magic_cmd
19843
 
 
19844
 
# Flag that allows shared libraries with undefined symbols to be built.
19845
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19846
 
 
19847
 
# Flag that forces no undefined symbols.
19848
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19849
 
 
19850
 
# Commands used to finish a libtool library installation in a directory.
19851
 
finish_cmds=$lt_finish_cmds
19852
 
 
19853
 
# Same as above, but a single script fragment to be evaled but not shown.
19854
 
finish_eval=$lt_finish_eval
19855
 
 
19856
 
# Take the output of nm and produce a listing of raw symbols and C names.
19857
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19858
 
 
19859
 
# Transform the output of nm in a proper C declaration
19860
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19861
 
 
19862
 
# Transform the output of nm in a C name address pair
19863
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19864
 
 
19865
 
# This is the shared library runtime path variable.
19866
 
runpath_var=$runpath_var
19867
 
 
19868
 
# This is the shared library path variable.
19869
 
shlibpath_var=$shlibpath_var
19870
 
 
19871
 
# Is shlibpath searched before the hard-coded library search path?
19872
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19873
 
 
19874
 
# How to hardcode a shared library path into an executable.
19875
 
hardcode_action=$hardcode_action_GCJ
19876
 
 
19877
 
# Whether we should hardcode library paths into libraries.
19878
 
hardcode_into_libs=$hardcode_into_libs
19879
 
 
19880
 
# Flag to hardcode \$libdir into a binary during linking.
19881
 
# This must work even if \$libdir does not exist.
19882
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19883
 
 
19884
 
# If ld is used when linking, flag to hardcode \$libdir into
19885
 
# a binary during linking. This must work even if \$libdir does
19886
 
# not exist.
19887
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19888
 
 
19889
 
# Whether we need a single -rpath flag with a separated argument.
19890
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19891
 
 
19892
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19893
 
# resulting binary.
19894
 
hardcode_direct=$hardcode_direct_GCJ
19895
 
 
19896
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19897
 
# resulting binary.
19898
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19899
 
 
19900
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19901
 
# the resulting binary.
19902
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19903
 
 
19904
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19905
 
# and all subsequent libraries and executables linked against it.
19906
 
hardcode_automatic=$hardcode_automatic_GCJ
19907
 
 
19908
 
# Variables whose values should be saved in libtool wrapper scripts and
19909
 
# restored at relink time.
19910
 
variables_saved_for_relink="$variables_saved_for_relink"
19911
 
 
19912
 
# Whether libtool must link a program against all its dependency libraries.
19913
 
link_all_deplibs=$link_all_deplibs_GCJ
19914
 
 
19915
 
# Compile-time system search path for libraries
19916
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19917
 
 
19918
 
# Run-time system search path for libraries
19919
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19920
 
 
19921
 
# Fix the shell variable \$srcfile for the compiler.
19922
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
19923
 
 
19924
 
# Set to yes if exported symbols are required.
19925
 
always_export_symbols=$always_export_symbols_GCJ
19926
 
 
19927
 
# The commands to list exported symbols.
19928
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19929
 
 
19930
 
# The commands to extract the exported symbol list from a shared archive.
19931
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19932
 
 
19933
 
# Symbols that should not be listed in the preloaded symbols.
19934
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19935
 
 
19936
 
# Symbols that must always be exported.
19937
 
include_expsyms=$lt_include_expsyms_GCJ
19938
 
 
19939
 
# ### END LIBTOOL TAG CONFIG: $tagname
19940
 
 
19941
 
__EOF__
19942
 
 
19943
 
 
19944
 
else
19945
 
  # If there is no Makefile yet, we rely on a make rule to execute
19946
 
  # `config.status --recheck' to rerun these tests and create the
19947
 
  # libtool script then.
19948
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19949
 
  if test -f "$ltmain_in"; then
19950
 
    test -f Makefile && make "$ltmain"
19951
 
  fi
19952
 
fi
19953
 
 
19954
 
 
19955
 
ac_ext=c
19956
 
ac_cpp='$CPP $CPPFLAGS'
19957
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19960
 
 
19961
 
CC="$lt_save_CC"
19962
 
 
19963
 
        else
19964
 
          tagname=""
19965
 
        fi
19966
 
        ;;
19967
 
 
19968
 
      RC)
 
11062
    if test -n "$RANLIB"; then
 
11063
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11064
      postinstall_cmds='$RANLIB $lib'
 
11065
    fi
 
11066
    ;;
 
11067
 
 
11068
  aix[4-9]*)
 
11069
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11070
      test "$enable_shared" = yes && enable_static=no
 
11071
    fi
 
11072
    ;;
 
11073
  esac
 
11074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11075
$as_echo "$enable_shared" >&6; }
 
11076
 
 
11077
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11078
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11079
  # Make sure either enable_shared or enable_static is yes.
 
11080
  test "$enable_shared" = yes || enable_static=yes
 
11081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11082
$as_echo "$enable_static" >&6; }
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
fi
 
11088
ac_ext=c
 
11089
ac_cpp='$CPP $CPPFLAGS'
 
11090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11093
 
 
11094
CC="$lt_save_CC"
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
        ac_config_commands="$ac_config_commands libtool"
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
# Only expand once:
 
11114
 
 
11115
 
 
11116
if test -n "$ac_tool_prefix"; then
 
11117
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
11118
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
11119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11120
$as_echo_n "checking for $ac_word... " >&6; }
 
11121
if test "${ac_cv_prog_RC+set}" = set; then :
 
11122
  $as_echo_n "(cached) " >&6
 
11123
else
 
11124
  if test -n "$RC"; then
 
11125
  ac_cv_prog_RC="$RC" # Let the user override the test.
 
11126
else
 
11127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11128
for as_dir in $PATH
 
11129
do
 
11130
  IFS=$as_save_IFS
 
11131
  test -z "$as_dir" && as_dir=.
 
11132
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11134
    ac_cv_prog_RC="${ac_tool_prefix}windres"
 
11135
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11136
    break 2
 
11137
  fi
 
11138
done
 
11139
  done
 
11140
IFS=$as_save_IFS
 
11141
 
 
11142
fi
 
11143
fi
 
11144
RC=$ac_cv_prog_RC
 
11145
if test -n "$RC"; then
 
11146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
 
11147
$as_echo "$RC" >&6; }
 
11148
else
 
11149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11150
$as_echo "no" >&6; }
 
11151
fi
 
11152
 
 
11153
 
 
11154
fi
 
11155
if test -z "$ac_cv_prog_RC"; then
 
11156
  ac_ct_RC=$RC
 
11157
  # Extract the first word of "windres", so it can be a program name with args.
 
11158
set dummy windres; ac_word=$2
 
11159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11160
$as_echo_n "checking for $ac_word... " >&6; }
 
11161
if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
 
11162
  $as_echo_n "(cached) " >&6
 
11163
else
 
11164
  if test -n "$ac_ct_RC"; then
 
11165
  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
 
11166
else
 
11167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11168
for as_dir in $PATH
 
11169
do
 
11170
  IFS=$as_save_IFS
 
11171
  test -z "$as_dir" && as_dir=.
 
11172
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11173
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11174
    ac_cv_prog_ac_ct_RC="windres"
 
11175
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11176
    break 2
 
11177
  fi
 
11178
done
 
11179
  done
 
11180
IFS=$as_save_IFS
 
11181
 
 
11182
fi
 
11183
fi
 
11184
ac_ct_RC=$ac_cv_prog_ac_ct_RC
 
11185
if test -n "$ac_ct_RC"; then
 
11186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
 
11187
$as_echo "$ac_ct_RC" >&6; }
 
11188
else
 
11189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11190
$as_echo "no" >&6; }
 
11191
fi
 
11192
 
 
11193
  if test "x$ac_ct_RC" = x; then
 
11194
    RC=""
 
11195
  else
 
11196
    case $cross_compiling:$ac_tool_warned in
 
11197
yes:)
 
11198
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11199
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11200
ac_tool_warned=yes ;;
 
11201
esac
 
11202
    RC=$ac_ct_RC
 
11203
  fi
 
11204
else
 
11205
  RC="$ac_cv_prog_RC"
 
11206
fi
 
11207
 
 
11208
 
19969
11209
 
19970
11210
 
19971
11211
# Source file extension for RC test sources.
19976
11216
objext_RC=$objext
19977
11217
 
19978
11218
# Code to be used in simple compile tests
19979
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
11219
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19980
11220
 
19981
11221
# Code to be used in simple link tests
19982
11222
lt_simple_link_test_code="$lt_simple_compile_test_code"
19983
11223
 
19984
11224
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19985
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
19986
11231
# If no C compiler was specified, use CC.
19987
11232
LTCC=${LTCC-"$CC"}
19988
11233
 
 
11234
# If no C compiler flags were specified, use CFLAGS.
 
11235
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11236
 
19989
11237
# Allow CC to be a program name with arguments.
19990
11238
compiler=$CC
19991
11239
 
19992
11240
 
 
11241
# save warnings/boilerplate of simple test code
 
11242
ac_outfile=conftest.$ac_objext
 
11243
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11244
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11245
_lt_compiler_boilerplate=`cat conftest.err`
 
11246
$RM conftest*
 
11247
 
 
11248
ac_outfile=conftest.$ac_objext
 
11249
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11250
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11251
_lt_linker_boilerplate=`cat conftest.err`
 
11252
$RM -r conftest*
 
11253
 
 
11254
 
19993
11255
# Allow CC to be a program name with arguments.
19994
11256
lt_save_CC="$CC"
 
11257
lt_save_GCC=$GCC
 
11258
GCC=
19995
11259
CC=${RC-"windres"}
19996
11260
compiler=$CC
19997
11261
compiler_RC=$CC
 
11262
for cc_temp in $compiler""; do
 
11263
  case $cc_temp in
 
11264
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11265
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11266
    \-*) ;;
 
11267
    *) break;;
 
11268
  esac
 
11269
done
 
11270
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11271
 
19998
11272
lt_cv_prog_compiler_c_o_RC=yes
19999
11273
 
20000
 
# The else clause should only fire when bootstrapping the
20001
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20002
 
# with your package, and you will get complaints that there are
20003
 
# no rules to generate ltmain.sh.
20004
 
if test -f "$ltmain"; then
20005
 
  # See if we are running on zsh, and set the options which allow our commands through
20006
 
  # without removal of \ escapes.
20007
 
  if test -n "${ZSH_VERSION+set}" ; then
20008
 
    setopt NO_GLOB_SUBST
20009
 
  fi
20010
 
  # Now quote all the things that may contain metacharacters while being
20011
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20012
 
  # variables and quote the copies for generation of the libtool script.
20013
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20014
 
    SED SHELL STRIP \
20015
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20016
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20017
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20018
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20019
 
    lt_cv_sys_global_symbol_to_c_name_address \
20020
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20021
 
    old_postinstall_cmds old_postuninstall_cmds \
20022
 
    compiler_RC \
20023
 
    CC_RC \
20024
 
    LD_RC \
20025
 
    lt_prog_compiler_wl_RC \
20026
 
    lt_prog_compiler_pic_RC \
20027
 
    lt_prog_compiler_static_RC \
20028
 
    lt_prog_compiler_no_builtin_flag_RC \
20029
 
    export_dynamic_flag_spec_RC \
20030
 
    thread_safe_flag_spec_RC \
20031
 
    whole_archive_flag_spec_RC \
20032
 
    enable_shared_with_static_runtimes_RC \
20033
 
    old_archive_cmds_RC \
20034
 
    old_archive_from_new_cmds_RC \
20035
 
    predep_objects_RC \
20036
 
    postdep_objects_RC \
20037
 
    predeps_RC \
20038
 
    postdeps_RC \
20039
 
    compiler_lib_search_path_RC \
20040
 
    archive_cmds_RC \
20041
 
    archive_expsym_cmds_RC \
20042
 
    postinstall_cmds_RC \
20043
 
    postuninstall_cmds_RC \
20044
 
    old_archive_from_expsyms_cmds_RC \
20045
 
    allow_undefined_flag_RC \
20046
 
    no_undefined_flag_RC \
20047
 
    export_symbols_cmds_RC \
20048
 
    hardcode_libdir_flag_spec_RC \
20049
 
    hardcode_libdir_flag_spec_ld_RC \
20050
 
    hardcode_libdir_separator_RC \
20051
 
    hardcode_automatic_RC \
20052
 
    module_cmds_RC \
20053
 
    module_expsym_cmds_RC \
20054
 
    lt_cv_prog_compiler_c_o_RC \
20055
 
    exclude_expsyms_RC \
20056
 
    include_expsyms_RC; do
20057
 
 
20058
 
    case $var in
20059
 
    old_archive_cmds_RC | \
20060
 
    old_archive_from_new_cmds_RC | \
20061
 
    archive_cmds_RC | \
20062
 
    archive_expsym_cmds_RC | \
20063
 
    module_cmds_RC | \
20064
 
    module_expsym_cmds_RC | \
20065
 
    old_archive_from_expsyms_cmds_RC | \
20066
 
    export_symbols_cmds_RC | \
20067
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20068
 
    postinstall_cmds | postuninstall_cmds | \
20069
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20070
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20071
 
      # Double-quote double-evaled strings.
20072
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20073
 
      ;;
20074
 
    *)
20075
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20076
 
      ;;
20077
 
    esac
20078
 
  done
20079
 
 
20080
 
  case $lt_echo in
20081
 
  *'\$0 --fallback-echo"')
20082
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20083
 
    ;;
20084
 
  esac
20085
 
 
20086
 
cfgfile="$ofile"
20087
 
 
20088
 
  cat <<__EOF__ >> "$cfgfile"
20089
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20090
 
 
20091
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20092
 
 
20093
 
# Shell to use when invoking shell scripts.
20094
 
SHELL=$lt_SHELL
20095
 
 
20096
 
# Whether or not to build shared libraries.
20097
 
build_libtool_libs=$enable_shared
20098
 
 
20099
 
# Whether or not to build static libraries.
20100
 
build_old_libs=$enable_static
20101
 
 
20102
 
# Whether or not to add -lc for building shared libraries.
20103
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20104
 
 
20105
 
# Whether or not to disallow shared libs when runtime libs are static
20106
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20107
 
 
20108
 
# Whether or not to optimize for fast installation.
20109
 
fast_install=$enable_fast_install
20110
 
 
20111
 
# The host system.
20112
 
host_alias=$host_alias
20113
 
host=$host
20114
 
 
20115
 
# An echo program that does not interpret backslashes.
20116
 
echo=$lt_echo
20117
 
 
20118
 
# The archiver.
20119
 
AR=$lt_AR
20120
 
AR_FLAGS=$lt_AR_FLAGS
20121
 
 
20122
 
# A C compiler.
20123
 
LTCC=$lt_LTCC
20124
 
 
20125
 
# A language-specific compiler.
20126
 
CC=$lt_compiler_RC
20127
 
 
20128
 
# Is the compiler the GNU C compiler?
20129
 
with_gcc=$GCC_RC
20130
 
 
20131
 
# An ERE matcher.
20132
 
EGREP=$lt_EGREP
20133
 
 
20134
 
# The linker used to build libraries.
20135
 
LD=$lt_LD_RC
20136
 
 
20137
 
# Whether we need hard or soft links.
20138
 
LN_S=$lt_LN_S
20139
 
 
20140
 
# A BSD-compatible nm program.
20141
 
NM=$lt_NM
20142
 
 
20143
 
# A symbol stripping program
20144
 
STRIP=$lt_STRIP
20145
 
 
20146
 
# Used to examine libraries when file_magic_cmd begins "file"
20147
 
MAGIC_CMD=$MAGIC_CMD
20148
 
 
20149
 
# Used on cygwin: DLL creation program.
20150
 
DLLTOOL="$DLLTOOL"
20151
 
 
20152
 
# Used on cygwin: object dumper.
20153
 
OBJDUMP="$OBJDUMP"
20154
 
 
20155
 
# Used on cygwin: assembler.
20156
 
AS="$AS"
20157
 
 
20158
 
# The name of the directory that contains temporary libtool files.
20159
 
objdir=$objdir
20160
 
 
20161
 
# How to create reloadable object files.
20162
 
reload_flag=$lt_reload_flag
20163
 
reload_cmds=$lt_reload_cmds
20164
 
 
20165
 
# How to pass a linker flag through the compiler.
20166
 
wl=$lt_lt_prog_compiler_wl_RC
20167
 
 
20168
 
# Object file suffix (normally "o").
20169
 
objext="$ac_objext"
20170
 
 
20171
 
# Old archive suffix (normally "a").
20172
 
libext="$libext"
20173
 
 
20174
 
# Shared library suffix (normally ".so").
20175
 
shrext_cmds='$shrext_cmds'
20176
 
 
20177
 
# Executable file suffix (normally "").
20178
 
exeext="$exeext"
20179
 
 
20180
 
# Additional compiler flags for building library objects.
20181
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20182
 
pic_mode=$pic_mode
20183
 
 
20184
 
# What is the maximum length of a command?
20185
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20186
 
 
20187
 
# Does compiler simultaneously support -c and -o options?
20188
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20189
 
 
20190
 
# Must we lock files when doing compilation ?
20191
 
need_locks=$lt_need_locks
20192
 
 
20193
 
# Do we need the lib prefix for modules?
20194
 
need_lib_prefix=$need_lib_prefix
20195
 
 
20196
 
# Do we need a version for libraries?
20197
 
need_version=$need_version
20198
 
 
20199
 
# Whether dlopen is supported.
20200
 
dlopen_support=$enable_dlopen
20201
 
 
20202
 
# Whether dlopen of programs is supported.
20203
 
dlopen_self=$enable_dlopen_self
20204
 
 
20205
 
# Whether dlopen of statically linked programs is supported.
20206
 
dlopen_self_static=$enable_dlopen_self_static
20207
 
 
20208
 
# Compiler flag to prevent dynamic linking.
20209
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20210
 
 
20211
 
# Compiler flag to turn off builtin functions.
20212
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20213
 
 
20214
 
# Compiler flag to allow reflexive dlopens.
20215
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20216
 
 
20217
 
# Compiler flag to generate shared objects directly from archives.
20218
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20219
 
 
20220
 
# Compiler flag to generate thread-safe objects.
20221
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20222
 
 
20223
 
# Library versioning type.
20224
 
version_type=$version_type
20225
 
 
20226
 
# Format of library name prefix.
20227
 
libname_spec=$lt_libname_spec
20228
 
 
20229
 
# List of archive names.  First name is the real one, the rest are links.
20230
 
# The last name is the one that the linker finds with -lNAME.
20231
 
library_names_spec=$lt_library_names_spec
20232
 
 
20233
 
# The coded name of the library, if different from the real name.
20234
 
soname_spec=$lt_soname_spec
20235
 
 
20236
 
# Commands used to build and install an old-style archive.
20237
 
RANLIB=$lt_RANLIB
20238
 
old_archive_cmds=$lt_old_archive_cmds_RC
20239
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20240
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20241
 
 
20242
 
# Create an old-style archive from a shared archive.
20243
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20244
 
 
20245
 
# Create a temporary old-style archive to link instead of a shared archive.
20246
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20247
 
 
20248
 
# Commands used to build and install a shared archive.
20249
 
archive_cmds=$lt_archive_cmds_RC
20250
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20251
 
postinstall_cmds=$lt_postinstall_cmds
20252
 
postuninstall_cmds=$lt_postuninstall_cmds
20253
 
 
20254
 
# Commands used to build a loadable module (assumed same as above if empty)
20255
 
module_cmds=$lt_module_cmds_RC
20256
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20257
 
 
20258
 
# Commands to strip libraries.
20259
 
old_striplib=$lt_old_striplib
20260
 
striplib=$lt_striplib
20261
 
 
20262
 
# Dependencies to place before the objects being linked to create a
20263
 
# shared library.
20264
 
predep_objects=$lt_predep_objects_RC
20265
 
 
20266
 
# Dependencies to place after the objects being linked to create a
20267
 
# shared library.
20268
 
postdep_objects=$lt_postdep_objects_RC
20269
 
 
20270
 
# Dependencies to place before the objects being linked to create a
20271
 
# shared library.
20272
 
predeps=$lt_predeps_RC
20273
 
 
20274
 
# Dependencies to place after the objects being linked to create a
20275
 
# shared library.
20276
 
postdeps=$lt_postdeps_RC
20277
 
 
20278
 
# The library search path used internally by the compiler when linking
20279
 
# a shared library.
20280
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20281
 
 
20282
 
# Method to check whether dependent libraries are shared objects.
20283
 
deplibs_check_method=$lt_deplibs_check_method
20284
 
 
20285
 
# Command to use when deplibs_check_method == file_magic.
20286
 
file_magic_cmd=$lt_file_magic_cmd
20287
 
 
20288
 
# Flag that allows shared libraries with undefined symbols to be built.
20289
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20290
 
 
20291
 
# Flag that forces no undefined symbols.
20292
 
no_undefined_flag=$lt_no_undefined_flag_RC
20293
 
 
20294
 
# Commands used to finish a libtool library installation in a directory.
20295
 
finish_cmds=$lt_finish_cmds
20296
 
 
20297
 
# Same as above, but a single script fragment to be evaled but not shown.
20298
 
finish_eval=$lt_finish_eval
20299
 
 
20300
 
# Take the output of nm and produce a listing of raw symbols and C names.
20301
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20302
 
 
20303
 
# Transform the output of nm in a proper C declaration
20304
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20305
 
 
20306
 
# Transform the output of nm in a C name address pair
20307
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20308
 
 
20309
 
# This is the shared library runtime path variable.
20310
 
runpath_var=$runpath_var
20311
 
 
20312
 
# This is the shared library path variable.
20313
 
shlibpath_var=$shlibpath_var
20314
 
 
20315
 
# Is shlibpath searched before the hard-coded library search path?
20316
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20317
 
 
20318
 
# How to hardcode a shared library path into an executable.
20319
 
hardcode_action=$hardcode_action_RC
20320
 
 
20321
 
# Whether we should hardcode library paths into libraries.
20322
 
hardcode_into_libs=$hardcode_into_libs
20323
 
 
20324
 
# Flag to hardcode \$libdir into a binary during linking.
20325
 
# This must work even if \$libdir does not exist.
20326
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20327
 
 
20328
 
# If ld is used when linking, flag to hardcode \$libdir into
20329
 
# a binary during linking. This must work even if \$libdir does
20330
 
# not exist.
20331
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20332
 
 
20333
 
# Whether we need a single -rpath flag with a separated argument.
20334
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20335
 
 
20336
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20337
 
# resulting binary.
20338
 
hardcode_direct=$hardcode_direct_RC
20339
 
 
20340
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20341
 
# resulting binary.
20342
 
hardcode_minus_L=$hardcode_minus_L_RC
20343
 
 
20344
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20345
 
# the resulting binary.
20346
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20347
 
 
20348
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20349
 
# and all subsequent libraries and executables linked against it.
20350
 
hardcode_automatic=$hardcode_automatic_RC
20351
 
 
20352
 
# Variables whose values should be saved in libtool wrapper scripts and
20353
 
# restored at relink time.
20354
 
variables_saved_for_relink="$variables_saved_for_relink"
20355
 
 
20356
 
# Whether libtool must link a program against all its dependency libraries.
20357
 
link_all_deplibs=$link_all_deplibs_RC
20358
 
 
20359
 
# Compile-time system search path for libraries
20360
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20361
 
 
20362
 
# Run-time system search path for libraries
20363
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20364
 
 
20365
 
# Fix the shell variable \$srcfile for the compiler.
20366
 
fix_srcfile_path="$fix_srcfile_path_RC"
20367
 
 
20368
 
# Set to yes if exported symbols are required.
20369
 
always_export_symbols=$always_export_symbols_RC
20370
 
 
20371
 
# The commands to list exported symbols.
20372
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20373
 
 
20374
 
# The commands to extract the exported symbol list from a shared archive.
20375
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20376
 
 
20377
 
# Symbols that should not be listed in the preloaded symbols.
20378
 
exclude_expsyms=$lt_exclude_expsyms_RC
20379
 
 
20380
 
# Symbols that must always be exported.
20381
 
include_expsyms=$lt_include_expsyms_RC
20382
 
 
20383
 
# ### END LIBTOOL TAG CONFIG: $tagname
20384
 
 
20385
 
__EOF__
20386
 
 
20387
 
 
20388
 
else
20389
 
  # If there is no Makefile yet, we rely on a make rule to execute
20390
 
  # `config.status --recheck' to rerun these tests and create the
20391
 
  # libtool script then.
20392
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20393
 
  if test -f "$ltmain_in"; then
20394
 
    test -f Makefile && make "$ltmain"
20395
 
  fi
 
11274
if test -n "$compiler"; then
 
11275
  :
 
11276
 
 
11277
 
 
11278
 
20396
11279
fi
20397
11280
 
20398
 
 
 
11281
GCC=$lt_save_GCC
20399
11282
ac_ext=c
20400
11283
ac_cpp='$CPP $CPPFLAGS'
20401
11284
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404
11287
 
20405
11288
CC="$lt_save_CC"
20406
11289
 
20407
 
        ;;
20408
 
 
20409
 
      *)
20410
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20411
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20412
 
   { (exit 1); exit 1; }; }
20413
 
        ;;
20414
 
      esac
20415
 
 
20416
 
      # Append the new tag name to the list of available tags.
20417
 
      if test -n "$tagname" ; then
20418
 
      available_tags="$available_tags $tagname"
20419
 
    fi
20420
 
    fi
20421
 
  done
20422
 
  IFS="$lt_save_ifs"
20423
 
 
20424
 
  # Now substitute the updated list of available tags.
20425
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20426
 
    mv "${ofile}T" "$ofile"
20427
 
    chmod +x "$ofile"
20428
 
  else
20429
 
    rm -f "${ofile}T"
20430
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20431
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20432
 
   { (exit 1); exit 1; }; }
20433
 
  fi
20434
 
fi
20435
 
 
20436
 
 
20437
 
 
20438
 
# This can be used to rebuild libtool when needed
20439
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20440
 
 
20441
 
# Always use our own libtool.
20442
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20443
 
 
20444
 
# Prevent multiple expansion
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
 
 
20450
 
 
20451
 
 
20452
 
 
20453
 
 
20454
 
 
20455
 
 
20456
 
 
20457
 
 
20458
 
 
20459
 
 
20460
 
 
20461
 
 
20462
 
 
20463
 
 
20464
11290
 
20465
11291
 
20466
11292
# We need to compile and run a program on the build machine.
20467
 
{ echo "$as_me:$LINENO: checking for cc for build" >&5
20468
 
echo $ECHO_N "checking for cc for build... $ECHO_C" >&6; }
 
11293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
 
11294
$as_echo_n "checking for cc for build... " >&6; }
20469
11295
if test "$cross_compiling" = "yes"; then
20470
11296
  CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
20471
11297
else
20472
11298
  CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
20473
11299
fi
20474
 
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20475
 
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
 
11300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
 
11301
$as_echo "$CC_FOR_BUILD" >&6; }
20476
11302
 
20477
11303
 
20478
11304
 
20479
11305
# Set some internal variables depending on the platform for later use.
20480
11306
have_w32_system=no
 
11307
have_w32ce_system=no
20481
11308
case "${host}" in
 
11309
    *-mingw32ce*)
 
11310
        have_w32_system=yes
 
11311
        have_w32ce_system=yes
 
11312
        ;;
20482
11313
    *-mingw32*)
20483
11314
        have_w32_system=yes
20484
11315
        ;;
20490
11321
 
20491
11322
 
20492
11323
 
20493
 
 
20494
11324
# Note, that autogen.sh greps for the next line.
20495
11325
 
20496
11326
 
20497
 
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20498
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
11327
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
11328
$as_echo_n "checking whether NLS is requested... " >&6; }
20499
11329
    # Check whether --enable-nls was given.
20500
 
if test "${enable_nls+set}" = set; then
 
11330
if test "${enable_nls+set}" = set; then :
20501
11331
  enableval=$enable_nls; USE_NLS=$enableval
20502
11332
else
20503
11333
  USE_NLS=yes
20504
11334
fi
20505
11335
 
20506
 
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
20507
 
echo "${ECHO_T}$USE_NLS" >&6; }
20508
 
 
20509
 
 
 
11336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
11337
$as_echo "$USE_NLS" >&6; }
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
      GETTEXT_MACRO_VERSION=0.17
20510
11343
 
20511
11344
 
20512
11345
 
20541
11374
 
20542
11375
# Extract the first word of "msgfmt", so it can be a program name with args.
20543
11376
set dummy msgfmt; ac_word=$2
20544
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20545
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20546
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
20547
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11378
$as_echo_n "checking for $ac_word... " >&6; }
 
11379
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
11380
  $as_echo_n "(cached) " >&6
20548
11381
else
20549
11382
  case "$MSGFMT" in
20550
11383
  [\\/]* | ?:[\\/]*)
20573
11406
fi
20574
11407
MSGFMT="$ac_cv_path_MSGFMT"
20575
11408
if test "$MSGFMT" != ":"; then
20576
 
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20577
 
echo "${ECHO_T}$MSGFMT" >&6; }
 
11409
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
11410
$as_echo "$MSGFMT" >&6; }
20578
11411
else
20579
 
  { echo "$as_me:$LINENO: result: no" >&5
20580
 
echo "${ECHO_T}no" >&6; }
 
11412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11413
$as_echo "no" >&6; }
20581
11414
fi
20582
11415
 
20583
11416
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20584
11417
set dummy gmsgfmt; ac_word=$2
20585
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20586
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20587
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
20588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11419
$as_echo_n "checking for $ac_word... " >&6; }
 
11420
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
11421
  $as_echo_n "(cached) " >&6
20589
11422
else
20590
11423
  case $GMSGFMT in
20591
11424
  [\\/]* | ?:[\\/]*)
20597
11430
do
20598
11431
  IFS=$as_save_IFS
20599
11432
  test -z "$as_dir" && as_dir=.
20600
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11433
    for ac_exec_ext in '' $ac_executable_extensions; do
20601
11434
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20602
11435
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20603
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11436
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20604
11437
    break 2
20605
11438
  fi
20606
11439
done
20607
 
done
 
11440
  done
20608
11441
IFS=$as_save_IFS
20609
11442
 
20610
11443
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20613
11446
fi
20614
11447
GMSGFMT=$ac_cv_path_GMSGFMT
20615
11448
if test -n "$GMSGFMT"; then
20616
 
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20617
 
echo "${ECHO_T}$GMSGFMT" >&6; }
 
11449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
11450
$as_echo "$GMSGFMT" >&6; }
20618
11451
else
20619
 
  { echo "$as_me:$LINENO: result: no" >&5
20620
 
echo "${ECHO_T}no" >&6; }
 
11452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11453
$as_echo "no" >&6; }
20621
11454
fi
20622
11455
 
20623
11456
 
20664
11497
 
20665
11498
# Extract the first word of "xgettext", so it can be a program name with args.
20666
11499
set dummy xgettext; ac_word=$2
20667
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20668
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20669
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
20670
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11501
$as_echo_n "checking for $ac_word... " >&6; }
 
11502
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
11503
  $as_echo_n "(cached) " >&6
20671
11504
else
20672
11505
  case "$XGETTEXT" in
20673
11506
  [\\/]* | ?:[\\/]*)
20696
11529
fi
20697
11530
XGETTEXT="$ac_cv_path_XGETTEXT"
20698
11531
if test "$XGETTEXT" != ":"; then
20699
 
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20700
 
echo "${ECHO_T}$XGETTEXT" >&6; }
 
11532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
11533
$as_echo "$XGETTEXT" >&6; }
20701
11534
else
20702
 
  { echo "$as_me:$LINENO: result: no" >&5
20703
 
echo "${ECHO_T}no" >&6; }
 
11535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11536
$as_echo "no" >&6; }
20704
11537
fi
20705
11538
 
20706
11539
    rm -f messages.po
20742
11575
 
20743
11576
# Extract the first word of "msgmerge", so it can be a program name with args.
20744
11577
set dummy msgmerge; ac_word=$2
20745
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20746
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20747
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then
20748
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11579
$as_echo_n "checking for $ac_word... " >&6; }
 
11580
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
11581
  $as_echo_n "(cached) " >&6
20749
11582
else
20750
11583
  case "$MSGMERGE" in
20751
11584
  [\\/]* | ?:[\\/]*)
20773
11606
fi
20774
11607
MSGMERGE="$ac_cv_path_MSGMERGE"
20775
11608
if test "$MSGMERGE" != ":"; then
20776
 
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20777
 
echo "${ECHO_T}$MSGMERGE" >&6; }
 
11609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
11610
$as_echo "$MSGMERGE" >&6; }
20778
11611
else
20779
 
  { echo "$as_me:$LINENO: result: no" >&5
20780
 
echo "${ECHO_T}no" >&6; }
 
11612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11613
$as_echo "no" >&6; }
20781
11614
fi
20782
11615
 
20783
11616
 
20784
11617
        test -n "$localedir" || localedir='${datadir}/locale'
20785
11618
 
20786
11619
 
 
11620
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
11621
 
 
11622
 
20787
11623
  ac_config_commands="$ac_config_commands po-directories"
20788
11624
 
20789
11625
 
20805
11641
 
20806
11642
 
20807
11643
# Check whether --with-gnu-ld was given.
20808
 
if test "${with_gnu_ld+set}" = set; then
 
11644
if test "${with_gnu_ld+set}" = set; then :
20809
11645
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20810
11646
else
20811
11647
  with_gnu_ld=no
20827
11663
ac_prog=ld
20828
11664
if test "$GCC" = yes; then
20829
11665
  # Check if gcc -print-prog-name=ld gives a path.
20830
 
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20831
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
 
11666
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
11667
$as_echo_n "checking for ld used by GCC... " >&6; }
20832
11668
  case $host in
20833
11669
  *-*-mingw*)
20834
11670
    # gcc leaves a trailing carriage return which upsets mingw
20857
11693
    ;;
20858
11694
  esac
20859
11695
elif test "$with_gnu_ld" = yes; then
20860
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
20861
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11696
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
11697
$as_echo_n "checking for GNU ld... " >&6; }
20862
11698
else
20863
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20864
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11699
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
11700
$as_echo_n "checking for non-GNU ld... " >&6; }
20865
11701
fi
20866
 
if test "${acl_cv_path_LD+set}" = set; then
20867
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11702
if test "${acl_cv_path_LD+set}" = set; then :
 
11703
  $as_echo_n "(cached) " >&6
20868
11704
else
20869
11705
  if test -z "$LD"; then
20870
11706
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20891
11727
 
20892
11728
LD="$acl_cv_path_LD"
20893
11729
if test -n "$LD"; then
20894
 
  { echo "$as_me:$LINENO: result: $LD" >&5
20895
 
echo "${ECHO_T}$LD" >&6; }
 
11730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
11731
$as_echo "$LD" >&6; }
20896
11732
else
20897
 
  { echo "$as_me:$LINENO: result: no" >&5
20898
 
echo "${ECHO_T}no" >&6; }
 
11733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11734
$as_echo "no" >&6; }
20899
11735
fi
20900
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20901
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20902
 
   { (exit 1); exit 1; }; }
20903
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20904
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
20905
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then
20906
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11736
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
11737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
11738
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11739
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
11740
  $as_echo_n "(cached) " >&6
20907
11741
else
20908
11742
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20909
11743
case `$LD -v 2>&1 </dev/null` in
20913
11747
  acl_cv_prog_gnu_ld=no ;;
20914
11748
esac
20915
11749
fi
20916
 
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20917
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
 
11750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
11751
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
20918
11752
with_gnu_ld=$acl_cv_prog_gnu_ld
20919
11753
 
20920
11754
 
20921
11755
 
20922
11756
 
20923
 
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20924
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
20925
 
if test "${acl_cv_rpath+set}" = set; then
20926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11757
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
11758
$as_echo_n "checking for shared library run path origin... " >&6; }
 
11759
if test "${acl_cv_rpath+set}" = set; then :
 
11760
  $as_echo_n "(cached) " >&6
20927
11761
else
20928
11762
 
20929
11763
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20933
11767
    acl_cv_rpath=done
20934
11768
 
20935
11769
fi
20936
 
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20937
 
echo "${ECHO_T}$acl_cv_rpath" >&6; }
 
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
11771
$as_echo "$acl_cv_rpath" >&6; }
20938
11772
  wl="$acl_cv_wl"
20939
 
  libext="$acl_cv_libext"
20940
 
  shlibext="$acl_cv_shlibext"
20941
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20942
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20943
 
  hardcode_direct="$acl_cv_hardcode_direct"
20944
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
11773
  acl_libext="$acl_cv_libext"
 
11774
  acl_shlibext="$acl_cv_shlibext"
 
11775
  acl_libname_spec="$acl_cv_libname_spec"
 
11776
  acl_library_names_spec="$acl_cv_library_names_spec"
 
11777
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
11778
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
11779
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
11780
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20945
11781
    # Check whether --enable-rpath was given.
20946
 
if test "${enable_rpath+set}" = set; then
 
11782
if test "${enable_rpath+set}" = set; then :
20947
11783
  enableval=$enable_rpath; :
20948
11784
else
20949
11785
  enable_rpath=yes
20976
11812
 
20977
11813
 
20978
11814
 
 
11815
 
20979
11816
    use_additional=yes
20980
11817
 
20981
11818
  acl_save_prefix="$prefix"
20991
11828
 
20992
11829
 
20993
11830
# Check whether --with-libiconv-prefix was given.
20994
 
if test "${with_libiconv_prefix+set}" = set; then
 
11831
if test "${with_libiconv_prefix+set}" = set; then :
20995
11832
  withval=$with_libiconv_prefix;
20996
11833
    if test "X$withval" = "Xno"; then
20997
11834
      use_additional=no
21020
11857
      LIBICONV=
21021
11858
  LTLIBICONV=
21022
11859
  INCICONV=
 
11860
  LIBICONV_PREFIX=
21023
11861
  rpathdirs=
21024
11862
  ltrpathdirs=
21025
11863
  names_already_handled=
21053
11891
          found_la=
21054
11892
          found_so=
21055
11893
          found_a=
 
11894
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
11895
          if test -n "$acl_shlibext"; then
 
11896
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
11897
          else
 
11898
            shrext=
 
11899
          fi
21056
11900
          if test $use_additional = yes; then
21057
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21058
 
              found_dir="$additional_libdir"
21059
 
              found_so="$additional_libdir/lib$name.$shlibext"
21060
 
              if test -f "$additional_libdir/lib$name.la"; then
21061
 
                found_la="$additional_libdir/lib$name.la"
21062
 
              fi
21063
 
            else
21064
 
              if test -f "$additional_libdir/lib$name.$libext"; then
21065
 
                found_dir="$additional_libdir"
21066
 
                found_a="$additional_libdir/lib$name.$libext"
21067
 
                if test -f "$additional_libdir/lib$name.la"; then
21068
 
                  found_la="$additional_libdir/lib$name.la"
 
11901
            dir="$additional_libdir"
 
11902
                                    if test -n "$acl_shlibext"; then
 
11903
              if test -f "$dir/$libname$shrext"; then
 
11904
                found_dir="$dir"
 
11905
                found_so="$dir/$libname$shrext"
 
11906
              else
 
11907
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11908
                  ver=`(cd "$dir" && \
 
11909
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
11910
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
11911
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11912
                        | sed 1q ) 2>/dev/null`
 
11913
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11914
                    found_dir="$dir"
 
11915
                    found_so="$dir/$libname$shrext.$ver"
 
11916
                  fi
 
11917
                else
 
11918
                  eval library_names=\"$acl_library_names_spec\"
 
11919
                  for f in $library_names; do
 
11920
                    if test -f "$dir/$f"; then
 
11921
                      found_dir="$dir"
 
11922
                      found_so="$dir/$f"
 
11923
                      break
 
11924
                    fi
 
11925
                  done
21069
11926
                fi
21070
11927
              fi
21071
11928
            fi
 
11929
                        if test "X$found_dir" = "X"; then
 
11930
              if test -f "$dir/$libname.$acl_libext"; then
 
11931
                found_dir="$dir"
 
11932
                found_a="$dir/$libname.$acl_libext"
 
11933
              fi
 
11934
            fi
 
11935
            if test "X$found_dir" != "X"; then
 
11936
              if test -f "$dir/$libname.la"; then
 
11937
                found_la="$dir/$libname.la"
 
11938
              fi
 
11939
            fi
21072
11940
          fi
21073
11941
          if test "X$found_dir" = "X"; then
21074
11942
            for x in $LDFLAGS $LTLIBICONV; do
21084
11952
              case "$x" in
21085
11953
                -L*)
21086
11954
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21087
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21088
 
                    found_dir="$dir"
21089
 
                    found_so="$dir/lib$name.$shlibext"
21090
 
                    if test -f "$dir/lib$name.la"; then
21091
 
                      found_la="$dir/lib$name.la"
21092
 
                    fi
21093
 
                  else
21094
 
                    if test -f "$dir/lib$name.$libext"; then
 
11955
                                    if test -n "$acl_shlibext"; then
 
11956
                    if test -f "$dir/$libname$shrext"; then
21095
11957
                      found_dir="$dir"
21096
 
                      found_a="$dir/lib$name.$libext"
21097
 
                      if test -f "$dir/lib$name.la"; then
21098
 
                        found_la="$dir/lib$name.la"
 
11958
                      found_so="$dir/$libname$shrext"
 
11959
                    else
 
11960
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11961
                        ver=`(cd "$dir" && \
 
11962
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
11963
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
11964
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11965
                              | sed 1q ) 2>/dev/null`
 
11966
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11967
                          found_dir="$dir"
 
11968
                          found_so="$dir/$libname$shrext.$ver"
 
11969
                        fi
 
11970
                      else
 
11971
                        eval library_names=\"$acl_library_names_spec\"
 
11972
                        for f in $library_names; do
 
11973
                          if test -f "$dir/$f"; then
 
11974
                            found_dir="$dir"
 
11975
                            found_so="$dir/$f"
 
11976
                            break
 
11977
                          fi
 
11978
                        done
21099
11979
                      fi
21100
11980
                    fi
21101
11981
                  fi
 
11982
                                    if test "X$found_dir" = "X"; then
 
11983
                    if test -f "$dir/$libname.$acl_libext"; then
 
11984
                      found_dir="$dir"
 
11985
                      found_a="$dir/$libname.$acl_libext"
 
11986
                    fi
 
11987
                  fi
 
11988
                  if test "X$found_dir" != "X"; then
 
11989
                    if test -f "$dir/$libname.la"; then
 
11990
                      found_la="$dir/$libname.la"
 
11991
                    fi
 
11992
                  fi
21102
11993
                  ;;
21103
11994
              esac
21104
11995
              if test "X$found_dir" != "X"; then
21122
12013
                if test -z "$haveit"; then
21123
12014
                  ltrpathdirs="$ltrpathdirs $found_dir"
21124
12015
                fi
21125
 
                                if test "$hardcode_direct" = yes; then
 
12016
                                if test "$acl_hardcode_direct" = yes; then
21126
12017
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21127
12018
                else
21128
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
12019
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21129
12020
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21130
12021
                                                            haveit=
21131
12022
                    for x in $rpathdirs; do
21157
12048
                    if test -z "$haveit"; then
21158
12049
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21159
12050
                    fi
21160
 
                    if test "$hardcode_minus_L" != no; then
 
12051
                    if test "$acl_hardcode_minus_L" != no; then
21161
12052
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21162
12053
                    else
21163
12054
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21176
12067
            case "$found_dir" in
21177
12068
              */$acl_libdirstem | */$acl_libdirstem/)
21178
12069
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
12070
                LIBICONV_PREFIX="$basedir"
21179
12071
                additional_includedir="$basedir/include"
21180
12072
                ;;
21181
12073
            esac
21326
12218
    done
21327
12219
  done
21328
12220
  if test "X$rpathdirs" != "X"; then
21329
 
    if test -n "$hardcode_libdir_separator"; then
 
12221
    if test -n "$acl_hardcode_libdir_separator"; then
21330
12222
                        alldirs=
21331
12223
      for found_dir in $rpathdirs; do
21332
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
12224
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21333
12225
      done
21334
12226
            acl_save_libdir="$libdir"
21335
12227
      libdir="$alldirs"
21336
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
12228
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
21337
12229
      libdir="$acl_save_libdir"
21338
12230
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21339
12231
    else
21340
12232
            for found_dir in $rpathdirs; do
21341
12233
        acl_save_libdir="$libdir"
21342
12234
        libdir="$found_dir"
21343
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
12235
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
21344
12236
        libdir="$acl_save_libdir"
21345
12237
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21346
12238
      done
21369
12261
 
21370
12262
 
21371
12263
 
21372
 
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21373
 
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
21374
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12264
 
 
12265
 
 
12266
 
 
12267
 
 
12268
 
 
12269
 
 
12270
 
 
12271
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
12272
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
12273
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
12274
  $as_echo_n "(cached) " >&6
21376
12275
else
21377
12276
  gt_save_LIBS="$LIBS"
21378
12277
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21379
 
     cat >conftest.$ac_ext <<_ACEOF
21380
 
/* confdefs.h.  */
21381
 
_ACEOF
21382
 
cat confdefs.h >>conftest.$ac_ext
21383
 
cat >>conftest.$ac_ext <<_ACEOF
 
12278
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384
12279
/* end confdefs.h.  */
21385
12280
#include <CoreFoundation/CFPreferences.h>
21386
12281
int
21391
12286
  return 0;
21392
12287
}
21393
12288
_ACEOF
21394
 
rm -f conftest.$ac_objext conftest$ac_exeext
21395
 
if { (ac_try="$ac_link"
21396
 
case "(($ac_try" in
21397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398
 
  *) ac_try_echo=$ac_try;;
21399
 
esac
21400
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401
 
  (eval "$ac_link") 2>conftest.er1
21402
 
  ac_status=$?
21403
 
  grep -v '^ *+' conftest.er1 >conftest.err
21404
 
  rm -f conftest.er1
21405
 
  cat conftest.err >&5
21406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
 
  (exit $ac_status); } && {
21408
 
         test -z "$ac_c_werror_flag" ||
21409
 
         test ! -s conftest.err
21410
 
       } && test -s conftest$ac_exeext &&
21411
 
       $as_test_x conftest$ac_exeext; then
 
12289
if ac_fn_c_try_link "$LINENO"; then :
21412
12290
  gt_cv_func_CFPreferencesCopyAppValue=yes
21413
12291
else
21414
 
  echo "$as_me: failed program was:" >&5
21415
 
sed 's/^/| /' conftest.$ac_ext >&5
21416
 
 
21417
 
        gt_cv_func_CFPreferencesCopyAppValue=no
 
12292
  gt_cv_func_CFPreferencesCopyAppValue=no
21418
12293
fi
21419
 
 
21420
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21421
 
      conftest$ac_exeext conftest.$ac_ext
 
12294
rm -f core conftest.err conftest.$ac_objext \
 
12295
    conftest$ac_exeext conftest.$ac_ext
21422
12296
     LIBS="$gt_save_LIBS"
21423
12297
fi
21424
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21425
 
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
12298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
12299
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21426
12300
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21427
12301
 
21428
 
cat >>confdefs.h <<\_ACEOF
21429
 
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21430
 
_ACEOF
 
12302
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21431
12303
 
21432
12304
  fi
21433
 
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21434
 
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
21435
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21436
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12305
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
12306
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
12307
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
12308
  $as_echo_n "(cached) " >&6
21437
12309
else
21438
12310
  gt_save_LIBS="$LIBS"
21439
12311
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21440
 
     cat >conftest.$ac_ext <<_ACEOF
21441
 
/* confdefs.h.  */
21442
 
_ACEOF
21443
 
cat confdefs.h >>conftest.$ac_ext
21444
 
cat >>conftest.$ac_ext <<_ACEOF
 
12312
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445
12313
/* end confdefs.h.  */
21446
12314
#include <CoreFoundation/CFLocale.h>
21447
12315
int
21452
12320
  return 0;
21453
12321
}
21454
12322
_ACEOF
21455
 
rm -f conftest.$ac_objext conftest$ac_exeext
21456
 
if { (ac_try="$ac_link"
21457
 
case "(($ac_try" in
21458
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459
 
  *) ac_try_echo=$ac_try;;
21460
 
esac
21461
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462
 
  (eval "$ac_link") 2>conftest.er1
21463
 
  ac_status=$?
21464
 
  grep -v '^ *+' conftest.er1 >conftest.err
21465
 
  rm -f conftest.er1
21466
 
  cat conftest.err >&5
21467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468
 
  (exit $ac_status); } && {
21469
 
         test -z "$ac_c_werror_flag" ||
21470
 
         test ! -s conftest.err
21471
 
       } && test -s conftest$ac_exeext &&
21472
 
       $as_test_x conftest$ac_exeext; then
 
12323
if ac_fn_c_try_link "$LINENO"; then :
21473
12324
  gt_cv_func_CFLocaleCopyCurrent=yes
21474
12325
else
21475
 
  echo "$as_me: failed program was:" >&5
21476
 
sed 's/^/| /' conftest.$ac_ext >&5
21477
 
 
21478
 
        gt_cv_func_CFLocaleCopyCurrent=no
 
12326
  gt_cv_func_CFLocaleCopyCurrent=no
21479
12327
fi
21480
 
 
21481
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482
 
      conftest$ac_exeext conftest.$ac_ext
 
12328
rm -f core conftest.err conftest.$ac_objext \
 
12329
    conftest$ac_exeext conftest.$ac_ext
21483
12330
     LIBS="$gt_save_LIBS"
21484
12331
fi
21485
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21486
 
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
12332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
12333
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21487
12334
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21488
12335
 
21489
 
cat >>confdefs.h <<\_ACEOF
21490
 
#define HAVE_CFLOCALECOPYCURRENT 1
21491
 
_ACEOF
 
12336
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21492
12337
 
21493
12338
  fi
21494
12339
  INTL_MACOSX_LIBS=
21505
12350
  LTLIBINTL=
21506
12351
  POSUB=
21507
12352
 
 
12353
    case " $gt_needs " in
 
12354
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
12355
    *" need-ngettext "*) gt_api_version=2 ;;
 
12356
    *) gt_api_version=1 ;;
 
12357
  esac
 
12358
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
12359
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
12360
 
21508
12361
    if test "$USE_NLS" = "yes"; then
21509
12362
    gt_use_preinstalled_gnugettext=no
21510
12363
 
21511
12364
 
21512
 
 
21513
 
 
21514
 
 
21515
 
 
21516
 
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21517
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
21518
 
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21519
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12365
        if test $gt_api_version -ge 3; then
 
12366
          gt_revision_test_code='
 
12367
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
12368
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
12369
#endif
 
12370
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
12371
'
 
12372
        else
 
12373
          gt_revision_test_code=
 
12374
        fi
 
12375
        if test $gt_api_version -ge 2; then
 
12376
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
12377
        else
 
12378
          gt_expression_test_code=
 
12379
        fi
 
12380
 
 
12381
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
12382
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
12383
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
 
12384
  $as_echo_n "(cached) " >&6
21520
12385
else
21521
 
  cat >conftest.$ac_ext <<_ACEOF
21522
 
/* confdefs.h.  */
21523
 
_ACEOF
21524
 
cat confdefs.h >>conftest.$ac_ext
21525
 
cat >>conftest.$ac_ext <<_ACEOF
 
12386
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526
12387
/* end confdefs.h.  */
21527
12388
#include <libintl.h>
 
12389
$gt_revision_test_code
21528
12390
extern int _nl_msg_cat_cntr;
21529
12391
extern int *_nl_domain_bindings;
21530
12392
int
21531
12393
main ()
21532
12394
{
21533
12395
bindtextdomain ("", "");
21534
 
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
12396
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21535
12397
  ;
21536
12398
  return 0;
21537
12399
}
21538
12400
_ACEOF
21539
 
rm -f conftest.$ac_objext conftest$ac_exeext
21540
 
if { (ac_try="$ac_link"
21541
 
case "(($ac_try" in
21542
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543
 
  *) ac_try_echo=$ac_try;;
21544
 
esac
21545
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546
 
  (eval "$ac_link") 2>conftest.er1
21547
 
  ac_status=$?
21548
 
  grep -v '^ *+' conftest.er1 >conftest.err
21549
 
  rm -f conftest.er1
21550
 
  cat conftest.err >&5
21551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552
 
  (exit $ac_status); } && {
21553
 
         test -z "$ac_c_werror_flag" ||
21554
 
         test ! -s conftest.err
21555
 
       } && test -s conftest$ac_exeext &&
21556
 
       $as_test_x conftest$ac_exeext; then
21557
 
  gt_cv_func_gnugettext1_libc=yes
 
12401
if ac_fn_c_try_link "$LINENO"; then :
 
12402
  eval "$gt_func_gnugettext_libc=yes"
21558
12403
else
21559
 
  echo "$as_me: failed program was:" >&5
21560
 
sed 's/^/| /' conftest.$ac_ext >&5
21561
 
 
21562
 
        gt_cv_func_gnugettext1_libc=no
21563
 
fi
21564
 
 
21565
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566
 
      conftest$ac_exeext conftest.$ac_ext
21567
 
fi
21568
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21569
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
21570
 
 
21571
 
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
12404
  eval "$gt_func_gnugettext_libc=no"
 
12405
fi
 
12406
rm -f core conftest.err conftest.$ac_objext \
 
12407
    conftest$ac_exeext conftest.$ac_ext
 
12408
fi
 
12409
eval ac_res=\$$gt_func_gnugettext_libc
 
12410
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
12411
$as_echo "$ac_res" >&6; }
 
12412
 
 
12413
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21572
12414
 
21573
12415
 
21574
12416
 
21599
12441
  done
21600
12442
 
21601
12443
 
21602
 
  { echo "$as_me:$LINENO: checking for iconv" >&5
21603
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21604
 
if test "${am_cv_func_iconv+set}" = set; then
21605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12444
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
12445
$as_echo_n "checking for iconv... " >&6; }
 
12446
if test "${am_cv_func_iconv+set}" = set; then :
 
12447
  $as_echo_n "(cached) " >&6
21606
12448
else
21607
12449
 
21608
12450
    am_cv_func_iconv="no, consider installing GNU libiconv"
21609
12451
    am_cv_lib_iconv=no
21610
 
    cat >conftest.$ac_ext <<_ACEOF
21611
 
/* confdefs.h.  */
21612
 
_ACEOF
21613
 
cat confdefs.h >>conftest.$ac_ext
21614
 
cat >>conftest.$ac_ext <<_ACEOF
 
12452
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615
12453
/* end confdefs.h.  */
21616
12454
#include <stdlib.h>
21617
12455
#include <iconv.h>
21625
12463
  return 0;
21626
12464
}
21627
12465
_ACEOF
21628
 
rm -f conftest.$ac_objext conftest$ac_exeext
21629
 
if { (ac_try="$ac_link"
21630
 
case "(($ac_try" in
21631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632
 
  *) ac_try_echo=$ac_try;;
21633
 
esac
21634
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635
 
  (eval "$ac_link") 2>conftest.er1
21636
 
  ac_status=$?
21637
 
  grep -v '^ *+' conftest.er1 >conftest.err
21638
 
  rm -f conftest.er1
21639
 
  cat conftest.err >&5
21640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641
 
  (exit $ac_status); } && {
21642
 
         test -z "$ac_c_werror_flag" ||
21643
 
         test ! -s conftest.err
21644
 
       } && test -s conftest$ac_exeext &&
21645
 
       $as_test_x conftest$ac_exeext; then
 
12466
if ac_fn_c_try_link "$LINENO"; then :
21646
12467
  am_cv_func_iconv=yes
21647
 
else
21648
 
  echo "$as_me: failed program was:" >&5
21649
 
sed 's/^/| /' conftest.$ac_ext >&5
21650
 
 
21651
 
 
21652
12468
fi
21653
 
 
21654
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655
 
      conftest$ac_exeext conftest.$ac_ext
 
12469
rm -f core conftest.err conftest.$ac_objext \
 
12470
    conftest$ac_exeext conftest.$ac_ext
21656
12471
    if test "$am_cv_func_iconv" != yes; then
21657
12472
      am_save_LIBS="$LIBS"
21658
12473
      LIBS="$LIBS $LIBICONV"
21659
 
      cat >conftest.$ac_ext <<_ACEOF
21660
 
/* confdefs.h.  */
21661
 
_ACEOF
21662
 
cat confdefs.h >>conftest.$ac_ext
21663
 
cat >>conftest.$ac_ext <<_ACEOF
 
12474
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664
12475
/* end confdefs.h.  */
21665
12476
#include <stdlib.h>
21666
12477
#include <iconv.h>
21674
12485
  return 0;
21675
12486
}
21676
12487
_ACEOF
21677
 
rm -f conftest.$ac_objext conftest$ac_exeext
21678
 
if { (ac_try="$ac_link"
21679
 
case "(($ac_try" in
21680
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681
 
  *) ac_try_echo=$ac_try;;
21682
 
esac
21683
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684
 
  (eval "$ac_link") 2>conftest.er1
21685
 
  ac_status=$?
21686
 
  grep -v '^ *+' conftest.er1 >conftest.err
21687
 
  rm -f conftest.er1
21688
 
  cat conftest.err >&5
21689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690
 
  (exit $ac_status); } && {
21691
 
         test -z "$ac_c_werror_flag" ||
21692
 
         test ! -s conftest.err
21693
 
       } && test -s conftest$ac_exeext &&
21694
 
       $as_test_x conftest$ac_exeext; then
 
12488
if ac_fn_c_try_link "$LINENO"; then :
21695
12489
  am_cv_lib_iconv=yes
21696
12490
        am_cv_func_iconv=yes
21697
 
else
21698
 
  echo "$as_me: failed program was:" >&5
21699
 
sed 's/^/| /' conftest.$ac_ext >&5
21700
 
 
21701
 
 
21702
12491
fi
21703
 
 
21704
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21705
 
      conftest$ac_exeext conftest.$ac_ext
 
12492
rm -f core conftest.err conftest.$ac_objext \
 
12493
    conftest$ac_exeext conftest.$ac_ext
21706
12494
      LIBS="$am_save_LIBS"
21707
12495
    fi
21708
12496
 
21709
12497
fi
21710
 
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21711
 
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
12498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
12499
$as_echo "$am_cv_func_iconv" >&6; }
21712
12500
  if test "$am_cv_func_iconv" = yes; then
21713
 
 
21714
 
cat >>confdefs.h <<\_ACEOF
21715
 
#define HAVE_ICONV 1
 
12501
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
12502
$as_echo_n "checking for working iconv... " >&6; }
 
12503
if test "${am_cv_func_iconv_works+set}" = set; then :
 
12504
  $as_echo_n "(cached) " >&6
 
12505
else
 
12506
 
 
12507
            am_save_LIBS="$LIBS"
 
12508
      if test $am_cv_lib_iconv = yes; then
 
12509
        LIBS="$LIBS $LIBICONV"
 
12510
      fi
 
12511
      if test "$cross_compiling" = yes; then :
 
12512
  case "$host_os" in
 
12513
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
12514
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
12515
         esac
 
12516
else
 
12517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12518
/* end confdefs.h.  */
 
12519
 
 
12520
#include <iconv.h>
 
12521
#include <string.h>
 
12522
int main ()
 
12523
{
 
12524
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
12525
     returns.  */
 
12526
  {
 
12527
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
12528
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
12529
      {
 
12530
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
12531
        char buf[10];
 
12532
        const char *inptr = input;
 
12533
        size_t inbytesleft = strlen (input);
 
12534
        char *outptr = buf;
 
12535
        size_t outbytesleft = sizeof (buf);
 
12536
        size_t res = iconv (cd_utf8_to_88591,
 
12537
                            (char **) &inptr, &inbytesleft,
 
12538
                            &outptr, &outbytesleft);
 
12539
        if (res == 0)
 
12540
          return 1;
 
12541
      }
 
12542
  }
 
12543
#if 0 /* This bug could be worked around by the caller.  */
 
12544
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
12545
  {
 
12546
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
12547
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
12548
      {
 
12549
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
12550
        char buf[50];
 
12551
        const char *inptr = input;
 
12552
        size_t inbytesleft = strlen (input);
 
12553
        char *outptr = buf;
 
12554
        size_t outbytesleft = sizeof (buf);
 
12555
        size_t res = iconv (cd_88591_to_utf8,
 
12556
                            (char **) &inptr, &inbytesleft,
 
12557
                            &outptr, &outbytesleft);
 
12558
        if ((int)res > 0)
 
12559
          return 1;
 
12560
      }
 
12561
  }
 
12562
#endif
 
12563
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
12564
     provided.  */
 
12565
  if (/* Try standardized names.  */
 
12566
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
12567
      /* Try IRIX, OSF/1 names.  */
 
12568
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
12569
      /* Try AIX names.  */
 
12570
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
12571
      /* Try HP-UX names.  */
 
12572
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
12573
    return 1;
 
12574
  return 0;
 
12575
}
21716
12576
_ACEOF
 
12577
if ac_fn_c_try_run "$LINENO"; then :
 
12578
  am_cv_func_iconv_works=yes
 
12579
else
 
12580
  am_cv_func_iconv_works=no
 
12581
fi
 
12582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12583
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12584
fi
 
12585
 
 
12586
      LIBS="$am_save_LIBS"
 
12587
 
 
12588
fi
 
12589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
12590
$as_echo "$am_cv_func_iconv_works" >&6; }
 
12591
    case "$am_cv_func_iconv_works" in
 
12592
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
12593
      *)   am_func_iconv=yes ;;
 
12594
    esac
 
12595
  else
 
12596
    am_func_iconv=no am_cv_lib_iconv=no
 
12597
  fi
 
12598
  if test "$am_func_iconv" = yes; then
 
12599
 
 
12600
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
21717
12601
 
21718
12602
  fi
21719
12603
  if test "$am_cv_lib_iconv" = yes; then
21720
 
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21721
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
21722
 
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
21723
 
echo "${ECHO_T}$LIBICONV" >&6; }
 
12604
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
12605
$as_echo_n "checking how to link with libiconv... " >&6; }
 
12606
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
12607
$as_echo "$LIBICONV" >&6; }
21724
12608
  else
21725
12609
            CPPFLAGS="$am_save_CPPFLAGS"
21726
12610
    LIBICONV=
21733
12617
 
21734
12618
 
21735
12619
 
 
12620
 
21736
12621
    use_additional=yes
21737
12622
 
21738
12623
  acl_save_prefix="$prefix"
21748
12633
 
21749
12634
 
21750
12635
# Check whether --with-libintl-prefix was given.
21751
 
if test "${with_libintl_prefix+set}" = set; then
 
12636
if test "${with_libintl_prefix+set}" = set; then :
21752
12637
  withval=$with_libintl_prefix;
21753
12638
    if test "X$withval" = "Xno"; then
21754
12639
      use_additional=no
21777
12662
      LIBINTL=
21778
12663
  LTLIBINTL=
21779
12664
  INCINTL=
 
12665
  LIBINTL_PREFIX=
21780
12666
  rpathdirs=
21781
12667
  ltrpathdirs=
21782
12668
  names_already_handled=
21810
12696
          found_la=
21811
12697
          found_so=
21812
12698
          found_a=
 
12699
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
12700
          if test -n "$acl_shlibext"; then
 
12701
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
12702
          else
 
12703
            shrext=
 
12704
          fi
21813
12705
          if test $use_additional = yes; then
21814
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21815
 
              found_dir="$additional_libdir"
21816
 
              found_so="$additional_libdir/lib$name.$shlibext"
21817
 
              if test -f "$additional_libdir/lib$name.la"; then
21818
 
                found_la="$additional_libdir/lib$name.la"
21819
 
              fi
21820
 
            else
21821
 
              if test -f "$additional_libdir/lib$name.$libext"; then
21822
 
                found_dir="$additional_libdir"
21823
 
                found_a="$additional_libdir/lib$name.$libext"
21824
 
                if test -f "$additional_libdir/lib$name.la"; then
21825
 
                  found_la="$additional_libdir/lib$name.la"
 
12706
            dir="$additional_libdir"
 
12707
                                    if test -n "$acl_shlibext"; then
 
12708
              if test -f "$dir/$libname$shrext"; then
 
12709
                found_dir="$dir"
 
12710
                found_so="$dir/$libname$shrext"
 
12711
              else
 
12712
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12713
                  ver=`(cd "$dir" && \
 
12714
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
12715
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
12716
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12717
                        | sed 1q ) 2>/dev/null`
 
12718
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12719
                    found_dir="$dir"
 
12720
                    found_so="$dir/$libname$shrext.$ver"
 
12721
                  fi
 
12722
                else
 
12723
                  eval library_names=\"$acl_library_names_spec\"
 
12724
                  for f in $library_names; do
 
12725
                    if test -f "$dir/$f"; then
 
12726
                      found_dir="$dir"
 
12727
                      found_so="$dir/$f"
 
12728
                      break
 
12729
                    fi
 
12730
                  done
21826
12731
                fi
21827
12732
              fi
21828
12733
            fi
 
12734
                        if test "X$found_dir" = "X"; then
 
12735
              if test -f "$dir/$libname.$acl_libext"; then
 
12736
                found_dir="$dir"
 
12737
                found_a="$dir/$libname.$acl_libext"
 
12738
              fi
 
12739
            fi
 
12740
            if test "X$found_dir" != "X"; then
 
12741
              if test -f "$dir/$libname.la"; then
 
12742
                found_la="$dir/$libname.la"
 
12743
              fi
 
12744
            fi
21829
12745
          fi
21830
12746
          if test "X$found_dir" = "X"; then
21831
12747
            for x in $LDFLAGS $LTLIBINTL; do
21841
12757
              case "$x" in
21842
12758
                -L*)
21843
12759
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21844
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21845
 
                    found_dir="$dir"
21846
 
                    found_so="$dir/lib$name.$shlibext"
21847
 
                    if test -f "$dir/lib$name.la"; then
21848
 
                      found_la="$dir/lib$name.la"
21849
 
                    fi
21850
 
                  else
21851
 
                    if test -f "$dir/lib$name.$libext"; then
 
12760
                                    if test -n "$acl_shlibext"; then
 
12761
                    if test -f "$dir/$libname$shrext"; then
21852
12762
                      found_dir="$dir"
21853
 
                      found_a="$dir/lib$name.$libext"
21854
 
                      if test -f "$dir/lib$name.la"; then
21855
 
                        found_la="$dir/lib$name.la"
 
12763
                      found_so="$dir/$libname$shrext"
 
12764
                    else
 
12765
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12766
                        ver=`(cd "$dir" && \
 
12767
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
12768
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
12769
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12770
                              | sed 1q ) 2>/dev/null`
 
12771
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12772
                          found_dir="$dir"
 
12773
                          found_so="$dir/$libname$shrext.$ver"
 
12774
                        fi
 
12775
                      else
 
12776
                        eval library_names=\"$acl_library_names_spec\"
 
12777
                        for f in $library_names; do
 
12778
                          if test -f "$dir/$f"; then
 
12779
                            found_dir="$dir"
 
12780
                            found_so="$dir/$f"
 
12781
                            break
 
12782
                          fi
 
12783
                        done
21856
12784
                      fi
21857
12785
                    fi
21858
12786
                  fi
 
12787
                                    if test "X$found_dir" = "X"; then
 
12788
                    if test -f "$dir/$libname.$acl_libext"; then
 
12789
                      found_dir="$dir"
 
12790
                      found_a="$dir/$libname.$acl_libext"
 
12791
                    fi
 
12792
                  fi
 
12793
                  if test "X$found_dir" != "X"; then
 
12794
                    if test -f "$dir/$libname.la"; then
 
12795
                      found_la="$dir/$libname.la"
 
12796
                    fi
 
12797
                  fi
21859
12798
                  ;;
21860
12799
              esac
21861
12800
              if test "X$found_dir" != "X"; then
21879
12818
                if test -z "$haveit"; then
21880
12819
                  ltrpathdirs="$ltrpathdirs $found_dir"
21881
12820
                fi
21882
 
                                if test "$hardcode_direct" = yes; then
 
12821
                                if test "$acl_hardcode_direct" = yes; then
21883
12822
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21884
12823
                else
21885
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
12824
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21886
12825
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21887
12826
                                                            haveit=
21888
12827
                    for x in $rpathdirs; do
21914
12853
                    if test -z "$haveit"; then
21915
12854
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21916
12855
                    fi
21917
 
                    if test "$hardcode_minus_L" != no; then
 
12856
                    if test "$acl_hardcode_minus_L" != no; then
21918
12857
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21919
12858
                    else
21920
12859
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21933
12872
            case "$found_dir" in
21934
12873
              */$acl_libdirstem | */$acl_libdirstem/)
21935
12874
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
12875
                LIBINTL_PREFIX="$basedir"
21936
12876
                additional_includedir="$basedir/include"
21937
12877
                ;;
21938
12878
            esac
22083
13023
    done
22084
13024
  done
22085
13025
  if test "X$rpathdirs" != "X"; then
22086
 
    if test -n "$hardcode_libdir_separator"; then
 
13026
    if test -n "$acl_hardcode_libdir_separator"; then
22087
13027
                        alldirs=
22088
13028
      for found_dir in $rpathdirs; do
22089
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
13029
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22090
13030
      done
22091
13031
            acl_save_libdir="$libdir"
22092
13032
      libdir="$alldirs"
22093
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
13033
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
22094
13034
      libdir="$acl_save_libdir"
22095
13035
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22096
13036
    else
22097
13037
            for found_dir in $rpathdirs; do
22098
13038
        acl_save_libdir="$libdir"
22099
13039
        libdir="$found_dir"
22100
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
13040
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
22101
13041
        libdir="$acl_save_libdir"
22102
13042
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22103
13043
      done
22109
13049
    done
22110
13050
  fi
22111
13051
 
22112
 
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22113
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
22114
 
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22115
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13052
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
13053
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
13054
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
 
13055
  $as_echo_n "(cached) " >&6
22116
13056
else
22117
13057
  gt_save_CPPFLAGS="$CPPFLAGS"
22118
13058
            CPPFLAGS="$CPPFLAGS $INCINTL"
22119
13059
            gt_save_LIBS="$LIBS"
22120
13060
            LIBS="$LIBS $LIBINTL"
22121
 
                        cat >conftest.$ac_ext <<_ACEOF
22122
 
/* confdefs.h.  */
22123
 
_ACEOF
22124
 
cat confdefs.h >>conftest.$ac_ext
22125
 
cat >>conftest.$ac_ext <<_ACEOF
 
13061
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126
13062
/* end confdefs.h.  */
22127
13063
#include <libintl.h>
 
13064
$gt_revision_test_code
22128
13065
extern int _nl_msg_cat_cntr;
22129
13066
extern
22130
13067
#ifdef __cplusplus
22135
13072
main ()
22136
13073
{
22137
13074
bindtextdomain ("", "");
22138
 
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
13075
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22139
13076
  ;
22140
13077
  return 0;
22141
13078
}
22142
13079
_ACEOF
22143
 
rm -f conftest.$ac_objext conftest$ac_exeext
22144
 
if { (ac_try="$ac_link"
22145
 
case "(($ac_try" in
22146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147
 
  *) ac_try_echo=$ac_try;;
22148
 
esac
22149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150
 
  (eval "$ac_link") 2>conftest.er1
22151
 
  ac_status=$?
22152
 
  grep -v '^ *+' conftest.er1 >conftest.err
22153
 
  rm -f conftest.er1
22154
 
  cat conftest.err >&5
22155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156
 
  (exit $ac_status); } && {
22157
 
         test -z "$ac_c_werror_flag" ||
22158
 
         test ! -s conftest.err
22159
 
       } && test -s conftest$ac_exeext &&
22160
 
       $as_test_x conftest$ac_exeext; then
22161
 
  gt_cv_func_gnugettext1_libintl=yes
 
13080
if ac_fn_c_try_link "$LINENO"; then :
 
13081
  eval "$gt_func_gnugettext_libintl=yes"
22162
13082
else
22163
 
  echo "$as_me: failed program was:" >&5
22164
 
sed 's/^/| /' conftest.$ac_ext >&5
22165
 
 
22166
 
        gt_cv_func_gnugettext1_libintl=no
 
13083
  eval "$gt_func_gnugettext_libintl=no"
22167
13084
fi
22168
 
 
22169
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22170
 
      conftest$ac_exeext conftest.$ac_ext
22171
 
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
13085
rm -f core conftest.err conftest.$ac_objext \
 
13086
    conftest$ac_exeext conftest.$ac_ext
 
13087
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
22172
13088
              LIBS="$LIBS $LIBICONV"
22173
 
              cat >conftest.$ac_ext <<_ACEOF
22174
 
/* confdefs.h.  */
22175
 
_ACEOF
22176
 
cat confdefs.h >>conftest.$ac_ext
22177
 
cat >>conftest.$ac_ext <<_ACEOF
 
13089
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178
13090
/* end confdefs.h.  */
22179
13091
#include <libintl.h>
 
13092
$gt_revision_test_code
22180
13093
extern int _nl_msg_cat_cntr;
22181
13094
extern
22182
13095
#ifdef __cplusplus
22187
13100
main ()
22188
13101
{
22189
13102
bindtextdomain ("", "");
22190
 
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
13103
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22191
13104
  ;
22192
13105
  return 0;
22193
13106
}
22194
13107
_ACEOF
22195
 
rm -f conftest.$ac_objext conftest$ac_exeext
22196
 
if { (ac_try="$ac_link"
22197
 
case "(($ac_try" in
22198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199
 
  *) ac_try_echo=$ac_try;;
22200
 
esac
22201
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202
 
  (eval "$ac_link") 2>conftest.er1
22203
 
  ac_status=$?
22204
 
  grep -v '^ *+' conftest.er1 >conftest.err
22205
 
  rm -f conftest.er1
22206
 
  cat conftest.err >&5
22207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208
 
  (exit $ac_status); } && {
22209
 
         test -z "$ac_c_werror_flag" ||
22210
 
         test ! -s conftest.err
22211
 
       } && test -s conftest$ac_exeext &&
22212
 
       $as_test_x conftest$ac_exeext; then
 
13108
if ac_fn_c_try_link "$LINENO"; then :
22213
13109
  LIBINTL="$LIBINTL $LIBICONV"
22214
13110
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22215
 
                gt_cv_func_gnugettext1_libintl=yes
22216
 
 
22217
 
else
22218
 
  echo "$as_me: failed program was:" >&5
22219
 
sed 's/^/| /' conftest.$ac_ext >&5
22220
 
 
 
13111
                eval "$gt_func_gnugettext_libintl=yes"
22221
13112
 
22222
13113
fi
22223
 
 
22224
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225
 
      conftest$ac_exeext conftest.$ac_ext
 
13114
rm -f core conftest.err conftest.$ac_objext \
 
13115
    conftest$ac_exeext conftest.$ac_ext
22226
13116
            fi
22227
13117
            CPPFLAGS="$gt_save_CPPFLAGS"
22228
13118
            LIBS="$gt_save_LIBS"
22229
13119
fi
22230
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22231
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
 
13120
eval ac_res=\$$gt_func_gnugettext_libintl
 
13121
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13122
$as_echo "$ac_res" >&6; }
22232
13123
        fi
22233
13124
 
22234
 
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22235
 
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
13125
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
13126
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
22236
13127
                && test "$PACKAGE" != gettext-runtime \
22237
13128
                && test "$PACKAGE" != gettext-tools; }; then
22238
13129
          gt_use_preinstalled_gnugettext=yes
22255
13146
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
22256
13147
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
22257
13148
 
22258
 
cat >>confdefs.h <<\_ACEOF
22259
 
#define ENABLE_NLS 1
22260
 
_ACEOF
 
13149
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
22261
13150
 
22262
13151
    else
22263
13152
      USE_NLS=no
22264
13153
    fi
22265
13154
  fi
22266
13155
 
22267
 
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
22268
 
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
22269
 
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22270
 
echo "${ECHO_T}$USE_NLS" >&6; }
 
13156
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
13157
$as_echo_n "checking whether to use NLS... " >&6; }
 
13158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
13159
$as_echo "$USE_NLS" >&6; }
22271
13160
  if test "$USE_NLS" = "yes"; then
22272
 
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22273
 
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
 
13161
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
13162
$as_echo_n "checking where the gettext function comes from... " >&6; }
22274
13163
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22275
 
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
13164
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22276
13165
        gt_source="external libintl"
22277
13166
      else
22278
13167
        gt_source="libc"
22280
13169
    else
22281
13170
      gt_source="included intl directory"
22282
13171
    fi
22283
 
    { echo "$as_me:$LINENO: result: $gt_source" >&5
22284
 
echo "${ECHO_T}$gt_source" >&6; }
 
13172
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
13173
$as_echo "$gt_source" >&6; }
22285
13174
  fi
22286
13175
 
22287
13176
  if test "$USE_NLS" = "yes"; then
22288
13177
 
22289
13178
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22290
 
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22291
 
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
22292
 
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
22293
 
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
22294
 
echo "${ECHO_T}$LIBINTL" >&6; }
 
13179
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
13180
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
13181
$as_echo_n "checking how to link with libintl... " >&6; }
 
13182
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
13183
$as_echo "$LIBINTL" >&6; }
22295
13184
 
22296
13185
  for element in $INCINTL; do
22297
13186
    haveit=
22318
13207
      fi
22319
13208
 
22320
13209
 
22321
 
cat >>confdefs.h <<\_ACEOF
22322
 
#define HAVE_GETTEXT 1
22323
 
_ACEOF
22324
 
 
22325
 
 
22326
 
cat >>confdefs.h <<\_ACEOF
22327
 
#define HAVE_DCGETTEXT 1
22328
 
_ACEOF
 
13210
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
13211
 
 
13212
 
 
13213
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
22329
13214
 
22330
13215
    fi
22331
13216
 
22343
13228
 
22344
13229
 
22345
13230
# Checks for header files.
22346
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22347
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22348
 
if test "${ac_cv_header_stdc+set}" = set; then
22349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
13232
$as_echo_n "checking for ANSI C header files... " >&6; }
 
13233
if test "${ac_cv_header_stdc+set}" = set; then :
 
13234
  $as_echo_n "(cached) " >&6
22350
13235
else
22351
 
  cat >conftest.$ac_ext <<_ACEOF
22352
 
/* confdefs.h.  */
22353
 
_ACEOF
22354
 
cat confdefs.h >>conftest.$ac_ext
22355
 
cat >>conftest.$ac_ext <<_ACEOF
 
13236
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356
13237
/* end confdefs.h.  */
22357
13238
#include <stdlib.h>
22358
13239
#include <stdarg.h>
22367
13248
  return 0;
22368
13249
}
22369
13250
_ACEOF
22370
 
rm -f conftest.$ac_objext
22371
 
if { (ac_try="$ac_compile"
22372
 
case "(($ac_try" in
22373
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374
 
  *) ac_try_echo=$ac_try;;
22375
 
esac
22376
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377
 
  (eval "$ac_compile") 2>conftest.er1
22378
 
  ac_status=$?
22379
 
  grep -v '^ *+' conftest.er1 >conftest.err
22380
 
  rm -f conftest.er1
22381
 
  cat conftest.err >&5
22382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383
 
  (exit $ac_status); } && {
22384
 
         test -z "$ac_c_werror_flag" ||
22385
 
         test ! -s conftest.err
22386
 
       } && test -s conftest.$ac_objext; then
 
13251
if ac_fn_c_try_compile "$LINENO"; then :
22387
13252
  ac_cv_header_stdc=yes
22388
13253
else
22389
 
  echo "$as_me: failed program was:" >&5
22390
 
sed 's/^/| /' conftest.$ac_ext >&5
22391
 
 
22392
 
        ac_cv_header_stdc=no
 
13254
  ac_cv_header_stdc=no
22393
13255
fi
22394
 
 
22395
13256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396
13257
 
22397
13258
if test $ac_cv_header_stdc = yes; then
22398
13259
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22399
 
  cat >conftest.$ac_ext <<_ACEOF
22400
 
/* confdefs.h.  */
22401
 
_ACEOF
22402
 
cat confdefs.h >>conftest.$ac_ext
22403
 
cat >>conftest.$ac_ext <<_ACEOF
 
13260
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22404
13261
/* end confdefs.h.  */
22405
13262
#include <string.h>
22406
13263
 
22407
13264
_ACEOF
22408
13265
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409
 
  $EGREP "memchr" >/dev/null 2>&1; then
22410
 
  :
 
13266
  $EGREP "memchr" >/dev/null 2>&1; then :
 
13267
 
22411
13268
else
22412
13269
  ac_cv_header_stdc=no
22413
13270
fi
22417
13274
 
22418
13275
if test $ac_cv_header_stdc = yes; then
22419
13276
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22420
 
  cat >conftest.$ac_ext <<_ACEOF
22421
 
/* confdefs.h.  */
22422
 
_ACEOF
22423
 
cat confdefs.h >>conftest.$ac_ext
22424
 
cat >>conftest.$ac_ext <<_ACEOF
 
13277
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425
13278
/* end confdefs.h.  */
22426
13279
#include <stdlib.h>
22427
13280
 
22428
13281
_ACEOF
22429
13282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22430
 
  $EGREP "free" >/dev/null 2>&1; then
22431
 
  :
 
13283
  $EGREP "free" >/dev/null 2>&1; then :
 
13284
 
22432
13285
else
22433
13286
  ac_cv_header_stdc=no
22434
13287
fi
22438
13291
 
22439
13292
if test $ac_cv_header_stdc = yes; then
22440
13293
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22441
 
  if test "$cross_compiling" = yes; then
 
13294
  if test "$cross_compiling" = yes; then :
22442
13295
  :
22443
13296
else
22444
 
  cat >conftest.$ac_ext <<_ACEOF
22445
 
/* confdefs.h.  */
22446
 
_ACEOF
22447
 
cat confdefs.h >>conftest.$ac_ext
22448
 
cat >>conftest.$ac_ext <<_ACEOF
 
13297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449
13298
/* end confdefs.h.  */
22450
13299
#include <ctype.h>
22451
13300
#include <stdlib.h>
22472
13321
  return 0;
22473
13322
}
22474
13323
_ACEOF
22475
 
rm -f conftest$ac_exeext
22476
 
if { (ac_try="$ac_link"
22477
 
case "(($ac_try" in
22478
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479
 
  *) ac_try_echo=$ac_try;;
22480
 
esac
22481
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482
 
  (eval "$ac_link") 2>&5
22483
 
  ac_status=$?
22484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22486
 
  { (case "(($ac_try" in
22487
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488
 
  *) ac_try_echo=$ac_try;;
22489
 
esac
22490
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491
 
  (eval "$ac_try") 2>&5
22492
 
  ac_status=$?
22493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494
 
  (exit $ac_status); }; }; then
22495
 
  :
 
13324
if ac_fn_c_try_run "$LINENO"; then :
 
13325
 
22496
13326
else
22497
 
  echo "$as_me: program exited with status $ac_status" >&5
22498
 
echo "$as_me: failed program was:" >&5
22499
 
sed 's/^/| /' conftest.$ac_ext >&5
22500
 
 
22501
 
( exit $ac_status )
22502
 
ac_cv_header_stdc=no
22503
 
fi
22504
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22505
 
fi
22506
 
 
22507
 
 
22508
 
fi
22509
 
fi
22510
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22511
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
13327
  ac_cv_header_stdc=no
 
13328
fi
 
13329
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13330
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13331
fi
 
13332
 
 
13333
fi
 
13334
fi
 
13335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
13336
$as_echo "$ac_cv_header_stdc" >&6; }
22512
13337
if test $ac_cv_header_stdc = yes; then
22513
13338
 
22514
 
cat >>confdefs.h <<\_ACEOF
22515
 
#define STDC_HEADERS 1
22516
 
_ACEOF
 
13339
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22517
13340
 
22518
13341
fi
22519
13342
 
22520
 
 
22521
 
 
22522
13343
for ac_header in stdlib.h locale.h
22523
 
do
22524
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22525
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22526
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22527
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22528
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22530
 
fi
22531
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22532
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22533
 
echo "${ECHO_T}$ac_res" >&6; }
22534
 
else
22535
 
  # Is the header compilable?
22536
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22538
 
cat >conftest.$ac_ext <<_ACEOF
22539
 
/* confdefs.h.  */
22540
 
_ACEOF
22541
 
cat confdefs.h >>conftest.$ac_ext
22542
 
cat >>conftest.$ac_ext <<_ACEOF
22543
 
/* end confdefs.h.  */
22544
 
$ac_includes_default
22545
 
#include <$ac_header>
22546
 
_ACEOF
22547
 
rm -f conftest.$ac_objext
22548
 
if { (ac_try="$ac_compile"
22549
 
case "(($ac_try" in
22550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551
 
  *) ac_try_echo=$ac_try;;
22552
 
esac
22553
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554
 
  (eval "$ac_compile") 2>conftest.er1
22555
 
  ac_status=$?
22556
 
  grep -v '^ *+' conftest.er1 >conftest.err
22557
 
  rm -f conftest.er1
22558
 
  cat conftest.err >&5
22559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560
 
  (exit $ac_status); } && {
22561
 
         test -z "$ac_c_werror_flag" ||
22562
 
         test ! -s conftest.err
22563
 
       } && test -s conftest.$ac_objext; then
22564
 
  ac_header_compiler=yes
22565
 
else
22566
 
  echo "$as_me: failed program was:" >&5
22567
 
sed 's/^/| /' conftest.$ac_ext >&5
22568
 
 
22569
 
        ac_header_compiler=no
22570
 
fi
22571
 
 
22572
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22574
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22575
 
 
22576
 
# Is the header present?
22577
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22578
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22579
 
cat >conftest.$ac_ext <<_ACEOF
22580
 
/* confdefs.h.  */
22581
 
_ACEOF
22582
 
cat confdefs.h >>conftest.$ac_ext
22583
 
cat >>conftest.$ac_ext <<_ACEOF
22584
 
/* end confdefs.h.  */
22585
 
#include <$ac_header>
22586
 
_ACEOF
22587
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22588
 
case "(($ac_try" in
22589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590
 
  *) ac_try_echo=$ac_try;;
22591
 
esac
22592
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22594
 
  ac_status=$?
22595
 
  grep -v '^ *+' conftest.er1 >conftest.err
22596
 
  rm -f conftest.er1
22597
 
  cat conftest.err >&5
22598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599
 
  (exit $ac_status); } >/dev/null && {
22600
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22601
 
         test ! -s conftest.err
22602
 
       }; then
22603
 
  ac_header_preproc=yes
22604
 
else
22605
 
  echo "$as_me: failed program was:" >&5
22606
 
sed 's/^/| /' conftest.$ac_ext >&5
22607
 
 
22608
 
  ac_header_preproc=no
22609
 
fi
22610
 
 
22611
 
rm -f conftest.err conftest.$ac_ext
22612
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22614
 
 
22615
 
# So?  What about this header?
22616
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617
 
  yes:no: )
22618
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22620
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622
 
    ac_header_preproc=yes
22623
 
    ;;
22624
 
  no:yes:* )
22625
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22627
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22628
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22629
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22632
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22633
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22634
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22635
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22637
 
    ( cat <<\_ASBOX
22638
 
## ---------------------------------- ##
22639
 
## Report this to bug-gnupg@gnupg.org ##
22640
 
## ---------------------------------- ##
22641
 
_ASBOX
22642
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22643
 
    ;;
22644
 
esac
22645
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22646
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22647
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22649
 
else
22650
 
  eval "$as_ac_Header=\$ac_header_preproc"
22651
 
fi
22652
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22653
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22654
 
echo "${ECHO_T}$ac_res" >&6; }
22655
 
 
22656
 
fi
22657
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13344
do :
 
13345
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13346
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13347
eval as_val=\$$as_ac_Header
 
13348
   if test "x$as_val" = x""yes; then :
22658
13349
  cat >>confdefs.h <<_ACEOF
22659
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13350
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22660
13351
_ACEOF
22661
13352
 
22662
13353
fi
22663
13354
 
22664
13355
done
22665
13356
 
22666
 
{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
22667
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
22668
 
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
22669
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22670
 
else
22671
 
  cat >conftest.$ac_ext <<_ACEOF
22672
 
/* confdefs.h.  */
22673
 
_ACEOF
22674
 
cat confdefs.h >>conftest.$ac_ext
22675
 
cat >>conftest.$ac_ext <<_ACEOF
22676
 
/* end confdefs.h.  */
22677
 
$ac_includes_default
22678
 
int
22679
 
main ()
22680
 
{
22681
 
#ifndef strerror_r
22682
 
  (void) strerror_r;
22683
 
#endif
22684
 
 
22685
 
  ;
22686
 
  return 0;
22687
 
}
22688
 
_ACEOF
22689
 
rm -f conftest.$ac_objext
22690
 
if { (ac_try="$ac_compile"
22691
 
case "(($ac_try" in
22692
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693
 
  *) ac_try_echo=$ac_try;;
22694
 
esac
22695
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696
 
  (eval "$ac_compile") 2>conftest.er1
22697
 
  ac_status=$?
22698
 
  grep -v '^ *+' conftest.er1 >conftest.err
22699
 
  rm -f conftest.er1
22700
 
  cat conftest.err >&5
22701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702
 
  (exit $ac_status); } && {
22703
 
         test -z "$ac_c_werror_flag" ||
22704
 
         test ! -s conftest.err
22705
 
       } && test -s conftest.$ac_objext; then
22706
 
  ac_cv_have_decl_strerror_r=yes
22707
 
else
22708
 
  echo "$as_me: failed program was:" >&5
22709
 
sed 's/^/| /' conftest.$ac_ext >&5
22710
 
 
22711
 
        ac_cv_have_decl_strerror_r=no
22712
 
fi
22713
 
 
22714
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715
 
fi
22716
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
22717
 
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
22718
 
if test $ac_cv_have_decl_strerror_r = yes; then
 
13357
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
 
13358
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
 
13359
  ac_have_decl=1
 
13360
else
 
13361
  ac_have_decl=0
 
13362
fi
22719
13363
 
22720
13364
cat >>confdefs.h <<_ACEOF
22721
 
#define HAVE_DECL_STRERROR_R 1
22722
 
_ACEOF
22723
 
 
22724
 
 
22725
 
else
22726
 
  cat >>confdefs.h <<_ACEOF
22727
 
#define HAVE_DECL_STRERROR_R 0
22728
 
_ACEOF
22729
 
 
22730
 
 
22731
 
fi
22732
 
 
22733
 
 
 
13365
#define HAVE_DECL_STRERROR_R $ac_have_decl
 
13366
_ACEOF
22734
13367
 
22735
13368
for ac_func in strerror_r
22736
 
do
22737
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22738
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22739
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22740
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22741
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22742
 
else
22743
 
  cat >conftest.$ac_ext <<_ACEOF
22744
 
/* confdefs.h.  */
22745
 
_ACEOF
22746
 
cat confdefs.h >>conftest.$ac_ext
22747
 
cat >>conftest.$ac_ext <<_ACEOF
22748
 
/* end confdefs.h.  */
22749
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22750
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22751
 
#define $ac_func innocuous_$ac_func
22752
 
 
22753
 
/* System header to define __stub macros and hopefully few prototypes,
22754
 
    which can conflict with char $ac_func (); below.
22755
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22756
 
    <limits.h> exists even on freestanding compilers.  */
22757
 
 
22758
 
#ifdef __STDC__
22759
 
# include <limits.h>
22760
 
#else
22761
 
# include <assert.h>
22762
 
#endif
22763
 
 
22764
 
#undef $ac_func
22765
 
 
22766
 
/* Override any GCC internal prototype to avoid an error.
22767
 
   Use char because int might match the return type of a GCC
22768
 
   builtin and then its argument prototype would still apply.  */
22769
 
#ifdef __cplusplus
22770
 
extern "C"
22771
 
#endif
22772
 
char $ac_func ();
22773
 
/* The GNU C library defines this for functions which it implements
22774
 
    to always fail with ENOSYS.  Some functions are actually named
22775
 
    something starting with __ and the normal name is an alias.  */
22776
 
#if defined __stub_$ac_func || defined __stub___$ac_func
22777
 
choke me
22778
 
#endif
22779
 
 
22780
 
int
22781
 
main ()
22782
 
{
22783
 
return $ac_func ();
22784
 
  ;
22785
 
  return 0;
22786
 
}
22787
 
_ACEOF
22788
 
rm -f conftest.$ac_objext conftest$ac_exeext
22789
 
if { (ac_try="$ac_link"
22790
 
case "(($ac_try" in
22791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792
 
  *) ac_try_echo=$ac_try;;
22793
 
esac
22794
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795
 
  (eval "$ac_link") 2>conftest.er1
22796
 
  ac_status=$?
22797
 
  grep -v '^ *+' conftest.er1 >conftest.err
22798
 
  rm -f conftest.er1
22799
 
  cat conftest.err >&5
22800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801
 
  (exit $ac_status); } && {
22802
 
         test -z "$ac_c_werror_flag" ||
22803
 
         test ! -s conftest.err
22804
 
       } && test -s conftest$ac_exeext &&
22805
 
       $as_test_x conftest$ac_exeext; then
22806
 
  eval "$as_ac_var=yes"
22807
 
else
22808
 
  echo "$as_me: failed program was:" >&5
22809
 
sed 's/^/| /' conftest.$ac_ext >&5
22810
 
 
22811
 
        eval "$as_ac_var=no"
22812
 
fi
22813
 
 
22814
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22815
 
      conftest$ac_exeext conftest.$ac_ext
22816
 
fi
22817
 
ac_res=`eval echo '${'$as_ac_var'}'`
22818
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22819
 
echo "${ECHO_T}$ac_res" >&6; }
22820
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13369
do :
 
13370
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
13371
if test "x$ac_cv_func_strerror_r" = x""yes; then :
22821
13372
  cat >>confdefs.h <<_ACEOF
22822
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13373
#define HAVE_STRERROR_R 1
22823
13374
_ACEOF
22824
13375
 
22825
13376
fi
22826
13377
done
22827
13378
 
22828
 
{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
22829
 
echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
22830
 
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
22831
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
 
13380
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
 
13381
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
 
13382
  $as_echo_n "(cached) " >&6
22832
13383
else
22833
13384
 
22834
13385
    ac_cv_func_strerror_r_char_p=no
22835
13386
    if test $ac_cv_have_decl_strerror_r = yes; then
22836
 
      cat >conftest.$ac_ext <<_ACEOF
22837
 
/* confdefs.h.  */
22838
 
_ACEOF
22839
 
cat confdefs.h >>conftest.$ac_ext
22840
 
cat >>conftest.$ac_ext <<_ACEOF
 
13387
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841
13388
/* end confdefs.h.  */
22842
13389
$ac_includes_default
22843
13390
int
22853
13400
  return 0;
22854
13401
}
22855
13402
_ACEOF
22856
 
rm -f conftest.$ac_objext
22857
 
if { (ac_try="$ac_compile"
22858
 
case "(($ac_try" in
22859
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860
 
  *) ac_try_echo=$ac_try;;
22861
 
esac
22862
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863
 
  (eval "$ac_compile") 2>conftest.er1
22864
 
  ac_status=$?
22865
 
  grep -v '^ *+' conftest.er1 >conftest.err
22866
 
  rm -f conftest.er1
22867
 
  cat conftest.err >&5
22868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869
 
  (exit $ac_status); } && {
22870
 
         test -z "$ac_c_werror_flag" ||
22871
 
         test ! -s conftest.err
22872
 
       } && test -s conftest.$ac_objext; then
 
13403
if ac_fn_c_try_compile "$LINENO"; then :
22873
13404
  ac_cv_func_strerror_r_char_p=yes
22874
 
else
22875
 
  echo "$as_me: failed program was:" >&5
22876
 
sed 's/^/| /' conftest.$ac_ext >&5
22877
 
 
22878
 
 
22879
13405
fi
22880
 
 
22881
13406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882
13407
    else
22883
13408
      # strerror_r is not declared.  Choose between
22886
13411
      # former has a strerror_r that returns char*, while the latter
22887
13412
      # has a strerror_r that returns `int'.
22888
13413
      # This test should segfault on the DEC system.
22889
 
      if test "$cross_compiling" = yes; then
 
13414
      if test "$cross_compiling" = yes; then :
22890
13415
  :
22891
13416
else
22892
 
  cat >conftest.$ac_ext <<_ACEOF
22893
 
/* confdefs.h.  */
22894
 
_ACEOF
22895
 
cat confdefs.h >>conftest.$ac_ext
22896
 
cat >>conftest.$ac_ext <<_ACEOF
 
13417
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897
13418
/* end confdefs.h.  */
22898
13419
$ac_includes_default
22899
13420
        extern char *strerror_r ();
22907
13428
  return 0;
22908
13429
}
22909
13430
_ACEOF
22910
 
rm -f conftest$ac_exeext
22911
 
if { (ac_try="$ac_link"
22912
 
case "(($ac_try" in
22913
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914
 
  *) ac_try_echo=$ac_try;;
22915
 
esac
22916
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917
 
  (eval "$ac_link") 2>&5
22918
 
  ac_status=$?
22919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921
 
  { (case "(($ac_try" in
22922
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923
 
  *) ac_try_echo=$ac_try;;
22924
 
esac
22925
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926
 
  (eval "$ac_try") 2>&5
22927
 
  ac_status=$?
22928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929
 
  (exit $ac_status); }; }; then
 
13431
if ac_fn_c_try_run "$LINENO"; then :
22930
13432
  ac_cv_func_strerror_r_char_p=yes
22931
 
else
22932
 
  echo "$as_me: program exited with status $ac_status" >&5
22933
 
echo "$as_me: failed program was:" >&5
22934
 
sed 's/^/| /' conftest.$ac_ext >&5
22935
 
 
22936
 
fi
22937
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22938
 
fi
22939
 
 
 
13433
fi
 
13434
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13435
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13436
fi
22940
13437
 
22941
13438
    fi
22942
13439
 
22943
13440
fi
22944
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
22945
 
echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
 
13441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
 
13442
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
22946
13443
if test $ac_cv_func_strerror_r_char_p = yes; then
22947
13444
 
22948
 
cat >>confdefs.h <<\_ACEOF
22949
 
#define STRERROR_R_CHAR_P 1
22950
 
_ACEOF
 
13445
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
22951
13446
 
22952
13447
fi
22953
13448
 
22957
13452
     # Since Solaris 10, in addition strerror_r() exists.
22958
13453
     ;;
22959
13454
     *)
22960
 
     { echo "$as_me:$LINENO: checking for strerror_r" >&5
22961
 
echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6; }
22962
 
if test "${ac_cv_func_strerror_r+set}" = set; then
22963
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22964
 
else
22965
 
  cat >conftest.$ac_ext <<_ACEOF
22966
 
/* confdefs.h.  */
22967
 
_ACEOF
22968
 
cat confdefs.h >>conftest.$ac_ext
22969
 
cat >>conftest.$ac_ext <<_ACEOF
22970
 
/* end confdefs.h.  */
22971
 
/* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
22972
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22973
 
#define strerror_r innocuous_strerror_r
22974
 
 
22975
 
/* System header to define __stub macros and hopefully few prototypes,
22976
 
    which can conflict with char strerror_r (); below.
22977
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22978
 
    <limits.h> exists even on freestanding compilers.  */
22979
 
 
22980
 
#ifdef __STDC__
22981
 
# include <limits.h>
22982
 
#else
22983
 
# include <assert.h>
22984
 
#endif
22985
 
 
22986
 
#undef strerror_r
22987
 
 
22988
 
/* Override any GCC internal prototype to avoid an error.
22989
 
   Use char because int might match the return type of a GCC
22990
 
   builtin and then its argument prototype would still apply.  */
22991
 
#ifdef __cplusplus
22992
 
extern "C"
22993
 
#endif
22994
 
char strerror_r ();
22995
 
/* The GNU C library defines this for functions which it implements
22996
 
    to always fail with ENOSYS.  Some functions are actually named
22997
 
    something starting with __ and the normal name is an alias.  */
22998
 
#if defined __stub_strerror_r || defined __stub___strerror_r
22999
 
choke me
23000
 
#endif
23001
 
 
23002
 
int
23003
 
main ()
23004
 
{
23005
 
return strerror_r ();
23006
 
  ;
23007
 
  return 0;
23008
 
}
23009
 
_ACEOF
23010
 
rm -f conftest.$ac_objext conftest$ac_exeext
23011
 
if { (ac_try="$ac_link"
23012
 
case "(($ac_try" in
23013
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014
 
  *) ac_try_echo=$ac_try;;
23015
 
esac
23016
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017
 
  (eval "$ac_link") 2>conftest.er1
23018
 
  ac_status=$?
23019
 
  grep -v '^ *+' conftest.er1 >conftest.err
23020
 
  rm -f conftest.er1
23021
 
  cat conftest.err >&5
23022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023
 
  (exit $ac_status); } && {
23024
 
         test -z "$ac_c_werror_flag" ||
23025
 
         test ! -s conftest.err
23026
 
       } && test -s conftest$ac_exeext &&
23027
 
       $as_test_x conftest$ac_exeext; then
23028
 
  ac_cv_func_strerror_r=yes
23029
 
else
23030
 
  echo "$as_me: failed program was:" >&5
23031
 
sed 's/^/| /' conftest.$ac_ext >&5
23032
 
 
23033
 
        ac_cv_func_strerror_r=no
23034
 
fi
23035
 
 
23036
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037
 
      conftest$ac_exeext conftest.$ac_ext
23038
 
fi
23039
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
23040
 
echo "${ECHO_T}$ac_cv_func_strerror_r" >&6; }
23041
 
if test $ac_cv_func_strerror_r = yes; then
23042
 
  :
23043
 
else
23044
 
  { echo "$as_me:$LINENO: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
23045
 
echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
 
13455
     ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
13456
if test "x$ac_cv_func_strerror_r" = x""yes; then :
 
13457
 
 
13458
else
 
13459
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
 
13460
$as_echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
23046
13461
fi
23047
13462
 
23048
13463
     ;;
23049
13464
esac
23050
13465
 
23051
13466
# Checks for typedefs, structures, and compiler characteristics.
23052
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23053
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23054
 
if test "${ac_cv_c_const+set}" = set; then
23055
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
13468
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
13469
if test "${ac_cv_c_const+set}" = set; then :
 
13470
  $as_echo_n "(cached) " >&6
23056
13471
else
23057
 
  cat >conftest.$ac_ext <<_ACEOF
23058
 
/* confdefs.h.  */
23059
 
_ACEOF
23060
 
cat confdefs.h >>conftest.$ac_ext
23061
 
cat >>conftest.$ac_ext <<_ACEOF
 
13472
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23062
13473
/* end confdefs.h.  */
23063
13474
 
23064
13475
int
23118
13529
  return 0;
23119
13530
}
23120
13531
_ACEOF
23121
 
rm -f conftest.$ac_objext
23122
 
if { (ac_try="$ac_compile"
23123
 
case "(($ac_try" in
23124
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125
 
  *) ac_try_echo=$ac_try;;
23126
 
esac
23127
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128
 
  (eval "$ac_compile") 2>conftest.er1
23129
 
  ac_status=$?
23130
 
  grep -v '^ *+' conftest.er1 >conftest.err
23131
 
  rm -f conftest.er1
23132
 
  cat conftest.err >&5
23133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134
 
  (exit $ac_status); } && {
23135
 
         test -z "$ac_c_werror_flag" ||
23136
 
         test ! -s conftest.err
23137
 
       } && test -s conftest.$ac_objext; then
 
13532
if ac_fn_c_try_compile "$LINENO"; then :
23138
13533
  ac_cv_c_const=yes
23139
13534
else
23140
 
  echo "$as_me: failed program was:" >&5
23141
 
sed 's/^/| /' conftest.$ac_ext >&5
23142
 
 
23143
 
        ac_cv_c_const=no
 
13535
  ac_cv_c_const=no
23144
13536
fi
23145
 
 
23146
13537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147
13538
fi
23148
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23149
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
13539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
13540
$as_echo "$ac_cv_c_const" >&6; }
23150
13541
if test $ac_cv_c_const = no; then
23151
13542
 
23152
 
cat >>confdefs.h <<\_ACEOF
23153
 
#define const
23154
 
_ACEOF
 
13543
$as_echo "#define const /**/" >>confdefs.h
23155
13544
 
23156
13545
fi
23157
13546
 
23159
13548
# Substitution used for gpg-error-config
23160
13549
GPG_ERROR_CONFIG_LIBS="-lgpg-error"
23161
13550
GPG_ERROR_CONFIG_CFLAGS=""
 
13551
GPG_ERROR_CONFIG_ISUBDIRAFTER=""
 
13552
 
23162
13553
 
23163
13554
 
23164
13555
ac_config_files="$ac_config_files src/gpg-error-config"
23168
13559
# Special defines for certain platforms
23169
13560
if test "$have_w32_system" = yes; then
23170
13561
 
23171
 
cat >>confdefs.h <<\_ACEOF
23172
 
#define HAVE_W32_SYSTEM 1
23173
 
_ACEOF
23174
 
 
 
13562
$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
 
13563
 
 
13564
    if test "$have_w32ce_system" = yes; then
 
13565
 
 
13566
$as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
 
13567
 
 
13568
      GPG_ERROR_CONFIG_ISUBDIRAFTER="gpg-extra"
 
13569
    fi
23175
13570
    BUILD_TIMESTAMP=`date --iso-8601=minutes`
23176
 
 
23177
13571
        BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
23178
13572
        case "$VERSION" in
23179
13573
      *-svn*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
23192
13586
  HAVE_W32_SYSTEM_FALSE=
23193
13587
fi
23194
13588
 
 
13589
 if test "$have_w32ce_system" = yes; then
 
13590
  HAVE_W32CE_SYSTEM_TRUE=
 
13591
  HAVE_W32CE_SYSTEM_FALSE='#'
 
13592
else
 
13593
  HAVE_W32CE_SYSTEM_TRUE='#'
 
13594
  HAVE_W32CE_SYSTEM_FALSE=
 
13595
fi
 
13596
 
23195
13597
 
23196
13598
 
23197
13599
# Check whether --enable-languages was given.
23198
 
if test "${enable_languages+set}" = set; then
 
13600
if test "${enable_languages+set}" = set; then :
23199
13601
  enableval=$enable_languages;
23200
13602
fi
23201
13603
 
23209
13611
 
23210
13612
 
23211
13613
 
23212
 
 
23213
13614
# Substitution
23214
13615
ac_config_files="$ac_config_files Makefile"
23215
13616
 
23249
13650
    case $ac_val in #(
23250
13651
    *${as_nl}*)
23251
13652
      case $ac_var in #(
23252
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23253
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
13653
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13654
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23254
13655
      esac
23255
13656
      case $ac_var in #(
23256
13657
      _ | IFS | as_nl) ;; #(
23257
 
      *) $as_unset $ac_var ;;
 
13658
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13659
      *) { eval $ac_var=; unset $ac_var;} ;;
23258
13660
      esac ;;
23259
13661
    esac
23260
13662
  done
23262
13664
  (set) 2>&1 |
23263
13665
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23264
13666
    *${as_nl}ac_space=\ *)
23265
 
      # `set' does not quote correctly, so add quotes (double-quote
23266
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13667
      # `set' does not quote correctly, so add quotes: double-quote
 
13668
      # substitution turns \\\\ into \\, and sed turns \\ into \.
23267
13669
      sed -n \
23268
13670
        "s/'/'\\\\''/g;
23269
13671
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23286
13688
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23287
13689
  if test -w "$cache_file"; then
23288
13690
    test "x$cache_file" != "x/dev/null" &&
23289
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23290
 
echo "$as_me: updating cache $cache_file" >&6;}
 
13691
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13692
$as_echo "$as_me: updating cache $cache_file" >&6;}
23291
13693
    cat confcache >$cache_file
23292
13694
  else
23293
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23294
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13695
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13696
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23295
13697
  fi
23296
13698
fi
23297
13699
rm -f confcache
23307
13709
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23308
13710
  # 1. Remove the extension, and $U if already installed.
23309
13711
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23310
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
13712
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23311
13713
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23312
13714
  #    will be set to the directory where LIBOBJS objects are built.
23313
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23314
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
13715
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13716
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23315
13717
done
23316
13718
LIBOBJS=$ac_libobjs
23317
13719
 
23319
13721
 
23320
13722
 
23321
13723
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23322
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23323
 
Usually this means the macro was only invoked conditionally." >&5
23324
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23325
 
Usually this means the macro was only invoked conditionally." >&2;}
23326
 
   { (exit 1); exit 1; }; }
 
13724
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
13725
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23327
13726
fi
23328
13727
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23329
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23330
 
Usually this means the macro was only invoked conditionally." >&5
23331
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23332
 
Usually this means the macro was only invoked conditionally." >&2;}
23333
 
   { (exit 1); exit 1; }; }
 
13728
  as_fn_error "conditional \"AMDEP\" was never defined.
 
13729
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23334
13730
fi
23335
13731
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23336
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23337
 
Usually this means the macro was only invoked conditionally." >&5
23338
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23339
 
Usually this means the macro was only invoked conditionally." >&2;}
23340
 
   { (exit 1); exit 1; }; }
23341
 
fi
23342
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23343
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23344
 
Usually this means the macro was only invoked conditionally." >&5
23345
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23346
 
Usually this means the macro was only invoked conditionally." >&2;}
23347
 
   { (exit 1); exit 1; }; }
 
13732
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
13733
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23348
13734
fi
23349
13735
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
23350
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23351
 
Usually this means the macro was only invoked conditionally." >&5
23352
 
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23353
 
Usually this means the macro was only invoked conditionally." >&2;}
23354
 
   { (exit 1); exit 1; }; }
 
13736
  as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
 
13737
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13738
fi
 
13739
if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
 
13740
  as_fn_error "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
 
13741
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23355
13742
fi
23356
13743
if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
23357
 
  { { echo "$as_me:$LINENO: error: conditional \"LANGUAGES_SOME\" was never defined.
23358
 
Usually this means the macro was only invoked conditionally." >&5
23359
 
echo "$as_me: error: conditional \"LANGUAGES_SOME\" was never defined.
23360
 
Usually this means the macro was only invoked conditionally." >&2;}
23361
 
   { (exit 1); exit 1; }; }
 
13744
  as_fn_error "conditional \"LANGUAGES_SOME\" was never defined.
 
13745
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23362
13746
fi
23363
13747
 
23364
13748
: ${CONFIG_STATUS=./config.status}
 
13749
ac_write_fail=0
23365
13750
ac_clean_files_save=$ac_clean_files
23366
13751
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23367
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23368
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23369
 
cat >$CONFIG_STATUS <<_ACEOF
 
13752
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13753
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13754
as_write_fail=0
 
13755
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23370
13756
#! $SHELL
23371
13757
# Generated by $as_me.
23372
13758
# Run this file to recreate the current configuration.
23376
13762
debug=false
23377
13763
ac_cs_recheck=false
23378
13764
ac_cs_silent=false
 
13765
 
23379
13766
SHELL=\${CONFIG_SHELL-$SHELL}
23380
 
_ACEOF
23381
 
 
23382
 
cat >>$CONFIG_STATUS <<\_ACEOF
23383
 
## --------------------- ##
23384
 
## M4sh Initialization.  ##
23385
 
## --------------------- ##
 
13767
export SHELL
 
13768
_ASEOF
 
13769
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13770
## -------------------- ##
 
13771
## M4sh Initialization. ##
 
13772
## -------------------- ##
23386
13773
 
23387
13774
# Be more Bourne compatible
23388
13775
DUALCASE=1; export DUALCASE # for MKS sh
23389
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13776
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23390
13777
  emulate sh
23391
13778
  NULLCMD=:
23392
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
13779
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23393
13780
  # is contrary to our usage.  Disable this feature.
23394
13781
  alias -g '${1+"$@"}'='"$@"'
23395
13782
  setopt NO_GLOB_SUBST
23396
13783
else
23397
 
  case `(set -o) 2>/dev/null` in
23398
 
  *posix*) set -o posix ;;
 
13784
  case `(set -o) 2>/dev/null` in #(
 
13785
  *posix*) :
 
13786
    set -o posix ;; #(
 
13787
  *) :
 
13788
     ;;
23399
13789
esac
23400
 
 
23401
 
fi
23402
 
 
23403
 
 
23404
 
 
23405
 
 
23406
 
# PATH needs CR
23407
 
# Avoid depending upon Character Ranges.
23408
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23409
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23410
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23411
 
as_cr_digits='0123456789'
23412
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13790
fi
 
13791
 
 
13792
 
 
13793
as_nl='
 
13794
'
 
13795
export as_nl
 
13796
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13797
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13798
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13799
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13800
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13801
# but without wasting forks for bash or zsh.
 
13802
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13803
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13804
  as_echo='print -r --'
 
13805
  as_echo_n='print -rn --'
 
13806
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13807
  as_echo='printf %s\n'
 
13808
  as_echo_n='printf %s'
 
13809
else
 
13810
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13811
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13812
    as_echo_n='/usr/ucb/echo -n'
 
13813
  else
 
13814
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13815
    as_echo_n_body='eval
 
13816
      arg=$1;
 
13817
      case $arg in #(
 
13818
      *"$as_nl"*)
 
13819
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13820
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13821
      esac;
 
13822
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13823
    '
 
13824
    export as_echo_n_body
 
13825
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13826
  fi
 
13827
  export as_echo_body
 
13828
  as_echo='sh -c $as_echo_body as_echo'
 
13829
fi
23413
13830
 
23414
13831
# The user is always right.
23415
13832
if test "${PATH_SEPARATOR+set}" != set; then
23416
 
  echo "#! /bin/sh" >conf$$.sh
23417
 
  echo  "exit 0"   >>conf$$.sh
23418
 
  chmod +x conf$$.sh
23419
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23420
 
    PATH_SEPARATOR=';'
23421
 
  else
23422
 
    PATH_SEPARATOR=:
23423
 
  fi
23424
 
  rm -f conf$$.sh
23425
 
fi
23426
 
 
23427
 
# Support unset when possible.
23428
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23429
 
  as_unset=unset
23430
 
else
23431
 
  as_unset=false
 
13833
  PATH_SEPARATOR=:
 
13834
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13835
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13836
      PATH_SEPARATOR=';'
 
13837
  }
23432
13838
fi
23433
13839
 
23434
13840
 
23437
13843
# there to prevent editors from complaining about space-tab.
23438
13844
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23439
13845
# splitting by setting IFS to empty value.)
23440
 
as_nl='
23441
 
'
23442
13846
IFS=" ""        $as_nl"
23443
13847
 
23444
13848
# Find who we are.  Look in the path if we contain no directory separator.
23445
 
case $0 in
 
13849
case $0 in #((
23446
13850
  *[\\/]* ) as_myself=$0 ;;
23447
13851
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448
13852
for as_dir in $PATH
23449
13853
do
23450
13854
  IFS=$as_save_IFS
23451
13855
  test -z "$as_dir" && as_dir=.
23452
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23453
 
done
 
13856
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13857
  done
23454
13858
IFS=$as_save_IFS
23455
13859
 
23456
13860
     ;;
23461
13865
  as_myself=$0
23462
13866
fi
23463
13867
if test ! -f "$as_myself"; then
23464
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465
 
  { (exit 1); exit 1; }
 
13868
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13869
  exit 1
23466
13870
fi
23467
13871
 
23468
 
# Work around bugs in pre-3.0 UWIN ksh.
23469
 
for as_var in ENV MAIL MAILPATH
23470
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13872
# Unset variables that we do not need and which cause bugs (e.g. in
 
13873
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13874
# suppresses any "Segmentation fault" message there.  '((' could
 
13875
# trigger a bug in pdksh 5.2.14.
 
13876
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13877
do eval test x\${$as_var+set} = xset \
 
13878
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23471
13879
done
23472
13880
PS1='$ '
23473
13881
PS2='> '
23474
13882
PS4='+ '
23475
13883
 
23476
13884
# NLS nuisances.
23477
 
for as_var in \
23478
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23479
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23480
 
  LC_TELEPHONE LC_TIME
23481
 
do
23482
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23483
 
    eval $as_var=C; export $as_var
23484
 
  else
23485
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13885
LC_ALL=C
 
13886
export LC_ALL
 
13887
LANGUAGE=C
 
13888
export LANGUAGE
 
13889
 
 
13890
# CDPATH.
 
13891
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13892
 
 
13893
 
 
13894
# as_fn_error ERROR [LINENO LOG_FD]
 
13895
# ---------------------------------
 
13896
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13897
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13898
# script with status $?, using 1 if that was 0.
 
13899
as_fn_error ()
 
13900
{
 
13901
  as_status=$?; test $as_status -eq 0 && as_status=1
 
13902
  if test "$3"; then
 
13903
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13904
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23486
13905
  fi
23487
 
done
23488
 
 
23489
 
# Required to use basename.
 
13906
  $as_echo "$as_me: error: $1" >&2
 
13907
  as_fn_exit $as_status
 
13908
} # as_fn_error
 
13909
 
 
13910
 
 
13911
# as_fn_set_status STATUS
 
13912
# -----------------------
 
13913
# Set $? to STATUS, without forking.
 
13914
as_fn_set_status ()
 
13915
{
 
13916
  return $1
 
13917
} # as_fn_set_status
 
13918
 
 
13919
# as_fn_exit STATUS
 
13920
# -----------------
 
13921
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13922
as_fn_exit ()
 
13923
{
 
13924
  set +e
 
13925
  as_fn_set_status $1
 
13926
  exit $1
 
13927
} # as_fn_exit
 
13928
 
 
13929
# as_fn_unset VAR
 
13930
# ---------------
 
13931
# Portably unset VAR.
 
13932
as_fn_unset ()
 
13933
{
 
13934
  { eval $1=; unset $1;}
 
13935
}
 
13936
as_unset=as_fn_unset
 
13937
# as_fn_append VAR VALUE
 
13938
# ----------------------
 
13939
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13940
# advantage of any shell optimizations that allow amortized linear growth over
 
13941
# repeated appends, instead of the typical quadratic growth present in naive
 
13942
# implementations.
 
13943
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13944
  eval 'as_fn_append ()
 
13945
  {
 
13946
    eval $1+=\$2
 
13947
  }'
 
13948
else
 
13949
  as_fn_append ()
 
13950
  {
 
13951
    eval $1=\$$1\$2
 
13952
  }
 
13953
fi # as_fn_append
 
13954
 
 
13955
# as_fn_arith ARG...
 
13956
# ------------------
 
13957
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13958
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13959
# must be portable across $(()) and expr.
 
13960
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13961
  eval 'as_fn_arith ()
 
13962
  {
 
13963
    as_val=$(( $* ))
 
13964
  }'
 
13965
else
 
13966
  as_fn_arith ()
 
13967
  {
 
13968
    as_val=`expr "$@" || test $? -eq 1`
 
13969
  }
 
13970
fi # as_fn_arith
 
13971
 
 
13972
 
23490
13973
if expr a : '\(a\)' >/dev/null 2>&1 &&
23491
13974
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23492
13975
  as_expr=expr
23500
13983
  as_basename=false
23501
13984
fi
23502
13985
 
 
13986
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13987
  as_dirname=dirname
 
13988
else
 
13989
  as_dirname=false
 
13990
fi
23503
13991
 
23504
 
# Name of the executable.
23505
13992
as_me=`$as_basename -- "$0" ||
23506
13993
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23507
13994
         X"$0" : 'X\(//\)$' \| \
23508
13995
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23509
 
echo X/"$0" |
 
13996
$as_echo X/"$0" |
23510
13997
    sed '/^.*\/\([^/][^/]*\)\/*$/{
23511
13998
            s//\1/
23512
13999
            q
23521
14008
          }
23522
14009
          s/.*/./; q'`
23523
14010
 
23524
 
# CDPATH.
23525
 
$as_unset CDPATH
23526
 
 
23527
 
 
23528
 
 
23529
 
  as_lineno_1=$LINENO
23530
 
  as_lineno_2=$LINENO
23531
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23532
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23533
 
 
23534
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23535
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
23536
 
  # line-number line after each line using $LINENO; the second 'sed'
23537
 
  # does the real work.  The second script uses 'N' to pair each
23538
 
  # line-number line with the line containing $LINENO, and appends
23539
 
  # trailing '-' during substitution so that $LINENO is not a special
23540
 
  # case at line end.
23541
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23542
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23543
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
23544
 
  sed -n '
23545
 
    p
23546
 
    /[$]LINENO/=
23547
 
  ' <$as_myself |
23548
 
    sed '
23549
 
      s/[$]LINENO.*/&-/
23550
 
      t lineno
23551
 
      b
23552
 
      :lineno
23553
 
      N
23554
 
      :loop
23555
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23556
 
      t loop
23557
 
      s/-\n.*//
23558
 
    ' >$as_me.lineno &&
23559
 
  chmod +x "$as_me.lineno" ||
23560
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23561
 
   { (exit 1); exit 1; }; }
23562
 
 
23563
 
  # Don't try to exec as it changes $[0], causing all sort of problems
23564
 
  # (the dirname of $[0] is not the place where we might find the
23565
 
  # original and so on.  Autoconf is especially sensitive to this).
23566
 
  . "./$as_me.lineno"
23567
 
  # Exit status is that of the last command.
23568
 
  exit
23569
 
}
23570
 
 
23571
 
 
23572
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23573
 
  as_dirname=dirname
23574
 
else
23575
 
  as_dirname=false
23576
 
fi
 
14011
# Avoid depending upon Character Ranges.
 
14012
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14013
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14014
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14015
as_cr_digits='0123456789'
 
14016
as_cr_alnum=$as_cr_Letters$as_cr_digits
23577
14017
 
23578
14018
ECHO_C= ECHO_N= ECHO_T=
23579
 
case `echo -n x` in
 
14019
case `echo -n x` in #(((((
23580
14020
-n*)
23581
 
  case `echo 'x\c'` in
 
14021
  case `echo 'xy\c'` in
23582
14022
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23583
 
  *)   ECHO_C='\c';;
 
14023
  xy)  ECHO_C='\c';;
 
14024
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14025
       ECHO_T=' ';;
23584
14026
  esac;;
23585
14027
*)
23586
14028
  ECHO_N='-n';;
23587
14029
esac
23588
14030
 
23589
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
23590
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23591
 
  as_expr=expr
23592
 
else
23593
 
  as_expr=false
23594
 
fi
23595
 
 
23596
14031
rm -f conf$$ conf$$.exe conf$$.file
23597
14032
if test -d conf$$.dir; then
23598
14033
  rm -f conf$$.dir/conf$$.file
23599
14034
else
23600
14035
  rm -f conf$$.dir
23601
 
  mkdir conf$$.dir
 
14036
  mkdir conf$$.dir 2>/dev/null
23602
14037
fi
23603
 
echo >conf$$.file
23604
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
23605
 
  as_ln_s='ln -s'
23606
 
  # ... but there are two gotchas:
23607
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23608
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23609
 
  # In both cases, we have to default to `cp -p'.
23610
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14038
if (echo >conf$$.file) 2>/dev/null; then
 
14039
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14040
    as_ln_s='ln -s'
 
14041
    # ... but there are two gotchas:
 
14042
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14043
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14044
    # In both cases, we have to default to `cp -p'.
 
14045
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14046
      as_ln_s='cp -p'
 
14047
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14048
    as_ln_s=ln
 
14049
  else
23611
14050
    as_ln_s='cp -p'
23612
 
elif ln conf$$.file conf$$ 2>/dev/null; then
23613
 
  as_ln_s=ln
 
14051
  fi
23614
14052
else
23615
14053
  as_ln_s='cp -p'
23616
14054
fi
23617
14055
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23618
14056
rmdir conf$$.dir 2>/dev/null
23619
14057
 
 
14058
 
 
14059
# as_fn_mkdir_p
 
14060
# -------------
 
14061
# Create "$as_dir" as a directory, including parents if necessary.
 
14062
as_fn_mkdir_p ()
 
14063
{
 
14064
 
 
14065
  case $as_dir in #(
 
14066
  -*) as_dir=./$as_dir;;
 
14067
  esac
 
14068
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14069
    as_dirs=
 
14070
    while :; do
 
14071
      case $as_dir in #(
 
14072
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14073
      *) as_qdir=$as_dir;;
 
14074
      esac
 
14075
      as_dirs="'$as_qdir' $as_dirs"
 
14076
      as_dir=`$as_dirname -- "$as_dir" ||
 
14077
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14078
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14079
         X"$as_dir" : 'X\(//\)$' \| \
 
14080
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14081
$as_echo X"$as_dir" |
 
14082
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14083
            s//\1/
 
14084
            q
 
14085
          }
 
14086
          /^X\(\/\/\)[^/].*/{
 
14087
            s//\1/
 
14088
            q
 
14089
          }
 
14090
          /^X\(\/\/\)$/{
 
14091
            s//\1/
 
14092
            q
 
14093
          }
 
14094
          /^X\(\/\).*/{
 
14095
            s//\1/
 
14096
            q
 
14097
          }
 
14098
          s/.*/./; q'`
 
14099
      test -d "$as_dir" && break
 
14100
    done
 
14101
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14102
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
14103
 
 
14104
 
 
14105
} # as_fn_mkdir_p
23620
14106
if mkdir -p . 2>/dev/null; then
23621
 
  as_mkdir_p=:
 
14107
  as_mkdir_p='mkdir -p "$as_dir"'
23622
14108
else
23623
14109
  test -d ./-p && rmdir ./-p
23624
14110
  as_mkdir_p=false
23635
14121
  as_test_x='
23636
14122
    eval sh -c '\''
23637
14123
      if test -d "$1"; then
23638
 
        test -d "$1/.";
 
14124
        test -d "$1/.";
23639
14125
      else
23640
 
        case $1 in
23641
 
        -*)set "./$1";;
 
14126
        case $1 in #(
 
14127
        -*)set "./$1";;
23642
14128
        esac;
23643
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
14129
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23644
14130
        ???[sx]*):;;*)false;;esac;fi
23645
14131
    '\'' sh
23646
14132
  '
23655
14141
 
23656
14142
 
23657
14143
exec 6>&1
 
14144
## ----------------------------------- ##
 
14145
## Main body of $CONFIG_STATUS script. ##
 
14146
## ----------------------------------- ##
 
14147
_ASEOF
 
14148
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23658
14149
 
23659
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
14150
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14151
# Save the log message, to keep $0 and so on meaningful, and to
23660
14152
# report actual input values of CONFIG_FILES etc. instead of their
23661
14153
# values after options handling.
23662
14154
ac_log="
23663
 
This file was extended by libgpg-error $as_me 1.6, which was
23664
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
14155
This file was extended by libgpg-error $as_me 1.10, which was
 
14156
generated by GNU Autoconf 2.64.  Invocation command line was
23665
14157
 
23666
14158
  CONFIG_FILES    = $CONFIG_FILES
23667
14159
  CONFIG_HEADERS  = $CONFIG_HEADERS
23674
14166
 
23675
14167
_ACEOF
23676
14168
 
23677
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14169
case $ac_config_files in *"
 
14170
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14171
esac
 
14172
 
 
14173
case $ac_config_headers in *"
 
14174
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14175
esac
 
14176
 
 
14177
 
 
14178
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23678
14179
# Files that config.status was made for.
23679
14180
config_files="$ac_config_files"
23680
14181
config_headers="$ac_config_headers"
23682
14183
 
23683
14184
_ACEOF
23684
14185
 
23685
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14186
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23686
14187
ac_cs_usage="\
23687
 
\`$as_me' instantiates files from templates according to the
23688
 
current configuration.
 
14188
\`$as_me' instantiates files and other configuration actions
 
14189
from templates according to the current configuration.  Unless the files
 
14190
and actions are specified as TAGs, all are instantiated by default.
23689
14191
 
23690
 
Usage: $0 [OPTIONS] [FILE]...
 
14192
Usage: $0 [OPTION]... [TAG]...
23691
14193
 
23692
14194
  -h, --help       print this help, then exit
23693
14195
  -V, --version    print version number and configuration settings, then exit
23694
 
  -q, --quiet      do not print progress messages
 
14196
  -q, --quiet, --silent
 
14197
                   do not print progress messages
23695
14198
  -d, --debug      don't remove temporary files
23696
14199
      --recheck    update $as_me by reconfiguring in the same conditions
23697
 
  --file=FILE[:TEMPLATE]
23698
 
                   instantiate the configuration file FILE
23699
 
  --header=FILE[:TEMPLATE]
23700
 
                   instantiate the configuration header FILE
 
14200
      --file=FILE[:TEMPLATE]
 
14201
                   instantiate the configuration file FILE
 
14202
      --header=FILE[:TEMPLATE]
 
14203
                   instantiate the configuration header FILE
23701
14204
 
23702
14205
Configuration files:
23703
14206
$config_files
23708
14211
Configuration commands:
23709
14212
$config_commands
23710
14213
 
23711
 
Report bugs to <bug-autoconf@gnu.org>."
 
14214
Report bugs to <bug-gnupg@gnupg.org>."
23712
14215
 
23713
14216
_ACEOF
23714
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14217
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23715
14218
ac_cs_version="\\
23716
 
libgpg-error config.status 1.6
23717
 
configured by $0, generated by GNU Autoconf 2.61,
23718
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
14219
libgpg-error config.status 1.10
 
14220
configured by $0, generated by GNU Autoconf 2.64,
 
14221
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23719
14222
 
23720
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
14223
Copyright (C) 2009 Free Software Foundation, Inc.
23721
14224
This config.status script is free software; the Free Software Foundation
23722
14225
gives unlimited permission to copy, distribute and modify it."
23723
14226
 
23725
14228
srcdir='$srcdir'
23726
14229
INSTALL='$INSTALL'
23727
14230
MKDIR_P='$MKDIR_P'
 
14231
AWK='$AWK'
 
14232
test -n "\$AWK" || AWK=awk
23728
14233
_ACEOF
23729
14234
 
23730
 
cat >>$CONFIG_STATUS <<\_ACEOF
23731
 
# If no file are specified by the user, then we need to provide default
23732
 
# value.  By we need to know if files were specified by the user.
 
14235
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14236
# The default lists apply if the user does not specify any file.
23733
14237
ac_need_defaults=:
23734
14238
while test $# != 0
23735
14239
do
23751
14255
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23752
14256
    ac_cs_recheck=: ;;
23753
14257
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23754
 
    echo "$ac_cs_version"; exit ;;
 
14258
    $as_echo "$ac_cs_version"; exit ;;
23755
14259
  --debug | --debu | --deb | --de | --d | -d )
23756
14260
    debug=: ;;
23757
14261
  --file | --fil | --fi | --f )
23758
14262
    $ac_shift
23759
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
14263
    case $ac_optarg in
 
14264
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14265
    esac
 
14266
    as_fn_append CONFIG_FILES " '$ac_optarg'"
23760
14267
    ac_need_defaults=false;;
23761
14268
  --header | --heade | --head | --hea )
23762
14269
    $ac_shift
23763
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
14270
    case $ac_optarg in
 
14271
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14272
    esac
 
14273
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23764
14274
    ac_need_defaults=false;;
23765
14275
  --he | --h)
23766
14276
    # Conflict between --help and --header
23767
 
    { echo "$as_me: error: ambiguous option: $1
23768
 
Try \`$0 --help' for more information." >&2
23769
 
   { (exit 1); exit 1; }; };;
 
14277
    as_fn_error "ambiguous option: \`$1'
 
14278
Try \`$0 --help' for more information.";;
23770
14279
  --help | --hel | -h )
23771
 
    echo "$ac_cs_usage"; exit ;;
 
14280
    $as_echo "$ac_cs_usage"; exit ;;
23772
14281
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23773
14282
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23774
14283
    ac_cs_silent=: ;;
23775
14284
 
23776
14285
  # This is an error.
23777
 
  -*) { echo "$as_me: error: unrecognized option: $1
23778
 
Try \`$0 --help' for more information." >&2
23779
 
   { (exit 1); exit 1; }; } ;;
 
14286
  -*) as_fn_error "unrecognized option: \`$1'
 
14287
Try \`$0 --help' for more information." ;;
23780
14288
 
23781
 
  *) ac_config_targets="$ac_config_targets $1"
 
14289
  *) as_fn_append ac_config_targets " $1"
23782
14290
     ac_need_defaults=false ;;
23783
14291
 
23784
14292
  esac
23793
14301
fi
23794
14302
 
23795
14303
_ACEOF
23796
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14304
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23797
14305
if \$ac_cs_recheck; then
23798
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23799
 
  CONFIG_SHELL=$SHELL
 
14306
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14307
  shift
 
14308
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14309
  CONFIG_SHELL='$SHELL'
23800
14310
  export CONFIG_SHELL
23801
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14311
  exec "\$@"
23802
14312
fi
23803
14313
 
23804
14314
_ACEOF
23805
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14315
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23806
14316
exec 5>>config.log
23807
14317
{
23808
14318
  echo
23809
14319
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23810
14320
## Running $as_me. ##
23811
14321
_ASBOX
23812
 
  echo "$ac_log"
 
14322
  $as_echo "$ac_log"
23813
14323
} >&5
23814
14324
 
23815
14325
_ACEOF
23816
 
cat >>$CONFIG_STATUS <<_ACEOF
 
14326
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23817
14327
#
23818
14328
# INIT-COMMANDS
23819
14329
#
23820
14330
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14331
 
 
14332
 
 
14333
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14334
# if CDPATH is set.
 
14335
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14336
 
 
14337
sed_quote_subst='$sed_quote_subst'
 
14338
double_quote_subst='$double_quote_subst'
 
14339
delay_variable_subst='$delay_variable_subst'
 
14340
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14341
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
14342
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
14343
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14344
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
14345
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14346
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
14347
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
14348
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
14349
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14350
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
14351
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14352
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14353
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
14354
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14355
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
14356
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
14357
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14358
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14359
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14360
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
14361
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
14362
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
14363
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
14364
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
14365
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
14366
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
14367
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
14368
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
14369
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14370
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14371
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
14372
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
14373
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
14374
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14375
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
14376
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
14377
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14378
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14379
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14380
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
14381
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14382
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
14383
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
14384
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
14385
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
14386
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
14387
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14388
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
14389
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
14390
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
14391
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
14392
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14393
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
14394
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
14395
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14396
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
14397
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
14398
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
14399
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
14400
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
14401
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14402
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
14403
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
14404
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14405
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14406
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
14407
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
14408
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14409
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14410
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
14411
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14412
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14413
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14414
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14415
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14416
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14417
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14418
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14419
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14420
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14421
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14422
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
14423
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
14424
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
14425
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
14426
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14427
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
14428
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14429
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
14430
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
14431
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
14432
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14433
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14434
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14435
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14436
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14437
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
14438
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14439
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14440
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
14441
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14442
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14443
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14444
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14445
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14446
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14447
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14448
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14449
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14450
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
14451
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
14452
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14453
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14454
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
14455
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
14456
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
14457
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14458
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14459
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14460
LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14461
old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14462
compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14463
GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14464
lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14465
lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14466
lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14467
lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14468
lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14469
archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14470
enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14471
export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14472
whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14473
compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14474
old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14475
old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14476
archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14477
archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14478
module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14479
module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14480
with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14481
allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14482
no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14483
hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14484
hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14485
hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14486
hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14487
hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14488
hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14489
hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14490
hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14491
inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14492
link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14493
fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14494
always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14495
export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14496
exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14497
include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14498
prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14499
file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14500
hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
 
14501
 
 
14502
LTCC='$LTCC'
 
14503
LTCFLAGS='$LTCFLAGS'
 
14504
compiler='$compiler_DEFAULT'
 
14505
 
 
14506
# Quote evaled strings.
 
14507
for var in SED \
 
14508
GREP \
 
14509
EGREP \
 
14510
FGREP \
 
14511
LD \
 
14512
NM \
 
14513
LN_S \
 
14514
lt_SP2NL \
 
14515
lt_NL2SP \
 
14516
reload_flag \
 
14517
deplibs_check_method \
 
14518
file_magic_cmd \
 
14519
AR \
 
14520
AR_FLAGS \
 
14521
STRIP \
 
14522
RANLIB \
 
14523
CC \
 
14524
CFLAGS \
 
14525
compiler \
 
14526
lt_cv_sys_global_symbol_pipe \
 
14527
lt_cv_sys_global_symbol_to_cdecl \
 
14528
lt_cv_sys_global_symbol_to_c_name_address \
 
14529
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14530
SHELL \
 
14531
ECHO \
 
14532
lt_prog_compiler_no_builtin_flag \
 
14533
lt_prog_compiler_wl \
 
14534
lt_prog_compiler_pic \
 
14535
lt_prog_compiler_static \
 
14536
lt_cv_prog_compiler_c_o \
 
14537
need_locks \
 
14538
DSYMUTIL \
 
14539
NMEDIT \
 
14540
LIPO \
 
14541
OTOOL \
 
14542
OTOOL64 \
 
14543
shrext_cmds \
 
14544
export_dynamic_flag_spec \
 
14545
whole_archive_flag_spec \
 
14546
compiler_needs_object \
 
14547
with_gnu_ld \
 
14548
allow_undefined_flag \
 
14549
no_undefined_flag \
 
14550
hardcode_libdir_flag_spec \
 
14551
hardcode_libdir_flag_spec_ld \
 
14552
hardcode_libdir_separator \
 
14553
fix_srcfile_path \
 
14554
exclude_expsyms \
 
14555
include_expsyms \
 
14556
file_list_spec \
 
14557
variables_saved_for_relink \
 
14558
libname_spec \
 
14559
library_names_spec \
 
14560
soname_spec \
 
14561
finish_eval \
 
14562
old_striplib \
 
14563
striplib \
 
14564
LD_RC \
 
14565
compiler_RC \
 
14566
lt_prog_compiler_no_builtin_flag_RC \
 
14567
lt_prog_compiler_wl_RC \
 
14568
lt_prog_compiler_pic_RC \
 
14569
lt_prog_compiler_static_RC \
 
14570
lt_cv_prog_compiler_c_o_RC \
 
14571
export_dynamic_flag_spec_RC \
 
14572
whole_archive_flag_spec_RC \
 
14573
compiler_needs_object_RC \
 
14574
with_gnu_ld_RC \
 
14575
allow_undefined_flag_RC \
 
14576
no_undefined_flag_RC \
 
14577
hardcode_libdir_flag_spec_RC \
 
14578
hardcode_libdir_flag_spec_ld_RC \
 
14579
hardcode_libdir_separator_RC \
 
14580
fix_srcfile_path_RC \
 
14581
exclude_expsyms_RC \
 
14582
include_expsyms_RC \
 
14583
file_list_spec_RC; do
 
14584
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14585
    *[\\\\\\\`\\"\\\$]*)
 
14586
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14587
      ;;
 
14588
    *)
 
14589
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14590
      ;;
 
14591
    esac
 
14592
done
 
14593
 
 
14594
# Double-quote double-evaled strings.
 
14595
for var in reload_cmds \
 
14596
old_postinstall_cmds \
 
14597
old_postuninstall_cmds \
 
14598
old_archive_cmds \
 
14599
extract_expsyms_cmds \
 
14600
old_archive_from_new_cmds \
 
14601
old_archive_from_expsyms_cmds \
 
14602
archive_cmds \
 
14603
archive_expsym_cmds \
 
14604
module_cmds \
 
14605
module_expsym_cmds \
 
14606
export_symbols_cmds \
 
14607
prelink_cmds \
 
14608
postinstall_cmds \
 
14609
postuninstall_cmds \
 
14610
finish_cmds \
 
14611
sys_lib_search_path_spec \
 
14612
sys_lib_dlsearch_path_spec \
 
14613
old_archive_cmds_RC \
 
14614
old_archive_from_new_cmds_RC \
 
14615
old_archive_from_expsyms_cmds_RC \
 
14616
archive_cmds_RC \
 
14617
archive_expsym_cmds_RC \
 
14618
module_cmds_RC \
 
14619
module_expsym_cmds_RC \
 
14620
export_symbols_cmds_RC \
 
14621
prelink_cmds_RC; do
 
14622
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14623
    *[\\\\\\\`\\"\\\$]*)
 
14624
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14625
      ;;
 
14626
    *)
 
14627
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14628
      ;;
 
14629
    esac
 
14630
done
 
14631
 
 
14632
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14633
case \$lt_ECHO in
 
14634
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14635
  ;;
 
14636
esac
 
14637
 
 
14638
ac_aux_dir='$ac_aux_dir'
 
14639
xsi_shell='$xsi_shell'
 
14640
lt_shell_append='$lt_shell_append'
 
14641
 
 
14642
# See if we are running on zsh, and set the options which allow our
 
14643
# commands through without removal of \ escapes INIT.
 
14644
if test -n "\${ZSH_VERSION+set}" ; then
 
14645
   setopt NO_GLOB_SUBST
 
14646
fi
 
14647
 
 
14648
 
 
14649
    PACKAGE='$PACKAGE'
 
14650
    VERSION='$VERSION'
 
14651
    TIMESTAMP='$TIMESTAMP'
 
14652
    RM='$RM'
 
14653
    ofile='$ofile'
 
14654
 
 
14655
 
 
14656
 
 
14657
 
 
14658
 
23821
14659
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23822
14660
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23823
14661
    # from automake < 1.5.
23828
14666
 
23829
14667
_ACEOF
23830
14668
 
23831
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23832
14670
 
23833
14671
# Handling of arguments.
23834
14672
for ac_config_target in $ac_config_targets
23836
14674
  case $ac_config_target in
23837
14675
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23838
14676
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14677
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23839
14678
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23840
14679
    "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
23841
14680
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23848
14687
    "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
23849
14688
    "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
23850
14689
 
23851
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23852
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23853
 
   { (exit 1); exit 1; }; };;
 
14690
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23854
14691
  esac
23855
14692
done
23856
14693
 
23877
14714
  trap 'exit_status=$?
23878
14715
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23879
14716
' 0
23880
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
14717
  trap 'as_fn_exit 1' 1 2 13 15
23881
14718
}
23882
14719
# Create a (secure) tmp directory for tmp files.
23883
14720
 
23888
14725
{
23889
14726
  tmp=./conf$$-$RANDOM
23890
14727
  (umask 077 && mkdir "$tmp")
23891
 
} ||
23892
 
{
23893
 
   echo "$me: cannot create a temporary directory in ." >&2
23894
 
   { (exit 1); exit 1; }
23895
 
}
23896
 
 
23897
 
#
23898
 
# Set up the sed scripts for CONFIG_FILES section.
23899
 
#
23900
 
 
23901
 
# No need to generate the scripts if there are no CONFIG_FILES.
23902
 
# This happens for instance when ./config.status config.h
 
14728
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
14729
 
 
14730
# Set up the scripts for CONFIG_FILES section.
 
14731
# No need to generate them if there are no CONFIG_FILES.
 
14732
# This happens for instance with `./config.status config.h'.
23903
14733
if test -n "$CONFIG_FILES"; then
23904
14734
 
23905
 
_ACEOF
23906
 
 
23907
 
 
23908
 
 
23909
 
ac_delim='%!_!# '
23910
 
for ac_last_try in false false false false false :; do
23911
 
  cat >conf$$subs.sed <<_ACEOF
23912
 
SHELL!$SHELL$ac_delim
23913
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23914
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23915
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23916
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23917
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23918
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23919
 
exec_prefix!$exec_prefix$ac_delim
23920
 
prefix!$prefix$ac_delim
23921
 
program_transform_name!$program_transform_name$ac_delim
23922
 
bindir!$bindir$ac_delim
23923
 
sbindir!$sbindir$ac_delim
23924
 
libexecdir!$libexecdir$ac_delim
23925
 
datarootdir!$datarootdir$ac_delim
23926
 
datadir!$datadir$ac_delim
23927
 
sysconfdir!$sysconfdir$ac_delim
23928
 
sharedstatedir!$sharedstatedir$ac_delim
23929
 
localstatedir!$localstatedir$ac_delim
23930
 
includedir!$includedir$ac_delim
23931
 
oldincludedir!$oldincludedir$ac_delim
23932
 
docdir!$docdir$ac_delim
23933
 
infodir!$infodir$ac_delim
23934
 
htmldir!$htmldir$ac_delim
23935
 
dvidir!$dvidir$ac_delim
23936
 
pdfdir!$pdfdir$ac_delim
23937
 
psdir!$psdir$ac_delim
23938
 
libdir!$libdir$ac_delim
23939
 
localedir!$localedir$ac_delim
23940
 
mandir!$mandir$ac_delim
23941
 
DEFS!$DEFS$ac_delim
23942
 
ECHO_C!$ECHO_C$ac_delim
23943
 
ECHO_N!$ECHO_N$ac_delim
23944
 
ECHO_T!$ECHO_T$ac_delim
23945
 
LIBS!$LIBS$ac_delim
23946
 
build_alias!$build_alias$ac_delim
23947
 
host_alias!$host_alias$ac_delim
23948
 
target_alias!$target_alias$ac_delim
23949
 
LIBGPG_ERROR_LT_CURRENT!$LIBGPG_ERROR_LT_CURRENT$ac_delim
23950
 
LIBGPG_ERROR_LT_AGE!$LIBGPG_ERROR_LT_AGE$ac_delim
23951
 
LIBGPG_ERROR_LT_REVISION!$LIBGPG_ERROR_LT_REVISION$ac_delim
23952
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23953
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23954
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
23955
 
am__isrc!$am__isrc$ac_delim
23956
 
CYGPATH_W!$CYGPATH_W$ac_delim
23957
 
PACKAGE!$PACKAGE$ac_delim
23958
 
VERSION!$VERSION$ac_delim
23959
 
ACLOCAL!$ACLOCAL$ac_delim
23960
 
AUTOCONF!$AUTOCONF$ac_delim
23961
 
AUTOMAKE!$AUTOMAKE$ac_delim
23962
 
AUTOHEADER!$AUTOHEADER$ac_delim
23963
 
MAKEINFO!$MAKEINFO$ac_delim
23964
 
install_sh!$install_sh$ac_delim
23965
 
STRIP!$STRIP$ac_delim
23966
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23967
 
mkdir_p!$mkdir_p$ac_delim
23968
 
AWK!$AWK$ac_delim
23969
 
SET_MAKE!$SET_MAKE$ac_delim
23970
 
am__leading_dot!$am__leading_dot$ac_delim
23971
 
AMTAR!$AMTAR$ac_delim
23972
 
am__tar!$am__tar$ac_delim
23973
 
am__untar!$am__untar$ac_delim
23974
 
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23975
 
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23976
 
MAINT!$MAINT$ac_delim
23977
 
build!$build$ac_delim
23978
 
build_cpu!$build_cpu$ac_delim
23979
 
build_vendor!$build_vendor$ac_delim
23980
 
build_os!$build_os$ac_delim
23981
 
host!$host$ac_delim
23982
 
host_cpu!$host_cpu$ac_delim
23983
 
host_vendor!$host_vendor$ac_delim
23984
 
host_os!$host_os$ac_delim
23985
 
CC!$CC$ac_delim
23986
 
CFLAGS!$CFLAGS$ac_delim
23987
 
LDFLAGS!$LDFLAGS$ac_delim
23988
 
CPPFLAGS!$CPPFLAGS$ac_delim
23989
 
ac_ct_CC!$ac_ct_CC$ac_delim
23990
 
EXEEXT!$EXEEXT$ac_delim
23991
 
OBJEXT!$OBJEXT$ac_delim
23992
 
DEPDIR!$DEPDIR$ac_delim
23993
 
am__include!$am__include$ac_delim
23994
 
am__quote!$am__quote$ac_delim
23995
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23996
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23997
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23998
 
CCDEPMODE!$CCDEPMODE$ac_delim
23999
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24000
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24001
 
CPP!$CPP$ac_delim
24002
 
AR!$AR$ac_delim
24003
 
RC!$RC$ac_delim
24004
 
GREP!$GREP$ac_delim
24005
 
EGREP!$EGREP$ac_delim
24006
 
LN_S!$LN_S$ac_delim
24007
 
ECHO!$ECHO$ac_delim
24008
 
RANLIB!$RANLIB$ac_delim
24009
 
_ACEOF
24010
 
 
24011
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24012
 
    break
24013
 
  elif $ac_last_try; then
24014
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24015
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24016
 
   { (exit 1); exit 1; }; }
24017
 
  else
24018
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24019
 
  fi
24020
 
done
24021
 
 
24022
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24023
 
if test -n "$ac_eof"; then
24024
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24025
 
  ac_eof=`expr $ac_eof + 1`
24026
 
fi
24027
 
 
24028
 
cat >>$CONFIG_STATUS <<_ACEOF
24029
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24030
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24031
 
_ACEOF
24032
 
sed '
24033
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24034
 
s/^/s,@/; s/!/@,|#_!!_#|/
24035
 
:n
24036
 
t n
24037
 
s/'"$ac_delim"'$/,g/; t
24038
 
s/$/\\/; p
24039
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24040
 
' >>$CONFIG_STATUS <conf$$subs.sed
24041
 
rm -f conf$$subs.sed
24042
 
cat >>$CONFIG_STATUS <<_ACEOF
24043
 
CEOF$ac_eof
24044
 
_ACEOF
24045
 
 
24046
 
 
24047
 
ac_delim='%!_!# '
24048
 
for ac_last_try in false false false false false :; do
24049
 
  cat >conf$$subs.sed <<_ACEOF
24050
 
DLLTOOL!$DLLTOOL$ac_delim
24051
 
AS!$AS$ac_delim
24052
 
OBJDUMP!$OBJDUMP$ac_delim
24053
 
CXX!$CXX$ac_delim
24054
 
CXXFLAGS!$CXXFLAGS$ac_delim
24055
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
24056
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
24057
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24058
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24059
 
CXXCPP!$CXXCPP$ac_delim
24060
 
F77!$F77$ac_delim
24061
 
FFLAGS!$FFLAGS$ac_delim
24062
 
ac_ct_F77!$ac_ct_F77$ac_delim
24063
 
LIBTOOL!$LIBTOOL$ac_delim
24064
 
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
24065
 
USE_NLS!$USE_NLS$ac_delim
24066
 
MSGFMT!$MSGFMT$ac_delim
24067
 
GMSGFMT!$GMSGFMT$ac_delim
24068
 
MSGFMT_015!$MSGFMT_015$ac_delim
24069
 
GMSGFMT_015!$GMSGFMT_015$ac_delim
24070
 
XGETTEXT!$XGETTEXT$ac_delim
24071
 
XGETTEXT_015!$XGETTEXT_015$ac_delim
24072
 
MSGMERGE!$MSGMERGE$ac_delim
24073
 
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
24074
 
LIBICONV!$LIBICONV$ac_delim
24075
 
LTLIBICONV!$LTLIBICONV$ac_delim
24076
 
INTLLIBS!$INTLLIBS$ac_delim
24077
 
LIBINTL!$LIBINTL$ac_delim
24078
 
LTLIBINTL!$LTLIBINTL$ac_delim
24079
 
POSUB!$POSUB$ac_delim
24080
 
GPG_ERROR_CONFIG_LIBS!$GPG_ERROR_CONFIG_LIBS$ac_delim
24081
 
GPG_ERROR_CONFIG_CFLAGS!$GPG_ERROR_CONFIG_CFLAGS$ac_delim
24082
 
BUILD_TIMESTAMP!$BUILD_TIMESTAMP$ac_delim
24083
 
BUILD_FILEVERSION!$BUILD_FILEVERSION$ac_delim
24084
 
HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
24085
 
HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
24086
 
LANGUAGES_SOME_TRUE!$LANGUAGES_SOME_TRUE$ac_delim
24087
 
LANGUAGES_SOME_FALSE!$LANGUAGES_SOME_FALSE$ac_delim
24088
 
LIBOBJS!$LIBOBJS$ac_delim
24089
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
24090
 
_ACEOF
24091
 
 
24092
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
24093
 
    break
24094
 
  elif $ac_last_try; then
24095
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24096
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24097
 
   { (exit 1); exit 1; }; }
24098
 
  else
24099
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24100
 
  fi
24101
 
done
24102
 
 
24103
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24104
 
if test -n "$ac_eof"; then
24105
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24106
 
  ac_eof=`expr $ac_eof + 1`
24107
 
fi
24108
 
 
24109
 
cat >>$CONFIG_STATUS <<_ACEOF
24110
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24111
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24112
 
_ACEOF
24113
 
sed '
24114
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24115
 
s/^/s,@/; s/!/@,|#_!!_#|/
24116
 
:n
24117
 
t n
24118
 
s/'"$ac_delim"'$/,g/; t
24119
 
s/$/\\/; p
24120
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24121
 
' >>$CONFIG_STATUS <conf$$subs.sed
24122
 
rm -f conf$$subs.sed
24123
 
cat >>$CONFIG_STATUS <<_ACEOF
24124
 
:end
24125
 
s/|#_!!_#|//g
24126
 
CEOF$ac_eof
24127
 
_ACEOF
24128
 
 
 
14735
 
 
14736
ac_cr=`echo X | tr X '\015'`
 
14737
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14738
# But we know of no other shell where ac_cr would be empty at this
 
14739
# point, so we can use a bashism as a fallback.
 
14740
if test "x$ac_cr" = x; then
 
14741
  eval ac_cr=\$\'\\r\'
 
14742
fi
 
14743
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14744
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14745
  ac_cs_awk_cr='\r'
 
14746
else
 
14747
  ac_cs_awk_cr=$ac_cr
 
14748
fi
 
14749
 
 
14750
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
14751
_ACEOF
 
14752
 
 
14753
 
 
14754
{
 
14755
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14756
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14757
  echo "_ACEOF"
 
14758
} >conf$$subs.sh ||
 
14759
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14760
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
14761
ac_delim='%!_!# '
 
14762
for ac_last_try in false false false false false :; do
 
14763
  . ./conf$$subs.sh ||
 
14764
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14765
 
 
14766
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14767
  if test $ac_delim_n = $ac_delim_num; then
 
14768
    break
 
14769
  elif $ac_last_try; then
 
14770
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
14771
  else
 
14772
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14773
  fi
 
14774
done
 
14775
rm -f conf$$subs.sh
 
14776
 
 
14777
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14778
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
14779
_ACEOF
 
14780
sed -n '
 
14781
h
 
14782
s/^/S["/; s/!.*/"]=/
 
14783
p
 
14784
g
 
14785
s/^[^!]*!//
 
14786
:repl
 
14787
t repl
 
14788
s/'"$ac_delim"'$//
 
14789
t delim
 
14790
:nl
 
14791
h
 
14792
s/\(.\{148\}\).*/\1/
 
14793
t more1
 
14794
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14795
p
 
14796
n
 
14797
b repl
 
14798
:more1
 
14799
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14800
p
 
14801
g
 
14802
s/.\{148\}//
 
14803
t nl
 
14804
:delim
 
14805
h
 
14806
s/\(.\{148\}\).*/\1/
 
14807
t more2
 
14808
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14809
p
 
14810
b
 
14811
:more2
 
14812
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14813
p
 
14814
g
 
14815
s/.\{148\}//
 
14816
t delim
 
14817
' <conf$$subs.awk | sed '
 
14818
/^[^""]/{
 
14819
  N
 
14820
  s/\n//
 
14821
}
 
14822
' >>$CONFIG_STATUS || ac_write_fail=1
 
14823
rm -f conf$$subs.awk
 
14824
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14825
_ACAWK
 
14826
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
14827
  for (key in S) S_is_set[key] = 1
 
14828
  FS = ""
 
14829
 
 
14830
}
 
14831
{
 
14832
  line = $ 0
 
14833
  nfields = split(line, field, "@")
 
14834
  substed = 0
 
14835
  len = length(field[1])
 
14836
  for (i = 2; i < nfields; i++) {
 
14837
    key = field[i]
 
14838
    keylen = length(key)
 
14839
    if (S_is_set[key]) {
 
14840
      value = S[key]
 
14841
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14842
      len += length(value) + length(field[++i])
 
14843
      substed = 1
 
14844
    } else
 
14845
      len += 1 + keylen
 
14846
  }
 
14847
 
 
14848
  print line
 
14849
}
 
14850
 
 
14851
_ACAWK
 
14852
_ACEOF
 
14853
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14854
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14855
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14856
else
 
14857
  cat
 
14858
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
14859
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
14860
_ACEOF
24129
14861
 
24130
14862
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24131
14863
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24142
14874
}'
24143
14875
fi
24144
14876
 
24145
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
14877
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24146
14878
fi # test -n "$CONFIG_FILES"
24147
14879
 
24148
 
 
24149
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
14880
# Set up the scripts for CONFIG_HEADERS section.
 
14881
# No need to generate them if there are no CONFIG_HEADERS.
 
14882
# This happens for instance with `./config.status Makefile'.
 
14883
if test -n "$CONFIG_HEADERS"; then
 
14884
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
14885
BEGIN {
 
14886
_ACEOF
 
14887
 
 
14888
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14889
# here-document in config.status, that substitutes the proper values into
 
14890
# config.h.in to produce config.h.
 
14891
 
 
14892
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14893
# handling of long lines.
 
14894
ac_delim='%!_!# '
 
14895
for ac_last_try in false false :; do
 
14896
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
14897
  if test -z "$ac_t"; then
 
14898
    break
 
14899
  elif $ac_last_try; then
 
14900
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14901
  else
 
14902
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14903
  fi
 
14904
done
 
14905
 
 
14906
# For the awk script, D is an array of macro values keyed by name,
 
14907
# likewise P contains macro parameters if any.  Preserve backslash
 
14908
# newline sequences.
 
14909
 
 
14910
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14911
sed -n '
 
14912
s/.\{148\}/&'"$ac_delim"'/g
 
14913
t rset
 
14914
:rset
 
14915
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14916
t def
 
14917
d
 
14918
:def
 
14919
s/\\$//
 
14920
t bsnl
 
14921
s/["\\]/\\&/g
 
14922
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14923
D["\1"]=" \3"/p
 
14924
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14925
d
 
14926
:bsnl
 
14927
s/["\\]/\\&/g
 
14928
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14929
D["\1"]=" \3\\\\\\n"\\/p
 
14930
t cont
 
14931
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14932
t cont
 
14933
d
 
14934
:cont
 
14935
n
 
14936
s/.\{148\}/&'"$ac_delim"'/g
 
14937
t clear
 
14938
:clear
 
14939
s/\\$//
 
14940
t bsnlc
 
14941
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14942
d
 
14943
:bsnlc
 
14944
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14945
b cont
 
14946
' <confdefs.h | sed '
 
14947
s/'"$ac_delim"'/"\\\
 
14948
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14949
 
 
14950
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14951
  for (key in D) D_is_set[key] = 1
 
14952
  FS = ""
 
14953
}
 
14954
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14955
  line = \$ 0
 
14956
  split(line, arg, " ")
 
14957
  if (arg[1] == "#") {
 
14958
    defundef = arg[2]
 
14959
    mac1 = arg[3]
 
14960
  } else {
 
14961
    defundef = substr(arg[1], 2)
 
14962
    mac1 = arg[2]
 
14963
  }
 
14964
  split(mac1, mac2, "(") #)
 
14965
  macro = mac2[1]
 
14966
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14967
  if (D_is_set[macro]) {
 
14968
    # Preserve the white space surrounding the "#".
 
14969
    print prefix "define", macro P[macro] D[macro]
 
14970
    next
 
14971
  } else {
 
14972
    # Replace #undef with comments.  This is necessary, for example,
 
14973
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14974
    # on some systems where configure will not decide to define it.
 
14975
    if (defundef == "undef") {
 
14976
      print "/*", prefix defundef, macro, "*/"
 
14977
      next
 
14978
    }
 
14979
  }
 
14980
}
 
14981
{ print }
 
14982
_ACAWK
 
14983
_ACEOF
 
14984
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14985
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
14986
fi # test -n "$CONFIG_HEADERS"
 
14987
 
 
14988
 
 
14989
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14990
shift
 
14991
for ac_tag
24150
14992
do
24151
14993
  case $ac_tag in
24152
14994
  :[FHLC]) ac_mode=$ac_tag; continue;;
24153
14995
  esac
24154
14996
  case $ac_mode$ac_tag in
24155
14997
  :[FHL]*:*);;
24156
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24157
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24158
 
   { (exit 1); exit 1; }; };;
 
14998
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24159
14999
  :[FH]-) ac_tag=-:-;;
24160
15000
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24161
15001
  esac
24183
15023
           [\\/$]*) false;;
24184
15024
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24185
15025
           esac ||
24186
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24187
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24188
 
   { (exit 1); exit 1; }; };;
 
15026
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24189
15027
      esac
24190
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
15028
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15029
      as_fn_append ac_file_inputs " '$ac_f'"
24191
15030
    done
24192
15031
 
24193
15032
    # Let's still pretend it is `configure' which instantiates (i.e., don't
24194
15033
    # use $as_me), people would be surprised to read:
24195
15034
    #    /* config.h.  Generated by config.status.  */
24196
 
    configure_input="Generated from "`IFS=:
24197
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
15035
    configure_input='Generated from '`
 
15036
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15037
        `' by configure.'
24198
15038
    if test x"$ac_file" != x-; then
24199
15039
      configure_input="$ac_file.  $configure_input"
24200
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
24201
 
echo "$as_me: creating $ac_file" >&6;}
 
15040
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15041
$as_echo "$as_me: creating $ac_file" >&6;}
24202
15042
    fi
 
15043
    # Neutralize special characters interpreted by sed in replacement strings.
 
15044
    case $configure_input in #(
 
15045
    *\&* | *\|* | *\\* )
 
15046
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
15047
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15048
    *) ac_sed_conf_input=$configure_input;;
 
15049
    esac
24203
15050
 
24204
15051
    case $ac_tag in
24205
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
15052
    *:-:* | *:-) cat >"$tmp/stdin" \
 
15053
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24206
15054
    esac
24207
15055
    ;;
24208
15056
  esac
24212
15060
         X"$ac_file" : 'X\(//\)[^/]' \| \
24213
15061
         X"$ac_file" : 'X\(//\)$' \| \
24214
15062
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24215
 
echo X"$ac_file" |
24216
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24217
 
            s//\1/
24218
 
            q
24219
 
          }
24220
 
          /^X\(\/\/\)[^/].*/{
24221
 
            s//\1/
24222
 
            q
24223
 
          }
24224
 
          /^X\(\/\/\)$/{
24225
 
            s//\1/
24226
 
            q
24227
 
          }
24228
 
          /^X\(\/\).*/{
24229
 
            s//\1/
24230
 
            q
24231
 
          }
24232
 
          s/.*/./; q'`
24233
 
  { as_dir="$ac_dir"
24234
 
  case $as_dir in #(
24235
 
  -*) as_dir=./$as_dir;;
24236
 
  esac
24237
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24238
 
    as_dirs=
24239
 
    while :; do
24240
 
      case $as_dir in #(
24241
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24242
 
      *) as_qdir=$as_dir;;
24243
 
      esac
24244
 
      as_dirs="'$as_qdir' $as_dirs"
24245
 
      as_dir=`$as_dirname -- "$as_dir" ||
24246
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24248
 
         X"$as_dir" : 'X\(//\)$' \| \
24249
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24250
 
echo X"$as_dir" |
24251
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24252
 
            s//\1/
24253
 
            q
24254
 
          }
24255
 
          /^X\(\/\/\)[^/].*/{
24256
 
            s//\1/
24257
 
            q
24258
 
          }
24259
 
          /^X\(\/\/\)$/{
24260
 
            s//\1/
24261
 
            q
24262
 
          }
24263
 
          /^X\(\/\).*/{
24264
 
            s//\1/
24265
 
            q
24266
 
          }
24267
 
          s/.*/./; q'`
24268
 
      test -d "$as_dir" && break
24269
 
    done
24270
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24271
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24272
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24273
 
   { (exit 1); exit 1; }; }; }
 
15063
$as_echo X"$ac_file" |
 
15064
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15065
            s//\1/
 
15066
            q
 
15067
          }
 
15068
          /^X\(\/\/\)[^/].*/{
 
15069
            s//\1/
 
15070
            q
 
15071
          }
 
15072
          /^X\(\/\/\)$/{
 
15073
            s//\1/
 
15074
            q
 
15075
          }
 
15076
          /^X\(\/\).*/{
 
15077
            s//\1/
 
15078
            q
 
15079
          }
 
15080
          s/.*/./; q'`
 
15081
  as_dir="$ac_dir"; as_fn_mkdir_p
24274
15082
  ac_builddir=.
24275
15083
 
24276
15084
case "$ac_dir" in
24277
15085
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24278
15086
*)
24279
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
15087
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24280
15088
  # A ".." for each directory in $ac_dir_suffix.
24281
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
15089
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24282
15090
  case $ac_top_builddir_sub in
24283
15091
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24284
15092
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24323
15131
  esac
24324
15132
_ACEOF
24325
15133
 
24326
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
15134
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24327
15135
# If the template does not know about datarootdir, expand it.
24328
15136
# FIXME: This hack should be removed a few years after 2.60.
24329
15137
ac_datarootdir_hack=; ac_datarootdir_seen=
24330
 
 
24331
 
case `sed -n '/datarootdir/ {
 
15138
ac_sed_dataroot='
 
15139
/datarootdir/ {
24332
15140
  p
24333
15141
  q
24334
15142
}
24336
15144
/@docdir@/p
24337
15145
/@infodir@/p
24338
15146
/@localedir@/p
24339
 
/@mandir@/p
24340
 
' $ac_file_inputs` in
 
15147
/@mandir@/p'
 
15148
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24341
15149
*datarootdir*) ac_datarootdir_seen=yes;;
24342
15150
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24343
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24344
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15151
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15152
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24345
15153
_ACEOF
24346
 
cat >>$CONFIG_STATUS <<_ACEOF
 
15154
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24347
15155
  ac_datarootdir_hack='
24348
15156
  s&@datadir@&$datadir&g
24349
15157
  s&@docdir@&$docdir&g
24350
15158
  s&@infodir@&$infodir&g
24351
15159
  s&@localedir@&$localedir&g
24352
15160
  s&@mandir@&$mandir&g
24353
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
15161
  s&\\\${datarootdir}&$datarootdir&g' ;;
24354
15162
esac
24355
15163
_ACEOF
24356
15164
 
24357
15165
# Neutralize VPATH when `$srcdir' = `.'.
24358
15166
# Shell code in configure.ac might set extrasub.
24359
15167
# FIXME: do we really want to maintain this feature?
24360
 
cat >>$CONFIG_STATUS <<_ACEOF
24361
 
  sed "$ac_vpsub
 
15168
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15169
ac_sed_extra="$ac_vpsub
24362
15170
$extrasub
24363
15171
_ACEOF
24364
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
15172
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24365
15173
:t
24366
15174
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24367
 
s&@configure_input@&$configure_input&;t t
 
15175
s|@configure_input@|$ac_sed_conf_input|;t t
24368
15176
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15177
s&@top_build_prefix@&$ac_top_build_prefix&;t t
24369
15178
s&@srcdir@&$ac_srcdir&;t t
24370
15179
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24371
15180
s&@top_srcdir@&$ac_top_srcdir&;t t
24376
15185
s&@INSTALL@&$ac_INSTALL&;t t
24377
15186
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24378
15187
$ac_datarootdir_hack
24379
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
15188
"
 
15189
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
15190
  || as_fn_error "could not create $ac_file" "$LINENO" 5
24380
15191
 
24381
15192
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24382
15193
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24383
15194
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24384
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15195
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24385
15196
which seems to be undefined.  Please make sure it is defined." >&5
24386
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15197
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24387
15198
which seems to be undefined.  Please make sure it is defined." >&2;}
24388
15199
 
24389
15200
  rm -f "$tmp/stdin"
24390
15201
  case $ac_file in
24391
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
24392
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24393
 
  esac
 
15202
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
15203
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
15204
  esac \
 
15205
  || as_fn_error "could not create $ac_file" "$LINENO" 5
24394
15206
 ;;
24395
15207
  :H)
24396
15208
  #
24397
15209
  # CONFIG_HEADER
24398
15210
  #
24399
 
_ACEOF
24400
 
 
24401
 
# Transform confdefs.h into a sed script `conftest.defines', that
24402
 
# substitutes the proper values into config.h.in to produce config.h.
24403
 
rm -f conftest.defines conftest.tail
24404
 
# First, append a space to every undef/define line, to ease matching.
24405
 
echo 's/$/ /' >conftest.defines
24406
 
# Then, protect against being on the right side of a sed subst, or in
24407
 
# an unquoted here document, in config.status.  If some macros were
24408
 
# called several times there might be several #defines for the same
24409
 
# symbol, which is useless.  But do not sort them, since the last
24410
 
# AC_DEFINE must be honored.
24411
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24412
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24413
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24414
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
24415
 
# just an empty string.
24416
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24417
 
ac_dB='\\)[      (].*,\\1define\\2'
24418
 
ac_dC=' '
24419
 
ac_dD=' ,'
24420
 
 
24421
 
uniq confdefs.h |
24422
 
  sed -n '
24423
 
        t rset
24424
 
        :rset
24425
 
        s/^[     ]*#[    ]*define[       ][      ]*//
24426
 
        t ok
24427
 
        d
24428
 
        :ok
24429
 
        s/[\\&,]/\\&/g
24430
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24431
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24432
 
  ' >>conftest.defines
24433
 
 
24434
 
# Remove the space that was appended to ease matching.
24435
 
# Then replace #undef with comments.  This is necessary, for
24436
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
24437
 
# on some systems where configure will not decide to define it.
24438
 
# (The regexp can be short, since the line contains either #define or #undef.)
24439
 
echo 's/ $//
24440
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
24441
 
 
24442
 
# Break up conftest.defines:
24443
 
ac_max_sed_lines=50
24444
 
 
24445
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24446
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24447
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24448
 
# et cetera.
24449
 
ac_in='$ac_file_inputs'
24450
 
ac_out='"$tmp/out1"'
24451
 
ac_nxt='"$tmp/out2"'
24452
 
 
24453
 
while :
24454
 
do
24455
 
  # Write a here document:
24456
 
    cat >>$CONFIG_STATUS <<_ACEOF
24457
 
    # First, check the format of the line:
24458
 
    cat >"\$tmp/defines.sed" <<\\CEOF
24459
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24460
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24461
 
b
24462
 
:def
24463
 
_ACEOF
24464
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24465
 
  echo 'CEOF
24466
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24467
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24468
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24469
 
  grep . conftest.tail >/dev/null || break
24470
 
  rm -f conftest.defines
24471
 
  mv conftest.tail conftest.defines
24472
 
done
24473
 
rm -f conftest.defines conftest.tail
24474
 
 
24475
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
24476
 
cat >>$CONFIG_STATUS <<\_ACEOF
24477
15211
  if test x"$ac_file" != x-; then
24478
 
    echo "/* $configure_input  */" >"$tmp/config.h"
24479
 
    cat "$ac_result" >>"$tmp/config.h"
24480
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24481
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24482
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
15212
    {
 
15213
      $as_echo "/* $configure_input  */" \
 
15214
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
15215
    } >"$tmp/config.h" \
 
15216
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15217
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
15218
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15219
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24483
15220
    else
24484
 
      rm -f $ac_file
24485
 
      mv "$tmp/config.h" $ac_file
 
15221
      rm -f "$ac_file"
 
15222
      mv "$tmp/config.h" "$ac_file" \
 
15223
        || as_fn_error "could not create $ac_file" "$LINENO" 5
24486
15224
    fi
24487
15225
  else
24488
 
    echo "/* $configure_input  */"
24489
 
    cat "$ac_result"
 
15226
    $as_echo "/* $configure_input  */" \
 
15227
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
15228
      || as_fn_error "could not create -" "$LINENO" 5
24490
15229
  fi
24491
 
  rm -f "$tmp/out12"
24492
 
# Compute $ac_file's index in $config_headers.
 
15230
# Compute "$ac_file"'s index in $config_headers.
 
15231
_am_arg="$ac_file"
24493
15232
_am_stamp_count=1
24494
15233
for _am_header in $config_headers :; do
24495
15234
  case $_am_header in
24496
 
    $ac_file | $ac_file:* )
 
15235
    $_am_arg | $_am_arg:* )
24497
15236
      break ;;
24498
15237
    * )
24499
15238
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24500
15239
  esac
24501
15240
done
24502
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24503
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24504
 
         X$ac_file : 'X\(//\)[^/]' \| \
24505
 
         X$ac_file : 'X\(//\)$' \| \
24506
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24507
 
echo X$ac_file |
 
15241
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15242
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15243
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15244
         X"$_am_arg" : 'X\(//\)$' \| \
 
15245
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15246
$as_echo X"$_am_arg" |
24508
15247
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24509
15248
            s//\1/
24510
15249
            q
24524
15263
          s/.*/./; q'`/stamp-h$_am_stamp_count
24525
15264
 ;;
24526
15265
 
24527
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24528
 
echo "$as_me: executing $ac_file commands" >&6;}
 
15266
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15267
$as_echo "$as_me: executing $ac_file commands" >&6;}
24529
15268
 ;;
24530
15269
  esac
24531
15270
 
24532
15271
 
24533
15272
  case $ac_file$ac_mode in
24534
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
15273
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15274
# are listed without --file.  Let's play safe and only enable the eval
 
15275
# if we detect the quoting.
 
15276
case $CONFIG_FILES in
 
15277
*\'*) eval set x "$CONFIG_FILES" ;;
 
15278
*)   set x $CONFIG_FILES ;;
 
15279
esac
 
15280
shift
 
15281
for mf
 
15282
do
24535
15283
  # Strip MF so we end up with the name of the file.
24536
15284
  mf=`echo "$mf" | sed -e 's/:.*$//'`
24537
15285
  # Check whether this is an Automake generated Makefile or not.
24541
15289
  # each Makefile.in and add a new line on top of each file to say so.
24542
15290
  # Grep'ing the whole file is not good either: AIX grep has a line
24543
15291
  # limit of 2048, but all sed's we know have understand at least 4000.
24544
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
15292
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24545
15293
    dirpart=`$as_dirname -- "$mf" ||
24546
15294
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24547
15295
         X"$mf" : 'X\(//\)[^/]' \| \
24548
15296
         X"$mf" : 'X\(//\)$' \| \
24549
15297
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24550
 
echo X"$mf" |
 
15298
$as_echo X"$mf" |
24551
15299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24552
15300
            s//\1/
24553
15301
            q
24591
15339
         X"$file" : 'X\(//\)[^/]' \| \
24592
15340
         X"$file" : 'X\(//\)$' \| \
24593
15341
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24594
 
echo X"$file" |
24595
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24596
 
            s//\1/
24597
 
            q
24598
 
          }
24599
 
          /^X\(\/\/\)[^/].*/{
24600
 
            s//\1/
24601
 
            q
24602
 
          }
24603
 
          /^X\(\/\/\)$/{
24604
 
            s//\1/
24605
 
            q
24606
 
          }
24607
 
          /^X\(\/\).*/{
24608
 
            s//\1/
24609
 
            q
24610
 
          }
24611
 
          s/.*/./; q'`
24612
 
    { as_dir=$dirpart/$fdir
24613
 
  case $as_dir in #(
24614
 
  -*) as_dir=./$as_dir;;
24615
 
  esac
24616
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24617
 
    as_dirs=
24618
 
    while :; do
24619
 
      case $as_dir in #(
24620
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24621
 
      *) as_qdir=$as_dir;;
24622
 
      esac
24623
 
      as_dirs="'$as_qdir' $as_dirs"
24624
 
      as_dir=`$as_dirname -- "$as_dir" ||
24625
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24626
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24627
 
         X"$as_dir" : 'X\(//\)$' \| \
24628
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24629
 
echo X"$as_dir" |
24630
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24631
 
            s//\1/
24632
 
            q
24633
 
          }
24634
 
          /^X\(\/\/\)[^/].*/{
24635
 
            s//\1/
24636
 
            q
24637
 
          }
24638
 
          /^X\(\/\/\)$/{
24639
 
            s//\1/
24640
 
            q
24641
 
          }
24642
 
          /^X\(\/\).*/{
24643
 
            s//\1/
24644
 
            q
24645
 
          }
24646
 
          s/.*/./; q'`
24647
 
      test -d "$as_dir" && break
24648
 
    done
24649
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24650
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24651
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24652
 
   { (exit 1); exit 1; }; }; }
 
15342
$as_echo X"$file" |
 
15343
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15344
            s//\1/
 
15345
            q
 
15346
          }
 
15347
          /^X\(\/\/\)[^/].*/{
 
15348
            s//\1/
 
15349
            q
 
15350
          }
 
15351
          /^X\(\/\/\)$/{
 
15352
            s//\1/
 
15353
            q
 
15354
          }
 
15355
          /^X\(\/\).*/{
 
15356
            s//\1/
 
15357
            q
 
15358
          }
 
15359
          s/.*/./; q'`
 
15360
    as_dir=$dirpart/$fdir; as_fn_mkdir_p
24653
15361
    # echo "creating $dirpart/$file"
24654
15362
    echo '# dummy' > "$dirpart/$file"
24655
15363
  done
24656
15364
done
24657
15365
 ;;
 
15366
    "libtool":C)
 
15367
 
 
15368
    # See if we are running on zsh, and set the options which allow our
 
15369
    # commands through without removal of \ escapes.
 
15370
    if test -n "${ZSH_VERSION+set}" ; then
 
15371
      setopt NO_GLOB_SUBST
 
15372
    fi
 
15373
 
 
15374
    cfgfile="${ofile}T"
 
15375
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15376
    $RM "$cfgfile"
 
15377
 
 
15378
    cat <<_LT_EOF >> "$cfgfile"
 
15379
#! $SHELL
 
15380
 
 
15381
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15382
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15383
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15384
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15385
#
 
15386
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15387
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
15388
#   Written by Gordon Matzigkeit, 1996
 
15389
#
 
15390
#   This file is part of GNU Libtool.
 
15391
#
 
15392
# GNU Libtool is free software; you can redistribute it and/or
 
15393
# modify it under the terms of the GNU General Public License as
 
15394
# published by the Free Software Foundation; either version 2 of
 
15395
# the License, or (at your option) any later version.
 
15396
#
 
15397
# As a special exception to the GNU General Public License,
 
15398
# if you distribute this file as part of a program or library that
 
15399
# is built using GNU Libtool, you may include this file under the
 
15400
# same distribution terms that you use for the rest of that program.
 
15401
#
 
15402
# GNU Libtool is distributed in the hope that it will be useful,
 
15403
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15404
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15405
# GNU General Public License for more details.
 
15406
#
 
15407
# You should have received a copy of the GNU General Public License
 
15408
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15409
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15410
# obtained by writing to the Free Software Foundation, Inc.,
 
15411
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15412
 
 
15413
 
 
15414
# The names of the tagged configurations supported by this script.
 
15415
available_tags="RC "
 
15416
 
 
15417
# ### BEGIN LIBTOOL CONFIG
 
15418
 
 
15419
# Which release of libtool.m4 was used?
 
15420
macro_version=$macro_version
 
15421
macro_revision=$macro_revision
 
15422
 
 
15423
# Assembler program.
 
15424
AS=$AS
 
15425
 
 
15426
# DLL creation program.
 
15427
DLLTOOL=$DLLTOOL
 
15428
 
 
15429
# Object dumper program.
 
15430
OBJDUMP=$OBJDUMP
 
15431
 
 
15432
# Whether or not to build static libraries.
 
15433
build_old_libs=$enable_static
 
15434
 
 
15435
# Whether or not to build shared libraries.
 
15436
build_libtool_libs=$enable_shared
 
15437
 
 
15438
# What type of objects to build.
 
15439
pic_mode=$pic_mode
 
15440
 
 
15441
# Whether or not to optimize for fast installation.
 
15442
fast_install=$enable_fast_install
 
15443
 
 
15444
# The host system.
 
15445
host_alias=$host_alias
 
15446
host=$host
 
15447
host_os=$host_os
 
15448
 
 
15449
# The build system.
 
15450
build_alias=$build_alias
 
15451
build=$build
 
15452
build_os=$build_os
 
15453
 
 
15454
# A sed program that does not truncate output.
 
15455
SED=$lt_SED
 
15456
 
 
15457
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15458
Xsed="\$SED -e 1s/^X//"
 
15459
 
 
15460
# A grep program that handles long lines.
 
15461
GREP=$lt_GREP
 
15462
 
 
15463
# An ERE matcher.
 
15464
EGREP=$lt_EGREP
 
15465
 
 
15466
# A literal string matcher.
 
15467
FGREP=$lt_FGREP
 
15468
 
 
15469
# A BSD- or MS-compatible name lister.
 
15470
NM=$lt_NM
 
15471
 
 
15472
# Whether we need soft or hard links.
 
15473
LN_S=$lt_LN_S
 
15474
 
 
15475
# What is the maximum length of a command?
 
15476
max_cmd_len=$max_cmd_len
 
15477
 
 
15478
# Object file suffix (normally "o").
 
15479
objext=$ac_objext
 
15480
 
 
15481
# Executable file suffix (normally "").
 
15482
exeext=$exeext
 
15483
 
 
15484
# whether the shell understands "unset".
 
15485
lt_unset=$lt_unset
 
15486
 
 
15487
# turn spaces into newlines.
 
15488
SP2NL=$lt_lt_SP2NL
 
15489
 
 
15490
# turn newlines into spaces.
 
15491
NL2SP=$lt_lt_NL2SP
 
15492
 
 
15493
# How to create reloadable object files.
 
15494
reload_flag=$lt_reload_flag
 
15495
reload_cmds=$lt_reload_cmds
 
15496
 
 
15497
# Method to check whether dependent libraries are shared objects.
 
15498
deplibs_check_method=$lt_deplibs_check_method
 
15499
 
 
15500
# Command to use when deplibs_check_method == "file_magic".
 
15501
file_magic_cmd=$lt_file_magic_cmd
 
15502
 
 
15503
# The archiver.
 
15504
AR=$lt_AR
 
15505
AR_FLAGS=$lt_AR_FLAGS
 
15506
 
 
15507
# A symbol stripping program.
 
15508
STRIP=$lt_STRIP
 
15509
 
 
15510
# Commands used to install an old-style archive.
 
15511
RANLIB=$lt_RANLIB
 
15512
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15513
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15514
 
 
15515
# A C compiler.
 
15516
LTCC=$lt_CC
 
15517
 
 
15518
# LTCC compiler flags.
 
15519
LTCFLAGS=$lt_CFLAGS
 
15520
 
 
15521
# Take the output of nm and produce a listing of raw symbols and C names.
 
15522
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15523
 
 
15524
# Transform the output of nm in a proper C declaration.
 
15525
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15526
 
 
15527
# Transform the output of nm in a C name address pair.
 
15528
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15529
 
 
15530
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15531
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15532
 
 
15533
# The name of the directory that contains temporary libtool files.
 
15534
objdir=$objdir
 
15535
 
 
15536
# Shell to use when invoking shell scripts.
 
15537
SHELL=$lt_SHELL
 
15538
 
 
15539
# An echo program that does not interpret backslashes.
 
15540
ECHO=$lt_ECHO
 
15541
 
 
15542
# Used to examine libraries when file_magic_cmd begins with "file".
 
15543
MAGIC_CMD=$MAGIC_CMD
 
15544
 
 
15545
# Must we lock files when doing compilation?
 
15546
need_locks=$lt_need_locks
 
15547
 
 
15548
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15549
DSYMUTIL=$lt_DSYMUTIL
 
15550
 
 
15551
# Tool to change global to local symbols on Mac OS X.
 
15552
NMEDIT=$lt_NMEDIT
 
15553
 
 
15554
# Tool to manipulate fat objects and archives on Mac OS X.
 
15555
LIPO=$lt_LIPO
 
15556
 
 
15557
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15558
OTOOL=$lt_OTOOL
 
15559
 
 
15560
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15561
OTOOL64=$lt_OTOOL64
 
15562
 
 
15563
# Old archive suffix (normally "a").
 
15564
libext=$libext
 
15565
 
 
15566
# Shared library suffix (normally ".so").
 
15567
shrext_cmds=$lt_shrext_cmds
 
15568
 
 
15569
# The commands to extract the exported symbol list from a shared archive.
 
15570
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15571
 
 
15572
# Variables whose values should be saved in libtool wrapper scripts and
 
15573
# restored at link time.
 
15574
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15575
 
 
15576
# Do we need the "lib" prefix for modules?
 
15577
need_lib_prefix=$need_lib_prefix
 
15578
 
 
15579
# Do we need a version for libraries?
 
15580
need_version=$need_version
 
15581
 
 
15582
# Library versioning type.
 
15583
version_type=$version_type
 
15584
 
 
15585
# Shared library runtime path variable.
 
15586
runpath_var=$runpath_var
 
15587
 
 
15588
# Shared library path variable.
 
15589
shlibpath_var=$shlibpath_var
 
15590
 
 
15591
# Is shlibpath searched before the hard-coded library search path?
 
15592
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15593
 
 
15594
# Format of library name prefix.
 
15595
libname_spec=$lt_libname_spec
 
15596
 
 
15597
# List of archive names.  First name is the real one, the rest are links.
 
15598
# The last name is the one that the linker finds with -lNAME
 
15599
library_names_spec=$lt_library_names_spec
 
15600
 
 
15601
# The coded name of the library, if different from the real name.
 
15602
soname_spec=$lt_soname_spec
 
15603
 
 
15604
# Command to use after installation of a shared archive.
 
15605
postinstall_cmds=$lt_postinstall_cmds
 
15606
 
 
15607
# Command to use after uninstallation of a shared archive.
 
15608
postuninstall_cmds=$lt_postuninstall_cmds
 
15609
 
 
15610
# Commands used to finish a libtool library installation in a directory.
 
15611
finish_cmds=$lt_finish_cmds
 
15612
 
 
15613
# As "finish_cmds", except a single script fragment to be evaled but
 
15614
# not shown.
 
15615
finish_eval=$lt_finish_eval
 
15616
 
 
15617
# Whether we should hardcode library paths into libraries.
 
15618
hardcode_into_libs=$hardcode_into_libs
 
15619
 
 
15620
# Compile-time system search path for libraries.
 
15621
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15622
 
 
15623
# Run-time system search path for libraries.
 
15624
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15625
 
 
15626
# Whether dlopen is supported.
 
15627
dlopen_support=$enable_dlopen
 
15628
 
 
15629
# Whether dlopen of programs is supported.
 
15630
dlopen_self=$enable_dlopen_self
 
15631
 
 
15632
# Whether dlopen of statically linked programs is supported.
 
15633
dlopen_self_static=$enable_dlopen_self_static
 
15634
 
 
15635
# Commands to strip libraries.
 
15636
old_striplib=$lt_old_striplib
 
15637
striplib=$lt_striplib
 
15638
 
 
15639
 
 
15640
# The linker used to build libraries.
 
15641
LD=$lt_LD
 
15642
 
 
15643
# Commands used to build an old-style archive.
 
15644
old_archive_cmds=$lt_old_archive_cmds
 
15645
 
 
15646
# A language specific compiler.
 
15647
CC=$lt_compiler
 
15648
 
 
15649
# Is the compiler the GNU compiler?
 
15650
with_gcc=$GCC
 
15651
 
 
15652
# Compiler flag to turn off builtin functions.
 
15653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15654
 
 
15655
# How to pass a linker flag through the compiler.
 
15656
wl=$lt_lt_prog_compiler_wl
 
15657
 
 
15658
# Additional compiler flags for building library objects.
 
15659
pic_flag=$lt_lt_prog_compiler_pic
 
15660
 
 
15661
# Compiler flag to prevent dynamic linking.
 
15662
link_static_flag=$lt_lt_prog_compiler_static
 
15663
 
 
15664
# Does compiler simultaneously support -c and -o options?
 
15665
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15666
 
 
15667
# Whether or not to add -lc for building shared libraries.
 
15668
build_libtool_need_lc=$archive_cmds_need_lc
 
15669
 
 
15670
# Whether or not to disallow shared libs when runtime libs are static.
 
15671
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15672
 
 
15673
# Compiler flag to allow reflexive dlopens.
 
15674
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15675
 
 
15676
# Compiler flag to generate shared objects directly from archives.
 
15677
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15678
 
 
15679
# Whether the compiler copes with passing no objects directly.
 
15680
compiler_needs_object=$lt_compiler_needs_object
 
15681
 
 
15682
# Create an old-style archive from a shared archive.
 
15683
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15684
 
 
15685
# Create a temporary old-style archive to link instead of a shared archive.
 
15686
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15687
 
 
15688
# Commands used to build a shared archive.
 
15689
archive_cmds=$lt_archive_cmds
 
15690
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15691
 
 
15692
# Commands used to build a loadable module if different from building
 
15693
# a shared archive.
 
15694
module_cmds=$lt_module_cmds
 
15695
module_expsym_cmds=$lt_module_expsym_cmds
 
15696
 
 
15697
# Whether we are building with GNU ld or not.
 
15698
with_gnu_ld=$lt_with_gnu_ld
 
15699
 
 
15700
# Flag that allows shared libraries with undefined symbols to be built.
 
15701
allow_undefined_flag=$lt_allow_undefined_flag
 
15702
 
 
15703
# Flag that enforces no undefined symbols.
 
15704
no_undefined_flag=$lt_no_undefined_flag
 
15705
 
 
15706
# Flag to hardcode \$libdir into a binary during linking.
 
15707
# This must work even if \$libdir does not exist
 
15708
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15709
 
 
15710
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15711
# during linking.  This must work even if \$libdir does not exist.
 
15712
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15713
 
 
15714
# Whether we need a single "-rpath" flag with a separated argument.
 
15715
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15716
 
 
15717
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15718
# DIR into the resulting binary.
 
15719
hardcode_direct=$hardcode_direct
 
15720
 
 
15721
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15722
# DIR into the resulting binary and the resulting library dependency is
 
15723
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15724
# library is relocated.
 
15725
hardcode_direct_absolute=$hardcode_direct_absolute
 
15726
 
 
15727
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15728
# into the resulting binary.
 
15729
hardcode_minus_L=$hardcode_minus_L
 
15730
 
 
15731
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15732
# into the resulting binary.
 
15733
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15734
 
 
15735
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15736
# into the library and all subsequent libraries and executables linked
 
15737
# against it.
 
15738
hardcode_automatic=$hardcode_automatic
 
15739
 
 
15740
# Set to yes if linker adds runtime paths of dependent libraries
 
15741
# to runtime path list.
 
15742
inherit_rpath=$inherit_rpath
 
15743
 
 
15744
# Whether libtool must link a program against all its dependency libraries.
 
15745
link_all_deplibs=$link_all_deplibs
 
15746
 
 
15747
# Fix the shell variable \$srcfile for the compiler.
 
15748
fix_srcfile_path=$lt_fix_srcfile_path
 
15749
 
 
15750
# Set to "yes" if exported symbols are required.
 
15751
always_export_symbols=$always_export_symbols
 
15752
 
 
15753
# The commands to list exported symbols.
 
15754
export_symbols_cmds=$lt_export_symbols_cmds
 
15755
 
 
15756
# Symbols that should not be listed in the preloaded symbols.
 
15757
exclude_expsyms=$lt_exclude_expsyms
 
15758
 
 
15759
# Symbols that must always be exported.
 
15760
include_expsyms=$lt_include_expsyms
 
15761
 
 
15762
# Commands necessary for linking programs (against libraries) with templates.
 
15763
prelink_cmds=$lt_prelink_cmds
 
15764
 
 
15765
# Specify filename containing input files.
 
15766
file_list_spec=$lt_file_list_spec
 
15767
 
 
15768
# How to hardcode a shared library path into an executable.
 
15769
hardcode_action=$hardcode_action
 
15770
 
 
15771
# ### END LIBTOOL CONFIG
 
15772
 
 
15773
_LT_EOF
 
15774
 
 
15775
  case $host_os in
 
15776
  aix3*)
 
15777
    cat <<\_LT_EOF >> "$cfgfile"
 
15778
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15779
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15780
# vanish in a puff of smoke.
 
15781
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15782
  COLLECT_NAMES=
 
15783
  export COLLECT_NAMES
 
15784
fi
 
15785
_LT_EOF
 
15786
    ;;
 
15787
  esac
 
15788
 
 
15789
 
 
15790
ltmain="$ac_aux_dir/ltmain.sh"
 
15791
 
 
15792
 
 
15793
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15794
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15795
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15796
  # is reportedly fixed, but why not run on old versions too?
 
15797
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
15798
    || (rm -f "$cfgfile"; exit 1)
 
15799
 
 
15800
  case $xsi_shell in
 
15801
  yes)
 
15802
    cat << \_LT_EOF >> "$cfgfile"
 
15803
 
 
15804
# func_dirname file append nondir_replacement
 
15805
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15806
# otherwise set result to NONDIR_REPLACEMENT.
 
15807
func_dirname ()
 
15808
{
 
15809
  case ${1} in
 
15810
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15811
    *  ) func_dirname_result="${3}" ;;
 
15812
  esac
 
15813
}
 
15814
 
 
15815
# func_basename file
 
15816
func_basename ()
 
15817
{
 
15818
  func_basename_result="${1##*/}"
 
15819
}
 
15820
 
 
15821
# func_dirname_and_basename file append nondir_replacement
 
15822
# perform func_basename and func_dirname in a single function
 
15823
# call:
 
15824
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
15825
#             add APPEND to the result, otherwise set result
 
15826
#             to NONDIR_REPLACEMENT.
 
15827
#             value returned in "$func_dirname_result"
 
15828
#   basename: Compute filename of FILE.
 
15829
#             value retuned in "$func_basename_result"
 
15830
# Implementation must be kept synchronized with func_dirname
 
15831
# and func_basename. For efficiency, we do not delegate to
 
15832
# those functions but instead duplicate the functionality here.
 
15833
func_dirname_and_basename ()
 
15834
{
 
15835
  case ${1} in
 
15836
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15837
    *  ) func_dirname_result="${3}" ;;
 
15838
  esac
 
15839
  func_basename_result="${1##*/}"
 
15840
}
 
15841
 
 
15842
# func_stripname prefix suffix name
 
15843
# strip PREFIX and SUFFIX off of NAME.
 
15844
# PREFIX and SUFFIX must not contain globbing or regex special
 
15845
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15846
# dot (in which case that matches only a dot).
 
15847
func_stripname ()
 
15848
{
 
15849
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
15850
  # positional parameters, so assign one to ordinary parameter first.
 
15851
  func_stripname_result=${3}
 
15852
  func_stripname_result=${func_stripname_result#"${1}"}
 
15853
  func_stripname_result=${func_stripname_result%"${2}"}
 
15854
}
 
15855
 
 
15856
# func_opt_split
 
15857
func_opt_split ()
 
15858
{
 
15859
  func_opt_split_opt=${1%%=*}
 
15860
  func_opt_split_arg=${1#*=}
 
15861
}
 
15862
 
 
15863
# func_lo2o object
 
15864
func_lo2o ()
 
15865
{
 
15866
  case ${1} in
 
15867
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
15868
    *)    func_lo2o_result=${1} ;;
 
15869
  esac
 
15870
}
 
15871
 
 
15872
# func_xform libobj-or-source
 
15873
func_xform ()
 
15874
{
 
15875
  func_xform_result=${1%.*}.lo
 
15876
}
 
15877
 
 
15878
# func_arith arithmetic-term...
 
15879
func_arith ()
 
15880
{
 
15881
  func_arith_result=$(( $* ))
 
15882
}
 
15883
 
 
15884
# func_len string
 
15885
# STRING may not start with a hyphen.
 
15886
func_len ()
 
15887
{
 
15888
  func_len_result=${#1}
 
15889
}
 
15890
 
 
15891
_LT_EOF
 
15892
    ;;
 
15893
  *) # Bourne compatible functions.
 
15894
    cat << \_LT_EOF >> "$cfgfile"
 
15895
 
 
15896
# func_dirname file append nondir_replacement
 
15897
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15898
# otherwise set result to NONDIR_REPLACEMENT.
 
15899
func_dirname ()
 
15900
{
 
15901
  # Extract subdirectory from the argument.
 
15902
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
15903
  if test "X$func_dirname_result" = "X${1}"; then
 
15904
    func_dirname_result="${3}"
 
15905
  else
 
15906
    func_dirname_result="$func_dirname_result${2}"
 
15907
  fi
 
15908
}
 
15909
 
 
15910
# func_basename file
 
15911
func_basename ()
 
15912
{
 
15913
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
15914
}
 
15915
 
 
15916
 
 
15917
# func_stripname prefix suffix name
 
15918
# strip PREFIX and SUFFIX off of NAME.
 
15919
# PREFIX and SUFFIX must not contain globbing or regex special
 
15920
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15921
# dot (in which case that matches only a dot).
 
15922
# func_strip_suffix prefix name
 
15923
func_stripname ()
 
15924
{
 
15925
  case ${2} in
 
15926
    .*) func_stripname_result=`$ECHO "X${3}" \
 
15927
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
15928
    *)  func_stripname_result=`$ECHO "X${3}" \
 
15929
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
15930
  esac
 
15931
}
 
15932
 
 
15933
# sed scripts:
 
15934
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
15935
my_sed_long_arg='1s/^-[^=]*=//'
 
15936
 
 
15937
# func_opt_split
 
15938
func_opt_split ()
 
15939
{
 
15940
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
15941
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
15942
}
 
15943
 
 
15944
# func_lo2o object
 
15945
func_lo2o ()
 
15946
{
 
15947
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
15948
}
 
15949
 
 
15950
# func_xform libobj-or-source
 
15951
func_xform ()
 
15952
{
 
15953
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
15954
}
 
15955
 
 
15956
# func_arith arithmetic-term...
 
15957
func_arith ()
 
15958
{
 
15959
  func_arith_result=`expr "$@"`
 
15960
}
 
15961
 
 
15962
# func_len string
 
15963
# STRING may not start with a hyphen.
 
15964
func_len ()
 
15965
{
 
15966
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
15967
}
 
15968
 
 
15969
_LT_EOF
 
15970
esac
 
15971
 
 
15972
case $lt_shell_append in
 
15973
  yes)
 
15974
    cat << \_LT_EOF >> "$cfgfile"
 
15975
 
 
15976
# func_append var value
 
15977
# Append VALUE to the end of shell variable VAR.
 
15978
func_append ()
 
15979
{
 
15980
  eval "$1+=\$2"
 
15981
}
 
15982
_LT_EOF
 
15983
    ;;
 
15984
  *)
 
15985
    cat << \_LT_EOF >> "$cfgfile"
 
15986
 
 
15987
# func_append var value
 
15988
# Append VALUE to the end of shell variable VAR.
 
15989
func_append ()
 
15990
{
 
15991
  eval "$1=\$$1\$2"
 
15992
}
 
15993
 
 
15994
_LT_EOF
 
15995
    ;;
 
15996
  esac
 
15997
 
 
15998
 
 
15999
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
16000
    || (rm -f "$cfgfile"; exit 1)
 
16001
 
 
16002
  mv -f "$cfgfile" "$ofile" ||
 
16003
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
16004
  chmod +x "$ofile"
 
16005
 
 
16006
 
 
16007
    cat <<_LT_EOF >> "$ofile"
 
16008
 
 
16009
# ### BEGIN LIBTOOL TAG CONFIG: RC
 
16010
 
 
16011
# The linker used to build libraries.
 
16012
LD=$lt_LD_RC
 
16013
 
 
16014
# Commands used to build an old-style archive.
 
16015
old_archive_cmds=$lt_old_archive_cmds_RC
 
16016
 
 
16017
# A language specific compiler.
 
16018
CC=$lt_compiler_RC
 
16019
 
 
16020
# Is the compiler the GNU compiler?
 
16021
with_gcc=$GCC_RC
 
16022
 
 
16023
# Compiler flag to turn off builtin functions.
 
16024
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
16025
 
 
16026
# How to pass a linker flag through the compiler.
 
16027
wl=$lt_lt_prog_compiler_wl_RC
 
16028
 
 
16029
# Additional compiler flags for building library objects.
 
16030
pic_flag=$lt_lt_prog_compiler_pic_RC
 
16031
 
 
16032
# Compiler flag to prevent dynamic linking.
 
16033
link_static_flag=$lt_lt_prog_compiler_static_RC
 
16034
 
 
16035
# Does compiler simultaneously support -c and -o options?
 
16036
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
16037
 
 
16038
# Whether or not to add -lc for building shared libraries.
 
16039
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
16040
 
 
16041
# Whether or not to disallow shared libs when runtime libs are static.
 
16042
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
16043
 
 
16044
# Compiler flag to allow reflexive dlopens.
 
16045
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
16046
 
 
16047
# Compiler flag to generate shared objects directly from archives.
 
16048
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
16049
 
 
16050
# Whether the compiler copes with passing no objects directly.
 
16051
compiler_needs_object=$lt_compiler_needs_object_RC
 
16052
 
 
16053
# Create an old-style archive from a shared archive.
 
16054
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
16055
 
 
16056
# Create a temporary old-style archive to link instead of a shared archive.
 
16057
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
16058
 
 
16059
# Commands used to build a shared archive.
 
16060
archive_cmds=$lt_archive_cmds_RC
 
16061
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
16062
 
 
16063
# Commands used to build a loadable module if different from building
 
16064
# a shared archive.
 
16065
module_cmds=$lt_module_cmds_RC
 
16066
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
16067
 
 
16068
# Whether we are building with GNU ld or not.
 
16069
with_gnu_ld=$lt_with_gnu_ld_RC
 
16070
 
 
16071
# Flag that allows shared libraries with undefined symbols to be built.
 
16072
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
16073
 
 
16074
# Flag that enforces no undefined symbols.
 
16075
no_undefined_flag=$lt_no_undefined_flag_RC
 
16076
 
 
16077
# Flag to hardcode \$libdir into a binary during linking.
 
16078
# This must work even if \$libdir does not exist
 
16079
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
16080
 
 
16081
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
16082
# during linking.  This must work even if \$libdir does not exist.
 
16083
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
16084
 
 
16085
# Whether we need a single "-rpath" flag with a separated argument.
 
16086
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
16087
 
 
16088
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16089
# DIR into the resulting binary.
 
16090
hardcode_direct=$hardcode_direct_RC
 
16091
 
 
16092
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16093
# DIR into the resulting binary and the resulting library dependency is
 
16094
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
16095
# library is relocated.
 
16096
hardcode_direct_absolute=$hardcode_direct_absolute_RC
 
16097
 
 
16098
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16099
# into the resulting binary.
 
16100
hardcode_minus_L=$hardcode_minus_L_RC
 
16101
 
 
16102
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16103
# into the resulting binary.
 
16104
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
16105
 
 
16106
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16107
# into the library and all subsequent libraries and executables linked
 
16108
# against it.
 
16109
hardcode_automatic=$hardcode_automatic_RC
 
16110
 
 
16111
# Set to yes if linker adds runtime paths of dependent libraries
 
16112
# to runtime path list.
 
16113
inherit_rpath=$inherit_rpath_RC
 
16114
 
 
16115
# Whether libtool must link a program against all its dependency libraries.
 
16116
link_all_deplibs=$link_all_deplibs_RC
 
16117
 
 
16118
# Fix the shell variable \$srcfile for the compiler.
 
16119
fix_srcfile_path=$lt_fix_srcfile_path_RC
 
16120
 
 
16121
# Set to "yes" if exported symbols are required.
 
16122
always_export_symbols=$always_export_symbols_RC
 
16123
 
 
16124
# The commands to list exported symbols.
 
16125
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
16126
 
 
16127
# Symbols that should not be listed in the preloaded symbols.
 
16128
exclude_expsyms=$lt_exclude_expsyms_RC
 
16129
 
 
16130
# Symbols that must always be exported.
 
16131
include_expsyms=$lt_include_expsyms_RC
 
16132
 
 
16133
# Commands necessary for linking programs (against libraries) with templates.
 
16134
prelink_cmds=$lt_prelink_cmds_RC
 
16135
 
 
16136
# Specify filename containing input files.
 
16137
file_list_spec=$lt_file_list_spec_RC
 
16138
 
 
16139
# How to hardcode a shared library path into an executable.
 
16140
hardcode_action=$hardcode_action_RC
 
16141
 
 
16142
# ### END LIBTOOL TAG CONFIG: RC
 
16143
_LT_EOF
 
16144
 
 
16145
 ;;
24658
16146
    "po-directories":C)
24659
16147
    for ac_file in $CONFIG_FILES; do
24660
16148
      # Support "outfile[:infile[:infile...]]"
24774
16262
done # for ac_tag
24775
16263
 
24776
16264
 
24777
 
{ (exit 0); exit 0; }
 
16265
as_fn_exit 0
24778
16266
_ACEOF
24779
 
chmod +x $CONFIG_STATUS
24780
16267
ac_clean_files=$ac_clean_files_save
24781
16268
 
 
16269
test $ac_write_fail = 0 ||
 
16270
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16271
 
24782
16272
 
24783
16273
# configure is writing to config.log, and then calls config.status.
24784
16274
# config.status does its own redirection, appending to config.log.
24798
16288
  exec 5>>config.log
24799
16289
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24800
16290
  # would make configure fail if this is the last instruction.
24801
 
  $ac_cs_success || { (exit 1); exit 1; }
 
16291
  $ac_cs_success || as_fn_exit $?
 
16292
fi
 
16293
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
16294
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
16295
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24802
16296
fi
24803
16297
 
24804
16298