~davbo/ubuntu/trusty/jq/merge-debian-changes

« back to all changes in this revision

Viewing changes to configure

  • Committer: David King
  • Date: 2017-04-12 15:47:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: dave@davbo.org-20170412154707-qq74qifqttlcqb3r
Tags: upstream-1.4
ImportĀ upstreamĀ versionĀ 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for jq 1.4.
 
4
#
 
5
# Report bugs to <mu@netsoc.tcd.ie>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and mu@netsoc.tcd.ie
 
278
$0: about your system, including any error possibly output
 
279
$0: before this message. Then install a modern shell, or
 
280
$0: manually run the script under such a shell if you do
 
281
$0: have one."
 
282
  fi
 
283
  exit 1
 
284
fi
 
285
fi
 
286
fi
 
287
SHELL=${CONFIG_SHELL-/bin/sh}
 
288
export SHELL
 
289
# Unset more variables known to interfere with behavior of common tools.
 
290
CLICOLOR_FORCE= GREP_OPTIONS=
 
291
unset CLICOLOR_FORCE GREP_OPTIONS
 
292
 
 
293
## --------------------- ##
 
294
## M4sh Shell Functions. ##
 
295
## --------------------- ##
 
296
# as_fn_unset VAR
 
297
# ---------------
 
298
# Portably unset VAR.
 
299
as_fn_unset ()
 
300
{
 
301
  { eval $1=; unset $1;}
 
302
}
 
303
as_unset=as_fn_unset
 
304
 
 
305
# as_fn_set_status STATUS
 
306
# -----------------------
 
307
# Set $? to STATUS, without forking.
 
308
as_fn_set_status ()
 
309
{
 
310
  return $1
 
311
} # as_fn_set_status
 
312
 
 
313
# as_fn_exit STATUS
 
314
# -----------------
 
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
316
as_fn_exit ()
 
317
{
 
318
  set +e
 
319
  as_fn_set_status $1
 
320
  exit $1
 
321
} # as_fn_exit
 
322
 
 
323
# as_fn_mkdir_p
 
324
# -------------
 
325
# Create "$as_dir" as a directory, including parents if necessary.
 
326
as_fn_mkdir_p ()
 
327
{
 
328
 
 
329
  case $as_dir in #(
 
330
  -*) as_dir=./$as_dir;;
 
331
  esac
 
332
  test -d "$as_dir" || eval $as_mkdir_p || {
 
333
    as_dirs=
 
334
    while :; do
 
335
      case $as_dir in #(
 
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
337
      *) as_qdir=$as_dir;;
 
338
      esac
 
339
      as_dirs="'$as_qdir' $as_dirs"
 
340
      as_dir=`$as_dirname -- "$as_dir" ||
 
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
343
         X"$as_dir" : 'X\(//\)$' \| \
 
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
345
$as_echo X"$as_dir" |
 
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
347
            s//\1/
 
348
            q
 
349
          }
 
350
          /^X\(\/\/\)[^/].*/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)$/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\).*/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          s/.*/./; q'`
 
363
      test -d "$as_dir" && break
 
364
    done
 
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
367
 
 
368
 
 
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
 
378
# as_fn_append VAR VALUE
 
379
# ----------------------
 
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
381
# advantage of any shell optimizations that allow amortized linear growth over
 
382
# repeated appends, instead of the typical quadratic growth present in naive
 
383
# implementations.
 
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
385
  eval 'as_fn_append ()
 
386
  {
 
387
    eval $1+=\$2
 
388
  }'
 
389
else
 
390
  as_fn_append ()
 
391
  {
 
392
    eval $1=\$$1\$2
 
393
  }
 
394
fi # as_fn_append
 
395
 
 
396
# as_fn_arith ARG...
 
397
# ------------------
 
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
400
# must be portable across $(()) and expr.
 
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
402
  eval 'as_fn_arith ()
 
403
  {
 
404
    as_val=$(( $* ))
 
405
  }'
 
406
else
 
407
  as_fn_arith ()
 
408
  {
 
409
    as_val=`expr "$@" || test $? -eq 1`
 
410
  }
 
411
fi # as_fn_arith
 
412
 
 
413
 
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
415
# ----------------------------------------
 
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
418
# script with STATUS, using 1 if that was 0.
 
419
as_fn_error ()
 
420
{
 
421
  as_status=$1; test $as_status -eq 0 && as_status=1
 
422
  if test "$4"; then
 
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
425
  fi
 
426
  $as_echo "$as_me: error: $2" >&2
 
427
  as_fn_exit $as_status
 
428
} # as_fn_error
 
429
 
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
432
  as_expr=expr
 
433
else
 
434
  as_expr=false
 
435
fi
 
436
 
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
438
  as_basename=basename
 
439
else
 
440
  as_basename=false
 
441
fi
 
442
 
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
444
  as_dirname=dirname
 
445
else
 
446
  as_dirname=false
 
447
fi
 
448
 
 
449
as_me=`$as_basename -- "$0" ||
 
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
451
         X"$0" : 'X\(//\)$' \| \
 
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
453
$as_echo X/"$0" |
 
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
455
            s//\1/
 
456
            q
 
457
          }
 
458
          /^X\/\(\/\/\)$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\).*/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          s/.*/./; q'`
 
467
 
 
468
# Avoid depending upon Character Ranges.
 
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
472
as_cr_digits='0123456789'
 
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
474
 
 
475
 
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
481
  sed -n '
 
482
    p
 
483
    /[$]LINENO/=
 
484
  ' <$as_myself |
 
485
    sed '
 
486
      s/[$]LINENO.*/&-/
 
487
      t lineno
 
488
      b
 
489
      :lineno
 
490
      N
 
491
      :loop
 
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
493
      t loop
 
494
      s/-\n.*//
 
495
    ' >$as_me.lineno &&
 
496
  chmod +x "$as_me.lineno" ||
 
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
 
503
  # Don't try to exec as it changes $[0], causing all sort of problems
 
504
  # (the dirname of $[0] is not the place where we might find the
 
505
  # original and so on.  Autoconf is especially sensitive to this).
 
506
  . "./$as_me.lineno"
 
507
  # Exit status is that of the last command.
 
508
  exit
 
509
}
 
510
 
 
511
ECHO_C= ECHO_N= ECHO_T=
 
512
case `echo -n x` in #(((((
 
513
-n*)
 
514
  case `echo 'xy\c'` in
 
515
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
516
  xy)  ECHO_C='\c';;
 
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
518
       ECHO_T=' ';;
 
519
  esac;;
 
520
*)
 
521
  ECHO_N='-n';;
 
522
esac
 
523
 
 
524
rm -f conf$$ conf$$.exe conf$$.file
 
525
if test -d conf$$.dir; then
 
526
  rm -f conf$$.dir/conf$$.file
 
527
else
 
528
  rm -f conf$$.dir
 
529
  mkdir conf$$.dir 2>/dev/null
 
530
fi
 
531
if (echo >conf$$.file) 2>/dev/null; then
 
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
533
    as_ln_s='ln -s'
 
534
    # ... but there are two gotchas:
 
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
537
    # In both cases, we have to default to `cp -pR'.
 
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
539
      as_ln_s='cp -pR'
 
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
541
    as_ln_s=ln
 
542
  else
 
543
    as_ln_s='cp -pR'
 
544
  fi
 
545
else
 
546
  as_ln_s='cp -pR'
 
547
fi
 
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
549
rmdir conf$$.dir 2>/dev/null
 
550
 
 
551
if mkdir -p . 2>/dev/null; then
 
552
  as_mkdir_p='mkdir -p "$as_dir"'
 
553
else
 
554
  test -d ./-p && rmdir ./-p
 
555
  as_mkdir_p=false
 
556
fi
 
557
 
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
 
560
 
 
561
# Sed expression to map a string onto a valid CPP name.
 
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
# Sed expression to map a string onto a valid variable name.
 
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
566
 
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
 
568
 
 
569
 
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
 
571
exec 6>&1
 
572
 
 
573
# Name of the host.
 
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
575
# so uname gets run too.
 
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
577
 
 
578
#
 
579
# Initializations.
 
580
#
 
581
ac_default_prefix=/usr/local
 
582
ac_clean_files=
 
583
ac_config_libobj_dir=.
 
584
LIBOBJS=
 
585
cross_compiling=no
 
586
subdirs=
 
587
MFLAGS=
 
588
MAKEFLAGS=
 
589
 
 
590
# Identity of this package.
 
591
PACKAGE_NAME='jq'
 
592
PACKAGE_TARNAME='jq'
 
593
PACKAGE_VERSION='1.4'
 
594
PACKAGE_STRING='jq 1.4'
 
595
PACKAGE_BUGREPORT='mu@netsoc.tcd.ie'
 
596
PACKAGE_URL='http://stedolan.github.com/jq/'
 
597
 
 
598
# Factoring default headers for most tests.
 
599
ac_includes_default="\
 
600
#include <stdio.h>
 
601
#ifdef HAVE_SYS_TYPES_H
 
602
# include <sys/types.h>
 
603
#endif
 
604
#ifdef HAVE_SYS_STAT_H
 
605
# include <sys/stat.h>
 
606
#endif
 
607
#ifdef STDC_HEADERS
 
608
# include <stdlib.h>
 
609
# include <stddef.h>
 
610
#else
 
611
# ifdef HAVE_STDLIB_H
 
612
#  include <stdlib.h>
 
613
# endif
 
614
#endif
 
615
#ifdef HAVE_STRING_H
 
616
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
617
#  include <memory.h>
 
618
# endif
 
619
# include <string.h>
 
620
#endif
 
621
#ifdef HAVE_STRINGS_H
 
622
# include <strings.h>
 
623
#endif
 
624
#ifdef HAVE_INTTYPES_H
 
625
# include <inttypes.h>
 
626
#endif
 
627
#ifdef HAVE_STDINT_H
 
628
# include <stdint.h>
 
629
#endif
 
630
#ifdef HAVE_UNISTD_H
 
631
# include <unistd.h>
 
632
#endif"
 
633
 
 
634
ac_subst_vars='am__EXEEXT_FALSE
 
635
am__EXEEXT_TRUE
 
636
LTLIBOBJS
 
637
LIBOBJS
 
638
BUNDLER
 
639
LIB_atexit
 
640
LIB_pthread_once
 
641
LIB_pthread_key_create
 
642
ENABLE_DOCS_FALSE
 
643
ENABLE_DOCS_TRUE
 
644
bundle_cmd
 
645
valgrind_cmd
 
646
LEXLIB
 
647
LEX_OUTPUT_ROOT
 
648
LEX
 
649
OTOOL64
 
650
OTOOL
 
651
LIPO
 
652
NMEDIT
 
653
DSYMUTIL
 
654
MANIFEST_TOOL
 
655
RANLIB
 
656
LN_S
 
657
NM
 
658
ac_ct_DUMPBIN
 
659
DUMPBIN
 
660
LD
 
661
FGREP
 
662
EGREP
 
663
GREP
 
664
SED
 
665
host_os
 
666
host_vendor
 
667
host_cpu
 
668
host
 
669
build_os
 
670
build_vendor
 
671
build_cpu
 
672
build
 
673
LIBTOOL
 
674
OBJDUMP
 
675
DLLTOOL
 
676
AS
 
677
YFLAGS
 
678
YACC
 
679
CPP
 
680
am__fastdepCC_FALSE
 
681
am__fastdepCC_TRUE
 
682
CCDEPMODE
 
683
am__nodep
 
684
AMDEPBACKSLASH
 
685
AMDEP_FALSE
 
686
AMDEP_TRUE
 
687
am__quote
 
688
am__include
 
689
DEPDIR
 
690
OBJEXT
 
691
EXEEXT
 
692
ac_ct_CC
 
693
CPPFLAGS
 
694
LDFLAGS
 
695
CFLAGS
 
696
CC
 
697
ac_ct_AR
 
698
AR
 
699
AM_BACKSLASH
 
700
AM_DEFAULT_VERBOSITY
 
701
AM_DEFAULT_V
 
702
AM_V
 
703
am__untar
 
704
am__tar
 
705
AMTAR
 
706
am__leading_dot
 
707
SET_MAKE
 
708
AWK
 
709
mkdir_p
 
710
MKDIR_P
 
711
INSTALL_STRIP_PROGRAM
 
712
STRIP
 
713
install_sh
 
714
MAKEINFO
 
715
AUTOHEADER
 
716
AUTOMAKE
 
717
AUTOCONF
 
718
ACLOCAL
 
719
VERSION
 
720
PACKAGE
 
721
CYGPATH_W
 
722
am__isrc
 
723
INSTALL_DATA
 
724
INSTALL_SCRIPT
 
725
INSTALL_PROGRAM
 
726
target_alias
 
727
host_alias
 
728
build_alias
 
729
LIBS
 
730
ECHO_T
 
731
ECHO_N
 
732
ECHO_C
 
733
DEFS
 
734
mandir
 
735
localedir
 
736
libdir
 
737
psdir
 
738
pdfdir
 
739
dvidir
 
740
htmldir
 
741
infodir
 
742
docdir
 
743
oldincludedir
 
744
includedir
 
745
localstatedir
 
746
sharedstatedir
 
747
sysconfdir
 
748
datadir
 
749
datarootdir
 
750
libexecdir
 
751
sbindir
 
752
bindir
 
753
program_transform_name
 
754
prefix
 
755
exec_prefix
 
756
PACKAGE_URL
 
757
PACKAGE_BUGREPORT
 
758
PACKAGE_STRING
 
759
PACKAGE_VERSION
 
760
PACKAGE_TARNAME
 
761
PACKAGE_NAME
 
762
PATH_SEPARATOR
 
763
SHELL'
 
764
ac_subst_files=''
 
765
ac_user_opts='
 
766
enable_option_checking
 
767
enable_silent_rules
 
768
enable_dependency_tracking
 
769
enable_shared
 
770
enable_static
 
771
with_pic
 
772
enable_fast_install
 
773
with_gnu_ld
 
774
with_sysroot
 
775
enable_libtool_lock
 
776
enable_docs
 
777
enable_pthread_tls
 
778
'
 
779
      ac_precious_vars='build_alias
 
780
host_alias
 
781
target_alias
 
782
CC
 
783
CFLAGS
 
784
LDFLAGS
 
785
LIBS
 
786
CPPFLAGS
 
787
CPP
 
788
YACC
 
789
YFLAGS'
 
790
 
 
791
 
 
792
# Initialize some variables set by options.
 
793
ac_init_help=
 
794
ac_init_version=false
 
795
ac_unrecognized_opts=
 
796
ac_unrecognized_sep=
 
797
# The variables have the same names as the options, with
 
798
# dashes changed to underlines.
 
799
cache_file=/dev/null
 
800
exec_prefix=NONE
 
801
no_create=
 
802
no_recursion=
 
803
prefix=NONE
 
804
program_prefix=NONE
 
805
program_suffix=NONE
 
806
program_transform_name=s,x,x,
 
807
silent=
 
808
site=
 
809
srcdir=
 
810
verbose=
 
811
x_includes=NONE
 
812
x_libraries=NONE
 
813
 
 
814
# Installation directory options.
 
815
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
816
# and all the variables that are supposed to be based on exec_prefix
 
817
# by default will actually change.
 
818
# Use braces instead of parens because sh, perl, etc. also accept them.
 
819
# (The list follows the same order as the GNU Coding Standards.)
 
820
bindir='${exec_prefix}/bin'
 
821
sbindir='${exec_prefix}/sbin'
 
822
libexecdir='${exec_prefix}/libexec'
 
823
datarootdir='${prefix}/share'
 
824
datadir='${datarootdir}'
 
825
sysconfdir='${prefix}/etc'
 
826
sharedstatedir='${prefix}/com'
 
827
localstatedir='${prefix}/var'
 
828
includedir='${prefix}/include'
 
829
oldincludedir='/usr/include'
 
830
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
831
infodir='${datarootdir}/info'
 
832
htmldir='${docdir}'
 
833
dvidir='${docdir}'
 
834
pdfdir='${docdir}'
 
835
psdir='${docdir}'
 
836
libdir='${exec_prefix}/lib'
 
837
localedir='${datarootdir}/locale'
 
838
mandir='${datarootdir}/man'
 
839
 
 
840
ac_prev=
 
841
ac_dashdash=
 
842
for ac_option
 
843
do
 
844
  # If the previous option needs an argument, assign it.
 
845
  if test -n "$ac_prev"; then
 
846
    eval $ac_prev=\$ac_option
 
847
    ac_prev=
 
848
    continue
 
849
  fi
 
850
 
 
851
  case $ac_option in
 
852
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
853
  *=)   ac_optarg= ;;
 
854
  *)    ac_optarg=yes ;;
 
855
  esac
 
856
 
 
857
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
858
 
 
859
  case $ac_dashdash$ac_option in
 
860
  --)
 
861
    ac_dashdash=yes ;;
 
862
 
 
863
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
864
    ac_prev=bindir ;;
 
865
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
866
    bindir=$ac_optarg ;;
 
867
 
 
868
  -build | --build | --buil | --bui | --bu)
 
869
    ac_prev=build_alias ;;
 
870
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
871
    build_alias=$ac_optarg ;;
 
872
 
 
873
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
874
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
875
    ac_prev=cache_file ;;
 
876
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
877
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
878
    cache_file=$ac_optarg ;;
 
879
 
 
880
  --config-cache | -C)
 
881
    cache_file=config.cache ;;
 
882
 
 
883
  -datadir | --datadir | --datadi | --datad)
 
884
    ac_prev=datadir ;;
 
885
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
886
    datadir=$ac_optarg ;;
 
887
 
 
888
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
889
  | --dataroo | --dataro | --datar)
 
890
    ac_prev=datarootdir ;;
 
891
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
892
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
893
    datarootdir=$ac_optarg ;;
 
894
 
 
895
  -disable-* | --disable-*)
 
896
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
897
    # Reject names that are not valid shell variable names.
 
898
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
899
      as_fn_error $? "invalid feature name: $ac_useropt"
 
900
    ac_useropt_orig=$ac_useropt
 
901
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
902
    case $ac_user_opts in
 
903
      *"
 
904
"enable_$ac_useropt"
 
905
"*) ;;
 
906
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
907
         ac_unrecognized_sep=', ';;
 
908
    esac
 
909
    eval enable_$ac_useropt=no ;;
 
910
 
 
911
  -docdir | --docdir | --docdi | --doc | --do)
 
912
    ac_prev=docdir ;;
 
913
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
914
    docdir=$ac_optarg ;;
 
915
 
 
916
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
917
    ac_prev=dvidir ;;
 
918
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
919
    dvidir=$ac_optarg ;;
 
920
 
 
921
  -enable-* | --enable-*)
 
922
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
923
    # Reject names that are not valid shell variable names.
 
924
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
925
      as_fn_error $? "invalid feature name: $ac_useropt"
 
926
    ac_useropt_orig=$ac_useropt
 
927
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
928
    case $ac_user_opts in
 
929
      *"
 
930
"enable_$ac_useropt"
 
931
"*) ;;
 
932
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
933
         ac_unrecognized_sep=', ';;
 
934
    esac
 
935
    eval enable_$ac_useropt=\$ac_optarg ;;
 
936
 
 
937
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
938
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
939
  | --exec | --exe | --ex)
 
940
    ac_prev=exec_prefix ;;
 
941
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
942
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
943
  | --exec=* | --exe=* | --ex=*)
 
944
    exec_prefix=$ac_optarg ;;
 
945
 
 
946
  -gas | --gas | --ga | --g)
 
947
    # Obsolete; use --with-gas.
 
948
    with_gas=yes ;;
 
949
 
 
950
  -help | --help | --hel | --he | -h)
 
951
    ac_init_help=long ;;
 
952
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
953
    ac_init_help=recursive ;;
 
954
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
955
    ac_init_help=short ;;
 
956
 
 
957
  -host | --host | --hos | --ho)
 
958
    ac_prev=host_alias ;;
 
959
  -host=* | --host=* | --hos=* | --ho=*)
 
960
    host_alias=$ac_optarg ;;
 
961
 
 
962
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
963
    ac_prev=htmldir ;;
 
964
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
965
  | --ht=*)
 
966
    htmldir=$ac_optarg ;;
 
967
 
 
968
  -includedir | --includedir | --includedi | --included | --include \
 
969
  | --includ | --inclu | --incl | --inc)
 
970
    ac_prev=includedir ;;
 
971
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
972
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
973
    includedir=$ac_optarg ;;
 
974
 
 
975
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
976
    ac_prev=infodir ;;
 
977
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
978
    infodir=$ac_optarg ;;
 
979
 
 
980
  -libdir | --libdir | --libdi | --libd)
 
981
    ac_prev=libdir ;;
 
982
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
983
    libdir=$ac_optarg ;;
 
984
 
 
985
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
986
  | --libexe | --libex | --libe)
 
987
    ac_prev=libexecdir ;;
 
988
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
989
  | --libexe=* | --libex=* | --libe=*)
 
990
    libexecdir=$ac_optarg ;;
 
991
 
 
992
  -localedir | --localedir | --localedi | --localed | --locale)
 
993
    ac_prev=localedir ;;
 
994
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
995
    localedir=$ac_optarg ;;
 
996
 
 
997
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
998
  | --localstate | --localstat | --localsta | --localst | --locals)
 
999
    ac_prev=localstatedir ;;
 
1000
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1001
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1002
    localstatedir=$ac_optarg ;;
 
1003
 
 
1004
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1005
    ac_prev=mandir ;;
 
1006
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1007
    mandir=$ac_optarg ;;
 
1008
 
 
1009
  -nfp | --nfp | --nf)
 
1010
    # Obsolete; use --without-fp.
 
1011
    with_fp=no ;;
 
1012
 
 
1013
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1014
  | --no-cr | --no-c | -n)
 
1015
    no_create=yes ;;
 
1016
 
 
1017
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1018
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1019
    no_recursion=yes ;;
 
1020
 
 
1021
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1022
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1023
  | --oldin | --oldi | --old | --ol | --o)
 
1024
    ac_prev=oldincludedir ;;
 
1025
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1026
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1027
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1028
    oldincludedir=$ac_optarg ;;
 
1029
 
 
1030
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1031
    ac_prev=prefix ;;
 
1032
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1033
    prefix=$ac_optarg ;;
 
1034
 
 
1035
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1036
  | --program-pre | --program-pr | --program-p)
 
1037
    ac_prev=program_prefix ;;
 
1038
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1039
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1040
    program_prefix=$ac_optarg ;;
 
1041
 
 
1042
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1043
  | --program-suf | --program-su | --program-s)
 
1044
    ac_prev=program_suffix ;;
 
1045
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1046
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1047
    program_suffix=$ac_optarg ;;
 
1048
 
 
1049
  -program-transform-name | --program-transform-name \
 
1050
  | --program-transform-nam | --program-transform-na \
 
1051
  | --program-transform-n | --program-transform- \
 
1052
  | --program-transform | --program-transfor \
 
1053
  | --program-transfo | --program-transf \
 
1054
  | --program-trans | --program-tran \
 
1055
  | --progr-tra | --program-tr | --program-t)
 
1056
    ac_prev=program_transform_name ;;
 
1057
  -program-transform-name=* | --program-transform-name=* \
 
1058
  | --program-transform-nam=* | --program-transform-na=* \
 
1059
  | --program-transform-n=* | --program-transform-=* \
 
1060
  | --program-transform=* | --program-transfor=* \
 
1061
  | --program-transfo=* | --program-transf=* \
 
1062
  | --program-trans=* | --program-tran=* \
 
1063
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1064
    program_transform_name=$ac_optarg ;;
 
1065
 
 
1066
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1067
    ac_prev=pdfdir ;;
 
1068
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1069
    pdfdir=$ac_optarg ;;
 
1070
 
 
1071
  -psdir | --psdir | --psdi | --psd | --ps)
 
1072
    ac_prev=psdir ;;
 
1073
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1074
    psdir=$ac_optarg ;;
 
1075
 
 
1076
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1077
  | -silent | --silent | --silen | --sile | --sil)
 
1078
    silent=yes ;;
 
1079
 
 
1080
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1081
    ac_prev=sbindir ;;
 
1082
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1083
  | --sbi=* | --sb=*)
 
1084
    sbindir=$ac_optarg ;;
 
1085
 
 
1086
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1087
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1088
  | --sharedst | --shareds | --shared | --share | --shar \
 
1089
  | --sha | --sh)
 
1090
    ac_prev=sharedstatedir ;;
 
1091
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1092
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1093
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1094
  | --sha=* | --sh=*)
 
1095
    sharedstatedir=$ac_optarg ;;
 
1096
 
 
1097
  -site | --site | --sit)
 
1098
    ac_prev=site ;;
 
1099
  -site=* | --site=* | --sit=*)
 
1100
    site=$ac_optarg ;;
 
1101
 
 
1102
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1103
    ac_prev=srcdir ;;
 
1104
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1105
    srcdir=$ac_optarg ;;
 
1106
 
 
1107
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1108
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1109
    ac_prev=sysconfdir ;;
 
1110
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1111
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1112
    sysconfdir=$ac_optarg ;;
 
1113
 
 
1114
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1115
    ac_prev=target_alias ;;
 
1116
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1117
    target_alias=$ac_optarg ;;
 
1118
 
 
1119
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1120
    verbose=yes ;;
 
1121
 
 
1122
  -version | --version | --versio | --versi | --vers | -V)
 
1123
    ac_init_version=: ;;
 
1124
 
 
1125
  -with-* | --with-*)
 
1126
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1127
    # Reject names that are not valid shell variable names.
 
1128
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1129
      as_fn_error $? "invalid package name: $ac_useropt"
 
1130
    ac_useropt_orig=$ac_useropt
 
1131
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1132
    case $ac_user_opts in
 
1133
      *"
 
1134
"with_$ac_useropt"
 
1135
"*) ;;
 
1136
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1137
         ac_unrecognized_sep=', ';;
 
1138
    esac
 
1139
    eval with_$ac_useropt=\$ac_optarg ;;
 
1140
 
 
1141
  -without-* | --without-*)
 
1142
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1143
    # Reject names that are not valid shell variable names.
 
1144
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1145
      as_fn_error $? "invalid package name: $ac_useropt"
 
1146
    ac_useropt_orig=$ac_useropt
 
1147
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1148
    case $ac_user_opts in
 
1149
      *"
 
1150
"with_$ac_useropt"
 
1151
"*) ;;
 
1152
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1153
         ac_unrecognized_sep=', ';;
 
1154
    esac
 
1155
    eval with_$ac_useropt=no ;;
 
1156
 
 
1157
  --x)
 
1158
    # Obsolete; use --with-x.
 
1159
    with_x=yes ;;
 
1160
 
 
1161
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1162
  | --x-incl | --x-inc | --x-in | --x-i)
 
1163
    ac_prev=x_includes ;;
 
1164
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1165
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1166
    x_includes=$ac_optarg ;;
 
1167
 
 
1168
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1169
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1170
    ac_prev=x_libraries ;;
 
1171
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1172
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1173
    x_libraries=$ac_optarg ;;
 
1174
 
 
1175
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1176
Try \`$0 --help' for more information"
 
1177
    ;;
 
1178
 
 
1179
  *=*)
 
1180
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1181
    # Reject names that are not valid shell variable names.
 
1182
    case $ac_envvar in #(
 
1183
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1184
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1185
    esac
 
1186
    eval $ac_envvar=\$ac_optarg
 
1187
    export $ac_envvar ;;
 
1188
 
 
1189
  *)
 
1190
    # FIXME: should be removed in autoconf 3.0.
 
1191
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1192
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1193
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1194
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1195
    ;;
 
1196
 
 
1197
  esac
 
1198
done
 
1199
 
 
1200
if test -n "$ac_prev"; then
 
1201
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1202
  as_fn_error $? "missing argument to $ac_option"
 
1203
fi
 
1204
 
 
1205
if test -n "$ac_unrecognized_opts"; then
 
1206
  case $enable_option_checking in
 
1207
    no) ;;
 
1208
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1209
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1210
  esac
 
1211
fi
 
1212
 
 
1213
# Check all directory arguments for consistency.
 
1214
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1215
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1216
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1217
                libdir localedir mandir
 
1218
do
 
1219
  eval ac_val=\$$ac_var
 
1220
  # Remove trailing slashes.
 
1221
  case $ac_val in
 
1222
    */ )
 
1223
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1224
      eval $ac_var=\$ac_val;;
 
1225
  esac
 
1226
  # Be sure to have absolute directory names.
 
1227
  case $ac_val in
 
1228
    [\\/$]* | ?:[\\/]* )  continue;;
 
1229
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1230
  esac
 
1231
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1232
done
 
1233
 
 
1234
# There might be people who depend on the old broken behavior: `$host'
 
1235
# used to hold the argument of --host etc.
 
1236
# FIXME: To remove some day.
 
1237
build=$build_alias
 
1238
host=$host_alias
 
1239
target=$target_alias
 
1240
 
 
1241
# FIXME: To remove some day.
 
1242
if test "x$host_alias" != x; then
 
1243
  if test "x$build_alias" = x; then
 
1244
    cross_compiling=maybe
 
1245
  elif test "x$build_alias" != "x$host_alias"; then
 
1246
    cross_compiling=yes
 
1247
  fi
 
1248
fi
 
1249
 
 
1250
ac_tool_prefix=
 
1251
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1252
 
 
1253
test "$silent" = yes && exec 6>/dev/null
 
1254
 
 
1255
 
 
1256
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1257
ac_ls_di=`ls -di .` &&
 
1258
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1259
  as_fn_error $? "working directory cannot be determined"
 
1260
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1261
  as_fn_error $? "pwd does not report name of working directory"
 
1262
 
 
1263
 
 
1264
# Find the source files, if location was not specified.
 
1265
if test -z "$srcdir"; then
 
1266
  ac_srcdir_defaulted=yes
 
1267
  # Try the directory containing this script, then the parent directory.
 
1268
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1269
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1270
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1271
         X"$as_myself" : 'X\(//\)$' \| \
 
1272
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1273
$as_echo X"$as_myself" |
 
1274
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1275
            s//\1/
 
1276
            q
 
1277
          }
 
1278
          /^X\(\/\/\)[^/].*/{
 
1279
            s//\1/
 
1280
            q
 
1281
          }
 
1282
          /^X\(\/\/\)$/{
 
1283
            s//\1/
 
1284
            q
 
1285
          }
 
1286
          /^X\(\/\).*/{
 
1287
            s//\1/
 
1288
            q
 
1289
          }
 
1290
          s/.*/./; q'`
 
1291
  srcdir=$ac_confdir
 
1292
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1293
    srcdir=..
 
1294
  fi
 
1295
else
 
1296
  ac_srcdir_defaulted=no
 
1297
fi
 
1298
if test ! -r "$srcdir/$ac_unique_file"; then
 
1299
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1300
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1301
fi
 
1302
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1303
ac_abs_confdir=`(
 
1304
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1305
        pwd)`
 
1306
# When building in place, set srcdir=.
 
1307
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1308
  srcdir=.
 
1309
fi
 
1310
# Remove unnecessary trailing slashes from srcdir.
 
1311
# Double slashes in file names in object file debugging info
 
1312
# mess up M-x gdb in Emacs.
 
1313
case $srcdir in
 
1314
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1315
esac
 
1316
for ac_var in $ac_precious_vars; do
 
1317
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1318
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1319
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1320
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1321
done
 
1322
 
 
1323
#
 
1324
# Report the --help message.
 
1325
#
 
1326
if test "$ac_init_help" = "long"; then
 
1327
  # Omit some internal or obsolete options to make the list less imposing.
 
1328
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1329
  cat <<_ACEOF
 
1330
\`configure' configures jq 1.4 to adapt to many kinds of systems.
 
1331
 
 
1332
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1333
 
 
1334
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1335
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1336
 
 
1337
Defaults for the options are specified in brackets.
 
1338
 
 
1339
Configuration:
 
1340
  -h, --help              display this help and exit
 
1341
      --help=short        display options specific to this package
 
1342
      --help=recursive    display the short help of all the included packages
 
1343
  -V, --version           display version information and exit
 
1344
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1345
      --cache-file=FILE   cache test results in FILE [disabled]
 
1346
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1347
  -n, --no-create         do not create output files
 
1348
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1349
 
 
1350
Installation directories:
 
1351
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1352
                          [$ac_default_prefix]
 
1353
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1354
                          [PREFIX]
 
1355
 
 
1356
By default, \`make install' will install all the files in
 
1357
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1358
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1359
for instance \`--prefix=\$HOME'.
 
1360
 
 
1361
For better control, use the options below.
 
1362
 
 
1363
Fine tuning of the installation directories:
 
1364
  --bindir=DIR            user executables [EPREFIX/bin]
 
1365
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1366
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1367
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1368
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1369
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1370
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1371
  --includedir=DIR        C header files [PREFIX/include]
 
1372
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1373
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1374
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1375
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1376
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1377
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1378
  --docdir=DIR            documentation root [DATAROOTDIR/doc/jq]
 
1379
  --htmldir=DIR           html documentation [DOCDIR]
 
1380
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1381
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1382
  --psdir=DIR             ps documentation [DOCDIR]
 
1383
_ACEOF
 
1384
 
 
1385
  cat <<\_ACEOF
 
1386
 
 
1387
Program names:
 
1388
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1389
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1390
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1391
 
 
1392
System types:
 
1393
  --build=BUILD     configure for building on BUILD [guessed]
 
1394
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1395
_ACEOF
 
1396
fi
 
1397
 
 
1398
if test -n "$ac_init_help"; then
 
1399
  case $ac_init_help in
 
1400
     short | recursive ) echo "Configuration of jq 1.4:";;
 
1401
   esac
 
1402
  cat <<\_ACEOF
 
1403
 
 
1404
Optional Features:
 
1405
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1406
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1407
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1408
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1409
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1410
  --enable-dependency-tracking
 
1411
                          do not reject slow dependency extractors
 
1412
  --disable-dependency-tracking
 
1413
                          speeds up one-time build
 
1414
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1415
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1416
  --enable-fast-install[=PKGS]
 
1417
                          optimize for fast installation [default=yes]
 
1418
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1419
  --disable-docs          don't build docs
 
1420
  --enable-pthread-tls    Enable use of pthread thread local storage
 
1421
 
 
1422
Optional Packages:
 
1423
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1424
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1425
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1426
                          both]
 
1427
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1428
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1429
                        (or the compiler's sysroot if not specified).
 
1430
 
 
1431
Some influential environment variables:
 
1432
  CC          C compiler command
 
1433
  CFLAGS      C compiler flags
 
1434
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1435
              nonstandard directory <lib dir>
 
1436
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1437
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1438
              you have headers in a nonstandard directory <include dir>
 
1439
  CPP         C preprocessor
 
1440
  YACC        The `Yet Another Compiler Compiler' implementation to use.
 
1441
              Defaults to the first program found out of: `bison -y', `byacc',
 
1442
              `yacc'.
 
1443
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1444
              This script will default YFLAGS to the empty string to avoid a
 
1445
              default value of `-d' given by some make applications.
 
1446
 
 
1447
Use these variables to override the choices made by `configure' or to help
 
1448
it to find libraries and programs with nonstandard names/locations.
 
1449
 
 
1450
Report bugs to <mu@netsoc.tcd.ie>.
 
1451
jq home page: <http://stedolan.github.com/jq/>.
 
1452
_ACEOF
 
1453
ac_status=$?
 
1454
fi
 
1455
 
 
1456
if test "$ac_init_help" = "recursive"; then
 
1457
  # If there are subdirs, report their specific --help.
 
1458
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1459
    test -d "$ac_dir" ||
 
1460
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1461
      continue
 
1462
    ac_builddir=.
 
1463
 
 
1464
case "$ac_dir" in
 
1465
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1466
*)
 
1467
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1468
  # A ".." for each directory in $ac_dir_suffix.
 
1469
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1470
  case $ac_top_builddir_sub in
 
1471
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1472
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1473
  esac ;;
 
1474
esac
 
1475
ac_abs_top_builddir=$ac_pwd
 
1476
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1477
# for backward compatibility:
 
1478
ac_top_builddir=$ac_top_build_prefix
 
1479
 
 
1480
case $srcdir in
 
1481
  .)  # We are building in place.
 
1482
    ac_srcdir=.
 
1483
    ac_top_srcdir=$ac_top_builddir_sub
 
1484
    ac_abs_top_srcdir=$ac_pwd ;;
 
1485
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1486
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1487
    ac_top_srcdir=$srcdir
 
1488
    ac_abs_top_srcdir=$srcdir ;;
 
1489
  *) # Relative name.
 
1490
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1491
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1492
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1493
esac
 
1494
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1495
 
 
1496
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1497
    # Check for guested configure.
 
1498
    if test -f "$ac_srcdir/configure.gnu"; then
 
1499
      echo &&
 
1500
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1501
    elif test -f "$ac_srcdir/configure"; then
 
1502
      echo &&
 
1503
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1504
    else
 
1505
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1506
    fi || ac_status=$?
 
1507
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1508
  done
 
1509
fi
 
1510
 
 
1511
test -n "$ac_init_help" && exit $ac_status
 
1512
if $ac_init_version; then
 
1513
  cat <<\_ACEOF
 
1514
jq configure 1.4
 
1515
generated by GNU Autoconf 2.69
 
1516
 
 
1517
Copyright (C) 2012 Free Software Foundation, Inc.
 
1518
This configure script is free software; the Free Software Foundation
 
1519
gives unlimited permission to copy, distribute and modify it.
 
1520
_ACEOF
 
1521
  exit
 
1522
fi
 
1523
 
 
1524
## ------------------------ ##
 
1525
## Autoconf initialization. ##
 
1526
## ------------------------ ##
 
1527
 
 
1528
# ac_fn_c_try_compile LINENO
 
1529
# --------------------------
 
1530
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1531
ac_fn_c_try_compile ()
 
1532
{
 
1533
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1534
  rm -f conftest.$ac_objext
 
1535
  if { { ac_try="$ac_compile"
 
1536
case "(($ac_try" in
 
1537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1538
  *) ac_try_echo=$ac_try;;
 
1539
esac
 
1540
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1541
$as_echo "$ac_try_echo"; } >&5
 
1542
  (eval "$ac_compile") 2>conftest.err
 
1543
  ac_status=$?
 
1544
  if test -s conftest.err; then
 
1545
    grep -v '^ *+' conftest.err >conftest.er1
 
1546
    cat conftest.er1 >&5
 
1547
    mv -f conftest.er1 conftest.err
 
1548
  fi
 
1549
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1550
  test $ac_status = 0; } && {
 
1551
         test -z "$ac_c_werror_flag" ||
 
1552
         test ! -s conftest.err
 
1553
       } && test -s conftest.$ac_objext; then :
 
1554
  ac_retval=0
 
1555
else
 
1556
  $as_echo "$as_me: failed program was:" >&5
 
1557
sed 's/^/| /' conftest.$ac_ext >&5
 
1558
 
 
1559
        ac_retval=1
 
1560
fi
 
1561
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1562
  as_fn_set_status $ac_retval
 
1563
 
 
1564
} # ac_fn_c_try_compile
 
1565
 
 
1566
# ac_fn_c_try_cpp LINENO
 
1567
# ----------------------
 
1568
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1569
ac_fn_c_try_cpp ()
 
1570
{
 
1571
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1572
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1573
case "(($ac_try" in
 
1574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1575
  *) ac_try_echo=$ac_try;;
 
1576
esac
 
1577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1578
$as_echo "$ac_try_echo"; } >&5
 
1579
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1580
  ac_status=$?
 
1581
  if test -s conftest.err; then
 
1582
    grep -v '^ *+' conftest.err >conftest.er1
 
1583
    cat conftest.er1 >&5
 
1584
    mv -f conftest.er1 conftest.err
 
1585
  fi
 
1586
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1587
  test $ac_status = 0; } > conftest.i && {
 
1588
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1589
         test ! -s conftest.err
 
1590
       }; then :
 
1591
  ac_retval=0
 
1592
else
 
1593
  $as_echo "$as_me: failed program was:" >&5
 
1594
sed 's/^/| /' conftest.$ac_ext >&5
 
1595
 
 
1596
    ac_retval=1
 
1597
fi
 
1598
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1599
  as_fn_set_status $ac_retval
 
1600
 
 
1601
} # ac_fn_c_try_cpp
 
1602
 
 
1603
# ac_fn_c_try_link LINENO
 
1604
# -----------------------
 
1605
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1606
ac_fn_c_try_link ()
 
1607
{
 
1608
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1609
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1610
  if { { ac_try="$ac_link"
 
1611
case "(($ac_try" in
 
1612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1613
  *) ac_try_echo=$ac_try;;
 
1614
esac
 
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1616
$as_echo "$ac_try_echo"; } >&5
 
1617
  (eval "$ac_link") 2>conftest.err
 
1618
  ac_status=$?
 
1619
  if test -s conftest.err; then
 
1620
    grep -v '^ *+' conftest.err >conftest.er1
 
1621
    cat conftest.er1 >&5
 
1622
    mv -f conftest.er1 conftest.err
 
1623
  fi
 
1624
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1625
  test $ac_status = 0; } && {
 
1626
         test -z "$ac_c_werror_flag" ||
 
1627
         test ! -s conftest.err
 
1628
       } && test -s conftest$ac_exeext && {
 
1629
         test "$cross_compiling" = yes ||
 
1630
         test -x conftest$ac_exeext
 
1631
       }; then :
 
1632
  ac_retval=0
 
1633
else
 
1634
  $as_echo "$as_me: failed program was:" >&5
 
1635
sed 's/^/| /' conftest.$ac_ext >&5
 
1636
 
 
1637
        ac_retval=1
 
1638
fi
 
1639
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1640
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1641
  # interfere with the next link command; also delete a directory that is
 
1642
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1643
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1644
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1645
  as_fn_set_status $ac_retval
 
1646
 
 
1647
} # ac_fn_c_try_link
 
1648
 
 
1649
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1650
# -------------------------------------------------------
 
1651
# Tests whether HEADER exists and can be compiled using the include files in
 
1652
# INCLUDES, setting the cache variable VAR accordingly.
 
1653
ac_fn_c_check_header_compile ()
 
1654
{
 
1655
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1656
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1657
$as_echo_n "checking for $2... " >&6; }
 
1658
if eval \${$3+:} false; then :
 
1659
  $as_echo_n "(cached) " >&6
 
1660
else
 
1661
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1662
/* end confdefs.h.  */
 
1663
$4
 
1664
#include <$2>
 
1665
_ACEOF
 
1666
if ac_fn_c_try_compile "$LINENO"; then :
 
1667
  eval "$3=yes"
 
1668
else
 
1669
  eval "$3=no"
 
1670
fi
 
1671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1672
fi
 
1673
eval ac_res=\$$3
 
1674
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1675
$as_echo "$ac_res" >&6; }
 
1676
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1677
 
 
1678
} # ac_fn_c_check_header_compile
 
1679
 
 
1680
# ac_fn_c_try_run LINENO
 
1681
# ----------------------
 
1682
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1683
# that executables *can* be run.
 
1684
ac_fn_c_try_run ()
 
1685
{
 
1686
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1687
  if { { ac_try="$ac_link"
 
1688
case "(($ac_try" in
 
1689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1690
  *) ac_try_echo=$ac_try;;
 
1691
esac
 
1692
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1693
$as_echo "$ac_try_echo"; } >&5
 
1694
  (eval "$ac_link") 2>&5
 
1695
  ac_status=$?
 
1696
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1697
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1698
  { { case "(($ac_try" in
 
1699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1700
  *) ac_try_echo=$ac_try;;
 
1701
esac
 
1702
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1703
$as_echo "$ac_try_echo"; } >&5
 
1704
  (eval "$ac_try") 2>&5
 
1705
  ac_status=$?
 
1706
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1707
  test $ac_status = 0; }; }; then :
 
1708
  ac_retval=0
 
1709
else
 
1710
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1711
       $as_echo "$as_me: failed program was:" >&5
 
1712
sed 's/^/| /' conftest.$ac_ext >&5
 
1713
 
 
1714
       ac_retval=$ac_status
 
1715
fi
 
1716
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1717
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1718
  as_fn_set_status $ac_retval
 
1719
 
 
1720
} # ac_fn_c_try_run
 
1721
 
 
1722
# ac_fn_c_check_func LINENO FUNC VAR
 
1723
# ----------------------------------
 
1724
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1725
ac_fn_c_check_func ()
 
1726
{
 
1727
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1729
$as_echo_n "checking for $2... " >&6; }
 
1730
if eval \${$3+:} false; then :
 
1731
  $as_echo_n "(cached) " >&6
 
1732
else
 
1733
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1734
/* end confdefs.h.  */
 
1735
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1736
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1737
#define $2 innocuous_$2
 
1738
 
 
1739
/* System header to define __stub macros and hopefully few prototypes,
 
1740
    which can conflict with char $2 (); below.
 
1741
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1742
    <limits.h> exists even on freestanding compilers.  */
 
1743
 
 
1744
#ifdef __STDC__
 
1745
# include <limits.h>
 
1746
#else
 
1747
# include <assert.h>
 
1748
#endif
 
1749
 
 
1750
#undef $2
 
1751
 
 
1752
/* Override any GCC internal prototype to avoid an error.
 
1753
   Use char because int might match the return type of a GCC
 
1754
   builtin and then its argument prototype would still apply.  */
 
1755
#ifdef __cplusplus
 
1756
extern "C"
 
1757
#endif
 
1758
char $2 ();
 
1759
/* The GNU C library defines this for functions which it implements
 
1760
    to always fail with ENOSYS.  Some functions are actually named
 
1761
    something starting with __ and the normal name is an alias.  */
 
1762
#if defined __stub_$2 || defined __stub___$2
 
1763
choke me
 
1764
#endif
 
1765
 
 
1766
int
 
1767
main ()
 
1768
{
 
1769
return $2 ();
 
1770
  ;
 
1771
  return 0;
 
1772
}
 
1773
_ACEOF
 
1774
if ac_fn_c_try_link "$LINENO"; then :
 
1775
  eval "$3=yes"
 
1776
else
 
1777
  eval "$3=no"
 
1778
fi
 
1779
rm -f core conftest.err conftest.$ac_objext \
 
1780
    conftest$ac_exeext conftest.$ac_ext
 
1781
fi
 
1782
eval ac_res=\$$3
 
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1784
$as_echo "$ac_res" >&6; }
 
1785
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1786
 
 
1787
} # ac_fn_c_check_func
 
1788
cat >config.log <<_ACEOF
 
1789
This file contains any messages produced by compilers while
 
1790
running configure, to aid debugging if configure makes a mistake.
 
1791
 
 
1792
It was created by jq $as_me 1.4, which was
 
1793
generated by GNU Autoconf 2.69.  Invocation command line was
 
1794
 
 
1795
  $ $0 $@
 
1796
 
 
1797
_ACEOF
 
1798
exec 5>>config.log
 
1799
{
 
1800
cat <<_ASUNAME
 
1801
## --------- ##
 
1802
## Platform. ##
 
1803
## --------- ##
 
1804
 
 
1805
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1806
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1807
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1808
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1809
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1810
 
 
1811
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1812
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1813
 
 
1814
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1815
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1816
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1817
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1818
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1819
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1820
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1821
 
 
1822
_ASUNAME
 
1823
 
 
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1825
for as_dir in $PATH
 
1826
do
 
1827
  IFS=$as_save_IFS
 
1828
  test -z "$as_dir" && as_dir=.
 
1829
    $as_echo "PATH: $as_dir"
 
1830
  done
 
1831
IFS=$as_save_IFS
 
1832
 
 
1833
} >&5
 
1834
 
 
1835
cat >&5 <<_ACEOF
 
1836
 
 
1837
 
 
1838
## ----------- ##
 
1839
## Core tests. ##
 
1840
## ----------- ##
 
1841
 
 
1842
_ACEOF
 
1843
 
 
1844
 
 
1845
# Keep a trace of the command line.
 
1846
# Strip out --no-create and --no-recursion so they do not pile up.
 
1847
# Strip out --silent because we don't want to record it for future runs.
 
1848
# Also quote any args containing shell meta-characters.
 
1849
# Make two passes to allow for proper duplicate-argument suppression.
 
1850
ac_configure_args=
 
1851
ac_configure_args0=
 
1852
ac_configure_args1=
 
1853
ac_must_keep_next=false
 
1854
for ac_pass in 1 2
 
1855
do
 
1856
  for ac_arg
 
1857
  do
 
1858
    case $ac_arg in
 
1859
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1860
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1861
    | -silent | --silent | --silen | --sile | --sil)
 
1862
      continue ;;
 
1863
    *\'*)
 
1864
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1865
    esac
 
1866
    case $ac_pass in
 
1867
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1868
    2)
 
1869
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1870
      if test $ac_must_keep_next = true; then
 
1871
        ac_must_keep_next=false # Got value, back to normal.
 
1872
      else
 
1873
        case $ac_arg in
 
1874
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1875
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1876
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1877
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1878
            case "$ac_configure_args0 " in
 
1879
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1880
            esac
 
1881
            ;;
 
1882
          -* ) ac_must_keep_next=true ;;
 
1883
        esac
 
1884
      fi
 
1885
      as_fn_append ac_configure_args " '$ac_arg'"
 
1886
      ;;
 
1887
    esac
 
1888
  done
 
1889
done
 
1890
{ ac_configure_args0=; unset ac_configure_args0;}
 
1891
{ ac_configure_args1=; unset ac_configure_args1;}
 
1892
 
 
1893
# When interrupted or exit'd, cleanup temporary files, and complete
 
1894
# config.log.  We remove comments because anyway the quotes in there
 
1895
# would cause problems or look ugly.
 
1896
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1897
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1898
trap 'exit_status=$?
 
1899
  # Save into config.log some information that might help in debugging.
 
1900
  {
 
1901
    echo
 
1902
 
 
1903
    $as_echo "## ---------------- ##
 
1904
## Cache variables. ##
 
1905
## ---------------- ##"
 
1906
    echo
 
1907
    # The following way of writing the cache mishandles newlines in values,
 
1908
(
 
1909
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1910
    eval ac_val=\$$ac_var
 
1911
    case $ac_val in #(
 
1912
    *${as_nl}*)
 
1913
      case $ac_var in #(
 
1914
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1915
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1916
      esac
 
1917
      case $ac_var in #(
 
1918
      _ | IFS | as_nl) ;; #(
 
1919
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1920
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1921
      esac ;;
 
1922
    esac
 
1923
  done
 
1924
  (set) 2>&1 |
 
1925
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1926
    *${as_nl}ac_space=\ *)
 
1927
      sed -n \
 
1928
        "s/'\''/'\''\\\\'\'''\''/g;
 
1929
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1930
      ;; #(
 
1931
    *)
 
1932
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1933
      ;;
 
1934
    esac |
 
1935
    sort
 
1936
)
 
1937
    echo
 
1938
 
 
1939
    $as_echo "## ----------------- ##
 
1940
## Output variables. ##
 
1941
## ----------------- ##"
 
1942
    echo
 
1943
    for ac_var in $ac_subst_vars
 
1944
    do
 
1945
      eval ac_val=\$$ac_var
 
1946
      case $ac_val in
 
1947
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1948
      esac
 
1949
      $as_echo "$ac_var='\''$ac_val'\''"
 
1950
    done | sort
 
1951
    echo
 
1952
 
 
1953
    if test -n "$ac_subst_files"; then
 
1954
      $as_echo "## ------------------- ##
 
1955
## File substitutions. ##
 
1956
## ------------------- ##"
 
1957
      echo
 
1958
      for ac_var in $ac_subst_files
 
1959
      do
 
1960
        eval ac_val=\$$ac_var
 
1961
        case $ac_val in
 
1962
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1963
        esac
 
1964
        $as_echo "$ac_var='\''$ac_val'\''"
 
1965
      done | sort
 
1966
      echo
 
1967
    fi
 
1968
 
 
1969
    if test -s confdefs.h; then
 
1970
      $as_echo "## ----------- ##
 
1971
## confdefs.h. ##
 
1972
## ----------- ##"
 
1973
      echo
 
1974
      cat confdefs.h
 
1975
      echo
 
1976
    fi
 
1977
    test "$ac_signal" != 0 &&
 
1978
      $as_echo "$as_me: caught signal $ac_signal"
 
1979
    $as_echo "$as_me: exit $exit_status"
 
1980
  } >&5
 
1981
  rm -f core *.core core.conftest.* &&
 
1982
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1983
    exit $exit_status
 
1984
' 0
 
1985
for ac_signal in 1 2 13 15; do
 
1986
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1987
done
 
1988
ac_signal=0
 
1989
 
 
1990
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1991
rm -f -r conftest* confdefs.h
 
1992
 
 
1993
$as_echo "/* confdefs.h */" > confdefs.h
 
1994
 
 
1995
# Predefined preprocessor variables.
 
1996
 
 
1997
cat >>confdefs.h <<_ACEOF
 
1998
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1999
_ACEOF
 
2000
 
 
2001
cat >>confdefs.h <<_ACEOF
 
2002
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2003
_ACEOF
 
2004
 
 
2005
cat >>confdefs.h <<_ACEOF
 
2006
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2007
_ACEOF
 
2008
 
 
2009
cat >>confdefs.h <<_ACEOF
 
2010
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2011
_ACEOF
 
2012
 
 
2013
cat >>confdefs.h <<_ACEOF
 
2014
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2015
_ACEOF
 
2016
 
 
2017
cat >>confdefs.h <<_ACEOF
 
2018
#define PACKAGE_URL "$PACKAGE_URL"
 
2019
_ACEOF
 
2020
 
 
2021
 
 
2022
# Let the site file select an alternate cache file if it wants to.
 
2023
# Prefer an explicitly selected file to automatically selected ones.
 
2024
ac_site_file1=NONE
 
2025
ac_site_file2=NONE
 
2026
if test -n "$CONFIG_SITE"; then
 
2027
  # We do not want a PATH search for config.site.
 
2028
  case $CONFIG_SITE in #((
 
2029
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2030
    */*) ac_site_file1=$CONFIG_SITE;;
 
2031
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2032
  esac
 
2033
elif test "x$prefix" != xNONE; then
 
2034
  ac_site_file1=$prefix/share/config.site
 
2035
  ac_site_file2=$prefix/etc/config.site
 
2036
else
 
2037
  ac_site_file1=$ac_default_prefix/share/config.site
 
2038
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2039
fi
 
2040
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2041
do
 
2042
  test "x$ac_site_file" = xNONE && continue
 
2043
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2044
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2045
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2046
    sed 's/^/| /' "$ac_site_file" >&5
 
2047
    . "$ac_site_file" \
 
2048
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2049
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2050
as_fn_error $? "failed to load site script $ac_site_file
 
2051
See \`config.log' for more details" "$LINENO" 5; }
 
2052
  fi
 
2053
done
 
2054
 
 
2055
if test -r "$cache_file"; then
 
2056
  # Some versions of bash will fail to source /dev/null (special files
 
2057
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2058
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2059
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2060
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2061
    case $cache_file in
 
2062
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2063
      *)                      . "./$cache_file";;
 
2064
    esac
 
2065
  fi
 
2066
else
 
2067
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2068
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2069
  >$cache_file
 
2070
fi
 
2071
 
 
2072
# Check that the precious variables saved in the cache have kept the same
 
2073
# value.
 
2074
ac_cache_corrupted=false
 
2075
for ac_var in $ac_precious_vars; do
 
2076
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2077
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2078
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2079
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2080
  case $ac_old_set,$ac_new_set in
 
2081
    set,)
 
2082
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2083
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2084
      ac_cache_corrupted=: ;;
 
2085
    ,set)
 
2086
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2087
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2088
      ac_cache_corrupted=: ;;
 
2089
    ,);;
 
2090
    *)
 
2091
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2092
        # differences in whitespace do not lead to failure.
 
2093
        ac_old_val_w=`echo x $ac_old_val`
 
2094
        ac_new_val_w=`echo x $ac_new_val`
 
2095
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2096
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2097
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2098
          ac_cache_corrupted=:
 
2099
        else
 
2100
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2101
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2102
          eval $ac_var=\$ac_old_val
 
2103
        fi
 
2104
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2105
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2106
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2107
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2108
      fi;;
 
2109
  esac
 
2110
  # Pass precious variables to config.status.
 
2111
  if test "$ac_new_set" = set; then
 
2112
    case $ac_new_val in
 
2113
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2114
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2115
    esac
 
2116
    case " $ac_configure_args " in
 
2117
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2118
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2119
    esac
 
2120
  fi
 
2121
done
 
2122
if $ac_cache_corrupted; then
 
2123
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2124
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2125
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2126
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2127
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2128
fi
 
2129
## -------------------- ##
 
2130
## Main body of script. ##
 
2131
## -------------------- ##
 
2132
 
 
2133
ac_ext=c
 
2134
ac_cpp='$CPP $CPPFLAGS'
 
2135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2138
 
 
2139
 
 
2140
 
 
2141
 
 
2142
ac_aux_dir=
 
2143
for ac_dir in config "$srcdir"/config; do
 
2144
  if test -f "$ac_dir/install-sh"; then
 
2145
    ac_aux_dir=$ac_dir
 
2146
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2147
    break
 
2148
  elif test -f "$ac_dir/install.sh"; then
 
2149
    ac_aux_dir=$ac_dir
 
2150
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2151
    break
 
2152
  elif test -f "$ac_dir/shtool"; then
 
2153
    ac_aux_dir=$ac_dir
 
2154
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2155
    break
 
2156
  fi
 
2157
done
 
2158
if test -z "$ac_aux_dir"; then
 
2159
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 
2160
fi
 
2161
 
 
2162
# These three variables are undocumented and unsupported,
 
2163
# and are intended to be withdrawn in a future Autoconf release.
 
2164
# They can cause serious problems if a builder's source tree is in a directory
 
2165
# whose full name contains unusual characters.
 
2166
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2167
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2168
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2169
 
 
2170
 
 
2171
am__api_version='1.14'
 
2172
 
 
2173
# Find a good install program.  We prefer a C program (faster),
 
2174
# so one script is as good as another.  But avoid the broken or
 
2175
# incompatible versions:
 
2176
# SysV /etc/install, /usr/sbin/install
 
2177
# SunOS /usr/etc/install
 
2178
# IRIX /sbin/install
 
2179
# AIX /bin/install
 
2180
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2181
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2182
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2183
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2184
# OS/2's system install, which has a completely different semantic
 
2185
# ./install, which can be erroneously created by make from ./install.sh.
 
2186
# Reject install programs that cannot install multiple files.
 
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2188
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2189
if test -z "$INSTALL"; then
 
2190
if ${ac_cv_path_install+:} false; then :
 
2191
  $as_echo_n "(cached) " >&6
 
2192
else
 
2193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2194
for as_dir in $PATH
 
2195
do
 
2196
  IFS=$as_save_IFS
 
2197
  test -z "$as_dir" && as_dir=.
 
2198
    # Account for people who put trailing slashes in PATH elements.
 
2199
case $as_dir/ in #((
 
2200
  ./ | .// | /[cC]/* | \
 
2201
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2202
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2203
  /usr/ucb/* ) ;;
 
2204
  *)
 
2205
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2206
    # Don't use installbsd from OSF since it installs stuff as root
 
2207
    # by default.
 
2208
    for ac_prog in ginstall scoinst install; do
 
2209
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2210
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2211
          if test $ac_prog = install &&
 
2212
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2213
            # AIX install.  It has an incompatible calling convention.
 
2214
            :
 
2215
          elif test $ac_prog = install &&
 
2216
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2217
            # program-specific install script used by HP pwplus--don't use.
 
2218
            :
 
2219
          else
 
2220
            rm -rf conftest.one conftest.two conftest.dir
 
2221
            echo one > conftest.one
 
2222
            echo two > conftest.two
 
2223
            mkdir conftest.dir
 
2224
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2225
              test -s conftest.one && test -s conftest.two &&
 
2226
              test -s conftest.dir/conftest.one &&
 
2227
              test -s conftest.dir/conftest.two
 
2228
            then
 
2229
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2230
              break 3
 
2231
            fi
 
2232
          fi
 
2233
        fi
 
2234
      done
 
2235
    done
 
2236
    ;;
 
2237
esac
 
2238
 
 
2239
  done
 
2240
IFS=$as_save_IFS
 
2241
 
 
2242
rm -rf conftest.one conftest.two conftest.dir
 
2243
 
 
2244
fi
 
2245
  if test "${ac_cv_path_install+set}" = set; then
 
2246
    INSTALL=$ac_cv_path_install
 
2247
  else
 
2248
    # As a last resort, use the slow shell script.  Don't cache a
 
2249
    # value for INSTALL within a source directory, because that will
 
2250
    # break other packages using the cache if that directory is
 
2251
    # removed, or if the value is a relative name.
 
2252
    INSTALL=$ac_install_sh
 
2253
  fi
 
2254
fi
 
2255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2256
$as_echo "$INSTALL" >&6; }
 
2257
 
 
2258
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2259
# It thinks the first close brace ends the variable substitution.
 
2260
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2261
 
 
2262
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2263
 
 
2264
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2265
 
 
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2267
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2268
# Reject unsafe characters in $srcdir or the absolute working directory
 
2269
# name.  Accept space and tab only in the latter.
 
2270
am_lf='
 
2271
'
 
2272
case `pwd` in
 
2273
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2274
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2275
esac
 
2276
case $srcdir in
 
2277
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2278
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2279
esac
 
2280
 
 
2281
# Do 'set' in a subshell so we don't clobber the current shell's
 
2282
# arguments.  Must try -L first in case configure is actually a
 
2283
# symlink; some systems play weird games with the mod time of symlinks
 
2284
# (eg FreeBSD returns the mod time of the symlink's containing
 
2285
# directory).
 
2286
if (
 
2287
   am_has_slept=no
 
2288
   for am_try in 1 2; do
 
2289
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2290
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2291
     if test "$*" = "X"; then
 
2292
        # -L didn't work.
 
2293
        set X `ls -t "$srcdir/configure" conftest.file`
 
2294
     fi
 
2295
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2296
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2297
 
 
2298
        # If neither matched, then we have a broken ls.  This can happen
 
2299
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2300
        # broken ls alias from the environment.  This has actually
 
2301
        # happened.  Such a system could not be considered "sane".
 
2302
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2303
  alias in your environment" "$LINENO" 5
 
2304
     fi
 
2305
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2306
       break
 
2307
     fi
 
2308
     # Just in case.
 
2309
     sleep 1
 
2310
     am_has_slept=yes
 
2311
   done
 
2312
   test "$2" = conftest.file
 
2313
   )
 
2314
then
 
2315
   # Ok.
 
2316
   :
 
2317
else
 
2318
   as_fn_error $? "newly created file is older than distributed files!
 
2319
Check your system clock" "$LINENO" 5
 
2320
fi
 
2321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2322
$as_echo "yes" >&6; }
 
2323
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2324
# generated files are strictly newer.
 
2325
am_sleep_pid=
 
2326
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2327
  ( sleep 1 ) &
 
2328
  am_sleep_pid=$!
 
2329
fi
 
2330
 
 
2331
rm -f conftest.file
 
2332
 
 
2333
test "$program_prefix" != NONE &&
 
2334
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2335
# Use a double $ so make ignores it.
 
2336
test "$program_suffix" != NONE &&
 
2337
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2338
# Double any \ or $.
 
2339
# By default was `s,x,x', remove it if useless.
 
2340
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2341
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2342
 
 
2343
# expand $ac_aux_dir to an absolute path
 
2344
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2345
 
 
2346
if test x"${MISSING+set}" != xset; then
 
2347
  case $am_aux_dir in
 
2348
  *\ * | *\     *)
 
2349
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2350
  *)
 
2351
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2352
  esac
 
2353
fi
 
2354
# Use eval to expand $SHELL
 
2355
if eval "$MISSING --is-lightweight"; then
 
2356
  am_missing_run="$MISSING "
 
2357
else
 
2358
  am_missing_run=
 
2359
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2360
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2361
fi
 
2362
 
 
2363
if test x"${install_sh}" != xset; then
 
2364
  case $am_aux_dir in
 
2365
  *\ * | *\     *)
 
2366
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2367
  *)
 
2368
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2369
  esac
 
2370
fi
 
2371
 
 
2372
# Installed binaries are usually stripped using 'strip' when the user
 
2373
# run "make install-strip".  However 'strip' might not be the right
 
2374
# tool to use in cross-compilation environments, therefore Automake
 
2375
# will honor the 'STRIP' environment variable to overrule this program.
 
2376
if test "$cross_compiling" != no; then
 
2377
  if test -n "$ac_tool_prefix"; then
 
2378
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2379
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2381
$as_echo_n "checking for $ac_word... " >&6; }
 
2382
if ${ac_cv_prog_STRIP+:} false; then :
 
2383
  $as_echo_n "(cached) " >&6
 
2384
else
 
2385
  if test -n "$STRIP"; then
 
2386
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2387
else
 
2388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2389
for as_dir in $PATH
 
2390
do
 
2391
  IFS=$as_save_IFS
 
2392
  test -z "$as_dir" && as_dir=.
 
2393
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2394
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2395
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2396
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2397
    break 2
 
2398
  fi
 
2399
done
 
2400
  done
 
2401
IFS=$as_save_IFS
 
2402
 
 
2403
fi
 
2404
fi
 
2405
STRIP=$ac_cv_prog_STRIP
 
2406
if test -n "$STRIP"; then
 
2407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2408
$as_echo "$STRIP" >&6; }
 
2409
else
 
2410
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2411
$as_echo "no" >&6; }
 
2412
fi
 
2413
 
 
2414
 
 
2415
fi
 
2416
if test -z "$ac_cv_prog_STRIP"; then
 
2417
  ac_ct_STRIP=$STRIP
 
2418
  # Extract the first word of "strip", so it can be a program name with args.
 
2419
set dummy strip; ac_word=$2
 
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2421
$as_echo_n "checking for $ac_word... " >&6; }
 
2422
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2423
  $as_echo_n "(cached) " >&6
 
2424
else
 
2425
  if test -n "$ac_ct_STRIP"; then
 
2426
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2427
else
 
2428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2429
for as_dir in $PATH
 
2430
do
 
2431
  IFS=$as_save_IFS
 
2432
  test -z "$as_dir" && as_dir=.
 
2433
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2434
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2435
    ac_cv_prog_ac_ct_STRIP="strip"
 
2436
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2437
    break 2
 
2438
  fi
 
2439
done
 
2440
  done
 
2441
IFS=$as_save_IFS
 
2442
 
 
2443
fi
 
2444
fi
 
2445
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2446
if test -n "$ac_ct_STRIP"; then
 
2447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2448
$as_echo "$ac_ct_STRIP" >&6; }
 
2449
else
 
2450
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2451
$as_echo "no" >&6; }
 
2452
fi
 
2453
 
 
2454
  if test "x$ac_ct_STRIP" = x; then
 
2455
    STRIP=":"
 
2456
  else
 
2457
    case $cross_compiling:$ac_tool_warned in
 
2458
yes:)
 
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2460
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2461
ac_tool_warned=yes ;;
 
2462
esac
 
2463
    STRIP=$ac_ct_STRIP
 
2464
  fi
 
2465
else
 
2466
  STRIP="$ac_cv_prog_STRIP"
 
2467
fi
 
2468
 
 
2469
fi
 
2470
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2471
 
 
2472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2473
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2474
if test -z "$MKDIR_P"; then
 
2475
  if ${ac_cv_path_mkdir+:} false; then :
 
2476
  $as_echo_n "(cached) " >&6
 
2477
else
 
2478
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2479
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2480
do
 
2481
  IFS=$as_save_IFS
 
2482
  test -z "$as_dir" && as_dir=.
 
2483
    for ac_prog in mkdir gmkdir; do
 
2484
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2485
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2486
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2487
             'mkdir (GNU coreutils) '* | \
 
2488
             'mkdir (coreutils) '* | \
 
2489
             'mkdir (fileutils) '4.1*)
 
2490
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2491
               break 3;;
 
2492
           esac
 
2493
         done
 
2494
       done
 
2495
  done
 
2496
IFS=$as_save_IFS
 
2497
 
 
2498
fi
 
2499
 
 
2500
  test -d ./--version && rmdir ./--version
 
2501
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2502
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2503
  else
 
2504
    # As a last resort, use the slow shell script.  Don't cache a
 
2505
    # value for MKDIR_P within a source directory, because that will
 
2506
    # break other packages using the cache if that directory is
 
2507
    # removed, or if the value is a relative name.
 
2508
    MKDIR_P="$ac_install_sh -d"
 
2509
  fi
 
2510
fi
 
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2512
$as_echo "$MKDIR_P" >&6; }
 
2513
 
 
2514
for ac_prog in gawk mawk nawk awk
 
2515
do
 
2516
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2517
set dummy $ac_prog; ac_word=$2
 
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2519
$as_echo_n "checking for $ac_word... " >&6; }
 
2520
if ${ac_cv_prog_AWK+:} false; then :
 
2521
  $as_echo_n "(cached) " >&6
 
2522
else
 
2523
  if test -n "$AWK"; then
 
2524
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2525
else
 
2526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2527
for as_dir in $PATH
 
2528
do
 
2529
  IFS=$as_save_IFS
 
2530
  test -z "$as_dir" && as_dir=.
 
2531
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2532
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2533
    ac_cv_prog_AWK="$ac_prog"
 
2534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2535
    break 2
 
2536
  fi
 
2537
done
 
2538
  done
 
2539
IFS=$as_save_IFS
 
2540
 
 
2541
fi
 
2542
fi
 
2543
AWK=$ac_cv_prog_AWK
 
2544
if test -n "$AWK"; then
 
2545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2546
$as_echo "$AWK" >&6; }
 
2547
else
 
2548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2549
$as_echo "no" >&6; }
 
2550
fi
 
2551
 
 
2552
 
 
2553
  test -n "$AWK" && break
 
2554
done
 
2555
 
 
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2557
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2558
set x ${MAKE-make}
 
2559
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2560
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2561
  $as_echo_n "(cached) " >&6
 
2562
else
 
2563
  cat >conftest.make <<\_ACEOF
 
2564
SHELL = /bin/sh
 
2565
all:
 
2566
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2567
_ACEOF
 
2568
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2569
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2570
  *@@@%%%=?*=@@@%%%*)
 
2571
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2572
  *)
 
2573
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2574
esac
 
2575
rm -f conftest.make
 
2576
fi
 
2577
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2579
$as_echo "yes" >&6; }
 
2580
  SET_MAKE=
 
2581
else
 
2582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2583
$as_echo "no" >&6; }
 
2584
  SET_MAKE="MAKE=${MAKE-make}"
 
2585
fi
 
2586
 
 
2587
rm -rf .tst 2>/dev/null
 
2588
mkdir .tst 2>/dev/null
 
2589
if test -d .tst; then
 
2590
  am__leading_dot=.
 
2591
else
 
2592
  am__leading_dot=_
 
2593
fi
 
2594
rmdir .tst 2>/dev/null
 
2595
 
 
2596
# Check whether --enable-silent-rules was given.
 
2597
if test "${enable_silent_rules+set}" = set; then :
 
2598
  enableval=$enable_silent_rules;
 
2599
fi
 
2600
 
 
2601
case $enable_silent_rules in # (((
 
2602
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2603
   no) AM_DEFAULT_VERBOSITY=1;;
 
2604
    *) AM_DEFAULT_VERBOSITY=1;;
 
2605
esac
 
2606
am_make=${MAKE-make}
 
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2608
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2609
if ${am_cv_make_support_nested_variables+:} false; then :
 
2610
  $as_echo_n "(cached) " >&6
 
2611
else
 
2612
  if $as_echo 'TRUE=$(BAR$(V))
 
2613
BAR0=false
 
2614
BAR1=true
 
2615
V=1
 
2616
am__doit:
 
2617
        @$(TRUE)
 
2618
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2619
  am_cv_make_support_nested_variables=yes
 
2620
else
 
2621
  am_cv_make_support_nested_variables=no
 
2622
fi
 
2623
fi
 
2624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2625
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2626
if test $am_cv_make_support_nested_variables = yes; then
 
2627
    AM_V='$(V)'
 
2628
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2629
else
 
2630
  AM_V=$AM_DEFAULT_VERBOSITY
 
2631
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2632
fi
 
2633
AM_BACKSLASH='\'
 
2634
 
 
2635
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2636
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2637
  # is not polluted with repeated "-I."
 
2638
  am__isrc=' -I$(srcdir)'
 
2639
  # test to see if srcdir already configured
 
2640
  if test -f $srcdir/config.status; then
 
2641
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2642
  fi
 
2643
fi
 
2644
 
 
2645
# test whether we have cygpath
 
2646
if test -z "$CYGPATH_W"; then
 
2647
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2648
    CYGPATH_W='cygpath -w'
 
2649
  else
 
2650
    CYGPATH_W=echo
 
2651
  fi
 
2652
fi
 
2653
 
 
2654
 
 
2655
# Define the identity of the package.
 
2656
 PACKAGE='jq'
 
2657
 VERSION='1.4'
 
2658
 
 
2659
 
 
2660
cat >>confdefs.h <<_ACEOF
 
2661
#define PACKAGE "$PACKAGE"
 
2662
_ACEOF
 
2663
 
 
2664
 
 
2665
cat >>confdefs.h <<_ACEOF
 
2666
#define VERSION "$VERSION"
 
2667
_ACEOF
 
2668
 
 
2669
# Some tools Automake needs.
 
2670
 
 
2671
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2672
 
 
2673
 
 
2674
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2675
 
 
2676
 
 
2677
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2678
 
 
2679
 
 
2680
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2681
 
 
2682
 
 
2683
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2684
 
 
2685
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2686
# dies out for good.  For more background, see:
 
2687
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2688
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2689
mkdir_p='$(MKDIR_P)'
 
2690
 
 
2691
# We need awk for the "check" target.  The system "awk" is bad on
 
2692
# some platforms.
 
2693
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2694
# in the wild :-(  We should find a proper way to deprecate it ...
 
2695
AMTAR='$${TAR-tar}'
 
2696
 
 
2697
 
 
2698
# We'll loop over all known methods to create a tar archive until one works.
 
2699
_am_tools='gnutar  pax cpio none'
 
2700
 
 
2701
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2702
 
 
2703
 
 
2704
 
 
2705
 
 
2706
 
 
2707
 
 
2708
# POSIX will say in a future version that running "rm -f" with no argument
 
2709
# is OK; and we want to be able to make that assumption in our Makefile
 
2710
# recipes.  So use an aggressive probe to check that the usage we want is
 
2711
# actually supported "in the wild" to an acceptable degree.
 
2712
# See automake bug#10828.
 
2713
# To make any issue more visible, cause the running configure to be aborted
 
2714
# by default if the 'rm' program in use doesn't match our expectations; the
 
2715
# user can still override this though.
 
2716
if rm -f && rm -fr && rm -rf; then : OK; else
 
2717
  cat >&2 <<'END'
 
2718
Oops!
 
2719
 
 
2720
Your 'rm' program seems unable to run without file operands specified
 
2721
on the command line, even when the '-f' option is present.  This is contrary
 
2722
to the behaviour of most rm programs out there, and not conforming with
 
2723
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2724
 
 
2725
Please tell bug-automake@gnu.org about your system, including the value
 
2726
of your $PATH and any error possibly output before this message.  This
 
2727
can help us improve future automake versions.
 
2728
 
 
2729
END
 
2730
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2731
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2732
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2733
    echo >&2
 
2734
  else
 
2735
    cat >&2 <<'END'
 
2736
Aborting the configuration process, to ensure you take notice of the issue.
 
2737
 
 
2738
You can download and install GNU coreutils to get an 'rm' implementation
 
2739
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2740
 
 
2741
If you want to complete the configuration process using your problematic
 
2742
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2743
to "yes", and re-run configure.
 
2744
 
 
2745
END
 
2746
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
2747
  fi
 
2748
fi
 
2749
# Check whether --enable-silent-rules was given.
 
2750
if test "${enable_silent_rules+set}" = set; then :
 
2751
  enableval=$enable_silent_rules;
 
2752
fi
 
2753
 
 
2754
case $enable_silent_rules in # (((
 
2755
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2756
   no) AM_DEFAULT_VERBOSITY=1;;
 
2757
    *) AM_DEFAULT_VERBOSITY=0;;
 
2758
esac
 
2759
am_make=${MAKE-make}
 
2760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2761
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2762
if ${am_cv_make_support_nested_variables+:} false; then :
 
2763
  $as_echo_n "(cached) " >&6
 
2764
else
 
2765
  if $as_echo 'TRUE=$(BAR$(V))
 
2766
BAR0=false
 
2767
BAR1=true
 
2768
V=1
 
2769
am__doit:
 
2770
        @$(TRUE)
 
2771
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2772
  am_cv_make_support_nested_variables=yes
 
2773
else
 
2774
  am_cv_make_support_nested_variables=no
 
2775
fi
 
2776
fi
 
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2778
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2779
if test $am_cv_make_support_nested_variables = yes; then
 
2780
    AM_V='$(V)'
 
2781
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2782
else
 
2783
  AM_V=$AM_DEFAULT_VERBOSITY
 
2784
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2785
fi
 
2786
AM_BACKSLASH='\'
 
2787
 
 
2788
DEPDIR="${am__leading_dot}deps"
 
2789
 
 
2790
ac_config_commands="$ac_config_commands depfiles"
 
2791
 
 
2792
 
 
2793
am_make=${MAKE-make}
 
2794
cat > confinc << 'END'
 
2795
am__doit:
 
2796
        @echo this is the am__doit target
 
2797
.PHONY: am__doit
 
2798
END
 
2799
# If we don't find an include directive, just comment out the code.
 
2800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2801
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2802
am__include="#"
 
2803
am__quote=
 
2804
_am_result=none
 
2805
# First try GNU make style include.
 
2806
echo "include confinc" > confmf
 
2807
# Ignore all kinds of additional output from 'make'.
 
2808
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2809
*the\ am__doit\ target*)
 
2810
  am__include=include
 
2811
  am__quote=
 
2812
  _am_result=GNU
 
2813
  ;;
 
2814
esac
 
2815
# Now try BSD make style include.
 
2816
if test "$am__include" = "#"; then
 
2817
   echo '.include "confinc"' > confmf
 
2818
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2819
   *the\ am__doit\ target*)
 
2820
     am__include=.include
 
2821
     am__quote="\""
 
2822
     _am_result=BSD
 
2823
     ;;
 
2824
   esac
 
2825
fi
 
2826
 
 
2827
 
 
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2829
$as_echo "$_am_result" >&6; }
 
2830
rm -f confinc confmf
 
2831
 
 
2832
# Check whether --enable-dependency-tracking was given.
 
2833
if test "${enable_dependency_tracking+set}" = set; then :
 
2834
  enableval=$enable_dependency_tracking;
 
2835
fi
 
2836
 
 
2837
if test "x$enable_dependency_tracking" != xno; then
 
2838
  am_depcomp="$ac_aux_dir/depcomp"
 
2839
  AMDEPBACKSLASH='\'
 
2840
  am__nodep='_no'
 
2841
fi
 
2842
 if test "x$enable_dependency_tracking" != xno; then
 
2843
  AMDEP_TRUE=
 
2844
  AMDEP_FALSE='#'
 
2845
else
 
2846
  AMDEP_TRUE='#'
 
2847
  AMDEP_FALSE=
 
2848
fi
 
2849
 
 
2850
 
 
2851
ac_ext=c
 
2852
ac_cpp='$CPP $CPPFLAGS'
 
2853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2856
if test -n "$ac_tool_prefix"; then
 
2857
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2858
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2860
$as_echo_n "checking for $ac_word... " >&6; }
 
2861
if ${ac_cv_prog_CC+:} false; then :
 
2862
  $as_echo_n "(cached) " >&6
 
2863
else
 
2864
  if test -n "$CC"; then
 
2865
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2866
else
 
2867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2868
for as_dir in $PATH
 
2869
do
 
2870
  IFS=$as_save_IFS
 
2871
  test -z "$as_dir" && as_dir=.
 
2872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2873
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2874
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2875
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2876
    break 2
 
2877
  fi
 
2878
done
 
2879
  done
 
2880
IFS=$as_save_IFS
 
2881
 
 
2882
fi
 
2883
fi
 
2884
CC=$ac_cv_prog_CC
 
2885
if test -n "$CC"; then
 
2886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2887
$as_echo "$CC" >&6; }
 
2888
else
 
2889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2890
$as_echo "no" >&6; }
 
2891
fi
 
2892
 
 
2893
 
 
2894
fi
 
2895
if test -z "$ac_cv_prog_CC"; then
 
2896
  ac_ct_CC=$CC
 
2897
  # Extract the first word of "gcc", so it can be a program name with args.
 
2898
set dummy gcc; ac_word=$2
 
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2900
$as_echo_n "checking for $ac_word... " >&6; }
 
2901
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2902
  $as_echo_n "(cached) " >&6
 
2903
else
 
2904
  if test -n "$ac_ct_CC"; then
 
2905
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2906
else
 
2907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2908
for as_dir in $PATH
 
2909
do
 
2910
  IFS=$as_save_IFS
 
2911
  test -z "$as_dir" && as_dir=.
 
2912
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2913
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2914
    ac_cv_prog_ac_ct_CC="gcc"
 
2915
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2916
    break 2
 
2917
  fi
 
2918
done
 
2919
  done
 
2920
IFS=$as_save_IFS
 
2921
 
 
2922
fi
 
2923
fi
 
2924
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2925
if test -n "$ac_ct_CC"; then
 
2926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2927
$as_echo "$ac_ct_CC" >&6; }
 
2928
else
 
2929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2930
$as_echo "no" >&6; }
 
2931
fi
 
2932
 
 
2933
  if test "x$ac_ct_CC" = x; then
 
2934
    CC=""
 
2935
  else
 
2936
    case $cross_compiling:$ac_tool_warned in
 
2937
yes:)
 
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2940
ac_tool_warned=yes ;;
 
2941
esac
 
2942
    CC=$ac_ct_CC
 
2943
  fi
 
2944
else
 
2945
  CC="$ac_cv_prog_CC"
 
2946
fi
 
2947
 
 
2948
if test -z "$CC"; then
 
2949
          if test -n "$ac_tool_prefix"; then
 
2950
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2951
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2953
$as_echo_n "checking for $ac_word... " >&6; }
 
2954
if ${ac_cv_prog_CC+:} false; then :
 
2955
  $as_echo_n "(cached) " >&6
 
2956
else
 
2957
  if test -n "$CC"; then
 
2958
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2959
else
 
2960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2961
for as_dir in $PATH
 
2962
do
 
2963
  IFS=$as_save_IFS
 
2964
  test -z "$as_dir" && as_dir=.
 
2965
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2966
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2967
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2968
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2969
    break 2
 
2970
  fi
 
2971
done
 
2972
  done
 
2973
IFS=$as_save_IFS
 
2974
 
 
2975
fi
 
2976
fi
 
2977
CC=$ac_cv_prog_CC
 
2978
if test -n "$CC"; then
 
2979
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2980
$as_echo "$CC" >&6; }
 
2981
else
 
2982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2983
$as_echo "no" >&6; }
 
2984
fi
 
2985
 
 
2986
 
 
2987
  fi
 
2988
fi
 
2989
if test -z "$CC"; then
 
2990
  # Extract the first word of "cc", so it can be a program name with args.
 
2991
set dummy cc; ac_word=$2
 
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2993
$as_echo_n "checking for $ac_word... " >&6; }
 
2994
if ${ac_cv_prog_CC+:} false; then :
 
2995
  $as_echo_n "(cached) " >&6
 
2996
else
 
2997
  if test -n "$CC"; then
 
2998
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2999
else
 
3000
  ac_prog_rejected=no
 
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3002
for as_dir in $PATH
 
3003
do
 
3004
  IFS=$as_save_IFS
 
3005
  test -z "$as_dir" && as_dir=.
 
3006
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3007
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3008
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3009
       ac_prog_rejected=yes
 
3010
       continue
 
3011
     fi
 
3012
    ac_cv_prog_CC="cc"
 
3013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3014
    break 2
 
3015
  fi
 
3016
done
 
3017
  done
 
3018
IFS=$as_save_IFS
 
3019
 
 
3020
if test $ac_prog_rejected = yes; then
 
3021
  # We found a bogon in the path, so make sure we never use it.
 
3022
  set dummy $ac_cv_prog_CC
 
3023
  shift
 
3024
  if test $# != 0; then
 
3025
    # We chose a different compiler from the bogus one.
 
3026
    # However, it has the same basename, so the bogon will be chosen
 
3027
    # first if we set CC to just the basename; use the full file name.
 
3028
    shift
 
3029
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3030
  fi
 
3031
fi
 
3032
fi
 
3033
fi
 
3034
CC=$ac_cv_prog_CC
 
3035
if test -n "$CC"; then
 
3036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3037
$as_echo "$CC" >&6; }
 
3038
else
 
3039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3040
$as_echo "no" >&6; }
 
3041
fi
 
3042
 
 
3043
 
 
3044
fi
 
3045
if test -z "$CC"; then
 
3046
  if test -n "$ac_tool_prefix"; then
 
3047
  for ac_prog in cl.exe
 
3048
  do
 
3049
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3050
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3052
$as_echo_n "checking for $ac_word... " >&6; }
 
3053
if ${ac_cv_prog_CC+:} false; then :
 
3054
  $as_echo_n "(cached) " >&6
 
3055
else
 
3056
  if test -n "$CC"; then
 
3057
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3058
else
 
3059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3060
for as_dir in $PATH
 
3061
do
 
3062
  IFS=$as_save_IFS
 
3063
  test -z "$as_dir" && as_dir=.
 
3064
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3065
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3066
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3067
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3068
    break 2
 
3069
  fi
 
3070
done
 
3071
  done
 
3072
IFS=$as_save_IFS
 
3073
 
 
3074
fi
 
3075
fi
 
3076
CC=$ac_cv_prog_CC
 
3077
if test -n "$CC"; then
 
3078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3079
$as_echo "$CC" >&6; }
 
3080
else
 
3081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3082
$as_echo "no" >&6; }
 
3083
fi
 
3084
 
 
3085
 
 
3086
    test -n "$CC" && break
 
3087
  done
 
3088
fi
 
3089
if test -z "$CC"; then
 
3090
  ac_ct_CC=$CC
 
3091
  for ac_prog in cl.exe
 
3092
do
 
3093
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3094
set dummy $ac_prog; ac_word=$2
 
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3096
$as_echo_n "checking for $ac_word... " >&6; }
 
3097
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3098
  $as_echo_n "(cached) " >&6
 
3099
else
 
3100
  if test -n "$ac_ct_CC"; then
 
3101
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3102
else
 
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3104
for as_dir in $PATH
 
3105
do
 
3106
  IFS=$as_save_IFS
 
3107
  test -z "$as_dir" && as_dir=.
 
3108
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3109
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3110
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3111
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3112
    break 2
 
3113
  fi
 
3114
done
 
3115
  done
 
3116
IFS=$as_save_IFS
 
3117
 
 
3118
fi
 
3119
fi
 
3120
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3121
if test -n "$ac_ct_CC"; then
 
3122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3123
$as_echo "$ac_ct_CC" >&6; }
 
3124
else
 
3125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3126
$as_echo "no" >&6; }
 
3127
fi
 
3128
 
 
3129
 
 
3130
  test -n "$ac_ct_CC" && break
 
3131
done
 
3132
 
 
3133
  if test "x$ac_ct_CC" = x; then
 
3134
    CC=""
 
3135
  else
 
3136
    case $cross_compiling:$ac_tool_warned in
 
3137
yes:)
 
3138
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3139
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3140
ac_tool_warned=yes ;;
 
3141
esac
 
3142
    CC=$ac_ct_CC
 
3143
  fi
 
3144
fi
 
3145
 
 
3146
fi
 
3147
 
 
3148
 
 
3149
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3150
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3151
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3152
See \`config.log' for more details" "$LINENO" 5; }
 
3153
 
 
3154
# Provide some information about the compiler.
 
3155
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3156
set X $ac_compile
 
3157
ac_compiler=$2
 
3158
for ac_option in --version -v -V -qversion; do
 
3159
  { { ac_try="$ac_compiler $ac_option >&5"
 
3160
case "(($ac_try" in
 
3161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3162
  *) ac_try_echo=$ac_try;;
 
3163
esac
 
3164
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3165
$as_echo "$ac_try_echo"; } >&5
 
3166
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3167
  ac_status=$?
 
3168
  if test -s conftest.err; then
 
3169
    sed '10a\
 
3170
... rest of stderr output deleted ...
 
3171
         10q' conftest.err >conftest.er1
 
3172
    cat conftest.er1 >&5
 
3173
  fi
 
3174
  rm -f conftest.er1 conftest.err
 
3175
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3176
  test $ac_status = 0; }
 
3177
done
 
3178
 
 
3179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3180
/* end confdefs.h.  */
 
3181
 
 
3182
int
 
3183
main ()
 
3184
{
 
3185
 
 
3186
  ;
 
3187
  return 0;
 
3188
}
 
3189
_ACEOF
 
3190
ac_clean_files_save=$ac_clean_files
 
3191
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3192
# Try to create an executable without -o first, disregard a.out.
 
3193
# It will help us diagnose broken compilers, and finding out an intuition
 
3194
# of exeext.
 
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3196
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3197
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3198
 
 
3199
# The possible output files:
 
3200
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3201
 
 
3202
ac_rmfiles=
 
3203
for ac_file in $ac_files
 
3204
do
 
3205
  case $ac_file in
 
3206
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3207
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3208
  esac
 
3209
done
 
3210
rm -f $ac_rmfiles
 
3211
 
 
3212
if { { ac_try="$ac_link_default"
 
3213
case "(($ac_try" in
 
3214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3215
  *) ac_try_echo=$ac_try;;
 
3216
esac
 
3217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3218
$as_echo "$ac_try_echo"; } >&5
 
3219
  (eval "$ac_link_default") 2>&5
 
3220
  ac_status=$?
 
3221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3222
  test $ac_status = 0; }; then :
 
3223
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3224
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3225
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3226
# so that the user can short-circuit this test for compilers unknown to
 
3227
# Autoconf.
 
3228
for ac_file in $ac_files ''
 
3229
do
 
3230
  test -f "$ac_file" || continue
 
3231
  case $ac_file in
 
3232
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3233
        ;;
 
3234
    [ab].out )
 
3235
        # We found the default executable, but exeext='' is most
 
3236
        # certainly right.
 
3237
        break;;
 
3238
    *.* )
 
3239
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3240
        then :; else
 
3241
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3242
        fi
 
3243
        # We set ac_cv_exeext here because the later test for it is not
 
3244
        # safe: cross compilers may not add the suffix if given an `-o'
 
3245
        # argument, so we may need to know it at that point already.
 
3246
        # Even if this section looks crufty: it has the advantage of
 
3247
        # actually working.
 
3248
        break;;
 
3249
    * )
 
3250
        break;;
 
3251
  esac
 
3252
done
 
3253
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3254
 
 
3255
else
 
3256
  ac_file=''
 
3257
fi
 
3258
if test -z "$ac_file"; then :
 
3259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3260
$as_echo "no" >&6; }
 
3261
$as_echo "$as_me: failed program was:" >&5
 
3262
sed 's/^/| /' conftest.$ac_ext >&5
 
3263
 
 
3264
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3265
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3266
as_fn_error 77 "C compiler cannot create executables
 
3267
See \`config.log' for more details" "$LINENO" 5; }
 
3268
else
 
3269
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3270
$as_echo "yes" >&6; }
 
3271
fi
 
3272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3273
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3275
$as_echo "$ac_file" >&6; }
 
3276
ac_exeext=$ac_cv_exeext
 
3277
 
 
3278
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3279
ac_clean_files=$ac_clean_files_save
 
3280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3281
$as_echo_n "checking for suffix of executables... " >&6; }
 
3282
if { { ac_try="$ac_link"
 
3283
case "(($ac_try" in
 
3284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3285
  *) ac_try_echo=$ac_try;;
 
3286
esac
 
3287
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3288
$as_echo "$ac_try_echo"; } >&5
 
3289
  (eval "$ac_link") 2>&5
 
3290
  ac_status=$?
 
3291
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3292
  test $ac_status = 0; }; then :
 
3293
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3294
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3295
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3296
# `rm'.
 
3297
for ac_file in conftest.exe conftest conftest.*; do
 
3298
  test -f "$ac_file" || continue
 
3299
  case $ac_file in
 
3300
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3301
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3302
          break;;
 
3303
    * ) break;;
 
3304
  esac
 
3305
done
 
3306
else
 
3307
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3308
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3309
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3310
See \`config.log' for more details" "$LINENO" 5; }
 
3311
fi
 
3312
rm -f conftest conftest$ac_cv_exeext
 
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3314
$as_echo "$ac_cv_exeext" >&6; }
 
3315
 
 
3316
rm -f conftest.$ac_ext
 
3317
EXEEXT=$ac_cv_exeext
 
3318
ac_exeext=$EXEEXT
 
3319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3320
/* end confdefs.h.  */
 
3321
#include <stdio.h>
 
3322
int
 
3323
main ()
 
3324
{
 
3325
FILE *f = fopen ("conftest.out", "w");
 
3326
 return ferror (f) || fclose (f) != 0;
 
3327
 
 
3328
  ;
 
3329
  return 0;
 
3330
}
 
3331
_ACEOF
 
3332
ac_clean_files="$ac_clean_files conftest.out"
 
3333
# Check that the compiler produces executables we can run.  If not, either
 
3334
# the compiler is broken, or we cross compile.
 
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3336
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3337
if test "$cross_compiling" != yes; then
 
3338
  { { ac_try="$ac_link"
 
3339
case "(($ac_try" in
 
3340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3341
  *) ac_try_echo=$ac_try;;
 
3342
esac
 
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3344
$as_echo "$ac_try_echo"; } >&5
 
3345
  (eval "$ac_link") 2>&5
 
3346
  ac_status=$?
 
3347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3348
  test $ac_status = 0; }
 
3349
  if { ac_try='./conftest$ac_cv_exeext'
 
3350
  { { case "(($ac_try" in
 
3351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3352
  *) ac_try_echo=$ac_try;;
 
3353
esac
 
3354
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3355
$as_echo "$ac_try_echo"; } >&5
 
3356
  (eval "$ac_try") 2>&5
 
3357
  ac_status=$?
 
3358
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3359
  test $ac_status = 0; }; }; then
 
3360
    cross_compiling=no
 
3361
  else
 
3362
    if test "$cross_compiling" = maybe; then
 
3363
        cross_compiling=yes
 
3364
    else
 
3365
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3366
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3367
as_fn_error $? "cannot run C compiled programs.
 
3368
If you meant to cross compile, use \`--host'.
 
3369
See \`config.log' for more details" "$LINENO" 5; }
 
3370
    fi
 
3371
  fi
 
3372
fi
 
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3374
$as_echo "$cross_compiling" >&6; }
 
3375
 
 
3376
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3377
ac_clean_files=$ac_clean_files_save
 
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3379
$as_echo_n "checking for suffix of object files... " >&6; }
 
3380
if ${ac_cv_objext+:} false; then :
 
3381
  $as_echo_n "(cached) " >&6
 
3382
else
 
3383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3384
/* end confdefs.h.  */
 
3385
 
 
3386
int
 
3387
main ()
 
3388
{
 
3389
 
 
3390
  ;
 
3391
  return 0;
 
3392
}
 
3393
_ACEOF
 
3394
rm -f conftest.o conftest.obj
 
3395
if { { ac_try="$ac_compile"
 
3396
case "(($ac_try" in
 
3397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3398
  *) ac_try_echo=$ac_try;;
 
3399
esac
 
3400
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3401
$as_echo "$ac_try_echo"; } >&5
 
3402
  (eval "$ac_compile") 2>&5
 
3403
  ac_status=$?
 
3404
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3405
  test $ac_status = 0; }; then :
 
3406
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3407
  test -f "$ac_file" || continue;
 
3408
  case $ac_file in
 
3409
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3410
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3411
       break;;
 
3412
  esac
 
3413
done
 
3414
else
 
3415
  $as_echo "$as_me: failed program was:" >&5
 
3416
sed 's/^/| /' conftest.$ac_ext >&5
 
3417
 
 
3418
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3420
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3421
See \`config.log' for more details" "$LINENO" 5; }
 
3422
fi
 
3423
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3424
fi
 
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3426
$as_echo "$ac_cv_objext" >&6; }
 
3427
OBJEXT=$ac_cv_objext
 
3428
ac_objext=$OBJEXT
 
3429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3430
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3431
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3432
  $as_echo_n "(cached) " >&6
 
3433
else
 
3434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3435
/* end confdefs.h.  */
 
3436
 
 
3437
int
 
3438
main ()
 
3439
{
 
3440
#ifndef __GNUC__
 
3441
       choke me
 
3442
#endif
 
3443
 
 
3444
  ;
 
3445
  return 0;
 
3446
}
 
3447
_ACEOF
 
3448
if ac_fn_c_try_compile "$LINENO"; then :
 
3449
  ac_compiler_gnu=yes
 
3450
else
 
3451
  ac_compiler_gnu=no
 
3452
fi
 
3453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3454
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3455
 
 
3456
fi
 
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3458
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3459
if test $ac_compiler_gnu = yes; then
 
3460
  GCC=yes
 
3461
else
 
3462
  GCC=
 
3463
fi
 
3464
ac_test_CFLAGS=${CFLAGS+set}
 
3465
ac_save_CFLAGS=$CFLAGS
 
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3467
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3468
if ${ac_cv_prog_cc_g+:} false; then :
 
3469
  $as_echo_n "(cached) " >&6
 
3470
else
 
3471
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3472
   ac_c_werror_flag=yes
 
3473
   ac_cv_prog_cc_g=no
 
3474
   CFLAGS="-g"
 
3475
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3476
/* end confdefs.h.  */
 
3477
 
 
3478
int
 
3479
main ()
 
3480
{
 
3481
 
 
3482
  ;
 
3483
  return 0;
 
3484
}
 
3485
_ACEOF
 
3486
if ac_fn_c_try_compile "$LINENO"; then :
 
3487
  ac_cv_prog_cc_g=yes
 
3488
else
 
3489
  CFLAGS=""
 
3490
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3491
/* end confdefs.h.  */
 
3492
 
 
3493
int
 
3494
main ()
 
3495
{
 
3496
 
 
3497
  ;
 
3498
  return 0;
 
3499
}
 
3500
_ACEOF
 
3501
if ac_fn_c_try_compile "$LINENO"; then :
 
3502
 
 
3503
else
 
3504
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3505
         CFLAGS="-g"
 
3506
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3507
/* end confdefs.h.  */
 
3508
 
 
3509
int
 
3510
main ()
 
3511
{
 
3512
 
 
3513
  ;
 
3514
  return 0;
 
3515
}
 
3516
_ACEOF
 
3517
if ac_fn_c_try_compile "$LINENO"; then :
 
3518
  ac_cv_prog_cc_g=yes
 
3519
fi
 
3520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3521
fi
 
3522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3523
fi
 
3524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3525
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3526
fi
 
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3528
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3529
if test "$ac_test_CFLAGS" = set; then
 
3530
  CFLAGS=$ac_save_CFLAGS
 
3531
elif test $ac_cv_prog_cc_g = yes; then
 
3532
  if test "$GCC" = yes; then
 
3533
    CFLAGS="-g -O2"
 
3534
  else
 
3535
    CFLAGS="-g"
 
3536
  fi
 
3537
else
 
3538
  if test "$GCC" = yes; then
 
3539
    CFLAGS="-O2"
 
3540
  else
 
3541
    CFLAGS=
 
3542
  fi
 
3543
fi
 
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3545
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3546
if ${ac_cv_prog_cc_c89+:} false; then :
 
3547
  $as_echo_n "(cached) " >&6
 
3548
else
 
3549
  ac_cv_prog_cc_c89=no
 
3550
ac_save_CC=$CC
 
3551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3552
/* end confdefs.h.  */
 
3553
#include <stdarg.h>
 
3554
#include <stdio.h>
 
3555
struct stat;
 
3556
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3557
struct buf { int x; };
 
3558
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3559
static char *e (p, i)
 
3560
     char **p;
 
3561
     int i;
 
3562
{
 
3563
  return p[i];
 
3564
}
 
3565
static char *f (char * (*g) (char **, int), char **p, ...)
 
3566
{
 
3567
  char *s;
 
3568
  va_list v;
 
3569
  va_start (v,p);
 
3570
  s = g (p, va_arg (v,int));
 
3571
  va_end (v);
 
3572
  return s;
 
3573
}
 
3574
 
 
3575
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3576
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3577
   These don't provoke an error unfortunately, instead are silently treated
 
3578
   as 'x'.  The following induces an error, until -std is added to get
 
3579
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3580
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3581
   that's true only with -std.  */
 
3582
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3583
 
 
3584
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3585
   inside strings and character constants.  */
 
3586
#define FOO(x) 'x'
 
3587
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3588
 
 
3589
int test (int i, double x);
 
3590
struct s1 {int (*f) (int a);};
 
3591
struct s2 {int (*f) (double a);};
 
3592
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3593
int argc;
 
3594
char **argv;
 
3595
int
 
3596
main ()
 
3597
{
 
3598
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3599
  ;
 
3600
  return 0;
 
3601
}
 
3602
_ACEOF
 
3603
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3604
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3605
do
 
3606
  CC="$ac_save_CC $ac_arg"
 
3607
  if ac_fn_c_try_compile "$LINENO"; then :
 
3608
  ac_cv_prog_cc_c89=$ac_arg
 
3609
fi
 
3610
rm -f core conftest.err conftest.$ac_objext
 
3611
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3612
done
 
3613
rm -f conftest.$ac_ext
 
3614
CC=$ac_save_CC
 
3615
 
 
3616
fi
 
3617
# AC_CACHE_VAL
 
3618
case "x$ac_cv_prog_cc_c89" in
 
3619
  x)
 
3620
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3621
$as_echo "none needed" >&6; } ;;
 
3622
  xno)
 
3623
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3624
$as_echo "unsupported" >&6; } ;;
 
3625
  *)
 
3626
    CC="$CC $ac_cv_prog_cc_c89"
 
3627
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3628
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3629
esac
 
3630
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3631
 
 
3632
fi
 
3633
 
 
3634
ac_ext=c
 
3635
ac_cpp='$CPP $CPPFLAGS'
 
3636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3639
 
 
3640
ac_ext=c
 
3641
ac_cpp='$CPP $CPPFLAGS'
 
3642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3646
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3647
if ${am_cv_prog_cc_c_o+:} false; then :
 
3648
  $as_echo_n "(cached) " >&6
 
3649
else
 
3650
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3651
/* end confdefs.h.  */
 
3652
 
 
3653
int
 
3654
main ()
 
3655
{
 
3656
 
 
3657
  ;
 
3658
  return 0;
 
3659
}
 
3660
_ACEOF
 
3661
  # Make sure it works both with $CC and with simple cc.
 
3662
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3663
  # compilers refuse to overwrite an existing .o file with -o,
 
3664
  # though they will create one.
 
3665
  am_cv_prog_cc_c_o=yes
 
3666
  for am_i in 1 2; do
 
3667
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3668
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3669
   ac_status=$?
 
3670
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3671
   (exit $ac_status); } \
 
3672
         && test -f conftest2.$ac_objext; then
 
3673
      : OK
 
3674
    else
 
3675
      am_cv_prog_cc_c_o=no
 
3676
      break
 
3677
    fi
 
3678
  done
 
3679
  rm -f core conftest*
 
3680
  unset am_i
 
3681
fi
 
3682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3683
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3684
if test "$am_cv_prog_cc_c_o" != yes; then
 
3685
   # Losing compiler, so override with the script.
 
3686
   # FIXME: It is wrong to rewrite CC.
 
3687
   # But if we don't then we get into trouble of one sort or another.
 
3688
   # A longer-term fix would be to have automake use am__CC in this case,
 
3689
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3690
   CC="$am_aux_dir/compile $CC"
 
3691
fi
 
3692
ac_ext=c
 
3693
ac_cpp='$CPP $CPPFLAGS'
 
3694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3697
 
 
3698
 
 
3699
depcc="$CC"   am_compiler_list=
 
3700
 
 
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3702
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3703
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3704
  $as_echo_n "(cached) " >&6
 
3705
else
 
3706
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3707
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3708
  # making bogus files that we don't know about and never remove.  For
 
3709
  # instance it was reported that on HP-UX the gcc test will end up
 
3710
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3711
  # in D".
 
3712
  rm -rf conftest.dir
 
3713
  mkdir conftest.dir
 
3714
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3715
  # using a relative directory.
 
3716
  cp "$am_depcomp" conftest.dir
 
3717
  cd conftest.dir
 
3718
  # We will build objects and dependencies in a subdirectory because
 
3719
  # it helps to detect inapplicable dependency modes.  For instance
 
3720
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3721
  # side effect of compilation, but ICC will put the dependencies in
 
3722
  # the current directory while Tru64 will put them in the object
 
3723
  # directory.
 
3724
  mkdir sub
 
3725
 
 
3726
  am_cv_CC_dependencies_compiler_type=none
 
3727
  if test "$am_compiler_list" = ""; then
 
3728
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3729
  fi
 
3730
  am__universal=false
 
3731
  case " $depcc " in #(
 
3732
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3733
     esac
 
3734
 
 
3735
  for depmode in $am_compiler_list; do
 
3736
    # Setup a source with many dependencies, because some compilers
 
3737
    # like to wrap large dependency lists on column 80 (with \), and
 
3738
    # we should not choose a depcomp mode which is confused by this.
 
3739
    #
 
3740
    # We need to recreate these files for each test, as the compiler may
 
3741
    # overwrite some of them when testing with obscure command lines.
 
3742
    # This happens at least with the AIX C compiler.
 
3743
    : > sub/conftest.c
 
3744
    for i in 1 2 3 4 5 6; do
 
3745
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3746
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3747
      # Solaris 10 /bin/sh.
 
3748
      echo '/* dummy */' > sub/conftst$i.h
 
3749
    done
 
3750
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3751
 
 
3752
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3753
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3754
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3755
    # versions had trouble with output in subdirs.
 
3756
    am__obj=sub/conftest.${OBJEXT-o}
 
3757
    am__minus_obj="-o $am__obj"
 
3758
    case $depmode in
 
3759
    gcc)
 
3760
      # This depmode causes a compiler race in universal mode.
 
3761
      test "$am__universal" = false || continue
 
3762
      ;;
 
3763
    nosideeffect)
 
3764
      # After this tag, mechanisms are not by side-effect, so they'll
 
3765
      # only be used when explicitly requested.
 
3766
      if test "x$enable_dependency_tracking" = xyes; then
 
3767
        continue
 
3768
      else
 
3769
        break
 
3770
      fi
 
3771
      ;;
 
3772
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3773
      # This compiler won't grok '-c -o', but also, the minuso test has
 
3774
      # not run yet.  These depmodes are late enough in the game, and
 
3775
      # so weak that their functioning should not be impacted.
 
3776
      am__obj=conftest.${OBJEXT-o}
 
3777
      am__minus_obj=
 
3778
      ;;
 
3779
    none) break ;;
 
3780
    esac
 
3781
    if depmode=$depmode \
 
3782
       source=sub/conftest.c object=$am__obj \
 
3783
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3784
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3785
         >/dev/null 2>conftest.err &&
 
3786
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3787
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3788
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3789
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3790
      # icc doesn't choke on unknown options, it will just issue warnings
 
3791
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3792
      # that says an option was ignored or not supported.
 
3793
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3794
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3795
      # The diagnosis changed in icc 8.0:
 
3796
      #   icc: Command line remark: option '-MP' not supported
 
3797
      if (grep 'ignoring option' conftest.err ||
 
3798
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3799
        am_cv_CC_dependencies_compiler_type=$depmode
 
3800
        break
 
3801
      fi
 
3802
    fi
 
3803
  done
 
3804
 
 
3805
  cd ..
 
3806
  rm -rf conftest.dir
 
3807
else
 
3808
  am_cv_CC_dependencies_compiler_type=none
 
3809
fi
 
3810
 
 
3811
fi
 
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3813
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3814
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3815
 
 
3816
 if
 
3817
  test "x$enable_dependency_tracking" != xno \
 
3818
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3819
  am__fastdepCC_TRUE=
 
3820
  am__fastdepCC_FALSE='#'
 
3821
else
 
3822
  am__fastdepCC_TRUE='#'
 
3823
  am__fastdepCC_FALSE=
 
3824
fi
 
3825
 
 
3826
 
 
3827
 
 
3828
if test -n "$ac_tool_prefix"; then
 
3829
  for ac_prog in ar lib "link -lib"
 
3830
  do
 
3831
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3832
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3834
$as_echo_n "checking for $ac_word... " >&6; }
 
3835
if ${ac_cv_prog_AR+:} false; then :
 
3836
  $as_echo_n "(cached) " >&6
 
3837
else
 
3838
  if test -n "$AR"; then
 
3839
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
3840
else
 
3841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3842
for as_dir in $PATH
 
3843
do
 
3844
  IFS=$as_save_IFS
 
3845
  test -z "$as_dir" && as_dir=.
 
3846
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3847
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3848
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
3849
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3850
    break 2
 
3851
  fi
 
3852
done
 
3853
  done
 
3854
IFS=$as_save_IFS
 
3855
 
 
3856
fi
 
3857
fi
 
3858
AR=$ac_cv_prog_AR
 
3859
if test -n "$AR"; then
 
3860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
3861
$as_echo "$AR" >&6; }
 
3862
else
 
3863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3864
$as_echo "no" >&6; }
 
3865
fi
 
3866
 
 
3867
 
 
3868
    test -n "$AR" && break
 
3869
  done
 
3870
fi
 
3871
if test -z "$AR"; then
 
3872
  ac_ct_AR=$AR
 
3873
  for ac_prog in ar lib "link -lib"
 
3874
do
 
3875
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3876
set dummy $ac_prog; ac_word=$2
 
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3878
$as_echo_n "checking for $ac_word... " >&6; }
 
3879
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
3880
  $as_echo_n "(cached) " >&6
 
3881
else
 
3882
  if test -n "$ac_ct_AR"; then
 
3883
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
3884
else
 
3885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3886
for as_dir in $PATH
 
3887
do
 
3888
  IFS=$as_save_IFS
 
3889
  test -z "$as_dir" && as_dir=.
 
3890
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3891
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3892
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
3893
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3894
    break 2
 
3895
  fi
 
3896
done
 
3897
  done
 
3898
IFS=$as_save_IFS
 
3899
 
 
3900
fi
 
3901
fi
 
3902
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
3903
if test -n "$ac_ct_AR"; then
 
3904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
3905
$as_echo "$ac_ct_AR" >&6; }
 
3906
else
 
3907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3908
$as_echo "no" >&6; }
 
3909
fi
 
3910
 
 
3911
 
 
3912
  test -n "$ac_ct_AR" && break
 
3913
done
 
3914
 
 
3915
  if test "x$ac_ct_AR" = x; then
 
3916
    AR="false"
 
3917
  else
 
3918
    case $cross_compiling:$ac_tool_warned in
 
3919
yes:)
 
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3921
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3922
ac_tool_warned=yes ;;
 
3923
esac
 
3924
    AR=$ac_ct_AR
 
3925
  fi
 
3926
fi
 
3927
 
 
3928
: ${AR=ar}
 
3929
 
 
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
 
3931
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
 
3932
if ${am_cv_ar_interface+:} false; then :
 
3933
  $as_echo_n "(cached) " >&6
 
3934
else
 
3935
  ac_ext=c
 
3936
ac_cpp='$CPP $CPPFLAGS'
 
3937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3940
 
 
3941
   am_cv_ar_interface=ar
 
3942
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3943
/* end confdefs.h.  */
 
3944
int some_variable = 0;
 
3945
_ACEOF
 
3946
if ac_fn_c_try_compile "$LINENO"; then :
 
3947
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
 
3948
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
3949
  (eval $am_ar_try) 2>&5
 
3950
  ac_status=$?
 
3951
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3952
  test $ac_status = 0; }
 
3953
      if test "$ac_status" -eq 0; then
 
3954
        am_cv_ar_interface=ar
 
3955
      else
 
3956
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
 
3957
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
3958
  (eval $am_ar_try) 2>&5
 
3959
  ac_status=$?
 
3960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3961
  test $ac_status = 0; }
 
3962
        if test "$ac_status" -eq 0; then
 
3963
          am_cv_ar_interface=lib
 
3964
        else
 
3965
          am_cv_ar_interface=unknown
 
3966
        fi
 
3967
      fi
 
3968
      rm -f conftest.lib libconftest.a
 
3969
 
 
3970
fi
 
3971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3972
   ac_ext=c
 
3973
ac_cpp='$CPP $CPPFLAGS'
 
3974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3977
 
 
3978
fi
 
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
 
3980
$as_echo "$am_cv_ar_interface" >&6; }
 
3981
 
 
3982
case $am_cv_ar_interface in
 
3983
ar)
 
3984
  ;;
 
3985
lib)
 
3986
  # Microsoft lib, so override with the ar-lib wrapper script.
 
3987
  # FIXME: It is wrong to rewrite AR.
 
3988
  # But if we don't then we get into trouble of one sort or another.
 
3989
  # A longer-term fix would be to have automake use am__AR in this case,
 
3990
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 
3991
  # similar.
 
3992
  AR="$am_aux_dir/ar-lib $AR"
 
3993
  ;;
 
3994
unknown)
 
3995
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
 
3996
  ;;
 
3997
esac
 
3998
 
 
3999
ac_ext=c
 
4000
ac_cpp='$CPP $CPPFLAGS'
 
4001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4004
if test -n "$ac_tool_prefix"; then
 
4005
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4006
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4008
$as_echo_n "checking for $ac_word... " >&6; }
 
4009
if ${ac_cv_prog_CC+:} false; then :
 
4010
  $as_echo_n "(cached) " >&6
 
4011
else
 
4012
  if test -n "$CC"; then
 
4013
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4014
else
 
4015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4016
for as_dir in $PATH
 
4017
do
 
4018
  IFS=$as_save_IFS
 
4019
  test -z "$as_dir" && as_dir=.
 
4020
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4021
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4022
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4023
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4024
    break 2
 
4025
  fi
 
4026
done
 
4027
  done
 
4028
IFS=$as_save_IFS
 
4029
 
 
4030
fi
 
4031
fi
 
4032
CC=$ac_cv_prog_CC
 
4033
if test -n "$CC"; then
 
4034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4035
$as_echo "$CC" >&6; }
 
4036
else
 
4037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4038
$as_echo "no" >&6; }
 
4039
fi
 
4040
 
 
4041
 
 
4042
fi
 
4043
if test -z "$ac_cv_prog_CC"; then
 
4044
  ac_ct_CC=$CC
 
4045
  # Extract the first word of "gcc", so it can be a program name with args.
 
4046
set dummy gcc; ac_word=$2
 
4047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4048
$as_echo_n "checking for $ac_word... " >&6; }
 
4049
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4050
  $as_echo_n "(cached) " >&6
 
4051
else
 
4052
  if test -n "$ac_ct_CC"; then
 
4053
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4054
else
 
4055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4056
for as_dir in $PATH
 
4057
do
 
4058
  IFS=$as_save_IFS
 
4059
  test -z "$as_dir" && as_dir=.
 
4060
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4061
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4062
    ac_cv_prog_ac_ct_CC="gcc"
 
4063
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4064
    break 2
 
4065
  fi
 
4066
done
 
4067
  done
 
4068
IFS=$as_save_IFS
 
4069
 
 
4070
fi
 
4071
fi
 
4072
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4073
if test -n "$ac_ct_CC"; then
 
4074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4075
$as_echo "$ac_ct_CC" >&6; }
 
4076
else
 
4077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4078
$as_echo "no" >&6; }
 
4079
fi
 
4080
 
 
4081
  if test "x$ac_ct_CC" = x; then
 
4082
    CC=""
 
4083
  else
 
4084
    case $cross_compiling:$ac_tool_warned in
 
4085
yes:)
 
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4087
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4088
ac_tool_warned=yes ;;
 
4089
esac
 
4090
    CC=$ac_ct_CC
 
4091
  fi
 
4092
else
 
4093
  CC="$ac_cv_prog_CC"
 
4094
fi
 
4095
 
 
4096
if test -z "$CC"; then
 
4097
          if test -n "$ac_tool_prefix"; then
 
4098
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4099
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4101
$as_echo_n "checking for $ac_word... " >&6; }
 
4102
if ${ac_cv_prog_CC+:} false; then :
 
4103
  $as_echo_n "(cached) " >&6
 
4104
else
 
4105
  if test -n "$CC"; then
 
4106
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4107
else
 
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4109
for as_dir in $PATH
 
4110
do
 
4111
  IFS=$as_save_IFS
 
4112
  test -z "$as_dir" && as_dir=.
 
4113
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4114
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4115
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4116
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4117
    break 2
 
4118
  fi
 
4119
done
 
4120
  done
 
4121
IFS=$as_save_IFS
 
4122
 
 
4123
fi
 
4124
fi
 
4125
CC=$ac_cv_prog_CC
 
4126
if test -n "$CC"; then
 
4127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4128
$as_echo "$CC" >&6; }
 
4129
else
 
4130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4131
$as_echo "no" >&6; }
 
4132
fi
 
4133
 
 
4134
 
 
4135
  fi
 
4136
fi
 
4137
if test -z "$CC"; then
 
4138
  # Extract the first word of "cc", so it can be a program name with args.
 
4139
set dummy cc; ac_word=$2
 
4140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4141
$as_echo_n "checking for $ac_word... " >&6; }
 
4142
if ${ac_cv_prog_CC+:} false; then :
 
4143
  $as_echo_n "(cached) " >&6
 
4144
else
 
4145
  if test -n "$CC"; then
 
4146
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4147
else
 
4148
  ac_prog_rejected=no
 
4149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4150
for as_dir in $PATH
 
4151
do
 
4152
  IFS=$as_save_IFS
 
4153
  test -z "$as_dir" && as_dir=.
 
4154
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4155
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4156
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4157
       ac_prog_rejected=yes
 
4158
       continue
 
4159
     fi
 
4160
    ac_cv_prog_CC="cc"
 
4161
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4162
    break 2
 
4163
  fi
 
4164
done
 
4165
  done
 
4166
IFS=$as_save_IFS
 
4167
 
 
4168
if test $ac_prog_rejected = yes; then
 
4169
  # We found a bogon in the path, so make sure we never use it.
 
4170
  set dummy $ac_cv_prog_CC
 
4171
  shift
 
4172
  if test $# != 0; then
 
4173
    # We chose a different compiler from the bogus one.
 
4174
    # However, it has the same basename, so the bogon will be chosen
 
4175
    # first if we set CC to just the basename; use the full file name.
 
4176
    shift
 
4177
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4178
  fi
 
4179
fi
 
4180
fi
 
4181
fi
 
4182
CC=$ac_cv_prog_CC
 
4183
if test -n "$CC"; then
 
4184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4185
$as_echo "$CC" >&6; }
 
4186
else
 
4187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4188
$as_echo "no" >&6; }
 
4189
fi
 
4190
 
 
4191
 
 
4192
fi
 
4193
if test -z "$CC"; then
 
4194
  if test -n "$ac_tool_prefix"; then
 
4195
  for ac_prog in cl.exe
 
4196
  do
 
4197
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4198
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4200
$as_echo_n "checking for $ac_word... " >&6; }
 
4201
if ${ac_cv_prog_CC+:} false; then :
 
4202
  $as_echo_n "(cached) " >&6
 
4203
else
 
4204
  if test -n "$CC"; then
 
4205
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4206
else
 
4207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4208
for as_dir in $PATH
 
4209
do
 
4210
  IFS=$as_save_IFS
 
4211
  test -z "$as_dir" && as_dir=.
 
4212
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4213
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4214
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4215
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4216
    break 2
 
4217
  fi
 
4218
done
 
4219
  done
 
4220
IFS=$as_save_IFS
 
4221
 
 
4222
fi
 
4223
fi
 
4224
CC=$ac_cv_prog_CC
 
4225
if test -n "$CC"; then
 
4226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4227
$as_echo "$CC" >&6; }
 
4228
else
 
4229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4230
$as_echo "no" >&6; }
 
4231
fi
 
4232
 
 
4233
 
 
4234
    test -n "$CC" && break
 
4235
  done
 
4236
fi
 
4237
if test -z "$CC"; then
 
4238
  ac_ct_CC=$CC
 
4239
  for ac_prog in cl.exe
 
4240
do
 
4241
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4242
set dummy $ac_prog; ac_word=$2
 
4243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4244
$as_echo_n "checking for $ac_word... " >&6; }
 
4245
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4246
  $as_echo_n "(cached) " >&6
 
4247
else
 
4248
  if test -n "$ac_ct_CC"; then
 
4249
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4250
else
 
4251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4252
for as_dir in $PATH
 
4253
do
 
4254
  IFS=$as_save_IFS
 
4255
  test -z "$as_dir" && as_dir=.
 
4256
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4257
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4258
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4260
    break 2
 
4261
  fi
 
4262
done
 
4263
  done
 
4264
IFS=$as_save_IFS
 
4265
 
 
4266
fi
 
4267
fi
 
4268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4269
if test -n "$ac_ct_CC"; then
 
4270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4271
$as_echo "$ac_ct_CC" >&6; }
 
4272
else
 
4273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4274
$as_echo "no" >&6; }
 
4275
fi
 
4276
 
 
4277
 
 
4278
  test -n "$ac_ct_CC" && break
 
4279
done
 
4280
 
 
4281
  if test "x$ac_ct_CC" = x; then
 
4282
    CC=""
 
4283
  else
 
4284
    case $cross_compiling:$ac_tool_warned in
 
4285
yes:)
 
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4287
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4288
ac_tool_warned=yes ;;
 
4289
esac
 
4290
    CC=$ac_ct_CC
 
4291
  fi
 
4292
fi
 
4293
 
 
4294
fi
 
4295
 
 
4296
 
 
4297
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4298
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4299
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4300
See \`config.log' for more details" "$LINENO" 5; }
 
4301
 
 
4302
# Provide some information about the compiler.
 
4303
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4304
set X $ac_compile
 
4305
ac_compiler=$2
 
4306
for ac_option in --version -v -V -qversion; do
 
4307
  { { ac_try="$ac_compiler $ac_option >&5"
 
4308
case "(($ac_try" in
 
4309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4310
  *) ac_try_echo=$ac_try;;
 
4311
esac
 
4312
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4313
$as_echo "$ac_try_echo"; } >&5
 
4314
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4315
  ac_status=$?
 
4316
  if test -s conftest.err; then
 
4317
    sed '10a\
 
4318
... rest of stderr output deleted ...
 
4319
         10q' conftest.err >conftest.er1
 
4320
    cat conftest.er1 >&5
 
4321
  fi
 
4322
  rm -f conftest.er1 conftest.err
 
4323
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4324
  test $ac_status = 0; }
 
4325
done
 
4326
 
 
4327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4328
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4329
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4330
  $as_echo_n "(cached) " >&6
 
4331
else
 
4332
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4333
/* end confdefs.h.  */
 
4334
 
 
4335
int
 
4336
main ()
 
4337
{
 
4338
#ifndef __GNUC__
 
4339
       choke me
 
4340
#endif
 
4341
 
 
4342
  ;
 
4343
  return 0;
 
4344
}
 
4345
_ACEOF
 
4346
if ac_fn_c_try_compile "$LINENO"; then :
 
4347
  ac_compiler_gnu=yes
 
4348
else
 
4349
  ac_compiler_gnu=no
 
4350
fi
 
4351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4352
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4353
 
 
4354
fi
 
4355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4356
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4357
if test $ac_compiler_gnu = yes; then
 
4358
  GCC=yes
 
4359
else
 
4360
  GCC=
 
4361
fi
 
4362
ac_test_CFLAGS=${CFLAGS+set}
 
4363
ac_save_CFLAGS=$CFLAGS
 
4364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4365
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4366
if ${ac_cv_prog_cc_g+:} false; then :
 
4367
  $as_echo_n "(cached) " >&6
 
4368
else
 
4369
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4370
   ac_c_werror_flag=yes
 
4371
   ac_cv_prog_cc_g=no
 
4372
   CFLAGS="-g"
 
4373
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4374
/* end confdefs.h.  */
 
4375
 
 
4376
int
 
4377
main ()
 
4378
{
 
4379
 
 
4380
  ;
 
4381
  return 0;
 
4382
}
 
4383
_ACEOF
 
4384
if ac_fn_c_try_compile "$LINENO"; then :
 
4385
  ac_cv_prog_cc_g=yes
 
4386
else
 
4387
  CFLAGS=""
 
4388
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4389
/* end confdefs.h.  */
 
4390
 
 
4391
int
 
4392
main ()
 
4393
{
 
4394
 
 
4395
  ;
 
4396
  return 0;
 
4397
}
 
4398
_ACEOF
 
4399
if ac_fn_c_try_compile "$LINENO"; then :
 
4400
 
 
4401
else
 
4402
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4403
         CFLAGS="-g"
 
4404
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4405
/* end confdefs.h.  */
 
4406
 
 
4407
int
 
4408
main ()
 
4409
{
 
4410
 
 
4411
  ;
 
4412
  return 0;
 
4413
}
 
4414
_ACEOF
 
4415
if ac_fn_c_try_compile "$LINENO"; then :
 
4416
  ac_cv_prog_cc_g=yes
 
4417
fi
 
4418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4419
fi
 
4420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4421
fi
 
4422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4423
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4424
fi
 
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4426
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4427
if test "$ac_test_CFLAGS" = set; then
 
4428
  CFLAGS=$ac_save_CFLAGS
 
4429
elif test $ac_cv_prog_cc_g = yes; then
 
4430
  if test "$GCC" = yes; then
 
4431
    CFLAGS="-g -O2"
 
4432
  else
 
4433
    CFLAGS="-g"
 
4434
  fi
 
4435
else
 
4436
  if test "$GCC" = yes; then
 
4437
    CFLAGS="-O2"
 
4438
  else
 
4439
    CFLAGS=
 
4440
  fi
 
4441
fi
 
4442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4443
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4444
if ${ac_cv_prog_cc_c89+:} false; then :
 
4445
  $as_echo_n "(cached) " >&6
 
4446
else
 
4447
  ac_cv_prog_cc_c89=no
 
4448
ac_save_CC=$CC
 
4449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4450
/* end confdefs.h.  */
 
4451
#include <stdarg.h>
 
4452
#include <stdio.h>
 
4453
struct stat;
 
4454
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4455
struct buf { int x; };
 
4456
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4457
static char *e (p, i)
 
4458
     char **p;
 
4459
     int i;
 
4460
{
 
4461
  return p[i];
 
4462
}
 
4463
static char *f (char * (*g) (char **, int), char **p, ...)
 
4464
{
 
4465
  char *s;
 
4466
  va_list v;
 
4467
  va_start (v,p);
 
4468
  s = g (p, va_arg (v,int));
 
4469
  va_end (v);
 
4470
  return s;
 
4471
}
 
4472
 
 
4473
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4474
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4475
   These don't provoke an error unfortunately, instead are silently treated
 
4476
   as 'x'.  The following induces an error, until -std is added to get
 
4477
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4478
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4479
   that's true only with -std.  */
 
4480
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4481
 
 
4482
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4483
   inside strings and character constants.  */
 
4484
#define FOO(x) 'x'
 
4485
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4486
 
 
4487
int test (int i, double x);
 
4488
struct s1 {int (*f) (int a);};
 
4489
struct s2 {int (*f) (double a);};
 
4490
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4491
int argc;
 
4492
char **argv;
 
4493
int
 
4494
main ()
 
4495
{
 
4496
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4497
  ;
 
4498
  return 0;
 
4499
}
 
4500
_ACEOF
 
4501
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4502
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4503
do
 
4504
  CC="$ac_save_CC $ac_arg"
 
4505
  if ac_fn_c_try_compile "$LINENO"; then :
 
4506
  ac_cv_prog_cc_c89=$ac_arg
 
4507
fi
 
4508
rm -f core conftest.err conftest.$ac_objext
 
4509
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4510
done
 
4511
rm -f conftest.$ac_ext
 
4512
CC=$ac_save_CC
 
4513
 
 
4514
fi
 
4515
# AC_CACHE_VAL
 
4516
case "x$ac_cv_prog_cc_c89" in
 
4517
  x)
 
4518
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4519
$as_echo "none needed" >&6; } ;;
 
4520
  xno)
 
4521
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4522
$as_echo "unsupported" >&6; } ;;
 
4523
  *)
 
4524
    CC="$CC $ac_cv_prog_cc_c89"
 
4525
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4526
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4527
esac
 
4528
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4529
 
 
4530
fi
 
4531
 
 
4532
ac_ext=c
 
4533
ac_cpp='$CPP $CPPFLAGS'
 
4534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4537
 
 
4538
ac_ext=c
 
4539
ac_cpp='$CPP $CPPFLAGS'
 
4540
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4541
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4542
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
4544
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
4545
if ${am_cv_prog_cc_c_o+:} false; then :
 
4546
  $as_echo_n "(cached) " >&6
 
4547
else
 
4548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4549
/* end confdefs.h.  */
 
4550
 
 
4551
int
 
4552
main ()
 
4553
{
 
4554
 
 
4555
  ;
 
4556
  return 0;
 
4557
}
 
4558
_ACEOF
 
4559
  # Make sure it works both with $CC and with simple cc.
 
4560
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
4561
  # compilers refuse to overwrite an existing .o file with -o,
 
4562
  # though they will create one.
 
4563
  am_cv_prog_cc_c_o=yes
 
4564
  for am_i in 1 2; do
 
4565
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
4566
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
4567
   ac_status=$?
 
4568
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4569
   (exit $ac_status); } \
 
4570
         && test -f conftest2.$ac_objext; then
 
4571
      : OK
 
4572
    else
 
4573
      am_cv_prog_cc_c_o=no
 
4574
      break
 
4575
    fi
 
4576
  done
 
4577
  rm -f core conftest*
 
4578
  unset am_i
 
4579
fi
 
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
4581
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
4582
if test "$am_cv_prog_cc_c_o" != yes; then
 
4583
   # Losing compiler, so override with the script.
 
4584
   # FIXME: It is wrong to rewrite CC.
 
4585
   # But if we don't then we get into trouble of one sort or another.
 
4586
   # A longer-term fix would be to have automake use am__CC in this case,
 
4587
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4588
   CC="$am_aux_dir/compile $CC"
 
4589
fi
 
4590
ac_ext=c
 
4591
ac_cpp='$CPP $CPPFLAGS'
 
4592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4595
 
 
4596
 
 
4597
depcc="$CC"   am_compiler_list=
 
4598
 
 
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4600
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4601
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4602
  $as_echo_n "(cached) " >&6
 
4603
else
 
4604
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4605
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4606
  # making bogus files that we don't know about and never remove.  For
 
4607
  # instance it was reported that on HP-UX the gcc test will end up
 
4608
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4609
  # in D".
 
4610
  rm -rf conftest.dir
 
4611
  mkdir conftest.dir
 
4612
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4613
  # using a relative directory.
 
4614
  cp "$am_depcomp" conftest.dir
 
4615
  cd conftest.dir
 
4616
  # We will build objects and dependencies in a subdirectory because
 
4617
  # it helps to detect inapplicable dependency modes.  For instance
 
4618
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4619
  # side effect of compilation, but ICC will put the dependencies in
 
4620
  # the current directory while Tru64 will put them in the object
 
4621
  # directory.
 
4622
  mkdir sub
 
4623
 
 
4624
  am_cv_CC_dependencies_compiler_type=none
 
4625
  if test "$am_compiler_list" = ""; then
 
4626
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4627
  fi
 
4628
  am__universal=false
 
4629
  case " $depcc " in #(
 
4630
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4631
     esac
 
4632
 
 
4633
  for depmode in $am_compiler_list; do
 
4634
    # Setup a source with many dependencies, because some compilers
 
4635
    # like to wrap large dependency lists on column 80 (with \), and
 
4636
    # we should not choose a depcomp mode which is confused by this.
 
4637
    #
 
4638
    # We need to recreate these files for each test, as the compiler may
 
4639
    # overwrite some of them when testing with obscure command lines.
 
4640
    # This happens at least with the AIX C compiler.
 
4641
    : > sub/conftest.c
 
4642
    for i in 1 2 3 4 5 6; do
 
4643
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4644
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4645
      # Solaris 10 /bin/sh.
 
4646
      echo '/* dummy */' > sub/conftst$i.h
 
4647
    done
 
4648
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4649
 
 
4650
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
4651
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4652
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4653
    # versions had trouble with output in subdirs.
 
4654
    am__obj=sub/conftest.${OBJEXT-o}
 
4655
    am__minus_obj="-o $am__obj"
 
4656
    case $depmode in
 
4657
    gcc)
 
4658
      # This depmode causes a compiler race in universal mode.
 
4659
      test "$am__universal" = false || continue
 
4660
      ;;
 
4661
    nosideeffect)
 
4662
      # After this tag, mechanisms are not by side-effect, so they'll
 
4663
      # only be used when explicitly requested.
 
4664
      if test "x$enable_dependency_tracking" = xyes; then
 
4665
        continue
 
4666
      else
 
4667
        break
 
4668
      fi
 
4669
      ;;
 
4670
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4671
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4672
      # not run yet.  These depmodes are late enough in the game, and
 
4673
      # so weak that their functioning should not be impacted.
 
4674
      am__obj=conftest.${OBJEXT-o}
 
4675
      am__minus_obj=
 
4676
      ;;
 
4677
    none) break ;;
 
4678
    esac
 
4679
    if depmode=$depmode \
 
4680
       source=sub/conftest.c object=$am__obj \
 
4681
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4682
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4683
         >/dev/null 2>conftest.err &&
 
4684
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4685
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4686
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4687
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4688
      # icc doesn't choke on unknown options, it will just issue warnings
 
4689
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4690
      # that says an option was ignored or not supported.
 
4691
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4692
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4693
      # The diagnosis changed in icc 8.0:
 
4694
      #   icc: Command line remark: option '-MP' not supported
 
4695
      if (grep 'ignoring option' conftest.err ||
 
4696
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4697
        am_cv_CC_dependencies_compiler_type=$depmode
 
4698
        break
 
4699
      fi
 
4700
    fi
 
4701
  done
 
4702
 
 
4703
  cd ..
 
4704
  rm -rf conftest.dir
 
4705
else
 
4706
  am_cv_CC_dependencies_compiler_type=none
 
4707
fi
 
4708
 
 
4709
fi
 
4710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4711
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4712
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4713
 
 
4714
 if
 
4715
  test "x$enable_dependency_tracking" != xno \
 
4716
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4717
  am__fastdepCC_TRUE=
 
4718
  am__fastdepCC_FALSE='#'
 
4719
else
 
4720
  am__fastdepCC_TRUE='#'
 
4721
  am__fastdepCC_FALSE=
 
4722
fi
 
4723
 
 
4724
 
 
4725
   case $ac_cv_prog_cc_stdc in #(
 
4726
  no) :
 
4727
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
 
4728
  *) :
 
4729
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
4730
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
4731
if ${ac_cv_prog_cc_c99+:} false; then :
 
4732
  $as_echo_n "(cached) " >&6
 
4733
else
 
4734
  ac_cv_prog_cc_c99=no
 
4735
ac_save_CC=$CC
 
4736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4737
/* end confdefs.h.  */
 
4738
#include <stdarg.h>
 
4739
#include <stdbool.h>
 
4740
#include <stdlib.h>
 
4741
#include <wchar.h>
 
4742
#include <stdio.h>
 
4743
 
 
4744
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
4745
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
4746
#define showlist(...) puts (#__VA_ARGS__)
 
4747
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
4748
static void
 
4749
test_varargs_macros (void)
 
4750
{
 
4751
  int x = 1234;
 
4752
  int y = 5678;
 
4753
  debug ("Flag");
 
4754
  debug ("X = %d\n", x);
 
4755
  showlist (The first, second, and third items.);
 
4756
  report (x>y, "x is %d but y is %d", x, y);
 
4757
}
 
4758
 
 
4759
// Check long long types.
 
4760
#define BIG64 18446744073709551615ull
 
4761
#define BIG32 4294967295ul
 
4762
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
4763
#if !BIG_OK
 
4764
  your preprocessor is broken;
 
4765
#endif
 
4766
#if BIG_OK
 
4767
#else
 
4768
  your preprocessor is broken;
 
4769
#endif
 
4770
static long long int bignum = -9223372036854775807LL;
 
4771
static unsigned long long int ubignum = BIG64;
 
4772
 
 
4773
struct incomplete_array
 
4774
{
 
4775
  int datasize;
 
4776
  double data[];
 
4777
};
 
4778
 
 
4779
struct named_init {
 
4780
  int number;
 
4781
  const wchar_t *name;
 
4782
  double average;
 
4783
};
 
4784
 
 
4785
typedef const char *ccp;
 
4786
 
 
4787
static inline int
 
4788
test_restrict (ccp restrict text)
 
4789
{
 
4790
  // See if C++-style comments work.
 
4791
  // Iterate through items via the restricted pointer.
 
4792
  // Also check for declarations in for loops.
 
4793
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
4794
    continue;
 
4795
  return 0;
 
4796
}
 
4797
 
 
4798
// Check varargs and va_copy.
 
4799
static void
 
4800
test_varargs (const char *format, ...)
 
4801
{
 
4802
  va_list args;
 
4803
  va_start (args, format);
 
4804
  va_list args_copy;
 
4805
  va_copy (args_copy, args);
 
4806
 
 
4807
  const char *str;
 
4808
  int number;
 
4809
  float fnumber;
 
4810
 
 
4811
  while (*format)
 
4812
    {
 
4813
      switch (*format++)
 
4814
        {
 
4815
        case 's': // string
 
4816
          str = va_arg (args_copy, const char *);
 
4817
          break;
 
4818
        case 'd': // int
 
4819
          number = va_arg (args_copy, int);
 
4820
          break;
 
4821
        case 'f': // float
 
4822
          fnumber = va_arg (args_copy, double);
 
4823
          break;
 
4824
        default:
 
4825
          break;
 
4826
        }
 
4827
    }
 
4828
  va_end (args_copy);
 
4829
  va_end (args);
 
4830
}
 
4831
 
 
4832
int
 
4833
main ()
 
4834
{
 
4835
 
 
4836
  // Check bool.
 
4837
  _Bool success = false;
 
4838
 
 
4839
  // Check restrict.
 
4840
  if (test_restrict ("String literal") == 0)
 
4841
    success = true;
 
4842
  char *restrict newvar = "Another string";
 
4843
 
 
4844
  // Check varargs.
 
4845
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
4846
  test_varargs_macros ();
 
4847
 
 
4848
  // Check flexible array members.
 
4849
  struct incomplete_array *ia =
 
4850
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
4851
  ia->datasize = 10;
 
4852
  for (int i = 0; i < ia->datasize; ++i)
 
4853
    ia->data[i] = i * 1.234;
 
4854
 
 
4855
  // Check named initializers.
 
4856
  struct named_init ni = {
 
4857
    .number = 34,
 
4858
    .name = L"Test wide string",
 
4859
    .average = 543.34343,
 
4860
  };
 
4861
 
 
4862
  ni.number = 58;
 
4863
 
 
4864
  int dynamic_array[ni.number];
 
4865
  dynamic_array[ni.number - 1] = 543;
 
4866
 
 
4867
  // work around unused variable warnings
 
4868
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
4869
          || dynamic_array[ni.number - 1] != 543);
 
4870
 
 
4871
  ;
 
4872
  return 0;
 
4873
}
 
4874
_ACEOF
 
4875
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
 
4876
do
 
4877
  CC="$ac_save_CC $ac_arg"
 
4878
  if ac_fn_c_try_compile "$LINENO"; then :
 
4879
  ac_cv_prog_cc_c99=$ac_arg
 
4880
fi
 
4881
rm -f core conftest.err conftest.$ac_objext
 
4882
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
4883
done
 
4884
rm -f conftest.$ac_ext
 
4885
CC=$ac_save_CC
 
4886
 
 
4887
fi
 
4888
# AC_CACHE_VAL
 
4889
case "x$ac_cv_prog_cc_c99" in
 
4890
  x)
 
4891
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4892
$as_echo "none needed" >&6; } ;;
 
4893
  xno)
 
4894
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4895
$as_echo "unsupported" >&6; } ;;
 
4896
  *)
 
4897
    CC="$CC $ac_cv_prog_cc_c99"
 
4898
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
4899
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
4900
esac
 
4901
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
4902
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
4903
else
 
4904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4905
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4906
if ${ac_cv_prog_cc_c89+:} false; then :
 
4907
  $as_echo_n "(cached) " >&6
 
4908
else
 
4909
  ac_cv_prog_cc_c89=no
 
4910
ac_save_CC=$CC
 
4911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4912
/* end confdefs.h.  */
 
4913
#include <stdarg.h>
 
4914
#include <stdio.h>
 
4915
struct stat;
 
4916
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4917
struct buf { int x; };
 
4918
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4919
static char *e (p, i)
 
4920
     char **p;
 
4921
     int i;
 
4922
{
 
4923
  return p[i];
 
4924
}
 
4925
static char *f (char * (*g) (char **, int), char **p, ...)
 
4926
{
 
4927
  char *s;
 
4928
  va_list v;
 
4929
  va_start (v,p);
 
4930
  s = g (p, va_arg (v,int));
 
4931
  va_end (v);
 
4932
  return s;
 
4933
}
 
4934
 
 
4935
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4936
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4937
   These don't provoke an error unfortunately, instead are silently treated
 
4938
   as 'x'.  The following induces an error, until -std is added to get
 
4939
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4940
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4941
   that's true only with -std.  */
 
4942
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4943
 
 
4944
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4945
   inside strings and character constants.  */
 
4946
#define FOO(x) 'x'
 
4947
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4948
 
 
4949
int test (int i, double x);
 
4950
struct s1 {int (*f) (int a);};
 
4951
struct s2 {int (*f) (double a);};
 
4952
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4953
int argc;
 
4954
char **argv;
 
4955
int
 
4956
main ()
 
4957
{
 
4958
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4959
  ;
 
4960
  return 0;
 
4961
}
 
4962
_ACEOF
 
4963
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4964
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4965
do
 
4966
  CC="$ac_save_CC $ac_arg"
 
4967
  if ac_fn_c_try_compile "$LINENO"; then :
 
4968
  ac_cv_prog_cc_c89=$ac_arg
 
4969
fi
 
4970
rm -f core conftest.err conftest.$ac_objext
 
4971
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4972
done
 
4973
rm -f conftest.$ac_ext
 
4974
CC=$ac_save_CC
 
4975
 
 
4976
fi
 
4977
# AC_CACHE_VAL
 
4978
case "x$ac_cv_prog_cc_c89" in
 
4979
  x)
 
4980
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4981
$as_echo "none needed" >&6; } ;;
 
4982
  xno)
 
4983
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4984
$as_echo "unsupported" >&6; } ;;
 
4985
  *)
 
4986
    CC="$CC $ac_cv_prog_cc_c89"
 
4987
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4988
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4989
esac
 
4990
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4991
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
4992
else
 
4993
  ac_cv_prog_cc_stdc=no
 
4994
fi
 
4995
 
 
4996
fi
 
4997
 ;;
 
4998
esac
 
4999
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
 
5000
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
 
5001
  if ${ac_cv_prog_cc_stdc+:} false; then :
 
5002
  $as_echo_n "(cached) " >&6
 
5003
fi
 
5004
 
 
5005
  case $ac_cv_prog_cc_stdc in #(
 
5006
  no) :
 
5007
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5008
$as_echo "unsupported" >&6; } ;; #(
 
5009
  '') :
 
5010
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5011
$as_echo "none needed" >&6; } ;; #(
 
5012
  *) :
 
5013
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
 
5014
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
 
5015
esac
 
5016
 
 
5017
ac_ext=c
 
5018
ac_cpp='$CPP $CPPFLAGS'
 
5019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
5023
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
5024
# On Suns, sometimes $CPP names a directory.
 
5025
if test -n "$CPP" && test -d "$CPP"; then
 
5026
  CPP=
 
5027
fi
 
5028
if test -z "$CPP"; then
 
5029
  if ${ac_cv_prog_CPP+:} false; then :
 
5030
  $as_echo_n "(cached) " >&6
 
5031
else
 
5032
      # Double quotes because CPP needs to be expanded
 
5033
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5034
    do
 
5035
      ac_preproc_ok=false
 
5036
for ac_c_preproc_warn_flag in '' yes
 
5037
do
 
5038
  # Use a header file that comes with gcc, so configuring glibc
 
5039
  # with a fresh cross-compiler works.
 
5040
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5041
  # <limits.h> exists even on freestanding compilers.
 
5042
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5043
  # not just through cpp. "Syntax error" is here to catch this case.
 
5044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5045
/* end confdefs.h.  */
 
5046
#ifdef __STDC__
 
5047
# include <limits.h>
 
5048
#else
 
5049
# include <assert.h>
 
5050
#endif
 
5051
                     Syntax error
 
5052
_ACEOF
 
5053
if ac_fn_c_try_cpp "$LINENO"; then :
 
5054
 
 
5055
else
 
5056
  # Broken: fails on valid input.
 
5057
continue
 
5058
fi
 
5059
rm -f conftest.err conftest.i conftest.$ac_ext
 
5060
 
 
5061
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5062
  # can be detected and how.
 
5063
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5064
/* end confdefs.h.  */
 
5065
#include <ac_nonexistent.h>
 
5066
_ACEOF
 
5067
if ac_fn_c_try_cpp "$LINENO"; then :
 
5068
  # Broken: success on invalid input.
 
5069
continue
 
5070
else
 
5071
  # Passes both tests.
 
5072
ac_preproc_ok=:
 
5073
break
 
5074
fi
 
5075
rm -f conftest.err conftest.i conftest.$ac_ext
 
5076
 
 
5077
done
 
5078
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5079
rm -f conftest.i conftest.err conftest.$ac_ext
 
5080
if $ac_preproc_ok; then :
 
5081
  break
 
5082
fi
 
5083
 
 
5084
    done
 
5085
    ac_cv_prog_CPP=$CPP
 
5086
 
 
5087
fi
 
5088
  CPP=$ac_cv_prog_CPP
 
5089
else
 
5090
  ac_cv_prog_CPP=$CPP
 
5091
fi
 
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
5093
$as_echo "$CPP" >&6; }
 
5094
ac_preproc_ok=false
 
5095
for ac_c_preproc_warn_flag in '' yes
 
5096
do
 
5097
  # Use a header file that comes with gcc, so configuring glibc
 
5098
  # with a fresh cross-compiler works.
 
5099
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5100
  # <limits.h> exists even on freestanding compilers.
 
5101
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5102
  # not just through cpp. "Syntax error" is here to catch this case.
 
5103
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5104
/* end confdefs.h.  */
 
5105
#ifdef __STDC__
 
5106
# include <limits.h>
 
5107
#else
 
5108
# include <assert.h>
 
5109
#endif
 
5110
                     Syntax error
 
5111
_ACEOF
 
5112
if ac_fn_c_try_cpp "$LINENO"; then :
 
5113
 
 
5114
else
 
5115
  # Broken: fails on valid input.
 
5116
continue
 
5117
fi
 
5118
rm -f conftest.err conftest.i conftest.$ac_ext
 
5119
 
 
5120
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5121
  # can be detected and how.
 
5122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5123
/* end confdefs.h.  */
 
5124
#include <ac_nonexistent.h>
 
5125
_ACEOF
 
5126
if ac_fn_c_try_cpp "$LINENO"; then :
 
5127
  # Broken: success on invalid input.
 
5128
continue
 
5129
else
 
5130
  # Passes both tests.
 
5131
ac_preproc_ok=:
 
5132
break
 
5133
fi
 
5134
rm -f conftest.err conftest.i conftest.$ac_ext
 
5135
 
 
5136
done
 
5137
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5138
rm -f conftest.i conftest.err conftest.$ac_ext
 
5139
if $ac_preproc_ok; then :
 
5140
 
 
5141
else
 
5142
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5143
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5144
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
5145
See \`config.log' for more details" "$LINENO" 5; }
 
5146
fi
 
5147
 
 
5148
ac_ext=c
 
5149
ac_cpp='$CPP $CPPFLAGS'
 
5150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5153
 
 
5154
ac_c_preproc_warn_flag=yes
 
5155
for ac_prog in 'bison -y' byacc
 
5156
do
 
5157
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5158
set dummy $ac_prog; ac_word=$2
 
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5160
$as_echo_n "checking for $ac_word... " >&6; }
 
5161
if ${ac_cv_prog_YACC+:} false; then :
 
5162
  $as_echo_n "(cached) " >&6
 
5163
else
 
5164
  if test -n "$YACC"; then
 
5165
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
5166
else
 
5167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5168
for as_dir in $PATH
 
5169
do
 
5170
  IFS=$as_save_IFS
 
5171
  test -z "$as_dir" && as_dir=.
 
5172
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5173
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5174
    ac_cv_prog_YACC="$ac_prog"
 
5175
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5176
    break 2
 
5177
  fi
 
5178
done
 
5179
  done
 
5180
IFS=$as_save_IFS
 
5181
 
 
5182
fi
 
5183
fi
 
5184
YACC=$ac_cv_prog_YACC
 
5185
if test -n "$YACC"; then
 
5186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
5187
$as_echo "$YACC" >&6; }
 
5188
else
 
5189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5190
$as_echo "no" >&6; }
 
5191
fi
 
5192
 
 
5193
 
 
5194
  test -n "$YACC" && break
 
5195
done
 
5196
test -n "$YACC" || YACC="yacc"
 
5197
 
 
5198
 
 
5199
 
 
5200
case `pwd` in
 
5201
  *\ * | *\     *)
 
5202
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5203
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5204
esac
 
5205
 
 
5206
 
 
5207
 
 
5208
macro_version='2.4.2'
 
5209
macro_revision='1.3337'
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
 
 
5215
 
 
5216
 
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
 
 
5222
 
 
5223
ltmain="$ac_aux_dir/ltmain.sh"
 
5224
 
 
5225
# Make sure we can run config.sub.
 
5226
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5227
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
5228
 
 
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
5230
$as_echo_n "checking build system type... " >&6; }
 
5231
if ${ac_cv_build+:} false; then :
 
5232
  $as_echo_n "(cached) " >&6
 
5233
else
 
5234
  ac_build_alias=$build_alias
 
5235
test "x$ac_build_alias" = x &&
 
5236
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5237
test "x$ac_build_alias" = x &&
 
5238
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
5239
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5240
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
5241
 
 
5242
fi
 
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
5244
$as_echo "$ac_cv_build" >&6; }
 
5245
case $ac_cv_build in
 
5246
*-*-*) ;;
 
5247
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
5248
esac
 
5249
build=$ac_cv_build
 
5250
ac_save_IFS=$IFS; IFS='-'
 
5251
set x $ac_cv_build
 
5252
shift
 
5253
build_cpu=$1
 
5254
build_vendor=$2
 
5255
shift; shift
 
5256
# Remember, the first character of IFS is used to create $*,
 
5257
# except with old shells:
 
5258
build_os=$*
 
5259
IFS=$ac_save_IFS
 
5260
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5261
 
 
5262
 
 
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
5264
$as_echo_n "checking host system type... " >&6; }
 
5265
if ${ac_cv_host+:} false; then :
 
5266
  $as_echo_n "(cached) " >&6
 
5267
else
 
5268
  if test "x$host_alias" = x; then
 
5269
  ac_cv_host=$ac_cv_build
 
5270
else
 
5271
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5272
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
5273
fi
 
5274
 
 
5275
fi
 
5276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5277
$as_echo "$ac_cv_host" >&6; }
 
5278
case $ac_cv_host in
 
5279
*-*-*) ;;
 
5280
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
5281
esac
 
5282
host=$ac_cv_host
 
5283
ac_save_IFS=$IFS; IFS='-'
 
5284
set x $ac_cv_host
 
5285
shift
 
5286
host_cpu=$1
 
5287
host_vendor=$2
 
5288
shift; shift
 
5289
# Remember, the first character of IFS is used to create $*,
 
5290
# except with old shells:
 
5291
host_os=$*
 
5292
IFS=$ac_save_IFS
 
5293
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5294
 
 
5295
 
 
5296
# Backslashify metacharacters that are still active within
 
5297
# double-quoted strings.
 
5298
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
5299
 
 
5300
# Same as above, but do not quote variable references.
 
5301
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
5302
 
 
5303
# Sed substitution to delay expansion of an escaped shell variable in a
 
5304
# double_quote_subst'ed string.
 
5305
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5306
 
 
5307
# Sed substitution to delay expansion of an escaped single quote.
 
5308
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5309
 
 
5310
# Sed substitution to avoid accidental globbing in evaled expressions
 
5311
no_glob_subst='s/\*/\\\*/g'
 
5312
 
 
5313
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5314
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5315
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5316
 
 
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5318
$as_echo_n "checking how to print strings... " >&6; }
 
5319
# Test print first, because it will be a builtin if present.
 
5320
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5321
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5322
  ECHO='print -r --'
 
5323
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5324
  ECHO='printf %s\n'
 
5325
else
 
5326
  # Use this function as a fallback that always works.
 
5327
  func_fallback_echo ()
 
5328
  {
 
5329
    eval 'cat <<_LTECHO_EOF
 
5330
$1
 
5331
_LTECHO_EOF'
 
5332
  }
 
5333
  ECHO='func_fallback_echo'
 
5334
fi
 
5335
 
 
5336
# func_echo_all arg...
 
5337
# Invoke $ECHO with all args, space-separated.
 
5338
func_echo_all ()
 
5339
{
 
5340
    $ECHO ""
 
5341
}
 
5342
 
 
5343
case "$ECHO" in
 
5344
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5345
$as_echo "printf" >&6; } ;;
 
5346
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5347
$as_echo "print -r" >&6; } ;;
 
5348
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5349
$as_echo "cat" >&6; } ;;
 
5350
esac
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5366
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5367
if ${ac_cv_path_SED+:} false; then :
 
5368
  $as_echo_n "(cached) " >&6
 
5369
else
 
5370
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5371
     for ac_i in 1 2 3 4 5 6 7; do
 
5372
       ac_script="$ac_script$as_nl$ac_script"
 
5373
     done
 
5374
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5375
     { ac_script=; unset ac_script;}
 
5376
     if test -z "$SED"; then
 
5377
  ac_path_SED_found=false
 
5378
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5379
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5380
for as_dir in $PATH
 
5381
do
 
5382
  IFS=$as_save_IFS
 
5383
  test -z "$as_dir" && as_dir=.
 
5384
    for ac_prog in sed gsed; do
 
5385
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5386
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5387
      as_fn_executable_p "$ac_path_SED" || continue
 
5388
# Check for GNU ac_path_SED and select it if it is found.
 
5389
  # Check for GNU $ac_path_SED
 
5390
case `"$ac_path_SED" --version 2>&1` in
 
5391
*GNU*)
 
5392
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5393
*)
 
5394
  ac_count=0
 
5395
  $as_echo_n 0123456789 >"conftest.in"
 
5396
  while :
 
5397
  do
 
5398
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5399
    mv "conftest.tmp" "conftest.in"
 
5400
    cp "conftest.in" "conftest.nl"
 
5401
    $as_echo '' >> "conftest.nl"
 
5402
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5403
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5404
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5405
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5406
      # Best one so far, save it but keep looking for a better one
 
5407
      ac_cv_path_SED="$ac_path_SED"
 
5408
      ac_path_SED_max=$ac_count
 
5409
    fi
 
5410
    # 10*(2^10) chars as input seems more than enough
 
5411
    test $ac_count -gt 10 && break
 
5412
  done
 
5413
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5414
esac
 
5415
 
 
5416
      $ac_path_SED_found && break 3
 
5417
    done
 
5418
  done
 
5419
  done
 
5420
IFS=$as_save_IFS
 
5421
  if test -z "$ac_cv_path_SED"; then
 
5422
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5423
  fi
 
5424
else
 
5425
  ac_cv_path_SED=$SED
 
5426
fi
 
5427
 
 
5428
fi
 
5429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5430
$as_echo "$ac_cv_path_SED" >&6; }
 
5431
 SED="$ac_cv_path_SED"
 
5432
  rm -f conftest.sed
 
5433
 
 
5434
test -z "$SED" && SED=sed
 
5435
Xsed="$SED -e 1s/^X//"
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
 
 
5443
 
 
5444
 
 
5445
 
 
5446
 
 
5447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5448
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5449
if ${ac_cv_path_GREP+:} false; then :
 
5450
  $as_echo_n "(cached) " >&6
 
5451
else
 
5452
  if test -z "$GREP"; then
 
5453
  ac_path_GREP_found=false
 
5454
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5455
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5456
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5457
do
 
5458
  IFS=$as_save_IFS
 
5459
  test -z "$as_dir" && as_dir=.
 
5460
    for ac_prog in grep ggrep; do
 
5461
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5462
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5463
      as_fn_executable_p "$ac_path_GREP" || continue
 
5464
# Check for GNU ac_path_GREP and select it if it is found.
 
5465
  # Check for GNU $ac_path_GREP
 
5466
case `"$ac_path_GREP" --version 2>&1` in
 
5467
*GNU*)
 
5468
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5469
*)
 
5470
  ac_count=0
 
5471
  $as_echo_n 0123456789 >"conftest.in"
 
5472
  while :
 
5473
  do
 
5474
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5475
    mv "conftest.tmp" "conftest.in"
 
5476
    cp "conftest.in" "conftest.nl"
 
5477
    $as_echo 'GREP' >> "conftest.nl"
 
5478
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5479
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5480
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5481
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5482
      # Best one so far, save it but keep looking for a better one
 
5483
      ac_cv_path_GREP="$ac_path_GREP"
 
5484
      ac_path_GREP_max=$ac_count
 
5485
    fi
 
5486
    # 10*(2^10) chars as input seems more than enough
 
5487
    test $ac_count -gt 10 && break
 
5488
  done
 
5489
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5490
esac
 
5491
 
 
5492
      $ac_path_GREP_found && break 3
 
5493
    done
 
5494
  done
 
5495
  done
 
5496
IFS=$as_save_IFS
 
5497
  if test -z "$ac_cv_path_GREP"; then
 
5498
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5499
  fi
 
5500
else
 
5501
  ac_cv_path_GREP=$GREP
 
5502
fi
 
5503
 
 
5504
fi
 
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5506
$as_echo "$ac_cv_path_GREP" >&6; }
 
5507
 GREP="$ac_cv_path_GREP"
 
5508
 
 
5509
 
 
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5511
$as_echo_n "checking for egrep... " >&6; }
 
5512
if ${ac_cv_path_EGREP+:} false; then :
 
5513
  $as_echo_n "(cached) " >&6
 
5514
else
 
5515
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5516
   then ac_cv_path_EGREP="$GREP -E"
 
5517
   else
 
5518
     if test -z "$EGREP"; then
 
5519
  ac_path_EGREP_found=false
 
5520
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5521
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5522
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5523
do
 
5524
  IFS=$as_save_IFS
 
5525
  test -z "$as_dir" && as_dir=.
 
5526
    for ac_prog in egrep; do
 
5527
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5528
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5529
      as_fn_executable_p "$ac_path_EGREP" || continue
 
5530
# Check for GNU ac_path_EGREP and select it if it is found.
 
5531
  # Check for GNU $ac_path_EGREP
 
5532
case `"$ac_path_EGREP" --version 2>&1` in
 
5533
*GNU*)
 
5534
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5535
*)
 
5536
  ac_count=0
 
5537
  $as_echo_n 0123456789 >"conftest.in"
 
5538
  while :
 
5539
  do
 
5540
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5541
    mv "conftest.tmp" "conftest.in"
 
5542
    cp "conftest.in" "conftest.nl"
 
5543
    $as_echo 'EGREP' >> "conftest.nl"
 
5544
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5545
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5546
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5547
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5548
      # Best one so far, save it but keep looking for a better one
 
5549
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5550
      ac_path_EGREP_max=$ac_count
 
5551
    fi
 
5552
    # 10*(2^10) chars as input seems more than enough
 
5553
    test $ac_count -gt 10 && break
 
5554
  done
 
5555
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5556
esac
 
5557
 
 
5558
      $ac_path_EGREP_found && break 3
 
5559
    done
 
5560
  done
 
5561
  done
 
5562
IFS=$as_save_IFS
 
5563
  if test -z "$ac_cv_path_EGREP"; then
 
5564
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5565
  fi
 
5566
else
 
5567
  ac_cv_path_EGREP=$EGREP
 
5568
fi
 
5569
 
 
5570
   fi
 
5571
fi
 
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5573
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5574
 EGREP="$ac_cv_path_EGREP"
 
5575
 
 
5576
 
 
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5578
$as_echo_n "checking for fgrep... " >&6; }
 
5579
if ${ac_cv_path_FGREP+:} false; then :
 
5580
  $as_echo_n "(cached) " >&6
 
5581
else
 
5582
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5583
   then ac_cv_path_FGREP="$GREP -F"
 
5584
   else
 
5585
     if test -z "$FGREP"; then
 
5586
  ac_path_FGREP_found=false
 
5587
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5588
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5589
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5590
do
 
5591
  IFS=$as_save_IFS
 
5592
  test -z "$as_dir" && as_dir=.
 
5593
    for ac_prog in fgrep; do
 
5594
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5595
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5596
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5597
# Check for GNU ac_path_FGREP and select it if it is found.
 
5598
  # Check for GNU $ac_path_FGREP
 
5599
case `"$ac_path_FGREP" --version 2>&1` in
 
5600
*GNU*)
 
5601
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5602
*)
 
5603
  ac_count=0
 
5604
  $as_echo_n 0123456789 >"conftest.in"
 
5605
  while :
 
5606
  do
 
5607
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5608
    mv "conftest.tmp" "conftest.in"
 
5609
    cp "conftest.in" "conftest.nl"
 
5610
    $as_echo 'FGREP' >> "conftest.nl"
 
5611
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5612
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5613
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5614
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5615
      # Best one so far, save it but keep looking for a better one
 
5616
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5617
      ac_path_FGREP_max=$ac_count
 
5618
    fi
 
5619
    # 10*(2^10) chars as input seems more than enough
 
5620
    test $ac_count -gt 10 && break
 
5621
  done
 
5622
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5623
esac
 
5624
 
 
5625
      $ac_path_FGREP_found && break 3
 
5626
    done
 
5627
  done
 
5628
  done
 
5629
IFS=$as_save_IFS
 
5630
  if test -z "$ac_cv_path_FGREP"; then
 
5631
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5632
  fi
 
5633
else
 
5634
  ac_cv_path_FGREP=$FGREP
 
5635
fi
 
5636
 
 
5637
   fi
 
5638
fi
 
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5640
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5641
 FGREP="$ac_cv_path_FGREP"
 
5642
 
 
5643
 
 
5644
test -z "$GREP" && GREP=grep
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
 
 
5653
 
 
5654
 
 
5655
 
 
5656
 
 
5657
 
 
5658
 
 
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
 
 
5664
# Check whether --with-gnu-ld was given.
 
5665
if test "${with_gnu_ld+set}" = set; then :
 
5666
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5667
else
 
5668
  with_gnu_ld=no
 
5669
fi
 
5670
 
 
5671
ac_prog=ld
 
5672
if test "$GCC" = yes; then
 
5673
  # Check if gcc -print-prog-name=ld gives a path.
 
5674
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5675
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5676
  case $host in
 
5677
  *-*-mingw*)
 
5678
    # gcc leaves a trailing carriage return which upsets mingw
 
5679
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5680
  *)
 
5681
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5682
  esac
 
5683
  case $ac_prog in
 
5684
    # Accept absolute paths.
 
5685
    [\\/]* | ?:[\\/]*)
 
5686
      re_direlt='/[^/][^/]*/\.\./'
 
5687
      # Canonicalize the pathname of ld
 
5688
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5689
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5690
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5691
      done
 
5692
      test -z "$LD" && LD="$ac_prog"
 
5693
      ;;
 
5694
  "")
 
5695
    # If it fails, then pretend we aren't using GCC.
 
5696
    ac_prog=ld
 
5697
    ;;
 
5698
  *)
 
5699
    # If it is relative, then search for the first ld in PATH.
 
5700
    with_gnu_ld=unknown
 
5701
    ;;
 
5702
  esac
 
5703
elif test "$with_gnu_ld" = yes; then
 
5704
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5705
$as_echo_n "checking for GNU ld... " >&6; }
 
5706
else
 
5707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5708
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5709
fi
 
5710
if ${lt_cv_path_LD+:} false; then :
 
5711
  $as_echo_n "(cached) " >&6
 
5712
else
 
5713
  if test -z "$LD"; then
 
5714
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5715
  for ac_dir in $PATH; do
 
5716
    IFS="$lt_save_ifs"
 
5717
    test -z "$ac_dir" && ac_dir=.
 
5718
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5719
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5720
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5721
      # but apparently some variants of GNU ld only accept -v.
 
5722
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5723
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5724
      *GNU* | *'with BFD'*)
 
5725
        test "$with_gnu_ld" != no && break
 
5726
        ;;
 
5727
      *)
 
5728
        test "$with_gnu_ld" != yes && break
 
5729
        ;;
 
5730
      esac
 
5731
    fi
 
5732
  done
 
5733
  IFS="$lt_save_ifs"
 
5734
else
 
5735
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5736
fi
 
5737
fi
 
5738
 
 
5739
LD="$lt_cv_path_LD"
 
5740
if test -n "$LD"; then
 
5741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5742
$as_echo "$LD" >&6; }
 
5743
else
 
5744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5745
$as_echo "no" >&6; }
 
5746
fi
 
5747
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5749
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5750
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5751
  $as_echo_n "(cached) " >&6
 
5752
else
 
5753
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5754
case `$LD -v 2>&1 </dev/null` in
 
5755
*GNU* | *'with BFD'*)
 
5756
  lt_cv_prog_gnu_ld=yes
 
5757
  ;;
 
5758
*)
 
5759
  lt_cv_prog_gnu_ld=no
 
5760
  ;;
 
5761
esac
 
5762
fi
 
5763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5764
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5765
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
5773
 
 
5774
 
 
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5776
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5777
if ${lt_cv_path_NM+:} false; then :
 
5778
  $as_echo_n "(cached) " >&6
 
5779
else
 
5780
  if test -n "$NM"; then
 
5781
  # Let the user override the test.
 
5782
  lt_cv_path_NM="$NM"
 
5783
else
 
5784
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5785
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5786
    lt_nm_to_check="$lt_nm_to_check nm"
 
5787
  fi
 
5788
  for lt_tmp_nm in $lt_nm_to_check; do
 
5789
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5790
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5791
      IFS="$lt_save_ifs"
 
5792
      test -z "$ac_dir" && ac_dir=.
 
5793
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5794
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5795
        # Check to see if the nm accepts a BSD-compat flag.
 
5796
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5797
        #   nm: unknown option "B" ignored
 
5798
        # Tru64's nm complains that /dev/null is an invalid object file
 
5799
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5800
        */dev/null* | *'Invalid file or object type'*)
 
5801
          lt_cv_path_NM="$tmp_nm -B"
 
5802
          break
 
5803
          ;;
 
5804
        *)
 
5805
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5806
          */dev/null*)
 
5807
            lt_cv_path_NM="$tmp_nm -p"
 
5808
            break
 
5809
            ;;
 
5810
          *)
 
5811
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5812
            continue # so that we can try to find one that supports BSD flags
 
5813
            ;;
 
5814
          esac
 
5815
          ;;
 
5816
        esac
 
5817
      fi
 
5818
    done
 
5819
    IFS="$lt_save_ifs"
 
5820
  done
 
5821
  : ${lt_cv_path_NM=no}
 
5822
fi
 
5823
fi
 
5824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5825
$as_echo "$lt_cv_path_NM" >&6; }
 
5826
if test "$lt_cv_path_NM" != "no"; then
 
5827
  NM="$lt_cv_path_NM"
 
5828
else
 
5829
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5830
  if test -n "$DUMPBIN"; then :
 
5831
    # Let the user override the test.
 
5832
  else
 
5833
    if test -n "$ac_tool_prefix"; then
 
5834
  for ac_prog in dumpbin "link -dump"
 
5835
  do
 
5836
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5839
$as_echo_n "checking for $ac_word... " >&6; }
 
5840
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5841
  $as_echo_n "(cached) " >&6
 
5842
else
 
5843
  if test -n "$DUMPBIN"; then
 
5844
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5845
else
 
5846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5847
for as_dir in $PATH
 
5848
do
 
5849
  IFS=$as_save_IFS
 
5850
  test -z "$as_dir" && as_dir=.
 
5851
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5852
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5853
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5854
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5855
    break 2
 
5856
  fi
 
5857
done
 
5858
  done
 
5859
IFS=$as_save_IFS
 
5860
 
 
5861
fi
 
5862
fi
 
5863
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5864
if test -n "$DUMPBIN"; then
 
5865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5866
$as_echo "$DUMPBIN" >&6; }
 
5867
else
 
5868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5869
$as_echo "no" >&6; }
 
5870
fi
 
5871
 
 
5872
 
 
5873
    test -n "$DUMPBIN" && break
 
5874
  done
 
5875
fi
 
5876
if test -z "$DUMPBIN"; then
 
5877
  ac_ct_DUMPBIN=$DUMPBIN
 
5878
  for ac_prog in dumpbin "link -dump"
 
5879
do
 
5880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5881
set dummy $ac_prog; ac_word=$2
 
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5883
$as_echo_n "checking for $ac_word... " >&6; }
 
5884
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5885
  $as_echo_n "(cached) " >&6
 
5886
else
 
5887
  if test -n "$ac_ct_DUMPBIN"; then
 
5888
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5889
else
 
5890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5891
for as_dir in $PATH
 
5892
do
 
5893
  IFS=$as_save_IFS
 
5894
  test -z "$as_dir" && as_dir=.
 
5895
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5896
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5897
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5899
    break 2
 
5900
  fi
 
5901
done
 
5902
  done
 
5903
IFS=$as_save_IFS
 
5904
 
 
5905
fi
 
5906
fi
 
5907
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5908
if test -n "$ac_ct_DUMPBIN"; then
 
5909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5910
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5911
else
 
5912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5913
$as_echo "no" >&6; }
 
5914
fi
 
5915
 
 
5916
 
 
5917
  test -n "$ac_ct_DUMPBIN" && break
 
5918
done
 
5919
 
 
5920
  if test "x$ac_ct_DUMPBIN" = x; then
 
5921
    DUMPBIN=":"
 
5922
  else
 
5923
    case $cross_compiling:$ac_tool_warned in
 
5924
yes:)
 
5925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5926
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5927
ac_tool_warned=yes ;;
 
5928
esac
 
5929
    DUMPBIN=$ac_ct_DUMPBIN
 
5930
  fi
 
5931
fi
 
5932
 
 
5933
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5934
    *COFF*)
 
5935
      DUMPBIN="$DUMPBIN -symbols"
 
5936
      ;;
 
5937
    *)
 
5938
      DUMPBIN=:
 
5939
      ;;
 
5940
    esac
 
5941
  fi
 
5942
 
 
5943
  if test "$DUMPBIN" != ":"; then
 
5944
    NM="$DUMPBIN"
 
5945
  fi
 
5946
fi
 
5947
test -z "$NM" && NM=nm
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5955
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5956
if ${lt_cv_nm_interface+:} false; then :
 
5957
  $as_echo_n "(cached) " >&6
 
5958
else
 
5959
  lt_cv_nm_interface="BSD nm"
 
5960
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5961
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5962
  (eval "$ac_compile" 2>conftest.err)
 
5963
  cat conftest.err >&5
 
5964
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5965
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5966
  cat conftest.err >&5
 
5967
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5968
  cat conftest.out >&5
 
5969
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5970
    lt_cv_nm_interface="MS dumpbin"
 
5971
  fi
 
5972
  rm -f conftest*
 
5973
fi
 
5974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5975
$as_echo "$lt_cv_nm_interface" >&6; }
 
5976
 
 
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5978
$as_echo_n "checking whether ln -s works... " >&6; }
 
5979
LN_S=$as_ln_s
 
5980
if test "$LN_S" = "ln -s"; then
 
5981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5982
$as_echo "yes" >&6; }
 
5983
else
 
5984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5985
$as_echo "no, using $LN_S" >&6; }
 
5986
fi
 
5987
 
 
5988
# find the maximum length of command line arguments
 
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5990
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5991
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5992
  $as_echo_n "(cached) " >&6
 
5993
else
 
5994
    i=0
 
5995
  teststring="ABCD"
 
5996
 
 
5997
  case $build_os in
 
5998
  msdosdjgpp*)
 
5999
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6000
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6001
    # during glob expansion).  Even if it were fixed, the result of this
 
6002
    # check would be larger than it should be.
 
6003
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6004
    ;;
 
6005
 
 
6006
  gnu*)
 
6007
    # Under GNU Hurd, this test is not required because there is
 
6008
    # no limit to the length of command line arguments.
 
6009
    # Libtool will interpret -1 as no limit whatsoever
 
6010
    lt_cv_sys_max_cmd_len=-1;
 
6011
    ;;
 
6012
 
 
6013
  cygwin* | mingw* | cegcc*)
 
6014
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6015
    # about 5 minutes as the teststring grows exponentially.
 
6016
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6017
    # you end up with a "frozen" computer, even though with patience
 
6018
    # the test eventually succeeds (with a max line length of 256k).
 
6019
    # Instead, let's just punt: use the minimum linelength reported by
 
6020
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6021
    lt_cv_sys_max_cmd_len=8192;
 
6022
    ;;
 
6023
 
 
6024
  mint*)
 
6025
    # On MiNT this can take a long time and run out of memory.
 
6026
    lt_cv_sys_max_cmd_len=8192;
 
6027
    ;;
 
6028
 
 
6029
  amigaos*)
 
6030
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6031
    # So we just punt and use a minimum line length of 8192.
 
6032
    lt_cv_sys_max_cmd_len=8192;
 
6033
    ;;
 
6034
 
 
6035
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6036
    # This has been around since 386BSD, at least.  Likely further.
 
6037
    if test -x /sbin/sysctl; then
 
6038
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6039
    elif test -x /usr/sbin/sysctl; then
 
6040
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6041
    else
 
6042
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6043
    fi
 
6044
    # And add a safety zone
 
6045
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6046
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6047
    ;;
 
6048
 
 
6049
  interix*)
 
6050
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6051
    lt_cv_sys_max_cmd_len=196608
 
6052
    ;;
 
6053
 
 
6054
  os2*)
 
6055
    # The test takes a long time on OS/2.
 
6056
    lt_cv_sys_max_cmd_len=8192
 
6057
    ;;
 
6058
 
 
6059
  osf*)
 
6060
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6061
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6062
    # nice to cause kernel panics so lets avoid the loop below.
 
6063
    # First set a reasonable default.
 
6064
    lt_cv_sys_max_cmd_len=16384
 
6065
    #
 
6066
    if test -x /sbin/sysconfig; then
 
6067
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6068
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6069
      esac
 
6070
    fi
 
6071
    ;;
 
6072
  sco3.2v5*)
 
6073
    lt_cv_sys_max_cmd_len=102400
 
6074
    ;;
 
6075
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6076
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6077
    if test -n "$kargmax"; then
 
6078
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6079
    else
 
6080
      lt_cv_sys_max_cmd_len=32768
 
6081
    fi
 
6082
    ;;
 
6083
  *)
 
6084
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6085
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
6086
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
6087
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6088
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6089
    else
 
6090
      # Make teststring a little bigger before we do anything with it.
 
6091
      # a 1K string should be a reasonable start.
 
6092
      for i in 1 2 3 4 5 6 7 8 ; do
 
6093
        teststring=$teststring$teststring
 
6094
      done
 
6095
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6096
      # If test is not a shell built-in, we'll probably end up computing a
 
6097
      # maximum length that is only half of the actual maximum length, but
 
6098
      # we can't tell.
 
6099
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
6100
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
6101
              test $i != 17 # 1/2 MB should be enough
 
6102
      do
 
6103
        i=`expr $i + 1`
 
6104
        teststring=$teststring$teststring
 
6105
      done
 
6106
      # Only check the string length outside the loop.
 
6107
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6108
      teststring=
 
6109
      # Add a significant safety factor because C++ compilers can tack on
 
6110
      # massive amounts of additional arguments before passing them to the
 
6111
      # linker.  It appears as though 1/2 is a usable value.
 
6112
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6113
    fi
 
6114
    ;;
 
6115
  esac
 
6116
 
 
6117
fi
 
6118
 
 
6119
if test -n $lt_cv_sys_max_cmd_len ; then
 
6120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
6121
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6122
else
 
6123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
6124
$as_echo "none" >&6; }
 
6125
fi
 
6126
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
 
 
6133
: ${CP="cp -f"}
 
6134
: ${MV="mv -f"}
 
6135
: ${RM="rm -f"}
 
6136
 
 
6137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
6138
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
6139
# Try some XSI features
 
6140
xsi_shell=no
 
6141
( _lt_dummy="a/b/c"
 
6142
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
6143
      = c,a/b,b/c, \
 
6144
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6145
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6146
  && xsi_shell=yes
 
6147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
6148
$as_echo "$xsi_shell" >&6; }
 
6149
 
 
6150
 
 
6151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
6152
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
6153
lt_shell_append=no
 
6154
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6155
    >/dev/null 2>&1 \
 
6156
  && lt_shell_append=yes
 
6157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
6158
$as_echo "$lt_shell_append" >&6; }
 
6159
 
 
6160
 
 
6161
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6162
  lt_unset=unset
 
6163
else
 
6164
  lt_unset=false
 
6165
fi
 
6166
 
 
6167
 
 
6168
 
 
6169
 
 
6170
 
 
6171
# test EBCDIC or ASCII
 
6172
case `echo X|tr X '\101'` in
 
6173
 A) # ASCII based system
 
6174
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6175
  lt_SP2NL='tr \040 \012'
 
6176
  lt_NL2SP='tr \015\012 \040\040'
 
6177
  ;;
 
6178
 *) # EBCDIC based system
 
6179
  lt_SP2NL='tr \100 \n'
 
6180
  lt_NL2SP='tr \r\n \100\100'
 
6181
  ;;
 
6182
esac
 
6183
 
 
6184
 
 
6185
 
 
6186
 
 
6187
 
 
6188
 
 
6189
 
 
6190
 
 
6191
 
 
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
6193
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
6194
if ${lt_cv_to_host_file_cmd+:} false; then :
 
6195
  $as_echo_n "(cached) " >&6
 
6196
else
 
6197
  case $host in
 
6198
  *-*-mingw* )
 
6199
    case $build in
 
6200
      *-*-mingw* ) # actually msys
 
6201
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
6202
        ;;
 
6203
      *-*-cygwin* )
 
6204
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
6205
        ;;
 
6206
      * ) # otherwise, assume *nix
 
6207
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
6208
        ;;
 
6209
    esac
 
6210
    ;;
 
6211
  *-*-cygwin* )
 
6212
    case $build in
 
6213
      *-*-mingw* ) # actually msys
 
6214
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
6215
        ;;
 
6216
      *-*-cygwin* )
 
6217
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
6218
        ;;
 
6219
      * ) # otherwise, assume *nix
 
6220
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
6221
        ;;
 
6222
    esac
 
6223
    ;;
 
6224
  * ) # unhandled hosts (and "normal" native builds)
 
6225
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
6226
    ;;
 
6227
esac
 
6228
 
 
6229
fi
 
6230
 
 
6231
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
6232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
6233
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
6234
 
 
6235
 
 
6236
 
 
6237
 
 
6238
 
 
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
6240
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
6241
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
6242
  $as_echo_n "(cached) " >&6
 
6243
else
 
6244
  #assume ordinary cross tools, or native build.
 
6245
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
6246
case $host in
 
6247
  *-*-mingw* )
 
6248
    case $build in
 
6249
      *-*-mingw* ) # actually msys
 
6250
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
6251
        ;;
 
6252
    esac
 
6253
    ;;
 
6254
esac
 
6255
 
 
6256
fi
 
6257
 
 
6258
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
6260
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
6261
 
 
6262
 
 
6263
 
 
6264
 
 
6265
 
 
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
6267
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
6268
if ${lt_cv_ld_reload_flag+:} false; then :
 
6269
  $as_echo_n "(cached) " >&6
 
6270
else
 
6271
  lt_cv_ld_reload_flag='-r'
 
6272
fi
 
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
6274
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
6275
reload_flag=$lt_cv_ld_reload_flag
 
6276
case $reload_flag in
 
6277
"" | " "*) ;;
 
6278
*) reload_flag=" $reload_flag" ;;
 
6279
esac
 
6280
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6281
case $host_os in
 
6282
  cygwin* | mingw* | pw32* | cegcc*)
 
6283
    if test "$GCC" != yes; then
 
6284
      reload_cmds=false
 
6285
    fi
 
6286
    ;;
 
6287
  darwin*)
 
6288
    if test "$GCC" = yes; then
 
6289
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6290
    else
 
6291
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6292
    fi
 
6293
    ;;
 
6294
esac
 
6295
 
 
6296
 
 
6297
 
 
6298
 
 
6299
 
 
6300
 
 
6301
 
 
6302
 
 
6303
 
 
6304
if test -n "$ac_tool_prefix"; then
 
6305
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6306
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6308
$as_echo_n "checking for $ac_word... " >&6; }
 
6309
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
6310
  $as_echo_n "(cached) " >&6
 
6311
else
 
6312
  if test -n "$OBJDUMP"; then
 
6313
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6314
else
 
6315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6316
for as_dir in $PATH
 
6317
do
 
6318
  IFS=$as_save_IFS
 
6319
  test -z "$as_dir" && as_dir=.
 
6320
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6321
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6322
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6323
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6324
    break 2
 
6325
  fi
 
6326
done
 
6327
  done
 
6328
IFS=$as_save_IFS
 
6329
 
 
6330
fi
 
6331
fi
 
6332
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6333
if test -n "$OBJDUMP"; then
 
6334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6335
$as_echo "$OBJDUMP" >&6; }
 
6336
else
 
6337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6338
$as_echo "no" >&6; }
 
6339
fi
 
6340
 
 
6341
 
 
6342
fi
 
6343
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6344
  ac_ct_OBJDUMP=$OBJDUMP
 
6345
  # Extract the first word of "objdump", so it can be a program name with args.
 
6346
set dummy objdump; ac_word=$2
 
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6348
$as_echo_n "checking for $ac_word... " >&6; }
 
6349
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
6350
  $as_echo_n "(cached) " >&6
 
6351
else
 
6352
  if test -n "$ac_ct_OBJDUMP"; then
 
6353
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6354
else
 
6355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6356
for as_dir in $PATH
 
6357
do
 
6358
  IFS=$as_save_IFS
 
6359
  test -z "$as_dir" && as_dir=.
 
6360
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6361
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6362
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6363
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6364
    break 2
 
6365
  fi
 
6366
done
 
6367
  done
 
6368
IFS=$as_save_IFS
 
6369
 
 
6370
fi
 
6371
fi
 
6372
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6373
if test -n "$ac_ct_OBJDUMP"; then
 
6374
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6375
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6376
else
 
6377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6378
$as_echo "no" >&6; }
 
6379
fi
 
6380
 
 
6381
  if test "x$ac_ct_OBJDUMP" = x; then
 
6382
    OBJDUMP="false"
 
6383
  else
 
6384
    case $cross_compiling:$ac_tool_warned in
 
6385
yes:)
 
6386
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6387
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6388
ac_tool_warned=yes ;;
 
6389
esac
 
6390
    OBJDUMP=$ac_ct_OBJDUMP
 
6391
  fi
 
6392
else
 
6393
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6394
fi
 
6395
 
 
6396
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6397
 
 
6398
 
 
6399
 
 
6400
 
 
6401
 
 
6402
 
 
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6404
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6405
if ${lt_cv_deplibs_check_method+:} false; then :
 
6406
  $as_echo_n "(cached) " >&6
 
6407
else
 
6408
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6409
lt_cv_file_magic_test_file=
 
6410
lt_cv_deplibs_check_method='unknown'
 
6411
# Need to set the preceding variable on all platforms that support
 
6412
# interlibrary dependencies.
 
6413
# 'none' -- dependencies not supported.
 
6414
# `unknown' -- same as none, but documents that we really don't know.
 
6415
# 'pass_all' -- all dependencies passed with no checks.
 
6416
# 'test_compile' -- check by making test program.
 
6417
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6418
# which responds to the $file_magic_cmd with a given extended regex.
 
6419
# If you have `file' or equivalent on your system and you're not sure
 
6420
# whether `pass_all' will *always* work, you probably want this one.
 
6421
 
 
6422
case $host_os in
 
6423
aix[4-9]*)
 
6424
  lt_cv_deplibs_check_method=pass_all
 
6425
  ;;
 
6426
 
 
6427
beos*)
 
6428
  lt_cv_deplibs_check_method=pass_all
 
6429
  ;;
 
6430
 
 
6431
bsdi[45]*)
 
6432
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6433
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6434
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6435
  ;;
 
6436
 
 
6437
cygwin*)
 
6438
  # func_win32_libid is a shell function defined in ltmain.sh
 
6439
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6440
  lt_cv_file_magic_cmd='func_win32_libid'
 
6441
  ;;
 
6442
 
 
6443
mingw* | pw32*)
 
6444
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6445
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6446
  # unless we find 'file', for example because we are cross-compiling.
 
6447
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6448
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
6449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6450
    lt_cv_file_magic_cmd='func_win32_libid'
 
6451
  else
 
6452
    # Keep this pattern in sync with the one in func_win32_libid.
 
6453
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6454
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6455
  fi
 
6456
  ;;
 
6457
 
 
6458
cegcc*)
 
6459
  # use the weaker test based on 'objdump'. See mingw*.
 
6460
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6461
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6462
  ;;
 
6463
 
 
6464
darwin* | rhapsody*)
 
6465
  lt_cv_deplibs_check_method=pass_all
 
6466
  ;;
 
6467
 
 
6468
freebsd* | dragonfly*)
 
6469
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6470
    case $host_cpu in
 
6471
    i*86 )
 
6472
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6473
      # Let's accept both of them until this is cleared up.
 
6474
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6475
      lt_cv_file_magic_cmd=/usr/bin/file
 
6476
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6477
      ;;
 
6478
    esac
 
6479
  else
 
6480
    lt_cv_deplibs_check_method=pass_all
 
6481
  fi
 
6482
  ;;
 
6483
 
 
6484
haiku*)
 
6485
  lt_cv_deplibs_check_method=pass_all
 
6486
  ;;
 
6487
 
 
6488
hpux10.20* | hpux11*)
 
6489
  lt_cv_file_magic_cmd=/usr/bin/file
 
6490
  case $host_cpu in
 
6491
  ia64*)
 
6492
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6493
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6494
    ;;
 
6495
  hppa*64*)
 
6496
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
6497
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6498
    ;;
 
6499
  *)
 
6500
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6501
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6502
    ;;
 
6503
  esac
 
6504
  ;;
 
6505
 
 
6506
interix[3-9]*)
 
6507
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6508
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6509
  ;;
 
6510
 
 
6511
irix5* | irix6* | nonstopux*)
 
6512
  case $LD in
 
6513
  *-32|*"-32 ") libmagic=32-bit;;
 
6514
  *-n32|*"-n32 ") libmagic=N32;;
 
6515
  *-64|*"-64 ") libmagic=64-bit;;
 
6516
  *) libmagic=never-match;;
 
6517
  esac
 
6518
  lt_cv_deplibs_check_method=pass_all
 
6519
  ;;
 
6520
 
 
6521
# This must be glibc/ELF.
 
6522
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
6523
  lt_cv_deplibs_check_method=pass_all
 
6524
  ;;
 
6525
 
 
6526
netbsd* | netbsdelf*-gnu)
 
6527
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6528
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6529
  else
 
6530
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6531
  fi
 
6532
  ;;
 
6533
 
 
6534
newos6*)
 
6535
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6536
  lt_cv_file_magic_cmd=/usr/bin/file
 
6537
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6538
  ;;
 
6539
 
 
6540
*nto* | *qnx*)
 
6541
  lt_cv_deplibs_check_method=pass_all
 
6542
  ;;
 
6543
 
 
6544
openbsd*)
 
6545
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6546
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6547
  else
 
6548
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6549
  fi
 
6550
  ;;
 
6551
 
 
6552
osf3* | osf4* | osf5*)
 
6553
  lt_cv_deplibs_check_method=pass_all
 
6554
  ;;
 
6555
 
 
6556
rdos*)
 
6557
  lt_cv_deplibs_check_method=pass_all
 
6558
  ;;
 
6559
 
 
6560
solaris*)
 
6561
  lt_cv_deplibs_check_method=pass_all
 
6562
  ;;
 
6563
 
 
6564
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6565
  lt_cv_deplibs_check_method=pass_all
 
6566
  ;;
 
6567
 
 
6568
sysv4 | sysv4.3*)
 
6569
  case $host_vendor in
 
6570
  motorola)
 
6571
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
6572
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6573
    ;;
 
6574
  ncr)
 
6575
    lt_cv_deplibs_check_method=pass_all
 
6576
    ;;
 
6577
  sequent)
 
6578
    lt_cv_file_magic_cmd='/bin/file'
 
6579
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6580
    ;;
 
6581
  sni)
 
6582
    lt_cv_file_magic_cmd='/bin/file'
 
6583
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6584
    lt_cv_file_magic_test_file=/lib/libc.so
 
6585
    ;;
 
6586
  siemens)
 
6587
    lt_cv_deplibs_check_method=pass_all
 
6588
    ;;
 
6589
  pc)
 
6590
    lt_cv_deplibs_check_method=pass_all
 
6591
    ;;
 
6592
  esac
 
6593
  ;;
 
6594
 
 
6595
tpf*)
 
6596
  lt_cv_deplibs_check_method=pass_all
 
6597
  ;;
 
6598
esac
 
6599
 
 
6600
fi
 
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6602
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6603
 
 
6604
file_magic_glob=
 
6605
want_nocaseglob=no
 
6606
if test "$build" = "$host"; then
 
6607
  case $host_os in
 
6608
  mingw* | pw32*)
 
6609
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6610
      want_nocaseglob=yes
 
6611
    else
 
6612
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6613
    fi
 
6614
    ;;
 
6615
  esac
 
6616
fi
 
6617
 
 
6618
file_magic_cmd=$lt_cv_file_magic_cmd
 
6619
deplibs_check_method=$lt_cv_deplibs_check_method
 
6620
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6621
 
 
6622
 
 
6623
 
 
6624
 
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
 
 
6635
 
 
6636
 
 
6637
 
 
6638
 
 
6639
 
 
6640
 
 
6641
 
 
6642
 
 
6643
if test -n "$ac_tool_prefix"; then
 
6644
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6645
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6647
$as_echo_n "checking for $ac_word... " >&6; }
 
6648
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6649
  $as_echo_n "(cached) " >&6
 
6650
else
 
6651
  if test -n "$DLLTOOL"; then
 
6652
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6653
else
 
6654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6655
for as_dir in $PATH
 
6656
do
 
6657
  IFS=$as_save_IFS
 
6658
  test -z "$as_dir" && as_dir=.
 
6659
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6660
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6661
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6662
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6663
    break 2
 
6664
  fi
 
6665
done
 
6666
  done
 
6667
IFS=$as_save_IFS
 
6668
 
 
6669
fi
 
6670
fi
 
6671
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6672
if test -n "$DLLTOOL"; then
 
6673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6674
$as_echo "$DLLTOOL" >&6; }
 
6675
else
 
6676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6677
$as_echo "no" >&6; }
 
6678
fi
 
6679
 
 
6680
 
 
6681
fi
 
6682
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6683
  ac_ct_DLLTOOL=$DLLTOOL
 
6684
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6685
set dummy dlltool; ac_word=$2
 
6686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6687
$as_echo_n "checking for $ac_word... " >&6; }
 
6688
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6689
  $as_echo_n "(cached) " >&6
 
6690
else
 
6691
  if test -n "$ac_ct_DLLTOOL"; then
 
6692
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6693
else
 
6694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6695
for as_dir in $PATH
 
6696
do
 
6697
  IFS=$as_save_IFS
 
6698
  test -z "$as_dir" && as_dir=.
 
6699
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6700
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6701
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6703
    break 2
 
6704
  fi
 
6705
done
 
6706
  done
 
6707
IFS=$as_save_IFS
 
6708
 
 
6709
fi
 
6710
fi
 
6711
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6712
if test -n "$ac_ct_DLLTOOL"; then
 
6713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6714
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6715
else
 
6716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6717
$as_echo "no" >&6; }
 
6718
fi
 
6719
 
 
6720
  if test "x$ac_ct_DLLTOOL" = x; then
 
6721
    DLLTOOL="false"
 
6722
  else
 
6723
    case $cross_compiling:$ac_tool_warned in
 
6724
yes:)
 
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6727
ac_tool_warned=yes ;;
 
6728
esac
 
6729
    DLLTOOL=$ac_ct_DLLTOOL
 
6730
  fi
 
6731
else
 
6732
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6733
fi
 
6734
 
 
6735
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6736
 
 
6737
 
 
6738
 
 
6739
 
 
6740
 
 
6741
 
 
6742
 
 
6743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6744
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6745
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6746
  $as_echo_n "(cached) " >&6
 
6747
else
 
6748
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6749
 
 
6750
case $host_os in
 
6751
cygwin* | mingw* | pw32* | cegcc*)
 
6752
  # two different shell functions defined in ltmain.sh
 
6753
  # decide which to use based on capabilities of $DLLTOOL
 
6754
  case `$DLLTOOL --help 2>&1` in
 
6755
  *--identify-strict*)
 
6756
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6757
    ;;
 
6758
  *)
 
6759
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6760
    ;;
 
6761
  esac
 
6762
  ;;
 
6763
*)
 
6764
  # fallback: assume linklib IS sharedlib
 
6765
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6766
  ;;
 
6767
esac
 
6768
 
 
6769
fi
 
6770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6771
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6772
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6773
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6774
 
 
6775
 
 
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
if test -n "$ac_tool_prefix"; then
 
6782
  for ac_prog in ar
 
6783
  do
 
6784
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6785
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6787
$as_echo_n "checking for $ac_word... " >&6; }
 
6788
if ${ac_cv_prog_AR+:} false; then :
 
6789
  $as_echo_n "(cached) " >&6
 
6790
else
 
6791
  if test -n "$AR"; then
 
6792
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6793
else
 
6794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6795
for as_dir in $PATH
 
6796
do
 
6797
  IFS=$as_save_IFS
 
6798
  test -z "$as_dir" && as_dir=.
 
6799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6800
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6801
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6803
    break 2
 
6804
  fi
 
6805
done
 
6806
  done
 
6807
IFS=$as_save_IFS
 
6808
 
 
6809
fi
 
6810
fi
 
6811
AR=$ac_cv_prog_AR
 
6812
if test -n "$AR"; then
 
6813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6814
$as_echo "$AR" >&6; }
 
6815
else
 
6816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6817
$as_echo "no" >&6; }
 
6818
fi
 
6819
 
 
6820
 
 
6821
    test -n "$AR" && break
 
6822
  done
 
6823
fi
 
6824
if test -z "$AR"; then
 
6825
  ac_ct_AR=$AR
 
6826
  for ac_prog in ar
 
6827
do
 
6828
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6829
set dummy $ac_prog; ac_word=$2
 
6830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6831
$as_echo_n "checking for $ac_word... " >&6; }
 
6832
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6833
  $as_echo_n "(cached) " >&6
 
6834
else
 
6835
  if test -n "$ac_ct_AR"; then
 
6836
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6837
else
 
6838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6839
for as_dir in $PATH
 
6840
do
 
6841
  IFS=$as_save_IFS
 
6842
  test -z "$as_dir" && as_dir=.
 
6843
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6844
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6845
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6846
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6847
    break 2
 
6848
  fi
 
6849
done
 
6850
  done
 
6851
IFS=$as_save_IFS
 
6852
 
 
6853
fi
 
6854
fi
 
6855
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6856
if test -n "$ac_ct_AR"; then
 
6857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6858
$as_echo "$ac_ct_AR" >&6; }
 
6859
else
 
6860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6861
$as_echo "no" >&6; }
 
6862
fi
 
6863
 
 
6864
 
 
6865
  test -n "$ac_ct_AR" && break
 
6866
done
 
6867
 
 
6868
  if test "x$ac_ct_AR" = x; then
 
6869
    AR="false"
 
6870
  else
 
6871
    case $cross_compiling:$ac_tool_warned in
 
6872
yes:)
 
6873
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6874
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6875
ac_tool_warned=yes ;;
 
6876
esac
 
6877
    AR=$ac_ct_AR
 
6878
  fi
 
6879
fi
 
6880
 
 
6881
: ${AR=ar}
 
6882
: ${AR_FLAGS=cru}
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6895
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6896
if ${lt_cv_ar_at_file+:} false; then :
 
6897
  $as_echo_n "(cached) " >&6
 
6898
else
 
6899
  lt_cv_ar_at_file=no
 
6900
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6901
/* end confdefs.h.  */
 
6902
 
 
6903
int
 
6904
main ()
 
6905
{
 
6906
 
 
6907
  ;
 
6908
  return 0;
 
6909
}
 
6910
_ACEOF
 
6911
if ac_fn_c_try_compile "$LINENO"; then :
 
6912
  echo conftest.$ac_objext > conftest.lst
 
6913
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6914
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6915
  (eval $lt_ar_try) 2>&5
 
6916
  ac_status=$?
 
6917
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6918
  test $ac_status = 0; }
 
6919
      if test "$ac_status" -eq 0; then
 
6920
        # Ensure the archiver fails upon bogus file names.
 
6921
        rm -f conftest.$ac_objext libconftest.a
 
6922
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6923
  (eval $lt_ar_try) 2>&5
 
6924
  ac_status=$?
 
6925
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6926
  test $ac_status = 0; }
 
6927
        if test "$ac_status" -ne 0; then
 
6928
          lt_cv_ar_at_file=@
 
6929
        fi
 
6930
      fi
 
6931
      rm -f conftest.* libconftest.a
 
6932
 
 
6933
fi
 
6934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6935
 
 
6936
fi
 
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6938
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6939
 
 
6940
if test "x$lt_cv_ar_at_file" = xno; then
 
6941
  archiver_list_spec=
 
6942
else
 
6943
  archiver_list_spec=$lt_cv_ar_at_file
 
6944
fi
 
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
 
6951
 
 
6952
if test -n "$ac_tool_prefix"; then
 
6953
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6954
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6956
$as_echo_n "checking for $ac_word... " >&6; }
 
6957
if ${ac_cv_prog_STRIP+:} false; then :
 
6958
  $as_echo_n "(cached) " >&6
 
6959
else
 
6960
  if test -n "$STRIP"; then
 
6961
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6962
else
 
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6964
for as_dir in $PATH
 
6965
do
 
6966
  IFS=$as_save_IFS
 
6967
  test -z "$as_dir" && as_dir=.
 
6968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6969
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6970
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6972
    break 2
 
6973
  fi
 
6974
done
 
6975
  done
 
6976
IFS=$as_save_IFS
 
6977
 
 
6978
fi
 
6979
fi
 
6980
STRIP=$ac_cv_prog_STRIP
 
6981
if test -n "$STRIP"; then
 
6982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6983
$as_echo "$STRIP" >&6; }
 
6984
else
 
6985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6986
$as_echo "no" >&6; }
 
6987
fi
 
6988
 
 
6989
 
 
6990
fi
 
6991
if test -z "$ac_cv_prog_STRIP"; then
 
6992
  ac_ct_STRIP=$STRIP
 
6993
  # Extract the first word of "strip", so it can be a program name with args.
 
6994
set dummy strip; ac_word=$2
 
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6996
$as_echo_n "checking for $ac_word... " >&6; }
 
6997
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6998
  $as_echo_n "(cached) " >&6
 
6999
else
 
7000
  if test -n "$ac_ct_STRIP"; then
 
7001
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7002
else
 
7003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7004
for as_dir in $PATH
 
7005
do
 
7006
  IFS=$as_save_IFS
 
7007
  test -z "$as_dir" && as_dir=.
 
7008
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7009
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7010
    ac_cv_prog_ac_ct_STRIP="strip"
 
7011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7012
    break 2
 
7013
  fi
 
7014
done
 
7015
  done
 
7016
IFS=$as_save_IFS
 
7017
 
 
7018
fi
 
7019
fi
 
7020
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7021
if test -n "$ac_ct_STRIP"; then
 
7022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
7023
$as_echo "$ac_ct_STRIP" >&6; }
 
7024
else
 
7025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7026
$as_echo "no" >&6; }
 
7027
fi
 
7028
 
 
7029
  if test "x$ac_ct_STRIP" = x; then
 
7030
    STRIP=":"
 
7031
  else
 
7032
    case $cross_compiling:$ac_tool_warned in
 
7033
yes:)
 
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7035
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7036
ac_tool_warned=yes ;;
 
7037
esac
 
7038
    STRIP=$ac_ct_STRIP
 
7039
  fi
 
7040
else
 
7041
  STRIP="$ac_cv_prog_STRIP"
 
7042
fi
 
7043
 
 
7044
test -z "$STRIP" && STRIP=:
 
7045
 
 
7046
 
 
7047
 
 
7048
 
 
7049
 
 
7050
 
 
7051
if test -n "$ac_tool_prefix"; then
 
7052
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7053
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7055
$as_echo_n "checking for $ac_word... " >&6; }
 
7056
if ${ac_cv_prog_RANLIB+:} false; then :
 
7057
  $as_echo_n "(cached) " >&6
 
7058
else
 
7059
  if test -n "$RANLIB"; then
 
7060
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7061
else
 
7062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7063
for as_dir in $PATH
 
7064
do
 
7065
  IFS=$as_save_IFS
 
7066
  test -z "$as_dir" && as_dir=.
 
7067
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7068
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7069
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7071
    break 2
 
7072
  fi
 
7073
done
 
7074
  done
 
7075
IFS=$as_save_IFS
 
7076
 
 
7077
fi
 
7078
fi
 
7079
RANLIB=$ac_cv_prog_RANLIB
 
7080
if test -n "$RANLIB"; then
 
7081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
7082
$as_echo "$RANLIB" >&6; }
 
7083
else
 
7084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7085
$as_echo "no" >&6; }
 
7086
fi
 
7087
 
 
7088
 
 
7089
fi
 
7090
if test -z "$ac_cv_prog_RANLIB"; then
 
7091
  ac_ct_RANLIB=$RANLIB
 
7092
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7093
set dummy ranlib; ac_word=$2
 
7094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7095
$as_echo_n "checking for $ac_word... " >&6; }
 
7096
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
7097
  $as_echo_n "(cached) " >&6
 
7098
else
 
7099
  if test -n "$ac_ct_RANLIB"; then
 
7100
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7101
else
 
7102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7103
for as_dir in $PATH
 
7104
do
 
7105
  IFS=$as_save_IFS
 
7106
  test -z "$as_dir" && as_dir=.
 
7107
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7108
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7109
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7110
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7111
    break 2
 
7112
  fi
 
7113
done
 
7114
  done
 
7115
IFS=$as_save_IFS
 
7116
 
 
7117
fi
 
7118
fi
 
7119
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7120
if test -n "$ac_ct_RANLIB"; then
 
7121
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
7122
$as_echo "$ac_ct_RANLIB" >&6; }
 
7123
else
 
7124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7125
$as_echo "no" >&6; }
 
7126
fi
 
7127
 
 
7128
  if test "x$ac_ct_RANLIB" = x; then
 
7129
    RANLIB=":"
 
7130
  else
 
7131
    case $cross_compiling:$ac_tool_warned in
 
7132
yes:)
 
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7134
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7135
ac_tool_warned=yes ;;
 
7136
esac
 
7137
    RANLIB=$ac_ct_RANLIB
 
7138
  fi
 
7139
else
 
7140
  RANLIB="$ac_cv_prog_RANLIB"
 
7141
fi
 
7142
 
 
7143
test -z "$RANLIB" && RANLIB=:
 
7144
 
 
7145
 
 
7146
 
 
7147
 
 
7148
 
 
7149
 
 
7150
# Determine commands to create old-style static archives.
 
7151
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7152
old_postinstall_cmds='chmod 644 $oldlib'
 
7153
old_postuninstall_cmds=
 
7154
 
 
7155
if test -n "$RANLIB"; then
 
7156
  case $host_os in
 
7157
  openbsd*)
 
7158
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
7159
    ;;
 
7160
  *)
 
7161
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
7162
    ;;
 
7163
  esac
 
7164
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
7165
fi
 
7166
 
 
7167
case $host_os in
 
7168
  darwin*)
 
7169
    lock_old_archive_extraction=yes ;;
 
7170
  *)
 
7171
    lock_old_archive_extraction=no ;;
 
7172
esac
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
# If no C compiler was specified, use CC.
 
7213
LTCC=${LTCC-"$CC"}
 
7214
 
 
7215
# If no C compiler flags were specified, use CFLAGS.
 
7216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7217
 
 
7218
# Allow CC to be a program name with arguments.
 
7219
compiler=$CC
 
7220
 
 
7221
 
 
7222
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
7224
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
7225
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
7226
  $as_echo_n "(cached) " >&6
 
7227
else
 
7228
 
 
7229
# These are sane defaults that work on at least a few old systems.
 
7230
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7231
 
 
7232
# Character class describing NM global symbol codes.
 
7233
symcode='[BCDEGRST]'
 
7234
 
 
7235
# Regexp to match symbols that can be accessed directly from C.
 
7236
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7237
 
 
7238
# Define system-specific variables.
 
7239
case $host_os in
 
7240
aix*)
 
7241
  symcode='[BCDT]'
 
7242
  ;;
 
7243
cygwin* | mingw* | pw32* | cegcc*)
 
7244
  symcode='[ABCDGISTW]'
 
7245
  ;;
 
7246
hpux*)
 
7247
  if test "$host_cpu" = ia64; then
 
7248
    symcode='[ABCDEGRST]'
 
7249
  fi
 
7250
  ;;
 
7251
irix* | nonstopux*)
 
7252
  symcode='[BCDEGRST]'
 
7253
  ;;
 
7254
osf*)
 
7255
  symcode='[BCDEGQRST]'
 
7256
  ;;
 
7257
solaris*)
 
7258
  symcode='[BDRT]'
 
7259
  ;;
 
7260
sco3.2v5*)
 
7261
  symcode='[DT]'
 
7262
  ;;
 
7263
sysv4.2uw2*)
 
7264
  symcode='[DT]'
 
7265
  ;;
 
7266
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7267
  symcode='[ABDT]'
 
7268
  ;;
 
7269
sysv4)
 
7270
  symcode='[DFNSTU]'
 
7271
  ;;
 
7272
esac
 
7273
 
 
7274
# If we're using GNU nm, then use its standard symbol codes.
 
7275
case `$NM -V 2>&1` in
 
7276
*GNU* | *'with BFD'*)
 
7277
  symcode='[ABCDGIRSTW]' ;;
 
7278
esac
 
7279
 
 
7280
# Transform an extracted symbol line into a proper C declaration.
 
7281
# Some systems (esp. on ia64) link data and code symbols differently,
 
7282
# so use this general approach.
 
7283
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7284
 
 
7285
# Transform an extracted symbol line into symbol name and symbol address
 
7286
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7287
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
7288
 
 
7289
# Handle CRLF in mingw tool chain
 
7290
opt_cr=
 
7291
case $build_os in
 
7292
mingw*)
 
7293
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7294
  ;;
 
7295
esac
 
7296
 
 
7297
# Try without a prefix underscore, then with it.
 
7298
for ac_symprfx in "" "_"; do
 
7299
 
 
7300
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7301
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7302
 
 
7303
  # Write the raw and C identifiers.
 
7304
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7305
    # Fake it for dumpbin and say T for any non-static function
 
7306
    # and D for any global variable.
 
7307
    # Also find C++ and __fastcall symbols from MSVC++,
 
7308
    # which start with @ or ?.
 
7309
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7310
"     {last_section=section; section=\$ 3};"\
 
7311
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
7312
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7313
"     \$ 0!~/External *\|/{next};"\
 
7314
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7315
"     {if(hide[section]) next};"\
 
7316
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7317
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7318
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7319
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7320
"     ' prfx=^$ac_symprfx"
 
7321
  else
 
7322
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7323
  fi
 
7324
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
7325
 
 
7326
  # Check to see that the pipe works correctly.
 
7327
  pipe_works=no
 
7328
 
 
7329
  rm -f conftest*
 
7330
  cat > conftest.$ac_ext <<_LT_EOF
 
7331
#ifdef __cplusplus
 
7332
extern "C" {
 
7333
#endif
 
7334
char nm_test_var;
 
7335
void nm_test_func(void);
 
7336
void nm_test_func(void){}
 
7337
#ifdef __cplusplus
 
7338
}
 
7339
#endif
 
7340
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7341
_LT_EOF
 
7342
 
 
7343
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7344
  (eval $ac_compile) 2>&5
 
7345
  ac_status=$?
 
7346
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7347
  test $ac_status = 0; }; then
 
7348
    # Now try to grab the symbols.
 
7349
    nlist=conftest.nm
 
7350
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7351
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7352
  ac_status=$?
 
7353
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7354
  test $ac_status = 0; } && test -s "$nlist"; then
 
7355
      # Try sorting and uniquifying the output.
 
7356
      if sort "$nlist" | uniq > "$nlist"T; then
 
7357
        mv -f "$nlist"T "$nlist"
 
7358
      else
 
7359
        rm -f "$nlist"T
 
7360
      fi
 
7361
 
 
7362
      # Make sure that we snagged all the symbols we need.
 
7363
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7364
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7365
          cat <<_LT_EOF > conftest.$ac_ext
 
7366
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7367
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
7368
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7369
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7370
# define LT_DLSYM_CONST
 
7371
#elif defined(__osf__)
 
7372
/* This system does not cope well with relocations in const data.  */
 
7373
# define LT_DLSYM_CONST
 
7374
#else
 
7375
# define LT_DLSYM_CONST const
 
7376
#endif
 
7377
 
 
7378
#ifdef __cplusplus
 
7379
extern "C" {
 
7380
#endif
 
7381
 
 
7382
_LT_EOF
 
7383
          # Now generate the symbol file.
 
7384
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7385
 
 
7386
          cat <<_LT_EOF >> conftest.$ac_ext
 
7387
 
 
7388
/* The mapping between symbol names and symbols.  */
 
7389
LT_DLSYM_CONST struct {
 
7390
  const char *name;
 
7391
  void       *address;
 
7392
}
 
7393
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7394
{
 
7395
  { "@PROGRAM@", (void *) 0 },
 
7396
_LT_EOF
 
7397
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7398
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7399
  {0, (void *) 0}
 
7400
};
 
7401
 
 
7402
/* This works around a problem in FreeBSD linker */
 
7403
#ifdef FREEBSD_WORKAROUND
 
7404
static const void *lt_preloaded_setup() {
 
7405
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7406
}
 
7407
#endif
 
7408
 
 
7409
#ifdef __cplusplus
 
7410
}
 
7411
#endif
 
7412
_LT_EOF
 
7413
          # Now try linking the two files.
 
7414
          mv conftest.$ac_objext conftstm.$ac_objext
 
7415
          lt_globsym_save_LIBS=$LIBS
 
7416
          lt_globsym_save_CFLAGS=$CFLAGS
 
7417
          LIBS="conftstm.$ac_objext"
 
7418
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7419
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7420
  (eval $ac_link) 2>&5
 
7421
  ac_status=$?
 
7422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7423
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7424
            pipe_works=yes
 
7425
          fi
 
7426
          LIBS=$lt_globsym_save_LIBS
 
7427
          CFLAGS=$lt_globsym_save_CFLAGS
 
7428
        else
 
7429
          echo "cannot find nm_test_func in $nlist" >&5
 
7430
        fi
 
7431
      else
 
7432
        echo "cannot find nm_test_var in $nlist" >&5
 
7433
      fi
 
7434
    else
 
7435
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7436
    fi
 
7437
  else
 
7438
    echo "$progname: failed program was:" >&5
 
7439
    cat conftest.$ac_ext >&5
 
7440
  fi
 
7441
  rm -rf conftest* conftst*
 
7442
 
 
7443
  # Do not use the global_symbol_pipe unless it works.
 
7444
  if test "$pipe_works" = yes; then
 
7445
    break
 
7446
  else
 
7447
    lt_cv_sys_global_symbol_pipe=
 
7448
  fi
 
7449
done
 
7450
 
 
7451
fi
 
7452
 
 
7453
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7454
  lt_cv_sys_global_symbol_to_cdecl=
 
7455
fi
 
7456
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7458
$as_echo "failed" >&6; }
 
7459
else
 
7460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7461
$as_echo "ok" >&6; }
 
7462
fi
 
7463
 
 
7464
# Response file support.
 
7465
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7466
  nm_file_list_spec='@'
 
7467
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7468
  nm_file_list_spec='@'
 
7469
fi
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
 
7475
 
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
 
 
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7498
$as_echo_n "checking for sysroot... " >&6; }
 
7499
 
 
7500
# Check whether --with-sysroot was given.
 
7501
if test "${with_sysroot+set}" = set; then :
 
7502
  withval=$with_sysroot;
 
7503
else
 
7504
  with_sysroot=no
 
7505
fi
 
7506
 
 
7507
 
 
7508
lt_sysroot=
 
7509
case ${with_sysroot} in #(
 
7510
 yes)
 
7511
   if test "$GCC" = yes; then
 
7512
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7513
   fi
 
7514
   ;; #(
 
7515
 /*)
 
7516
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7517
   ;; #(
 
7518
 no|'')
 
7519
   ;; #(
 
7520
 *)
 
7521
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7522
$as_echo "${with_sysroot}" >&6; }
 
7523
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7524
   ;;
 
7525
esac
 
7526
 
 
7527
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7528
$as_echo "${lt_sysroot:-no}" >&6; }
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
# Check whether --enable-libtool-lock was given.
 
7535
if test "${enable_libtool_lock+set}" = set; then :
 
7536
  enableval=$enable_libtool_lock;
 
7537
fi
 
7538
 
 
7539
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7540
 
 
7541
# Some flags need to be propagated to the compiler or linker for good
 
7542
# libtool support.
 
7543
case $host in
 
7544
ia64-*-hpux*)
 
7545
  # Find out which ABI we are using.
 
7546
  echo 'int i;' > conftest.$ac_ext
 
7547
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7548
  (eval $ac_compile) 2>&5
 
7549
  ac_status=$?
 
7550
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7551
  test $ac_status = 0; }; then
 
7552
    case `/usr/bin/file conftest.$ac_objext` in
 
7553
      *ELF-32*)
 
7554
        HPUX_IA64_MODE="32"
 
7555
        ;;
 
7556
      *ELF-64*)
 
7557
        HPUX_IA64_MODE="64"
 
7558
        ;;
 
7559
    esac
 
7560
  fi
 
7561
  rm -rf conftest*
 
7562
  ;;
 
7563
*-*-irix6*)
 
7564
  # Find out which ABI we are using.
 
7565
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7566
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7567
  (eval $ac_compile) 2>&5
 
7568
  ac_status=$?
 
7569
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7570
  test $ac_status = 0; }; then
 
7571
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7572
      case `/usr/bin/file conftest.$ac_objext` in
 
7573
        *32-bit*)
 
7574
          LD="${LD-ld} -melf32bsmip"
 
7575
          ;;
 
7576
        *N32*)
 
7577
          LD="${LD-ld} -melf32bmipn32"
 
7578
          ;;
 
7579
        *64-bit*)
 
7580
          LD="${LD-ld} -melf64bmip"
 
7581
        ;;
 
7582
      esac
 
7583
    else
 
7584
      case `/usr/bin/file conftest.$ac_objext` in
 
7585
        *32-bit*)
 
7586
          LD="${LD-ld} -32"
 
7587
          ;;
 
7588
        *N32*)
 
7589
          LD="${LD-ld} -n32"
 
7590
          ;;
 
7591
        *64-bit*)
 
7592
          LD="${LD-ld} -64"
 
7593
          ;;
 
7594
      esac
 
7595
    fi
 
7596
  fi
 
7597
  rm -rf conftest*
 
7598
  ;;
 
7599
 
 
7600
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
7601
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7602
  # Find out which ABI we are using.
 
7603
  echo 'int i;' > conftest.$ac_ext
 
7604
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7605
  (eval $ac_compile) 2>&5
 
7606
  ac_status=$?
 
7607
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7608
  test $ac_status = 0; }; then
 
7609
    case `/usr/bin/file conftest.o` in
 
7610
      *32-bit*)
 
7611
        case $host in
 
7612
          x86_64-*kfreebsd*-gnu)
 
7613
            LD="${LD-ld} -m elf_i386_fbsd"
 
7614
            ;;
 
7615
          x86_64-*linux*)
 
7616
            case `/usr/bin/file conftest.o` in
 
7617
              *x86-64*)
 
7618
                LD="${LD-ld} -m elf32_x86_64"
 
7619
                ;;
 
7620
              *)
 
7621
                LD="${LD-ld} -m elf_i386"
 
7622
                ;;
 
7623
            esac
 
7624
            ;;
 
7625
          powerpc64le-*)
 
7626
            LD="${LD-ld} -m elf32lppclinux"
 
7627
            ;;
 
7628
          powerpc64-*)
 
7629
            LD="${LD-ld} -m elf32ppclinux"
 
7630
            ;;
 
7631
          s390x-*linux*)
 
7632
            LD="${LD-ld} -m elf_s390"
 
7633
            ;;
 
7634
          sparc64-*linux*)
 
7635
            LD="${LD-ld} -m elf32_sparc"
 
7636
            ;;
 
7637
        esac
 
7638
        ;;
 
7639
      *64-bit*)
 
7640
        case $host in
 
7641
          x86_64-*kfreebsd*-gnu)
 
7642
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7643
            ;;
 
7644
          x86_64-*linux*)
 
7645
            LD="${LD-ld} -m elf_x86_64"
 
7646
            ;;
 
7647
          powerpcle-*)
 
7648
            LD="${LD-ld} -m elf64lppc"
 
7649
            ;;
 
7650
          powerpc-*)
 
7651
            LD="${LD-ld} -m elf64ppc"
 
7652
            ;;
 
7653
          s390*-*linux*|s390*-*tpf*)
 
7654
            LD="${LD-ld} -m elf64_s390"
 
7655
            ;;
 
7656
          sparc*-*linux*)
 
7657
            LD="${LD-ld} -m elf64_sparc"
 
7658
            ;;
 
7659
        esac
 
7660
        ;;
 
7661
    esac
 
7662
  fi
 
7663
  rm -rf conftest*
 
7664
  ;;
 
7665
 
 
7666
*-*-sco3.2v5*)
 
7667
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7668
  SAVE_CFLAGS="$CFLAGS"
 
7669
  CFLAGS="$CFLAGS -belf"
 
7670
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7671
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7672
if ${lt_cv_cc_needs_belf+:} false; then :
 
7673
  $as_echo_n "(cached) " >&6
 
7674
else
 
7675
  ac_ext=c
 
7676
ac_cpp='$CPP $CPPFLAGS'
 
7677
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7678
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7679
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7680
 
 
7681
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7682
/* end confdefs.h.  */
 
7683
 
 
7684
int
 
7685
main ()
 
7686
{
 
7687
 
 
7688
  ;
 
7689
  return 0;
 
7690
}
 
7691
_ACEOF
 
7692
if ac_fn_c_try_link "$LINENO"; then :
 
7693
  lt_cv_cc_needs_belf=yes
 
7694
else
 
7695
  lt_cv_cc_needs_belf=no
 
7696
fi
 
7697
rm -f core conftest.err conftest.$ac_objext \
 
7698
    conftest$ac_exeext conftest.$ac_ext
 
7699
     ac_ext=c
 
7700
ac_cpp='$CPP $CPPFLAGS'
 
7701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7704
 
 
7705
fi
 
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7707
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7708
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7709
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7710
    CFLAGS="$SAVE_CFLAGS"
 
7711
  fi
 
7712
  ;;
 
7713
*-*solaris*)
 
7714
  # Find out which ABI we are using.
 
7715
  echo 'int i;' > conftest.$ac_ext
 
7716
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7717
  (eval $ac_compile) 2>&5
 
7718
  ac_status=$?
 
7719
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7720
  test $ac_status = 0; }; then
 
7721
    case `/usr/bin/file conftest.o` in
 
7722
    *64-bit*)
 
7723
      case $lt_cv_prog_gnu_ld in
 
7724
      yes*)
 
7725
        case $host in
 
7726
        i?86-*-solaris*)
 
7727
          LD="${LD-ld} -m elf_x86_64"
 
7728
          ;;
 
7729
        sparc*-*-solaris*)
 
7730
          LD="${LD-ld} -m elf64_sparc"
 
7731
          ;;
 
7732
        esac
 
7733
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7734
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7735
          LD="${LD-ld}_sol2"
 
7736
        fi
 
7737
        ;;
 
7738
      *)
 
7739
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7740
          LD="${LD-ld} -64"
 
7741
        fi
 
7742
        ;;
 
7743
      esac
 
7744
      ;;
 
7745
    esac
 
7746
  fi
 
7747
  rm -rf conftest*
 
7748
  ;;
 
7749
esac
 
7750
 
 
7751
need_locks="$enable_libtool_lock"
 
7752
 
 
7753
if test -n "$ac_tool_prefix"; then
 
7754
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7755
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7757
$as_echo_n "checking for $ac_word... " >&6; }
 
7758
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7759
  $as_echo_n "(cached) " >&6
 
7760
else
 
7761
  if test -n "$MANIFEST_TOOL"; then
 
7762
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7763
else
 
7764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7765
for as_dir in $PATH
 
7766
do
 
7767
  IFS=$as_save_IFS
 
7768
  test -z "$as_dir" && as_dir=.
 
7769
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7770
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7771
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7772
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7773
    break 2
 
7774
  fi
 
7775
done
 
7776
  done
 
7777
IFS=$as_save_IFS
 
7778
 
 
7779
fi
 
7780
fi
 
7781
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7782
if test -n "$MANIFEST_TOOL"; then
 
7783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7784
$as_echo "$MANIFEST_TOOL" >&6; }
 
7785
else
 
7786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7787
$as_echo "no" >&6; }
 
7788
fi
 
7789
 
 
7790
 
 
7791
fi
 
7792
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7793
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7794
  # Extract the first word of "mt", so it can be a program name with args.
 
7795
set dummy mt; ac_word=$2
 
7796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7797
$as_echo_n "checking for $ac_word... " >&6; }
 
7798
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7799
  $as_echo_n "(cached) " >&6
 
7800
else
 
7801
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7802
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7803
else
 
7804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7805
for as_dir in $PATH
 
7806
do
 
7807
  IFS=$as_save_IFS
 
7808
  test -z "$as_dir" && as_dir=.
 
7809
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7810
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7811
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7812
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7813
    break 2
 
7814
  fi
 
7815
done
 
7816
  done
 
7817
IFS=$as_save_IFS
 
7818
 
 
7819
fi
 
7820
fi
 
7821
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7822
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7823
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7824
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7825
else
 
7826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7827
$as_echo "no" >&6; }
 
7828
fi
 
7829
 
 
7830
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7831
    MANIFEST_TOOL=":"
 
7832
  else
 
7833
    case $cross_compiling:$ac_tool_warned in
 
7834
yes:)
 
7835
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7836
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7837
ac_tool_warned=yes ;;
 
7838
esac
 
7839
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7840
  fi
 
7841
else
 
7842
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7843
fi
 
7844
 
 
7845
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7847
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7848
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7849
  $as_echo_n "(cached) " >&6
 
7850
else
 
7851
  lt_cv_path_mainfest_tool=no
 
7852
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7853
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7854
  cat conftest.err >&5
 
7855
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7856
    lt_cv_path_mainfest_tool=yes
 
7857
  fi
 
7858
  rm -f conftest*
 
7859
fi
 
7860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7861
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7862
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7863
  MANIFEST_TOOL=:
 
7864
fi
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
  case $host_os in
 
7872
    rhapsody* | darwin*)
 
7873
    if test -n "$ac_tool_prefix"; then
 
7874
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7875
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7877
$as_echo_n "checking for $ac_word... " >&6; }
 
7878
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7879
  $as_echo_n "(cached) " >&6
 
7880
else
 
7881
  if test -n "$DSYMUTIL"; then
 
7882
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7883
else
 
7884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7885
for as_dir in $PATH
 
7886
do
 
7887
  IFS=$as_save_IFS
 
7888
  test -z "$as_dir" && as_dir=.
 
7889
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7890
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7891
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7892
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7893
    break 2
 
7894
  fi
 
7895
done
 
7896
  done
 
7897
IFS=$as_save_IFS
 
7898
 
 
7899
fi
 
7900
fi
 
7901
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7902
if test -n "$DSYMUTIL"; then
 
7903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7904
$as_echo "$DSYMUTIL" >&6; }
 
7905
else
 
7906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7907
$as_echo "no" >&6; }
 
7908
fi
 
7909
 
 
7910
 
 
7911
fi
 
7912
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7913
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7914
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7915
set dummy dsymutil; ac_word=$2
 
7916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7917
$as_echo_n "checking for $ac_word... " >&6; }
 
7918
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7919
  $as_echo_n "(cached) " >&6
 
7920
else
 
7921
  if test -n "$ac_ct_DSYMUTIL"; then
 
7922
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7923
else
 
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7925
for as_dir in $PATH
 
7926
do
 
7927
  IFS=$as_save_IFS
 
7928
  test -z "$as_dir" && as_dir=.
 
7929
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7930
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7931
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7932
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7933
    break 2
 
7934
  fi
 
7935
done
 
7936
  done
 
7937
IFS=$as_save_IFS
 
7938
 
 
7939
fi
 
7940
fi
 
7941
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7942
if test -n "$ac_ct_DSYMUTIL"; then
 
7943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7944
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7945
else
 
7946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7947
$as_echo "no" >&6; }
 
7948
fi
 
7949
 
 
7950
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7951
    DSYMUTIL=":"
 
7952
  else
 
7953
    case $cross_compiling:$ac_tool_warned in
 
7954
yes:)
 
7955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7956
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7957
ac_tool_warned=yes ;;
 
7958
esac
 
7959
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7960
  fi
 
7961
else
 
7962
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7963
fi
 
7964
 
 
7965
    if test -n "$ac_tool_prefix"; then
 
7966
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7967
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7969
$as_echo_n "checking for $ac_word... " >&6; }
 
7970
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7971
  $as_echo_n "(cached) " >&6
 
7972
else
 
7973
  if test -n "$NMEDIT"; then
 
7974
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7975
else
 
7976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7977
for as_dir in $PATH
 
7978
do
 
7979
  IFS=$as_save_IFS
 
7980
  test -z "$as_dir" && as_dir=.
 
7981
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7982
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7983
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7985
    break 2
 
7986
  fi
 
7987
done
 
7988
  done
 
7989
IFS=$as_save_IFS
 
7990
 
 
7991
fi
 
7992
fi
 
7993
NMEDIT=$ac_cv_prog_NMEDIT
 
7994
if test -n "$NMEDIT"; then
 
7995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7996
$as_echo "$NMEDIT" >&6; }
 
7997
else
 
7998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7999
$as_echo "no" >&6; }
 
8000
fi
 
8001
 
 
8002
 
 
8003
fi
 
8004
if test -z "$ac_cv_prog_NMEDIT"; then
 
8005
  ac_ct_NMEDIT=$NMEDIT
 
8006
  # Extract the first word of "nmedit", so it can be a program name with args.
 
8007
set dummy nmedit; ac_word=$2
 
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8009
$as_echo_n "checking for $ac_word... " >&6; }
 
8010
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
8011
  $as_echo_n "(cached) " >&6
 
8012
else
 
8013
  if test -n "$ac_ct_NMEDIT"; then
 
8014
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
8015
else
 
8016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8017
for as_dir in $PATH
 
8018
do
 
8019
  IFS=$as_save_IFS
 
8020
  test -z "$as_dir" && as_dir=.
 
8021
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8022
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8023
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
8024
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8025
    break 2
 
8026
  fi
 
8027
done
 
8028
  done
 
8029
IFS=$as_save_IFS
 
8030
 
 
8031
fi
 
8032
fi
 
8033
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
8034
if test -n "$ac_ct_NMEDIT"; then
 
8035
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
8036
$as_echo "$ac_ct_NMEDIT" >&6; }
 
8037
else
 
8038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8039
$as_echo "no" >&6; }
 
8040
fi
 
8041
 
 
8042
  if test "x$ac_ct_NMEDIT" = x; then
 
8043
    NMEDIT=":"
 
8044
  else
 
8045
    case $cross_compiling:$ac_tool_warned in
 
8046
yes:)
 
8047
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8048
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8049
ac_tool_warned=yes ;;
 
8050
esac
 
8051
    NMEDIT=$ac_ct_NMEDIT
 
8052
  fi
 
8053
else
 
8054
  NMEDIT="$ac_cv_prog_NMEDIT"
 
8055
fi
 
8056
 
 
8057
    if test -n "$ac_tool_prefix"; then
 
8058
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
8059
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
8060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8061
$as_echo_n "checking for $ac_word... " >&6; }
 
8062
if ${ac_cv_prog_LIPO+:} false; then :
 
8063
  $as_echo_n "(cached) " >&6
 
8064
else
 
8065
  if test -n "$LIPO"; then
 
8066
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
8067
else
 
8068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8069
for as_dir in $PATH
 
8070
do
 
8071
  IFS=$as_save_IFS
 
8072
  test -z "$as_dir" && as_dir=.
 
8073
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8074
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8075
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
8076
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8077
    break 2
 
8078
  fi
 
8079
done
 
8080
  done
 
8081
IFS=$as_save_IFS
 
8082
 
 
8083
fi
 
8084
fi
 
8085
LIPO=$ac_cv_prog_LIPO
 
8086
if test -n "$LIPO"; then
 
8087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
8088
$as_echo "$LIPO" >&6; }
 
8089
else
 
8090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8091
$as_echo "no" >&6; }
 
8092
fi
 
8093
 
 
8094
 
 
8095
fi
 
8096
if test -z "$ac_cv_prog_LIPO"; then
 
8097
  ac_ct_LIPO=$LIPO
 
8098
  # Extract the first word of "lipo", so it can be a program name with args.
 
8099
set dummy lipo; ac_word=$2
 
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8101
$as_echo_n "checking for $ac_word... " >&6; }
 
8102
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
8103
  $as_echo_n "(cached) " >&6
 
8104
else
 
8105
  if test -n "$ac_ct_LIPO"; then
 
8106
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
8107
else
 
8108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8109
for as_dir in $PATH
 
8110
do
 
8111
  IFS=$as_save_IFS
 
8112
  test -z "$as_dir" && as_dir=.
 
8113
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8114
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8115
    ac_cv_prog_ac_ct_LIPO="lipo"
 
8116
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8117
    break 2
 
8118
  fi
 
8119
done
 
8120
  done
 
8121
IFS=$as_save_IFS
 
8122
 
 
8123
fi
 
8124
fi
 
8125
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
8126
if test -n "$ac_ct_LIPO"; then
 
8127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8128
$as_echo "$ac_ct_LIPO" >&6; }
 
8129
else
 
8130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8131
$as_echo "no" >&6; }
 
8132
fi
 
8133
 
 
8134
  if test "x$ac_ct_LIPO" = x; then
 
8135
    LIPO=":"
 
8136
  else
 
8137
    case $cross_compiling:$ac_tool_warned in
 
8138
yes:)
 
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8140
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8141
ac_tool_warned=yes ;;
 
8142
esac
 
8143
    LIPO=$ac_ct_LIPO
 
8144
  fi
 
8145
else
 
8146
  LIPO="$ac_cv_prog_LIPO"
 
8147
fi
 
8148
 
 
8149
    if test -n "$ac_tool_prefix"; then
 
8150
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8151
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8153
$as_echo_n "checking for $ac_word... " >&6; }
 
8154
if ${ac_cv_prog_OTOOL+:} false; then :
 
8155
  $as_echo_n "(cached) " >&6
 
8156
else
 
8157
  if test -n "$OTOOL"; then
 
8158
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8159
else
 
8160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8161
for as_dir in $PATH
 
8162
do
 
8163
  IFS=$as_save_IFS
 
8164
  test -z "$as_dir" && as_dir=.
 
8165
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8166
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8167
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8168
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8169
    break 2
 
8170
  fi
 
8171
done
 
8172
  done
 
8173
IFS=$as_save_IFS
 
8174
 
 
8175
fi
 
8176
fi
 
8177
OTOOL=$ac_cv_prog_OTOOL
 
8178
if test -n "$OTOOL"; then
 
8179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
8180
$as_echo "$OTOOL" >&6; }
 
8181
else
 
8182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8183
$as_echo "no" >&6; }
 
8184
fi
 
8185
 
 
8186
 
 
8187
fi
 
8188
if test -z "$ac_cv_prog_OTOOL"; then
 
8189
  ac_ct_OTOOL=$OTOOL
 
8190
  # Extract the first word of "otool", so it can be a program name with args.
 
8191
set dummy otool; ac_word=$2
 
8192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8193
$as_echo_n "checking for $ac_word... " >&6; }
 
8194
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
8195
  $as_echo_n "(cached) " >&6
 
8196
else
 
8197
  if test -n "$ac_ct_OTOOL"; then
 
8198
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8199
else
 
8200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8201
for as_dir in $PATH
 
8202
do
 
8203
  IFS=$as_save_IFS
 
8204
  test -z "$as_dir" && as_dir=.
 
8205
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8206
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8207
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8208
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8209
    break 2
 
8210
  fi
 
8211
done
 
8212
  done
 
8213
IFS=$as_save_IFS
 
8214
 
 
8215
fi
 
8216
fi
 
8217
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8218
if test -n "$ac_ct_OTOOL"; then
 
8219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8220
$as_echo "$ac_ct_OTOOL" >&6; }
 
8221
else
 
8222
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8223
$as_echo "no" >&6; }
 
8224
fi
 
8225
 
 
8226
  if test "x$ac_ct_OTOOL" = x; then
 
8227
    OTOOL=":"
 
8228
  else
 
8229
    case $cross_compiling:$ac_tool_warned in
 
8230
yes:)
 
8231
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8232
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8233
ac_tool_warned=yes ;;
 
8234
esac
 
8235
    OTOOL=$ac_ct_OTOOL
 
8236
  fi
 
8237
else
 
8238
  OTOOL="$ac_cv_prog_OTOOL"
 
8239
fi
 
8240
 
 
8241
    if test -n "$ac_tool_prefix"; then
 
8242
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8243
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8245
$as_echo_n "checking for $ac_word... " >&6; }
 
8246
if ${ac_cv_prog_OTOOL64+:} false; then :
 
8247
  $as_echo_n "(cached) " >&6
 
8248
else
 
8249
  if test -n "$OTOOL64"; then
 
8250
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8251
else
 
8252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8253
for as_dir in $PATH
 
8254
do
 
8255
  IFS=$as_save_IFS
 
8256
  test -z "$as_dir" && as_dir=.
 
8257
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8258
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8259
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8260
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8261
    break 2
 
8262
  fi
 
8263
done
 
8264
  done
 
8265
IFS=$as_save_IFS
 
8266
 
 
8267
fi
 
8268
fi
 
8269
OTOOL64=$ac_cv_prog_OTOOL64
 
8270
if test -n "$OTOOL64"; then
 
8271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8272
$as_echo "$OTOOL64" >&6; }
 
8273
else
 
8274
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8275
$as_echo "no" >&6; }
 
8276
fi
 
8277
 
 
8278
 
 
8279
fi
 
8280
if test -z "$ac_cv_prog_OTOOL64"; then
 
8281
  ac_ct_OTOOL64=$OTOOL64
 
8282
  # Extract the first word of "otool64", so it can be a program name with args.
 
8283
set dummy otool64; ac_word=$2
 
8284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8285
$as_echo_n "checking for $ac_word... " >&6; }
 
8286
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
8287
  $as_echo_n "(cached) " >&6
 
8288
else
 
8289
  if test -n "$ac_ct_OTOOL64"; then
 
8290
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8291
else
 
8292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8293
for as_dir in $PATH
 
8294
do
 
8295
  IFS=$as_save_IFS
 
8296
  test -z "$as_dir" && as_dir=.
 
8297
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8298
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8299
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8300
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8301
    break 2
 
8302
  fi
 
8303
done
 
8304
  done
 
8305
IFS=$as_save_IFS
 
8306
 
 
8307
fi
 
8308
fi
 
8309
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8310
if test -n "$ac_ct_OTOOL64"; then
 
8311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8312
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8313
else
 
8314
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8315
$as_echo "no" >&6; }
 
8316
fi
 
8317
 
 
8318
  if test "x$ac_ct_OTOOL64" = x; then
 
8319
    OTOOL64=":"
 
8320
  else
 
8321
    case $cross_compiling:$ac_tool_warned in
 
8322
yes:)
 
8323
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8325
ac_tool_warned=yes ;;
 
8326
esac
 
8327
    OTOOL64=$ac_ct_OTOOL64
 
8328
  fi
 
8329
else
 
8330
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8331
fi
 
8332
 
 
8333
 
 
8334
 
 
8335
 
 
8336
 
 
8337
 
 
8338
 
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
 
 
8349
 
 
8350
 
 
8351
 
 
8352
 
 
8353
 
 
8354
 
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8360
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8361
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
8362
  $as_echo_n "(cached) " >&6
 
8363
else
 
8364
  lt_cv_apple_cc_single_mod=no
 
8365
      if test -z "${LT_MULTI_MODULE}"; then
 
8366
        # By default we will add the -single_module flag. You can override
 
8367
        # by either setting the environment variable LT_MULTI_MODULE
 
8368
        # non-empty at configure time, or by adding -multi_module to the
 
8369
        # link flags.
 
8370
        rm -rf libconftest.dylib*
 
8371
        echo "int foo(void){return 1;}" > conftest.c
 
8372
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8373
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8374
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8375
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8376
        _lt_result=$?
 
8377
        # If there is a non-empty error log, and "single_module"
 
8378
        # appears in it, assume the flag caused a linker warning
 
8379
        if test -s conftest.err && $GREP single_module conftest.err; then
 
8380
          cat conftest.err >&5
 
8381
        # Otherwise, if the output was created with a 0 exit code from
 
8382
        # the compiler, it worked.
 
8383
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
8384
          lt_cv_apple_cc_single_mod=yes
 
8385
        else
 
8386
          cat conftest.err >&5
 
8387
        fi
 
8388
        rm -rf libconftest.dylib*
 
8389
        rm -f conftest.*
 
8390
      fi
 
8391
fi
 
8392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8393
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8394
 
 
8395
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8396
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8397
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
8398
  $as_echo_n "(cached) " >&6
 
8399
else
 
8400
  lt_cv_ld_exported_symbols_list=no
 
8401
      save_LDFLAGS=$LDFLAGS
 
8402
      echo "_main" > conftest.sym
 
8403
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8404
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8405
/* end confdefs.h.  */
 
8406
 
 
8407
int
 
8408
main ()
 
8409
{
 
8410
 
 
8411
  ;
 
8412
  return 0;
 
8413
}
 
8414
_ACEOF
 
8415
if ac_fn_c_try_link "$LINENO"; then :
 
8416
  lt_cv_ld_exported_symbols_list=yes
 
8417
else
 
8418
  lt_cv_ld_exported_symbols_list=no
 
8419
fi
 
8420
rm -f core conftest.err conftest.$ac_objext \
 
8421
    conftest$ac_exeext conftest.$ac_ext
 
8422
        LDFLAGS="$save_LDFLAGS"
 
8423
 
 
8424
fi
 
8425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8426
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8427
 
 
8428
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8429
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8430
if ${lt_cv_ld_force_load+:} false; then :
 
8431
  $as_echo_n "(cached) " >&6
 
8432
else
 
8433
  lt_cv_ld_force_load=no
 
8434
      cat > conftest.c << _LT_EOF
 
8435
int forced_loaded() { return 2;}
 
8436
_LT_EOF
 
8437
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8438
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8439
      echo "$AR cru libconftest.a conftest.o" >&5
 
8440
      $AR cru libconftest.a conftest.o 2>&5
 
8441
      echo "$RANLIB libconftest.a" >&5
 
8442
      $RANLIB libconftest.a 2>&5
 
8443
      cat > conftest.c << _LT_EOF
 
8444
int main() { return 0;}
 
8445
_LT_EOF
 
8446
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8447
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8448
      _lt_result=$?
 
8449
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8450
        cat conftest.err >&5
 
8451
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
8452
        lt_cv_ld_force_load=yes
 
8453
      else
 
8454
        cat conftest.err >&5
 
8455
      fi
 
8456
        rm -f conftest.err libconftest.a conftest conftest.c
 
8457
        rm -rf conftest.dSYM
 
8458
 
 
8459
fi
 
8460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8461
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8462
    case $host_os in
 
8463
    rhapsody* | darwin1.[012])
 
8464
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8465
    darwin1.*)
 
8466
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8467
    darwin*) # darwin 5.x on
 
8468
      # if running on 10.5 or later, the deployment target defaults
 
8469
      # to the OS version, if on x86, and 10.4, the deployment
 
8470
      # target defaults to 10.4. Don't you love it?
 
8471
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8472
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8473
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8474
        10.[012]*)
 
8475
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8476
        10.*)
 
8477
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8478
      esac
 
8479
    ;;
 
8480
  esac
 
8481
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8482
      _lt_dar_single_mod='$single_module'
 
8483
    fi
 
8484
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8485
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8486
    else
 
8487
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8488
    fi
 
8489
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8490
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8491
    else
 
8492
      _lt_dsymutil=
 
8493
    fi
 
8494
    ;;
 
8495
  esac
 
8496
 
 
8497
 
 
8498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8499
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8500
if ${ac_cv_header_stdc+:} false; then :
 
8501
  $as_echo_n "(cached) " >&6
 
8502
else
 
8503
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8504
/* end confdefs.h.  */
 
8505
#include <stdlib.h>
 
8506
#include <stdarg.h>
 
8507
#include <string.h>
 
8508
#include <float.h>
 
8509
 
 
8510
int
 
8511
main ()
 
8512
{
 
8513
 
 
8514
  ;
 
8515
  return 0;
 
8516
}
 
8517
_ACEOF
 
8518
if ac_fn_c_try_compile "$LINENO"; then :
 
8519
  ac_cv_header_stdc=yes
 
8520
else
 
8521
  ac_cv_header_stdc=no
 
8522
fi
 
8523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8524
 
 
8525
if test $ac_cv_header_stdc = yes; then
 
8526
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8528
/* end confdefs.h.  */
 
8529
#include <string.h>
 
8530
 
 
8531
_ACEOF
 
8532
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8533
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8534
 
 
8535
else
 
8536
  ac_cv_header_stdc=no
 
8537
fi
 
8538
rm -f conftest*
 
8539
 
 
8540
fi
 
8541
 
 
8542
if test $ac_cv_header_stdc = yes; then
 
8543
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8545
/* end confdefs.h.  */
 
8546
#include <stdlib.h>
 
8547
 
 
8548
_ACEOF
 
8549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8550
  $EGREP "free" >/dev/null 2>&1; then :
 
8551
 
 
8552
else
 
8553
  ac_cv_header_stdc=no
 
8554
fi
 
8555
rm -f conftest*
 
8556
 
 
8557
fi
 
8558
 
 
8559
if test $ac_cv_header_stdc = yes; then
 
8560
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8561
  if test "$cross_compiling" = yes; then :
 
8562
  :
 
8563
else
 
8564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8565
/* end confdefs.h.  */
 
8566
#include <ctype.h>
 
8567
#include <stdlib.h>
 
8568
#if ((' ' & 0x0FF) == 0x020)
 
8569
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8570
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8571
#else
 
8572
# define ISLOWER(c) \
 
8573
                   (('a' <= (c) && (c) <= 'i') \
 
8574
                     || ('j' <= (c) && (c) <= 'r') \
 
8575
                     || ('s' <= (c) && (c) <= 'z'))
 
8576
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8577
#endif
 
8578
 
 
8579
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8580
int
 
8581
main ()
 
8582
{
 
8583
  int i;
 
8584
  for (i = 0; i < 256; i++)
 
8585
    if (XOR (islower (i), ISLOWER (i))
 
8586
        || toupper (i) != TOUPPER (i))
 
8587
      return 2;
 
8588
  return 0;
 
8589
}
 
8590
_ACEOF
 
8591
if ac_fn_c_try_run "$LINENO"; then :
 
8592
 
 
8593
else
 
8594
  ac_cv_header_stdc=no
 
8595
fi
 
8596
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8597
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8598
fi
 
8599
 
 
8600
fi
 
8601
fi
 
8602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8603
$as_echo "$ac_cv_header_stdc" >&6; }
 
8604
if test $ac_cv_header_stdc = yes; then
 
8605
 
 
8606
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8607
 
 
8608
fi
 
8609
 
 
8610
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8611
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8612
                  inttypes.h stdint.h unistd.h
 
8613
do :
 
8614
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8615
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8616
"
 
8617
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8618
  cat >>confdefs.h <<_ACEOF
 
8619
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8620
_ACEOF
 
8621
 
 
8622
fi
 
8623
 
 
8624
done
 
8625
 
 
8626
 
 
8627
for ac_header in dlfcn.h
 
8628
do :
 
8629
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8630
"
 
8631
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8632
  cat >>confdefs.h <<_ACEOF
 
8633
#define HAVE_DLFCN_H 1
 
8634
_ACEOF
 
8635
 
 
8636
fi
 
8637
 
 
8638
done
 
8639
 
 
8640
 
 
8641
 
 
8642
 
 
8643
 
 
8644
# Set options
 
8645
# Check whether --enable-shared was given.
 
8646
if test "${enable_shared+set}" = set; then :
 
8647
  enableval=$enable_shared; p=${PACKAGE-default}
 
8648
    case $enableval in
 
8649
    yes) enable_shared=yes ;;
 
8650
    no) enable_shared=no ;;
 
8651
    *)
 
8652
      enable_shared=no
 
8653
      # Look at the argument we got.  We use all the common list separators.
 
8654
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8655
      for pkg in $enableval; do
 
8656
        IFS="$lt_save_ifs"
 
8657
        if test "X$pkg" = "X$p"; then
 
8658
          enable_shared=yes
 
8659
        fi
 
8660
      done
 
8661
      IFS="$lt_save_ifs"
 
8662
      ;;
 
8663
    esac
 
8664
else
 
8665
  enable_shared=yes
 
8666
fi
 
8667
 
 
8668
 
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
 
 
8674
# Check whether --enable-static was given.
 
8675
if test "${enable_static+set}" = set; then :
 
8676
  enableval=$enable_static; p=${PACKAGE-default}
 
8677
    case $enableval in
 
8678
    yes) enable_static=yes ;;
 
8679
    no) enable_static=no ;;
 
8680
    *)
 
8681
     enable_static=no
 
8682
      # Look at the argument we got.  We use all the common list separators.
 
8683
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8684
      for pkg in $enableval; do
 
8685
        IFS="$lt_save_ifs"
 
8686
        if test "X$pkg" = "X$p"; then
 
8687
          enable_static=yes
 
8688
        fi
 
8689
      done
 
8690
      IFS="$lt_save_ifs"
 
8691
      ;;
 
8692
    esac
 
8693
else
 
8694
  enable_static=yes
 
8695
fi
 
8696
 
 
8697
 
 
8698
 
 
8699
 
 
8700
 
 
8701
 
 
8702
 
 
8703
enable_win32_dll=yes
 
8704
 
 
8705
case $host in
 
8706
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
8707
  if test -n "$ac_tool_prefix"; then
 
8708
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
8709
set dummy ${ac_tool_prefix}as; ac_word=$2
 
8710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8711
$as_echo_n "checking for $ac_word... " >&6; }
 
8712
if ${ac_cv_prog_AS+:} false; then :
 
8713
  $as_echo_n "(cached) " >&6
 
8714
else
 
8715
  if test -n "$AS"; then
 
8716
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
8717
else
 
8718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8719
for as_dir in $PATH
 
8720
do
 
8721
  IFS=$as_save_IFS
 
8722
  test -z "$as_dir" && as_dir=.
 
8723
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8724
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8725
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
8726
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8727
    break 2
 
8728
  fi
 
8729
done
 
8730
  done
 
8731
IFS=$as_save_IFS
 
8732
 
 
8733
fi
 
8734
fi
 
8735
AS=$ac_cv_prog_AS
 
8736
if test -n "$AS"; then
 
8737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
8738
$as_echo "$AS" >&6; }
 
8739
else
 
8740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8741
$as_echo "no" >&6; }
 
8742
fi
 
8743
 
 
8744
 
 
8745
fi
 
8746
if test -z "$ac_cv_prog_AS"; then
 
8747
  ac_ct_AS=$AS
 
8748
  # Extract the first word of "as", so it can be a program name with args.
 
8749
set dummy as; ac_word=$2
 
8750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8751
$as_echo_n "checking for $ac_word... " >&6; }
 
8752
if ${ac_cv_prog_ac_ct_AS+:} false; then :
 
8753
  $as_echo_n "(cached) " >&6
 
8754
else
 
8755
  if test -n "$ac_ct_AS"; then
 
8756
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
8757
else
 
8758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8759
for as_dir in $PATH
 
8760
do
 
8761
  IFS=$as_save_IFS
 
8762
  test -z "$as_dir" && as_dir=.
 
8763
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8764
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8765
    ac_cv_prog_ac_ct_AS="as"
 
8766
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8767
    break 2
 
8768
  fi
 
8769
done
 
8770
  done
 
8771
IFS=$as_save_IFS
 
8772
 
 
8773
fi
 
8774
fi
 
8775
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
8776
if test -n "$ac_ct_AS"; then
 
8777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
8778
$as_echo "$ac_ct_AS" >&6; }
 
8779
else
 
8780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8781
$as_echo "no" >&6; }
 
8782
fi
 
8783
 
 
8784
  if test "x$ac_ct_AS" = x; then
 
8785
    AS="false"
 
8786
  else
 
8787
    case $cross_compiling:$ac_tool_warned in
 
8788
yes:)
 
8789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8790
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8791
ac_tool_warned=yes ;;
 
8792
esac
 
8793
    AS=$ac_ct_AS
 
8794
  fi
 
8795
else
 
8796
  AS="$ac_cv_prog_AS"
 
8797
fi
 
8798
 
 
8799
  if test -n "$ac_tool_prefix"; then
 
8800
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
8801
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
8802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8803
$as_echo_n "checking for $ac_word... " >&6; }
 
8804
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
8805
  $as_echo_n "(cached) " >&6
 
8806
else
 
8807
  if test -n "$DLLTOOL"; then
 
8808
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
8809
else
 
8810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8811
for as_dir in $PATH
 
8812
do
 
8813
  IFS=$as_save_IFS
 
8814
  test -z "$as_dir" && as_dir=.
 
8815
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8816
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8817
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
8818
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8819
    break 2
 
8820
  fi
 
8821
done
 
8822
  done
 
8823
IFS=$as_save_IFS
 
8824
 
 
8825
fi
 
8826
fi
 
8827
DLLTOOL=$ac_cv_prog_DLLTOOL
 
8828
if test -n "$DLLTOOL"; then
 
8829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
8830
$as_echo "$DLLTOOL" >&6; }
 
8831
else
 
8832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8833
$as_echo "no" >&6; }
 
8834
fi
 
8835
 
 
8836
 
 
8837
fi
 
8838
if test -z "$ac_cv_prog_DLLTOOL"; then
 
8839
  ac_ct_DLLTOOL=$DLLTOOL
 
8840
  # Extract the first word of "dlltool", so it can be a program name with args.
 
8841
set dummy dlltool; ac_word=$2
 
8842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8843
$as_echo_n "checking for $ac_word... " >&6; }
 
8844
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
8845
  $as_echo_n "(cached) " >&6
 
8846
else
 
8847
  if test -n "$ac_ct_DLLTOOL"; then
 
8848
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
8849
else
 
8850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8851
for as_dir in $PATH
 
8852
do
 
8853
  IFS=$as_save_IFS
 
8854
  test -z "$as_dir" && as_dir=.
 
8855
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8856
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8857
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
8858
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8859
    break 2
 
8860
  fi
 
8861
done
 
8862
  done
 
8863
IFS=$as_save_IFS
 
8864
 
 
8865
fi
 
8866
fi
 
8867
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
8868
if test -n "$ac_ct_DLLTOOL"; then
 
8869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
8870
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
8871
else
 
8872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8873
$as_echo "no" >&6; }
 
8874
fi
 
8875
 
 
8876
  if test "x$ac_ct_DLLTOOL" = x; then
 
8877
    DLLTOOL="false"
 
8878
  else
 
8879
    case $cross_compiling:$ac_tool_warned in
 
8880
yes:)
 
8881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8883
ac_tool_warned=yes ;;
 
8884
esac
 
8885
    DLLTOOL=$ac_ct_DLLTOOL
 
8886
  fi
 
8887
else
 
8888
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
8889
fi
 
8890
 
 
8891
  if test -n "$ac_tool_prefix"; then
 
8892
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
8893
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
8894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8895
$as_echo_n "checking for $ac_word... " >&6; }
 
8896
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
8897
  $as_echo_n "(cached) " >&6
 
8898
else
 
8899
  if test -n "$OBJDUMP"; then
 
8900
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
8901
else
 
8902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8903
for as_dir in $PATH
 
8904
do
 
8905
  IFS=$as_save_IFS
 
8906
  test -z "$as_dir" && as_dir=.
 
8907
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8908
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8909
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
8910
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8911
    break 2
 
8912
  fi
 
8913
done
 
8914
  done
 
8915
IFS=$as_save_IFS
 
8916
 
 
8917
fi
 
8918
fi
 
8919
OBJDUMP=$ac_cv_prog_OBJDUMP
 
8920
if test -n "$OBJDUMP"; then
 
8921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
8922
$as_echo "$OBJDUMP" >&6; }
 
8923
else
 
8924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8925
$as_echo "no" >&6; }
 
8926
fi
 
8927
 
 
8928
 
 
8929
fi
 
8930
if test -z "$ac_cv_prog_OBJDUMP"; then
 
8931
  ac_ct_OBJDUMP=$OBJDUMP
 
8932
  # Extract the first word of "objdump", so it can be a program name with args.
 
8933
set dummy objdump; ac_word=$2
 
8934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8935
$as_echo_n "checking for $ac_word... " >&6; }
 
8936
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
8937
  $as_echo_n "(cached) " >&6
 
8938
else
 
8939
  if test -n "$ac_ct_OBJDUMP"; then
 
8940
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
8941
else
 
8942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8943
for as_dir in $PATH
 
8944
do
 
8945
  IFS=$as_save_IFS
 
8946
  test -z "$as_dir" && as_dir=.
 
8947
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8948
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8949
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
8950
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8951
    break 2
 
8952
  fi
 
8953
done
 
8954
  done
 
8955
IFS=$as_save_IFS
 
8956
 
 
8957
fi
 
8958
fi
 
8959
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
8960
if test -n "$ac_ct_OBJDUMP"; then
 
8961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
8962
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
8963
else
 
8964
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8965
$as_echo "no" >&6; }
 
8966
fi
 
8967
 
 
8968
  if test "x$ac_ct_OBJDUMP" = x; then
 
8969
    OBJDUMP="false"
 
8970
  else
 
8971
    case $cross_compiling:$ac_tool_warned in
 
8972
yes:)
 
8973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8975
ac_tool_warned=yes ;;
 
8976
esac
 
8977
    OBJDUMP=$ac_ct_OBJDUMP
 
8978
  fi
 
8979
else
 
8980
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
8981
fi
 
8982
 
 
8983
  ;;
 
8984
esac
 
8985
 
 
8986
test -z "$AS" && AS=as
 
8987
 
 
8988
 
 
8989
 
 
8990
 
 
8991
 
 
8992
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8993
 
 
8994
 
 
8995
 
 
8996
 
 
8997
 
 
8998
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8999
 
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
 
 
9005
 
 
9006
        enable_dlopen=no
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
 
 
9013
# Check whether --with-pic was given.
 
9014
if test "${with_pic+set}" = set; then :
 
9015
  withval=$with_pic; lt_p=${PACKAGE-default}
 
9016
    case $withval in
 
9017
    yes|no) pic_mode=$withval ;;
 
9018
    *)
 
9019
      pic_mode=default
 
9020
      # Look at the argument we got.  We use all the common list separators.
 
9021
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9022
      for lt_pkg in $withval; do
 
9023
        IFS="$lt_save_ifs"
 
9024
        if test "X$lt_pkg" = "X$lt_p"; then
 
9025
          pic_mode=yes
 
9026
        fi
 
9027
      done
 
9028
      IFS="$lt_save_ifs"
 
9029
      ;;
 
9030
    esac
 
9031
else
 
9032
  pic_mode=default
 
9033
fi
 
9034
 
 
9035
 
 
9036
test -z "$pic_mode" && pic_mode=default
 
9037
 
 
9038
 
 
9039
 
 
9040
 
 
9041
 
 
9042
 
 
9043
 
 
9044
  # Check whether --enable-fast-install was given.
 
9045
if test "${enable_fast_install+set}" = set; then :
 
9046
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
9047
    case $enableval in
 
9048
    yes) enable_fast_install=yes ;;
 
9049
    no) enable_fast_install=no ;;
 
9050
    *)
 
9051
      enable_fast_install=no
 
9052
      # Look at the argument we got.  We use all the common list separators.
 
9053
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9054
      for pkg in $enableval; do
 
9055
        IFS="$lt_save_ifs"
 
9056
        if test "X$pkg" = "X$p"; then
 
9057
          enable_fast_install=yes
 
9058
        fi
 
9059
      done
 
9060
      IFS="$lt_save_ifs"
 
9061
      ;;
 
9062
    esac
 
9063
else
 
9064
  enable_fast_install=yes
 
9065
fi
 
9066
 
 
9067
 
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
 
 
9074
 
 
9075
 
 
9076
 
 
9077
# This can be used to rebuild libtool when needed
 
9078
LIBTOOL_DEPS="$ltmain"
 
9079
 
 
9080
# Always use our own libtool.
 
9081
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
9082
 
 
9083
 
 
9084
 
 
9085
 
 
9086
 
 
9087
 
 
9088
 
 
9089
 
 
9090
 
 
9091
 
 
9092
 
 
9093
 
 
9094
 
 
9095
 
 
9096
 
 
9097
 
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
 
 
9103
 
 
9104
 
 
9105
 
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
 
9112
test -z "$LN_S" && LN_S="ln -s"
 
9113
 
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
 
 
9119
 
 
9120
 
 
9121
 
 
9122
 
 
9123
 
 
9124
 
 
9125
 
 
9126
 
 
9127
if test -n "${ZSH_VERSION+set}" ; then
 
9128
   setopt NO_GLOB_SUBST
 
9129
fi
 
9130
 
 
9131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
9132
$as_echo_n "checking for objdir... " >&6; }
 
9133
if ${lt_cv_objdir+:} false; then :
 
9134
  $as_echo_n "(cached) " >&6
 
9135
else
 
9136
  rm -f .libs 2>/dev/null
 
9137
mkdir .libs 2>/dev/null
 
9138
if test -d .libs; then
 
9139
  lt_cv_objdir=.libs
 
9140
else
 
9141
  # MS-DOS does not allow filenames that begin with a dot.
 
9142
  lt_cv_objdir=_libs
 
9143
fi
 
9144
rmdir .libs 2>/dev/null
 
9145
fi
 
9146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
9147
$as_echo "$lt_cv_objdir" >&6; }
 
9148
objdir=$lt_cv_objdir
 
9149
 
 
9150
 
 
9151
 
 
9152
 
 
9153
 
 
9154
cat >>confdefs.h <<_ACEOF
 
9155
#define LT_OBJDIR "$lt_cv_objdir/"
 
9156
_ACEOF
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
case $host_os in
 
9162
aix3*)
 
9163
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
9164
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
9165
  # vanish in a puff of smoke.
 
9166
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
9167
    COLLECT_NAMES=
 
9168
    export COLLECT_NAMES
 
9169
  fi
 
9170
  ;;
 
9171
esac
 
9172
 
 
9173
# Global variables:
 
9174
ofile=libtool
 
9175
can_build_shared=yes
 
9176
 
 
9177
# All known linkers require a `.a' archive for static linking (except MSVC,
 
9178
# which needs '.lib').
 
9179
libext=a
 
9180
 
 
9181
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9182
 
 
9183
old_CC="$CC"
 
9184
old_CFLAGS="$CFLAGS"
 
9185
 
 
9186
# Set sane defaults for various variables
 
9187
test -z "$CC" && CC=cc
 
9188
test -z "$LTCC" && LTCC=$CC
 
9189
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
9190
test -z "$LD" && LD=ld
 
9191
test -z "$ac_objext" && ac_objext=o
 
9192
 
 
9193
for cc_temp in $compiler""; do
 
9194
  case $cc_temp in
 
9195
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9196
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9197
    \-*) ;;
 
9198
    *) break;;
 
9199
  esac
 
9200
done
 
9201
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
9202
 
 
9203
 
 
9204
# Only perform the check for file, if the check method requires it
 
9205
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
9206
case $deplibs_check_method in
 
9207
file_magic*)
 
9208
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
9209
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
9210
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
9211
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9212
  $as_echo_n "(cached) " >&6
 
9213
else
 
9214
  case $MAGIC_CMD in
 
9215
[\\/*] |  ?:[\\/]*)
 
9216
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9217
  ;;
 
9218
*)
 
9219
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9220
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9221
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9222
  for ac_dir in $ac_dummy; do
 
9223
    IFS="$lt_save_ifs"
 
9224
    test -z "$ac_dir" && ac_dir=.
 
9225
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
9226
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9227
      if test -n "$file_magic_test_file"; then
 
9228
        case $deplibs_check_method in
 
9229
        "file_magic "*)
 
9230
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9231
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9232
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9233
            $EGREP "$file_magic_regex" > /dev/null; then
 
9234
            :
 
9235
          else
 
9236
            cat <<_LT_EOF 1>&2
 
9237
 
 
9238
*** Warning: the command libtool uses to detect shared libraries,
 
9239
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9240
*** The result is that libtool may fail to recognize shared libraries
 
9241
*** as such.  This will affect the creation of libtool libraries that
 
9242
*** depend on shared libraries, but programs linked with such libtool
 
9243
*** libraries will work regardless of this problem.  Nevertheless, you
 
9244
*** may want to report the problem to your system manager and/or to
 
9245
*** bug-libtool@gnu.org
 
9246
 
 
9247
_LT_EOF
 
9248
          fi ;;
 
9249
        esac
 
9250
      fi
 
9251
      break
 
9252
    fi
 
9253
  done
 
9254
  IFS="$lt_save_ifs"
 
9255
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9256
  ;;
 
9257
esac
 
9258
fi
 
9259
 
 
9260
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9261
if test -n "$MAGIC_CMD"; then
 
9262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9263
$as_echo "$MAGIC_CMD" >&6; }
 
9264
else
 
9265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9266
$as_echo "no" >&6; }
 
9267
fi
 
9268
 
 
9269
 
 
9270
 
 
9271
 
 
9272
 
 
9273
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9274
  if test -n "$ac_tool_prefix"; then
 
9275
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
9276
$as_echo_n "checking for file... " >&6; }
 
9277
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9278
  $as_echo_n "(cached) " >&6
 
9279
else
 
9280
  case $MAGIC_CMD in
 
9281
[\\/*] |  ?:[\\/]*)
 
9282
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9283
  ;;
 
9284
*)
 
9285
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9286
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9287
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9288
  for ac_dir in $ac_dummy; do
 
9289
    IFS="$lt_save_ifs"
 
9290
    test -z "$ac_dir" && ac_dir=.
 
9291
    if test -f $ac_dir/file; then
 
9292
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9293
      if test -n "$file_magic_test_file"; then
 
9294
        case $deplibs_check_method in
 
9295
        "file_magic "*)
 
9296
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9297
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9298
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9299
            $EGREP "$file_magic_regex" > /dev/null; then
 
9300
            :
 
9301
          else
 
9302
            cat <<_LT_EOF 1>&2
 
9303
 
 
9304
*** Warning: the command libtool uses to detect shared libraries,
 
9305
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9306
*** The result is that libtool may fail to recognize shared libraries
 
9307
*** as such.  This will affect the creation of libtool libraries that
 
9308
*** depend on shared libraries, but programs linked with such libtool
 
9309
*** libraries will work regardless of this problem.  Nevertheless, you
 
9310
*** may want to report the problem to your system manager and/or to
 
9311
*** bug-libtool@gnu.org
 
9312
 
 
9313
_LT_EOF
 
9314
          fi ;;
 
9315
        esac
 
9316
      fi
 
9317
      break
 
9318
    fi
 
9319
  done
 
9320
  IFS="$lt_save_ifs"
 
9321
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9322
  ;;
 
9323
esac
 
9324
fi
 
9325
 
 
9326
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9327
if test -n "$MAGIC_CMD"; then
 
9328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9329
$as_echo "$MAGIC_CMD" >&6; }
 
9330
else
 
9331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9332
$as_echo "no" >&6; }
 
9333
fi
 
9334
 
 
9335
 
 
9336
  else
 
9337
    MAGIC_CMD=:
 
9338
  fi
 
9339
fi
 
9340
 
 
9341
  fi
 
9342
  ;;
 
9343
esac
 
9344
 
 
9345
# Use C for the default configuration in the libtool script
 
9346
 
 
9347
lt_save_CC="$CC"
 
9348
ac_ext=c
 
9349
ac_cpp='$CPP $CPPFLAGS'
 
9350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9353
 
 
9354
 
 
9355
# Source file extension for C test sources.
 
9356
ac_ext=c
 
9357
 
 
9358
# Object file extension for compiled C test sources.
 
9359
objext=o
 
9360
objext=$objext
 
9361
 
 
9362
# Code to be used in simple compile tests
 
9363
lt_simple_compile_test_code="int some_variable = 0;"
 
9364
 
 
9365
# Code to be used in simple link tests
 
9366
lt_simple_link_test_code='int main(){return(0);}'
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
# If no C compiler was specified, use CC.
 
9375
LTCC=${LTCC-"$CC"}
 
9376
 
 
9377
# If no C compiler flags were specified, use CFLAGS.
 
9378
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9379
 
 
9380
# Allow CC to be a program name with arguments.
 
9381
compiler=$CC
 
9382
 
 
9383
# Save the default compiler, since it gets overwritten when the other
 
9384
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9385
compiler_DEFAULT=$CC
 
9386
 
 
9387
# save warnings/boilerplate of simple test code
 
9388
ac_outfile=conftest.$ac_objext
 
9389
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9390
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9391
_lt_compiler_boilerplate=`cat conftest.err`
 
9392
$RM conftest*
 
9393
 
 
9394
ac_outfile=conftest.$ac_objext
 
9395
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9396
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9397
_lt_linker_boilerplate=`cat conftest.err`
 
9398
$RM -r conftest*
 
9399
 
 
9400
 
 
9401
## CAVEAT EMPTOR:
 
9402
## There is no encapsulation within the following macros, do not change
 
9403
## the running order or otherwise move them around unless you know exactly
 
9404
## what you are doing...
 
9405
if test -n "$compiler"; then
 
9406
 
 
9407
lt_prog_compiler_no_builtin_flag=
 
9408
 
 
9409
if test "$GCC" = yes; then
 
9410
  case $cc_basename in
 
9411
  nvcc*)
 
9412
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9413
  *)
 
9414
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9415
  esac
 
9416
 
 
9417
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9418
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9419
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
9420
  $as_echo_n "(cached) " >&6
 
9421
else
 
9422
  lt_cv_prog_compiler_rtti_exceptions=no
 
9423
   ac_outfile=conftest.$ac_objext
 
9424
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9425
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9426
   # Insert the option either (1) after the last *FLAGS variable, or
 
9427
   # (2) before a word containing "conftest.", or (3) at the end.
 
9428
   # Note that $ac_compile itself does not contain backslashes and begins
 
9429
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9430
   # The option is referenced via a variable to avoid confusing sed.
 
9431
   lt_compile=`echo "$ac_compile" | $SED \
 
9432
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9433
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9434
   -e 's:$: $lt_compiler_flag:'`
 
9435
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9436
   (eval "$lt_compile" 2>conftest.err)
 
9437
   ac_status=$?
 
9438
   cat conftest.err >&5
 
9439
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9440
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9441
     # The compiler can only warn and ignore the option if not recognized
 
9442
     # So say no if there are warnings other than the usual output.
 
9443
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9444
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9445
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9446
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9447
     fi
 
9448
   fi
 
9449
   $RM conftest*
 
9450
 
 
9451
fi
 
9452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9453
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9454
 
 
9455
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9456
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9457
else
 
9458
    :
 
9459
fi
 
9460
 
 
9461
fi
 
9462
 
 
9463
 
 
9464
 
 
9465
 
 
9466
 
 
9467
 
 
9468
  lt_prog_compiler_wl=
 
9469
lt_prog_compiler_pic=
 
9470
lt_prog_compiler_static=
 
9471
 
 
9472
 
 
9473
  if test "$GCC" = yes; then
 
9474
    lt_prog_compiler_wl='-Wl,'
 
9475
    lt_prog_compiler_static='-static'
 
9476
 
 
9477
    case $host_os in
 
9478
      aix*)
 
9479
      # All AIX code is PIC.
 
9480
      if test "$host_cpu" = ia64; then
 
9481
        # AIX 5 now supports IA64 processor
 
9482
        lt_prog_compiler_static='-Bstatic'
 
9483
      fi
 
9484
      ;;
 
9485
 
 
9486
    amigaos*)
 
9487
      case $host_cpu in
 
9488
      powerpc)
 
9489
            # see comment about AmigaOS4 .so support
 
9490
            lt_prog_compiler_pic='-fPIC'
 
9491
        ;;
 
9492
      m68k)
 
9493
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9494
            # adding the `-m68020' flag to GCC prevents building anything better,
 
9495
            # like `-m68040'.
 
9496
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9497
        ;;
 
9498
      esac
 
9499
      ;;
 
9500
 
 
9501
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9502
      # PIC is the default for these OSes.
 
9503
      ;;
 
9504
 
 
9505
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9506
      # This hack is so that the source file can tell whether it is being
 
9507
      # built for inclusion in a dll (and should export symbols for example).
 
9508
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9509
      # (--disable-auto-import) libraries
 
9510
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9511
      ;;
 
9512
 
 
9513
    darwin* | rhapsody*)
 
9514
      # PIC is the default on this platform
 
9515
      # Common symbols not allowed in MH_DYLIB files
 
9516
      lt_prog_compiler_pic='-fno-common'
 
9517
      ;;
 
9518
 
 
9519
    haiku*)
 
9520
      # PIC is the default for Haiku.
 
9521
      # The "-static" flag exists, but is broken.
 
9522
      lt_prog_compiler_static=
 
9523
      ;;
 
9524
 
 
9525
    hpux*)
 
9526
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9527
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9528
      # sets the default TLS model and affects inlining.
 
9529
      case $host_cpu in
 
9530
      hppa*64*)
 
9531
        # +Z the default
 
9532
        ;;
 
9533
      *)
 
9534
        lt_prog_compiler_pic='-fPIC'
 
9535
        ;;
 
9536
      esac
 
9537
      ;;
 
9538
 
 
9539
    interix[3-9]*)
 
9540
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9541
      # Instead, we relocate shared libraries at runtime.
 
9542
      ;;
 
9543
 
 
9544
    msdosdjgpp*)
 
9545
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9546
      # on systems that don't support them.
 
9547
      lt_prog_compiler_can_build_shared=no
 
9548
      enable_shared=no
 
9549
      ;;
 
9550
 
 
9551
    *nto* | *qnx*)
 
9552
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9553
      # it will coredump.
 
9554
      lt_prog_compiler_pic='-fPIC -shared'
 
9555
      ;;
 
9556
 
 
9557
    sysv4*MP*)
 
9558
      if test -d /usr/nec; then
 
9559
        lt_prog_compiler_pic=-Kconform_pic
 
9560
      fi
 
9561
      ;;
 
9562
 
 
9563
    *)
 
9564
      lt_prog_compiler_pic='-fPIC'
 
9565
      ;;
 
9566
    esac
 
9567
 
 
9568
    case $cc_basename in
 
9569
    nvcc*) # Cuda Compiler Driver 2.2
 
9570
      lt_prog_compiler_wl='-Xlinker '
 
9571
      if test -n "$lt_prog_compiler_pic"; then
 
9572
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9573
      fi
 
9574
      ;;
 
9575
    esac
 
9576
  else
 
9577
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9578
    case $host_os in
 
9579
    aix*)
 
9580
      lt_prog_compiler_wl='-Wl,'
 
9581
      if test "$host_cpu" = ia64; then
 
9582
        # AIX 5 now supports IA64 processor
 
9583
        lt_prog_compiler_static='-Bstatic'
 
9584
      else
 
9585
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9586
      fi
 
9587
      ;;
 
9588
 
 
9589
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9590
      # This hack is so that the source file can tell whether it is being
 
9591
      # built for inclusion in a dll (and should export symbols for example).
 
9592
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9593
      ;;
 
9594
 
 
9595
    hpux9* | hpux10* | hpux11*)
 
9596
      lt_prog_compiler_wl='-Wl,'
 
9597
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9598
      # not for PA HP-UX.
 
9599
      case $host_cpu in
 
9600
      hppa*64*|ia64*)
 
9601
        # +Z the default
 
9602
        ;;
 
9603
      *)
 
9604
        lt_prog_compiler_pic='+Z'
 
9605
        ;;
 
9606
      esac
 
9607
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9608
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9609
      ;;
 
9610
 
 
9611
    irix5* | irix6* | nonstopux*)
 
9612
      lt_prog_compiler_wl='-Wl,'
 
9613
      # PIC (with -KPIC) is the default.
 
9614
      lt_prog_compiler_static='-non_shared'
 
9615
      ;;
 
9616
 
 
9617
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9618
      case $cc_basename in
 
9619
      # old Intel for x86_64 which still supported -KPIC.
 
9620
      ecc*)
 
9621
        lt_prog_compiler_wl='-Wl,'
 
9622
        lt_prog_compiler_pic='-KPIC'
 
9623
        lt_prog_compiler_static='-static'
 
9624
        ;;
 
9625
      # icc used to be incompatible with GCC.
 
9626
      # ICC 10 doesn't accept -KPIC any more.
 
9627
      icc* | ifort*)
 
9628
        lt_prog_compiler_wl='-Wl,'
 
9629
        lt_prog_compiler_pic='-fPIC'
 
9630
        lt_prog_compiler_static='-static'
 
9631
        ;;
 
9632
      # Lahey Fortran 8.1.
 
9633
      lf95*)
 
9634
        lt_prog_compiler_wl='-Wl,'
 
9635
        lt_prog_compiler_pic='--shared'
 
9636
        lt_prog_compiler_static='--static'
 
9637
        ;;
 
9638
      nagfor*)
 
9639
        # NAG Fortran compiler
 
9640
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9641
        lt_prog_compiler_pic='-PIC'
 
9642
        lt_prog_compiler_static='-Bstatic'
 
9643
        ;;
 
9644
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9645
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9646
        # which looks to be a dead project)
 
9647
        lt_prog_compiler_wl='-Wl,'
 
9648
        lt_prog_compiler_pic='-fpic'
 
9649
        lt_prog_compiler_static='-Bstatic'
 
9650
        ;;
 
9651
      ccc*)
 
9652
        lt_prog_compiler_wl='-Wl,'
 
9653
        # All Alpha code is PIC.
 
9654
        lt_prog_compiler_static='-non_shared'
 
9655
        ;;
 
9656
      xl* | bgxl* | bgf* | mpixl*)
 
9657
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9658
        lt_prog_compiler_wl='-Wl,'
 
9659
        lt_prog_compiler_pic='-qpic'
 
9660
        lt_prog_compiler_static='-qstaticlink'
 
9661
        ;;
 
9662
      *)
 
9663
        case `$CC -V 2>&1 | sed 5q` in
 
9664
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9665
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9666
          lt_prog_compiler_pic='-KPIC'
 
9667
          lt_prog_compiler_static='-Bstatic'
 
9668
          lt_prog_compiler_wl=''
 
9669
          ;;
 
9670
        *Sun\ F* | *Sun*Fortran*)
 
9671
          lt_prog_compiler_pic='-KPIC'
 
9672
          lt_prog_compiler_static='-Bstatic'
 
9673
          lt_prog_compiler_wl='-Qoption ld '
 
9674
          ;;
 
9675
        *Sun\ C*)
 
9676
          # Sun C 5.9
 
9677
          lt_prog_compiler_pic='-KPIC'
 
9678
          lt_prog_compiler_static='-Bstatic'
 
9679
          lt_prog_compiler_wl='-Wl,'
 
9680
          ;;
 
9681
        *Intel*\ [CF]*Compiler*)
 
9682
          lt_prog_compiler_wl='-Wl,'
 
9683
          lt_prog_compiler_pic='-fPIC'
 
9684
          lt_prog_compiler_static='-static'
 
9685
          ;;
 
9686
        *Portland\ Group*)
 
9687
          lt_prog_compiler_wl='-Wl,'
 
9688
          lt_prog_compiler_pic='-fpic'
 
9689
          lt_prog_compiler_static='-Bstatic'
 
9690
          ;;
 
9691
        esac
 
9692
        ;;
 
9693
      esac
 
9694
      ;;
 
9695
 
 
9696
    newsos6)
 
9697
      lt_prog_compiler_pic='-KPIC'
 
9698
      lt_prog_compiler_static='-Bstatic'
 
9699
      ;;
 
9700
 
 
9701
    *nto* | *qnx*)
 
9702
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9703
      # it will coredump.
 
9704
      lt_prog_compiler_pic='-fPIC -shared'
 
9705
      ;;
 
9706
 
 
9707
    osf3* | osf4* | osf5*)
 
9708
      lt_prog_compiler_wl='-Wl,'
 
9709
      # All OSF/1 code is PIC.
 
9710
      lt_prog_compiler_static='-non_shared'
 
9711
      ;;
 
9712
 
 
9713
    rdos*)
 
9714
      lt_prog_compiler_static='-non_shared'
 
9715
      ;;
 
9716
 
 
9717
    solaris*)
 
9718
      lt_prog_compiler_pic='-KPIC'
 
9719
      lt_prog_compiler_static='-Bstatic'
 
9720
      case $cc_basename in
 
9721
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9722
        lt_prog_compiler_wl='-Qoption ld ';;
 
9723
      *)
 
9724
        lt_prog_compiler_wl='-Wl,';;
 
9725
      esac
 
9726
      ;;
 
9727
 
 
9728
    sunos4*)
 
9729
      lt_prog_compiler_wl='-Qoption ld '
 
9730
      lt_prog_compiler_pic='-PIC'
 
9731
      lt_prog_compiler_static='-Bstatic'
 
9732
      ;;
 
9733
 
 
9734
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9735
      lt_prog_compiler_wl='-Wl,'
 
9736
      lt_prog_compiler_pic='-KPIC'
 
9737
      lt_prog_compiler_static='-Bstatic'
 
9738
      ;;
 
9739
 
 
9740
    sysv4*MP*)
 
9741
      if test -d /usr/nec ;then
 
9742
        lt_prog_compiler_pic='-Kconform_pic'
 
9743
        lt_prog_compiler_static='-Bstatic'
 
9744
      fi
 
9745
      ;;
 
9746
 
 
9747
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9748
      lt_prog_compiler_wl='-Wl,'
 
9749
      lt_prog_compiler_pic='-KPIC'
 
9750
      lt_prog_compiler_static='-Bstatic'
 
9751
      ;;
 
9752
 
 
9753
    unicos*)
 
9754
      lt_prog_compiler_wl='-Wl,'
 
9755
      lt_prog_compiler_can_build_shared=no
 
9756
      ;;
 
9757
 
 
9758
    uts4*)
 
9759
      lt_prog_compiler_pic='-pic'
 
9760
      lt_prog_compiler_static='-Bstatic'
 
9761
      ;;
 
9762
 
 
9763
    *)
 
9764
      lt_prog_compiler_can_build_shared=no
 
9765
      ;;
 
9766
    esac
 
9767
  fi
 
9768
 
 
9769
case $host_os in
 
9770
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9771
  *djgpp*)
 
9772
    lt_prog_compiler_pic=
 
9773
    ;;
 
9774
  *)
 
9775
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9776
    ;;
 
9777
esac
 
9778
 
 
9779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9780
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9781
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9782
  $as_echo_n "(cached) " >&6
 
9783
else
 
9784
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9785
fi
 
9786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9787
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9788
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9789
 
 
9790
#
 
9791
# Check to make sure the PIC flag actually works.
 
9792
#
 
9793
if test -n "$lt_prog_compiler_pic"; then
 
9794
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9795
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9796
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9797
  $as_echo_n "(cached) " >&6
 
9798
else
 
9799
  lt_cv_prog_compiler_pic_works=no
 
9800
   ac_outfile=conftest.$ac_objext
 
9801
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9802
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9803
   # Insert the option either (1) after the last *FLAGS variable, or
 
9804
   # (2) before a word containing "conftest.", or (3) at the end.
 
9805
   # Note that $ac_compile itself does not contain backslashes and begins
 
9806
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9807
   # The option is referenced via a variable to avoid confusing sed.
 
9808
   lt_compile=`echo "$ac_compile" | $SED \
 
9809
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9810
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9811
   -e 's:$: $lt_compiler_flag:'`
 
9812
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9813
   (eval "$lt_compile" 2>conftest.err)
 
9814
   ac_status=$?
 
9815
   cat conftest.err >&5
 
9816
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9817
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9818
     # The compiler can only warn and ignore the option if not recognized
 
9819
     # So say no if there are warnings other than the usual output.
 
9820
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9821
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9822
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9823
       lt_cv_prog_compiler_pic_works=yes
 
9824
     fi
 
9825
   fi
 
9826
   $RM conftest*
 
9827
 
 
9828
fi
 
9829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9830
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9831
 
 
9832
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9833
    case $lt_prog_compiler_pic in
 
9834
     "" | " "*) ;;
 
9835
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9836
     esac
 
9837
else
 
9838
    lt_prog_compiler_pic=
 
9839
     lt_prog_compiler_can_build_shared=no
 
9840
fi
 
9841
 
 
9842
fi
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
#
 
9855
# Check to make sure the static flag actually works.
 
9856
#
 
9857
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9859
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9860
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9861
  $as_echo_n "(cached) " >&6
 
9862
else
 
9863
  lt_cv_prog_compiler_static_works=no
 
9864
   save_LDFLAGS="$LDFLAGS"
 
9865
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9866
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9867
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9868
     # The linker can only warn and ignore the option if not recognized
 
9869
     # So say no if there are warnings
 
9870
     if test -s conftest.err; then
 
9871
       # Append any errors to the config.log.
 
9872
       cat conftest.err 1>&5
 
9873
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9874
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9875
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9876
         lt_cv_prog_compiler_static_works=yes
 
9877
       fi
 
9878
     else
 
9879
       lt_cv_prog_compiler_static_works=yes
 
9880
     fi
 
9881
   fi
 
9882
   $RM -r conftest*
 
9883
   LDFLAGS="$save_LDFLAGS"
 
9884
 
 
9885
fi
 
9886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9887
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9888
 
 
9889
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9890
    :
 
9891
else
 
9892
    lt_prog_compiler_static=
 
9893
fi
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9902
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9903
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9904
  $as_echo_n "(cached) " >&6
 
9905
else
 
9906
  lt_cv_prog_compiler_c_o=no
 
9907
   $RM -r conftest 2>/dev/null
 
9908
   mkdir conftest
 
9909
   cd conftest
 
9910
   mkdir out
 
9911
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9912
 
 
9913
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9914
   # Insert the option either (1) after the last *FLAGS variable, or
 
9915
   # (2) before a word containing "conftest.", or (3) at the end.
 
9916
   # Note that $ac_compile itself does not contain backslashes and begins
 
9917
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9918
   lt_compile=`echo "$ac_compile" | $SED \
 
9919
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9920
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9921
   -e 's:$: $lt_compiler_flag:'`
 
9922
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9923
   (eval "$lt_compile" 2>out/conftest.err)
 
9924
   ac_status=$?
 
9925
   cat out/conftest.err >&5
 
9926
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9927
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9928
   then
 
9929
     # The compiler can only warn and ignore the option if not recognized
 
9930
     # So say no if there are warnings
 
9931
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9932
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9933
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9934
       lt_cv_prog_compiler_c_o=yes
 
9935
     fi
 
9936
   fi
 
9937
   chmod u+w . 2>&5
 
9938
   $RM conftest*
 
9939
   # SGI C++ compiler will create directory out/ii_files/ for
 
9940
   # template instantiation
 
9941
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9942
   $RM out/* && rmdir out
 
9943
   cd ..
 
9944
   $RM -r conftest
 
9945
   $RM conftest*
 
9946
 
 
9947
fi
 
9948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9949
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9957
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9958
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9959
  $as_echo_n "(cached) " >&6
 
9960
else
 
9961
  lt_cv_prog_compiler_c_o=no
 
9962
   $RM -r conftest 2>/dev/null
 
9963
   mkdir conftest
 
9964
   cd conftest
 
9965
   mkdir out
 
9966
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9967
 
 
9968
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9969
   # Insert the option either (1) after the last *FLAGS variable, or
 
9970
   # (2) before a word containing "conftest.", or (3) at the end.
 
9971
   # Note that $ac_compile itself does not contain backslashes and begins
 
9972
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9973
   lt_compile=`echo "$ac_compile" | $SED \
 
9974
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9975
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9976
   -e 's:$: $lt_compiler_flag:'`
 
9977
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9978
   (eval "$lt_compile" 2>out/conftest.err)
 
9979
   ac_status=$?
 
9980
   cat out/conftest.err >&5
 
9981
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9982
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9983
   then
 
9984
     # The compiler can only warn and ignore the option if not recognized
 
9985
     # So say no if there are warnings
 
9986
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9987
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9988
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9989
       lt_cv_prog_compiler_c_o=yes
 
9990
     fi
 
9991
   fi
 
9992
   chmod u+w . 2>&5
 
9993
   $RM conftest*
 
9994
   # SGI C++ compiler will create directory out/ii_files/ for
 
9995
   # template instantiation
 
9996
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9997
   $RM out/* && rmdir out
 
9998
   cd ..
 
9999
   $RM -r conftest
 
10000
   $RM conftest*
 
10001
 
 
10002
fi
 
10003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
10004
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
hard_links="nottested"
 
10010
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
10011
  # do not overwrite the value of need_locks provided by the user
 
10012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
10013
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
10014
  hard_links=yes
 
10015
  $RM conftest*
 
10016
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10017
  touch conftest.a
 
10018
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10019
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
10021
$as_echo "$hard_links" >&6; }
 
10022
  if test "$hard_links" = no; then
 
10023
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10024
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10025
    need_locks=warn
 
10026
  fi
 
10027
else
 
10028
  need_locks=no
 
10029
fi
 
10030
 
 
10031
 
 
10032
 
 
10033
 
 
10034
 
 
10035
 
 
10036
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10037
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
10038
 
 
10039
  runpath_var=
 
10040
  allow_undefined_flag=
 
10041
  always_export_symbols=no
 
10042
  archive_cmds=
 
10043
  archive_expsym_cmds=
 
10044
  compiler_needs_object=no
 
10045
  enable_shared_with_static_runtimes=no
 
10046
  export_dynamic_flag_spec=
 
10047
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10048
  hardcode_automatic=no
 
10049
  hardcode_direct=no
 
10050
  hardcode_direct_absolute=no
 
10051
  hardcode_libdir_flag_spec=
 
10052
  hardcode_libdir_separator=
 
10053
  hardcode_minus_L=no
 
10054
  hardcode_shlibpath_var=unsupported
 
10055
  inherit_rpath=no
 
10056
  link_all_deplibs=unknown
 
10057
  module_cmds=
 
10058
  module_expsym_cmds=
 
10059
  old_archive_from_new_cmds=
 
10060
  old_archive_from_expsyms_cmds=
 
10061
  thread_safe_flag_spec=
 
10062
  whole_archive_flag_spec=
 
10063
  # include_expsyms should be a list of space-separated symbols to be *always*
 
10064
  # included in the symbol list
 
10065
  include_expsyms=
 
10066
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
10067
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
10068
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
10069
  # as well as any symbol that contains `d'.
 
10070
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
10071
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
10072
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
10073
  # the symbol is explicitly referenced.  Since portable code cannot
 
10074
  # rely on this symbol name, it's probably fine to never include it in
 
10075
  # preloaded symbol tables.
 
10076
  # Exclude shared library initialization/finalization symbols.
 
10077
  extract_expsyms_cmds=
 
10078
 
 
10079
  case $host_os in
 
10080
  cygwin* | mingw* | pw32* | cegcc*)
 
10081
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
10082
    # When not using gcc, we currently assume that we are using
 
10083
    # Microsoft Visual C++.
 
10084
    if test "$GCC" != yes; then
 
10085
      with_gnu_ld=no
 
10086
    fi
 
10087
    ;;
 
10088
  interix*)
 
10089
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
10090
    with_gnu_ld=yes
 
10091
    ;;
 
10092
  openbsd*)
 
10093
    with_gnu_ld=no
 
10094
    ;;
 
10095
  linux* | k*bsd*-gnu | gnu*)
 
10096
    link_all_deplibs=no
 
10097
    ;;
 
10098
  esac
 
10099
 
 
10100
  ld_shlibs=yes
 
10101
 
 
10102
  # On some targets, GNU ld is compatible enough with the native linker
 
10103
  # that we're better off using the native interface for both.
 
10104
  lt_use_gnu_ld_interface=no
 
10105
  if test "$with_gnu_ld" = yes; then
 
10106
    case $host_os in
 
10107
      aix*)
 
10108
        # The AIX port of GNU ld has always aspired to compatibility
 
10109
        # with the native linker.  However, as the warning in the GNU ld
 
10110
        # block says, versions before 2.19.5* couldn't really create working
 
10111
        # shared libraries, regardless of the interface used.
 
10112
        case `$LD -v 2>&1` in
 
10113
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
10114
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
10115
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
10116
          *)
 
10117
            lt_use_gnu_ld_interface=yes
 
10118
            ;;
 
10119
        esac
 
10120
        ;;
 
10121
      *)
 
10122
        lt_use_gnu_ld_interface=yes
 
10123
        ;;
 
10124
    esac
 
10125
  fi
 
10126
 
 
10127
  if test "$lt_use_gnu_ld_interface" = yes; then
 
10128
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10129
    wlarc='${wl}'
 
10130
 
 
10131
    # Set some defaults for GNU ld with shared library support. These
 
10132
    # are reset later if shared libraries are not supported. Putting them
 
10133
    # here allows them to be overridden if necessary.
 
10134
    runpath_var=LD_RUN_PATH
 
10135
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10136
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
10137
    # ancient GNU ld didn't support --whole-archive et. al.
 
10138
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
10139
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10140
    else
 
10141
      whole_archive_flag_spec=
 
10142
    fi
 
10143
    supports_anon_versioning=no
 
10144
    case `$LD -v 2>&1` in
 
10145
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
10146
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
10147
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
10148
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
10149
      *\ 2.11.*) ;; # other 2.11 versions
 
10150
      *) supports_anon_versioning=yes ;;
 
10151
    esac
 
10152
 
 
10153
    # See if GNU ld supports shared libraries.
 
10154
    case $host_os in
 
10155
    aix[3-9]*)
 
10156
      # On AIX/PPC, the GNU linker is very broken
 
10157
      if test "$host_cpu" != ia64; then
 
10158
        ld_shlibs=no
 
10159
        cat <<_LT_EOF 1>&2
 
10160
 
 
10161
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
10162
*** to be unable to reliably create shared libraries on AIX.
 
10163
*** Therefore, libtool is disabling shared libraries support.  If you
 
10164
*** really care for shared libraries, you may want to install binutils
 
10165
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
10166
*** You will then need to restart the configuration process.
 
10167
 
 
10168
_LT_EOF
 
10169
      fi
 
10170
      ;;
 
10171
 
 
10172
    amigaos*)
 
10173
      case $host_cpu in
 
10174
      powerpc)
 
10175
            # see comment about AmigaOS4 .so support
 
10176
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10177
            archive_expsym_cmds=''
 
10178
        ;;
 
10179
      m68k)
 
10180
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
10181
            hardcode_libdir_flag_spec='-L$libdir'
 
10182
            hardcode_minus_L=yes
 
10183
        ;;
 
10184
      esac
 
10185
      ;;
 
10186
 
 
10187
    beos*)
 
10188
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10189
        allow_undefined_flag=unsupported
 
10190
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10191
        # support --undefined.  This deserves some investigation.  FIXME
 
10192
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10193
      else
 
10194
        ld_shlibs=no
 
10195
      fi
 
10196
      ;;
 
10197
 
 
10198
    cygwin* | mingw* | pw32* | cegcc*)
 
10199
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10200
      # as there is no search path for DLLs.
 
10201
      hardcode_libdir_flag_spec='-L$libdir'
 
10202
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
10203
      allow_undefined_flag=unsupported
 
10204
      always_export_symbols=no
 
10205
      enable_shared_with_static_runtimes=yes
 
10206
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
10207
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
10208
 
 
10209
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10210
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10211
        # If the export-symbols file already is a .def file (1st line
 
10212
        # is EXPORTS), use it as is; otherwise, prepend...
 
10213
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10214
          cp $export_symbols $output_objdir/$soname.def;
 
10215
        else
 
10216
          echo EXPORTS > $output_objdir/$soname.def;
 
10217
          cat $export_symbols >> $output_objdir/$soname.def;
 
10218
        fi~
 
10219
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10220
      else
 
10221
        ld_shlibs=no
 
10222
      fi
 
10223
      ;;
 
10224
 
 
10225
    haiku*)
 
10226
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10227
      link_all_deplibs=yes
 
10228
      ;;
 
10229
 
 
10230
    interix[3-9]*)
 
10231
      hardcode_direct=no
 
10232
      hardcode_shlibpath_var=no
 
10233
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10234
      export_dynamic_flag_spec='${wl}-E'
 
10235
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10236
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10237
      # default) and relocated if they conflict, which is a slow very memory
 
10238
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10239
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10240
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10241
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10242
      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'
 
10243
      ;;
 
10244
 
 
10245
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
10246
      tmp_diet=no
 
10247
      if test "$host_os" = linux-dietlibc; then
 
10248
        case $cc_basename in
 
10249
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
10250
        esac
 
10251
      fi
 
10252
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
10253
         && test "$tmp_diet" = no
 
10254
      then
 
10255
        tmp_addflag=' $pic_flag'
 
10256
        tmp_sharedflag='-shared'
 
10257
        case $cc_basename,$host_cpu in
 
10258
        pgcc*)                          # Portland Group C compiler
 
10259
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10260
          tmp_addflag=' $pic_flag'
 
10261
          ;;
 
10262
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
10263
                                        # Portland Group f77 and f90 compilers
 
10264
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10265
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10266
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
10267
          tmp_addflag=' -i_dynamic' ;;
 
10268
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10269
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10270
        ifc* | ifort*)                  # Intel Fortran compiler
 
10271
          tmp_addflag=' -nofor_main' ;;
 
10272
        lf95*)                          # Lahey Fortran 8.1
 
10273
          whole_archive_flag_spec=
 
10274
          tmp_sharedflag='--shared' ;;
 
10275
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
10276
          tmp_sharedflag='-qmkshrobj'
 
10277
          tmp_addflag= ;;
 
10278
        nvcc*)  # Cuda Compiler Driver 2.2
 
10279
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10280
          compiler_needs_object=yes
 
10281
          ;;
 
10282
        esac
 
10283
        case `$CC -V 2>&1 | sed 5q` in
 
10284
        *Sun\ C*)                       # Sun C 5.9
 
10285
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10286
          compiler_needs_object=yes
 
10287
          tmp_sharedflag='-G' ;;
 
10288
        *Sun\ F*)                       # Sun Fortran 8.3
 
10289
          tmp_sharedflag='-G' ;;
 
10290
        esac
 
10291
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10292
 
 
10293
        if test "x$supports_anon_versioning" = xyes; then
 
10294
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10295
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10296
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10297
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10298
        fi
 
10299
 
 
10300
        case $cc_basename in
 
10301
        xlf* | bgf* | bgxlf* | mpixlf*)
 
10302
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10303
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10304
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10305
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
10306
          if test "x$supports_anon_versioning" = xyes; then
 
10307
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10308
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10309
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10310
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10311
          fi
 
10312
          ;;
 
10313
        esac
 
10314
      else
 
10315
        ld_shlibs=no
 
10316
      fi
 
10317
      ;;
 
10318
 
 
10319
    netbsd* | netbsdelf*-gnu)
 
10320
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10321
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10322
        wlarc=
 
10323
      else
 
10324
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10325
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10326
      fi
 
10327
      ;;
 
10328
 
 
10329
    solaris*)
 
10330
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10331
        ld_shlibs=no
 
10332
        cat <<_LT_EOF 1>&2
 
10333
 
 
10334
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10335
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10336
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10337
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10338
*** your PATH or compiler configuration so that the native linker is
 
10339
*** used, and then restart.
 
10340
 
 
10341
_LT_EOF
 
10342
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10343
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10344
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10345
      else
 
10346
        ld_shlibs=no
 
10347
      fi
 
10348
      ;;
 
10349
 
 
10350
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10351
      case `$LD -v 2>&1` in
 
10352
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10353
        ld_shlibs=no
 
10354
        cat <<_LT_EOF 1>&2
 
10355
 
 
10356
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10357
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10358
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10359
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10360
*** your PATH or compiler configuration so that the native linker is
 
10361
*** used, and then restart.
 
10362
 
 
10363
_LT_EOF
 
10364
        ;;
 
10365
        *)
 
10366
          # For security reasons, it is highly recommended that you always
 
10367
          # use absolute paths for naming shared libraries, and exclude the
 
10368
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10369
          # requires that you compile everything twice, which is a pain.
 
10370
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10371
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10372
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10373
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10374
          else
 
10375
            ld_shlibs=no
 
10376
          fi
 
10377
        ;;
 
10378
      esac
 
10379
      ;;
 
10380
 
 
10381
    sunos4*)
 
10382
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10383
      wlarc=
 
10384
      hardcode_direct=yes
 
10385
      hardcode_shlibpath_var=no
 
10386
      ;;
 
10387
 
 
10388
    *)
 
10389
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10390
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10391
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10392
      else
 
10393
        ld_shlibs=no
 
10394
      fi
 
10395
      ;;
 
10396
    esac
 
10397
 
 
10398
    if test "$ld_shlibs" = no; then
 
10399
      runpath_var=
 
10400
      hardcode_libdir_flag_spec=
 
10401
      export_dynamic_flag_spec=
 
10402
      whole_archive_flag_spec=
 
10403
    fi
 
10404
  else
 
10405
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10406
    case $host_os in
 
10407
    aix3*)
 
10408
      allow_undefined_flag=unsupported
 
10409
      always_export_symbols=yes
 
10410
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
10411
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10412
      # are no directories specified by -L.
 
10413
      hardcode_minus_L=yes
 
10414
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10415
        # Neither direct hardcoding nor static linking is supported with a
 
10416
        # broken collect2.
 
10417
        hardcode_direct=unsupported
 
10418
      fi
 
10419
      ;;
 
10420
 
 
10421
    aix[4-9]*)
 
10422
      if test "$host_cpu" = ia64; then
 
10423
        # On IA64, the linker does run time linking by default, so we don't
 
10424
        # have to do anything special.
 
10425
        aix_use_runtimelinking=no
 
10426
        exp_sym_flag='-Bexport'
 
10427
        no_entry_flag=""
 
10428
      else
 
10429
        # If we're using GNU nm, then we don't want the "-C" option.
 
10430
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10431
        # Also, AIX nm treats weak defined symbols like other global
 
10432
        # defined symbols, whereas GNU nm marks them as "W".
 
10433
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10434
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
10435
        else
 
10436
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
10437
        fi
 
10438
        aix_use_runtimelinking=no
 
10439
 
 
10440
        # Test if we are trying to use run time linking or normal
 
10441
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10442
        # need to do runtime linking.
 
10443
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10444
          for ld_flag in $LDFLAGS; do
 
10445
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10446
            aix_use_runtimelinking=yes
 
10447
            break
 
10448
          fi
 
10449
          done
 
10450
          ;;
 
10451
        esac
 
10452
 
 
10453
        exp_sym_flag='-bexport'
 
10454
        no_entry_flag='-bnoentry'
 
10455
      fi
 
10456
 
 
10457
      # When large executables or shared objects are built, AIX ld can
 
10458
      # have problems creating the table of contents.  If linking a library
 
10459
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10460
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10461
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10462
 
 
10463
      archive_cmds=''
 
10464
      hardcode_direct=yes
 
10465
      hardcode_direct_absolute=yes
 
10466
      hardcode_libdir_separator=':'
 
10467
      link_all_deplibs=yes
 
10468
      file_list_spec='${wl}-f,'
 
10469
 
 
10470
      if test "$GCC" = yes; then
 
10471
        case $host_os in aix4.[012]|aix4.[012].*)
 
10472
        # We only want to do this on AIX 4.2 and lower, the check
 
10473
        # below for broken collect2 doesn't work under 4.3+
 
10474
          collect2name=`${CC} -print-prog-name=collect2`
 
10475
          if test -f "$collect2name" &&
 
10476
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10477
          then
 
10478
          # We have reworked collect2
 
10479
          :
 
10480
          else
 
10481
          # We have old collect2
 
10482
          hardcode_direct=unsupported
 
10483
          # It fails to find uninstalled libraries when the uninstalled
 
10484
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10485
          # to unsupported forces relinking
 
10486
          hardcode_minus_L=yes
 
10487
          hardcode_libdir_flag_spec='-L$libdir'
 
10488
          hardcode_libdir_separator=
 
10489
          fi
 
10490
          ;;
 
10491
        esac
 
10492
        shared_flag='-shared'
 
10493
        if test "$aix_use_runtimelinking" = yes; then
 
10494
          shared_flag="$shared_flag "'${wl}-G'
 
10495
        fi
 
10496
        link_all_deplibs=no
 
10497
      else
 
10498
        # not using gcc
 
10499
        if test "$host_cpu" = ia64; then
 
10500
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10501
        # chokes on -Wl,-G. The following line is correct:
 
10502
          shared_flag='-G'
 
10503
        else
 
10504
          if test "$aix_use_runtimelinking" = yes; then
 
10505
            shared_flag='${wl}-G'
 
10506
          else
 
10507
            shared_flag='${wl}-bM:SRE'
 
10508
          fi
 
10509
        fi
 
10510
      fi
 
10511
 
 
10512
      export_dynamic_flag_spec='${wl}-bexpall'
 
10513
      # It seems that -bexpall does not export symbols beginning with
 
10514
      # underscore (_), so it is better to generate a list of symbols to export.
 
10515
      always_export_symbols=yes
 
10516
      if test "$aix_use_runtimelinking" = yes; then
 
10517
        # Warning - without using the other runtime loading flags (-brtl),
 
10518
        # -berok will link without error, but may produce a broken library.
 
10519
        allow_undefined_flag='-berok'
 
10520
        # Determine the default libpath from the value encoded in an
 
10521
        # empty executable.
 
10522
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10523
  aix_libpath=$lt_cv_aix_libpath
 
10524
else
 
10525
  if ${lt_cv_aix_libpath_+:} false; then :
 
10526
  $as_echo_n "(cached) " >&6
 
10527
else
 
10528
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10529
/* end confdefs.h.  */
 
10530
 
 
10531
int
 
10532
main ()
 
10533
{
 
10534
 
 
10535
  ;
 
10536
  return 0;
 
10537
}
 
10538
_ACEOF
 
10539
if ac_fn_c_try_link "$LINENO"; then :
 
10540
 
 
10541
  lt_aix_libpath_sed='
 
10542
      /Import File Strings/,/^$/ {
 
10543
          /^0/ {
 
10544
              s/^0  *\([^ ]*\) *$/\1/
 
10545
              p
 
10546
          }
 
10547
      }'
 
10548
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10549
  # Check for a 64-bit object if we didn't find anything.
 
10550
  if test -z "$lt_cv_aix_libpath_"; then
 
10551
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10552
  fi
 
10553
fi
 
10554
rm -f core conftest.err conftest.$ac_objext \
 
10555
    conftest$ac_exeext conftest.$ac_ext
 
10556
  if test -z "$lt_cv_aix_libpath_"; then
 
10557
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10558
  fi
 
10559
 
 
10560
fi
 
10561
 
 
10562
  aix_libpath=$lt_cv_aix_libpath_
 
10563
fi
 
10564
 
 
10565
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10566
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10567
      else
 
10568
        if test "$host_cpu" = ia64; then
 
10569
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10570
          allow_undefined_flag="-z nodefs"
 
10571
          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"
 
10572
        else
 
10573
         # Determine the default libpath from the value encoded in an
 
10574
         # empty executable.
 
10575
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10576
  aix_libpath=$lt_cv_aix_libpath
 
10577
else
 
10578
  if ${lt_cv_aix_libpath_+:} false; then :
 
10579
  $as_echo_n "(cached) " >&6
 
10580
else
 
10581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10582
/* end confdefs.h.  */
 
10583
 
 
10584
int
 
10585
main ()
 
10586
{
 
10587
 
 
10588
  ;
 
10589
  return 0;
 
10590
}
 
10591
_ACEOF
 
10592
if ac_fn_c_try_link "$LINENO"; then :
 
10593
 
 
10594
  lt_aix_libpath_sed='
 
10595
      /Import File Strings/,/^$/ {
 
10596
          /^0/ {
 
10597
              s/^0  *\([^ ]*\) *$/\1/
 
10598
              p
 
10599
          }
 
10600
      }'
 
10601
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10602
  # Check for a 64-bit object if we didn't find anything.
 
10603
  if test -z "$lt_cv_aix_libpath_"; then
 
10604
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10605
  fi
 
10606
fi
 
10607
rm -f core conftest.err conftest.$ac_objext \
 
10608
    conftest$ac_exeext conftest.$ac_ext
 
10609
  if test -z "$lt_cv_aix_libpath_"; then
 
10610
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10611
  fi
 
10612
 
 
10613
fi
 
10614
 
 
10615
  aix_libpath=$lt_cv_aix_libpath_
 
10616
fi
 
10617
 
 
10618
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10619
          # Warning - without using the other run time loading flags,
 
10620
          # -berok will link without error, but may produce a broken library.
 
10621
          no_undefined_flag=' ${wl}-bernotok'
 
10622
          allow_undefined_flag=' ${wl}-berok'
 
10623
          if test "$with_gnu_ld" = yes; then
 
10624
            # We only use this code for GNU lds that support --whole-archive.
 
10625
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10626
          else
 
10627
            # Exported symbols can be pulled into shared objects from archives
 
10628
            whole_archive_flag_spec='$convenience'
 
10629
          fi
 
10630
          archive_cmds_need_lc=yes
 
10631
          # This is similar to how AIX traditionally builds its shared libraries.
 
10632
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10633
        fi
 
10634
      fi
 
10635
      ;;
 
10636
 
 
10637
    amigaos*)
 
10638
      case $host_cpu in
 
10639
      powerpc)
 
10640
            # see comment about AmigaOS4 .so support
 
10641
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10642
            archive_expsym_cmds=''
 
10643
        ;;
 
10644
      m68k)
 
10645
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
10646
            hardcode_libdir_flag_spec='-L$libdir'
 
10647
            hardcode_minus_L=yes
 
10648
        ;;
 
10649
      esac
 
10650
      ;;
 
10651
 
 
10652
    bsdi[45]*)
 
10653
      export_dynamic_flag_spec=-rdynamic
 
10654
      ;;
 
10655
 
 
10656
    cygwin* | mingw* | pw32* | cegcc*)
 
10657
      # When not using gcc, we currently assume that we are using
 
10658
      # Microsoft Visual C++.
 
10659
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10660
      # no search path for DLLs.
 
10661
      case $cc_basename in
 
10662
      cl*)
 
10663
        # Native MSVC
 
10664
        hardcode_libdir_flag_spec=' '
 
10665
        allow_undefined_flag=unsupported
 
10666
        always_export_symbols=yes
 
10667
        file_list_spec='@'
 
10668
        # Tell ltmain to make .lib files, not .a files.
 
10669
        libext=lib
 
10670
        # Tell ltmain to make .dll files, not .so files.
 
10671
        shrext_cmds=".dll"
 
10672
        # FIXME: Setting linknames here is a bad hack.
 
10673
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
10674
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10675
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
10676
          else
 
10677
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
10678
          fi~
 
10679
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10680
          linknames='
 
10681
        # The linker will not automatically build a static lib if we build a DLL.
 
10682
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10683
        enable_shared_with_static_runtimes=yes
 
10684
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10685
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10686
        # Don't use ranlib
 
10687
        old_postinstall_cmds='chmod 644 $oldlib'
 
10688
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10689
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10690
          case $lt_outputfile in
 
10691
            *.exe|*.EXE) ;;
 
10692
            *)
 
10693
              lt_outputfile="$lt_outputfile.exe"
 
10694
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10695
              ;;
 
10696
          esac~
 
10697
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10698
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10699
            $RM "$lt_outputfile.manifest";
 
10700
          fi'
 
10701
        ;;
 
10702
      *)
 
10703
        # Assume MSVC wrapper
 
10704
        hardcode_libdir_flag_spec=' '
 
10705
        allow_undefined_flag=unsupported
 
10706
        # Tell ltmain to make .lib files, not .a files.
 
10707
        libext=lib
 
10708
        # Tell ltmain to make .dll files, not .so files.
 
10709
        shrext_cmds=".dll"
 
10710
        # FIXME: Setting linknames here is a bad hack.
 
10711
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10712
        # The linker will automatically build a .lib file if we build a DLL.
 
10713
        old_archive_from_new_cmds='true'
 
10714
        # FIXME: Should let the user specify the lib program.
 
10715
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10716
        enable_shared_with_static_runtimes=yes
 
10717
        ;;
 
10718
      esac
 
10719
      ;;
 
10720
 
 
10721
    darwin* | rhapsody*)
 
10722
 
 
10723
 
 
10724
  archive_cmds_need_lc=no
 
10725
  hardcode_direct=no
 
10726
  hardcode_automatic=yes
 
10727
  hardcode_shlibpath_var=unsupported
 
10728
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10729
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
10730
 
 
10731
  else
 
10732
    whole_archive_flag_spec=''
 
10733
  fi
 
10734
  link_all_deplibs=yes
 
10735
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10736
  case $cc_basename in
 
10737
     ifort*) _lt_dar_can_shared=yes ;;
 
10738
     *) _lt_dar_can_shared=$GCC ;;
 
10739
  esac
 
10740
  if test "$_lt_dar_can_shared" = "yes"; then
 
10741
    output_verbose_link_cmd=func_echo_all
 
10742
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10743
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10744
    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}"
 
10745
    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}"
 
10746
 
 
10747
  else
 
10748
  ld_shlibs=no
 
10749
  fi
 
10750
 
 
10751
      ;;
 
10752
 
 
10753
    dgux*)
 
10754
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10755
      hardcode_libdir_flag_spec='-L$libdir'
 
10756
      hardcode_shlibpath_var=no
 
10757
      ;;
 
10758
 
 
10759
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10760
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10761
    # does not break anything, and helps significantly (at the cost of a little
 
10762
    # extra space).
 
10763
    freebsd2.2*)
 
10764
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10765
      hardcode_libdir_flag_spec='-R$libdir'
 
10766
      hardcode_direct=yes
 
10767
      hardcode_shlibpath_var=no
 
10768
      ;;
 
10769
 
 
10770
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10771
    freebsd2.*)
 
10772
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10773
      hardcode_direct=yes
 
10774
      hardcode_minus_L=yes
 
10775
      hardcode_shlibpath_var=no
 
10776
      ;;
 
10777
 
 
10778
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10779
    freebsd* | dragonfly*)
 
10780
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10781
      hardcode_libdir_flag_spec='-R$libdir'
 
10782
      hardcode_direct=yes
 
10783
      hardcode_shlibpath_var=no
 
10784
      ;;
 
10785
 
 
10786
    hpux9*)
 
10787
      if test "$GCC" = yes; then
 
10788
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10789
      else
 
10790
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10791
      fi
 
10792
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10793
      hardcode_libdir_separator=:
 
10794
      hardcode_direct=yes
 
10795
 
 
10796
      # hardcode_minus_L: Not really in the search PATH,
 
10797
      # but as the default location of the library.
 
10798
      hardcode_minus_L=yes
 
10799
      export_dynamic_flag_spec='${wl}-E'
 
10800
      ;;
 
10801
 
 
10802
    hpux10*)
 
10803
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10804
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10805
      else
 
10806
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10807
      fi
 
10808
      if test "$with_gnu_ld" = no; then
 
10809
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10810
        hardcode_libdir_separator=:
 
10811
        hardcode_direct=yes
 
10812
        hardcode_direct_absolute=yes
 
10813
        export_dynamic_flag_spec='${wl}-E'
 
10814
        # hardcode_minus_L: Not really in the search PATH,
 
10815
        # but as the default location of the library.
 
10816
        hardcode_minus_L=yes
 
10817
      fi
 
10818
      ;;
 
10819
 
 
10820
    hpux11*)
 
10821
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10822
        case $host_cpu in
 
10823
        hppa*64*)
 
10824
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10825
          ;;
 
10826
        ia64*)
 
10827
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10828
          ;;
 
10829
        *)
 
10830
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10831
          ;;
 
10832
        esac
 
10833
      else
 
10834
        case $host_cpu in
 
10835
        hppa*64*)
 
10836
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10837
          ;;
 
10838
        ia64*)
 
10839
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10840
          ;;
 
10841
        *)
 
10842
 
 
10843
          # Older versions of the 11.00 compiler do not understand -b yet
 
10844
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10845
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10846
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10847
if ${lt_cv_prog_compiler__b+:} false; then :
 
10848
  $as_echo_n "(cached) " >&6
 
10849
else
 
10850
  lt_cv_prog_compiler__b=no
 
10851
   save_LDFLAGS="$LDFLAGS"
 
10852
   LDFLAGS="$LDFLAGS -b"
 
10853
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10854
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10855
     # The linker can only warn and ignore the option if not recognized
 
10856
     # So say no if there are warnings
 
10857
     if test -s conftest.err; then
 
10858
       # Append any errors to the config.log.
 
10859
       cat conftest.err 1>&5
 
10860
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10861
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10862
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10863
         lt_cv_prog_compiler__b=yes
 
10864
       fi
 
10865
     else
 
10866
       lt_cv_prog_compiler__b=yes
 
10867
     fi
 
10868
   fi
 
10869
   $RM -r conftest*
 
10870
   LDFLAGS="$save_LDFLAGS"
 
10871
 
 
10872
fi
 
10873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10874
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10875
 
 
10876
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10877
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10878
else
 
10879
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10880
fi
 
10881
 
 
10882
          ;;
 
10883
        esac
 
10884
      fi
 
10885
      if test "$with_gnu_ld" = no; then
 
10886
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10887
        hardcode_libdir_separator=:
 
10888
 
 
10889
        case $host_cpu in
 
10890
        hppa*64*|ia64*)
 
10891
          hardcode_direct=no
 
10892
          hardcode_shlibpath_var=no
 
10893
          ;;
 
10894
        *)
 
10895
          hardcode_direct=yes
 
10896
          hardcode_direct_absolute=yes
 
10897
          export_dynamic_flag_spec='${wl}-E'
 
10898
 
 
10899
          # hardcode_minus_L: Not really in the search PATH,
 
10900
          # but as the default location of the library.
 
10901
          hardcode_minus_L=yes
 
10902
          ;;
 
10903
        esac
 
10904
      fi
 
10905
      ;;
 
10906
 
 
10907
    irix5* | irix6* | nonstopux*)
 
10908
      if test "$GCC" = yes; then
 
10909
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10910
        # Try to use the -exported_symbol ld option, if it does not
 
10911
        # work, assume that -exports_file does not work either and
 
10912
        # implicitly export all symbols.
 
10913
        # This should be the same for all languages, so no per-tag cache variable.
 
10914
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10915
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10916
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10917
  $as_echo_n "(cached) " >&6
 
10918
else
 
10919
  save_LDFLAGS="$LDFLAGS"
 
10920
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10921
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10922
/* end confdefs.h.  */
 
10923
int foo (void) { return 0; }
 
10924
_ACEOF
 
10925
if ac_fn_c_try_link "$LINENO"; then :
 
10926
  lt_cv_irix_exported_symbol=yes
 
10927
else
 
10928
  lt_cv_irix_exported_symbol=no
 
10929
fi
 
10930
rm -f core conftest.err conftest.$ac_objext \
 
10931
    conftest$ac_exeext conftest.$ac_ext
 
10932
           LDFLAGS="$save_LDFLAGS"
 
10933
fi
 
10934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10935
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10936
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10937
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10938
        fi
 
10939
      else
 
10940
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10941
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10942
      fi
 
10943
      archive_cmds_need_lc='no'
 
10944
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10945
      hardcode_libdir_separator=:
 
10946
      inherit_rpath=yes
 
10947
      link_all_deplibs=yes
 
10948
      ;;
 
10949
 
 
10950
    netbsd* | netbsdelf*-gnu)
 
10951
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10952
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10953
      else
 
10954
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10955
      fi
 
10956
      hardcode_libdir_flag_spec='-R$libdir'
 
10957
      hardcode_direct=yes
 
10958
      hardcode_shlibpath_var=no
 
10959
      ;;
 
10960
 
 
10961
    newsos6)
 
10962
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10963
      hardcode_direct=yes
 
10964
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10965
      hardcode_libdir_separator=:
 
10966
      hardcode_shlibpath_var=no
 
10967
      ;;
 
10968
 
 
10969
    *nto* | *qnx*)
 
10970
      ;;
 
10971
 
 
10972
    openbsd*)
 
10973
      if test -f /usr/libexec/ld.so; then
 
10974
        hardcode_direct=yes
 
10975
        hardcode_shlibpath_var=no
 
10976
        hardcode_direct_absolute=yes
 
10977
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10978
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10979
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10980
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10981
          export_dynamic_flag_spec='${wl}-E'
 
10982
        else
 
10983
          case $host_os in
 
10984
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10985
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10986
             hardcode_libdir_flag_spec='-R$libdir'
 
10987
             ;;
 
10988
           *)
 
10989
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10990
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10991
             ;;
 
10992
          esac
 
10993
        fi
 
10994
      else
 
10995
        ld_shlibs=no
 
10996
      fi
 
10997
      ;;
 
10998
 
 
10999
    os2*)
 
11000
      hardcode_libdir_flag_spec='-L$libdir'
 
11001
      hardcode_minus_L=yes
 
11002
      allow_undefined_flag=unsupported
 
11003
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
11004
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
11005
      ;;
 
11006
 
 
11007
    osf3*)
 
11008
      if test "$GCC" = yes; then
 
11009
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11010
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11011
      else
 
11012
        allow_undefined_flag=' -expect_unresolved \*'
 
11013
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
11014
      fi
 
11015
      archive_cmds_need_lc='no'
 
11016
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11017
      hardcode_libdir_separator=:
 
11018
      ;;
 
11019
 
 
11020
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
11021
      if test "$GCC" = yes; then
 
11022
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11023
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11024
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11025
      else
 
11026
        allow_undefined_flag=' -expect_unresolved \*'
 
11027
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
11028
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
11029
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
11030
 
 
11031
        # Both c and cxx compiler support -rpath directly
 
11032
        hardcode_libdir_flag_spec='-rpath $libdir'
 
11033
      fi
 
11034
      archive_cmds_need_lc='no'
 
11035
      hardcode_libdir_separator=:
 
11036
      ;;
 
11037
 
 
11038
    solaris*)
 
11039
      no_undefined_flag=' -z defs'
 
11040
      if test "$GCC" = yes; then
 
11041
        wlarc='${wl}'
 
11042
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11043
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11044
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11045
      else
 
11046
        case `$CC -V 2>&1` in
 
11047
        *"Compilers 5.0"*)
 
11048
          wlarc=''
 
11049
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11050
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11051
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
11052
          ;;
 
11053
        *)
 
11054
          wlarc='${wl}'
 
11055
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11056
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11057
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11058
          ;;
 
11059
        esac
 
11060
      fi
 
11061
      hardcode_libdir_flag_spec='-R$libdir'
 
11062
      hardcode_shlibpath_var=no
 
11063
      case $host_os in
 
11064
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11065
      *)
 
11066
        # The compiler driver will combine and reorder linker options,
 
11067
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
11068
        # but is careful enough not to reorder.
 
11069
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11070
        if test "$GCC" = yes; then
 
11071
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11072
        else
 
11073
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
11074
        fi
 
11075
        ;;
 
11076
      esac
 
11077
      link_all_deplibs=yes
 
11078
      ;;
 
11079
 
 
11080
    sunos4*)
 
11081
      if test "x$host_vendor" = xsequent; then
 
11082
        # Use $CC to link under sequent, because it throws in some extra .o
 
11083
        # files that make .init and .fini sections work.
 
11084
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11085
      else
 
11086
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
11087
      fi
 
11088
      hardcode_libdir_flag_spec='-L$libdir'
 
11089
      hardcode_direct=yes
 
11090
      hardcode_minus_L=yes
 
11091
      hardcode_shlibpath_var=no
 
11092
      ;;
 
11093
 
 
11094
    sysv4)
 
11095
      case $host_vendor in
 
11096
        sni)
 
11097
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11098
          hardcode_direct=yes # is this really true???
 
11099
        ;;
 
11100
        siemens)
 
11101
          ## LD is ld it makes a PLAMLIB
 
11102
          ## CC just makes a GrossModule.
 
11103
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11104
          reload_cmds='$CC -r -o $output$reload_objs'
 
11105
          hardcode_direct=no
 
11106
        ;;
 
11107
        motorola)
 
11108
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11109
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
11110
        ;;
 
11111
      esac
 
11112
      runpath_var='LD_RUN_PATH'
 
11113
      hardcode_shlibpath_var=no
 
11114
      ;;
 
11115
 
 
11116
    sysv4.3*)
 
11117
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11118
      hardcode_shlibpath_var=no
 
11119
      export_dynamic_flag_spec='-Bexport'
 
11120
      ;;
 
11121
 
 
11122
    sysv4*MP*)
 
11123
      if test -d /usr/nec; then
 
11124
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11125
        hardcode_shlibpath_var=no
 
11126
        runpath_var=LD_RUN_PATH
 
11127
        hardcode_runpath_var=yes
 
11128
        ld_shlibs=yes
 
11129
      fi
 
11130
      ;;
 
11131
 
 
11132
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11133
      no_undefined_flag='${wl}-z,text'
 
11134
      archive_cmds_need_lc=no
 
11135
      hardcode_shlibpath_var=no
 
11136
      runpath_var='LD_RUN_PATH'
 
11137
 
 
11138
      if test "$GCC" = yes; then
 
11139
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11140
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11141
      else
 
11142
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11143
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11144
      fi
 
11145
      ;;
 
11146
 
 
11147
    sysv5* | sco3.2v5* | sco5v6*)
 
11148
      # Note: We can NOT use -z defs as we might desire, because we do not
 
11149
      # link with -lc, and that would cause any symbols used from libc to
 
11150
      # always be unresolved, which means just about no library would
 
11151
      # ever link correctly.  If we're not using GNU ld we use -z text
 
11152
      # though, which does catch some bad symbols but isn't as heavy-handed
 
11153
      # as -z defs.
 
11154
      no_undefined_flag='${wl}-z,text'
 
11155
      allow_undefined_flag='${wl}-z,nodefs'
 
11156
      archive_cmds_need_lc=no
 
11157
      hardcode_shlibpath_var=no
 
11158
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
11159
      hardcode_libdir_separator=':'
 
11160
      link_all_deplibs=yes
 
11161
      export_dynamic_flag_spec='${wl}-Bexport'
 
11162
      runpath_var='LD_RUN_PATH'
 
11163
 
 
11164
      if test "$GCC" = yes; then
 
11165
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11166
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11167
      else
 
11168
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11169
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11170
      fi
 
11171
      ;;
 
11172
 
 
11173
    uts4*)
 
11174
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11175
      hardcode_libdir_flag_spec='-L$libdir'
 
11176
      hardcode_shlibpath_var=no
 
11177
      ;;
 
11178
 
 
11179
    *)
 
11180
      ld_shlibs=no
 
11181
      ;;
 
11182
    esac
 
11183
 
 
11184
    if test x$host_vendor = xsni; then
 
11185
      case $host in
 
11186
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11187
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11188
        ;;
 
11189
      esac
 
11190
    fi
 
11191
  fi
 
11192
 
 
11193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
11194
$as_echo "$ld_shlibs" >&6; }
 
11195
test "$ld_shlibs" = no && can_build_shared=no
 
11196
 
 
11197
with_gnu_ld=$with_gnu_ld
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
#
 
11214
# Do we need to explicitly link libc?
 
11215
#
 
11216
case "x$archive_cmds_need_lc" in
 
11217
x|xyes)
 
11218
  # Assume -lc should be added
 
11219
  archive_cmds_need_lc=yes
 
11220
 
 
11221
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11222
    case $archive_cmds in
 
11223
    *'~'*)
 
11224
      # FIXME: we may have to deal with multi-command sequences.
 
11225
      ;;
 
11226
    '$CC '*)
 
11227
      # Test whether the compiler implicitly links with -lc since on some
 
11228
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11229
      # to ld, don't add -lc before -lgcc.
 
11230
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
11231
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
11232
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
11233
  $as_echo_n "(cached) " >&6
 
11234
else
 
11235
  $RM conftest*
 
11236
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11237
 
 
11238
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11239
  (eval $ac_compile) 2>&5
 
11240
  ac_status=$?
 
11241
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11242
  test $ac_status = 0; } 2>conftest.err; then
 
11243
          soname=conftest
 
11244
          lib=conftest
 
11245
          libobjs=conftest.$ac_objext
 
11246
          deplibs=
 
11247
          wl=$lt_prog_compiler_wl
 
11248
          pic_flag=$lt_prog_compiler_pic
 
11249
          compiler_flags=-v
 
11250
          linker_flags=-v
 
11251
          verstring=
 
11252
          output_objdir=.
 
11253
          libname=conftest
 
11254
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
11255
          allow_undefined_flag=
 
11256
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11257
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11258
  ac_status=$?
 
11259
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11260
  test $ac_status = 0; }
 
11261
          then
 
11262
            lt_cv_archive_cmds_need_lc=no
 
11263
          else
 
11264
            lt_cv_archive_cmds_need_lc=yes
 
11265
          fi
 
11266
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
11267
        else
 
11268
          cat conftest.err 1>&5
 
11269
        fi
 
11270
        $RM conftest*
 
11271
 
 
11272
fi
 
11273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
11274
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
11275
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
11276
      ;;
 
11277
    esac
 
11278
  fi
 
11279
  ;;
 
11280
esac
 
11281
 
 
11282
 
 
11283
 
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
 
 
11294
 
 
11295
 
 
11296
 
 
11297
 
 
11298
 
 
11299
 
 
11300
 
 
11301
 
 
11302
 
 
11303
 
 
11304
 
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
 
 
11323
 
 
11324
 
 
11325
 
 
11326
 
 
11327
 
 
11328
 
 
11329
 
 
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
 
 
11337
 
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
 
11349
 
 
11350
 
 
11351
 
 
11352
 
 
11353
 
 
11354
 
 
11355
 
 
11356
 
 
11357
 
 
11358
 
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
 
 
11390
 
 
11391
 
 
11392
 
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
 
 
11398
 
 
11399
 
 
11400
 
 
11401
 
 
11402
 
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
 
 
11408
 
 
11409
 
 
11410
 
 
11411
 
 
11412
 
 
11413
 
 
11414
 
 
11415
 
 
11416
 
 
11417
 
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
 
 
11427
 
 
11428
 
 
11429
 
 
11430
 
 
11431
 
 
11432
 
 
11433
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11434
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
11435
 
 
11436
if test "$GCC" = yes; then
 
11437
  case $host_os in
 
11438
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
11439
    *) lt_awk_arg="/^libraries:/" ;;
 
11440
  esac
 
11441
  case $host_os in
 
11442
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
11443
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
11444
  esac
 
11445
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11446
  case $lt_search_path_spec in
 
11447
  *\;*)
 
11448
    # if the path contains ";" then we assume it to be the separator
 
11449
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11450
    # assumed that no part of a normal pathname contains ";" but that should
 
11451
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11452
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11453
    ;;
 
11454
  *)
 
11455
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11456
    ;;
 
11457
  esac
 
11458
  # Ok, now we have the path, separated by spaces, we can step through it
 
11459
  # and add multilib dir if necessary.
 
11460
  lt_tmp_lt_search_path_spec=
 
11461
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11462
  for lt_sys_path in $lt_search_path_spec; do
 
11463
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
11464
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
11465
    else
 
11466
      test -d "$lt_sys_path" && \
 
11467
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11468
    fi
 
11469
  done
 
11470
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
11471
BEGIN {RS=" "; FS="/|\n";} {
 
11472
  lt_foo="";
 
11473
  lt_count=0;
 
11474
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11475
    if ($lt_i != "" && $lt_i != ".") {
 
11476
      if ($lt_i == "..") {
 
11477
        lt_count++;
 
11478
      } else {
 
11479
        if (lt_count == 0) {
 
11480
          lt_foo="/" $lt_i lt_foo;
 
11481
        } else {
 
11482
          lt_count--;
 
11483
        }
 
11484
      }
 
11485
    }
 
11486
  }
 
11487
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11488
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11489
}'`
 
11490
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11491
  # for these hosts.
 
11492
  case $host_os in
 
11493
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11494
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
11495
  esac
 
11496
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
11497
else
 
11498
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11499
fi
 
11500
library_names_spec=
 
11501
libname_spec='lib$name'
 
11502
soname_spec=
 
11503
shrext_cmds=".so"
 
11504
postinstall_cmds=
 
11505
postuninstall_cmds=
 
11506
finish_cmds=
 
11507
finish_eval=
 
11508
shlibpath_var=
 
11509
shlibpath_overrides_runpath=unknown
 
11510
version_type=none
 
11511
dynamic_linker="$host_os ld.so"
 
11512
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11513
need_lib_prefix=unknown
 
11514
hardcode_into_libs=no
 
11515
 
 
11516
# when you set need_version to no, make sure it does not cause -set_version
 
11517
# flags to be left without arguments
 
11518
need_version=unknown
 
11519
 
 
11520
case $host_os in
 
11521
aix3*)
 
11522
  version_type=linux # correct to gnu/linux during the next big refactor
 
11523
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11524
  shlibpath_var=LIBPATH
 
11525
 
 
11526
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11527
  soname_spec='${libname}${release}${shared_ext}$major'
 
11528
  ;;
 
11529
 
 
11530
aix[4-9]*)
 
11531
  version_type=linux # correct to gnu/linux during the next big refactor
 
11532
  need_lib_prefix=no
 
11533
  need_version=no
 
11534
  hardcode_into_libs=yes
 
11535
  if test "$host_cpu" = ia64; then
 
11536
    # AIX 5 supports IA64
 
11537
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11538
    shlibpath_var=LD_LIBRARY_PATH
 
11539
  else
 
11540
    # With GCC up to 2.95.x, collect2 would create an import file
 
11541
    # for dependence libraries.  The import file would start with
 
11542
    # the line `#! .'.  This would cause the generated library to
 
11543
    # depend on `.', always an invalid library.  This was fixed in
 
11544
    # development snapshots of GCC prior to 3.0.
 
11545
    case $host_os in
 
11546
      aix4 | aix4.[01] | aix4.[01].*)
 
11547
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11548
           echo ' yes '
 
11549
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11550
        :
 
11551
      else
 
11552
        can_build_shared=no
 
11553
      fi
 
11554
      ;;
 
11555
    esac
 
11556
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11557
    # soname into executable. Probably we can add versioning support to
 
11558
    # collect2, so additional links can be useful in future.
 
11559
    if test "$aix_use_runtimelinking" = yes; then
 
11560
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11561
      # instead of lib<name>.a to let people know that these are not
 
11562
      # typical AIX shared libraries.
 
11563
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11564
    else
 
11565
      # We preserve .a as extension for shared libraries through AIX4.2
 
11566
      # and later when we are not doing run time linking.
 
11567
      library_names_spec='${libname}${release}.a $libname.a'
 
11568
      soname_spec='${libname}${release}${shared_ext}$major'
 
11569
    fi
 
11570
    shlibpath_var=LIBPATH
 
11571
  fi
 
11572
  ;;
 
11573
 
 
11574
amigaos*)
 
11575
  case $host_cpu in
 
11576
  powerpc)
 
11577
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11578
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11579
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11580
    ;;
 
11581
  m68k)
 
11582
    library_names_spec='$libname.ixlibrary $libname.a'
 
11583
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11584
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
11585
    ;;
 
11586
  esac
 
11587
  ;;
 
11588
 
 
11589
beos*)
 
11590
  library_names_spec='${libname}${shared_ext}'
 
11591
  dynamic_linker="$host_os ld.so"
 
11592
  shlibpath_var=LIBRARY_PATH
 
11593
  ;;
 
11594
 
 
11595
bsdi[45]*)
 
11596
  version_type=linux # correct to gnu/linux during the next big refactor
 
11597
  need_version=no
 
11598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11599
  soname_spec='${libname}${release}${shared_ext}$major'
 
11600
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11601
  shlibpath_var=LD_LIBRARY_PATH
 
11602
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11603
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11604
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11605
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11606
  # libtool to hard-code these into programs
 
11607
  ;;
 
11608
 
 
11609
cygwin* | mingw* | pw32* | cegcc*)
 
11610
  version_type=windows
 
11611
  shrext_cmds=".dll"
 
11612
  need_version=no
 
11613
  need_lib_prefix=no
 
11614
 
 
11615
  case $GCC,$cc_basename in
 
11616
  yes,*)
 
11617
    # gcc
 
11618
    library_names_spec='$libname.dll.a'
 
11619
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11620
    postinstall_cmds='base_file=`basename \${file}`~
 
11621
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11622
      dldir=$destdir/`dirname \$dlpath`~
 
11623
      test -d \$dldir || mkdir -p \$dldir~
 
11624
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11625
      chmod a+x \$dldir/$dlname~
 
11626
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11627
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11628
      fi'
 
11629
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11630
      dlpath=$dir/\$dldll~
 
11631
       $RM \$dlpath'
 
11632
    shlibpath_overrides_runpath=yes
 
11633
 
 
11634
    case $host_os in
 
11635
    cygwin*)
 
11636
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11637
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11638
 
 
11639
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11640
      ;;
 
11641
    mingw* | cegcc*)
 
11642
      # MinGW DLLs use traditional 'lib' prefix
 
11643
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11644
      ;;
 
11645
    pw32*)
 
11646
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11647
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11648
      ;;
 
11649
    esac
 
11650
    dynamic_linker='Win32 ld.exe'
 
11651
    ;;
 
11652
 
 
11653
  *,cl*)
 
11654
    # Native MSVC
 
11655
    libname_spec='$name'
 
11656
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11657
    library_names_spec='${libname}.dll.lib'
 
11658
 
 
11659
    case $build_os in
 
11660
    mingw*)
 
11661
      sys_lib_search_path_spec=
 
11662
      lt_save_ifs=$IFS
 
11663
      IFS=';'
 
11664
      for lt_path in $LIB
 
11665
      do
 
11666
        IFS=$lt_save_ifs
 
11667
        # Let DOS variable expansion print the short 8.3 style file name.
 
11668
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11669
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11670
      done
 
11671
      IFS=$lt_save_ifs
 
11672
      # Convert to MSYS style.
 
11673
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11674
      ;;
 
11675
    cygwin*)
 
11676
      # Convert to unix form, then to dos form, then back to unix form
 
11677
      # but this time dos style (no spaces!) so that the unix form looks
 
11678
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11679
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11680
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11681
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11682
      ;;
 
11683
    *)
 
11684
      sys_lib_search_path_spec="$LIB"
 
11685
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11686
        # It is most probably a Windows format PATH.
 
11687
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11688
      else
 
11689
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11690
      fi
 
11691
      # FIXME: find the short name or the path components, as spaces are
 
11692
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11693
      ;;
 
11694
    esac
 
11695
 
 
11696
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11697
    postinstall_cmds='base_file=`basename \${file}`~
 
11698
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11699
      dldir=$destdir/`dirname \$dlpath`~
 
11700
      test -d \$dldir || mkdir -p \$dldir~
 
11701
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11702
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11703
      dlpath=$dir/\$dldll~
 
11704
       $RM \$dlpath'
 
11705
    shlibpath_overrides_runpath=yes
 
11706
    dynamic_linker='Win32 link.exe'
 
11707
    ;;
 
11708
 
 
11709
  *)
 
11710
    # Assume MSVC wrapper
 
11711
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11712
    dynamic_linker='Win32 ld.exe'
 
11713
    ;;
 
11714
  esac
 
11715
  # FIXME: first we should search . and the directory the executable is in
 
11716
  shlibpath_var=PATH
 
11717
  ;;
 
11718
 
 
11719
darwin* | rhapsody*)
 
11720
  dynamic_linker="$host_os dyld"
 
11721
  version_type=darwin
 
11722
  need_lib_prefix=no
 
11723
  need_version=no
 
11724
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11725
  soname_spec='${libname}${release}${major}$shared_ext'
 
11726
  shlibpath_overrides_runpath=yes
 
11727
  shlibpath_var=DYLD_LIBRARY_PATH
 
11728
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11729
 
 
11730
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11731
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11732
  ;;
 
11733
 
 
11734
dgux*)
 
11735
  version_type=linux # correct to gnu/linux during the next big refactor
 
11736
  need_lib_prefix=no
 
11737
  need_version=no
 
11738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11739
  soname_spec='${libname}${release}${shared_ext}$major'
 
11740
  shlibpath_var=LD_LIBRARY_PATH
 
11741
  ;;
 
11742
 
 
11743
freebsd* | dragonfly*)
 
11744
  # DragonFly does not have aout.  When/if they implement a new
 
11745
  # versioning mechanism, adjust this.
 
11746
  if test -x /usr/bin/objformat; then
 
11747
    objformat=`/usr/bin/objformat`
 
11748
  else
 
11749
    case $host_os in
 
11750
    freebsd[23].*) objformat=aout ;;
 
11751
    *) objformat=elf ;;
 
11752
    esac
 
11753
  fi
 
11754
  version_type=freebsd-$objformat
 
11755
  case $version_type in
 
11756
    freebsd-elf*)
 
11757
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11758
      need_version=no
 
11759
      need_lib_prefix=no
 
11760
      ;;
 
11761
    freebsd-*)
 
11762
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11763
      need_version=yes
 
11764
      ;;
 
11765
  esac
 
11766
  shlibpath_var=LD_LIBRARY_PATH
 
11767
  case $host_os in
 
11768
  freebsd2.*)
 
11769
    shlibpath_overrides_runpath=yes
 
11770
    ;;
 
11771
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11772
    shlibpath_overrides_runpath=yes
 
11773
    hardcode_into_libs=yes
 
11774
    ;;
 
11775
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11776
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11777
    shlibpath_overrides_runpath=no
 
11778
    hardcode_into_libs=yes
 
11779
    ;;
 
11780
  *) # from 4.6 on, and DragonFly
 
11781
    shlibpath_overrides_runpath=yes
 
11782
    hardcode_into_libs=yes
 
11783
    ;;
 
11784
  esac
 
11785
  ;;
 
11786
 
 
11787
haiku*)
 
11788
  version_type=linux # correct to gnu/linux during the next big refactor
 
11789
  need_lib_prefix=no
 
11790
  need_version=no
 
11791
  dynamic_linker="$host_os runtime_loader"
 
11792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11793
  soname_spec='${libname}${release}${shared_ext}$major'
 
11794
  shlibpath_var=LIBRARY_PATH
 
11795
  shlibpath_overrides_runpath=yes
 
11796
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11797
  hardcode_into_libs=yes
 
11798
  ;;
 
11799
 
 
11800
hpux9* | hpux10* | hpux11*)
 
11801
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11802
  # link against other versions.
 
11803
  version_type=sunos
 
11804
  need_lib_prefix=no
 
11805
  need_version=no
 
11806
  case $host_cpu in
 
11807
  ia64*)
 
11808
    shrext_cmds='.so'
 
11809
    hardcode_into_libs=yes
 
11810
    dynamic_linker="$host_os dld.so"
 
11811
    shlibpath_var=LD_LIBRARY_PATH
 
11812
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11813
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11814
    soname_spec='${libname}${release}${shared_ext}$major'
 
11815
    if test "X$HPUX_IA64_MODE" = X32; then
 
11816
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11817
    else
 
11818
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11819
    fi
 
11820
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11821
    ;;
 
11822
  hppa*64*)
 
11823
    shrext_cmds='.sl'
 
11824
    hardcode_into_libs=yes
 
11825
    dynamic_linker="$host_os dld.sl"
 
11826
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11827
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11828
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11829
    soname_spec='${libname}${release}${shared_ext}$major'
 
11830
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11831
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11832
    ;;
 
11833
  *)
 
11834
    shrext_cmds='.sl'
 
11835
    dynamic_linker="$host_os dld.sl"
 
11836
    shlibpath_var=SHLIB_PATH
 
11837
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11838
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11839
    soname_spec='${libname}${release}${shared_ext}$major'
 
11840
    ;;
 
11841
  esac
 
11842
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11843
  postinstall_cmds='chmod 555 $lib'
 
11844
  # or fails outright, so override atomically:
 
11845
  install_override_mode=555
 
11846
  ;;
 
11847
 
 
11848
interix[3-9]*)
 
11849
  version_type=linux # correct to gnu/linux during the next big refactor
 
11850
  need_lib_prefix=no
 
11851
  need_version=no
 
11852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11853
  soname_spec='${libname}${release}${shared_ext}$major'
 
11854
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11855
  shlibpath_var=LD_LIBRARY_PATH
 
11856
  shlibpath_overrides_runpath=no
 
11857
  hardcode_into_libs=yes
 
11858
  ;;
 
11859
 
 
11860
irix5* | irix6* | nonstopux*)
 
11861
  case $host_os in
 
11862
    nonstopux*) version_type=nonstopux ;;
 
11863
    *)
 
11864
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11865
                version_type=linux # correct to gnu/linux during the next big refactor
 
11866
        else
 
11867
                version_type=irix
 
11868
        fi ;;
 
11869
  esac
 
11870
  need_lib_prefix=no
 
11871
  need_version=no
 
11872
  soname_spec='${libname}${release}${shared_ext}$major'
 
11873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11874
  case $host_os in
 
11875
  irix5* | nonstopux*)
 
11876
    libsuff= shlibsuff=
 
11877
    ;;
 
11878
  *)
 
11879
    case $LD in # libtool.m4 will add one of these switches to LD
 
11880
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11881
      libsuff= shlibsuff= libmagic=32-bit;;
 
11882
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11883
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11884
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11885
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11886
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11887
    esac
 
11888
    ;;
 
11889
  esac
 
11890
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11891
  shlibpath_overrides_runpath=no
 
11892
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11893
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11894
  hardcode_into_libs=yes
 
11895
  ;;
 
11896
 
 
11897
# No shared lib support for Linux oldld, aout, or coff.
 
11898
linux*oldld* | linux*aout* | linux*coff*)
 
11899
  dynamic_linker=no
 
11900
  ;;
 
11901
 
 
11902
# This must be glibc/ELF.
 
11903
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11904
  version_type=linux # correct to gnu/linux during the next big refactor
 
11905
  need_lib_prefix=no
 
11906
  need_version=no
 
11907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11908
  soname_spec='${libname}${release}${shared_ext}$major'
 
11909
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11910
  shlibpath_var=LD_LIBRARY_PATH
 
11911
  shlibpath_overrides_runpath=no
 
11912
 
 
11913
  # Some binutils ld are patched to set DT_RUNPATH
 
11914
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11915
  $as_echo_n "(cached) " >&6
 
11916
else
 
11917
  lt_cv_shlibpath_overrides_runpath=no
 
11918
    save_LDFLAGS=$LDFLAGS
 
11919
    save_libdir=$libdir
 
11920
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11921
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11922
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11923
/* end confdefs.h.  */
 
11924
 
 
11925
int
 
11926
main ()
 
11927
{
 
11928
 
 
11929
  ;
 
11930
  return 0;
 
11931
}
 
11932
_ACEOF
 
11933
if ac_fn_c_try_link "$LINENO"; then :
 
11934
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11935
  lt_cv_shlibpath_overrides_runpath=yes
 
11936
fi
 
11937
fi
 
11938
rm -f core conftest.err conftest.$ac_objext \
 
11939
    conftest$ac_exeext conftest.$ac_ext
 
11940
    LDFLAGS=$save_LDFLAGS
 
11941
    libdir=$save_libdir
 
11942
 
 
11943
fi
 
11944
 
 
11945
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11946
 
 
11947
  # This implies no fast_install, which is unacceptable.
 
11948
  # Some rework will be needed to allow for fast_install
 
11949
  # before this can be enabled.
 
11950
  hardcode_into_libs=yes
 
11951
 
 
11952
  # Append ld.so.conf contents to the search path
 
11953
  if test -f /etc/ld.so.conf; then
 
11954
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
11955
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11956
  fi
 
11957
 
 
11958
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11959
  # powerpc, because MkLinux only supported shared libraries with the
 
11960
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11961
  # most powerpc-linux boxes support dynamic linking these days and
 
11962
  # people can always --disable-shared, the test was removed, and we
 
11963
  # assume the GNU/Linux dynamic linker is in use.
 
11964
  dynamic_linker='GNU/Linux ld.so'
 
11965
  ;;
 
11966
 
 
11967
netbsdelf*-gnu)
 
11968
  version_type=linux
 
11969
  need_lib_prefix=no
 
11970
  need_version=no
 
11971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11972
  soname_spec='${libname}${release}${shared_ext}$major'
 
11973
  shlibpath_var=LD_LIBRARY_PATH
 
11974
  shlibpath_overrides_runpath=no
 
11975
  hardcode_into_libs=yes
 
11976
  dynamic_linker='NetBSD ld.elf_so'
 
11977
  ;;
 
11978
 
 
11979
netbsd*)
 
11980
  version_type=sunos
 
11981
  need_lib_prefix=no
 
11982
  need_version=no
 
11983
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11984
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11985
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11986
    dynamic_linker='NetBSD (a.out) ld.so'
 
11987
  else
 
11988
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11989
    soname_spec='${libname}${release}${shared_ext}$major'
 
11990
    dynamic_linker='NetBSD ld.elf_so'
 
11991
  fi
 
11992
  shlibpath_var=LD_LIBRARY_PATH
 
11993
  shlibpath_overrides_runpath=yes
 
11994
  hardcode_into_libs=yes
 
11995
  ;;
 
11996
 
 
11997
newsos6)
 
11998
  version_type=linux # correct to gnu/linux during the next big refactor
 
11999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12000
  shlibpath_var=LD_LIBRARY_PATH
 
12001
  shlibpath_overrides_runpath=yes
 
12002
  ;;
 
12003
 
 
12004
*nto* | *qnx*)
 
12005
  version_type=qnx
 
12006
  need_lib_prefix=no
 
12007
  need_version=no
 
12008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12009
  soname_spec='${libname}${release}${shared_ext}$major'
 
12010
  shlibpath_var=LD_LIBRARY_PATH
 
12011
  shlibpath_overrides_runpath=no
 
12012
  hardcode_into_libs=yes
 
12013
  dynamic_linker='ldqnx.so'
 
12014
  ;;
 
12015
 
 
12016
openbsd*)
 
12017
  version_type=sunos
 
12018
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12019
  need_lib_prefix=no
 
12020
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12021
  case $host_os in
 
12022
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
12023
    *)                          need_version=no  ;;
 
12024
  esac
 
12025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12026
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12027
  shlibpath_var=LD_LIBRARY_PATH
 
12028
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12029
    case $host_os in
 
12030
      openbsd2.[89] | openbsd2.[89].*)
 
12031
        shlibpath_overrides_runpath=no
 
12032
        ;;
 
12033
      *)
 
12034
        shlibpath_overrides_runpath=yes
 
12035
        ;;
 
12036
      esac
 
12037
  else
 
12038
    shlibpath_overrides_runpath=yes
 
12039
  fi
 
12040
  ;;
 
12041
 
 
12042
os2*)
 
12043
  libname_spec='$name'
 
12044
  shrext_cmds=".dll"
 
12045
  need_lib_prefix=no
 
12046
  library_names_spec='$libname${shared_ext} $libname.a'
 
12047
  dynamic_linker='OS/2 ld.exe'
 
12048
  shlibpath_var=LIBPATH
 
12049
  ;;
 
12050
 
 
12051
osf3* | osf4* | osf5*)
 
12052
  version_type=osf
 
12053
  need_lib_prefix=no
 
12054
  need_version=no
 
12055
  soname_spec='${libname}${release}${shared_ext}$major'
 
12056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12057
  shlibpath_var=LD_LIBRARY_PATH
 
12058
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12059
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12060
  ;;
 
12061
 
 
12062
rdos*)
 
12063
  dynamic_linker=no
 
12064
  ;;
 
12065
 
 
12066
solaris*)
 
12067
  version_type=linux # correct to gnu/linux during the next big refactor
 
12068
  need_lib_prefix=no
 
12069
  need_version=no
 
12070
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12071
  soname_spec='${libname}${release}${shared_ext}$major'
 
12072
  shlibpath_var=LD_LIBRARY_PATH
 
12073
  shlibpath_overrides_runpath=yes
 
12074
  hardcode_into_libs=yes
 
12075
  # ldd complains unless libraries are executable
 
12076
  postinstall_cmds='chmod +x $lib'
 
12077
  ;;
 
12078
 
 
12079
sunos4*)
 
12080
  version_type=sunos
 
12081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12082
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12083
  shlibpath_var=LD_LIBRARY_PATH
 
12084
  shlibpath_overrides_runpath=yes
 
12085
  if test "$with_gnu_ld" = yes; then
 
12086
    need_lib_prefix=no
 
12087
  fi
 
12088
  need_version=yes
 
12089
  ;;
 
12090
 
 
12091
sysv4 | sysv4.3*)
 
12092
  version_type=linux # correct to gnu/linux during the next big refactor
 
12093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12094
  soname_spec='${libname}${release}${shared_ext}$major'
 
12095
  shlibpath_var=LD_LIBRARY_PATH
 
12096
  case $host_vendor in
 
12097
    sni)
 
12098
      shlibpath_overrides_runpath=no
 
12099
      need_lib_prefix=no
 
12100
      runpath_var=LD_RUN_PATH
 
12101
      ;;
 
12102
    siemens)
 
12103
      need_lib_prefix=no
 
12104
      ;;
 
12105
    motorola)
 
12106
      need_lib_prefix=no
 
12107
      need_version=no
 
12108
      shlibpath_overrides_runpath=no
 
12109
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12110
      ;;
 
12111
  esac
 
12112
  ;;
 
12113
 
 
12114
sysv4*MP*)
 
12115
  if test -d /usr/nec ;then
 
12116
    version_type=linux # correct to gnu/linux during the next big refactor
 
12117
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12118
    soname_spec='$libname${shared_ext}.$major'
 
12119
    shlibpath_var=LD_LIBRARY_PATH
 
12120
  fi
 
12121
  ;;
 
12122
 
 
12123
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12124
  version_type=freebsd-elf
 
12125
  need_lib_prefix=no
 
12126
  need_version=no
 
12127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12128
  soname_spec='${libname}${release}${shared_ext}$major'
 
12129
  shlibpath_var=LD_LIBRARY_PATH
 
12130
  shlibpath_overrides_runpath=yes
 
12131
  hardcode_into_libs=yes
 
12132
  if test "$with_gnu_ld" = yes; then
 
12133
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12134
  else
 
12135
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12136
    case $host_os in
 
12137
      sco3.2v5*)
 
12138
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12139
        ;;
 
12140
    esac
 
12141
  fi
 
12142
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12143
  ;;
 
12144
 
 
12145
tpf*)
 
12146
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
12147
  version_type=linux # correct to gnu/linux during the next big refactor
 
12148
  need_lib_prefix=no
 
12149
  need_version=no
 
12150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12151
  shlibpath_var=LD_LIBRARY_PATH
 
12152
  shlibpath_overrides_runpath=no
 
12153
  hardcode_into_libs=yes
 
12154
  ;;
 
12155
 
 
12156
uts4*)
 
12157
  version_type=linux # correct to gnu/linux during the next big refactor
 
12158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12159
  soname_spec='${libname}${release}${shared_ext}$major'
 
12160
  shlibpath_var=LD_LIBRARY_PATH
 
12161
  ;;
 
12162
 
 
12163
*)
 
12164
  dynamic_linker=no
 
12165
  ;;
 
12166
esac
 
12167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
12168
$as_echo "$dynamic_linker" >&6; }
 
12169
test "$dynamic_linker" = no && can_build_shared=no
 
12170
 
 
12171
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12172
if test "$GCC" = yes; then
 
12173
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12174
fi
 
12175
 
 
12176
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
12177
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
12178
fi
 
12179
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
12180
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
12181
fi
 
12182
 
 
12183
 
 
12184
 
 
12185
 
 
12186
 
 
12187
 
 
12188
 
 
12189
 
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
 
 
12196
 
 
12197
 
 
12198
 
 
12199
 
 
12200
 
 
12201
 
 
12202
 
 
12203
 
 
12204
 
 
12205
 
 
12206
 
 
12207
 
 
12208
 
 
12209
 
 
12210
 
 
12211
 
 
12212
 
 
12213
 
 
12214
 
 
12215
 
 
12216
 
 
12217
 
 
12218
 
 
12219
 
 
12220
 
 
12221
 
 
12222
 
 
12223
 
 
12224
 
 
12225
 
 
12226
 
 
12227
 
 
12228
 
 
12229
 
 
12230
 
 
12231
 
 
12232
 
 
12233
 
 
12234
 
 
12235
 
 
12236
 
 
12237
 
 
12238
 
 
12239
 
 
12240
 
 
12241
 
 
12242
 
 
12243
 
 
12244
 
 
12245
 
 
12246
 
 
12247
 
 
12248
 
 
12249
 
 
12250
 
 
12251
 
 
12252
 
 
12253
 
 
12254
 
 
12255
 
 
12256
 
 
12257
 
 
12258
 
 
12259
 
 
12260
 
 
12261
 
 
12262
 
 
12263
 
 
12264
 
 
12265
 
 
12266
 
 
12267
 
 
12268
 
 
12269
 
 
12270
 
 
12271
 
 
12272
 
 
12273
 
 
12274
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
12275
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
12276
hardcode_action=
 
12277
if test -n "$hardcode_libdir_flag_spec" ||
 
12278
   test -n "$runpath_var" ||
 
12279
   test "X$hardcode_automatic" = "Xyes" ; then
 
12280
 
 
12281
  # We can hardcode non-existent directories.
 
12282
  if test "$hardcode_direct" != no &&
 
12283
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12284
     # have to relink, otherwise we might link with an installed library
 
12285
     # when we should be linking with a yet-to-be-installed one
 
12286
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
12287
     test "$hardcode_minus_L" != no; then
 
12288
    # Linking always hardcodes the temporary library directory.
 
12289
    hardcode_action=relink
 
12290
  else
 
12291
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12292
    hardcode_action=immediate
 
12293
  fi
 
12294
else
 
12295
  # We cannot hardcode anything, or else we can only hardcode existing
 
12296
  # directories.
 
12297
  hardcode_action=unsupported
 
12298
fi
 
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
12300
$as_echo "$hardcode_action" >&6; }
 
12301
 
 
12302
if test "$hardcode_action" = relink ||
 
12303
   test "$inherit_rpath" = yes; then
 
12304
  # Fast installation is not supported
 
12305
  enable_fast_install=no
 
12306
elif test "$shlibpath_overrides_runpath" = yes ||
 
12307
     test "$enable_shared" = no; then
 
12308
  # Fast installation is not necessary
 
12309
  enable_fast_install=needless
 
12310
fi
 
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
 
12316
 
 
12317
  if test "x$enable_dlopen" != xyes; then
 
12318
  enable_dlopen=unknown
 
12319
  enable_dlopen_self=unknown
 
12320
  enable_dlopen_self_static=unknown
 
12321
else
 
12322
  lt_cv_dlopen=no
 
12323
  lt_cv_dlopen_libs=
 
12324
 
 
12325
  case $host_os in
 
12326
  beos*)
 
12327
    lt_cv_dlopen="load_add_on"
 
12328
    lt_cv_dlopen_libs=
 
12329
    lt_cv_dlopen_self=yes
 
12330
    ;;
 
12331
 
 
12332
  mingw* | pw32* | cegcc*)
 
12333
    lt_cv_dlopen="LoadLibrary"
 
12334
    lt_cv_dlopen_libs=
 
12335
    ;;
 
12336
 
 
12337
  cygwin*)
 
12338
    lt_cv_dlopen="dlopen"
 
12339
    lt_cv_dlopen_libs=
 
12340
    ;;
 
12341
 
 
12342
  darwin*)
 
12343
  # if libdl is installed we need to link against it
 
12344
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12345
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12346
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12347
  $as_echo_n "(cached) " >&6
 
12348
else
 
12349
  ac_check_lib_save_LIBS=$LIBS
 
12350
LIBS="-ldl  $LIBS"
 
12351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12352
/* end confdefs.h.  */
 
12353
 
 
12354
/* Override any GCC internal prototype to avoid an error.
 
12355
   Use char because int might match the return type of a GCC
 
12356
   builtin and then its argument prototype would still apply.  */
 
12357
#ifdef __cplusplus
 
12358
extern "C"
 
12359
#endif
 
12360
char dlopen ();
 
12361
int
 
12362
main ()
 
12363
{
 
12364
return dlopen ();
 
12365
  ;
 
12366
  return 0;
 
12367
}
 
12368
_ACEOF
 
12369
if ac_fn_c_try_link "$LINENO"; then :
 
12370
  ac_cv_lib_dl_dlopen=yes
 
12371
else
 
12372
  ac_cv_lib_dl_dlopen=no
 
12373
fi
 
12374
rm -f core conftest.err conftest.$ac_objext \
 
12375
    conftest$ac_exeext conftest.$ac_ext
 
12376
LIBS=$ac_check_lib_save_LIBS
 
12377
fi
 
12378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12379
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12380
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12381
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12382
else
 
12383
 
 
12384
    lt_cv_dlopen="dyld"
 
12385
    lt_cv_dlopen_libs=
 
12386
    lt_cv_dlopen_self=yes
 
12387
 
 
12388
fi
 
12389
 
 
12390
    ;;
 
12391
 
 
12392
  *)
 
12393
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12394
if test "x$ac_cv_func_shl_load" = xyes; then :
 
12395
  lt_cv_dlopen="shl_load"
 
12396
else
 
12397
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12398
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12399
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
12400
  $as_echo_n "(cached) " >&6
 
12401
else
 
12402
  ac_check_lib_save_LIBS=$LIBS
 
12403
LIBS="-ldld  $LIBS"
 
12404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12405
/* end confdefs.h.  */
 
12406
 
 
12407
/* Override any GCC internal prototype to avoid an error.
 
12408
   Use char because int might match the return type of a GCC
 
12409
   builtin and then its argument prototype would still apply.  */
 
12410
#ifdef __cplusplus
 
12411
extern "C"
 
12412
#endif
 
12413
char shl_load ();
 
12414
int
 
12415
main ()
 
12416
{
 
12417
return shl_load ();
 
12418
  ;
 
12419
  return 0;
 
12420
}
 
12421
_ACEOF
 
12422
if ac_fn_c_try_link "$LINENO"; then :
 
12423
  ac_cv_lib_dld_shl_load=yes
 
12424
else
 
12425
  ac_cv_lib_dld_shl_load=no
 
12426
fi
 
12427
rm -f core conftest.err conftest.$ac_objext \
 
12428
    conftest$ac_exeext conftest.$ac_ext
 
12429
LIBS=$ac_check_lib_save_LIBS
 
12430
fi
 
12431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12432
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12433
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
12434
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12435
else
 
12436
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12437
if test "x$ac_cv_func_dlopen" = xyes; then :
 
12438
  lt_cv_dlopen="dlopen"
 
12439
else
 
12440
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12441
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12442
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12443
  $as_echo_n "(cached) " >&6
 
12444
else
 
12445
  ac_check_lib_save_LIBS=$LIBS
 
12446
LIBS="-ldl  $LIBS"
 
12447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12448
/* end confdefs.h.  */
 
12449
 
 
12450
/* Override any GCC internal prototype to avoid an error.
 
12451
   Use char because int might match the return type of a GCC
 
12452
   builtin and then its argument prototype would still apply.  */
 
12453
#ifdef __cplusplus
 
12454
extern "C"
 
12455
#endif
 
12456
char dlopen ();
 
12457
int
 
12458
main ()
 
12459
{
 
12460
return dlopen ();
 
12461
  ;
 
12462
  return 0;
 
12463
}
 
12464
_ACEOF
 
12465
if ac_fn_c_try_link "$LINENO"; then :
 
12466
  ac_cv_lib_dl_dlopen=yes
 
12467
else
 
12468
  ac_cv_lib_dl_dlopen=no
 
12469
fi
 
12470
rm -f core conftest.err conftest.$ac_objext \
 
12471
    conftest$ac_exeext conftest.$ac_ext
 
12472
LIBS=$ac_check_lib_save_LIBS
 
12473
fi
 
12474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12475
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12476
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12477
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12478
else
 
12479
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12480
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
12481
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
12482
  $as_echo_n "(cached) " >&6
 
12483
else
 
12484
  ac_check_lib_save_LIBS=$LIBS
 
12485
LIBS="-lsvld  $LIBS"
 
12486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12487
/* end confdefs.h.  */
 
12488
 
 
12489
/* Override any GCC internal prototype to avoid an error.
 
12490
   Use char because int might match the return type of a GCC
 
12491
   builtin and then its argument prototype would still apply.  */
 
12492
#ifdef __cplusplus
 
12493
extern "C"
 
12494
#endif
 
12495
char dlopen ();
 
12496
int
 
12497
main ()
 
12498
{
 
12499
return dlopen ();
 
12500
  ;
 
12501
  return 0;
 
12502
}
 
12503
_ACEOF
 
12504
if ac_fn_c_try_link "$LINENO"; then :
 
12505
  ac_cv_lib_svld_dlopen=yes
 
12506
else
 
12507
  ac_cv_lib_svld_dlopen=no
 
12508
fi
 
12509
rm -f core conftest.err conftest.$ac_objext \
 
12510
    conftest$ac_exeext conftest.$ac_ext
 
12511
LIBS=$ac_check_lib_save_LIBS
 
12512
fi
 
12513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12514
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12515
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
12516
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12517
else
 
12518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12519
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12520
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
12521
  $as_echo_n "(cached) " >&6
 
12522
else
 
12523
  ac_check_lib_save_LIBS=$LIBS
 
12524
LIBS="-ldld  $LIBS"
 
12525
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12526
/* end confdefs.h.  */
 
12527
 
 
12528
/* Override any GCC internal prototype to avoid an error.
 
12529
   Use char because int might match the return type of a GCC
 
12530
   builtin and then its argument prototype would still apply.  */
 
12531
#ifdef __cplusplus
 
12532
extern "C"
 
12533
#endif
 
12534
char dld_link ();
 
12535
int
 
12536
main ()
 
12537
{
 
12538
return dld_link ();
 
12539
  ;
 
12540
  return 0;
 
12541
}
 
12542
_ACEOF
 
12543
if ac_fn_c_try_link "$LINENO"; then :
 
12544
  ac_cv_lib_dld_dld_link=yes
 
12545
else
 
12546
  ac_cv_lib_dld_dld_link=no
 
12547
fi
 
12548
rm -f core conftest.err conftest.$ac_objext \
 
12549
    conftest$ac_exeext conftest.$ac_ext
 
12550
LIBS=$ac_check_lib_save_LIBS
 
12551
fi
 
12552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12553
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12554
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
12555
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12556
fi
 
12557
 
 
12558
 
 
12559
fi
 
12560
 
 
12561
 
 
12562
fi
 
12563
 
 
12564
 
 
12565
fi
 
12566
 
 
12567
 
 
12568
fi
 
12569
 
 
12570
 
 
12571
fi
 
12572
 
 
12573
    ;;
 
12574
  esac
 
12575
 
 
12576
  if test "x$lt_cv_dlopen" != xno; then
 
12577
    enable_dlopen=yes
 
12578
  else
 
12579
    enable_dlopen=no
 
12580
  fi
 
12581
 
 
12582
  case $lt_cv_dlopen in
 
12583
  dlopen)
 
12584
    save_CPPFLAGS="$CPPFLAGS"
 
12585
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12586
 
 
12587
    save_LDFLAGS="$LDFLAGS"
 
12588
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12589
 
 
12590
    save_LIBS="$LIBS"
 
12591
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12592
 
 
12593
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12594
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12595
if ${lt_cv_dlopen_self+:} false; then :
 
12596
  $as_echo_n "(cached) " >&6
 
12597
else
 
12598
          if test "$cross_compiling" = yes; then :
 
12599
  lt_cv_dlopen_self=cross
 
12600
else
 
12601
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12602
  lt_status=$lt_dlunknown
 
12603
  cat > conftest.$ac_ext <<_LT_EOF
 
12604
#line $LINENO "configure"
 
12605
#include "confdefs.h"
 
12606
 
 
12607
#if HAVE_DLFCN_H
 
12608
#include <dlfcn.h>
 
12609
#endif
 
12610
 
 
12611
#include <stdio.h>
 
12612
 
 
12613
#ifdef RTLD_GLOBAL
 
12614
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12615
#else
 
12616
#  ifdef DL_GLOBAL
 
12617
#    define LT_DLGLOBAL         DL_GLOBAL
 
12618
#  else
 
12619
#    define LT_DLGLOBAL         0
 
12620
#  endif
 
12621
#endif
 
12622
 
 
12623
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12624
   find out it does not work in some platform. */
 
12625
#ifndef LT_DLLAZY_OR_NOW
 
12626
#  ifdef RTLD_LAZY
 
12627
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12628
#  else
 
12629
#    ifdef DL_LAZY
 
12630
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12631
#    else
 
12632
#      ifdef RTLD_NOW
 
12633
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12634
#      else
 
12635
#        ifdef DL_NOW
 
12636
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12637
#        else
 
12638
#          define LT_DLLAZY_OR_NOW      0
 
12639
#        endif
 
12640
#      endif
 
12641
#    endif
 
12642
#  endif
 
12643
#endif
 
12644
 
 
12645
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12646
   correspondingly for the symbols needed.  */
 
12647
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12648
int fnord () __attribute__((visibility("default")));
 
12649
#endif
 
12650
 
 
12651
int fnord () { return 42; }
 
12652
int main ()
 
12653
{
 
12654
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12655
  int status = $lt_dlunknown;
 
12656
 
 
12657
  if (self)
 
12658
    {
 
12659
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12660
      else
 
12661
        {
 
12662
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12663
          else puts (dlerror ());
 
12664
        }
 
12665
      /* dlclose (self); */
 
12666
    }
 
12667
  else
 
12668
    puts (dlerror ());
 
12669
 
 
12670
  return status;
 
12671
}
 
12672
_LT_EOF
 
12673
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12674
  (eval $ac_link) 2>&5
 
12675
  ac_status=$?
 
12676
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12677
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12678
    (./conftest; exit; ) >&5 2>/dev/null
 
12679
    lt_status=$?
 
12680
    case x$lt_status in
 
12681
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12682
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12683
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12684
    esac
 
12685
  else :
 
12686
    # compilation failed
 
12687
    lt_cv_dlopen_self=no
 
12688
  fi
 
12689
fi
 
12690
rm -fr conftest*
 
12691
 
 
12692
 
 
12693
fi
 
12694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12695
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12696
 
 
12697
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12698
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12699
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12700
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12701
if ${lt_cv_dlopen_self_static+:} false; then :
 
12702
  $as_echo_n "(cached) " >&6
 
12703
else
 
12704
          if test "$cross_compiling" = yes; then :
 
12705
  lt_cv_dlopen_self_static=cross
 
12706
else
 
12707
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12708
  lt_status=$lt_dlunknown
 
12709
  cat > conftest.$ac_ext <<_LT_EOF
 
12710
#line $LINENO "configure"
 
12711
#include "confdefs.h"
 
12712
 
 
12713
#if HAVE_DLFCN_H
 
12714
#include <dlfcn.h>
 
12715
#endif
 
12716
 
 
12717
#include <stdio.h>
 
12718
 
 
12719
#ifdef RTLD_GLOBAL
 
12720
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12721
#else
 
12722
#  ifdef DL_GLOBAL
 
12723
#    define LT_DLGLOBAL         DL_GLOBAL
 
12724
#  else
 
12725
#    define LT_DLGLOBAL         0
 
12726
#  endif
 
12727
#endif
 
12728
 
 
12729
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12730
   find out it does not work in some platform. */
 
12731
#ifndef LT_DLLAZY_OR_NOW
 
12732
#  ifdef RTLD_LAZY
 
12733
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12734
#  else
 
12735
#    ifdef DL_LAZY
 
12736
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12737
#    else
 
12738
#      ifdef RTLD_NOW
 
12739
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12740
#      else
 
12741
#        ifdef DL_NOW
 
12742
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12743
#        else
 
12744
#          define LT_DLLAZY_OR_NOW      0
 
12745
#        endif
 
12746
#      endif
 
12747
#    endif
 
12748
#  endif
 
12749
#endif
 
12750
 
 
12751
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12752
   correspondingly for the symbols needed.  */
 
12753
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12754
int fnord () __attribute__((visibility("default")));
 
12755
#endif
 
12756
 
 
12757
int fnord () { return 42; }
 
12758
int main ()
 
12759
{
 
12760
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12761
  int status = $lt_dlunknown;
 
12762
 
 
12763
  if (self)
 
12764
    {
 
12765
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12766
      else
 
12767
        {
 
12768
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12769
          else puts (dlerror ());
 
12770
        }
 
12771
      /* dlclose (self); */
 
12772
    }
 
12773
  else
 
12774
    puts (dlerror ());
 
12775
 
 
12776
  return status;
 
12777
}
 
12778
_LT_EOF
 
12779
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12780
  (eval $ac_link) 2>&5
 
12781
  ac_status=$?
 
12782
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12783
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12784
    (./conftest; exit; ) >&5 2>/dev/null
 
12785
    lt_status=$?
 
12786
    case x$lt_status in
 
12787
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12788
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12789
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12790
    esac
 
12791
  else :
 
12792
    # compilation failed
 
12793
    lt_cv_dlopen_self_static=no
 
12794
  fi
 
12795
fi
 
12796
rm -fr conftest*
 
12797
 
 
12798
 
 
12799
fi
 
12800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12801
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12802
    fi
 
12803
 
 
12804
    CPPFLAGS="$save_CPPFLAGS"
 
12805
    LDFLAGS="$save_LDFLAGS"
 
12806
    LIBS="$save_LIBS"
 
12807
    ;;
 
12808
  esac
 
12809
 
 
12810
  case $lt_cv_dlopen_self in
 
12811
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12812
  *) enable_dlopen_self=unknown ;;
 
12813
  esac
 
12814
 
 
12815
  case $lt_cv_dlopen_self_static in
 
12816
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12817
  *) enable_dlopen_self_static=unknown ;;
 
12818
  esac
 
12819
fi
 
12820
 
 
12821
 
 
12822
 
 
12823
 
 
12824
 
 
12825
 
 
12826
 
 
12827
 
 
12828
 
 
12829
 
 
12830
 
 
12831
 
 
12832
 
 
12833
 
 
12834
 
 
12835
 
 
12836
 
 
12837
striplib=
 
12838
old_striplib=
 
12839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12840
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12841
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12842
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12843
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12845
$as_echo "yes" >&6; }
 
12846
else
 
12847
# FIXME - insert some real tests, host_os isn't really good enough
 
12848
  case $host_os in
 
12849
  darwin*)
 
12850
    if test -n "$STRIP" ; then
 
12851
      striplib="$STRIP -x"
 
12852
      old_striplib="$STRIP -S"
 
12853
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12854
$as_echo "yes" >&6; }
 
12855
    else
 
12856
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12857
$as_echo "no" >&6; }
 
12858
    fi
 
12859
    ;;
 
12860
  *)
 
12861
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12862
$as_echo "no" >&6; }
 
12863
    ;;
 
12864
  esac
 
12865
fi
 
12866
 
 
12867
 
 
12868
 
 
12869
 
 
12870
 
 
12871
 
 
12872
 
 
12873
 
 
12874
 
 
12875
 
 
12876
 
 
12877
 
 
12878
  # Report which library types will actually be built
 
12879
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12880
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12882
$as_echo "$can_build_shared" >&6; }
 
12883
 
 
12884
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12885
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12886
  test "$can_build_shared" = "no" && enable_shared=no
 
12887
 
 
12888
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12889
  # are all built from PIC.
 
12890
  case $host_os in
 
12891
  aix3*)
 
12892
    test "$enable_shared" = yes && enable_static=no
 
12893
    if test -n "$RANLIB"; then
 
12894
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12895
      postinstall_cmds='$RANLIB $lib'
 
12896
    fi
 
12897
    ;;
 
12898
 
 
12899
  aix[4-9]*)
 
12900
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12901
      test "$enable_shared" = yes && enable_static=no
 
12902
    fi
 
12903
    ;;
 
12904
  esac
 
12905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12906
$as_echo "$enable_shared" >&6; }
 
12907
 
 
12908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12909
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12910
  # Make sure either enable_shared or enable_static is yes.
 
12911
  test "$enable_shared" = yes || enable_static=yes
 
12912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12913
$as_echo "$enable_static" >&6; }
 
12914
 
 
12915
 
 
12916
 
 
12917
 
 
12918
fi
 
12919
ac_ext=c
 
12920
ac_cpp='$CPP $CPPFLAGS'
 
12921
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12922
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12923
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12924
 
 
12925
CC="$lt_save_CC"
 
12926
 
 
12927
 
 
12928
 
 
12929
 
 
12930
 
 
12931
 
 
12932
 
 
12933
 
 
12934
 
 
12935
 
 
12936
 
 
12937
 
 
12938
 
 
12939
 
 
12940
 
 
12941
        ac_config_commands="$ac_config_commands libtool"
 
12942
 
 
12943
 
 
12944
 
 
12945
 
 
12946
# Only expand once:
 
12947
 
 
12948
 
 
12949
 
 
12950
 
 
12951
 
 
12952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
 
12953
$as_echo_n "checking bison version... " >&6; }
 
12954
if test "$YACC" != "bison -y"; then
 
12955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not bison" >&5
 
12956
$as_echo "not bison" >&6; }
 
12957
elif $YACC --help | grep -- --warnings >/dev/null; then
 
12958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
12959
$as_echo "ok" >&6; }
 
12960
else
 
12961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12962
$as_echo "no" >&6; }
 
12963
  as_fn_error $? "You need bison version 2.5 or more recent." "$LINENO" 5
 
12964
fi
 
12965
 
 
12966
 
 
12967
for ac_prog in flex lex
 
12968
do
 
12969
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12970
set dummy $ac_prog; ac_word=$2
 
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12972
$as_echo_n "checking for $ac_word... " >&6; }
 
12973
if ${ac_cv_prog_LEX+:} false; then :
 
12974
  $as_echo_n "(cached) " >&6
 
12975
else
 
12976
  if test -n "$LEX"; then
 
12977
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
12978
else
 
12979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12980
for as_dir in $PATH
 
12981
do
 
12982
  IFS=$as_save_IFS
 
12983
  test -z "$as_dir" && as_dir=.
 
12984
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12985
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12986
    ac_cv_prog_LEX="$ac_prog"
 
12987
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12988
    break 2
 
12989
  fi
 
12990
done
 
12991
  done
 
12992
IFS=$as_save_IFS
 
12993
 
 
12994
fi
 
12995
fi
 
12996
LEX=$ac_cv_prog_LEX
 
12997
if test -n "$LEX"; then
 
12998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 
12999
$as_echo "$LEX" >&6; }
 
13000
else
 
13001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13002
$as_echo "no" >&6; }
 
13003
fi
 
13004
 
 
13005
 
 
13006
  test -n "$LEX" && break
 
13007
done
 
13008
test -n "$LEX" || LEX=":"
 
13009
 
 
13010
if test "x$LEX" != "x:"; then
 
13011
  cat >conftest.l <<_ACEOF
 
13012
%%
 
13013
a { ECHO; }
 
13014
b { REJECT; }
 
13015
c { yymore (); }
 
13016
d { yyless (1); }
 
13017
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
 
13018
    yyless ((input () != 0)); }
 
13019
f { unput (yytext[0]); }
 
13020
. { BEGIN INITIAL; }
 
13021
%%
 
13022
#ifdef YYTEXT_POINTER
 
13023
extern char *yytext;
 
13024
#endif
 
13025
int
 
13026
main (void)
 
13027
{
 
13028
  return ! yylex () + ! yywrap ();
 
13029
}
 
13030
_ACEOF
 
13031
{ { ac_try="$LEX conftest.l"
 
13032
case "(($ac_try" in
 
13033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13034
  *) ac_try_echo=$ac_try;;
 
13035
esac
 
13036
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
13037
$as_echo "$ac_try_echo"; } >&5
 
13038
  (eval "$LEX conftest.l") 2>&5
 
13039
  ac_status=$?
 
13040
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13041
  test $ac_status = 0; }
 
13042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 
13043
$as_echo_n "checking lex output file root... " >&6; }
 
13044
if ${ac_cv_prog_lex_root+:} false; then :
 
13045
  $as_echo_n "(cached) " >&6
 
13046
else
 
13047
 
 
13048
if test -f lex.yy.c; then
 
13049
  ac_cv_prog_lex_root=lex.yy
 
13050
elif test -f lexyy.c; then
 
13051
  ac_cv_prog_lex_root=lexyy
 
13052
else
 
13053
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
 
13054
fi
 
13055
fi
 
13056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 
13057
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
13058
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
13059
 
 
13060
if test -z "${LEXLIB+set}"; then
 
13061
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 
13062
$as_echo_n "checking lex library... " >&6; }
 
13063
if ${ac_cv_lib_lex+:} false; then :
 
13064
  $as_echo_n "(cached) " >&6
 
13065
else
 
13066
 
 
13067
    ac_save_LIBS=$LIBS
 
13068
    ac_cv_lib_lex='none needed'
 
13069
    for ac_lib in '' -lfl -ll; do
 
13070
      LIBS="$ac_lib $ac_save_LIBS"
 
13071
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13072
/* end confdefs.h.  */
 
13073
`cat $LEX_OUTPUT_ROOT.c`
 
13074
_ACEOF
 
13075
if ac_fn_c_try_link "$LINENO"; then :
 
13076
  ac_cv_lib_lex=$ac_lib
 
13077
fi
 
13078
rm -f core conftest.err conftest.$ac_objext \
 
13079
    conftest$ac_exeext conftest.$ac_ext
 
13080
      test "$ac_cv_lib_lex" != 'none needed' && break
 
13081
    done
 
13082
    LIBS=$ac_save_LIBS
 
13083
 
 
13084
fi
 
13085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 
13086
$as_echo "$ac_cv_lib_lex" >&6; }
 
13087
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
13088
fi
 
13089
 
 
13090
 
 
13091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 
13092
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
13093
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
 
13094
  $as_echo_n "(cached) " >&6
 
13095
else
 
13096
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
13097
# default is implementation-dependent.  Figure out which it is, since
 
13098
# not all implementations provide the %pointer and %array declarations.
 
13099
ac_cv_prog_lex_yytext_pointer=no
 
13100
ac_save_LIBS=$LIBS
 
13101
LIBS="$LEXLIB $ac_save_LIBS"
 
13102
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13103
/* end confdefs.h.  */
 
13104
 
 
13105
  #define YYTEXT_POINTER 1
 
13106
`cat $LEX_OUTPUT_ROOT.c`
 
13107
_ACEOF
 
13108
if ac_fn_c_try_link "$LINENO"; then :
 
13109
  ac_cv_prog_lex_yytext_pointer=yes
 
13110
fi
 
13111
rm -f core conftest.err conftest.$ac_objext \
 
13112
    conftest$ac_exeext conftest.$ac_ext
 
13113
LIBS=$ac_save_LIBS
 
13114
 
 
13115
fi
 
13116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
13117
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
13118
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
13119
 
 
13120
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 
13121
 
 
13122
fi
 
13123
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
13124
 
 
13125
fi
 
13126
if test "x$LEX" != xflex; then
 
13127
  LEX="$SHELL $missing_dir/missing flex"
 
13128
fi
 
13129
 
 
13130
 
 
13131
for ac_prog in valgrind
 
13132
do
 
13133
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13134
set dummy $ac_prog; ac_word=$2
 
13135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13136
$as_echo_n "checking for $ac_word... " >&6; }
 
13137
if ${ac_cv_prog_valgrind_cmd+:} false; then :
 
13138
  $as_echo_n "(cached) " >&6
 
13139
else
 
13140
  if test -n "$valgrind_cmd"; then
 
13141
  ac_cv_prog_valgrind_cmd="$valgrind_cmd" # Let the user override the test.
 
13142
else
 
13143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13144
for as_dir in $PATH
 
13145
do
 
13146
  IFS=$as_save_IFS
 
13147
  test -z "$as_dir" && as_dir=.
 
13148
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13149
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13150
    ac_cv_prog_valgrind_cmd="$ac_prog"
 
13151
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13152
    break 2
 
13153
  fi
 
13154
done
 
13155
  done
 
13156
IFS=$as_save_IFS
 
13157
 
 
13158
fi
 
13159
fi
 
13160
valgrind_cmd=$ac_cv_prog_valgrind_cmd
 
13161
if test -n "$valgrind_cmd"; then
 
13162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_cmd" >&5
 
13163
$as_echo "$valgrind_cmd" >&6; }
 
13164
else
 
13165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13166
$as_echo "no" >&6; }
 
13167
fi
 
13168
 
 
13169
 
 
13170
  test -n "$valgrind_cmd" && break
 
13171
done
 
13172
 
 
13173
if test "x$valgrind_cmd" = "x" ; then
 
13174
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: valgrind is required to test jq." >&5
 
13175
$as_echo "$as_me: WARNING: valgrind is required to test jq." >&2;}
 
13176
fi
 
13177
 
 
13178
 
 
13179
# Check whether --enable-docs was given.
 
13180
if test "${enable_docs+set}" = set; then :
 
13181
  enableval=$enable_docs;
 
13182
fi
 
13183
 
 
13184
 
 
13185
if test "x$enable_docs" != "xno"; then :
 
13186
 
 
13187
   for ac_prog in bundle
 
13188
do
 
13189
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13190
set dummy $ac_prog; ac_word=$2
 
13191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13192
$as_echo_n "checking for $ac_word... " >&6; }
 
13193
if ${ac_cv_prog_bundle_cmd+:} false; then :
 
13194
  $as_echo_n "(cached) " >&6
 
13195
else
 
13196
  if test -n "$bundle_cmd"; then
 
13197
  ac_cv_prog_bundle_cmd="$bundle_cmd" # Let the user override the test.
 
13198
else
 
13199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13200
for as_dir in $PATH
 
13201
do
 
13202
  IFS=$as_save_IFS
 
13203
  test -z "$as_dir" && as_dir=.
 
13204
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13205
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13206
    ac_cv_prog_bundle_cmd="$ac_prog"
 
13207
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13208
    break 2
 
13209
  fi
 
13210
done
 
13211
  done
 
13212
IFS=$as_save_IFS
 
13213
 
 
13214
fi
 
13215
fi
 
13216
bundle_cmd=$ac_cv_prog_bundle_cmd
 
13217
if test -n "$bundle_cmd"; then
 
13218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bundle_cmd" >&5
 
13219
$as_echo "$bundle_cmd" >&6; }
 
13220
else
 
13221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13222
$as_echo "no" >&6; }
 
13223
fi
 
13224
 
 
13225
 
 
13226
  test -n "$bundle_cmd" && break
 
13227
done
 
13228
 
 
13229
 
 
13230
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby dependencies" >&5
 
13231
$as_echo_n "checking for Ruby dependencies... " >&6; }
 
13232
if ${jq_cv_ruby_deps+:} false; then :
 
13233
  $as_echo_n "(cached) " >&6
 
13234
else
 
13235
  jq_cv_ruby_deps=yes;
 
13236
        if test "x$bundle_cmd" = "x" || \
 
13237
        ! bmsg="`cd ${srcdir}/docs; "$bundle_cmd" check 2>/dev/null`"; then :
 
13238
 
 
13239
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bmsg" >&5
 
13240
$as_echo "$as_me: WARNING: $bmsg" >&2;}
 
13241
           cat <<EOF
 
13242
*****************************************************************
 
13243
*  Ruby dependencies for building jq documentation not found.   *
 
13244
*  You can still build, install and hack on jq, but the manpage *
 
13245
*  will not be rebuilt and some of the tests won't run.         *
 
13246
*  See docs/README.md for how to install the docs dependencies. *
 
13247
*****************************************************************
 
13248
EOF
 
13249
           jq_cv_ruby_deps=no
 
13250
 
 
13251
fi
 
13252
fi
 
13253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jq_cv_ruby_deps" >&5
 
13254
$as_echo "$jq_cv_ruby_deps" >&6; }
 
13255
 
 
13256
   if test "x$jq_cv_ruby_deps" != "xyes"; then
 
13257
     enable_docs=no
 
13258
   fi
 
13259
 
 
13260
fi
 
13261
 
 
13262
 if test "x$enable_docs" != xno; then
 
13263
  ENABLE_DOCS_TRUE=
 
13264
  ENABLE_DOCS_FALSE='#'
 
13265
else
 
13266
  ENABLE_DOCS_TRUE='#'
 
13267
  ENABLE_DOCS_FALSE=
 
13268
fi
 
13269
 
 
13270
 
 
13271
# Check whether --enable-pthread-tls was given.
 
13272
if test "${enable_pthread_tls+set}" = set; then :
 
13273
  enableval=$enable_pthread_tls;
 
13274
else
 
13275
  enable_pthread_tls=no
 
13276
fi
 
13277
 
 
13278
 
 
13279
if test $enable_pthread_tls = yes; then
 
13280
 
 
13281
 
 
13282
 
 
13283
 
 
13284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create" >&5
 
13285
$as_echo_n "checking for pthread_key_create... " >&6; }
 
13286
if ${ac_cv_funclib_pthread_key_create+:} false; then :
 
13287
  $as_echo_n "(cached) " >&6
 
13288
else
 
13289
 
 
13290
if eval "test \"\$ac_cv_func_pthread_key_create\" != yes" ; then
 
13291
        ac_save_LIBS="$LIBS"
 
13292
        for ac_lib in "" pthread; do
 
13293
                case "$ac_lib" in
 
13294
                "") ;;
 
13295
                yes) ac_lib="" ;;
 
13296
                no) continue ;;
 
13297
                -l*) ;;
 
13298
                *) ac_lib="-l$ac_lib" ;;
 
13299
                esac
 
13300
                LIBS=" $ac_lib  $ac_save_LIBS"
 
13301
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13302
/* end confdefs.h.  */
 
13303
#include <pthread.h>
 
13304
int
 
13305
main ()
 
13306
{
 
13307
pthread_key_create(NULL, NULL)
 
13308
  ;
 
13309
  return 0;
 
13310
}
 
13311
_ACEOF
 
13312
if ac_fn_c_try_link "$LINENO"; then :
 
13313
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pthread_key_create=$ac_lib; else ac_cv_funclib_pthread_key_create=yes; fi";break
 
13314
fi
 
13315
rm -f core conftest.err conftest.$ac_objext \
 
13316
    conftest$ac_exeext conftest.$ac_ext
 
13317
        done
 
13318
        eval "ac_cv_funclib_pthread_key_create=\${ac_cv_funclib_pthread_key_create-no}"
 
13319
        LIBS="$ac_save_LIBS"
 
13320
fi
 
13321
 
 
13322
fi
 
13323
 
 
13324
 
 
13325
eval "ac_res=\$ac_cv_funclib_pthread_key_create"
 
13326
 
 
13327
if false; then
 
13328
        for ac_func in pthread_key_create
 
13329
do :
 
13330
  ac_fn_c_check_func "$LINENO" "pthread_key_create" "ac_cv_func_pthread_key_create"
 
13331
if test "x$ac_cv_func_pthread_key_create" = xyes; then :
 
13332
  cat >>confdefs.h <<_ACEOF
 
13333
#define HAVE_PTHREAD_KEY_CREATE 1
 
13334
_ACEOF
 
13335
 
 
13336
fi
 
13337
done
 
13338
 
 
13339
fi
 
13340
# pthread_key_create
 
13341
eval "ac_tr_func=HAVE_`echo pthread_key_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13342
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13343
eval "LIB_pthread_key_create=$ac_res"
 
13344
 
 
13345
case "$ac_res" in
 
13346
        yes)
 
13347
        eval "ac_cv_func_pthread_key_create=yes"
 
13348
        eval "LIB_pthread_key_create="
 
13349
        cat >>confdefs.h <<_ACEOF
 
13350
#define $ac_tr_func 1
 
13351
_ACEOF
 
13352
 
 
13353
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13354
$as_echo "yes" >&6; }
 
13355
        ;;
 
13356
        no)
 
13357
        eval "ac_cv_func_pthread_key_create=no"
 
13358
        eval "LIB_pthread_key_create="
 
13359
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13360
$as_echo "no" >&6; }
 
13361
        ;;
 
13362
        *)
 
13363
        eval "ac_cv_func_pthread_key_create=yes"
 
13364
        eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
 
13365
        cat >>confdefs.h <<_ACEOF
 
13366
#define $ac_tr_func 1
 
13367
_ACEOF
 
13368
 
 
13369
        cat >>confdefs.h <<_ACEOF
 
13370
#define $ac_tr_lib 1
 
13371
_ACEOF
 
13372
 
 
13373
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
 
13374
$as_echo "yes, in $ac_res" >&6; }
 
13375
        ;;
 
13376
esac
 
13377
 
 
13378
 
 
13379
if test -n "$LIB_pthread_key_create"; then
 
13380
        LIBS="$LIB_pthread_key_create $LIBS"
 
13381
fi
 
13382
 
 
13383
 
 
13384
 
 
13385
 
 
13386
 
 
13387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once" >&5
 
13388
$as_echo_n "checking for pthread_once... " >&6; }
 
13389
if ${ac_cv_funclib_pthread_once+:} false; then :
 
13390
  $as_echo_n "(cached) " >&6
 
13391
else
 
13392
 
 
13393
if eval "test \"\$ac_cv_func_pthread_once\" != yes" ; then
 
13394
        ac_save_LIBS="$LIBS"
 
13395
        for ac_lib in "" pthread; do
 
13396
                case "$ac_lib" in
 
13397
                "") ;;
 
13398
                yes) ac_lib="" ;;
 
13399
                no) continue ;;
 
13400
                -l*) ;;
 
13401
                *) ac_lib="-l$ac_lib" ;;
 
13402
                esac
 
13403
                LIBS=" $ac_lib  $ac_save_LIBS"
 
13404
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13405
/* end confdefs.h.  */
 
13406
#include <pthread.h>
 
13407
int
 
13408
main ()
 
13409
{
 
13410
pthread_once(NULL, NULL)
 
13411
  ;
 
13412
  return 0;
 
13413
}
 
13414
_ACEOF
 
13415
if ac_fn_c_try_link "$LINENO"; then :
 
13416
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pthread_once=$ac_lib; else ac_cv_funclib_pthread_once=yes; fi";break
 
13417
fi
 
13418
rm -f core conftest.err conftest.$ac_objext \
 
13419
    conftest$ac_exeext conftest.$ac_ext
 
13420
        done
 
13421
        eval "ac_cv_funclib_pthread_once=\${ac_cv_funclib_pthread_once-no}"
 
13422
        LIBS="$ac_save_LIBS"
 
13423
fi
 
13424
 
 
13425
fi
 
13426
 
 
13427
 
 
13428
eval "ac_res=\$ac_cv_funclib_pthread_once"
 
13429
 
 
13430
if false; then
 
13431
        for ac_func in pthread_once
 
13432
do :
 
13433
  ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
 
13434
if test "x$ac_cv_func_pthread_once" = xyes; then :
 
13435
  cat >>confdefs.h <<_ACEOF
 
13436
#define HAVE_PTHREAD_ONCE 1
 
13437
_ACEOF
 
13438
 
 
13439
fi
 
13440
done
 
13441
 
 
13442
fi
 
13443
# pthread_once
 
13444
eval "ac_tr_func=HAVE_`echo pthread_once | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13445
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13446
eval "LIB_pthread_once=$ac_res"
 
13447
 
 
13448
case "$ac_res" in
 
13449
        yes)
 
13450
        eval "ac_cv_func_pthread_once=yes"
 
13451
        eval "LIB_pthread_once="
 
13452
        cat >>confdefs.h <<_ACEOF
 
13453
#define $ac_tr_func 1
 
13454
_ACEOF
 
13455
 
 
13456
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13457
$as_echo "yes" >&6; }
 
13458
        ;;
 
13459
        no)
 
13460
        eval "ac_cv_func_pthread_once=no"
 
13461
        eval "LIB_pthread_once="
 
13462
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13463
$as_echo "no" >&6; }
 
13464
        ;;
 
13465
        *)
 
13466
        eval "ac_cv_func_pthread_once=yes"
 
13467
        eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
 
13468
        cat >>confdefs.h <<_ACEOF
 
13469
#define $ac_tr_func 1
 
13470
_ACEOF
 
13471
 
 
13472
        cat >>confdefs.h <<_ACEOF
 
13473
#define $ac_tr_lib 1
 
13474
_ACEOF
 
13475
 
 
13476
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
 
13477
$as_echo "yes, in $ac_res" >&6; }
 
13478
        ;;
 
13479
esac
 
13480
 
 
13481
 
 
13482
if test -n "$LIB_pthread_once"; then
 
13483
        LIBS="$LIB_pthread_once $LIBS"
 
13484
fi
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atexit" >&5
 
13491
$as_echo_n "checking for atexit... " >&6; }
 
13492
if ${ac_cv_funclib_atexit+:} false; then :
 
13493
  $as_echo_n "(cached) " >&6
 
13494
else
 
13495
 
 
13496
if eval "test \"\$ac_cv_func_atexit\" != yes" ; then
 
13497
        ac_save_LIBS="$LIBS"
 
13498
        for ac_lib in "" pthread; do
 
13499
                case "$ac_lib" in
 
13500
                "") ;;
 
13501
                yes) ac_lib="" ;;
 
13502
                no) continue ;;
 
13503
                -l*) ;;
 
13504
                *) ac_lib="-l$ac_lib" ;;
 
13505
                esac
 
13506
                LIBS=" $ac_lib  $ac_save_LIBS"
 
13507
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13508
/* end confdefs.h.  */
 
13509
#include <stdlib.h>
 
13510
int
 
13511
main ()
 
13512
{
 
13513
atexit(NULL)
 
13514
  ;
 
13515
  return 0;
 
13516
}
 
13517
_ACEOF
 
13518
if ac_fn_c_try_link "$LINENO"; then :
 
13519
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_atexit=$ac_lib; else ac_cv_funclib_atexit=yes; fi";break
 
13520
fi
 
13521
rm -f core conftest.err conftest.$ac_objext \
 
13522
    conftest$ac_exeext conftest.$ac_ext
 
13523
        done
 
13524
        eval "ac_cv_funclib_atexit=\${ac_cv_funclib_atexit-no}"
 
13525
        LIBS="$ac_save_LIBS"
 
13526
fi
 
13527
 
 
13528
fi
 
13529
 
 
13530
 
 
13531
eval "ac_res=\$ac_cv_funclib_atexit"
 
13532
 
 
13533
if false; then
 
13534
        for ac_func in atexit
 
13535
do :
 
13536
  ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
 
13537
if test "x$ac_cv_func_atexit" = xyes; then :
 
13538
  cat >>confdefs.h <<_ACEOF
 
13539
#define HAVE_ATEXIT 1
 
13540
_ACEOF
 
13541
 
 
13542
fi
 
13543
done
 
13544
 
 
13545
fi
 
13546
# atexit
 
13547
eval "ac_tr_func=HAVE_`echo atexit | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13548
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
 
13549
eval "LIB_atexit=$ac_res"
 
13550
 
 
13551
case "$ac_res" in
 
13552
        yes)
 
13553
        eval "ac_cv_func_atexit=yes"
 
13554
        eval "LIB_atexit="
 
13555
        cat >>confdefs.h <<_ACEOF
 
13556
#define $ac_tr_func 1
 
13557
_ACEOF
 
13558
 
 
13559
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13560
$as_echo "yes" >&6; }
 
13561
        ;;
 
13562
        no)
 
13563
        eval "ac_cv_func_atexit=no"
 
13564
        eval "LIB_atexit="
 
13565
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13566
$as_echo "no" >&6; }
 
13567
        ;;
 
13568
        *)
 
13569
        eval "ac_cv_func_atexit=yes"
 
13570
        eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
 
13571
        cat >>confdefs.h <<_ACEOF
 
13572
#define $ac_tr_func 1
 
13573
_ACEOF
 
13574
 
 
13575
        cat >>confdefs.h <<_ACEOF
 
13576
#define $ac_tr_lib 1
 
13577
_ACEOF
 
13578
 
 
13579
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
 
13580
$as_echo "yes, in $ac_res" >&6; }
 
13581
        ;;
 
13582
esac
 
13583
 
 
13584
 
 
13585
if test -n "$LIB_atexit"; then
 
13586
        LIBS="$LIB_atexit $LIBS"
 
13587
fi
 
13588
 
 
13589
fi
 
13590
 
 
13591
have___thread=no
 
13592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-local storage" >&5
 
13593
$as_echo_n "checking for thread-local storage... " >&6; }
 
13594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13595
/* end confdefs.h.  */
 
13596
 
 
13597
static __thread int x ;
 
13598
int main () { x = 123; return x; }
 
13599
 
 
13600
_ACEOF
 
13601
if ac_fn_c_try_link "$LINENO"; then :
 
13602
  have___thread=yes
 
13603
fi
 
13604
rm -f core conftest.err conftest.$ac_objext \
 
13605
    conftest$ac_exeext conftest.$ac_ext
 
13606
if test $have___thread = yes; then
 
13607
 
 
13608
$as_echo "#define HAVE___THREAD 1" >>confdefs.h
 
13609
 
 
13610
fi
 
13611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___thread" >&5
 
13612
$as_echo "$have___thread" >&6; }
 
13613
 
 
13614
 
 
13615
BUNDLER="$bundle_cmd"
 
13616
 
 
13617
 
 
13618
 
 
13619
ac_config_files="$ac_config_files Makefile"
 
13620
 
 
13621
cat >confcache <<\_ACEOF
 
13622
# This file is a shell script that caches the results of configure
 
13623
# tests run on this system so they can be shared between configure
 
13624
# scripts and configure runs, see configure's option --config-cache.
 
13625
# It is not useful on other systems.  If it contains results you don't
 
13626
# want to keep, you may remove or edit it.
 
13627
#
 
13628
# config.status only pays attention to the cache file if you give it
 
13629
# the --recheck option to rerun configure.
 
13630
#
 
13631
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13632
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13633
# following values.
 
13634
 
 
13635
_ACEOF
 
13636
 
 
13637
# The following way of writing the cache mishandles newlines in values,
 
13638
# but we know of no workaround that is simple, portable, and efficient.
 
13639
# So, we kill variables containing newlines.
 
13640
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13641
# and sets the high bit in the cache file unless we assign to the vars.
 
13642
(
 
13643
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13644
    eval ac_val=\$$ac_var
 
13645
    case $ac_val in #(
 
13646
    *${as_nl}*)
 
13647
      case $ac_var in #(
 
13648
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13649
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13650
      esac
 
13651
      case $ac_var in #(
 
13652
      _ | IFS | as_nl) ;; #(
 
13653
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13654
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13655
      esac ;;
 
13656
    esac
 
13657
  done
 
13658
 
 
13659
  (set) 2>&1 |
 
13660
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13661
    *${as_nl}ac_space=\ *)
 
13662
      # `set' does not quote correctly, so add quotes: double-quote
 
13663
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13664
      sed -n \
 
13665
        "s/'/'\\\\''/g;
 
13666
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13667
      ;; #(
 
13668
    *)
 
13669
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13670
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13671
      ;;
 
13672
    esac |
 
13673
    sort
 
13674
) |
 
13675
  sed '
 
13676
     /^ac_cv_env_/b end
 
13677
     t clear
 
13678
     :clear
 
13679
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13680
     t end
 
13681
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13682
     :end' >>confcache
 
13683
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13684
  if test -w "$cache_file"; then
 
13685
    if test "x$cache_file" != "x/dev/null"; then
 
13686
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13687
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13688
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13689
        cat confcache >"$cache_file"
 
13690
      else
 
13691
        case $cache_file in #(
 
13692
        */* | ?:*)
 
13693
          mv -f confcache "$cache_file"$$ &&
 
13694
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13695
        *)
 
13696
          mv -f confcache "$cache_file" ;;
 
13697
        esac
 
13698
      fi
 
13699
    fi
 
13700
  else
 
13701
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13702
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13703
  fi
 
13704
fi
 
13705
rm -f confcache
 
13706
 
 
13707
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13708
# Let make expand exec_prefix.
 
13709
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13710
 
 
13711
# Transform confdefs.h into DEFS.
 
13712
# Protect against shell expansion while executing Makefile rules.
 
13713
# Protect against Makefile macro expansion.
 
13714
#
 
13715
# If the first sed substitution is executed (which looks for macros that
 
13716
# take arguments), then branch to the quote section.  Otherwise,
 
13717
# look for a macro that doesn't take arguments.
 
13718
ac_script='
 
13719
:mline
 
13720
/\\$/{
 
13721
 N
 
13722
 s,\\\n,,
 
13723
 b mline
 
13724
}
 
13725
t clear
 
13726
:clear
 
13727
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
13728
t quote
 
13729
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
13730
t quote
 
13731
b any
 
13732
:quote
 
13733
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
13734
s/\[/\\&/g
 
13735
s/\]/\\&/g
 
13736
s/\$/$$/g
 
13737
H
 
13738
:any
 
13739
${
 
13740
        g
 
13741
        s/^\n//
 
13742
        s/\n/ /g
 
13743
        p
 
13744
}
 
13745
'
 
13746
DEFS=`sed -n "$ac_script" confdefs.h`
 
13747
 
 
13748
 
 
13749
ac_libobjs=
 
13750
ac_ltlibobjs=
 
13751
U=
 
13752
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13753
  # 1. Remove the extension, and $U if already installed.
 
13754
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13755
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13756
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13757
  #    will be set to the directory where LIBOBJS objects are built.
 
13758
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13759
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13760
done
 
13761
LIBOBJS=$ac_libobjs
 
13762
 
 
13763
LTLIBOBJS=$ac_ltlibobjs
 
13764
 
 
13765
 
 
13766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
13767
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
13768
   if test -n "$am_sleep_pid"; then
 
13769
     # Hide warnings about reused PIDs.
 
13770
     wait $am_sleep_pid 2>/dev/null
 
13771
   fi
 
13772
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
13773
$as_echo "done" >&6; }
 
13774
 if test -n "$EXEEXT"; then
 
13775
  am__EXEEXT_TRUE=
 
13776
  am__EXEEXT_FALSE='#'
 
13777
else
 
13778
  am__EXEEXT_TRUE='#'
 
13779
  am__EXEEXT_FALSE=
 
13780
fi
 
13781
 
 
13782
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13783
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13784
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13785
fi
 
13786
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13787
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13788
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13789
fi
 
13790
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13791
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13793
fi
 
13794
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
 
13795
  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
 
13796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13797
fi
 
13798
 
 
13799
: "${CONFIG_STATUS=./config.status}"
 
13800
ac_write_fail=0
 
13801
ac_clean_files_save=$ac_clean_files
 
13802
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13803
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13804
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13805
as_write_fail=0
 
13806
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13807
#! $SHELL
 
13808
# Generated by $as_me.
 
13809
# Run this file to recreate the current configuration.
 
13810
# Compiler output produced by configure, useful for debugging
 
13811
# configure, is in config.log if it exists.
 
13812
 
 
13813
debug=false
 
13814
ac_cs_recheck=false
 
13815
ac_cs_silent=false
 
13816
 
 
13817
SHELL=\${CONFIG_SHELL-$SHELL}
 
13818
export SHELL
 
13819
_ASEOF
 
13820
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13821
## -------------------- ##
 
13822
## M4sh Initialization. ##
 
13823
## -------------------- ##
 
13824
 
 
13825
# Be more Bourne compatible
 
13826
DUALCASE=1; export DUALCASE # for MKS sh
 
13827
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13828
  emulate sh
 
13829
  NULLCMD=:
 
13830
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13831
  # is contrary to our usage.  Disable this feature.
 
13832
  alias -g '${1+"$@"}'='"$@"'
 
13833
  setopt NO_GLOB_SUBST
 
13834
else
 
13835
  case `(set -o) 2>/dev/null` in #(
 
13836
  *posix*) :
 
13837
    set -o posix ;; #(
 
13838
  *) :
 
13839
     ;;
 
13840
esac
 
13841
fi
 
13842
 
 
13843
 
 
13844
as_nl='
 
13845
'
 
13846
export as_nl
 
13847
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13848
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13849
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13850
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13851
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13852
# but without wasting forks for bash or zsh.
 
13853
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13854
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13855
  as_echo='print -r --'
 
13856
  as_echo_n='print -rn --'
 
13857
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13858
  as_echo='printf %s\n'
 
13859
  as_echo_n='printf %s'
 
13860
else
 
13861
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13862
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13863
    as_echo_n='/usr/ucb/echo -n'
 
13864
  else
 
13865
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13866
    as_echo_n_body='eval
 
13867
      arg=$1;
 
13868
      case $arg in #(
 
13869
      *"$as_nl"*)
 
13870
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13871
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13872
      esac;
 
13873
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13874
    '
 
13875
    export as_echo_n_body
 
13876
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13877
  fi
 
13878
  export as_echo_body
 
13879
  as_echo='sh -c $as_echo_body as_echo'
 
13880
fi
 
13881
 
 
13882
# The user is always right.
 
13883
if test "${PATH_SEPARATOR+set}" != set; then
 
13884
  PATH_SEPARATOR=:
 
13885
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13886
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13887
      PATH_SEPARATOR=';'
 
13888
  }
 
13889
fi
 
13890
 
 
13891
 
 
13892
# IFS
 
13893
# We need space, tab and new line, in precisely that order.  Quoting is
 
13894
# there to prevent editors from complaining about space-tab.
 
13895
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13896
# splitting by setting IFS to empty value.)
 
13897
IFS=" ""        $as_nl"
 
13898
 
 
13899
# Find who we are.  Look in the path if we contain no directory separator.
 
13900
as_myself=
 
13901
case $0 in #((
 
13902
  *[\\/]* ) as_myself=$0 ;;
 
13903
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13904
for as_dir in $PATH
 
13905
do
 
13906
  IFS=$as_save_IFS
 
13907
  test -z "$as_dir" && as_dir=.
 
13908
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13909
  done
 
13910
IFS=$as_save_IFS
 
13911
 
 
13912
     ;;
 
13913
esac
 
13914
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13915
# in which case we are not to be found in the path.
 
13916
if test "x$as_myself" = x; then
 
13917
  as_myself=$0
 
13918
fi
 
13919
if test ! -f "$as_myself"; then
 
13920
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13921
  exit 1
 
13922
fi
 
13923
 
 
13924
# Unset variables that we do not need and which cause bugs (e.g. in
 
13925
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13926
# suppresses any "Segmentation fault" message there.  '((' could
 
13927
# trigger a bug in pdksh 5.2.14.
 
13928
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13929
do eval test x\${$as_var+set} = xset \
 
13930
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13931
done
 
13932
PS1='$ '
 
13933
PS2='> '
 
13934
PS4='+ '
 
13935
 
 
13936
# NLS nuisances.
 
13937
LC_ALL=C
 
13938
export LC_ALL
 
13939
LANGUAGE=C
 
13940
export LANGUAGE
 
13941
 
 
13942
# CDPATH.
 
13943
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13944
 
 
13945
 
 
13946
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13947
# ----------------------------------------
 
13948
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13949
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13950
# script with STATUS, using 1 if that was 0.
 
13951
as_fn_error ()
 
13952
{
 
13953
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13954
  if test "$4"; then
 
13955
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13956
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13957
  fi
 
13958
  $as_echo "$as_me: error: $2" >&2
 
13959
  as_fn_exit $as_status
 
13960
} # as_fn_error
 
13961
 
 
13962
 
 
13963
# as_fn_set_status STATUS
 
13964
# -----------------------
 
13965
# Set $? to STATUS, without forking.
 
13966
as_fn_set_status ()
 
13967
{
 
13968
  return $1
 
13969
} # as_fn_set_status
 
13970
 
 
13971
# as_fn_exit STATUS
 
13972
# -----------------
 
13973
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13974
as_fn_exit ()
 
13975
{
 
13976
  set +e
 
13977
  as_fn_set_status $1
 
13978
  exit $1
 
13979
} # as_fn_exit
 
13980
 
 
13981
# as_fn_unset VAR
 
13982
# ---------------
 
13983
# Portably unset VAR.
 
13984
as_fn_unset ()
 
13985
{
 
13986
  { eval $1=; unset $1;}
 
13987
}
 
13988
as_unset=as_fn_unset
 
13989
# as_fn_append VAR VALUE
 
13990
# ----------------------
 
13991
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13992
# advantage of any shell optimizations that allow amortized linear growth over
 
13993
# repeated appends, instead of the typical quadratic growth present in naive
 
13994
# implementations.
 
13995
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13996
  eval 'as_fn_append ()
 
13997
  {
 
13998
    eval $1+=\$2
 
13999
  }'
 
14000
else
 
14001
  as_fn_append ()
 
14002
  {
 
14003
    eval $1=\$$1\$2
 
14004
  }
 
14005
fi # as_fn_append
 
14006
 
 
14007
# as_fn_arith ARG...
 
14008
# ------------------
 
14009
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14010
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14011
# must be portable across $(()) and expr.
 
14012
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14013
  eval 'as_fn_arith ()
 
14014
  {
 
14015
    as_val=$(( $* ))
 
14016
  }'
 
14017
else
 
14018
  as_fn_arith ()
 
14019
  {
 
14020
    as_val=`expr "$@" || test $? -eq 1`
 
14021
  }
 
14022
fi # as_fn_arith
 
14023
 
 
14024
 
 
14025
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14026
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14027
  as_expr=expr
 
14028
else
 
14029
  as_expr=false
 
14030
fi
 
14031
 
 
14032
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14033
  as_basename=basename
 
14034
else
 
14035
  as_basename=false
 
14036
fi
 
14037
 
 
14038
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14039
  as_dirname=dirname
 
14040
else
 
14041
  as_dirname=false
 
14042
fi
 
14043
 
 
14044
as_me=`$as_basename -- "$0" ||
 
14045
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14046
         X"$0" : 'X\(//\)$' \| \
 
14047
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14048
$as_echo X/"$0" |
 
14049
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14050
            s//\1/
 
14051
            q
 
14052
          }
 
14053
          /^X\/\(\/\/\)$/{
 
14054
            s//\1/
 
14055
            q
 
14056
          }
 
14057
          /^X\/\(\/\).*/{
 
14058
            s//\1/
 
14059
            q
 
14060
          }
 
14061
          s/.*/./; q'`
 
14062
 
 
14063
# Avoid depending upon Character Ranges.
 
14064
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14065
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14066
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14067
as_cr_digits='0123456789'
 
14068
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14069
 
 
14070
ECHO_C= ECHO_N= ECHO_T=
 
14071
case `echo -n x` in #(((((
 
14072
-n*)
 
14073
  case `echo 'xy\c'` in
 
14074
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14075
  xy)  ECHO_C='\c';;
 
14076
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14077
       ECHO_T=' ';;
 
14078
  esac;;
 
14079
*)
 
14080
  ECHO_N='-n';;
 
14081
esac
 
14082
 
 
14083
rm -f conf$$ conf$$.exe conf$$.file
 
14084
if test -d conf$$.dir; then
 
14085
  rm -f conf$$.dir/conf$$.file
 
14086
else
 
14087
  rm -f conf$$.dir
 
14088
  mkdir conf$$.dir 2>/dev/null
 
14089
fi
 
14090
if (echo >conf$$.file) 2>/dev/null; then
 
14091
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14092
    as_ln_s='ln -s'
 
14093
    # ... but there are two gotchas:
 
14094
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14095
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14096
    # In both cases, we have to default to `cp -pR'.
 
14097
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14098
      as_ln_s='cp -pR'
 
14099
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14100
    as_ln_s=ln
 
14101
  else
 
14102
    as_ln_s='cp -pR'
 
14103
  fi
 
14104
else
 
14105
  as_ln_s='cp -pR'
 
14106
fi
 
14107
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14108
rmdir conf$$.dir 2>/dev/null
 
14109
 
 
14110
 
 
14111
# as_fn_mkdir_p
 
14112
# -------------
 
14113
# Create "$as_dir" as a directory, including parents if necessary.
 
14114
as_fn_mkdir_p ()
 
14115
{
 
14116
 
 
14117
  case $as_dir in #(
 
14118
  -*) as_dir=./$as_dir;;
 
14119
  esac
 
14120
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14121
    as_dirs=
 
14122
    while :; do
 
14123
      case $as_dir in #(
 
14124
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14125
      *) as_qdir=$as_dir;;
 
14126
      esac
 
14127
      as_dirs="'$as_qdir' $as_dirs"
 
14128
      as_dir=`$as_dirname -- "$as_dir" ||
 
14129
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14130
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14131
         X"$as_dir" : 'X\(//\)$' \| \
 
14132
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14133
$as_echo X"$as_dir" |
 
14134
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14135
            s//\1/
 
14136
            q
 
14137
          }
 
14138
          /^X\(\/\/\)[^/].*/{
 
14139
            s//\1/
 
14140
            q
 
14141
          }
 
14142
          /^X\(\/\/\)$/{
 
14143
            s//\1/
 
14144
            q
 
14145
          }
 
14146
          /^X\(\/\).*/{
 
14147
            s//\1/
 
14148
            q
 
14149
          }
 
14150
          s/.*/./; q'`
 
14151
      test -d "$as_dir" && break
 
14152
    done
 
14153
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14154
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
14155
 
 
14156
 
 
14157
} # as_fn_mkdir_p
 
14158
if mkdir -p . 2>/dev/null; then
 
14159
  as_mkdir_p='mkdir -p "$as_dir"'
 
14160
else
 
14161
  test -d ./-p && rmdir ./-p
 
14162
  as_mkdir_p=false
 
14163
fi
 
14164
 
 
14165
 
 
14166
# as_fn_executable_p FILE
 
14167
# -----------------------
 
14168
# Test if FILE is an executable regular file.
 
14169
as_fn_executable_p ()
 
14170
{
 
14171
  test -f "$1" && test -x "$1"
 
14172
} # as_fn_executable_p
 
14173
as_test_x='test -x'
 
14174
as_executable_p=as_fn_executable_p
 
14175
 
 
14176
# Sed expression to map a string onto a valid CPP name.
 
14177
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14178
 
 
14179
# Sed expression to map a string onto a valid variable name.
 
14180
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14181
 
 
14182
 
 
14183
exec 6>&1
 
14184
## ----------------------------------- ##
 
14185
## Main body of $CONFIG_STATUS script. ##
 
14186
## ----------------------------------- ##
 
14187
_ASEOF
 
14188
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14189
 
 
14190
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14191
# Save the log message, to keep $0 and so on meaningful, and to
 
14192
# report actual input values of CONFIG_FILES etc. instead of their
 
14193
# values after options handling.
 
14194
ac_log="
 
14195
This file was extended by jq $as_me 1.4, which was
 
14196
generated by GNU Autoconf 2.69.  Invocation command line was
 
14197
 
 
14198
  CONFIG_FILES    = $CONFIG_FILES
 
14199
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14200
  CONFIG_LINKS    = $CONFIG_LINKS
 
14201
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14202
  $ $0 $@
 
14203
 
 
14204
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14205
"
 
14206
 
 
14207
_ACEOF
 
14208
 
 
14209
case $ac_config_files in *"
 
14210
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14211
esac
 
14212
 
 
14213
 
 
14214
 
 
14215
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14216
# Files that config.status was made for.
 
14217
config_files="$ac_config_files"
 
14218
config_commands="$ac_config_commands"
 
14219
 
 
14220
_ACEOF
 
14221
 
 
14222
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14223
ac_cs_usage="\
 
14224
\`$as_me' instantiates files and other configuration actions
 
14225
from templates according to the current configuration.  Unless the files
 
14226
and actions are specified as TAGs, all are instantiated by default.
 
14227
 
 
14228
Usage: $0 [OPTION]... [TAG]...
 
14229
 
 
14230
  -h, --help       print this help, then exit
 
14231
  -V, --version    print version number and configuration settings, then exit
 
14232
      --config     print configuration, then exit
 
14233
  -q, --quiet, --silent
 
14234
                   do not print progress messages
 
14235
  -d, --debug      don't remove temporary files
 
14236
      --recheck    update $as_me by reconfiguring in the same conditions
 
14237
      --file=FILE[:TEMPLATE]
 
14238
                   instantiate the configuration file FILE
 
14239
 
 
14240
Configuration files:
 
14241
$config_files
 
14242
 
 
14243
Configuration commands:
 
14244
$config_commands
 
14245
 
 
14246
Report bugs to <mu@netsoc.tcd.ie>.
 
14247
jq home page: <http://stedolan.github.com/jq/>."
 
14248
 
 
14249
_ACEOF
 
14250
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14251
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
14252
ac_cs_version="\\
 
14253
jq config.status 1.4
 
14254
configured by $0, generated by GNU Autoconf 2.69,
 
14255
  with options \\"\$ac_cs_config\\"
 
14256
 
 
14257
Copyright (C) 2012 Free Software Foundation, Inc.
 
14258
This config.status script is free software; the Free Software Foundation
 
14259
gives unlimited permission to copy, distribute and modify it."
 
14260
 
 
14261
ac_pwd='$ac_pwd'
 
14262
srcdir='$srcdir'
 
14263
INSTALL='$INSTALL'
 
14264
MKDIR_P='$MKDIR_P'
 
14265
AWK='$AWK'
 
14266
test -n "\$AWK" || AWK=awk
 
14267
_ACEOF
 
14268
 
 
14269
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14270
# The default lists apply if the user does not specify any file.
 
14271
ac_need_defaults=:
 
14272
while test $# != 0
 
14273
do
 
14274
  case $1 in
 
14275
  --*=?*)
 
14276
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14277
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14278
    ac_shift=:
 
14279
    ;;
 
14280
  --*=)
 
14281
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14282
    ac_optarg=
 
14283
    ac_shift=:
 
14284
    ;;
 
14285
  *)
 
14286
    ac_option=$1
 
14287
    ac_optarg=$2
 
14288
    ac_shift=shift
 
14289
    ;;
 
14290
  esac
 
14291
 
 
14292
  case $ac_option in
 
14293
  # Handling of the options.
 
14294
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14295
    ac_cs_recheck=: ;;
 
14296
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14297
    $as_echo "$ac_cs_version"; exit ;;
 
14298
  --config | --confi | --conf | --con | --co | --c )
 
14299
    $as_echo "$ac_cs_config"; exit ;;
 
14300
  --debug | --debu | --deb | --de | --d | -d )
 
14301
    debug=: ;;
 
14302
  --file | --fil | --fi | --f )
 
14303
    $ac_shift
 
14304
    case $ac_optarg in
 
14305
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14306
    '') as_fn_error $? "missing file argument" ;;
 
14307
    esac
 
14308
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14309
    ac_need_defaults=false;;
 
14310
  --he | --h |  --help | --hel | -h )
 
14311
    $as_echo "$ac_cs_usage"; exit ;;
 
14312
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14313
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14314
    ac_cs_silent=: ;;
 
14315
 
 
14316
  # This is an error.
 
14317
  -*) as_fn_error $? "unrecognized option: \`$1'
 
14318
Try \`$0 --help' for more information." ;;
 
14319
 
 
14320
  *) as_fn_append ac_config_targets " $1"
 
14321
     ac_need_defaults=false ;;
 
14322
 
 
14323
  esac
 
14324
  shift
 
14325
done
 
14326
 
 
14327
ac_configure_extra_args=
 
14328
 
 
14329
if $ac_cs_silent; then
 
14330
  exec 6>/dev/null
 
14331
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14332
fi
 
14333
 
 
14334
_ACEOF
 
14335
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14336
if \$ac_cs_recheck; then
 
14337
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14338
  shift
 
14339
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14340
  CONFIG_SHELL='$SHELL'
 
14341
  export CONFIG_SHELL
 
14342
  exec "\$@"
 
14343
fi
 
14344
 
 
14345
_ACEOF
 
14346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14347
exec 5>>config.log
 
14348
{
 
14349
  echo
 
14350
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14351
## Running $as_me. ##
 
14352
_ASBOX
 
14353
  $as_echo "$ac_log"
 
14354
} >&5
 
14355
 
 
14356
_ACEOF
 
14357
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14358
#
 
14359
# INIT-COMMANDS
 
14360
#
 
14361
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14362
 
 
14363
 
 
14364
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14365
# if CDPATH is set.
 
14366
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14367
 
 
14368
sed_quote_subst='$sed_quote_subst'
 
14369
double_quote_subst='$double_quote_subst'
 
14370
delay_variable_subst='$delay_variable_subst'
 
14371
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14372
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14373
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14374
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14375
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
 
14376
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
14377
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
14378
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14379
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14380
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14381
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14382
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
14383
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14384
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14385
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14386
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14387
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14388
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14389
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14390
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14391
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
14392
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
14393
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
14394
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
14395
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
14396
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
14397
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
14398
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
14399
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
14400
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
14401
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
14402
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
14403
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14404
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14405
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
14406
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
14407
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
14408
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
14409
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
14410
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
14411
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
14412
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
14413
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
14414
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
14415
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
14416
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
14417
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14418
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14419
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14420
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
14421
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
14422
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
14423
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
14424
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
14425
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
14426
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
14427
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
14428
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14429
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14430
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
14431
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
14432
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
14433
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
14434
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
14435
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
14436
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
14437
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
14438
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
14439
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
14440
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
14441
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
14442
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
14443
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
14444
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
14445
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
14446
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
14447
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14448
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
14449
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
14450
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14451
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14452
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
14453
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
14454
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14455
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14456
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14457
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
14458
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14459
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
14460
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14461
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14462
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14463
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
14464
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
14465
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
14466
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
14467
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14468
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
14469
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
14470
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
14471
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
14472
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
14473
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
14474
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
14475
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
14476
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
14477
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14478
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
14479
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14480
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
14481
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
14482
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
14483
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14484
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
14485
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
14486
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
14487
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
14488
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
14489
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14490
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14491
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
14492
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
14493
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
14494
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
14495
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
14496
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
14497
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
14498
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
14499
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
14500
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
14501
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
14502
 
 
14503
LTCC='$LTCC'
 
14504
LTCFLAGS='$LTCFLAGS'
 
14505
compiler='$compiler_DEFAULT'
 
14506
 
 
14507
# A function that is used when there is no print builtin or printf.
 
14508
func_fallback_echo ()
 
14509
{
 
14510
  eval 'cat <<_LTECHO_EOF
 
14511
\$1
 
14512
_LTECHO_EOF'
 
14513
}
 
14514
 
 
14515
# Quote evaled strings.
 
14516
for var in AS \
 
14517
DLLTOOL \
 
14518
OBJDUMP \
 
14519
SHELL \
 
14520
ECHO \
 
14521
PATH_SEPARATOR \
 
14522
SED \
 
14523
GREP \
 
14524
EGREP \
 
14525
FGREP \
 
14526
LD \
 
14527
NM \
 
14528
LN_S \
 
14529
lt_SP2NL \
 
14530
lt_NL2SP \
 
14531
reload_flag \
 
14532
deplibs_check_method \
 
14533
file_magic_cmd \
 
14534
file_magic_glob \
 
14535
want_nocaseglob \
 
14536
sharedlib_from_linklib_cmd \
 
14537
AR \
 
14538
AR_FLAGS \
 
14539
archiver_list_spec \
 
14540
STRIP \
 
14541
RANLIB \
 
14542
CC \
 
14543
CFLAGS \
 
14544
compiler \
 
14545
lt_cv_sys_global_symbol_pipe \
 
14546
lt_cv_sys_global_symbol_to_cdecl \
 
14547
lt_cv_sys_global_symbol_to_c_name_address \
 
14548
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14549
nm_file_list_spec \
 
14550
lt_prog_compiler_no_builtin_flag \
 
14551
lt_prog_compiler_pic \
 
14552
lt_prog_compiler_wl \
 
14553
lt_prog_compiler_static \
 
14554
lt_cv_prog_compiler_c_o \
 
14555
need_locks \
 
14556
MANIFEST_TOOL \
 
14557
DSYMUTIL \
 
14558
NMEDIT \
 
14559
LIPO \
 
14560
OTOOL \
 
14561
OTOOL64 \
 
14562
shrext_cmds \
 
14563
export_dynamic_flag_spec \
 
14564
whole_archive_flag_spec \
 
14565
compiler_needs_object \
 
14566
with_gnu_ld \
 
14567
allow_undefined_flag \
 
14568
no_undefined_flag \
 
14569
hardcode_libdir_flag_spec \
 
14570
hardcode_libdir_separator \
 
14571
exclude_expsyms \
 
14572
include_expsyms \
 
14573
file_list_spec \
 
14574
variables_saved_for_relink \
 
14575
libname_spec \
 
14576
library_names_spec \
 
14577
soname_spec \
 
14578
install_override_mode \
 
14579
finish_eval \
 
14580
old_striplib \
 
14581
striplib; do
 
14582
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14583
    *[\\\\\\\`\\"\\\$]*)
 
14584
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14585
      ;;
 
14586
    *)
 
14587
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14588
      ;;
 
14589
    esac
 
14590
done
 
14591
 
 
14592
# Double-quote double-evaled strings.
 
14593
for var in reload_cmds \
 
14594
old_postinstall_cmds \
 
14595
old_postuninstall_cmds \
 
14596
old_archive_cmds \
 
14597
extract_expsyms_cmds \
 
14598
old_archive_from_new_cmds \
 
14599
old_archive_from_expsyms_cmds \
 
14600
archive_cmds \
 
14601
archive_expsym_cmds \
 
14602
module_cmds \
 
14603
module_expsym_cmds \
 
14604
export_symbols_cmds \
 
14605
prelink_cmds \
 
14606
postlink_cmds \
 
14607
postinstall_cmds \
 
14608
postuninstall_cmds \
 
14609
finish_cmds \
 
14610
sys_lib_search_path_spec \
 
14611
sys_lib_dlsearch_path_spec; do
 
14612
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14613
    *[\\\\\\\`\\"\\\$]*)
 
14614
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14615
      ;;
 
14616
    *)
 
14617
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14618
      ;;
 
14619
    esac
 
14620
done
 
14621
 
 
14622
ac_aux_dir='$ac_aux_dir'
 
14623
xsi_shell='$xsi_shell'
 
14624
lt_shell_append='$lt_shell_append'
 
14625
 
 
14626
# See if we are running on zsh, and set the options which allow our
 
14627
# commands through without removal of \ escapes INIT.
 
14628
if test -n "\${ZSH_VERSION+set}" ; then
 
14629
   setopt NO_GLOB_SUBST
 
14630
fi
 
14631
 
 
14632
 
 
14633
    PACKAGE='$PACKAGE'
 
14634
    VERSION='$VERSION'
 
14635
    TIMESTAMP='$TIMESTAMP'
 
14636
    RM='$RM'
 
14637
    ofile='$ofile'
 
14638
 
 
14639
 
 
14640
 
 
14641
 
 
14642
_ACEOF
 
14643
 
 
14644
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14645
 
 
14646
# Handling of arguments.
 
14647
for ac_config_target in $ac_config_targets
 
14648
do
 
14649
  case $ac_config_target in
 
14650
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14651
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14652
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14653
 
 
14654
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
14655
  esac
 
14656
done
 
14657
 
 
14658
 
 
14659
# If the user did not use the arguments to specify the items to instantiate,
 
14660
# then the envvar interface is used.  Set only those that are not.
 
14661
# We use the long form for the default assignment because of an extremely
 
14662
# bizarre bug on SunOS 4.1.3.
 
14663
if $ac_need_defaults; then
 
14664
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14665
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14666
fi
 
14667
 
 
14668
# Have a temporary directory for convenience.  Make it in the build tree
 
14669
# simply because there is no reason against having it here, and in addition,
 
14670
# creating and moving files from /tmp can sometimes cause problems.
 
14671
# Hook for its removal unless debugging.
 
14672
# Note that there is a small window in which the directory will not be cleaned:
 
14673
# after its creation but before its name has been assigned to `$tmp'.
 
14674
$debug ||
 
14675
{
 
14676
  tmp= ac_tmp=
 
14677
  trap 'exit_status=$?
 
14678
  : "${ac_tmp:=$tmp}"
 
14679
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
14680
' 0
 
14681
  trap 'as_fn_exit 1' 1 2 13 15
 
14682
}
 
14683
# Create a (secure) tmp directory for tmp files.
 
14684
 
 
14685
{
 
14686
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14687
  test -d "$tmp"
 
14688
}  ||
 
14689
{
 
14690
  tmp=./conf$$-$RANDOM
 
14691
  (umask 077 && mkdir "$tmp")
 
14692
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14693
ac_tmp=$tmp
 
14694
 
 
14695
# Set up the scripts for CONFIG_FILES section.
 
14696
# No need to generate them if there are no CONFIG_FILES.
 
14697
# This happens for instance with `./config.status config.h'.
 
14698
if test -n "$CONFIG_FILES"; then
 
14699
 
 
14700
 
 
14701
ac_cr=`echo X | tr X '\015'`
 
14702
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14703
# But we know of no other shell where ac_cr would be empty at this
 
14704
# point, so we can use a bashism as a fallback.
 
14705
if test "x$ac_cr" = x; then
 
14706
  eval ac_cr=\$\'\\r\'
 
14707
fi
 
14708
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14709
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14710
  ac_cs_awk_cr='\\r'
 
14711
else
 
14712
  ac_cs_awk_cr=$ac_cr
 
14713
fi
 
14714
 
 
14715
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14716
_ACEOF
 
14717
 
 
14718
 
 
14719
{
 
14720
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14721
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14722
  echo "_ACEOF"
 
14723
} >conf$$subs.sh ||
 
14724
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14725
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14726
ac_delim='%!_!# '
 
14727
for ac_last_try in false false false false false :; do
 
14728
  . ./conf$$subs.sh ||
 
14729
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14730
 
 
14731
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14732
  if test $ac_delim_n = $ac_delim_num; then
 
14733
    break
 
14734
  elif $ac_last_try; then
 
14735
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14736
  else
 
14737
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14738
  fi
 
14739
done
 
14740
rm -f conf$$subs.sh
 
14741
 
 
14742
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14743
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14744
_ACEOF
 
14745
sed -n '
 
14746
h
 
14747
s/^/S["/; s/!.*/"]=/
 
14748
p
 
14749
g
 
14750
s/^[^!]*!//
 
14751
:repl
 
14752
t repl
 
14753
s/'"$ac_delim"'$//
 
14754
t delim
 
14755
:nl
 
14756
h
 
14757
s/\(.\{148\}\)..*/\1/
 
14758
t more1
 
14759
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14760
p
 
14761
n
 
14762
b repl
 
14763
:more1
 
14764
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14765
p
 
14766
g
 
14767
s/.\{148\}//
 
14768
t nl
 
14769
:delim
 
14770
h
 
14771
s/\(.\{148\}\)..*/\1/
 
14772
t more2
 
14773
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14774
p
 
14775
b
 
14776
:more2
 
14777
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14778
p
 
14779
g
 
14780
s/.\{148\}//
 
14781
t delim
 
14782
' <conf$$subs.awk | sed '
 
14783
/^[^""]/{
 
14784
  N
 
14785
  s/\n//
 
14786
}
 
14787
' >>$CONFIG_STATUS || ac_write_fail=1
 
14788
rm -f conf$$subs.awk
 
14789
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14790
_ACAWK
 
14791
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14792
  for (key in S) S_is_set[key] = 1
 
14793
  FS = ""
 
14794
 
 
14795
}
 
14796
{
 
14797
  line = $ 0
 
14798
  nfields = split(line, field, "@")
 
14799
  substed = 0
 
14800
  len = length(field[1])
 
14801
  for (i = 2; i < nfields; i++) {
 
14802
    key = field[i]
 
14803
    keylen = length(key)
 
14804
    if (S_is_set[key]) {
 
14805
      value = S[key]
 
14806
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14807
      len += length(value) + length(field[++i])
 
14808
      substed = 1
 
14809
    } else
 
14810
      len += 1 + keylen
 
14811
  }
 
14812
 
 
14813
  print line
 
14814
}
 
14815
 
 
14816
_ACAWK
 
14817
_ACEOF
 
14818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14819
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14820
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14821
else
 
14822
  cat
 
14823
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14824
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14825
_ACEOF
 
14826
 
 
14827
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14828
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14829
# trailing colons and then remove the whole line if VPATH becomes empty
 
14830
# (actually we leave an empty line to preserve line numbers).
 
14831
if test "x$srcdir" = x.; then
 
14832
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14833
h
 
14834
s///
 
14835
s/^/:/
 
14836
s/[      ]*$/:/
 
14837
s/:\$(srcdir):/:/g
 
14838
s/:\${srcdir}:/:/g
 
14839
s/:@srcdir@:/:/g
 
14840
s/^:*//
 
14841
s/:*$//
 
14842
x
 
14843
s/\(=[   ]*\).*/\1/
 
14844
G
 
14845
s/\n//
 
14846
s/^[^=]*=[       ]*$//
 
14847
}'
 
14848
fi
 
14849
 
 
14850
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14851
fi # test -n "$CONFIG_FILES"
 
14852
 
 
14853
 
 
14854
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
14855
shift
 
14856
for ac_tag
 
14857
do
 
14858
  case $ac_tag in
 
14859
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14860
  esac
 
14861
  case $ac_mode$ac_tag in
 
14862
  :[FHL]*:*);;
 
14863
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14864
  :[FH]-) ac_tag=-:-;;
 
14865
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14866
  esac
 
14867
  ac_save_IFS=$IFS
 
14868
  IFS=:
 
14869
  set x $ac_tag
 
14870
  IFS=$ac_save_IFS
 
14871
  shift
 
14872
  ac_file=$1
 
14873
  shift
 
14874
 
 
14875
  case $ac_mode in
 
14876
  :L) ac_source=$1;;
 
14877
  :[FH])
 
14878
    ac_file_inputs=
 
14879
    for ac_f
 
14880
    do
 
14881
      case $ac_f in
 
14882
      -) ac_f="$ac_tmp/stdin";;
 
14883
      *) # Look for the file first in the build tree, then in the source tree
 
14884
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14885
         # because $ac_f cannot contain `:'.
 
14886
         test -f "$ac_f" ||
 
14887
           case $ac_f in
 
14888
           [\\/$]*) false;;
 
14889
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14890
           esac ||
 
14891
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14892
      esac
 
14893
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14894
      as_fn_append ac_file_inputs " '$ac_f'"
 
14895
    done
 
14896
 
 
14897
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14898
    # use $as_me), people would be surprised to read:
 
14899
    #    /* config.h.  Generated by config.status.  */
 
14900
    configure_input='Generated from '`
 
14901
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14902
        `' by configure.'
 
14903
    if test x"$ac_file" != x-; then
 
14904
      configure_input="$ac_file.  $configure_input"
 
14905
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14906
$as_echo "$as_me: creating $ac_file" >&6;}
 
14907
    fi
 
14908
    # Neutralize special characters interpreted by sed in replacement strings.
 
14909
    case $configure_input in #(
 
14910
    *\&* | *\|* | *\\* )
 
14911
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14912
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14913
    *) ac_sed_conf_input=$configure_input;;
 
14914
    esac
 
14915
 
 
14916
    case $ac_tag in
 
14917
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14918
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14919
    esac
 
14920
    ;;
 
14921
  esac
 
14922
 
 
14923
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14924
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14925
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14926
         X"$ac_file" : 'X\(//\)$' \| \
 
14927
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14928
$as_echo X"$ac_file" |
 
14929
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14930
            s//\1/
 
14931
            q
 
14932
          }
 
14933
          /^X\(\/\/\)[^/].*/{
 
14934
            s//\1/
 
14935
            q
 
14936
          }
 
14937
          /^X\(\/\/\)$/{
 
14938
            s//\1/
 
14939
            q
 
14940
          }
 
14941
          /^X\(\/\).*/{
 
14942
            s//\1/
 
14943
            q
 
14944
          }
 
14945
          s/.*/./; q'`
 
14946
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14947
  ac_builddir=.
 
14948
 
 
14949
case "$ac_dir" in
 
14950
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14951
*)
 
14952
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14953
  # A ".." for each directory in $ac_dir_suffix.
 
14954
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14955
  case $ac_top_builddir_sub in
 
14956
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14957
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14958
  esac ;;
 
14959
esac
 
14960
ac_abs_top_builddir=$ac_pwd
 
14961
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14962
# for backward compatibility:
 
14963
ac_top_builddir=$ac_top_build_prefix
 
14964
 
 
14965
case $srcdir in
 
14966
  .)  # We are building in place.
 
14967
    ac_srcdir=.
 
14968
    ac_top_srcdir=$ac_top_builddir_sub
 
14969
    ac_abs_top_srcdir=$ac_pwd ;;
 
14970
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14971
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14972
    ac_top_srcdir=$srcdir
 
14973
    ac_abs_top_srcdir=$srcdir ;;
 
14974
  *) # Relative name.
 
14975
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14976
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14977
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14978
esac
 
14979
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14980
 
 
14981
 
 
14982
  case $ac_mode in
 
14983
  :F)
 
14984
  #
 
14985
  # CONFIG_FILE
 
14986
  #
 
14987
 
 
14988
  case $INSTALL in
 
14989
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14990
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14991
  esac
 
14992
  ac_MKDIR_P=$MKDIR_P
 
14993
  case $MKDIR_P in
 
14994
  [\\/$]* | ?:[\\/]* ) ;;
 
14995
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14996
  esac
 
14997
_ACEOF
 
14998
 
 
14999
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15000
# If the template does not know about datarootdir, expand it.
 
15001
# FIXME: This hack should be removed a few years after 2.60.
 
15002
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15003
ac_sed_dataroot='
 
15004
/datarootdir/ {
 
15005
  p
 
15006
  q
 
15007
}
 
15008
/@datadir@/p
 
15009
/@docdir@/p
 
15010
/@infodir@/p
 
15011
/@localedir@/p
 
15012
/@mandir@/p'
 
15013
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15014
*datarootdir*) ac_datarootdir_seen=yes;;
 
15015
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15016
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15017
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15018
_ACEOF
 
15019
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15020
  ac_datarootdir_hack='
 
15021
  s&@datadir@&$datadir&g
 
15022
  s&@docdir@&$docdir&g
 
15023
  s&@infodir@&$infodir&g
 
15024
  s&@localedir@&$localedir&g
 
15025
  s&@mandir@&$mandir&g
 
15026
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15027
esac
 
15028
_ACEOF
 
15029
 
 
15030
# Neutralize VPATH when `$srcdir' = `.'.
 
15031
# Shell code in configure.ac might set extrasub.
 
15032
# FIXME: do we really want to maintain this feature?
 
15033
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15034
ac_sed_extra="$ac_vpsub
 
15035
$extrasub
 
15036
_ACEOF
 
15037
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15038
:t
 
15039
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15040
s|@configure_input@|$ac_sed_conf_input|;t t
 
15041
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15042
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15043
s&@srcdir@&$ac_srcdir&;t t
 
15044
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15045
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15046
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15047
s&@builddir@&$ac_builddir&;t t
 
15048
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15049
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15050
s&@INSTALL@&$ac_INSTALL&;t t
 
15051
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15052
$ac_datarootdir_hack
 
15053
"
 
15054
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
15055
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15056
 
 
15057
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15058
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
15059
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
15060
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
15061
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15062
which seems to be undefined.  Please make sure it is defined" >&5
 
15063
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15064
which seems to be undefined.  Please make sure it is defined" >&2;}
 
15065
 
 
15066
  rm -f "$ac_tmp/stdin"
 
15067
  case $ac_file in
 
15068
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
15069
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
15070
  esac \
 
15071
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15072
 ;;
 
15073
 
 
15074
 
 
15075
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15076
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15077
 ;;
 
15078
  esac
 
15079
 
 
15080
 
 
15081
  case $ac_file$ac_mode in
 
15082
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15083
  # Older Autoconf quotes --file arguments for eval, but not when files
 
15084
  # are listed without --file.  Let's play safe and only enable the eval
 
15085
  # if we detect the quoting.
 
15086
  case $CONFIG_FILES in
 
15087
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15088
  *)   set x $CONFIG_FILES ;;
 
15089
  esac
 
15090
  shift
 
15091
  for mf
 
15092
  do
 
15093
    # Strip MF so we end up with the name of the file.
 
15094
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15095
    # Check whether this is an Automake generated Makefile or not.
 
15096
    # We used to match only the files named 'Makefile.in', but
 
15097
    # some people rename them; so instead we look at the file content.
 
15098
    # Grep'ing the first line is not enough: some people post-process
 
15099
    # each Makefile.in and add a new line on top of each file to say so.
 
15100
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15101
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15102
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15103
      dirpart=`$as_dirname -- "$mf" ||
 
15104
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15105
         X"$mf" : 'X\(//\)[^/]' \| \
 
15106
         X"$mf" : 'X\(//\)$' \| \
 
15107
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15108
$as_echo X"$mf" |
 
15109
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15110
            s//\1/
 
15111
            q
 
15112
          }
 
15113
          /^X\(\/\/\)[^/].*/{
 
15114
            s//\1/
 
15115
            q
 
15116
          }
 
15117
          /^X\(\/\/\)$/{
 
15118
            s//\1/
 
15119
            q
 
15120
          }
 
15121
          /^X\(\/\).*/{
 
15122
            s//\1/
 
15123
            q
 
15124
          }
 
15125
          s/.*/./; q'`
 
15126
    else
 
15127
      continue
 
15128
    fi
 
15129
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15130
    # from the Makefile without running 'make'.
 
15131
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15132
    test -z "$DEPDIR" && continue
 
15133
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15134
    test -z "$am__include" && continue
 
15135
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15136
    # Find all dependency output files, they are included files with
 
15137
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15138
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15139
    # expansion.
 
15140
    for file in `sed -n "
 
15141
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15142
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
15143
      # Make sure the directory exists.
 
15144
      test -f "$dirpart/$file" && continue
 
15145
      fdir=`$as_dirname -- "$file" ||
 
15146
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15147
         X"$file" : 'X\(//\)[^/]' \| \
 
15148
         X"$file" : 'X\(//\)$' \| \
 
15149
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15150
$as_echo X"$file" |
 
15151
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15152
            s//\1/
 
15153
            q
 
15154
          }
 
15155
          /^X\(\/\/\)[^/].*/{
 
15156
            s//\1/
 
15157
            q
 
15158
          }
 
15159
          /^X\(\/\/\)$/{
 
15160
            s//\1/
 
15161
            q
 
15162
          }
 
15163
          /^X\(\/\).*/{
 
15164
            s//\1/
 
15165
            q
 
15166
          }
 
15167
          s/.*/./; q'`
 
15168
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15169
      # echo "creating $dirpart/$file"
 
15170
      echo '# dummy' > "$dirpart/$file"
 
15171
    done
 
15172
  done
 
15173
}
 
15174
 ;;
 
15175
    "libtool":C)
 
15176
 
 
15177
    # See if we are running on zsh, and set the options which allow our
 
15178
    # commands through without removal of \ escapes.
 
15179
    if test -n "${ZSH_VERSION+set}" ; then
 
15180
      setopt NO_GLOB_SUBST
 
15181
    fi
 
15182
 
 
15183
    cfgfile="${ofile}T"
 
15184
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15185
    $RM "$cfgfile"
 
15186
 
 
15187
    cat <<_LT_EOF >> "$cfgfile"
 
15188
#! $SHELL
 
15189
 
 
15190
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15191
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15192
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15193
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15194
#
 
15195
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15196
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
15197
#                 Foundation, Inc.
 
15198
#   Written by Gordon Matzigkeit, 1996
 
15199
#
 
15200
#   This file is part of GNU Libtool.
 
15201
#
 
15202
# GNU Libtool is free software; you can redistribute it and/or
 
15203
# modify it under the terms of the GNU General Public License as
 
15204
# published by the Free Software Foundation; either version 2 of
 
15205
# the License, or (at your option) any later version.
 
15206
#
 
15207
# As a special exception to the GNU General Public License,
 
15208
# if you distribute this file as part of a program or library that
 
15209
# is built using GNU Libtool, you may include this file under the
 
15210
# same distribution terms that you use for the rest of that program.
 
15211
#
 
15212
# GNU Libtool is distributed in the hope that it will be useful,
 
15213
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15214
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15215
# GNU General Public License for more details.
 
15216
#
 
15217
# You should have received a copy of the GNU General Public License
 
15218
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15219
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15220
# obtained by writing to the Free Software Foundation, Inc.,
 
15221
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15222
 
 
15223
 
 
15224
# The names of the tagged configurations supported by this script.
 
15225
available_tags=""
 
15226
 
 
15227
# ### BEGIN LIBTOOL CONFIG
 
15228
 
 
15229
# Which release of libtool.m4 was used?
 
15230
macro_version=$macro_version
 
15231
macro_revision=$macro_revision
 
15232
 
 
15233
# Whether or not to build shared libraries.
 
15234
build_libtool_libs=$enable_shared
 
15235
 
 
15236
# Whether or not to build static libraries.
 
15237
build_old_libs=$enable_static
 
15238
 
 
15239
# Assembler program.
 
15240
AS=$lt_AS
 
15241
 
 
15242
# DLL creation program.
 
15243
DLLTOOL=$lt_DLLTOOL
 
15244
 
 
15245
# Object dumper program.
 
15246
OBJDUMP=$lt_OBJDUMP
 
15247
 
 
15248
# What type of objects to build.
 
15249
pic_mode=$pic_mode
 
15250
 
 
15251
# Whether or not to optimize for fast installation.
 
15252
fast_install=$enable_fast_install
 
15253
 
 
15254
# Shell to use when invoking shell scripts.
 
15255
SHELL=$lt_SHELL
 
15256
 
 
15257
# An echo program that protects backslashes.
 
15258
ECHO=$lt_ECHO
 
15259
 
 
15260
# The PATH separator for the build system.
 
15261
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
15262
 
 
15263
# The host system.
 
15264
host_alias=$host_alias
 
15265
host=$host
 
15266
host_os=$host_os
 
15267
 
 
15268
# The build system.
 
15269
build_alias=$build_alias
 
15270
build=$build
 
15271
build_os=$build_os
 
15272
 
 
15273
# A sed program that does not truncate output.
 
15274
SED=$lt_SED
 
15275
 
 
15276
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15277
Xsed="\$SED -e 1s/^X//"
 
15278
 
 
15279
# A grep program that handles long lines.
 
15280
GREP=$lt_GREP
 
15281
 
 
15282
# An ERE matcher.
 
15283
EGREP=$lt_EGREP
 
15284
 
 
15285
# A literal string matcher.
 
15286
FGREP=$lt_FGREP
 
15287
 
 
15288
# A BSD- or MS-compatible name lister.
 
15289
NM=$lt_NM
 
15290
 
 
15291
# Whether we need soft or hard links.
 
15292
LN_S=$lt_LN_S
 
15293
 
 
15294
# What is the maximum length of a command?
 
15295
max_cmd_len=$max_cmd_len
 
15296
 
 
15297
# Object file suffix (normally "o").
 
15298
objext=$ac_objext
 
15299
 
 
15300
# Executable file suffix (normally "").
 
15301
exeext=$exeext
 
15302
 
 
15303
# whether the shell understands "unset".
 
15304
lt_unset=$lt_unset
 
15305
 
 
15306
# turn spaces into newlines.
 
15307
SP2NL=$lt_lt_SP2NL
 
15308
 
 
15309
# turn newlines into spaces.
 
15310
NL2SP=$lt_lt_NL2SP
 
15311
 
 
15312
# convert \$build file names to \$host format.
 
15313
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
15314
 
 
15315
# convert \$build files to toolchain format.
 
15316
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
15317
 
 
15318
# Method to check whether dependent libraries are shared objects.
 
15319
deplibs_check_method=$lt_deplibs_check_method
 
15320
 
 
15321
# Command to use when deplibs_check_method = "file_magic".
 
15322
file_magic_cmd=$lt_file_magic_cmd
 
15323
 
 
15324
# How to find potential files when deplibs_check_method = "file_magic".
 
15325
file_magic_glob=$lt_file_magic_glob
 
15326
 
 
15327
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
15328
want_nocaseglob=$lt_want_nocaseglob
 
15329
 
 
15330
# Command to associate shared and link libraries.
 
15331
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
15332
 
 
15333
# The archiver.
 
15334
AR=$lt_AR
 
15335
 
 
15336
# Flags to create an archive.
 
15337
AR_FLAGS=$lt_AR_FLAGS
 
15338
 
 
15339
# How to feed a file listing to the archiver.
 
15340
archiver_list_spec=$lt_archiver_list_spec
 
15341
 
 
15342
# A symbol stripping program.
 
15343
STRIP=$lt_STRIP
 
15344
 
 
15345
# Commands used to install an old-style archive.
 
15346
RANLIB=$lt_RANLIB
 
15347
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15348
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15349
 
 
15350
# Whether to use a lock for old archive extraction.
 
15351
lock_old_archive_extraction=$lock_old_archive_extraction
 
15352
 
 
15353
# A C compiler.
 
15354
LTCC=$lt_CC
 
15355
 
 
15356
# LTCC compiler flags.
 
15357
LTCFLAGS=$lt_CFLAGS
 
15358
 
 
15359
# Take the output of nm and produce a listing of raw symbols and C names.
 
15360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15361
 
 
15362
# Transform the output of nm in a proper C declaration.
 
15363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15364
 
 
15365
# Transform the output of nm in a C name address pair.
 
15366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15367
 
 
15368
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15369
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15370
 
 
15371
# Specify filename containing input files for \$NM.
 
15372
nm_file_list_spec=$lt_nm_file_list_spec
 
15373
 
 
15374
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
15375
lt_sysroot=$lt_sysroot
 
15376
 
 
15377
# The name of the directory that contains temporary libtool files.
 
15378
objdir=$objdir
 
15379
 
 
15380
# Used to examine libraries when file_magic_cmd begins with "file".
 
15381
MAGIC_CMD=$MAGIC_CMD
 
15382
 
 
15383
# Must we lock files when doing compilation?
 
15384
need_locks=$lt_need_locks
 
15385
 
 
15386
# Manifest tool.
 
15387
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
15388
 
 
15389
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15390
DSYMUTIL=$lt_DSYMUTIL
 
15391
 
 
15392
# Tool to change global to local symbols on Mac OS X.
 
15393
NMEDIT=$lt_NMEDIT
 
15394
 
 
15395
# Tool to manipulate fat objects and archives on Mac OS X.
 
15396
LIPO=$lt_LIPO
 
15397
 
 
15398
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15399
OTOOL=$lt_OTOOL
 
15400
 
 
15401
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15402
OTOOL64=$lt_OTOOL64
 
15403
 
 
15404
# Old archive suffix (normally "a").
 
15405
libext=$libext
 
15406
 
 
15407
# Shared library suffix (normally ".so").
 
15408
shrext_cmds=$lt_shrext_cmds
 
15409
 
 
15410
# The commands to extract the exported symbol list from a shared archive.
 
15411
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15412
 
 
15413
# Variables whose values should be saved in libtool wrapper scripts and
 
15414
# restored at link time.
 
15415
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15416
 
 
15417
# Do we need the "lib" prefix for modules?
 
15418
need_lib_prefix=$need_lib_prefix
 
15419
 
 
15420
# Do we need a version for libraries?
 
15421
need_version=$need_version
 
15422
 
 
15423
# Library versioning type.
 
15424
version_type=$version_type
 
15425
 
 
15426
# Shared library runtime path variable.
 
15427
runpath_var=$runpath_var
 
15428
 
 
15429
# Shared library path variable.
 
15430
shlibpath_var=$shlibpath_var
 
15431
 
 
15432
# Is shlibpath searched before the hard-coded library search path?
 
15433
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15434
 
 
15435
# Format of library name prefix.
 
15436
libname_spec=$lt_libname_spec
 
15437
 
 
15438
# List of archive names.  First name is the real one, the rest are links.
 
15439
# The last name is the one that the linker finds with -lNAME
 
15440
library_names_spec=$lt_library_names_spec
 
15441
 
 
15442
# The coded name of the library, if different from the real name.
 
15443
soname_spec=$lt_soname_spec
 
15444
 
 
15445
# Permission mode override for installation of shared libraries.
 
15446
install_override_mode=$lt_install_override_mode
 
15447
 
 
15448
# Command to use after installation of a shared archive.
 
15449
postinstall_cmds=$lt_postinstall_cmds
 
15450
 
 
15451
# Command to use after uninstallation of a shared archive.
 
15452
postuninstall_cmds=$lt_postuninstall_cmds
 
15453
 
 
15454
# Commands used to finish a libtool library installation in a directory.
 
15455
finish_cmds=$lt_finish_cmds
 
15456
 
 
15457
# As "finish_cmds", except a single script fragment to be evaled but
 
15458
# not shown.
 
15459
finish_eval=$lt_finish_eval
 
15460
 
 
15461
# Whether we should hardcode library paths into libraries.
 
15462
hardcode_into_libs=$hardcode_into_libs
 
15463
 
 
15464
# Compile-time system search path for libraries.
 
15465
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15466
 
 
15467
# Run-time system search path for libraries.
 
15468
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15469
 
 
15470
# Whether dlopen is supported.
 
15471
dlopen_support=$enable_dlopen
 
15472
 
 
15473
# Whether dlopen of programs is supported.
 
15474
dlopen_self=$enable_dlopen_self
 
15475
 
 
15476
# Whether dlopen of statically linked programs is supported.
 
15477
dlopen_self_static=$enable_dlopen_self_static
 
15478
 
 
15479
# Commands to strip libraries.
 
15480
old_striplib=$lt_old_striplib
 
15481
striplib=$lt_striplib
 
15482
 
 
15483
 
 
15484
# The linker used to build libraries.
 
15485
LD=$lt_LD
 
15486
 
 
15487
# How to create reloadable object files.
 
15488
reload_flag=$lt_reload_flag
 
15489
reload_cmds=$lt_reload_cmds
 
15490
 
 
15491
# Commands used to build an old-style archive.
 
15492
old_archive_cmds=$lt_old_archive_cmds
 
15493
 
 
15494
# A language specific compiler.
 
15495
CC=$lt_compiler
 
15496
 
 
15497
# Is the compiler the GNU compiler?
 
15498
with_gcc=$GCC
 
15499
 
 
15500
# Compiler flag to turn off builtin functions.
 
15501
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15502
 
 
15503
# Additional compiler flags for building library objects.
 
15504
pic_flag=$lt_lt_prog_compiler_pic
 
15505
 
 
15506
# How to pass a linker flag through the compiler.
 
15507
wl=$lt_lt_prog_compiler_wl
 
15508
 
 
15509
# Compiler flag to prevent dynamic linking.
 
15510
link_static_flag=$lt_lt_prog_compiler_static
 
15511
 
 
15512
# Does compiler simultaneously support -c and -o options?
 
15513
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15514
 
 
15515
# Whether or not to add -lc for building shared libraries.
 
15516
build_libtool_need_lc=$archive_cmds_need_lc
 
15517
 
 
15518
# Whether or not to disallow shared libs when runtime libs are static.
 
15519
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15520
 
 
15521
# Compiler flag to allow reflexive dlopens.
 
15522
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15523
 
 
15524
# Compiler flag to generate shared objects directly from archives.
 
15525
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15526
 
 
15527
# Whether the compiler copes with passing no objects directly.
 
15528
compiler_needs_object=$lt_compiler_needs_object
 
15529
 
 
15530
# Create an old-style archive from a shared archive.
 
15531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15532
 
 
15533
# Create a temporary old-style archive to link instead of a shared archive.
 
15534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15535
 
 
15536
# Commands used to build a shared archive.
 
15537
archive_cmds=$lt_archive_cmds
 
15538
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15539
 
 
15540
# Commands used to build a loadable module if different from building
 
15541
# a shared archive.
 
15542
module_cmds=$lt_module_cmds
 
15543
module_expsym_cmds=$lt_module_expsym_cmds
 
15544
 
 
15545
# Whether we are building with GNU ld or not.
 
15546
with_gnu_ld=$lt_with_gnu_ld
 
15547
 
 
15548
# Flag that allows shared libraries with undefined symbols to be built.
 
15549
allow_undefined_flag=$lt_allow_undefined_flag
 
15550
 
 
15551
# Flag that enforces no undefined symbols.
 
15552
no_undefined_flag=$lt_no_undefined_flag
 
15553
 
 
15554
# Flag to hardcode \$libdir into a binary during linking.
 
15555
# This must work even if \$libdir does not exist
 
15556
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15557
 
 
15558
# Whether we need a single "-rpath" flag with a separated argument.
 
15559
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15560
 
 
15561
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15562
# DIR into the resulting binary.
 
15563
hardcode_direct=$hardcode_direct
 
15564
 
 
15565
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15566
# DIR into the resulting binary and the resulting library dependency is
 
15567
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15568
# library is relocated.
 
15569
hardcode_direct_absolute=$hardcode_direct_absolute
 
15570
 
 
15571
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15572
# into the resulting binary.
 
15573
hardcode_minus_L=$hardcode_minus_L
 
15574
 
 
15575
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15576
# into the resulting binary.
 
15577
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15578
 
 
15579
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15580
# into the library and all subsequent libraries and executables linked
 
15581
# against it.
 
15582
hardcode_automatic=$hardcode_automatic
 
15583
 
 
15584
# Set to yes if linker adds runtime paths of dependent libraries
 
15585
# to runtime path list.
 
15586
inherit_rpath=$inherit_rpath
 
15587
 
 
15588
# Whether libtool must link a program against all its dependency libraries.
 
15589
link_all_deplibs=$link_all_deplibs
 
15590
 
 
15591
# Set to "yes" if exported symbols are required.
 
15592
always_export_symbols=$always_export_symbols
 
15593
 
 
15594
# The commands to list exported symbols.
 
15595
export_symbols_cmds=$lt_export_symbols_cmds
 
15596
 
 
15597
# Symbols that should not be listed in the preloaded symbols.
 
15598
exclude_expsyms=$lt_exclude_expsyms
 
15599
 
 
15600
# Symbols that must always be exported.
 
15601
include_expsyms=$lt_include_expsyms
 
15602
 
 
15603
# Commands necessary for linking programs (against libraries) with templates.
 
15604
prelink_cmds=$lt_prelink_cmds
 
15605
 
 
15606
# Commands necessary for finishing linking programs.
 
15607
postlink_cmds=$lt_postlink_cmds
 
15608
 
 
15609
# Specify filename containing input files.
 
15610
file_list_spec=$lt_file_list_spec
 
15611
 
 
15612
# How to hardcode a shared library path into an executable.
 
15613
hardcode_action=$hardcode_action
 
15614
 
 
15615
# ### END LIBTOOL CONFIG
 
15616
 
 
15617
_LT_EOF
 
15618
 
 
15619
  case $host_os in
 
15620
  aix3*)
 
15621
    cat <<\_LT_EOF >> "$cfgfile"
 
15622
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15623
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15624
# vanish in a puff of smoke.
 
15625
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15626
  COLLECT_NAMES=
 
15627
  export COLLECT_NAMES
 
15628
fi
 
15629
_LT_EOF
 
15630
    ;;
 
15631
  esac
 
15632
 
 
15633
 
 
15634
ltmain="$ac_aux_dir/ltmain.sh"
 
15635
 
 
15636
 
 
15637
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15638
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15639
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15640
  # is reportedly fixed, but why not run on old versions too?
 
15641
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15642
     || (rm -f "$cfgfile"; exit 1)
 
15643
 
 
15644
  if test x"$xsi_shell" = xyes; then
 
15645
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15646
func_dirname ()\
 
15647
{\
 
15648
\    case ${1} in\
 
15649
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15650
\      *  ) func_dirname_result="${3}" ;;\
 
15651
\    esac\
 
15652
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15653
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15654
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15655
test 0 -eq $? || _lt_function_replace_fail=:
 
15656
 
 
15657
 
 
15658
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15659
func_basename ()\
 
15660
{\
 
15661
\    func_basename_result="${1##*/}"\
 
15662
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15663
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15664
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15665
test 0 -eq $? || _lt_function_replace_fail=:
 
15666
 
 
15667
 
 
15668
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15669
func_dirname_and_basename ()\
 
15670
{\
 
15671
\    case ${1} in\
 
15672
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15673
\      *  ) func_dirname_result="${3}" ;;\
 
15674
\    esac\
 
15675
\    func_basename_result="${1##*/}"\
 
15676
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15677
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15678
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15679
test 0 -eq $? || _lt_function_replace_fail=:
 
15680
 
 
15681
 
 
15682
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15683
func_stripname ()\
 
15684
{\
 
15685
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15686
\    # positional parameters, so assign one to ordinary parameter first.\
 
15687
\    func_stripname_result=${3}\
 
15688
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15689
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15690
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15691
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15692
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15693
test 0 -eq $? || _lt_function_replace_fail=:
 
15694
 
 
15695
 
 
15696
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15697
func_split_long_opt ()\
 
15698
{\
 
15699
\    func_split_long_opt_name=${1%%=*}\
 
15700
\    func_split_long_opt_arg=${1#*=}\
 
15701
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15702
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15703
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15704
test 0 -eq $? || _lt_function_replace_fail=:
 
15705
 
 
15706
 
 
15707
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15708
func_split_short_opt ()\
 
15709
{\
 
15710
\    func_split_short_opt_arg=${1#??}\
 
15711
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15712
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15713
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15714
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15715
test 0 -eq $? || _lt_function_replace_fail=:
 
15716
 
 
15717
 
 
15718
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15719
func_lo2o ()\
 
15720
{\
 
15721
\    case ${1} in\
 
15722
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15723
\      *)    func_lo2o_result=${1} ;;\
 
15724
\    esac\
 
15725
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15726
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15727
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15728
test 0 -eq $? || _lt_function_replace_fail=:
 
15729
 
 
15730
 
 
15731
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15732
func_xform ()\
 
15733
{\
 
15734
    func_xform_result=${1%.*}.lo\
 
15735
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15736
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15737
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15738
test 0 -eq $? || _lt_function_replace_fail=:
 
15739
 
 
15740
 
 
15741
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15742
func_arith ()\
 
15743
{\
 
15744
    func_arith_result=$(( $* ))\
 
15745
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15746
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15747
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15748
test 0 -eq $? || _lt_function_replace_fail=:
 
15749
 
 
15750
 
 
15751
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15752
func_len ()\
 
15753
{\
 
15754
    func_len_result=${#1}\
 
15755
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15756
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15757
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15758
test 0 -eq $? || _lt_function_replace_fail=:
 
15759
 
 
15760
fi
 
15761
 
 
15762
if test x"$lt_shell_append" = xyes; then
 
15763
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15764
func_append ()\
 
15765
{\
 
15766
    eval "${1}+=\\${2}"\
 
15767
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15768
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15769
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15770
test 0 -eq $? || _lt_function_replace_fail=:
 
15771
 
 
15772
 
 
15773
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15774
func_append_quoted ()\
 
15775
{\
 
15776
\    func_quote_for_eval "${2}"\
 
15777
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15778
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15779
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15780
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15781
test 0 -eq $? || _lt_function_replace_fail=:
 
15782
 
 
15783
 
 
15784
  # Save a `func_append' function call where possible by direct use of '+='
 
15785
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15786
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15787
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15788
  test 0 -eq $? || _lt_function_replace_fail=:
 
15789
else
 
15790
  # Save a `func_append' function call even when '+=' is not available
 
15791
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15792
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15793
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15794
  test 0 -eq $? || _lt_function_replace_fail=:
 
15795
fi
 
15796
 
 
15797
if test x"$_lt_function_replace_fail" = x":"; then
 
15798
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15799
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15800
fi
 
15801
 
 
15802
 
 
15803
   mv -f "$cfgfile" "$ofile" ||
 
15804
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15805
  chmod +x "$ofile"
 
15806
 
 
15807
 ;;
 
15808
 
 
15809
  esac
 
15810
done # for ac_tag
 
15811
 
 
15812
 
 
15813
as_fn_exit 0
 
15814
_ACEOF
 
15815
ac_clean_files=$ac_clean_files_save
 
15816
 
 
15817
test $ac_write_fail = 0 ||
 
15818
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15819
 
 
15820
 
 
15821
# configure is writing to config.log, and then calls config.status.
 
15822
# config.status does its own redirection, appending to config.log.
 
15823
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15824
# by configure, so config.status won't be able to write to it; its
 
15825
# output is simply discarded.  So we exec the FD to /dev/null,
 
15826
# effectively closing config.log, so it can be properly (re)opened and
 
15827
# appended to by config.status.  When coming back to configure, we
 
15828
# need to make the FD available again.
 
15829
if test "$no_create" != yes; then
 
15830
  ac_cs_success=:
 
15831
  ac_config_status_args=
 
15832
  test "$silent" = yes &&
 
15833
    ac_config_status_args="$ac_config_status_args --quiet"
 
15834
  exec 5>/dev/null
 
15835
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15836
  exec 5>>config.log
 
15837
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15838
  # would make configure fail if this is the last instruction.
 
15839
  $ac_cs_success || as_fn_exit 1
 
15840
fi
 
15841
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15842
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15843
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15844
fi
 
15845
 
 
15846
 
 
15847