~ubuntu-branches/ubuntu/natty/apache2/natty

« back to all changes in this revision

Viewing changes to srclib/apr-util/xml/expat/configure

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-06 00:29:03 UTC
  • mfrom: (14.3.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106002903-a7zl7sh2z1z3uxqb
Tags: 2.2.14-1ubuntu1
* Merge from debian testing, remaining changes:
  - debian/{control, rules}: Enable PIE hardening.
  - debian/{control, rules, pache2.2-common.ufw.profile}: Add ufw profiles.
  - debian/conrol: Add bzr tag and point it to our tree.
  - Dropped debian/patches/203_fix_legacy_ap_rputs_segfaults.dpatch: 
    Already applied upstream.

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.63.
 
3
# Generated by GNU Autoconf 2.64.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
7
# Foundation, Inc.
 
8
#
7
9
# This configure script is free software; the Free Software Foundation
8
10
# gives unlimited permission to copy, distribute and modify it.
9
 
## --------------------- ##
10
 
## M4sh Initialization.  ##
11
 
## --------------------- ##
 
11
## -------------------- ##
 
12
## M4sh Initialization. ##
 
13
## -------------------- ##
12
14
 
13
15
# Be more Bourne compatible
14
16
DUALCASE=1; export DUALCASE # for MKS sh
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
18
  emulate sh
17
19
  NULLCMD=:
18
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20
22
  alias -g '${1+"$@"}'='"$@"'
21
23
  setopt NO_GLOB_SUBST
22
24
else
23
 
  case `(set -o) 2>/dev/null` in
24
 
  *posix*) set -o posix ;;
 
25
  case `(set -o) 2>/dev/null` in #(
 
26
  *posix*) :
 
27
    set -o posix ;; #(
 
28
  *) :
 
29
     ;;
25
30
esac
26
 
 
27
31
fi
28
32
 
29
33
 
30
 
 
31
 
 
32
 
# PATH needs CR
33
 
# Avoid depending upon Character Ranges.
34
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
 
as_cr_digits='0123456789'
38
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
 
40
34
as_nl='
41
35
'
42
36
export as_nl
44
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
42
# but without wasting forks for bash or zsh.
 
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
  as_echo='print -r --'
 
46
  as_echo_n='print -rn --'
 
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
48
  as_echo='printf %s\n'
49
49
  as_echo_n='printf %s'
50
50
else
55
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
56
    as_echo_n_body='eval
57
57
      arg=$1;
58
 
      case $arg in
 
58
      case $arg in #(
59
59
      *"$as_nl"*)
60
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78
78
  }
79
79
fi
80
80
 
81
 
# Support unset when possible.
82
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
 
  as_unset=unset
84
 
else
85
 
  as_unset=false
86
 
fi
87
 
 
88
81
 
89
82
# IFS
90
83
# We need space, tab and new line, in precisely that order.  Quoting is
94
87
IFS=" ""        $as_nl"
95
88
 
96
89
# Find who we are.  Look in the path if we contain no directory separator.
97
 
case $0 in
 
90
case $0 in #((
98
91
  *[\\/]* ) as_myself=$0 ;;
99
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
93
for as_dir in $PATH
101
94
do
102
95
  IFS=$as_save_IFS
103
96
  test -z "$as_dir" && as_dir=.
104
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
 
done
 
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
98
  done
106
99
IFS=$as_save_IFS
107
100
 
108
101
     ;;
114
107
fi
115
108
if test ! -f "$as_myself"; then
116
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
 
  { (exit 1); exit 1; }
 
110
  exit 1
118
111
fi
119
112
 
120
 
# Work around bugs in pre-3.0 UWIN ksh.
121
 
for as_var in ENV MAIL MAILPATH
122
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
 
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
115
# suppresses any "Segmentation fault" message there.  '((' could
 
116
# trigger a bug in pdksh 5.2.14.
 
117
for as_var in BASH_ENV ENV MAIL MAILPATH
 
118
do eval test x\${$as_var+set} = xset \
 
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
120
done
124
121
PS1='$ '
125
122
PS2='> '
131
128
LANGUAGE=C
132
129
export LANGUAGE
133
130
 
134
 
# Required to use basename.
135
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
 
  as_expr=expr
138
 
else
139
 
  as_expr=false
140
 
fi
141
 
 
142
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
 
  as_basename=basename
144
 
else
145
 
  as_basename=false
146
 
fi
147
 
 
148
 
 
149
 
# Name of the executable.
150
 
as_me=`$as_basename -- "$0" ||
151
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
 
         X"$0" : 'X\(//\)$' \| \
153
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
 
$as_echo X/"$0" |
155
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
 
            s//\1/
157
 
            q
158
 
          }
159
 
          /^X\/\(\/\/\)$/{
160
 
            s//\1/
161
 
            q
162
 
          }
163
 
          /^X\/\(\/\).*/{
164
 
            s//\1/
165
 
            q
166
 
          }
167
 
          s/.*/./; q'`
168
 
 
169
131
# CDPATH.
170
 
$as_unset CDPATH
171
 
 
 
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
172
133
 
173
134
if test "x$CONFIG_SHELL" = x; then
174
 
  if (eval ":") 2>/dev/null; then
 
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
136
  emulate sh
 
137
  NULLCMD=:
 
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
139
  # is contrary to our usage.  Disable this feature.
 
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
141
  setopt NO_GLOB_SUBST
 
142
else
 
143
  case \`(set -o) 2>/dev/null\` in #(
 
144
  *posix*) :
 
145
    set -o posix ;; #(
 
146
  *) :
 
147
     ;;
 
148
esac
 
149
fi
 
150
"
 
151
  as_required="as_fn_return () { (exit \$1); }
 
152
as_fn_success () { as_fn_return 0; }
 
153
as_fn_failure () { as_fn_return 1; }
 
154
as_fn_ret_success () { return 0; }
 
155
as_fn_ret_failure () { return 1; }
 
156
 
 
157
exitcode=0
 
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
163
 
 
164
else
 
165
  exitcode=1; echo positional parameters were not saved.
 
166
fi
 
167
test x\$exitcode = x0 || exit 1"
 
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
172
test \$(( 1 + 1 )) = 2 || exit 1"
 
173
  if (eval "$as_required") 2>/dev/null; then :
175
174
  as_have_required=yes
176
175
else
177
176
  as_have_required=no
178
177
fi
179
 
 
180
 
  if test $as_have_required = yes &&     (eval ":
181
 
(as_func_return () {
182
 
  (exit \$1)
183
 
}
184
 
as_func_success () {
185
 
  as_func_return 0
186
 
}
187
 
as_func_failure () {
188
 
  as_func_return 1
189
 
}
190
 
as_func_ret_success () {
191
 
  return 0
192
 
}
193
 
as_func_ret_failure () {
194
 
  return 1
195
 
}
196
 
 
197
 
exitcode=0
198
 
if as_func_success; then
199
 
  :
200
 
else
201
 
  exitcode=1
202
 
  echo as_func_success failed.
203
 
fi
204
 
 
205
 
if as_func_failure; then
206
 
  exitcode=1
207
 
  echo as_func_failure succeeded.
208
 
fi
209
 
 
210
 
if as_func_ret_success; then
211
 
  :
212
 
else
213
 
  exitcode=1
214
 
  echo as_func_ret_success failed.
215
 
fi
216
 
 
217
 
if as_func_ret_failure; then
218
 
  exitcode=1
219
 
  echo as_func_ret_failure succeeded.
220
 
fi
221
 
 
222
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
 
  :
224
 
else
225
 
  exitcode=1
226
 
  echo positional parameters were not saved.
227
 
fi
228
 
 
229
 
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
 
231
 
(
232
 
  as_lineno_1=\$LINENO
233
 
  as_lineno_2=\$LINENO
234
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
 
") 2> /dev/null; then
237
 
  :
238
 
else
239
 
  as_candidate_shells=
240
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
179
 
 
180
else
 
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
182
as_found=false
241
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
184
do
243
185
  IFS=$as_save_IFS
244
186
  test -z "$as_dir" && as_dir=.
245
 
  case $as_dir in
 
187
  as_found=:
 
188
  case $as_dir in #(
246
189
         /*)
247
190
           for as_base in sh bash ksh sh5; do
248
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
191
             # Try only shells that exist, to save several forks.
 
192
             as_shell=$as_dir/$as_base
 
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
195
  CONFIG_SHELL=$as_shell as_have_required=yes
 
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  break 2
 
198
fi
 
199
fi
249
200
           done;;
250
201
       esac
 
202
  as_found=false
251
203
done
 
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
206
  CONFIG_SHELL=$SHELL as_have_required=yes
 
207
fi; }
252
208
IFS=$as_save_IFS
253
209
 
254
210
 
255
 
      for as_shell in $as_candidate_shells $SHELL; do
256
 
         # Try only shells that exist, to save several forks.
257
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
 
  emulate sh
261
 
  NULLCMD=:
262
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
 
  # is contrary to our usage.  Disable this feature.
264
 
  alias -g '${1+"$@"}'='"$@"'
265
 
  setopt NO_GLOB_SUBST
266
 
else
267
 
  case `(set -o) 2>/dev/null` in
268
 
  *posix*) set -o posix ;;
269
 
esac
270
 
 
271
 
fi
272
 
 
273
 
 
274
 
:
275
 
_ASEOF
276
 
}; then
277
 
  CONFIG_SHELL=$as_shell
278
 
               as_have_required=yes
279
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
 
  emulate sh
282
 
  NULLCMD=:
283
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
 
  # is contrary to our usage.  Disable this feature.
285
 
  alias -g '${1+"$@"}'='"$@"'
286
 
  setopt NO_GLOB_SUBST
287
 
else
288
 
  case `(set -o) 2>/dev/null` in
289
 
  *posix*) set -o posix ;;
290
 
esac
291
 
 
292
 
fi
293
 
 
294
 
 
295
 
:
296
 
(as_func_return () {
297
 
  (exit $1)
298
 
}
299
 
as_func_success () {
300
 
  as_func_return 0
301
 
}
302
 
as_func_failure () {
303
 
  as_func_return 1
304
 
}
305
 
as_func_ret_success () {
306
 
  return 0
307
 
}
308
 
as_func_ret_failure () {
309
 
  return 1
310
 
}
311
 
 
312
 
exitcode=0
313
 
if as_func_success; then
314
 
  :
315
 
else
316
 
  exitcode=1
317
 
  echo as_func_success failed.
318
 
fi
319
 
 
320
 
if as_func_failure; then
321
 
  exitcode=1
322
 
  echo as_func_failure succeeded.
323
 
fi
324
 
 
325
 
if as_func_ret_success; then
326
 
  :
327
 
else
328
 
  exitcode=1
329
 
  echo as_func_ret_success failed.
330
 
fi
331
 
 
332
 
if as_func_ret_failure; then
333
 
  exitcode=1
334
 
  echo as_func_ret_failure succeeded.
335
 
fi
336
 
 
337
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
 
  :
339
 
else
340
 
  exitcode=1
341
 
  echo positional parameters were not saved.
342
 
fi
343
 
 
344
 
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
 
346
 
(
347
 
  as_lineno_1=$LINENO
348
 
  as_lineno_2=$LINENO
349
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
 
352
 
_ASEOF
353
 
}; then
354
 
  break
355
 
fi
356
 
 
357
 
fi
358
 
 
359
 
      done
360
 
 
361
 
      if test "x$CONFIG_SHELL" != x; then
362
 
  for as_var in BASH_ENV ENV
363
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
 
        done
 
211
      if test "x$CONFIG_SHELL" != x; then :
 
212
  # We cannot yet assume a decent shell, so we have to provide a
 
213
        # neutralization value for shells without unset; and this also
 
214
        # works around shells that cannot unset nonexistent variables.
 
215
        BASH_ENV=/dev/null
 
216
        ENV=/dev/null
 
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
365
218
        export CONFIG_SHELL
366
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
220
fi
368
221
 
369
 
 
370
 
    if test $as_have_required = no; then
371
 
  echo This script requires a shell more modern than all the
372
 
      echo shells that I found on your system.  Please install a
373
 
      echo modern shell, or manually run the script under such a
374
 
      echo shell if you do have one.
375
 
      { (exit 1); exit 1; }
376
 
fi
377
 
 
378
 
 
379
 
fi
380
 
 
381
 
fi
382
 
 
383
 
 
384
 
 
385
 
(eval "as_func_return () {
386
 
  (exit \$1)
387
 
}
388
 
as_func_success () {
389
 
  as_func_return 0
390
 
}
391
 
as_func_failure () {
392
 
  as_func_return 1
393
 
}
394
 
as_func_ret_success () {
395
 
  return 0
396
 
}
397
 
as_func_ret_failure () {
398
 
  return 1
399
 
}
400
 
 
401
 
exitcode=0
402
 
if as_func_success; then
403
 
  :
404
 
else
405
 
  exitcode=1
406
 
  echo as_func_success failed.
407
 
fi
408
 
 
409
 
if as_func_failure; then
410
 
  exitcode=1
411
 
  echo as_func_failure succeeded.
412
 
fi
413
 
 
414
 
if as_func_ret_success; then
415
 
  :
416
 
else
417
 
  exitcode=1
418
 
  echo as_func_ret_success failed.
419
 
fi
420
 
 
421
 
if as_func_ret_failure; then
422
 
  exitcode=1
423
 
  echo as_func_ret_failure succeeded.
424
 
fi
425
 
 
426
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
 
  :
428
 
else
429
 
  exitcode=1
430
 
  echo positional parameters were not saved.
431
 
fi
432
 
 
433
 
test \$exitcode = 0") || {
434
 
  echo No shell found that supports shell functions.
435
 
  echo Please tell bug-autoconf@gnu.org about your system,
436
 
  echo including any error possibly output before this message.
437
 
  echo This can help us improve future autoconf versions.
438
 
  echo Configuration will now proceed without shell functions.
439
 
}
440
 
 
441
 
 
442
 
 
443
 
  as_lineno_1=$LINENO
444
 
  as_lineno_2=$LINENO
445
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
 
448
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
 
  # line-number line after each line using $LINENO; the second 'sed'
451
 
  # does the real work.  The second script uses 'N' to pair each
452
 
  # line-number line with the line containing $LINENO, and appends
453
 
  # trailing '-' during substitution so that $LINENO is not a special
454
 
  # case at line end.
455
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
222
    if test x$as_have_required = xno; then :
 
223
  $as_echo "$0: This script requires a shell more modern than all"
 
224
  $as_echo "$0: the shells that I found on your system."
 
225
  if test x${ZSH_VERSION+set} = xset ; then
 
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
228
  else
 
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
230
$0: including any error possibly output before this
 
231
$0: message. Then install a modern shell, or manually run
 
232
$0: the script under such a shell if you do have one."
 
233
  fi
 
234
  exit 1
 
235
fi
 
236
fi
 
237
fi
 
238
SHELL=${CONFIG_SHELL-/bin/sh}
 
239
export SHELL
 
240
# Unset more variables known to interfere with behavior of common tools.
 
241
CLICOLOR_FORCE= GREP_OPTIONS=
 
242
unset CLICOLOR_FORCE GREP_OPTIONS
 
243
 
 
244
## --------------------- ##
 
245
## M4sh Shell Functions. ##
 
246
## --------------------- ##
 
247
# as_fn_unset VAR
 
248
# ---------------
 
249
# Portably unset VAR.
 
250
as_fn_unset ()
 
251
{
 
252
  { eval $1=; unset $1;}
 
253
}
 
254
as_unset=as_fn_unset
 
255
 
 
256
# as_fn_set_status STATUS
 
257
# -----------------------
 
258
# Set $? to STATUS, without forking.
 
259
as_fn_set_status ()
 
260
{
 
261
  return $1
 
262
} # as_fn_set_status
 
263
 
 
264
# as_fn_exit STATUS
 
265
# -----------------
 
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
267
as_fn_exit ()
 
268
{
 
269
  set +e
 
270
  as_fn_set_status $1
 
271
  exit $1
 
272
} # as_fn_exit
 
273
 
 
274
# as_fn_mkdir_p
 
275
# -------------
 
276
# Create "$as_dir" as a directory, including parents if necessary.
 
277
as_fn_mkdir_p ()
 
278
{
 
279
 
 
280
  case $as_dir in #(
 
281
  -*) as_dir=./$as_dir;;
 
282
  esac
 
283
  test -d "$as_dir" || eval $as_mkdir_p || {
 
284
    as_dirs=
 
285
    while :; do
 
286
      case $as_dir in #(
 
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
288
      *) as_qdir=$as_dir;;
 
289
      esac
 
290
      as_dirs="'$as_qdir' $as_dirs"
 
291
      as_dir=`$as_dirname -- "$as_dir" ||
 
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
294
         X"$as_dir" : 'X\(//\)$' \| \
 
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
296
$as_echo X"$as_dir" |
 
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
298
            s//\1/
 
299
            q
 
300
          }
 
301
          /^X\(\/\/\)[^/].*/{
 
302
            s//\1/
 
303
            q
 
304
          }
 
305
          /^X\(\/\/\)$/{
 
306
            s//\1/
 
307
            q
 
308
          }
 
309
          /^X\(\/\).*/{
 
310
            s//\1/
 
311
            q
 
312
          }
 
313
          s/.*/./; q'`
 
314
      test -d "$as_dir" && break
 
315
    done
 
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
318
 
 
319
 
 
320
} # as_fn_mkdir_p
 
321
# as_fn_append VAR VALUE
 
322
# ----------------------
 
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
324
# advantage of any shell optimizations that allow amortized linear growth over
 
325
# repeated appends, instead of the typical quadratic growth present in naive
 
326
# implementations.
 
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
328
  eval 'as_fn_append ()
 
329
  {
 
330
    eval $1+=\$2
 
331
  }'
 
332
else
 
333
  as_fn_append ()
 
334
  {
 
335
    eval $1=\$$1\$2
 
336
  }
 
337
fi # as_fn_append
 
338
 
 
339
# as_fn_arith ARG...
 
340
# ------------------
 
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
343
# must be portable across $(()) and expr.
 
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
345
  eval 'as_fn_arith ()
 
346
  {
 
347
    as_val=$(( $* ))
 
348
  }'
 
349
else
 
350
  as_fn_arith ()
 
351
  {
 
352
    as_val=`expr "$@" || test $? -eq 1`
 
353
  }
 
354
fi # as_fn_arith
 
355
 
 
356
 
 
357
# as_fn_error ERROR [LINENO LOG_FD]
 
358
# ---------------------------------
 
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
361
# script with status $?, using 1 if that was 0.
 
362
as_fn_error ()
 
363
{
 
364
  as_status=$?; test $as_status -eq 0 && as_status=1
 
365
  if test "$3"; then
 
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
368
  fi
 
369
  $as_echo "$as_me: error: $1" >&2
 
370
  as_fn_exit $as_status
 
371
} # as_fn_error
 
372
 
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
375
  as_expr=expr
 
376
else
 
377
  as_expr=false
 
378
fi
 
379
 
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
381
  as_basename=basename
 
382
else
 
383
  as_basename=false
 
384
fi
 
385
 
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
387
  as_dirname=dirname
 
388
else
 
389
  as_dirname=false
 
390
fi
 
391
 
 
392
as_me=`$as_basename -- "$0" ||
 
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
394
         X"$0" : 'X\(//\)$' \| \
 
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
396
$as_echo X/"$0" |
 
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
398
            s//\1/
 
399
            q
 
400
          }
 
401
          /^X\/\(\/\/\)$/{
 
402
            s//\1/
 
403
            q
 
404
          }
 
405
          /^X\/\(\/\).*/{
 
406
            s//\1/
 
407
            q
 
408
          }
 
409
          s/.*/./; q'`
 
410
 
 
411
# Avoid depending upon Character Ranges.
 
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
415
as_cr_digits='0123456789'
 
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
417
 
 
418
 
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
458
424
  sed -n '
459
425
    p
460
426
    /[$]LINENO/=
471
437
      s/-\n.*//
472
438
    ' >$as_me.lineno &&
473
439
  chmod +x "$as_me.lineno" ||
474
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
 
   { (exit 1); exit 1; }; }
 
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
476
441
 
477
442
  # Don't try to exec as it changes $[0], causing all sort of problems
478
443
  # (the dirname of $[0] is not the place where we might find the
482
447
  exit
483
448
}
484
449
 
485
 
 
486
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
 
  as_dirname=dirname
488
 
else
489
 
  as_dirname=false
490
 
fi
491
 
 
492
450
ECHO_C= ECHO_N= ECHO_T=
493
 
case `echo -n x` in
 
451
case `echo -n x` in #(((((
494
452
-n*)
495
 
  case `echo 'x\c'` in
 
453
  case `echo 'xy\c'` in
496
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
 
  *)   ECHO_C='\c';;
 
455
  xy)  ECHO_C='\c';;
 
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
457
       ECHO_T=' ';;
498
458
  esac;;
499
459
*)
500
460
  ECHO_N='-n';;
501
461
esac
502
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
 
  as_expr=expr
505
 
else
506
 
  as_expr=false
507
 
fi
508
462
 
509
463
rm -f conf$$ conf$$.exe conf$$.file
510
464
if test -d conf$$.dir; then
534
488
rmdir conf$$.dir 2>/dev/null
535
489
 
536
490
if mkdir -p . 2>/dev/null; then
537
 
  as_mkdir_p=:
 
491
  as_mkdir_p='mkdir -p "$as_dir"'
538
492
else
539
493
  test -d ./-p && rmdir ./-p
540
494
  as_mkdir_p=false
553
507
      if test -d "$1"; then
554
508
        test -d "$1/.";
555
509
      else
556
 
        case $1 in
 
510
        case $1 in #(
557
511
        -*)set "./$1";;
558
512
        esac;
559
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560
514
        ???[sx]*):;;*)false;;esac;fi
561
515
    '\'' sh
562
516
  '
571
525
 
572
526
 
573
527
 
574
 
 
575
528
# Check that we are running under the correct shell.
576
529
SHELL=${CONFIG_SHELL-/bin/sh}
577
530
 
743
696
subdirs=
744
697
MFLAGS=
745
698
MAKEFLAGS=
746
 
SHELL=${CONFIG_SHELL-/bin/sh}
747
699
 
748
700
# Identity of this package.
749
701
PACKAGE_NAME=
751
703
PACKAGE_VERSION=
752
704
PACKAGE_STRING=
753
705
PACKAGE_BUGREPORT=
 
706
PACKAGE_URL=
754
707
 
755
708
ac_unique_file="Makefile.in"
756
709
# Factoring default headers for most tests.
816
769
OBJDUMP
817
770
AS
818
771
DLLTOOL
 
772
NMEDIT
 
773
DSYMUTIL
819
774
STRIP
820
775
RANLIB
821
776
AR
823
778
LN_S
824
779
EGREP
825
780
GREP
 
781
SED
826
782
OBJEXT
827
783
EXEEXT
828
784
ac_ct_CC
872
828
program_transform_name
873
829
prefix
874
830
exec_prefix
 
831
PACKAGE_URL
875
832
PACKAGE_BUGREPORT
876
833
PACKAGE_STRING
877
834
PACKAGE_VERSION
1013
970
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014
971
    # Reject names that are not valid shell variable names.
1015
972
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1017
 
   { (exit 1); exit 1; }; }
 
973
      as_fn_error "invalid feature name: $ac_useropt"
1018
974
    ac_useropt_orig=$ac_useropt
1019
975
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
976
    case $ac_user_opts in
1040
996
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041
997
    # Reject names that are not valid shell variable names.
1042
998
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044
 
   { (exit 1); exit 1; }; }
 
999
      as_fn_error "invalid feature name: $ac_useropt"
1045
1000
    ac_useropt_orig=$ac_useropt
1046
1001
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047
1002
    case $ac_user_opts in
1245
1200
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246
1201
    # Reject names that are not valid shell variable names.
1247
1202
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1249
 
   { (exit 1); exit 1; }; }
 
1203
      as_fn_error "invalid package name: $ac_useropt"
1250
1204
    ac_useropt_orig=$ac_useropt
1251
1205
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252
1206
    case $ac_user_opts in
1262
1216
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263
1217
    # Reject names that are not valid shell variable names.
1264
1218
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1266
 
   { (exit 1); exit 1; }; }
 
1219
      as_fn_error "invalid package name: $ac_useropt"
1267
1220
    ac_useropt_orig=$ac_useropt
1268
1221
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269
1222
    case $ac_user_opts in
1293
1246
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294
1247
    x_libraries=$ac_optarg ;;
1295
1248
 
1296
 
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1297
 
Try \`$0 --help' for more information." >&2
1298
 
   { (exit 1); exit 1; }; }
 
1249
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1250
Try \`$0 --help' for more information."
1299
1251
    ;;
1300
1252
 
1301
1253
  *=*)
1302
1254
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303
1255
    # Reject names that are not valid shell variable names.
1304
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305
 
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306
 
   { (exit 1); exit 1; }; }
 
1256
    case $ac_envvar in #(
 
1257
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1258
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1259
    esac
1307
1260
    eval $ac_envvar=\$ac_optarg
1308
1261
    export $ac_envvar ;;
1309
1262
 
1320
1273
 
1321
1274
if test -n "$ac_prev"; then
1322
1275
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323
 
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1324
 
   { (exit 1); exit 1; }; }
 
1276
  as_fn_error "missing argument to $ac_option"
1325
1277
fi
1326
1278
 
1327
1279
if test -n "$ac_unrecognized_opts"; then
1328
1280
  case $enable_option_checking in
1329
1281
    no) ;;
1330
 
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1331
 
   { (exit 1); exit 1; }; } ;;
 
1282
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1332
1283
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333
1284
  esac
1334
1285
fi
1351
1302
    [\\/$]* | ?:[\\/]* )  continue;;
1352
1303
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353
1304
  esac
1354
 
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355
 
   { (exit 1); exit 1; }; }
 
1305
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1356
1306
done
1357
1307
 
1358
1308
# There might be people who depend on the old broken behavior: `$host'
1382
1332
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383
1333
ac_ls_di=`ls -di .` &&
1384
1334
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385
 
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1386
 
   { (exit 1); exit 1; }; }
 
1335
  as_fn_error "working directory cannot be determined"
1387
1336
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388
 
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1389
 
   { (exit 1); exit 1; }; }
 
1337
  as_fn_error "pwd does not report name of working directory"
1390
1338
 
1391
1339
 
1392
1340
# Find the source files, if location was not specified.
1425
1373
fi
1426
1374
if test ! -r "$srcdir/$ac_unique_file"; then
1427
1375
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428
 
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429
 
   { (exit 1); exit 1; }; }
 
1376
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1430
1377
fi
1431
1378
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432
1379
ac_abs_confdir=`(
1433
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1434
 
   { (exit 1); exit 1; }; }
 
1380
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1435
1381
        pwd)`
1436
1382
# When building in place, set srcdir=.
1437
1383
if test "$ac_abs_confdir" = "$ac_pwd"; then
1561
1507
Use these variables to override the choices made by `configure' or to help
1562
1508
it to find libraries and programs with nonstandard names/locations.
1563
1509
 
 
1510
Report bugs to the package provider.
1564
1511
_ACEOF
1565
1512
ac_status=$?
1566
1513
fi
1624
1571
if $ac_init_version; then
1625
1572
  cat <<\_ACEOF
1626
1573
configure
1627
 
generated by GNU Autoconf 2.63
 
1574
generated by GNU Autoconf 2.64
1628
1575
 
1629
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1576
Copyright (C) 2009 Free Software Foundation, Inc.
1631
1577
This configure script is free software; the Free Software Foundation
1632
1578
gives unlimited permission to copy, distribute and modify it.
1633
1579
_ACEOF
1634
1580
  exit
1635
1581
fi
 
1582
 
 
1583
## ------------------------ ##
 
1584
## Autoconf initialization. ##
 
1585
## ------------------------ ##
 
1586
 
 
1587
# ac_fn_c_try_compile LINENO
 
1588
# --------------------------
 
1589
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1590
ac_fn_c_try_compile ()
 
1591
{
 
1592
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1593
  rm -f conftest.$ac_objext
 
1594
  if { { ac_try="$ac_compile"
 
1595
case "(($ac_try" in
 
1596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1597
  *) ac_try_echo=$ac_try;;
 
1598
esac
 
1599
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1600
$as_echo "$ac_try_echo"; } >&5
 
1601
  (eval "$ac_compile") 2>conftest.err
 
1602
  ac_status=$?
 
1603
  if test -s conftest.err; then
 
1604
    grep -v '^ *+' conftest.err >conftest.er1
 
1605
    cat conftest.er1 >&5
 
1606
    mv -f conftest.er1 conftest.err
 
1607
  fi
 
1608
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1609
  test $ac_status = 0; } && {
 
1610
         test -z "$ac_c_werror_flag" ||
 
1611
         test ! -s conftest.err
 
1612
       } && test -s conftest.$ac_objext; then :
 
1613
  ac_retval=0
 
1614
else
 
1615
  $as_echo "$as_me: failed program was:" >&5
 
1616
sed 's/^/| /' conftest.$ac_ext >&5
 
1617
 
 
1618
        ac_retval=1
 
1619
fi
 
1620
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1621
  return $ac_retval
 
1622
 
 
1623
} # ac_fn_c_try_compile
 
1624
 
 
1625
# ac_fn_c_try_link LINENO
 
1626
# -----------------------
 
1627
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1628
ac_fn_c_try_link ()
 
1629
{
 
1630
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1631
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1632
  if { { ac_try="$ac_link"
 
1633
case "(($ac_try" in
 
1634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1635
  *) ac_try_echo=$ac_try;;
 
1636
esac
 
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1638
$as_echo "$ac_try_echo"; } >&5
 
1639
  (eval "$ac_link") 2>conftest.err
 
1640
  ac_status=$?
 
1641
  if test -s conftest.err; then
 
1642
    grep -v '^ *+' conftest.err >conftest.er1
 
1643
    cat conftest.er1 >&5
 
1644
    mv -f conftest.er1 conftest.err
 
1645
  fi
 
1646
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1647
  test $ac_status = 0; } && {
 
1648
         test -z "$ac_c_werror_flag" ||
 
1649
         test ! -s conftest.err
 
1650
       } && test -s conftest$ac_exeext && {
 
1651
         test "$cross_compiling" = yes ||
 
1652
         $as_test_x conftest$ac_exeext
 
1653
       }; then :
 
1654
  ac_retval=0
 
1655
else
 
1656
  $as_echo "$as_me: failed program was:" >&5
 
1657
sed 's/^/| /' conftest.$ac_ext >&5
 
1658
 
 
1659
        ac_retval=1
 
1660
fi
 
1661
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1662
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1663
  # interfere with the next link command; also delete a directory that is
 
1664
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1665
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1666
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1667
  return $ac_retval
 
1668
 
 
1669
} # ac_fn_c_try_link
 
1670
 
 
1671
# ac_fn_c_try_cpp LINENO
 
1672
# ----------------------
 
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1674
ac_fn_c_try_cpp ()
 
1675
{
 
1676
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1677
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1678
case "(($ac_try" in
 
1679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1680
  *) ac_try_echo=$ac_try;;
 
1681
esac
 
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1683
$as_echo "$ac_try_echo"; } >&5
 
1684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1685
  ac_status=$?
 
1686
  if test -s conftest.err; then
 
1687
    grep -v '^ *+' conftest.err >conftest.er1
 
1688
    cat conftest.er1 >&5
 
1689
    mv -f conftest.er1 conftest.err
 
1690
  fi
 
1691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1692
  test $ac_status = 0; } >/dev/null && {
 
1693
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1694
         test ! -s conftest.err
 
1695
       }; then :
 
1696
  ac_retval=0
 
1697
else
 
1698
  $as_echo "$as_me: failed program was:" >&5
 
1699
sed 's/^/| /' conftest.$ac_ext >&5
 
1700
 
 
1701
    ac_retval=1
 
1702
fi
 
1703
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1704
  return $ac_retval
 
1705
 
 
1706
} # ac_fn_c_try_cpp
 
1707
 
 
1708
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1709
# -------------------------------------------------------
 
1710
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1711
# the include files in INCLUDES and setting the cache variable VAR
 
1712
# accordingly.
 
1713
ac_fn_c_check_header_mongrel ()
 
1714
{
 
1715
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1716
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1717
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1718
$as_echo_n "checking for $2... " >&6; }
 
1719
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1720
  $as_echo_n "(cached) " >&6
 
1721
fi
 
1722
eval ac_res=\$$3
 
1723
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1724
$as_echo "$ac_res" >&6; }
 
1725
else
 
1726
  # Is the header compilable?
 
1727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1728
$as_echo_n "checking $2 usability... " >&6; }
 
1729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1730
/* end confdefs.h.  */
 
1731
$4
 
1732
#include <$2>
 
1733
_ACEOF
 
1734
if ac_fn_c_try_compile "$LINENO"; then :
 
1735
  ac_header_compiler=yes
 
1736
else
 
1737
  ac_header_compiler=no
 
1738
fi
 
1739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1741
$as_echo "$ac_header_compiler" >&6; }
 
1742
 
 
1743
# Is the header present?
 
1744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1745
$as_echo_n "checking $2 presence... " >&6; }
 
1746
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1747
/* end confdefs.h.  */
 
1748
#include <$2>
 
1749
_ACEOF
 
1750
if ac_fn_c_try_cpp "$LINENO"; then :
 
1751
  ac_header_preproc=yes
 
1752
else
 
1753
  ac_header_preproc=no
 
1754
fi
 
1755
rm -f conftest.err conftest.$ac_ext
 
1756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1757
$as_echo "$ac_header_preproc" >&6; }
 
1758
 
 
1759
# So?  What about this header?
 
1760
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1761
  yes:no: )
 
1762
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1763
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1764
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1765
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1766
    ;;
 
1767
  no:yes:* )
 
1768
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1769
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1770
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1771
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1772
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1773
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1774
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1775
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1776
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1777
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1778
    ;;
 
1779
esac
 
1780
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1781
$as_echo_n "checking for $2... " >&6; }
 
1782
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1783
  $as_echo_n "(cached) " >&6
 
1784
else
 
1785
  eval "$3=\$ac_header_compiler"
 
1786
fi
 
1787
eval ac_res=\$$3
 
1788
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1789
$as_echo "$ac_res" >&6; }
 
1790
fi
 
1791
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1792
 
 
1793
} # ac_fn_c_check_header_mongrel
 
1794
 
 
1795
# ac_fn_c_try_run LINENO
 
1796
# ----------------------
 
1797
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1798
# that executables *can* be run.
 
1799
ac_fn_c_try_run ()
 
1800
{
 
1801
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1802
  if { { ac_try="$ac_link"
 
1803
case "(($ac_try" in
 
1804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1805
  *) ac_try_echo=$ac_try;;
 
1806
esac
 
1807
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1808
$as_echo "$ac_try_echo"; } >&5
 
1809
  (eval "$ac_link") 2>&5
 
1810
  ac_status=$?
 
1811
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1812
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1813
  { { case "(($ac_try" in
 
1814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1815
  *) ac_try_echo=$ac_try;;
 
1816
esac
 
1817
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1818
$as_echo "$ac_try_echo"; } >&5
 
1819
  (eval "$ac_try") 2>&5
 
1820
  ac_status=$?
 
1821
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1822
  test $ac_status = 0; }; }; then :
 
1823
  ac_retval=0
 
1824
else
 
1825
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1826
       $as_echo "$as_me: failed program was:" >&5
 
1827
sed 's/^/| /' conftest.$ac_ext >&5
 
1828
 
 
1829
       ac_retval=$ac_status
 
1830
fi
 
1831
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1832
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1833
  return $ac_retval
 
1834
 
 
1835
} # ac_fn_c_try_run
 
1836
 
 
1837
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1838
# -------------------------------------------------------
 
1839
# Tests whether HEADER exists and can be compiled using the include files in
 
1840
# INCLUDES, setting the cache variable VAR accordingly.
 
1841
ac_fn_c_check_header_compile ()
 
1842
{
 
1843
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1845
$as_echo_n "checking for $2... " >&6; }
 
1846
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1847
  $as_echo_n "(cached) " >&6
 
1848
else
 
1849
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1850
/* end confdefs.h.  */
 
1851
$4
 
1852
#include <$2>
 
1853
_ACEOF
 
1854
if ac_fn_c_try_compile "$LINENO"; then :
 
1855
  eval "$3=yes"
 
1856
else
 
1857
  eval "$3=no"
 
1858
fi
 
1859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1860
fi
 
1861
eval ac_res=\$$3
 
1862
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1863
$as_echo "$ac_res" >&6; }
 
1864
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1865
 
 
1866
} # ac_fn_c_check_header_compile
 
1867
 
 
1868
# ac_fn_c_check_func LINENO FUNC VAR
 
1869
# ----------------------------------
 
1870
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1871
ac_fn_c_check_func ()
 
1872
{
 
1873
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1874
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1875
$as_echo_n "checking for $2... " >&6; }
 
1876
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1877
  $as_echo_n "(cached) " >&6
 
1878
else
 
1879
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1880
/* end confdefs.h.  */
 
1881
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1882
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1883
#define $2 innocuous_$2
 
1884
 
 
1885
/* System header to define __stub macros and hopefully few prototypes,
 
1886
    which can conflict with char $2 (); below.
 
1887
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1888
    <limits.h> exists even on freestanding compilers.  */
 
1889
 
 
1890
#ifdef __STDC__
 
1891
# include <limits.h>
 
1892
#else
 
1893
# include <assert.h>
 
1894
#endif
 
1895
 
 
1896
#undef $2
 
1897
 
 
1898
/* Override any GCC internal prototype to avoid an error.
 
1899
   Use char because int might match the return type of a GCC
 
1900
   builtin and then its argument prototype would still apply.  */
 
1901
#ifdef __cplusplus
 
1902
extern "C"
 
1903
#endif
 
1904
char $2 ();
 
1905
/* The GNU C library defines this for functions which it implements
 
1906
    to always fail with ENOSYS.  Some functions are actually named
 
1907
    something starting with __ and the normal name is an alias.  */
 
1908
#if defined __stub_$2 || defined __stub___$2
 
1909
choke me
 
1910
#endif
 
1911
 
 
1912
int
 
1913
main ()
 
1914
{
 
1915
return $2 ();
 
1916
  ;
 
1917
  return 0;
 
1918
}
 
1919
_ACEOF
 
1920
if ac_fn_c_try_link "$LINENO"; then :
 
1921
  eval "$3=yes"
 
1922
else
 
1923
  eval "$3=no"
 
1924
fi
 
1925
rm -f core conftest.err conftest.$ac_objext \
 
1926
    conftest$ac_exeext conftest.$ac_ext
 
1927
fi
 
1928
eval ac_res=\$$3
 
1929
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1930
$as_echo "$ac_res" >&6; }
 
1931
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1932
 
 
1933
} # ac_fn_c_check_func
 
1934
 
 
1935
# ac_fn_cxx_try_compile LINENO
 
1936
# ----------------------------
 
1937
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1938
ac_fn_cxx_try_compile ()
 
1939
{
 
1940
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1941
  rm -f conftest.$ac_objext
 
1942
  if { { ac_try="$ac_compile"
 
1943
case "(($ac_try" in
 
1944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1945
  *) ac_try_echo=$ac_try;;
 
1946
esac
 
1947
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1948
$as_echo "$ac_try_echo"; } >&5
 
1949
  (eval "$ac_compile") 2>conftest.err
 
1950
  ac_status=$?
 
1951
  if test -s conftest.err; then
 
1952
    grep -v '^ *+' conftest.err >conftest.er1
 
1953
    cat conftest.er1 >&5
 
1954
    mv -f conftest.er1 conftest.err
 
1955
  fi
 
1956
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1957
  test $ac_status = 0; } && {
 
1958
         test -z "$ac_cxx_werror_flag" ||
 
1959
         test ! -s conftest.err
 
1960
       } && test -s conftest.$ac_objext; then :
 
1961
  ac_retval=0
 
1962
else
 
1963
  $as_echo "$as_me: failed program was:" >&5
 
1964
sed 's/^/| /' conftest.$ac_ext >&5
 
1965
 
 
1966
        ac_retval=1
 
1967
fi
 
1968
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1969
  return $ac_retval
 
1970
 
 
1971
} # ac_fn_cxx_try_compile
 
1972
 
 
1973
# ac_fn_cxx_try_cpp LINENO
 
1974
# ------------------------
 
1975
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1976
ac_fn_cxx_try_cpp ()
 
1977
{
 
1978
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1979
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1980
case "(($ac_try" in
 
1981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1982
  *) ac_try_echo=$ac_try;;
 
1983
esac
 
1984
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1985
$as_echo "$ac_try_echo"; } >&5
 
1986
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1987
  ac_status=$?
 
1988
  if test -s conftest.err; then
 
1989
    grep -v '^ *+' conftest.err >conftest.er1
 
1990
    cat conftest.er1 >&5
 
1991
    mv -f conftest.er1 conftest.err
 
1992
  fi
 
1993
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1994
  test $ac_status = 0; } >/dev/null && {
 
1995
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1996
         test ! -s conftest.err
 
1997
       }; then :
 
1998
  ac_retval=0
 
1999
else
 
2000
  $as_echo "$as_me: failed program was:" >&5
 
2001
sed 's/^/| /' conftest.$ac_ext >&5
 
2002
 
 
2003
    ac_retval=1
 
2004
fi
 
2005
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2006
  return $ac_retval
 
2007
 
 
2008
} # ac_fn_cxx_try_cpp
 
2009
 
 
2010
# ac_fn_cxx_try_link LINENO
 
2011
# -------------------------
 
2012
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2013
ac_fn_cxx_try_link ()
 
2014
{
 
2015
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2016
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2017
  if { { ac_try="$ac_link"
 
2018
case "(($ac_try" in
 
2019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2020
  *) ac_try_echo=$ac_try;;
 
2021
esac
 
2022
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2023
$as_echo "$ac_try_echo"; } >&5
 
2024
  (eval "$ac_link") 2>conftest.err
 
2025
  ac_status=$?
 
2026
  if test -s conftest.err; then
 
2027
    grep -v '^ *+' conftest.err >conftest.er1
 
2028
    cat conftest.er1 >&5
 
2029
    mv -f conftest.er1 conftest.err
 
2030
  fi
 
2031
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2032
  test $ac_status = 0; } && {
 
2033
         test -z "$ac_cxx_werror_flag" ||
 
2034
         test ! -s conftest.err
 
2035
       } && test -s conftest$ac_exeext && {
 
2036
         test "$cross_compiling" = yes ||
 
2037
         $as_test_x conftest$ac_exeext
 
2038
       }; then :
 
2039
  ac_retval=0
 
2040
else
 
2041
  $as_echo "$as_me: failed program was:" >&5
 
2042
sed 's/^/| /' conftest.$ac_ext >&5
 
2043
 
 
2044
        ac_retval=1
 
2045
fi
 
2046
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2047
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2048
  # interfere with the next link command; also delete a directory that is
 
2049
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2050
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2051
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2052
  return $ac_retval
 
2053
 
 
2054
} # ac_fn_cxx_try_link
 
2055
 
 
2056
# ac_fn_f77_try_compile LINENO
 
2057
# ----------------------------
 
2058
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2059
ac_fn_f77_try_compile ()
 
2060
{
 
2061
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2062
  rm -f conftest.$ac_objext
 
2063
  if { { ac_try="$ac_compile"
 
2064
case "(($ac_try" in
 
2065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2066
  *) ac_try_echo=$ac_try;;
 
2067
esac
 
2068
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2069
$as_echo "$ac_try_echo"; } >&5
 
2070
  (eval "$ac_compile") 2>conftest.err
 
2071
  ac_status=$?
 
2072
  if test -s conftest.err; then
 
2073
    grep -v '^ *+' conftest.err >conftest.er1
 
2074
    cat conftest.er1 >&5
 
2075
    mv -f conftest.er1 conftest.err
 
2076
  fi
 
2077
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2078
  test $ac_status = 0; } && {
 
2079
         test -z "$ac_f77_werror_flag" ||
 
2080
         test ! -s conftest.err
 
2081
       } && test -s conftest.$ac_objext; then :
 
2082
  ac_retval=0
 
2083
else
 
2084
  $as_echo "$as_me: failed program was:" >&5
 
2085
sed 's/^/| /' conftest.$ac_ext >&5
 
2086
 
 
2087
        ac_retval=1
 
2088
fi
 
2089
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2090
  return $ac_retval
 
2091
 
 
2092
} # ac_fn_f77_try_compile
 
2093
 
 
2094
# ac_fn_f77_try_link LINENO
 
2095
# -------------------------
 
2096
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2097
ac_fn_f77_try_link ()
 
2098
{
 
2099
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2100
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2101
  if { { ac_try="$ac_link"
 
2102
case "(($ac_try" in
 
2103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2104
  *) ac_try_echo=$ac_try;;
 
2105
esac
 
2106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2107
$as_echo "$ac_try_echo"; } >&5
 
2108
  (eval "$ac_link") 2>conftest.err
 
2109
  ac_status=$?
 
2110
  if test -s conftest.err; then
 
2111
    grep -v '^ *+' conftest.err >conftest.er1
 
2112
    cat conftest.er1 >&5
 
2113
    mv -f conftest.er1 conftest.err
 
2114
  fi
 
2115
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2116
  test $ac_status = 0; } && {
 
2117
         test -z "$ac_f77_werror_flag" ||
 
2118
         test ! -s conftest.err
 
2119
       } && test -s conftest$ac_exeext && {
 
2120
         test "$cross_compiling" = yes ||
 
2121
         $as_test_x conftest$ac_exeext
 
2122
       }; then :
 
2123
  ac_retval=0
 
2124
else
 
2125
  $as_echo "$as_me: failed program was:" >&5
 
2126
sed 's/^/| /' conftest.$ac_ext >&5
 
2127
 
 
2128
        ac_retval=1
 
2129
fi
 
2130
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2131
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2132
  # interfere with the next link command; also delete a directory that is
 
2133
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2134
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2135
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2136
  return $ac_retval
 
2137
 
 
2138
} # ac_fn_f77_try_link
 
2139
 
 
2140
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2141
# -------------------------------------------
 
2142
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2143
# variable VAR accordingly.
 
2144
ac_fn_c_check_type ()
 
2145
{
 
2146
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2147
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2148
$as_echo_n "checking for $2... " >&6; }
 
2149
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2150
  $as_echo_n "(cached) " >&6
 
2151
else
 
2152
  eval "$3=no"
 
2153
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2154
/* end confdefs.h.  */
 
2155
$4
 
2156
int
 
2157
main ()
 
2158
{
 
2159
if (sizeof ($2))
 
2160
         return 0;
 
2161
  ;
 
2162
  return 0;
 
2163
}
 
2164
_ACEOF
 
2165
if ac_fn_c_try_compile "$LINENO"; then :
 
2166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2167
/* end confdefs.h.  */
 
2168
$4
 
2169
int
 
2170
main ()
 
2171
{
 
2172
if (sizeof (($2)))
 
2173
            return 0;
 
2174
  ;
 
2175
  return 0;
 
2176
}
 
2177
_ACEOF
 
2178
if ac_fn_c_try_compile "$LINENO"; then :
 
2179
 
 
2180
else
 
2181
  eval "$3=yes"
 
2182
fi
 
2183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2184
fi
 
2185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2186
fi
 
2187
eval ac_res=\$$3
 
2188
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2189
$as_echo "$ac_res" >&6; }
 
2190
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2191
 
 
2192
} # ac_fn_c_check_type
1636
2193
cat >config.log <<_ACEOF
1637
2194
This file contains any messages produced by compilers while
1638
2195
running configure, to aid debugging if configure makes a mistake.
1639
2196
 
1640
2197
It was created by $as_me, which was
1641
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
2198
generated by GNU Autoconf 2.64.  Invocation command line was
1642
2199
 
1643
2200
  $ $0 $@
1644
2201
 
1674
2231
do
1675
2232
  IFS=$as_save_IFS
1676
2233
  test -z "$as_dir" && as_dir=.
1677
 
  $as_echo "PATH: $as_dir"
1678
 
done
 
2234
    $as_echo "PATH: $as_dir"
 
2235
  done
1679
2236
IFS=$as_save_IFS
1680
2237
 
1681
2238
} >&5
1712
2269
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713
2270
    esac
1714
2271
    case $ac_pass in
1715
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2272
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1716
2273
    2)
1717
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2274
      as_fn_append ac_configure_args1 " '$ac_arg'"
1718
2275
      if test $ac_must_keep_next = true; then
1719
2276
        ac_must_keep_next=false # Got value, back to normal.
1720
2277
      else
1730
2287
          -* ) ac_must_keep_next=true ;;
1731
2288
        esac
1732
2289
      fi
1733
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2290
      as_fn_append ac_configure_args " '$ac_arg'"
1734
2291
      ;;
1735
2292
    esac
1736
2293
  done
1737
2294
done
1738
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2295
{ ac_configure_args0=; unset ac_configure_args0;}
 
2296
{ ac_configure_args1=; unset ac_configure_args1;}
1740
2297
 
1741
2298
# When interrupted or exit'd, cleanup temporary files, and complete
1742
2299
# config.log.  We remove comments because anyway the quotes in there
1761
2318
    case $ac_val in #(
1762
2319
    *${as_nl}*)
1763
2320
      case $ac_var in #(
1764
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2321
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1765
2322
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766
2323
      esac
1767
2324
      case $ac_var in #(
1768
2325
      _ | IFS | as_nl) ;; #(
1769
2326
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770
 
      *) $as_unset $ac_var ;;
 
2327
      *) { eval $ac_var=; unset $ac_var;} ;;
1771
2328
      esac ;;
1772
2329
    esac
1773
2330
  done
1839
2396
    exit $exit_status
1840
2397
' 0
1841
2398
for ac_signal in 1 2 13 15; do
1842
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2399
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1843
2400
done
1844
2401
ac_signal=0
1845
2402
 
1846
2403
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1847
2404
rm -f -r conftest* confdefs.h
1848
2405
 
 
2406
$as_echo "/* confdefs.h */" > confdefs.h
 
2407
 
1849
2408
# Predefined preprocessor variables.
1850
2409
 
1851
2410
cat >>confdefs.h <<_ACEOF
1852
2411
#define PACKAGE_NAME "$PACKAGE_NAME"
1853
2412
_ACEOF
1854
2413
 
1855
 
 
1856
2414
cat >>confdefs.h <<_ACEOF
1857
2415
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858
2416
_ACEOF
1859
2417
 
1860
 
 
1861
2418
cat >>confdefs.h <<_ACEOF
1862
2419
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1863
2420
_ACEOF
1864
2421
 
1865
 
 
1866
2422
cat >>confdefs.h <<_ACEOF
1867
2423
#define PACKAGE_STRING "$PACKAGE_STRING"
1868
2424
_ACEOF
1869
2425
 
1870
 
 
1871
2426
cat >>confdefs.h <<_ACEOF
1872
2427
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873
2428
_ACEOF
1874
2429
 
 
2430
cat >>confdefs.h <<_ACEOF
 
2431
#define PACKAGE_URL "$PACKAGE_URL"
 
2432
_ACEOF
 
2433
 
1875
2434
 
1876
2435
# Let the site file select an alternate cache file if it wants to.
1877
2436
# Prefer an explicitly selected file to automatically selected ones.
1890
2449
do
1891
2450
  test "x$ac_site_file" = xNONE && continue
1892
2451
  if test -r "$ac_site_file"; then
1893
 
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2452
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1894
2453
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895
2454
    sed 's/^/| /' "$ac_site_file" >&5
1896
2455
    . "$ac_site_file"
1901
2460
  # Some versions of bash will fail to source /dev/null (special
1902
2461
  # files actually), so we avoid doing that.
1903
2462
  if test -f "$cache_file"; then
1904
 
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2463
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1905
2464
$as_echo "$as_me: loading cache $cache_file" >&6;}
1906
2465
    case $cache_file in
1907
2466
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909
2468
    esac
1910
2469
  fi
1911
2470
else
1912
 
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2471
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1913
2472
$as_echo "$as_me: creating cache $cache_file" >&6;}
1914
2473
  >$cache_file
1915
2474
fi
1924
2483
  eval ac_new_val=\$ac_env_${ac_var}_value
1925
2484
  case $ac_old_set,$ac_new_set in
1926
2485
    set,)
1927
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2486
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928
2487
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929
2488
      ac_cache_corrupted=: ;;
1930
2489
    ,set)
1931
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2490
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1932
2491
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933
2492
      ac_cache_corrupted=: ;;
1934
2493
    ,);;
1938
2497
        ac_old_val_w=`echo x $ac_old_val`
1939
2498
        ac_new_val_w=`echo x $ac_new_val`
1940
2499
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941
 
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2500
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1942
2501
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943
2502
          ac_cache_corrupted=:
1944
2503
        else
1945
 
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2504
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946
2505
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947
2506
          eval $ac_var=\$ac_old_val
1948
2507
        fi
1949
 
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2508
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1950
2509
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1951
 
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2510
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1952
2511
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1953
2512
      fi;;
1954
2513
  esac
1960
2519
    esac
1961
2520
    case " $ac_configure_args " in
1962
2521
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2522
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1964
2523
    esac
1965
2524
  fi
1966
2525
done
1967
2526
if $ac_cache_corrupted; then
1968
 
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2527
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1969
2528
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970
 
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2529
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1971
2530
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972
 
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973
 
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974
 
   { (exit 1); exit 1; }; }
 
2531
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1975
2532
fi
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
 
2533
## -------------------- ##
 
2534
## Main body of script. ##
 
2535
## -------------------- ##
1992
2536
 
1993
2537
ac_ext=c
1994
2538
ac_cpp='$CPP $CPPFLAGS'
1999
2543
 
2000
2544
ac_aux_dir=
2001
2545
for ac_dir in conftools "$srcdir"/conftools; do
2002
 
  if 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/install.sh"; then
2007
 
    ac_aux_dir=$ac_dir
2008
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2009
 
    break
2010
 
  elif test -f "$ac_dir/shtool"; then
2011
 
    ac_aux_dir=$ac_dir
2012
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2013
 
    break
2014
 
  fi
 
2546
  for ac_t in install-sh install.sh shtool; do
 
2547
    if test -f "$ac_dir/$ac_t"; then
 
2548
      ac_aux_dir=$ac_dir
 
2549
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2550
      break 2
 
2551
    fi
 
2552
  done
2015
2553
done
2016
2554
if test -z "$ac_aux_dir"; then
2017
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&5
2018
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&2;}
2019
 
   { (exit 1); exit 1; }; }
 
2555
  as_fn_error "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2020
2556
fi
2021
2557
 
2022
2558
# These three variables are undocumented and unsupported,
2048
2584
 
2049
2585
# Make sure we can run config.sub.
2050
2586
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2051
 
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2052
 
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2053
 
   { (exit 1); exit 1; }; }
 
2587
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2054
2588
 
2055
 
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2056
2590
$as_echo_n "checking build system type... " >&6; }
2057
 
if test "${ac_cv_build+set}" = set; then
 
2591
if test "${ac_cv_build+set}" = set; then :
2058
2592
  $as_echo_n "(cached) " >&6
2059
2593
else
2060
2594
  ac_build_alias=$build_alias
2061
2595
test "x$ac_build_alias" = x &&
2062
2596
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2063
2597
test "x$ac_build_alias" = x &&
2064
 
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2065
 
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2066
 
   { (exit 1); exit 1; }; }
 
2598
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2067
2599
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2068
 
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2069
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2070
 
   { (exit 1); exit 1; }; }
 
2600
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2071
2601
 
2072
2602
fi
2073
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2074
2604
$as_echo "$ac_cv_build" >&6; }
2075
2605
case $ac_cv_build in
2076
2606
*-*-*) ;;
2077
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2078
 
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2079
 
   { (exit 1); exit 1; }; };;
 
2607
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2080
2608
esac
2081
2609
build=$ac_cv_build
2082
2610
ac_save_IFS=$IFS; IFS='-'
2092
2620
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2093
2621
 
2094
2622
 
2095
 
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2096
2624
$as_echo_n "checking host system type... " >&6; }
2097
 
if test "${ac_cv_host+set}" = set; then
 
2625
if test "${ac_cv_host+set}" = set; then :
2098
2626
  $as_echo_n "(cached) " >&6
2099
2627
else
2100
2628
  if test "x$host_alias" = x; then
2101
2629
  ac_cv_host=$ac_cv_build
2102
2630
else
2103
2631
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2104
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2105
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2106
 
   { (exit 1); exit 1; }; }
 
2632
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2107
2633
fi
2108
2634
 
2109
2635
fi
2110
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2111
2637
$as_echo "$ac_cv_host" >&6; }
2112
2638
case $ac_cv_host in
2113
2639
*-*-*) ;;
2114
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2115
 
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2116
 
   { (exit 1); exit 1; }; };;
 
2640
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2117
2641
esac
2118
2642
host=$ac_cv_host
2119
2643
ac_save_IFS=$IFS; IFS='-'
2129
2653
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2130
2654
 
2131
2655
 
2132
 
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
 
2656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2133
2657
$as_echo_n "checking target system type... " >&6; }
2134
 
if test "${ac_cv_target+set}" = set; then
 
2658
if test "${ac_cv_target+set}" = set; then :
2135
2659
  $as_echo_n "(cached) " >&6
2136
2660
else
2137
2661
  if test "x$target_alias" = x; then
2138
2662
  ac_cv_target=$ac_cv_host
2139
2663
else
2140
2664
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2141
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2142
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2143
 
   { (exit 1); exit 1; }; }
 
2665
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2144
2666
fi
2145
2667
 
2146
2668
fi
2147
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2148
2670
$as_echo "$ac_cv_target" >&6; }
2149
2671
case $ac_cv_target in
2150
2672
*-*-*) ;;
2151
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2152
 
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2153
 
   { (exit 1); exit 1; }; };;
 
2673
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2154
2674
esac
2155
2675
target=$ac_cv_target
2156
2676
ac_save_IFS=$IFS; IFS='-'
2172
2692
  test "$program_prefix$program_suffix$program_transform_name" = \
2173
2693
    NONENONEs,x,x, &&
2174
2694
  program_prefix=${target_alias}-
 
2695
 
2175
2696
case "$host_os" in
2176
2697
*os2*)
2177
2698
    # Use a custom made libtool replacement
2182
2703
 
2183
2704
 
2184
2705
# Check whether --enable-shared was given.
2185
 
if test "${enable_shared+set}" = set; then
 
2706
if test "${enable_shared+set}" = set; then :
2186
2707
  enableval=$enable_shared; p=${PACKAGE-default}
2187
2708
    case $enableval in
2188
2709
    yes) enable_shared=yes ;;
2206
2727
 
2207
2728
 
2208
2729
# Check whether --enable-static was given.
2209
 
if test "${enable_static+set}" = set; then
 
2730
if test "${enable_static+set}" = set; then :
2210
2731
  enableval=$enable_static; p=${PACKAGE-default}
2211
2732
    case $enableval in
2212
2733
    yes) enable_static=yes ;;
2230
2751
 
2231
2752
 
2232
2753
# Check whether --enable-fast-install was given.
2233
 
if test "${enable_fast_install+set}" = set; then
 
2754
if test "${enable_fast_install+set}" = set; then :
2234
2755
  enableval=$enable_fast_install; p=${PACKAGE-default}
2235
2756
    case $enableval in
2236
2757
    yes) enable_fast_install=yes ;;
2261
2782
if test -n "$ac_tool_prefix"; then
2262
2783
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2263
2784
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2264
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2265
2786
$as_echo_n "checking for $ac_word... " >&6; }
2266
 
if test "${ac_cv_prog_CC+set}" = set; then
 
2787
if test "${ac_cv_prog_CC+set}" = set; then :
2267
2788
  $as_echo_n "(cached) " >&6
2268
2789
else
2269
2790
  if test -n "$CC"; then
2274
2795
do
2275
2796
  IFS=$as_save_IFS
2276
2797
  test -z "$as_dir" && as_dir=.
2277
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2798
    for ac_exec_ext in '' $ac_executable_extensions; do
2278
2799
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279
2800
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2280
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2801
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2281
2802
    break 2
2282
2803
  fi
2283
2804
done
2284
 
done
 
2805
  done
2285
2806
IFS=$as_save_IFS
2286
2807
 
2287
2808
fi
2288
2809
fi
2289
2810
CC=$ac_cv_prog_CC
2290
2811
if test -n "$CC"; then
2291
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2292
2813
$as_echo "$CC" >&6; }
2293
2814
else
2294
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2295
2816
$as_echo "no" >&6; }
2296
2817
fi
2297
2818
 
2301
2822
  ac_ct_CC=$CC
2302
2823
  # Extract the first word of "gcc", so it can be a program name with args.
2303
2824
set dummy gcc; ac_word=$2
2304
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305
2826
$as_echo_n "checking for $ac_word... " >&6; }
2306
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2827
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2307
2828
  $as_echo_n "(cached) " >&6
2308
2829
else
2309
2830
  if test -n "$ac_ct_CC"; then
2314
2835
do
2315
2836
  IFS=$as_save_IFS
2316
2837
  test -z "$as_dir" && as_dir=.
2317
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2838
    for ac_exec_ext in '' $ac_executable_extensions; do
2318
2839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
2840
    ac_cv_prog_ac_ct_CC="gcc"
2320
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2841
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
2842
    break 2
2322
2843
  fi
2323
2844
done
2324
 
done
 
2845
  done
2325
2846
IFS=$as_save_IFS
2326
2847
 
2327
2848
fi
2328
2849
fi
2329
2850
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330
2851
if test -n "$ac_ct_CC"; then
2331
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2332
2853
$as_echo "$ac_ct_CC" >&6; }
2333
2854
else
2334
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335
2856
$as_echo "no" >&6; }
2336
2857
fi
2337
2858
 
2340
2861
  else
2341
2862
    case $cross_compiling:$ac_tool_warned in
2342
2863
yes:)
2343
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2344
2865
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2345
2866
ac_tool_warned=yes ;;
2346
2867
esac
2354
2875
          if test -n "$ac_tool_prefix"; then
2355
2876
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2356
2877
set dummy ${ac_tool_prefix}cc; ac_word=$2
2357
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358
2879
$as_echo_n "checking for $ac_word... " >&6; }
2359
 
if test "${ac_cv_prog_CC+set}" = set; then
 
2880
if test "${ac_cv_prog_CC+set}" = set; then :
2360
2881
  $as_echo_n "(cached) " >&6
2361
2882
else
2362
2883
  if test -n "$CC"; then
2367
2888
do
2368
2889
  IFS=$as_save_IFS
2369
2890
  test -z "$as_dir" && as_dir=.
2370
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2891
    for ac_exec_ext in '' $ac_executable_extensions; do
2371
2892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372
2893
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2373
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2894
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
2895
    break 2
2375
2896
  fi
2376
2897
done
2377
 
done
 
2898
  done
2378
2899
IFS=$as_save_IFS
2379
2900
 
2380
2901
fi
2381
2902
fi
2382
2903
CC=$ac_cv_prog_CC
2383
2904
if test -n "$CC"; then
2384
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2385
2906
$as_echo "$CC" >&6; }
2386
2907
else
2387
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388
2909
$as_echo "no" >&6; }
2389
2910
fi
2390
2911
 
2394
2915
if test -z "$CC"; then
2395
2916
  # Extract the first word of "cc", so it can be a program name with args.
2396
2917
set dummy cc; ac_word=$2
2397
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398
2919
$as_echo_n "checking for $ac_word... " >&6; }
2399
 
if test "${ac_cv_prog_CC+set}" = set; then
 
2920
if test "${ac_cv_prog_CC+set}" = set; then :
2400
2921
  $as_echo_n "(cached) " >&6
2401
2922
else
2402
2923
  if test -n "$CC"; then
2408
2929
do
2409
2930
  IFS=$as_save_IFS
2410
2931
  test -z "$as_dir" && as_dir=.
2411
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2932
    for ac_exec_ext in '' $ac_executable_extensions; do
2412
2933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413
2934
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2414
2935
       ac_prog_rejected=yes
2415
2936
       continue
2416
2937
     fi
2417
2938
    ac_cv_prog_CC="cc"
2418
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2939
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
2940
    break 2
2420
2941
  fi
2421
2942
done
2422
 
done
 
2943
  done
2423
2944
IFS=$as_save_IFS
2424
2945
 
2425
2946
if test $ac_prog_rejected = yes; then
2438
2959
fi
2439
2960
CC=$ac_cv_prog_CC
2440
2961
if test -n "$CC"; then
2441
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442
2963
$as_echo "$CC" >&6; }
2443
2964
else
2444
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445
2966
$as_echo "no" >&6; }
2446
2967
fi
2447
2968
 
2453
2974
  do
2454
2975
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2455
2976
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2456
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457
2978
$as_echo_n "checking for $ac_word... " >&6; }
2458
 
if test "${ac_cv_prog_CC+set}" = set; then
 
2979
if test "${ac_cv_prog_CC+set}" = set; then :
2459
2980
  $as_echo_n "(cached) " >&6
2460
2981
else
2461
2982
  if test -n "$CC"; then
2466
2987
do
2467
2988
  IFS=$as_save_IFS
2468
2989
  test -z "$as_dir" && as_dir=.
2469
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2990
    for ac_exec_ext in '' $ac_executable_extensions; do
2470
2991
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471
2992
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2472
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2993
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473
2994
    break 2
2474
2995
  fi
2475
2996
done
2476
 
done
 
2997
  done
2477
2998
IFS=$as_save_IFS
2478
2999
 
2479
3000
fi
2480
3001
fi
2481
3002
CC=$ac_cv_prog_CC
2482
3003
if test -n "$CC"; then
2483
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484
3005
$as_echo "$CC" >&6; }
2485
3006
else
2486
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487
3008
$as_echo "no" >&6; }
2488
3009
fi
2489
3010
 
2497
3018
do
2498
3019
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2499
3020
set dummy $ac_prog; ac_word=$2
2500
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501
3022
$as_echo_n "checking for $ac_word... " >&6; }
2502
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3023
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2503
3024
  $as_echo_n "(cached) " >&6
2504
3025
else
2505
3026
  if test -n "$ac_ct_CC"; then
2510
3031
do
2511
3032
  IFS=$as_save_IFS
2512
3033
  test -z "$as_dir" && as_dir=.
2513
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3034
    for ac_exec_ext in '' $ac_executable_extensions; do
2514
3035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515
3036
    ac_cv_prog_ac_ct_CC="$ac_prog"
2516
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3037
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517
3038
    break 2
2518
3039
  fi
2519
3040
done
2520
 
done
 
3041
  done
2521
3042
IFS=$as_save_IFS
2522
3043
 
2523
3044
fi
2524
3045
fi
2525
3046
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526
3047
if test -n "$ac_ct_CC"; then
2527
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2528
3049
$as_echo "$ac_ct_CC" >&6; }
2529
3050
else
2530
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531
3052
$as_echo "no" >&6; }
2532
3053
fi
2533
3054
 
2540
3061
  else
2541
3062
    case $cross_compiling:$ac_tool_warned in
2542
3063
yes:)
2543
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3064
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544
3065
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545
3066
ac_tool_warned=yes ;;
2546
3067
esac
2551
3072
fi
2552
3073
 
2553
3074
 
2554
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3075
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555
3076
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2557
 
See \`config.log' for more details." >&5
2558
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2559
 
See \`config.log' for more details." >&2;}
2560
 
   { (exit 1); exit 1; }; }; }
 
3077
as_fn_error "no acceptable C compiler found in \$PATH
 
3078
See \`config.log' for more details." "$LINENO" 5; }
2561
3079
 
2562
3080
# Provide some information about the compiler.
2563
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3081
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2564
3082
set X $ac_compile
2565
3083
ac_compiler=$2
2566
 
{ (ac_try="$ac_compiler --version >&5"
2567
 
case "(($ac_try" in
2568
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
 
  *) ac_try_echo=$ac_try;;
2570
 
esac
2571
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2572
 
$as_echo "$ac_try_echo") >&5
2573
 
  (eval "$ac_compiler --version >&5") 2>&5
2574
 
  ac_status=$?
2575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
 
  (exit $ac_status); }
2577
 
{ (ac_try="$ac_compiler -v >&5"
2578
 
case "(($ac_try" in
2579
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580
 
  *) ac_try_echo=$ac_try;;
2581
 
esac
2582
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2583
 
$as_echo "$ac_try_echo") >&5
2584
 
  (eval "$ac_compiler -v >&5") 2>&5
2585
 
  ac_status=$?
2586
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587
 
  (exit $ac_status); }
2588
 
{ (ac_try="$ac_compiler -V >&5"
2589
 
case "(($ac_try" in
2590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591
 
  *) ac_try_echo=$ac_try;;
2592
 
esac
2593
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594
 
$as_echo "$ac_try_echo") >&5
2595
 
  (eval "$ac_compiler -V >&5") 2>&5
2596
 
  ac_status=$?
2597
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598
 
  (exit $ac_status); }
 
3084
for ac_option in --version -v -V -qversion; do
 
3085
  { { ac_try="$ac_compiler $ac_option >&5"
 
3086
case "(($ac_try" in
 
3087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3088
  *) ac_try_echo=$ac_try;;
 
3089
esac
 
3090
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3091
$as_echo "$ac_try_echo"; } >&5
 
3092
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3093
  ac_status=$?
 
3094
  if test -s conftest.err; then
 
3095
    sed '10a\
 
3096
... rest of stderr output deleted ...
 
3097
         10q' conftest.err >conftest.er1
 
3098
    cat conftest.er1 >&5
 
3099
    rm -f conftest.er1 conftest.err
 
3100
  fi
 
3101
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3102
  test $ac_status = 0; }
 
3103
done
2599
3104
 
2600
 
cat >conftest.$ac_ext <<_ACEOF
2601
 
/* confdefs.h.  */
2602
 
_ACEOF
2603
 
cat confdefs.h >>conftest.$ac_ext
2604
 
cat >>conftest.$ac_ext <<_ACEOF
 
3105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605
3106
/* end confdefs.h.  */
2606
 
 
 
3107
#include <stdio.h>
2607
3108
int
2608
3109
main ()
2609
3110
{
 
3111
FILE *f = fopen ("conftest.out", "w");
 
3112
 return ferror (f) || fclose (f) != 0;
2610
3113
 
2611
3114
  ;
2612
3115
  return 0;
2613
3116
}
2614
3117
_ACEOF
2615
3118
ac_clean_files_save=$ac_clean_files
2616
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3119
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2617
3120
# Try to create an executable without -o first, disregard a.out.
2618
3121
# It will help us diagnose broken compilers, and finding out an intuition
2619
3122
# of exeext.
2620
 
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2621
3124
$as_echo_n "checking for C compiler default output file name... " >&6; }
2622
3125
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2623
3126
 
2634
3137
done
2635
3138
rm -f $ac_rmfiles
2636
3139
 
2637
 
if { (ac_try="$ac_link_default"
 
3140
if { { ac_try="$ac_link_default"
2638
3141
case "(($ac_try" in
2639
3142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640
3143
  *) ac_try_echo=$ac_try;;
2641
3144
esac
2642
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2643
 
$as_echo "$ac_try_echo") >&5
 
3145
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3146
$as_echo "$ac_try_echo"; } >&5
2644
3147
  (eval "$ac_link_default") 2>&5
2645
3148
  ac_status=$?
2646
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647
 
  (exit $ac_status); }; then
 
3149
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3150
  test $ac_status = 0; }; then :
2648
3151
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2649
3152
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2650
3153
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2661
3164
        # certainly right.
2662
3165
        break;;
2663
3166
    *.* )
2664
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3167
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2665
3168
        then :; else
2666
3169
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667
3170
        fi
2680
3183
else
2681
3184
  ac_file=''
2682
3185
fi
2683
 
 
2684
 
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2685
3187
$as_echo "$ac_file" >&6; }
2686
 
if test -z "$ac_file"; then
 
3188
if test -z "$ac_file"; then :
2687
3189
  $as_echo "$as_me: failed program was:" >&5
2688
3190
sed 's/^/| /' conftest.$ac_ext >&5
2689
3191
 
2690
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3192
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691
3193
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692
 
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2693
 
See \`config.log' for more details." >&5
2694
 
$as_echo "$as_me: error: C compiler cannot create executables
2695
 
See \`config.log' for more details." >&2;}
2696
 
   { (exit 77); exit 77; }; }; }
 
3194
{ as_fn_set_status 77
 
3195
as_fn_error "C compiler cannot create executables
 
3196
See \`config.log' for more details." "$LINENO" 5; }; }
2697
3197
fi
2698
 
 
2699
3198
ac_exeext=$ac_cv_exeext
2700
3199
 
2701
3200
# Check that the compiler produces executables we can run.  If not, either
2702
3201
# the compiler is broken, or we cross compile.
2703
 
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2704
3203
$as_echo_n "checking whether the C compiler works... " >&6; }
2705
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2706
3204
# If not cross compiling, check that we can run a simple program.
2707
3205
if test "$cross_compiling" != yes; then
2708
3206
  if { ac_try='./$ac_file'
2709
 
  { (case "(($ac_try" in
 
3207
  { { case "(($ac_try" in
2710
3208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711
3209
  *) ac_try_echo=$ac_try;;
2712
3210
esac
2713
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714
 
$as_echo "$ac_try_echo") >&5
 
3211
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3212
$as_echo "$ac_try_echo"; } >&5
2715
3213
  (eval "$ac_try") 2>&5
2716
3214
  ac_status=$?
2717
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718
 
  (exit $ac_status); }; }; then
 
3215
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3216
  test $ac_status = 0; }; }; then
2719
3217
    cross_compiling=no
2720
3218
  else
2721
3219
    if test "$cross_compiling" = maybe; then
2722
3220
        cross_compiling=yes
2723
3221
    else
2724
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3222
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725
3223
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726
 
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2727
 
If you meant to cross compile, use \`--host'.
2728
 
See \`config.log' for more details." >&5
2729
 
$as_echo "$as_me: error: cannot run C compiled programs.
2730
 
If you meant to cross compile, use \`--host'.
2731
 
See \`config.log' for more details." >&2;}
2732
 
   { (exit 1); exit 1; }; }; }
 
3224
as_fn_error "cannot run C compiled programs.
 
3225
If you meant to cross compile, use \`--host'.
 
3226
See \`config.log' for more details." "$LINENO" 5; }
2733
3227
    fi
2734
3228
  fi
2735
3229
fi
2736
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737
3231
$as_echo "yes" >&6; }
2738
3232
 
2739
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3233
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2740
3234
ac_clean_files=$ac_clean_files_save
2741
3235
# Check that the compiler produces executables we can run.  If not, either
2742
3236
# the compiler is broken, or we cross compile.
2743
 
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2744
3238
$as_echo_n "checking whether we are cross compiling... " >&6; }
2745
 
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2746
3240
$as_echo "$cross_compiling" >&6; }
2747
3241
 
2748
 
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2749
3243
$as_echo_n "checking for suffix of executables... " >&6; }
2750
 
if { (ac_try="$ac_link"
 
3244
if { { ac_try="$ac_link"
2751
3245
case "(($ac_try" in
2752
3246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753
3247
  *) ac_try_echo=$ac_try;;
2754
3248
esac
2755
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2756
 
$as_echo "$ac_try_echo") >&5
 
3249
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3250
$as_echo "$ac_try_echo"; } >&5
2757
3251
  (eval "$ac_link") 2>&5
2758
3252
  ac_status=$?
2759
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
 
  (exit $ac_status); }; then
 
3253
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3254
  test $ac_status = 0; }; then :
2761
3255
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2762
3256
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2763
3257
# work properly (i.e., refer to `conftest.exe'), while it won't with
2772
3266
  esac
2773
3267
done
2774
3268
else
2775
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3269
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776
3270
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2778
 
See \`config.log' for more details." >&5
2779
 
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2780
 
See \`config.log' for more details." >&2;}
2781
 
   { (exit 1); exit 1; }; }; }
 
3271
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3272
See \`config.log' for more details." "$LINENO" 5; }
2782
3273
fi
2783
 
 
2784
3274
rm -f conftest$ac_cv_exeext
2785
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2786
3276
$as_echo "$ac_cv_exeext" >&6; }
2787
3277
 
2788
3278
rm -f conftest.$ac_ext
2789
3279
EXEEXT=$ac_cv_exeext
2790
3280
ac_exeext=$EXEEXT
2791
 
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2792
3282
$as_echo_n "checking for suffix of object files... " >&6; }
2793
 
if test "${ac_cv_objext+set}" = set; then
 
3283
if test "${ac_cv_objext+set}" = set; then :
2794
3284
  $as_echo_n "(cached) " >&6
2795
3285
else
2796
 
  cat >conftest.$ac_ext <<_ACEOF
2797
 
/* confdefs.h.  */
2798
 
_ACEOF
2799
 
cat confdefs.h >>conftest.$ac_ext
2800
 
cat >>conftest.$ac_ext <<_ACEOF
 
3286
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801
3287
/* end confdefs.h.  */
2802
3288
 
2803
3289
int
2809
3295
}
2810
3296
_ACEOF
2811
3297
rm -f conftest.o conftest.obj
2812
 
if { (ac_try="$ac_compile"
 
3298
if { { ac_try="$ac_compile"
2813
3299
case "(($ac_try" in
2814
3300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815
3301
  *) ac_try_echo=$ac_try;;
2816
3302
esac
2817
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2818
 
$as_echo "$ac_try_echo") >&5
 
3303
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3304
$as_echo "$ac_try_echo"; } >&5
2819
3305
  (eval "$ac_compile") 2>&5
2820
3306
  ac_status=$?
2821
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822
 
  (exit $ac_status); }; then
 
3307
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3308
  test $ac_status = 0; }; then :
2823
3309
  for ac_file in conftest.o conftest.obj conftest.*; do
2824
3310
  test -f "$ac_file" || continue;
2825
3311
  case $ac_file in
2832
3318
  $as_echo "$as_me: failed program was:" >&5
2833
3319
sed 's/^/| /' conftest.$ac_ext >&5
2834
3320
 
2835
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3321
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2836
3322
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2838
 
See \`config.log' for more details." >&5
2839
 
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2840
 
See \`config.log' for more details." >&2;}
2841
 
   { (exit 1); exit 1; }; }; }
 
3323
as_fn_error "cannot compute suffix of object files: cannot compile
 
3324
See \`config.log' for more details." "$LINENO" 5; }
2842
3325
fi
2843
 
 
2844
3326
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845
3327
fi
2846
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2847
3329
$as_echo "$ac_cv_objext" >&6; }
2848
3330
OBJEXT=$ac_cv_objext
2849
3331
ac_objext=$OBJEXT
2850
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2851
3333
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2852
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3334
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2853
3335
  $as_echo_n "(cached) " >&6
2854
3336
else
2855
 
  cat >conftest.$ac_ext <<_ACEOF
2856
 
/* confdefs.h.  */
2857
 
_ACEOF
2858
 
cat confdefs.h >>conftest.$ac_ext
2859
 
cat >>conftest.$ac_ext <<_ACEOF
 
3337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860
3338
/* end confdefs.h.  */
2861
3339
 
2862
3340
int
2870
3348
  return 0;
2871
3349
}
2872
3350
_ACEOF
2873
 
rm -f conftest.$ac_objext
2874
 
if { (ac_try="$ac_compile"
2875
 
case "(($ac_try" in
2876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877
 
  *) ac_try_echo=$ac_try;;
2878
 
esac
2879
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880
 
$as_echo "$ac_try_echo") >&5
2881
 
  (eval "$ac_compile") 2>conftest.er1
2882
 
  ac_status=$?
2883
 
  grep -v '^ *+' conftest.er1 >conftest.err
2884
 
  rm -f conftest.er1
2885
 
  cat conftest.err >&5
2886
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
 
  (exit $ac_status); } && {
2888
 
         test -z "$ac_c_werror_flag" ||
2889
 
         test ! -s conftest.err
2890
 
       } && test -s conftest.$ac_objext; then
 
3351
if ac_fn_c_try_compile "$LINENO"; then :
2891
3352
  ac_compiler_gnu=yes
2892
3353
else
2893
 
  $as_echo "$as_me: failed program was:" >&5
2894
 
sed 's/^/| /' conftest.$ac_ext >&5
2895
 
 
2896
 
        ac_compiler_gnu=no
 
3354
  ac_compiler_gnu=no
2897
3355
fi
2898
 
 
2899
3356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900
3357
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2901
3358
 
2902
3359
fi
2903
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2904
3361
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2905
3362
if test $ac_compiler_gnu = yes; then
2906
3363
  GCC=yes
2909
3366
fi
2910
3367
ac_test_CFLAGS=${CFLAGS+set}
2911
3368
ac_save_CFLAGS=$CFLAGS
2912
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2913
3370
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2914
 
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3371
if test "${ac_cv_prog_cc_g+set}" = set; then :
2915
3372
  $as_echo_n "(cached) " >&6
2916
3373
else
2917
3374
  ac_save_c_werror_flag=$ac_c_werror_flag
2918
3375
   ac_c_werror_flag=yes
2919
3376
   ac_cv_prog_cc_g=no
2920
3377
   CFLAGS="-g"
2921
 
   cat >conftest.$ac_ext <<_ACEOF
2922
 
/* confdefs.h.  */
2923
 
_ACEOF
2924
 
cat confdefs.h >>conftest.$ac_ext
2925
 
cat >>conftest.$ac_ext <<_ACEOF
 
3378
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926
3379
/* end confdefs.h.  */
2927
3380
 
2928
3381
int
2933
3386
  return 0;
2934
3387
}
2935
3388
_ACEOF
2936
 
rm -f conftest.$ac_objext
2937
 
if { (ac_try="$ac_compile"
2938
 
case "(($ac_try" in
2939
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
 
  *) ac_try_echo=$ac_try;;
2941
 
esac
2942
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943
 
$as_echo "$ac_try_echo") >&5
2944
 
  (eval "$ac_compile") 2>conftest.er1
2945
 
  ac_status=$?
2946
 
  grep -v '^ *+' conftest.er1 >conftest.err
2947
 
  rm -f conftest.er1
2948
 
  cat conftest.err >&5
2949
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
 
  (exit $ac_status); } && {
2951
 
         test -z "$ac_c_werror_flag" ||
2952
 
         test ! -s conftest.err
2953
 
       } && test -s conftest.$ac_objext; then
 
3389
if ac_fn_c_try_compile "$LINENO"; then :
2954
3390
  ac_cv_prog_cc_g=yes
2955
3391
else
2956
 
  $as_echo "$as_me: failed program was:" >&5
2957
 
sed 's/^/| /' conftest.$ac_ext >&5
2958
 
 
2959
 
        CFLAGS=""
2960
 
      cat >conftest.$ac_ext <<_ACEOF
2961
 
/* confdefs.h.  */
2962
 
_ACEOF
2963
 
cat confdefs.h >>conftest.$ac_ext
2964
 
cat >>conftest.$ac_ext <<_ACEOF
 
3392
  CFLAGS=""
 
3393
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965
3394
/* end confdefs.h.  */
2966
3395
 
2967
3396
int
2972
3401
  return 0;
2973
3402
}
2974
3403
_ACEOF
2975
 
rm -f conftest.$ac_objext
2976
 
if { (ac_try="$ac_compile"
2977
 
case "(($ac_try" in
2978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979
 
  *) ac_try_echo=$ac_try;;
2980
 
esac
2981
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982
 
$as_echo "$ac_try_echo") >&5
2983
 
  (eval "$ac_compile") 2>conftest.er1
2984
 
  ac_status=$?
2985
 
  grep -v '^ *+' conftest.er1 >conftest.err
2986
 
  rm -f conftest.er1
2987
 
  cat conftest.err >&5
2988
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989
 
  (exit $ac_status); } && {
2990
 
         test -z "$ac_c_werror_flag" ||
2991
 
         test ! -s conftest.err
2992
 
       } && test -s conftest.$ac_objext; then
2993
 
  :
 
3404
if ac_fn_c_try_compile "$LINENO"; then :
 
3405
 
2994
3406
else
2995
 
  $as_echo "$as_me: failed program was:" >&5
2996
 
sed 's/^/| /' conftest.$ac_ext >&5
2997
 
 
2998
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3407
  ac_c_werror_flag=$ac_save_c_werror_flag
2999
3408
         CFLAGS="-g"
3000
 
         cat >conftest.$ac_ext <<_ACEOF
3001
 
/* confdefs.h.  */
3002
 
_ACEOF
3003
 
cat confdefs.h >>conftest.$ac_ext
3004
 
cat >>conftest.$ac_ext <<_ACEOF
 
3409
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005
3410
/* end confdefs.h.  */
3006
3411
 
3007
3412
int
3012
3417
  return 0;
3013
3418
}
3014
3419
_ACEOF
3015
 
rm -f conftest.$ac_objext
3016
 
if { (ac_try="$ac_compile"
3017
 
case "(($ac_try" in
3018
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019
 
  *) ac_try_echo=$ac_try;;
3020
 
esac
3021
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022
 
$as_echo "$ac_try_echo") >&5
3023
 
  (eval "$ac_compile") 2>conftest.er1
3024
 
  ac_status=$?
3025
 
  grep -v '^ *+' conftest.er1 >conftest.err
3026
 
  rm -f conftest.er1
3027
 
  cat conftest.err >&5
3028
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029
 
  (exit $ac_status); } && {
3030
 
         test -z "$ac_c_werror_flag" ||
3031
 
         test ! -s conftest.err
3032
 
       } && test -s conftest.$ac_objext; then
 
3420
if ac_fn_c_try_compile "$LINENO"; then :
3033
3421
  ac_cv_prog_cc_g=yes
3034
 
else
3035
 
  $as_echo "$as_me: failed program was:" >&5
3036
 
sed 's/^/| /' conftest.$ac_ext >&5
3037
 
 
3038
 
 
3039
 
fi
3040
 
 
3041
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042
 
fi
3043
 
 
3044
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045
 
fi
3046
 
 
 
3422
fi
 
3423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3424
fi
 
3425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3426
fi
3047
3427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048
3428
   ac_c_werror_flag=$ac_save_c_werror_flag
3049
3429
fi
3050
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3051
3431
$as_echo "$ac_cv_prog_cc_g" >&6; }
3052
3432
if test "$ac_test_CFLAGS" = set; then
3053
3433
  CFLAGS=$ac_save_CFLAGS
3064
3444
    CFLAGS=
3065
3445
  fi
3066
3446
fi
3067
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3068
3448
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3069
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3449
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3070
3450
  $as_echo_n "(cached) " >&6
3071
3451
else
3072
3452
  ac_cv_prog_cc_c89=no
3073
3453
ac_save_CC=$CC
3074
 
cat >conftest.$ac_ext <<_ACEOF
3075
 
/* confdefs.h.  */
3076
 
_ACEOF
3077
 
cat confdefs.h >>conftest.$ac_ext
3078
 
cat >>conftest.$ac_ext <<_ACEOF
 
3454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079
3455
/* end confdefs.h.  */
3080
3456
#include <stdarg.h>
3081
3457
#include <stdio.h>
3132
3508
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3133
3509
do
3134
3510
  CC="$ac_save_CC $ac_arg"
3135
 
  rm -f conftest.$ac_objext
3136
 
if { (ac_try="$ac_compile"
3137
 
case "(($ac_try" in
3138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139
 
  *) ac_try_echo=$ac_try;;
3140
 
esac
3141
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142
 
$as_echo "$ac_try_echo") >&5
3143
 
  (eval "$ac_compile") 2>conftest.er1
3144
 
  ac_status=$?
3145
 
  grep -v '^ *+' conftest.er1 >conftest.err
3146
 
  rm -f conftest.er1
3147
 
  cat conftest.err >&5
3148
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149
 
  (exit $ac_status); } && {
3150
 
         test -z "$ac_c_werror_flag" ||
3151
 
         test ! -s conftest.err
3152
 
       } && test -s conftest.$ac_objext; then
 
3511
  if ac_fn_c_try_compile "$LINENO"; then :
3153
3512
  ac_cv_prog_cc_c89=$ac_arg
3154
 
else
3155
 
  $as_echo "$as_me: failed program was:" >&5
3156
 
sed 's/^/| /' conftest.$ac_ext >&5
3157
 
 
3158
 
 
3159
3513
fi
3160
 
 
3161
3514
rm -f core conftest.err conftest.$ac_objext
3162
3515
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3163
3516
done
3168
3521
# AC_CACHE_VAL
3169
3522
case "x$ac_cv_prog_cc_c89" in
3170
3523
  x)
3171
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3524
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3172
3525
$as_echo "none needed" >&6; } ;;
3173
3526
  xno)
3174
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3527
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3175
3528
$as_echo "unsupported" >&6; } ;;
3176
3529
  *)
3177
3530
    CC="$CC $ac_cv_prog_cc_c89"
3178
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3531
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3179
3532
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3180
3533
esac
 
3534
if test "x$ac_cv_prog_cc_c89" != xno; then :
3181
3535
 
 
3536
fi
3182
3537
 
3183
3538
ac_ext=c
3184
3539
ac_cpp='$CPP $CPPFLAGS'
3186
3541
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187
3542
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188
3543
 
3189
 
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3190
3545
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3191
 
if test "${lt_cv_path_SED+set}" = set; then
 
3546
if test "${lt_cv_path_SED+set}" = set; then :
3192
3547
  $as_echo_n "(cached) " >&6
3193
3548
else
3194
3549
  # Loop through the user's path and test for sed and gsed.
3200
3555
  test -z "$as_dir" && as_dir=.
3201
3556
  for lt_ac_prog in sed gsed; do
3202
3557
    for ac_exec_ext in '' $ac_executable_extensions; do
3203
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3558
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3204
3559
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3205
3560
      fi
3206
3561
    done
3207
3562
  done
3208
3563
done
 
3564
IFS=$as_save_IFS
3209
3565
lt_ac_max=0
3210
3566
lt_ac_count=0
3211
3567
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3240
3596
fi
3241
3597
 
3242
3598
SED=$lt_cv_path_SED
3243
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
3599
 
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3244
3601
$as_echo "$SED" >&6; }
3245
3602
 
3246
 
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3247
3604
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3248
 
if test "${ac_cv_path_GREP+set}" = set; then
 
3605
if test "${ac_cv_path_GREP+set}" = set; then :
3249
3606
  $as_echo_n "(cached) " >&6
3250
3607
else
3251
3608
  if test -z "$GREP"; then
3256
3613
do
3257
3614
  IFS=$as_save_IFS
3258
3615
  test -z "$as_dir" && as_dir=.
3259
 
  for ac_prog in grep ggrep; do
 
3616
    for ac_prog in grep ggrep; do
3260
3617
    for ac_exec_ext in '' $ac_executable_extensions; do
3261
3618
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3262
3619
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3276
3633
    $as_echo 'GREP' >> "conftest.nl"
3277
3634
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3278
3635
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3279
 
    ac_count=`expr $ac_count + 1`
 
3636
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3280
3637
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3281
3638
      # Best one so far, save it but keep looking for a better one
3282
3639
      ac_cv_path_GREP="$ac_path_GREP"
3291
3648
      $ac_path_GREP_found && break 3
3292
3649
    done
3293
3650
  done
3294
 
done
 
3651
  done
3295
3652
IFS=$as_save_IFS
3296
3653
  if test -z "$ac_cv_path_GREP"; then
3297
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3298
 
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3299
 
   { (exit 1); exit 1; }; }
 
3654
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3300
3655
  fi
3301
3656
else
3302
3657
  ac_cv_path_GREP=$GREP
3303
3658
fi
3304
3659
 
3305
3660
fi
3306
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3307
3662
$as_echo "$ac_cv_path_GREP" >&6; }
3308
3663
 GREP="$ac_cv_path_GREP"
3309
3664
 
3310
3665
 
3311
 
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3312
3667
$as_echo_n "checking for egrep... " >&6; }
3313
 
if test "${ac_cv_path_EGREP+set}" = set; then
 
3668
if test "${ac_cv_path_EGREP+set}" = set; then :
3314
3669
  $as_echo_n "(cached) " >&6
3315
3670
else
3316
3671
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3324
3679
do
3325
3680
  IFS=$as_save_IFS
3326
3681
  test -z "$as_dir" && as_dir=.
3327
 
  for ac_prog in egrep; do
 
3682
    for ac_prog in egrep; do
3328
3683
    for ac_exec_ext in '' $ac_executable_extensions; do
3329
3684
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3330
3685
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3344
3699
    $as_echo 'EGREP' >> "conftest.nl"
3345
3700
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3346
3701
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3347
 
    ac_count=`expr $ac_count + 1`
 
3702
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3348
3703
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3349
3704
      # Best one so far, save it but keep looking for a better one
3350
3705
      ac_cv_path_EGREP="$ac_path_EGREP"
3359
3714
      $ac_path_EGREP_found && break 3
3360
3715
    done
3361
3716
  done
3362
 
done
 
3717
  done
3363
3718
IFS=$as_save_IFS
3364
3719
  if test -z "$ac_cv_path_EGREP"; then
3365
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3366
 
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3367
 
   { (exit 1); exit 1; }; }
 
3720
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3368
3721
  fi
3369
3722
else
3370
3723
  ac_cv_path_EGREP=$EGREP
3372
3725
 
3373
3726
   fi
3374
3727
fi
3375
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3376
3729
$as_echo "$ac_cv_path_EGREP" >&6; }
3377
3730
 EGREP="$ac_cv_path_EGREP"
3378
3731
 
3379
3732
 
3380
3733
 
3381
3734
# Check whether --with-gnu-ld was given.
3382
 
if test "${with_gnu_ld+set}" = set; then
 
3735
if test "${with_gnu_ld+set}" = set; then :
3383
3736
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3384
3737
else
3385
3738
  with_gnu_ld=no
3388
3741
ac_prog=ld
3389
3742
if test "$GCC" = yes; then
3390
3743
  # Check if gcc -print-prog-name=ld gives a path.
3391
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3744
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3392
3745
$as_echo_n "checking for ld used by $CC... " >&6; }
3393
3746
  case $host in
3394
3747
  *-*-mingw*)
3418
3771
    ;;
3419
3772
  esac
3420
3773
elif test "$with_gnu_ld" = yes; then
3421
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3774
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3422
3775
$as_echo_n "checking for GNU ld... " >&6; }
3423
3776
else
3424
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3425
3778
$as_echo_n "checking for non-GNU ld... " >&6; }
3426
3779
fi
3427
 
if test "${lt_cv_path_LD+set}" = set; then
 
3780
if test "${lt_cv_path_LD+set}" = set; then :
3428
3781
  $as_echo_n "(cached) " >&6
3429
3782
else
3430
3783
  if test -z "$LD"; then
3455
3808
 
3456
3809
LD="$lt_cv_path_LD"
3457
3810
if test -n "$LD"; then
3458
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
3811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3459
3812
$as_echo "$LD" >&6; }
3460
3813
else
3461
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462
3815
$as_echo "no" >&6; }
3463
3816
fi
3464
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3465
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3466
 
   { (exit 1); exit 1; }; }
3467
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3817
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3468
3819
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3469
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3820
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3470
3821
  $as_echo_n "(cached) " >&6
3471
3822
else
3472
3823
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3479
3830
  ;;
3480
3831
esac
3481
3832
fi
3482
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3483
3834
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3484
3835
with_gnu_ld=$lt_cv_prog_gnu_ld
3485
3836
 
3486
3837
 
3487
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
3488
3839
$as_echo_n "checking for $LD option to reload object files... " >&6; }
3489
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3840
if test "${lt_cv_ld_reload_flag+set}" = set; then :
3490
3841
  $as_echo_n "(cached) " >&6
3491
3842
else
3492
3843
  lt_cv_ld_reload_flag='-r'
3493
3844
fi
3494
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
3495
3846
$as_echo "$lt_cv_ld_reload_flag" >&6; }
3496
3847
reload_flag=$lt_cv_ld_reload_flag
3497
3848
case $reload_flag in
3509
3860
    ;;
3510
3861
esac
3511
3862
 
3512
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
3513
3864
$as_echo_n "checking for BSD-compatible nm... " >&6; }
3514
 
if test "${lt_cv_path_NM+set}" = set; then
 
3865
if test "${lt_cv_path_NM+set}" = set; then :
3515
3866
  $as_echo_n "(cached) " >&6
3516
3867
else
3517
3868
  if test -n "$NM"; then
3558
3909
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3559
3910
fi
3560
3911
fi
3561
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3562
3913
$as_echo "$lt_cv_path_NM" >&6; }
3563
3914
NM="$lt_cv_path_NM"
3564
3915
 
3565
 
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3566
3917
$as_echo_n "checking whether ln -s works... " >&6; }
3567
3918
LN_S=$as_ln_s
3568
3919
if test "$LN_S" = "ln -s"; then
3569
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3920
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570
3921
$as_echo "yes" >&6; }
3571
3922
else
3572
 
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3573
3924
$as_echo "no, using $LN_S" >&6; }
3574
3925
fi
3575
3926
 
3576
 
{ $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3577
 
$as_echo_n "checking how to recognise dependent libraries... " >&6; }
3578
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
3928
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
3929
if test "${lt_cv_deplibs_check_method+set}" = set; then :
3579
3930
  $as_echo_n "(cached) " >&6
3580
3931
else
3581
3932
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3593
3944
# whether `pass_all' will *always* work, you probably want this one.
3594
3945
 
3595
3946
case $host_os in
3596
 
aix4* | aix5*)
 
3947
aix[4-9]*)
3597
3948
  lt_cv_deplibs_check_method=pass_all
3598
3949
  ;;
3599
3950
 
3615
3966
 
3616
3967
mingw* | pw32*)
3617
3968
  # Base MSYS/MinGW do not provide the 'file' command needed by
3618
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3619
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3620
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3969
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3970
  # unless we find 'file', for example because we are cross-compiling.
 
3971
  if ( file / ) >/dev/null 2>&1; then
 
3972
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3973
    lt_cv_file_magic_cmd='func_win32_libid'
 
3974
  else
 
3975
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3976
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3977
  fi
3621
3978
  ;;
3622
3979
 
3623
3980
darwin* | rhapsody*)
3624
3981
  lt_cv_deplibs_check_method=pass_all
3625
3982
  ;;
3626
3983
 
3627
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3984
freebsd* | dragonfly*)
3628
3985
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3629
3986
    case $host_cpu in
3630
3987
    i*86 )
3662
4019
  esac
3663
4020
  ;;
3664
4021
 
3665
 
interix3*)
 
4022
interix[3-9]*)
3666
4023
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3667
4024
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3668
4025
  ;;
3678
4035
  ;;
3679
4036
 
3680
4037
# This must be Linux ELF.
3681
 
linux*)
 
4038
linux* | k*bsd*-gnu)
3682
4039
  lt_cv_deplibs_check_method=pass_all
3683
4040
  ;;
3684
4041
 
3712
4069
  lt_cv_deplibs_check_method=pass_all
3713
4070
  ;;
3714
4071
 
 
4072
rdos*)
 
4073
  lt_cv_deplibs_check_method=pass_all
 
4074
  ;;
 
4075
 
3715
4076
solaris*)
3716
4077
  lt_cv_deplibs_check_method=pass_all
3717
4078
  ;;
3749
4110
esac
3750
4111
 
3751
4112
fi
3752
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
3753
4114
$as_echo "$lt_cv_deplibs_check_method" >&6; }
3754
4115
file_magic_cmd=$lt_cv_file_magic_cmd
3755
4116
deplibs_check_method=$lt_cv_deplibs_check_method
3769
4130
 
3770
4131
 
3771
4132
# Check whether --enable-libtool-lock was given.
3772
 
if test "${enable_libtool_lock+set}" = set; then
 
4133
if test "${enable_libtool_lock+set}" = set; then :
3773
4134
  enableval=$enable_libtool_lock;
3774
4135
fi
3775
4136
 
3781
4142
ia64-*-hpux*)
3782
4143
  # Find out which ABI we are using.
3783
4144
  echo 'int i;' > conftest.$ac_ext
3784
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4145
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3785
4146
  (eval $ac_compile) 2>&5
3786
4147
  ac_status=$?
3787
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
 
  (exit $ac_status); }; then
 
4148
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4149
  test $ac_status = 0; }; then
3789
4150
    case `/usr/bin/file conftest.$ac_objext` in
3790
4151
    *ELF-32*)
3791
4152
      HPUX_IA64_MODE="32"
3799
4160
  ;;
3800
4161
*-*-irix6*)
3801
4162
  # Find out which ABI we are using.
3802
 
  echo '#line 3802 "configure"' > conftest.$ac_ext
3803
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4163
  echo '#line 4163 "configure"' > conftest.$ac_ext
 
4164
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3804
4165
  (eval $ac_compile) 2>&5
3805
4166
  ac_status=$?
3806
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
 
  (exit $ac_status); }; then
 
4167
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4168
  test $ac_status = 0; }; then
3808
4169
   if test "$lt_cv_prog_gnu_ld" = yes; then
3809
4170
    case `/usr/bin/file conftest.$ac_objext` in
3810
4171
    *32-bit*)
3834
4195
  rm -rf conftest*
3835
4196
  ;;
3836
4197
 
3837
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4198
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4199
s390*-*linux*|sparc*-*linux*)
3838
4200
  # Find out which ABI we are using.
3839
4201
  echo 'int i;' > conftest.$ac_ext
3840
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4202
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3841
4203
  (eval $ac_compile) 2>&5
3842
4204
  ac_status=$?
3843
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844
 
  (exit $ac_status); }; then
 
4205
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4206
  test $ac_status = 0; }; then
3845
4207
    case `/usr/bin/file conftest.o` in
3846
4208
    *32-bit*)
3847
4209
      case $host in
 
4210
        x86_64-*kfreebsd*-gnu)
 
4211
          LD="${LD-ld} -m elf_i386_fbsd"
 
4212
          ;;
3848
4213
        x86_64-*linux*)
3849
4214
          LD="${LD-ld} -m elf_i386"
3850
4215
          ;;
3861
4226
      ;;
3862
4227
    *64-bit*)
3863
4228
      case $host in
 
4229
        x86_64-*kfreebsd*-gnu)
 
4230
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4231
          ;;
3864
4232
        x86_64-*linux*)
3865
4233
          LD="${LD-ld} -m elf_x86_64"
3866
4234
          ;;
3884
4252
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3885
4253
  SAVE_CFLAGS="$CFLAGS"
3886
4254
  CFLAGS="$CFLAGS -belf"
3887
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
3888
4256
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3889
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4257
if test "${lt_cv_cc_needs_belf+set}" = set; then :
3890
4258
  $as_echo_n "(cached) " >&6
3891
4259
else
3892
4260
  ac_ext=c
3895
4263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896
4264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
4265
 
3898
 
     cat >conftest.$ac_ext <<_ACEOF
3899
 
/* confdefs.h.  */
3900
 
_ACEOF
3901
 
cat confdefs.h >>conftest.$ac_ext
3902
 
cat >>conftest.$ac_ext <<_ACEOF
 
4266
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903
4267
/* end confdefs.h.  */
3904
4268
 
3905
4269
int
3910
4274
  return 0;
3911
4275
}
3912
4276
_ACEOF
3913
 
rm -f conftest.$ac_objext conftest$ac_exeext
3914
 
if { (ac_try="$ac_link"
3915
 
case "(($ac_try" in
3916
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917
 
  *) ac_try_echo=$ac_try;;
3918
 
esac
3919
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920
 
$as_echo "$ac_try_echo") >&5
3921
 
  (eval "$ac_link") 2>conftest.er1
3922
 
  ac_status=$?
3923
 
  grep -v '^ *+' conftest.er1 >conftest.err
3924
 
  rm -f conftest.er1
3925
 
  cat conftest.err >&5
3926
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927
 
  (exit $ac_status); } && {
3928
 
         test -z "$ac_c_werror_flag" ||
3929
 
         test ! -s conftest.err
3930
 
       } && test -s conftest$ac_exeext && {
3931
 
         test "$cross_compiling" = yes ||
3932
 
         $as_test_x conftest$ac_exeext
3933
 
       }; then
 
4277
if ac_fn_c_try_link "$LINENO"; then :
3934
4278
  lt_cv_cc_needs_belf=yes
3935
4279
else
3936
 
  $as_echo "$as_me: failed program was:" >&5
3937
 
sed 's/^/| /' conftest.$ac_ext >&5
3938
 
 
3939
 
        lt_cv_cc_needs_belf=no
 
4280
  lt_cv_cc_needs_belf=no
3940
4281
fi
3941
 
 
3942
 
rm -rf conftest.dSYM
3943
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3944
 
      conftest$ac_exeext conftest.$ac_ext
 
4282
rm -f core conftest.err conftest.$ac_objext \
 
4283
    conftest$ac_exeext conftest.$ac_ext
3945
4284
     ac_ext=c
3946
4285
ac_cpp='$CPP $CPPFLAGS'
3947
4286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949
4288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
4289
 
3951
4290
fi
3952
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
3953
4292
$as_echo "$lt_cv_cc_needs_belf" >&6; }
3954
4293
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3955
4294
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3959
4298
sparc*-*solaris*)
3960
4299
  # Find out which ABI we are using.
3961
4300
  echo 'int i;' > conftest.$ac_ext
3962
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4301
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3963
4302
  (eval $ac_compile) 2>&5
3964
4303
  ac_status=$?
3965
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966
 
  (exit $ac_status); }; then
 
4304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4305
  test $ac_status = 0; }; then
3967
4306
    case `/usr/bin/file conftest.o` in
3968
4307
    *64-bit*)
3969
4308
      case $lt_cv_prog_gnu_ld in
3970
4309
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3971
 
      *)    LD="${LD-ld} -64" ;;
 
4310
      *)
 
4311
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4312
          LD="${LD-ld} -64"
 
4313
        fi
 
4314
        ;;
3972
4315
      esac
3973
4316
      ;;
3974
4317
    esac
3980
4323
  if test -n "$ac_tool_prefix"; then
3981
4324
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3982
4325
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3983
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984
4327
$as_echo_n "checking for $ac_word... " >&6; }
3985
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4328
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3986
4329
  $as_echo_n "(cached) " >&6
3987
4330
else
3988
4331
  if test -n "$DLLTOOL"; then
3993
4336
do
3994
4337
  IFS=$as_save_IFS
3995
4338
  test -z "$as_dir" && as_dir=.
3996
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4339
    for ac_exec_ext in '' $ac_executable_extensions; do
3997
4340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998
4341
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3999
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4342
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000
4343
    break 2
4001
4344
  fi
4002
4345
done
4003
 
done
 
4346
  done
4004
4347
IFS=$as_save_IFS
4005
4348
 
4006
4349
fi
4007
4350
fi
4008
4351
DLLTOOL=$ac_cv_prog_DLLTOOL
4009
4352
if test -n "$DLLTOOL"; then
4010
 
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4011
4354
$as_echo "$DLLTOOL" >&6; }
4012
4355
else
4013
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014
4357
$as_echo "no" >&6; }
4015
4358
fi
4016
4359
 
4020
4363
  ac_ct_DLLTOOL=$DLLTOOL
4021
4364
  # Extract the first word of "dlltool", so it can be a program name with args.
4022
4365
set dummy dlltool; ac_word=$2
4023
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024
4367
$as_echo_n "checking for $ac_word... " >&6; }
4025
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4368
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4026
4369
  $as_echo_n "(cached) " >&6
4027
4370
else
4028
4371
  if test -n "$ac_ct_DLLTOOL"; then
4033
4376
do
4034
4377
  IFS=$as_save_IFS
4035
4378
  test -z "$as_dir" && as_dir=.
4036
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4379
    for ac_exec_ext in '' $ac_executable_extensions; do
4037
4380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038
4381
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4039
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4382
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040
4383
    break 2
4041
4384
  fi
4042
4385
done
4043
 
done
 
4386
  done
4044
4387
IFS=$as_save_IFS
4045
4388
 
4046
4389
fi
4047
4390
fi
4048
4391
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4049
4392
if test -n "$ac_ct_DLLTOOL"; then
4050
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4051
4394
$as_echo "$ac_ct_DLLTOOL" >&6; }
4052
4395
else
4053
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054
4397
$as_echo "no" >&6; }
4055
4398
fi
4056
4399
 
4059
4402
  else
4060
4403
    case $cross_compiling:$ac_tool_warned in
4061
4404
yes:)
4062
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4405
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063
4406
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064
4407
ac_tool_warned=yes ;;
4065
4408
esac
4072
4415
  if test -n "$ac_tool_prefix"; then
4073
4416
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4074
4417
set dummy ${ac_tool_prefix}as; ac_word=$2
4075
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076
4419
$as_echo_n "checking for $ac_word... " >&6; }
4077
 
if test "${ac_cv_prog_AS+set}" = set; then
 
4420
if test "${ac_cv_prog_AS+set}" = set; then :
4078
4421
  $as_echo_n "(cached) " >&6
4079
4422
else
4080
4423
  if test -n "$AS"; then
4085
4428
do
4086
4429
  IFS=$as_save_IFS
4087
4430
  test -z "$as_dir" && as_dir=.
4088
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4431
    for ac_exec_ext in '' $ac_executable_extensions; do
4089
4432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090
4433
    ac_cv_prog_AS="${ac_tool_prefix}as"
4091
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092
4435
    break 2
4093
4436
  fi
4094
4437
done
4095
 
done
 
4438
  done
4096
4439
IFS=$as_save_IFS
4097
4440
 
4098
4441
fi
4099
4442
fi
4100
4443
AS=$ac_cv_prog_AS
4101
4444
if test -n "$AS"; then
4102
 
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
4445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4103
4446
$as_echo "$AS" >&6; }
4104
4447
else
4105
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106
4449
$as_echo "no" >&6; }
4107
4450
fi
4108
4451
 
4112
4455
  ac_ct_AS=$AS
4113
4456
  # Extract the first word of "as", so it can be a program name with args.
4114
4457
set dummy as; ac_word=$2
4115
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116
4459
$as_echo_n "checking for $ac_word... " >&6; }
4117
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4460
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4118
4461
  $as_echo_n "(cached) " >&6
4119
4462
else
4120
4463
  if test -n "$ac_ct_AS"; then
4125
4468
do
4126
4469
  IFS=$as_save_IFS
4127
4470
  test -z "$as_dir" && as_dir=.
4128
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4471
    for ac_exec_ext in '' $ac_executable_extensions; do
4129
4472
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130
4473
    ac_cv_prog_ac_ct_AS="as"
4131
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4474
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132
4475
    break 2
4133
4476
  fi
4134
4477
done
4135
 
done
 
4478
  done
4136
4479
IFS=$as_save_IFS
4137
4480
 
4138
4481
fi
4139
4482
fi
4140
4483
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4141
4484
if test -n "$ac_ct_AS"; then
4142
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4143
4486
$as_echo "$ac_ct_AS" >&6; }
4144
4487
else
4145
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146
4489
$as_echo "no" >&6; }
4147
4490
fi
4148
4491
 
4151
4494
  else
4152
4495
    case $cross_compiling:$ac_tool_warned in
4153
4496
yes:)
4154
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4497
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155
4498
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156
4499
ac_tool_warned=yes ;;
4157
4500
esac
4164
4507
  if test -n "$ac_tool_prefix"; then
4165
4508
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4166
4509
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4167
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168
4511
$as_echo_n "checking for $ac_word... " >&6; }
4169
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4512
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4170
4513
  $as_echo_n "(cached) " >&6
4171
4514
else
4172
4515
  if test -n "$OBJDUMP"; then
4177
4520
do
4178
4521
  IFS=$as_save_IFS
4179
4522
  test -z "$as_dir" && as_dir=.
4180
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4523
    for ac_exec_ext in '' $ac_executable_extensions; do
4181
4524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182
4525
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4183
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184
4527
    break 2
4185
4528
  fi
4186
4529
done
4187
 
done
 
4530
  done
4188
4531
IFS=$as_save_IFS
4189
4532
 
4190
4533
fi
4191
4534
fi
4192
4535
OBJDUMP=$ac_cv_prog_OBJDUMP
4193
4536
if test -n "$OBJDUMP"; then
4194
 
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4195
4538
$as_echo "$OBJDUMP" >&6; }
4196
4539
else
4197
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198
4541
$as_echo "no" >&6; }
4199
4542
fi
4200
4543
 
4204
4547
  ac_ct_OBJDUMP=$OBJDUMP
4205
4548
  # Extract the first word of "objdump", so it can be a program name with args.
4206
4549
set dummy objdump; ac_word=$2
4207
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208
4551
$as_echo_n "checking for $ac_word... " >&6; }
4209
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4552
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4210
4553
  $as_echo_n "(cached) " >&6
4211
4554
else
4212
4555
  if test -n "$ac_ct_OBJDUMP"; then
4217
4560
do
4218
4561
  IFS=$as_save_IFS
4219
4562
  test -z "$as_dir" && as_dir=.
4220
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4563
    for ac_exec_ext in '' $ac_executable_extensions; do
4221
4564
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222
4565
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4223
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4566
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224
4567
    break 2
4225
4568
  fi
4226
4569
done
4227
 
done
 
4570
  done
4228
4571
IFS=$as_save_IFS
4229
4572
 
4230
4573
fi
4231
4574
fi
4232
4575
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4233
4576
if test -n "$ac_ct_OBJDUMP"; then
4234
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4577
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4235
4578
$as_echo "$ac_ct_OBJDUMP" >&6; }
4236
4579
else
4237
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4580
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238
4581
$as_echo "no" >&6; }
4239
4582
fi
4240
4583
 
4243
4586
  else
4244
4587
    case $cross_compiling:$ac_tool_warned in
4245
4588
yes:)
4246
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247
4590
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248
4591
ac_tool_warned=yes ;;
4249
4592
esac
4265
4608
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266
4609
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267
4610
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4269
4612
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4270
4613
# On Suns, sometimes $CPP names a directory.
4271
4614
if test -n "$CPP" && test -d "$CPP"; then
4272
4615
  CPP=
4273
4616
fi
4274
4617
if test -z "$CPP"; then
4275
 
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4618
  if test "${ac_cv_prog_CPP+set}" = set; then :
4276
4619
  $as_echo_n "(cached) " >&6
4277
4620
else
4278
4621
      # Double quotes because CPP needs to be expanded
4287
4630
  # <limits.h> exists even on freestanding compilers.
4288
4631
  # On the NeXT, cc -E runs the code through the compiler's parser,
4289
4632
  # not just through cpp. "Syntax error" is here to catch this case.
4290
 
  cat >conftest.$ac_ext <<_ACEOF
4291
 
/* confdefs.h.  */
4292
 
_ACEOF
4293
 
cat confdefs.h >>conftest.$ac_ext
4294
 
cat >>conftest.$ac_ext <<_ACEOF
 
4633
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295
4634
/* end confdefs.h.  */
4296
4635
#ifdef __STDC__
4297
4636
# include <limits.h>
4300
4639
#endif
4301
4640
                     Syntax error
4302
4641
_ACEOF
4303
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4304
 
case "(($ac_try" in
4305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306
 
  *) ac_try_echo=$ac_try;;
4307
 
esac
4308
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4309
 
$as_echo "$ac_try_echo") >&5
4310
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4311
 
  ac_status=$?
4312
 
  grep -v '^ *+' conftest.er1 >conftest.err
4313
 
  rm -f conftest.er1
4314
 
  cat conftest.err >&5
4315
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
 
  (exit $ac_status); } >/dev/null && {
4317
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318
 
         test ! -s conftest.err
4319
 
       }; then
4320
 
  :
 
4642
if ac_fn_c_try_cpp "$LINENO"; then :
 
4643
 
4321
4644
else
4322
 
  $as_echo "$as_me: failed program was:" >&5
4323
 
sed 's/^/| /' conftest.$ac_ext >&5
4324
 
 
4325
4645
  # Broken: fails on valid input.
4326
4646
continue
4327
4647
fi
4328
 
 
4329
4648
rm -f conftest.err conftest.$ac_ext
4330
4649
 
4331
4650
  # OK, works on sane cases.  Now check whether nonexistent headers
4332
4651
  # can be detected and how.
4333
 
  cat >conftest.$ac_ext <<_ACEOF
4334
 
/* confdefs.h.  */
4335
 
_ACEOF
4336
 
cat confdefs.h >>conftest.$ac_ext
4337
 
cat >>conftest.$ac_ext <<_ACEOF
 
4652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338
4653
/* end confdefs.h.  */
4339
4654
#include <ac_nonexistent.h>
4340
4655
_ACEOF
4341
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4342
 
case "(($ac_try" in
4343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344
 
  *) ac_try_echo=$ac_try;;
4345
 
esac
4346
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347
 
$as_echo "$ac_try_echo") >&5
4348
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349
 
  ac_status=$?
4350
 
  grep -v '^ *+' conftest.er1 >conftest.err
4351
 
  rm -f conftest.er1
4352
 
  cat conftest.err >&5
4353
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354
 
  (exit $ac_status); } >/dev/null && {
4355
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356
 
         test ! -s conftest.err
4357
 
       }; then
 
4656
if ac_fn_c_try_cpp "$LINENO"; then :
4358
4657
  # Broken: success on invalid input.
4359
4658
continue
4360
4659
else
4361
 
  $as_echo "$as_me: failed program was:" >&5
4362
 
sed 's/^/| /' conftest.$ac_ext >&5
4363
 
 
4364
4660
  # Passes both tests.
4365
4661
ac_preproc_ok=:
4366
4662
break
4367
4663
fi
4368
 
 
4369
4664
rm -f conftest.err conftest.$ac_ext
4370
4665
 
4371
4666
done
4372
4667
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373
4668
rm -f conftest.err conftest.$ac_ext
4374
 
if $ac_preproc_ok; then
 
4669
if $ac_preproc_ok; then :
4375
4670
  break
4376
4671
fi
4377
4672
 
4383
4678
else
4384
4679
  ac_cv_prog_CPP=$CPP
4385
4680
fi
4386
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4387
4682
$as_echo "$CPP" >&6; }
4388
4683
ac_preproc_ok=false
4389
4684
for ac_c_preproc_warn_flag in '' yes
4394
4689
  # <limits.h> exists even on freestanding compilers.
4395
4690
  # On the NeXT, cc -E runs the code through the compiler's parser,
4396
4691
  # not just through cpp. "Syntax error" is here to catch this case.
4397
 
  cat >conftest.$ac_ext <<_ACEOF
4398
 
/* confdefs.h.  */
4399
 
_ACEOF
4400
 
cat confdefs.h >>conftest.$ac_ext
4401
 
cat >>conftest.$ac_ext <<_ACEOF
 
4692
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402
4693
/* end confdefs.h.  */
4403
4694
#ifdef __STDC__
4404
4695
# include <limits.h>
4407
4698
#endif
4408
4699
                     Syntax error
4409
4700
_ACEOF
4410
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4411
 
case "(($ac_try" in
4412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413
 
  *) ac_try_echo=$ac_try;;
4414
 
esac
4415
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416
 
$as_echo "$ac_try_echo") >&5
4417
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4418
 
  ac_status=$?
4419
 
  grep -v '^ *+' conftest.er1 >conftest.err
4420
 
  rm -f conftest.er1
4421
 
  cat conftest.err >&5
4422
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423
 
  (exit $ac_status); } >/dev/null && {
4424
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4425
 
         test ! -s conftest.err
4426
 
       }; then
4427
 
  :
 
4701
if ac_fn_c_try_cpp "$LINENO"; then :
 
4702
 
4428
4703
else
4429
 
  $as_echo "$as_me: failed program was:" >&5
4430
 
sed 's/^/| /' conftest.$ac_ext >&5
4431
 
 
4432
4704
  # Broken: fails on valid input.
4433
4705
continue
4434
4706
fi
4435
 
 
4436
4707
rm -f conftest.err conftest.$ac_ext
4437
4708
 
4438
4709
  # OK, works on sane cases.  Now check whether nonexistent headers
4439
4710
  # can be detected and how.
4440
 
  cat >conftest.$ac_ext <<_ACEOF
4441
 
/* confdefs.h.  */
4442
 
_ACEOF
4443
 
cat confdefs.h >>conftest.$ac_ext
4444
 
cat >>conftest.$ac_ext <<_ACEOF
 
4711
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445
4712
/* end confdefs.h.  */
4446
4713
#include <ac_nonexistent.h>
4447
4714
_ACEOF
4448
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4449
 
case "(($ac_try" in
4450
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451
 
  *) ac_try_echo=$ac_try;;
4452
 
esac
4453
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454
 
$as_echo "$ac_try_echo") >&5
4455
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456
 
  ac_status=$?
4457
 
  grep -v '^ *+' conftest.er1 >conftest.err
4458
 
  rm -f conftest.er1
4459
 
  cat conftest.err >&5
4460
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461
 
  (exit $ac_status); } >/dev/null && {
4462
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463
 
         test ! -s conftest.err
4464
 
       }; then
 
4715
if ac_fn_c_try_cpp "$LINENO"; then :
4465
4716
  # Broken: success on invalid input.
4466
4717
continue
4467
4718
else
4468
 
  $as_echo "$as_me: failed program was:" >&5
4469
 
sed 's/^/| /' conftest.$ac_ext >&5
4470
 
 
4471
4719
  # Passes both tests.
4472
4720
ac_preproc_ok=:
4473
4721
break
4474
4722
fi
4475
 
 
4476
4723
rm -f conftest.err conftest.$ac_ext
4477
4724
 
4478
4725
done
4479
4726
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4480
4727
rm -f conftest.err conftest.$ac_ext
4481
 
if $ac_preproc_ok; then
4482
 
  :
 
4728
if $ac_preproc_ok; then :
 
4729
 
4483
4730
else
4484
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4731
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485
4732
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4487
 
See \`config.log' for more details." >&5
4488
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4489
 
See \`config.log' for more details." >&2;}
4490
 
   { (exit 1); exit 1; }; }; }
 
4733
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4734
See \`config.log' for more details." "$LINENO" 5; }
4491
4735
fi
4492
4736
 
4493
4737
ac_ext=c
4497
4741
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4742
 
4499
4743
 
4500
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4501
4745
$as_echo_n "checking for ANSI C header files... " >&6; }
4502
 
if test "${ac_cv_header_stdc+set}" = set; then
 
4746
if test "${ac_cv_header_stdc+set}" = set; then :
4503
4747
  $as_echo_n "(cached) " >&6
4504
4748
else
4505
 
  cat >conftest.$ac_ext <<_ACEOF
4506
 
/* confdefs.h.  */
4507
 
_ACEOF
4508
 
cat confdefs.h >>conftest.$ac_ext
4509
 
cat >>conftest.$ac_ext <<_ACEOF
 
4749
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510
4750
/* end confdefs.h.  */
4511
4751
#include <stdlib.h>
4512
4752
#include <stdarg.h>
4521
4761
  return 0;
4522
4762
}
4523
4763
_ACEOF
4524
 
rm -f conftest.$ac_objext
4525
 
if { (ac_try="$ac_compile"
4526
 
case "(($ac_try" in
4527
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528
 
  *) ac_try_echo=$ac_try;;
4529
 
esac
4530
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4531
 
$as_echo "$ac_try_echo") >&5
4532
 
  (eval "$ac_compile") 2>conftest.er1
4533
 
  ac_status=$?
4534
 
  grep -v '^ *+' conftest.er1 >conftest.err
4535
 
  rm -f conftest.er1
4536
 
  cat conftest.err >&5
4537
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538
 
  (exit $ac_status); } && {
4539
 
         test -z "$ac_c_werror_flag" ||
4540
 
         test ! -s conftest.err
4541
 
       } && test -s conftest.$ac_objext; then
 
4764
if ac_fn_c_try_compile "$LINENO"; then :
4542
4765
  ac_cv_header_stdc=yes
4543
4766
else
4544
 
  $as_echo "$as_me: failed program was:" >&5
4545
 
sed 's/^/| /' conftest.$ac_ext >&5
4546
 
 
4547
 
        ac_cv_header_stdc=no
 
4767
  ac_cv_header_stdc=no
4548
4768
fi
4549
 
 
4550
4769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551
4770
 
4552
4771
if test $ac_cv_header_stdc = yes; then
4553
4772
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554
 
  cat >conftest.$ac_ext <<_ACEOF
4555
 
/* confdefs.h.  */
4556
 
_ACEOF
4557
 
cat confdefs.h >>conftest.$ac_ext
4558
 
cat >>conftest.$ac_ext <<_ACEOF
 
4773
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559
4774
/* end confdefs.h.  */
4560
4775
#include <string.h>
4561
4776
 
4562
4777
_ACEOF
4563
4778
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564
 
  $EGREP "memchr" >/dev/null 2>&1; then
4565
 
  :
 
4779
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4780
 
4566
4781
else
4567
4782
  ac_cv_header_stdc=no
4568
4783
fi
4572
4787
 
4573
4788
if test $ac_cv_header_stdc = yes; then
4574
4789
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4575
 
  cat >conftest.$ac_ext <<_ACEOF
4576
 
/* confdefs.h.  */
4577
 
_ACEOF
4578
 
cat confdefs.h >>conftest.$ac_ext
4579
 
cat >>conftest.$ac_ext <<_ACEOF
 
4790
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580
4791
/* end confdefs.h.  */
4581
4792
#include <stdlib.h>
4582
4793
 
4583
4794
_ACEOF
4584
4795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585
 
  $EGREP "free" >/dev/null 2>&1; then
4586
 
  :
 
4796
  $EGREP "free" >/dev/null 2>&1; then :
 
4797
 
4587
4798
else
4588
4799
  ac_cv_header_stdc=no
4589
4800
fi
4593
4804
 
4594
4805
if test $ac_cv_header_stdc = yes; then
4595
4806
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4596
 
  if test "$cross_compiling" = yes; then
 
4807
  if test "$cross_compiling" = yes; then :
4597
4808
  :
4598
4809
else
4599
 
  cat >conftest.$ac_ext <<_ACEOF
4600
 
/* confdefs.h.  */
4601
 
_ACEOF
4602
 
cat confdefs.h >>conftest.$ac_ext
4603
 
cat >>conftest.$ac_ext <<_ACEOF
 
4810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604
4811
/* end confdefs.h.  */
4605
4812
#include <ctype.h>
4606
4813
#include <stdlib.h>
4627
4834
  return 0;
4628
4835
}
4629
4836
_ACEOF
4630
 
rm -f conftest$ac_exeext
4631
 
if { (ac_try="$ac_link"
4632
 
case "(($ac_try" in
4633
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634
 
  *) ac_try_echo=$ac_try;;
4635
 
esac
4636
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637
 
$as_echo "$ac_try_echo") >&5
4638
 
  (eval "$ac_link") 2>&5
4639
 
  ac_status=$?
4640
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642
 
  { (case "(($ac_try" in
4643
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644
 
  *) ac_try_echo=$ac_try;;
4645
 
esac
4646
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647
 
$as_echo "$ac_try_echo") >&5
4648
 
  (eval "$ac_try") 2>&5
4649
 
  ac_status=$?
4650
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651
 
  (exit $ac_status); }; }; then
4652
 
  :
 
4837
if ac_fn_c_try_run "$LINENO"; then :
 
4838
 
4653
4839
else
4654
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
4655
 
$as_echo "$as_me: failed program was:" >&5
4656
 
sed 's/^/| /' conftest.$ac_ext >&5
4657
 
 
4658
 
( exit $ac_status )
4659
 
ac_cv_header_stdc=no
4660
 
fi
4661
 
rm -rf conftest.dSYM
4662
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663
 
fi
4664
 
 
4665
 
 
4666
 
fi
4667
 
fi
4668
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4840
  ac_cv_header_stdc=no
 
4841
fi
 
4842
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4843
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4844
fi
 
4845
 
 
4846
fi
 
4847
fi
 
4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4669
4849
$as_echo "$ac_cv_header_stdc" >&6; }
4670
4850
if test $ac_cv_header_stdc = yes; then
4671
4851
 
4672
 
cat >>confdefs.h <<\_ACEOF
4673
 
#define STDC_HEADERS 1
4674
 
_ACEOF
 
4852
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4675
4853
 
4676
4854
fi
4677
4855
 
4678
4856
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4679
 
 
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
 
4685
 
 
4686
 
 
4687
 
 
4688
4857
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4689
4858
                  inttypes.h stdint.h unistd.h
4690
 
do
4691
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4692
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4693
 
$as_echo_n "checking for $ac_header... " >&6; }
4694
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4695
 
  $as_echo_n "(cached) " >&6
4696
 
else
4697
 
  cat >conftest.$ac_ext <<_ACEOF
4698
 
/* confdefs.h.  */
4699
 
_ACEOF
4700
 
cat confdefs.h >>conftest.$ac_ext
4701
 
cat >>conftest.$ac_ext <<_ACEOF
4702
 
/* end confdefs.h.  */
4703
 
$ac_includes_default
4704
 
 
4705
 
#include <$ac_header>
4706
 
_ACEOF
4707
 
rm -f conftest.$ac_objext
4708
 
if { (ac_try="$ac_compile"
4709
 
case "(($ac_try" in
4710
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711
 
  *) ac_try_echo=$ac_try;;
4712
 
esac
4713
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4714
 
$as_echo "$ac_try_echo") >&5
4715
 
  (eval "$ac_compile") 2>conftest.er1
4716
 
  ac_status=$?
4717
 
  grep -v '^ *+' conftest.er1 >conftest.err
4718
 
  rm -f conftest.er1
4719
 
  cat conftest.err >&5
4720
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
 
  (exit $ac_status); } && {
4722
 
         test -z "$ac_c_werror_flag" ||
4723
 
         test ! -s conftest.err
4724
 
       } && test -s conftest.$ac_objext; then
4725
 
  eval "$as_ac_Header=yes"
4726
 
else
4727
 
  $as_echo "$as_me: failed program was:" >&5
4728
 
sed 's/^/| /' conftest.$ac_ext >&5
4729
 
 
4730
 
        eval "$as_ac_Header=no"
4731
 
fi
4732
 
 
4733
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734
 
fi
4735
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4736
 
                 $as_echo "$as_val"'`
4737
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4738
 
$as_echo "$ac_res" >&6; }
4739
 
as_val=`eval 'as_val=${'$as_ac_Header'}
4740
 
                 $as_echo "$as_val"'`
4741
 
   if test "x$as_val" = x""yes; then
 
4859
do :
 
4860
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4861
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4862
"
 
4863
eval as_val=\$$as_ac_Header
 
4864
   if test "x$as_val" = x""yes; then :
4742
4865
  cat >>confdefs.h <<_ACEOF
4743
4866
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744
4867
_ACEOF
4748
4871
done
4749
4872
 
4750
4873
 
4751
 
 
4752
4874
for ac_header in dlfcn.h
4753
 
do
4754
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4756
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4757
 
$as_echo_n "checking for $ac_header... " >&6; }
4758
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759
 
  $as_echo_n "(cached) " >&6
4760
 
fi
4761
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4762
 
                 $as_echo "$as_val"'`
4763
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4764
 
$as_echo "$ac_res" >&6; }
4765
 
else
4766
 
  # Is the header compilable?
4767
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768
 
$as_echo_n "checking $ac_header usability... " >&6; }
4769
 
cat >conftest.$ac_ext <<_ACEOF
4770
 
/* confdefs.h.  */
4771
 
_ACEOF
4772
 
cat confdefs.h >>conftest.$ac_ext
4773
 
cat >>conftest.$ac_ext <<_ACEOF
4774
 
/* end confdefs.h.  */
4775
 
$ac_includes_default
4776
 
#include <$ac_header>
4777
 
_ACEOF
4778
 
rm -f conftest.$ac_objext
4779
 
if { (ac_try="$ac_compile"
4780
 
case "(($ac_try" in
4781
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782
 
  *) ac_try_echo=$ac_try;;
4783
 
esac
4784
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785
 
$as_echo "$ac_try_echo") >&5
4786
 
  (eval "$ac_compile") 2>conftest.er1
4787
 
  ac_status=$?
4788
 
  grep -v '^ *+' conftest.er1 >conftest.err
4789
 
  rm -f conftest.er1
4790
 
  cat conftest.err >&5
4791
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
 
  (exit $ac_status); } && {
4793
 
         test -z "$ac_c_werror_flag" ||
4794
 
         test ! -s conftest.err
4795
 
       } && test -s conftest.$ac_objext; then
4796
 
  ac_header_compiler=yes
4797
 
else
4798
 
  $as_echo "$as_me: failed program was:" >&5
4799
 
sed 's/^/| /' conftest.$ac_ext >&5
4800
 
 
4801
 
        ac_header_compiler=no
4802
 
fi
4803
 
 
4804
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4806
 
$as_echo "$ac_header_compiler" >&6; }
4807
 
 
4808
 
# Is the header present?
4809
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4810
 
$as_echo_n "checking $ac_header presence... " >&6; }
4811
 
cat >conftest.$ac_ext <<_ACEOF
4812
 
/* confdefs.h.  */
4813
 
_ACEOF
4814
 
cat confdefs.h >>conftest.$ac_ext
4815
 
cat >>conftest.$ac_ext <<_ACEOF
4816
 
/* end confdefs.h.  */
4817
 
#include <$ac_header>
4818
 
_ACEOF
4819
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4820
 
case "(($ac_try" in
4821
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822
 
  *) ac_try_echo=$ac_try;;
4823
 
esac
4824
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4825
 
$as_echo "$ac_try_echo") >&5
4826
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827
 
  ac_status=$?
4828
 
  grep -v '^ *+' conftest.er1 >conftest.err
4829
 
  rm -f conftest.er1
4830
 
  cat conftest.err >&5
4831
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832
 
  (exit $ac_status); } >/dev/null && {
4833
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4834
 
         test ! -s conftest.err
4835
 
       }; then
4836
 
  ac_header_preproc=yes
4837
 
else
4838
 
  $as_echo "$as_me: failed program was:" >&5
4839
 
sed 's/^/| /' conftest.$ac_ext >&5
4840
 
 
4841
 
  ac_header_preproc=no
4842
 
fi
4843
 
 
4844
 
rm -f conftest.err conftest.$ac_ext
4845
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846
 
$as_echo "$ac_header_preproc" >&6; }
4847
 
 
4848
 
# So?  What about this header?
4849
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4850
 
  yes:no: )
4851
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4855
 
    ac_header_preproc=yes
4856
 
    ;;
4857
 
  no:yes:* )
4858
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4861
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4862
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4865
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4866
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4870
 
 
4871
 
    ;;
4872
 
esac
4873
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4874
 
$as_echo_n "checking for $ac_header... " >&6; }
4875
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4876
 
  $as_echo_n "(cached) " >&6
4877
 
else
4878
 
  eval "$as_ac_Header=\$ac_header_preproc"
4879
 
fi
4880
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4881
 
                 $as_echo "$as_val"'`
4882
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4883
 
$as_echo "$ac_res" >&6; }
4884
 
 
4885
 
fi
4886
 
as_val=`eval 'as_val=${'$as_ac_Header'}
4887
 
                 $as_echo "$as_val"'`
4888
 
   if test "x$as_val" = x""yes; then
 
4875
do :
 
4876
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 
4877
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4889
4878
  cat >>confdefs.h <<_ACEOF
4890
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4879
#define HAVE_DLFCN_H 1
4891
4880
_ACEOF
4892
4881
 
4893
4882
fi
4908
4897
  do
4909
4898
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910
4899
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912
4901
$as_echo_n "checking for $ac_word... " >&6; }
4913
 
if test "${ac_cv_prog_CXX+set}" = set; then
 
4902
if test "${ac_cv_prog_CXX+set}" = set; then :
4914
4903
  $as_echo_n "(cached) " >&6
4915
4904
else
4916
4905
  if test -n "$CXX"; then
4921
4910
do
4922
4911
  IFS=$as_save_IFS
4923
4912
  test -z "$as_dir" && as_dir=.
4924
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4913
    for ac_exec_ext in '' $ac_executable_extensions; do
4925
4914
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926
4915
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4927
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928
4917
    break 2
4929
4918
  fi
4930
4919
done
4931
 
done
 
4920
  done
4932
4921
IFS=$as_save_IFS
4933
4922
 
4934
4923
fi
4935
4924
fi
4936
4925
CXX=$ac_cv_prog_CXX
4937
4926
if test -n "$CXX"; then
4938
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
4927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4939
4928
$as_echo "$CXX" >&6; }
4940
4929
else
4941
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942
4931
$as_echo "no" >&6; }
4943
4932
fi
4944
4933
 
4952
4941
do
4953
4942
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4954
4943
set dummy $ac_prog; ac_word=$2
4955
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956
4945
$as_echo_n "checking for $ac_word... " >&6; }
4957
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4946
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4958
4947
  $as_echo_n "(cached) " >&6
4959
4948
else
4960
4949
  if test -n "$ac_ct_CXX"; then
4965
4954
do
4966
4955
  IFS=$as_save_IFS
4967
4956
  test -z "$as_dir" && as_dir=.
4968
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4957
    for ac_exec_ext in '' $ac_executable_extensions; do
4969
4958
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970
4959
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4971
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4960
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972
4961
    break 2
4973
4962
  fi
4974
4963
done
4975
 
done
 
4964
  done
4976
4965
IFS=$as_save_IFS
4977
4966
 
4978
4967
fi
4979
4968
fi
4980
4969
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4981
4970
if test -n "$ac_ct_CXX"; then
4982
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4983
4972
$as_echo "$ac_ct_CXX" >&6; }
4984
4973
else
4985
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986
4975
$as_echo "no" >&6; }
4987
4976
fi
4988
4977
 
4995
4984
  else
4996
4985
    case $cross_compiling:$ac_tool_warned in
4997
4986
yes:)
4998
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999
4988
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000
4989
ac_tool_warned=yes ;;
5001
4990
esac
5006
4995
  fi
5007
4996
fi
5008
4997
# Provide some information about the compiler.
5009
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
4998
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5010
4999
set X $ac_compile
5011
5000
ac_compiler=$2
5012
 
{ (ac_try="$ac_compiler --version >&5"
5013
 
case "(($ac_try" in
5014
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015
 
  *) ac_try_echo=$ac_try;;
5016
 
esac
5017
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5018
 
$as_echo "$ac_try_echo") >&5
5019
 
  (eval "$ac_compiler --version >&5") 2>&5
5020
 
  ac_status=$?
5021
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022
 
  (exit $ac_status); }
5023
 
{ (ac_try="$ac_compiler -v >&5"
5024
 
case "(($ac_try" in
5025
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026
 
  *) ac_try_echo=$ac_try;;
5027
 
esac
5028
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029
 
$as_echo "$ac_try_echo") >&5
5030
 
  (eval "$ac_compiler -v >&5") 2>&5
5031
 
  ac_status=$?
5032
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033
 
  (exit $ac_status); }
5034
 
{ (ac_try="$ac_compiler -V >&5"
5035
 
case "(($ac_try" in
5036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037
 
  *) ac_try_echo=$ac_try;;
5038
 
esac
5039
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5040
 
$as_echo "$ac_try_echo") >&5
5041
 
  (eval "$ac_compiler -V >&5") 2>&5
5042
 
  ac_status=$?
5043
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
 
  (exit $ac_status); }
 
5001
for ac_option in --version -v -V -qversion; do
 
5002
  { { ac_try="$ac_compiler $ac_option >&5"
 
5003
case "(($ac_try" in
 
5004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5005
  *) ac_try_echo=$ac_try;;
 
5006
esac
 
5007
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5008
$as_echo "$ac_try_echo"; } >&5
 
5009
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5010
  ac_status=$?
 
5011
  if test -s conftest.err; then
 
5012
    sed '10a\
 
5013
... rest of stderr output deleted ...
 
5014
         10q' conftest.err >conftest.er1
 
5015
    cat conftest.er1 >&5
 
5016
    rm -f conftest.er1 conftest.err
 
5017
  fi
 
5018
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5019
  test $ac_status = 0; }
 
5020
done
5045
5021
 
5046
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5047
5023
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5048
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5024
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5049
5025
  $as_echo_n "(cached) " >&6
5050
5026
else
5051
 
  cat >conftest.$ac_ext <<_ACEOF
5052
 
/* confdefs.h.  */
5053
 
_ACEOF
5054
 
cat confdefs.h >>conftest.$ac_ext
5055
 
cat >>conftest.$ac_ext <<_ACEOF
 
5027
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056
5028
/* end confdefs.h.  */
5057
5029
 
5058
5030
int
5066
5038
  return 0;
5067
5039
}
5068
5040
_ACEOF
5069
 
rm -f conftest.$ac_objext
5070
 
if { (ac_try="$ac_compile"
5071
 
case "(($ac_try" in
5072
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073
 
  *) ac_try_echo=$ac_try;;
5074
 
esac
5075
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076
 
$as_echo "$ac_try_echo") >&5
5077
 
  (eval "$ac_compile") 2>conftest.er1
5078
 
  ac_status=$?
5079
 
  grep -v '^ *+' conftest.er1 >conftest.err
5080
 
  rm -f conftest.er1
5081
 
  cat conftest.err >&5
5082
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
 
  (exit $ac_status); } && {
5084
 
         test -z "$ac_cxx_werror_flag" ||
5085
 
         test ! -s conftest.err
5086
 
       } && test -s conftest.$ac_objext; then
 
5041
if ac_fn_cxx_try_compile "$LINENO"; then :
5087
5042
  ac_compiler_gnu=yes
5088
5043
else
5089
 
  $as_echo "$as_me: failed program was:" >&5
5090
 
sed 's/^/| /' conftest.$ac_ext >&5
5091
 
 
5092
 
        ac_compiler_gnu=no
 
5044
  ac_compiler_gnu=no
5093
5045
fi
5094
 
 
5095
5046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096
5047
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5097
5048
 
5098
5049
fi
5099
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5100
5051
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5101
5052
if test $ac_compiler_gnu = yes; then
5102
5053
  GXX=yes
5105
5056
fi
5106
5057
ac_test_CXXFLAGS=${CXXFLAGS+set}
5107
5058
ac_save_CXXFLAGS=$CXXFLAGS
5108
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5109
5060
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5110
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5061
if test "${ac_cv_prog_cxx_g+set}" = set; then :
5111
5062
  $as_echo_n "(cached) " >&6
5112
5063
else
5113
5064
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5114
5065
   ac_cxx_werror_flag=yes
5115
5066
   ac_cv_prog_cxx_g=no
5116
5067
   CXXFLAGS="-g"
5117
 
   cat >conftest.$ac_ext <<_ACEOF
5118
 
/* confdefs.h.  */
5119
 
_ACEOF
5120
 
cat confdefs.h >>conftest.$ac_ext
5121
 
cat >>conftest.$ac_ext <<_ACEOF
 
5068
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122
5069
/* end confdefs.h.  */
5123
5070
 
5124
5071
int
5129
5076
  return 0;
5130
5077
}
5131
5078
_ACEOF
5132
 
rm -f conftest.$ac_objext
5133
 
if { (ac_try="$ac_compile"
5134
 
case "(($ac_try" in
5135
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
 
  *) ac_try_echo=$ac_try;;
5137
 
esac
5138
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139
 
$as_echo "$ac_try_echo") >&5
5140
 
  (eval "$ac_compile") 2>conftest.er1
5141
 
  ac_status=$?
5142
 
  grep -v '^ *+' conftest.er1 >conftest.err
5143
 
  rm -f conftest.er1
5144
 
  cat conftest.err >&5
5145
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146
 
  (exit $ac_status); } && {
5147
 
         test -z "$ac_cxx_werror_flag" ||
5148
 
         test ! -s conftest.err
5149
 
       } && test -s conftest.$ac_objext; then
 
5079
if ac_fn_cxx_try_compile "$LINENO"; then :
5150
5080
  ac_cv_prog_cxx_g=yes
5151
5081
else
5152
 
  $as_echo "$as_me: failed program was:" >&5
5153
 
sed 's/^/| /' conftest.$ac_ext >&5
5154
 
 
5155
 
        CXXFLAGS=""
5156
 
      cat >conftest.$ac_ext <<_ACEOF
5157
 
/* confdefs.h.  */
5158
 
_ACEOF
5159
 
cat confdefs.h >>conftest.$ac_ext
5160
 
cat >>conftest.$ac_ext <<_ACEOF
 
5082
  CXXFLAGS=""
 
5083
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161
5084
/* end confdefs.h.  */
5162
5085
 
5163
5086
int
5168
5091
  return 0;
5169
5092
}
5170
5093
_ACEOF
5171
 
rm -f conftest.$ac_objext
5172
 
if { (ac_try="$ac_compile"
5173
 
case "(($ac_try" in
5174
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175
 
  *) ac_try_echo=$ac_try;;
5176
 
esac
5177
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5178
 
$as_echo "$ac_try_echo") >&5
5179
 
  (eval "$ac_compile") 2>conftest.er1
5180
 
  ac_status=$?
5181
 
  grep -v '^ *+' conftest.er1 >conftest.err
5182
 
  rm -f conftest.er1
5183
 
  cat conftest.err >&5
5184
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185
 
  (exit $ac_status); } && {
5186
 
         test -z "$ac_cxx_werror_flag" ||
5187
 
         test ! -s conftest.err
5188
 
       } && test -s conftest.$ac_objext; then
5189
 
  :
 
5094
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5095
 
5190
5096
else
5191
 
  $as_echo "$as_me: failed program was:" >&5
5192
 
sed 's/^/| /' conftest.$ac_ext >&5
5193
 
 
5194
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5097
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5195
5098
         CXXFLAGS="-g"
5196
 
         cat >conftest.$ac_ext <<_ACEOF
5197
 
/* confdefs.h.  */
5198
 
_ACEOF
5199
 
cat confdefs.h >>conftest.$ac_ext
5200
 
cat >>conftest.$ac_ext <<_ACEOF
 
5099
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201
5100
/* end confdefs.h.  */
5202
5101
 
5203
5102
int
5208
5107
  return 0;
5209
5108
}
5210
5109
_ACEOF
5211
 
rm -f conftest.$ac_objext
5212
 
if { (ac_try="$ac_compile"
5213
 
case "(($ac_try" in
5214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215
 
  *) ac_try_echo=$ac_try;;
5216
 
esac
5217
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218
 
$as_echo "$ac_try_echo") >&5
5219
 
  (eval "$ac_compile") 2>conftest.er1
5220
 
  ac_status=$?
5221
 
  grep -v '^ *+' conftest.er1 >conftest.err
5222
 
  rm -f conftest.er1
5223
 
  cat conftest.err >&5
5224
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
 
  (exit $ac_status); } && {
5226
 
         test -z "$ac_cxx_werror_flag" ||
5227
 
         test ! -s conftest.err
5228
 
       } && test -s conftest.$ac_objext; then
 
5110
if ac_fn_cxx_try_compile "$LINENO"; then :
5229
5111
  ac_cv_prog_cxx_g=yes
5230
 
else
5231
 
  $as_echo "$as_me: failed program was:" >&5
5232
 
sed 's/^/| /' conftest.$ac_ext >&5
5233
 
 
5234
 
 
5235
 
fi
5236
 
 
5237
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238
 
fi
5239
 
 
5240
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241
 
fi
5242
 
 
 
5112
fi
 
5113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5114
fi
 
5115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5116
fi
5243
5117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244
5118
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5245
5119
fi
5246
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5247
5121
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5248
5122
if test "$ac_test_CXXFLAGS" = set; then
5249
5123
  CXXFLAGS=$ac_save_CXXFLAGS
5276
5150
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277
5151
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278
5152
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5280
5154
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5281
5155
if test -z "$CXXCPP"; then
5282
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5156
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5283
5157
  $as_echo_n "(cached) " >&6
5284
5158
else
5285
5159
      # Double quotes because CXXCPP needs to be expanded
5294
5168
  # <limits.h> exists even on freestanding compilers.
5295
5169
  # On the NeXT, cc -E runs the code through the compiler's parser,
5296
5170
  # not just through cpp. "Syntax error" is here to catch this case.
5297
 
  cat >conftest.$ac_ext <<_ACEOF
5298
 
/* confdefs.h.  */
5299
 
_ACEOF
5300
 
cat confdefs.h >>conftest.$ac_ext
5301
 
cat >>conftest.$ac_ext <<_ACEOF
 
5171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302
5172
/* end confdefs.h.  */
5303
5173
#ifdef __STDC__
5304
5174
# include <limits.h>
5307
5177
#endif
5308
5178
                     Syntax error
5309
5179
_ACEOF
5310
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5311
 
case "(($ac_try" in
5312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313
 
  *) ac_try_echo=$ac_try;;
5314
 
esac
5315
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316
 
$as_echo "$ac_try_echo") >&5
5317
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5318
 
  ac_status=$?
5319
 
  grep -v '^ *+' conftest.er1 >conftest.err
5320
 
  rm -f conftest.er1
5321
 
  cat conftest.err >&5
5322
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323
 
  (exit $ac_status); } >/dev/null && {
5324
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5325
 
         test ! -s conftest.err
5326
 
       }; then
5327
 
  :
 
5180
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
5181
 
5328
5182
else
5329
 
  $as_echo "$as_me: failed program was:" >&5
5330
 
sed 's/^/| /' conftest.$ac_ext >&5
5331
 
 
5332
5183
  # Broken: fails on valid input.
5333
5184
continue
5334
5185
fi
5335
 
 
5336
5186
rm -f conftest.err conftest.$ac_ext
5337
5187
 
5338
5188
  # OK, works on sane cases.  Now check whether nonexistent headers
5339
5189
  # can be detected and how.
5340
 
  cat >conftest.$ac_ext <<_ACEOF
5341
 
/* confdefs.h.  */
5342
 
_ACEOF
5343
 
cat confdefs.h >>conftest.$ac_ext
5344
 
cat >>conftest.$ac_ext <<_ACEOF
 
5190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345
5191
/* end confdefs.h.  */
5346
5192
#include <ac_nonexistent.h>
5347
5193
_ACEOF
5348
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5349
 
case "(($ac_try" in
5350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351
 
  *) ac_try_echo=$ac_try;;
5352
 
esac
5353
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5354
 
$as_echo "$ac_try_echo") >&5
5355
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5356
 
  ac_status=$?
5357
 
  grep -v '^ *+' conftest.er1 >conftest.err
5358
 
  rm -f conftest.er1
5359
 
  cat conftest.err >&5
5360
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
 
  (exit $ac_status); } >/dev/null && {
5362
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5363
 
         test ! -s conftest.err
5364
 
       }; then
 
5194
if ac_fn_cxx_try_cpp "$LINENO"; then :
5365
5195
  # Broken: success on invalid input.
5366
5196
continue
5367
5197
else
5368
 
  $as_echo "$as_me: failed program was:" >&5
5369
 
sed 's/^/| /' conftest.$ac_ext >&5
5370
 
 
5371
5198
  # Passes both tests.
5372
5199
ac_preproc_ok=:
5373
5200
break
5374
5201
fi
5375
 
 
5376
5202
rm -f conftest.err conftest.$ac_ext
5377
5203
 
5378
5204
done
5379
5205
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5380
5206
rm -f conftest.err conftest.$ac_ext
5381
 
if $ac_preproc_ok; then
 
5207
if $ac_preproc_ok; then :
5382
5208
  break
5383
5209
fi
5384
5210
 
5390
5216
else
5391
5217
  ac_cv_prog_CXXCPP=$CXXCPP
5392
5218
fi
5393
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5394
5220
$as_echo "$CXXCPP" >&6; }
5395
5221
ac_preproc_ok=false
5396
5222
for ac_cxx_preproc_warn_flag in '' yes
5401
5227
  # <limits.h> exists even on freestanding compilers.
5402
5228
  # On the NeXT, cc -E runs the code through the compiler's parser,
5403
5229
  # not just through cpp. "Syntax error" is here to catch this case.
5404
 
  cat >conftest.$ac_ext <<_ACEOF
5405
 
/* confdefs.h.  */
5406
 
_ACEOF
5407
 
cat confdefs.h >>conftest.$ac_ext
5408
 
cat >>conftest.$ac_ext <<_ACEOF
 
5230
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409
5231
/* end confdefs.h.  */
5410
5232
#ifdef __STDC__
5411
5233
# include <limits.h>
5414
5236
#endif
5415
5237
                     Syntax error
5416
5238
_ACEOF
5417
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5418
 
case "(($ac_try" in
5419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420
 
  *) ac_try_echo=$ac_try;;
5421
 
esac
5422
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5423
 
$as_echo "$ac_try_echo") >&5
5424
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425
 
  ac_status=$?
5426
 
  grep -v '^ *+' conftest.er1 >conftest.err
5427
 
  rm -f conftest.er1
5428
 
  cat conftest.err >&5
5429
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
 
  (exit $ac_status); } >/dev/null && {
5431
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5432
 
         test ! -s conftest.err
5433
 
       }; then
5434
 
  :
 
5239
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
5240
 
5435
5241
else
5436
 
  $as_echo "$as_me: failed program was:" >&5
5437
 
sed 's/^/| /' conftest.$ac_ext >&5
5438
 
 
5439
5242
  # Broken: fails on valid input.
5440
5243
continue
5441
5244
fi
5442
 
 
5443
5245
rm -f conftest.err conftest.$ac_ext
5444
5246
 
5445
5247
  # OK, works on sane cases.  Now check whether nonexistent headers
5446
5248
  # can be detected and how.
5447
 
  cat >conftest.$ac_ext <<_ACEOF
5448
 
/* confdefs.h.  */
5449
 
_ACEOF
5450
 
cat confdefs.h >>conftest.$ac_ext
5451
 
cat >>conftest.$ac_ext <<_ACEOF
 
5249
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452
5250
/* end confdefs.h.  */
5453
5251
#include <ac_nonexistent.h>
5454
5252
_ACEOF
5455
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5456
 
case "(($ac_try" in
5457
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458
 
  *) ac_try_echo=$ac_try;;
5459
 
esac
5460
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461
 
$as_echo "$ac_try_echo") >&5
5462
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5463
 
  ac_status=$?
5464
 
  grep -v '^ *+' conftest.er1 >conftest.err
5465
 
  rm -f conftest.er1
5466
 
  cat conftest.err >&5
5467
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468
 
  (exit $ac_status); } >/dev/null && {
5469
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5470
 
         test ! -s conftest.err
5471
 
       }; then
 
5253
if ac_fn_cxx_try_cpp "$LINENO"; then :
5472
5254
  # Broken: success on invalid input.
5473
5255
continue
5474
5256
else
5475
 
  $as_echo "$as_me: failed program was:" >&5
5476
 
sed 's/^/| /' conftest.$ac_ext >&5
5477
 
 
5478
5257
  # Passes both tests.
5479
5258
ac_preproc_ok=:
5480
5259
break
5481
5260
fi
5482
 
 
5483
5261
rm -f conftest.err conftest.$ac_ext
5484
5262
 
5485
5263
done
5486
5264
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5487
5265
rm -f conftest.err conftest.$ac_ext
5488
 
if $ac_preproc_ok; then
5489
 
  :
 
5266
if $ac_preproc_ok; then :
 
5267
 
5490
5268
else
5491
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5269
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492
5270
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5493
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5494
 
See \`config.log' for more details." >&5
5495
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5496
 
See \`config.log' for more details." >&2;}
5497
 
   { (exit 1); exit 1; }; }; }
 
5271
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
 
5272
See \`config.log' for more details." "$LINENO" 5; }
5498
5273
fi
5499
5274
 
5500
5275
ac_ext=cpp
5515
5290
  do
5516
5291
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5517
5292
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5518
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519
5294
$as_echo_n "checking for $ac_word... " >&6; }
5520
 
if test "${ac_cv_prog_F77+set}" = set; then
 
5295
if test "${ac_cv_prog_F77+set}" = set; then :
5521
5296
  $as_echo_n "(cached) " >&6
5522
5297
else
5523
5298
  if test -n "$F77"; then
5528
5303
do
5529
5304
  IFS=$as_save_IFS
5530
5305
  test -z "$as_dir" && as_dir=.
5531
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5306
    for ac_exec_ext in '' $ac_executable_extensions; do
5532
5307
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533
5308
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5534
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5309
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535
5310
    break 2
5536
5311
  fi
5537
5312
done
5538
 
done
 
5313
  done
5539
5314
IFS=$as_save_IFS
5540
5315
 
5541
5316
fi
5542
5317
fi
5543
5318
F77=$ac_cv_prog_F77
5544
5319
if test -n "$F77"; then
5545
 
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
5320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5546
5321
$as_echo "$F77" >&6; }
5547
5322
else
5548
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549
5324
$as_echo "no" >&6; }
5550
5325
fi
5551
5326
 
5559
5334
do
5560
5335
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5561
5336
set dummy $ac_prog; ac_word=$2
5562
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563
5338
$as_echo_n "checking for $ac_word... " >&6; }
5564
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5339
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5565
5340
  $as_echo_n "(cached) " >&6
5566
5341
else
5567
5342
  if test -n "$ac_ct_F77"; then
5572
5347
do
5573
5348
  IFS=$as_save_IFS
5574
5349
  test -z "$as_dir" && as_dir=.
5575
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5350
    for ac_exec_ext in '' $ac_executable_extensions; do
5576
5351
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577
5352
    ac_cv_prog_ac_ct_F77="$ac_prog"
5578
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5353
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579
5354
    break 2
5580
5355
  fi
5581
5356
done
5582
 
done
 
5357
  done
5583
5358
IFS=$as_save_IFS
5584
5359
 
5585
5360
fi
5586
5361
fi
5587
5362
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5588
5363
if test -n "$ac_ct_F77"; then
5589
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5590
5365
$as_echo "$ac_ct_F77" >&6; }
5591
5366
else
5592
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593
5368
$as_echo "no" >&6; }
5594
5369
fi
5595
5370
 
5602
5377
  else
5603
5378
    case $cross_compiling:$ac_tool_warned in
5604
5379
yes:)
5605
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606
5381
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607
5382
ac_tool_warned=yes ;;
5608
5383
esac
5612
5387
 
5613
5388
 
5614
5389
# Provide some information about the compiler.
5615
 
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5390
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5616
5391
set X $ac_compile
5617
5392
ac_compiler=$2
5618
 
{ (ac_try="$ac_compiler --version >&5"
5619
 
case "(($ac_try" in
5620
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621
 
  *) ac_try_echo=$ac_try;;
5622
 
esac
5623
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624
 
$as_echo "$ac_try_echo") >&5
5625
 
  (eval "$ac_compiler --version >&5") 2>&5
5626
 
  ac_status=$?
5627
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628
 
  (exit $ac_status); }
5629
 
{ (ac_try="$ac_compiler -v >&5"
5630
 
case "(($ac_try" in
5631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632
 
  *) ac_try_echo=$ac_try;;
5633
 
esac
5634
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5635
 
$as_echo "$ac_try_echo") >&5
5636
 
  (eval "$ac_compiler -v >&5") 2>&5
5637
 
  ac_status=$?
5638
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639
 
  (exit $ac_status); }
5640
 
{ (ac_try="$ac_compiler -V >&5"
5641
 
case "(($ac_try" in
5642
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643
 
  *) ac_try_echo=$ac_try;;
5644
 
esac
5645
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5646
 
$as_echo "$ac_try_echo") >&5
5647
 
  (eval "$ac_compiler -V >&5") 2>&5
5648
 
  ac_status=$?
5649
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650
 
  (exit $ac_status); }
 
5393
for ac_option in --version -v -V -qversion; do
 
5394
  { { ac_try="$ac_compiler $ac_option >&5"
 
5395
case "(($ac_try" in
 
5396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5397
  *) ac_try_echo=$ac_try;;
 
5398
esac
 
5399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5400
$as_echo "$ac_try_echo"; } >&5
 
5401
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5402
  ac_status=$?
 
5403
  if test -s conftest.err; then
 
5404
    sed '10a\
 
5405
... rest of stderr output deleted ...
 
5406
         10q' conftest.err >conftest.er1
 
5407
    cat conftest.er1 >&5
 
5408
    rm -f conftest.er1 conftest.err
 
5409
  fi
 
5410
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5411
  test $ac_status = 0; }
 
5412
done
5651
5413
rm -f a.out
5652
5414
 
5653
5415
# If we don't use `.F' as extension, the preprocessor is not run on the
5654
5416
# input file.  (Note that this only needs to work for GNU compilers.)
5655
5417
ac_save_ext=$ac_ext
5656
5418
ac_ext=F
5657
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5658
5420
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5659
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5421
if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5660
5422
  $as_echo_n "(cached) " >&6
5661
5423
else
5662
 
  cat >conftest.$ac_ext <<_ACEOF
 
5424
  cat > conftest.$ac_ext <<_ACEOF
5663
5425
      program main
5664
5426
#ifndef __GNUC__
5665
5427
       choke me
5667
5429
 
5668
5430
      end
5669
5431
_ACEOF
5670
 
rm -f conftest.$ac_objext
5671
 
if { (ac_try="$ac_compile"
5672
 
case "(($ac_try" in
5673
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674
 
  *) ac_try_echo=$ac_try;;
5675
 
esac
5676
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677
 
$as_echo "$ac_try_echo") >&5
5678
 
  (eval "$ac_compile") 2>conftest.er1
5679
 
  ac_status=$?
5680
 
  grep -v '^ *+' conftest.er1 >conftest.err
5681
 
  rm -f conftest.er1
5682
 
  cat conftest.err >&5
5683
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684
 
  (exit $ac_status); } && {
5685
 
         test -z "$ac_f77_werror_flag" ||
5686
 
         test ! -s conftest.err
5687
 
       } && test -s conftest.$ac_objext; then
 
5432
if ac_fn_f77_try_compile "$LINENO"; then :
5688
5433
  ac_compiler_gnu=yes
5689
5434
else
5690
 
  $as_echo "$as_me: failed program was:" >&5
5691
 
sed 's/^/| /' conftest.$ac_ext >&5
5692
 
 
5693
 
        ac_compiler_gnu=no
 
5435
  ac_compiler_gnu=no
5694
5436
fi
5695
 
 
5696
5437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697
5438
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5698
5439
 
5699
5440
fi
5700
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5701
5442
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5702
5443
ac_ext=$ac_save_ext
5703
5444
ac_test_FFLAGS=${FFLAGS+set}
5704
5445
ac_save_FFLAGS=$FFLAGS
5705
5446
FFLAGS=
5706
 
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5707
5448
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5708
 
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5449
if test "${ac_cv_prog_f77_g+set}" = set; then :
5709
5450
  $as_echo_n "(cached) " >&6
5710
5451
else
5711
5452
  FFLAGS=-g
5712
 
cat >conftest.$ac_ext <<_ACEOF
 
5453
cat > conftest.$ac_ext <<_ACEOF
5713
5454
      program main
5714
5455
 
5715
5456
      end
5716
5457
_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724
 
$as_echo "$ac_try_echo") >&5
5725
 
  (eval "$ac_compile") 2>conftest.er1
5726
 
  ac_status=$?
5727
 
  grep -v '^ *+' conftest.er1 >conftest.err
5728
 
  rm -f conftest.er1
5729
 
  cat conftest.err >&5
5730
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
 
  (exit $ac_status); } && {
5732
 
         test -z "$ac_f77_werror_flag" ||
5733
 
         test ! -s conftest.err
5734
 
       } && test -s conftest.$ac_objext; then
 
5458
if ac_fn_f77_try_compile "$LINENO"; then :
5735
5459
  ac_cv_prog_f77_g=yes
5736
5460
else
5737
 
  $as_echo "$as_me: failed program was:" >&5
5738
 
sed 's/^/| /' conftest.$ac_ext >&5
5739
 
 
5740
 
        ac_cv_prog_f77_g=no
 
5461
  ac_cv_prog_f77_g=no
5741
5462
fi
5742
 
 
5743
5463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744
5464
 
5745
5465
fi
5746
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5747
5467
$as_echo "$ac_cv_prog_f77_g" >&6; }
5748
5468
if test "$ac_test_FFLAGS" = set; then
5749
5469
  FFLAGS=$ac_save_FFLAGS
5775
5495
 
5776
5496
 
5777
5497
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5778
 
 
5779
5498
# find the maximum length of command line arguments
5780
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5781
5500
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5782
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5501
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5783
5502
  $as_echo_n "(cached) " >&6
5784
5503
else
5785
5504
    i=0
5862
5581
    fi
5863
5582
    ;;
5864
5583
  *)
5865
 
    # If test is not a shell built-in, we'll probably end up computing a
5866
 
    # maximum length that is only half of the actual maximum length, but
5867
 
    # we can't tell.
5868
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5869
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5584
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5585
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5586
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5587
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5588
    else
 
5589
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5590
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5870
5591
               = "XX$teststring") >/dev/null 2>&1 &&
5871
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5872
 
            lt_cv_sys_max_cmd_len=$new_result &&
5873
 
            test $i != 17 # 1/2 MB should be enough
5874
 
    do
5875
 
      i=`expr $i + 1`
5876
 
      teststring=$teststring$teststring
5877
 
    done
5878
 
    teststring=
5879
 
    # Add a significant safety factor because C++ compilers can tack on massive
5880
 
    # amounts of additional arguments before passing them to the linker.
5881
 
    # It appears as though 1/2 is a usable value.
5882
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5592
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5593
              lt_cv_sys_max_cmd_len=$new_result &&
 
5594
              test $i != 17 # 1/2 MB should be enough
 
5595
      do
 
5596
        i=`expr $i + 1`
 
5597
        teststring=$teststring$teststring
 
5598
      done
 
5599
      teststring=
 
5600
      # Add a significant safety factor because C++ compilers can tack on massive
 
5601
      # amounts of additional arguments before passing them to the linker.
 
5602
      # It appears as though 1/2 is a usable value.
 
5603
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5604
    fi
5883
5605
    ;;
5884
5606
  esac
5885
5607
 
5886
5608
fi
5887
5609
 
5888
5610
if test -n $lt_cv_sys_max_cmd_len ; then
5889
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5890
5612
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5891
5613
else
5892
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
5614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5893
5615
$as_echo "none" >&6; }
5894
5616
fi
5895
5617
 
5896
5618
 
5897
5619
 
5898
5620
 
 
5621
 
5899
5622
# Check for command to grab the raw symbol name followed by C symbol from nm.
5900
 
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5901
5624
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5902
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5625
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5903
5626
  $as_echo_n "(cached) " >&6
5904
5627
else
5905
5628
 
5933
5656
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5934
5657
  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'"
5935
5658
  ;;
5936
 
linux*)
 
5659
linux* | k*bsd*-gnu)
5937
5660
  if test "$host_cpu" = ia64; then
5938
5661
    symcode='[ABCDGIRSTW]'
5939
5662
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6002
5725
int main(){nm_test_var='a';nm_test_func();return(0);}
6003
5726
EOF
6004
5727
 
6005
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5728
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6006
5729
  (eval $ac_compile) 2>&5
6007
5730
  ac_status=$?
6008
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009
 
  (exit $ac_status); }; then
 
5731
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5732
  test $ac_status = 0; }; then
6010
5733
    # Now try to grab the symbols.
6011
5734
    nlist=conftest.nm
6012
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5735
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6013
5736
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6014
5737
  ac_status=$?
6015
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016
 
  (exit $ac_status); } && test -s "$nlist"; then
 
5738
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5739
  test $ac_status = 0; } && test -s "$nlist"; then
6017
5740
      # Try sorting and uniquifying the output.
6018
5741
      if sort "$nlist" | uniq > "$nlist"T; then
6019
5742
        mv -f "$nlist"T "$nlist"
6064
5787
          lt_save_CFLAGS="$CFLAGS"
6065
5788
          LIBS="conftstm.$ac_objext"
6066
5789
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6067
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5790
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6068
5791
  (eval $ac_link) 2>&5
6069
5792
  ac_status=$?
6070
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5793
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5794
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6072
5795
            pipe_works=yes
6073
5796
          fi
6074
5797
          LIBS="$lt_save_LIBS"
6086
5809
    echo "$progname: failed program was:" >&5
6087
5810
    cat conftest.$ac_ext >&5
6088
5811
  fi
6089
 
  rm -f conftest* conftst*
 
5812
  rm -rf conftest* conftst*
6090
5813
 
6091
5814
  # Do not use the global_symbol_pipe unless it works.
6092
5815
  if test "$pipe_works" = yes; then
6102
5825
  lt_cv_sys_global_symbol_to_cdecl=
6103
5826
fi
6104
5827
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6105
 
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
5828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6106
5829
$as_echo "failed" >&6; }
6107
5830
else
6108
 
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
5831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6109
5832
$as_echo "ok" >&6; }
6110
5833
fi
6111
5834
 
6112
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6113
5836
$as_echo_n "checking for objdir... " >&6; }
6114
 
if test "${lt_cv_objdir+set}" = set; then
 
5837
if test "${lt_cv_objdir+set}" = set; then :
6115
5838
  $as_echo_n "(cached) " >&6
6116
5839
else
6117
5840
  rm -f .libs 2>/dev/null
6124
5847
fi
6125
5848
rmdir .libs 2>/dev/null
6126
5849
fi
6127
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6128
5851
$as_echo "$lt_cv_objdir" >&6; }
6129
5852
objdir=$lt_cv_objdir
6130
5853
 
6176
5899
if test -n "$ac_tool_prefix"; then
6177
5900
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6178
5901
set dummy ${ac_tool_prefix}ar; ac_word=$2
6179
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180
5903
$as_echo_n "checking for $ac_word... " >&6; }
6181
 
if test "${ac_cv_prog_AR+set}" = set; then
 
5904
if test "${ac_cv_prog_AR+set}" = set; then :
6182
5905
  $as_echo_n "(cached) " >&6
6183
5906
else
6184
5907
  if test -n "$AR"; then
6189
5912
do
6190
5913
  IFS=$as_save_IFS
6191
5914
  test -z "$as_dir" && as_dir=.
6192
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5915
    for ac_exec_ext in '' $ac_executable_extensions; do
6193
5916
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194
5917
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6195
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5918
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196
5919
    break 2
6197
5920
  fi
6198
5921
done
6199
 
done
 
5922
  done
6200
5923
IFS=$as_save_IFS
6201
5924
 
6202
5925
fi
6203
5926
fi
6204
5927
AR=$ac_cv_prog_AR
6205
5928
if test -n "$AR"; then
6206
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6207
5930
$as_echo "$AR" >&6; }
6208
5931
else
6209
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210
5933
$as_echo "no" >&6; }
6211
5934
fi
6212
5935
 
6216
5939
  ac_ct_AR=$AR
6217
5940
  # Extract the first word of "ar", so it can be a program name with args.
6218
5941
set dummy ar; ac_word=$2
6219
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220
5943
$as_echo_n "checking for $ac_word... " >&6; }
6221
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5944
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6222
5945
  $as_echo_n "(cached) " >&6
6223
5946
else
6224
5947
  if test -n "$ac_ct_AR"; then
6229
5952
do
6230
5953
  IFS=$as_save_IFS
6231
5954
  test -z "$as_dir" && as_dir=.
6232
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5955
    for ac_exec_ext in '' $ac_executable_extensions; do
6233
5956
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234
5957
    ac_cv_prog_ac_ct_AR="ar"
6235
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5958
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236
5959
    break 2
6237
5960
  fi
6238
5961
done
6239
 
done
 
5962
  done
6240
5963
IFS=$as_save_IFS
6241
5964
 
6242
5965
fi
6243
5966
fi
6244
5967
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6245
5968
if test -n "$ac_ct_AR"; then
6246
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6247
5970
$as_echo "$ac_ct_AR" >&6; }
6248
5971
else
6249
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250
5973
$as_echo "no" >&6; }
6251
5974
fi
6252
5975
 
6255
5978
  else
6256
5979
    case $cross_compiling:$ac_tool_warned in
6257
5980
yes:)
6258
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5981
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259
5982
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260
5983
ac_tool_warned=yes ;;
6261
5984
esac
6268
5991
if test -n "$ac_tool_prefix"; then
6269
5992
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6270
5993
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6271
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272
5995
$as_echo_n "checking for $ac_word... " >&6; }
6273
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5996
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6274
5997
  $as_echo_n "(cached) " >&6
6275
5998
else
6276
5999
  if test -n "$RANLIB"; then
6281
6004
do
6282
6005
  IFS=$as_save_IFS
6283
6006
  test -z "$as_dir" && as_dir=.
6284
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6007
    for ac_exec_ext in '' $ac_executable_extensions; do
6285
6008
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286
6009
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6287
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6010
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288
6011
    break 2
6289
6012
  fi
6290
6013
done
6291
 
done
 
6014
  done
6292
6015
IFS=$as_save_IFS
6293
6016
 
6294
6017
fi
6295
6018
fi
6296
6019
RANLIB=$ac_cv_prog_RANLIB
6297
6020
if test -n "$RANLIB"; then
6298
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6299
6022
$as_echo "$RANLIB" >&6; }
6300
6023
else
6301
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302
6025
$as_echo "no" >&6; }
6303
6026
fi
6304
6027
 
6308
6031
  ac_ct_RANLIB=$RANLIB
6309
6032
  # Extract the first word of "ranlib", so it can be a program name with args.
6310
6033
set dummy ranlib; ac_word=$2
6311
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312
6035
$as_echo_n "checking for $ac_word... " >&6; }
6313
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6036
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6314
6037
  $as_echo_n "(cached) " >&6
6315
6038
else
6316
6039
  if test -n "$ac_ct_RANLIB"; then
6321
6044
do
6322
6045
  IFS=$as_save_IFS
6323
6046
  test -z "$as_dir" && as_dir=.
6324
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6047
    for ac_exec_ext in '' $ac_executable_extensions; do
6325
6048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326
6049
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6327
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6050
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328
6051
    break 2
6329
6052
  fi
6330
6053
done
6331
 
done
 
6054
  done
6332
6055
IFS=$as_save_IFS
6333
6056
 
6334
6057
fi
6335
6058
fi
6336
6059
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6337
6060
if test -n "$ac_ct_RANLIB"; then
6338
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6061
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6339
6062
$as_echo "$ac_ct_RANLIB" >&6; }
6340
6063
else
6341
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342
6065
$as_echo "no" >&6; }
6343
6066
fi
6344
6067
 
6347
6070
  else
6348
6071
    case $cross_compiling:$ac_tool_warned in
6349
6072
yes:)
6350
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6073
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351
6074
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352
6075
ac_tool_warned=yes ;;
6353
6076
esac
6360
6083
if test -n "$ac_tool_prefix"; then
6361
6084
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6362
6085
set dummy ${ac_tool_prefix}strip; ac_word=$2
6363
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364
6087
$as_echo_n "checking for $ac_word... " >&6; }
6365
 
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6088
if test "${ac_cv_prog_STRIP+set}" = set; then :
6366
6089
  $as_echo_n "(cached) " >&6
6367
6090
else
6368
6091
  if test -n "$STRIP"; then
6373
6096
do
6374
6097
  IFS=$as_save_IFS
6375
6098
  test -z "$as_dir" && as_dir=.
6376
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6099
    for ac_exec_ext in '' $ac_executable_extensions; do
6377
6100
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378
6101
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6379
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380
6103
    break 2
6381
6104
  fi
6382
6105
done
6383
 
done
 
6106
  done
6384
6107
IFS=$as_save_IFS
6385
6108
 
6386
6109
fi
6387
6110
fi
6388
6111
STRIP=$ac_cv_prog_STRIP
6389
6112
if test -n "$STRIP"; then
6390
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
6113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6391
6114
$as_echo "$STRIP" >&6; }
6392
6115
else
6393
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394
6117
$as_echo "no" >&6; }
6395
6118
fi
6396
6119
 
6400
6123
  ac_ct_STRIP=$STRIP
6401
6124
  # Extract the first word of "strip", so it can be a program name with args.
6402
6125
set dummy strip; ac_word=$2
6403
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404
6127
$as_echo_n "checking for $ac_word... " >&6; }
6405
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6128
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6406
6129
  $as_echo_n "(cached) " >&6
6407
6130
else
6408
6131
  if test -n "$ac_ct_STRIP"; then
6413
6136
do
6414
6137
  IFS=$as_save_IFS
6415
6138
  test -z "$as_dir" && as_dir=.
6416
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6139
    for ac_exec_ext in '' $ac_executable_extensions; do
6417
6140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418
6141
    ac_cv_prog_ac_ct_STRIP="strip"
6419
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6142
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420
6143
    break 2
6421
6144
  fi
6422
6145
done
6423
 
done
 
6146
  done
6424
6147
IFS=$as_save_IFS
6425
6148
 
6426
6149
fi
6427
6150
fi
6428
6151
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6429
6152
if test -n "$ac_ct_STRIP"; then
6430
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6431
6154
$as_echo "$ac_ct_STRIP" >&6; }
6432
6155
else
6433
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434
6157
$as_echo "no" >&6; }
6435
6158
fi
6436
6159
 
6439
6162
  else
6440
6163
    case $cross_compiling:$ac_tool_warned in
6441
6164
yes:)
6442
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443
6166
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444
6167
ac_tool_warned=yes ;;
6445
6168
esac
6472
6195
test -z "$ac_objext" && ac_objext=o
6473
6196
 
6474
6197
# Determine commands to create old-style static archives.
6475
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6198
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6476
6199
old_postinstall_cmds='chmod 644 $oldlib'
6477
6200
old_postuninstall_cmds=
6478
6201
 
6503
6226
case $deplibs_check_method in
6504
6227
file_magic*)
6505
6228
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6506
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6229
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6507
6230
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6508
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6231
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6509
6232
  $as_echo_n "(cached) " >&6
6510
6233
else
6511
6234
  case $MAGIC_CMD in
6556
6279
 
6557
6280
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6558
6281
if test -n "$MAGIC_CMD"; then
6559
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6560
6283
$as_echo "$MAGIC_CMD" >&6; }
6561
6284
else
6562
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563
6286
$as_echo "no" >&6; }
6564
6287
fi
6565
6288
 
6566
6289
if test -z "$lt_cv_path_MAGIC_CMD"; then
6567
6290
  if test -n "$ac_tool_prefix"; then
6568
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
6291
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6569
6292
$as_echo_n "checking for file... " >&6; }
6570
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6293
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6571
6294
  $as_echo_n "(cached) " >&6
6572
6295
else
6573
6296
  case $MAGIC_CMD in
6618
6341
 
6619
6342
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6620
6343
if test -n "$MAGIC_CMD"; then
6621
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6622
6345
$as_echo "$MAGIC_CMD" >&6; }
6623
6346
else
6624
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625
6348
$as_echo "no" >&6; }
6626
6349
fi
6627
6350
 
6634
6357
  ;;
6635
6358
esac
6636
6359
 
 
6360
 
 
6361
  case $host_os in
 
6362
    rhapsody* | darwin*)
 
6363
    if test -n "$ac_tool_prefix"; then
 
6364
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6365
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6367
$as_echo_n "checking for $ac_word... " >&6; }
 
6368
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6369
  $as_echo_n "(cached) " >&6
 
6370
else
 
6371
  if test -n "$DSYMUTIL"; then
 
6372
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6373
else
 
6374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6375
for as_dir in $PATH
 
6376
do
 
6377
  IFS=$as_save_IFS
 
6378
  test -z "$as_dir" && as_dir=.
 
6379
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6381
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6382
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6383
    break 2
 
6384
  fi
 
6385
done
 
6386
  done
 
6387
IFS=$as_save_IFS
 
6388
 
 
6389
fi
 
6390
fi
 
6391
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6392
if test -n "$DSYMUTIL"; then
 
6393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6394
$as_echo "$DSYMUTIL" >&6; }
 
6395
else
 
6396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6397
$as_echo "no" >&6; }
 
6398
fi
 
6399
 
 
6400
 
 
6401
fi
 
6402
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6403
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6404
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6405
set dummy dsymutil; ac_word=$2
 
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6407
$as_echo_n "checking for $ac_word... " >&6; }
 
6408
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6409
  $as_echo_n "(cached) " >&6
 
6410
else
 
6411
  if test -n "$ac_ct_DSYMUTIL"; then
 
6412
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6413
else
 
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6415
for as_dir in $PATH
 
6416
do
 
6417
  IFS=$as_save_IFS
 
6418
  test -z "$as_dir" && as_dir=.
 
6419
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6421
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6422
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6423
    break 2
 
6424
  fi
 
6425
done
 
6426
  done
 
6427
IFS=$as_save_IFS
 
6428
 
 
6429
fi
 
6430
fi
 
6431
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6432
if test -n "$ac_ct_DSYMUTIL"; then
 
6433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6434
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6435
else
 
6436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6437
$as_echo "no" >&6; }
 
6438
fi
 
6439
 
 
6440
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6441
    DSYMUTIL=":"
 
6442
  else
 
6443
    case $cross_compiling:$ac_tool_warned in
 
6444
yes:)
 
6445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6447
ac_tool_warned=yes ;;
 
6448
esac
 
6449
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6450
  fi
 
6451
else
 
6452
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6453
fi
 
6454
 
 
6455
    if test -n "$ac_tool_prefix"; then
 
6456
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6457
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6459
$as_echo_n "checking for $ac_word... " >&6; }
 
6460
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6461
  $as_echo_n "(cached) " >&6
 
6462
else
 
6463
  if test -n "$NMEDIT"; then
 
6464
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6465
else
 
6466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6467
for as_dir in $PATH
 
6468
do
 
6469
  IFS=$as_save_IFS
 
6470
  test -z "$as_dir" && as_dir=.
 
6471
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6472
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6473
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6474
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6475
    break 2
 
6476
  fi
 
6477
done
 
6478
  done
 
6479
IFS=$as_save_IFS
 
6480
 
 
6481
fi
 
6482
fi
 
6483
NMEDIT=$ac_cv_prog_NMEDIT
 
6484
if test -n "$NMEDIT"; then
 
6485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6486
$as_echo "$NMEDIT" >&6; }
 
6487
else
 
6488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6489
$as_echo "no" >&6; }
 
6490
fi
 
6491
 
 
6492
 
 
6493
fi
 
6494
if test -z "$ac_cv_prog_NMEDIT"; then
 
6495
  ac_ct_NMEDIT=$NMEDIT
 
6496
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6497
set dummy nmedit; ac_word=$2
 
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6499
$as_echo_n "checking for $ac_word... " >&6; }
 
6500
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6501
  $as_echo_n "(cached) " >&6
 
6502
else
 
6503
  if test -n "$ac_ct_NMEDIT"; then
 
6504
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6505
else
 
6506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6507
for as_dir in $PATH
 
6508
do
 
6509
  IFS=$as_save_IFS
 
6510
  test -z "$as_dir" && as_dir=.
 
6511
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6512
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6513
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6514
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6515
    break 2
 
6516
  fi
 
6517
done
 
6518
  done
 
6519
IFS=$as_save_IFS
 
6520
 
 
6521
fi
 
6522
fi
 
6523
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6524
if test -n "$ac_ct_NMEDIT"; then
 
6525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6526
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6527
else
 
6528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6529
$as_echo "no" >&6; }
 
6530
fi
 
6531
 
 
6532
  if test "x$ac_ct_NMEDIT" = x; then
 
6533
    NMEDIT=":"
 
6534
  else
 
6535
    case $cross_compiling:$ac_tool_warned in
 
6536
yes:)
 
6537
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6538
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6539
ac_tool_warned=yes ;;
 
6540
esac
 
6541
    NMEDIT=$ac_ct_NMEDIT
 
6542
  fi
 
6543
else
 
6544
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6545
fi
 
6546
 
 
6547
 
 
6548
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6549
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6550
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6551
  $as_echo_n "(cached) " >&6
 
6552
else
 
6553
  lt_cv_apple_cc_single_mod=no
 
6554
      if test -z "${LT_MULTI_MODULE}"; then
 
6555
   # By default we will add the -single_module flag. You can override
 
6556
   # by either setting the environment variable LT_MULTI_MODULE
 
6557
   # non-empty at configure time, or by adding -multi_module to the
 
6558
   # link flags.
 
6559
   echo "int foo(void){return 1;}" > conftest.c
 
6560
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6561
     -dynamiclib ${wl}-single_module conftest.c
 
6562
   if test -f libconftest.dylib; then
 
6563
     lt_cv_apple_cc_single_mod=yes
 
6564
     rm -rf libconftest.dylib*
 
6565
   fi
 
6566
   rm conftest.c
 
6567
      fi
 
6568
fi
 
6569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6570
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6571
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6572
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6573
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6574
  $as_echo_n "(cached) " >&6
 
6575
else
 
6576
  lt_cv_ld_exported_symbols_list=no
 
6577
      save_LDFLAGS=$LDFLAGS
 
6578
      echo "_main" > conftest.sym
 
6579
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6580
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6581
/* end confdefs.h.  */
 
6582
 
 
6583
int
 
6584
main ()
 
6585
{
 
6586
 
 
6587
  ;
 
6588
  return 0;
 
6589
}
 
6590
_ACEOF
 
6591
if ac_fn_c_try_link "$LINENO"; then :
 
6592
  lt_cv_ld_exported_symbols_list=yes
 
6593
else
 
6594
  lt_cv_ld_exported_symbols_list=no
 
6595
fi
 
6596
rm -f core conftest.err conftest.$ac_objext \
 
6597
    conftest$ac_exeext conftest.$ac_ext
 
6598
   LDFLAGS="$save_LDFLAGS"
 
6599
 
 
6600
fi
 
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6602
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6603
    case $host_os in
 
6604
    rhapsody* | darwin1.[0123])
 
6605
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6606
    darwin1.*)
 
6607
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6608
    darwin*)
 
6609
      # if running on 10.5 or later, the deployment target defaults
 
6610
      # to the OS version, if on x86, and 10.4, the deployment
 
6611
      # target defaults to 10.4. Don't you love it?
 
6612
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6613
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6614
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6615
   10.[012]*)
 
6616
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6617
   10.*)
 
6618
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6619
      esac
 
6620
    ;;
 
6621
  esac
 
6622
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6623
      _lt_dar_single_mod='$single_module'
 
6624
    fi
 
6625
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6626
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6627
    else
 
6628
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
6629
    fi
 
6630
    if test "$DSYMUTIL" != ":"; then
 
6631
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
6632
    else
 
6633
      _lt_dsymutil=
 
6634
    fi
 
6635
    ;;
 
6636
  esac
 
6637
 
 
6638
 
6637
6639
enable_dlopen=no
6638
6640
enable_win32_dll=yes
6639
6641
 
6640
6642
# Check whether --enable-libtool-lock was given.
6641
 
if test "${enable_libtool_lock+set}" = set; then
 
6643
if test "${enable_libtool_lock+set}" = set; then :
6642
6644
  enableval=$enable_libtool_lock;
6643
6645
fi
6644
6646
 
6646
6648
 
6647
6649
 
6648
6650
# Check whether --with-pic was given.
6649
 
if test "${with_pic+set}" = set; then
 
6651
if test "${with_pic+set}" = set; then :
6650
6652
  withval=$with_pic; pic_mode="$withval"
6651
6653
else
6652
6654
  pic_mode=default
6672
6674
objext=$objext
6673
6675
 
6674
6676
# Code to be used in simple compile tests
6675
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6677
lt_simple_compile_test_code="int some_variable = 0;"
6676
6678
 
6677
6679
# Code to be used in simple link tests
6678
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
6680
lt_simple_link_test_code='int main(){return(0);}'
6679
6681
 
6680
6682
 
6681
6683
# If no C compiler was specified, use CC.
6690
6692
 
6691
6693
# save warnings/boilerplate of simple test code
6692
6694
ac_outfile=conftest.$ac_objext
6693
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6695
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6694
6696
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6695
6697
_lt_compiler_boilerplate=`cat conftest.err`
6696
6698
$rm conftest*
6697
6699
 
6698
6700
ac_outfile=conftest.$ac_objext
6699
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6701
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6700
6702
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6701
6703
_lt_linker_boilerplate=`cat conftest.err`
6702
 
$rm conftest*
 
6704
$rm -r conftest*
6703
6705
 
6704
6706
 
6705
6707
## CAVEAT EMPTOR:
6713
6715
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6714
6716
 
6715
6717
 
6716
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6717
6719
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6718
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6720
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6719
6721
  $as_echo_n "(cached) " >&6
6720
6722
else
6721
6723
  lt_cv_prog_compiler_rtti_exceptions=no
6722
6724
  ac_outfile=conftest.$ac_objext
6723
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6725
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6724
6726
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6725
6727
   # Insert the option either (1) after the last *FLAGS variable, or
6726
6728
   # (2) before a word containing "conftest.", or (3) at the end.
6731
6733
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6732
6734
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6733
6735
   -e 's:$: $lt_compiler_flag:'`
6734
 
   (eval echo "\"\$as_me:6734: $lt_compile\"" >&5)
 
6736
   (eval echo "\"\$as_me:6736: $lt_compile\"" >&5)
6735
6737
   (eval "$lt_compile" 2>conftest.err)
6736
6738
   ac_status=$?
6737
6739
   cat conftest.err >&5
6738
 
   echo "$as_me:6738: \$? = $ac_status" >&5
 
6740
   echo "$as_me:6740: \$? = $ac_status" >&5
6739
6741
   if (exit $ac_status) && test -s "$ac_outfile"; then
6740
6742
     # The compiler can only warn and ignore the option if not recognized
6741
6743
     # So say no if there are warnings other than the usual output.
6748
6750
   $rm conftest*
6749
6751
 
6750
6752
fi
6751
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6752
6754
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6753
6755
 
6754
6756
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6763
6765
lt_prog_compiler_pic=
6764
6766
lt_prog_compiler_static=
6765
6767
 
6766
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6767
6769
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6768
6770
 
6769
6771
  if test "$GCC" = yes; then
6786
6788
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6787
6789
      ;;
6788
6790
 
6789
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6791
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6790
6792
      # PIC is the default for these OSes.
6791
6793
      ;;
6792
6794
 
6793
 
    mingw* | pw32* | os2*)
 
6795
    mingw* | cygwin* | pw32* | os2*)
6794
6796
      # This hack is so that the source file can tell whether it is being
6795
6797
      # built for inclusion in a dll (and should export symbols for example).
 
6798
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
6799
      # (--disable-auto-import) libraries
6796
6800
      lt_prog_compiler_pic='-DDLL_EXPORT'
6797
6801
      ;;
6798
6802
 
6802
6806
      lt_prog_compiler_pic='-fno-common'
6803
6807
      ;;
6804
6808
 
6805
 
    interix3*)
 
6809
    interix[3-9]*)
6806
6810
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6807
6811
      # Instead, we relocate shared libraries at runtime.
6808
6812
      ;;
6860
6864
       esac
6861
6865
       ;;
6862
6866
 
6863
 
    mingw* | pw32* | os2*)
 
6867
    mingw* | cygwin* | pw32* | os2*)
6864
6868
      # This hack is so that the source file can tell whether it is being
6865
6869
      # built for inclusion in a dll (and should export symbols for example).
6866
6870
      lt_prog_compiler_pic='-DDLL_EXPORT'
6893
6897
      lt_prog_compiler_static='-Bstatic'
6894
6898
      ;;
6895
6899
 
6896
 
    linux*)
 
6900
    linux* | k*bsd*-gnu)
6897
6901
      case $cc_basename in
6898
6902
      icc* | ecc*)
6899
6903
        lt_prog_compiler_wl='-Wl,'
6912
6916
        # All Alpha code is PIC.
6913
6917
        lt_prog_compiler_static='-non_shared'
6914
6918
        ;;
 
6919
      *)
 
6920
        case `$CC -V 2>&1 | sed 5q` in
 
6921
        *Sun\ C*)
 
6922
          # Sun C 5.9
 
6923
          lt_prog_compiler_pic='-KPIC'
 
6924
          lt_prog_compiler_static='-Bstatic'
 
6925
          lt_prog_compiler_wl='-Wl,'
 
6926
          ;;
 
6927
        *Sun\ F*)
 
6928
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6929
          lt_prog_compiler_pic='-KPIC'
 
6930
          lt_prog_compiler_static='-Bstatic'
 
6931
          lt_prog_compiler_wl=''
 
6932
          ;;
 
6933
        esac
 
6934
        ;;
6915
6935
      esac
6916
6936
      ;;
6917
6937
 
6921
6941
      lt_prog_compiler_static='-non_shared'
6922
6942
      ;;
6923
6943
 
 
6944
    rdos*)
 
6945
      lt_prog_compiler_static='-non_shared'
 
6946
      ;;
 
6947
 
6924
6948
    solaris*)
6925
6949
      lt_prog_compiler_pic='-KPIC'
6926
6950
      lt_prog_compiler_static='-Bstatic'
6973
6997
    esac
6974
6998
  fi
6975
6999
 
6976
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6977
7001
$as_echo "$lt_prog_compiler_pic" >&6; }
6978
7002
 
6979
7003
#
6981
7005
#
6982
7006
if test -n "$lt_prog_compiler_pic"; then
6983
7007
 
6984
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6985
7009
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6986
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7010
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6987
7011
  $as_echo_n "(cached) " >&6
6988
7012
else
6989
 
  lt_prog_compiler_pic_works=no
 
7013
  lt_cv_prog_compiler_pic_works=no
6990
7014
  ac_outfile=conftest.$ac_objext
6991
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7015
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6992
7016
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993
7017
   # Insert the option either (1) after the last *FLAGS variable, or
6994
7018
   # (2) before a word containing "conftest.", or (3) at the end.
6999
7023
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000
7024
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001
7025
   -e 's:$: $lt_compiler_flag:'`
7002
 
   (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
 
7026
   (eval echo "\"\$as_me:7026: $lt_compile\"" >&5)
7003
7027
   (eval "$lt_compile" 2>conftest.err)
7004
7028
   ac_status=$?
7005
7029
   cat conftest.err >&5
7006
 
   echo "$as_me:7006: \$? = $ac_status" >&5
 
7030
   echo "$as_me:7030: \$? = $ac_status" >&5
7007
7031
   if (exit $ac_status) && test -s "$ac_outfile"; then
7008
7032
     # The compiler can only warn and ignore the option if not recognized
7009
7033
     # So say no if there are warnings other than the usual output.
7010
7034
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7011
7035
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012
7036
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7013
 
       lt_prog_compiler_pic_works=yes
 
7037
       lt_cv_prog_compiler_pic_works=yes
7014
7038
     fi
7015
7039
   fi
7016
7040
   $rm conftest*
7017
7041
 
7018
7042
fi
7019
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7020
 
$as_echo "$lt_prog_compiler_pic_works" >&6; }
 
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
7044
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7021
7045
 
7022
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7046
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7023
7047
    case $lt_prog_compiler_pic in
7024
7048
     "" | " "*) ;;
7025
7049
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7044
7068
# Check to make sure the static flag actually works.
7045
7069
#
7046
7070
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7047
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7048
7072
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7049
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7073
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7050
7074
  $as_echo_n "(cached) " >&6
7051
7075
else
7052
 
  lt_prog_compiler_static_works=no
 
7076
  lt_cv_prog_compiler_static_works=no
7053
7077
   save_LDFLAGS="$LDFLAGS"
7054
7078
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7055
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7079
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7056
7080
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7057
7081
     # The linker can only warn and ignore the option if not recognized
7058
7082
     # So say no if there are warnings
7062
7086
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7063
7087
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7064
7088
       if diff conftest.exp conftest.er2 >/dev/null; then
7065
 
         lt_prog_compiler_static_works=yes
 
7089
         lt_cv_prog_compiler_static_works=yes
7066
7090
       fi
7067
7091
     else
7068
 
       lt_prog_compiler_static_works=yes
 
7092
       lt_cv_prog_compiler_static_works=yes
7069
7093
     fi
7070
7094
   fi
7071
 
   $rm conftest*
 
7095
   $rm -r conftest*
7072
7096
   LDFLAGS="$save_LDFLAGS"
7073
7097
 
7074
7098
fi
7075
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7076
 
$as_echo "$lt_prog_compiler_static_works" >&6; }
 
7099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
7100
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7077
7101
 
7078
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7102
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7079
7103
    :
7080
7104
else
7081
7105
    lt_prog_compiler_static=
7082
7106
fi
7083
7107
 
7084
7108
 
7085
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7086
7110
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7087
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7111
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7088
7112
  $as_echo_n "(cached) " >&6
7089
7113
else
7090
7114
  lt_cv_prog_compiler_c_o=no
7092
7116
   mkdir conftest
7093
7117
   cd conftest
7094
7118
   mkdir out
7095
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7119
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7096
7120
 
7097
7121
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7098
7122
   # Insert the option either (1) after the last *FLAGS variable, or
7103
7127
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7104
7128
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105
7129
   -e 's:$: $lt_compiler_flag:'`
7106
 
   (eval echo "\"\$as_me:7106: $lt_compile\"" >&5)
 
7130
   (eval echo "\"\$as_me:7130: $lt_compile\"" >&5)
7107
7131
   (eval "$lt_compile" 2>out/conftest.err)
7108
7132
   ac_status=$?
7109
7133
   cat out/conftest.err >&5
7110
 
   echo "$as_me:7110: \$? = $ac_status" >&5
 
7134
   echo "$as_me:7134: \$? = $ac_status" >&5
7111
7135
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7112
7136
   then
7113
7137
     # The compiler can only warn and ignore the option if not recognized
7129
7153
   $rm conftest*
7130
7154
 
7131
7155
fi
7132
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7133
7157
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7134
7158
 
7135
7159
 
7136
7160
hard_links="nottested"
7137
7161
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7138
7162
  # do not overwrite the value of need_locks provided by the user
7139
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7163
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7140
7164
$as_echo_n "checking if we can lock with hard links... " >&6; }
7141
7165
  hard_links=yes
7142
7166
  $rm conftest*
7144
7168
  touch conftest.a
7145
7169
  ln conftest.a conftest.b 2>&5 || hard_links=no
7146
7170
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7147
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
7171
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7148
7172
$as_echo "$hard_links" >&6; }
7149
7173
  if test "$hard_links" = no; then
7150
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7174
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7151
7175
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7152
7176
    need_locks=warn
7153
7177
  fi
7155
7179
  need_locks=no
7156
7180
fi
7157
7181
 
7158
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7159
7183
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7160
7184
 
7161
7185
  runpath_var=
7187
7211
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7188
7212
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7189
7213
  # as well as any symbol that contains `d'.
7190
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7214
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7191
7215
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7192
7216
  # platforms (ab)use it in PIC code, but their linkers get confused if
7193
7217
  # the symbol is explicitly referenced.  Since portable code cannot
7194
7218
  # rely on this symbol name, it's probably fine to never include it in
7195
7219
  # preloaded symbol tables.
 
7220
  # Exclude shared library initialization/finalization symbols.
7196
7221
  extract_expsyms_cmds=
7197
7222
  # Just being paranoid about ensuring that cc_basename is set.
7198
7223
  for cc_temp in $compiler""; do
7251
7276
 
7252
7277
    # See if GNU ld supports shared libraries.
7253
7278
    case $host_os in
7254
 
    aix3* | aix4* | aix5*)
 
7279
    aix[3-9]*)
7255
7280
      # On AIX/PPC, the GNU linker is very broken
7256
7281
      if test "$host_cpu" != ia64; then
7257
7282
        ld_shlibs=no
7299
7324
      allow_undefined_flag=unsupported
7300
7325
      always_export_symbols=no
7301
7326
      enable_shared_with_static_runtimes=yes
7302
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7327
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7303
7328
 
7304
7329
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7305
7330
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7317
7342
      fi
7318
7343
      ;;
7319
7344
 
7320
 
    interix3*)
 
7345
    interix[3-9]*)
7321
7346
      hardcode_direct=no
7322
7347
      hardcode_shlibpath_var=no
7323
7348
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7332
7357
      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'
7333
7358
      ;;
7334
7359
 
7335
 
    linux*)
 
7360
    gnu* | linux* | k*bsd*-gnu)
7336
7361
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7337
7362
        tmp_addflag=
7338
7363
        case $cc_basename,$host_cpu in
7350
7375
        ifc* | ifort*)                  # Intel Fortran compiler
7351
7376
          tmp_addflag=' -nofor_main' ;;
7352
7377
        esac
7353
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7378
        case `$CC -V 2>&1 | sed 5q` in
 
7379
        *Sun\ C*)                       # Sun C 5.9
 
7380
          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'
 
7381
          tmp_sharedflag='-G' ;;
 
7382
        *Sun\ F*)                       # Sun Fortran 8.3
 
7383
          tmp_sharedflag='-G' ;;
 
7384
        *)
 
7385
          tmp_sharedflag='-shared' ;;
 
7386
        esac
 
7387
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354
7388
 
7355
7389
        if test $supports_anon_versioning = yes; then
7356
7390
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7357
7391
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7358
7392
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7359
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7393
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7360
7394
        fi
7361
7395
      else
7362
7396
        ld_shlibs=no
7461
7495
      fi
7462
7496
      ;;
7463
7497
 
7464
 
    aix4* | aix5*)
 
7498
    aix[4-9]*)
7465
7499
      if test "$host_cpu" = ia64; then
7466
7500
        # On IA64, the linker does run time linking by default, so we don't
7467
7501
        # have to do anything special.
7481
7515
        # Test if we are trying to use run time linking or normal
7482
7516
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7483
7517
        # need to do runtime linking.
7484
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7518
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7485
7519
          for ld_flag in $LDFLAGS; do
7486
7520
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7487
7521
            aix_use_runtimelinking=yes
7515
7549
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7516
7550
          then
7517
7551
          # We have reworked collect2
7518
 
          hardcode_direct=yes
 
7552
          :
7519
7553
          else
7520
7554
          # We have old collect2
7521
7555
          hardcode_direct=unsupported
7555
7589
        # -berok will link without error, but may produce a broken library.
7556
7590
        allow_undefined_flag='-berok'
7557
7591
       # Determine the default libpath from the value encoded in an empty executable.
7558
 
       cat >conftest.$ac_ext <<_ACEOF
7559
 
/* confdefs.h.  */
7560
 
_ACEOF
7561
 
cat confdefs.h >>conftest.$ac_ext
7562
 
cat >>conftest.$ac_ext <<_ACEOF
 
7592
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563
7593
/* end confdefs.h.  */
7564
7594
 
7565
7595
int
7570
7600
  return 0;
7571
7601
}
7572
7602
_ACEOF
7573
 
rm -f conftest.$ac_objext conftest$ac_exeext
7574
 
if { (ac_try="$ac_link"
7575
 
case "(($ac_try" in
7576
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577
 
  *) ac_try_echo=$ac_try;;
7578
 
esac
7579
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580
 
$as_echo "$ac_try_echo") >&5
7581
 
  (eval "$ac_link") 2>conftest.er1
7582
 
  ac_status=$?
7583
 
  grep -v '^ *+' conftest.er1 >conftest.err
7584
 
  rm -f conftest.er1
7585
 
  cat conftest.err >&5
7586
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587
 
  (exit $ac_status); } && {
7588
 
         test -z "$ac_c_werror_flag" ||
7589
 
         test ! -s conftest.err
7590
 
       } && test -s conftest$ac_exeext && {
7591
 
         test "$cross_compiling" = yes ||
7592
 
         $as_test_x conftest$ac_exeext
7593
 
       }; then
 
7603
if ac_fn_c_try_link "$LINENO"; then :
7594
7604
 
7595
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7596
 
}'`
 
7605
lt_aix_libpath_sed='
 
7606
    /Import File Strings/,/^$/ {
 
7607
        /^0/ {
 
7608
            s/^0  *\(.*\)$/\1/
 
7609
            p
 
7610
        }
 
7611
    }'
 
7612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7597
7613
# Check for a 64-bit object if we didn't find anything.
7598
 
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; }
7599
 
}'`; fi
7600
 
else
7601
 
  $as_echo "$as_me: failed program was:" >&5
7602
 
sed 's/^/| /' conftest.$ac_ext >&5
7603
 
 
7604
 
 
7605
 
fi
7606
 
 
7607
 
rm -rf conftest.dSYM
7608
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609
 
      conftest$ac_exeext conftest.$ac_ext
 
7614
if test -z "$aix_libpath"; then
 
7615
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7616
fi
 
7617
fi
 
7618
rm -f core conftest.err conftest.$ac_objext \
 
7619
    conftest$ac_exeext conftest.$ac_ext
7610
7620
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7611
7621
 
7612
7622
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7618
7628
          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"
7619
7629
        else
7620
7630
         # Determine the default libpath from the value encoded in an empty executable.
7621
 
         cat >conftest.$ac_ext <<_ACEOF
7622
 
/* confdefs.h.  */
7623
 
_ACEOF
7624
 
cat confdefs.h >>conftest.$ac_ext
7625
 
cat >>conftest.$ac_ext <<_ACEOF
 
7631
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626
7632
/* end confdefs.h.  */
7627
7633
 
7628
7634
int
7633
7639
  return 0;
7634
7640
}
7635
7641
_ACEOF
7636
 
rm -f conftest.$ac_objext conftest$ac_exeext
7637
 
if { (ac_try="$ac_link"
7638
 
case "(($ac_try" in
7639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640
 
  *) ac_try_echo=$ac_try;;
7641
 
esac
7642
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7643
 
$as_echo "$ac_try_echo") >&5
7644
 
  (eval "$ac_link") 2>conftest.er1
7645
 
  ac_status=$?
7646
 
  grep -v '^ *+' conftest.er1 >conftest.err
7647
 
  rm -f conftest.er1
7648
 
  cat conftest.err >&5
7649
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650
 
  (exit $ac_status); } && {
7651
 
         test -z "$ac_c_werror_flag" ||
7652
 
         test ! -s conftest.err
7653
 
       } && test -s conftest$ac_exeext && {
7654
 
         test "$cross_compiling" = yes ||
7655
 
         $as_test_x conftest$ac_exeext
7656
 
       }; then
 
7642
if ac_fn_c_try_link "$LINENO"; then :
7657
7643
 
7658
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7659
 
}'`
 
7644
lt_aix_libpath_sed='
 
7645
    /Import File Strings/,/^$/ {
 
7646
        /^0/ {
 
7647
            s/^0  *\(.*\)$/\1/
 
7648
            p
 
7649
        }
 
7650
    }'
 
7651
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7660
7652
# Check for a 64-bit object if we didn't find anything.
7661
 
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; }
7662
 
}'`; fi
7663
 
else
7664
 
  $as_echo "$as_me: failed program was:" >&5
7665
 
sed 's/^/| /' conftest.$ac_ext >&5
7666
 
 
7667
 
 
7668
 
fi
7669
 
 
7670
 
rm -rf conftest.dSYM
7671
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7672
 
      conftest$ac_exeext conftest.$ac_ext
 
7653
if test -z "$aix_libpath"; then
 
7654
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7655
fi
 
7656
fi
 
7657
rm -f core conftest.err conftest.$ac_objext \
 
7658
    conftest$ac_exeext conftest.$ac_ext
7673
7659
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7674
7660
 
7675
7661
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7714
7700
      # The linker will automatically build a .lib file if we build a DLL.
7715
7701
      old_archive_From_new_cmds='true'
7716
7702
      # FIXME: Should let the user specify the lib program.
7717
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7703
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7718
7704
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7719
7705
      enable_shared_with_static_runtimes=yes
7720
7706
      ;;
7721
7707
 
7722
7708
    darwin* | rhapsody*)
7723
 
      case $host_os in
7724
 
        rhapsody* | darwin1.[012])
7725
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7726
 
         ;;
7727
 
       *) # Darwin 1.3 on
7728
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7729
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7730
 
         else
7731
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7732
 
             10.[012])
7733
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7734
 
               ;;
7735
 
             10.*)
7736
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7737
 
               ;;
7738
 
           esac
7739
 
         fi
7740
 
         ;;
7741
 
      esac
 
7709
      allow_undefined_flag="$_lt_dar_allow_undefined"
7742
7710
      archive_cmds_need_lc=no
7743
7711
      hardcode_direct=no
7744
7712
      hardcode_automatic=yes
7747
7715
      link_all_deplibs=yes
7748
7716
    if test "$GCC" = yes ; then
7749
7717
        output_verbose_link_cmd='echo'
7750
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7751
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7752
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7753
 
      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}'
7754
 
      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}'
 
7718
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
7719
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
7720
        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}"
 
7721
        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}"
7755
7722
    else
7756
7723
      case $cc_basename in
7757
7724
        xlc*)
7758
7725
         output_verbose_link_cmd='echo'
7759
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7726
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7760
7727
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7761
7728
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7762
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7729
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7763
7730
          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}'
7764
7731
          ;;
7765
7732
       *)
7799
7766
      ;;
7800
7767
 
7801
7768
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7802
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7769
    freebsd* | dragonfly*)
7803
7770
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7804
7771
      hardcode_libdir_flag_spec='-R$libdir'
7805
7772
      hardcode_direct=yes
7921
7888
      ;;
7922
7889
 
7923
7890
    openbsd*)
7924
 
      hardcode_direct=yes
7925
 
      hardcode_shlibpath_var=no
7926
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7927
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7928
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7929
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7930
 
        export_dynamic_flag_spec='${wl}-E'
 
7891
      if test -f /usr/libexec/ld.so; then
 
7892
        hardcode_direct=yes
 
7893
        hardcode_shlibpath_var=no
 
7894
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7895
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7896
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7897
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7898
          export_dynamic_flag_spec='${wl}-E'
 
7899
        else
 
7900
          case $host_os in
 
7901
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7902
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7903
             hardcode_libdir_flag_spec='-R$libdir'
 
7904
             ;;
 
7905
           *)
 
7906
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7907
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7908
             ;;
 
7909
          esac
 
7910
        fi
7931
7911
      else
7932
 
       case $host_os in
7933
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7934
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7935
 
           hardcode_libdir_flag_spec='-R$libdir'
7936
 
           ;;
7937
 
         *)
7938
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7939
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7940
 
           ;;
7941
 
       esac
 
7912
        ld_shlibs=no
7942
7913
      fi
7943
7914
      ;;
7944
7915
 
7997
7968
      case $host_os in
7998
7969
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7999
7970
      *)
8000
 
        # The compiler driver will combine linker options so we
8001
 
        # cannot just pass the convience library names through
8002
 
        # without $wl, iff we do not link with $LD.
8003
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7971
        # The compiler driver will combine and reorder linker options,
 
7972
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
7973
        # but is careful enough not to reorder.
8004
7974
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8005
 
        case $wlarc in
8006
 
        '')
8007
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8008
 
        *)
8009
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8010
 
        esac ;;
 
7975
        if test "$GCC" = yes; then
 
7976
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7977
        else
 
7978
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
7979
        fi
 
7980
        ;;
8011
7981
      esac
8012
7982
      link_all_deplibs=yes
8013
7983
      ;;
8064
8034
      fi
8065
8035
      ;;
8066
8036
 
8067
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8037
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8068
8038
      no_undefined_flag='${wl}-z,text'
8069
8039
      archive_cmds_need_lc=no
8070
8040
      hardcode_shlibpath_var=no
8117
8087
    esac
8118
8088
  fi
8119
8089
 
8120
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8121
8091
$as_echo "$ld_shlibs" >&6; }
8122
8092
test "$ld_shlibs" = no && can_build_shared=no
8123
8093
 
8138
8108
      # Test whether the compiler implicitly links with -lc since on some
8139
8109
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8140
8110
      # to ld, don't add -lc before -lgcc.
8141
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8111
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8142
8112
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8143
8113
      $rm conftest*
8144
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8114
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8145
8115
 
8146
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8116
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8147
8117
  (eval $ac_compile) 2>&5
8148
8118
  ac_status=$?
8149
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150
 
  (exit $ac_status); } 2>conftest.err; then
 
8119
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8120
  test $ac_status = 0; } 2>conftest.err; then
8151
8121
        soname=conftest
8152
8122
        lib=conftest
8153
8123
        libobjs=conftest.$ac_objext
8161
8131
        libname=conftest
8162
8132
        lt_save_allow_undefined_flag=$allow_undefined_flag
8163
8133
        allow_undefined_flag=
8164
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8134
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8165
8135
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8166
8136
  ac_status=$?
8167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168
 
  (exit $ac_status); }
 
8137
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8138
  test $ac_status = 0; }
8169
8139
        then
8170
8140
          archive_cmds_need_lc=no
8171
8141
        else
8176
8146
        cat conftest.err 1>&5
8177
8147
      fi
8178
8148
      $rm conftest*
8179
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8149
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8180
8150
$as_echo "$archive_cmds_need_lc" >&6; }
8181
8151
      ;;
8182
8152
    esac
8184
8154
  ;;
8185
8155
esac
8186
8156
 
8187
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8188
8158
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8189
8159
library_names_spec=
8190
8160
libname_spec='lib$name'
8199
8169
version_type=none
8200
8170
dynamic_linker="$host_os ld.so"
8201
8171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8172
 
8202
8173
if test "$GCC" = yes; then
8203
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8204
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8174
  case $host_os in
 
8175
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8176
    *) lt_awk_arg="/^libraries:/" ;;
 
8177
  esac
 
8178
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8179
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8205
8180
    # if the path contains ";" then we assume it to be the separator
8206
8181
    # otherwise default to the standard path separator (i.e. ":") - it is
8207
8182
    # assumed that no part of a normal pathname contains ";" but that should
8208
8183
    # okay in the real world where ";" in dirpaths is itself problematic.
8209
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8184
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8210
8185
  else
8211
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8186
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8212
8187
  fi
 
8188
  # Ok, now we have the path, separated by spaces, we can step through it
 
8189
  # and add multilib dir if necessary.
 
8190
  lt_tmp_lt_search_path_spec=
 
8191
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8192
  for lt_sys_path in $lt_search_path_spec; do
 
8193
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8194
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8195
    else
 
8196
      test -d "$lt_sys_path" && \
 
8197
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8198
    fi
 
8199
  done
 
8200
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8201
BEGIN {RS=" "; FS="/|\n";} {
 
8202
  lt_foo="";
 
8203
  lt_count=0;
 
8204
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8205
    if ($lt_i != "" && $lt_i != ".") {
 
8206
      if ($lt_i == "..") {
 
8207
        lt_count++;
 
8208
      } else {
 
8209
        if (lt_count == 0) {
 
8210
          lt_foo="/" $lt_i lt_foo;
 
8211
        } else {
 
8212
          lt_count--;
 
8213
        }
 
8214
      }
 
8215
    }
 
8216
  }
 
8217
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8218
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8219
}'`
 
8220
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8213
8221
else
8214
8222
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8215
8223
fi
8230
8238
  soname_spec='${libname}${release}${shared_ext}$major'
8231
8239
  ;;
8232
8240
 
8233
 
aix4* | aix5*)
 
8241
aix[4-9]*)
8234
8242
  version_type=linux
8235
8243
  need_lib_prefix=no
8236
8244
  need_version=no
8364
8372
  version_type=darwin
8365
8373
  need_lib_prefix=no
8366
8374
  need_version=no
8367
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
 
8375
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8368
8376
  soname_spec='${libname}${release}${major}$shared_ext'
8369
8377
  shlibpath_overrides_runpath=yes
8370
8378
  shlibpath_var=DYLD_LIBRARY_PATH
8371
8379
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8372
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8373
 
  if test "$GCC" = yes; then
8374
 
    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"`
8375
 
  else
8376
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8377
 
  fi
 
8380
 
 
8381
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8378
8382
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8379
8383
  ;;
8380
8384
 
8391
8395
  dynamic_linker=no
8392
8396
  ;;
8393
8397
 
8394
 
kfreebsd*-gnu)
8395
 
  version_type=linux
8396
 
  need_lib_prefix=no
8397
 
  need_version=no
8398
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8399
 
  soname_spec='${libname}${release}${shared_ext}$major'
8400
 
  shlibpath_var=LD_LIBRARY_PATH
8401
 
  shlibpath_overrides_runpath=no
8402
 
  hardcode_into_libs=yes
8403
 
  dynamic_linker='GNU ld.so'
8404
 
  ;;
8405
 
 
8406
8398
freebsd* | dragonfly*)
8407
8399
  # DragonFly does not have aout.  When/if they implement a new
8408
8400
  # versioning mechanism, adjust this.
8440
8432
    shlibpath_overrides_runpath=no
8441
8433
    hardcode_into_libs=yes
8442
8434
    ;;
8443
 
  freebsd*) # from 4.6 on
 
8435
  *) # from 4.6 on, and DragonFly
8444
8436
    shlibpath_overrides_runpath=yes
8445
8437
    hardcode_into_libs=yes
8446
8438
    ;;
8503
8495
  postinstall_cmds='chmod 555 $lib'
8504
8496
  ;;
8505
8497
 
8506
 
interix3*)
 
8498
interix[3-9]*)
8507
8499
  version_type=linux
8508
8500
  need_lib_prefix=no
8509
8501
  need_version=no
8558
8550
  ;;
8559
8551
 
8560
8552
# This must be Linux ELF.
8561
 
linux*)
 
8553
linux* | k*bsd*-gnu)
8562
8554
  version_type=linux
8563
8555
  need_lib_prefix=no
8564
8556
  need_version=no
8574
8566
 
8575
8567
  # Append ld.so.conf contents to the search path
8576
8568
  if test -f /etc/ld.so.conf; then
8577
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8569
    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' ' '`
8578
8570
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8579
8571
  fi
8580
8572
 
8587
8579
  dynamic_linker='GNU/Linux ld.so'
8588
8580
  ;;
8589
8581
 
8590
 
knetbsd*-gnu)
8591
 
  version_type=linux
8592
 
  need_lib_prefix=no
8593
 
  need_version=no
8594
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8595
 
  soname_spec='${libname}${release}${shared_ext}$major'
8596
 
  shlibpath_var=LD_LIBRARY_PATH
8597
 
  shlibpath_overrides_runpath=no
8598
 
  hardcode_into_libs=yes
8599
 
  dynamic_linker='GNU ld.so'
8600
 
  ;;
8601
 
 
8602
8582
netbsd*)
8603
8583
  version_type=sunos
8604
8584
  need_lib_prefix=no
8680
8660
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8681
8661
  ;;
8682
8662
 
 
8663
rdos*)
 
8664
  dynamic_linker=no
 
8665
  ;;
 
8666
 
8683
8667
solaris*)
8684
8668
  version_type=linux
8685
8669
  need_lib_prefix=no
8772
8756
  dynamic_linker=no
8773
8757
  ;;
8774
8758
esac
8775
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8776
8760
$as_echo "$dynamic_linker" >&6; }
8777
8761
test "$dynamic_linker" = no && can_build_shared=no
8778
8762
 
 
8763
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
 
8764
  $as_echo_n "(cached) " >&6
 
8765
else
 
8766
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
8767
fi
 
8768
 
 
8769
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
8770
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
 
8771
  $as_echo_n "(cached) " >&6
 
8772
else
 
8773
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
8774
fi
 
8775
 
 
8776
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
8777
 
8779
8778
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8780
8779
if test "$GCC" = yes; then
8781
8780
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8782
8781
fi
8783
8782
 
8784
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8785
8784
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8786
8785
hardcode_action=
8787
8786
if test -n "$hardcode_libdir_flag_spec" || \
8806
8805
  # directories.
8807
8806
  hardcode_action=unsupported
8808
8807
fi
8809
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8810
8809
$as_echo "$hardcode_action" >&6; }
8811
8810
 
8812
8811
if test "$hardcode_action" = relink; then
8820
8819
 
8821
8820
striplib=
8822
8821
old_striplib=
8823
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8824
8823
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
8825
8824
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8826
8825
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8827
8826
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8828
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
8827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8829
8828
$as_echo "yes" >&6; }
8830
8829
else
8831
8830
# FIXME - insert some real tests, host_os isn't really good enough
8833
8832
   darwin*)
8834
8833
       if test -n "$STRIP" ; then
8835
8834
         striplib="$STRIP -x"
8836
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
8835
         old_striplib="$STRIP -S"
 
8836
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837
8837
$as_echo "yes" >&6; }
8838
8838
       else
8839
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840
8840
$as_echo "no" >&6; }
8841
8841
fi
8842
8842
       ;;
8843
8843
   *)
8844
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845
8845
$as_echo "no" >&6; }
8846
8846
    ;;
8847
8847
  esac
8874
8874
 
8875
8875
  darwin*)
8876
8876
  # if libdl is installed we need to link against it
8877
 
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8877
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8878
8878
$as_echo_n "checking for dlopen in -ldl... " >&6; }
8879
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8879
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8880
8880
  $as_echo_n "(cached) " >&6
8881
8881
else
8882
8882
  ac_check_lib_save_LIBS=$LIBS
8883
8883
LIBS="-ldl  $LIBS"
8884
 
cat >conftest.$ac_ext <<_ACEOF
8885
 
/* confdefs.h.  */
8886
 
_ACEOF
8887
 
cat confdefs.h >>conftest.$ac_ext
8888
 
cat >>conftest.$ac_ext <<_ACEOF
 
8884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889
8885
/* end confdefs.h.  */
8890
8886
 
8891
8887
/* Override any GCC internal prototype to avoid an error.
8903
8899
  return 0;
8904
8900
}
8905
8901
_ACEOF
8906
 
rm -f conftest.$ac_objext conftest$ac_exeext
8907
 
if { (ac_try="$ac_link"
8908
 
case "(($ac_try" in
8909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910
 
  *) ac_try_echo=$ac_try;;
8911
 
esac
8912
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8913
 
$as_echo "$ac_try_echo") >&5
8914
 
  (eval "$ac_link") 2>conftest.er1
8915
 
  ac_status=$?
8916
 
  grep -v '^ *+' conftest.er1 >conftest.err
8917
 
  rm -f conftest.er1
8918
 
  cat conftest.err >&5
8919
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920
 
  (exit $ac_status); } && {
8921
 
         test -z "$ac_c_werror_flag" ||
8922
 
         test ! -s conftest.err
8923
 
       } && test -s conftest$ac_exeext && {
8924
 
         test "$cross_compiling" = yes ||
8925
 
         $as_test_x conftest$ac_exeext
8926
 
       }; then
 
8902
if ac_fn_c_try_link "$LINENO"; then :
8927
8903
  ac_cv_lib_dl_dlopen=yes
8928
8904
else
8929
 
  $as_echo "$as_me: failed program was:" >&5
8930
 
sed 's/^/| /' conftest.$ac_ext >&5
8931
 
 
8932
 
        ac_cv_lib_dl_dlopen=no
 
8905
  ac_cv_lib_dl_dlopen=no
8933
8906
fi
8934
 
 
8935
 
rm -rf conftest.dSYM
8936
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8937
 
      conftest$ac_exeext conftest.$ac_ext
 
8907
rm -f core conftest.err conftest.$ac_objext \
 
8908
    conftest$ac_exeext conftest.$ac_ext
8938
8909
LIBS=$ac_check_lib_save_LIBS
8939
8910
fi
8940
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8941
8912
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8942
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
8913
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8943
8914
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8944
8915
else
8945
8916
 
8952
8923
   ;;
8953
8924
 
8954
8925
  *)
8955
 
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
8956
 
$as_echo_n "checking for shl_load... " >&6; }
8957
 
if test "${ac_cv_func_shl_load+set}" = set; then
8958
 
  $as_echo_n "(cached) " >&6
8959
 
else
8960
 
  cat >conftest.$ac_ext <<_ACEOF
8961
 
/* confdefs.h.  */
8962
 
_ACEOF
8963
 
cat confdefs.h >>conftest.$ac_ext
8964
 
cat >>conftest.$ac_ext <<_ACEOF
8965
 
/* end confdefs.h.  */
8966
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8967
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8968
 
#define shl_load innocuous_shl_load
8969
 
 
8970
 
/* System header to define __stub macros and hopefully few prototypes,
8971
 
    which can conflict with char shl_load (); below.
8972
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8973
 
    <limits.h> exists even on freestanding compilers.  */
8974
 
 
8975
 
#ifdef __STDC__
8976
 
# include <limits.h>
8977
 
#else
8978
 
# include <assert.h>
8979
 
#endif
8980
 
 
8981
 
#undef shl_load
8982
 
 
8983
 
/* Override any GCC internal prototype to avoid an error.
8984
 
   Use char because int might match the return type of a GCC
8985
 
   builtin and then its argument prototype would still apply.  */
8986
 
#ifdef __cplusplus
8987
 
extern "C"
8988
 
#endif
8989
 
char shl_load ();
8990
 
/* The GNU C library defines this for functions which it implements
8991
 
    to always fail with ENOSYS.  Some functions are actually named
8992
 
    something starting with __ and the normal name is an alias.  */
8993
 
#if defined __stub_shl_load || defined __stub___shl_load
8994
 
choke me
8995
 
#endif
8996
 
 
8997
 
int
8998
 
main ()
8999
 
{
9000
 
return shl_load ();
9001
 
  ;
9002
 
  return 0;
9003
 
}
9004
 
_ACEOF
9005
 
rm -f conftest.$ac_objext conftest$ac_exeext
9006
 
if { (ac_try="$ac_link"
9007
 
case "(($ac_try" in
9008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009
 
  *) ac_try_echo=$ac_try;;
9010
 
esac
9011
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012
 
$as_echo "$ac_try_echo") >&5
9013
 
  (eval "$ac_link") 2>conftest.er1
9014
 
  ac_status=$?
9015
 
  grep -v '^ *+' conftest.er1 >conftest.err
9016
 
  rm -f conftest.er1
9017
 
  cat conftest.err >&5
9018
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019
 
  (exit $ac_status); } && {
9020
 
         test -z "$ac_c_werror_flag" ||
9021
 
         test ! -s conftest.err
9022
 
       } && test -s conftest$ac_exeext && {
9023
 
         test "$cross_compiling" = yes ||
9024
 
         $as_test_x conftest$ac_exeext
9025
 
       }; then
9026
 
  ac_cv_func_shl_load=yes
9027
 
else
9028
 
  $as_echo "$as_me: failed program was:" >&5
9029
 
sed 's/^/| /' conftest.$ac_ext >&5
9030
 
 
9031
 
        ac_cv_func_shl_load=no
9032
 
fi
9033
 
 
9034
 
rm -rf conftest.dSYM
9035
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036
 
      conftest$ac_exeext conftest.$ac_ext
9037
 
fi
9038
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9039
 
$as_echo "$ac_cv_func_shl_load" >&6; }
9040
 
if test "x$ac_cv_func_shl_load" = x""yes; then
 
8926
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
8927
if test "x$ac_cv_func_shl_load" = x""yes; then :
9041
8928
  lt_cv_dlopen="shl_load"
9042
8929
else
9043
 
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8930
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9044
8931
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9045
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8932
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9046
8933
  $as_echo_n "(cached) " >&6
9047
8934
else
9048
8935
  ac_check_lib_save_LIBS=$LIBS
9049
8936
LIBS="-ldld  $LIBS"
9050
 
cat >conftest.$ac_ext <<_ACEOF
9051
 
/* confdefs.h.  */
9052
 
_ACEOF
9053
 
cat confdefs.h >>conftest.$ac_ext
9054
 
cat >>conftest.$ac_ext <<_ACEOF
 
8937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055
8938
/* end confdefs.h.  */
9056
8939
 
9057
8940
/* Override any GCC internal prototype to avoid an error.
9069
8952
  return 0;
9070
8953
}
9071
8954
_ACEOF
9072
 
rm -f conftest.$ac_objext conftest$ac_exeext
9073
 
if { (ac_try="$ac_link"
9074
 
case "(($ac_try" in
9075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076
 
  *) ac_try_echo=$ac_try;;
9077
 
esac
9078
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079
 
$as_echo "$ac_try_echo") >&5
9080
 
  (eval "$ac_link") 2>conftest.er1
9081
 
  ac_status=$?
9082
 
  grep -v '^ *+' conftest.er1 >conftest.err
9083
 
  rm -f conftest.er1
9084
 
  cat conftest.err >&5
9085
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086
 
  (exit $ac_status); } && {
9087
 
         test -z "$ac_c_werror_flag" ||
9088
 
         test ! -s conftest.err
9089
 
       } && test -s conftest$ac_exeext && {
9090
 
         test "$cross_compiling" = yes ||
9091
 
         $as_test_x conftest$ac_exeext
9092
 
       }; then
 
8955
if ac_fn_c_try_link "$LINENO"; then :
9093
8956
  ac_cv_lib_dld_shl_load=yes
9094
8957
else
9095
 
  $as_echo "$as_me: failed program was:" >&5
9096
 
sed 's/^/| /' conftest.$ac_ext >&5
9097
 
 
9098
 
        ac_cv_lib_dld_shl_load=no
 
8958
  ac_cv_lib_dld_shl_load=no
9099
8959
fi
9100
 
 
9101
 
rm -rf conftest.dSYM
9102
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103
 
      conftest$ac_exeext conftest.$ac_ext
 
8960
rm -f core conftest.err conftest.$ac_objext \
 
8961
    conftest$ac_exeext conftest.$ac_ext
9104
8962
LIBS=$ac_check_lib_save_LIBS
9105
8963
fi
9106
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9107
8965
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9108
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9109
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9110
 
else
9111
 
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9112
 
$as_echo_n "checking for dlopen... " >&6; }
9113
 
if test "${ac_cv_func_dlopen+set}" = set; then
9114
 
  $as_echo_n "(cached) " >&6
9115
 
else
9116
 
  cat >conftest.$ac_ext <<_ACEOF
9117
 
/* confdefs.h.  */
9118
 
_ACEOF
9119
 
cat confdefs.h >>conftest.$ac_ext
9120
 
cat >>conftest.$ac_ext <<_ACEOF
9121
 
/* end confdefs.h.  */
9122
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9123
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9124
 
#define dlopen innocuous_dlopen
9125
 
 
9126
 
/* System header to define __stub macros and hopefully few prototypes,
9127
 
    which can conflict with char dlopen (); below.
9128
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9129
 
    <limits.h> exists even on freestanding compilers.  */
9130
 
 
9131
 
#ifdef __STDC__
9132
 
# include <limits.h>
9133
 
#else
9134
 
# include <assert.h>
9135
 
#endif
9136
 
 
9137
 
#undef dlopen
9138
 
 
9139
 
/* Override any GCC internal prototype to avoid an error.
9140
 
   Use char because int might match the return type of a GCC
9141
 
   builtin and then its argument prototype would still apply.  */
9142
 
#ifdef __cplusplus
9143
 
extern "C"
9144
 
#endif
9145
 
char dlopen ();
9146
 
/* The GNU C library defines this for functions which it implements
9147
 
    to always fail with ENOSYS.  Some functions are actually named
9148
 
    something starting with __ and the normal name is an alias.  */
9149
 
#if defined __stub_dlopen || defined __stub___dlopen
9150
 
choke me
9151
 
#endif
9152
 
 
9153
 
int
9154
 
main ()
9155
 
{
9156
 
return dlopen ();
9157
 
  ;
9158
 
  return 0;
9159
 
}
9160
 
_ACEOF
9161
 
rm -f conftest.$ac_objext conftest$ac_exeext
9162
 
if { (ac_try="$ac_link"
9163
 
case "(($ac_try" in
9164
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165
 
  *) ac_try_echo=$ac_try;;
9166
 
esac
9167
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168
 
$as_echo "$ac_try_echo") >&5
9169
 
  (eval "$ac_link") 2>conftest.er1
9170
 
  ac_status=$?
9171
 
  grep -v '^ *+' conftest.er1 >conftest.err
9172
 
  rm -f conftest.er1
9173
 
  cat conftest.err >&5
9174
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175
 
  (exit $ac_status); } && {
9176
 
         test -z "$ac_c_werror_flag" ||
9177
 
         test ! -s conftest.err
9178
 
       } && test -s conftest$ac_exeext && {
9179
 
         test "$cross_compiling" = yes ||
9180
 
         $as_test_x conftest$ac_exeext
9181
 
       }; then
9182
 
  ac_cv_func_dlopen=yes
9183
 
else
9184
 
  $as_echo "$as_me: failed program was:" >&5
9185
 
sed 's/^/| /' conftest.$ac_ext >&5
9186
 
 
9187
 
        ac_cv_func_dlopen=no
9188
 
fi
9189
 
 
9190
 
rm -rf conftest.dSYM
9191
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192
 
      conftest$ac_exeext conftest.$ac_ext
9193
 
fi
9194
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9195
 
$as_echo "$ac_cv_func_dlopen" >&6; }
9196
 
if test "x$ac_cv_func_dlopen" = x""yes; then
 
8966
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
8967
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
8968
else
 
8969
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
8970
if test "x$ac_cv_func_dlopen" = x""yes; then :
9197
8971
  lt_cv_dlopen="dlopen"
9198
8972
else
9199
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8973
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9200
8974
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9201
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8975
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9202
8976
  $as_echo_n "(cached) " >&6
9203
8977
else
9204
8978
  ac_check_lib_save_LIBS=$LIBS
9205
8979
LIBS="-ldl  $LIBS"
9206
 
cat >conftest.$ac_ext <<_ACEOF
9207
 
/* confdefs.h.  */
9208
 
_ACEOF
9209
 
cat confdefs.h >>conftest.$ac_ext
9210
 
cat >>conftest.$ac_ext <<_ACEOF
 
8980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211
8981
/* end confdefs.h.  */
9212
8982
 
9213
8983
/* Override any GCC internal prototype to avoid an error.
9225
8995
  return 0;
9226
8996
}
9227
8997
_ACEOF
9228
 
rm -f conftest.$ac_objext conftest$ac_exeext
9229
 
if { (ac_try="$ac_link"
9230
 
case "(($ac_try" in
9231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232
 
  *) ac_try_echo=$ac_try;;
9233
 
esac
9234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9235
 
$as_echo "$ac_try_echo") >&5
9236
 
  (eval "$ac_link") 2>conftest.er1
9237
 
  ac_status=$?
9238
 
  grep -v '^ *+' conftest.er1 >conftest.err
9239
 
  rm -f conftest.er1
9240
 
  cat conftest.err >&5
9241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242
 
  (exit $ac_status); } && {
9243
 
         test -z "$ac_c_werror_flag" ||
9244
 
         test ! -s conftest.err
9245
 
       } && test -s conftest$ac_exeext && {
9246
 
         test "$cross_compiling" = yes ||
9247
 
         $as_test_x conftest$ac_exeext
9248
 
       }; then
 
8998
if ac_fn_c_try_link "$LINENO"; then :
9249
8999
  ac_cv_lib_dl_dlopen=yes
9250
9000
else
9251
 
  $as_echo "$as_me: failed program was:" >&5
9252
 
sed 's/^/| /' conftest.$ac_ext >&5
9253
 
 
9254
 
        ac_cv_lib_dl_dlopen=no
 
9001
  ac_cv_lib_dl_dlopen=no
9255
9002
fi
9256
 
 
9257
 
rm -rf conftest.dSYM
9258
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9259
 
      conftest$ac_exeext conftest.$ac_ext
 
9003
rm -f core conftest.err conftest.$ac_objext \
 
9004
    conftest$ac_exeext conftest.$ac_ext
9260
9005
LIBS=$ac_check_lib_save_LIBS
9261
9006
fi
9262
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9263
9008
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9264
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9009
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9265
9010
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9266
9011
else
9267
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9268
9013
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9269
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9014
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9270
9015
  $as_echo_n "(cached) " >&6
9271
9016
else
9272
9017
  ac_check_lib_save_LIBS=$LIBS
9273
9018
LIBS="-lsvld  $LIBS"
9274
 
cat >conftest.$ac_ext <<_ACEOF
9275
 
/* confdefs.h.  */
9276
 
_ACEOF
9277
 
cat confdefs.h >>conftest.$ac_ext
9278
 
cat >>conftest.$ac_ext <<_ACEOF
 
9019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279
9020
/* end confdefs.h.  */
9280
9021
 
9281
9022
/* Override any GCC internal prototype to avoid an error.
9293
9034
  return 0;
9294
9035
}
9295
9036
_ACEOF
9296
 
rm -f conftest.$ac_objext conftest$ac_exeext
9297
 
if { (ac_try="$ac_link"
9298
 
case "(($ac_try" in
9299
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300
 
  *) ac_try_echo=$ac_try;;
9301
 
esac
9302
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9303
 
$as_echo "$ac_try_echo") >&5
9304
 
  (eval "$ac_link") 2>conftest.er1
9305
 
  ac_status=$?
9306
 
  grep -v '^ *+' conftest.er1 >conftest.err
9307
 
  rm -f conftest.er1
9308
 
  cat conftest.err >&5
9309
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310
 
  (exit $ac_status); } && {
9311
 
         test -z "$ac_c_werror_flag" ||
9312
 
         test ! -s conftest.err
9313
 
       } && test -s conftest$ac_exeext && {
9314
 
         test "$cross_compiling" = yes ||
9315
 
         $as_test_x conftest$ac_exeext
9316
 
       }; then
 
9037
if ac_fn_c_try_link "$LINENO"; then :
9317
9038
  ac_cv_lib_svld_dlopen=yes
9318
9039
else
9319
 
  $as_echo "$as_me: failed program was:" >&5
9320
 
sed 's/^/| /' conftest.$ac_ext >&5
9321
 
 
9322
 
        ac_cv_lib_svld_dlopen=no
 
9040
  ac_cv_lib_svld_dlopen=no
9323
9041
fi
9324
 
 
9325
 
rm -rf conftest.dSYM
9326
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327
 
      conftest$ac_exeext conftest.$ac_ext
 
9042
rm -f core conftest.err conftest.$ac_objext \
 
9043
    conftest$ac_exeext conftest.$ac_ext
9328
9044
LIBS=$ac_check_lib_save_LIBS
9329
9045
fi
9330
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9331
9047
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9332
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
9048
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9333
9049
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9334
9050
else
9335
 
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9051
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9336
9052
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9337
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9053
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9338
9054
  $as_echo_n "(cached) " >&6
9339
9055
else
9340
9056
  ac_check_lib_save_LIBS=$LIBS
9341
9057
LIBS="-ldld  $LIBS"
9342
 
cat >conftest.$ac_ext <<_ACEOF
9343
 
/* confdefs.h.  */
9344
 
_ACEOF
9345
 
cat confdefs.h >>conftest.$ac_ext
9346
 
cat >>conftest.$ac_ext <<_ACEOF
 
9058
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347
9059
/* end confdefs.h.  */
9348
9060
 
9349
9061
/* Override any GCC internal prototype to avoid an error.
9361
9073
  return 0;
9362
9074
}
9363
9075
_ACEOF
9364
 
rm -f conftest.$ac_objext conftest$ac_exeext
9365
 
if { (ac_try="$ac_link"
9366
 
case "(($ac_try" in
9367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368
 
  *) ac_try_echo=$ac_try;;
9369
 
esac
9370
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371
 
$as_echo "$ac_try_echo") >&5
9372
 
  (eval "$ac_link") 2>conftest.er1
9373
 
  ac_status=$?
9374
 
  grep -v '^ *+' conftest.er1 >conftest.err
9375
 
  rm -f conftest.er1
9376
 
  cat conftest.err >&5
9377
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378
 
  (exit $ac_status); } && {
9379
 
         test -z "$ac_c_werror_flag" ||
9380
 
         test ! -s conftest.err
9381
 
       } && test -s conftest$ac_exeext && {
9382
 
         test "$cross_compiling" = yes ||
9383
 
         $as_test_x conftest$ac_exeext
9384
 
       }; then
 
9076
if ac_fn_c_try_link "$LINENO"; then :
9385
9077
  ac_cv_lib_dld_dld_link=yes
9386
9078
else
9387
 
  $as_echo "$as_me: failed program was:" >&5
9388
 
sed 's/^/| /' conftest.$ac_ext >&5
9389
 
 
9390
 
        ac_cv_lib_dld_dld_link=no
 
9079
  ac_cv_lib_dld_dld_link=no
9391
9080
fi
9392
 
 
9393
 
rm -rf conftest.dSYM
9394
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395
 
      conftest$ac_exeext conftest.$ac_ext
 
9081
rm -f core conftest.err conftest.$ac_objext \
 
9082
    conftest$ac_exeext conftest.$ac_ext
9396
9083
LIBS=$ac_check_lib_save_LIBS
9397
9084
fi
9398
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9399
9086
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9400
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9401
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9087
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
9088
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9402
9089
fi
9403
9090
 
9404
9091
 
9436
9123
    save_LIBS="$LIBS"
9437
9124
    LIBS="$lt_cv_dlopen_libs $LIBS"
9438
9125
 
9439
 
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9126
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9440
9127
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9441
 
if test "${lt_cv_dlopen_self+set}" = set; then
 
9128
if test "${lt_cv_dlopen_self+set}" = set; then :
9442
9129
  $as_echo_n "(cached) " >&6
9443
9130
else
9444
9131
          if test "$cross_compiling" = yes; then :
9447
9134
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9448
9135
  lt_status=$lt_dlunknown
9449
9136
  cat > conftest.$ac_ext <<EOF
9450
 
#line 9450 "configure"
 
9137
#line 9137 "configure"
9451
9138
#include "confdefs.h"
9452
9139
 
9453
9140
#if HAVE_DLFCN_H
9510
9197
    exit (status);
9511
9198
}
9512
9199
EOF
9513
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9200
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9514
9201
  (eval $ac_link) 2>&5
9515
9202
  ac_status=$?
9516
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9203
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9204
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9518
9205
    (./conftest; exit; ) >&5 2>/dev/null
9519
9206
    lt_status=$?
9520
9207
    case x$lt_status in
9531
9218
 
9532
9219
 
9533
9220
fi
9534
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9535
9222
$as_echo "$lt_cv_dlopen_self" >&6; }
9536
9223
 
9537
9224
    if test "x$lt_cv_dlopen_self" = xyes; then
9538
9225
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9539
 
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9226
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9540
9227
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9541
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9228
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9542
9229
  $as_echo_n "(cached) " >&6
9543
9230
else
9544
9231
          if test "$cross_compiling" = yes; then :
9547
9234
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9548
9235
  lt_status=$lt_dlunknown
9549
9236
  cat > conftest.$ac_ext <<EOF
9550
 
#line 9550 "configure"
 
9237
#line 9237 "configure"
9551
9238
#include "confdefs.h"
9552
9239
 
9553
9240
#if HAVE_DLFCN_H
9610
9297
    exit (status);
9611
9298
}
9612
9299
EOF
9613
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9300
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9614
9301
  (eval $ac_link) 2>&5
9615
9302
  ac_status=$?
9616
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9303
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9304
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9618
9305
    (./conftest; exit; ) >&5 2>/dev/null
9619
9306
    lt_status=$?
9620
9307
    case x$lt_status in
9631
9318
 
9632
9319
 
9633
9320
fi
9634
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9635
9322
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9636
9323
    fi
9637
9324
 
9654
9341
 
9655
9342
 
9656
9343
# Report which library types will actually be built
9657
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9658
9345
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9659
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9660
9347
$as_echo "$can_build_shared" >&6; }
9661
9348
 
9662
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9663
9350
$as_echo_n "checking whether to build shared libraries... " >&6; }
9664
9351
test "$can_build_shared" = "no" && enable_shared=no
9665
9352
 
9674
9361
  fi
9675
9362
  ;;
9676
9363
 
9677
 
aix4* | aix5*)
 
9364
aix[4-9]*)
9678
9365
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9679
9366
    test "$enable_shared" = yes && enable_static=no
9680
9367
  fi
9681
9368
    ;;
9682
9369
esac
9683
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9684
9371
$as_echo "$enable_shared" >&6; }
9685
9372
 
9686
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9687
9374
$as_echo_n "checking whether to build static libraries... " >&6; }
9688
9375
# Make sure either enable_shared or enable_static is yes.
9689
9376
test "$enable_shared" = yes || enable_static=yes
9690
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
9377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9691
9378
$as_echo "$enable_static" >&6; }
9692
9379
 
9693
9380
# The else clause should only fire when bootstrapping the
9730
9417
    predeps \
9731
9418
    postdeps \
9732
9419
    compiler_lib_search_path \
 
9420
    compiler_lib_search_dirs \
9733
9421
    archive_cmds \
9734
9422
    archive_expsym_cmds \
9735
9423
    postinstall_cmds \
9745
9433
    module_cmds \
9746
9434
    module_expsym_cmds \
9747
9435
    lt_cv_prog_compiler_c_o \
 
9436
    fix_srcfile_path \
9748
9437
    exclude_expsyms \
9749
9438
    include_expsyms; do
9750
9439
 
9779
9468
cfgfile="${ofile}T"
9780
9469
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9781
9470
  $rm -f "$cfgfile"
9782
 
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
9471
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9783
9472
$as_echo "$as_me: creating $ofile" >&6;}
9784
9473
 
9785
9474
  cat <<__EOF__ >> "$cfgfile"
9789
9478
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9790
9479
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9791
9480
#
9792
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9481
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9793
9482
# Free Software Foundation, Inc.
9794
9483
#
9795
9484
# This file is part of GNU Libtool:
10025
9714
# shared library.
10026
9715
postdeps=$lt_postdeps
10027
9716
 
 
9717
# The directories searched by this compiler when creating a shared
 
9718
# library
 
9719
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
9720
 
10028
9721
# The library search path used internally by the compiler when linking
10029
9722
# a shared library.
10030
9723
compiler_lib_search_path=$lt_compiler_lib_search_path
10113
9806
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10114
9807
 
10115
9808
# Fix the shell variable \$srcfile for the compiler.
10116
 
fix_srcfile_path="$fix_srcfile_path"
 
9809
fix_srcfile_path=$lt_fix_srcfile_path
10117
9810
 
10118
9811
# Set to yes if exported symbols are required.
10119
9812
always_export_symbols=$always_export_symbols
10181
9874
 
10182
9875
 
10183
9876
# Check whether --with-tags was given.
10184
 
if test "${with_tags+set}" = set; then
 
9877
if test "${with_tags+set}" = set; then :
10185
9878
  withval=$with_tags; tagnames="$withval"
10186
9879
fi
10187
9880
 
10188
9881
 
10189
9882
if test -f "$ltmain" && test -n "$tagnames"; then
10190
9883
  if test ! -f "${ofile}"; then
10191
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9884
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10192
9885
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10193
9886
  fi
10194
9887
 
10195
9888
  if test -z "$LTCC"; then
10196
9889
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10197
9890
    if test -z "$LTCC"; then
10198
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9891
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10199
9892
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10200
9893
    else
10201
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9894
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10202
9895
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10203
9896
    fi
10204
9897
  fi
10216
9909
    # Check whether tagname contains only valid characters
10217
9910
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10218
9911
    "") ;;
10219
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10220
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10221
 
   { (exit 1); exit 1; }; }
 
9912
    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10222
9913
        ;;
10223
9914
    esac
10224
9915
 
10225
9916
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10226
9917
    then
10227
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10228
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10229
 
   { (exit 1); exit 1; }; }
 
9918
      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10230
9919
    fi
10231
9920
 
10232
9921
    # Update the list of available tags.
10273
9962
predeps_CXX=
10274
9963
postdeps_CXX=
10275
9964
compiler_lib_search_path_CXX=
 
9965
compiler_lib_search_dirs_CXX=
10276
9966
 
10277
9967
# Source file extension for C++ test sources.
10278
9968
ac_ext=cpp
10282
9972
objext_CXX=$objext
10283
9973
 
10284
9974
# Code to be used in simple compile tests
10285
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9975
lt_simple_compile_test_code="int some_variable = 0;"
10286
9976
 
10287
9977
# Code to be used in simple link tests
10288
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
9978
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10289
9979
 
10290
9980
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10291
9981
 
10301
9991
 
10302
9992
# save warnings/boilerplate of simple test code
10303
9993
ac_outfile=conftest.$ac_objext
10304
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9994
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10305
9995
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10306
9996
_lt_compiler_boilerplate=`cat conftest.err`
10307
9997
$rm conftest*
10308
9998
 
10309
9999
ac_outfile=conftest.$ac_objext
10310
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10000
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10311
10001
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10312
10002
_lt_linker_boilerplate=`cat conftest.err`
10313
 
$rm conftest*
 
10003
$rm -r conftest*
10314
10004
 
10315
10005
 
10316
10006
# Allow CC to be a program name with arguments.
10358
10048
 
10359
10049
 
10360
10050
# Check whether --with-gnu-ld was given.
10361
 
if test "${with_gnu_ld+set}" = set; then
 
10051
if test "${with_gnu_ld+set}" = set; then :
10362
10052
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10363
10053
else
10364
10054
  with_gnu_ld=no
10367
10057
ac_prog=ld
10368
10058
if test "$GCC" = yes; then
10369
10059
  # Check if gcc -print-prog-name=ld gives a path.
10370
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10060
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10371
10061
$as_echo_n "checking for ld used by $CC... " >&6; }
10372
10062
  case $host in
10373
10063
  *-*-mingw*)
10397
10087
    ;;
10398
10088
  esac
10399
10089
elif test "$with_gnu_ld" = yes; then
10400
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10090
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10401
10091
$as_echo_n "checking for GNU ld... " >&6; }
10402
10092
else
10403
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10093
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10404
10094
$as_echo_n "checking for non-GNU ld... " >&6; }
10405
10095
fi
10406
 
if test "${lt_cv_path_LD+set}" = set; then
 
10096
if test "${lt_cv_path_LD+set}" = set; then :
10407
10097
  $as_echo_n "(cached) " >&6
10408
10098
else
10409
10099
  if test -z "$LD"; then
10434
10124
 
10435
10125
LD="$lt_cv_path_LD"
10436
10126
if test -n "$LD"; then
10437
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
10127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10438
10128
$as_echo "$LD" >&6; }
10439
10129
else
10440
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441
10131
$as_echo "no" >&6; }
10442
10132
fi
10443
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10444
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10445
 
   { (exit 1); exit 1; }; }
10446
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10133
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
10134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10447
10135
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10448
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10136
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10449
10137
  $as_echo_n "(cached) " >&6
10450
10138
else
10451
10139
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10458
10146
  ;;
10459
10147
esac
10460
10148
fi
10461
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10462
10150
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10463
10151
with_gnu_ld=$lt_cv_prog_gnu_ld
10464
10152
 
10509
10197
fi
10510
10198
 
10511
10199
# PORTME: fill in a description of your system's C++ link characteristics
10512
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10513
10201
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10514
10202
ld_shlibs_CXX=yes
10515
10203
case $host_os in
10517
10205
    # FIXME: insert proper C++ library support
10518
10206
    ld_shlibs_CXX=no
10519
10207
    ;;
10520
 
  aix4* | aix5*)
 
10208
  aix[4-9]*)
10521
10209
    if test "$host_cpu" = ia64; then
10522
10210
      # On IA64, the linker does run time linking by default, so we don't
10523
10211
      # have to do anything special.
10530
10218
      # Test if we are trying to use run time linking or normal
10531
10219
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10532
10220
      # need to do runtime linking.
10533
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10221
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10534
10222
        for ld_flag in $LDFLAGS; do
10535
10223
          case $ld_flag in
10536
10224
          *-brtl*)
10566
10254
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10567
10255
        then
10568
10256
          # We have reworked collect2
10569
 
          hardcode_direct_CXX=yes
 
10257
          :
10570
10258
        else
10571
10259
          # We have old collect2
10572
10260
          hardcode_direct_CXX=unsupported
10606
10294
      # -berok will link without error, but may produce a broken library.
10607
10295
      allow_undefined_flag_CXX='-berok'
10608
10296
      # Determine the default libpath from the value encoded in an empty executable.
10609
 
      cat >conftest.$ac_ext <<_ACEOF
10610
 
/* confdefs.h.  */
10611
 
_ACEOF
10612
 
cat confdefs.h >>conftest.$ac_ext
10613
 
cat >>conftest.$ac_ext <<_ACEOF
 
10297
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614
10298
/* end confdefs.h.  */
10615
10299
 
10616
10300
int
10621
10305
  return 0;
10622
10306
}
10623
10307
_ACEOF
10624
 
rm -f conftest.$ac_objext conftest$ac_exeext
10625
 
if { (ac_try="$ac_link"
10626
 
case "(($ac_try" in
10627
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628
 
  *) ac_try_echo=$ac_try;;
10629
 
esac
10630
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10631
 
$as_echo "$ac_try_echo") >&5
10632
 
  (eval "$ac_link") 2>conftest.er1
10633
 
  ac_status=$?
10634
 
  grep -v '^ *+' conftest.er1 >conftest.err
10635
 
  rm -f conftest.er1
10636
 
  cat conftest.err >&5
10637
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638
 
  (exit $ac_status); } && {
10639
 
         test -z "$ac_cxx_werror_flag" ||
10640
 
         test ! -s conftest.err
10641
 
       } && test -s conftest$ac_exeext && {
10642
 
         test "$cross_compiling" = yes ||
10643
 
         $as_test_x conftest$ac_exeext
10644
 
       }; then
 
10308
if ac_fn_cxx_try_link "$LINENO"; then :
10645
10309
 
10646
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10647
 
}'`
 
10310
lt_aix_libpath_sed='
 
10311
    /Import File Strings/,/^$/ {
 
10312
        /^0/ {
 
10313
            s/^0  *\(.*\)$/\1/
 
10314
            p
 
10315
        }
 
10316
    }'
 
10317
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10648
10318
# Check for a 64-bit object if we didn't find anything.
10649
 
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; }
10650
 
}'`; fi
10651
 
else
10652
 
  $as_echo "$as_me: failed program was:" >&5
10653
 
sed 's/^/| /' conftest.$ac_ext >&5
10654
 
 
10655
 
 
10656
 
fi
10657
 
 
10658
 
rm -rf conftest.dSYM
10659
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660
 
      conftest$ac_exeext conftest.$ac_ext
 
10319
if test -z "$aix_libpath"; then
 
10320
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10321
fi
 
10322
fi
 
10323
rm -f core conftest.err conftest.$ac_objext \
 
10324
    conftest$ac_exeext conftest.$ac_ext
10661
10325
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10662
10326
 
10663
10327
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10670
10334
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10671
10335
      else
10672
10336
        # Determine the default libpath from the value encoded in an empty executable.
10673
 
        cat >conftest.$ac_ext <<_ACEOF
10674
 
/* confdefs.h.  */
10675
 
_ACEOF
10676
 
cat confdefs.h >>conftest.$ac_ext
10677
 
cat >>conftest.$ac_ext <<_ACEOF
 
10337
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678
10338
/* end confdefs.h.  */
10679
10339
 
10680
10340
int
10685
10345
  return 0;
10686
10346
}
10687
10347
_ACEOF
10688
 
rm -f conftest.$ac_objext conftest$ac_exeext
10689
 
if { (ac_try="$ac_link"
10690
 
case "(($ac_try" in
10691
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692
 
  *) ac_try_echo=$ac_try;;
10693
 
esac
10694
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695
 
$as_echo "$ac_try_echo") >&5
10696
 
  (eval "$ac_link") 2>conftest.er1
10697
 
  ac_status=$?
10698
 
  grep -v '^ *+' conftest.er1 >conftest.err
10699
 
  rm -f conftest.er1
10700
 
  cat conftest.err >&5
10701
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702
 
  (exit $ac_status); } && {
10703
 
         test -z "$ac_cxx_werror_flag" ||
10704
 
         test ! -s conftest.err
10705
 
       } && test -s conftest$ac_exeext && {
10706
 
         test "$cross_compiling" = yes ||
10707
 
         $as_test_x conftest$ac_exeext
10708
 
       }; then
 
10348
if ac_fn_cxx_try_link "$LINENO"; then :
10709
10349
 
10710
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10711
 
}'`
 
10350
lt_aix_libpath_sed='
 
10351
    /Import File Strings/,/^$/ {
 
10352
        /^0/ {
 
10353
            s/^0  *\(.*\)$/\1/
 
10354
            p
 
10355
        }
 
10356
    }'
 
10357
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10712
10358
# Check for a 64-bit object if we didn't find anything.
10713
 
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; }
10714
 
}'`; fi
10715
 
else
10716
 
  $as_echo "$as_me: failed program was:" >&5
10717
 
sed 's/^/| /' conftest.$ac_ext >&5
10718
 
 
10719
 
 
10720
 
fi
10721
 
 
10722
 
rm -rf conftest.dSYM
10723
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10724
 
      conftest$ac_exeext conftest.$ac_ext
 
10359
if test -z "$aix_libpath"; then
 
10360
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10361
fi
 
10362
fi
 
10363
rm -f core conftest.err conftest.$ac_objext \
 
10364
    conftest$ac_exeext conftest.$ac_ext
10725
10365
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10726
10366
 
10727
10367
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10782
10422
    fi
10783
10423
  ;;
10784
10424
      darwin* | rhapsody*)
10785
 
        case $host_os in
10786
 
        rhapsody* | darwin1.[012])
10787
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10788
 
         ;;
10789
 
       *) # Darwin 1.3 on
10790
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10791
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10792
 
         else
10793
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
10794
 
             10.[012])
10795
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10796
 
               ;;
10797
 
             10.*)
10798
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10799
 
               ;;
10800
 
           esac
10801
 
         fi
10802
 
         ;;
10803
 
        esac
10804
10425
      archive_cmds_need_lc_CXX=no
10805
10426
      hardcode_direct_CXX=no
10806
10427
      hardcode_automatic_CXX=yes
10807
10428
      hardcode_shlibpath_var_CXX=unsupported
10808
10429
      whole_archive_flag_spec_CXX=''
10809
10430
      link_all_deplibs_CXX=yes
10810
 
 
10811
 
    if test "$GXX" = yes ; then
10812
 
      lt_int_apple_cc_single_mod=no
 
10431
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
10432
      if test "$GXX" = yes ; then
10813
10433
      output_verbose_link_cmd='echo'
10814
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10815
 
       lt_int_apple_cc_single_mod=yes
 
10434
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10435
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10436
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
10437
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
10438
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
10439
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
10440
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10816
10441
      fi
10817
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10818
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10819
 
      else
10820
 
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10821
 
        fi
10822
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10823
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10824
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10825
 
            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}'
10826
 
          else
10827
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10828
 
          fi
10829
 
            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}'
10830
10442
      else
10831
10443
      case $cc_basename in
10832
10444
        xlc*)
10833
10445
         output_verbose_link_cmd='echo'
10834
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10446
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10835
10447
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10836
10448
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10837
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10449
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10838
10450
          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}'
10839
10451
          ;;
10840
10452
       *)
10868
10480
  freebsd-elf*)
10869
10481
    archive_cmds_need_lc_CXX=no
10870
10482
    ;;
10871
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10483
  freebsd* | dragonfly*)
10872
10484
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10873
10485
    # conventions
10874
10486
    ld_shlibs_CXX=yes
10917
10529
      hardcode_libdir_separator_CXX=:
10918
10530
 
10919
10531
      case $host_cpu in
10920
 
      hppa*64*|ia64*)
10921
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10922
 
        ;;
 
10532
      hppa*64*|ia64*) ;;
10923
10533
      *)
10924
10534
        export_dynamic_flag_spec_CXX='${wl}-E'
10925
10535
        ;;
10987
10597
        ;;
10988
10598
    esac
10989
10599
    ;;
10990
 
  interix3*)
 
10600
  interix[3-9]*)
10991
10601
    hardcode_direct_CXX=no
10992
10602
    hardcode_shlibpath_var_CXX=no
10993
10603
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11027
10637
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11028
10638
    hardcode_libdir_separator_CXX=:
11029
10639
    ;;
11030
 
  linux*)
 
10640
  linux* | k*bsd*-gnu)
11031
10641
    case $cc_basename in
11032
10642
      KCC*)
11033
10643
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11079
10689
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11080
10690
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11081
10691
        ;;
11082
 
      pgCC*)
 
10692
      pgCC* | pgcpp*)
11083
10693
        # Portland Group C++ compiler
11084
10694
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11085
10695
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11107
10717
        # dependencies.
11108
10718
        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'
11109
10719
        ;;
 
10720
      *)
 
10721
        case `$CC -V 2>&1 | sed 5q` in
 
10722
        *Sun\ C*)
 
10723
          # Sun C++ 5.9
 
10724
          no_undefined_flag_CXX=' -zdefs'
 
10725
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10726
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
10727
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10728
          whole_archive_flag_spec_CXX='${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'
 
10729
 
 
10730
          # Not sure whether something based on
 
10731
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
10732
          # would be better.
 
10733
          output_verbose_link_cmd='echo'
 
10734
 
 
10735
          # Archives containing C++ object files must be created using
 
10736
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10737
          # necessary to make sure instantiated templates are included
 
10738
          # in the archive.
 
10739
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10740
          ;;
 
10741
        esac
 
10742
        ;;
11110
10743
    esac
11111
10744
    ;;
11112
10745
  lynxos*)
11145
10778
    ld_shlibs_CXX=no
11146
10779
    ;;
11147
10780
  openbsd*)
11148
 
    hardcode_direct_CXX=yes
11149
 
    hardcode_shlibpath_var_CXX=no
11150
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11151
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11152
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11153
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11154
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11155
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10781
    if test -f /usr/libexec/ld.so; then
 
10782
      hardcode_direct_CXX=yes
 
10783
      hardcode_shlibpath_var_CXX=no
 
10784
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10785
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10786
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10787
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10788
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10789
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10790
      fi
 
10791
      output_verbose_link_cmd='echo'
 
10792
    else
 
10793
      ld_shlibs_CXX=no
11156
10794
    fi
11157
 
    output_verbose_link_cmd='echo'
11158
10795
    ;;
11159
10796
  osf3*)
11160
10797
    case $cc_basename in
11316
10953
        case $host_os in
11317
10954
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11318
10955
          *)
11319
 
            # The C++ compiler is used as linker so we must use $wl
11320
 
            # flag to pass the commands to the underlying system
11321
 
            # linker. We must also pass each convience library through
11322
 
            # to the system linker between allextract/defaultextract.
11323
 
            # The C++ compiler will combine linker options so we
11324
 
            # cannot just pass the convience library names through
11325
 
            # without $wl.
 
10956
            # The compiler driver will combine and reorder linker options,
 
10957
            # but understands `-z linker_flag'.
11326
10958
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11327
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10959
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11328
10960
            ;;
11329
10961
        esac
11330
10962
        link_all_deplibs_CXX=yes
11371
11003
          fi
11372
11004
 
11373
11005
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11006
          case $host_os in
 
11007
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11008
          *)
 
11009
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11010
            ;;
 
11011
          esac
11374
11012
        fi
11375
11013
        ;;
11376
11014
    esac
11451
11089
    ld_shlibs_CXX=no
11452
11090
    ;;
11453
11091
esac
11454
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11455
11093
$as_echo "$ld_shlibs_CXX" >&6; }
11456
11094
test "$ld_shlibs_CXX" = no && can_build_shared=no
11457
11095
 
11462
11100
## There is no encapsulation within the following macros, do not change
11463
11101
## the running order or otherwise move them around unless you know exactly
11464
11102
## what you are doing...
11465
 
 
11466
11103
cat > conftest.$ac_ext <<EOF
11467
11104
class Foo
11468
11105
{
11473
11110
};
11474
11111
EOF
11475
11112
 
11476
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11113
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477
11114
  (eval $ac_compile) 2>&5
11478
11115
  ac_status=$?
11479
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480
 
  (exit $ac_status); }; then
 
11116
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11117
  test $ac_status = 0; }; then
11481
11118
  # Parse the compiler output and extract the necessary
11482
11119
  # objects, libraries and library flags.
11483
11120
 
11564
11201
 
11565
11202
$rm -f confest.$objext
11566
11203
 
 
11204
compiler_lib_search_dirs_CXX=
 
11205
if test -n "$compiler_lib_search_path_CXX"; then
 
11206
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
11207
fi
 
11208
 
11567
11209
# PORTME: override above test on systems where it is broken
11568
11210
case $host_os in
11569
 
interix3*)
 
11211
interix[3-9]*)
11570
11212
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11571
11213
  # hack all around it, let's just trust "g++" to DTRT.
11572
11214
  predep_objects_CXX=
11574
11216
  postdeps_CXX=
11575
11217
  ;;
11576
11218
 
 
11219
linux*)
 
11220
  case `$CC -V 2>&1 | sed 5q` in
 
11221
  *Sun\ C*)
 
11222
    # Sun C++ 5.9
 
11223
    #
 
11224
    # The more standards-conforming stlport4 library is
 
11225
    # incompatible with the Cstd library. Avoid specifying
 
11226
    # it if it's in CXXFLAGS. Ignore libCrun as
 
11227
    # -library=stlport4 depends on it.
 
11228
    case " $CXX $CXXFLAGS " in
 
11229
    *" -library=stlport4 "*)
 
11230
      solaris_use_stlport4=yes
 
11231
      ;;
 
11232
    esac
 
11233
    if test "$solaris_use_stlport4" != yes; then
 
11234
      postdeps_CXX='-library=Cstd -library=Crun'
 
11235
    fi
 
11236
    ;;
 
11237
  esac
 
11238
  ;;
 
11239
 
11577
11240
solaris*)
11578
11241
  case $cc_basename in
11579
11242
  CC*)
 
11243
    # The more standards-conforming stlport4 library is
 
11244
    # incompatible with the Cstd library. Avoid specifying
 
11245
    # it if it's in CXXFLAGS. Ignore libCrun as
 
11246
    # -library=stlport4 depends on it.
 
11247
    case " $CXX $CXXFLAGS " in
 
11248
    *" -library=stlport4 "*)
 
11249
      solaris_use_stlport4=yes
 
11250
      ;;
 
11251
    esac
 
11252
 
11580
11253
    # Adding this requires a known-good setup of shared libraries for
11581
11254
    # Sun compiler versions before 5.6, else PIC objects from an old
11582
11255
    # archive will be linked into the output, leading to subtle bugs.
11583
 
    postdeps_CXX='-lCstd -lCrun'
 
11256
    if test "$solaris_use_stlport4" != yes; then
 
11257
      postdeps_CXX='-library=Cstd -library=Crun'
 
11258
    fi
11584
11259
    ;;
11585
11260
  esac
11586
11261
  ;;
11587
11262
esac
11588
11263
 
11589
 
 
11590
11264
case " $postdeps_CXX " in
11591
11265
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11592
11266
esac
11595
11269
lt_prog_compiler_pic_CXX=
11596
11270
lt_prog_compiler_static_CXX=
11597
11271
 
11598
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11599
11273
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11600
11274
 
11601
11275
  # C++ specific cases for pic, static, wl, etc.
11617
11291
      # like `-m68040'.
11618
11292
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11619
11293
      ;;
11620
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11294
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11621
11295
      # PIC is the default for these OSes.
11622
11296
      ;;
11623
 
    mingw* | os2* | pw32*)
 
11297
    mingw* | cygwin* | os2* | pw32*)
11624
11298
      # This hack is so that the source file can tell whether it is being
11625
11299
      # built for inclusion in a dll (and should export symbols for example).
 
11300
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
11301
      # (--disable-auto-import) libraries
11626
11302
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11627
11303
      ;;
11628
11304
    darwin* | rhapsody*)
11634
11310
      # DJGPP does not support shared libraries at all
11635
11311
      lt_prog_compiler_pic_CXX=
11636
11312
      ;;
11637
 
    interix3*)
 
11313
    interix[3-9]*)
11638
11314
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11639
11315
      # Instead, we relocate shared libraries at runtime.
11640
11316
      ;;
11660
11336
    esac
11661
11337
  else
11662
11338
    case $host_os in
11663
 
      aix4* | aix5*)
 
11339
      aix[4-9]*)
11664
11340
        # All AIX code is PIC.
11665
11341
        if test "$host_cpu" = ia64; then
11666
11342
          # AIX 5 now supports IA64 processor
11700
11376
            ;;
11701
11377
        esac
11702
11378
        ;;
11703
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11379
      freebsd* | dragonfly*)
11704
11380
        # FreeBSD uses GNU C++
11705
11381
        ;;
11706
11382
      hpux9* | hpux10* | hpux11*)
11743
11419
            ;;
11744
11420
        esac
11745
11421
        ;;
11746
 
      linux*)
 
11422
      linux* | k*bsd*-gnu)
11747
11423
        case $cc_basename in
11748
11424
          KCC*)
11749
11425
            # KAI C++ Compiler
11756
11432
            lt_prog_compiler_pic_CXX='-KPIC'
11757
11433
            lt_prog_compiler_static_CXX='-static'
11758
11434
            ;;
11759
 
          pgCC*)
 
11435
          pgCC* | pgcpp*)
11760
11436
            # Portland Group C++ compiler.
11761
11437
            lt_prog_compiler_wl_CXX='-Wl,'
11762
11438
            lt_prog_compiler_pic_CXX='-fpic'
11770
11446
            lt_prog_compiler_static_CXX='-non_shared'
11771
11447
            ;;
11772
11448
          *)
 
11449
            case `$CC -V 2>&1 | sed 5q` in
 
11450
            *Sun\ C*)
 
11451
              # Sun C++ 5.9
 
11452
              lt_prog_compiler_pic_CXX='-KPIC'
 
11453
              lt_prog_compiler_static_CXX='-Bstatic'
 
11454
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
11455
              ;;
 
11456
            esac
11773
11457
            ;;
11774
11458
        esac
11775
11459
        ;;
11869
11553
    esac
11870
11554
  fi
11871
11555
 
11872
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11873
11557
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11874
11558
 
11875
11559
#
11877
11561
#
11878
11562
if test -n "$lt_prog_compiler_pic_CXX"; then
11879
11563
 
11880
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11881
11565
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11882
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11566
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
11883
11567
  $as_echo_n "(cached) " >&6
11884
11568
else
11885
 
  lt_prog_compiler_pic_works_CXX=no
 
11569
  lt_cv_prog_compiler_pic_works_CXX=no
11886
11570
  ac_outfile=conftest.$ac_objext
11887
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11571
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11888
11572
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11889
11573
   # Insert the option either (1) after the last *FLAGS variable, or
11890
11574
   # (2) before a word containing "conftest.", or (3) at the end.
11895
11579
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11896
11580
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11897
11581
   -e 's:$: $lt_compiler_flag:'`
11898
 
   (eval echo "\"\$as_me:11898: $lt_compile\"" >&5)
 
11582
   (eval echo "\"\$as_me:11582: $lt_compile\"" >&5)
11899
11583
   (eval "$lt_compile" 2>conftest.err)
11900
11584
   ac_status=$?
11901
11585
   cat conftest.err >&5
11902
 
   echo "$as_me:11902: \$? = $ac_status" >&5
 
11586
   echo "$as_me:11586: \$? = $ac_status" >&5
11903
11587
   if (exit $ac_status) && test -s "$ac_outfile"; then
11904
11588
     # The compiler can only warn and ignore the option if not recognized
11905
11589
     # So say no if there are warnings other than the usual output.
11906
11590
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11907
11591
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11908
11592
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11909
 
       lt_prog_compiler_pic_works_CXX=yes
 
11593
       lt_cv_prog_compiler_pic_works_CXX=yes
11910
11594
     fi
11911
11595
   fi
11912
11596
   $rm conftest*
11913
11597
 
11914
11598
fi
11915
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11916
 
$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
 
11599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
11600
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
11917
11601
 
11918
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11602
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11919
11603
    case $lt_prog_compiler_pic_CXX in
11920
11604
     "" | " "*) ;;
11921
11605
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11940
11624
# Check to make sure the static flag actually works.
11941
11625
#
11942
11626
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11943
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11944
11628
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11945
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11629
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
11946
11630
  $as_echo_n "(cached) " >&6
11947
11631
else
11948
 
  lt_prog_compiler_static_works_CXX=no
 
11632
  lt_cv_prog_compiler_static_works_CXX=no
11949
11633
   save_LDFLAGS="$LDFLAGS"
11950
11634
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11951
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11635
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11952
11636
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11953
11637
     # The linker can only warn and ignore the option if not recognized
11954
11638
     # So say no if there are warnings
11958
11642
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11959
11643
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11960
11644
       if diff conftest.exp conftest.er2 >/dev/null; then
11961
 
         lt_prog_compiler_static_works_CXX=yes
 
11645
         lt_cv_prog_compiler_static_works_CXX=yes
11962
11646
       fi
11963
11647
     else
11964
 
       lt_prog_compiler_static_works_CXX=yes
 
11648
       lt_cv_prog_compiler_static_works_CXX=yes
11965
11649
     fi
11966
11650
   fi
11967
 
   $rm conftest*
 
11651
   $rm -r conftest*
11968
11652
   LDFLAGS="$save_LDFLAGS"
11969
11653
 
11970
11654
fi
11971
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11972
 
$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
 
11655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
11656
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
11973
11657
 
11974
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11658
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
11975
11659
    :
11976
11660
else
11977
11661
    lt_prog_compiler_static_CXX=
11978
11662
fi
11979
11663
 
11980
11664
 
11981
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11982
11666
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11983
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11667
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
11984
11668
  $as_echo_n "(cached) " >&6
11985
11669
else
11986
11670
  lt_cv_prog_compiler_c_o_CXX=no
11988
11672
   mkdir conftest
11989
11673
   cd conftest
11990
11674
   mkdir out
11991
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11675
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11992
11676
 
11993
11677
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11994
11678
   # Insert the option either (1) after the last *FLAGS variable, or
11999
11683
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000
11684
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001
11685
   -e 's:$: $lt_compiler_flag:'`
12002
 
   (eval echo "\"\$as_me:12002: $lt_compile\"" >&5)
 
11686
   (eval echo "\"\$as_me:11686: $lt_compile\"" >&5)
12003
11687
   (eval "$lt_compile" 2>out/conftest.err)
12004
11688
   ac_status=$?
12005
11689
   cat out/conftest.err >&5
12006
 
   echo "$as_me:12006: \$? = $ac_status" >&5
 
11690
   echo "$as_me:11690: \$? = $ac_status" >&5
12007
11691
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12008
11692
   then
12009
11693
     # The compiler can only warn and ignore the option if not recognized
12025
11709
   $rm conftest*
12026
11710
 
12027
11711
fi
12028
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12029
11713
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12030
11714
 
12031
11715
 
12032
11716
hard_links="nottested"
12033
11717
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12034
11718
  # do not overwrite the value of need_locks provided by the user
12035
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12036
11720
$as_echo_n "checking if we can lock with hard links... " >&6; }
12037
11721
  hard_links=yes
12038
11722
  $rm conftest*
12040
11724
  touch conftest.a
12041
11725
  ln conftest.a conftest.b 2>&5 || hard_links=no
12042
11726
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12043
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
11727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12044
11728
$as_echo "$hard_links" >&6; }
12045
11729
  if test "$hard_links" = no; then
12046
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11730
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12047
11731
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12048
11732
    need_locks=warn
12049
11733
  fi
12051
11735
  need_locks=no
12052
11736
fi
12053
11737
 
12054
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12055
11739
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12056
11740
 
12057
11741
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12058
11742
  case $host_os in
12059
 
  aix4* | aix5*)
 
11743
  aix[4-9]*)
12060
11744
    # If we're using GNU nm, then we don't want the "-C" option.
12061
11745
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12062
11746
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12069
11753
    export_symbols_cmds_CXX="$ltdll_cmds"
12070
11754
  ;;
12071
11755
  cygwin* | mingw*)
12072
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11756
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12073
11757
  ;;
12074
11758
  *)
12075
11759
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12076
11760
  ;;
12077
11761
  esac
 
11762
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12078
11763
 
12079
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12080
11765
$as_echo "$ld_shlibs_CXX" >&6; }
12081
11766
test "$ld_shlibs_CXX" = no && can_build_shared=no
12082
11767
 
12097
11782
      # Test whether the compiler implicitly links with -lc since on some
12098
11783
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12099
11784
      # to ld, don't add -lc before -lgcc.
12100
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11785
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12101
11786
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12102
11787
      $rm conftest*
12103
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11788
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104
11789
 
12105
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11790
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12106
11791
  (eval $ac_compile) 2>&5
12107
11792
  ac_status=$?
12108
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109
 
  (exit $ac_status); } 2>conftest.err; then
 
11793
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11794
  test $ac_status = 0; } 2>conftest.err; then
12110
11795
        soname=conftest
12111
11796
        lib=conftest
12112
11797
        libobjs=conftest.$ac_objext
12120
11805
        libname=conftest
12121
11806
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12122
11807
        allow_undefined_flag_CXX=
12123
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11808
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12124
11809
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12125
11810
  ac_status=$?
12126
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127
 
  (exit $ac_status); }
 
11811
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11812
  test $ac_status = 0; }
12128
11813
        then
12129
11814
          archive_cmds_need_lc_CXX=no
12130
11815
        else
12135
11820
        cat conftest.err 1>&5
12136
11821
      fi
12137
11822
      $rm conftest*
12138
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11823
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12139
11824
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12140
11825
      ;;
12141
11826
    esac
12143
11828
  ;;
12144
11829
esac
12145
11830
 
12146
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12147
11832
$as_echo_n "checking dynamic linker characteristics... " >&6; }
12148
11833
library_names_spec=
12149
11834
libname_spec='lib$name'
12158
11843
version_type=none
12159
11844
dynamic_linker="$host_os ld.so"
12160
11845
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12161
 
if test "$GCC" = yes; then
12162
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12163
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12164
 
    # if the path contains ";" then we assume it to be the separator
12165
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12166
 
    # assumed that no part of a normal pathname contains ";" but that should
12167
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12168
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12169
 
  else
12170
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12171
 
  fi
12172
 
else
12173
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12174
 
fi
 
11846
 
12175
11847
need_lib_prefix=unknown
12176
11848
hardcode_into_libs=no
12177
11849
 
12189
11861
  soname_spec='${libname}${release}${shared_ext}$major'
12190
11862
  ;;
12191
11863
 
12192
 
aix4* | aix5*)
 
11864
aix[4-9]*)
12193
11865
  version_type=linux
12194
11866
  need_lib_prefix=no
12195
11867
  need_version=no
12323
11995
  version_type=darwin
12324
11996
  need_lib_prefix=no
12325
11997
  need_version=no
12326
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
 
11998
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12327
11999
  soname_spec='${libname}${release}${major}$shared_ext'
12328
12000
  shlibpath_overrides_runpath=yes
12329
12001
  shlibpath_var=DYLD_LIBRARY_PATH
12330
12002
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12331
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12332
 
  if test "$GCC" = yes; then
12333
 
    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"`
12334
 
  else
12335
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12336
 
  fi
 
12003
 
12337
12004
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12338
12005
  ;;
12339
12006
 
12350
12017
  dynamic_linker=no
12351
12018
  ;;
12352
12019
 
12353
 
kfreebsd*-gnu)
12354
 
  version_type=linux
12355
 
  need_lib_prefix=no
12356
 
  need_version=no
12357
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12358
 
  soname_spec='${libname}${release}${shared_ext}$major'
12359
 
  shlibpath_var=LD_LIBRARY_PATH
12360
 
  shlibpath_overrides_runpath=no
12361
 
  hardcode_into_libs=yes
12362
 
  dynamic_linker='GNU ld.so'
12363
 
  ;;
12364
 
 
12365
12020
freebsd* | dragonfly*)
12366
12021
  # DragonFly does not have aout.  When/if they implement a new
12367
12022
  # versioning mechanism, adjust this.
12399
12054
    shlibpath_overrides_runpath=no
12400
12055
    hardcode_into_libs=yes
12401
12056
    ;;
12402
 
  freebsd*) # from 4.6 on
 
12057
  *) # from 4.6 on, and DragonFly
12403
12058
    shlibpath_overrides_runpath=yes
12404
12059
    hardcode_into_libs=yes
12405
12060
    ;;
12462
12117
  postinstall_cmds='chmod 555 $lib'
12463
12118
  ;;
12464
12119
 
12465
 
interix3*)
 
12120
interix[3-9]*)
12466
12121
  version_type=linux
12467
12122
  need_lib_prefix=no
12468
12123
  need_version=no
12517
12172
  ;;
12518
12173
 
12519
12174
# This must be Linux ELF.
12520
 
linux*)
 
12175
linux* | k*bsd*-gnu)
12521
12176
  version_type=linux
12522
12177
  need_lib_prefix=no
12523
12178
  need_version=no
12533
12188
 
12534
12189
  # Append ld.so.conf contents to the search path
12535
12190
  if test -f /etc/ld.so.conf; then
12536
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12191
    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' ' '`
12537
12192
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12538
12193
  fi
12539
12194
 
12546
12201
  dynamic_linker='GNU/Linux ld.so'
12547
12202
  ;;
12548
12203
 
12549
 
knetbsd*-gnu)
12550
 
  version_type=linux
12551
 
  need_lib_prefix=no
12552
 
  need_version=no
12553
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12554
 
  soname_spec='${libname}${release}${shared_ext}$major'
12555
 
  shlibpath_var=LD_LIBRARY_PATH
12556
 
  shlibpath_overrides_runpath=no
12557
 
  hardcode_into_libs=yes
12558
 
  dynamic_linker='GNU ld.so'
12559
 
  ;;
12560
 
 
12561
12204
netbsd*)
12562
12205
  version_type=sunos
12563
12206
  need_lib_prefix=no
12639
12282
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12640
12283
  ;;
12641
12284
 
 
12285
rdos*)
 
12286
  dynamic_linker=no
 
12287
  ;;
 
12288
 
12642
12289
solaris*)
12643
12290
  version_type=linux
12644
12291
  need_lib_prefix=no
12731
12378
  dynamic_linker=no
12732
12379
  ;;
12733
12380
esac
12734
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12735
12382
$as_echo "$dynamic_linker" >&6; }
12736
12383
test "$dynamic_linker" = no && can_build_shared=no
12737
12384
 
 
12385
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
 
12386
  $as_echo_n "(cached) " >&6
 
12387
else
 
12388
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
12389
fi
 
12390
 
 
12391
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
12392
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
 
12393
  $as_echo_n "(cached) " >&6
 
12394
else
 
12395
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
12396
fi
 
12397
 
 
12398
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
12399
 
12738
12400
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12739
12401
if test "$GCC" = yes; then
12740
12402
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12741
12403
fi
12742
12404
 
12743
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12744
12406
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12745
12407
hardcode_action_CXX=
12746
12408
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12765
12427
  # directories.
12766
12428
  hardcode_action_CXX=unsupported
12767
12429
fi
12768
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12769
12431
$as_echo "$hardcode_action_CXX" >&6; }
12770
12432
 
12771
12433
if test "$hardcode_action_CXX" = relink; then
12818
12480
    predeps_CXX \
12819
12481
    postdeps_CXX \
12820
12482
    compiler_lib_search_path_CXX \
 
12483
    compiler_lib_search_dirs_CXX \
12821
12484
    archive_cmds_CXX \
12822
12485
    archive_expsym_cmds_CXX \
12823
12486
    postinstall_cmds_CXX \
12833
12496
    module_cmds_CXX \
12834
12497
    module_expsym_cmds_CXX \
12835
12498
    lt_cv_prog_compiler_c_o_CXX \
 
12499
    fix_srcfile_path_CXX \
12836
12500
    exclude_expsyms_CXX \
12837
12501
    include_expsyms_CXX; do
12838
12502
 
13065
12729
# shared library.
13066
12730
postdeps=$lt_postdeps_CXX
13067
12731
 
 
12732
# The directories searched by this compiler when creating a shared
 
12733
# library
 
12734
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
12735
 
13068
12736
# The library search path used internally by the compiler when linking
13069
12737
# a shared library.
13070
12738
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13153
12821
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13154
12822
 
13155
12823
# Fix the shell variable \$srcfile for the compiler.
13156
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12824
fix_srcfile_path=$lt_fix_srcfile_path
13157
12825
 
13158
12826
# Set to yes if exported symbols are required.
13159
12827
always_export_symbols=$always_export_symbols_CXX
13244
12912
objext_F77=$objext
13245
12913
 
13246
12914
# Code to be used in simple compile tests
13247
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12915
lt_simple_compile_test_code="\
 
12916
      subroutine t
 
12917
      return
 
12918
      end
 
12919
"
13248
12920
 
13249
12921
# Code to be used in simple link tests
13250
 
lt_simple_link_test_code="      program t\n      end\n"
 
12922
lt_simple_link_test_code="\
 
12923
      program t
 
12924
      end
 
12925
"
13251
12926
 
13252
12927
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13253
12928
 
13263
12938
 
13264
12939
# save warnings/boilerplate of simple test code
13265
12940
ac_outfile=conftest.$ac_objext
13266
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12941
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13267
12942
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13268
12943
_lt_compiler_boilerplate=`cat conftest.err`
13269
12944
$rm conftest*
13270
12945
 
13271
12946
ac_outfile=conftest.$ac_objext
13272
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12947
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13273
12948
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13274
12949
_lt_linker_boilerplate=`cat conftest.err`
13275
 
$rm conftest*
 
12950
$rm -r conftest*
13276
12951
 
13277
12952
 
13278
12953
# Allow CC to be a program name with arguments.
13291
12966
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13292
12967
 
13293
12968
 
13294
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13295
12970
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13296
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13297
12972
$as_echo "$can_build_shared" >&6; }
13298
12973
 
13299
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13300
12975
$as_echo_n "checking whether to build shared libraries... " >&6; }
13301
12976
test "$can_build_shared" = "no" && enable_shared=no
13302
12977
 
13310
12985
    postinstall_cmds='$RANLIB $lib'
13311
12986
  fi
13312
12987
  ;;
13313
 
aix4* | aix5*)
 
12988
aix[4-9]*)
13314
12989
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13315
12990
    test "$enable_shared" = yes && enable_static=no
13316
12991
  fi
13317
12992
  ;;
13318
12993
esac
13319
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13320
12995
$as_echo "$enable_shared" >&6; }
13321
12996
 
13322
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13323
12998
$as_echo_n "checking whether to build static libraries... " >&6; }
13324
12999
# Make sure either enable_shared or enable_static is yes.
13325
13000
test "$enable_shared" = yes || enable_static=yes
13326
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
13001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13327
13002
$as_echo "$enable_static" >&6; }
13328
13003
 
13329
13004
GCC_F77="$G77"
13333
13008
lt_prog_compiler_pic_F77=
13334
13009
lt_prog_compiler_static_F77=
13335
13010
 
13336
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13337
13012
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13338
13013
 
13339
13014
  if test "$GCC" = yes; then
13356
13031
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13357
13032
      ;;
13358
13033
 
13359
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13034
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13360
13035
      # PIC is the default for these OSes.
13361
13036
      ;;
13362
13037
 
13363
 
    mingw* | pw32* | os2*)
 
13038
    mingw* | cygwin* | pw32* | os2*)
13364
13039
      # This hack is so that the source file can tell whether it is being
13365
13040
      # built for inclusion in a dll (and should export symbols for example).
 
13041
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13042
      # (--disable-auto-import) libraries
13366
13043
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13367
13044
      ;;
13368
13045
 
13372
13049
      lt_prog_compiler_pic_F77='-fno-common'
13373
13050
      ;;
13374
13051
 
13375
 
    interix3*)
 
13052
    interix[3-9]*)
13376
13053
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13377
13054
      # Instead, we relocate shared libraries at runtime.
13378
13055
      ;;
13430
13107
       esac
13431
13108
       ;;
13432
13109
 
13433
 
    mingw* | pw32* | os2*)
 
13110
    mingw* | cygwin* | pw32* | os2*)
13434
13111
      # This hack is so that the source file can tell whether it is being
13435
13112
      # built for inclusion in a dll (and should export symbols for example).
13436
13113
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13463
13140
      lt_prog_compiler_static_F77='-Bstatic'
13464
13141
      ;;
13465
13142
 
13466
 
    linux*)
 
13143
    linux* | k*bsd*-gnu)
13467
13144
      case $cc_basename in
13468
13145
      icc* | ecc*)
13469
13146
        lt_prog_compiler_wl_F77='-Wl,'
13482
13159
        # All Alpha code is PIC.
13483
13160
        lt_prog_compiler_static_F77='-non_shared'
13484
13161
        ;;
 
13162
      *)
 
13163
        case `$CC -V 2>&1 | sed 5q` in
 
13164
        *Sun\ C*)
 
13165
          # Sun C 5.9
 
13166
          lt_prog_compiler_pic_F77='-KPIC'
 
13167
          lt_prog_compiler_static_F77='-Bstatic'
 
13168
          lt_prog_compiler_wl_F77='-Wl,'
 
13169
          ;;
 
13170
        *Sun\ F*)
 
13171
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
13172
          lt_prog_compiler_pic_F77='-KPIC'
 
13173
          lt_prog_compiler_static_F77='-Bstatic'
 
13174
          lt_prog_compiler_wl_F77=''
 
13175
          ;;
 
13176
        esac
 
13177
        ;;
13485
13178
      esac
13486
13179
      ;;
13487
13180
 
13491
13184
      lt_prog_compiler_static_F77='-non_shared'
13492
13185
      ;;
13493
13186
 
 
13187
    rdos*)
 
13188
      lt_prog_compiler_static_F77='-non_shared'
 
13189
      ;;
 
13190
 
13494
13191
    solaris*)
13495
13192
      lt_prog_compiler_pic_F77='-KPIC'
13496
13193
      lt_prog_compiler_static_F77='-Bstatic'
13543
13240
    esac
13544
13241
  fi
13545
13242
 
13546
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13547
13244
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13548
13245
 
13549
13246
#
13551
13248
#
13552
13249
if test -n "$lt_prog_compiler_pic_F77"; then
13553
13250
 
13554
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13555
13252
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13556
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13253
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13557
13254
  $as_echo_n "(cached) " >&6
13558
13255
else
13559
 
  lt_prog_compiler_pic_works_F77=no
 
13256
  lt_cv_prog_compiler_pic_works_F77=no
13560
13257
  ac_outfile=conftest.$ac_objext
13561
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13258
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13562
13259
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13563
13260
   # Insert the option either (1) after the last *FLAGS variable, or
13564
13261
   # (2) before a word containing "conftest.", or (3) at the end.
13569
13266
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13570
13267
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13571
13268
   -e 's:$: $lt_compiler_flag:'`
13572
 
   (eval echo "\"\$as_me:13572: $lt_compile\"" >&5)
 
13269
   (eval echo "\"\$as_me:13269: $lt_compile\"" >&5)
13573
13270
   (eval "$lt_compile" 2>conftest.err)
13574
13271
   ac_status=$?
13575
13272
   cat conftest.err >&5
13576
 
   echo "$as_me:13576: \$? = $ac_status" >&5
 
13273
   echo "$as_me:13273: \$? = $ac_status" >&5
13577
13274
   if (exit $ac_status) && test -s "$ac_outfile"; then
13578
13275
     # The compiler can only warn and ignore the option if not recognized
13579
13276
     # So say no if there are warnings other than the usual output.
13580
13277
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13581
13278
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13582
13279
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13583
 
       lt_prog_compiler_pic_works_F77=yes
 
13280
       lt_cv_prog_compiler_pic_works_F77=yes
13584
13281
     fi
13585
13282
   fi
13586
13283
   $rm conftest*
13587
13284
 
13588
13285
fi
13589
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13590
 
$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
 
13286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
13287
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13591
13288
 
13592
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13289
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13593
13290
    case $lt_prog_compiler_pic_F77 in
13594
13291
     "" | " "*) ;;
13595
13292
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13614
13311
# Check to make sure the static flag actually works.
13615
13312
#
13616
13313
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13617
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13618
13315
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13619
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13316
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13620
13317
  $as_echo_n "(cached) " >&6
13621
13318
else
13622
 
  lt_prog_compiler_static_works_F77=no
 
13319
  lt_cv_prog_compiler_static_works_F77=no
13623
13320
   save_LDFLAGS="$LDFLAGS"
13624
13321
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13625
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13322
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13626
13323
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13627
13324
     # The linker can only warn and ignore the option if not recognized
13628
13325
     # So say no if there are warnings
13632
13329
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13633
13330
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13634
13331
       if diff conftest.exp conftest.er2 >/dev/null; then
13635
 
         lt_prog_compiler_static_works_F77=yes
 
13332
         lt_cv_prog_compiler_static_works_F77=yes
13636
13333
       fi
13637
13334
     else
13638
 
       lt_prog_compiler_static_works_F77=yes
 
13335
       lt_cv_prog_compiler_static_works_F77=yes
13639
13336
     fi
13640
13337
   fi
13641
 
   $rm conftest*
 
13338
   $rm -r conftest*
13642
13339
   LDFLAGS="$save_LDFLAGS"
13643
13340
 
13644
13341
fi
13645
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13646
 
$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
 
13342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
13343
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13647
13344
 
13648
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13345
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13649
13346
    :
13650
13347
else
13651
13348
    lt_prog_compiler_static_F77=
13652
13349
fi
13653
13350
 
13654
13351
 
13655
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13656
13353
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13657
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13354
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13658
13355
  $as_echo_n "(cached) " >&6
13659
13356
else
13660
13357
  lt_cv_prog_compiler_c_o_F77=no
13662
13359
   mkdir conftest
13663
13360
   cd conftest
13664
13361
   mkdir out
13665
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13362
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13666
13363
 
13667
13364
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13668
13365
   # Insert the option either (1) after the last *FLAGS variable, or
13673
13370
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13674
13371
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13675
13372
   -e 's:$: $lt_compiler_flag:'`
13676
 
   (eval echo "\"\$as_me:13676: $lt_compile\"" >&5)
 
13373
   (eval echo "\"\$as_me:13373: $lt_compile\"" >&5)
13677
13374
   (eval "$lt_compile" 2>out/conftest.err)
13678
13375
   ac_status=$?
13679
13376
   cat out/conftest.err >&5
13680
 
   echo "$as_me:13680: \$? = $ac_status" >&5
 
13377
   echo "$as_me:13377: \$? = $ac_status" >&5
13681
13378
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13682
13379
   then
13683
13380
     # The compiler can only warn and ignore the option if not recognized
13699
13396
   $rm conftest*
13700
13397
 
13701
13398
fi
13702
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13703
13400
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13704
13401
 
13705
13402
 
13706
13403
hard_links="nottested"
13707
13404
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13708
13405
  # do not overwrite the value of need_locks provided by the user
13709
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13406
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13710
13407
$as_echo_n "checking if we can lock with hard links... " >&6; }
13711
13408
  hard_links=yes
13712
13409
  $rm conftest*
13714
13411
  touch conftest.a
13715
13412
  ln conftest.a conftest.b 2>&5 || hard_links=no
13716
13413
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13717
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13718
13415
$as_echo "$hard_links" >&6; }
13719
13416
  if test "$hard_links" = no; then
13720
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13417
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13721
13418
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13722
13419
    need_locks=warn
13723
13420
  fi
13725
13422
  need_locks=no
13726
13423
fi
13727
13424
 
13728
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13729
13426
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13730
13427
 
13731
13428
  runpath_var=
13757
13454
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13758
13455
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13759
13456
  # as well as any symbol that contains `d'.
13760
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13457
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13761
13458
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13762
13459
  # platforms (ab)use it in PIC code, but their linkers get confused if
13763
13460
  # the symbol is explicitly referenced.  Since portable code cannot
13764
13461
  # rely on this symbol name, it's probably fine to never include it in
13765
13462
  # preloaded symbol tables.
 
13463
  # Exclude shared library initialization/finalization symbols.
13766
13464
  extract_expsyms_cmds=
13767
13465
  # Just being paranoid about ensuring that cc_basename is set.
13768
13466
  for cc_temp in $compiler""; do
13821
13519
 
13822
13520
    # See if GNU ld supports shared libraries.
13823
13521
    case $host_os in
13824
 
    aix3* | aix4* | aix5*)
 
13522
    aix[3-9]*)
13825
13523
      # On AIX/PPC, the GNU linker is very broken
13826
13524
      if test "$host_cpu" != ia64; then
13827
13525
        ld_shlibs_F77=no
13869
13567
      allow_undefined_flag_F77=unsupported
13870
13568
      always_export_symbols_F77=no
13871
13569
      enable_shared_with_static_runtimes_F77=yes
13872
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13570
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13873
13571
 
13874
13572
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13875
13573
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13887
13585
      fi
13888
13586
      ;;
13889
13587
 
13890
 
    interix3*)
 
13588
    interix[3-9]*)
13891
13589
      hardcode_direct_F77=no
13892
13590
      hardcode_shlibpath_var_F77=no
13893
13591
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13902
13600
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13903
13601
      ;;
13904
13602
 
13905
 
    linux*)
 
13603
    gnu* | linux* | k*bsd*-gnu)
13906
13604
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13907
13605
        tmp_addflag=
13908
13606
        case $cc_basename,$host_cpu in
13920
13618
        ifc* | ifort*)                  # Intel Fortran compiler
13921
13619
          tmp_addflag=' -nofor_main' ;;
13922
13620
        esac
13923
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13621
        case `$CC -V 2>&1 | sed 5q` in
 
13622
        *Sun\ C*)                       # Sun C 5.9
 
13623
          whole_archive_flag_spec_F77='${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'
 
13624
          tmp_sharedflag='-G' ;;
 
13625
        *Sun\ F*)                       # Sun Fortran 8.3
 
13626
          tmp_sharedflag='-G' ;;
 
13627
        *)
 
13628
          tmp_sharedflag='-shared' ;;
 
13629
        esac
 
13630
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924
13631
 
13925
13632
        if test $supports_anon_versioning = yes; then
13926
13633
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13927
13634
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13928
13635
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13929
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13636
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13930
13637
        fi
13931
13638
      else
13932
13639
        ld_shlibs_F77=no
14031
13738
      fi
14032
13739
      ;;
14033
13740
 
14034
 
    aix4* | aix5*)
 
13741
    aix[4-9]*)
14035
13742
      if test "$host_cpu" = ia64; then
14036
13743
        # On IA64, the linker does run time linking by default, so we don't
14037
13744
        # have to do anything special.
14051
13758
        # Test if we are trying to use run time linking or normal
14052
13759
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14053
13760
        # need to do runtime linking.
14054
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13761
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14055
13762
          for ld_flag in $LDFLAGS; do
14056
13763
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14057
13764
            aix_use_runtimelinking=yes
14085
13792
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14086
13793
          then
14087
13794
          # We have reworked collect2
14088
 
          hardcode_direct_F77=yes
 
13795
          :
14089
13796
          else
14090
13797
          # We have old collect2
14091
13798
          hardcode_direct_F77=unsupported
14125
13832
        # -berok will link without error, but may produce a broken library.
14126
13833
        allow_undefined_flag_F77='-berok'
14127
13834
       # Determine the default libpath from the value encoded in an empty executable.
14128
 
       cat >conftest.$ac_ext <<_ACEOF
 
13835
       cat > conftest.$ac_ext <<_ACEOF
14129
13836
      program main
14130
13837
 
14131
13838
      end
14132
13839
_ACEOF
14133
 
rm -f conftest.$ac_objext conftest$ac_exeext
14134
 
if { (ac_try="$ac_link"
14135
 
case "(($ac_try" in
14136
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137
 
  *) ac_try_echo=$ac_try;;
14138
 
esac
14139
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14140
 
$as_echo "$ac_try_echo") >&5
14141
 
  (eval "$ac_link") 2>conftest.er1
14142
 
  ac_status=$?
14143
 
  grep -v '^ *+' conftest.er1 >conftest.err
14144
 
  rm -f conftest.er1
14145
 
  cat conftest.err >&5
14146
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147
 
  (exit $ac_status); } && {
14148
 
         test -z "$ac_f77_werror_flag" ||
14149
 
         test ! -s conftest.err
14150
 
       } && test -s conftest$ac_exeext && {
14151
 
         test "$cross_compiling" = yes ||
14152
 
         $as_test_x conftest$ac_exeext
14153
 
       }; then
 
13840
if ac_fn_f77_try_link "$LINENO"; then :
14154
13841
 
14155
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14156
 
}'`
 
13842
lt_aix_libpath_sed='
 
13843
    /Import File Strings/,/^$/ {
 
13844
        /^0/ {
 
13845
            s/^0  *\(.*\)$/\1/
 
13846
            p
 
13847
        }
 
13848
    }'
 
13849
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14157
13850
# Check for a 64-bit object if we didn't find anything.
14158
 
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; }
14159
 
}'`; fi
14160
 
else
14161
 
  $as_echo "$as_me: failed program was:" >&5
14162
 
sed 's/^/| /' conftest.$ac_ext >&5
14163
 
 
14164
 
 
14165
 
fi
14166
 
 
14167
 
rm -rf conftest.dSYM
14168
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14169
 
      conftest$ac_exeext conftest.$ac_ext
 
13851
if test -z "$aix_libpath"; then
 
13852
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13853
fi
 
13854
fi
 
13855
rm -f core conftest.err conftest.$ac_objext \
 
13856
    conftest$ac_exeext conftest.$ac_ext
14170
13857
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14171
13858
 
14172
13859
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14178
13865
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14179
13866
        else
14180
13867
         # Determine the default libpath from the value encoded in an empty executable.
14181
 
         cat >conftest.$ac_ext <<_ACEOF
 
13868
         cat > conftest.$ac_ext <<_ACEOF
14182
13869
      program main
14183
13870
 
14184
13871
      end
14185
13872
_ACEOF
14186
 
rm -f conftest.$ac_objext conftest$ac_exeext
14187
 
if { (ac_try="$ac_link"
14188
 
case "(($ac_try" in
14189
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190
 
  *) ac_try_echo=$ac_try;;
14191
 
esac
14192
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14193
 
$as_echo "$ac_try_echo") >&5
14194
 
  (eval "$ac_link") 2>conftest.er1
14195
 
  ac_status=$?
14196
 
  grep -v '^ *+' conftest.er1 >conftest.err
14197
 
  rm -f conftest.er1
14198
 
  cat conftest.err >&5
14199
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
 
  (exit $ac_status); } && {
14201
 
         test -z "$ac_f77_werror_flag" ||
14202
 
         test ! -s conftest.err
14203
 
       } && test -s conftest$ac_exeext && {
14204
 
         test "$cross_compiling" = yes ||
14205
 
         $as_test_x conftest$ac_exeext
14206
 
       }; then
 
13873
if ac_fn_f77_try_link "$LINENO"; then :
14207
13874
 
14208
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14209
 
}'`
 
13875
lt_aix_libpath_sed='
 
13876
    /Import File Strings/,/^$/ {
 
13877
        /^0/ {
 
13878
            s/^0  *\(.*\)$/\1/
 
13879
            p
 
13880
        }
 
13881
    }'
 
13882
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14210
13883
# Check for a 64-bit object if we didn't find anything.
14211
 
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; }
14212
 
}'`; fi
14213
 
else
14214
 
  $as_echo "$as_me: failed program was:" >&5
14215
 
sed 's/^/| /' conftest.$ac_ext >&5
14216
 
 
14217
 
 
14218
 
fi
14219
 
 
14220
 
rm -rf conftest.dSYM
14221
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14222
 
      conftest$ac_exeext conftest.$ac_ext
 
13884
if test -z "$aix_libpath"; then
 
13885
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13886
fi
 
13887
fi
 
13888
rm -f core conftest.err conftest.$ac_objext \
 
13889
    conftest$ac_exeext conftest.$ac_ext
14223
13890
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14224
13891
 
14225
13892
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14264
13931
      # The linker will automatically build a .lib file if we build a DLL.
14265
13932
      old_archive_From_new_cmds_F77='true'
14266
13933
      # FIXME: Should let the user specify the lib program.
14267
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13934
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14268
13935
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14269
13936
      enable_shared_with_static_runtimes_F77=yes
14270
13937
      ;;
14271
13938
 
14272
13939
    darwin* | rhapsody*)
14273
 
      case $host_os in
14274
 
        rhapsody* | darwin1.[012])
14275
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14276
 
         ;;
14277
 
       *) # Darwin 1.3 on
14278
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14279
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14280
 
         else
14281
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
14282
 
             10.[012])
14283
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14284
 
               ;;
14285
 
             10.*)
14286
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14287
 
               ;;
14288
 
           esac
14289
 
         fi
14290
 
         ;;
14291
 
      esac
 
13940
      allow_undefined_flag_F77="$_lt_dar_allow_undefined"
14292
13941
      archive_cmds_need_lc_F77=no
14293
13942
      hardcode_direct_F77=no
14294
13943
      hardcode_automatic_F77=yes
14297
13946
      link_all_deplibs_F77=yes
14298
13947
    if test "$GCC" = yes ; then
14299
13948
        output_verbose_link_cmd='echo'
14300
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14301
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14302
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14303
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14304
 
      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}'
 
13949
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
13950
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13951
        archive_expsym_cmds_F77="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}"
 
13952
        module_expsym_cmds_F77="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}"
14305
13953
    else
14306
13954
      case $cc_basename in
14307
13955
        xlc*)
14308
13956
         output_verbose_link_cmd='echo'
14309
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13957
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14310
13958
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14311
13959
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14312
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13960
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14313
13961
          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}'
14314
13962
          ;;
14315
13963
       *)
14349
13997
      ;;
14350
13998
 
14351
13999
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14352
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14000
    freebsd* | dragonfly*)
14353
14001
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14354
14002
      hardcode_libdir_flag_spec_F77='-R$libdir'
14355
14003
      hardcode_direct_F77=yes
14471
14119
      ;;
14472
14120
 
14473
14121
    openbsd*)
14474
 
      hardcode_direct_F77=yes
14475
 
      hardcode_shlibpath_var_F77=no
14476
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14477
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14478
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14479
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14480
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
14122
      if test -f /usr/libexec/ld.so; then
 
14123
        hardcode_direct_F77=yes
 
14124
        hardcode_shlibpath_var_F77=no
 
14125
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14126
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14127
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14128
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14129
          export_dynamic_flag_spec_F77='${wl}-E'
 
14130
        else
 
14131
          case $host_os in
 
14132
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14133
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14134
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
14135
             ;;
 
14136
           *)
 
14137
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14138
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14139
             ;;
 
14140
          esac
 
14141
        fi
14481
14142
      else
14482
 
       case $host_os in
14483
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14484
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14485
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14486
 
           ;;
14487
 
         *)
14488
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14489
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14490
 
           ;;
14491
 
       esac
 
14143
        ld_shlibs_F77=no
14492
14144
      fi
14493
14145
      ;;
14494
14146
 
14547
14199
      case $host_os in
14548
14200
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14549
14201
      *)
14550
 
        # The compiler driver will combine linker options so we
14551
 
        # cannot just pass the convience library names through
14552
 
        # without $wl, iff we do not link with $LD.
14553
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14202
        # The compiler driver will combine and reorder linker options,
 
14203
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
14204
        # but is careful enough not to reorder.
14554
14205
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14555
 
        case $wlarc in
14556
 
        '')
14557
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14558
 
        *)
14559
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14560
 
        esac ;;
 
14206
        if test "$GCC" = yes; then
 
14207
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14208
        else
 
14209
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
14210
        fi
 
14211
        ;;
14561
14212
      esac
14562
14213
      link_all_deplibs_F77=yes
14563
14214
      ;;
14614
14265
      fi
14615
14266
      ;;
14616
14267
 
14617
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14268
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14618
14269
      no_undefined_flag_F77='${wl}-z,text'
14619
14270
      archive_cmds_need_lc_F77=no
14620
14271
      hardcode_shlibpath_var_F77=no
14667
14318
    esac
14668
14319
  fi
14669
14320
 
14670
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14671
14322
$as_echo "$ld_shlibs_F77" >&6; }
14672
14323
test "$ld_shlibs_F77" = no && can_build_shared=no
14673
14324
 
14688
14339
      # Test whether the compiler implicitly links with -lc since on some
14689
14340
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14690
14341
      # to ld, don't add -lc before -lgcc.
14691
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14342
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14692
14343
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14693
14344
      $rm conftest*
14694
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14345
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
14346
 
14696
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14347
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14697
14348
  (eval $ac_compile) 2>&5
14698
14349
  ac_status=$?
14699
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700
 
  (exit $ac_status); } 2>conftest.err; then
 
14350
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14351
  test $ac_status = 0; } 2>conftest.err; then
14701
14352
        soname=conftest
14702
14353
        lib=conftest
14703
14354
        libobjs=conftest.$ac_objext
14711
14362
        libname=conftest
14712
14363
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14713
14364
        allow_undefined_flag_F77=
14714
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14365
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14715
14366
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14716
14367
  ac_status=$?
14717
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718
 
  (exit $ac_status); }
 
14368
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14369
  test $ac_status = 0; }
14719
14370
        then
14720
14371
          archive_cmds_need_lc_F77=no
14721
14372
        else
14726
14377
        cat conftest.err 1>&5
14727
14378
      fi
14728
14379
      $rm conftest*
14729
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14380
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14730
14381
$as_echo "$archive_cmds_need_lc_F77" >&6; }
14731
14382
      ;;
14732
14383
    esac
14734
14385
  ;;
14735
14386
esac
14736
14387
 
14737
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14738
14389
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14739
14390
library_names_spec=
14740
14391
libname_spec='lib$name'
14749
14400
version_type=none
14750
14401
dynamic_linker="$host_os ld.so"
14751
14402
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14752
 
if test "$GCC" = yes; then
14753
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14754
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14755
 
    # if the path contains ";" then we assume it to be the separator
14756
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14757
 
    # assumed that no part of a normal pathname contains ";" but that should
14758
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14759
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14760
 
  else
14761
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14762
 
  fi
14763
 
else
14764
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14765
 
fi
 
14403
 
14766
14404
need_lib_prefix=unknown
14767
14405
hardcode_into_libs=no
14768
14406
 
14780
14418
  soname_spec='${libname}${release}${shared_ext}$major'
14781
14419
  ;;
14782
14420
 
14783
 
aix4* | aix5*)
 
14421
aix[4-9]*)
14784
14422
  version_type=linux
14785
14423
  need_lib_prefix=no
14786
14424
  need_version=no
14914
14552
  version_type=darwin
14915
14553
  need_lib_prefix=no
14916
14554
  need_version=no
14917
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
 
14555
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14918
14556
  soname_spec='${libname}${release}${major}$shared_ext'
14919
14557
  shlibpath_overrides_runpath=yes
14920
14558
  shlibpath_var=DYLD_LIBRARY_PATH
14921
14559
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14922
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14923
 
  if test "$GCC" = yes; then
14924
 
    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"`
14925
 
  else
14926
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14927
 
  fi
 
14560
 
14928
14561
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14929
14562
  ;;
14930
14563
 
14941
14574
  dynamic_linker=no
14942
14575
  ;;
14943
14576
 
14944
 
kfreebsd*-gnu)
14945
 
  version_type=linux
14946
 
  need_lib_prefix=no
14947
 
  need_version=no
14948
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14949
 
  soname_spec='${libname}${release}${shared_ext}$major'
14950
 
  shlibpath_var=LD_LIBRARY_PATH
14951
 
  shlibpath_overrides_runpath=no
14952
 
  hardcode_into_libs=yes
14953
 
  dynamic_linker='GNU ld.so'
14954
 
  ;;
14955
 
 
14956
14577
freebsd* | dragonfly*)
14957
14578
  # DragonFly does not have aout.  When/if they implement a new
14958
14579
  # versioning mechanism, adjust this.
14990
14611
    shlibpath_overrides_runpath=no
14991
14612
    hardcode_into_libs=yes
14992
14613
    ;;
14993
 
  freebsd*) # from 4.6 on
 
14614
  *) # from 4.6 on, and DragonFly
14994
14615
    shlibpath_overrides_runpath=yes
14995
14616
    hardcode_into_libs=yes
14996
14617
    ;;
15053
14674
  postinstall_cmds='chmod 555 $lib'
15054
14675
  ;;
15055
14676
 
15056
 
interix3*)
 
14677
interix[3-9]*)
15057
14678
  version_type=linux
15058
14679
  need_lib_prefix=no
15059
14680
  need_version=no
15108
14729
  ;;
15109
14730
 
15110
14731
# This must be Linux ELF.
15111
 
linux*)
 
14732
linux* | k*bsd*-gnu)
15112
14733
  version_type=linux
15113
14734
  need_lib_prefix=no
15114
14735
  need_version=no
15124
14745
 
15125
14746
  # Append ld.so.conf contents to the search path
15126
14747
  if test -f /etc/ld.so.conf; then
15127
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14748
    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' ' '`
15128
14749
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15129
14750
  fi
15130
14751
 
15137
14758
  dynamic_linker='GNU/Linux ld.so'
15138
14759
  ;;
15139
14760
 
15140
 
knetbsd*-gnu)
15141
 
  version_type=linux
15142
 
  need_lib_prefix=no
15143
 
  need_version=no
15144
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15145
 
  soname_spec='${libname}${release}${shared_ext}$major'
15146
 
  shlibpath_var=LD_LIBRARY_PATH
15147
 
  shlibpath_overrides_runpath=no
15148
 
  hardcode_into_libs=yes
15149
 
  dynamic_linker='GNU ld.so'
15150
 
  ;;
15151
 
 
15152
14761
netbsd*)
15153
14762
  version_type=sunos
15154
14763
  need_lib_prefix=no
15230
14839
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15231
14840
  ;;
15232
14841
 
 
14842
rdos*)
 
14843
  dynamic_linker=no
 
14844
  ;;
 
14845
 
15233
14846
solaris*)
15234
14847
  version_type=linux
15235
14848
  need_lib_prefix=no
15322
14935
  dynamic_linker=no
15323
14936
  ;;
15324
14937
esac
15325
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15326
14939
$as_echo "$dynamic_linker" >&6; }
15327
14940
test "$dynamic_linker" = no && can_build_shared=no
15328
14941
 
 
14942
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
 
14943
  $as_echo_n "(cached) " >&6
 
14944
else
 
14945
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
14946
fi
 
14947
 
 
14948
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14949
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
 
14950
  $as_echo_n "(cached) " >&6
 
14951
else
 
14952
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
14953
fi
 
14954
 
 
14955
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14956
 
15329
14957
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15330
14958
if test "$GCC" = yes; then
15331
14959
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15332
14960
fi
15333
14961
 
15334
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15335
14963
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15336
14964
hardcode_action_F77=
15337
14965
if test -n "$hardcode_libdir_flag_spec_F77" || \
15356
14984
  # directories.
15357
14985
  hardcode_action_F77=unsupported
15358
14986
fi
15359
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15360
14988
$as_echo "$hardcode_action_F77" >&6; }
15361
14989
 
15362
14990
if test "$hardcode_action_F77" = relink; then
15409
15037
    predeps_F77 \
15410
15038
    postdeps_F77 \
15411
15039
    compiler_lib_search_path_F77 \
 
15040
    compiler_lib_search_dirs_F77 \
15412
15041
    archive_cmds_F77 \
15413
15042
    archive_expsym_cmds_F77 \
15414
15043
    postinstall_cmds_F77 \
15424
15053
    module_cmds_F77 \
15425
15054
    module_expsym_cmds_F77 \
15426
15055
    lt_cv_prog_compiler_c_o_F77 \
 
15056
    fix_srcfile_path_F77 \
15427
15057
    exclude_expsyms_F77 \
15428
15058
    include_expsyms_F77; do
15429
15059
 
15656
15286
# shared library.
15657
15287
postdeps=$lt_postdeps_F77
15658
15288
 
 
15289
# The directories searched by this compiler when creating a shared
 
15290
# library
 
15291
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
15292
 
15659
15293
# The library search path used internally by the compiler when linking
15660
15294
# a shared library.
15661
15295
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15744
15378
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15745
15379
 
15746
15380
# Fix the shell variable \$srcfile for the compiler.
15747
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
15381
fix_srcfile_path=$lt_fix_srcfile_path
15748
15382
 
15749
15383
# Set to yes if exported symbols are required.
15750
15384
always_export_symbols=$always_export_symbols_F77
15802
15436
objext_GCJ=$objext
15803
15437
 
15804
15438
# Code to be used in simple compile tests
15805
 
lt_simple_compile_test_code="class foo {}\n"
 
15439
lt_simple_compile_test_code="class foo {}"
15806
15440
 
15807
15441
# Code to be used in simple link tests
15808
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15442
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15809
15443
 
15810
15444
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15811
15445
 
15821
15455
 
15822
15456
# save warnings/boilerplate of simple test code
15823
15457
ac_outfile=conftest.$ac_objext
15824
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15458
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15825
15459
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15826
15460
_lt_compiler_boilerplate=`cat conftest.err`
15827
15461
$rm conftest*
15828
15462
 
15829
15463
ac_outfile=conftest.$ac_objext
15830
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15464
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15831
15465
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15832
15466
_lt_linker_boilerplate=`cat conftest.err`
15833
 
$rm conftest*
 
15467
$rm -r conftest*
15834
15468
 
15835
15469
 
15836
15470
# Allow CC to be a program name with arguments.
15865
15499
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15866
15500
 
15867
15501
 
15868
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15869
15503
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15870
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15504
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15871
15505
  $as_echo_n "(cached) " >&6
15872
15506
else
15873
15507
  lt_cv_prog_compiler_rtti_exceptions=no
15874
15508
  ac_outfile=conftest.$ac_objext
15875
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15509
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15876
15510
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15877
15511
   # Insert the option either (1) after the last *FLAGS variable, or
15878
15512
   # (2) before a word containing "conftest.", or (3) at the end.
15883
15517
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15884
15518
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15885
15519
   -e 's:$: $lt_compiler_flag:'`
15886
 
   (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
 
15520
   (eval echo "\"\$as_me:15520: $lt_compile\"" >&5)
15887
15521
   (eval "$lt_compile" 2>conftest.err)
15888
15522
   ac_status=$?
15889
15523
   cat conftest.err >&5
15890
 
   echo "$as_me:15890: \$? = $ac_status" >&5
 
15524
   echo "$as_me:15524: \$? = $ac_status" >&5
15891
15525
   if (exit $ac_status) && test -s "$ac_outfile"; then
15892
15526
     # The compiler can only warn and ignore the option if not recognized
15893
15527
     # So say no if there are warnings other than the usual output.
15900
15534
   $rm conftest*
15901
15535
 
15902
15536
fi
15903
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15904
15538
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15905
15539
 
15906
15540
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15915
15549
lt_prog_compiler_pic_GCJ=
15916
15550
lt_prog_compiler_static_GCJ=
15917
15551
 
15918
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15919
15553
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15920
15554
 
15921
15555
  if test "$GCC" = yes; then
15938
15572
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15939
15573
      ;;
15940
15574
 
15941
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15575
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15942
15576
      # PIC is the default for these OSes.
15943
15577
      ;;
15944
15578
 
15945
 
    mingw* | pw32* | os2*)
 
15579
    mingw* | cygwin* | pw32* | os2*)
15946
15580
      # This hack is so that the source file can tell whether it is being
15947
15581
      # built for inclusion in a dll (and should export symbols for example).
15948
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15582
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
15583
      # (--disable-auto-import) libraries
 
15584
 
15949
15585
      ;;
15950
15586
 
15951
15587
    darwin* | rhapsody*)
15954
15590
      lt_prog_compiler_pic_GCJ='-fno-common'
15955
15591
      ;;
15956
15592
 
15957
 
    interix3*)
 
15593
    interix[3-9]*)
15958
15594
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15959
15595
      # Instead, we relocate shared libraries at runtime.
15960
15596
      ;;
16012
15648
       esac
16013
15649
       ;;
16014
15650
 
16015
 
    mingw* | pw32* | os2*)
 
15651
    mingw* | cygwin* | pw32* | os2*)
16016
15652
      # This hack is so that the source file can tell whether it is being
16017
15653
      # built for inclusion in a dll (and should export symbols for example).
16018
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15654
 
16019
15655
      ;;
16020
15656
 
16021
15657
    hpux9* | hpux10* | hpux11*)
16045
15681
      lt_prog_compiler_static_GCJ='-Bstatic'
16046
15682
      ;;
16047
15683
 
16048
 
    linux*)
 
15684
    linux* | k*bsd*-gnu)
16049
15685
      case $cc_basename in
16050
15686
      icc* | ecc*)
16051
15687
        lt_prog_compiler_wl_GCJ='-Wl,'
16064
15700
        # All Alpha code is PIC.
16065
15701
        lt_prog_compiler_static_GCJ='-non_shared'
16066
15702
        ;;
 
15703
      *)
 
15704
        case `$CC -V 2>&1 | sed 5q` in
 
15705
        *Sun\ C*)
 
15706
          # Sun C 5.9
 
15707
          lt_prog_compiler_pic_GCJ='-KPIC'
 
15708
          lt_prog_compiler_static_GCJ='-Bstatic'
 
15709
          lt_prog_compiler_wl_GCJ='-Wl,'
 
15710
          ;;
 
15711
        *Sun\ F*)
 
15712
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
15713
          lt_prog_compiler_pic_GCJ='-KPIC'
 
15714
          lt_prog_compiler_static_GCJ='-Bstatic'
 
15715
          lt_prog_compiler_wl_GCJ=''
 
15716
          ;;
 
15717
        esac
 
15718
        ;;
16067
15719
      esac
16068
15720
      ;;
16069
15721
 
16073
15725
      lt_prog_compiler_static_GCJ='-non_shared'
16074
15726
      ;;
16075
15727
 
 
15728
    rdos*)
 
15729
      lt_prog_compiler_static_GCJ='-non_shared'
 
15730
      ;;
 
15731
 
16076
15732
    solaris*)
16077
15733
      lt_prog_compiler_pic_GCJ='-KPIC'
16078
15734
      lt_prog_compiler_static_GCJ='-Bstatic'
16125
15781
    esac
16126
15782
  fi
16127
15783
 
16128
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16129
15785
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16130
15786
 
16131
15787
#
16133
15789
#
16134
15790
if test -n "$lt_prog_compiler_pic_GCJ"; then
16135
15791
 
16136
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16137
15793
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16138
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15794
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16139
15795
  $as_echo_n "(cached) " >&6
16140
15796
else
16141
 
  lt_prog_compiler_pic_works_GCJ=no
 
15797
  lt_cv_prog_compiler_pic_works_GCJ=no
16142
15798
  ac_outfile=conftest.$ac_objext
16143
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15799
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16144
15800
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16145
15801
   # Insert the option either (1) after the last *FLAGS variable, or
16146
15802
   # (2) before a word containing "conftest.", or (3) at the end.
16151
15807
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16152
15808
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16153
15809
   -e 's:$: $lt_compiler_flag:'`
16154
 
   (eval echo "\"\$as_me:16154: $lt_compile\"" >&5)
 
15810
   (eval echo "\"\$as_me:15810: $lt_compile\"" >&5)
16155
15811
   (eval "$lt_compile" 2>conftest.err)
16156
15812
   ac_status=$?
16157
15813
   cat conftest.err >&5
16158
 
   echo "$as_me:16158: \$? = $ac_status" >&5
 
15814
   echo "$as_me:15814: \$? = $ac_status" >&5
16159
15815
   if (exit $ac_status) && test -s "$ac_outfile"; then
16160
15816
     # The compiler can only warn and ignore the option if not recognized
16161
15817
     # So say no if there are warnings other than the usual output.
16162
15818
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16163
15819
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16164
15820
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16165
 
       lt_prog_compiler_pic_works_GCJ=yes
 
15821
       lt_cv_prog_compiler_pic_works_GCJ=yes
16166
15822
     fi
16167
15823
   fi
16168
15824
   $rm conftest*
16169
15825
 
16170
15826
fi
16171
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16172
 
$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
 
15827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
15828
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16173
15829
 
16174
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15830
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16175
15831
    case $lt_prog_compiler_pic_GCJ in
16176
15832
     "" | " "*) ;;
16177
15833
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16196
15852
# Check to make sure the static flag actually works.
16197
15853
#
16198
15854
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16199
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16200
15856
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16201
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15857
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16202
15858
  $as_echo_n "(cached) " >&6
16203
15859
else
16204
 
  lt_prog_compiler_static_works_GCJ=no
 
15860
  lt_cv_prog_compiler_static_works_GCJ=no
16205
15861
   save_LDFLAGS="$LDFLAGS"
16206
15862
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16207
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15863
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16208
15864
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16209
15865
     # The linker can only warn and ignore the option if not recognized
16210
15866
     # So say no if there are warnings
16214
15870
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16215
15871
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16216
15872
       if diff conftest.exp conftest.er2 >/dev/null; then
16217
 
         lt_prog_compiler_static_works_GCJ=yes
 
15873
         lt_cv_prog_compiler_static_works_GCJ=yes
16218
15874
       fi
16219
15875
     else
16220
 
       lt_prog_compiler_static_works_GCJ=yes
 
15876
       lt_cv_prog_compiler_static_works_GCJ=yes
16221
15877
     fi
16222
15878
   fi
16223
 
   $rm conftest*
 
15879
   $rm -r conftest*
16224
15880
   LDFLAGS="$save_LDFLAGS"
16225
15881
 
16226
15882
fi
16227
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16228
 
$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
 
15883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
15884
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16229
15885
 
16230
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15886
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16231
15887
    :
16232
15888
else
16233
15889
    lt_prog_compiler_static_GCJ=
16234
15890
fi
16235
15891
 
16236
15892
 
16237
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16238
15894
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16239
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15895
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16240
15896
  $as_echo_n "(cached) " >&6
16241
15897
else
16242
15898
  lt_cv_prog_compiler_c_o_GCJ=no
16244
15900
   mkdir conftest
16245
15901
   cd conftest
16246
15902
   mkdir out
16247
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15903
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16248
15904
 
16249
15905
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16250
15906
   # Insert the option either (1) after the last *FLAGS variable, or
16255
15911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16256
15912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16257
15913
   -e 's:$: $lt_compiler_flag:'`
16258
 
   (eval echo "\"\$as_me:16258: $lt_compile\"" >&5)
 
15914
   (eval echo "\"\$as_me:15914: $lt_compile\"" >&5)
16259
15915
   (eval "$lt_compile" 2>out/conftest.err)
16260
15916
   ac_status=$?
16261
15917
   cat out/conftest.err >&5
16262
 
   echo "$as_me:16262: \$? = $ac_status" >&5
 
15918
   echo "$as_me:15918: \$? = $ac_status" >&5
16263
15919
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16264
15920
   then
16265
15921
     # The compiler can only warn and ignore the option if not recognized
16281
15937
   $rm conftest*
16282
15938
 
16283
15939
fi
16284
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16285
15941
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16286
15942
 
16287
15943
 
16288
15944
hard_links="nottested"
16289
15945
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16290
15946
  # do not overwrite the value of need_locks provided by the user
16291
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15947
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16292
15948
$as_echo_n "checking if we can lock with hard links... " >&6; }
16293
15949
  hard_links=yes
16294
15950
  $rm conftest*
16296
15952
  touch conftest.a
16297
15953
  ln conftest.a conftest.b 2>&5 || hard_links=no
16298
15954
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16299
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
15955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16300
15956
$as_echo "$hard_links" >&6; }
16301
15957
  if test "$hard_links" = no; then
16302
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15958
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16303
15959
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16304
15960
    need_locks=warn
16305
15961
  fi
16307
15963
  need_locks=no
16308
15964
fi
16309
15965
 
16310
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16311
15967
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16312
15968
 
16313
15969
  runpath_var=
16339
15995
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16340
15996
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16341
15997
  # as well as any symbol that contains `d'.
16342
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15998
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16343
15999
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16344
16000
  # platforms (ab)use it in PIC code, but their linkers get confused if
16345
16001
  # the symbol is explicitly referenced.  Since portable code cannot
16346
16002
  # rely on this symbol name, it's probably fine to never include it in
16347
16003
  # preloaded symbol tables.
 
16004
  # Exclude shared library initialization/finalization symbols.
16348
16005
  extract_expsyms_cmds=
16349
16006
  # Just being paranoid about ensuring that cc_basename is set.
16350
16007
  for cc_temp in $compiler""; do
16403
16060
 
16404
16061
    # See if GNU ld supports shared libraries.
16405
16062
    case $host_os in
16406
 
    aix3* | aix4* | aix5*)
 
16063
    aix[3-9]*)
16407
16064
      # On AIX/PPC, the GNU linker is very broken
16408
16065
      if test "$host_cpu" != ia64; then
16409
16066
        ld_shlibs_GCJ=no
16451
16108
      allow_undefined_flag_GCJ=unsupported
16452
16109
      always_export_symbols_GCJ=no
16453
16110
      enable_shared_with_static_runtimes_GCJ=yes
16454
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16111
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16455
16112
 
16456
16113
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16457
16114
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16469
16126
      fi
16470
16127
      ;;
16471
16128
 
16472
 
    interix3*)
 
16129
    interix[3-9]*)
16473
16130
      hardcode_direct_GCJ=no
16474
16131
      hardcode_shlibpath_var_GCJ=no
16475
16132
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16484
16141
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16485
16142
      ;;
16486
16143
 
16487
 
    linux*)
 
16144
    gnu* | linux* | k*bsd*-gnu)
16488
16145
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16489
16146
        tmp_addflag=
16490
16147
        case $cc_basename,$host_cpu in
16502
16159
        ifc* | ifort*)                  # Intel Fortran compiler
16503
16160
          tmp_addflag=' -nofor_main' ;;
16504
16161
        esac
16505
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16162
        case `$CC -V 2>&1 | sed 5q` in
 
16163
        *Sun\ C*)                       # Sun C 5.9
 
16164
          whole_archive_flag_spec_GCJ='${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'
 
16165
          tmp_sharedflag='-G' ;;
 
16166
        *Sun\ F*)                       # Sun Fortran 8.3
 
16167
          tmp_sharedflag='-G' ;;
 
16168
        *)
 
16169
          tmp_sharedflag='-shared' ;;
 
16170
        esac
 
16171
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16506
16172
 
16507
16173
        if test $supports_anon_versioning = yes; then
16508
16174
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16509
16175
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16510
16176
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16511
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16177
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16512
16178
        fi
16513
16179
      else
16514
16180
        ld_shlibs_GCJ=no
16613
16279
      fi
16614
16280
      ;;
16615
16281
 
16616
 
    aix4* | aix5*)
 
16282
    aix[4-9]*)
16617
16283
      if test "$host_cpu" = ia64; then
16618
16284
        # On IA64, the linker does run time linking by default, so we don't
16619
16285
        # have to do anything special.
16633
16299
        # Test if we are trying to use run time linking or normal
16634
16300
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16635
16301
        # need to do runtime linking.
16636
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16302
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16637
16303
          for ld_flag in $LDFLAGS; do
16638
16304
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16639
16305
            aix_use_runtimelinking=yes
16667
16333
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16668
16334
          then
16669
16335
          # We have reworked collect2
16670
 
          hardcode_direct_GCJ=yes
 
16336
          :
16671
16337
          else
16672
16338
          # We have old collect2
16673
16339
          hardcode_direct_GCJ=unsupported
16707
16373
        # -berok will link without error, but may produce a broken library.
16708
16374
        allow_undefined_flag_GCJ='-berok'
16709
16375
       # Determine the default libpath from the value encoded in an empty executable.
16710
 
       cat >conftest.$ac_ext <<_ACEOF
16711
 
/* confdefs.h.  */
16712
 
_ACEOF
16713
 
cat confdefs.h >>conftest.$ac_ext
16714
 
cat >>conftest.$ac_ext <<_ACEOF
 
16376
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715
16377
/* end confdefs.h.  */
16716
16378
 
16717
16379
int
16722
16384
  return 0;
16723
16385
}
16724
16386
_ACEOF
16725
 
rm -f conftest.$ac_objext conftest$ac_exeext
16726
 
if { (ac_try="$ac_link"
16727
 
case "(($ac_try" in
16728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729
 
  *) ac_try_echo=$ac_try;;
16730
 
esac
16731
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16732
 
$as_echo "$ac_try_echo") >&5
16733
 
  (eval "$ac_link") 2>conftest.er1
16734
 
  ac_status=$?
16735
 
  grep -v '^ *+' conftest.er1 >conftest.err
16736
 
  rm -f conftest.er1
16737
 
  cat conftest.err >&5
16738
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739
 
  (exit $ac_status); } && {
16740
 
         test -z "$ac_c_werror_flag" ||
16741
 
         test ! -s conftest.err
16742
 
       } && test -s conftest$ac_exeext && {
16743
 
         test "$cross_compiling" = yes ||
16744
 
         $as_test_x conftest$ac_exeext
16745
 
       }; then
 
16387
if ac_fn_c_try_link "$LINENO"; then :
16746
16388
 
16747
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16748
 
}'`
 
16389
lt_aix_libpath_sed='
 
16390
    /Import File Strings/,/^$/ {
 
16391
        /^0/ {
 
16392
            s/^0  *\(.*\)$/\1/
 
16393
            p
 
16394
        }
 
16395
    }'
 
16396
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16749
16397
# Check for a 64-bit object if we didn't find anything.
16750
 
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; }
16751
 
}'`; fi
16752
 
else
16753
 
  $as_echo "$as_me: failed program was:" >&5
16754
 
sed 's/^/| /' conftest.$ac_ext >&5
16755
 
 
16756
 
 
16757
 
fi
16758
 
 
16759
 
rm -rf conftest.dSYM
16760
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761
 
      conftest$ac_exeext conftest.$ac_ext
 
16398
if test -z "$aix_libpath"; then
 
16399
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16400
fi
 
16401
fi
 
16402
rm -f core conftest.err conftest.$ac_objext \
 
16403
    conftest$ac_exeext conftest.$ac_ext
16762
16404
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16763
16405
 
16764
16406
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16770
16412
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16771
16413
        else
16772
16414
         # Determine the default libpath from the value encoded in an empty executable.
16773
 
         cat >conftest.$ac_ext <<_ACEOF
16774
 
/* confdefs.h.  */
16775
 
_ACEOF
16776
 
cat confdefs.h >>conftest.$ac_ext
16777
 
cat >>conftest.$ac_ext <<_ACEOF
 
16415
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778
16416
/* end confdefs.h.  */
16779
16417
 
16780
16418
int
16785
16423
  return 0;
16786
16424
}
16787
16425
_ACEOF
16788
 
rm -f conftest.$ac_objext conftest$ac_exeext
16789
 
if { (ac_try="$ac_link"
16790
 
case "(($ac_try" in
16791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792
 
  *) ac_try_echo=$ac_try;;
16793
 
esac
16794
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16795
 
$as_echo "$ac_try_echo") >&5
16796
 
  (eval "$ac_link") 2>conftest.er1
16797
 
  ac_status=$?
16798
 
  grep -v '^ *+' conftest.er1 >conftest.err
16799
 
  rm -f conftest.er1
16800
 
  cat conftest.err >&5
16801
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802
 
  (exit $ac_status); } && {
16803
 
         test -z "$ac_c_werror_flag" ||
16804
 
         test ! -s conftest.err
16805
 
       } && test -s conftest$ac_exeext && {
16806
 
         test "$cross_compiling" = yes ||
16807
 
         $as_test_x conftest$ac_exeext
16808
 
       }; then
 
16426
if ac_fn_c_try_link "$LINENO"; then :
16809
16427
 
16810
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16811
 
}'`
 
16428
lt_aix_libpath_sed='
 
16429
    /Import File Strings/,/^$/ {
 
16430
        /^0/ {
 
16431
            s/^0  *\(.*\)$/\1/
 
16432
            p
 
16433
        }
 
16434
    }'
 
16435
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16812
16436
# Check for a 64-bit object if we didn't find anything.
16813
 
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; }
16814
 
}'`; fi
16815
 
else
16816
 
  $as_echo "$as_me: failed program was:" >&5
16817
 
sed 's/^/| /' conftest.$ac_ext >&5
16818
 
 
16819
 
 
16820
 
fi
16821
 
 
16822
 
rm -rf conftest.dSYM
16823
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824
 
      conftest$ac_exeext conftest.$ac_ext
 
16437
if test -z "$aix_libpath"; then
 
16438
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16439
fi
 
16440
fi
 
16441
rm -f core conftest.err conftest.$ac_objext \
 
16442
    conftest$ac_exeext conftest.$ac_ext
16825
16443
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16826
16444
 
16827
16445
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16866
16484
      # The linker will automatically build a .lib file if we build a DLL.
16867
16485
      old_archive_From_new_cmds_GCJ='true'
16868
16486
      # FIXME: Should let the user specify the lib program.
16869
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16487
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16870
16488
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16871
16489
      enable_shared_with_static_runtimes_GCJ=yes
16872
16490
      ;;
16873
16491
 
16874
16492
    darwin* | rhapsody*)
16875
 
      case $host_os in
16876
 
        rhapsody* | darwin1.[012])
16877
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16878
 
         ;;
16879
 
       *) # Darwin 1.3 on
16880
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16881
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16882
 
         else
16883
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16884
 
             10.[012])
16885
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16886
 
               ;;
16887
 
             10.*)
16888
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16889
 
               ;;
16890
 
           esac
16891
 
         fi
16892
 
         ;;
16893
 
      esac
 
16493
      allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
16894
16494
      archive_cmds_need_lc_GCJ=no
16895
16495
      hardcode_direct_GCJ=no
16896
16496
      hardcode_automatic_GCJ=yes
16899
16499
      link_all_deplibs_GCJ=yes
16900
16500
    if test "$GCC" = yes ; then
16901
16501
        output_verbose_link_cmd='echo'
16902
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16903
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16904
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16905
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16906
 
      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}'
 
16502
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
16503
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
16504
        archive_expsym_cmds_GCJ="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}"
 
16505
        module_expsym_cmds_GCJ="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}"
16907
16506
    else
16908
16507
      case $cc_basename in
16909
16508
        xlc*)
16910
16509
         output_verbose_link_cmd='echo'
16911
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16510
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16912
16511
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16913
16512
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16914
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16513
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16915
16514
          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}'
16916
16515
          ;;
16917
16516
       *)
16951
16550
      ;;
16952
16551
 
16953
16552
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16954
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16553
    freebsd* | dragonfly*)
16955
16554
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16956
16555
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16957
16556
      hardcode_direct_GCJ=yes
17073
16672
      ;;
17074
16673
 
17075
16674
    openbsd*)
17076
 
      hardcode_direct_GCJ=yes
17077
 
      hardcode_shlibpath_var_GCJ=no
17078
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17079
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17080
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17081
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17082
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16675
      if test -f /usr/libexec/ld.so; then
 
16676
        hardcode_direct_GCJ=yes
 
16677
        hardcode_shlibpath_var_GCJ=no
 
16678
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16679
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16680
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16681
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16682
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16683
        else
 
16684
          case $host_os in
 
16685
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16686
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16687
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16688
             ;;
 
16689
           *)
 
16690
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16691
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16692
             ;;
 
16693
          esac
 
16694
        fi
17083
16695
      else
17084
 
       case $host_os in
17085
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17086
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17087
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17088
 
           ;;
17089
 
         *)
17090
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17091
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17092
 
           ;;
17093
 
       esac
 
16696
        ld_shlibs_GCJ=no
17094
16697
      fi
17095
16698
      ;;
17096
16699
 
17149
16752
      case $host_os in
17150
16753
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17151
16754
      *)
17152
 
        # The compiler driver will combine linker options so we
17153
 
        # cannot just pass the convience library names through
17154
 
        # without $wl, iff we do not link with $LD.
17155
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16755
        # The compiler driver will combine and reorder linker options,
 
16756
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
16757
        # but is careful enough not to reorder.
17156
16758
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17157
 
        case $wlarc in
17158
 
        '')
17159
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17160
 
        *)
17161
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17162
 
        esac ;;
 
16759
        if test "$GCC" = yes; then
 
16760
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
16761
        else
 
16762
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
16763
        fi
 
16764
        ;;
17163
16765
      esac
17164
16766
      link_all_deplibs_GCJ=yes
17165
16767
      ;;
17216
16818
      fi
17217
16819
      ;;
17218
16820
 
17219
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16821
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17220
16822
      no_undefined_flag_GCJ='${wl}-z,text'
17221
16823
      archive_cmds_need_lc_GCJ=no
17222
16824
      hardcode_shlibpath_var_GCJ=no
17269
16871
    esac
17270
16872
  fi
17271
16873
 
17272
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17273
16875
$as_echo "$ld_shlibs_GCJ" >&6; }
17274
16876
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17275
16877
 
17290
16892
      # Test whether the compiler implicitly links with -lc since on some
17291
16893
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17292
16894
      # to ld, don't add -lc before -lgcc.
17293
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16895
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17294
16896
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17295
16897
      $rm conftest*
17296
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16898
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17297
16899
 
17298
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16900
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17299
16901
  (eval $ac_compile) 2>&5
17300
16902
  ac_status=$?
17301
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302
 
  (exit $ac_status); } 2>conftest.err; then
 
16903
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16904
  test $ac_status = 0; } 2>conftest.err; then
17303
16905
        soname=conftest
17304
16906
        lib=conftest
17305
16907
        libobjs=conftest.$ac_objext
17313
16915
        libname=conftest
17314
16916
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17315
16917
        allow_undefined_flag_GCJ=
17316
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16918
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17317
16919
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17318
16920
  ac_status=$?
17319
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320
 
  (exit $ac_status); }
 
16921
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16922
  test $ac_status = 0; }
17321
16923
        then
17322
16924
          archive_cmds_need_lc_GCJ=no
17323
16925
        else
17328
16930
        cat conftest.err 1>&5
17329
16931
      fi
17330
16932
      $rm conftest*
17331
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16933
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17332
16934
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17333
16935
      ;;
17334
16936
    esac
17336
16938
  ;;
17337
16939
esac
17338
16940
 
17339
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17340
16942
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17341
16943
library_names_spec=
17342
16944
libname_spec='lib$name'
17351
16953
version_type=none
17352
16954
dynamic_linker="$host_os ld.so"
17353
16955
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17354
 
if test "$GCC" = yes; then
17355
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17356
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17357
 
    # if the path contains ";" then we assume it to be the separator
17358
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17359
 
    # assumed that no part of a normal pathname contains ";" but that should
17360
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17361
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17362
 
  else
17363
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17364
 
  fi
17365
 
else
17366
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17367
 
fi
 
16956
 
17368
16957
need_lib_prefix=unknown
17369
16958
hardcode_into_libs=no
17370
16959
 
17382
16971
  soname_spec='${libname}${release}${shared_ext}$major'
17383
16972
  ;;
17384
16973
 
17385
 
aix4* | aix5*)
 
16974
aix[4-9]*)
17386
16975
  version_type=linux
17387
16976
  need_lib_prefix=no
17388
16977
  need_version=no
17516
17105
  version_type=darwin
17517
17106
  need_lib_prefix=no
17518
17107
  need_version=no
17519
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
 
17108
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17520
17109
  soname_spec='${libname}${release}${major}$shared_ext'
17521
17110
  shlibpath_overrides_runpath=yes
17522
17111
  shlibpath_var=DYLD_LIBRARY_PATH
17523
17112
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17524
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17525
 
  if test "$GCC" = yes; then
17526
 
    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"`
17527
 
  else
17528
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17529
 
  fi
 
17113
 
17530
17114
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17531
17115
  ;;
17532
17116
 
17543
17127
  dynamic_linker=no
17544
17128
  ;;
17545
17129
 
17546
 
kfreebsd*-gnu)
17547
 
  version_type=linux
17548
 
  need_lib_prefix=no
17549
 
  need_version=no
17550
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17551
 
  soname_spec='${libname}${release}${shared_ext}$major'
17552
 
  shlibpath_var=LD_LIBRARY_PATH
17553
 
  shlibpath_overrides_runpath=no
17554
 
  hardcode_into_libs=yes
17555
 
  dynamic_linker='GNU ld.so'
17556
 
  ;;
17557
 
 
17558
17130
freebsd* | dragonfly*)
17559
17131
  # DragonFly does not have aout.  When/if they implement a new
17560
17132
  # versioning mechanism, adjust this.
17592
17164
    shlibpath_overrides_runpath=no
17593
17165
    hardcode_into_libs=yes
17594
17166
    ;;
17595
 
  freebsd*) # from 4.6 on
 
17167
  *) # from 4.6 on, and DragonFly
17596
17168
    shlibpath_overrides_runpath=yes
17597
17169
    hardcode_into_libs=yes
17598
17170
    ;;
17655
17227
  postinstall_cmds='chmod 555 $lib'
17656
17228
  ;;
17657
17229
 
17658
 
interix3*)
 
17230
interix[3-9]*)
17659
17231
  version_type=linux
17660
17232
  need_lib_prefix=no
17661
17233
  need_version=no
17710
17282
  ;;
17711
17283
 
17712
17284
# This must be Linux ELF.
17713
 
linux*)
 
17285
linux* | k*bsd*-gnu)
17714
17286
  version_type=linux
17715
17287
  need_lib_prefix=no
17716
17288
  need_version=no
17726
17298
 
17727
17299
  # Append ld.so.conf contents to the search path
17728
17300
  if test -f /etc/ld.so.conf; then
17729
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17301
    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' ' '`
17730
17302
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17731
17303
  fi
17732
17304
 
17739
17311
  dynamic_linker='GNU/Linux ld.so'
17740
17312
  ;;
17741
17313
 
17742
 
knetbsd*-gnu)
17743
 
  version_type=linux
17744
 
  need_lib_prefix=no
17745
 
  need_version=no
17746
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17747
 
  soname_spec='${libname}${release}${shared_ext}$major'
17748
 
  shlibpath_var=LD_LIBRARY_PATH
17749
 
  shlibpath_overrides_runpath=no
17750
 
  hardcode_into_libs=yes
17751
 
  dynamic_linker='GNU ld.so'
17752
 
  ;;
17753
 
 
17754
17314
netbsd*)
17755
17315
  version_type=sunos
17756
17316
  need_lib_prefix=no
17832
17392
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17833
17393
  ;;
17834
17394
 
 
17395
rdos*)
 
17396
  dynamic_linker=no
 
17397
  ;;
 
17398
 
17835
17399
solaris*)
17836
17400
  version_type=linux
17837
17401
  need_lib_prefix=no
17924
17488
  dynamic_linker=no
17925
17489
  ;;
17926
17490
esac
17927
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17928
17492
$as_echo "$dynamic_linker" >&6; }
17929
17493
test "$dynamic_linker" = no && can_build_shared=no
17930
17494
 
 
17495
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
 
17496
  $as_echo_n "(cached) " >&6
 
17497
else
 
17498
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
17499
fi
 
17500
 
 
17501
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
17502
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
 
17503
  $as_echo_n "(cached) " >&6
 
17504
else
 
17505
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
17506
fi
 
17507
 
 
17508
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
17509
 
17931
17510
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17932
17511
if test "$GCC" = yes; then
17933
17512
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17934
17513
fi
17935
17514
 
17936
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17937
17516
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17938
17517
hardcode_action_GCJ=
17939
17518
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17958
17537
  # directories.
17959
17538
  hardcode_action_GCJ=unsupported
17960
17539
fi
17961
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17962
17541
$as_echo "$hardcode_action_GCJ" >&6; }
17963
17542
 
17964
17543
if test "$hardcode_action_GCJ" = relink; then
18011
17590
    predeps_GCJ \
18012
17591
    postdeps_GCJ \
18013
17592
    compiler_lib_search_path_GCJ \
 
17593
    compiler_lib_search_dirs_GCJ \
18014
17594
    archive_cmds_GCJ \
18015
17595
    archive_expsym_cmds_GCJ \
18016
17596
    postinstall_cmds_GCJ \
18026
17606
    module_cmds_GCJ \
18027
17607
    module_expsym_cmds_GCJ \
18028
17608
    lt_cv_prog_compiler_c_o_GCJ \
 
17609
    fix_srcfile_path_GCJ \
18029
17610
    exclude_expsyms_GCJ \
18030
17611
    include_expsyms_GCJ; do
18031
17612
 
18258
17839
# shared library.
18259
17840
postdeps=$lt_postdeps_GCJ
18260
17841
 
 
17842
# The directories searched by this compiler when creating a shared
 
17843
# library
 
17844
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
17845
 
18261
17846
# The library search path used internally by the compiler when linking
18262
17847
# a shared library.
18263
17848
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18346
17931
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
17932
 
18348
17933
# Fix the shell variable \$srcfile for the compiler.
18349
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
17934
fix_srcfile_path=$lt_fix_srcfile_path
18350
17935
 
18351
17936
# Set to yes if exported symbols are required.
18352
17937
always_export_symbols=$always_export_symbols_GCJ
18403
17988
objext_RC=$objext
18404
17989
 
18405
17990
# Code to be used in simple compile tests
18406
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
17991
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18407
17992
 
18408
17993
# Code to be used in simple link tests
18409
17994
lt_simple_link_test_code="$lt_simple_compile_test_code"
18422
18007
 
18423
18008
# save warnings/boilerplate of simple test code
18424
18009
ac_outfile=conftest.$ac_objext
18425
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18010
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18426
18011
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18427
18012
_lt_compiler_boilerplate=`cat conftest.err`
18428
18013
$rm conftest*
18429
18014
 
18430
18015
ac_outfile=conftest.$ac_objext
18431
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18016
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18432
18017
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18433
18018
_lt_linker_boilerplate=`cat conftest.err`
18434
 
$rm conftest*
 
18019
$rm -r conftest*
18435
18020
 
18436
18021
 
18437
18022
# Allow CC to be a program name with arguments.
18491
18076
    predeps_RC \
18492
18077
    postdeps_RC \
18493
18078
    compiler_lib_search_path_RC \
 
18079
    compiler_lib_search_dirs_RC \
18494
18080
    archive_cmds_RC \
18495
18081
    archive_expsym_cmds_RC \
18496
18082
    postinstall_cmds_RC \
18506
18092
    module_cmds_RC \
18507
18093
    module_expsym_cmds_RC \
18508
18094
    lt_cv_prog_compiler_c_o_RC \
 
18095
    fix_srcfile_path_RC \
18509
18096
    exclude_expsyms_RC \
18510
18097
    include_expsyms_RC; do
18511
18098
 
18738
18325
# shared library.
18739
18326
postdeps=$lt_postdeps_RC
18740
18327
 
 
18328
# The directories searched by this compiler when creating a shared
 
18329
# library
 
18330
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
18331
 
18741
18332
# The library search path used internally by the compiler when linking
18742
18333
# a shared library.
18743
18334
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18826
18417
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18827
18418
 
18828
18419
# Fix the shell variable \$srcfile for the compiler.
18829
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
18420
fix_srcfile_path=$lt_fix_srcfile_path
18830
18421
 
18831
18422
# Set to yes if exported symbols are required.
18832
18423
always_export_symbols=$always_export_symbols_RC
18870
18461
        ;;
18871
18462
 
18872
18463
      *)
18873
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18874
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18875
 
   { (exit 1); exit 1; }; }
 
18464
        as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
18876
18465
        ;;
18877
18466
      esac
18878
18467
 
18890
18479
    chmod +x "$ofile"
18891
18480
  else
18892
18481
    rm -f "${ofile}T"
18893
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18894
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18895
 
   { (exit 1); exit 1; }; }
 
18482
    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
18896
18483
  fi
18897
18484
fi
18898
18485
 
18949
18536
if test -n "$ac_tool_prefix"; then
18950
18537
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18951
18538
set dummy ${ac_tool_prefix}gcc; ac_word=$2
18952
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18953
18540
$as_echo_n "checking for $ac_word... " >&6; }
18954
 
if test "${ac_cv_prog_CC+set}" = set; then
 
18541
if test "${ac_cv_prog_CC+set}" = set; then :
18955
18542
  $as_echo_n "(cached) " >&6
18956
18543
else
18957
18544
  if test -n "$CC"; then
18962
18549
do
18963
18550
  IFS=$as_save_IFS
18964
18551
  test -z "$as_dir" && as_dir=.
18965
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18552
    for ac_exec_ext in '' $ac_executable_extensions; do
18966
18553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18967
18554
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18968
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18555
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18969
18556
    break 2
18970
18557
  fi
18971
18558
done
18972
 
done
 
18559
  done
18973
18560
IFS=$as_save_IFS
18974
18561
 
18975
18562
fi
18976
18563
fi
18977
18564
CC=$ac_cv_prog_CC
18978
18565
if test -n "$CC"; then
18979
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
18566
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18980
18567
$as_echo "$CC" >&6; }
18981
18568
else
18982
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983
18570
$as_echo "no" >&6; }
18984
18571
fi
18985
18572
 
18989
18576
  ac_ct_CC=$CC
18990
18577
  # Extract the first word of "gcc", so it can be a program name with args.
18991
18578
set dummy gcc; ac_word=$2
18992
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18993
18580
$as_echo_n "checking for $ac_word... " >&6; }
18994
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18581
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
18995
18582
  $as_echo_n "(cached) " >&6
18996
18583
else
18997
18584
  if test -n "$ac_ct_CC"; then
19002
18589
do
19003
18590
  IFS=$as_save_IFS
19004
18591
  test -z "$as_dir" && as_dir=.
19005
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18592
    for ac_exec_ext in '' $ac_executable_extensions; do
19006
18593
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19007
18594
    ac_cv_prog_ac_ct_CC="gcc"
19008
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18595
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19009
18596
    break 2
19010
18597
  fi
19011
18598
done
19012
 
done
 
18599
  done
19013
18600
IFS=$as_save_IFS
19014
18601
 
19015
18602
fi
19016
18603
fi
19017
18604
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19018
18605
if test -n "$ac_ct_CC"; then
19019
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19020
18607
$as_echo "$ac_ct_CC" >&6; }
19021
18608
else
19022
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19023
18610
$as_echo "no" >&6; }
19024
18611
fi
19025
18612
 
19028
18615
  else
19029
18616
    case $cross_compiling:$ac_tool_warned in
19030
18617
yes:)
19031
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
18618
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19032
18619
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19033
18620
ac_tool_warned=yes ;;
19034
18621
esac
19042
18629
          if test -n "$ac_tool_prefix"; then
19043
18630
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19044
18631
set dummy ${ac_tool_prefix}cc; ac_word=$2
19045
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19046
18633
$as_echo_n "checking for $ac_word... " >&6; }
19047
 
if test "${ac_cv_prog_CC+set}" = set; then
 
18634
if test "${ac_cv_prog_CC+set}" = set; then :
19048
18635
  $as_echo_n "(cached) " >&6
19049
18636
else
19050
18637
  if test -n "$CC"; then
19055
18642
do
19056
18643
  IFS=$as_save_IFS
19057
18644
  test -z "$as_dir" && as_dir=.
19058
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18645
    for ac_exec_ext in '' $ac_executable_extensions; do
19059
18646
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19060
18647
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19061
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18648
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19062
18649
    break 2
19063
18650
  fi
19064
18651
done
19065
 
done
 
18652
  done
19066
18653
IFS=$as_save_IFS
19067
18654
 
19068
18655
fi
19069
18656
fi
19070
18657
CC=$ac_cv_prog_CC
19071
18658
if test -n "$CC"; then
19072
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
18659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19073
18660
$as_echo "$CC" >&6; }
19074
18661
else
19075
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19076
18663
$as_echo "no" >&6; }
19077
18664
fi
19078
18665
 
19082
18669
if test -z "$CC"; then
19083
18670
  # Extract the first word of "cc", so it can be a program name with args.
19084
18671
set dummy cc; ac_word=$2
19085
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19086
18673
$as_echo_n "checking for $ac_word... " >&6; }
19087
 
if test "${ac_cv_prog_CC+set}" = set; then
 
18674
if test "${ac_cv_prog_CC+set}" = set; then :
19088
18675
  $as_echo_n "(cached) " >&6
19089
18676
else
19090
18677
  if test -n "$CC"; then
19096
18683
do
19097
18684
  IFS=$as_save_IFS
19098
18685
  test -z "$as_dir" && as_dir=.
19099
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18686
    for ac_exec_ext in '' $ac_executable_extensions; do
19100
18687
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19101
18688
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19102
18689
       ac_prog_rejected=yes
19103
18690
       continue
19104
18691
     fi
19105
18692
    ac_cv_prog_CC="cc"
19106
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19107
18694
    break 2
19108
18695
  fi
19109
18696
done
19110
 
done
 
18697
  done
19111
18698
IFS=$as_save_IFS
19112
18699
 
19113
18700
if test $ac_prog_rejected = yes; then
19126
18713
fi
19127
18714
CC=$ac_cv_prog_CC
19128
18715
if test -n "$CC"; then
19129
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
18716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19130
18717
$as_echo "$CC" >&6; }
19131
18718
else
19132
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133
18720
$as_echo "no" >&6; }
19134
18721
fi
19135
18722
 
19141
18728
  do
19142
18729
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19143
18730
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19144
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19145
18732
$as_echo_n "checking for $ac_word... " >&6; }
19146
 
if test "${ac_cv_prog_CC+set}" = set; then
 
18733
if test "${ac_cv_prog_CC+set}" = set; then :
19147
18734
  $as_echo_n "(cached) " >&6
19148
18735
else
19149
18736
  if test -n "$CC"; then
19154
18741
do
19155
18742
  IFS=$as_save_IFS
19156
18743
  test -z "$as_dir" && as_dir=.
19157
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18744
    for ac_exec_ext in '' $ac_executable_extensions; do
19158
18745
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19159
18746
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19160
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18747
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19161
18748
    break 2
19162
18749
  fi
19163
18750
done
19164
 
done
 
18751
  done
19165
18752
IFS=$as_save_IFS
19166
18753
 
19167
18754
fi
19168
18755
fi
19169
18756
CC=$ac_cv_prog_CC
19170
18757
if test -n "$CC"; then
19171
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
18758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19172
18759
$as_echo "$CC" >&6; }
19173
18760
else
19174
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175
18762
$as_echo "no" >&6; }
19176
18763
fi
19177
18764
 
19185
18772
do
19186
18773
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19187
18774
set dummy $ac_prog; ac_word=$2
19188
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19189
18776
$as_echo_n "checking for $ac_word... " >&6; }
19190
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18777
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19191
18778
  $as_echo_n "(cached) " >&6
19192
18779
else
19193
18780
  if test -n "$ac_ct_CC"; then
19198
18785
do
19199
18786
  IFS=$as_save_IFS
19200
18787
  test -z "$as_dir" && as_dir=.
19201
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18788
    for ac_exec_ext in '' $ac_executable_extensions; do
19202
18789
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19203
18790
    ac_cv_prog_ac_ct_CC="$ac_prog"
19204
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18791
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19205
18792
    break 2
19206
18793
  fi
19207
18794
done
19208
 
done
 
18795
  done
19209
18796
IFS=$as_save_IFS
19210
18797
 
19211
18798
fi
19212
18799
fi
19213
18800
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19214
18801
if test -n "$ac_ct_CC"; then
19215
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19216
18803
$as_echo "$ac_ct_CC" >&6; }
19217
18804
else
19218
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19219
18806
$as_echo "no" >&6; }
19220
18807
fi
19221
18808
 
19228
18815
  else
19229
18816
    case $cross_compiling:$ac_tool_warned in
19230
18817
yes:)
19231
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
18818
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19232
18819
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19233
18820
ac_tool_warned=yes ;;
19234
18821
esac
19239
18826
fi
19240
18827
 
19241
18828
 
19242
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
18829
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19243
18830
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19244
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19245
 
See \`config.log' for more details." >&5
19246
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19247
 
See \`config.log' for more details." >&2;}
19248
 
   { (exit 1); exit 1; }; }; }
 
18831
as_fn_error "no acceptable C compiler found in \$PATH
 
18832
See \`config.log' for more details." "$LINENO" 5; }
19249
18833
 
19250
18834
# Provide some information about the compiler.
19251
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
18835
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19252
18836
set X $ac_compile
19253
18837
ac_compiler=$2
19254
 
{ (ac_try="$ac_compiler --version >&5"
19255
 
case "(($ac_try" in
19256
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257
 
  *) ac_try_echo=$ac_try;;
19258
 
esac
19259
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19260
 
$as_echo "$ac_try_echo") >&5
19261
 
  (eval "$ac_compiler --version >&5") 2>&5
19262
 
  ac_status=$?
19263
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264
 
  (exit $ac_status); }
19265
 
{ (ac_try="$ac_compiler -v >&5"
19266
 
case "(($ac_try" in
19267
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268
 
  *) ac_try_echo=$ac_try;;
19269
 
esac
19270
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271
 
$as_echo "$ac_try_echo") >&5
19272
 
  (eval "$ac_compiler -v >&5") 2>&5
19273
 
  ac_status=$?
19274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275
 
  (exit $ac_status); }
19276
 
{ (ac_try="$ac_compiler -V >&5"
19277
 
case "(($ac_try" in
19278
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279
 
  *) ac_try_echo=$ac_try;;
19280
 
esac
19281
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19282
 
$as_echo "$ac_try_echo") >&5
19283
 
  (eval "$ac_compiler -V >&5") 2>&5
19284
 
  ac_status=$?
19285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286
 
  (exit $ac_status); }
 
18838
for ac_option in --version -v -V -qversion; do
 
18839
  { { ac_try="$ac_compiler $ac_option >&5"
 
18840
case "(($ac_try" in
 
18841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18842
  *) ac_try_echo=$ac_try;;
 
18843
esac
 
18844
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
18845
$as_echo "$ac_try_echo"; } >&5
 
18846
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
18847
  ac_status=$?
 
18848
  if test -s conftest.err; then
 
18849
    sed '10a\
 
18850
... rest of stderr output deleted ...
 
18851
         10q' conftest.err >conftest.er1
 
18852
    cat conftest.er1 >&5
 
18853
    rm -f conftest.er1 conftest.err
 
18854
  fi
 
18855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18856
  test $ac_status = 0; }
 
18857
done
19287
18858
 
19288
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
18859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19289
18860
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19290
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
18861
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19291
18862
  $as_echo_n "(cached) " >&6
19292
18863
else
19293
 
  cat >conftest.$ac_ext <<_ACEOF
19294
 
/* confdefs.h.  */
19295
 
_ACEOF
19296
 
cat confdefs.h >>conftest.$ac_ext
19297
 
cat >>conftest.$ac_ext <<_ACEOF
 
18864
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298
18865
/* end confdefs.h.  */
19299
18866
 
19300
18867
int
19308
18875
  return 0;
19309
18876
}
19310
18877
_ACEOF
19311
 
rm -f conftest.$ac_objext
19312
 
if { (ac_try="$ac_compile"
19313
 
case "(($ac_try" in
19314
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315
 
  *) ac_try_echo=$ac_try;;
19316
 
esac
19317
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19318
 
$as_echo "$ac_try_echo") >&5
19319
 
  (eval "$ac_compile") 2>conftest.er1
19320
 
  ac_status=$?
19321
 
  grep -v '^ *+' conftest.er1 >conftest.err
19322
 
  rm -f conftest.er1
19323
 
  cat conftest.err >&5
19324
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325
 
  (exit $ac_status); } && {
19326
 
         test -z "$ac_c_werror_flag" ||
19327
 
         test ! -s conftest.err
19328
 
       } && test -s conftest.$ac_objext; then
 
18878
if ac_fn_c_try_compile "$LINENO"; then :
19329
18879
  ac_compiler_gnu=yes
19330
18880
else
19331
 
  $as_echo "$as_me: failed program was:" >&5
19332
 
sed 's/^/| /' conftest.$ac_ext >&5
19333
 
 
19334
 
        ac_compiler_gnu=no
 
18881
  ac_compiler_gnu=no
19335
18882
fi
19336
 
 
19337
18883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338
18884
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19339
18885
 
19340
18886
fi
19341
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
18887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19342
18888
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19343
18889
if test $ac_compiler_gnu = yes; then
19344
18890
  GCC=yes
19347
18893
fi
19348
18894
ac_test_CFLAGS=${CFLAGS+set}
19349
18895
ac_save_CFLAGS=$CFLAGS
19350
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
18896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19351
18897
$as_echo_n "checking whether $CC accepts -g... " >&6; }
19352
 
if test "${ac_cv_prog_cc_g+set}" = set; then
 
18898
if test "${ac_cv_prog_cc_g+set}" = set; then :
19353
18899
  $as_echo_n "(cached) " >&6
19354
18900
else
19355
18901
  ac_save_c_werror_flag=$ac_c_werror_flag
19356
18902
   ac_c_werror_flag=yes
19357
18903
   ac_cv_prog_cc_g=no
19358
18904
   CFLAGS="-g"
19359
 
   cat >conftest.$ac_ext <<_ACEOF
19360
 
/* confdefs.h.  */
19361
 
_ACEOF
19362
 
cat confdefs.h >>conftest.$ac_ext
19363
 
cat >>conftest.$ac_ext <<_ACEOF
 
18905
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364
18906
/* end confdefs.h.  */
19365
18907
 
19366
18908
int
19371
18913
  return 0;
19372
18914
}
19373
18915
_ACEOF
19374
 
rm -f conftest.$ac_objext
19375
 
if { (ac_try="$ac_compile"
19376
 
case "(($ac_try" in
19377
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378
 
  *) ac_try_echo=$ac_try;;
19379
 
esac
19380
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19381
 
$as_echo "$ac_try_echo") >&5
19382
 
  (eval "$ac_compile") 2>conftest.er1
19383
 
  ac_status=$?
19384
 
  grep -v '^ *+' conftest.er1 >conftest.err
19385
 
  rm -f conftest.er1
19386
 
  cat conftest.err >&5
19387
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388
 
  (exit $ac_status); } && {
19389
 
         test -z "$ac_c_werror_flag" ||
19390
 
         test ! -s conftest.err
19391
 
       } && test -s conftest.$ac_objext; then
 
18916
if ac_fn_c_try_compile "$LINENO"; then :
19392
18917
  ac_cv_prog_cc_g=yes
19393
18918
else
19394
 
  $as_echo "$as_me: failed program was:" >&5
19395
 
sed 's/^/| /' conftest.$ac_ext >&5
19396
 
 
19397
 
        CFLAGS=""
19398
 
      cat >conftest.$ac_ext <<_ACEOF
19399
 
/* confdefs.h.  */
19400
 
_ACEOF
19401
 
cat confdefs.h >>conftest.$ac_ext
19402
 
cat >>conftest.$ac_ext <<_ACEOF
 
18919
  CFLAGS=""
 
18920
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403
18921
/* end confdefs.h.  */
19404
18922
 
19405
18923
int
19410
18928
  return 0;
19411
18929
}
19412
18930
_ACEOF
19413
 
rm -f conftest.$ac_objext
19414
 
if { (ac_try="$ac_compile"
19415
 
case "(($ac_try" in
19416
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417
 
  *) ac_try_echo=$ac_try;;
19418
 
esac
19419
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19420
 
$as_echo "$ac_try_echo") >&5
19421
 
  (eval "$ac_compile") 2>conftest.er1
19422
 
  ac_status=$?
19423
 
  grep -v '^ *+' conftest.er1 >conftest.err
19424
 
  rm -f conftest.er1
19425
 
  cat conftest.err >&5
19426
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427
 
  (exit $ac_status); } && {
19428
 
         test -z "$ac_c_werror_flag" ||
19429
 
         test ! -s conftest.err
19430
 
       } && test -s conftest.$ac_objext; then
19431
 
  :
 
18931
if ac_fn_c_try_compile "$LINENO"; then :
 
18932
 
19432
18933
else
19433
 
  $as_echo "$as_me: failed program was:" >&5
19434
 
sed 's/^/| /' conftest.$ac_ext >&5
19435
 
 
19436
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
18934
  ac_c_werror_flag=$ac_save_c_werror_flag
19437
18935
         CFLAGS="-g"
19438
 
         cat >conftest.$ac_ext <<_ACEOF
19439
 
/* confdefs.h.  */
19440
 
_ACEOF
19441
 
cat confdefs.h >>conftest.$ac_ext
19442
 
cat >>conftest.$ac_ext <<_ACEOF
 
18936
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443
18937
/* end confdefs.h.  */
19444
18938
 
19445
18939
int
19450
18944
  return 0;
19451
18945
}
19452
18946
_ACEOF
19453
 
rm -f conftest.$ac_objext
19454
 
if { (ac_try="$ac_compile"
19455
 
case "(($ac_try" in
19456
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457
 
  *) ac_try_echo=$ac_try;;
19458
 
esac
19459
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19460
 
$as_echo "$ac_try_echo") >&5
19461
 
  (eval "$ac_compile") 2>conftest.er1
19462
 
  ac_status=$?
19463
 
  grep -v '^ *+' conftest.er1 >conftest.err
19464
 
  rm -f conftest.er1
19465
 
  cat conftest.err >&5
19466
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467
 
  (exit $ac_status); } && {
19468
 
         test -z "$ac_c_werror_flag" ||
19469
 
         test ! -s conftest.err
19470
 
       } && test -s conftest.$ac_objext; then
 
18947
if ac_fn_c_try_compile "$LINENO"; then :
19471
18948
  ac_cv_prog_cc_g=yes
19472
 
else
19473
 
  $as_echo "$as_me: failed program was:" >&5
19474
 
sed 's/^/| /' conftest.$ac_ext >&5
19475
 
 
19476
 
 
19477
 
fi
19478
 
 
19479
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480
 
fi
19481
 
 
19482
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483
 
fi
19484
 
 
 
18949
fi
 
18950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18951
fi
 
18952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18953
fi
19485
18954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486
18955
   ac_c_werror_flag=$ac_save_c_werror_flag
19487
18956
fi
19488
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
18957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19489
18958
$as_echo "$ac_cv_prog_cc_g" >&6; }
19490
18959
if test "$ac_test_CFLAGS" = set; then
19491
18960
  CFLAGS=$ac_save_CFLAGS
19502
18971
    CFLAGS=
19503
18972
  fi
19504
18973
fi
19505
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
18974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19506
18975
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19507
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
18976
if test "${ac_cv_prog_cc_c89+set}" = set; then :
19508
18977
  $as_echo_n "(cached) " >&6
19509
18978
else
19510
18979
  ac_cv_prog_cc_c89=no
19511
18980
ac_save_CC=$CC
19512
 
cat >conftest.$ac_ext <<_ACEOF
19513
 
/* confdefs.h.  */
19514
 
_ACEOF
19515
 
cat confdefs.h >>conftest.$ac_ext
19516
 
cat >>conftest.$ac_ext <<_ACEOF
 
18981
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517
18982
/* end confdefs.h.  */
19518
18983
#include <stdarg.h>
19519
18984
#include <stdio.h>
19570
19035
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19571
19036
do
19572
19037
  CC="$ac_save_CC $ac_arg"
19573
 
  rm -f conftest.$ac_objext
19574
 
if { (ac_try="$ac_compile"
19575
 
case "(($ac_try" in
19576
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577
 
  *) ac_try_echo=$ac_try;;
19578
 
esac
19579
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19580
 
$as_echo "$ac_try_echo") >&5
19581
 
  (eval "$ac_compile") 2>conftest.er1
19582
 
  ac_status=$?
19583
 
  grep -v '^ *+' conftest.er1 >conftest.err
19584
 
  rm -f conftest.er1
19585
 
  cat conftest.err >&5
19586
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
 
  (exit $ac_status); } && {
19588
 
         test -z "$ac_c_werror_flag" ||
19589
 
         test ! -s conftest.err
19590
 
       } && test -s conftest.$ac_objext; then
 
19038
  if ac_fn_c_try_compile "$LINENO"; then :
19591
19039
  ac_cv_prog_cc_c89=$ac_arg
19592
 
else
19593
 
  $as_echo "$as_me: failed program was:" >&5
19594
 
sed 's/^/| /' conftest.$ac_ext >&5
19595
 
 
19596
 
 
19597
19040
fi
19598
 
 
19599
19041
rm -f core conftest.err conftest.$ac_objext
19600
19042
  test "x$ac_cv_prog_cc_c89" != "xno" && break
19601
19043
done
19606
19048
# AC_CACHE_VAL
19607
19049
case "x$ac_cv_prog_cc_c89" in
19608
19050
  x)
19609
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
19051
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19610
19052
$as_echo "none needed" >&6; } ;;
19611
19053
  xno)
19612
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
19054
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19613
19055
$as_echo "unsupported" >&6; } ;;
19614
19056
  *)
19615
19057
    CC="$CC $ac_cv_prog_cc_c89"
19616
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
19058
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19617
19059
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19618
19060
esac
 
19061
if test "x$ac_cv_prog_cc_c89" != xno; then :
19619
19062
 
 
19063
fi
19620
19064
 
19621
19065
ac_ext=c
19622
19066
ac_cpp='$CPP $CPPFLAGS'
19638
19082
# OS/2's system install, which has a completely different semantic
19639
19083
# ./install, which can be erroneously created by make from ./install.sh.
19640
19084
# Reject install programs that cannot install multiple files.
19641
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
19085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19642
19086
$as_echo_n "checking for a BSD-compatible install... " >&6; }
19643
19087
if test -z "$INSTALL"; then
19644
 
if test "${ac_cv_path_install+set}" = set; then
 
19088
if test "${ac_cv_path_install+set}" = set; then :
19645
19089
  $as_echo_n "(cached) " >&6
19646
19090
else
19647
19091
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649
19093
do
19650
19094
  IFS=$as_save_IFS
19651
19095
  test -z "$as_dir" && as_dir=.
19652
 
  # Account for people who put trailing slashes in PATH elements.
19653
 
case $as_dir/ in
19654
 
  ./ | .// | /cC/* | \
 
19096
    # Account for people who put trailing slashes in PATH elements.
 
19097
case $as_dir/ in #((
 
19098
  ./ | .// | /[cC]/* | \
19655
19099
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19656
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
19100
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19657
19101
  /usr/ucb/* ) ;;
19658
19102
  *)
19659
19103
    # OSF1 and SCO ODT 3.0 have their own names for install.
19690
19134
    ;;
19691
19135
esac
19692
19136
 
19693
 
done
 
19137
  done
19694
19138
IFS=$as_save_IFS
19695
19139
 
19696
19140
rm -rf conftest.one conftest.two conftest.dir
19706
19150
    INSTALL=$ac_install_sh
19707
19151
  fi
19708
19152
fi
19709
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
19153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19710
19154
$as_echo "$INSTALL" >&6; }
19711
19155
 
19712
19156
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19719
19163
 
19720
19164
 
19721
19165
 
19722
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
19166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19723
19167
$as_echo_n "checking for ANSI C header files... " >&6; }
19724
 
if test "${ac_cv_header_stdc+set}" = set; then
 
19168
if test "${ac_cv_header_stdc+set}" = set; then :
19725
19169
  $as_echo_n "(cached) " >&6
19726
19170
else
19727
 
  cat >conftest.$ac_ext <<_ACEOF
19728
 
/* confdefs.h.  */
19729
 
_ACEOF
19730
 
cat confdefs.h >>conftest.$ac_ext
19731
 
cat >>conftest.$ac_ext <<_ACEOF
 
19171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732
19172
/* end confdefs.h.  */
19733
19173
#include <stdlib.h>
19734
19174
#include <stdarg.h>
19743
19183
  return 0;
19744
19184
}
19745
19185
_ACEOF
19746
 
rm -f conftest.$ac_objext
19747
 
if { (ac_try="$ac_compile"
19748
 
case "(($ac_try" in
19749
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750
 
  *) ac_try_echo=$ac_try;;
19751
 
esac
19752
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19753
 
$as_echo "$ac_try_echo") >&5
19754
 
  (eval "$ac_compile") 2>conftest.er1
19755
 
  ac_status=$?
19756
 
  grep -v '^ *+' conftest.er1 >conftest.err
19757
 
  rm -f conftest.er1
19758
 
  cat conftest.err >&5
19759
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760
 
  (exit $ac_status); } && {
19761
 
         test -z "$ac_c_werror_flag" ||
19762
 
         test ! -s conftest.err
19763
 
       } && test -s conftest.$ac_objext; then
 
19186
if ac_fn_c_try_compile "$LINENO"; then :
19764
19187
  ac_cv_header_stdc=yes
19765
19188
else
19766
 
  $as_echo "$as_me: failed program was:" >&5
19767
 
sed 's/^/| /' conftest.$ac_ext >&5
19768
 
 
19769
 
        ac_cv_header_stdc=no
 
19189
  ac_cv_header_stdc=no
19770
19190
fi
19771
 
 
19772
19191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773
19192
 
19774
19193
if test $ac_cv_header_stdc = yes; then
19775
19194
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19776
 
  cat >conftest.$ac_ext <<_ACEOF
19777
 
/* confdefs.h.  */
19778
 
_ACEOF
19779
 
cat confdefs.h >>conftest.$ac_ext
19780
 
cat >>conftest.$ac_ext <<_ACEOF
 
19195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781
19196
/* end confdefs.h.  */
19782
19197
#include <string.h>
19783
19198
 
19784
19199
_ACEOF
19785
19200
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19786
 
  $EGREP "memchr" >/dev/null 2>&1; then
19787
 
  :
 
19201
  $EGREP "memchr" >/dev/null 2>&1; then :
 
19202
 
19788
19203
else
19789
19204
  ac_cv_header_stdc=no
19790
19205
fi
19794
19209
 
19795
19210
if test $ac_cv_header_stdc = yes; then
19796
19211
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19797
 
  cat >conftest.$ac_ext <<_ACEOF
19798
 
/* confdefs.h.  */
19799
 
_ACEOF
19800
 
cat confdefs.h >>conftest.$ac_ext
19801
 
cat >>conftest.$ac_ext <<_ACEOF
 
19212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802
19213
/* end confdefs.h.  */
19803
19214
#include <stdlib.h>
19804
19215
 
19805
19216
_ACEOF
19806
19217
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19807
 
  $EGREP "free" >/dev/null 2>&1; then
19808
 
  :
 
19218
  $EGREP "free" >/dev/null 2>&1; then :
 
19219
 
19809
19220
else
19810
19221
  ac_cv_header_stdc=no
19811
19222
fi
19815
19226
 
19816
19227
if test $ac_cv_header_stdc = yes; then
19817
19228
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19818
 
  if test "$cross_compiling" = yes; then
 
19229
  if test "$cross_compiling" = yes; then :
19819
19230
  :
19820
19231
else
19821
 
  cat >conftest.$ac_ext <<_ACEOF
19822
 
/* confdefs.h.  */
19823
 
_ACEOF
19824
 
cat confdefs.h >>conftest.$ac_ext
19825
 
cat >>conftest.$ac_ext <<_ACEOF
 
19232
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826
19233
/* end confdefs.h.  */
19827
19234
#include <ctype.h>
19828
19235
#include <stdlib.h>
19849
19256
  return 0;
19850
19257
}
19851
19258
_ACEOF
19852
 
rm -f conftest$ac_exeext
19853
 
if { (ac_try="$ac_link"
19854
 
case "(($ac_try" in
19855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856
 
  *) ac_try_echo=$ac_try;;
19857
 
esac
19858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19859
 
$as_echo "$ac_try_echo") >&5
19860
 
  (eval "$ac_link") 2>&5
19861
 
  ac_status=$?
19862
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19864
 
  { (case "(($ac_try" in
19865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866
 
  *) ac_try_echo=$ac_try;;
19867
 
esac
19868
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869
 
$as_echo "$ac_try_echo") >&5
19870
 
  (eval "$ac_try") 2>&5
19871
 
  ac_status=$?
19872
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873
 
  (exit $ac_status); }; }; then
19874
 
  :
 
19259
if ac_fn_c_try_run "$LINENO"; then :
 
19260
 
19875
19261
else
19876
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
19877
 
$as_echo "$as_me: failed program was:" >&5
19878
 
sed 's/^/| /' conftest.$ac_ext >&5
19879
 
 
19880
 
( exit $ac_status )
19881
 
ac_cv_header_stdc=no
19882
 
fi
19883
 
rm -rf conftest.dSYM
19884
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19885
 
fi
19886
 
 
19887
 
 
19888
 
fi
19889
 
fi
19890
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
19262
  ac_cv_header_stdc=no
 
19263
fi
 
19264
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19265
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19266
fi
 
19267
 
 
19268
fi
 
19269
fi
 
19270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19891
19271
$as_echo "$ac_cv_header_stdc" >&6; }
19892
19272
if test $ac_cv_header_stdc = yes; then
19893
19273
 
19894
 
cat >>confdefs.h <<\_ACEOF
19895
 
#define STDC_HEADERS 1
19896
 
_ACEOF
 
19274
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19897
19275
 
19898
19276
fi
19899
19277
 
19900
 
 
19901
 
 
19902
 
 
19903
19278
for ac_header in fcntl.h unistd.h string.h
19904
 
do
19905
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19908
 
$as_echo_n "checking for $ac_header... " >&6; }
19909
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910
 
  $as_echo_n "(cached) " >&6
19911
 
fi
19912
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
19913
 
                 $as_echo "$as_val"'`
19914
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19915
 
$as_echo "$ac_res" >&6; }
19916
 
else
19917
 
  # Is the header compilable?
19918
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19919
 
$as_echo_n "checking $ac_header usability... " >&6; }
19920
 
cat >conftest.$ac_ext <<_ACEOF
19921
 
/* confdefs.h.  */
19922
 
_ACEOF
19923
 
cat confdefs.h >>conftest.$ac_ext
19924
 
cat >>conftest.$ac_ext <<_ACEOF
19925
 
/* end confdefs.h.  */
19926
 
$ac_includes_default
19927
 
#include <$ac_header>
19928
 
_ACEOF
19929
 
rm -f conftest.$ac_objext
19930
 
if { (ac_try="$ac_compile"
19931
 
case "(($ac_try" in
19932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933
 
  *) ac_try_echo=$ac_try;;
19934
 
esac
19935
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19936
 
$as_echo "$ac_try_echo") >&5
19937
 
  (eval "$ac_compile") 2>conftest.er1
19938
 
  ac_status=$?
19939
 
  grep -v '^ *+' conftest.er1 >conftest.err
19940
 
  rm -f conftest.er1
19941
 
  cat conftest.err >&5
19942
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943
 
  (exit $ac_status); } && {
19944
 
         test -z "$ac_c_werror_flag" ||
19945
 
         test ! -s conftest.err
19946
 
       } && test -s conftest.$ac_objext; then
19947
 
  ac_header_compiler=yes
19948
 
else
19949
 
  $as_echo "$as_me: failed program was:" >&5
19950
 
sed 's/^/| /' conftest.$ac_ext >&5
19951
 
 
19952
 
        ac_header_compiler=no
19953
 
fi
19954
 
 
19955
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957
 
$as_echo "$ac_header_compiler" >&6; }
19958
 
 
19959
 
# Is the header present?
19960
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961
 
$as_echo_n "checking $ac_header presence... " >&6; }
19962
 
cat >conftest.$ac_ext <<_ACEOF
19963
 
/* confdefs.h.  */
19964
 
_ACEOF
19965
 
cat confdefs.h >>conftest.$ac_ext
19966
 
cat >>conftest.$ac_ext <<_ACEOF
19967
 
/* end confdefs.h.  */
19968
 
#include <$ac_header>
19969
 
_ACEOF
19970
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
19971
 
case "(($ac_try" in
19972
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973
 
  *) ac_try_echo=$ac_try;;
19974
 
esac
19975
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976
 
$as_echo "$ac_try_echo") >&5
19977
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19978
 
  ac_status=$?
19979
 
  grep -v '^ *+' conftest.er1 >conftest.err
19980
 
  rm -f conftest.er1
19981
 
  cat conftest.err >&5
19982
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983
 
  (exit $ac_status); } >/dev/null && {
19984
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19985
 
         test ! -s conftest.err
19986
 
       }; then
19987
 
  ac_header_preproc=yes
19988
 
else
19989
 
  $as_echo "$as_me: failed program was:" >&5
19990
 
sed 's/^/| /' conftest.$ac_ext >&5
19991
 
 
19992
 
  ac_header_preproc=no
19993
 
fi
19994
 
 
19995
 
rm -f conftest.err conftest.$ac_ext
19996
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19997
 
$as_echo "$ac_header_preproc" >&6; }
19998
 
 
19999
 
# So?  What about this header?
20000
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20001
 
  yes:no: )
20002
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20003
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20004
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20005
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20006
 
    ac_header_preproc=yes
20007
 
    ;;
20008
 
  no:yes:* )
20009
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20010
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20011
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20012
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20013
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20014
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20015
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20016
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20017
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20018
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20019
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20020
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20021
 
 
20022
 
    ;;
20023
 
esac
20024
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20025
 
$as_echo_n "checking for $ac_header... " >&6; }
20026
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20027
 
  $as_echo_n "(cached) " >&6
20028
 
else
20029
 
  eval "$as_ac_Header=\$ac_header_preproc"
20030
 
fi
20031
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
20032
 
                 $as_echo "$as_val"'`
20033
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20034
 
$as_echo "$ac_res" >&6; }
20035
 
 
20036
 
fi
20037
 
as_val=`eval 'as_val=${'$as_ac_Header'}
20038
 
                 $as_echo "$as_val"'`
20039
 
   if test "x$as_val" = x""yes; then
 
19279
do :
 
19280
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19281
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
19282
eval as_val=\$$as_ac_Header
 
19283
   if test "x$as_val" = x""yes; then :
20040
19284
  cat >>confdefs.h <<_ACEOF
20041
19285
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042
19286
_ACEOF
20047
19291
 
20048
19292
 
20049
19293
if test "$cross_compiling" = "no"; then
20050
 
 
20051
 
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
19294
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20052
19295
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20053
 
if test "${ac_cv_c_bigendian+set}" = set; then
 
19296
if test "${ac_cv_c_bigendian+set}" = set; then :
20054
19297
  $as_echo_n "(cached) " >&6
20055
19298
else
20056
19299
  ac_cv_c_bigendian=unknown
20057
19300
    # See if we're dealing with a universal compiler.
20058
 
    cat >conftest.$ac_ext <<_ACEOF
20059
 
/* confdefs.h.  */
20060
 
_ACEOF
20061
 
cat confdefs.h >>conftest.$ac_ext
20062
 
cat >>conftest.$ac_ext <<_ACEOF
 
19301
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063
19302
/* end confdefs.h.  */
20064
19303
#ifndef __APPLE_CC__
20065
19304
               not a universal capable compiler
20067
19306
             typedef int dummy;
20068
19307
 
20069
19308
_ACEOF
20070
 
rm -f conftest.$ac_objext
20071
 
if { (ac_try="$ac_compile"
20072
 
case "(($ac_try" in
20073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074
 
  *) ac_try_echo=$ac_try;;
20075
 
esac
20076
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20077
 
$as_echo "$ac_try_echo") >&5
20078
 
  (eval "$ac_compile") 2>conftest.er1
20079
 
  ac_status=$?
20080
 
  grep -v '^ *+' conftest.er1 >conftest.err
20081
 
  rm -f conftest.er1
20082
 
  cat conftest.err >&5
20083
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084
 
  (exit $ac_status); } && {
20085
 
         test -z "$ac_c_werror_flag" ||
20086
 
         test ! -s conftest.err
20087
 
       } && test -s conftest.$ac_objext; then
 
19309
if ac_fn_c_try_compile "$LINENO"; then :
20088
19310
 
20089
19311
        # Check for potential -arch flags.  It is not universal unless
20090
 
        # there are some -arch flags.  Note that *ppc* also matches
20091
 
        # ppc64.  This check is also rather less than ideal.
20092
 
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
20093
 
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
20094
 
        esac
20095
 
else
20096
 
  $as_echo "$as_me: failed program was:" >&5
20097
 
sed 's/^/| /' conftest.$ac_ext >&5
20098
 
 
20099
 
 
 
19312
        # there are at least two -arch flags with different values.
 
19313
        ac_arch=
 
19314
        ac_prev=
 
19315
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
19316
         if test -n "$ac_prev"; then
 
19317
           case $ac_word in
 
19318
             i?86 | x86_64 | ppc | ppc64)
 
19319
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
19320
                 ac_arch=$ac_word
 
19321
               else
 
19322
                 ac_cv_c_bigendian=universal
 
19323
                 break
 
19324
               fi
 
19325
               ;;
 
19326
           esac
 
19327
           ac_prev=
 
19328
         elif test "x$ac_word" = "x-arch"; then
 
19329
           ac_prev=arch
 
19330
         fi
 
19331
       done
20100
19332
fi
20101
 
 
20102
19333
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103
19334
    if test $ac_cv_c_bigendian = unknown; then
20104
19335
      # See if sys/param.h defines the BYTE_ORDER macro.
20105
 
      cat >conftest.$ac_ext <<_ACEOF
20106
 
/* confdefs.h.  */
20107
 
_ACEOF
20108
 
cat confdefs.h >>conftest.$ac_ext
20109
 
cat >>conftest.$ac_ext <<_ACEOF
 
19336
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110
19337
/* end confdefs.h.  */
20111
19338
#include <sys/types.h>
20112
19339
             #include <sys/param.h>
20124
19351
  return 0;
20125
19352
}
20126
19353
_ACEOF
20127
 
rm -f conftest.$ac_objext
20128
 
if { (ac_try="$ac_compile"
20129
 
case "(($ac_try" in
20130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131
 
  *) ac_try_echo=$ac_try;;
20132
 
esac
20133
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20134
 
$as_echo "$ac_try_echo") >&5
20135
 
  (eval "$ac_compile") 2>conftest.er1
20136
 
  ac_status=$?
20137
 
  grep -v '^ *+' conftest.er1 >conftest.err
20138
 
  rm -f conftest.er1
20139
 
  cat conftest.err >&5
20140
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141
 
  (exit $ac_status); } && {
20142
 
         test -z "$ac_c_werror_flag" ||
20143
 
         test ! -s conftest.err
20144
 
       } && test -s conftest.$ac_objext; then
 
19354
if ac_fn_c_try_compile "$LINENO"; then :
20145
19355
  # It does; now see whether it defined to BIG_ENDIAN or not.
20146
 
         cat >conftest.$ac_ext <<_ACEOF
20147
 
/* confdefs.h.  */
20148
 
_ACEOF
20149
 
cat confdefs.h >>conftest.$ac_ext
20150
 
cat >>conftest.$ac_ext <<_ACEOF
 
19356
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151
19357
/* end confdefs.h.  */
20152
19358
#include <sys/types.h>
20153
19359
                #include <sys/param.h>
20163
19369
  return 0;
20164
19370
}
20165
19371
_ACEOF
20166
 
rm -f conftest.$ac_objext
20167
 
if { (ac_try="$ac_compile"
20168
 
case "(($ac_try" in
20169
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170
 
  *) ac_try_echo=$ac_try;;
20171
 
esac
20172
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20173
 
$as_echo "$ac_try_echo") >&5
20174
 
  (eval "$ac_compile") 2>conftest.er1
20175
 
  ac_status=$?
20176
 
  grep -v '^ *+' conftest.er1 >conftest.err
20177
 
  rm -f conftest.er1
20178
 
  cat conftest.err >&5
20179
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180
 
  (exit $ac_status); } && {
20181
 
         test -z "$ac_c_werror_flag" ||
20182
 
         test ! -s conftest.err
20183
 
       } && test -s conftest.$ac_objext; then
 
19372
if ac_fn_c_try_compile "$LINENO"; then :
20184
19373
  ac_cv_c_bigendian=yes
20185
19374
else
20186
 
  $as_echo "$as_me: failed program was:" >&5
20187
 
sed 's/^/| /' conftest.$ac_ext >&5
20188
 
 
20189
 
        ac_cv_c_bigendian=no
 
19375
  ac_cv_c_bigendian=no
20190
19376
fi
20191
 
 
20192
19377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193
 
else
20194
 
  $as_echo "$as_me: failed program was:" >&5
20195
 
sed 's/^/| /' conftest.$ac_ext >&5
20196
 
 
20197
 
 
20198
19378
fi
20199
 
 
20200
19379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201
19380
    fi
20202
19381
    if test $ac_cv_c_bigendian = unknown; then
20203
19382
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20204
 
      cat >conftest.$ac_ext <<_ACEOF
20205
 
/* confdefs.h.  */
20206
 
_ACEOF
20207
 
cat confdefs.h >>conftest.$ac_ext
20208
 
cat >>conftest.$ac_ext <<_ACEOF
 
19383
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209
19384
/* end confdefs.h.  */
20210
19385
#include <limits.h>
20211
19386
 
20220
19395
  return 0;
20221
19396
}
20222
19397
_ACEOF
20223
 
rm -f conftest.$ac_objext
20224
 
if { (ac_try="$ac_compile"
20225
 
case "(($ac_try" in
20226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227
 
  *) ac_try_echo=$ac_try;;
20228
 
esac
20229
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20230
 
$as_echo "$ac_try_echo") >&5
20231
 
  (eval "$ac_compile") 2>conftest.er1
20232
 
  ac_status=$?
20233
 
  grep -v '^ *+' conftest.er1 >conftest.err
20234
 
  rm -f conftest.er1
20235
 
  cat conftest.err >&5
20236
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237
 
  (exit $ac_status); } && {
20238
 
         test -z "$ac_c_werror_flag" ||
20239
 
         test ! -s conftest.err
20240
 
       } && test -s conftest.$ac_objext; then
 
19398
if ac_fn_c_try_compile "$LINENO"; then :
20241
19399
  # It does; now see whether it defined to _BIG_ENDIAN or not.
20242
 
         cat >conftest.$ac_ext <<_ACEOF
20243
 
/* confdefs.h.  */
20244
 
_ACEOF
20245
 
cat confdefs.h >>conftest.$ac_ext
20246
 
cat >>conftest.$ac_ext <<_ACEOF
 
19400
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247
19401
/* end confdefs.h.  */
20248
19402
#include <limits.h>
20249
19403
 
20258
19412
  return 0;
20259
19413
}
20260
19414
_ACEOF
20261
 
rm -f conftest.$ac_objext
20262
 
if { (ac_try="$ac_compile"
20263
 
case "(($ac_try" in
20264
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265
 
  *) ac_try_echo=$ac_try;;
20266
 
esac
20267
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20268
 
$as_echo "$ac_try_echo") >&5
20269
 
  (eval "$ac_compile") 2>conftest.er1
20270
 
  ac_status=$?
20271
 
  grep -v '^ *+' conftest.er1 >conftest.err
20272
 
  rm -f conftest.er1
20273
 
  cat conftest.err >&5
20274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275
 
  (exit $ac_status); } && {
20276
 
         test -z "$ac_c_werror_flag" ||
20277
 
         test ! -s conftest.err
20278
 
       } && test -s conftest.$ac_objext; then
 
19415
if ac_fn_c_try_compile "$LINENO"; then :
20279
19416
  ac_cv_c_bigendian=yes
20280
19417
else
20281
 
  $as_echo "$as_me: failed program was:" >&5
20282
 
sed 's/^/| /' conftest.$ac_ext >&5
20283
 
 
20284
 
        ac_cv_c_bigendian=no
 
19418
  ac_cv_c_bigendian=no
20285
19419
fi
20286
 
 
20287
19420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20288
 
else
20289
 
  $as_echo "$as_me: failed program was:" >&5
20290
 
sed 's/^/| /' conftest.$ac_ext >&5
20291
 
 
20292
 
 
20293
19421
fi
20294
 
 
20295
19422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296
19423
    fi
20297
19424
    if test $ac_cv_c_bigendian = unknown; then
20298
19425
      # Compile a test program.
20299
 
      if test "$cross_compiling" = yes; then
 
19426
      if test "$cross_compiling" = yes; then :
20300
19427
  # Try to guess by grepping values from an object file.
20301
 
         cat >conftest.$ac_ext <<_ACEOF
20302
 
/* confdefs.h.  */
20303
 
_ACEOF
20304
 
cat confdefs.h >>conftest.$ac_ext
20305
 
cat >>conftest.$ac_ext <<_ACEOF
 
19428
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306
19429
/* end confdefs.h.  */
20307
19430
short int ascii_mm[] =
20308
19431
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20328
19451
  return 0;
20329
19452
}
20330
19453
_ACEOF
20331
 
rm -f conftest.$ac_objext
20332
 
if { (ac_try="$ac_compile"
20333
 
case "(($ac_try" in
20334
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335
 
  *) ac_try_echo=$ac_try;;
20336
 
esac
20337
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20338
 
$as_echo "$ac_try_echo") >&5
20339
 
  (eval "$ac_compile") 2>conftest.er1
20340
 
  ac_status=$?
20341
 
  grep -v '^ *+' conftest.er1 >conftest.err
20342
 
  rm -f conftest.er1
20343
 
  cat conftest.err >&5
20344
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345
 
  (exit $ac_status); } && {
20346
 
         test -z "$ac_c_werror_flag" ||
20347
 
         test ! -s conftest.err
20348
 
       } && test -s conftest.$ac_objext; then
 
19454
if ac_fn_c_try_compile "$LINENO"; then :
20349
19455
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20350
19456
              ac_cv_c_bigendian=yes
20351
19457
            fi
20357
19463
                ac_cv_c_bigendian=unknown
20358
19464
              fi
20359
19465
            fi
20360
 
else
20361
 
  $as_echo "$as_me: failed program was:" >&5
20362
 
sed 's/^/| /' conftest.$ac_ext >&5
20363
 
 
20364
 
 
20365
19466
fi
20366
 
 
20367
19467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368
19468
else
20369
 
  cat >conftest.$ac_ext <<_ACEOF
20370
 
/* confdefs.h.  */
20371
 
_ACEOF
20372
 
cat confdefs.h >>conftest.$ac_ext
20373
 
cat >>conftest.$ac_ext <<_ACEOF
 
19469
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374
19470
/* end confdefs.h.  */
20375
19471
$ac_includes_default
20376
19472
int
20390
19486
  return 0;
20391
19487
}
20392
19488
_ACEOF
20393
 
rm -f conftest$ac_exeext
20394
 
if { (ac_try="$ac_link"
20395
 
case "(($ac_try" in
20396
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397
 
  *) ac_try_echo=$ac_try;;
20398
 
esac
20399
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20400
 
$as_echo "$ac_try_echo") >&5
20401
 
  (eval "$ac_link") 2>&5
20402
 
  ac_status=$?
20403
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20405
 
  { (case "(($ac_try" in
20406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407
 
  *) ac_try_echo=$ac_try;;
20408
 
esac
20409
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410
 
$as_echo "$ac_try_echo") >&5
20411
 
  (eval "$ac_try") 2>&5
20412
 
  ac_status=$?
20413
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414
 
  (exit $ac_status); }; }; then
 
19489
if ac_fn_c_try_run "$LINENO"; then :
20415
19490
  ac_cv_c_bigendian=no
20416
19491
else
20417
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
20418
 
$as_echo "$as_me: failed program was:" >&5
20419
 
sed 's/^/| /' conftest.$ac_ext >&5
20420
 
 
20421
 
( exit $ac_status )
20422
 
ac_cv_c_bigendian=yes
20423
 
fi
20424
 
rm -rf conftest.dSYM
20425
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20426
 
fi
20427
 
 
 
19492
  ac_cv_c_bigendian=yes
 
19493
fi
 
19494
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19495
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19496
fi
20428
19497
 
20429
19498
    fi
20430
19499
fi
20431
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
19500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20432
19501
$as_echo "$ac_cv_c_bigendian" >&6; }
20433
19502
 case $ac_cv_c_bigendian in #(
20434
19503
   yes)
20435
 
     cat >>confdefs.h <<\_ACEOF
20436
 
#define WORDS_BIGENDIAN 1
20437
 
_ACEOF
 
19504
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20438
19505
;; #(
20439
19506
   no)
20440
19507
      ;; #(
20441
19508
   universal)
20442
19509
 
20443
 
cat >>confdefs.h <<\_ACEOF
20444
 
#define AC_APPLE_UNIVERSAL_BUILD 1
20445
 
_ACEOF
 
19510
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20446
19511
 
20447
19512
     ;; #(
20448
19513
   *)
20449
 
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
20450
 
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20451
 
$as_echo "$as_me: error: unknown endianness
20452
 
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20453
 
   { (exit 1); exit 1; }; } ;;
 
19514
     as_fn_error "unknown endianness
 
19515
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20454
19516
 esac
20455
19517
 
20456
19518
else
20457
19519
 
20458
 
cat >>confdefs.h <<\_ACEOF
20459
 
#define AP_UNKNOWN_BYTE_ORDER 1
20460
 
_ACEOF
 
19520
$as_echo "#define AP_UNKNOWN_BYTE_ORDER 1" >>confdefs.h
20461
19521
 
20462
19522
fi
20463
 
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
19523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20464
19524
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20465
 
if test "${ac_cv_c_const+set}" = set; then
 
19525
if test "${ac_cv_c_const+set}" = set; then :
20466
19526
  $as_echo_n "(cached) " >&6
20467
19527
else
20468
 
  cat >conftest.$ac_ext <<_ACEOF
20469
 
/* confdefs.h.  */
20470
 
_ACEOF
20471
 
cat confdefs.h >>conftest.$ac_ext
20472
 
cat >>conftest.$ac_ext <<_ACEOF
 
19528
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473
19529
/* end confdefs.h.  */
20474
19530
 
20475
19531
int
20529
19585
  return 0;
20530
19586
}
20531
19587
_ACEOF
20532
 
rm -f conftest.$ac_objext
20533
 
if { (ac_try="$ac_compile"
20534
 
case "(($ac_try" in
20535
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536
 
  *) ac_try_echo=$ac_try;;
20537
 
esac
20538
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20539
 
$as_echo "$ac_try_echo") >&5
20540
 
  (eval "$ac_compile") 2>conftest.er1
20541
 
  ac_status=$?
20542
 
  grep -v '^ *+' conftest.er1 >conftest.err
20543
 
  rm -f conftest.er1
20544
 
  cat conftest.err >&5
20545
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546
 
  (exit $ac_status); } && {
20547
 
         test -z "$ac_c_werror_flag" ||
20548
 
         test ! -s conftest.err
20549
 
       } && test -s conftest.$ac_objext; then
 
19588
if ac_fn_c_try_compile "$LINENO"; then :
20550
19589
  ac_cv_c_const=yes
20551
19590
else
20552
 
  $as_echo "$as_me: failed program was:" >&5
20553
 
sed 's/^/| /' conftest.$ac_ext >&5
20554
 
 
20555
 
        ac_cv_c_const=no
 
19591
  ac_cv_c_const=no
20556
19592
fi
20557
 
 
20558
19593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559
19594
fi
20560
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
19595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20561
19596
$as_echo "$ac_cv_c_const" >&6; }
20562
19597
if test $ac_cv_c_const = no; then
20563
19598
 
20564
 
cat >>confdefs.h <<\_ACEOF
20565
 
#define const /**/
20566
 
_ACEOF
20567
 
 
20568
 
fi
20569
 
 
20570
 
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
20571
 
$as_echo_n "checking for off_t... " >&6; }
20572
 
if test "${ac_cv_type_off_t+set}" = set; then
20573
 
  $as_echo_n "(cached) " >&6
20574
 
else
20575
 
  ac_cv_type_off_t=no
20576
 
cat >conftest.$ac_ext <<_ACEOF
20577
 
/* confdefs.h.  */
20578
 
_ACEOF
20579
 
cat confdefs.h >>conftest.$ac_ext
20580
 
cat >>conftest.$ac_ext <<_ACEOF
20581
 
/* end confdefs.h.  */
20582
 
$ac_includes_default
20583
 
int
20584
 
main ()
20585
 
{
20586
 
if (sizeof (off_t))
20587
 
       return 0;
20588
 
  ;
20589
 
  return 0;
20590
 
}
20591
 
_ACEOF
20592
 
rm -f conftest.$ac_objext
20593
 
if { (ac_try="$ac_compile"
20594
 
case "(($ac_try" in
20595
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596
 
  *) ac_try_echo=$ac_try;;
20597
 
esac
20598
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20599
 
$as_echo "$ac_try_echo") >&5
20600
 
  (eval "$ac_compile") 2>conftest.er1
20601
 
  ac_status=$?
20602
 
  grep -v '^ *+' conftest.er1 >conftest.err
20603
 
  rm -f conftest.er1
20604
 
  cat conftest.err >&5
20605
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606
 
  (exit $ac_status); } && {
20607
 
         test -z "$ac_c_werror_flag" ||
20608
 
         test ! -s conftest.err
20609
 
       } && test -s conftest.$ac_objext; then
20610
 
  cat >conftest.$ac_ext <<_ACEOF
20611
 
/* confdefs.h.  */
20612
 
_ACEOF
20613
 
cat confdefs.h >>conftest.$ac_ext
20614
 
cat >>conftest.$ac_ext <<_ACEOF
20615
 
/* end confdefs.h.  */
20616
 
$ac_includes_default
20617
 
int
20618
 
main ()
20619
 
{
20620
 
if (sizeof ((off_t)))
20621
 
          return 0;
20622
 
  ;
20623
 
  return 0;
20624
 
}
20625
 
_ACEOF
20626
 
rm -f conftest.$ac_objext
20627
 
if { (ac_try="$ac_compile"
20628
 
case "(($ac_try" in
20629
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630
 
  *) ac_try_echo=$ac_try;;
20631
 
esac
20632
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20633
 
$as_echo "$ac_try_echo") >&5
20634
 
  (eval "$ac_compile") 2>conftest.er1
20635
 
  ac_status=$?
20636
 
  grep -v '^ *+' conftest.er1 >conftest.err
20637
 
  rm -f conftest.er1
20638
 
  cat conftest.err >&5
20639
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640
 
  (exit $ac_status); } && {
20641
 
         test -z "$ac_c_werror_flag" ||
20642
 
         test ! -s conftest.err
20643
 
       } && test -s conftest.$ac_objext; then
20644
 
  :
20645
 
else
20646
 
  $as_echo "$as_me: failed program was:" >&5
20647
 
sed 's/^/| /' conftest.$ac_ext >&5
20648
 
 
20649
 
        ac_cv_type_off_t=yes
20650
 
fi
20651
 
 
20652
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653
 
else
20654
 
  $as_echo "$as_me: failed program was:" >&5
20655
 
sed 's/^/| /' conftest.$ac_ext >&5
20656
 
 
20657
 
 
20658
 
fi
20659
 
 
20660
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661
 
fi
20662
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20663
 
$as_echo "$ac_cv_type_off_t" >&6; }
20664
 
if test "x$ac_cv_type_off_t" = x""yes; then
20665
 
  :
 
19599
$as_echo "#define const /**/" >>confdefs.h
 
19600
 
 
19601
fi
 
19602
 
 
19603
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
19604
if test "x$ac_cv_type_off_t" = x""yes; then :
 
19605
 
20666
19606
else
20667
19607
 
20668
19608
cat >>confdefs.h <<_ACEOF
20671
19611
 
20672
19612
fi
20673
19613
 
20674
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20675
 
$as_echo_n "checking for size_t... " >&6; }
20676
 
if test "${ac_cv_type_size_t+set}" = set; then
20677
 
  $as_echo_n "(cached) " >&6
20678
 
else
20679
 
  ac_cv_type_size_t=no
20680
 
cat >conftest.$ac_ext <<_ACEOF
20681
 
/* confdefs.h.  */
20682
 
_ACEOF
20683
 
cat confdefs.h >>conftest.$ac_ext
20684
 
cat >>conftest.$ac_ext <<_ACEOF
20685
 
/* end confdefs.h.  */
20686
 
$ac_includes_default
20687
 
int
20688
 
main ()
20689
 
{
20690
 
if (sizeof (size_t))
20691
 
       return 0;
20692
 
  ;
20693
 
  return 0;
20694
 
}
20695
 
_ACEOF
20696
 
rm -f conftest.$ac_objext
20697
 
if { (ac_try="$ac_compile"
20698
 
case "(($ac_try" in
20699
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700
 
  *) ac_try_echo=$ac_try;;
20701
 
esac
20702
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20703
 
$as_echo "$ac_try_echo") >&5
20704
 
  (eval "$ac_compile") 2>conftest.er1
20705
 
  ac_status=$?
20706
 
  grep -v '^ *+' conftest.er1 >conftest.err
20707
 
  rm -f conftest.er1
20708
 
  cat conftest.err >&5
20709
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710
 
  (exit $ac_status); } && {
20711
 
         test -z "$ac_c_werror_flag" ||
20712
 
         test ! -s conftest.err
20713
 
       } && test -s conftest.$ac_objext; then
20714
 
  cat >conftest.$ac_ext <<_ACEOF
20715
 
/* confdefs.h.  */
20716
 
_ACEOF
20717
 
cat confdefs.h >>conftest.$ac_ext
20718
 
cat >>conftest.$ac_ext <<_ACEOF
20719
 
/* end confdefs.h.  */
20720
 
$ac_includes_default
20721
 
int
20722
 
main ()
20723
 
{
20724
 
if (sizeof ((size_t)))
20725
 
          return 0;
20726
 
  ;
20727
 
  return 0;
20728
 
}
20729
 
_ACEOF
20730
 
rm -f conftest.$ac_objext
20731
 
if { (ac_try="$ac_compile"
20732
 
case "(($ac_try" in
20733
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734
 
  *) ac_try_echo=$ac_try;;
20735
 
esac
20736
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20737
 
$as_echo "$ac_try_echo") >&5
20738
 
  (eval "$ac_compile") 2>conftest.er1
20739
 
  ac_status=$?
20740
 
  grep -v '^ *+' conftest.er1 >conftest.err
20741
 
  rm -f conftest.er1
20742
 
  cat conftest.err >&5
20743
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744
 
  (exit $ac_status); } && {
20745
 
         test -z "$ac_c_werror_flag" ||
20746
 
         test ! -s conftest.err
20747
 
       } && test -s conftest.$ac_objext; then
20748
 
  :
20749
 
else
20750
 
  $as_echo "$as_me: failed program was:" >&5
20751
 
sed 's/^/| /' conftest.$ac_ext >&5
20752
 
 
20753
 
        ac_cv_type_size_t=yes
20754
 
fi
20755
 
 
20756
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757
 
else
20758
 
  $as_echo "$as_me: failed program was:" >&5
20759
 
sed 's/^/| /' conftest.$ac_ext >&5
20760
 
 
20761
 
 
20762
 
fi
20763
 
 
20764
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765
 
fi
20766
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20767
 
$as_echo "$ac_cv_type_size_t" >&6; }
20768
 
if test "x$ac_cv_type_size_t" = x""yes; then
20769
 
  :
 
19614
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
19615
if test "x$ac_cv_type_size_t" = x""yes; then :
 
19616
 
20770
19617
else
20771
19618
 
20772
19619
cat >>confdefs.h <<_ACEOF
20777
19624
 
20778
19625
 
20779
19626
 
20780
 
{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
 
19627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20781
19628
$as_echo_n "checking for working memcmp... " >&6; }
20782
 
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
19629
if test "${ac_cv_func_memcmp_working+set}" = set; then :
20783
19630
  $as_echo_n "(cached) " >&6
20784
19631
else
20785
 
  if test "$cross_compiling" = yes; then
 
19632
  if test "$cross_compiling" = yes; then :
20786
19633
  ac_cv_func_memcmp_working=no
20787
19634
else
20788
 
  cat >conftest.$ac_ext <<_ACEOF
20789
 
/* confdefs.h.  */
20790
 
_ACEOF
20791
 
cat confdefs.h >>conftest.$ac_ext
20792
 
cat >>conftest.$ac_ext <<_ACEOF
 
19635
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793
19636
/* end confdefs.h.  */
20794
19637
$ac_includes_default
20795
19638
int
20824
19667
  return 0;
20825
19668
}
20826
19669
_ACEOF
20827
 
rm -f conftest$ac_exeext
20828
 
if { (ac_try="$ac_link"
20829
 
case "(($ac_try" in
20830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831
 
  *) ac_try_echo=$ac_try;;
20832
 
esac
20833
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20834
 
$as_echo "$ac_try_echo") >&5
20835
 
  (eval "$ac_link") 2>&5
20836
 
  ac_status=$?
20837
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20839
 
  { (case "(($ac_try" in
20840
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841
 
  *) ac_try_echo=$ac_try;;
20842
 
esac
20843
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20844
 
$as_echo "$ac_try_echo") >&5
20845
 
  (eval "$ac_try") 2>&5
20846
 
  ac_status=$?
20847
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848
 
  (exit $ac_status); }; }; then
 
19670
if ac_fn_c_try_run "$LINENO"; then :
20849
19671
  ac_cv_func_memcmp_working=yes
20850
19672
else
20851
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
20852
 
$as_echo "$as_me: failed program was:" >&5
20853
 
sed 's/^/| /' conftest.$ac_ext >&5
20854
 
 
20855
 
( exit $ac_status )
20856
 
ac_cv_func_memcmp_working=no
20857
 
fi
20858
 
rm -rf conftest.dSYM
20859
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20860
 
fi
20861
 
 
20862
 
 
20863
 
fi
20864
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
19673
  ac_cv_func_memcmp_working=no
 
19674
fi
 
19675
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19676
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19677
fi
 
19678
 
 
19679
fi
 
19680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20865
19681
$as_echo "$ac_cv_func_memcmp_working" >&6; }
20866
19682
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20867
19683
  *" memcmp.$ac_objext "* ) ;;
20870
19686
esac
20871
19687
 
20872
19688
 
20873
 
 
20874
 
 
20875
19689
for ac_header in stdlib.h unistd.h
20876
 
do
20877
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20878
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20879
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20880
 
$as_echo_n "checking for $ac_header... " >&6; }
20881
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20882
 
  $as_echo_n "(cached) " >&6
20883
 
fi
20884
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
20885
 
                 $as_echo "$as_val"'`
20886
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20887
 
$as_echo "$ac_res" >&6; }
20888
 
else
20889
 
  # Is the header compilable?
20890
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20891
 
$as_echo_n "checking $ac_header usability... " >&6; }
20892
 
cat >conftest.$ac_ext <<_ACEOF
20893
 
/* confdefs.h.  */
20894
 
_ACEOF
20895
 
cat confdefs.h >>conftest.$ac_ext
20896
 
cat >>conftest.$ac_ext <<_ACEOF
20897
 
/* end confdefs.h.  */
20898
 
$ac_includes_default
20899
 
#include <$ac_header>
20900
 
_ACEOF
20901
 
rm -f conftest.$ac_objext
20902
 
if { (ac_try="$ac_compile"
20903
 
case "(($ac_try" in
20904
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905
 
  *) ac_try_echo=$ac_try;;
20906
 
esac
20907
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20908
 
$as_echo "$ac_try_echo") >&5
20909
 
  (eval "$ac_compile") 2>conftest.er1
20910
 
  ac_status=$?
20911
 
  grep -v '^ *+' conftest.er1 >conftest.err
20912
 
  rm -f conftest.er1
20913
 
  cat conftest.err >&5
20914
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915
 
  (exit $ac_status); } && {
20916
 
         test -z "$ac_c_werror_flag" ||
20917
 
         test ! -s conftest.err
20918
 
       } && test -s conftest.$ac_objext; then
20919
 
  ac_header_compiler=yes
20920
 
else
20921
 
  $as_echo "$as_me: failed program was:" >&5
20922
 
sed 's/^/| /' conftest.$ac_ext >&5
20923
 
 
20924
 
        ac_header_compiler=no
20925
 
fi
20926
 
 
20927
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20929
 
$as_echo "$ac_header_compiler" >&6; }
20930
 
 
20931
 
# Is the header present?
20932
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20933
 
$as_echo_n "checking $ac_header presence... " >&6; }
20934
 
cat >conftest.$ac_ext <<_ACEOF
20935
 
/* confdefs.h.  */
20936
 
_ACEOF
20937
 
cat confdefs.h >>conftest.$ac_ext
20938
 
cat >>conftest.$ac_ext <<_ACEOF
20939
 
/* end confdefs.h.  */
20940
 
#include <$ac_header>
20941
 
_ACEOF
20942
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20943
 
case "(($ac_try" in
20944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945
 
  *) ac_try_echo=$ac_try;;
20946
 
esac
20947
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20948
 
$as_echo "$ac_try_echo") >&5
20949
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20950
 
  ac_status=$?
20951
 
  grep -v '^ *+' conftest.er1 >conftest.err
20952
 
  rm -f conftest.er1
20953
 
  cat conftest.err >&5
20954
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955
 
  (exit $ac_status); } >/dev/null && {
20956
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20957
 
         test ! -s conftest.err
20958
 
       }; then
20959
 
  ac_header_preproc=yes
20960
 
else
20961
 
  $as_echo "$as_me: failed program was:" >&5
20962
 
sed 's/^/| /' conftest.$ac_ext >&5
20963
 
 
20964
 
  ac_header_preproc=no
20965
 
fi
20966
 
 
20967
 
rm -f conftest.err conftest.$ac_ext
20968
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20969
 
$as_echo "$ac_header_preproc" >&6; }
20970
 
 
20971
 
# So?  What about this header?
20972
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20973
 
  yes:no: )
20974
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20975
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20976
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20977
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20978
 
    ac_header_preproc=yes
20979
 
    ;;
20980
 
  no:yes:* )
20981
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20982
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20983
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20984
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20985
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20986
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20987
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20988
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20989
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20990
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20991
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20992
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20993
 
 
20994
 
    ;;
20995
 
esac
20996
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20997
 
$as_echo_n "checking for $ac_header... " >&6; }
20998
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20999
 
  $as_echo_n "(cached) " >&6
21000
 
else
21001
 
  eval "$as_ac_Header=\$ac_header_preproc"
21002
 
fi
21003
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
21004
 
                 $as_echo "$as_val"'`
21005
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21006
 
$as_echo "$ac_res" >&6; }
21007
 
 
21008
 
fi
21009
 
as_val=`eval 'as_val=${'$as_ac_Header'}
21010
 
                 $as_echo "$as_val"'`
21011
 
   if test "x$as_val" = x""yes; then
 
19690
do :
 
19691
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19692
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
19693
eval as_val=\$$as_ac_Header
 
19694
   if test "x$as_val" = x""yes; then :
21012
19695
  cat >>confdefs.h <<_ACEOF
21013
19696
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21014
19697
_ACEOF
21017
19700
 
21018
19701
done
21019
19702
 
21020
 
 
21021
19703
for ac_func in getpagesize
21022
 
do
21023
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21024
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21025
 
$as_echo_n "checking for $ac_func... " >&6; }
21026
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21027
 
  $as_echo_n "(cached) " >&6
21028
 
else
21029
 
  cat >conftest.$ac_ext <<_ACEOF
21030
 
/* confdefs.h.  */
21031
 
_ACEOF
21032
 
cat confdefs.h >>conftest.$ac_ext
21033
 
cat >>conftest.$ac_ext <<_ACEOF
21034
 
/* end confdefs.h.  */
21035
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21036
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21037
 
#define $ac_func innocuous_$ac_func
21038
 
 
21039
 
/* System header to define __stub macros and hopefully few prototypes,
21040
 
    which can conflict with char $ac_func (); below.
21041
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21042
 
    <limits.h> exists even on freestanding compilers.  */
21043
 
 
21044
 
#ifdef __STDC__
21045
 
# include <limits.h>
21046
 
#else
21047
 
# include <assert.h>
21048
 
#endif
21049
 
 
21050
 
#undef $ac_func
21051
 
 
21052
 
/* Override any GCC internal prototype to avoid an error.
21053
 
   Use char because int might match the return type of a GCC
21054
 
   builtin and then its argument prototype would still apply.  */
21055
 
#ifdef __cplusplus
21056
 
extern "C"
21057
 
#endif
21058
 
char $ac_func ();
21059
 
/* The GNU C library defines this for functions which it implements
21060
 
    to always fail with ENOSYS.  Some functions are actually named
21061
 
    something starting with __ and the normal name is an alias.  */
21062
 
#if defined __stub_$ac_func || defined __stub___$ac_func
21063
 
choke me
21064
 
#endif
21065
 
 
21066
 
int
21067
 
main ()
21068
 
{
21069
 
return $ac_func ();
21070
 
  ;
21071
 
  return 0;
21072
 
}
21073
 
_ACEOF
21074
 
rm -f conftest.$ac_objext conftest$ac_exeext
21075
 
if { (ac_try="$ac_link"
21076
 
case "(($ac_try" in
21077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078
 
  *) ac_try_echo=$ac_try;;
21079
 
esac
21080
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081
 
$as_echo "$ac_try_echo") >&5
21082
 
  (eval "$ac_link") 2>conftest.er1
21083
 
  ac_status=$?
21084
 
  grep -v '^ *+' conftest.er1 >conftest.err
21085
 
  rm -f conftest.er1
21086
 
  cat conftest.err >&5
21087
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088
 
  (exit $ac_status); } && {
21089
 
         test -z "$ac_c_werror_flag" ||
21090
 
         test ! -s conftest.err
21091
 
       } && test -s conftest$ac_exeext && {
21092
 
         test "$cross_compiling" = yes ||
21093
 
         $as_test_x conftest$ac_exeext
21094
 
       }; then
21095
 
  eval "$as_ac_var=yes"
21096
 
else
21097
 
  $as_echo "$as_me: failed program was:" >&5
21098
 
sed 's/^/| /' conftest.$ac_ext >&5
21099
 
 
21100
 
        eval "$as_ac_var=no"
21101
 
fi
21102
 
 
21103
 
rm -rf conftest.dSYM
21104
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21105
 
      conftest$ac_exeext conftest.$ac_ext
21106
 
fi
21107
 
ac_res=`eval 'as_val=${'$as_ac_var'}
21108
 
                 $as_echo "$as_val"'`
21109
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21110
 
$as_echo "$ac_res" >&6; }
21111
 
as_val=`eval 'as_val=${'$as_ac_var'}
21112
 
                 $as_echo "$as_val"'`
21113
 
   if test "x$as_val" = x""yes; then
 
19704
do :
 
19705
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
19706
if test "x$ac_cv_func_getpagesize" = x""yes; then :
21114
19707
  cat >>confdefs.h <<_ACEOF
21115
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19708
#define HAVE_GETPAGESIZE 1
21116
19709
_ACEOF
21117
19710
 
21118
19711
fi
21119
19712
done
21120
19713
 
21121
 
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
 
19714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21122
19715
$as_echo_n "checking for working mmap... " >&6; }
21123
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
19716
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21124
19717
  $as_echo_n "(cached) " >&6
21125
19718
else
21126
 
  if test "$cross_compiling" = yes; then
 
19719
  if test "$cross_compiling" = yes; then :
21127
19720
  ac_cv_func_mmap_fixed_mapped=no
21128
19721
else
21129
 
  cat >conftest.$ac_ext <<_ACEOF
21130
 
/* confdefs.h.  */
21131
 
_ACEOF
21132
 
cat confdefs.h >>conftest.$ac_ext
21133
 
cat >>conftest.$ac_ext <<_ACEOF
 
19722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21134
19723
/* end confdefs.h.  */
21135
19724
$ac_includes_default
21136
19725
/* malloc might have been renamed as rpl_malloc. */
21259
19848
  return 0;
21260
19849
}
21261
19850
_ACEOF
21262
 
rm -f conftest$ac_exeext
21263
 
if { (ac_try="$ac_link"
21264
 
case "(($ac_try" in
21265
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266
 
  *) ac_try_echo=$ac_try;;
21267
 
esac
21268
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21269
 
$as_echo "$ac_try_echo") >&5
21270
 
  (eval "$ac_link") 2>&5
21271
 
  ac_status=$?
21272
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21274
 
  { (case "(($ac_try" in
21275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276
 
  *) ac_try_echo=$ac_try;;
21277
 
esac
21278
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21279
 
$as_echo "$ac_try_echo") >&5
21280
 
  (eval "$ac_try") 2>&5
21281
 
  ac_status=$?
21282
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283
 
  (exit $ac_status); }; }; then
 
19851
if ac_fn_c_try_run "$LINENO"; then :
21284
19852
  ac_cv_func_mmap_fixed_mapped=yes
21285
19853
else
21286
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
21287
 
$as_echo "$as_me: failed program was:" >&5
21288
 
sed 's/^/| /' conftest.$ac_ext >&5
21289
 
 
21290
 
( exit $ac_status )
21291
 
ac_cv_func_mmap_fixed_mapped=no
21292
 
fi
21293
 
rm -rf conftest.dSYM
21294
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21295
 
fi
21296
 
 
21297
 
 
21298
 
fi
21299
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
19854
  ac_cv_func_mmap_fixed_mapped=no
 
19855
fi
 
19856
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19857
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19858
fi
 
19859
 
 
19860
fi
 
19861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21300
19862
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21301
19863
if test $ac_cv_func_mmap_fixed_mapped = yes; then
21302
19864
 
21303
 
cat >>confdefs.h <<\_ACEOF
21304
 
#define HAVE_MMAP 1
21305
 
_ACEOF
 
19865
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21306
19866
 
21307
19867
fi
21308
19868
rm -f conftest.mmap
21314
19874
FILEMAP_OBJ=readfilemap.o
21315
19875
fi
21316
19876
 
21317
 
 
21318
 
 
21319
19877
for ac_func in memmove bcopy
21320
 
do
21321
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21322
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21323
 
$as_echo_n "checking for $ac_func... " >&6; }
21324
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21325
 
  $as_echo_n "(cached) " >&6
21326
 
else
21327
 
  cat >conftest.$ac_ext <<_ACEOF
21328
 
/* confdefs.h.  */
21329
 
_ACEOF
21330
 
cat confdefs.h >>conftest.$ac_ext
21331
 
cat >>conftest.$ac_ext <<_ACEOF
21332
 
/* end confdefs.h.  */
21333
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21334
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21335
 
#define $ac_func innocuous_$ac_func
21336
 
 
21337
 
/* System header to define __stub macros and hopefully few prototypes,
21338
 
    which can conflict with char $ac_func (); below.
21339
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21340
 
    <limits.h> exists even on freestanding compilers.  */
21341
 
 
21342
 
#ifdef __STDC__
21343
 
# include <limits.h>
21344
 
#else
21345
 
# include <assert.h>
21346
 
#endif
21347
 
 
21348
 
#undef $ac_func
21349
 
 
21350
 
/* Override any GCC internal prototype to avoid an error.
21351
 
   Use char because int might match the return type of a GCC
21352
 
   builtin and then its argument prototype would still apply.  */
21353
 
#ifdef __cplusplus
21354
 
extern "C"
21355
 
#endif
21356
 
char $ac_func ();
21357
 
/* The GNU C library defines this for functions which it implements
21358
 
    to always fail with ENOSYS.  Some functions are actually named
21359
 
    something starting with __ and the normal name is an alias.  */
21360
 
#if defined __stub_$ac_func || defined __stub___$ac_func
21361
 
choke me
21362
 
#endif
21363
 
 
21364
 
int
21365
 
main ()
21366
 
{
21367
 
return $ac_func ();
21368
 
  ;
21369
 
  return 0;
21370
 
}
21371
 
_ACEOF
21372
 
rm -f conftest.$ac_objext conftest$ac_exeext
21373
 
if { (ac_try="$ac_link"
21374
 
case "(($ac_try" in
21375
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376
 
  *) ac_try_echo=$ac_try;;
21377
 
esac
21378
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21379
 
$as_echo "$ac_try_echo") >&5
21380
 
  (eval "$ac_link") 2>conftest.er1
21381
 
  ac_status=$?
21382
 
  grep -v '^ *+' conftest.er1 >conftest.err
21383
 
  rm -f conftest.er1
21384
 
  cat conftest.err >&5
21385
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386
 
  (exit $ac_status); } && {
21387
 
         test -z "$ac_c_werror_flag" ||
21388
 
         test ! -s conftest.err
21389
 
       } && test -s conftest$ac_exeext && {
21390
 
         test "$cross_compiling" = yes ||
21391
 
         $as_test_x conftest$ac_exeext
21392
 
       }; then
21393
 
  eval "$as_ac_var=yes"
21394
 
else
21395
 
  $as_echo "$as_me: failed program was:" >&5
21396
 
sed 's/^/| /' conftest.$ac_ext >&5
21397
 
 
21398
 
        eval "$as_ac_var=no"
21399
 
fi
21400
 
 
21401
 
rm -rf conftest.dSYM
21402
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403
 
      conftest$ac_exeext conftest.$ac_ext
21404
 
fi
21405
 
ac_res=`eval 'as_val=${'$as_ac_var'}
21406
 
                 $as_echo "$as_val"'`
21407
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21408
 
$as_echo "$ac_res" >&6; }
21409
 
as_val=`eval 'as_val=${'$as_ac_var'}
21410
 
                 $as_echo "$as_val"'`
21411
 
   if test "x$as_val" = x""yes; then
 
19878
do :
 
19879
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19880
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
19881
eval as_val=\$$as_ac_var
 
19882
   if test "x$as_val" = x""yes; then :
21412
19883
  cat >>confdefs.h <<_ACEOF
21413
19884
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21414
19885
_ACEOF
21446
19917
    case $ac_val in #(
21447
19918
    *${as_nl}*)
21448
19919
      case $ac_var in #(
21449
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
19920
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21450
19921
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21451
19922
      esac
21452
19923
      case $ac_var in #(
21453
19924
      _ | IFS | as_nl) ;; #(
21454
19925
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21455
 
      *) $as_unset $ac_var ;;
 
19926
      *) { eval $ac_var=; unset $ac_var;} ;;
21456
19927
      esac ;;
21457
19928
    esac
21458
19929
  done
21460
19931
  (set) 2>&1 |
21461
19932
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21462
19933
    *${as_nl}ac_space=\ *)
21463
 
      # `set' does not quote correctly, so add quotes (double-quote
21464
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19934
      # `set' does not quote correctly, so add quotes: double-quote
 
19935
      # substitution turns \\\\ into \\, and sed turns \\ into \.
21465
19936
      sed -n \
21466
19937
        "s/'/'\\\\''/g;
21467
19938
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21484
19955
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21485
19956
  if test -w "$cache_file"; then
21486
19957
    test "x$cache_file" != "x/dev/null" &&
21487
 
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
19958
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21488
19959
$as_echo "$as_me: updating cache $cache_file" >&6;}
21489
19960
    cat confcache >$cache_file
21490
19961
  else
21491
 
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
19962
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21492
19963
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21493
19964
  fi
21494
19965
fi
21508
19979
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21509
19980
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21510
19981
  #    will be set to the directory where LIBOBJS objects are built.
21511
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21512
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
19982
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
19983
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21513
19984
done
21514
19985
LIBOBJS=$ac_libobjs
21515
19986
 
21522
19993
ac_write_fail=0
21523
19994
ac_clean_files_save=$ac_clean_files
21524
19995
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21525
 
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19996
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21526
19997
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21527
 
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19998
as_write_fail=0
 
19999
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21528
20000
#! $SHELL
21529
20001
# Generated by $as_me.
21530
20002
# Run this file to recreate the current configuration.
21534
20006
debug=false
21535
20007
ac_cs_recheck=false
21536
20008
ac_cs_silent=false
 
20009
 
21537
20010
SHELL=\${CONFIG_SHELL-$SHELL}
21538
 
_ACEOF
21539
 
 
21540
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21541
 
## --------------------- ##
21542
 
## M4sh Initialization.  ##
21543
 
## --------------------- ##
 
20011
export SHELL
 
20012
_ASEOF
 
20013
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
20014
## -------------------- ##
 
20015
## M4sh Initialization. ##
 
20016
## -------------------- ##
21544
20017
 
21545
20018
# Be more Bourne compatible
21546
20019
DUALCASE=1; export DUALCASE # for MKS sh
21547
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20020
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21548
20021
  emulate sh
21549
20022
  NULLCMD=:
21550
20023
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21552
20025
  alias -g '${1+"$@"}'='"$@"'
21553
20026
  setopt NO_GLOB_SUBST
21554
20027
else
21555
 
  case `(set -o) 2>/dev/null` in
21556
 
  *posix*) set -o posix ;;
 
20028
  case `(set -o) 2>/dev/null` in #(
 
20029
  *posix*) :
 
20030
    set -o posix ;; #(
 
20031
  *) :
 
20032
     ;;
21557
20033
esac
21558
 
 
21559
20034
fi
21560
20035
 
21561
20036
 
21562
 
 
21563
 
 
21564
 
# PATH needs CR
21565
 
# Avoid depending upon Character Ranges.
21566
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21567
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21568
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21569
 
as_cr_digits='0123456789'
21570
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
21571
 
 
21572
20037
as_nl='
21573
20038
'
21574
20039
export as_nl
21576
20041
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21577
20042
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21578
20043
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21579
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
20044
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
20045
# but without wasting forks for bash or zsh.
 
20046
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
20047
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
20048
  as_echo='print -r --'
 
20049
  as_echo_n='print -rn --'
 
20050
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21580
20051
  as_echo='printf %s\n'
21581
20052
  as_echo_n='printf %s'
21582
20053
else
21587
20058
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21588
20059
    as_echo_n_body='eval
21589
20060
      arg=$1;
21590
 
      case $arg in
 
20061
      case $arg in #(
21591
20062
      *"$as_nl"*)
21592
20063
        expr "X$arg" : "X\\(.*\\)$as_nl";
21593
20064
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21610
20081
  }
21611
20082
fi
21612
20083
 
21613
 
# Support unset when possible.
21614
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21615
 
  as_unset=unset
21616
 
else
21617
 
  as_unset=false
21618
 
fi
21619
 
 
21620
20084
 
21621
20085
# IFS
21622
20086
# We need space, tab and new line, in precisely that order.  Quoting is
21626
20090
IFS=" ""        $as_nl"
21627
20091
 
21628
20092
# Find who we are.  Look in the path if we contain no directory separator.
21629
 
case $0 in
 
20093
case $0 in #((
21630
20094
  *[\\/]* ) as_myself=$0 ;;
21631
20095
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632
20096
for as_dir in $PATH
21633
20097
do
21634
20098
  IFS=$as_save_IFS
21635
20099
  test -z "$as_dir" && as_dir=.
21636
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21637
 
done
 
20100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20101
  done
21638
20102
IFS=$as_save_IFS
21639
20103
 
21640
20104
     ;;
21646
20110
fi
21647
20111
if test ! -f "$as_myself"; then
21648
20112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21649
 
  { (exit 1); exit 1; }
 
20113
  exit 1
21650
20114
fi
21651
20115
 
21652
 
# Work around bugs in pre-3.0 UWIN ksh.
21653
 
for as_var in ENV MAIL MAILPATH
21654
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20116
# Unset variables that we do not need and which cause bugs (e.g. in
 
20117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
20118
# suppresses any "Segmentation fault" message there.  '((' could
 
20119
# trigger a bug in pdksh 5.2.14.
 
20120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
20121
do eval test x\${$as_var+set} = xset \
 
20122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21655
20123
done
21656
20124
PS1='$ '
21657
20125
PS2='> '
21663
20131
LANGUAGE=C
21664
20132
export LANGUAGE
21665
20133
 
21666
 
# Required to use basename.
 
20134
# CDPATH.
 
20135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
20136
 
 
20137
 
 
20138
# as_fn_error ERROR [LINENO LOG_FD]
 
20139
# ---------------------------------
 
20140
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
20141
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
20142
# script with status $?, using 1 if that was 0.
 
20143
as_fn_error ()
 
20144
{
 
20145
  as_status=$?; test $as_status -eq 0 && as_status=1
 
20146
  if test "$3"; then
 
20147
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
20148
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
20149
  fi
 
20150
  $as_echo "$as_me: error: $1" >&2
 
20151
  as_fn_exit $as_status
 
20152
} # as_fn_error
 
20153
 
 
20154
 
 
20155
# as_fn_set_status STATUS
 
20156
# -----------------------
 
20157
# Set $? to STATUS, without forking.
 
20158
as_fn_set_status ()
 
20159
{
 
20160
  return $1
 
20161
} # as_fn_set_status
 
20162
 
 
20163
# as_fn_exit STATUS
 
20164
# -----------------
 
20165
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
20166
as_fn_exit ()
 
20167
{
 
20168
  set +e
 
20169
  as_fn_set_status $1
 
20170
  exit $1
 
20171
} # as_fn_exit
 
20172
 
 
20173
# as_fn_unset VAR
 
20174
# ---------------
 
20175
# Portably unset VAR.
 
20176
as_fn_unset ()
 
20177
{
 
20178
  { eval $1=; unset $1;}
 
20179
}
 
20180
as_unset=as_fn_unset
 
20181
# as_fn_append VAR VALUE
 
20182
# ----------------------
 
20183
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
20184
# advantage of any shell optimizations that allow amortized linear growth over
 
20185
# repeated appends, instead of the typical quadratic growth present in naive
 
20186
# implementations.
 
20187
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
20188
  eval 'as_fn_append ()
 
20189
  {
 
20190
    eval $1+=\$2
 
20191
  }'
 
20192
else
 
20193
  as_fn_append ()
 
20194
  {
 
20195
    eval $1=\$$1\$2
 
20196
  }
 
20197
fi # as_fn_append
 
20198
 
 
20199
# as_fn_arith ARG...
 
20200
# ------------------
 
20201
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
20202
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
20203
# must be portable across $(()) and expr.
 
20204
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
20205
  eval 'as_fn_arith ()
 
20206
  {
 
20207
    as_val=$(( $* ))
 
20208
  }'
 
20209
else
 
20210
  as_fn_arith ()
 
20211
  {
 
20212
    as_val=`expr "$@" || test $? -eq 1`
 
20213
  }
 
20214
fi # as_fn_arith
 
20215
 
 
20216
 
21667
20217
if expr a : '\(a\)' >/dev/null 2>&1 &&
21668
20218
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21669
20219
  as_expr=expr
21677
20227
  as_basename=false
21678
20228
fi
21679
20229
 
 
20230
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
20231
  as_dirname=dirname
 
20232
else
 
20233
  as_dirname=false
 
20234
fi
21680
20235
 
21681
 
# Name of the executable.
21682
20236
as_me=`$as_basename -- "$0" ||
21683
20237
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21684
20238
         X"$0" : 'X\(//\)$' \| \
21698
20252
          }
21699
20253
          s/.*/./; q'`
21700
20254
 
21701
 
# CDPATH.
21702
 
$as_unset CDPATH
21703
 
 
21704
 
 
21705
 
 
21706
 
  as_lineno_1=$LINENO
21707
 
  as_lineno_2=$LINENO
21708
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21709
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21710
 
 
21711
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21712
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
21713
 
  # line-number line after each line using $LINENO; the second 'sed'
21714
 
  # does the real work.  The second script uses 'N' to pair each
21715
 
  # line-number line with the line containing $LINENO, and appends
21716
 
  # trailing '-' during substitution so that $LINENO is not a special
21717
 
  # case at line end.
21718
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21719
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21720
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
21721
 
  sed -n '
21722
 
    p
21723
 
    /[$]LINENO/=
21724
 
  ' <$as_myself |
21725
 
    sed '
21726
 
      s/[$]LINENO.*/&-/
21727
 
      t lineno
21728
 
      b
21729
 
      :lineno
21730
 
      N
21731
 
      :loop
21732
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21733
 
      t loop
21734
 
      s/-\n.*//
21735
 
    ' >$as_me.lineno &&
21736
 
  chmod +x "$as_me.lineno" ||
21737
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21738
 
   { (exit 1); exit 1; }; }
21739
 
 
21740
 
  # Don't try to exec as it changes $[0], causing all sort of problems
21741
 
  # (the dirname of $[0] is not the place where we might find the
21742
 
  # original and so on.  Autoconf is especially sensitive to this).
21743
 
  . "./$as_me.lineno"
21744
 
  # Exit status is that of the last command.
21745
 
  exit
21746
 
}
21747
 
 
21748
 
 
21749
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21750
 
  as_dirname=dirname
21751
 
else
21752
 
  as_dirname=false
21753
 
fi
 
20255
# Avoid depending upon Character Ranges.
 
20256
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20257
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20258
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20259
as_cr_digits='0123456789'
 
20260
as_cr_alnum=$as_cr_Letters$as_cr_digits
21754
20261
 
21755
20262
ECHO_C= ECHO_N= ECHO_T=
21756
 
case `echo -n x` in
 
20263
case `echo -n x` in #(((((
21757
20264
-n*)
21758
 
  case `echo 'x\c'` in
 
20265
  case `echo 'xy\c'` in
21759
20266
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21760
 
  *)   ECHO_C='\c';;
 
20267
  xy)  ECHO_C='\c';;
 
20268
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
20269
       ECHO_T=' ';;
21761
20270
  esac;;
21762
20271
*)
21763
20272
  ECHO_N='-n';;
21764
20273
esac
21765
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
21766
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21767
 
  as_expr=expr
21768
 
else
21769
 
  as_expr=false
21770
 
fi
21771
20274
 
21772
20275
rm -f conf$$ conf$$.exe conf$$.file
21773
20276
if test -d conf$$.dir; then
21796
20299
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21797
20300
rmdir conf$$.dir 2>/dev/null
21798
20301
 
 
20302
 
 
20303
# as_fn_mkdir_p
 
20304
# -------------
 
20305
# Create "$as_dir" as a directory, including parents if necessary.
 
20306
as_fn_mkdir_p ()
 
20307
{
 
20308
 
 
20309
  case $as_dir in #(
 
20310
  -*) as_dir=./$as_dir;;
 
20311
  esac
 
20312
  test -d "$as_dir" || eval $as_mkdir_p || {
 
20313
    as_dirs=
 
20314
    while :; do
 
20315
      case $as_dir in #(
 
20316
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
20317
      *) as_qdir=$as_dir;;
 
20318
      esac
 
20319
      as_dirs="'$as_qdir' $as_dirs"
 
20320
      as_dir=`$as_dirname -- "$as_dir" ||
 
20321
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20322
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20323
         X"$as_dir" : 'X\(//\)$' \| \
 
20324
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
20325
$as_echo X"$as_dir" |
 
20326
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20327
            s//\1/
 
20328
            q
 
20329
          }
 
20330
          /^X\(\/\/\)[^/].*/{
 
20331
            s//\1/
 
20332
            q
 
20333
          }
 
20334
          /^X\(\/\/\)$/{
 
20335
            s//\1/
 
20336
            q
 
20337
          }
 
20338
          /^X\(\/\).*/{
 
20339
            s//\1/
 
20340
            q
 
20341
          }
 
20342
          s/.*/./; q'`
 
20343
      test -d "$as_dir" && break
 
20344
    done
 
20345
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
20346
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
20347
 
 
20348
 
 
20349
} # as_fn_mkdir_p
21799
20350
if mkdir -p . 2>/dev/null; then
21800
 
  as_mkdir_p=:
 
20351
  as_mkdir_p='mkdir -p "$as_dir"'
21801
20352
else
21802
20353
  test -d ./-p && rmdir ./-p
21803
20354
  as_mkdir_p=false
21816
20367
      if test -d "$1"; then
21817
20368
        test -d "$1/.";
21818
20369
      else
21819
 
        case $1 in
 
20370
        case $1 in #(
21820
20371
        -*)set "./$1";;
21821
20372
        esac;
21822
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
20373
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21823
20374
        ???[sx]*):;;*)false;;esac;fi
21824
20375
    '\'' sh
21825
20376
  '
21834
20385
 
21835
20386
 
21836
20387
exec 6>&1
 
20388
## ----------------------------------- ##
 
20389
## Main body of $CONFIG_STATUS script. ##
 
20390
## ----------------------------------- ##
 
20391
_ASEOF
 
20392
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21837
20393
 
21838
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
20394
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20395
# Save the log message, to keep $0 and so on meaningful, and to
21839
20396
# report actual input values of CONFIG_FILES etc. instead of their
21840
20397
# values after options handling.
21841
20398
ac_log="
21842
20399
This file was extended by $as_me, which was
21843
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
20400
generated by GNU Autoconf 2.64.  Invocation command line was
21844
20401
 
21845
20402
  CONFIG_FILES    = $CONFIG_FILES
21846
20403
  CONFIG_HEADERS  = $CONFIG_HEADERS
21871
20428
 
21872
20429
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873
20430
ac_cs_usage="\
21874
 
\`$as_me' instantiates files from templates according to the
21875
 
current configuration.
 
20431
\`$as_me' instantiates files and other configuration actions
 
20432
from templates according to the current configuration.  Unless the files
 
20433
and actions are specified as TAGs, all are instantiated by default.
21876
20434
 
21877
 
Usage: $0 [OPTION]... [FILE]...
 
20435
Usage: $0 [OPTION]... [TAG]...
21878
20436
 
21879
20437
  -h, --help       print this help, then exit
21880
20438
  -V, --version    print version number and configuration settings, then exit
21893
20451
Configuration headers:
21894
20452
$config_headers
21895
20453
 
21896
 
Report bugs to <bug-autoconf@gnu.org>."
 
20454
Report bugs to the package provider."
21897
20455
 
21898
20456
_ACEOF
21899
20457
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21900
20458
ac_cs_version="\\
21901
20459
config.status
21902
 
configured by $0, generated by GNU Autoconf 2.63,
 
20460
configured by $0, generated by GNU Autoconf 2.64,
21903
20461
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21904
20462
 
21905
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
20463
Copyright (C) 2009 Free Software Foundation, Inc.
21906
20464
This config.status script is free software; the Free Software Foundation
21907
20465
gives unlimited permission to copy, distribute and modify it."
21908
20466
 
21943
20501
    case $ac_optarg in
21944
20502
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21945
20503
    esac
21946
 
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
20504
    as_fn_append CONFIG_FILES " '$ac_optarg'"
21947
20505
    ac_need_defaults=false;;
21948
20506
  --header | --heade | --head | --hea )
21949
20507
    $ac_shift
21950
20508
    case $ac_optarg in
21951
20509
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21952
20510
    esac
21953
 
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
20511
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21954
20512
    ac_need_defaults=false;;
21955
20513
  --he | --h)
21956
20514
    # Conflict between --help and --header
21957
 
    { $as_echo "$as_me: error: ambiguous option: $1
21958
 
Try \`$0 --help' for more information." >&2
21959
 
   { (exit 1); exit 1; }; };;
 
20515
    as_fn_error "ambiguous option: \`$1'
 
20516
Try \`$0 --help' for more information.";;
21960
20517
  --help | --hel | -h )
21961
20518
    $as_echo "$ac_cs_usage"; exit ;;
21962
20519
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21964
20521
    ac_cs_silent=: ;;
21965
20522
 
21966
20523
  # This is an error.
21967
 
  -*) { $as_echo "$as_me: error: unrecognized option: $1
21968
 
Try \`$0 --help' for more information." >&2
21969
 
   { (exit 1); exit 1; }; } ;;
 
20524
  -*) as_fn_error "unrecognized option: \`$1'
 
20525
Try \`$0 --help' for more information." ;;
21970
20526
 
21971
 
  *) ac_config_targets="$ac_config_targets $1"
 
20527
  *) as_fn_append ac_config_targets " $1"
21972
20528
     ac_need_defaults=false ;;
21973
20529
 
21974
20530
  esac
22019
20575
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22020
20576
    "lib/expat.h") CONFIG_FILES="$CONFIG_FILES lib/expat.h" ;;
22021
20577
 
22022
 
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22023
 
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22024
 
   { (exit 1); exit 1; }; };;
 
20578
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22025
20579
  esac
22026
20580
done
22027
20581
 
22047
20601
  trap 'exit_status=$?
22048
20602
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22049
20603
' 0
22050
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20604
  trap 'as_fn_exit 1' 1 2 13 15
22051
20605
}
22052
20606
# Create a (secure) tmp directory for tmp files.
22053
20607
 
22058
20612
{
22059
20613
  tmp=./conf$$-$RANDOM
22060
20614
  (umask 077 && mkdir "$tmp")
22061
 
} ||
22062
 
{
22063
 
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22064
 
   { (exit 1); exit 1; }
22065
 
}
 
20615
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22066
20616
 
22067
20617
# Set up the scripts for CONFIG_FILES section.
22068
20618
# No need to generate them if there are no CONFIG_FILES.
22070
20620
if test -n "$CONFIG_FILES"; then
22071
20621
 
22072
20622
 
22073
 
ac_cr='
 
 
b"'"
 
20623
ac_cr=`echo X | tr X '\015'`
 
20624
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
20625
# But we know of no other shell where ac_cr would be empty at this
 
20626
# point, so we can use a bashism as a fallback.
 
20627
if test "x$ac_cr" = x; then
 
20628
  eval ac_cr=\$\'\\r\'
 
20629
fi
22074
20630
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22075
20631
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22076
 
  ac_cs_awk_cr='\\r'
 
20632
  ac_cs_awk_cr='\r'
22077
20633
else
22078
20634
  ac_cs_awk_cr=$ac_cr
22079
20635
fi
22087
20643
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22088
20644
  echo "_ACEOF"
22089
20645
} >conf$$subs.sh ||
22090
 
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22091
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22092
 
   { (exit 1); exit 1; }; }
 
20646
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22093
20647
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22094
20648
ac_delim='%!_!# '
22095
20649
for ac_last_try in false false false false false :; do
22096
20650
  . ./conf$$subs.sh ||
22097
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22098
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22099
 
   { (exit 1); exit 1; }; }
 
20651
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22100
20652
 
22101
20653
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22102
20654
  if test $ac_delim_n = $ac_delim_num; then
22103
20655
    break
22104
20656
  elif $ac_last_try; then
22105
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22106
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22107
 
   { (exit 1); exit 1; }; }
 
20657
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22108
20658
  else
22109
20659
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22110
20660
  fi
22193
20743
else
22194
20744
  cat
22195
20745
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22196
 
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22197
 
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22198
 
   { (exit 1); exit 1; }; }
 
20746
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
22199
20747
_ACEOF
22200
20748
 
22201
20749
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22236
20784
  if test -z "$ac_t"; then
22237
20785
    break
22238
20786
  elif $ac_last_try; then
22239
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22240
 
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22241
 
   { (exit 1); exit 1; }; }
 
20787
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22242
20788
  else
22243
20789
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22244
20790
  fi
22323
20869
_ACAWK
22324
20870
_ACEOF
22325
20871
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22326
 
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22327
 
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22328
 
   { (exit 1); exit 1; }; }
 
20872
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
22329
20873
fi # test -n "$CONFIG_HEADERS"
22330
20874
 
22331
20875
 
22338
20882
  esac
22339
20883
  case $ac_mode$ac_tag in
22340
20884
  :[FHL]*:*);;
22341
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22342
 
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22343
 
   { (exit 1); exit 1; }; };;
 
20885
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22344
20886
  :[FH]-) ac_tag=-:-;;
22345
20887
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22346
20888
  esac
22368
20910
           [\\/$]*) false;;
22369
20911
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22370
20912
           esac ||
22371
 
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22372
 
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22373
 
   { (exit 1); exit 1; }; };;
 
20913
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22374
20914
      esac
22375
20915
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22376
 
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
20916
      as_fn_append ac_file_inputs " '$ac_f'"
22377
20917
    done
22378
20918
 
22379
20919
    # Let's still pretend it is `configure' which instantiates (i.e., don't
22384
20924
        `' by configure.'
22385
20925
    if test x"$ac_file" != x-; then
22386
20926
      configure_input="$ac_file.  $configure_input"
22387
 
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
20927
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22388
20928
$as_echo "$as_me: creating $ac_file" >&6;}
22389
20929
    fi
22390
20930
    # Neutralize special characters interpreted by sed in replacement strings.
22397
20937
 
22398
20938
    case $ac_tag in
22399
20939
    *:-:* | *:-) cat >"$tmp/stdin" \
22400
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22401
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22402
 
   { (exit 1); exit 1; }; } ;;
 
20940
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22403
20941
    esac
22404
20942
    ;;
22405
20943
  esac
22427
20965
            q
22428
20966
          }
22429
20967
          s/.*/./; q'`
22430
 
  { as_dir="$ac_dir"
22431
 
  case $as_dir in #(
22432
 
  -*) as_dir=./$as_dir;;
22433
 
  esac
22434
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22435
 
    as_dirs=
22436
 
    while :; do
22437
 
      case $as_dir in #(
22438
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22439
 
      *) as_qdir=$as_dir;;
22440
 
      esac
22441
 
      as_dirs="'$as_qdir' $as_dirs"
22442
 
      as_dir=`$as_dirname -- "$as_dir" ||
22443
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22444
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
22445
 
         X"$as_dir" : 'X\(//\)$' \| \
22446
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22447
 
$as_echo X"$as_dir" |
22448
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22449
 
            s//\1/
22450
 
            q
22451
 
          }
22452
 
          /^X\(\/\/\)[^/].*/{
22453
 
            s//\1/
22454
 
            q
22455
 
          }
22456
 
          /^X\(\/\/\)$/{
22457
 
            s//\1/
22458
 
            q
22459
 
          }
22460
 
          /^X\(\/\).*/{
22461
 
            s//\1/
22462
 
            q
22463
 
          }
22464
 
          s/.*/./; q'`
22465
 
      test -d "$as_dir" && break
22466
 
    done
22467
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
22468
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22469
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22470
 
   { (exit 1); exit 1; }; }; }
 
20968
  as_dir="$ac_dir"; as_fn_mkdir_p
22471
20969
  ac_builddir=.
22472
20970
 
22473
20971
case "$ac_dir" in
22519
21017
# If the template does not know about datarootdir, expand it.
22520
21018
# FIXME: This hack should be removed a few years after 2.60.
22521
21019
ac_datarootdir_hack=; ac_datarootdir_seen=
22522
 
 
22523
21020
ac_sed_dataroot='
22524
21021
/datarootdir/ {
22525
21022
  p
22529
21026
/@docdir@/p
22530
21027
/@infodir@/p
22531
21028
/@localedir@/p
22532
 
/@mandir@/p
22533
 
'
 
21029
/@mandir@/p'
22534
21030
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22535
21031
*datarootdir*) ac_datarootdir_seen=yes;;
22536
21032
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22537
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
21033
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22538
21034
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22539
21035
_ACEOF
22540
21036
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22544
21040
  s&@infodir@&$infodir&g
22545
21041
  s&@localedir@&$localedir&g
22546
21042
  s&@mandir@&$mandir&g
22547
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
21043
  s&\\\${datarootdir}&$datarootdir&g' ;;
22548
21044
esac
22549
21045
_ACEOF
22550
21046
 
22572
21068
$ac_datarootdir_hack
22573
21069
"
22574
21070
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22575
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22576
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22577
 
   { (exit 1); exit 1; }; }
 
21071
  || as_fn_error "could not create $ac_file" "$LINENO" 5
22578
21072
 
22579
21073
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22580
21074
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22581
21075
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22582
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21076
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22583
21077
which seems to be undefined.  Please make sure it is defined." >&5
22584
21078
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585
21079
which seems to be undefined.  Please make sure it is defined." >&2;}
22589
21083
  -) cat "$tmp/out" && rm -f "$tmp/out";;
22590
21084
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22591
21085
  esac \
22592
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22593
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22594
 
   { (exit 1); exit 1; }; }
 
21086
  || as_fn_error "could not create $ac_file" "$LINENO" 5
22595
21087
 ;;
22596
21088
  :H)
22597
21089
  #
22602
21094
      $as_echo "/* $configure_input  */" \
22603
21095
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22604
21096
    } >"$tmp/config.h" \
22605
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22606
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22607
 
   { (exit 1); exit 1; }; }
 
21097
      || as_fn_error "could not create $ac_file" "$LINENO" 5
22608
21098
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22609
 
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21099
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22610
21100
$as_echo "$as_me: $ac_file is unchanged" >&6;}
22611
21101
    else
22612
21102
      rm -f "$ac_file"
22613
21103
      mv "$tmp/config.h" "$ac_file" \
22614
 
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22615
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22616
 
   { (exit 1); exit 1; }; }
 
21104
        || as_fn_error "could not create $ac_file" "$LINENO" 5
22617
21105
    fi
22618
21106
  else
22619
21107
    $as_echo "/* $configure_input  */" \
22620
21108
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22621
 
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22622
 
$as_echo "$as_me: error: could not create -" >&2;}
22623
 
   { (exit 1); exit 1; }; }
 
21109
      || as_fn_error "could not create -" "$LINENO" 5
22624
21110
  fi
22625
21111
 ;;
22626
21112
 
22630
21116
done # for ac_tag
22631
21117
 
22632
21118
 
22633
 
{ (exit 0); exit 0; }
 
21119
as_fn_exit 0
22634
21120
_ACEOF
22635
 
chmod +x $CONFIG_STATUS
22636
21121
ac_clean_files=$ac_clean_files_save
22637
21122
 
22638
21123
test $ac_write_fail = 0 ||
22639
 
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22640
 
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22641
 
   { (exit 1); exit 1; }; }
 
21124
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22642
21125
 
22643
21126
 
22644
21127
# configure is writing to config.log, and then calls config.status.
22659
21142
  exec 5>>config.log
22660
21143
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22661
21144
  # would make configure fail if this is the last instruction.
22662
 
  $ac_cs_success || { (exit 1); exit 1; }
 
21145
  $ac_cs_success || as_fn_exit $?
22663
21146
fi
22664
21147
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22665
 
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
21148
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22666
21149
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22667
21150
fi
22668
21151