~mmach/netext73/pkgconf

« back to all changes in this revision

Viewing changes to configure

  • Committer: mmach
  • Date: 2024-02-21 19:22:23 UTC
  • Revision ID: netbit73@gmail.com-20240221192223-5l809fiqh21udwrd
1.8.1

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.71 for pkgconf 1.8.1.
 
4
#
 
5
# Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
 
9
# Inc.
 
10
#
 
11
#
 
12
# This configure script is free software; the Free Software Foundation
 
13
# gives unlimited permission to copy, distribute and modify it.
 
14
## -------------------- ##
 
15
## M4sh Initialization. ##
 
16
## -------------------- ##
 
17
 
 
18
# Be more Bourne compatible
 
19
DUALCASE=1; export DUALCASE # for MKS sh
 
20
as_nop=:
 
21
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 
22
then :
 
23
  emulate sh
 
24
  NULLCMD=:
 
25
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
26
  # is contrary to our usage.  Disable this feature.
 
27
  alias -g '${1+"$@"}'='"$@"'
 
28
  setopt NO_GLOB_SUBST
 
29
else $as_nop
 
30
  case `(set -o) 2>/dev/null` in #(
 
31
  *posix*) :
 
32
    set -o posix ;; #(
 
33
  *) :
 
34
     ;;
 
35
esac
 
36
fi
 
37
 
 
38
 
 
39
 
 
40
# Reset variables that may have inherited troublesome values from
 
41
# the environment.
 
42
 
 
43
# IFS needs to be set, to space, tab, and newline, in precisely that order.
 
44
# (If _AS_PATH_WALK were called with IFS unset, it would have the
 
45
# side effect of setting IFS to empty, thus disabling word splitting.)
 
46
# Quoting is to prevent editors from complaining about space-tab.
 
47
as_nl='
 
48
'
 
49
export as_nl
 
50
IFS=" ""        $as_nl"
 
51
 
 
52
PS1='$ '
 
53
PS2='> '
 
54
PS4='+ '
 
55
 
 
56
# Ensure predictable behavior from utilities with locale-dependent output.
 
57
LC_ALL=C
 
58
export LC_ALL
 
59
LANGUAGE=C
 
60
export LANGUAGE
 
61
 
 
62
# We cannot yet rely on "unset" to work, but we need these variables
 
63
# to be unset--not just set to an empty or harmless value--now, to
 
64
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
 
65
# also avoids known problems related to "unset" and subshell syntax
 
66
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
 
67
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
 
68
do eval test \${$as_var+y} \
 
69
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
70
done
 
71
 
 
72
# Ensure that fds 0, 1, and 2 are open.
 
73
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
 
74
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
 
75
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
 
76
 
 
77
# The user is always right.
 
78
if ${PATH_SEPARATOR+false} :; then
 
79
  PATH_SEPARATOR=:
 
80
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
81
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
82
      PATH_SEPARATOR=';'
 
83
  }
 
84
fi
 
85
 
 
86
 
 
87
# Find who we are.  Look in the path if we contain no directory separator.
 
88
as_myself=
 
89
case $0 in #((
 
90
  *[\\/]* ) as_myself=$0 ;;
 
91
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
92
for as_dir in $PATH
 
93
do
 
94
  IFS=$as_save_IFS
 
95
  case $as_dir in #(((
 
96
    '') as_dir=./ ;;
 
97
    */) ;;
 
98
    *) as_dir=$as_dir/ ;;
 
99
  esac
 
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
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
 
 
117
# Use a proper internal environment variable to ensure we don't fall
 
118
  # into an infinite loop, continuously re-executing ourselves.
 
119
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
120
    _as_can_reexec=no; export _as_can_reexec;
 
121
    # We cannot yet assume a decent shell, so we have to provide a
 
122
# neutralization value for shells without unset; and this also
 
123
# works around shells that cannot unset nonexistent variables.
 
124
# Preserve -v and -x to the replacement shell.
 
125
BASH_ENV=/dev/null
 
126
ENV=/dev/null
 
127
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
128
case $- in # ((((
 
129
  *v*x* | *x*v* ) as_opts=-vx ;;
 
130
  *v* ) as_opts=-v ;;
 
131
  *x* ) as_opts=-x ;;
 
132
  * ) as_opts= ;;
 
133
esac
 
134
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
135
# Admittedly, this is quite paranoid, since all the known shells bail
 
136
# out after a failed `exec'.
 
137
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
 
138
exit 255
 
139
  fi
 
140
  # We don't want this to propagate to other subprocesses.
 
141
          { _as_can_reexec=; unset _as_can_reexec;}
 
142
if test "x$CONFIG_SHELL" = x; then
 
143
  as_bourne_compatible="as_nop=:
 
144
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 
145
then :
 
146
  emulate sh
 
147
  NULLCMD=:
 
148
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
149
  # is contrary to our usage.  Disable this feature.
 
150
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
151
  setopt NO_GLOB_SUBST
 
152
else \$as_nop
 
153
  case \`(set -o) 2>/dev/null\` in #(
 
154
  *posix*) :
 
155
    set -o posix ;; #(
 
156
  *) :
 
157
     ;;
 
158
esac
 
159
fi
 
160
"
 
161
  as_required="as_fn_return () { (exit \$1); }
 
162
as_fn_success () { as_fn_return 0; }
 
163
as_fn_failure () { as_fn_return 1; }
 
164
as_fn_ret_success () { return 0; }
 
165
as_fn_ret_failure () { return 1; }
 
166
 
 
167
exitcode=0
 
168
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
169
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
170
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
171
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
172
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
 
173
then :
 
174
 
 
175
else \$as_nop
 
176
  exitcode=1; echo positional parameters were not saved.
 
177
fi
 
178
test x\$exitcode = x0 || exit 1
 
179
blah=\$(echo \$(echo blah))
 
180
test x\"\$blah\" = xblah || exit 1
 
181
test -x / || exit 1"
 
182
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
183
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
184
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
185
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
186
 
 
187
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
188
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
189
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
190
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
191
    PATH=/empty FPATH=/empty; export PATH FPATH
 
192
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
193
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
194
test \$(( 1 + 1 )) = 2 || exit 1"
 
195
  if (eval "$as_required") 2>/dev/null
 
196
then :
 
197
  as_have_required=yes
 
198
else $as_nop
 
199
  as_have_required=no
 
200
fi
 
201
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
 
202
then :
 
203
 
 
204
else $as_nop
 
205
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
206
as_found=false
 
207
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
208
do
 
209
  IFS=$as_save_IFS
 
210
  case $as_dir in #(((
 
211
    '') as_dir=./ ;;
 
212
    */) ;;
 
213
    *) as_dir=$as_dir/ ;;
 
214
  esac
 
215
  as_found=:
 
216
  case $as_dir in #(
 
217
         /*)
 
218
           for as_base in sh bash ksh sh5; do
 
219
             # Try only shells that exist, to save several forks.
 
220
             as_shell=$as_dir$as_base
 
221
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
222
                    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
 
223
then :
 
224
  CONFIG_SHELL=$as_shell as_have_required=yes
 
225
                   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
 
226
then :
 
227
  break 2
 
228
fi
 
229
fi
 
230
           done;;
 
231
       esac
 
232
  as_found=false
 
233
done
 
234
IFS=$as_save_IFS
 
235
if $as_found
 
236
then :
 
237
 
 
238
else $as_nop
 
239
  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
240
              as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
 
241
then :
 
242
  CONFIG_SHELL=$SHELL as_have_required=yes
 
243
fi
 
244
fi
 
245
 
 
246
 
 
247
      if test "x$CONFIG_SHELL" != x
 
248
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
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno
 
271
then :
 
272
  printf "%s\n" "$0: This script requires a shell more modern than all"
 
273
  printf "%s\n" "$0: the shells that I found on your system."
 
274
  if test ${ZSH_VERSION+y} ; then
 
275
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
276
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
 
277
  else
 
278
    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
 
279
$0: https://github.com/pkgconf/pkgconf/issues/new about
 
280
$0: your system, including any error possibly output before
 
281
$0: this message. Then install a modern shell, or manually
 
282
$0: run the script under such a shell if you do have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
# as_fn_unset VAR
 
298
# ---------------
 
299
# Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
 
 
307
# as_fn_set_status STATUS
 
308
# -----------------------
 
309
# Set $? to STATUS, without forking.
 
310
as_fn_set_status ()
 
311
{
 
312
  return $1
 
313
} # as_fn_set_status
 
314
 
 
315
# as_fn_exit STATUS
 
316
# -----------------
 
317
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
318
as_fn_exit ()
 
319
{
 
320
  set +e
 
321
  as_fn_set_status $1
 
322
  exit $1
 
323
} # as_fn_exit
 
324
# as_fn_nop
 
325
# ---------
 
326
# Do nothing but, unlike ":", preserve the value of $?.
 
327
as_fn_nop ()
 
328
{
 
329
  return $?
 
330
}
 
331
as_nop=as_fn_nop
 
332
 
 
333
# as_fn_mkdir_p
 
334
# -------------
 
335
# Create "$as_dir" as a directory, including parents if necessary.
 
336
as_fn_mkdir_p ()
 
337
{
 
338
 
 
339
  case $as_dir in #(
 
340
  -*) as_dir=./$as_dir;;
 
341
  esac
 
342
  test -d "$as_dir" || eval $as_mkdir_p || {
 
343
    as_dirs=
 
344
    while :; do
 
345
      case $as_dir in #(
 
346
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
347
      *) as_qdir=$as_dir;;
 
348
      esac
 
349
      as_dirs="'$as_qdir' $as_dirs"
 
350
      as_dir=`$as_dirname -- "$as_dir" ||
 
351
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
352
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
353
         X"$as_dir" : 'X\(//\)$' \| \
 
354
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
355
printf "%s\n" X"$as_dir" |
 
356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
357
            s//\1/
 
358
            q
 
359
          }
 
360
          /^X\(\/\/\)[^/].*/{
 
361
            s//\1/
 
362
            q
 
363
          }
 
364
          /^X\(\/\/\)$/{
 
365
            s//\1/
 
366
            q
 
367
          }
 
368
          /^X\(\/\).*/{
 
369
            s//\1/
 
370
            q
 
371
          }
 
372
          s/.*/./; q'`
 
373
      test -d "$as_dir" && break
 
374
    done
 
375
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
376
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
377
 
 
378
 
 
379
} # as_fn_mkdir_p
 
380
 
 
381
# as_fn_executable_p FILE
 
382
# -----------------------
 
383
# Test if FILE is an executable regular file.
 
384
as_fn_executable_p ()
 
385
{
 
386
  test -f "$1" && test -x "$1"
 
387
} # as_fn_executable_p
 
388
# as_fn_append VAR VALUE
 
389
# ----------------------
 
390
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
391
# advantage of any shell optimizations that allow amortized linear growth over
 
392
# repeated appends, instead of the typical quadratic growth present in naive
 
393
# implementations.
 
394
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
 
395
then :
 
396
  eval 'as_fn_append ()
 
397
  {
 
398
    eval $1+=\$2
 
399
  }'
 
400
else $as_nop
 
401
  as_fn_append ()
 
402
  {
 
403
    eval $1=\$$1\$2
 
404
  }
 
405
fi # as_fn_append
 
406
 
 
407
# as_fn_arith ARG...
 
408
# ------------------
 
409
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
410
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
411
# must be portable across $(()) and expr.
 
412
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
 
413
then :
 
414
  eval 'as_fn_arith ()
 
415
  {
 
416
    as_val=$(( $* ))
 
417
  }'
 
418
else $as_nop
 
419
  as_fn_arith ()
 
420
  {
 
421
    as_val=`expr "$@" || test $? -eq 1`
 
422
  }
 
423
fi # as_fn_arith
 
424
 
 
425
# as_fn_nop
 
426
# ---------
 
427
# Do nothing but, unlike ":", preserve the value of $?.
 
428
as_fn_nop ()
 
429
{
 
430
  return $?
 
431
}
 
432
as_nop=as_fn_nop
 
433
 
 
434
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
435
# ----------------------------------------
 
436
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
437
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
438
# script with STATUS, using 1 if that was 0.
 
439
as_fn_error ()
 
440
{
 
441
  as_status=$1; test $as_status -eq 0 && as_status=1
 
442
  if test "$4"; then
 
443
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
444
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
445
  fi
 
446
  printf "%s\n" "$as_me: error: $2" >&2
 
447
  as_fn_exit $as_status
 
448
} # as_fn_error
 
449
 
 
450
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
451
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
452
  as_expr=expr
 
453
else
 
454
  as_expr=false
 
455
fi
 
456
 
 
457
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
458
  as_basename=basename
 
459
else
 
460
  as_basename=false
 
461
fi
 
462
 
 
463
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
464
  as_dirname=dirname
 
465
else
 
466
  as_dirname=false
 
467
fi
 
468
 
 
469
as_me=`$as_basename -- "$0" ||
 
470
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
471
         X"$0" : 'X\(//\)$' \| \
 
472
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
473
printf "%s\n" X/"$0" |
 
474
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
475
            s//\1/
 
476
            q
 
477
          }
 
478
          /^X\/\(\/\/\)$/{
 
479
            s//\1/
 
480
            q
 
481
          }
 
482
          /^X\/\(\/\).*/{
 
483
            s//\1/
 
484
            q
 
485
          }
 
486
          s/.*/./; q'`
 
487
 
 
488
# Avoid depending upon Character Ranges.
 
489
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
490
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
491
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
492
as_cr_digits='0123456789'
 
493
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
494
 
 
495
 
 
496
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
497
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
498
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
499
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
500
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
501
  sed -n '
 
502
    p
 
503
    /[$]LINENO/=
 
504
  ' <$as_myself |
 
505
    sed '
 
506
      s/[$]LINENO.*/&-/
 
507
      t lineno
 
508
      b
 
509
      :lineno
 
510
      N
 
511
      :loop
 
512
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
513
      t loop
 
514
      s/-\n.*//
 
515
    ' >$as_me.lineno &&
 
516
  chmod +x "$as_me.lineno" ||
 
517
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
518
 
 
519
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
520
  # already done that, so ensure we don't try to do so again and fall
 
521
  # in an infinite loop.  This has already happened in practice.
 
522
  _as_can_reexec=no; export _as_can_reexec
 
523
  # Don't try to exec as it changes $[0], causing all sort of problems
 
524
  # (the dirname of $[0] is not the place where we might find the
 
525
  # original and so on.  Autoconf is especially sensitive to this).
 
526
  . "./$as_me.lineno"
 
527
  # Exit status is that of the last command.
 
528
  exit
 
529
}
 
530
 
 
531
 
 
532
# Determine whether it's possible to make 'echo' print without a newline.
 
533
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
 
534
# for compatibility with existing Makefiles.
 
535
ECHO_C= ECHO_N= ECHO_T=
 
536
case `echo -n x` in #(((((
 
537
-n*)
 
538
  case `echo 'xy\c'` in
 
539
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
540
  xy)  ECHO_C='\c';;
 
541
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
542
       ECHO_T=' ';;
 
543
  esac;;
 
544
*)
 
545
  ECHO_N='-n';;
 
546
esac
 
547
 
 
548
# For backward compatibility with old third-party macros, we provide
 
549
# the shell variables $as_echo and $as_echo_n.  New code should use
 
550
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
 
551
as_echo='printf %s\n'
 
552
as_echo_n='printf %s'
 
553
 
 
554
 
 
555
rm -f conf$$ conf$$.exe conf$$.file
 
556
if test -d conf$$.dir; then
 
557
  rm -f conf$$.dir/conf$$.file
 
558
else
 
559
  rm -f conf$$.dir
 
560
  mkdir conf$$.dir 2>/dev/null
 
561
fi
 
562
if (echo >conf$$.file) 2>/dev/null; then
 
563
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
564
    as_ln_s='ln -s'
 
565
    # ... but there are two gotchas:
 
566
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
567
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
568
    # In both cases, we have to default to `cp -pR'.
 
569
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
570
      as_ln_s='cp -pR'
 
571
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
572
    as_ln_s=ln
 
573
  else
 
574
    as_ln_s='cp -pR'
 
575
  fi
 
576
else
 
577
  as_ln_s='cp -pR'
 
578
fi
 
579
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
580
rmdir conf$$.dir 2>/dev/null
 
581
 
 
582
if mkdir -p . 2>/dev/null; then
 
583
  as_mkdir_p='mkdir -p "$as_dir"'
 
584
else
 
585
  test -d ./-p && rmdir ./-p
 
586
  as_mkdir_p=false
 
587
fi
 
588
 
 
589
as_test_x='test -x'
 
590
as_executable_p=as_fn_executable_p
 
591
 
 
592
# Sed expression to map a string onto a valid CPP name.
 
593
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
594
 
 
595
# Sed expression to map a string onto a valid variable name.
 
596
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
597
 
 
598
SHELL=${CONFIG_SHELL-/bin/sh}
 
599
 
 
600
 
 
601
test -n "$DJDIR" || exec 7<&0 </dev/null
 
602
exec 6>&1
 
603
 
 
604
# Name of the host.
 
605
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
606
# so uname gets run too.
 
607
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
608
 
 
609
#
 
610
# Initializations.
 
611
#
 
612
ac_default_prefix=/usr/local
 
613
ac_clean_files=
 
614
ac_config_libobj_dir=.
 
615
LIBOBJS=
 
616
cross_compiling=no
 
617
subdirs=
 
618
MFLAGS=
 
619
MAKEFLAGS=
 
620
 
 
621
# Identity of this package.
 
622
PACKAGE_NAME='pkgconf'
 
623
PACKAGE_TARNAME='pkgconf'
 
624
PACKAGE_VERSION='1.8.1'
 
625
PACKAGE_STRING='pkgconf 1.8.1'
 
626
PACKAGE_BUGREPORT='https://github.com/pkgconf/pkgconf/issues/new'
 
627
PACKAGE_URL=''
 
628
 
 
629
ac_unique_file="cli/main.c"
 
630
# Factoring default headers for most tests.
 
631
ac_includes_default="\
 
632
#include <stddef.h>
 
633
#ifdef HAVE_STDIO_H
 
634
# include <stdio.h>
 
635
#endif
 
636
#ifdef HAVE_STDLIB_H
 
637
# include <stdlib.h>
 
638
#endif
 
639
#ifdef HAVE_STRING_H
 
640
# include <string.h>
 
641
#endif
 
642
#ifdef HAVE_INTTYPES_H
 
643
# include <inttypes.h>
 
644
#endif
 
645
#ifdef HAVE_STDINT_H
 
646
# include <stdint.h>
 
647
#endif
 
648
#ifdef HAVE_STRINGS_H
 
649
# include <strings.h>
 
650
#endif
 
651
#ifdef HAVE_SYS_TYPES_H
 
652
# include <sys/types.h>
 
653
#endif
 
654
#ifdef HAVE_SYS_STAT_H
 
655
# include <sys/stat.h>
 
656
#endif
 
657
#ifdef HAVE_UNISTD_H
 
658
# include <unistd.h>
 
659
#endif"
 
660
 
 
661
ac_header_c_list=
 
662
ac_subst_vars='am__EXEEXT_FALSE
 
663
am__EXEEXT_TRUE
 
664
LTLIBOBJS
 
665
LIBOBJS
 
666
CPP
 
667
SYSTEM_INCLUDEDIR
 
668
SYSTEM_LIBDIR
 
669
PKG_DEFAULT_PATH
 
670
PERSONALITY_PATH
 
671
LT_SYS_LIBRARY_PATH
 
672
OTOOL64
 
673
OTOOL
 
674
LIPO
 
675
NMEDIT
 
676
DSYMUTIL
 
677
MANIFEST_TOOL
 
678
RANLIB
 
679
ac_ct_AR
 
680
AR
 
681
DLLTOOL
 
682
OBJDUMP
 
683
FILECMD
 
684
LN_S
 
685
NM
 
686
ac_ct_DUMPBIN
 
687
DUMPBIN
 
688
LD
 
689
FGREP
 
690
EGREP
 
691
GREP
 
692
SED
 
693
host_os
 
694
host_vendor
 
695
host_cpu
 
696
host
 
697
build_os
 
698
build_vendor
 
699
build_cpu
 
700
build
 
701
LIBTOOL
 
702
AM_BACKSLASH
 
703
AM_DEFAULT_VERBOSITY
 
704
AM_DEFAULT_V
 
705
AM_V
 
706
CSCOPE
 
707
ETAGS
 
708
CTAGS
 
709
am__fastdepCC_FALSE
 
710
am__fastdepCC_TRUE
 
711
CCDEPMODE
 
712
am__nodep
 
713
AMDEPBACKSLASH
 
714
AMDEP_FALSE
 
715
AMDEP_TRUE
 
716
am__include
 
717
DEPDIR
 
718
am__untar
 
719
am__tar
 
720
AMTAR
 
721
am__leading_dot
 
722
SET_MAKE
 
723
AWK
 
724
mkdir_p
 
725
MKDIR_P
 
726
INSTALL_STRIP_PROGRAM
 
727
STRIP
 
728
install_sh
 
729
MAKEINFO
 
730
AUTOHEADER
 
731
AUTOMAKE
 
732
AUTOCONF
 
733
ACLOCAL
 
734
VERSION
 
735
PACKAGE
 
736
CYGPATH_W
 
737
am__isrc
 
738
INSTALL_DATA
 
739
INSTALL_SCRIPT
 
740
INSTALL_PROGRAM
 
741
OBJEXT
 
742
EXEEXT
 
743
ac_ct_CC
 
744
CPPFLAGS
 
745
LDFLAGS
 
746
CFLAGS
 
747
CC
 
748
target_alias
 
749
host_alias
 
750
build_alias
 
751
LIBS
 
752
ECHO_T
 
753
ECHO_N
 
754
ECHO_C
 
755
DEFS
 
756
mandir
 
757
localedir
 
758
libdir
 
759
psdir
 
760
pdfdir
 
761
dvidir
 
762
htmldir
 
763
infodir
 
764
docdir
 
765
oldincludedir
 
766
includedir
 
767
runstatedir
 
768
localstatedir
 
769
sharedstatedir
 
770
sysconfdir
 
771
datadir
 
772
datarootdir
 
773
libexecdir
 
774
sbindir
 
775
bindir
 
776
program_transform_name
 
777
prefix
 
778
exec_prefix
 
779
PACKAGE_URL
 
780
PACKAGE_BUGREPORT
 
781
PACKAGE_STRING
 
782
PACKAGE_VERSION
 
783
PACKAGE_TARNAME
 
784
PACKAGE_NAME
 
785
PATH_SEPARATOR
 
786
SHELL
 
787
am__quote'
 
788
ac_subst_files=''
 
789
ac_user_opts='
 
790
enable_option_checking
 
791
enable_dependency_tracking
 
792
enable_silent_rules
 
793
enable_shared
 
794
enable_static
 
795
with_pic
 
796
enable_fast_install
 
797
with_aix_soname
 
798
with_gnu_ld
 
799
with_sysroot
 
800
enable_libtool_lock
 
801
enable_largefile
 
802
with_personality_dir
 
803
with_pkg_config_dir
 
804
with_system_libdir
 
805
with_system_includedir
 
806
'
 
807
      ac_precious_vars='build_alias
 
808
host_alias
 
809
target_alias
 
810
CC
 
811
CFLAGS
 
812
LDFLAGS
 
813
LIBS
 
814
CPPFLAGS
 
815
LT_SYS_LIBRARY_PATH
 
816
CPP'
 
817
 
 
818
 
 
819
# Initialize some variables set by options.
 
820
ac_init_help=
 
821
ac_init_version=false
 
822
ac_unrecognized_opts=
 
823
ac_unrecognized_sep=
 
824
# The variables have the same names as the options, with
 
825
# dashes changed to underlines.
 
826
cache_file=/dev/null
 
827
exec_prefix=NONE
 
828
no_create=
 
829
no_recursion=
 
830
prefix=NONE
 
831
program_prefix=NONE
 
832
program_suffix=NONE
 
833
program_transform_name=s,x,x,
 
834
silent=
 
835
site=
 
836
srcdir=
 
837
verbose=
 
838
x_includes=NONE
 
839
x_libraries=NONE
 
840
 
 
841
# Installation directory options.
 
842
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
843
# and all the variables that are supposed to be based on exec_prefix
 
844
# by default will actually change.
 
845
# Use braces instead of parens because sh, perl, etc. also accept them.
 
846
# (The list follows the same order as the GNU Coding Standards.)
 
847
bindir='${exec_prefix}/bin'
 
848
sbindir='${exec_prefix}/sbin'
 
849
libexecdir='${exec_prefix}/libexec'
 
850
datarootdir='${prefix}/share'
 
851
datadir='${datarootdir}'
 
852
sysconfdir='${prefix}/etc'
 
853
sharedstatedir='${prefix}/com'
 
854
localstatedir='${prefix}/var'
 
855
runstatedir='${localstatedir}/run'
 
856
includedir='${prefix}/include'
 
857
oldincludedir='/usr/include'
 
858
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
859
infodir='${datarootdir}/info'
 
860
htmldir='${docdir}'
 
861
dvidir='${docdir}'
 
862
pdfdir='${docdir}'
 
863
psdir='${docdir}'
 
864
libdir='${exec_prefix}/lib'
 
865
localedir='${datarootdir}/locale'
 
866
mandir='${datarootdir}/man'
 
867
 
 
868
ac_prev=
 
869
ac_dashdash=
 
870
for ac_option
 
871
do
 
872
  # If the previous option needs an argument, assign it.
 
873
  if test -n "$ac_prev"; then
 
874
    eval $ac_prev=\$ac_option
 
875
    ac_prev=
 
876
    continue
 
877
  fi
 
878
 
 
879
  case $ac_option in
 
880
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
881
  *=)   ac_optarg= ;;
 
882
  *)    ac_optarg=yes ;;
 
883
  esac
 
884
 
 
885
  case $ac_dashdash$ac_option in
 
886
  --)
 
887
    ac_dashdash=yes ;;
 
888
 
 
889
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
890
    ac_prev=bindir ;;
 
891
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
892
    bindir=$ac_optarg ;;
 
893
 
 
894
  -build | --build | --buil | --bui | --bu)
 
895
    ac_prev=build_alias ;;
 
896
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
897
    build_alias=$ac_optarg ;;
 
898
 
 
899
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
900
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
901
    ac_prev=cache_file ;;
 
902
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
903
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
904
    cache_file=$ac_optarg ;;
 
905
 
 
906
  --config-cache | -C)
 
907
    cache_file=config.cache ;;
 
908
 
 
909
  -datadir | --datadir | --datadi | --datad)
 
910
    ac_prev=datadir ;;
 
911
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
912
    datadir=$ac_optarg ;;
 
913
 
 
914
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
915
  | --dataroo | --dataro | --datar)
 
916
    ac_prev=datarootdir ;;
 
917
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
918
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
919
    datarootdir=$ac_optarg ;;
 
920
 
 
921
  -disable-* | --disable-*)
 
922
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
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=`printf "%s\n" "$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--disable-$ac_useropt_orig"
 
933
         ac_unrecognized_sep=', ';;
 
934
    esac
 
935
    eval enable_$ac_useropt=no ;;
 
936
 
 
937
  -docdir | --docdir | --docdi | --doc | --do)
 
938
    ac_prev=docdir ;;
 
939
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
940
    docdir=$ac_optarg ;;
 
941
 
 
942
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
943
    ac_prev=dvidir ;;
 
944
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
945
    dvidir=$ac_optarg ;;
 
946
 
 
947
  -enable-* | --enable-*)
 
948
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
949
    # Reject names that are not valid shell variable names.
 
950
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
951
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
 
952
    ac_useropt_orig=$ac_useropt
 
953
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
 
954
    case $ac_user_opts in
 
955
      *"
 
956
"enable_$ac_useropt"
 
957
"*) ;;
 
958
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
959
         ac_unrecognized_sep=', ';;
 
960
    esac
 
961
    eval enable_$ac_useropt=\$ac_optarg ;;
 
962
 
 
963
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
964
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
965
  | --exec | --exe | --ex)
 
966
    ac_prev=exec_prefix ;;
 
967
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
968
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
969
  | --exec=* | --exe=* | --ex=*)
 
970
    exec_prefix=$ac_optarg ;;
 
971
 
 
972
  -gas | --gas | --ga | --g)
 
973
    # Obsolete; use --with-gas.
 
974
    with_gas=yes ;;
 
975
 
 
976
  -help | --help | --hel | --he | -h)
 
977
    ac_init_help=long ;;
 
978
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
979
    ac_init_help=recursive ;;
 
980
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
981
    ac_init_help=short ;;
 
982
 
 
983
  -host | --host | --hos | --ho)
 
984
    ac_prev=host_alias ;;
 
985
  -host=* | --host=* | --hos=* | --ho=*)
 
986
    host_alias=$ac_optarg ;;
 
987
 
 
988
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
989
    ac_prev=htmldir ;;
 
990
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
991
  | --ht=*)
 
992
    htmldir=$ac_optarg ;;
 
993
 
 
994
  -includedir | --includedir | --includedi | --included | --include \
 
995
  | --includ | --inclu | --incl | --inc)
 
996
    ac_prev=includedir ;;
 
997
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
998
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
999
    includedir=$ac_optarg ;;
 
1000
 
 
1001
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1002
    ac_prev=infodir ;;
 
1003
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1004
    infodir=$ac_optarg ;;
 
1005
 
 
1006
  -libdir | --libdir | --libdi | --libd)
 
1007
    ac_prev=libdir ;;
 
1008
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1009
    libdir=$ac_optarg ;;
 
1010
 
 
1011
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1012
  | --libexe | --libex | --libe)
 
1013
    ac_prev=libexecdir ;;
 
1014
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1015
  | --libexe=* | --libex=* | --libe=*)
 
1016
    libexecdir=$ac_optarg ;;
 
1017
 
 
1018
  -localedir | --localedir | --localedi | --localed | --locale)
 
1019
    ac_prev=localedir ;;
 
1020
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1021
    localedir=$ac_optarg ;;
 
1022
 
 
1023
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1024
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1025
    ac_prev=localstatedir ;;
 
1026
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1027
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1028
    localstatedir=$ac_optarg ;;
 
1029
 
 
1030
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1031
    ac_prev=mandir ;;
 
1032
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1033
    mandir=$ac_optarg ;;
 
1034
 
 
1035
  -nfp | --nfp | --nf)
 
1036
    # Obsolete; use --without-fp.
 
1037
    with_fp=no ;;
 
1038
 
 
1039
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1040
  | --no-cr | --no-c | -n)
 
1041
    no_create=yes ;;
 
1042
 
 
1043
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1044
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1045
    no_recursion=yes ;;
 
1046
 
 
1047
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1048
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1049
  | --oldin | --oldi | --old | --ol | --o)
 
1050
    ac_prev=oldincludedir ;;
 
1051
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1052
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1053
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1054
    oldincludedir=$ac_optarg ;;
 
1055
 
 
1056
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1057
    ac_prev=prefix ;;
 
1058
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1059
    prefix=$ac_optarg ;;
 
1060
 
 
1061
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1062
  | --program-pre | --program-pr | --program-p)
 
1063
    ac_prev=program_prefix ;;
 
1064
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1065
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1066
    program_prefix=$ac_optarg ;;
 
1067
 
 
1068
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1069
  | --program-suf | --program-su | --program-s)
 
1070
    ac_prev=program_suffix ;;
 
1071
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1072
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1073
    program_suffix=$ac_optarg ;;
 
1074
 
 
1075
  -program-transform-name | --program-transform-name \
 
1076
  | --program-transform-nam | --program-transform-na \
 
1077
  | --program-transform-n | --program-transform- \
 
1078
  | --program-transform | --program-transfor \
 
1079
  | --program-transfo | --program-transf \
 
1080
  | --program-trans | --program-tran \
 
1081
  | --progr-tra | --program-tr | --program-t)
 
1082
    ac_prev=program_transform_name ;;
 
1083
  -program-transform-name=* | --program-transform-name=* \
 
1084
  | --program-transform-nam=* | --program-transform-na=* \
 
1085
  | --program-transform-n=* | --program-transform-=* \
 
1086
  | --program-transform=* | --program-transfor=* \
 
1087
  | --program-transfo=* | --program-transf=* \
 
1088
  | --program-trans=* | --program-tran=* \
 
1089
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1090
    program_transform_name=$ac_optarg ;;
 
1091
 
 
1092
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1093
    ac_prev=pdfdir ;;
 
1094
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1095
    pdfdir=$ac_optarg ;;
 
1096
 
 
1097
  -psdir | --psdir | --psdi | --psd | --ps)
 
1098
    ac_prev=psdir ;;
 
1099
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1100
    psdir=$ac_optarg ;;
 
1101
 
 
1102
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1103
  | -silent | --silent | --silen | --sile | --sil)
 
1104
    silent=yes ;;
 
1105
 
 
1106
  -runstatedir | --runstatedir | --runstatedi | --runstated \
 
1107
  | --runstate | --runstat | --runsta | --runst | --runs \
 
1108
  | --run | --ru | --r)
 
1109
    ac_prev=runstatedir ;;
 
1110
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 
1111
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 
1112
  | --run=* | --ru=* | --r=*)
 
1113
    runstatedir=$ac_optarg ;;
 
1114
 
 
1115
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1116
    ac_prev=sbindir ;;
 
1117
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1118
  | --sbi=* | --sb=*)
 
1119
    sbindir=$ac_optarg ;;
 
1120
 
 
1121
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1122
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1123
  | --sharedst | --shareds | --shared | --share | --shar \
 
1124
  | --sha | --sh)
 
1125
    ac_prev=sharedstatedir ;;
 
1126
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1127
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1128
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1129
  | --sha=* | --sh=*)
 
1130
    sharedstatedir=$ac_optarg ;;
 
1131
 
 
1132
  -site | --site | --sit)
 
1133
    ac_prev=site ;;
 
1134
  -site=* | --site=* | --sit=*)
 
1135
    site=$ac_optarg ;;
 
1136
 
 
1137
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1138
    ac_prev=srcdir ;;
 
1139
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1140
    srcdir=$ac_optarg ;;
 
1141
 
 
1142
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1143
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1144
    ac_prev=sysconfdir ;;
 
1145
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1146
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1147
    sysconfdir=$ac_optarg ;;
 
1148
 
 
1149
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1150
    ac_prev=target_alias ;;
 
1151
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1152
    target_alias=$ac_optarg ;;
 
1153
 
 
1154
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1155
    verbose=yes ;;
 
1156
 
 
1157
  -version | --version | --versio | --versi | --vers | -V)
 
1158
    ac_init_version=: ;;
 
1159
 
 
1160
  -with-* | --with-*)
 
1161
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1162
    # Reject names that are not valid shell variable names.
 
1163
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1164
      as_fn_error $? "invalid package name: \`$ac_useropt'"
 
1165
    ac_useropt_orig=$ac_useropt
 
1166
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1167
    case $ac_user_opts in
 
1168
      *"
 
1169
"with_$ac_useropt"
 
1170
"*) ;;
 
1171
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1172
         ac_unrecognized_sep=', ';;
 
1173
    esac
 
1174
    eval with_$ac_useropt=\$ac_optarg ;;
 
1175
 
 
1176
  -without-* | --without-*)
 
1177
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1178
    # Reject names that are not valid shell variable names.
 
1179
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1180
      as_fn_error $? "invalid package name: \`$ac_useropt'"
 
1181
    ac_useropt_orig=$ac_useropt
 
1182
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1183
    case $ac_user_opts in
 
1184
      *"
 
1185
"with_$ac_useropt"
 
1186
"*) ;;
 
1187
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1188
         ac_unrecognized_sep=', ';;
 
1189
    esac
 
1190
    eval with_$ac_useropt=no ;;
 
1191
 
 
1192
  --x)
 
1193
    # Obsolete; use --with-x.
 
1194
    with_x=yes ;;
 
1195
 
 
1196
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1197
  | --x-incl | --x-inc | --x-in | --x-i)
 
1198
    ac_prev=x_includes ;;
 
1199
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1200
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1201
    x_includes=$ac_optarg ;;
 
1202
 
 
1203
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1204
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1205
    ac_prev=x_libraries ;;
 
1206
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1207
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1208
    x_libraries=$ac_optarg ;;
 
1209
 
 
1210
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1211
Try \`$0 --help' for more information"
 
1212
    ;;
 
1213
 
 
1214
  *=*)
 
1215
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1216
    # Reject names that are not valid shell variable names.
 
1217
    case $ac_envvar in #(
 
1218
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1219
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1220
    esac
 
1221
    eval $ac_envvar=\$ac_optarg
 
1222
    export $ac_envvar ;;
 
1223
 
 
1224
  *)
 
1225
    # FIXME: should be removed in autoconf 3.0.
 
1226
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1227
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1228
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1229
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1230
    ;;
 
1231
 
 
1232
  esac
 
1233
done
 
1234
 
 
1235
if test -n "$ac_prev"; then
 
1236
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1237
  as_fn_error $? "missing argument to $ac_option"
 
1238
fi
 
1239
 
 
1240
if test -n "$ac_unrecognized_opts"; then
 
1241
  case $enable_option_checking in
 
1242
    no) ;;
 
1243
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1244
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1245
  esac
 
1246
fi
 
1247
 
 
1248
# Check all directory arguments for consistency.
 
1249
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1250
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1251
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1252
                libdir localedir mandir runstatedir
 
1253
do
 
1254
  eval ac_val=\$$ac_var
 
1255
  # Remove trailing slashes.
 
1256
  case $ac_val in
 
1257
    */ )
 
1258
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1259
      eval $ac_var=\$ac_val;;
 
1260
  esac
 
1261
  # Be sure to have absolute directory names.
 
1262
  case $ac_val in
 
1263
    [\\/$]* | ?:[\\/]* )  continue;;
 
1264
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1265
  esac
 
1266
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1267
done
 
1268
 
 
1269
# There might be people who depend on the old broken behavior: `$host'
 
1270
# used to hold the argument of --host etc.
 
1271
# FIXME: To remove some day.
 
1272
build=$build_alias
 
1273
host=$host_alias
 
1274
target=$target_alias
 
1275
 
 
1276
# FIXME: To remove some day.
 
1277
if test "x$host_alias" != x; then
 
1278
  if test "x$build_alias" = x; then
 
1279
    cross_compiling=maybe
 
1280
  elif test "x$build_alias" != "x$host_alias"; then
 
1281
    cross_compiling=yes
 
1282
  fi
 
1283
fi
 
1284
 
 
1285
ac_tool_prefix=
 
1286
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1287
 
 
1288
test "$silent" = yes && exec 6>/dev/null
 
1289
 
 
1290
 
 
1291
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1292
ac_ls_di=`ls -di .` &&
 
1293
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1294
  as_fn_error $? "working directory cannot be determined"
 
1295
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1296
  as_fn_error $? "pwd does not report name of working directory"
 
1297
 
 
1298
 
 
1299
# Find the source files, if location was not specified.
 
1300
if test -z "$srcdir"; then
 
1301
  ac_srcdir_defaulted=yes
 
1302
  # Try the directory containing this script, then the parent directory.
 
1303
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1304
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1305
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1306
         X"$as_myself" : 'X\(//\)$' \| \
 
1307
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1308
printf "%s\n" X"$as_myself" |
 
1309
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1310
            s//\1/
 
1311
            q
 
1312
          }
 
1313
          /^X\(\/\/\)[^/].*/{
 
1314
            s//\1/
 
1315
            q
 
1316
          }
 
1317
          /^X\(\/\/\)$/{
 
1318
            s//\1/
 
1319
            q
 
1320
          }
 
1321
          /^X\(\/\).*/{
 
1322
            s//\1/
 
1323
            q
 
1324
          }
 
1325
          s/.*/./; q'`
 
1326
  srcdir=$ac_confdir
 
1327
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1328
    srcdir=..
 
1329
  fi
 
1330
else
 
1331
  ac_srcdir_defaulted=no
 
1332
fi
 
1333
if test ! -r "$srcdir/$ac_unique_file"; then
 
1334
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1335
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1336
fi
 
1337
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1338
ac_abs_confdir=`(
 
1339
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1340
        pwd)`
 
1341
# When building in place, set srcdir=.
 
1342
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1343
  srcdir=.
 
1344
fi
 
1345
# Remove unnecessary trailing slashes from srcdir.
 
1346
# Double slashes in file names in object file debugging info
 
1347
# mess up M-x gdb in Emacs.
 
1348
case $srcdir in
 
1349
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1350
esac
 
1351
for ac_var in $ac_precious_vars; do
 
1352
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1353
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1354
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1355
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1356
done
 
1357
 
 
1358
#
 
1359
# Report the --help message.
 
1360
#
 
1361
if test "$ac_init_help" = "long"; then
 
1362
  # Omit some internal or obsolete options to make the list less imposing.
 
1363
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1364
  cat <<_ACEOF
 
1365
\`configure' configures pkgconf 1.8.1 to adapt to many kinds of systems.
 
1366
 
 
1367
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1368
 
 
1369
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1370
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1371
 
 
1372
Defaults for the options are specified in brackets.
 
1373
 
 
1374
Configuration:
 
1375
  -h, --help              display this help and exit
 
1376
      --help=short        display options specific to this package
 
1377
      --help=recursive    display the short help of all the included packages
 
1378
  -V, --version           display version information and exit
 
1379
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1380
      --cache-file=FILE   cache test results in FILE [disabled]
 
1381
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1382
  -n, --no-create         do not create output files
 
1383
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1384
 
 
1385
Installation directories:
 
1386
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1387
                          [$ac_default_prefix]
 
1388
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1389
                          [PREFIX]
 
1390
 
 
1391
By default, \`make install' will install all the files in
 
1392
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1393
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1394
for instance \`--prefix=\$HOME'.
 
1395
 
 
1396
For better control, use the options below.
 
1397
 
 
1398
Fine tuning of the installation directories:
 
1399
  --bindir=DIR            user executables [EPREFIX/bin]
 
1400
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1401
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1402
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1403
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1404
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1405
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
 
1406
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1407
  --includedir=DIR        C header files [PREFIX/include]
 
1408
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1409
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1410
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1411
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1412
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1413
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1414
  --docdir=DIR            documentation root [DATAROOTDIR/doc/pkgconf]
 
1415
  --htmldir=DIR           html documentation [DOCDIR]
 
1416
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1417
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1418
  --psdir=DIR             ps documentation [DOCDIR]
 
1419
_ACEOF
 
1420
 
 
1421
  cat <<\_ACEOF
 
1422
 
 
1423
Program names:
 
1424
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1425
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1426
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1427
 
 
1428
System types:
 
1429
  --build=BUILD     configure for building on BUILD [guessed]
 
1430
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1431
_ACEOF
 
1432
fi
 
1433
 
 
1434
if test -n "$ac_init_help"; then
 
1435
  case $ac_init_help in
 
1436
     short | recursive ) echo "Configuration of pkgconf 1.8.1:";;
 
1437
   esac
 
1438
  cat <<\_ACEOF
 
1439
 
 
1440
Optional Features:
 
1441
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1442
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1443
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1444
  --enable-dependency-tracking
 
1445
                          do not reject slow dependency extractors
 
1446
  --disable-dependency-tracking
 
1447
                          speeds up one-time build
 
1448
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1449
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1450
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1451
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1452
  --enable-fast-install[=PKGS]
 
1453
                          optimize for fast installation [default=yes]
 
1454
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1455
  --disable-largefile     omit support for large files
 
1456
 
 
1457
Optional Packages:
 
1458
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1459
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1460
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1461
                          both]
 
1462
  --with-aix-soname=aix|svr4|both
 
1463
                          shared library versioning (aka "SONAME") variant to
 
1464
                          provide on AIX, [default=aix].
 
1465
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1466
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
 
1467
                          compiler's sysroot if not specified).
 
1468
  --with-personality-dir  specify the place where cross-compile personality
 
1469
                          files will be found
 
1470
  --with-pkg-config-dir   specify the place where pc files will be found
 
1471
  --with-system-libdir    specify the system library directory (default
 
1472
                          LIBDIR)
 
1473
  --with-system-includedir
 
1474
                          specify the system include directory (default
 
1475
                          INCLUDEDIR)
 
1476
 
 
1477
Some influential environment variables:
 
1478
  CC          C compiler command
 
1479
  CFLAGS      C compiler flags
 
1480
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1481
              nonstandard directory <lib dir>
 
1482
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1483
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1484
              you have headers in a nonstandard directory <include dir>
 
1485
  LT_SYS_LIBRARY_PATH
 
1486
              User-defined run-time library search path.
 
1487
  CPP         C preprocessor
 
1488
 
 
1489
Use these variables to override the choices made by `configure' or to help
 
1490
it to find libraries and programs with nonstandard names/locations.
 
1491
 
 
1492
Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
 
1493
_ACEOF
 
1494
ac_status=$?
 
1495
fi
 
1496
 
 
1497
if test "$ac_init_help" = "recursive"; then
 
1498
  # If there are subdirs, report their specific --help.
 
1499
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1500
    test -d "$ac_dir" ||
 
1501
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1502
      continue
 
1503
    ac_builddir=.
 
1504
 
 
1505
case "$ac_dir" in
 
1506
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1507
*)
 
1508
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
 
1509
  # A ".." for each directory in $ac_dir_suffix.
 
1510
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1511
  case $ac_top_builddir_sub in
 
1512
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1513
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1514
  esac ;;
 
1515
esac
 
1516
ac_abs_top_builddir=$ac_pwd
 
1517
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1518
# for backward compatibility:
 
1519
ac_top_builddir=$ac_top_build_prefix
 
1520
 
 
1521
case $srcdir in
 
1522
  .)  # We are building in place.
 
1523
    ac_srcdir=.
 
1524
    ac_top_srcdir=$ac_top_builddir_sub
 
1525
    ac_abs_top_srcdir=$ac_pwd ;;
 
1526
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1527
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1528
    ac_top_srcdir=$srcdir
 
1529
    ac_abs_top_srcdir=$srcdir ;;
 
1530
  *) # Relative name.
 
1531
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1532
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1533
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1534
esac
 
1535
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1536
 
 
1537
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1538
    # Check for configure.gnu first; this name is used for a wrapper for
 
1539
    # Metaconfig's "Configure" on case-insensitive file systems.
 
1540
    if test -f "$ac_srcdir/configure.gnu"; then
 
1541
      echo &&
 
1542
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1543
    elif test -f "$ac_srcdir/configure"; then
 
1544
      echo &&
 
1545
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1546
    else
 
1547
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1548
    fi || ac_status=$?
 
1549
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1550
  done
 
1551
fi
 
1552
 
 
1553
test -n "$ac_init_help" && exit $ac_status
 
1554
if $ac_init_version; then
 
1555
  cat <<\_ACEOF
 
1556
pkgconf configure 1.8.1
 
1557
generated by GNU Autoconf 2.71
 
1558
 
 
1559
Copyright (C) 2021 Free Software Foundation, Inc.
 
1560
This configure script is free software; the Free Software Foundation
 
1561
gives unlimited permission to copy, distribute and modify it.
 
1562
_ACEOF
 
1563
  exit
 
1564
fi
 
1565
 
 
1566
## ------------------------ ##
 
1567
## Autoconf initialization. ##
 
1568
## ------------------------ ##
 
1569
 
 
1570
# ac_fn_c_try_compile LINENO
 
1571
# --------------------------
 
1572
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1573
ac_fn_c_try_compile ()
 
1574
{
 
1575
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1576
  rm -f conftest.$ac_objext conftest.beam
 
1577
  if { { ac_try="$ac_compile"
 
1578
case "(($ac_try" in
 
1579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1580
  *) ac_try_echo=$ac_try;;
 
1581
esac
 
1582
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1583
printf "%s\n" "$ac_try_echo"; } >&5
 
1584
  (eval "$ac_compile") 2>conftest.err
 
1585
  ac_status=$?
 
1586
  if test -s conftest.err; then
 
1587
    grep -v '^ *+' conftest.err >conftest.er1
 
1588
    cat conftest.er1 >&5
 
1589
    mv -f conftest.er1 conftest.err
 
1590
  fi
 
1591
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1592
  test $ac_status = 0; } && {
 
1593
         test -z "$ac_c_werror_flag" ||
 
1594
         test ! -s conftest.err
 
1595
       } && test -s conftest.$ac_objext
 
1596
then :
 
1597
  ac_retval=0
 
1598
else $as_nop
 
1599
  printf "%s\n" "$as_me: failed program was:" >&5
 
1600
sed 's/^/| /' conftest.$ac_ext >&5
 
1601
 
 
1602
        ac_retval=1
 
1603
fi
 
1604
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1605
  as_fn_set_status $ac_retval
 
1606
 
 
1607
} # ac_fn_c_try_compile
 
1608
 
 
1609
# ac_fn_c_try_link LINENO
 
1610
# -----------------------
 
1611
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1612
ac_fn_c_try_link ()
 
1613
{
 
1614
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1615
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
 
1616
  if { { ac_try="$ac_link"
 
1617
case "(($ac_try" in
 
1618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1619
  *) ac_try_echo=$ac_try;;
 
1620
esac
 
1621
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1622
printf "%s\n" "$ac_try_echo"; } >&5
 
1623
  (eval "$ac_link") 2>conftest.err
 
1624
  ac_status=$?
 
1625
  if test -s conftest.err; then
 
1626
    grep -v '^ *+' conftest.err >conftest.er1
 
1627
    cat conftest.er1 >&5
 
1628
    mv -f conftest.er1 conftest.err
 
1629
  fi
 
1630
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1631
  test $ac_status = 0; } && {
 
1632
         test -z "$ac_c_werror_flag" ||
 
1633
         test ! -s conftest.err
 
1634
       } && test -s conftest$ac_exeext && {
 
1635
         test "$cross_compiling" = yes ||
 
1636
         test -x conftest$ac_exeext
 
1637
       }
 
1638
then :
 
1639
  ac_retval=0
 
1640
else $as_nop
 
1641
  printf "%s\n" "$as_me: failed program was:" >&5
 
1642
sed 's/^/| /' conftest.$ac_ext >&5
 
1643
 
 
1644
        ac_retval=1
 
1645
fi
 
1646
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1647
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1648
  # interfere with the next link command; also delete a directory that is
 
1649
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1650
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1651
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1652
  as_fn_set_status $ac_retval
 
1653
 
 
1654
} # ac_fn_c_try_link
 
1655
 
 
1656
# ac_fn_c_check_func LINENO FUNC VAR
 
1657
# ----------------------------------
 
1658
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1659
ac_fn_c_check_func ()
 
1660
{
 
1661
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1662
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1663
printf %s "checking for $2... " >&6; }
 
1664
if eval test \${$3+y}
 
1665
then :
 
1666
  printf %s "(cached) " >&6
 
1667
else $as_nop
 
1668
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1669
/* end confdefs.h.  */
 
1670
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1671
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1672
#define $2 innocuous_$2
 
1673
 
 
1674
/* System header to define __stub macros and hopefully few prototypes,
 
1675
   which can conflict with char $2 (); below.  */
 
1676
 
 
1677
#include <limits.h>
 
1678
#undef $2
 
1679
 
 
1680
/* Override any GCC internal prototype to avoid an error.
 
1681
   Use char because int might match the return type of a GCC
 
1682
   builtin and then its argument prototype would still apply.  */
 
1683
#ifdef __cplusplus
 
1684
extern "C"
 
1685
#endif
 
1686
char $2 ();
 
1687
/* The GNU C library defines this for functions which it implements
 
1688
    to always fail with ENOSYS.  Some functions are actually named
 
1689
    something starting with __ and the normal name is an alias.  */
 
1690
#if defined __stub_$2 || defined __stub___$2
 
1691
choke me
 
1692
#endif
 
1693
 
 
1694
int
 
1695
main (void)
 
1696
{
 
1697
return $2 ();
 
1698
  ;
 
1699
  return 0;
 
1700
}
 
1701
_ACEOF
 
1702
if ac_fn_c_try_link "$LINENO"
 
1703
then :
 
1704
  eval "$3=yes"
 
1705
else $as_nop
 
1706
  eval "$3=no"
 
1707
fi
 
1708
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
1709
    conftest$ac_exeext conftest.$ac_ext
 
1710
fi
 
1711
eval ac_res=\$$3
 
1712
               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1713
printf "%s\n" "$ac_res" >&6; }
 
1714
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1715
 
 
1716
} # ac_fn_c_check_func
 
1717
 
 
1718
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1719
# -------------------------------------------------------
 
1720
# Tests whether HEADER exists and can be compiled using the include files in
 
1721
# INCLUDES, setting the cache variable VAR accordingly.
 
1722
ac_fn_c_check_header_compile ()
 
1723
{
 
1724
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1725
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1726
printf %s "checking for $2... " >&6; }
 
1727
if eval test \${$3+y}
 
1728
then :
 
1729
  printf %s "(cached) " >&6
 
1730
else $as_nop
 
1731
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1732
/* end confdefs.h.  */
 
1733
$4
 
1734
#include <$2>
 
1735
_ACEOF
 
1736
if ac_fn_c_try_compile "$LINENO"
 
1737
then :
 
1738
  eval "$3=yes"
 
1739
else $as_nop
 
1740
  eval "$3=no"
 
1741
fi
 
1742
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
1743
fi
 
1744
eval ac_res=\$$3
 
1745
               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1746
printf "%s\n" "$ac_res" >&6; }
 
1747
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1748
 
 
1749
} # ac_fn_c_check_header_compile
 
1750
 
 
1751
# ac_fn_c_try_cpp LINENO
 
1752
# ----------------------
 
1753
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1754
ac_fn_c_try_cpp ()
 
1755
{
 
1756
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1757
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1758
case "(($ac_try" in
 
1759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1760
  *) ac_try_echo=$ac_try;;
 
1761
esac
 
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1763
printf "%s\n" "$ac_try_echo"; } >&5
 
1764
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1765
  ac_status=$?
 
1766
  if test -s conftest.err; then
 
1767
    grep -v '^ *+' conftest.err >conftest.er1
 
1768
    cat conftest.er1 >&5
 
1769
    mv -f conftest.er1 conftest.err
 
1770
  fi
 
1771
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1772
  test $ac_status = 0; } > conftest.i && {
 
1773
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1774
         test ! -s conftest.err
 
1775
       }
 
1776
then :
 
1777
  ac_retval=0
 
1778
else $as_nop
 
1779
  printf "%s\n" "$as_me: failed program was:" >&5
 
1780
sed 's/^/| /' conftest.$ac_ext >&5
 
1781
 
 
1782
    ac_retval=1
 
1783
fi
 
1784
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1785
  as_fn_set_status $ac_retval
 
1786
 
 
1787
} # ac_fn_c_try_cpp
 
1788
ac_configure_args_raw=
 
1789
for ac_arg
 
1790
do
 
1791
  case $ac_arg in
 
1792
  *\'*)
 
1793
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1794
  esac
 
1795
  as_fn_append ac_configure_args_raw " '$ac_arg'"
 
1796
done
 
1797
 
 
1798
case $ac_configure_args_raw in
 
1799
  *$as_nl*)
 
1800
    ac_safe_unquote= ;;
 
1801
  *)
 
1802
    ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
 
1803
    ac_unsafe_a="$ac_unsafe_z#~"
 
1804
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
 
1805
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
 
1806
esac
 
1807
 
 
1808
cat >config.log <<_ACEOF
 
1809
This file contains any messages produced by compilers while
 
1810
running configure, to aid debugging if configure makes a mistake.
 
1811
 
 
1812
It was created by pkgconf $as_me 1.8.1, which was
 
1813
generated by GNU Autoconf 2.71.  Invocation command line was
 
1814
 
 
1815
  $ $0$ac_configure_args_raw
 
1816
 
 
1817
_ACEOF
 
1818
exec 5>>config.log
 
1819
{
 
1820
cat <<_ASUNAME
 
1821
## --------- ##
 
1822
## Platform. ##
 
1823
## --------- ##
 
1824
 
 
1825
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1826
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1827
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1828
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1829
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1830
 
 
1831
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1832
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1833
 
 
1834
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1835
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1836
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1837
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1838
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1839
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1840
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1841
 
 
1842
_ASUNAME
 
1843
 
 
1844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1845
for as_dir in $PATH
 
1846
do
 
1847
  IFS=$as_save_IFS
 
1848
  case $as_dir in #(((
 
1849
    '') as_dir=./ ;;
 
1850
    */) ;;
 
1851
    *) as_dir=$as_dir/ ;;
 
1852
  esac
 
1853
    printf "%s\n" "PATH: $as_dir"
 
1854
  done
 
1855
IFS=$as_save_IFS
 
1856
 
 
1857
} >&5
 
1858
 
 
1859
cat >&5 <<_ACEOF
 
1860
 
 
1861
 
 
1862
## ----------- ##
 
1863
## Core tests. ##
 
1864
## ----------- ##
 
1865
 
 
1866
_ACEOF
 
1867
 
 
1868
 
 
1869
# Keep a trace of the command line.
 
1870
# Strip out --no-create and --no-recursion so they do not pile up.
 
1871
# Strip out --silent because we don't want to record it for future runs.
 
1872
# Also quote any args containing shell meta-characters.
 
1873
# Make two passes to allow for proper duplicate-argument suppression.
 
1874
ac_configure_args=
 
1875
ac_configure_args0=
 
1876
ac_configure_args1=
 
1877
ac_must_keep_next=false
 
1878
for ac_pass in 1 2
 
1879
do
 
1880
  for ac_arg
 
1881
  do
 
1882
    case $ac_arg in
 
1883
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1884
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1885
    | -silent | --silent | --silen | --sile | --sil)
 
1886
      continue ;;
 
1887
    *\'*)
 
1888
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1889
    esac
 
1890
    case $ac_pass in
 
1891
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1892
    2)
 
1893
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1894
      if test $ac_must_keep_next = true; then
 
1895
        ac_must_keep_next=false # Got value, back to normal.
 
1896
      else
 
1897
        case $ac_arg in
 
1898
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1899
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1900
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1901
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1902
            case "$ac_configure_args0 " in
 
1903
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1904
            esac
 
1905
            ;;
 
1906
          -* ) ac_must_keep_next=true ;;
 
1907
        esac
 
1908
      fi
 
1909
      as_fn_append ac_configure_args " '$ac_arg'"
 
1910
      ;;
 
1911
    esac
 
1912
  done
 
1913
done
 
1914
{ ac_configure_args0=; unset ac_configure_args0;}
 
1915
{ ac_configure_args1=; unset ac_configure_args1;}
 
1916
 
 
1917
# When interrupted or exit'd, cleanup temporary files, and complete
 
1918
# config.log.  We remove comments because anyway the quotes in there
 
1919
# would cause problems or look ugly.
 
1920
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1921
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1922
trap 'exit_status=$?
 
1923
  # Sanitize IFS.
 
1924
  IFS=" ""      $as_nl"
 
1925
  # Save into config.log some information that might help in debugging.
 
1926
  {
 
1927
    echo
 
1928
 
 
1929
    printf "%s\n" "## ---------------- ##
 
1930
## Cache variables. ##
 
1931
## ---------------- ##"
 
1932
    echo
 
1933
    # The following way of writing the cache mishandles newlines in values,
 
1934
(
 
1935
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1936
    eval ac_val=\$$ac_var
 
1937
    case $ac_val in #(
 
1938
    *${as_nl}*)
 
1939
      case $ac_var in #(
 
1940
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1941
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1942
      esac
 
1943
      case $ac_var in #(
 
1944
      _ | IFS | as_nl) ;; #(
 
1945
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1946
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1947
      esac ;;
 
1948
    esac
 
1949
  done
 
1950
  (set) 2>&1 |
 
1951
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1952
    *${as_nl}ac_space=\ *)
 
1953
      sed -n \
 
1954
        "s/'\''/'\''\\\\'\'''\''/g;
 
1955
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1956
      ;; #(
 
1957
    *)
 
1958
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1959
      ;;
 
1960
    esac |
 
1961
    sort
 
1962
)
 
1963
    echo
 
1964
 
 
1965
    printf "%s\n" "## ----------------- ##
 
1966
## Output variables. ##
 
1967
## ----------------- ##"
 
1968
    echo
 
1969
    for ac_var in $ac_subst_vars
 
1970
    do
 
1971
      eval ac_val=\$$ac_var
 
1972
      case $ac_val in
 
1973
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1974
      esac
 
1975
      printf "%s\n" "$ac_var='\''$ac_val'\''"
 
1976
    done | sort
 
1977
    echo
 
1978
 
 
1979
    if test -n "$ac_subst_files"; then
 
1980
      printf "%s\n" "## ------------------- ##
 
1981
## File substitutions. ##
 
1982
## ------------------- ##"
 
1983
      echo
 
1984
      for ac_var in $ac_subst_files
 
1985
      do
 
1986
        eval ac_val=\$$ac_var
 
1987
        case $ac_val in
 
1988
        *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1989
        esac
 
1990
        printf "%s\n" "$ac_var='\''$ac_val'\''"
 
1991
      done | sort
 
1992
      echo
 
1993
    fi
 
1994
 
 
1995
    if test -s confdefs.h; then
 
1996
      printf "%s\n" "## ----------- ##
 
1997
## confdefs.h. ##
 
1998
## ----------- ##"
 
1999
      echo
 
2000
      cat confdefs.h
 
2001
      echo
 
2002
    fi
 
2003
    test "$ac_signal" != 0 &&
 
2004
      printf "%s\n" "$as_me: caught signal $ac_signal"
 
2005
    printf "%s\n" "$as_me: exit $exit_status"
 
2006
  } >&5
 
2007
  rm -f core *.core core.conftest.* &&
 
2008
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2009
    exit $exit_status
 
2010
' 0
 
2011
for ac_signal in 1 2 13 15; do
 
2012
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2013
done
 
2014
ac_signal=0
 
2015
 
 
2016
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2017
rm -f -r conftest* confdefs.h
 
2018
 
 
2019
printf "%s\n" "/* confdefs.h */" > confdefs.h
 
2020
 
 
2021
# Predefined preprocessor variables.
 
2022
 
 
2023
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
 
2024
 
 
2025
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
 
2026
 
 
2027
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
 
2028
 
 
2029
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
 
2030
 
 
2031
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
 
2032
 
 
2033
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
 
2034
 
 
2035
 
 
2036
# Let the site file select an alternate cache file if it wants to.
 
2037
# Prefer an explicitly selected file to automatically selected ones.
 
2038
if test -n "$CONFIG_SITE"; then
 
2039
  ac_site_files="$CONFIG_SITE"
 
2040
elif test "x$prefix" != xNONE; then
 
2041
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
 
2042
else
 
2043
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
2044
fi
 
2045
 
 
2046
for ac_site_file in $ac_site_files
 
2047
do
 
2048
  case $ac_site_file in #(
 
2049
  */*) :
 
2050
     ;; #(
 
2051
  *) :
 
2052
    ac_site_file=./$ac_site_file ;;
 
2053
esac
 
2054
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
 
2055
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2056
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
 
2057
    sed 's/^/| /' "$ac_site_file" >&5
 
2058
    . "$ac_site_file" \
 
2059
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2060
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
2061
as_fn_error $? "failed to load site script $ac_site_file
 
2062
See \`config.log' for more details" "$LINENO" 5; }
 
2063
  fi
 
2064
done
 
2065
 
 
2066
if test -r "$cache_file"; then
 
2067
  # Some versions of bash will fail to source /dev/null (special files
 
2068
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2069
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2070
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2071
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
 
2072
    case $cache_file in
 
2073
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2074
      *)                      . "./$cache_file";;
 
2075
    esac
 
2076
  fi
 
2077
else
 
2078
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2079
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
 
2080
  >$cache_file
 
2081
fi
 
2082
 
 
2083
# Test code for whether the C compiler supports C89 (global declarations)
 
2084
ac_c_conftest_c89_globals='
 
2085
/* Does the compiler advertise C89 conformance?
 
2086
   Do not test the value of __STDC__, because some compilers set it to 0
 
2087
   while being otherwise adequately conformant. */
 
2088
#if !defined __STDC__
 
2089
# error "Compiler does not advertise C89 conformance"
 
2090
#endif
 
2091
 
 
2092
#include <stddef.h>
 
2093
#include <stdarg.h>
 
2094
struct stat;
 
2095
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
 
2096
struct buf { int x; };
 
2097
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
 
2098
static char *e (p, i)
 
2099
     char **p;
 
2100
     int i;
 
2101
{
 
2102
  return p[i];
 
2103
}
 
2104
static char *f (char * (*g) (char **, int), char **p, ...)
 
2105
{
 
2106
  char *s;
 
2107
  va_list v;
 
2108
  va_start (v,p);
 
2109
  s = g (p, va_arg (v,int));
 
2110
  va_end (v);
 
2111
  return s;
 
2112
}
 
2113
 
 
2114
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2115
   function prototypes and stuff, but not \xHH hex character constants.
 
2116
   These do not provoke an error unfortunately, instead are silently treated
 
2117
   as an "x".  The following induces an error, until -std is added to get
 
2118
   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
 
2119
   array size at least.  It is necessary to write \x00 == 0 to get something
 
2120
   that is true only with -std.  */
 
2121
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
 
2122
 
 
2123
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2124
   inside strings and character constants.  */
 
2125
#define FOO(x) '\''x'\''
 
2126
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
 
2127
 
 
2128
int test (int i, double x);
 
2129
struct s1 {int (*f) (int a);};
 
2130
struct s2 {int (*f) (double a);};
 
2131
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
 
2132
               int, int);'
 
2133
 
 
2134
# Test code for whether the C compiler supports C89 (body of main).
 
2135
ac_c_conftest_c89_main='
 
2136
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
 
2137
'
 
2138
 
 
2139
# Test code for whether the C compiler supports C99 (global declarations)
 
2140
ac_c_conftest_c99_globals='
 
2141
// Does the compiler advertise C99 conformance?
 
2142
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
 
2143
# error "Compiler does not advertise C99 conformance"
 
2144
#endif
 
2145
 
 
2146
#include <stdbool.h>
 
2147
extern int puts (const char *);
 
2148
extern int printf (const char *, ...);
 
2149
extern int dprintf (int, const char *, ...);
 
2150
extern void *malloc (size_t);
 
2151
 
 
2152
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
2153
// dprintf is used instead of fprintf to avoid needing to declare
 
2154
// FILE and stderr.
 
2155
#define debug(...) dprintf (2, __VA_ARGS__)
 
2156
#define showlist(...) puts (#__VA_ARGS__)
 
2157
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
2158
static void
 
2159
test_varargs_macros (void)
 
2160
{
 
2161
  int x = 1234;
 
2162
  int y = 5678;
 
2163
  debug ("Flag");
 
2164
  debug ("X = %d\n", x);
 
2165
  showlist (The first, second, and third items.);
 
2166
  report (x>y, "x is %d but y is %d", x, y);
 
2167
}
 
2168
 
 
2169
// Check long long types.
 
2170
#define BIG64 18446744073709551615ull
 
2171
#define BIG32 4294967295ul
 
2172
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
2173
#if !BIG_OK
 
2174
  #error "your preprocessor is broken"
 
2175
#endif
 
2176
#if BIG_OK
 
2177
#else
 
2178
  #error "your preprocessor is broken"
 
2179
#endif
 
2180
static long long int bignum = -9223372036854775807LL;
 
2181
static unsigned long long int ubignum = BIG64;
 
2182
 
 
2183
struct incomplete_array
 
2184
{
 
2185
  int datasize;
 
2186
  double data[];
 
2187
};
 
2188
 
 
2189
struct named_init {
 
2190
  int number;
 
2191
  const wchar_t *name;
 
2192
  double average;
 
2193
};
 
2194
 
 
2195
typedef const char *ccp;
 
2196
 
 
2197
static inline int
 
2198
test_restrict (ccp restrict text)
 
2199
{
 
2200
  // See if C++-style comments work.
 
2201
  // Iterate through items via the restricted pointer.
 
2202
  // Also check for declarations in for loops.
 
2203
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
 
2204
    continue;
 
2205
  return 0;
 
2206
}
 
2207
 
 
2208
// Check varargs and va_copy.
 
2209
static bool
 
2210
test_varargs (const char *format, ...)
 
2211
{
 
2212
  va_list args;
 
2213
  va_start (args, format);
 
2214
  va_list args_copy;
 
2215
  va_copy (args_copy, args);
 
2216
 
 
2217
  const char *str = "";
 
2218
  int number = 0;
 
2219
  float fnumber = 0;
 
2220
 
 
2221
  while (*format)
 
2222
    {
 
2223
      switch (*format++)
 
2224
        {
 
2225
        case '\''s'\'': // string
 
2226
          str = va_arg (args_copy, const char *);
 
2227
          break;
 
2228
        case '\''d'\'': // int
 
2229
          number = va_arg (args_copy, int);
 
2230
          break;
 
2231
        case '\''f'\'': // float
 
2232
          fnumber = va_arg (args_copy, double);
 
2233
          break;
 
2234
        default:
 
2235
          break;
 
2236
        }
 
2237
    }
 
2238
  va_end (args_copy);
 
2239
  va_end (args);
 
2240
 
 
2241
  return *str && number && fnumber;
 
2242
}
 
2243
'
 
2244
 
 
2245
# Test code for whether the C compiler supports C99 (body of main).
 
2246
ac_c_conftest_c99_main='
 
2247
  // Check bool.
 
2248
  _Bool success = false;
 
2249
  success |= (argc != 0);
 
2250
 
 
2251
  // Check restrict.
 
2252
  if (test_restrict ("String literal") == 0)
 
2253
    success = true;
 
2254
  char *restrict newvar = "Another string";
 
2255
 
 
2256
  // Check varargs.
 
2257
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
 
2258
  test_varargs_macros ();
 
2259
 
 
2260
  // Check flexible array members.
 
2261
  struct incomplete_array *ia =
 
2262
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
2263
  ia->datasize = 10;
 
2264
  for (int i = 0; i < ia->datasize; ++i)
 
2265
    ia->data[i] = i * 1.234;
 
2266
 
 
2267
  // Check named initializers.
 
2268
  struct named_init ni = {
 
2269
    .number = 34,
 
2270
    .name = L"Test wide string",
 
2271
    .average = 543.34343,
 
2272
  };
 
2273
 
 
2274
  ni.number = 58;
 
2275
 
 
2276
  int dynamic_array[ni.number];
 
2277
  dynamic_array[0] = argv[0][0];
 
2278
  dynamic_array[ni.number - 1] = 543;
 
2279
 
 
2280
  // work around unused variable warnings
 
2281
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
 
2282
         || dynamic_array[ni.number - 1] != 543);
 
2283
'
 
2284
 
 
2285
# Test code for whether the C compiler supports C11 (global declarations)
 
2286
ac_c_conftest_c11_globals='
 
2287
// Does the compiler advertise C11 conformance?
 
2288
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
 
2289
# error "Compiler does not advertise C11 conformance"
 
2290
#endif
 
2291
 
 
2292
// Check _Alignas.
 
2293
char _Alignas (double) aligned_as_double;
 
2294
char _Alignas (0) no_special_alignment;
 
2295
extern char aligned_as_int;
 
2296
char _Alignas (0) _Alignas (int) aligned_as_int;
 
2297
 
 
2298
// Check _Alignof.
 
2299
enum
 
2300
{
 
2301
  int_alignment = _Alignof (int),
 
2302
  int_array_alignment = _Alignof (int[100]),
 
2303
  char_alignment = _Alignof (char)
 
2304
};
 
2305
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
 
2306
 
 
2307
// Check _Noreturn.
 
2308
int _Noreturn does_not_return (void) { for (;;) continue; }
 
2309
 
 
2310
// Check _Static_assert.
 
2311
struct test_static_assert
 
2312
{
 
2313
  int x;
 
2314
  _Static_assert (sizeof (int) <= sizeof (long int),
 
2315
                  "_Static_assert does not work in struct");
 
2316
  long int y;
 
2317
};
 
2318
 
 
2319
// Check UTF-8 literals.
 
2320
#define u8 syntax error!
 
2321
char const utf8_literal[] = u8"happens to be ASCII" "another string";
 
2322
 
 
2323
// Check duplicate typedefs.
 
2324
typedef long *long_ptr;
 
2325
typedef long int *long_ptr;
 
2326
typedef long_ptr long_ptr;
 
2327
 
 
2328
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
 
2329
struct anonymous
 
2330
{
 
2331
  union {
 
2332
    struct { int i; int j; };
 
2333
    struct { int k; long int l; } w;
 
2334
  };
 
2335
  int m;
 
2336
} v1;
 
2337
'
 
2338
 
 
2339
# Test code for whether the C compiler supports C11 (body of main).
 
2340
ac_c_conftest_c11_main='
 
2341
  _Static_assert ((offsetof (struct anonymous, i)
 
2342
                   == offsetof (struct anonymous, w.k)),
 
2343
                  "Anonymous union alignment botch");
 
2344
  v1.i = 2;
 
2345
  v1.w.k = 5;
 
2346
  ok |= v1.i != 5;
 
2347
'
 
2348
 
 
2349
# Test code for whether the C compiler supports C11 (complete).
 
2350
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
 
2351
${ac_c_conftest_c99_globals}
 
2352
${ac_c_conftest_c11_globals}
 
2353
 
 
2354
int
 
2355
main (int argc, char **argv)
 
2356
{
 
2357
  int ok = 0;
 
2358
  ${ac_c_conftest_c89_main}
 
2359
  ${ac_c_conftest_c99_main}
 
2360
  ${ac_c_conftest_c11_main}
 
2361
  return ok;
 
2362
}
 
2363
"
 
2364
 
 
2365
# Test code for whether the C compiler supports C99 (complete).
 
2366
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
 
2367
${ac_c_conftest_c99_globals}
 
2368
 
 
2369
int
 
2370
main (int argc, char **argv)
 
2371
{
 
2372
  int ok = 0;
 
2373
  ${ac_c_conftest_c89_main}
 
2374
  ${ac_c_conftest_c99_main}
 
2375
  return ok;
 
2376
}
 
2377
"
 
2378
 
 
2379
# Test code for whether the C compiler supports C89 (complete).
 
2380
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
 
2381
 
 
2382
int
 
2383
main (int argc, char **argv)
 
2384
{
 
2385
  int ok = 0;
 
2386
  ${ac_c_conftest_c89_main}
 
2387
  return ok;
 
2388
}
 
2389
"
 
2390
 
 
2391
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
 
2392
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
 
2393
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
 
2394
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
 
2395
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
 
2396
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
 
2397
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
 
2398
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
 
2399
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
 
2400
 
 
2401
# Auxiliary files required by this configure script.
 
2402
ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
 
2403
 
 
2404
# Locations in which to look for auxiliary files.
 
2405
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
 
2406
 
 
2407
# Search for a directory containing all of the required auxiliary files,
 
2408
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
 
2409
# If we don't find one directory that contains all the files we need,
 
2410
# we report the set of missing files from the *first* directory in
 
2411
# $ac_aux_dir_candidates and give up.
 
2412
ac_missing_aux_files=""
 
2413
ac_first_candidate=:
 
2414
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
 
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2416
as_found=false
 
2417
for as_dir in $ac_aux_dir_candidates
 
2418
do
 
2419
  IFS=$as_save_IFS
 
2420
  case $as_dir in #(((
 
2421
    '') as_dir=./ ;;
 
2422
    */) ;;
 
2423
    *) as_dir=$as_dir/ ;;
 
2424
  esac
 
2425
  as_found=:
 
2426
 
 
2427
  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
 
2428
  ac_aux_dir_found=yes
 
2429
  ac_install_sh=
 
2430
  for ac_aux in $ac_aux_files
 
2431
  do
 
2432
    # As a special case, if "install-sh" is required, that requirement
 
2433
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
 
2434
    # and $ac_install_sh is set appropriately for whichever one is found.
 
2435
    if test x"$ac_aux" = x"install-sh"
 
2436
    then
 
2437
      if test -f "${as_dir}install-sh"; then
 
2438
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
 
2439
        ac_install_sh="${as_dir}install-sh -c"
 
2440
      elif test -f "${as_dir}install.sh"; then
 
2441
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
 
2442
        ac_install_sh="${as_dir}install.sh -c"
 
2443
      elif test -f "${as_dir}shtool"; then
 
2444
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
 
2445
        ac_install_sh="${as_dir}shtool install -c"
 
2446
      else
 
2447
        ac_aux_dir_found=no
 
2448
        if $ac_first_candidate; then
 
2449
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
 
2450
        else
 
2451
          break
 
2452
        fi
 
2453
      fi
 
2454
    else
 
2455
      if test -f "${as_dir}${ac_aux}"; then
 
2456
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
 
2457
      else
 
2458
        ac_aux_dir_found=no
 
2459
        if $ac_first_candidate; then
 
2460
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
 
2461
        else
 
2462
          break
 
2463
        fi
 
2464
      fi
 
2465
    fi
 
2466
  done
 
2467
  if test "$ac_aux_dir_found" = yes; then
 
2468
    ac_aux_dir="$as_dir"
 
2469
    break
 
2470
  fi
 
2471
  ac_first_candidate=false
 
2472
 
 
2473
  as_found=false
 
2474
done
 
2475
IFS=$as_save_IFS
 
2476
if $as_found
 
2477
then :
 
2478
 
 
2479
else $as_nop
 
2480
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
 
2481
fi
 
2482
 
 
2483
 
 
2484
# These three variables are undocumented and unsupported,
 
2485
# and are intended to be withdrawn in a future Autoconf release.
 
2486
# They can cause serious problems if a builder's source tree is in a directory
 
2487
# whose full name contains unusual characters.
 
2488
if test -f "${ac_aux_dir}config.guess"; then
 
2489
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
 
2490
fi
 
2491
if test -f "${ac_aux_dir}config.sub"; then
 
2492
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
 
2493
fi
 
2494
if test -f "$ac_aux_dir/configure"; then
 
2495
  ac_configure="$SHELL ${ac_aux_dir}configure"
 
2496
fi
 
2497
 
 
2498
# Check that the precious variables saved in the cache have kept the same
 
2499
# value.
 
2500
ac_cache_corrupted=false
 
2501
for ac_var in $ac_precious_vars; do
 
2502
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2503
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2504
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2505
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2506
  case $ac_old_set,$ac_new_set in
 
2507
    set,)
 
2508
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2509
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2510
      ac_cache_corrupted=: ;;
 
2511
    ,set)
 
2512
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2513
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2514
      ac_cache_corrupted=: ;;
 
2515
    ,);;
 
2516
    *)
 
2517
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2518
        # differences in whitespace do not lead to failure.
 
2519
        ac_old_val_w=`echo x $ac_old_val`
 
2520
        ac_new_val_w=`echo x $ac_new_val`
 
2521
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2522
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2523
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2524
          ac_cache_corrupted=:
 
2525
        else
 
2526
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2527
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2528
          eval $ac_var=\$ac_old_val
 
2529
        fi
 
2530
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2531
printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2532
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2533
printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2534
      fi;;
 
2535
  esac
 
2536
  # Pass precious variables to config.status.
 
2537
  if test "$ac_new_set" = set; then
 
2538
    case $ac_new_val in
 
2539
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2540
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2541
    esac
 
2542
    case " $ac_configure_args " in
 
2543
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2544
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2545
    esac
 
2546
  fi
 
2547
done
 
2548
if $ac_cache_corrupted; then
 
2549
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2550
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
2551
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2552
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2553
  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
 
2554
            and start over" "$LINENO" 5
 
2555
fi
 
2556
## -------------------- ##
 
2557
## Main body of script. ##
 
2558
## -------------------- ##
 
2559
 
 
2560
ac_ext=c
 
2561
ac_cpp='$CPP $CPPFLAGS'
 
2562
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2563
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2564
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2565
 
 
2566
 
 
2567
 
 
2568
 
 
2569
 
 
2570
 
 
2571
 
 
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
 
 
2577
 
 
2578
 
 
2579
 
 
2580
# Expand $ac_aux_dir to an absolute path.
 
2581
am_aux_dir=`cd "$ac_aux_dir" && pwd`
 
2582
 
 
2583
ac_ext=c
 
2584
ac_cpp='$CPP $CPPFLAGS'
 
2585
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2586
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2587
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2588
if test -n "$ac_tool_prefix"; then
 
2589
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2590
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2591
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2592
printf %s "checking for $ac_word... " >&6; }
 
2593
if test ${ac_cv_prog_CC+y}
 
2594
then :
 
2595
  printf %s "(cached) " >&6
 
2596
else $as_nop
 
2597
  if test -n "$CC"; then
 
2598
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2599
else
 
2600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2601
for as_dir in $PATH
 
2602
do
 
2603
  IFS=$as_save_IFS
 
2604
  case $as_dir in #(((
 
2605
    '') as_dir=./ ;;
 
2606
    */) ;;
 
2607
    *) as_dir=$as_dir/ ;;
 
2608
  esac
 
2609
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2610
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2611
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2612
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2613
    break 2
 
2614
  fi
 
2615
done
 
2616
  done
 
2617
IFS=$as_save_IFS
 
2618
 
 
2619
fi
 
2620
fi
 
2621
CC=$ac_cv_prog_CC
 
2622
if test -n "$CC"; then
 
2623
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2624
printf "%s\n" "$CC" >&6; }
 
2625
else
 
2626
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2627
printf "%s\n" "no" >&6; }
 
2628
fi
 
2629
 
 
2630
 
 
2631
fi
 
2632
if test -z "$ac_cv_prog_CC"; then
 
2633
  ac_ct_CC=$CC
 
2634
  # Extract the first word of "gcc", so it can be a program name with args.
 
2635
set dummy gcc; ac_word=$2
 
2636
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2637
printf %s "checking for $ac_word... " >&6; }
 
2638
if test ${ac_cv_prog_ac_ct_CC+y}
 
2639
then :
 
2640
  printf %s "(cached) " >&6
 
2641
else $as_nop
 
2642
  if test -n "$ac_ct_CC"; then
 
2643
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2644
else
 
2645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2646
for as_dir in $PATH
 
2647
do
 
2648
  IFS=$as_save_IFS
 
2649
  case $as_dir in #(((
 
2650
    '') as_dir=./ ;;
 
2651
    */) ;;
 
2652
    *) as_dir=$as_dir/ ;;
 
2653
  esac
 
2654
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2655
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2656
    ac_cv_prog_ac_ct_CC="gcc"
 
2657
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2658
    break 2
 
2659
  fi
 
2660
done
 
2661
  done
 
2662
IFS=$as_save_IFS
 
2663
 
 
2664
fi
 
2665
fi
 
2666
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2667
if test -n "$ac_ct_CC"; then
 
2668
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2669
printf "%s\n" "$ac_ct_CC" >&6; }
 
2670
else
 
2671
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2672
printf "%s\n" "no" >&6; }
 
2673
fi
 
2674
 
 
2675
  if test "x$ac_ct_CC" = x; then
 
2676
    CC=""
 
2677
  else
 
2678
    case $cross_compiling:$ac_tool_warned in
 
2679
yes:)
 
2680
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2681
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2682
ac_tool_warned=yes ;;
 
2683
esac
 
2684
    CC=$ac_ct_CC
 
2685
  fi
 
2686
else
 
2687
  CC="$ac_cv_prog_CC"
 
2688
fi
 
2689
 
 
2690
if test -z "$CC"; then
 
2691
          if test -n "$ac_tool_prefix"; then
 
2692
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2693
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2694
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2695
printf %s "checking for $ac_word... " >&6; }
 
2696
if test ${ac_cv_prog_CC+y}
 
2697
then :
 
2698
  printf %s "(cached) " >&6
 
2699
else $as_nop
 
2700
  if test -n "$CC"; then
 
2701
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2702
else
 
2703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2704
for as_dir in $PATH
 
2705
do
 
2706
  IFS=$as_save_IFS
 
2707
  case $as_dir in #(((
 
2708
    '') as_dir=./ ;;
 
2709
    */) ;;
 
2710
    *) as_dir=$as_dir/ ;;
 
2711
  esac
 
2712
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2713
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2714
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2715
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2716
    break 2
 
2717
  fi
 
2718
done
 
2719
  done
 
2720
IFS=$as_save_IFS
 
2721
 
 
2722
fi
 
2723
fi
 
2724
CC=$ac_cv_prog_CC
 
2725
if test -n "$CC"; then
 
2726
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2727
printf "%s\n" "$CC" >&6; }
 
2728
else
 
2729
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2730
printf "%s\n" "no" >&6; }
 
2731
fi
 
2732
 
 
2733
 
 
2734
  fi
 
2735
fi
 
2736
if test -z "$CC"; then
 
2737
  # Extract the first word of "cc", so it can be a program name with args.
 
2738
set dummy cc; ac_word=$2
 
2739
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2740
printf %s "checking for $ac_word... " >&6; }
 
2741
if test ${ac_cv_prog_CC+y}
 
2742
then :
 
2743
  printf %s "(cached) " >&6
 
2744
else $as_nop
 
2745
  if test -n "$CC"; then
 
2746
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2747
else
 
2748
  ac_prog_rejected=no
 
2749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2750
for as_dir in $PATH
 
2751
do
 
2752
  IFS=$as_save_IFS
 
2753
  case $as_dir in #(((
 
2754
    '') as_dir=./ ;;
 
2755
    */) ;;
 
2756
    *) as_dir=$as_dir/ ;;
 
2757
  esac
 
2758
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2759
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2760
    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2761
       ac_prog_rejected=yes
 
2762
       continue
 
2763
     fi
 
2764
    ac_cv_prog_CC="cc"
 
2765
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2766
    break 2
 
2767
  fi
 
2768
done
 
2769
  done
 
2770
IFS=$as_save_IFS
 
2771
 
 
2772
if test $ac_prog_rejected = yes; then
 
2773
  # We found a bogon in the path, so make sure we never use it.
 
2774
  set dummy $ac_cv_prog_CC
 
2775
  shift
 
2776
  if test $# != 0; then
 
2777
    # We chose a different compiler from the bogus one.
 
2778
    # However, it has the same basename, so the bogon will be chosen
 
2779
    # first if we set CC to just the basename; use the full file name.
 
2780
    shift
 
2781
    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
 
2782
  fi
 
2783
fi
 
2784
fi
 
2785
fi
 
2786
CC=$ac_cv_prog_CC
 
2787
if test -n "$CC"; then
 
2788
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2789
printf "%s\n" "$CC" >&6; }
 
2790
else
 
2791
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2792
printf "%s\n" "no" >&6; }
 
2793
fi
 
2794
 
 
2795
 
 
2796
fi
 
2797
if test -z "$CC"; then
 
2798
  if test -n "$ac_tool_prefix"; then
 
2799
  for ac_prog in cl.exe
 
2800
  do
 
2801
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2802
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2803
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2804
printf %s "checking for $ac_word... " >&6; }
 
2805
if test ${ac_cv_prog_CC+y}
 
2806
then :
 
2807
  printf %s "(cached) " >&6
 
2808
else $as_nop
 
2809
  if test -n "$CC"; then
 
2810
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2811
else
 
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2813
for as_dir in $PATH
 
2814
do
 
2815
  IFS=$as_save_IFS
 
2816
  case $as_dir in #(((
 
2817
    '') as_dir=./ ;;
 
2818
    */) ;;
 
2819
    *) as_dir=$as_dir/ ;;
 
2820
  esac
 
2821
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2822
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2823
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2824
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2825
    break 2
 
2826
  fi
 
2827
done
 
2828
  done
 
2829
IFS=$as_save_IFS
 
2830
 
 
2831
fi
 
2832
fi
 
2833
CC=$ac_cv_prog_CC
 
2834
if test -n "$CC"; then
 
2835
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2836
printf "%s\n" "$CC" >&6; }
 
2837
else
 
2838
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2839
printf "%s\n" "no" >&6; }
 
2840
fi
 
2841
 
 
2842
 
 
2843
    test -n "$CC" && break
 
2844
  done
 
2845
fi
 
2846
if test -z "$CC"; then
 
2847
  ac_ct_CC=$CC
 
2848
  for ac_prog in cl.exe
 
2849
do
 
2850
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2851
set dummy $ac_prog; ac_word=$2
 
2852
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2853
printf %s "checking for $ac_word... " >&6; }
 
2854
if test ${ac_cv_prog_ac_ct_CC+y}
 
2855
then :
 
2856
  printf %s "(cached) " >&6
 
2857
else $as_nop
 
2858
  if test -n "$ac_ct_CC"; then
 
2859
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2860
else
 
2861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2862
for as_dir in $PATH
 
2863
do
 
2864
  IFS=$as_save_IFS
 
2865
  case $as_dir in #(((
 
2866
    '') as_dir=./ ;;
 
2867
    */) ;;
 
2868
    *) as_dir=$as_dir/ ;;
 
2869
  esac
 
2870
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2871
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2872
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2873
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2874
    break 2
 
2875
  fi
 
2876
done
 
2877
  done
 
2878
IFS=$as_save_IFS
 
2879
 
 
2880
fi
 
2881
fi
 
2882
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2883
if test -n "$ac_ct_CC"; then
 
2884
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2885
printf "%s\n" "$ac_ct_CC" >&6; }
 
2886
else
 
2887
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2888
printf "%s\n" "no" >&6; }
 
2889
fi
 
2890
 
 
2891
 
 
2892
  test -n "$ac_ct_CC" && break
 
2893
done
 
2894
 
 
2895
  if test "x$ac_ct_CC" = x; then
 
2896
    CC=""
 
2897
  else
 
2898
    case $cross_compiling:$ac_tool_warned in
 
2899
yes:)
 
2900
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2901
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2902
ac_tool_warned=yes ;;
 
2903
esac
 
2904
    CC=$ac_ct_CC
 
2905
  fi
 
2906
fi
 
2907
 
 
2908
fi
 
2909
if test -z "$CC"; then
 
2910
  if test -n "$ac_tool_prefix"; then
 
2911
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
 
2912
set dummy ${ac_tool_prefix}clang; ac_word=$2
 
2913
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2914
printf %s "checking for $ac_word... " >&6; }
 
2915
if test ${ac_cv_prog_CC+y}
 
2916
then :
 
2917
  printf %s "(cached) " >&6
 
2918
else $as_nop
 
2919
  if test -n "$CC"; then
 
2920
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2921
else
 
2922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2923
for as_dir in $PATH
 
2924
do
 
2925
  IFS=$as_save_IFS
 
2926
  case $as_dir in #(((
 
2927
    '') as_dir=./ ;;
 
2928
    */) ;;
 
2929
    *) as_dir=$as_dir/ ;;
 
2930
  esac
 
2931
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2932
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2933
    ac_cv_prog_CC="${ac_tool_prefix}clang"
 
2934
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2935
    break 2
 
2936
  fi
 
2937
done
 
2938
  done
 
2939
IFS=$as_save_IFS
 
2940
 
 
2941
fi
 
2942
fi
 
2943
CC=$ac_cv_prog_CC
 
2944
if test -n "$CC"; then
 
2945
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2946
printf "%s\n" "$CC" >&6; }
 
2947
else
 
2948
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2949
printf "%s\n" "no" >&6; }
 
2950
fi
 
2951
 
 
2952
 
 
2953
fi
 
2954
if test -z "$ac_cv_prog_CC"; then
 
2955
  ac_ct_CC=$CC
 
2956
  # Extract the first word of "clang", so it can be a program name with args.
 
2957
set dummy clang; ac_word=$2
 
2958
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2959
printf %s "checking for $ac_word... " >&6; }
 
2960
if test ${ac_cv_prog_ac_ct_CC+y}
 
2961
then :
 
2962
  printf %s "(cached) " >&6
 
2963
else $as_nop
 
2964
  if test -n "$ac_ct_CC"; then
 
2965
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2966
else
 
2967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2968
for as_dir in $PATH
 
2969
do
 
2970
  IFS=$as_save_IFS
 
2971
  case $as_dir in #(((
 
2972
    '') as_dir=./ ;;
 
2973
    */) ;;
 
2974
    *) as_dir=$as_dir/ ;;
 
2975
  esac
 
2976
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2977
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
2978
    ac_cv_prog_ac_ct_CC="clang"
 
2979
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
2980
    break 2
 
2981
  fi
 
2982
done
 
2983
  done
 
2984
IFS=$as_save_IFS
 
2985
 
 
2986
fi
 
2987
fi
 
2988
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2989
if test -n "$ac_ct_CC"; then
 
2990
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2991
printf "%s\n" "$ac_ct_CC" >&6; }
 
2992
else
 
2993
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2994
printf "%s\n" "no" >&6; }
 
2995
fi
 
2996
 
 
2997
  if test "x$ac_ct_CC" = x; then
 
2998
    CC=""
 
2999
  else
 
3000
    case $cross_compiling:$ac_tool_warned in
 
3001
yes:)
 
3002
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3003
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3004
ac_tool_warned=yes ;;
 
3005
esac
 
3006
    CC=$ac_ct_CC
 
3007
  fi
 
3008
else
 
3009
  CC="$ac_cv_prog_CC"
 
3010
fi
 
3011
 
 
3012
fi
 
3013
 
 
3014
 
 
3015
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3016
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
3017
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3018
See \`config.log' for more details" "$LINENO" 5; }
 
3019
 
 
3020
# Provide some information about the compiler.
 
3021
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3022
set X $ac_compile
 
3023
ac_compiler=$2
 
3024
for ac_option in --version -v -V -qversion -version; do
 
3025
  { { ac_try="$ac_compiler $ac_option >&5"
 
3026
case "(($ac_try" in
 
3027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3028
  *) ac_try_echo=$ac_try;;
 
3029
esac
 
3030
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3031
printf "%s\n" "$ac_try_echo"; } >&5
 
3032
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3033
  ac_status=$?
 
3034
  if test -s conftest.err; then
 
3035
    sed '10a\
 
3036
... rest of stderr output deleted ...
 
3037
         10q' conftest.err >conftest.er1
 
3038
    cat conftest.er1 >&5
 
3039
  fi
 
3040
  rm -f conftest.er1 conftest.err
 
3041
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3042
  test $ac_status = 0; }
 
3043
done
 
3044
 
 
3045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3046
/* end confdefs.h.  */
 
3047
 
 
3048
int
 
3049
main (void)
 
3050
{
 
3051
 
 
3052
  ;
 
3053
  return 0;
 
3054
}
 
3055
_ACEOF
 
3056
ac_clean_files_save=$ac_clean_files
 
3057
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3058
# Try to create an executable without -o first, disregard a.out.
 
3059
# It will help us diagnose broken compilers, and finding out an intuition
 
3060
# of exeext.
 
3061
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3062
printf %s "checking whether the C compiler works... " >&6; }
 
3063
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3064
 
 
3065
# The possible output files:
 
3066
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3067
 
 
3068
ac_rmfiles=
 
3069
for ac_file in $ac_files
 
3070
do
 
3071
  case $ac_file in
 
3072
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3073
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3074
  esac
 
3075
done
 
3076
rm -f $ac_rmfiles
 
3077
 
 
3078
if { { ac_try="$ac_link_default"
 
3079
case "(($ac_try" in
 
3080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3081
  *) ac_try_echo=$ac_try;;
 
3082
esac
 
3083
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3084
printf "%s\n" "$ac_try_echo"; } >&5
 
3085
  (eval "$ac_link_default") 2>&5
 
3086
  ac_status=$?
 
3087
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3088
  test $ac_status = 0; }
 
3089
then :
 
3090
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3091
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3092
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3093
# so that the user can short-circuit this test for compilers unknown to
 
3094
# Autoconf.
 
3095
for ac_file in $ac_files ''
 
3096
do
 
3097
  test -f "$ac_file" || continue
 
3098
  case $ac_file in
 
3099
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3100
        ;;
 
3101
    [ab].out )
 
3102
        # We found the default executable, but exeext='' is most
 
3103
        # certainly right.
 
3104
        break;;
 
3105
    *.* )
 
3106
        if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
 
3107
        then :; else
 
3108
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3109
        fi
 
3110
        # We set ac_cv_exeext here because the later test for it is not
 
3111
        # safe: cross compilers may not add the suffix if given an `-o'
 
3112
        # argument, so we may need to know it at that point already.
 
3113
        # Even if this section looks crufty: it has the advantage of
 
3114
        # actually working.
 
3115
        break;;
 
3116
    * )
 
3117
        break;;
 
3118
  esac
 
3119
done
 
3120
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3121
 
 
3122
else $as_nop
 
3123
  ac_file=''
 
3124
fi
 
3125
if test -z "$ac_file"
 
3126
then :
 
3127
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3128
printf "%s\n" "no" >&6; }
 
3129
printf "%s\n" "$as_me: failed program was:" >&5
 
3130
sed 's/^/| /' conftest.$ac_ext >&5
 
3131
 
 
3132
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3133
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
3134
as_fn_error 77 "C compiler cannot create executables
 
3135
See \`config.log' for more details" "$LINENO" 5; }
 
3136
else $as_nop
 
3137
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3138
printf "%s\n" "yes" >&6; }
 
3139
fi
 
3140
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3141
printf %s "checking for C compiler default output file name... " >&6; }
 
3142
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3143
printf "%s\n" "$ac_file" >&6; }
 
3144
ac_exeext=$ac_cv_exeext
 
3145
 
 
3146
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3147
ac_clean_files=$ac_clean_files_save
 
3148
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3149
printf %s "checking for suffix of executables... " >&6; }
 
3150
if { { ac_try="$ac_link"
 
3151
case "(($ac_try" in
 
3152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3153
  *) ac_try_echo=$ac_try;;
 
3154
esac
 
3155
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3156
printf "%s\n" "$ac_try_echo"; } >&5
 
3157
  (eval "$ac_link") 2>&5
 
3158
  ac_status=$?
 
3159
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3160
  test $ac_status = 0; }
 
3161
then :
 
3162
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3163
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3164
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3165
# `rm'.
 
3166
for ac_file in conftest.exe conftest conftest.*; do
 
3167
  test -f "$ac_file" || continue
 
3168
  case $ac_file in
 
3169
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3170
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3171
          break;;
 
3172
    * ) break;;
 
3173
  esac
 
3174
done
 
3175
else $as_nop
 
3176
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3177
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
3178
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3179
See \`config.log' for more details" "$LINENO" 5; }
 
3180
fi
 
3181
rm -f conftest conftest$ac_cv_exeext
 
3182
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3183
printf "%s\n" "$ac_cv_exeext" >&6; }
 
3184
 
 
3185
rm -f conftest.$ac_ext
 
3186
EXEEXT=$ac_cv_exeext
 
3187
ac_exeext=$EXEEXT
 
3188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3189
/* end confdefs.h.  */
 
3190
#include <stdio.h>
 
3191
int
 
3192
main (void)
 
3193
{
 
3194
FILE *f = fopen ("conftest.out", "w");
 
3195
 return ferror (f) || fclose (f) != 0;
 
3196
 
 
3197
  ;
 
3198
  return 0;
 
3199
}
 
3200
_ACEOF
 
3201
ac_clean_files="$ac_clean_files conftest.out"
 
3202
# Check that the compiler produces executables we can run.  If not, either
 
3203
# the compiler is broken, or we cross compile.
 
3204
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3205
printf %s "checking whether we are cross compiling... " >&6; }
 
3206
if test "$cross_compiling" != yes; then
 
3207
  { { ac_try="$ac_link"
 
3208
case "(($ac_try" in
 
3209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3210
  *) ac_try_echo=$ac_try;;
 
3211
esac
 
3212
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3213
printf "%s\n" "$ac_try_echo"; } >&5
 
3214
  (eval "$ac_link") 2>&5
 
3215
  ac_status=$?
 
3216
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3217
  test $ac_status = 0; }
 
3218
  if { ac_try='./conftest$ac_cv_exeext'
 
3219
  { { case "(($ac_try" in
 
3220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3221
  *) ac_try_echo=$ac_try;;
 
3222
esac
 
3223
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3224
printf "%s\n" "$ac_try_echo"; } >&5
 
3225
  (eval "$ac_try") 2>&5
 
3226
  ac_status=$?
 
3227
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3228
  test $ac_status = 0; }; }; then
 
3229
    cross_compiling=no
 
3230
  else
 
3231
    if test "$cross_compiling" = maybe; then
 
3232
        cross_compiling=yes
 
3233
    else
 
3234
        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3235
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
3236
as_fn_error 77 "cannot run C compiled programs.
 
3237
If you meant to cross compile, use \`--host'.
 
3238
See \`config.log' for more details" "$LINENO" 5; }
 
3239
    fi
 
3240
  fi
 
3241
fi
 
3242
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3243
printf "%s\n" "$cross_compiling" >&6; }
 
3244
 
 
3245
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3246
ac_clean_files=$ac_clean_files_save
 
3247
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3248
printf %s "checking for suffix of object files... " >&6; }
 
3249
if test ${ac_cv_objext+y}
 
3250
then :
 
3251
  printf %s "(cached) " >&6
 
3252
else $as_nop
 
3253
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3254
/* end confdefs.h.  */
 
3255
 
 
3256
int
 
3257
main (void)
 
3258
{
 
3259
 
 
3260
  ;
 
3261
  return 0;
 
3262
}
 
3263
_ACEOF
 
3264
rm -f conftest.o conftest.obj
 
3265
if { { ac_try="$ac_compile"
 
3266
case "(($ac_try" in
 
3267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3268
  *) ac_try_echo=$ac_try;;
 
3269
esac
 
3270
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3271
printf "%s\n" "$ac_try_echo"; } >&5
 
3272
  (eval "$ac_compile") 2>&5
 
3273
  ac_status=$?
 
3274
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3275
  test $ac_status = 0; }
 
3276
then :
 
3277
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3278
  test -f "$ac_file" || continue;
 
3279
  case $ac_file in
 
3280
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3281
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3282
       break;;
 
3283
  esac
 
3284
done
 
3285
else $as_nop
 
3286
  printf "%s\n" "$as_me: failed program was:" >&5
 
3287
sed 's/^/| /' conftest.$ac_ext >&5
 
3288
 
 
3289
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3290
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
3291
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3292
See \`config.log' for more details" "$LINENO" 5; }
 
3293
fi
 
3294
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3295
fi
 
3296
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3297
printf "%s\n" "$ac_cv_objext" >&6; }
 
3298
OBJEXT=$ac_cv_objext
 
3299
ac_objext=$OBJEXT
 
3300
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
 
3301
printf %s "checking whether the compiler supports GNU C... " >&6; }
 
3302
if test ${ac_cv_c_compiler_gnu+y}
 
3303
then :
 
3304
  printf %s "(cached) " >&6
 
3305
else $as_nop
 
3306
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3307
/* end confdefs.h.  */
 
3308
 
 
3309
int
 
3310
main (void)
 
3311
{
 
3312
#ifndef __GNUC__
 
3313
       choke me
 
3314
#endif
 
3315
 
 
3316
  ;
 
3317
  return 0;
 
3318
}
 
3319
_ACEOF
 
3320
if ac_fn_c_try_compile "$LINENO"
 
3321
then :
 
3322
  ac_compiler_gnu=yes
 
3323
else $as_nop
 
3324
  ac_compiler_gnu=no
 
3325
fi
 
3326
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3327
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3328
 
 
3329
fi
 
3330
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3331
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
 
3332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3333
 
 
3334
if test $ac_compiler_gnu = yes; then
 
3335
  GCC=yes
 
3336
else
 
3337
  GCC=
 
3338
fi
 
3339
ac_test_CFLAGS=${CFLAGS+y}
 
3340
ac_save_CFLAGS=$CFLAGS
 
3341
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3342
printf %s "checking whether $CC accepts -g... " >&6; }
 
3343
if test ${ac_cv_prog_cc_g+y}
 
3344
then :
 
3345
  printf %s "(cached) " >&6
 
3346
else $as_nop
 
3347
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3348
   ac_c_werror_flag=yes
 
3349
   ac_cv_prog_cc_g=no
 
3350
   CFLAGS="-g"
 
3351
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3352
/* end confdefs.h.  */
 
3353
 
 
3354
int
 
3355
main (void)
 
3356
{
 
3357
 
 
3358
  ;
 
3359
  return 0;
 
3360
}
 
3361
_ACEOF
 
3362
if ac_fn_c_try_compile "$LINENO"
 
3363
then :
 
3364
  ac_cv_prog_cc_g=yes
 
3365
else $as_nop
 
3366
  CFLAGS=""
 
3367
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3368
/* end confdefs.h.  */
 
3369
 
 
3370
int
 
3371
main (void)
 
3372
{
 
3373
 
 
3374
  ;
 
3375
  return 0;
 
3376
}
 
3377
_ACEOF
 
3378
if ac_fn_c_try_compile "$LINENO"
 
3379
then :
 
3380
 
 
3381
else $as_nop
 
3382
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3383
         CFLAGS="-g"
 
3384
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3385
/* end confdefs.h.  */
 
3386
 
 
3387
int
 
3388
main (void)
 
3389
{
 
3390
 
 
3391
  ;
 
3392
  return 0;
 
3393
}
 
3394
_ACEOF
 
3395
if ac_fn_c_try_compile "$LINENO"
 
3396
then :
 
3397
  ac_cv_prog_cc_g=yes
 
3398
fi
 
3399
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3400
fi
 
3401
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3402
fi
 
3403
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3404
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3405
fi
 
3406
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3407
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
 
3408
if test $ac_test_CFLAGS; then
 
3409
  CFLAGS=$ac_save_CFLAGS
 
3410
elif test $ac_cv_prog_cc_g = yes; then
 
3411
  if test "$GCC" = yes; then
 
3412
    CFLAGS="-g -O2"
 
3413
  else
 
3414
    CFLAGS="-g"
 
3415
  fi
 
3416
else
 
3417
  if test "$GCC" = yes; then
 
3418
    CFLAGS="-O2"
 
3419
  else
 
3420
    CFLAGS=
 
3421
  fi
 
3422
fi
 
3423
ac_prog_cc_stdc=no
 
3424
if test x$ac_prog_cc_stdc = xno
 
3425
then :
 
3426
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
 
3427
printf %s "checking for $CC option to enable C11 features... " >&6; }
 
3428
if test ${ac_cv_prog_cc_c11+y}
 
3429
then :
 
3430
  printf %s "(cached) " >&6
 
3431
else $as_nop
 
3432
  ac_cv_prog_cc_c11=no
 
3433
ac_save_CC=$CC
 
3434
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3435
/* end confdefs.h.  */
 
3436
$ac_c_conftest_c11_program
 
3437
_ACEOF
 
3438
for ac_arg in '' -std=gnu11
 
3439
do
 
3440
  CC="$ac_save_CC $ac_arg"
 
3441
  if ac_fn_c_try_compile "$LINENO"
 
3442
then :
 
3443
  ac_cv_prog_cc_c11=$ac_arg
 
3444
fi
 
3445
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
3446
  test "x$ac_cv_prog_cc_c11" != "xno" && break
 
3447
done
 
3448
rm -f conftest.$ac_ext
 
3449
CC=$ac_save_CC
 
3450
fi
 
3451
 
 
3452
if test "x$ac_cv_prog_cc_c11" = xno
 
3453
then :
 
3454
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3455
printf "%s\n" "unsupported" >&6; }
 
3456
else $as_nop
 
3457
  if test "x$ac_cv_prog_cc_c11" = x
 
3458
then :
 
3459
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3460
printf "%s\n" "none needed" >&6; }
 
3461
else $as_nop
 
3462
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
 
3463
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
 
3464
     CC="$CC $ac_cv_prog_cc_c11"
 
3465
fi
 
3466
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
 
3467
  ac_prog_cc_stdc=c11
 
3468
fi
 
3469
fi
 
3470
if test x$ac_prog_cc_stdc = xno
 
3471
then :
 
3472
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
 
3473
printf %s "checking for $CC option to enable C99 features... " >&6; }
 
3474
if test ${ac_cv_prog_cc_c99+y}
 
3475
then :
 
3476
  printf %s "(cached) " >&6
 
3477
else $as_nop
 
3478
  ac_cv_prog_cc_c99=no
 
3479
ac_save_CC=$CC
 
3480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3481
/* end confdefs.h.  */
 
3482
$ac_c_conftest_c99_program
 
3483
_ACEOF
 
3484
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
 
3485
do
 
3486
  CC="$ac_save_CC $ac_arg"
 
3487
  if ac_fn_c_try_compile "$LINENO"
 
3488
then :
 
3489
  ac_cv_prog_cc_c99=$ac_arg
 
3490
fi
 
3491
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
3492
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
3493
done
 
3494
rm -f conftest.$ac_ext
 
3495
CC=$ac_save_CC
 
3496
fi
 
3497
 
 
3498
if test "x$ac_cv_prog_cc_c99" = xno
 
3499
then :
 
3500
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3501
printf "%s\n" "unsupported" >&6; }
 
3502
else $as_nop
 
3503
  if test "x$ac_cv_prog_cc_c99" = x
 
3504
then :
 
3505
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3506
printf "%s\n" "none needed" >&6; }
 
3507
else $as_nop
 
3508
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
3509
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
 
3510
     CC="$CC $ac_cv_prog_cc_c99"
 
3511
fi
 
3512
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
3513
  ac_prog_cc_stdc=c99
 
3514
fi
 
3515
fi
 
3516
if test x$ac_prog_cc_stdc = xno
 
3517
then :
 
3518
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
 
3519
printf %s "checking for $CC option to enable C89 features... " >&6; }
 
3520
if test ${ac_cv_prog_cc_c89+y}
 
3521
then :
 
3522
  printf %s "(cached) " >&6
 
3523
else $as_nop
 
3524
  ac_cv_prog_cc_c89=no
 
3525
ac_save_CC=$CC
 
3526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3527
/* end confdefs.h.  */
 
3528
$ac_c_conftest_c89_program
 
3529
_ACEOF
 
3530
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3531
do
 
3532
  CC="$ac_save_CC $ac_arg"
 
3533
  if ac_fn_c_try_compile "$LINENO"
 
3534
then :
 
3535
  ac_cv_prog_cc_c89=$ac_arg
 
3536
fi
 
3537
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
3538
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3539
done
 
3540
rm -f conftest.$ac_ext
 
3541
CC=$ac_save_CC
 
3542
fi
 
3543
 
 
3544
if test "x$ac_cv_prog_cc_c89" = xno
 
3545
then :
 
3546
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3547
printf "%s\n" "unsupported" >&6; }
 
3548
else $as_nop
 
3549
  if test "x$ac_cv_prog_cc_c89" = x
 
3550
then :
 
3551
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3552
printf "%s\n" "none needed" >&6; }
 
3553
else $as_nop
 
3554
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3555
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
 
3556
     CC="$CC $ac_cv_prog_cc_c89"
 
3557
fi
 
3558
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
3559
  ac_prog_cc_stdc=c89
 
3560
fi
 
3561
fi
 
3562
 
 
3563
ac_ext=c
 
3564
ac_cpp='$CPP $CPPFLAGS'
 
3565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3568
 
 
3569
 
 
3570
  ac_ext=c
 
3571
ac_cpp='$CPP $CPPFLAGS'
 
3572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3575
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3576
printf %s "checking whether $CC understands -c and -o together... " >&6; }
 
3577
if test ${am_cv_prog_cc_c_o+y}
 
3578
then :
 
3579
  printf %s "(cached) " >&6
 
3580
else $as_nop
 
3581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3582
/* end confdefs.h.  */
 
3583
 
 
3584
int
 
3585
main (void)
 
3586
{
 
3587
 
 
3588
  ;
 
3589
  return 0;
 
3590
}
 
3591
_ACEOF
 
3592
  # Make sure it works both with $CC and with simple cc.
 
3593
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3594
  # compilers refuse to overwrite an existing .o file with -o,
 
3595
  # though they will create one.
 
3596
  am_cv_prog_cc_c_o=yes
 
3597
  for am_i in 1 2; do
 
3598
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3599
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3600
   ac_status=$?
 
3601
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3602
   (exit $ac_status); } \
 
3603
         && test -f conftest2.$ac_objext; then
 
3604
      : OK
 
3605
    else
 
3606
      am_cv_prog_cc_c_o=no
 
3607
      break
 
3608
    fi
 
3609
  done
 
3610
  rm -f core conftest*
 
3611
  unset am_i
 
3612
fi
 
3613
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3614
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
 
3615
if test "$am_cv_prog_cc_c_o" != yes; then
 
3616
   # Losing compiler, so override with the script.
 
3617
   # FIXME: It is wrong to rewrite CC.
 
3618
   # But if we don't then we get into trouble of one sort or another.
 
3619
   # A longer-term fix would be to have automake use am__CC in this case,
 
3620
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3621
   CC="$am_aux_dir/compile $CC"
 
3622
fi
 
3623
ac_ext=c
 
3624
ac_cpp='$CPP $CPPFLAGS'
 
3625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3628
 
 
3629
 
 
3630
 
 
3631
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
 
3632
printf %s "checking whether C compiler accepts -Wall... " >&6; }
 
3633
if test ${ax_cv_check_cflags___Wall+y}
 
3634
then :
 
3635
  printf %s "(cached) " >&6
 
3636
else $as_nop
 
3637
 
 
3638
  ax_check_save_flags=$CFLAGS
 
3639
  CFLAGS="$CFLAGS  -Wall"
 
3640
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3641
/* end confdefs.h.  */
 
3642
 
 
3643
int
 
3644
main (void)
 
3645
{
 
3646
 
 
3647
  ;
 
3648
  return 0;
 
3649
}
 
3650
_ACEOF
 
3651
if ac_fn_c_try_compile "$LINENO"
 
3652
then :
 
3653
  ax_cv_check_cflags___Wall=yes
 
3654
else $as_nop
 
3655
  ax_cv_check_cflags___Wall=no
 
3656
fi
 
3657
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3658
  CFLAGS=$ax_check_save_flags
 
3659
fi
 
3660
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
 
3661
printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
 
3662
if test "x$ax_cv_check_cflags___Wall" = xyes
 
3663
then :
 
3664
  CFLAGS="$CFLAGS -Wall"
 
3665
else $as_nop
 
3666
  :
 
3667
fi
 
3668
 
 
3669
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
 
3670
printf %s "checking whether C compiler accepts -Wextra... " >&6; }
 
3671
if test ${ax_cv_check_cflags___Wextra+y}
 
3672
then :
 
3673
  printf %s "(cached) " >&6
 
3674
else $as_nop
 
3675
 
 
3676
  ax_check_save_flags=$CFLAGS
 
3677
  CFLAGS="$CFLAGS  -Wextra"
 
3678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3679
/* end confdefs.h.  */
 
3680
 
 
3681
int
 
3682
main (void)
 
3683
{
 
3684
 
 
3685
  ;
 
3686
  return 0;
 
3687
}
 
3688
_ACEOF
 
3689
if ac_fn_c_try_compile "$LINENO"
 
3690
then :
 
3691
  ax_cv_check_cflags___Wextra=yes
 
3692
else $as_nop
 
3693
  ax_cv_check_cflags___Wextra=no
 
3694
fi
 
3695
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3696
  CFLAGS=$ax_check_save_flags
 
3697
fi
 
3698
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
 
3699
printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
 
3700
if test "x$ax_cv_check_cflags___Wextra" = xyes
 
3701
then :
 
3702
  CFLAGS="$CFLAGS -Wextra"
 
3703
else $as_nop
 
3704
  :
 
3705
fi
 
3706
 
 
3707
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat=2" >&5
 
3708
printf %s "checking whether C compiler accepts -Wformat=2... " >&6; }
 
3709
if test ${ax_cv_check_cflags___Wformat_2+y}
 
3710
then :
 
3711
  printf %s "(cached) " >&6
 
3712
else $as_nop
 
3713
 
 
3714
  ax_check_save_flags=$CFLAGS
 
3715
  CFLAGS="$CFLAGS  -Wformat=2"
 
3716
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3717
/* end confdefs.h.  */
 
3718
 
 
3719
int
 
3720
main (void)
 
3721
{
 
3722
 
 
3723
  ;
 
3724
  return 0;
 
3725
}
 
3726
_ACEOF
 
3727
if ac_fn_c_try_compile "$LINENO"
 
3728
then :
 
3729
  ax_cv_check_cflags___Wformat_2=yes
 
3730
else $as_nop
 
3731
  ax_cv_check_cflags___Wformat_2=no
 
3732
fi
 
3733
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3734
  CFLAGS=$ax_check_save_flags
 
3735
fi
 
3736
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_2" >&5
 
3737
printf "%s\n" "$ax_cv_check_cflags___Wformat_2" >&6; }
 
3738
if test "x$ax_cv_check_cflags___Wformat_2" = xyes
 
3739
then :
 
3740
  CFLAGS="$CFLAGS -Wformat=2"
 
3741
else $as_nop
 
3742
  :
 
3743
fi
 
3744
 
 
3745
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
 
3746
printf %s "checking whether C compiler accepts -std=gnu99... " >&6; }
 
3747
if test ${ax_cv_check_cflags___std_gnu99+y}
 
3748
then :
 
3749
  printf %s "(cached) " >&6
 
3750
else $as_nop
 
3751
 
 
3752
  ax_check_save_flags=$CFLAGS
 
3753
  CFLAGS="$CFLAGS  -std=gnu99"
 
3754
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3755
/* end confdefs.h.  */
 
3756
 
 
3757
int
 
3758
main (void)
 
3759
{
 
3760
 
 
3761
  ;
 
3762
  return 0;
 
3763
}
 
3764
_ACEOF
 
3765
if ac_fn_c_try_compile "$LINENO"
 
3766
then :
 
3767
  ax_cv_check_cflags___std_gnu99=yes
 
3768
else $as_nop
 
3769
  ax_cv_check_cflags___std_gnu99=no
 
3770
fi
 
3771
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3772
  CFLAGS=$ax_check_save_flags
 
3773
fi
 
3774
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
 
3775
printf "%s\n" "$ax_cv_check_cflags___std_gnu99" >&6; }
 
3776
if test "x$ax_cv_check_cflags___std_gnu99" = xyes
 
3777
then :
 
3778
  CFLAGS="$CFLAGS -std=gnu99"
 
3779
else $as_nop
 
3780
 
 
3781
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5
 
3782
printf %s "checking whether C compiler accepts -std=c99... " >&6; }
 
3783
if test ${ax_cv_check_cflags___std_c99+y}
 
3784
then :
 
3785
  printf %s "(cached) " >&6
 
3786
else $as_nop
 
3787
 
 
3788
  ax_check_save_flags=$CFLAGS
 
3789
  CFLAGS="$CFLAGS  -std=c99"
 
3790
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3791
/* end confdefs.h.  */
 
3792
 
 
3793
int
 
3794
main (void)
 
3795
{
 
3796
 
 
3797
  ;
 
3798
  return 0;
 
3799
}
 
3800
_ACEOF
 
3801
if ac_fn_c_try_compile "$LINENO"
 
3802
then :
 
3803
  ax_cv_check_cflags___std_c99=yes
 
3804
else $as_nop
 
3805
  ax_cv_check_cflags___std_c99=no
 
3806
fi
 
3807
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3808
  CFLAGS=$ax_check_save_flags
 
3809
fi
 
3810
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c99" >&5
 
3811
printf "%s\n" "$ax_cv_check_cflags___std_c99" >&6; }
 
3812
if test "x$ax_cv_check_cflags___std_c99" = xyes
 
3813
then :
 
3814
  CFLAGS="$CFLAGS -std=c99"
 
3815
else $as_nop
 
3816
  :
 
3817
fi
 
3818
 
 
3819
 
 
3820
fi
 
3821
 
 
3822
ac_config_headers="$ac_config_headers libpkgconf/config.h"
 
3823
 
 
3824
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
 
3825
if test "x$ac_cv_func_strlcpy" = xyes
 
3826
then :
 
3827
  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
 
3828
 
 
3829
fi
 
3830
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
 
3831
if test "x$ac_cv_func_strlcat" = xyes
 
3832
then :
 
3833
  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
 
3834
 
 
3835
fi
 
3836
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
 
3837
if test "x$ac_cv_func_strndup" = xyes
 
3838
then :
 
3839
  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
 
3840
 
 
3841
fi
 
3842
 
 
3843
ac_header= ac_cache=
 
3844
for ac_item in $ac_header_c_list
 
3845
do
 
3846
  if test $ac_cache; then
 
3847
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
 
3848
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
 
3849
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
 
3850
    fi
 
3851
    ac_header= ac_cache=
 
3852
  elif test $ac_header; then
 
3853
    ac_cache=$ac_item
 
3854
  else
 
3855
    ac_header=$ac_item
 
3856
  fi
 
3857
done
 
3858
 
 
3859
 
 
3860
 
 
3861
 
 
3862
 
 
3863
 
 
3864
 
 
3865
 
 
3866
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
 
3867
then :
 
3868
 
 
3869
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
 
3870
 
 
3871
fi
 
3872
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
 
3873
if test "x$ac_cv_header_sys_stat_h" = xyes
 
3874
then :
 
3875
  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
 
3876
 
 
3877
fi
 
3878
 
 
3879
am__api_version='1.16'
 
3880
 
 
3881
 
 
3882
  # Find a good install program.  We prefer a C program (faster),
 
3883
# so one script is as good as another.  But avoid the broken or
 
3884
# incompatible versions:
 
3885
# SysV /etc/install, /usr/sbin/install
 
3886
# SunOS /usr/etc/install
 
3887
# IRIX /sbin/install
 
3888
# AIX /bin/install
 
3889
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3890
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3891
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3892
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3893
# OS/2's system install, which has a completely different semantic
 
3894
# ./install, which can be erroneously created by make from ./install.sh.
 
3895
# Reject install programs that cannot install multiple files.
 
3896
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3897
printf %s "checking for a BSD-compatible install... " >&6; }
 
3898
if test -z "$INSTALL"; then
 
3899
if test ${ac_cv_path_install+y}
 
3900
then :
 
3901
  printf %s "(cached) " >&6
 
3902
else $as_nop
 
3903
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3904
for as_dir in $PATH
 
3905
do
 
3906
  IFS=$as_save_IFS
 
3907
  case $as_dir in #(((
 
3908
    '') as_dir=./ ;;
 
3909
    */) ;;
 
3910
    *) as_dir=$as_dir/ ;;
 
3911
  esac
 
3912
    # Account for fact that we put trailing slashes in our PATH walk.
 
3913
case $as_dir in #((
 
3914
  ./ | /[cC]/* | \
 
3915
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3916
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3917
  /usr/ucb/* ) ;;
 
3918
  *)
 
3919
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3920
    # Don't use installbsd from OSF since it installs stuff as root
 
3921
    # by default.
 
3922
    for ac_prog in ginstall scoinst install; do
 
3923
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3924
        if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
 
3925
          if test $ac_prog = install &&
 
3926
            grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3927
            # AIX install.  It has an incompatible calling convention.
 
3928
            :
 
3929
          elif test $ac_prog = install &&
 
3930
            grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3931
            # program-specific install script used by HP pwplus--don't use.
 
3932
            :
 
3933
          else
 
3934
            rm -rf conftest.one conftest.two conftest.dir
 
3935
            echo one > conftest.one
 
3936
            echo two > conftest.two
 
3937
            mkdir conftest.dir
 
3938
            if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
 
3939
              test -s conftest.one && test -s conftest.two &&
 
3940
              test -s conftest.dir/conftest.one &&
 
3941
              test -s conftest.dir/conftest.two
 
3942
            then
 
3943
              ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
 
3944
              break 3
 
3945
            fi
 
3946
          fi
 
3947
        fi
 
3948
      done
 
3949
    done
 
3950
    ;;
 
3951
esac
 
3952
 
 
3953
  done
 
3954
IFS=$as_save_IFS
 
3955
 
 
3956
rm -rf conftest.one conftest.two conftest.dir
 
3957
 
 
3958
fi
 
3959
  if test ${ac_cv_path_install+y}; then
 
3960
    INSTALL=$ac_cv_path_install
 
3961
  else
 
3962
    # As a last resort, use the slow shell script.  Don't cache a
 
3963
    # value for INSTALL within a source directory, because that will
 
3964
    # break other packages using the cache if that directory is
 
3965
    # removed, or if the value is a relative name.
 
3966
    INSTALL=$ac_install_sh
 
3967
  fi
 
3968
fi
 
3969
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3970
printf "%s\n" "$INSTALL" >&6; }
 
3971
 
 
3972
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3973
# It thinks the first close brace ends the variable substitution.
 
3974
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3975
 
 
3976
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3977
 
 
3978
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3979
 
 
3980
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3981
printf %s "checking whether build environment is sane... " >&6; }
 
3982
# Reject unsafe characters in $srcdir or the absolute working directory
 
3983
# name.  Accept space and tab only in the latter.
 
3984
am_lf='
 
3985
'
 
3986
case `pwd` in
 
3987
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3988
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
3989
esac
 
3990
case $srcdir in
 
3991
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3992
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
3993
esac
 
3994
 
 
3995
# Do 'set' in a subshell so we don't clobber the current shell's
 
3996
# arguments.  Must try -L first in case configure is actually a
 
3997
# symlink; some systems play weird games with the mod time of symlinks
 
3998
# (eg FreeBSD returns the mod time of the symlink's containing
 
3999
# directory).
 
4000
if (
 
4001
   am_has_slept=no
 
4002
   for am_try in 1 2; do
 
4003
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
4004
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
4005
     if test "$*" = "X"; then
 
4006
        # -L didn't work.
 
4007
        set X `ls -t "$srcdir/configure" conftest.file`
 
4008
     fi
 
4009
     if test "$*" != "X $srcdir/configure conftest.file" \
 
4010
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
4011
 
 
4012
        # If neither matched, then we have a broken ls.  This can happen
 
4013
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
4014
        # broken ls alias from the environment.  This has actually
 
4015
        # happened.  Such a system could not be considered "sane".
 
4016
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
4017
  alias in your environment" "$LINENO" 5
 
4018
     fi
 
4019
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
4020
       break
 
4021
     fi
 
4022
     # Just in case.
 
4023
     sleep 1
 
4024
     am_has_slept=yes
 
4025
   done
 
4026
   test "$2" = conftest.file
 
4027
   )
 
4028
then
 
4029
   # Ok.
 
4030
   :
 
4031
else
 
4032
   as_fn_error $? "newly created file is older than distributed files!
 
4033
Check your system clock" "$LINENO" 5
 
4034
fi
 
4035
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4036
printf "%s\n" "yes" >&6; }
 
4037
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
4038
# generated files are strictly newer.
 
4039
am_sleep_pid=
 
4040
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
4041
  ( sleep 1 ) &
 
4042
  am_sleep_pid=$!
 
4043
fi
 
4044
 
 
4045
rm -f conftest.file
 
4046
 
 
4047
test "$program_prefix" != NONE &&
 
4048
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
4049
# Use a double $ so make ignores it.
 
4050
test "$program_suffix" != NONE &&
 
4051
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
4052
# Double any \ or $.
 
4053
# By default was `s,x,x', remove it if useless.
 
4054
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
4055
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
 
4056
 
 
4057
 
 
4058
  if test x"${MISSING+set}" != xset; then
 
4059
  MISSING="\${SHELL} '$am_aux_dir/missing'"
 
4060
fi
 
4061
# Use eval to expand $SHELL
 
4062
if eval "$MISSING --is-lightweight"; then
 
4063
  am_missing_run="$MISSING "
 
4064
else
 
4065
  am_missing_run=
 
4066
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
4067
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
4068
fi
 
4069
 
 
4070
if test x"${install_sh+set}" != xset; then
 
4071
  case $am_aux_dir in
 
4072
  *\ * | *\     *)
 
4073
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
4074
  *)
 
4075
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
4076
  esac
 
4077
fi
 
4078
 
 
4079
# Installed binaries are usually stripped using 'strip' when the user
 
4080
# run "make install-strip".  However 'strip' might not be the right
 
4081
# tool to use in cross-compilation environments, therefore Automake
 
4082
# will honor the 'STRIP' environment variable to overrule this program.
 
4083
if test "$cross_compiling" != no; then
 
4084
  if test -n "$ac_tool_prefix"; then
 
4085
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4086
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4087
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4088
printf %s "checking for $ac_word... " >&6; }
 
4089
if test ${ac_cv_prog_STRIP+y}
 
4090
then :
 
4091
  printf %s "(cached) " >&6
 
4092
else $as_nop
 
4093
  if test -n "$STRIP"; then
 
4094
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4095
else
 
4096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4097
for as_dir in $PATH
 
4098
do
 
4099
  IFS=$as_save_IFS
 
4100
  case $as_dir in #(((
 
4101
    '') as_dir=./ ;;
 
4102
    */) ;;
 
4103
    *) as_dir=$as_dir/ ;;
 
4104
  esac
 
4105
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4106
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
4107
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4108
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
4109
    break 2
 
4110
  fi
 
4111
done
 
4112
  done
 
4113
IFS=$as_save_IFS
 
4114
 
 
4115
fi
 
4116
fi
 
4117
STRIP=$ac_cv_prog_STRIP
 
4118
if test -n "$STRIP"; then
 
4119
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
4120
printf "%s\n" "$STRIP" >&6; }
 
4121
else
 
4122
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4123
printf "%s\n" "no" >&6; }
 
4124
fi
 
4125
 
 
4126
 
 
4127
fi
 
4128
if test -z "$ac_cv_prog_STRIP"; then
 
4129
  ac_ct_STRIP=$STRIP
 
4130
  # Extract the first word of "strip", so it can be a program name with args.
 
4131
set dummy strip; ac_word=$2
 
4132
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4133
printf %s "checking for $ac_word... " >&6; }
 
4134
if test ${ac_cv_prog_ac_ct_STRIP+y}
 
4135
then :
 
4136
  printf %s "(cached) " >&6
 
4137
else $as_nop
 
4138
  if test -n "$ac_ct_STRIP"; then
 
4139
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4140
else
 
4141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4142
for as_dir in $PATH
 
4143
do
 
4144
  IFS=$as_save_IFS
 
4145
  case $as_dir in #(((
 
4146
    '') as_dir=./ ;;
 
4147
    */) ;;
 
4148
    *) as_dir=$as_dir/ ;;
 
4149
  esac
 
4150
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4151
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
4152
    ac_cv_prog_ac_ct_STRIP="strip"
 
4153
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
4154
    break 2
 
4155
  fi
 
4156
done
 
4157
  done
 
4158
IFS=$as_save_IFS
 
4159
 
 
4160
fi
 
4161
fi
 
4162
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4163
if test -n "$ac_ct_STRIP"; then
 
4164
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
4165
printf "%s\n" "$ac_ct_STRIP" >&6; }
 
4166
else
 
4167
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4168
printf "%s\n" "no" >&6; }
 
4169
fi
 
4170
 
 
4171
  if test "x$ac_ct_STRIP" = x; then
 
4172
    STRIP=":"
 
4173
  else
 
4174
    case $cross_compiling:$ac_tool_warned in
 
4175
yes:)
 
4176
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4177
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4178
ac_tool_warned=yes ;;
 
4179
esac
 
4180
    STRIP=$ac_ct_STRIP
 
4181
  fi
 
4182
else
 
4183
  STRIP="$ac_cv_prog_STRIP"
 
4184
fi
 
4185
 
 
4186
fi
 
4187
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
4188
 
 
4189
 
 
4190
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
 
4191
printf %s "checking for a race-free mkdir -p... " >&6; }
 
4192
if test -z "$MKDIR_P"; then
 
4193
  if test ${ac_cv_path_mkdir+y}
 
4194
then :
 
4195
  printf %s "(cached) " >&6
 
4196
else $as_nop
 
4197
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4198
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
4199
do
 
4200
  IFS=$as_save_IFS
 
4201
  case $as_dir in #(((
 
4202
    '') as_dir=./ ;;
 
4203
    */) ;;
 
4204
    *) as_dir=$as_dir/ ;;
 
4205
  esac
 
4206
    for ac_prog in mkdir gmkdir; do
 
4207
         for ac_exec_ext in '' $ac_executable_extensions; do
 
4208
           as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
 
4209
           case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
4210
             'mkdir ('*'coreutils) '* | \
 
4211
             'BusyBox '* | \
 
4212
             'mkdir (fileutils) '4.1*)
 
4213
               ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
 
4214
               break 3;;
 
4215
           esac
 
4216
         done
 
4217
       done
 
4218
  done
 
4219
IFS=$as_save_IFS
 
4220
 
 
4221
fi
 
4222
 
 
4223
  test -d ./--version && rmdir ./--version
 
4224
  if test ${ac_cv_path_mkdir+y}; then
 
4225
    MKDIR_P="$ac_cv_path_mkdir -p"
 
4226
  else
 
4227
    # As a last resort, use the slow shell script.  Don't cache a
 
4228
    # value for MKDIR_P within a source directory, because that will
 
4229
    # break other packages using the cache if that directory is
 
4230
    # removed, or if the value is a relative name.
 
4231
    MKDIR_P="$ac_install_sh -d"
 
4232
  fi
 
4233
fi
 
4234
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
4235
printf "%s\n" "$MKDIR_P" >&6; }
 
4236
 
 
4237
for ac_prog in gawk mawk nawk awk
 
4238
do
 
4239
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4240
set dummy $ac_prog; ac_word=$2
 
4241
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4242
printf %s "checking for $ac_word... " >&6; }
 
4243
if test ${ac_cv_prog_AWK+y}
 
4244
then :
 
4245
  printf %s "(cached) " >&6
 
4246
else $as_nop
 
4247
  if test -n "$AWK"; then
 
4248
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4249
else
 
4250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4251
for as_dir in $PATH
 
4252
do
 
4253
  IFS=$as_save_IFS
 
4254
  case $as_dir in #(((
 
4255
    '') as_dir=./ ;;
 
4256
    */) ;;
 
4257
    *) as_dir=$as_dir/ ;;
 
4258
  esac
 
4259
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4260
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
4261
    ac_cv_prog_AWK="$ac_prog"
 
4262
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
4263
    break 2
 
4264
  fi
 
4265
done
 
4266
  done
 
4267
IFS=$as_save_IFS
 
4268
 
 
4269
fi
 
4270
fi
 
4271
AWK=$ac_cv_prog_AWK
 
4272
if test -n "$AWK"; then
 
4273
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4274
printf "%s\n" "$AWK" >&6; }
 
4275
else
 
4276
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4277
printf "%s\n" "no" >&6; }
 
4278
fi
 
4279
 
 
4280
 
 
4281
  test -n "$AWK" && break
 
4282
done
 
4283
 
 
4284
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4285
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4286
set x ${MAKE-make}
 
4287
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4288
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
 
4289
then :
 
4290
  printf %s "(cached) " >&6
 
4291
else $as_nop
 
4292
  cat >conftest.make <<\_ACEOF
 
4293
SHELL = /bin/sh
 
4294
all:
 
4295
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4296
_ACEOF
 
4297
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
4298
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4299
  *@@@%%%=?*=@@@%%%*)
 
4300
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4301
  *)
 
4302
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4303
esac
 
4304
rm -f conftest.make
 
4305
fi
 
4306
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4307
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4308
printf "%s\n" "yes" >&6; }
 
4309
  SET_MAKE=
 
4310
else
 
4311
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4312
printf "%s\n" "no" >&6; }
 
4313
  SET_MAKE="MAKE=${MAKE-make}"
 
4314
fi
 
4315
 
 
4316
rm -rf .tst 2>/dev/null
 
4317
mkdir .tst 2>/dev/null
 
4318
if test -d .tst; then
 
4319
  am__leading_dot=.
 
4320
else
 
4321
  am__leading_dot=_
 
4322
fi
 
4323
rmdir .tst 2>/dev/null
 
4324
 
 
4325
DEPDIR="${am__leading_dot}deps"
 
4326
 
 
4327
ac_config_commands="$ac_config_commands depfiles"
 
4328
 
 
4329
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
 
4330
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
 
4331
cat > confinc.mk << 'END'
 
4332
am__doit:
 
4333
        @echo this is the am__doit target >confinc.out
 
4334
.PHONY: am__doit
 
4335
END
 
4336
am__include="#"
 
4337
am__quote=
 
4338
# BSD make does it like this.
 
4339
echo '.include "confinc.mk" # ignored' > confmf.BSD
 
4340
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
 
4341
echo 'include confinc.mk # ignored' > confmf.GNU
 
4342
_am_result=no
 
4343
for s in GNU BSD; do
 
4344
  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
 
4345
   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
 
4346
   ac_status=$?
 
4347
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4348
   (exit $ac_status); }
 
4349
  case $?:`cat confinc.out 2>/dev/null` in #(
 
4350
  '0:this is the am__doit target') :
 
4351
    case $s in #(
 
4352
  BSD) :
 
4353
    am__include='.include' am__quote='"' ;; #(
 
4354
  *) :
 
4355
    am__include='include' am__quote='' ;;
 
4356
esac ;; #(
 
4357
  *) :
 
4358
     ;;
 
4359
esac
 
4360
  if test "$am__include" != "#"; then
 
4361
    _am_result="yes ($s style)"
 
4362
    break
 
4363
  fi
 
4364
done
 
4365
rm -f confinc.* confmf.*
 
4366
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
 
4367
printf "%s\n" "${_am_result}" >&6; }
 
4368
 
 
4369
# Check whether --enable-dependency-tracking was given.
 
4370
if test ${enable_dependency_tracking+y}
 
4371
then :
 
4372
  enableval=$enable_dependency_tracking;
 
4373
fi
 
4374
 
 
4375
if test "x$enable_dependency_tracking" != xno; then
 
4376
  am_depcomp="$ac_aux_dir/depcomp"
 
4377
  AMDEPBACKSLASH='\'
 
4378
  am__nodep='_no'
 
4379
fi
 
4380
 if test "x$enable_dependency_tracking" != xno; then
 
4381
  AMDEP_TRUE=
 
4382
  AMDEP_FALSE='#'
 
4383
else
 
4384
  AMDEP_TRUE='#'
 
4385
  AMDEP_FALSE=
 
4386
fi
 
4387
 
 
4388
 
 
4389
# Check whether --enable-silent-rules was given.
 
4390
if test ${enable_silent_rules+y}
 
4391
then :
 
4392
  enableval=$enable_silent_rules;
 
4393
fi
 
4394
 
 
4395
case $enable_silent_rules in # (((
 
4396
  yes) AM_DEFAULT_VERBOSITY=0;;
 
4397
   no) AM_DEFAULT_VERBOSITY=1;;
 
4398
    *) AM_DEFAULT_VERBOSITY=1;;
 
4399
esac
 
4400
am_make=${MAKE-make}
 
4401
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
4402
printf %s "checking whether $am_make supports nested variables... " >&6; }
 
4403
if test ${am_cv_make_support_nested_variables+y}
 
4404
then :
 
4405
  printf %s "(cached) " >&6
 
4406
else $as_nop
 
4407
  if printf "%s\n" 'TRUE=$(BAR$(V))
 
4408
BAR0=false
 
4409
BAR1=true
 
4410
V=1
 
4411
am__doit:
 
4412
        @$(TRUE)
 
4413
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
4414
  am_cv_make_support_nested_variables=yes
 
4415
else
 
4416
  am_cv_make_support_nested_variables=no
 
4417
fi
 
4418
fi
 
4419
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
4420
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
 
4421
if test $am_cv_make_support_nested_variables = yes; then
 
4422
    AM_V='$(V)'
 
4423
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
4424
else
 
4425
  AM_V=$AM_DEFAULT_VERBOSITY
 
4426
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
4427
fi
 
4428
AM_BACKSLASH='\'
 
4429
 
 
4430
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
4431
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
4432
  # is not polluted with repeated "-I."
 
4433
  am__isrc=' -I$(srcdir)'
 
4434
  # test to see if srcdir already configured
 
4435
  if test -f $srcdir/config.status; then
 
4436
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
4437
  fi
 
4438
fi
 
4439
 
 
4440
# test whether we have cygpath
 
4441
if test -z "$CYGPATH_W"; then
 
4442
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
4443
    CYGPATH_W='cygpath -w'
 
4444
  else
 
4445
    CYGPATH_W=echo
 
4446
  fi
 
4447
fi
 
4448
 
 
4449
 
 
4450
# Define the identity of the package.
 
4451
 PACKAGE='pkgconf'
 
4452
 VERSION='1.8.1'
 
4453
 
 
4454
 
 
4455
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
 
4456
 
 
4457
 
 
4458
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
 
4459
 
 
4460
# Some tools Automake needs.
 
4461
 
 
4462
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
4463
 
 
4464
 
 
4465
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
4466
 
 
4467
 
 
4468
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
4469
 
 
4470
 
 
4471
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
4472
 
 
4473
 
 
4474
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
4475
 
 
4476
# For better backward compatibility.  To be removed once Automake 1.9.x
 
4477
# dies out for good.  For more background, see:
 
4478
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
4479
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
4480
mkdir_p='$(MKDIR_P)'
 
4481
 
 
4482
# We need awk for the "check" target (and possibly the TAP driver).  The
 
4483
# system "awk" is bad on some platforms.
 
4484
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
4485
# in the wild :-(  We should find a proper way to deprecate it ...
 
4486
AMTAR='$${TAR-tar}'
 
4487
 
 
4488
 
 
4489
# We'll loop over all known methods to create a tar archive until one works.
 
4490
_am_tools='gnutar  pax cpio none'
 
4491
 
 
4492
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
4493
 
 
4494
 
 
4495
 
 
4496
 
 
4497
 
 
4498
depcc="$CC"   am_compiler_list=
 
4499
 
 
4500
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4501
printf %s "checking dependency style of $depcc... " >&6; }
 
4502
if test ${am_cv_CC_dependencies_compiler_type+y}
 
4503
then :
 
4504
  printf %s "(cached) " >&6
 
4505
else $as_nop
 
4506
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4507
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4508
  # making bogus files that we don't know about and never remove.  For
 
4509
  # instance it was reported that on HP-UX the gcc test will end up
 
4510
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4511
  # in D".
 
4512
  rm -rf conftest.dir
 
4513
  mkdir conftest.dir
 
4514
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4515
  # using a relative directory.
 
4516
  cp "$am_depcomp" conftest.dir
 
4517
  cd conftest.dir
 
4518
  # We will build objects and dependencies in a subdirectory because
 
4519
  # it helps to detect inapplicable dependency modes.  For instance
 
4520
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4521
  # side effect of compilation, but ICC will put the dependencies in
 
4522
  # the current directory while Tru64 will put them in the object
 
4523
  # directory.
 
4524
  mkdir sub
 
4525
 
 
4526
  am_cv_CC_dependencies_compiler_type=none
 
4527
  if test "$am_compiler_list" = ""; then
 
4528
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4529
  fi
 
4530
  am__universal=false
 
4531
  case " $depcc " in #(
 
4532
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4533
     esac
 
4534
 
 
4535
  for depmode in $am_compiler_list; do
 
4536
    # Setup a source with many dependencies, because some compilers
 
4537
    # like to wrap large dependency lists on column 80 (with \), and
 
4538
    # we should not choose a depcomp mode which is confused by this.
 
4539
    #
 
4540
    # We need to recreate these files for each test, as the compiler may
 
4541
    # overwrite some of them when testing with obscure command lines.
 
4542
    # This happens at least with the AIX C compiler.
 
4543
    : > sub/conftest.c
 
4544
    for i in 1 2 3 4 5 6; do
 
4545
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4546
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4547
      # Solaris 10 /bin/sh.
 
4548
      echo '/* dummy */' > sub/conftst$i.h
 
4549
    done
 
4550
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4551
 
 
4552
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
4553
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4554
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4555
    # versions had trouble with output in subdirs.
 
4556
    am__obj=sub/conftest.${OBJEXT-o}
 
4557
    am__minus_obj="-o $am__obj"
 
4558
    case $depmode in
 
4559
    gcc)
 
4560
      # This depmode causes a compiler race in universal mode.
 
4561
      test "$am__universal" = false || continue
 
4562
      ;;
 
4563
    nosideeffect)
 
4564
      # After this tag, mechanisms are not by side-effect, so they'll
 
4565
      # only be used when explicitly requested.
 
4566
      if test "x$enable_dependency_tracking" = xyes; then
 
4567
        continue
 
4568
      else
 
4569
        break
 
4570
      fi
 
4571
      ;;
 
4572
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4573
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4574
      # not run yet.  These depmodes are late enough in the game, and
 
4575
      # so weak that their functioning should not be impacted.
 
4576
      am__obj=conftest.${OBJEXT-o}
 
4577
      am__minus_obj=
 
4578
      ;;
 
4579
    none) break ;;
 
4580
    esac
 
4581
    if depmode=$depmode \
 
4582
       source=sub/conftest.c object=$am__obj \
 
4583
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4584
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4585
         >/dev/null 2>conftest.err &&
 
4586
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4587
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4588
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4589
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4590
      # icc doesn't choke on unknown options, it will just issue warnings
 
4591
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4592
      # that says an option was ignored or not supported.
 
4593
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4594
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4595
      # The diagnosis changed in icc 8.0:
 
4596
      #   icc: Command line remark: option '-MP' not supported
 
4597
      if (grep 'ignoring option' conftest.err ||
 
4598
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4599
        am_cv_CC_dependencies_compiler_type=$depmode
 
4600
        break
 
4601
      fi
 
4602
    fi
 
4603
  done
 
4604
 
 
4605
  cd ..
 
4606
  rm -rf conftest.dir
 
4607
else
 
4608
  am_cv_CC_dependencies_compiler_type=none
 
4609
fi
 
4610
 
 
4611
fi
 
4612
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4613
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4614
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4615
 
 
4616
 if
 
4617
  test "x$enable_dependency_tracking" != xno \
 
4618
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4619
  am__fastdepCC_TRUE=
 
4620
  am__fastdepCC_FALSE='#'
 
4621
else
 
4622
  am__fastdepCC_TRUE='#'
 
4623
  am__fastdepCC_FALSE=
 
4624
fi
 
4625
 
 
4626
 
 
4627
# Variables for tags utilities; see am/tags.am
 
4628
if test -z "$CTAGS"; then
 
4629
  CTAGS=ctags
 
4630
fi
 
4631
 
 
4632
if test -z "$ETAGS"; then
 
4633
  ETAGS=etags
 
4634
fi
 
4635
 
 
4636
if test -z "$CSCOPE"; then
 
4637
  CSCOPE=cscope
 
4638
fi
 
4639
 
 
4640
 
 
4641
 
 
4642
# POSIX will say in a future version that running "rm -f" with no argument
 
4643
# is OK; and we want to be able to make that assumption in our Makefile
 
4644
# recipes.  So use an aggressive probe to check that the usage we want is
 
4645
# actually supported "in the wild" to an acceptable degree.
 
4646
# See automake bug#10828.
 
4647
# To make any issue more visible, cause the running configure to be aborted
 
4648
# by default if the 'rm' program in use doesn't match our expectations; the
 
4649
# user can still override this though.
 
4650
if rm -f && rm -fr && rm -rf; then : OK; else
 
4651
  cat >&2 <<'END'
 
4652
Oops!
 
4653
 
 
4654
Your 'rm' program seems unable to run without file operands specified
 
4655
on the command line, even when the '-f' option is present.  This is contrary
 
4656
to the behaviour of most rm programs out there, and not conforming with
 
4657
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
4658
 
 
4659
Please tell bug-automake@gnu.org about your system, including the value
 
4660
of your $PATH and any error possibly output before this message.  This
 
4661
can help us improve future automake versions.
 
4662
 
 
4663
END
 
4664
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
4665
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
4666
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
4667
    echo >&2
 
4668
  else
 
4669
    cat >&2 <<'END'
 
4670
Aborting the configuration process, to ensure you take notice of the issue.
 
4671
 
 
4672
You can download and install GNU coreutils to get an 'rm' implementation
 
4673
that behaves properly: <https://www.gnu.org/software/coreutils/>.
 
4674
 
 
4675
If you want to complete the configuration process using your problematic
 
4676
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
4677
to "yes", and re-run configure.
 
4678
 
 
4679
END
 
4680
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
4681
  fi
 
4682
fi
 
4683
 
 
4684
# Check whether --enable-silent-rules was given.
 
4685
if test ${enable_silent_rules+y}
 
4686
then :
 
4687
  enableval=$enable_silent_rules;
 
4688
fi
 
4689
 
 
4690
case $enable_silent_rules in # (((
 
4691
  yes) AM_DEFAULT_VERBOSITY=0;;
 
4692
   no) AM_DEFAULT_VERBOSITY=1;;
 
4693
    *) AM_DEFAULT_VERBOSITY=0;;
 
4694
esac
 
4695
am_make=${MAKE-make}
 
4696
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
4697
printf %s "checking whether $am_make supports nested variables... " >&6; }
 
4698
if test ${am_cv_make_support_nested_variables+y}
 
4699
then :
 
4700
  printf %s "(cached) " >&6
 
4701
else $as_nop
 
4702
  if printf "%s\n" 'TRUE=$(BAR$(V))
 
4703
BAR0=false
 
4704
BAR1=true
 
4705
V=1
 
4706
am__doit:
 
4707
        @$(TRUE)
 
4708
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
4709
  am_cv_make_support_nested_variables=yes
 
4710
else
 
4711
  am_cv_make_support_nested_variables=no
 
4712
fi
 
4713
fi
 
4714
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
4715
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
 
4716
if test $am_cv_make_support_nested_variables = yes; then
 
4717
    AM_V='$(V)'
 
4718
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
4719
else
 
4720
  AM_V=$AM_DEFAULT_VERBOSITY
 
4721
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
4722
fi
 
4723
AM_BACKSLASH='\'
 
4724
 
 
4725
case `pwd` in
 
4726
  *\ * | *\     *)
 
4727
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4728
printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4729
esac
 
4730
 
 
4731
 
 
4732
 
 
4733
macro_version='2.4.7'
 
4734
macro_revision='2.4.7'
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
 
 
4749
ltmain=$ac_aux_dir/ltmain.sh
 
4750
 
 
4751
 
 
4752
 
 
4753
  # Make sure we can run config.sub.
 
4754
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
 
4755
  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
 
4756
 
 
4757
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4758
printf %s "checking build system type... " >&6; }
 
4759
if test ${ac_cv_build+y}
 
4760
then :
 
4761
  printf %s "(cached) " >&6
 
4762
else $as_nop
 
4763
  ac_build_alias=$build_alias
 
4764
test "x$ac_build_alias" = x &&
 
4765
  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
 
4766
test "x$ac_build_alias" = x &&
 
4767
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4768
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
 
4769
  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
 
4770
 
 
4771
fi
 
4772
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4773
printf "%s\n" "$ac_cv_build" >&6; }
 
4774
case $ac_cv_build in
 
4775
*-*-*) ;;
 
4776
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4777
esac
 
4778
build=$ac_cv_build
 
4779
ac_save_IFS=$IFS; IFS='-'
 
4780
set x $ac_cv_build
 
4781
shift
 
4782
build_cpu=$1
 
4783
build_vendor=$2
 
4784
shift; shift
 
4785
# Remember, the first character of IFS is used to create $*,
 
4786
# except with old shells:
 
4787
build_os=$*
 
4788
IFS=$ac_save_IFS
 
4789
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4790
 
 
4791
 
 
4792
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4793
printf %s "checking host system type... " >&6; }
 
4794
if test ${ac_cv_host+y}
 
4795
then :
 
4796
  printf %s "(cached) " >&6
 
4797
else $as_nop
 
4798
  if test "x$host_alias" = x; then
 
4799
  ac_cv_host=$ac_cv_build
 
4800
else
 
4801
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
 
4802
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
 
4803
fi
 
4804
 
 
4805
fi
 
4806
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4807
printf "%s\n" "$ac_cv_host" >&6; }
 
4808
case $ac_cv_host in
 
4809
*-*-*) ;;
 
4810
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4811
esac
 
4812
host=$ac_cv_host
 
4813
ac_save_IFS=$IFS; IFS='-'
 
4814
set x $ac_cv_host
 
4815
shift
 
4816
host_cpu=$1
 
4817
host_vendor=$2
 
4818
shift; shift
 
4819
# Remember, the first character of IFS is used to create $*,
 
4820
# except with old shells:
 
4821
host_os=$*
 
4822
IFS=$ac_save_IFS
 
4823
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4824
 
 
4825
 
 
4826
# Backslashify metacharacters that are still active within
 
4827
# double-quoted strings.
 
4828
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4829
 
 
4830
# Same as above, but do not quote variable references.
 
4831
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4832
 
 
4833
# Sed substitution to delay expansion of an escaped shell variable in a
 
4834
# double_quote_subst'ed string.
 
4835
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4836
 
 
4837
# Sed substitution to delay expansion of an escaped single quote.
 
4838
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4839
 
 
4840
# Sed substitution to avoid accidental globbing in evaled expressions
 
4841
no_glob_subst='s/\*/\\\*/g'
 
4842
 
 
4843
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4844
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4845
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4846
 
 
4847
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4848
printf %s "checking how to print strings... " >&6; }
 
4849
# Test print first, because it will be a builtin if present.
 
4850
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4851
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4852
  ECHO='print -r --'
 
4853
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4854
  ECHO='printf %s\n'
 
4855
else
 
4856
  # Use this function as a fallback that always works.
 
4857
  func_fallback_echo ()
 
4858
  {
 
4859
    eval 'cat <<_LTECHO_EOF
 
4860
$1
 
4861
_LTECHO_EOF'
 
4862
  }
 
4863
  ECHO='func_fallback_echo'
 
4864
fi
 
4865
 
 
4866
# func_echo_all arg...
 
4867
# Invoke $ECHO with all args, space-separated.
 
4868
func_echo_all ()
 
4869
{
 
4870
    $ECHO ""
 
4871
}
 
4872
 
 
4873
case $ECHO in
 
4874
  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4875
printf "%s\n" "printf" >&6; } ;;
 
4876
  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4877
printf "%s\n" "print -r" >&6; } ;;
 
4878
  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4879
printf "%s\n" "cat" >&6; } ;;
 
4880
esac
 
4881
 
 
4882
 
 
4883
 
 
4884
 
 
4885
 
 
4886
 
 
4887
 
 
4888
 
 
4889
 
 
4890
 
 
4891
 
 
4892
 
 
4893
 
 
4894
 
 
4895
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4896
printf %s "checking for a sed that does not truncate output... " >&6; }
 
4897
if test ${ac_cv_path_SED+y}
 
4898
then :
 
4899
  printf %s "(cached) " >&6
 
4900
else $as_nop
 
4901
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4902
     for ac_i in 1 2 3 4 5 6 7; do
 
4903
       ac_script="$ac_script$as_nl$ac_script"
 
4904
     done
 
4905
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4906
     { ac_script=; unset ac_script;}
 
4907
     if test -z "$SED"; then
 
4908
  ac_path_SED_found=false
 
4909
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4910
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4911
for as_dir in $PATH
 
4912
do
 
4913
  IFS=$as_save_IFS
 
4914
  case $as_dir in #(((
 
4915
    '') as_dir=./ ;;
 
4916
    */) ;;
 
4917
    *) as_dir=$as_dir/ ;;
 
4918
  esac
 
4919
    for ac_prog in sed gsed
 
4920
   do
 
4921
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4922
      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
 
4923
      as_fn_executable_p "$ac_path_SED" || continue
 
4924
# Check for GNU ac_path_SED and select it if it is found.
 
4925
  # Check for GNU $ac_path_SED
 
4926
case `"$ac_path_SED" --version 2>&1` in
 
4927
*GNU*)
 
4928
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4929
*)
 
4930
  ac_count=0
 
4931
  printf %s 0123456789 >"conftest.in"
 
4932
  while :
 
4933
  do
 
4934
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4935
    mv "conftest.tmp" "conftest.in"
 
4936
    cp "conftest.in" "conftest.nl"
 
4937
    printf "%s\n" '' >> "conftest.nl"
 
4938
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4939
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4940
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4941
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4942
      # Best one so far, save it but keep looking for a better one
 
4943
      ac_cv_path_SED="$ac_path_SED"
 
4944
      ac_path_SED_max=$ac_count
 
4945
    fi
 
4946
    # 10*(2^10) chars as input seems more than enough
 
4947
    test $ac_count -gt 10 && break
 
4948
  done
 
4949
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4950
esac
 
4951
 
 
4952
      $ac_path_SED_found && break 3
 
4953
    done
 
4954
  done
 
4955
  done
 
4956
IFS=$as_save_IFS
 
4957
  if test -z "$ac_cv_path_SED"; then
 
4958
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4959
  fi
 
4960
else
 
4961
  ac_cv_path_SED=$SED
 
4962
fi
 
4963
 
 
4964
fi
 
4965
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4966
printf "%s\n" "$ac_cv_path_SED" >&6; }
 
4967
 SED="$ac_cv_path_SED"
 
4968
  rm -f conftest.sed
 
4969
 
 
4970
test -z "$SED" && SED=sed
 
4971
Xsed="$SED -e 1s/^X//"
 
4972
 
 
4973
 
 
4974
 
 
4975
 
 
4976
 
 
4977
 
 
4978
 
 
4979
 
 
4980
 
 
4981
 
 
4982
 
 
4983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4984
printf %s "checking for grep that handles long lines and -e... " >&6; }
 
4985
if test ${ac_cv_path_GREP+y}
 
4986
then :
 
4987
  printf %s "(cached) " >&6
 
4988
else $as_nop
 
4989
  if test -z "$GREP"; then
 
4990
  ac_path_GREP_found=false
 
4991
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4992
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4993
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4994
do
 
4995
  IFS=$as_save_IFS
 
4996
  case $as_dir in #(((
 
4997
    '') as_dir=./ ;;
 
4998
    */) ;;
 
4999
    *) as_dir=$as_dir/ ;;
 
5000
  esac
 
5001
    for ac_prog in grep ggrep
 
5002
   do
 
5003
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5004
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
 
5005
      as_fn_executable_p "$ac_path_GREP" || continue
 
5006
# Check for GNU ac_path_GREP and select it if it is found.
 
5007
  # Check for GNU $ac_path_GREP
 
5008
case `"$ac_path_GREP" --version 2>&1` in
 
5009
*GNU*)
 
5010
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5011
*)
 
5012
  ac_count=0
 
5013
  printf %s 0123456789 >"conftest.in"
 
5014
  while :
 
5015
  do
 
5016
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5017
    mv "conftest.tmp" "conftest.in"
 
5018
    cp "conftest.in" "conftest.nl"
 
5019
    printf "%s\n" 'GREP' >> "conftest.nl"
 
5020
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5021
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5022
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5023
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5024
      # Best one so far, save it but keep looking for a better one
 
5025
      ac_cv_path_GREP="$ac_path_GREP"
 
5026
      ac_path_GREP_max=$ac_count
 
5027
    fi
 
5028
    # 10*(2^10) chars as input seems more than enough
 
5029
    test $ac_count -gt 10 && break
 
5030
  done
 
5031
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5032
esac
 
5033
 
 
5034
      $ac_path_GREP_found && break 3
 
5035
    done
 
5036
  done
 
5037
  done
 
5038
IFS=$as_save_IFS
 
5039
  if test -z "$ac_cv_path_GREP"; then
 
5040
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5041
  fi
 
5042
else
 
5043
  ac_cv_path_GREP=$GREP
 
5044
fi
 
5045
 
 
5046
fi
 
5047
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5048
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 
5049
 GREP="$ac_cv_path_GREP"
 
5050
 
 
5051
 
 
5052
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5053
printf %s "checking for egrep... " >&6; }
 
5054
if test ${ac_cv_path_EGREP+y}
 
5055
then :
 
5056
  printf %s "(cached) " >&6
 
5057
else $as_nop
 
5058
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5059
   then ac_cv_path_EGREP="$GREP -E"
 
5060
   else
 
5061
     if test -z "$EGREP"; then
 
5062
  ac_path_EGREP_found=false
 
5063
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5064
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5065
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5066
do
 
5067
  IFS=$as_save_IFS
 
5068
  case $as_dir in #(((
 
5069
    '') as_dir=./ ;;
 
5070
    */) ;;
 
5071
    *) as_dir=$as_dir/ ;;
 
5072
  esac
 
5073
    for ac_prog in egrep
 
5074
   do
 
5075
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5076
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
 
5077
      as_fn_executable_p "$ac_path_EGREP" || continue
 
5078
# Check for GNU ac_path_EGREP and select it if it is found.
 
5079
  # Check for GNU $ac_path_EGREP
 
5080
case `"$ac_path_EGREP" --version 2>&1` in
 
5081
*GNU*)
 
5082
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5083
*)
 
5084
  ac_count=0
 
5085
  printf %s 0123456789 >"conftest.in"
 
5086
  while :
 
5087
  do
 
5088
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5089
    mv "conftest.tmp" "conftest.in"
 
5090
    cp "conftest.in" "conftest.nl"
 
5091
    printf "%s\n" 'EGREP' >> "conftest.nl"
 
5092
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5093
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5094
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5095
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5096
      # Best one so far, save it but keep looking for a better one
 
5097
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5098
      ac_path_EGREP_max=$ac_count
 
5099
    fi
 
5100
    # 10*(2^10) chars as input seems more than enough
 
5101
    test $ac_count -gt 10 && break
 
5102
  done
 
5103
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5104
esac
 
5105
 
 
5106
      $ac_path_EGREP_found && break 3
 
5107
    done
 
5108
  done
 
5109
  done
 
5110
IFS=$as_save_IFS
 
5111
  if test -z "$ac_cv_path_EGREP"; then
 
5112
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5113
  fi
 
5114
else
 
5115
  ac_cv_path_EGREP=$EGREP
 
5116
fi
 
5117
 
 
5118
   fi
 
5119
fi
 
5120
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5121
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 
5122
 EGREP="$ac_cv_path_EGREP"
 
5123
 
 
5124
 
 
5125
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5126
printf %s "checking for fgrep... " >&6; }
 
5127
if test ${ac_cv_path_FGREP+y}
 
5128
then :
 
5129
  printf %s "(cached) " >&6
 
5130
else $as_nop
 
5131
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5132
   then ac_cv_path_FGREP="$GREP -F"
 
5133
   else
 
5134
     if test -z "$FGREP"; then
 
5135
  ac_path_FGREP_found=false
 
5136
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5137
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5138
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5139
do
 
5140
  IFS=$as_save_IFS
 
5141
  case $as_dir in #(((
 
5142
    '') as_dir=./ ;;
 
5143
    */) ;;
 
5144
    *) as_dir=$as_dir/ ;;
 
5145
  esac
 
5146
    for ac_prog in fgrep
 
5147
   do
 
5148
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5149
      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
 
5150
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5151
# Check for GNU ac_path_FGREP and select it if it is found.
 
5152
  # Check for GNU $ac_path_FGREP
 
5153
case `"$ac_path_FGREP" --version 2>&1` in
 
5154
*GNU*)
 
5155
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5156
*)
 
5157
  ac_count=0
 
5158
  printf %s 0123456789 >"conftest.in"
 
5159
  while :
 
5160
  do
 
5161
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5162
    mv "conftest.tmp" "conftest.in"
 
5163
    cp "conftest.in" "conftest.nl"
 
5164
    printf "%s\n" 'FGREP' >> "conftest.nl"
 
5165
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5166
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5167
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5168
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5169
      # Best one so far, save it but keep looking for a better one
 
5170
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5171
      ac_path_FGREP_max=$ac_count
 
5172
    fi
 
5173
    # 10*(2^10) chars as input seems more than enough
 
5174
    test $ac_count -gt 10 && break
 
5175
  done
 
5176
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5177
esac
 
5178
 
 
5179
      $ac_path_FGREP_found && break 3
 
5180
    done
 
5181
  done
 
5182
  done
 
5183
IFS=$as_save_IFS
 
5184
  if test -z "$ac_cv_path_FGREP"; then
 
5185
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5186
  fi
 
5187
else
 
5188
  ac_cv_path_FGREP=$FGREP
 
5189
fi
 
5190
 
 
5191
   fi
 
5192
fi
 
5193
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5194
printf "%s\n" "$ac_cv_path_FGREP" >&6; }
 
5195
 FGREP="$ac_cv_path_FGREP"
 
5196
 
 
5197
 
 
5198
test -z "$GREP" && GREP=grep
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
 
5204
 
 
5205
 
 
5206
 
 
5207
 
 
5208
 
 
5209
 
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
 
 
5215
 
 
5216
 
 
5217
 
 
5218
# Check whether --with-gnu-ld was given.
 
5219
if test ${with_gnu_ld+y}
 
5220
then :
 
5221
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 
5222
else $as_nop
 
5223
  with_gnu_ld=no
 
5224
fi
 
5225
 
 
5226
ac_prog=ld
 
5227
if test yes = "$GCC"; then
 
5228
  # Check if gcc -print-prog-name=ld gives a path.
 
5229
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5230
printf %s "checking for ld used by $CC... " >&6; }
 
5231
  case $host in
 
5232
  *-*-mingw*)
 
5233
    # gcc leaves a trailing carriage return, which upsets mingw
 
5234
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5235
  *)
 
5236
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5237
  esac
 
5238
  case $ac_prog in
 
5239
    # Accept absolute paths.
 
5240
    [\\/]* | ?:[\\/]*)
 
5241
      re_direlt='/[^/][^/]*/\.\./'
 
5242
      # Canonicalize the pathname of ld
 
5243
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5244
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5245
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5246
      done
 
5247
      test -z "$LD" && LD=$ac_prog
 
5248
      ;;
 
5249
  "")
 
5250
    # If it fails, then pretend we aren't using GCC.
 
5251
    ac_prog=ld
 
5252
    ;;
 
5253
  *)
 
5254
    # If it is relative, then search for the first ld in PATH.
 
5255
    with_gnu_ld=unknown
 
5256
    ;;
 
5257
  esac
 
5258
elif test yes = "$with_gnu_ld"; then
 
5259
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5260
printf %s "checking for GNU ld... " >&6; }
 
5261
else
 
5262
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5263
printf %s "checking for non-GNU ld... " >&6; }
 
5264
fi
 
5265
if test ${lt_cv_path_LD+y}
 
5266
then :
 
5267
  printf %s "(cached) " >&6
 
5268
else $as_nop
 
5269
  if test -z "$LD"; then
 
5270
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
5271
  for ac_dir in $PATH; do
 
5272
    IFS=$lt_save_ifs
 
5273
    test -z "$ac_dir" && ac_dir=.
 
5274
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5275
      lt_cv_path_LD=$ac_dir/$ac_prog
 
5276
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5277
      # but apparently some variants of GNU ld only accept -v.
 
5278
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5279
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5280
      *GNU* | *'with BFD'*)
 
5281
        test no != "$with_gnu_ld" && break
 
5282
        ;;
 
5283
      *)
 
5284
        test yes != "$with_gnu_ld" && break
 
5285
        ;;
 
5286
      esac
 
5287
    fi
 
5288
  done
 
5289
  IFS=$lt_save_ifs
 
5290
else
 
5291
  lt_cv_path_LD=$LD # Let the user override the test with a path.
 
5292
fi
 
5293
fi
 
5294
 
 
5295
LD=$lt_cv_path_LD
 
5296
if test -n "$LD"; then
 
5297
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5298
printf "%s\n" "$LD" >&6; }
 
5299
else
 
5300
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5301
printf "%s\n" "no" >&6; }
 
5302
fi
 
5303
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5304
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5305
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
 
5306
if test ${lt_cv_prog_gnu_ld+y}
 
5307
then :
 
5308
  printf %s "(cached) " >&6
 
5309
else $as_nop
 
5310
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5311
case `$LD -v 2>&1 </dev/null` in
 
5312
*GNU* | *'with BFD'*)
 
5313
  lt_cv_prog_gnu_ld=yes
 
5314
  ;;
 
5315
*)
 
5316
  lt_cv_prog_gnu_ld=no
 
5317
  ;;
 
5318
esac
 
5319
fi
 
5320
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5321
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
 
5322
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5333
printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5334
if test ${lt_cv_path_NM+y}
 
5335
then :
 
5336
  printf %s "(cached) " >&6
 
5337
else $as_nop
 
5338
  if test -n "$NM"; then
 
5339
  # Let the user override the test.
 
5340
  lt_cv_path_NM=$NM
 
5341
else
 
5342
  lt_nm_to_check=${ac_tool_prefix}nm
 
5343
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5344
    lt_nm_to_check="$lt_nm_to_check nm"
 
5345
  fi
 
5346
  for lt_tmp_nm in $lt_nm_to_check; do
 
5347
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
5348
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5349
      IFS=$lt_save_ifs
 
5350
      test -z "$ac_dir" && ac_dir=.
 
5351
      tmp_nm=$ac_dir/$lt_tmp_nm
 
5352
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 
5353
        # Check to see if the nm accepts a BSD-compat flag.
 
5354
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 
5355
        #   nm: unknown option "B" ignored
 
5356
        # Tru64's nm complains that /dev/null is an invalid object file
 
5357
        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 
5358
        case $build_os in
 
5359
        mingw*) lt_bad_file=conftest.nm/nofile ;;
 
5360
        *) lt_bad_file=/dev/null ;;
 
5361
        esac
 
5362
        case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
 
5363
        *$lt_bad_file* | *'Invalid file or object type'*)
 
5364
          lt_cv_path_NM="$tmp_nm -B"
 
5365
          break 2
 
5366
          ;;
 
5367
        *)
 
5368
          case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
 
5369
          */dev/null*)
 
5370
            lt_cv_path_NM="$tmp_nm -p"
 
5371
            break 2
 
5372
            ;;
 
5373
          *)
 
5374
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5375
            continue # so that we can try to find one that supports BSD flags
 
5376
            ;;
 
5377
          esac
 
5378
          ;;
 
5379
        esac
 
5380
      fi
 
5381
    done
 
5382
    IFS=$lt_save_ifs
 
5383
  done
 
5384
  : ${lt_cv_path_NM=no}
 
5385
fi
 
5386
fi
 
5387
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5388
printf "%s\n" "$lt_cv_path_NM" >&6; }
 
5389
if test no != "$lt_cv_path_NM"; then
 
5390
  NM=$lt_cv_path_NM
 
5391
else
 
5392
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5393
  if test -n "$DUMPBIN"; then :
 
5394
    # Let the user override the test.
 
5395
  else
 
5396
    if test -n "$ac_tool_prefix"; then
 
5397
  for ac_prog in dumpbin "link -dump"
 
5398
  do
 
5399
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5401
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5402
printf %s "checking for $ac_word... " >&6; }
 
5403
if test ${ac_cv_prog_DUMPBIN+y}
 
5404
then :
 
5405
  printf %s "(cached) " >&6
 
5406
else $as_nop
 
5407
  if test -n "$DUMPBIN"; then
 
5408
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5409
else
 
5410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5411
for as_dir in $PATH
 
5412
do
 
5413
  IFS=$as_save_IFS
 
5414
  case $as_dir in #(((
 
5415
    '') as_dir=./ ;;
 
5416
    */) ;;
 
5417
    *) as_dir=$as_dir/ ;;
 
5418
  esac
 
5419
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5420
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
5421
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5422
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
5423
    break 2
 
5424
  fi
 
5425
done
 
5426
  done
 
5427
IFS=$as_save_IFS
 
5428
 
 
5429
fi
 
5430
fi
 
5431
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5432
if test -n "$DUMPBIN"; then
 
5433
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5434
printf "%s\n" "$DUMPBIN" >&6; }
 
5435
else
 
5436
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5437
printf "%s\n" "no" >&6; }
 
5438
fi
 
5439
 
 
5440
 
 
5441
    test -n "$DUMPBIN" && break
 
5442
  done
 
5443
fi
 
5444
if test -z "$DUMPBIN"; then
 
5445
  ac_ct_DUMPBIN=$DUMPBIN
 
5446
  for ac_prog in dumpbin "link -dump"
 
5447
do
 
5448
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5449
set dummy $ac_prog; ac_word=$2
 
5450
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5451
printf %s "checking for $ac_word... " >&6; }
 
5452
if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
 
5453
then :
 
5454
  printf %s "(cached) " >&6
 
5455
else $as_nop
 
5456
  if test -n "$ac_ct_DUMPBIN"; then
 
5457
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5458
else
 
5459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5460
for as_dir in $PATH
 
5461
do
 
5462
  IFS=$as_save_IFS
 
5463
  case $as_dir in #(((
 
5464
    '') as_dir=./ ;;
 
5465
    */) ;;
 
5466
    *) as_dir=$as_dir/ ;;
 
5467
  esac
 
5468
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5469
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
5470
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5471
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
5472
    break 2
 
5473
  fi
 
5474
done
 
5475
  done
 
5476
IFS=$as_save_IFS
 
5477
 
 
5478
fi
 
5479
fi
 
5480
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5481
if test -n "$ac_ct_DUMPBIN"; then
 
5482
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5483
printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
 
5484
else
 
5485
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5486
printf "%s\n" "no" >&6; }
 
5487
fi
 
5488
 
 
5489
 
 
5490
  test -n "$ac_ct_DUMPBIN" && break
 
5491
done
 
5492
 
 
5493
  if test "x$ac_ct_DUMPBIN" = x; then
 
5494
    DUMPBIN=":"
 
5495
  else
 
5496
    case $cross_compiling:$ac_tool_warned in
 
5497
yes:)
 
5498
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5499
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5500
ac_tool_warned=yes ;;
 
5501
esac
 
5502
    DUMPBIN=$ac_ct_DUMPBIN
 
5503
  fi
 
5504
fi
 
5505
 
 
5506
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
 
5507
    *COFF*)
 
5508
      DUMPBIN="$DUMPBIN -symbols -headers"
 
5509
      ;;
 
5510
    *)
 
5511
      DUMPBIN=:
 
5512
      ;;
 
5513
    esac
 
5514
  fi
 
5515
 
 
5516
  if test : != "$DUMPBIN"; then
 
5517
    NM=$DUMPBIN
 
5518
  fi
 
5519
fi
 
5520
test -z "$NM" && NM=nm
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5528
printf %s "checking the name lister ($NM) interface... " >&6; }
 
5529
if test ${lt_cv_nm_interface+y}
 
5530
then :
 
5531
  printf %s "(cached) " >&6
 
5532
else $as_nop
 
5533
  lt_cv_nm_interface="BSD nm"
 
5534
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5535
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5536
  (eval "$ac_compile" 2>conftest.err)
 
5537
  cat conftest.err >&5
 
5538
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5539
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5540
  cat conftest.err >&5
 
5541
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5542
  cat conftest.out >&5
 
5543
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5544
    lt_cv_nm_interface="MS dumpbin"
 
5545
  fi
 
5546
  rm -f conftest*
 
5547
fi
 
5548
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5549
printf "%s\n" "$lt_cv_nm_interface" >&6; }
 
5550
 
 
5551
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5552
printf %s "checking whether ln -s works... " >&6; }
 
5553
LN_S=$as_ln_s
 
5554
if test "$LN_S" = "ln -s"; then
 
5555
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5556
printf "%s\n" "yes" >&6; }
 
5557
else
 
5558
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5559
printf "%s\n" "no, using $LN_S" >&6; }
 
5560
fi
 
5561
 
 
5562
# find the maximum length of command line arguments
 
5563
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5564
printf %s "checking the maximum length of command line arguments... " >&6; }
 
5565
if test ${lt_cv_sys_max_cmd_len+y}
 
5566
then :
 
5567
  printf %s "(cached) " >&6
 
5568
else $as_nop
 
5569
    i=0
 
5570
  teststring=ABCD
 
5571
 
 
5572
  case $build_os in
 
5573
  msdosdjgpp*)
 
5574
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5575
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5576
    # during glob expansion).  Even if it were fixed, the result of this
 
5577
    # check would be larger than it should be.
 
5578
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5579
    ;;
 
5580
 
 
5581
  gnu*)
 
5582
    # Under GNU Hurd, this test is not required because there is
 
5583
    # no limit to the length of command line arguments.
 
5584
    # Libtool will interpret -1 as no limit whatsoever
 
5585
    lt_cv_sys_max_cmd_len=-1;
 
5586
    ;;
 
5587
 
 
5588
  cygwin* | mingw* | cegcc*)
 
5589
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5590
    # about 5 minutes as the teststring grows exponentially.
 
5591
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5592
    # you end up with a "frozen" computer, even though with patience
 
5593
    # the test eventually succeeds (with a max line length of 256k).
 
5594
    # Instead, let's just punt: use the minimum linelength reported by
 
5595
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5596
    lt_cv_sys_max_cmd_len=8192;
 
5597
    ;;
 
5598
 
 
5599
  mint*)
 
5600
    # On MiNT this can take a long time and run out of memory.
 
5601
    lt_cv_sys_max_cmd_len=8192;
 
5602
    ;;
 
5603
 
 
5604
  amigaos*)
 
5605
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5606
    # So we just punt and use a minimum line length of 8192.
 
5607
    lt_cv_sys_max_cmd_len=8192;
 
5608
    ;;
 
5609
 
 
5610
  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
 
5611
    # This has been around since 386BSD, at least.  Likely further.
 
5612
    if test -x /sbin/sysctl; then
 
5613
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5614
    elif test -x /usr/sbin/sysctl; then
 
5615
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5616
    else
 
5617
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5618
    fi
 
5619
    # And add a safety zone
 
5620
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5621
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5622
    ;;
 
5623
 
 
5624
  interix*)
 
5625
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5626
    lt_cv_sys_max_cmd_len=196608
 
5627
    ;;
 
5628
 
 
5629
  os2*)
 
5630
    # The test takes a long time on OS/2.
 
5631
    lt_cv_sys_max_cmd_len=8192
 
5632
    ;;
 
5633
 
 
5634
  osf*)
 
5635
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5636
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5637
    # nice to cause kernel panics so lets avoid the loop below.
 
5638
    # First set a reasonable default.
 
5639
    lt_cv_sys_max_cmd_len=16384
 
5640
    #
 
5641
    if test -x /sbin/sysconfig; then
 
5642
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5643
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5644
      esac
 
5645
    fi
 
5646
    ;;
 
5647
  sco3.2v5*)
 
5648
    lt_cv_sys_max_cmd_len=102400
 
5649
    ;;
 
5650
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5651
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5652
    if test -n "$kargmax"; then
 
5653
      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
 
5654
    else
 
5655
      lt_cv_sys_max_cmd_len=32768
 
5656
    fi
 
5657
    ;;
 
5658
  *)
 
5659
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5660
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5661
       test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5662
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5663
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5664
    else
 
5665
      # Make teststring a little bigger before we do anything with it.
 
5666
      # a 1K string should be a reasonable start.
 
5667
      for i in 1 2 3 4 5 6 7 8; do
 
5668
        teststring=$teststring$teststring
 
5669
      done
 
5670
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5671
      # If test is not a shell built-in, we'll probably end up computing a
 
5672
      # maximum length that is only half of the actual maximum length, but
 
5673
      # we can't tell.
 
5674
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 
5675
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5676
              test 17 != "$i" # 1/2 MB should be enough
 
5677
      do
 
5678
        i=`expr $i + 1`
 
5679
        teststring=$teststring$teststring
 
5680
      done
 
5681
      # Only check the string length outside the loop.
 
5682
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5683
      teststring=
 
5684
      # Add a significant safety factor because C++ compilers can tack on
 
5685
      # massive amounts of additional arguments before passing them to the
 
5686
      # linker.  It appears as though 1/2 is a usable value.
 
5687
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5688
    fi
 
5689
    ;;
 
5690
  esac
 
5691
 
 
5692
fi
 
5693
 
 
5694
if test -n "$lt_cv_sys_max_cmd_len"; then
 
5695
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5696
printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
 
5697
else
 
5698
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5699
printf "%s\n" "none" >&6; }
 
5700
fi
 
5701
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
: ${CP="cp -f"}
 
5709
: ${MV="mv -f"}
 
5710
: ${RM="rm -f"}
 
5711
 
 
5712
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5713
  lt_unset=unset
 
5714
else
 
5715
  lt_unset=false
 
5716
fi
 
5717
 
 
5718
 
 
5719
 
 
5720
 
 
5721
 
 
5722
# test EBCDIC or ASCII
 
5723
case `echo X|tr X '\101'` in
 
5724
 A) # ASCII based system
 
5725
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5726
  lt_SP2NL='tr \040 \012'
 
5727
  lt_NL2SP='tr \015\012 \040\040'
 
5728
  ;;
 
5729
 *) # EBCDIC based system
 
5730
  lt_SP2NL='tr \100 \n'
 
5731
  lt_NL2SP='tr \r\n \100\100'
 
5732
  ;;
 
5733
esac
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5744
printf %s "checking how to convert $build file names to $host format... " >&6; }
 
5745
if test ${lt_cv_to_host_file_cmd+y}
 
5746
then :
 
5747
  printf %s "(cached) " >&6
 
5748
else $as_nop
 
5749
  case $host in
 
5750
  *-*-mingw* )
 
5751
    case $build in
 
5752
      *-*-mingw* ) # actually msys
 
5753
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5754
        ;;
 
5755
      *-*-cygwin* )
 
5756
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5757
        ;;
 
5758
      * ) # otherwise, assume *nix
 
5759
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5760
        ;;
 
5761
    esac
 
5762
    ;;
 
5763
  *-*-cygwin* )
 
5764
    case $build in
 
5765
      *-*-mingw* ) # actually msys
 
5766
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5767
        ;;
 
5768
      *-*-cygwin* )
 
5769
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5770
        ;;
 
5771
      * ) # otherwise, assume *nix
 
5772
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5773
        ;;
 
5774
    esac
 
5775
    ;;
 
5776
  * ) # unhandled hosts (and "normal" native builds)
 
5777
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5778
    ;;
 
5779
esac
 
5780
 
 
5781
fi
 
5782
 
 
5783
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5784
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5785
printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
 
5786
 
 
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5792
printf %s "checking how to convert $build file names to toolchain format... " >&6; }
 
5793
if test ${lt_cv_to_tool_file_cmd+y}
 
5794
then :
 
5795
  printf %s "(cached) " >&6
 
5796
else $as_nop
 
5797
  #assume ordinary cross tools, or native build.
 
5798
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5799
case $host in
 
5800
  *-*-mingw* )
 
5801
    case $build in
 
5802
      *-*-mingw* ) # actually msys
 
5803
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5804
        ;;
 
5805
    esac
 
5806
    ;;
 
5807
esac
 
5808
 
 
5809
fi
 
5810
 
 
5811
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5812
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5813
printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
 
5814
 
 
5815
 
 
5816
 
 
5817
 
 
5818
 
 
5819
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5820
printf %s "checking for $LD option to reload object files... " >&6; }
 
5821
if test ${lt_cv_ld_reload_flag+y}
 
5822
then :
 
5823
  printf %s "(cached) " >&6
 
5824
else $as_nop
 
5825
  lt_cv_ld_reload_flag='-r'
 
5826
fi
 
5827
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5828
printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
 
5829
reload_flag=$lt_cv_ld_reload_flag
 
5830
case $reload_flag in
 
5831
"" | " "*) ;;
 
5832
*) reload_flag=" $reload_flag" ;;
 
5833
esac
 
5834
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5835
case $host_os in
 
5836
  cygwin* | mingw* | pw32* | cegcc*)
 
5837
    if test yes != "$GCC"; then
 
5838
      reload_cmds=false
 
5839
    fi
 
5840
    ;;
 
5841
  darwin*)
 
5842
    if test yes = "$GCC"; then
 
5843
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 
5844
    else
 
5845
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5846
    fi
 
5847
    ;;
 
5848
esac
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
if test -n "$ac_tool_prefix"; then
 
5859
  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
 
5860
set dummy ${ac_tool_prefix}file; ac_word=$2
 
5861
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5862
printf %s "checking for $ac_word... " >&6; }
 
5863
if test ${ac_cv_prog_FILECMD+y}
 
5864
then :
 
5865
  printf %s "(cached) " >&6
 
5866
else $as_nop
 
5867
  if test -n "$FILECMD"; then
 
5868
  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
 
5869
else
 
5870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5871
for as_dir in $PATH
 
5872
do
 
5873
  IFS=$as_save_IFS
 
5874
  case $as_dir in #(((
 
5875
    '') as_dir=./ ;;
 
5876
    */) ;;
 
5877
    *) as_dir=$as_dir/ ;;
 
5878
  esac
 
5879
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5880
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
5881
    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
 
5882
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
5883
    break 2
 
5884
  fi
 
5885
done
 
5886
  done
 
5887
IFS=$as_save_IFS
 
5888
 
 
5889
fi
 
5890
fi
 
5891
FILECMD=$ac_cv_prog_FILECMD
 
5892
if test -n "$FILECMD"; then
 
5893
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
 
5894
printf "%s\n" "$FILECMD" >&6; }
 
5895
else
 
5896
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5897
printf "%s\n" "no" >&6; }
 
5898
fi
 
5899
 
 
5900
 
 
5901
fi
 
5902
if test -z "$ac_cv_prog_FILECMD"; then
 
5903
  ac_ct_FILECMD=$FILECMD
 
5904
  # Extract the first word of "file", so it can be a program name with args.
 
5905
set dummy file; ac_word=$2
 
5906
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5907
printf %s "checking for $ac_word... " >&6; }
 
5908
if test ${ac_cv_prog_ac_ct_FILECMD+y}
 
5909
then :
 
5910
  printf %s "(cached) " >&6
 
5911
else $as_nop
 
5912
  if test -n "$ac_ct_FILECMD"; then
 
5913
  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
 
5914
else
 
5915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5916
for as_dir in $PATH
 
5917
do
 
5918
  IFS=$as_save_IFS
 
5919
  case $as_dir in #(((
 
5920
    '') as_dir=./ ;;
 
5921
    */) ;;
 
5922
    *) as_dir=$as_dir/ ;;
 
5923
  esac
 
5924
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5925
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
5926
    ac_cv_prog_ac_ct_FILECMD="file"
 
5927
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
5928
    break 2
 
5929
  fi
 
5930
done
 
5931
  done
 
5932
IFS=$as_save_IFS
 
5933
 
 
5934
fi
 
5935
fi
 
5936
ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
 
5937
if test -n "$ac_ct_FILECMD"; then
 
5938
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
 
5939
printf "%s\n" "$ac_ct_FILECMD" >&6; }
 
5940
else
 
5941
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5942
printf "%s\n" "no" >&6; }
 
5943
fi
 
5944
 
 
5945
  if test "x$ac_ct_FILECMD" = x; then
 
5946
    FILECMD=":"
 
5947
  else
 
5948
    case $cross_compiling:$ac_tool_warned in
 
5949
yes:)
 
5950
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5951
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5952
ac_tool_warned=yes ;;
 
5953
esac
 
5954
    FILECMD=$ac_ct_FILECMD
 
5955
  fi
 
5956
else
 
5957
  FILECMD="$ac_cv_prog_FILECMD"
 
5958
fi
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
if test -n "$ac_tool_prefix"; then
 
5967
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5968
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5969
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5970
printf %s "checking for $ac_word... " >&6; }
 
5971
if test ${ac_cv_prog_OBJDUMP+y}
 
5972
then :
 
5973
  printf %s "(cached) " >&6
 
5974
else $as_nop
 
5975
  if test -n "$OBJDUMP"; then
 
5976
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5977
else
 
5978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5979
for as_dir in $PATH
 
5980
do
 
5981
  IFS=$as_save_IFS
 
5982
  case $as_dir in #(((
 
5983
    '') as_dir=./ ;;
 
5984
    */) ;;
 
5985
    *) as_dir=$as_dir/ ;;
 
5986
  esac
 
5987
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5988
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
5989
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5990
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
5991
    break 2
 
5992
  fi
 
5993
done
 
5994
  done
 
5995
IFS=$as_save_IFS
 
5996
 
 
5997
fi
 
5998
fi
 
5999
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6000
if test -n "$OBJDUMP"; then
 
6001
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6002
printf "%s\n" "$OBJDUMP" >&6; }
 
6003
else
 
6004
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6005
printf "%s\n" "no" >&6; }
 
6006
fi
 
6007
 
 
6008
 
 
6009
fi
 
6010
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6011
  ac_ct_OBJDUMP=$OBJDUMP
 
6012
  # Extract the first word of "objdump", so it can be a program name with args.
 
6013
set dummy objdump; ac_word=$2
 
6014
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6015
printf %s "checking for $ac_word... " >&6; }
 
6016
if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
 
6017
then :
 
6018
  printf %s "(cached) " >&6
 
6019
else $as_nop
 
6020
  if test -n "$ac_ct_OBJDUMP"; then
 
6021
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6022
else
 
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6024
for as_dir in $PATH
 
6025
do
 
6026
  IFS=$as_save_IFS
 
6027
  case $as_dir in #(((
 
6028
    '') as_dir=./ ;;
 
6029
    */) ;;
 
6030
    *) as_dir=$as_dir/ ;;
 
6031
  esac
 
6032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6033
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6034
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6035
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6036
    break 2
 
6037
  fi
 
6038
done
 
6039
  done
 
6040
IFS=$as_save_IFS
 
6041
 
 
6042
fi
 
6043
fi
 
6044
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6045
if test -n "$ac_ct_OBJDUMP"; then
 
6046
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6047
printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
 
6048
else
 
6049
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6050
printf "%s\n" "no" >&6; }
 
6051
fi
 
6052
 
 
6053
  if test "x$ac_ct_OBJDUMP" = x; then
 
6054
    OBJDUMP="false"
 
6055
  else
 
6056
    case $cross_compiling:$ac_tool_warned in
 
6057
yes:)
 
6058
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6059
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6060
ac_tool_warned=yes ;;
 
6061
esac
 
6062
    OBJDUMP=$ac_ct_OBJDUMP
 
6063
  fi
 
6064
else
 
6065
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6066
fi
 
6067
 
 
6068
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
 
 
6077
 
 
6078
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6079
printf %s "checking how to recognize dependent libraries... " >&6; }
 
6080
if test ${lt_cv_deplibs_check_method+y}
 
6081
then :
 
6082
  printf %s "(cached) " >&6
 
6083
else $as_nop
 
6084
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6085
lt_cv_file_magic_test_file=
 
6086
lt_cv_deplibs_check_method='unknown'
 
6087
# Need to set the preceding variable on all platforms that support
 
6088
# interlibrary dependencies.
 
6089
# 'none' -- dependencies not supported.
 
6090
# 'unknown' -- same as none, but documents that we really don't know.
 
6091
# 'pass_all' -- all dependencies passed with no checks.
 
6092
# 'test_compile' -- check by making test program.
 
6093
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6094
# that responds to the $file_magic_cmd with a given extended regex.
 
6095
# If you have 'file' or equivalent on your system and you're not sure
 
6096
# whether 'pass_all' will *always* work, you probably want this one.
 
6097
 
 
6098
case $host_os in
 
6099
aix[4-9]*)
 
6100
  lt_cv_deplibs_check_method=pass_all
 
6101
  ;;
 
6102
 
 
6103
beos*)
 
6104
  lt_cv_deplibs_check_method=pass_all
 
6105
  ;;
 
6106
 
 
6107
bsdi[45]*)
 
6108
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6109
  lt_cv_file_magic_cmd='$FILECMD -L'
 
6110
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6111
  ;;
 
6112
 
 
6113
cygwin*)
 
6114
  # func_win32_libid is a shell function defined in ltmain.sh
 
6115
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6116
  lt_cv_file_magic_cmd='func_win32_libid'
 
6117
  ;;
 
6118
 
 
6119
mingw* | pw32*)
 
6120
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6121
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6122
  # unless we find 'file', for example because we are cross-compiling.
 
6123
  if ( file / ) >/dev/null 2>&1; then
 
6124
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6125
    lt_cv_file_magic_cmd='func_win32_libid'
 
6126
  else
 
6127
    # Keep this pattern in sync with the one in func_win32_libid.
 
6128
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6129
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6130
  fi
 
6131
  ;;
 
6132
 
 
6133
cegcc*)
 
6134
  # use the weaker test based on 'objdump'. See mingw*.
 
6135
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6136
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6137
  ;;
 
6138
 
 
6139
darwin* | rhapsody*)
 
6140
  lt_cv_deplibs_check_method=pass_all
 
6141
  ;;
 
6142
 
 
6143
freebsd* | dragonfly* | midnightbsd*)
 
6144
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6145
    case $host_cpu in
 
6146
    i*86 )
 
6147
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6148
      # Let's accept both of them until this is cleared up.
 
6149
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6150
      lt_cv_file_magic_cmd=$FILECMD
 
6151
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6152
      ;;
 
6153
    esac
 
6154
  else
 
6155
    lt_cv_deplibs_check_method=pass_all
 
6156
  fi
 
6157
  ;;
 
6158
 
 
6159
haiku*)
 
6160
  lt_cv_deplibs_check_method=pass_all
 
6161
  ;;
 
6162
 
 
6163
hpux10.20* | hpux11*)
 
6164
  lt_cv_file_magic_cmd=$FILECMD
 
6165
  case $host_cpu in
 
6166
  ia64*)
 
6167
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6168
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6169
    ;;
 
6170
  hppa*64*)
 
6171
    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]'
 
6172
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6173
    ;;
 
6174
  *)
 
6175
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6176
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6177
    ;;
 
6178
  esac
 
6179
  ;;
 
6180
 
 
6181
interix[3-9]*)
 
6182
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6183
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6184
  ;;
 
6185
 
 
6186
irix5* | irix6* | nonstopux*)
 
6187
  case $LD in
 
6188
  *-32|*"-32 ") libmagic=32-bit;;
 
6189
  *-n32|*"-n32 ") libmagic=N32;;
 
6190
  *-64|*"-64 ") libmagic=64-bit;;
 
6191
  *) libmagic=never-match;;
 
6192
  esac
 
6193
  lt_cv_deplibs_check_method=pass_all
 
6194
  ;;
 
6195
 
 
6196
# This must be glibc/ELF.
 
6197
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
6198
  lt_cv_deplibs_check_method=pass_all
 
6199
  ;;
 
6200
 
 
6201
netbsd*)
 
6202
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6203
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6204
  else
 
6205
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6206
  fi
 
6207
  ;;
 
6208
 
 
6209
newos6*)
 
6210
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6211
  lt_cv_file_magic_cmd=$FILECMD
 
6212
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6213
  ;;
 
6214
 
 
6215
*nto* | *qnx*)
 
6216
  lt_cv_deplibs_check_method=pass_all
 
6217
  ;;
 
6218
 
 
6219
openbsd* | bitrig*)
 
6220
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
6221
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6222
  else
 
6223
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6224
  fi
 
6225
  ;;
 
6226
 
 
6227
osf3* | osf4* | osf5*)
 
6228
  lt_cv_deplibs_check_method=pass_all
 
6229
  ;;
 
6230
 
 
6231
rdos*)
 
6232
  lt_cv_deplibs_check_method=pass_all
 
6233
  ;;
 
6234
 
 
6235
solaris*)
 
6236
  lt_cv_deplibs_check_method=pass_all
 
6237
  ;;
 
6238
 
 
6239
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6240
  lt_cv_deplibs_check_method=pass_all
 
6241
  ;;
 
6242
 
 
6243
sysv4 | sysv4.3*)
 
6244
  case $host_vendor in
 
6245
  motorola)
 
6246
    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]'
 
6247
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6248
    ;;
 
6249
  ncr)
 
6250
    lt_cv_deplibs_check_method=pass_all
 
6251
    ;;
 
6252
  sequent)
 
6253
    lt_cv_file_magic_cmd='/bin/file'
 
6254
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6255
    ;;
 
6256
  sni)
 
6257
    lt_cv_file_magic_cmd='/bin/file'
 
6258
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6259
    lt_cv_file_magic_test_file=/lib/libc.so
 
6260
    ;;
 
6261
  siemens)
 
6262
    lt_cv_deplibs_check_method=pass_all
 
6263
    ;;
 
6264
  pc)
 
6265
    lt_cv_deplibs_check_method=pass_all
 
6266
    ;;
 
6267
  esac
 
6268
  ;;
 
6269
 
 
6270
tpf*)
 
6271
  lt_cv_deplibs_check_method=pass_all
 
6272
  ;;
 
6273
os2*)
 
6274
  lt_cv_deplibs_check_method=pass_all
 
6275
  ;;
 
6276
esac
 
6277
 
 
6278
fi
 
6279
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6280
printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
 
6281
 
 
6282
file_magic_glob=
 
6283
want_nocaseglob=no
 
6284
if test "$build" = "$host"; then
 
6285
  case $host_os in
 
6286
  mingw* | pw32*)
 
6287
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6288
      want_nocaseglob=yes
 
6289
    else
 
6290
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6291
    fi
 
6292
    ;;
 
6293
  esac
 
6294
fi
 
6295
 
 
6296
file_magic_cmd=$lt_cv_file_magic_cmd
 
6297
deplibs_check_method=$lt_cv_deplibs_check_method
 
6298
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6299
 
 
6300
 
 
6301
 
 
6302
 
 
6303
 
 
6304
 
 
6305
 
 
6306
 
 
6307
 
 
6308
 
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
 
 
6314
 
 
6315
 
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
if test -n "$ac_tool_prefix"; then
 
6322
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6323
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6324
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6325
printf %s "checking for $ac_word... " >&6; }
 
6326
if test ${ac_cv_prog_DLLTOOL+y}
 
6327
then :
 
6328
  printf %s "(cached) " >&6
 
6329
else $as_nop
 
6330
  if test -n "$DLLTOOL"; then
 
6331
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6332
else
 
6333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6334
for as_dir in $PATH
 
6335
do
 
6336
  IFS=$as_save_IFS
 
6337
  case $as_dir in #(((
 
6338
    '') as_dir=./ ;;
 
6339
    */) ;;
 
6340
    *) as_dir=$as_dir/ ;;
 
6341
  esac
 
6342
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6343
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6344
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6345
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6346
    break 2
 
6347
  fi
 
6348
done
 
6349
  done
 
6350
IFS=$as_save_IFS
 
6351
 
 
6352
fi
 
6353
fi
 
6354
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6355
if test -n "$DLLTOOL"; then
 
6356
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6357
printf "%s\n" "$DLLTOOL" >&6; }
 
6358
else
 
6359
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6360
printf "%s\n" "no" >&6; }
 
6361
fi
 
6362
 
 
6363
 
 
6364
fi
 
6365
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6366
  ac_ct_DLLTOOL=$DLLTOOL
 
6367
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6368
set dummy dlltool; ac_word=$2
 
6369
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6370
printf %s "checking for $ac_word... " >&6; }
 
6371
if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
 
6372
then :
 
6373
  printf %s "(cached) " >&6
 
6374
else $as_nop
 
6375
  if test -n "$ac_ct_DLLTOOL"; then
 
6376
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6377
else
 
6378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6379
for as_dir in $PATH
 
6380
do
 
6381
  IFS=$as_save_IFS
 
6382
  case $as_dir in #(((
 
6383
    '') as_dir=./ ;;
 
6384
    */) ;;
 
6385
    *) as_dir=$as_dir/ ;;
 
6386
  esac
 
6387
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6388
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6389
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6390
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6391
    break 2
 
6392
  fi
 
6393
done
 
6394
  done
 
6395
IFS=$as_save_IFS
 
6396
 
 
6397
fi
 
6398
fi
 
6399
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6400
if test -n "$ac_ct_DLLTOOL"; then
 
6401
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6402
printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
 
6403
else
 
6404
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6405
printf "%s\n" "no" >&6; }
 
6406
fi
 
6407
 
 
6408
  if test "x$ac_ct_DLLTOOL" = x; then
 
6409
    DLLTOOL="false"
 
6410
  else
 
6411
    case $cross_compiling:$ac_tool_warned in
 
6412
yes:)
 
6413
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6414
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6415
ac_tool_warned=yes ;;
 
6416
esac
 
6417
    DLLTOOL=$ac_ct_DLLTOOL
 
6418
  fi
 
6419
else
 
6420
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6421
fi
 
6422
 
 
6423
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6424
 
 
6425
 
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6435
printf %s "checking how to associate runtime and link libraries... " >&6; }
 
6436
if test ${lt_cv_sharedlib_from_linklib_cmd+y}
 
6437
then :
 
6438
  printf %s "(cached) " >&6
 
6439
else $as_nop
 
6440
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6441
 
 
6442
case $host_os in
 
6443
cygwin* | mingw* | pw32* | cegcc*)
 
6444
  # two different shell functions defined in ltmain.sh;
 
6445
  # decide which one to use based on capabilities of $DLLTOOL
 
6446
  case `$DLLTOOL --help 2>&1` in
 
6447
  *--identify-strict*)
 
6448
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6449
    ;;
 
6450
  *)
 
6451
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6452
    ;;
 
6453
  esac
 
6454
  ;;
 
6455
*)
 
6456
  # fallback: assume linklib IS sharedlib
 
6457
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
 
6458
  ;;
 
6459
esac
 
6460
 
 
6461
fi
 
6462
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6463
printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6464
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6465
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6466
 
 
6467
 
 
6468
 
 
6469
 
 
6470
 
 
6471
 
 
6472
 
 
6473
if test -n "$ac_tool_prefix"; then
 
6474
  for ac_prog in ar
 
6475
  do
 
6476
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6477
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6478
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6479
printf %s "checking for $ac_word... " >&6; }
 
6480
if test ${ac_cv_prog_AR+y}
 
6481
then :
 
6482
  printf %s "(cached) " >&6
 
6483
else $as_nop
 
6484
  if test -n "$AR"; then
 
6485
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6486
else
 
6487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6488
for as_dir in $PATH
 
6489
do
 
6490
  IFS=$as_save_IFS
 
6491
  case $as_dir in #(((
 
6492
    '') as_dir=./ ;;
 
6493
    */) ;;
 
6494
    *) as_dir=$as_dir/ ;;
 
6495
  esac
 
6496
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6497
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6498
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6499
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6500
    break 2
 
6501
  fi
 
6502
done
 
6503
  done
 
6504
IFS=$as_save_IFS
 
6505
 
 
6506
fi
 
6507
fi
 
6508
AR=$ac_cv_prog_AR
 
6509
if test -n "$AR"; then
 
6510
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6511
printf "%s\n" "$AR" >&6; }
 
6512
else
 
6513
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6514
printf "%s\n" "no" >&6; }
 
6515
fi
 
6516
 
 
6517
 
 
6518
    test -n "$AR" && break
 
6519
  done
 
6520
fi
 
6521
if test -z "$AR"; then
 
6522
  ac_ct_AR=$AR
 
6523
  for ac_prog in ar
 
6524
do
 
6525
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6526
set dummy $ac_prog; ac_word=$2
 
6527
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6528
printf %s "checking for $ac_word... " >&6; }
 
6529
if test ${ac_cv_prog_ac_ct_AR+y}
 
6530
then :
 
6531
  printf %s "(cached) " >&6
 
6532
else $as_nop
 
6533
  if test -n "$ac_ct_AR"; then
 
6534
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6535
else
 
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6537
for as_dir in $PATH
 
6538
do
 
6539
  IFS=$as_save_IFS
 
6540
  case $as_dir in #(((
 
6541
    '') as_dir=./ ;;
 
6542
    */) ;;
 
6543
    *) as_dir=$as_dir/ ;;
 
6544
  esac
 
6545
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6546
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6547
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6548
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6549
    break 2
 
6550
  fi
 
6551
done
 
6552
  done
 
6553
IFS=$as_save_IFS
 
6554
 
 
6555
fi
 
6556
fi
 
6557
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6558
if test -n "$ac_ct_AR"; then
 
6559
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6560
printf "%s\n" "$ac_ct_AR" >&6; }
 
6561
else
 
6562
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6563
printf "%s\n" "no" >&6; }
 
6564
fi
 
6565
 
 
6566
 
 
6567
  test -n "$ac_ct_AR" && break
 
6568
done
 
6569
 
 
6570
  if test "x$ac_ct_AR" = x; then
 
6571
    AR="false"
 
6572
  else
 
6573
    case $cross_compiling:$ac_tool_warned in
 
6574
yes:)
 
6575
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6576
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6577
ac_tool_warned=yes ;;
 
6578
esac
 
6579
    AR=$ac_ct_AR
 
6580
  fi
 
6581
fi
 
6582
 
 
6583
: ${AR=ar}
 
6584
 
 
6585
 
 
6586
 
 
6587
 
 
6588
 
 
6589
 
 
6590
# Use ARFLAGS variable as AR's operation code to sync the variable naming with
 
6591
# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
 
6592
# higher priority because thats what people were doing historically (setting
 
6593
# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
 
6594
# variable obsoleted/removed.
 
6595
 
 
6596
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
 
6597
lt_ar_flags=$AR_FLAGS
 
6598
 
 
6599
 
 
6600
 
 
6601
 
 
6602
 
 
6603
 
 
6604
# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
 
6605
# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
 
6606
 
 
6607
 
 
6608
 
 
6609
 
 
6610
 
 
6611
 
 
6612
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6613
printf %s "checking for archiver @FILE support... " >&6; }
 
6614
if test ${lt_cv_ar_at_file+y}
 
6615
then :
 
6616
  printf %s "(cached) " >&6
 
6617
else $as_nop
 
6618
  lt_cv_ar_at_file=no
 
6619
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6620
/* end confdefs.h.  */
 
6621
 
 
6622
int
 
6623
main (void)
 
6624
{
 
6625
 
 
6626
  ;
 
6627
  return 0;
 
6628
}
 
6629
_ACEOF
 
6630
if ac_fn_c_try_compile "$LINENO"
 
6631
then :
 
6632
  echo conftest.$ac_objext > conftest.lst
 
6633
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6634
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6635
  (eval $lt_ar_try) 2>&5
 
6636
  ac_status=$?
 
6637
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6638
  test $ac_status = 0; }
 
6639
      if test 0 -eq "$ac_status"; then
 
6640
        # Ensure the archiver fails upon bogus file names.
 
6641
        rm -f conftest.$ac_objext libconftest.a
 
6642
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6643
  (eval $lt_ar_try) 2>&5
 
6644
  ac_status=$?
 
6645
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6646
  test $ac_status = 0; }
 
6647
        if test 0 -ne "$ac_status"; then
 
6648
          lt_cv_ar_at_file=@
 
6649
        fi
 
6650
      fi
 
6651
      rm -f conftest.* libconftest.a
 
6652
 
 
6653
fi
 
6654
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6655
 
 
6656
fi
 
6657
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6658
printf "%s\n" "$lt_cv_ar_at_file" >&6; }
 
6659
 
 
6660
if test no = "$lt_cv_ar_at_file"; then
 
6661
  archiver_list_spec=
 
6662
else
 
6663
  archiver_list_spec=$lt_cv_ar_at_file
 
6664
fi
 
6665
 
 
6666
 
 
6667
 
 
6668
 
 
6669
 
 
6670
 
 
6671
 
 
6672
if test -n "$ac_tool_prefix"; then
 
6673
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6674
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6675
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6676
printf %s "checking for $ac_word... " >&6; }
 
6677
if test ${ac_cv_prog_STRIP+y}
 
6678
then :
 
6679
  printf %s "(cached) " >&6
 
6680
else $as_nop
 
6681
  if test -n "$STRIP"; then
 
6682
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6683
else
 
6684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6685
for as_dir in $PATH
 
6686
do
 
6687
  IFS=$as_save_IFS
 
6688
  case $as_dir in #(((
 
6689
    '') as_dir=./ ;;
 
6690
    */) ;;
 
6691
    *) as_dir=$as_dir/ ;;
 
6692
  esac
 
6693
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6694
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6695
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6696
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6697
    break 2
 
6698
  fi
 
6699
done
 
6700
  done
 
6701
IFS=$as_save_IFS
 
6702
 
 
6703
fi
 
6704
fi
 
6705
STRIP=$ac_cv_prog_STRIP
 
6706
if test -n "$STRIP"; then
 
6707
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6708
printf "%s\n" "$STRIP" >&6; }
 
6709
else
 
6710
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6711
printf "%s\n" "no" >&6; }
 
6712
fi
 
6713
 
 
6714
 
 
6715
fi
 
6716
if test -z "$ac_cv_prog_STRIP"; then
 
6717
  ac_ct_STRIP=$STRIP
 
6718
  # Extract the first word of "strip", so it can be a program name with args.
 
6719
set dummy strip; ac_word=$2
 
6720
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6721
printf %s "checking for $ac_word... " >&6; }
 
6722
if test ${ac_cv_prog_ac_ct_STRIP+y}
 
6723
then :
 
6724
  printf %s "(cached) " >&6
 
6725
else $as_nop
 
6726
  if test -n "$ac_ct_STRIP"; then
 
6727
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6728
else
 
6729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6730
for as_dir in $PATH
 
6731
do
 
6732
  IFS=$as_save_IFS
 
6733
  case $as_dir in #(((
 
6734
    '') as_dir=./ ;;
 
6735
    */) ;;
 
6736
    *) as_dir=$as_dir/ ;;
 
6737
  esac
 
6738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6739
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6740
    ac_cv_prog_ac_ct_STRIP="strip"
 
6741
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6742
    break 2
 
6743
  fi
 
6744
done
 
6745
  done
 
6746
IFS=$as_save_IFS
 
6747
 
 
6748
fi
 
6749
fi
 
6750
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6751
if test -n "$ac_ct_STRIP"; then
 
6752
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6753
printf "%s\n" "$ac_ct_STRIP" >&6; }
 
6754
else
 
6755
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6756
printf "%s\n" "no" >&6; }
 
6757
fi
 
6758
 
 
6759
  if test "x$ac_ct_STRIP" = x; then
 
6760
    STRIP=":"
 
6761
  else
 
6762
    case $cross_compiling:$ac_tool_warned in
 
6763
yes:)
 
6764
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6765
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6766
ac_tool_warned=yes ;;
 
6767
esac
 
6768
    STRIP=$ac_ct_STRIP
 
6769
  fi
 
6770
else
 
6771
  STRIP="$ac_cv_prog_STRIP"
 
6772
fi
 
6773
 
 
6774
test -z "$STRIP" && STRIP=:
 
6775
 
 
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
if test -n "$ac_tool_prefix"; then
 
6782
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6783
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6784
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6785
printf %s "checking for $ac_word... " >&6; }
 
6786
if test ${ac_cv_prog_RANLIB+y}
 
6787
then :
 
6788
  printf %s "(cached) " >&6
 
6789
else $as_nop
 
6790
  if test -n "$RANLIB"; then
 
6791
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6792
else
 
6793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6794
for as_dir in $PATH
 
6795
do
 
6796
  IFS=$as_save_IFS
 
6797
  case $as_dir in #(((
 
6798
    '') as_dir=./ ;;
 
6799
    */) ;;
 
6800
    *) as_dir=$as_dir/ ;;
 
6801
  esac
 
6802
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6803
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6804
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6805
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6806
    break 2
 
6807
  fi
 
6808
done
 
6809
  done
 
6810
IFS=$as_save_IFS
 
6811
 
 
6812
fi
 
6813
fi
 
6814
RANLIB=$ac_cv_prog_RANLIB
 
6815
if test -n "$RANLIB"; then
 
6816
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6817
printf "%s\n" "$RANLIB" >&6; }
 
6818
else
 
6819
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6820
printf "%s\n" "no" >&6; }
 
6821
fi
 
6822
 
 
6823
 
 
6824
fi
 
6825
if test -z "$ac_cv_prog_RANLIB"; then
 
6826
  ac_ct_RANLIB=$RANLIB
 
6827
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6828
set dummy ranlib; ac_word=$2
 
6829
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6830
printf %s "checking for $ac_word... " >&6; }
 
6831
if test ${ac_cv_prog_ac_ct_RANLIB+y}
 
6832
then :
 
6833
  printf %s "(cached) " >&6
 
6834
else $as_nop
 
6835
  if test -n "$ac_ct_RANLIB"; then
 
6836
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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
  case $as_dir in #(((
 
6843
    '') as_dir=./ ;;
 
6844
    */) ;;
 
6845
    *) as_dir=$as_dir/ ;;
 
6846
  esac
 
6847
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6848
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
6849
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6850
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
6851
    break 2
 
6852
  fi
 
6853
done
 
6854
  done
 
6855
IFS=$as_save_IFS
 
6856
 
 
6857
fi
 
6858
fi
 
6859
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6860
if test -n "$ac_ct_RANLIB"; then
 
6861
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6862
printf "%s\n" "$ac_ct_RANLIB" >&6; }
 
6863
else
 
6864
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6865
printf "%s\n" "no" >&6; }
 
6866
fi
 
6867
 
 
6868
  if test "x$ac_ct_RANLIB" = x; then
 
6869
    RANLIB=":"
 
6870
  else
 
6871
    case $cross_compiling:$ac_tool_warned in
 
6872
yes:)
 
6873
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6874
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6875
ac_tool_warned=yes ;;
 
6876
esac
 
6877
    RANLIB=$ac_ct_RANLIB
 
6878
  fi
 
6879
else
 
6880
  RANLIB="$ac_cv_prog_RANLIB"
 
6881
fi
 
6882
 
 
6883
test -z "$RANLIB" && RANLIB=:
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
# Determine commands to create old-style static archives.
 
6891
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6892
old_postinstall_cmds='chmod 644 $oldlib'
 
6893
old_postuninstall_cmds=
 
6894
 
 
6895
if test -n "$RANLIB"; then
 
6896
  case $host_os in
 
6897
  bitrig* | openbsd*)
 
6898
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6899
    ;;
 
6900
  *)
 
6901
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6902
    ;;
 
6903
  esac
 
6904
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6905
fi
 
6906
 
 
6907
case $host_os in
 
6908
  darwin*)
 
6909
    lock_old_archive_extraction=yes ;;
 
6910
  *)
 
6911
    lock_old_archive_extraction=no ;;
 
6912
esac
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
 
 
6919
 
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
 
 
6925
 
 
6926
 
 
6927
 
 
6928
 
 
6929
 
 
6930
 
 
6931
 
 
6932
 
 
6933
 
 
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
 
6951
 
 
6952
# If no C compiler was specified, use CC.
 
6953
LTCC=${LTCC-"$CC"}
 
6954
 
 
6955
# If no C compiler flags were specified, use CFLAGS.
 
6956
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6957
 
 
6958
# Allow CC to be a program name with arguments.
 
6959
compiler=$CC
 
6960
 
 
6961
 
 
6962
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6963
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6964
printf %s "checking command to parse $NM output from $compiler object... " >&6; }
 
6965
if test ${lt_cv_sys_global_symbol_pipe+y}
 
6966
then :
 
6967
  printf %s "(cached) " >&6
 
6968
else $as_nop
 
6969
 
 
6970
# These are sane defaults that work on at least a few old systems.
 
6971
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6972
 
 
6973
# Character class describing NM global symbol codes.
 
6974
symcode='[BCDEGRST]'
 
6975
 
 
6976
# Regexp to match symbols that can be accessed directly from C.
 
6977
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6978
 
 
6979
# Define system-specific variables.
 
6980
case $host_os in
 
6981
aix*)
 
6982
  symcode='[BCDT]'
 
6983
  ;;
 
6984
cygwin* | mingw* | pw32* | cegcc*)
 
6985
  symcode='[ABCDGISTW]'
 
6986
  ;;
 
6987
hpux*)
 
6988
  if test ia64 = "$host_cpu"; then
 
6989
    symcode='[ABCDEGRST]'
 
6990
  fi
 
6991
  ;;
 
6992
irix* | nonstopux*)
 
6993
  symcode='[BCDEGRST]'
 
6994
  ;;
 
6995
osf*)
 
6996
  symcode='[BCDEGQRST]'
 
6997
  ;;
 
6998
solaris*)
 
6999
  symcode='[BDRT]'
 
7000
  ;;
 
7001
sco3.2v5*)
 
7002
  symcode='[DT]'
 
7003
  ;;
 
7004
sysv4.2uw2*)
 
7005
  symcode='[DT]'
 
7006
  ;;
 
7007
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7008
  symcode='[ABDT]'
 
7009
  ;;
 
7010
sysv4)
 
7011
  symcode='[DFNSTU]'
 
7012
  ;;
 
7013
esac
 
7014
 
 
7015
# If we're using GNU nm, then use its standard symbol codes.
 
7016
case `$NM -V 2>&1` in
 
7017
*GNU* | *'with BFD'*)
 
7018
  symcode='[ABCDGIRSTW]' ;;
 
7019
esac
 
7020
 
 
7021
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7022
  # Gets list of data symbols to import.
 
7023
  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
 
7024
  # Adjust the below global symbol transforms to fixup imported variables.
 
7025
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 
7026
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 
7027
  lt_c_name_lib_hook="\
 
7028
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 
7029
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 
7030
else
 
7031
  # Disable hooks by default.
 
7032
  lt_cv_sys_global_symbol_to_import=
 
7033
  lt_cdecl_hook=
 
7034
  lt_c_name_hook=
 
7035
  lt_c_name_lib_hook=
 
7036
fi
 
7037
 
 
7038
# Transform an extracted symbol line into a proper C declaration.
 
7039
# Some systems (esp. on ia64) link data and code symbols differently,
 
7040
# so use this general approach.
 
7041
lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
 
7042
$lt_cdecl_hook\
 
7043
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 
7044
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 
7045
 
 
7046
# Transform an extracted symbol line into symbol name and symbol address
 
7047
lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
 
7048
$lt_c_name_hook\
 
7049
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7050
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 
7051
 
 
7052
# Transform an extracted symbol line into symbol name with lib prefix and
 
7053
# symbol address.
 
7054
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
 
7055
$lt_c_name_lib_hook\
 
7056
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7057
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 
7058
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 
7059
 
 
7060
# Handle CRLF in mingw tool chain
 
7061
opt_cr=
 
7062
case $build_os in
 
7063
mingw*)
 
7064
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7065
  ;;
 
7066
esac
 
7067
 
 
7068
# Try without a prefix underscore, then with it.
 
7069
for ac_symprfx in "" "_"; do
 
7070
 
 
7071
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7072
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7073
 
 
7074
  # Write the raw and C identifiers.
 
7075
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7076
    # Fake it for dumpbin and say T for any non-static function,
 
7077
    # D for any global variable and I for any imported variable.
 
7078
    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
 
7079
    # which start with @ or ?.
 
7080
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7081
"     {last_section=section; section=\$ 3};"\
 
7082
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
7083
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7084
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 
7085
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 
7086
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 
7087
"     \$ 0!~/External *\|/{next};"\
 
7088
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7089
"     {if(hide[section]) next};"\
 
7090
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 
7091
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 
7092
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 
7093
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 
7094
"     ' prfx=^$ac_symprfx"
 
7095
  else
 
7096
    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7097
  fi
 
7098
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
 
7099
 
 
7100
  # Check to see that the pipe works correctly.
 
7101
  pipe_works=no
 
7102
 
 
7103
  rm -f conftest*
 
7104
  cat > conftest.$ac_ext <<_LT_EOF
 
7105
#ifdef __cplusplus
 
7106
extern "C" {
 
7107
#endif
 
7108
char nm_test_var;
 
7109
void nm_test_func(void);
 
7110
void nm_test_func(void){}
 
7111
#ifdef __cplusplus
 
7112
}
 
7113
#endif
 
7114
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7115
_LT_EOF
 
7116
 
 
7117
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7118
  (eval $ac_compile) 2>&5
 
7119
  ac_status=$?
 
7120
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7121
  test $ac_status = 0; }; then
 
7122
    # Now try to grab the symbols.
 
7123
    nlist=conftest.nm
 
7124
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7125
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7126
  ac_status=$?
 
7127
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7128
  test $ac_status = 0; } && test -s "$nlist"; then
 
7129
      # Try sorting and uniquifying the output.
 
7130
      if sort "$nlist" | uniq > "$nlist"T; then
 
7131
        mv -f "$nlist"T "$nlist"
 
7132
      else
 
7133
        rm -f "$nlist"T
 
7134
      fi
 
7135
 
 
7136
      # Make sure that we snagged all the symbols we need.
 
7137
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7138
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7139
          cat <<_LT_EOF > conftest.$ac_ext
 
7140
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7141
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 
7142
/* DATA imports from DLLs on WIN32 can't be const, because runtime
 
7143
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7144
# define LT_DLSYM_CONST
 
7145
#elif defined __osf__
 
7146
/* This system does not cope well with relocations in const data.  */
 
7147
# define LT_DLSYM_CONST
 
7148
#else
 
7149
# define LT_DLSYM_CONST const
 
7150
#endif
 
7151
 
 
7152
#ifdef __cplusplus
 
7153
extern "C" {
 
7154
#endif
 
7155
 
 
7156
_LT_EOF
 
7157
          # Now generate the symbol file.
 
7158
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7159
 
 
7160
          cat <<_LT_EOF >> conftest.$ac_ext
 
7161
 
 
7162
/* The mapping between symbol names and symbols.  */
 
7163
LT_DLSYM_CONST struct {
 
7164
  const char *name;
 
7165
  void       *address;
 
7166
}
 
7167
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7168
{
 
7169
  { "@PROGRAM@", (void *) 0 },
 
7170
_LT_EOF
 
7171
          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7172
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7173
  {0, (void *) 0}
 
7174
};
 
7175
 
 
7176
/* This works around a problem in FreeBSD linker */
 
7177
#ifdef FREEBSD_WORKAROUND
 
7178
static const void *lt_preloaded_setup() {
 
7179
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7180
}
 
7181
#endif
 
7182
 
 
7183
#ifdef __cplusplus
 
7184
}
 
7185
#endif
 
7186
_LT_EOF
 
7187
          # Now try linking the two files.
 
7188
          mv conftest.$ac_objext conftstm.$ac_objext
 
7189
          lt_globsym_save_LIBS=$LIBS
 
7190
          lt_globsym_save_CFLAGS=$CFLAGS
 
7191
          LIBS=conftstm.$ac_objext
 
7192
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7193
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7194
  (eval $ac_link) 2>&5
 
7195
  ac_status=$?
 
7196
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7197
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
7198
            pipe_works=yes
 
7199
          fi
 
7200
          LIBS=$lt_globsym_save_LIBS
 
7201
          CFLAGS=$lt_globsym_save_CFLAGS
 
7202
        else
 
7203
          echo "cannot find nm_test_func in $nlist" >&5
 
7204
        fi
 
7205
      else
 
7206
        echo "cannot find nm_test_var in $nlist" >&5
 
7207
      fi
 
7208
    else
 
7209
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7210
    fi
 
7211
  else
 
7212
    echo "$progname: failed program was:" >&5
 
7213
    cat conftest.$ac_ext >&5
 
7214
  fi
 
7215
  rm -rf conftest* conftst*
 
7216
 
 
7217
  # Do not use the global_symbol_pipe unless it works.
 
7218
  if test yes = "$pipe_works"; then
 
7219
    break
 
7220
  else
 
7221
    lt_cv_sys_global_symbol_pipe=
 
7222
  fi
 
7223
done
 
7224
 
 
7225
fi
 
7226
 
 
7227
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7228
  lt_cv_sys_global_symbol_to_cdecl=
 
7229
fi
 
7230
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7231
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7232
printf "%s\n" "failed" >&6; }
 
7233
else
 
7234
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7235
printf "%s\n" "ok" >&6; }
 
7236
fi
 
7237
 
 
7238
# Response file support.
 
7239
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7240
  nm_file_list_spec='@'
 
7241
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7242
  nm_file_list_spec='@'
 
7243
fi
 
7244
 
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
 
 
7250
 
 
7251
 
 
7252
 
 
7253
 
 
7254
 
 
7255
 
 
7256
 
 
7257
 
 
7258
 
 
7259
 
 
7260
 
 
7261
 
 
7262
 
 
7263
 
 
7264
 
 
7265
 
 
7266
 
 
7267
 
 
7268
 
 
7269
 
 
7270
 
 
7271
 
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
 
7278
 
 
7279
 
 
7280
 
 
7281
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7282
printf %s "checking for sysroot... " >&6; }
 
7283
 
 
7284
# Check whether --with-sysroot was given.
 
7285
if test ${with_sysroot+y}
 
7286
then :
 
7287
  withval=$with_sysroot;
 
7288
else $as_nop
 
7289
  with_sysroot=no
 
7290
fi
 
7291
 
 
7292
 
 
7293
lt_sysroot=
 
7294
case $with_sysroot in #(
 
7295
 yes)
 
7296
   if test yes = "$GCC"; then
 
7297
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7298
   fi
 
7299
   ;; #(
 
7300
 /*)
 
7301
   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
 
7302
   ;; #(
 
7303
 no|'')
 
7304
   ;; #(
 
7305
 *)
 
7306
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
 
7307
printf "%s\n" "$with_sysroot" >&6; }
 
7308
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7309
   ;;
 
7310
esac
 
7311
 
 
7312
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7313
printf "%s\n" "${lt_sysroot:-no}" >&6; }
 
7314
 
 
7315
 
 
7316
 
 
7317
 
 
7318
 
 
7319
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
 
7320
printf %s "checking for a working dd... " >&6; }
 
7321
if test ${ac_cv_path_lt_DD+y}
 
7322
then :
 
7323
  printf %s "(cached) " >&6
 
7324
else $as_nop
 
7325
  printf 0123456789abcdef0123456789abcdef >conftest.i
 
7326
cat conftest.i conftest.i >conftest2.i
 
7327
: ${lt_DD:=$DD}
 
7328
if test -z "$lt_DD"; then
 
7329
  ac_path_lt_DD_found=false
 
7330
  # Loop through the user's path and test for each of PROGNAME-LIST
 
7331
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7332
for as_dir in $PATH
 
7333
do
 
7334
  IFS=$as_save_IFS
 
7335
  case $as_dir in #(((
 
7336
    '') as_dir=./ ;;
 
7337
    */) ;;
 
7338
    *) as_dir=$as_dir/ ;;
 
7339
  esac
 
7340
    for ac_prog in dd
 
7341
   do
 
7342
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7343
      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
 
7344
      as_fn_executable_p "$ac_path_lt_DD" || continue
 
7345
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
7346
  cmp -s conftest.i conftest.out \
 
7347
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 
7348
fi
 
7349
      $ac_path_lt_DD_found && break 3
 
7350
    done
 
7351
  done
 
7352
  done
 
7353
IFS=$as_save_IFS
 
7354
  if test -z "$ac_cv_path_lt_DD"; then
 
7355
    :
 
7356
  fi
 
7357
else
 
7358
  ac_cv_path_lt_DD=$lt_DD
 
7359
fi
 
7360
 
 
7361
rm -f conftest.i conftest2.i conftest.out
 
7362
fi
 
7363
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
 
7364
printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
 
7365
 
 
7366
 
 
7367
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
 
7368
printf %s "checking how to truncate binary pipes... " >&6; }
 
7369
if test ${lt_cv_truncate_bin+y}
 
7370
then :
 
7371
  printf %s "(cached) " >&6
 
7372
else $as_nop
 
7373
  printf 0123456789abcdef0123456789abcdef >conftest.i
 
7374
cat conftest.i conftest.i >conftest2.i
 
7375
lt_cv_truncate_bin=
 
7376
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
7377
  cmp -s conftest.i conftest.out \
 
7378
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 
7379
fi
 
7380
rm -f conftest.i conftest2.i conftest.out
 
7381
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
 
7382
fi
 
7383
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
 
7384
printf "%s\n" "$lt_cv_truncate_bin" >&6; }
 
7385
 
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
 
 
7391
 
 
7392
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
7393
func_cc_basename ()
 
7394
{
 
7395
    for cc_temp in $*""; do
 
7396
      case $cc_temp in
 
7397
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7398
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7399
        \-*) ;;
 
7400
        *) break;;
 
7401
      esac
 
7402
    done
 
7403
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7404
}
 
7405
 
 
7406
# Check whether --enable-libtool-lock was given.
 
7407
if test ${enable_libtool_lock+y}
 
7408
then :
 
7409
  enableval=$enable_libtool_lock;
 
7410
fi
 
7411
 
 
7412
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 
7413
 
 
7414
# Some flags need to be propagated to the compiler or linker for good
 
7415
# libtool support.
 
7416
case $host in
 
7417
ia64-*-hpux*)
 
7418
  # Find out what ABI is being produced by ac_compile, and set mode
 
7419
  # options accordingly.
 
7420
  echo 'int i;' > conftest.$ac_ext
 
7421
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7422
  (eval $ac_compile) 2>&5
 
7423
  ac_status=$?
 
7424
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7425
  test $ac_status = 0; }; then
 
7426
    case `$FILECMD conftest.$ac_objext` in
 
7427
      *ELF-32*)
 
7428
        HPUX_IA64_MODE=32
 
7429
        ;;
 
7430
      *ELF-64*)
 
7431
        HPUX_IA64_MODE=64
 
7432
        ;;
 
7433
    esac
 
7434
  fi
 
7435
  rm -rf conftest*
 
7436
  ;;
 
7437
*-*-irix6*)
 
7438
  # Find out what ABI is being produced by ac_compile, and set linker
 
7439
  # options accordingly.
 
7440
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7441
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7442
  (eval $ac_compile) 2>&5
 
7443
  ac_status=$?
 
7444
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7445
  test $ac_status = 0; }; then
 
7446
    if test yes = "$lt_cv_prog_gnu_ld"; then
 
7447
      case `$FILECMD conftest.$ac_objext` in
 
7448
        *32-bit*)
 
7449
          LD="${LD-ld} -melf32bsmip"
 
7450
          ;;
 
7451
        *N32*)
 
7452
          LD="${LD-ld} -melf32bmipn32"
 
7453
          ;;
 
7454
        *64-bit*)
 
7455
          LD="${LD-ld} -melf64bmip"
 
7456
        ;;
 
7457
      esac
 
7458
    else
 
7459
      case `$FILECMD conftest.$ac_objext` in
 
7460
        *32-bit*)
 
7461
          LD="${LD-ld} -32"
 
7462
          ;;
 
7463
        *N32*)
 
7464
          LD="${LD-ld} -n32"
 
7465
          ;;
 
7466
        *64-bit*)
 
7467
          LD="${LD-ld} -64"
 
7468
          ;;
 
7469
      esac
 
7470
    fi
 
7471
  fi
 
7472
  rm -rf conftest*
 
7473
  ;;
 
7474
 
 
7475
mips64*-*linux*)
 
7476
  # Find out what ABI is being produced by ac_compile, and set linker
 
7477
  # options accordingly.
 
7478
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7479
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7480
  (eval $ac_compile) 2>&5
 
7481
  ac_status=$?
 
7482
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7483
  test $ac_status = 0; }; then
 
7484
    emul=elf
 
7485
    case `$FILECMD conftest.$ac_objext` in
 
7486
      *32-bit*)
 
7487
        emul="${emul}32"
 
7488
        ;;
 
7489
      *64-bit*)
 
7490
        emul="${emul}64"
 
7491
        ;;
 
7492
    esac
 
7493
    case `$FILECMD conftest.$ac_objext` in
 
7494
      *MSB*)
 
7495
        emul="${emul}btsmip"
 
7496
        ;;
 
7497
      *LSB*)
 
7498
        emul="${emul}ltsmip"
 
7499
        ;;
 
7500
    esac
 
7501
    case `$FILECMD conftest.$ac_objext` in
 
7502
      *N32*)
 
7503
        emul="${emul}n32"
 
7504
        ;;
 
7505
    esac
 
7506
    LD="${LD-ld} -m $emul"
 
7507
  fi
 
7508
  rm -rf conftest*
 
7509
  ;;
 
7510
 
 
7511
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
7512
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7513
  # Find out what ABI is being produced by ac_compile, and set linker
 
7514
  # options accordingly.  Note that the listed cases only cover the
 
7515
  # situations where additional linker options are needed (such as when
 
7516
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 
7517
  # vice versa); the common cases where no linker options are needed do
 
7518
  # not appear in the list.
 
7519
  echo 'int i;' > conftest.$ac_ext
 
7520
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7521
  (eval $ac_compile) 2>&5
 
7522
  ac_status=$?
 
7523
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7524
  test $ac_status = 0; }; then
 
7525
    case `$FILECMD conftest.o` in
 
7526
      *32-bit*)
 
7527
        case $host in
 
7528
          x86_64-*kfreebsd*-gnu)
 
7529
            LD="${LD-ld} -m elf_i386_fbsd"
 
7530
            ;;
 
7531
          x86_64-*linux*)
 
7532
            case `$FILECMD conftest.o` in
 
7533
              *x86-64*)
 
7534
                LD="${LD-ld} -m elf32_x86_64"
 
7535
                ;;
 
7536
              *)
 
7537
                LD="${LD-ld} -m elf_i386"
 
7538
                ;;
 
7539
            esac
 
7540
            ;;
 
7541
          powerpc64le-*linux*)
 
7542
            LD="${LD-ld} -m elf32lppclinux"
 
7543
            ;;
 
7544
          powerpc64-*linux*)
 
7545
            LD="${LD-ld} -m elf32ppclinux"
 
7546
            ;;
 
7547
          s390x-*linux*)
 
7548
            LD="${LD-ld} -m elf_s390"
 
7549
            ;;
 
7550
          sparc64-*linux*)
 
7551
            LD="${LD-ld} -m elf32_sparc"
 
7552
            ;;
 
7553
        esac
 
7554
        ;;
 
7555
      *64-bit*)
 
7556
        case $host in
 
7557
          x86_64-*kfreebsd*-gnu)
 
7558
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7559
            ;;
 
7560
          x86_64-*linux*)
 
7561
            LD="${LD-ld} -m elf_x86_64"
 
7562
            ;;
 
7563
          powerpcle-*linux*)
 
7564
            LD="${LD-ld} -m elf64lppc"
 
7565
            ;;
 
7566
          powerpc-*linux*)
 
7567
            LD="${LD-ld} -m elf64ppc"
 
7568
            ;;
 
7569
          s390*-*linux*|s390*-*tpf*)
 
7570
            LD="${LD-ld} -m elf64_s390"
 
7571
            ;;
 
7572
          sparc*-*linux*)
 
7573
            LD="${LD-ld} -m elf64_sparc"
 
7574
            ;;
 
7575
        esac
 
7576
        ;;
 
7577
    esac
 
7578
  fi
 
7579
  rm -rf conftest*
 
7580
  ;;
 
7581
 
 
7582
*-*-sco3.2v5*)
 
7583
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7584
  SAVE_CFLAGS=$CFLAGS
 
7585
  CFLAGS="$CFLAGS -belf"
 
7586
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7587
printf %s "checking whether the C compiler needs -belf... " >&6; }
 
7588
if test ${lt_cv_cc_needs_belf+y}
 
7589
then :
 
7590
  printf %s "(cached) " >&6
 
7591
else $as_nop
 
7592
  ac_ext=c
 
7593
ac_cpp='$CPP $CPPFLAGS'
 
7594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7597
 
 
7598
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7599
/* end confdefs.h.  */
 
7600
 
 
7601
int
 
7602
main (void)
 
7603
{
 
7604
 
 
7605
  ;
 
7606
  return 0;
 
7607
}
 
7608
_ACEOF
 
7609
if ac_fn_c_try_link "$LINENO"
 
7610
then :
 
7611
  lt_cv_cc_needs_belf=yes
 
7612
else $as_nop
 
7613
  lt_cv_cc_needs_belf=no
 
7614
fi
 
7615
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
7616
    conftest$ac_exeext conftest.$ac_ext
 
7617
     ac_ext=c
 
7618
ac_cpp='$CPP $CPPFLAGS'
 
7619
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7620
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7621
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7622
 
 
7623
fi
 
7624
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7625
printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
 
7626
  if test yes != "$lt_cv_cc_needs_belf"; then
 
7627
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7628
    CFLAGS=$SAVE_CFLAGS
 
7629
  fi
 
7630
  ;;
 
7631
*-*solaris*)
 
7632
  # Find out what ABI is being produced by ac_compile, and set linker
 
7633
  # options accordingly.
 
7634
  echo 'int i;' > conftest.$ac_ext
 
7635
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7636
  (eval $ac_compile) 2>&5
 
7637
  ac_status=$?
 
7638
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7639
  test $ac_status = 0; }; then
 
7640
    case `$FILECMD conftest.o` in
 
7641
    *64-bit*)
 
7642
      case $lt_cv_prog_gnu_ld in
 
7643
      yes*)
 
7644
        case $host in
 
7645
        i?86-*-solaris*|x86_64-*-solaris*)
 
7646
          LD="${LD-ld} -m elf_x86_64"
 
7647
          ;;
 
7648
        sparc*-*-solaris*)
 
7649
          LD="${LD-ld} -m elf64_sparc"
 
7650
          ;;
 
7651
        esac
 
7652
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7653
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7654
          LD=${LD-ld}_sol2
 
7655
        fi
 
7656
        ;;
 
7657
      *)
 
7658
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7659
          LD="${LD-ld} -64"
 
7660
        fi
 
7661
        ;;
 
7662
      esac
 
7663
      ;;
 
7664
    esac
 
7665
  fi
 
7666
  rm -rf conftest*
 
7667
  ;;
 
7668
esac
 
7669
 
 
7670
need_locks=$enable_libtool_lock
 
7671
 
 
7672
if test -n "$ac_tool_prefix"; then
 
7673
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7674
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7675
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7676
printf %s "checking for $ac_word... " >&6; }
 
7677
if test ${ac_cv_prog_MANIFEST_TOOL+y}
 
7678
then :
 
7679
  printf %s "(cached) " >&6
 
7680
else $as_nop
 
7681
  if test -n "$MANIFEST_TOOL"; then
 
7682
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7683
else
 
7684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7685
for as_dir in $PATH
 
7686
do
 
7687
  IFS=$as_save_IFS
 
7688
  case $as_dir in #(((
 
7689
    '') as_dir=./ ;;
 
7690
    */) ;;
 
7691
    *) as_dir=$as_dir/ ;;
 
7692
  esac
 
7693
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7694
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7695
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7696
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7697
    break 2
 
7698
  fi
 
7699
done
 
7700
  done
 
7701
IFS=$as_save_IFS
 
7702
 
 
7703
fi
 
7704
fi
 
7705
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7706
if test -n "$MANIFEST_TOOL"; then
 
7707
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7708
printf "%s\n" "$MANIFEST_TOOL" >&6; }
 
7709
else
 
7710
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7711
printf "%s\n" "no" >&6; }
 
7712
fi
 
7713
 
 
7714
 
 
7715
fi
 
7716
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7717
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7718
  # Extract the first word of "mt", so it can be a program name with args.
 
7719
set dummy mt; ac_word=$2
 
7720
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7721
printf %s "checking for $ac_word... " >&6; }
 
7722
if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
 
7723
then :
 
7724
  printf %s "(cached) " >&6
 
7725
else $as_nop
 
7726
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7727
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7728
else
 
7729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7730
for as_dir in $PATH
 
7731
do
 
7732
  IFS=$as_save_IFS
 
7733
  case $as_dir in #(((
 
7734
    '') as_dir=./ ;;
 
7735
    */) ;;
 
7736
    *) as_dir=$as_dir/ ;;
 
7737
  esac
 
7738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7739
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7740
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7741
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7742
    break 2
 
7743
  fi
 
7744
done
 
7745
  done
 
7746
IFS=$as_save_IFS
 
7747
 
 
7748
fi
 
7749
fi
 
7750
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7751
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7752
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7753
printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
 
7754
else
 
7755
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7756
printf "%s\n" "no" >&6; }
 
7757
fi
 
7758
 
 
7759
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7760
    MANIFEST_TOOL=":"
 
7761
  else
 
7762
    case $cross_compiling:$ac_tool_warned in
 
7763
yes:)
 
7764
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7765
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7766
ac_tool_warned=yes ;;
 
7767
esac
 
7768
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7769
  fi
 
7770
else
 
7771
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7772
fi
 
7773
 
 
7774
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7775
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7776
printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7777
if test ${lt_cv_path_mainfest_tool+y}
 
7778
then :
 
7779
  printf %s "(cached) " >&6
 
7780
else $as_nop
 
7781
  lt_cv_path_mainfest_tool=no
 
7782
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7783
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7784
  cat conftest.err >&5
 
7785
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7786
    lt_cv_path_mainfest_tool=yes
 
7787
  fi
 
7788
  rm -f conftest*
 
7789
fi
 
7790
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7791
printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
 
7792
if test yes != "$lt_cv_path_mainfest_tool"; then
 
7793
  MANIFEST_TOOL=:
 
7794
fi
 
7795
 
 
7796
 
 
7797
 
 
7798
 
 
7799
 
 
7800
 
 
7801
  case $host_os in
 
7802
    rhapsody* | darwin*)
 
7803
    if test -n "$ac_tool_prefix"; then
 
7804
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7805
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7806
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7807
printf %s "checking for $ac_word... " >&6; }
 
7808
if test ${ac_cv_prog_DSYMUTIL+y}
 
7809
then :
 
7810
  printf %s "(cached) " >&6
 
7811
else $as_nop
 
7812
  if test -n "$DSYMUTIL"; then
 
7813
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7814
else
 
7815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7816
for as_dir in $PATH
 
7817
do
 
7818
  IFS=$as_save_IFS
 
7819
  case $as_dir in #(((
 
7820
    '') as_dir=./ ;;
 
7821
    */) ;;
 
7822
    *) as_dir=$as_dir/ ;;
 
7823
  esac
 
7824
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7825
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7826
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7827
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7828
    break 2
 
7829
  fi
 
7830
done
 
7831
  done
 
7832
IFS=$as_save_IFS
 
7833
 
 
7834
fi
 
7835
fi
 
7836
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7837
if test -n "$DSYMUTIL"; then
 
7838
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7839
printf "%s\n" "$DSYMUTIL" >&6; }
 
7840
else
 
7841
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7842
printf "%s\n" "no" >&6; }
 
7843
fi
 
7844
 
 
7845
 
 
7846
fi
 
7847
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7848
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7849
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7850
set dummy dsymutil; ac_word=$2
 
7851
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7852
printf %s "checking for $ac_word... " >&6; }
 
7853
if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
 
7854
then :
 
7855
  printf %s "(cached) " >&6
 
7856
else $as_nop
 
7857
  if test -n "$ac_ct_DSYMUTIL"; then
 
7858
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7859
else
 
7860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7861
for as_dir in $PATH
 
7862
do
 
7863
  IFS=$as_save_IFS
 
7864
  case $as_dir in #(((
 
7865
    '') as_dir=./ ;;
 
7866
    */) ;;
 
7867
    *) as_dir=$as_dir/ ;;
 
7868
  esac
 
7869
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7870
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7871
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7872
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7873
    break 2
 
7874
  fi
 
7875
done
 
7876
  done
 
7877
IFS=$as_save_IFS
 
7878
 
 
7879
fi
 
7880
fi
 
7881
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7882
if test -n "$ac_ct_DSYMUTIL"; then
 
7883
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7884
printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
 
7885
else
 
7886
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7887
printf "%s\n" "no" >&6; }
 
7888
fi
 
7889
 
 
7890
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7891
    DSYMUTIL=":"
 
7892
  else
 
7893
    case $cross_compiling:$ac_tool_warned in
 
7894
yes:)
 
7895
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7896
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7897
ac_tool_warned=yes ;;
 
7898
esac
 
7899
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7900
  fi
 
7901
else
 
7902
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7903
fi
 
7904
 
 
7905
    if test -n "$ac_tool_prefix"; then
 
7906
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7907
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7908
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7909
printf %s "checking for $ac_word... " >&6; }
 
7910
if test ${ac_cv_prog_NMEDIT+y}
 
7911
then :
 
7912
  printf %s "(cached) " >&6
 
7913
else $as_nop
 
7914
  if test -n "$NMEDIT"; then
 
7915
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7916
else
 
7917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7918
for as_dir in $PATH
 
7919
do
 
7920
  IFS=$as_save_IFS
 
7921
  case $as_dir in #(((
 
7922
    '') as_dir=./ ;;
 
7923
    */) ;;
 
7924
    *) as_dir=$as_dir/ ;;
 
7925
  esac
 
7926
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7927
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7928
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7929
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7930
    break 2
 
7931
  fi
 
7932
done
 
7933
  done
 
7934
IFS=$as_save_IFS
 
7935
 
 
7936
fi
 
7937
fi
 
7938
NMEDIT=$ac_cv_prog_NMEDIT
 
7939
if test -n "$NMEDIT"; then
 
7940
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7941
printf "%s\n" "$NMEDIT" >&6; }
 
7942
else
 
7943
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7944
printf "%s\n" "no" >&6; }
 
7945
fi
 
7946
 
 
7947
 
 
7948
fi
 
7949
if test -z "$ac_cv_prog_NMEDIT"; then
 
7950
  ac_ct_NMEDIT=$NMEDIT
 
7951
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7952
set dummy nmedit; ac_word=$2
 
7953
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7954
printf %s "checking for $ac_word... " >&6; }
 
7955
if test ${ac_cv_prog_ac_ct_NMEDIT+y}
 
7956
then :
 
7957
  printf %s "(cached) " >&6
 
7958
else $as_nop
 
7959
  if test -n "$ac_ct_NMEDIT"; then
 
7960
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7961
else
 
7962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7963
for as_dir in $PATH
 
7964
do
 
7965
  IFS=$as_save_IFS
 
7966
  case $as_dir in #(((
 
7967
    '') as_dir=./ ;;
 
7968
    */) ;;
 
7969
    *) as_dir=$as_dir/ ;;
 
7970
  esac
 
7971
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7972
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
7973
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7974
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
7975
    break 2
 
7976
  fi
 
7977
done
 
7978
  done
 
7979
IFS=$as_save_IFS
 
7980
 
 
7981
fi
 
7982
fi
 
7983
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7984
if test -n "$ac_ct_NMEDIT"; then
 
7985
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7986
printf "%s\n" "$ac_ct_NMEDIT" >&6; }
 
7987
else
 
7988
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7989
printf "%s\n" "no" >&6; }
 
7990
fi
 
7991
 
 
7992
  if test "x$ac_ct_NMEDIT" = x; then
 
7993
    NMEDIT=":"
 
7994
  else
 
7995
    case $cross_compiling:$ac_tool_warned in
 
7996
yes:)
 
7997
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7998
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7999
ac_tool_warned=yes ;;
 
8000
esac
 
8001
    NMEDIT=$ac_ct_NMEDIT
 
8002
  fi
 
8003
else
 
8004
  NMEDIT="$ac_cv_prog_NMEDIT"
 
8005
fi
 
8006
 
 
8007
    if test -n "$ac_tool_prefix"; then
 
8008
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
8009
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
8010
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8011
printf %s "checking for $ac_word... " >&6; }
 
8012
if test ${ac_cv_prog_LIPO+y}
 
8013
then :
 
8014
  printf %s "(cached) " >&6
 
8015
else $as_nop
 
8016
  if test -n "$LIPO"; then
 
8017
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
8018
else
 
8019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8020
for as_dir in $PATH
 
8021
do
 
8022
  IFS=$as_save_IFS
 
8023
  case $as_dir in #(((
 
8024
    '') as_dir=./ ;;
 
8025
    */) ;;
 
8026
    *) as_dir=$as_dir/ ;;
 
8027
  esac
 
8028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8029
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
8030
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
8031
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
8032
    break 2
 
8033
  fi
 
8034
done
 
8035
  done
 
8036
IFS=$as_save_IFS
 
8037
 
 
8038
fi
 
8039
fi
 
8040
LIPO=$ac_cv_prog_LIPO
 
8041
if test -n "$LIPO"; then
 
8042
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
8043
printf "%s\n" "$LIPO" >&6; }
 
8044
else
 
8045
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8046
printf "%s\n" "no" >&6; }
 
8047
fi
 
8048
 
 
8049
 
 
8050
fi
 
8051
if test -z "$ac_cv_prog_LIPO"; then
 
8052
  ac_ct_LIPO=$LIPO
 
8053
  # Extract the first word of "lipo", so it can be a program name with args.
 
8054
set dummy lipo; ac_word=$2
 
8055
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8056
printf %s "checking for $ac_word... " >&6; }
 
8057
if test ${ac_cv_prog_ac_ct_LIPO+y}
 
8058
then :
 
8059
  printf %s "(cached) " >&6
 
8060
else $as_nop
 
8061
  if test -n "$ac_ct_LIPO"; then
 
8062
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
8063
else
 
8064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8065
for as_dir in $PATH
 
8066
do
 
8067
  IFS=$as_save_IFS
 
8068
  case $as_dir in #(((
 
8069
    '') as_dir=./ ;;
 
8070
    */) ;;
 
8071
    *) as_dir=$as_dir/ ;;
 
8072
  esac
 
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_ac_ct_LIPO="lipo"
 
8076
    printf "%s\n" "$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
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
8086
if test -n "$ac_ct_LIPO"; then
 
8087
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8088
printf "%s\n" "$ac_ct_LIPO" >&6; }
 
8089
else
 
8090
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8091
printf "%s\n" "no" >&6; }
 
8092
fi
 
8093
 
 
8094
  if test "x$ac_ct_LIPO" = x; then
 
8095
    LIPO=":"
 
8096
  else
 
8097
    case $cross_compiling:$ac_tool_warned in
 
8098
yes:)
 
8099
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8100
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8101
ac_tool_warned=yes ;;
 
8102
esac
 
8103
    LIPO=$ac_ct_LIPO
 
8104
  fi
 
8105
else
 
8106
  LIPO="$ac_cv_prog_LIPO"
 
8107
fi
 
8108
 
 
8109
    if test -n "$ac_tool_prefix"; then
 
8110
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8111
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8112
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8113
printf %s "checking for $ac_word... " >&6; }
 
8114
if test ${ac_cv_prog_OTOOL+y}
 
8115
then :
 
8116
  printf %s "(cached) " >&6
 
8117
else $as_nop
 
8118
  if test -n "$OTOOL"; then
 
8119
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8120
else
 
8121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8122
for as_dir in $PATH
 
8123
do
 
8124
  IFS=$as_save_IFS
 
8125
  case $as_dir in #(((
 
8126
    '') as_dir=./ ;;
 
8127
    */) ;;
 
8128
    *) as_dir=$as_dir/ ;;
 
8129
  esac
 
8130
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8131
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
8132
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8133
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
8134
    break 2
 
8135
  fi
 
8136
done
 
8137
  done
 
8138
IFS=$as_save_IFS
 
8139
 
 
8140
fi
 
8141
fi
 
8142
OTOOL=$ac_cv_prog_OTOOL
 
8143
if test -n "$OTOOL"; then
 
8144
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
8145
printf "%s\n" "$OTOOL" >&6; }
 
8146
else
 
8147
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8148
printf "%s\n" "no" >&6; }
 
8149
fi
 
8150
 
 
8151
 
 
8152
fi
 
8153
if test -z "$ac_cv_prog_OTOOL"; then
 
8154
  ac_ct_OTOOL=$OTOOL
 
8155
  # Extract the first word of "otool", so it can be a program name with args.
 
8156
set dummy otool; ac_word=$2
 
8157
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8158
printf %s "checking for $ac_word... " >&6; }
 
8159
if test ${ac_cv_prog_ac_ct_OTOOL+y}
 
8160
then :
 
8161
  printf %s "(cached) " >&6
 
8162
else $as_nop
 
8163
  if test -n "$ac_ct_OTOOL"; then
 
8164
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8165
else
 
8166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8167
for as_dir in $PATH
 
8168
do
 
8169
  IFS=$as_save_IFS
 
8170
  case $as_dir in #(((
 
8171
    '') as_dir=./ ;;
 
8172
    */) ;;
 
8173
    *) as_dir=$as_dir/ ;;
 
8174
  esac
 
8175
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8176
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
8177
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8178
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
8179
    break 2
 
8180
  fi
 
8181
done
 
8182
  done
 
8183
IFS=$as_save_IFS
 
8184
 
 
8185
fi
 
8186
fi
 
8187
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8188
if test -n "$ac_ct_OTOOL"; then
 
8189
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8190
printf "%s\n" "$ac_ct_OTOOL" >&6; }
 
8191
else
 
8192
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8193
printf "%s\n" "no" >&6; }
 
8194
fi
 
8195
 
 
8196
  if test "x$ac_ct_OTOOL" = x; then
 
8197
    OTOOL=":"
 
8198
  else
 
8199
    case $cross_compiling:$ac_tool_warned in
 
8200
yes:)
 
8201
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8202
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8203
ac_tool_warned=yes ;;
 
8204
esac
 
8205
    OTOOL=$ac_ct_OTOOL
 
8206
  fi
 
8207
else
 
8208
  OTOOL="$ac_cv_prog_OTOOL"
 
8209
fi
 
8210
 
 
8211
    if test -n "$ac_tool_prefix"; then
 
8212
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8213
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8214
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8215
printf %s "checking for $ac_word... " >&6; }
 
8216
if test ${ac_cv_prog_OTOOL64+y}
 
8217
then :
 
8218
  printf %s "(cached) " >&6
 
8219
else $as_nop
 
8220
  if test -n "$OTOOL64"; then
 
8221
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8222
else
 
8223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8224
for as_dir in $PATH
 
8225
do
 
8226
  IFS=$as_save_IFS
 
8227
  case $as_dir in #(((
 
8228
    '') as_dir=./ ;;
 
8229
    */) ;;
 
8230
    *) as_dir=$as_dir/ ;;
 
8231
  esac
 
8232
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8233
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
8234
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8235
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
8236
    break 2
 
8237
  fi
 
8238
done
 
8239
  done
 
8240
IFS=$as_save_IFS
 
8241
 
 
8242
fi
 
8243
fi
 
8244
OTOOL64=$ac_cv_prog_OTOOL64
 
8245
if test -n "$OTOOL64"; then
 
8246
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8247
printf "%s\n" "$OTOOL64" >&6; }
 
8248
else
 
8249
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8250
printf "%s\n" "no" >&6; }
 
8251
fi
 
8252
 
 
8253
 
 
8254
fi
 
8255
if test -z "$ac_cv_prog_OTOOL64"; then
 
8256
  ac_ct_OTOOL64=$OTOOL64
 
8257
  # Extract the first word of "otool64", so it can be a program name with args.
 
8258
set dummy otool64; ac_word=$2
 
8259
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8260
printf %s "checking for $ac_word... " >&6; }
 
8261
if test ${ac_cv_prog_ac_ct_OTOOL64+y}
 
8262
then :
 
8263
  printf %s "(cached) " >&6
 
8264
else $as_nop
 
8265
  if test -n "$ac_ct_OTOOL64"; then
 
8266
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8267
else
 
8268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8269
for as_dir in $PATH
 
8270
do
 
8271
  IFS=$as_save_IFS
 
8272
  case $as_dir in #(((
 
8273
    '') as_dir=./ ;;
 
8274
    */) ;;
 
8275
    *) as_dir=$as_dir/ ;;
 
8276
  esac
 
8277
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8278
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
8279
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8280
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
8281
    break 2
 
8282
  fi
 
8283
done
 
8284
  done
 
8285
IFS=$as_save_IFS
 
8286
 
 
8287
fi
 
8288
fi
 
8289
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8290
if test -n "$ac_ct_OTOOL64"; then
 
8291
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8292
printf "%s\n" "$ac_ct_OTOOL64" >&6; }
 
8293
else
 
8294
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8295
printf "%s\n" "no" >&6; }
 
8296
fi
 
8297
 
 
8298
  if test "x$ac_ct_OTOOL64" = x; then
 
8299
    OTOOL64=":"
 
8300
  else
 
8301
    case $cross_compiling:$ac_tool_warned in
 
8302
yes:)
 
8303
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8304
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8305
ac_tool_warned=yes ;;
 
8306
esac
 
8307
    OTOOL64=$ac_ct_OTOOL64
 
8308
  fi
 
8309
else
 
8310
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8311
fi
 
8312
 
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
 
 
8323
 
 
8324
 
 
8325
 
 
8326
 
 
8327
 
 
8328
 
 
8329
 
 
8330
 
 
8331
 
 
8332
 
 
8333
 
 
8334
 
 
8335
 
 
8336
 
 
8337
 
 
8338
 
 
8339
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8340
printf %s "checking for -single_module linker flag... " >&6; }
 
8341
if test ${lt_cv_apple_cc_single_mod+y}
 
8342
then :
 
8343
  printf %s "(cached) " >&6
 
8344
else $as_nop
 
8345
  lt_cv_apple_cc_single_mod=no
 
8346
      if test -z "$LT_MULTI_MODULE"; then
 
8347
        # By default we will add the -single_module flag. You can override
 
8348
        # by either setting the environment variable LT_MULTI_MODULE
 
8349
        # non-empty at configure time, or by adding -multi_module to the
 
8350
        # link flags.
 
8351
        rm -rf libconftest.dylib*
 
8352
        echo "int foo(void){return 1;}" > conftest.c
 
8353
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8354
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8355
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8356
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8357
        _lt_result=$?
 
8358
        # If there is a non-empty error log, and "single_module"
 
8359
        # appears in it, assume the flag caused a linker warning
 
8360
        if test -s conftest.err && $GREP single_module conftest.err; then
 
8361
          cat conftest.err >&5
 
8362
        # Otherwise, if the output was created with a 0 exit code from
 
8363
        # the compiler, it worked.
 
8364
        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 
8365
          lt_cv_apple_cc_single_mod=yes
 
8366
        else
 
8367
          cat conftest.err >&5
 
8368
        fi
 
8369
        rm -rf libconftest.dylib*
 
8370
        rm -f conftest.*
 
8371
      fi
 
8372
fi
 
8373
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8374
printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
 
8375
 
 
8376
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8377
printf %s "checking for -exported_symbols_list linker flag... " >&6; }
 
8378
if test ${lt_cv_ld_exported_symbols_list+y}
 
8379
then :
 
8380
  printf %s "(cached) " >&6
 
8381
else $as_nop
 
8382
  lt_cv_ld_exported_symbols_list=no
 
8383
      save_LDFLAGS=$LDFLAGS
 
8384
      echo "_main" > conftest.sym
 
8385
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8386
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8387
/* end confdefs.h.  */
 
8388
 
 
8389
int
 
8390
main (void)
 
8391
{
 
8392
 
 
8393
  ;
 
8394
  return 0;
 
8395
}
 
8396
_ACEOF
 
8397
if ac_fn_c_try_link "$LINENO"
 
8398
then :
 
8399
  lt_cv_ld_exported_symbols_list=yes
 
8400
else $as_nop
 
8401
  lt_cv_ld_exported_symbols_list=no
 
8402
fi
 
8403
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
8404
    conftest$ac_exeext conftest.$ac_ext
 
8405
        LDFLAGS=$save_LDFLAGS
 
8406
 
 
8407
fi
 
8408
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8409
printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
 
8410
 
 
8411
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8412
printf %s "checking for -force_load linker flag... " >&6; }
 
8413
if test ${lt_cv_ld_force_load+y}
 
8414
then :
 
8415
  printf %s "(cached) " >&6
 
8416
else $as_nop
 
8417
  lt_cv_ld_force_load=no
 
8418
      cat > conftest.c << _LT_EOF
 
8419
int forced_loaded() { return 2;}
 
8420
_LT_EOF
 
8421
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8422
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8423
      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
 
8424
      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
 
8425
      echo "$RANLIB libconftest.a" >&5
 
8426
      $RANLIB libconftest.a 2>&5
 
8427
      cat > conftest.c << _LT_EOF
 
8428
int main() { return 0;}
 
8429
_LT_EOF
 
8430
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8431
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8432
      _lt_result=$?
 
8433
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8434
        cat conftest.err >&5
 
8435
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 
8436
        lt_cv_ld_force_load=yes
 
8437
      else
 
8438
        cat conftest.err >&5
 
8439
      fi
 
8440
        rm -f conftest.err libconftest.a conftest conftest.c
 
8441
        rm -rf conftest.dSYM
 
8442
 
 
8443
fi
 
8444
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8445
printf "%s\n" "$lt_cv_ld_force_load" >&6; }
 
8446
    case $host_os in
 
8447
    rhapsody* | darwin1.[012])
 
8448
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 
8449
    darwin1.*)
 
8450
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
8451
    darwin*)
 
8452
      case $MACOSX_DEPLOYMENT_TARGET,$host in
 
8453
        10.[012],*|,*powerpc*-darwin[5-8]*)
 
8454
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
8455
        *)
 
8456
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
8457
      esac
 
8458
    ;;
 
8459
  esac
 
8460
    if test yes = "$lt_cv_apple_cc_single_mod"; then
 
8461
      _lt_dar_single_mod='$single_module'
 
8462
    fi
 
8463
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
 
8464
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 
8465
    else
 
8466
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 
8467
    fi
 
8468
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 
8469
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8470
    else
 
8471
      _lt_dsymutil=
 
8472
    fi
 
8473
    ;;
 
8474
  esac
 
8475
 
 
8476
# func_munge_path_list VARIABLE PATH
 
8477
# -----------------------------------
 
8478
# VARIABLE is name of variable containing _space_ separated list of
 
8479
# directories to be munged by the contents of PATH, which is string
 
8480
# having a format:
 
8481
# "DIR[:DIR]:"
 
8482
#       string "DIR[ DIR]" will be prepended to VARIABLE
 
8483
# ":DIR[:DIR]"
 
8484
#       string "DIR[ DIR]" will be appended to VARIABLE
 
8485
# "DIRP[:DIRP]::[DIRA:]DIRA"
 
8486
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 
8487
#       "DIRA[ DIRA]" will be appended to VARIABLE
 
8488
# "DIR[:DIR]"
 
8489
#       VARIABLE will be replaced by "DIR[ DIR]"
 
8490
func_munge_path_list ()
 
8491
{
 
8492
    case x$2 in
 
8493
    x)
 
8494
        ;;
 
8495
    *:)
 
8496
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 
8497
        ;;
 
8498
    x:*)
 
8499
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 
8500
        ;;
 
8501
    *::*)
 
8502
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 
8503
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 
8504
        ;;
 
8505
    *)
 
8506
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 
8507
        ;;
 
8508
    esac
 
8509
}
 
8510
 
 
8511
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8512
"
 
8513
if test "x$ac_cv_header_dlfcn_h" = xyes
 
8514
then :
 
8515
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
 
8516
 
 
8517
fi
 
8518
 
 
8519
 
 
8520
 
 
8521
 
 
8522
 
 
8523
# Set options
 
8524
 
 
8525
 
 
8526
 
 
8527
        enable_dlopen=no
 
8528
 
 
8529
 
 
8530
  enable_win32_dll=no
 
8531
 
 
8532
 
 
8533
            # Check whether --enable-shared was given.
 
8534
if test ${enable_shared+y}
 
8535
then :
 
8536
  enableval=$enable_shared; p=${PACKAGE-default}
 
8537
    case $enableval in
 
8538
    yes) enable_shared=yes ;;
 
8539
    no) enable_shared=no ;;
 
8540
    *)
 
8541
      enable_shared=no
 
8542
      # Look at the argument we got.  We use all the common list separators.
 
8543
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8544
      for pkg in $enableval; do
 
8545
        IFS=$lt_save_ifs
 
8546
        if test "X$pkg" = "X$p"; then
 
8547
          enable_shared=yes
 
8548
        fi
 
8549
      done
 
8550
      IFS=$lt_save_ifs
 
8551
      ;;
 
8552
    esac
 
8553
else $as_nop
 
8554
  enable_shared=yes
 
8555
fi
 
8556
 
 
8557
 
 
8558
 
 
8559
 
 
8560
 
 
8561
 
 
8562
 
 
8563
 
 
8564
 
 
8565
  # Check whether --enable-static was given.
 
8566
if test ${enable_static+y}
 
8567
then :
 
8568
  enableval=$enable_static; p=${PACKAGE-default}
 
8569
    case $enableval in
 
8570
    yes) enable_static=yes ;;
 
8571
    no) enable_static=no ;;
 
8572
    *)
 
8573
     enable_static=no
 
8574
      # Look at the argument we got.  We use all the common list separators.
 
8575
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8576
      for pkg in $enableval; do
 
8577
        IFS=$lt_save_ifs
 
8578
        if test "X$pkg" = "X$p"; then
 
8579
          enable_static=yes
 
8580
        fi
 
8581
      done
 
8582
      IFS=$lt_save_ifs
 
8583
      ;;
 
8584
    esac
 
8585
else $as_nop
 
8586
  enable_static=yes
 
8587
fi
 
8588
 
 
8589
 
 
8590
 
 
8591
 
 
8592
 
 
8593
 
 
8594
 
 
8595
 
 
8596
 
 
8597
 
 
8598
# Check whether --with-pic was given.
 
8599
if test ${with_pic+y}
 
8600
then :
 
8601
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8602
    case $withval in
 
8603
    yes|no) pic_mode=$withval ;;
 
8604
    *)
 
8605
      pic_mode=default
 
8606
      # Look at the argument we got.  We use all the common list separators.
 
8607
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8608
      for lt_pkg in $withval; do
 
8609
        IFS=$lt_save_ifs
 
8610
        if test "X$lt_pkg" = "X$lt_p"; then
 
8611
          pic_mode=yes
 
8612
        fi
 
8613
      done
 
8614
      IFS=$lt_save_ifs
 
8615
      ;;
 
8616
    esac
 
8617
else $as_nop
 
8618
  pic_mode=default
 
8619
fi
 
8620
 
 
8621
 
 
8622
 
 
8623
 
 
8624
 
 
8625
 
 
8626
 
 
8627
 
 
8628
  # Check whether --enable-fast-install was given.
 
8629
if test ${enable_fast_install+y}
 
8630
then :
 
8631
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8632
    case $enableval in
 
8633
    yes) enable_fast_install=yes ;;
 
8634
    no) enable_fast_install=no ;;
 
8635
    *)
 
8636
      enable_fast_install=no
 
8637
      # Look at the argument we got.  We use all the common list separators.
 
8638
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8639
      for pkg in $enableval; do
 
8640
        IFS=$lt_save_ifs
 
8641
        if test "X$pkg" = "X$p"; then
 
8642
          enable_fast_install=yes
 
8643
        fi
 
8644
      done
 
8645
      IFS=$lt_save_ifs
 
8646
      ;;
 
8647
    esac
 
8648
else $as_nop
 
8649
  enable_fast_install=yes
 
8650
fi
 
8651
 
 
8652
 
 
8653
 
 
8654
 
 
8655
 
 
8656
 
 
8657
 
 
8658
 
 
8659
  shared_archive_member_spec=
 
8660
case $host,$enable_shared in
 
8661
power*-*-aix[5-9]*,yes)
 
8662
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
 
8663
printf %s "checking which variant of shared library versioning to provide... " >&6; }
 
8664
 
 
8665
# Check whether --with-aix-soname was given.
 
8666
if test ${with_aix_soname+y}
 
8667
then :
 
8668
  withval=$with_aix_soname; case $withval in
 
8669
    aix|svr4|both)
 
8670
      ;;
 
8671
    *)
 
8672
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
 
8673
      ;;
 
8674
    esac
 
8675
    lt_cv_with_aix_soname=$with_aix_soname
 
8676
else $as_nop
 
8677
  if test ${lt_cv_with_aix_soname+y}
 
8678
then :
 
8679
  printf %s "(cached) " >&6
 
8680
else $as_nop
 
8681
  lt_cv_with_aix_soname=aix
 
8682
fi
 
8683
 
 
8684
    with_aix_soname=$lt_cv_with_aix_soname
 
8685
fi
 
8686
 
 
8687
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
 
8688
printf "%s\n" "$with_aix_soname" >&6; }
 
8689
  if test aix != "$with_aix_soname"; then
 
8690
    # For the AIX way of multilib, we name the shared archive member
 
8691
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 
8692
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 
8693
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 
8694
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
 
8695
    if test 64 = "${OBJECT_MODE-32}"; then
 
8696
      shared_archive_member_spec=shr_64
 
8697
    else
 
8698
      shared_archive_member_spec=shr
 
8699
    fi
 
8700
  fi
 
8701
  ;;
 
8702
*)
 
8703
  with_aix_soname=aix
 
8704
  ;;
 
8705
esac
 
8706
 
 
8707
 
 
8708
 
 
8709
 
 
8710
 
 
8711
 
 
8712
 
 
8713
 
 
8714
 
 
8715
 
 
8716
# This can be used to rebuild libtool when needed
 
8717
LIBTOOL_DEPS=$ltmain
 
8718
 
 
8719
# Always use our own libtool.
 
8720
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8721
 
 
8722
 
 
8723
 
 
8724
 
 
8725
 
 
8726
 
 
8727
 
 
8728
 
 
8729
 
 
8730
 
 
8731
 
 
8732
 
 
8733
 
 
8734
 
 
8735
 
 
8736
 
 
8737
 
 
8738
 
 
8739
 
 
8740
 
 
8741
 
 
8742
 
 
8743
 
 
8744
 
 
8745
 
 
8746
 
 
8747
 
 
8748
 
 
8749
 
 
8750
 
 
8751
test -z "$LN_S" && LN_S="ln -s"
 
8752
 
 
8753
 
 
8754
 
 
8755
 
 
8756
 
 
8757
 
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
 
 
8765
 
 
8766
if test -n "${ZSH_VERSION+set}"; then
 
8767
   setopt NO_GLOB_SUBST
 
8768
fi
 
8769
 
 
8770
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8771
printf %s "checking for objdir... " >&6; }
 
8772
if test ${lt_cv_objdir+y}
 
8773
then :
 
8774
  printf %s "(cached) " >&6
 
8775
else $as_nop
 
8776
  rm -f .libs 2>/dev/null
 
8777
mkdir .libs 2>/dev/null
 
8778
if test -d .libs; then
 
8779
  lt_cv_objdir=.libs
 
8780
else
 
8781
  # MS-DOS does not allow filenames that begin with a dot.
 
8782
  lt_cv_objdir=_libs
 
8783
fi
 
8784
rmdir .libs 2>/dev/null
 
8785
fi
 
8786
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8787
printf "%s\n" "$lt_cv_objdir" >&6; }
 
8788
objdir=$lt_cv_objdir
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
case $host_os in
 
8800
aix3*)
 
8801
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8802
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8803
  # vanish in a puff of smoke.
 
8804
  if test set != "${COLLECT_NAMES+set}"; then
 
8805
    COLLECT_NAMES=
 
8806
    export COLLECT_NAMES
 
8807
  fi
 
8808
  ;;
 
8809
esac
 
8810
 
 
8811
# Global variables:
 
8812
ofile=libtool
 
8813
can_build_shared=yes
 
8814
 
 
8815
# All known linkers require a '.a' archive for static linking (except MSVC and
 
8816
# ICC, which need '.lib').
 
8817
libext=a
 
8818
 
 
8819
with_gnu_ld=$lt_cv_prog_gnu_ld
 
8820
 
 
8821
old_CC=$CC
 
8822
old_CFLAGS=$CFLAGS
 
8823
 
 
8824
# Set sane defaults for various variables
 
8825
test -z "$CC" && CC=cc
 
8826
test -z "$LTCC" && LTCC=$CC
 
8827
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8828
test -z "$LD" && LD=ld
 
8829
test -z "$ac_objext" && ac_objext=o
 
8830
 
 
8831
func_cc_basename $compiler
 
8832
cc_basename=$func_cc_basename_result
 
8833
 
 
8834
 
 
8835
# Only perform the check for file, if the check method requires it
 
8836
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8837
case $deplibs_check_method in
 
8838
file_magic*)
 
8839
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8840
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8841
printf %s "checking for ${ac_tool_prefix}file... " >&6; }
 
8842
if test ${lt_cv_path_MAGIC_CMD+y}
 
8843
then :
 
8844
  printf %s "(cached) " >&6
 
8845
else $as_nop
 
8846
  case $MAGIC_CMD in
 
8847
[\\/*] |  ?:[\\/]*)
 
8848
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
8849
  ;;
 
8850
*)
 
8851
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
8852
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
8853
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8854
  for ac_dir in $ac_dummy; do
 
8855
    IFS=$lt_save_ifs
 
8856
    test -z "$ac_dir" && ac_dir=.
 
8857
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
 
8858
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
 
8859
      if test -n "$file_magic_test_file"; then
 
8860
        case $deplibs_check_method in
 
8861
        "file_magic "*)
 
8862
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8863
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8864
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8865
            $EGREP "$file_magic_regex" > /dev/null; then
 
8866
            :
 
8867
          else
 
8868
            cat <<_LT_EOF 1>&2
 
8869
 
 
8870
*** Warning: the command libtool uses to detect shared libraries,
 
8871
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8872
*** The result is that libtool may fail to recognize shared libraries
 
8873
*** as such.  This will affect the creation of libtool libraries that
 
8874
*** depend on shared libraries, but programs linked with such libtool
 
8875
*** libraries will work regardless of this problem.  Nevertheless, you
 
8876
*** may want to report the problem to your system manager and/or to
 
8877
*** bug-libtool@gnu.org
 
8878
 
 
8879
_LT_EOF
 
8880
          fi ;;
 
8881
        esac
 
8882
      fi
 
8883
      break
 
8884
    fi
 
8885
  done
 
8886
  IFS=$lt_save_ifs
 
8887
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
8888
  ;;
 
8889
esac
 
8890
fi
 
8891
 
 
8892
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8893
if test -n "$MAGIC_CMD"; then
 
8894
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8895
printf "%s\n" "$MAGIC_CMD" >&6; }
 
8896
else
 
8897
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8898
printf "%s\n" "no" >&6; }
 
8899
fi
 
8900
 
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8906
  if test -n "$ac_tool_prefix"; then
 
8907
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8908
printf %s "checking for file... " >&6; }
 
8909
if test ${lt_cv_path_MAGIC_CMD+y}
 
8910
then :
 
8911
  printf %s "(cached) " >&6
 
8912
else $as_nop
 
8913
  case $MAGIC_CMD in
 
8914
[\\/*] |  ?:[\\/]*)
 
8915
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
8916
  ;;
 
8917
*)
 
8918
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
8919
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
8920
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8921
  for ac_dir in $ac_dummy; do
 
8922
    IFS=$lt_save_ifs
 
8923
    test -z "$ac_dir" && ac_dir=.
 
8924
    if test -f "$ac_dir/file"; then
 
8925
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
 
8926
      if test -n "$file_magic_test_file"; then
 
8927
        case $deplibs_check_method in
 
8928
        "file_magic "*)
 
8929
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8930
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8931
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8932
            $EGREP "$file_magic_regex" > /dev/null; then
 
8933
            :
 
8934
          else
 
8935
            cat <<_LT_EOF 1>&2
 
8936
 
 
8937
*** Warning: the command libtool uses to detect shared libraries,
 
8938
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8939
*** The result is that libtool may fail to recognize shared libraries
 
8940
*** as such.  This will affect the creation of libtool libraries that
 
8941
*** depend on shared libraries, but programs linked with such libtool
 
8942
*** libraries will work regardless of this problem.  Nevertheless, you
 
8943
*** may want to report the problem to your system manager and/or to
 
8944
*** bug-libtool@gnu.org
 
8945
 
 
8946
_LT_EOF
 
8947
          fi ;;
 
8948
        esac
 
8949
      fi
 
8950
      break
 
8951
    fi
 
8952
  done
 
8953
  IFS=$lt_save_ifs
 
8954
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
8955
  ;;
 
8956
esac
 
8957
fi
 
8958
 
 
8959
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
8960
if test -n "$MAGIC_CMD"; then
 
8961
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8962
printf "%s\n" "$MAGIC_CMD" >&6; }
 
8963
else
 
8964
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8965
printf "%s\n" "no" >&6; }
 
8966
fi
 
8967
 
 
8968
 
 
8969
  else
 
8970
    MAGIC_CMD=:
 
8971
  fi
 
8972
fi
 
8973
 
 
8974
  fi
 
8975
  ;;
 
8976
esac
 
8977
 
 
8978
# Use C for the default configuration in the libtool script
 
8979
 
 
8980
lt_save_CC=$CC
 
8981
ac_ext=c
 
8982
ac_cpp='$CPP $CPPFLAGS'
 
8983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8986
 
 
8987
 
 
8988
# Source file extension for C test sources.
 
8989
ac_ext=c
 
8990
 
 
8991
# Object file extension for compiled C test sources.
 
8992
objext=o
 
8993
objext=$objext
 
8994
 
 
8995
# Code to be used in simple compile tests
 
8996
lt_simple_compile_test_code="int some_variable = 0;"
 
8997
 
 
8998
# Code to be used in simple link tests
 
8999
lt_simple_link_test_code='int main(){return(0);}'
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
 
 
9005
 
 
9006
 
 
9007
# If no C compiler was specified, use CC.
 
9008
LTCC=${LTCC-"$CC"}
 
9009
 
 
9010
# If no C compiler flags were specified, use CFLAGS.
 
9011
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9012
 
 
9013
# Allow CC to be a program name with arguments.
 
9014
compiler=$CC
 
9015
 
 
9016
# Save the default compiler, since it gets overwritten when the other
 
9017
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9018
compiler_DEFAULT=$CC
 
9019
 
 
9020
# save warnings/boilerplate of simple test code
 
9021
ac_outfile=conftest.$ac_objext
 
9022
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9023
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9024
_lt_compiler_boilerplate=`cat conftest.err`
 
9025
$RM conftest*
 
9026
 
 
9027
ac_outfile=conftest.$ac_objext
 
9028
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9029
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9030
_lt_linker_boilerplate=`cat conftest.err`
 
9031
$RM -r conftest*
 
9032
 
 
9033
 
 
9034
## CAVEAT EMPTOR:
 
9035
## There is no encapsulation within the following macros, do not change
 
9036
## the running order or otherwise move them around unless you know exactly
 
9037
## what you are doing...
 
9038
if test -n "$compiler"; then
 
9039
 
 
9040
lt_prog_compiler_no_builtin_flag=
 
9041
 
 
9042
if test yes = "$GCC"; then
 
9043
  case $cc_basename in
 
9044
  nvcc*)
 
9045
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9046
  *)
 
9047
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9048
  esac
 
9049
 
 
9050
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9051
printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9052
if test ${lt_cv_prog_compiler_rtti_exceptions+y}
 
9053
then :
 
9054
  printf %s "(cached) " >&6
 
9055
else $as_nop
 
9056
  lt_cv_prog_compiler_rtti_exceptions=no
 
9057
   ac_outfile=conftest.$ac_objext
 
9058
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9059
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
 
9060
   # Insert the option either (1) after the last *FLAGS variable, or
 
9061
   # (2) before a word containing "conftest.", or (3) at the end.
 
9062
   # Note that $ac_compile itself does not contain backslashes and begins
 
9063
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9064
   # The option is referenced via a variable to avoid confusing sed.
 
9065
   lt_compile=`echo "$ac_compile" | $SED \
 
9066
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9067
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9068
   -e 's:$: $lt_compiler_flag:'`
 
9069
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9070
   (eval "$lt_compile" 2>conftest.err)
 
9071
   ac_status=$?
 
9072
   cat conftest.err >&5
 
9073
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9074
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9075
     # The compiler can only warn and ignore the option if not recognized
 
9076
     # So say no if there are warnings other than the usual output.
 
9077
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9078
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9079
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9080
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9081
     fi
 
9082
   fi
 
9083
   $RM conftest*
 
9084
 
 
9085
fi
 
9086
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9087
printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9088
 
 
9089
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
 
9090
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9091
else
 
9092
    :
 
9093
fi
 
9094
 
 
9095
fi
 
9096
 
 
9097
 
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
  lt_prog_compiler_wl=
 
9103
lt_prog_compiler_pic=
 
9104
lt_prog_compiler_static=
 
9105
 
 
9106
 
 
9107
  if test yes = "$GCC"; then
 
9108
    lt_prog_compiler_wl='-Wl,'
 
9109
    lt_prog_compiler_static='-static'
 
9110
 
 
9111
    case $host_os in
 
9112
      aix*)
 
9113
      # All AIX code is PIC.
 
9114
      if test ia64 = "$host_cpu"; then
 
9115
        # AIX 5 now supports IA64 processor
 
9116
        lt_prog_compiler_static='-Bstatic'
 
9117
      fi
 
9118
      lt_prog_compiler_pic='-fPIC'
 
9119
      ;;
 
9120
 
 
9121
    amigaos*)
 
9122
      case $host_cpu in
 
9123
      powerpc)
 
9124
            # see comment about AmigaOS4 .so support
 
9125
            lt_prog_compiler_pic='-fPIC'
 
9126
        ;;
 
9127
      m68k)
 
9128
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9129
            # adding the '-m68020' flag to GCC prevents building anything better,
 
9130
            # like '-m68040'.
 
9131
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9132
        ;;
 
9133
      esac
 
9134
      ;;
 
9135
 
 
9136
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9137
      # PIC is the default for these OSes.
 
9138
      ;;
 
9139
 
 
9140
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9141
      # This hack is so that the source file can tell whether it is being
 
9142
      # built for inclusion in a dll (and should export symbols for example).
 
9143
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9144
      # (--disable-auto-import) libraries
 
9145
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9146
      case $host_os in
 
9147
      os2*)
 
9148
        lt_prog_compiler_static='$wl-static'
 
9149
        ;;
 
9150
      esac
 
9151
      ;;
 
9152
 
 
9153
    darwin* | rhapsody*)
 
9154
      # PIC is the default on this platform
 
9155
      # Common symbols not allowed in MH_DYLIB files
 
9156
      lt_prog_compiler_pic='-fno-common'
 
9157
      ;;
 
9158
 
 
9159
    haiku*)
 
9160
      # PIC is the default for Haiku.
 
9161
      # The "-static" flag exists, but is broken.
 
9162
      lt_prog_compiler_static=
 
9163
      ;;
 
9164
 
 
9165
    hpux*)
 
9166
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9167
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9168
      # sets the default TLS model and affects inlining.
 
9169
      case $host_cpu in
 
9170
      hppa*64*)
 
9171
        # +Z the default
 
9172
        ;;
 
9173
      *)
 
9174
        lt_prog_compiler_pic='-fPIC'
 
9175
        ;;
 
9176
      esac
 
9177
      ;;
 
9178
 
 
9179
    interix[3-9]*)
 
9180
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9181
      # Instead, we relocate shared libraries at runtime.
 
9182
      ;;
 
9183
 
 
9184
    msdosdjgpp*)
 
9185
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9186
      # on systems that don't support them.
 
9187
      lt_prog_compiler_can_build_shared=no
 
9188
      enable_shared=no
 
9189
      ;;
 
9190
 
 
9191
    *nto* | *qnx*)
 
9192
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9193
      # it will coredump.
 
9194
      lt_prog_compiler_pic='-fPIC -shared'
 
9195
      ;;
 
9196
 
 
9197
    sysv4*MP*)
 
9198
      if test -d /usr/nec; then
 
9199
        lt_prog_compiler_pic=-Kconform_pic
 
9200
      fi
 
9201
      ;;
 
9202
 
 
9203
    *)
 
9204
      lt_prog_compiler_pic='-fPIC'
 
9205
      ;;
 
9206
    esac
 
9207
 
 
9208
    case $cc_basename in
 
9209
    nvcc*) # Cuda Compiler Driver 2.2
 
9210
      lt_prog_compiler_wl='-Xlinker '
 
9211
      if test -n "$lt_prog_compiler_pic"; then
 
9212
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9213
      fi
 
9214
      ;;
 
9215
    esac
 
9216
  else
 
9217
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9218
    case $host_os in
 
9219
    aix*)
 
9220
      lt_prog_compiler_wl='-Wl,'
 
9221
      if test ia64 = "$host_cpu"; then
 
9222
        # AIX 5 now supports IA64 processor
 
9223
        lt_prog_compiler_static='-Bstatic'
 
9224
      else
 
9225
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9226
      fi
 
9227
      ;;
 
9228
 
 
9229
    darwin* | rhapsody*)
 
9230
      # PIC is the default on this platform
 
9231
      # Common symbols not allowed in MH_DYLIB files
 
9232
      lt_prog_compiler_pic='-fno-common'
 
9233
      case $cc_basename in
 
9234
      nagfor*)
 
9235
        # NAG Fortran compiler
 
9236
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9237
        lt_prog_compiler_pic='-PIC'
 
9238
        lt_prog_compiler_static='-Bstatic'
 
9239
        ;;
 
9240
      esac
 
9241
      ;;
 
9242
 
 
9243
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9244
      # This hack is so that the source file can tell whether it is being
 
9245
      # built for inclusion in a dll (and should export symbols for example).
 
9246
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9247
      case $host_os in
 
9248
      os2*)
 
9249
        lt_prog_compiler_static='$wl-static'
 
9250
        ;;
 
9251
      esac
 
9252
      ;;
 
9253
 
 
9254
    hpux9* | hpux10* | hpux11*)
 
9255
      lt_prog_compiler_wl='-Wl,'
 
9256
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9257
      # not for PA HP-UX.
 
9258
      case $host_cpu in
 
9259
      hppa*64*|ia64*)
 
9260
        # +Z the default
 
9261
        ;;
 
9262
      *)
 
9263
        lt_prog_compiler_pic='+Z'
 
9264
        ;;
 
9265
      esac
 
9266
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9267
      lt_prog_compiler_static='$wl-a ${wl}archive'
 
9268
      ;;
 
9269
 
 
9270
    irix5* | irix6* | nonstopux*)
 
9271
      lt_prog_compiler_wl='-Wl,'
 
9272
      # PIC (with -KPIC) is the default.
 
9273
      lt_prog_compiler_static='-non_shared'
 
9274
      ;;
 
9275
 
 
9276
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9277
      case $cc_basename in
 
9278
      # old Intel for x86_64, which still supported -KPIC.
 
9279
      ecc*)
 
9280
        lt_prog_compiler_wl='-Wl,'
 
9281
        lt_prog_compiler_pic='-KPIC'
 
9282
        lt_prog_compiler_static='-static'
 
9283
        ;;
 
9284
      # icc used to be incompatible with GCC.
 
9285
      # ICC 10 doesn't accept -KPIC any more.
 
9286
      icc* | ifort*)
 
9287
        lt_prog_compiler_wl='-Wl,'
 
9288
        lt_prog_compiler_pic='-fPIC'
 
9289
        lt_prog_compiler_static='-static'
 
9290
        ;;
 
9291
      # Lahey Fortran 8.1.
 
9292
      lf95*)
 
9293
        lt_prog_compiler_wl='-Wl,'
 
9294
        lt_prog_compiler_pic='--shared'
 
9295
        lt_prog_compiler_static='--static'
 
9296
        ;;
 
9297
      nagfor*)
 
9298
        # NAG Fortran compiler
 
9299
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9300
        lt_prog_compiler_pic='-PIC'
 
9301
        lt_prog_compiler_static='-Bstatic'
 
9302
        ;;
 
9303
      tcc*)
 
9304
        # Fabrice Bellard et al's Tiny C Compiler
 
9305
        lt_prog_compiler_wl='-Wl,'
 
9306
        lt_prog_compiler_pic='-fPIC'
 
9307
        lt_prog_compiler_static='-static'
 
9308
        ;;
 
9309
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9310
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9311
        # which looks to be a dead project)
 
9312
        lt_prog_compiler_wl='-Wl,'
 
9313
        lt_prog_compiler_pic='-fpic'
 
9314
        lt_prog_compiler_static='-Bstatic'
 
9315
        ;;
 
9316
      ccc*)
 
9317
        lt_prog_compiler_wl='-Wl,'
 
9318
        # All Alpha code is PIC.
 
9319
        lt_prog_compiler_static='-non_shared'
 
9320
        ;;
 
9321
      xl* | bgxl* | bgf* | mpixl*)
 
9322
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9323
        lt_prog_compiler_wl='-Wl,'
 
9324
        lt_prog_compiler_pic='-qpic'
 
9325
        lt_prog_compiler_static='-qstaticlink'
 
9326
        ;;
 
9327
      *)
 
9328
        case `$CC -V 2>&1 | $SED 5q` in
 
9329
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9330
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9331
          lt_prog_compiler_pic='-KPIC'
 
9332
          lt_prog_compiler_static='-Bstatic'
 
9333
          lt_prog_compiler_wl=''
 
9334
          ;;
 
9335
        *Sun\ F* | *Sun*Fortran*)
 
9336
          lt_prog_compiler_pic='-KPIC'
 
9337
          lt_prog_compiler_static='-Bstatic'
 
9338
          lt_prog_compiler_wl='-Qoption ld '
 
9339
          ;;
 
9340
        *Sun\ C*)
 
9341
          # Sun C 5.9
 
9342
          lt_prog_compiler_pic='-KPIC'
 
9343
          lt_prog_compiler_static='-Bstatic'
 
9344
          lt_prog_compiler_wl='-Wl,'
 
9345
          ;;
 
9346
        *Intel*\ [CF]*Compiler*)
 
9347
          lt_prog_compiler_wl='-Wl,'
 
9348
          lt_prog_compiler_pic='-fPIC'
 
9349
          lt_prog_compiler_static='-static'
 
9350
          ;;
 
9351
        *Portland\ Group*)
 
9352
          lt_prog_compiler_wl='-Wl,'
 
9353
          lt_prog_compiler_pic='-fpic'
 
9354
          lt_prog_compiler_static='-Bstatic'
 
9355
          ;;
 
9356
        esac
 
9357
        ;;
 
9358
      esac
 
9359
      ;;
 
9360
 
 
9361
    newsos6)
 
9362
      lt_prog_compiler_pic='-KPIC'
 
9363
      lt_prog_compiler_static='-Bstatic'
 
9364
      ;;
 
9365
 
 
9366
    *nto* | *qnx*)
 
9367
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9368
      # it will coredump.
 
9369
      lt_prog_compiler_pic='-fPIC -shared'
 
9370
      ;;
 
9371
 
 
9372
    osf3* | osf4* | osf5*)
 
9373
      lt_prog_compiler_wl='-Wl,'
 
9374
      # All OSF/1 code is PIC.
 
9375
      lt_prog_compiler_static='-non_shared'
 
9376
      ;;
 
9377
 
 
9378
    rdos*)
 
9379
      lt_prog_compiler_static='-non_shared'
 
9380
      ;;
 
9381
 
 
9382
    solaris*)
 
9383
      lt_prog_compiler_pic='-KPIC'
 
9384
      lt_prog_compiler_static='-Bstatic'
 
9385
      case $cc_basename in
 
9386
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9387
        lt_prog_compiler_wl='-Qoption ld ';;
 
9388
      *)
 
9389
        lt_prog_compiler_wl='-Wl,';;
 
9390
      esac
 
9391
      ;;
 
9392
 
 
9393
    sunos4*)
 
9394
      lt_prog_compiler_wl='-Qoption ld '
 
9395
      lt_prog_compiler_pic='-PIC'
 
9396
      lt_prog_compiler_static='-Bstatic'
 
9397
      ;;
 
9398
 
 
9399
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9400
      lt_prog_compiler_wl='-Wl,'
 
9401
      lt_prog_compiler_pic='-KPIC'
 
9402
      lt_prog_compiler_static='-Bstatic'
 
9403
      ;;
 
9404
 
 
9405
    sysv4*MP*)
 
9406
      if test -d /usr/nec; then
 
9407
        lt_prog_compiler_pic='-Kconform_pic'
 
9408
        lt_prog_compiler_static='-Bstatic'
 
9409
      fi
 
9410
      ;;
 
9411
 
 
9412
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9413
      lt_prog_compiler_wl='-Wl,'
 
9414
      lt_prog_compiler_pic='-KPIC'
 
9415
      lt_prog_compiler_static='-Bstatic'
 
9416
      ;;
 
9417
 
 
9418
    unicos*)
 
9419
      lt_prog_compiler_wl='-Wl,'
 
9420
      lt_prog_compiler_can_build_shared=no
 
9421
      ;;
 
9422
 
 
9423
    uts4*)
 
9424
      lt_prog_compiler_pic='-pic'
 
9425
      lt_prog_compiler_static='-Bstatic'
 
9426
      ;;
 
9427
 
 
9428
    *)
 
9429
      lt_prog_compiler_can_build_shared=no
 
9430
      ;;
 
9431
    esac
 
9432
  fi
 
9433
 
 
9434
case $host_os in
 
9435
  # For platforms that do not support PIC, -DPIC is meaningless:
 
9436
  *djgpp*)
 
9437
    lt_prog_compiler_pic=
 
9438
    ;;
 
9439
  *)
 
9440
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9441
    ;;
 
9442
esac
 
9443
 
 
9444
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9445
printf %s "checking for $compiler option to produce PIC... " >&6; }
 
9446
if test ${lt_cv_prog_compiler_pic+y}
 
9447
then :
 
9448
  printf %s "(cached) " >&6
 
9449
else $as_nop
 
9450
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9451
fi
 
9452
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9453
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
 
9454
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9455
 
 
9456
#
 
9457
# Check to make sure the PIC flag actually works.
 
9458
#
 
9459
if test -n "$lt_prog_compiler_pic"; then
 
9460
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9461
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9462
if test ${lt_cv_prog_compiler_pic_works+y}
 
9463
then :
 
9464
  printf %s "(cached) " >&6
 
9465
else $as_nop
 
9466
  lt_cv_prog_compiler_pic_works=no
 
9467
   ac_outfile=conftest.$ac_objext
 
9468
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9469
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 
9470
   # Insert the option either (1) after the last *FLAGS variable, or
 
9471
   # (2) before a word containing "conftest.", or (3) at the end.
 
9472
   # Note that $ac_compile itself does not contain backslashes and begins
 
9473
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9474
   # The option is referenced via a variable to avoid confusing sed.
 
9475
   lt_compile=`echo "$ac_compile" | $SED \
 
9476
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9477
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9478
   -e 's:$: $lt_compiler_flag:'`
 
9479
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9480
   (eval "$lt_compile" 2>conftest.err)
 
9481
   ac_status=$?
 
9482
   cat conftest.err >&5
 
9483
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9484
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9485
     # The compiler can only warn and ignore the option if not recognized
 
9486
     # So say no if there are warnings other than the usual output.
 
9487
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9488
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9489
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9490
       lt_cv_prog_compiler_pic_works=yes
 
9491
     fi
 
9492
   fi
 
9493
   $RM conftest*
 
9494
 
 
9495
fi
 
9496
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9497
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
 
9498
 
 
9499
if test yes = "$lt_cv_prog_compiler_pic_works"; then
 
9500
    case $lt_prog_compiler_pic in
 
9501
     "" | " "*) ;;
 
9502
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9503
     esac
 
9504
else
 
9505
    lt_prog_compiler_pic=
 
9506
     lt_prog_compiler_can_build_shared=no
 
9507
fi
 
9508
 
 
9509
fi
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
#
 
9522
# Check to make sure the static flag actually works.
 
9523
#
 
9524
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9525
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9526
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9527
if test ${lt_cv_prog_compiler_static_works+y}
 
9528
then :
 
9529
  printf %s "(cached) " >&6
 
9530
else $as_nop
 
9531
  lt_cv_prog_compiler_static_works=no
 
9532
   save_LDFLAGS=$LDFLAGS
 
9533
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9534
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9535
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9536
     # The linker can only warn and ignore the option if not recognized
 
9537
     # So say no if there are warnings
 
9538
     if test -s conftest.err; then
 
9539
       # Append any errors to the config.log.
 
9540
       cat conftest.err 1>&5
 
9541
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9542
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9543
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9544
         lt_cv_prog_compiler_static_works=yes
 
9545
       fi
 
9546
     else
 
9547
       lt_cv_prog_compiler_static_works=yes
 
9548
     fi
 
9549
   fi
 
9550
   $RM -r conftest*
 
9551
   LDFLAGS=$save_LDFLAGS
 
9552
 
 
9553
fi
 
9554
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9555
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
 
9556
 
 
9557
if test yes = "$lt_cv_prog_compiler_static_works"; then
 
9558
    :
 
9559
else
 
9560
    lt_prog_compiler_static=
 
9561
fi
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
 
 
9569
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9570
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9571
if test ${lt_cv_prog_compiler_c_o+y}
 
9572
then :
 
9573
  printf %s "(cached) " >&6
 
9574
else $as_nop
 
9575
  lt_cv_prog_compiler_c_o=no
 
9576
   $RM -r conftest 2>/dev/null
 
9577
   mkdir conftest
 
9578
   cd conftest
 
9579
   mkdir out
 
9580
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9581
 
 
9582
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9583
   # Insert the option either (1) after the last *FLAGS variable, or
 
9584
   # (2) before a word containing "conftest.", or (3) at the end.
 
9585
   # Note that $ac_compile itself does not contain backslashes and begins
 
9586
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9587
   lt_compile=`echo "$ac_compile" | $SED \
 
9588
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9589
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9590
   -e 's:$: $lt_compiler_flag:'`
 
9591
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9592
   (eval "$lt_compile" 2>out/conftest.err)
 
9593
   ac_status=$?
 
9594
   cat out/conftest.err >&5
 
9595
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9596
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9597
   then
 
9598
     # The compiler can only warn and ignore the option if not recognized
 
9599
     # So say no if there are warnings
 
9600
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9601
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9602
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9603
       lt_cv_prog_compiler_c_o=yes
 
9604
     fi
 
9605
   fi
 
9606
   chmod u+w . 2>&5
 
9607
   $RM conftest*
 
9608
   # SGI C++ compiler will create directory out/ii_files/ for
 
9609
   # template instantiation
 
9610
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9611
   $RM out/* && rmdir out
 
9612
   cd ..
 
9613
   $RM -r conftest
 
9614
   $RM conftest*
 
9615
 
 
9616
fi
 
9617
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9618
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9626
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9627
if test ${lt_cv_prog_compiler_c_o+y}
 
9628
then :
 
9629
  printf %s "(cached) " >&6
 
9630
else $as_nop
 
9631
  lt_cv_prog_compiler_c_o=no
 
9632
   $RM -r conftest 2>/dev/null
 
9633
   mkdir conftest
 
9634
   cd conftest
 
9635
   mkdir out
 
9636
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9637
 
 
9638
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9639
   # Insert the option either (1) after the last *FLAGS variable, or
 
9640
   # (2) before a word containing "conftest.", or (3) at the end.
 
9641
   # Note that $ac_compile itself does not contain backslashes and begins
 
9642
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9643
   lt_compile=`echo "$ac_compile" | $SED \
 
9644
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9645
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9646
   -e 's:$: $lt_compiler_flag:'`
 
9647
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9648
   (eval "$lt_compile" 2>out/conftest.err)
 
9649
   ac_status=$?
 
9650
   cat out/conftest.err >&5
 
9651
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9652
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9653
   then
 
9654
     # The compiler can only warn and ignore the option if not recognized
 
9655
     # So say no if there are warnings
 
9656
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9657
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9658
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9659
       lt_cv_prog_compiler_c_o=yes
 
9660
     fi
 
9661
   fi
 
9662
   chmod u+w . 2>&5
 
9663
   $RM conftest*
 
9664
   # SGI C++ compiler will create directory out/ii_files/ for
 
9665
   # template instantiation
 
9666
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9667
   $RM out/* && rmdir out
 
9668
   cd ..
 
9669
   $RM -r conftest
 
9670
   $RM conftest*
 
9671
 
 
9672
fi
 
9673
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9674
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
hard_links=nottested
 
9680
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
 
9681
  # do not overwrite the value of need_locks provided by the user
 
9682
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9683
printf %s "checking if we can lock with hard links... " >&6; }
 
9684
  hard_links=yes
 
9685
  $RM conftest*
 
9686
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9687
  touch conftest.a
 
9688
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9689
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9690
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9691
printf "%s\n" "$hard_links" >&6; }
 
9692
  if test no = "$hard_links"; then
 
9693
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 
9694
printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 
9695
    need_locks=warn
 
9696
  fi
 
9697
else
 
9698
  need_locks=no
 
9699
fi
 
9700
 
 
9701
 
 
9702
 
 
9703
 
 
9704
 
 
9705
 
 
9706
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9707
printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9708
 
 
9709
  runpath_var=
 
9710
  allow_undefined_flag=
 
9711
  always_export_symbols=no
 
9712
  archive_cmds=
 
9713
  archive_expsym_cmds=
 
9714
  compiler_needs_object=no
 
9715
  enable_shared_with_static_runtimes=no
 
9716
  export_dynamic_flag_spec=
 
9717
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9718
  hardcode_automatic=no
 
9719
  hardcode_direct=no
 
9720
  hardcode_direct_absolute=no
 
9721
  hardcode_libdir_flag_spec=
 
9722
  hardcode_libdir_separator=
 
9723
  hardcode_minus_L=no
 
9724
  hardcode_shlibpath_var=unsupported
 
9725
  inherit_rpath=no
 
9726
  link_all_deplibs=unknown
 
9727
  module_cmds=
 
9728
  module_expsym_cmds=
 
9729
  old_archive_from_new_cmds=
 
9730
  old_archive_from_expsyms_cmds=
 
9731
  thread_safe_flag_spec=
 
9732
  whole_archive_flag_spec=
 
9733
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9734
  # included in the symbol list
 
9735
  include_expsyms=
 
9736
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9737
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
 
9738
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 
9739
  # as well as any symbol that contains 'd'.
 
9740
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9741
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9742
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9743
  # the symbol is explicitly referenced.  Since portable code cannot
 
9744
  # rely on this symbol name, it's probably fine to never include it in
 
9745
  # preloaded symbol tables.
 
9746
  # Exclude shared library initialization/finalization symbols.
 
9747
  extract_expsyms_cmds=
 
9748
 
 
9749
  case $host_os in
 
9750
  cygwin* | mingw* | pw32* | cegcc*)
 
9751
    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
 
9752
    # When not using gcc, we currently assume that we are using
 
9753
    # Microsoft Visual C++ or Intel C++ Compiler.
 
9754
    if test yes != "$GCC"; then
 
9755
      with_gnu_ld=no
 
9756
    fi
 
9757
    ;;
 
9758
  interix*)
 
9759
    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
 
9760
    with_gnu_ld=yes
 
9761
    ;;
 
9762
  openbsd* | bitrig*)
 
9763
    with_gnu_ld=no
 
9764
    ;;
 
9765
  esac
 
9766
 
 
9767
  ld_shlibs=yes
 
9768
 
 
9769
  # On some targets, GNU ld is compatible enough with the native linker
 
9770
  # that we're better off using the native interface for both.
 
9771
  lt_use_gnu_ld_interface=no
 
9772
  if test yes = "$with_gnu_ld"; then
 
9773
    case $host_os in
 
9774
      aix*)
 
9775
        # The AIX port of GNU ld has always aspired to compatibility
 
9776
        # with the native linker.  However, as the warning in the GNU ld
 
9777
        # block says, versions before 2.19.5* couldn't really create working
 
9778
        # shared libraries, regardless of the interface used.
 
9779
        case `$LD -v 2>&1` in
 
9780
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9781
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9782
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9783
          *)
 
9784
            lt_use_gnu_ld_interface=yes
 
9785
            ;;
 
9786
        esac
 
9787
        ;;
 
9788
      *)
 
9789
        lt_use_gnu_ld_interface=yes
 
9790
        ;;
 
9791
    esac
 
9792
  fi
 
9793
 
 
9794
  if test yes = "$lt_use_gnu_ld_interface"; then
 
9795
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9796
    wlarc='$wl'
 
9797
 
 
9798
    # Set some defaults for GNU ld with shared library support. These
 
9799
    # are reset later if shared libraries are not supported. Putting them
 
9800
    # here allows them to be overridden if necessary.
 
9801
    runpath_var=LD_RUN_PATH
 
9802
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9803
    export_dynamic_flag_spec='$wl--export-dynamic'
 
9804
    # ancient GNU ld didn't support --whole-archive et. al.
 
9805
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9806
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 
9807
    else
 
9808
      whole_archive_flag_spec=
 
9809
    fi
 
9810
    supports_anon_versioning=no
 
9811
    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
 
9812
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9813
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9814
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9815
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9816
      *\ 2.11.*) ;; # other 2.11 versions
 
9817
      *) supports_anon_versioning=yes ;;
 
9818
    esac
 
9819
 
 
9820
    # See if GNU ld supports shared libraries.
 
9821
    case $host_os in
 
9822
    aix[3-9]*)
 
9823
      # On AIX/PPC, the GNU linker is very broken
 
9824
      if test ia64 != "$host_cpu"; then
 
9825
        ld_shlibs=no
 
9826
        cat <<_LT_EOF 1>&2
 
9827
 
 
9828
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9829
*** to be unable to reliably create shared libraries on AIX.
 
9830
*** Therefore, libtool is disabling shared libraries support.  If you
 
9831
*** really care for shared libraries, you may want to install binutils
 
9832
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9833
*** You will then need to restart the configuration process.
 
9834
 
 
9835
_LT_EOF
 
9836
      fi
 
9837
      ;;
 
9838
 
 
9839
    amigaos*)
 
9840
      case $host_cpu in
 
9841
      powerpc)
 
9842
            # see comment about AmigaOS4 .so support
 
9843
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9844
            archive_expsym_cmds=''
 
9845
        ;;
 
9846
      m68k)
 
9847
            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)'
 
9848
            hardcode_libdir_flag_spec='-L$libdir'
 
9849
            hardcode_minus_L=yes
 
9850
        ;;
 
9851
      esac
 
9852
      ;;
 
9853
 
 
9854
    beos*)
 
9855
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9856
        allow_undefined_flag=unsupported
 
9857
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9858
        # support --undefined.  This deserves some investigation.  FIXME
 
9859
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9860
      else
 
9861
        ld_shlibs=no
 
9862
      fi
 
9863
      ;;
 
9864
 
 
9865
    cygwin* | mingw* | pw32* | cegcc*)
 
9866
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9867
      # as there is no search path for DLLs.
 
9868
      hardcode_libdir_flag_spec='-L$libdir'
 
9869
      export_dynamic_flag_spec='$wl--export-all-symbols'
 
9870
      allow_undefined_flag=unsupported
 
9871
      always_export_symbols=no
 
9872
      enable_shared_with_static_runtimes=yes
 
9873
      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'
 
9874
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9875
 
 
9876
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9877
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9878
        # If the export-symbols file already is a .def file, use it as
 
9879
        # is; otherwise, prepend EXPORTS...
 
9880
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
9881
          cp $export_symbols $output_objdir/$soname.def;
 
9882
        else
 
9883
          echo EXPORTS > $output_objdir/$soname.def;
 
9884
          cat $export_symbols >> $output_objdir/$soname.def;
 
9885
        fi~
 
9886
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9887
      else
 
9888
        ld_shlibs=no
 
9889
      fi
 
9890
      ;;
 
9891
 
 
9892
    haiku*)
 
9893
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9894
      link_all_deplibs=yes
 
9895
      ;;
 
9896
 
 
9897
    os2*)
 
9898
      hardcode_libdir_flag_spec='-L$libdir'
 
9899
      hardcode_minus_L=yes
 
9900
      allow_undefined_flag=unsupported
 
9901
      shrext_cmds=.dll
 
9902
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
9903
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
9904
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
9905
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
9906
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
9907
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
9908
        emximp -o $lib $output_objdir/$libname.def'
 
9909
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
9910
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
9911
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
9912
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
9913
        prefix_cmds="$SED"~
 
9914
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
9915
          prefix_cmds="$prefix_cmds -e 1d";
 
9916
        fi~
 
9917
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
9918
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
9919
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
9920
        emximp -o $lib $output_objdir/$libname.def'
 
9921
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
9922
      enable_shared_with_static_runtimes=yes
 
9923
      file_list_spec='@'
 
9924
      ;;
 
9925
 
 
9926
    interix[3-9]*)
 
9927
      hardcode_direct=no
 
9928
      hardcode_shlibpath_var=no
 
9929
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
9930
      export_dynamic_flag_spec='$wl-E'
 
9931
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9932
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9933
      # default) and relocated if they conflict, which is a slow very memory
 
9934
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9935
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9936
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9937
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9938
      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'
 
9939
      ;;
 
9940
 
 
9941
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9942
      tmp_diet=no
 
9943
      if test linux-dietlibc = "$host_os"; then
 
9944
        case $cc_basename in
 
9945
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9946
        esac
 
9947
      fi
 
9948
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9949
         && test no = "$tmp_diet"
 
9950
      then
 
9951
        tmp_addflag=' $pic_flag'
 
9952
        tmp_sharedflag='-shared'
 
9953
        case $cc_basename,$host_cpu in
 
9954
        pgcc*)                          # Portland Group C compiler
 
9955
          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'
 
9956
          tmp_addflag=' $pic_flag'
 
9957
          ;;
 
9958
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9959
                                        # Portland Group f77 and f90 compilers
 
9960
          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'
 
9961
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9962
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9963
          tmp_addflag=' -i_dynamic' ;;
 
9964
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9965
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9966
        ifc* | ifort*)                  # Intel Fortran compiler
 
9967
          tmp_addflag=' -nofor_main' ;;
 
9968
        lf95*)                          # Lahey Fortran 8.1
 
9969
          whole_archive_flag_spec=
 
9970
          tmp_sharedflag='--shared' ;;
 
9971
        nagfor*)                        # NAGFOR 5.3
 
9972
          tmp_sharedflag='-Wl,-shared' ;;
 
9973
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9974
          tmp_sharedflag='-qmkshrobj'
 
9975
          tmp_addflag= ;;
 
9976
        nvcc*)  # Cuda Compiler Driver 2.2
 
9977
          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'
 
9978
          compiler_needs_object=yes
 
9979
          ;;
 
9980
        esac
 
9981
        case `$CC -V 2>&1 | $SED 5q` in
 
9982
        *Sun\ C*)                       # Sun C 5.9
 
9983
          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'
 
9984
          compiler_needs_object=yes
 
9985
          tmp_sharedflag='-G' ;;
 
9986
        *Sun\ F*)                       # Sun Fortran 8.3
 
9987
          tmp_sharedflag='-G' ;;
 
9988
        esac
 
9989
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
9990
 
 
9991
        if test yes = "$supports_anon_versioning"; then
 
9992
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9993
            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9994
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9995
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 
9996
        fi
 
9997
 
 
9998
        case $cc_basename in
 
9999
        tcc*)
 
10000
          export_dynamic_flag_spec='-rdynamic'
 
10001
          ;;
 
10002
        xlf* | bgf* | bgxlf* | mpixlf*)
 
10003
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10004
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10005
          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10006
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
10007
          if test yes = "$supports_anon_versioning"; then
 
10008
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10009
              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10010
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10011
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10012
          fi
 
10013
          ;;
 
10014
        esac
 
10015
      else
 
10016
        ld_shlibs=no
 
10017
      fi
 
10018
      ;;
 
10019
 
 
10020
    netbsd*)
 
10021
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10022
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10023
        wlarc=
 
10024
      else
 
10025
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10026
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10027
      fi
 
10028
      ;;
 
10029
 
 
10030
    solaris*)
 
10031
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10032
        ld_shlibs=no
 
10033
        cat <<_LT_EOF 1>&2
 
10034
 
 
10035
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10036
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10037
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10038
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10039
*** your PATH or compiler configuration so that the native linker is
 
10040
*** used, and then restart.
 
10041
 
 
10042
_LT_EOF
 
10043
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10044
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10045
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10046
      else
 
10047
        ld_shlibs=no
 
10048
      fi
 
10049
      ;;
 
10050
 
 
10051
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10052
      case `$LD -v 2>&1` in
 
10053
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10054
        ld_shlibs=no
 
10055
        cat <<_LT_EOF 1>&2
 
10056
 
 
10057
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 
10058
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10059
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10060
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10061
*** your PATH or compiler configuration so that the native linker is
 
10062
*** used, and then restart.
 
10063
 
 
10064
_LT_EOF
 
10065
        ;;
 
10066
        *)
 
10067
          # For security reasons, it is highly recommended that you always
 
10068
          # use absolute paths for naming shared libraries, and exclude the
 
10069
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10070
          # requires that you compile everything twice, which is a pain.
 
10071
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10072
            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10073
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10074
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10075
          else
 
10076
            ld_shlibs=no
 
10077
          fi
 
10078
        ;;
 
10079
      esac
 
10080
      ;;
 
10081
 
 
10082
    sunos4*)
 
10083
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10084
      wlarc=
 
10085
      hardcode_direct=yes
 
10086
      hardcode_shlibpath_var=no
 
10087
      ;;
 
10088
 
 
10089
    *)
 
10090
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10091
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10092
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10093
      else
 
10094
        ld_shlibs=no
 
10095
      fi
 
10096
      ;;
 
10097
    esac
 
10098
 
 
10099
    if test no = "$ld_shlibs"; then
 
10100
      runpath_var=
 
10101
      hardcode_libdir_flag_spec=
 
10102
      export_dynamic_flag_spec=
 
10103
      whole_archive_flag_spec=
 
10104
    fi
 
10105
  else
 
10106
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10107
    case $host_os in
 
10108
    aix3*)
 
10109
      allow_undefined_flag=unsupported
 
10110
      always_export_symbols=yes
 
10111
      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'
 
10112
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10113
      # are no directories specified by -L.
 
10114
      hardcode_minus_L=yes
 
10115
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 
10116
        # Neither direct hardcoding nor static linking is supported with a
 
10117
        # broken collect2.
 
10118
        hardcode_direct=unsupported
 
10119
      fi
 
10120
      ;;
 
10121
 
 
10122
    aix[4-9]*)
 
10123
      if test ia64 = "$host_cpu"; then
 
10124
        # On IA64, the linker does run time linking by default, so we don't
 
10125
        # have to do anything special.
 
10126
        aix_use_runtimelinking=no
 
10127
        exp_sym_flag='-Bexport'
 
10128
        no_entry_flag=
 
10129
      else
 
10130
        # If we're using GNU nm, then we don't want the "-C" option.
 
10131
        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 
10132
        # Without the "-l" option, or with the "-B" option, AIX nm treats
 
10133
        # weak defined symbols like other global defined symbols, whereas
 
10134
        # GNU nm marks them as "W".
 
10135
        # While the 'weak' keyword is ignored in the Export File, we need
 
10136
        # it in the Import File for the 'aix-soname' feature, so we have
 
10137
        # to replace the "-B" option with "-P" for AIX nm.
 
10138
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10139
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 
10140
        else
 
10141
          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 
10142
        fi
 
10143
        aix_use_runtimelinking=no
 
10144
 
 
10145
        # Test if we are trying to use run time linking or normal
 
10146
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10147
        # have runtime linking enabled, and use it for executables.
 
10148
        # For shared libraries, we enable/disable runtime linking
 
10149
        # depending on the kind of the shared library created -
 
10150
        # when "with_aix_soname,aix_use_runtimelinking" is:
 
10151
        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 
10152
        # "aix,yes"  lib.so          shared, rtl:yes, for executables
 
10153
        #            lib.a           static archive
 
10154
        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 
10155
        #            lib.a(lib.so.V) shared, rtl:no,  for executables
 
10156
        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 
10157
        #            lib.a(lib.so.V) shared, rtl:no
 
10158
        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 
10159
        #            lib.a           static archive
 
10160
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10161
          for ld_flag in $LDFLAGS; do
 
10162
          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 
10163
            aix_use_runtimelinking=yes
 
10164
            break
 
10165
          fi
 
10166
          done
 
10167
          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 
10168
            # With aix-soname=svr4, we create the lib.so.V shared archives only,
 
10169
            # so we don't have lib.a shared libs to link our executables.
 
10170
            # We have to force runtime linking in this case.
 
10171
            aix_use_runtimelinking=yes
 
10172
            LDFLAGS="$LDFLAGS -Wl,-brtl"
 
10173
          fi
 
10174
          ;;
 
10175
        esac
 
10176
 
 
10177
        exp_sym_flag='-bexport'
 
10178
        no_entry_flag='-bnoentry'
 
10179
      fi
 
10180
 
 
10181
      # When large executables or shared objects are built, AIX ld can
 
10182
      # have problems creating the table of contents.  If linking a library
 
10183
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10184
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10185
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10186
 
 
10187
      archive_cmds=''
 
10188
      hardcode_direct=yes
 
10189
      hardcode_direct_absolute=yes
 
10190
      hardcode_libdir_separator=':'
 
10191
      link_all_deplibs=yes
 
10192
      file_list_spec='$wl-f,'
 
10193
      case $with_aix_soname,$aix_use_runtimelinking in
 
10194
      aix,*) ;; # traditional, no import file
 
10195
      svr4,* | *,yes) # use import file
 
10196
        # The Import File defines what to hardcode.
 
10197
        hardcode_direct=no
 
10198
        hardcode_direct_absolute=no
 
10199
        ;;
 
10200
      esac
 
10201
 
 
10202
      if test yes = "$GCC"; then
 
10203
        case $host_os in aix4.[012]|aix4.[012].*)
 
10204
        # We only want to do this on AIX 4.2 and lower, the check
 
10205
        # below for broken collect2 doesn't work under 4.3+
 
10206
          collect2name=`$CC -print-prog-name=collect2`
 
10207
          if test -f "$collect2name" &&
 
10208
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10209
          then
 
10210
          # We have reworked collect2
 
10211
          :
 
10212
          else
 
10213
          # We have old collect2
 
10214
          hardcode_direct=unsupported
 
10215
          # It fails to find uninstalled libraries when the uninstalled
 
10216
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10217
          # to unsupported forces relinking
 
10218
          hardcode_minus_L=yes
 
10219
          hardcode_libdir_flag_spec='-L$libdir'
 
10220
          hardcode_libdir_separator=
 
10221
          fi
 
10222
          ;;
 
10223
        esac
 
10224
        shared_flag='-shared'
 
10225
        if test yes = "$aix_use_runtimelinking"; then
 
10226
          shared_flag="$shared_flag "'$wl-G'
 
10227
        fi
 
10228
        # Need to ensure runtime linking is disabled for the traditional
 
10229
        # shared library, or the linker may eventually find shared libraries
 
10230
        # /with/ Import File - we do not want to mix them.
 
10231
        shared_flag_aix='-shared'
 
10232
        shared_flag_svr4='-shared $wl-G'
 
10233
      else
 
10234
        # not using gcc
 
10235
        if test ia64 = "$host_cpu"; then
 
10236
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10237
        # chokes on -Wl,-G. The following line is correct:
 
10238
          shared_flag='-G'
 
10239
        else
 
10240
          if test yes = "$aix_use_runtimelinking"; then
 
10241
            shared_flag='$wl-G'
 
10242
          else
 
10243
            shared_flag='$wl-bM:SRE'
 
10244
          fi
 
10245
          shared_flag_aix='$wl-bM:SRE'
 
10246
          shared_flag_svr4='$wl-G'
 
10247
        fi
 
10248
      fi
 
10249
 
 
10250
      export_dynamic_flag_spec='$wl-bexpall'
 
10251
      # It seems that -bexpall does not export symbols beginning with
 
10252
      # underscore (_), so it is better to generate a list of symbols to export.
 
10253
      always_export_symbols=yes
 
10254
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 
10255
        # Warning - without using the other runtime loading flags (-brtl),
 
10256
        # -berok will link without error, but may produce a broken library.
 
10257
        allow_undefined_flag='-berok'
 
10258
        # Determine the default libpath from the value encoded in an
 
10259
        # empty executable.
 
10260
        if test set = "${lt_cv_aix_libpath+set}"; then
 
10261
  aix_libpath=$lt_cv_aix_libpath
 
10262
else
 
10263
  if test ${lt_cv_aix_libpath_+y}
 
10264
then :
 
10265
  printf %s "(cached) " >&6
 
10266
else $as_nop
 
10267
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10268
/* end confdefs.h.  */
 
10269
 
 
10270
int
 
10271
main (void)
 
10272
{
 
10273
 
 
10274
  ;
 
10275
  return 0;
 
10276
}
 
10277
_ACEOF
 
10278
if ac_fn_c_try_link "$LINENO"
 
10279
then :
 
10280
 
 
10281
  lt_aix_libpath_sed='
 
10282
      /Import File Strings/,/^$/ {
 
10283
          /^0/ {
 
10284
              s/^0  *\([^ ]*\) *$/\1/
 
10285
              p
 
10286
          }
 
10287
      }'
 
10288
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10289
  # Check for a 64-bit object if we didn't find anything.
 
10290
  if test -z "$lt_cv_aix_libpath_"; then
 
10291
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10292
  fi
 
10293
fi
 
10294
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
10295
    conftest$ac_exeext conftest.$ac_ext
 
10296
  if test -z "$lt_cv_aix_libpath_"; then
 
10297
    lt_cv_aix_libpath_=/usr/lib:/lib
 
10298
  fi
 
10299
 
 
10300
fi
 
10301
 
 
10302
  aix_libpath=$lt_cv_aix_libpath_
 
10303
fi
 
10304
 
 
10305
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
10306
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 
10307
      else
 
10308
        if test ia64 = "$host_cpu"; then
 
10309
          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
 
10310
          allow_undefined_flag="-z nodefs"
 
10311
          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"
 
10312
        else
 
10313
         # Determine the default libpath from the value encoded in an
 
10314
         # empty executable.
 
10315
         if test set = "${lt_cv_aix_libpath+set}"; then
 
10316
  aix_libpath=$lt_cv_aix_libpath
 
10317
else
 
10318
  if test ${lt_cv_aix_libpath_+y}
 
10319
then :
 
10320
  printf %s "(cached) " >&6
 
10321
else $as_nop
 
10322
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10323
/* end confdefs.h.  */
 
10324
 
 
10325
int
 
10326
main (void)
 
10327
{
 
10328
 
 
10329
  ;
 
10330
  return 0;
 
10331
}
 
10332
_ACEOF
 
10333
if ac_fn_c_try_link "$LINENO"
 
10334
then :
 
10335
 
 
10336
  lt_aix_libpath_sed='
 
10337
      /Import File Strings/,/^$/ {
 
10338
          /^0/ {
 
10339
              s/^0  *\([^ ]*\) *$/\1/
 
10340
              p
 
10341
          }
 
10342
      }'
 
10343
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10344
  # Check for a 64-bit object if we didn't find anything.
 
10345
  if test -z "$lt_cv_aix_libpath_"; then
 
10346
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10347
  fi
 
10348
fi
 
10349
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
10350
    conftest$ac_exeext conftest.$ac_ext
 
10351
  if test -z "$lt_cv_aix_libpath_"; then
 
10352
    lt_cv_aix_libpath_=/usr/lib:/lib
 
10353
  fi
 
10354
 
 
10355
fi
 
10356
 
 
10357
  aix_libpath=$lt_cv_aix_libpath_
 
10358
fi
 
10359
 
 
10360
         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
10361
          # Warning - without using the other run time loading flags,
 
10362
          # -berok will link without error, but may produce a broken library.
 
10363
          no_undefined_flag=' $wl-bernotok'
 
10364
          allow_undefined_flag=' $wl-berok'
 
10365
          if test yes = "$with_gnu_ld"; then
 
10366
            # We only use this code for GNU lds that support --whole-archive.
 
10367
            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
 
10368
          else
 
10369
            # Exported symbols can be pulled into shared objects from archives
 
10370
            whole_archive_flag_spec='$convenience'
 
10371
          fi
 
10372
          archive_cmds_need_lc=yes
 
10373
          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 
10374
          # -brtl affects multiple linker settings, -berok does not and is overridden later
 
10375
          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
 
10376
          if test svr4 != "$with_aix_soname"; then
 
10377
            # This is similar to how AIX traditionally builds its shared libraries.
 
10378
            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 
10379
          fi
 
10380
          if test aix != "$with_aix_soname"; then
 
10381
            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 
10382
          else
 
10383
            # used by -dlpreopen to get the symbols
 
10384
            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 
10385
          fi
 
10386
          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
 
10387
        fi
 
10388
      fi
 
10389
      ;;
 
10390
 
 
10391
    amigaos*)
 
10392
      case $host_cpu in
 
10393
      powerpc)
 
10394
            # see comment about AmigaOS4 .so support
 
10395
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10396
            archive_expsym_cmds=''
 
10397
        ;;
 
10398
      m68k)
 
10399
            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)'
 
10400
            hardcode_libdir_flag_spec='-L$libdir'
 
10401
            hardcode_minus_L=yes
 
10402
        ;;
 
10403
      esac
 
10404
      ;;
 
10405
 
 
10406
    bsdi[45]*)
 
10407
      export_dynamic_flag_spec=-rdynamic
 
10408
      ;;
 
10409
 
 
10410
    cygwin* | mingw* | pw32* | cegcc*)
 
10411
      # When not using gcc, we currently assume that we are using
 
10412
      # Microsoft Visual C++ or Intel C++ Compiler.
 
10413
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10414
      # no search path for DLLs.
 
10415
      case $cc_basename in
 
10416
      cl* | icl*)
 
10417
        # Native MSVC or ICC
 
10418
        hardcode_libdir_flag_spec=' '
 
10419
        allow_undefined_flag=unsupported
 
10420
        always_export_symbols=yes
 
10421
        file_list_spec='@'
 
10422
        # Tell ltmain to make .lib files, not .a files.
 
10423
        libext=lib
 
10424
        # Tell ltmain to make .dll files, not .so files.
 
10425
        shrext_cmds=.dll
 
10426
        # FIXME: Setting linknames here is a bad hack.
 
10427
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
10428
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
10429
            cp "$export_symbols" "$output_objdir/$soname.def";
 
10430
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
10431
          else
 
10432
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
10433
          fi~
 
10434
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10435
          linknames='
 
10436
        # The linker will not automatically build a static lib if we build a DLL.
 
10437
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10438
        enable_shared_with_static_runtimes=yes
 
10439
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10440
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10441
        # Don't use ranlib
 
10442
        old_postinstall_cmds='chmod 644 $oldlib'
 
10443
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10444
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10445
          case $lt_outputfile in
 
10446
            *.exe|*.EXE) ;;
 
10447
            *)
 
10448
              lt_outputfile=$lt_outputfile.exe
 
10449
              lt_tool_outputfile=$lt_tool_outputfile.exe
 
10450
              ;;
 
10451
          esac~
 
10452
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
10453
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10454
            $RM "$lt_outputfile.manifest";
 
10455
          fi'
 
10456
        ;;
 
10457
      *)
 
10458
        # Assume MSVC and ICC wrapper
 
10459
        hardcode_libdir_flag_spec=' '
 
10460
        allow_undefined_flag=unsupported
 
10461
        # Tell ltmain to make .lib files, not .a files.
 
10462
        libext=lib
 
10463
        # Tell ltmain to make .dll files, not .so files.
 
10464
        shrext_cmds=.dll
 
10465
        # FIXME: Setting linknames here is a bad hack.
 
10466
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10467
        # The linker will automatically build a .lib file if we build a DLL.
 
10468
        old_archive_from_new_cmds='true'
 
10469
        # FIXME: Should let the user specify the lib program.
 
10470
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10471
        enable_shared_with_static_runtimes=yes
 
10472
        ;;
 
10473
      esac
 
10474
      ;;
 
10475
 
 
10476
    darwin* | rhapsody*)
 
10477
 
 
10478
 
 
10479
  archive_cmds_need_lc=no
 
10480
  hardcode_direct=no
 
10481
  hardcode_automatic=yes
 
10482
  hardcode_shlibpath_var=unsupported
 
10483
  if test yes = "$lt_cv_ld_force_load"; then
 
10484
    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\"`'
 
10485
 
 
10486
  else
 
10487
    whole_archive_flag_spec=''
 
10488
  fi
 
10489
  link_all_deplibs=yes
 
10490
  allow_undefined_flag=$_lt_dar_allow_undefined
 
10491
  case $cc_basename in
 
10492
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 
10493
     *) _lt_dar_can_shared=$GCC ;;
 
10494
  esac
 
10495
  if test yes = "$_lt_dar_can_shared"; then
 
10496
    output_verbose_link_cmd=func_echo_all
 
10497
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 
10498
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
10499
    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"
 
10500
    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"
 
10501
 
 
10502
  else
 
10503
  ld_shlibs=no
 
10504
  fi
 
10505
 
 
10506
      ;;
 
10507
 
 
10508
    dgux*)
 
10509
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10510
      hardcode_libdir_flag_spec='-L$libdir'
 
10511
      hardcode_shlibpath_var=no
 
10512
      ;;
 
10513
 
 
10514
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10515
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10516
    # does not break anything, and helps significantly (at the cost of a little
 
10517
    # extra space).
 
10518
    freebsd2.2*)
 
10519
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10520
      hardcode_libdir_flag_spec='-R$libdir'
 
10521
      hardcode_direct=yes
 
10522
      hardcode_shlibpath_var=no
 
10523
      ;;
 
10524
 
 
10525
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10526
    freebsd2.*)
 
10527
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10528
      hardcode_direct=yes
 
10529
      hardcode_minus_L=yes
 
10530
      hardcode_shlibpath_var=no
 
10531
      ;;
 
10532
 
 
10533
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10534
    freebsd* | dragonfly* | midnightbsd*)
 
10535
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10536
      hardcode_libdir_flag_spec='-R$libdir'
 
10537
      hardcode_direct=yes
 
10538
      hardcode_shlibpath_var=no
 
10539
      ;;
 
10540
 
 
10541
    hpux9*)
 
10542
      if test yes = "$GCC"; then
 
10543
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
10544
      else
 
10545
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
10546
      fi
 
10547
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10548
      hardcode_libdir_separator=:
 
10549
      hardcode_direct=yes
 
10550
 
 
10551
      # hardcode_minus_L: Not really in the search PATH,
 
10552
      # but as the default location of the library.
 
10553
      hardcode_minus_L=yes
 
10554
      export_dynamic_flag_spec='$wl-E'
 
10555
      ;;
 
10556
 
 
10557
    hpux10*)
 
10558
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
10559
        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10560
      else
 
10561
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10562
      fi
 
10563
      if test no = "$with_gnu_ld"; then
 
10564
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10565
        hardcode_libdir_separator=:
 
10566
        hardcode_direct=yes
 
10567
        hardcode_direct_absolute=yes
 
10568
        export_dynamic_flag_spec='$wl-E'
 
10569
        # hardcode_minus_L: Not really in the search PATH,
 
10570
        # but as the default location of the library.
 
10571
        hardcode_minus_L=yes
 
10572
      fi
 
10573
      ;;
 
10574
 
 
10575
    hpux11*)
 
10576
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
10577
        case $host_cpu in
 
10578
        hppa*64*)
 
10579
          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10580
          ;;
 
10581
        ia64*)
 
10582
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10583
          ;;
 
10584
        *)
 
10585
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10586
          ;;
 
10587
        esac
 
10588
      else
 
10589
        case $host_cpu in
 
10590
        hppa*64*)
 
10591
          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10592
          ;;
 
10593
        ia64*)
 
10594
          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10595
          ;;
 
10596
        *)
 
10597
 
 
10598
          # Older versions of the 11.00 compiler do not understand -b yet
 
10599
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10600
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10601
printf %s "checking if $CC understands -b... " >&6; }
 
10602
if test ${lt_cv_prog_compiler__b+y}
 
10603
then :
 
10604
  printf %s "(cached) " >&6
 
10605
else $as_nop
 
10606
  lt_cv_prog_compiler__b=no
 
10607
   save_LDFLAGS=$LDFLAGS
 
10608
   LDFLAGS="$LDFLAGS -b"
 
10609
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10610
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10611
     # The linker can only warn and ignore the option if not recognized
 
10612
     # So say no if there are warnings
 
10613
     if test -s conftest.err; then
 
10614
       # Append any errors to the config.log.
 
10615
       cat conftest.err 1>&5
 
10616
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10617
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10618
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10619
         lt_cv_prog_compiler__b=yes
 
10620
       fi
 
10621
     else
 
10622
       lt_cv_prog_compiler__b=yes
 
10623
     fi
 
10624
   fi
 
10625
   $RM -r conftest*
 
10626
   LDFLAGS=$save_LDFLAGS
 
10627
 
 
10628
fi
 
10629
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10630
printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
 
10631
 
 
10632
if test yes = "$lt_cv_prog_compiler__b"; then
 
10633
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10634
else
 
10635
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10636
fi
 
10637
 
 
10638
          ;;
 
10639
        esac
 
10640
      fi
 
10641
      if test no = "$with_gnu_ld"; then
 
10642
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10643
        hardcode_libdir_separator=:
 
10644
 
 
10645
        case $host_cpu in
 
10646
        hppa*64*|ia64*)
 
10647
          hardcode_direct=no
 
10648
          hardcode_shlibpath_var=no
 
10649
          ;;
 
10650
        *)
 
10651
          hardcode_direct=yes
 
10652
          hardcode_direct_absolute=yes
 
10653
          export_dynamic_flag_spec='$wl-E'
 
10654
 
 
10655
          # hardcode_minus_L: Not really in the search PATH,
 
10656
          # but as the default location of the library.
 
10657
          hardcode_minus_L=yes
 
10658
          ;;
 
10659
        esac
 
10660
      fi
 
10661
      ;;
 
10662
 
 
10663
    irix5* | irix6* | nonstopux*)
 
10664
      if test yes = "$GCC"; then
 
10665
        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'
 
10666
        # Try to use the -exported_symbol ld option, if it does not
 
10667
        # work, assume that -exports_file does not work either and
 
10668
        # implicitly export all symbols.
 
10669
        # This should be the same for all languages, so no per-tag cache variable.
 
10670
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10671
printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10672
if test ${lt_cv_irix_exported_symbol+y}
 
10673
then :
 
10674
  printf %s "(cached) " >&6
 
10675
else $as_nop
 
10676
  save_LDFLAGS=$LDFLAGS
 
10677
           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 
10678
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10679
/* end confdefs.h.  */
 
10680
int foo (void) { return 0; }
 
10681
_ACEOF
 
10682
if ac_fn_c_try_link "$LINENO"
 
10683
then :
 
10684
  lt_cv_irix_exported_symbol=yes
 
10685
else $as_nop
 
10686
  lt_cv_irix_exported_symbol=no
 
10687
fi
 
10688
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
10689
    conftest$ac_exeext conftest.$ac_ext
 
10690
           LDFLAGS=$save_LDFLAGS
 
10691
fi
 
10692
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10693
printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
 
10694
        if test yes = "$lt_cv_irix_exported_symbol"; then
 
10695
          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'
 
10696
        fi
 
10697
      else
 
10698
        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'
 
10699
        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'
 
10700
      fi
 
10701
      archive_cmds_need_lc='no'
 
10702
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10703
      hardcode_libdir_separator=:
 
10704
      inherit_rpath=yes
 
10705
      link_all_deplibs=yes
 
10706
      ;;
 
10707
 
 
10708
    linux*)
 
10709
      case $cc_basename in
 
10710
      tcc*)
 
10711
        # Fabrice Bellard et al's Tiny C Compiler
 
10712
        ld_shlibs=yes
 
10713
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10714
        ;;
 
10715
      esac
 
10716
      ;;
 
10717
 
 
10718
    netbsd*)
 
10719
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10720
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10721
      else
 
10722
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10723
      fi
 
10724
      hardcode_libdir_flag_spec='-R$libdir'
 
10725
      hardcode_direct=yes
 
10726
      hardcode_shlibpath_var=no
 
10727
      ;;
 
10728
 
 
10729
    newsos6)
 
10730
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10731
      hardcode_direct=yes
 
10732
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10733
      hardcode_libdir_separator=:
 
10734
      hardcode_shlibpath_var=no
 
10735
      ;;
 
10736
 
 
10737
    *nto* | *qnx*)
 
10738
      ;;
 
10739
 
 
10740
    openbsd* | bitrig*)
 
10741
      if test -f /usr/libexec/ld.so; then
 
10742
        hardcode_direct=yes
 
10743
        hardcode_shlibpath_var=no
 
10744
        hardcode_direct_absolute=yes
 
10745
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
10746
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10747
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 
10748
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10749
          export_dynamic_flag_spec='$wl-E'
 
10750
        else
 
10751
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10752
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10753
        fi
 
10754
      else
 
10755
        ld_shlibs=no
 
10756
      fi
 
10757
      ;;
 
10758
 
 
10759
    os2*)
 
10760
      hardcode_libdir_flag_spec='-L$libdir'
 
10761
      hardcode_minus_L=yes
 
10762
      allow_undefined_flag=unsupported
 
10763
      shrext_cmds=.dll
 
10764
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10765
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10766
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10767
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10768
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
10769
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10770
        emximp -o $lib $output_objdir/$libname.def'
 
10771
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10772
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10773
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10774
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10775
        prefix_cmds="$SED"~
 
10776
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
10777
          prefix_cmds="$prefix_cmds -e 1d";
 
10778
        fi~
 
10779
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
10780
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
10781
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10782
        emximp -o $lib $output_objdir/$libname.def'
 
10783
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
10784
      enable_shared_with_static_runtimes=yes
 
10785
      file_list_spec='@'
 
10786
      ;;
 
10787
 
 
10788
    osf3*)
 
10789
      if test yes = "$GCC"; then
 
10790
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
10791
        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'
 
10792
      else
 
10793
        allow_undefined_flag=' -expect_unresolved \*'
 
10794
        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'
 
10795
      fi
 
10796
      archive_cmds_need_lc='no'
 
10797
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10798
      hardcode_libdir_separator=:
 
10799
      ;;
 
10800
 
 
10801
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10802
      if test yes = "$GCC"; then
 
10803
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
10804
        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'
 
10805
        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10806
      else
 
10807
        allow_undefined_flag=' -expect_unresolved \*'
 
10808
        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'
 
10809
        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~
 
10810
          $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'
 
10811
 
 
10812
        # Both c and cxx compiler support -rpath directly
 
10813
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10814
      fi
 
10815
      archive_cmds_need_lc='no'
 
10816
      hardcode_libdir_separator=:
 
10817
      ;;
 
10818
 
 
10819
    solaris*)
 
10820
      no_undefined_flag=' -z defs'
 
10821
      if test yes = "$GCC"; then
 
10822
        wlarc='$wl'
 
10823
        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10824
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10825
          $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'
 
10826
      else
 
10827
        case `$CC -V 2>&1` in
 
10828
        *"Compilers 5.0"*)
 
10829
          wlarc=''
 
10830
          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10831
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10832
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10833
          ;;
 
10834
        *)
 
10835
          wlarc='$wl'
 
10836
          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10837
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10838
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10839
          ;;
 
10840
        esac
 
10841
      fi
 
10842
      hardcode_libdir_flag_spec='-R$libdir'
 
10843
      hardcode_shlibpath_var=no
 
10844
      case $host_os in
 
10845
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10846
      *)
 
10847
        # The compiler driver will combine and reorder linker options,
 
10848
        # but understands '-z linker_flag'.  GCC discards it without '$wl',
 
10849
        # but is careful enough not to reorder.
 
10850
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10851
        if test yes = "$GCC"; then
 
10852
          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 
10853
        else
 
10854
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10855
        fi
 
10856
        ;;
 
10857
      esac
 
10858
      link_all_deplibs=yes
 
10859
      ;;
 
10860
 
 
10861
    sunos4*)
 
10862
      if test sequent = "$host_vendor"; then
 
10863
        # Use $CC to link under sequent, because it throws in some extra .o
 
10864
        # files that make .init and .fini sections work.
 
10865
        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10866
      else
 
10867
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10868
      fi
 
10869
      hardcode_libdir_flag_spec='-L$libdir'
 
10870
      hardcode_direct=yes
 
10871
      hardcode_minus_L=yes
 
10872
      hardcode_shlibpath_var=no
 
10873
      ;;
 
10874
 
 
10875
    sysv4)
 
10876
      case $host_vendor in
 
10877
        sni)
 
10878
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10879
          hardcode_direct=yes # is this really true???
 
10880
        ;;
 
10881
        siemens)
 
10882
          ## LD is ld it makes a PLAMLIB
 
10883
          ## CC just makes a GrossModule.
 
10884
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10885
          reload_cmds='$CC -r -o $output$reload_objs'
 
10886
          hardcode_direct=no
 
10887
        ;;
 
10888
        motorola)
 
10889
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10890
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10891
        ;;
 
10892
      esac
 
10893
      runpath_var='LD_RUN_PATH'
 
10894
      hardcode_shlibpath_var=no
 
10895
      ;;
 
10896
 
 
10897
    sysv4.3*)
 
10898
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10899
      hardcode_shlibpath_var=no
 
10900
      export_dynamic_flag_spec='-Bexport'
 
10901
      ;;
 
10902
 
 
10903
    sysv4*MP*)
 
10904
      if test -d /usr/nec; then
 
10905
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10906
        hardcode_shlibpath_var=no
 
10907
        runpath_var=LD_RUN_PATH
 
10908
        hardcode_runpath_var=yes
 
10909
        ld_shlibs=yes
 
10910
      fi
 
10911
      ;;
 
10912
 
 
10913
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10914
      no_undefined_flag='$wl-z,text'
 
10915
      archive_cmds_need_lc=no
 
10916
      hardcode_shlibpath_var=no
 
10917
      runpath_var='LD_RUN_PATH'
 
10918
 
 
10919
      if test yes = "$GCC"; then
 
10920
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10921
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10922
      else
 
10923
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10924
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10925
      fi
 
10926
      ;;
 
10927
 
 
10928
    sysv5* | sco3.2v5* | sco5v6*)
 
10929
      # Note: We CANNOT use -z defs as we might desire, because we do not
 
10930
      # link with -lc, and that would cause any symbols used from libc to
 
10931
      # always be unresolved, which means just about no library would
 
10932
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10933
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10934
      # as -z defs.
 
10935
      no_undefined_flag='$wl-z,text'
 
10936
      allow_undefined_flag='$wl-z,nodefs'
 
10937
      archive_cmds_need_lc=no
 
10938
      hardcode_shlibpath_var=no
 
10939
      hardcode_libdir_flag_spec='$wl-R,$libdir'
 
10940
      hardcode_libdir_separator=':'
 
10941
      link_all_deplibs=yes
 
10942
      export_dynamic_flag_spec='$wl-Bexport'
 
10943
      runpath_var='LD_RUN_PATH'
 
10944
 
 
10945
      if test yes = "$GCC"; then
 
10946
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10947
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10948
      else
 
10949
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10950
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10951
      fi
 
10952
      ;;
 
10953
 
 
10954
    uts4*)
 
10955
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10956
      hardcode_libdir_flag_spec='-L$libdir'
 
10957
      hardcode_shlibpath_var=no
 
10958
      ;;
 
10959
 
 
10960
    *)
 
10961
      ld_shlibs=no
 
10962
      ;;
 
10963
    esac
 
10964
 
 
10965
    if test sni = "$host_vendor"; then
 
10966
      case $host in
 
10967
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10968
        export_dynamic_flag_spec='$wl-Blargedynsym'
 
10969
        ;;
 
10970
      esac
 
10971
    fi
 
10972
  fi
 
10973
 
 
10974
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10975
printf "%s\n" "$ld_shlibs" >&6; }
 
10976
test no = "$ld_shlibs" && can_build_shared=no
 
10977
 
 
10978
with_gnu_ld=$with_gnu_ld
 
10979
 
 
10980
 
 
10981
 
 
10982
 
 
10983
 
 
10984
 
 
10985
 
 
10986
 
 
10987
 
 
10988
 
 
10989
 
 
10990
 
 
10991
 
 
10992
 
 
10993
 
 
10994
#
 
10995
# Do we need to explicitly link libc?
 
10996
#
 
10997
case "x$archive_cmds_need_lc" in
 
10998
x|xyes)
 
10999
  # Assume -lc should be added
 
11000
  archive_cmds_need_lc=yes
 
11001
 
 
11002
  if test yes,yes = "$GCC,$enable_shared"; then
 
11003
    case $archive_cmds in
 
11004
    *'~'*)
 
11005
      # FIXME: we may have to deal with multi-command sequences.
 
11006
      ;;
 
11007
    '$CC '*)
 
11008
      # Test whether the compiler implicitly links with -lc since on some
 
11009
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11010
      # to ld, don't add -lc before -lgcc.
 
11011
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
11012
printf %s "checking whether -lc should be explicitly linked in... " >&6; }
 
11013
if test ${lt_cv_archive_cmds_need_lc+y}
 
11014
then :
 
11015
  printf %s "(cached) " >&6
 
11016
else $as_nop
 
11017
  $RM conftest*
 
11018
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11019
 
 
11020
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11021
  (eval $ac_compile) 2>&5
 
11022
  ac_status=$?
 
11023
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11024
  test $ac_status = 0; } 2>conftest.err; then
 
11025
          soname=conftest
 
11026
          lib=conftest
 
11027
          libobjs=conftest.$ac_objext
 
11028
          deplibs=
 
11029
          wl=$lt_prog_compiler_wl
 
11030
          pic_flag=$lt_prog_compiler_pic
 
11031
          compiler_flags=-v
 
11032
          linker_flags=-v
 
11033
          verstring=
 
11034
          output_objdir=.
 
11035
          libname=conftest
 
11036
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
11037
          allow_undefined_flag=
 
11038
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11039
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11040
  ac_status=$?
 
11041
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11042
  test $ac_status = 0; }
 
11043
          then
 
11044
            lt_cv_archive_cmds_need_lc=no
 
11045
          else
 
11046
            lt_cv_archive_cmds_need_lc=yes
 
11047
          fi
 
11048
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
11049
        else
 
11050
          cat conftest.err 1>&5
 
11051
        fi
 
11052
        $RM conftest*
 
11053
 
 
11054
fi
 
11055
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
11056
printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
 
11057
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
11058
      ;;
 
11059
    esac
 
11060
  fi
 
11061
  ;;
 
11062
esac
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
 
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11216
printf %s "checking dynamic linker characteristics... " >&6; }
 
11217
 
 
11218
if test yes = "$GCC"; then
 
11219
  case $host_os in
 
11220
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 
11221
    *) lt_awk_arg='/^libraries:/' ;;
 
11222
  esac
 
11223
  case $host_os in
 
11224
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
 
11225
    *) lt_sed_strip_eq='s|=/|/|g' ;;
 
11226
  esac
 
11227
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11228
  case $lt_search_path_spec in
 
11229
  *\;*)
 
11230
    # if the path contains ";" then we assume it to be the separator
 
11231
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11232
    # assumed that no part of a normal pathname contains ";" but that should
 
11233
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11234
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11235
    ;;
 
11236
  *)
 
11237
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11238
    ;;
 
11239
  esac
 
11240
  # Ok, now we have the path, separated by spaces, we can step through it
 
11241
  # and add multilib dir if necessary...
 
11242
  lt_tmp_lt_search_path_spec=
 
11243
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11244
  # ...but if some path component already ends with the multilib dir we assume
 
11245
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 
11246
  case "$lt_multi_os_dir; $lt_search_path_spec " in
 
11247
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 
11248
    lt_multi_os_dir=
 
11249
    ;;
 
11250
  esac
 
11251
  for lt_sys_path in $lt_search_path_spec; do
 
11252
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
 
11253
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 
11254
    elif test -n "$lt_multi_os_dir"; then
 
11255
      test -d "$lt_sys_path" && \
 
11256
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11257
    fi
 
11258
  done
 
11259
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
11260
BEGIN {RS = " "; FS = "/|\n";} {
 
11261
  lt_foo = "";
 
11262
  lt_count = 0;
 
11263
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11264
    if ($lt_i != "" && $lt_i != ".") {
 
11265
      if ($lt_i == "..") {
 
11266
        lt_count++;
 
11267
      } else {
 
11268
        if (lt_count == 0) {
 
11269
          lt_foo = "/" $lt_i lt_foo;
 
11270
        } else {
 
11271
          lt_count--;
 
11272
        }
 
11273
      }
 
11274
    }
 
11275
  }
 
11276
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11277
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11278
}'`
 
11279
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11280
  # for these hosts.
 
11281
  case $host_os in
 
11282
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11283
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
 
11284
  esac
 
11285
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
11286
else
 
11287
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11288
fi
 
11289
library_names_spec=
 
11290
libname_spec='lib$name'
 
11291
soname_spec=
 
11292
shrext_cmds=.so
 
11293
postinstall_cmds=
 
11294
postuninstall_cmds=
 
11295
finish_cmds=
 
11296
finish_eval=
 
11297
shlibpath_var=
 
11298
shlibpath_overrides_runpath=unknown
 
11299
version_type=none
 
11300
dynamic_linker="$host_os ld.so"
 
11301
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11302
need_lib_prefix=unknown
 
11303
hardcode_into_libs=no
 
11304
 
 
11305
# when you set need_version to no, make sure it does not cause -set_version
 
11306
# flags to be left without arguments
 
11307
need_version=unknown
 
11308
 
 
11309
 
 
11310
 
 
11311
case $host_os in
 
11312
aix3*)
 
11313
  version_type=linux # correct to gnu/linux during the next big refactor
 
11314
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 
11315
  shlibpath_var=LIBPATH
 
11316
 
 
11317
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11318
  soname_spec='$libname$release$shared_ext$major'
 
11319
  ;;
 
11320
 
 
11321
aix[4-9]*)
 
11322
  version_type=linux # correct to gnu/linux during the next big refactor
 
11323
  need_lib_prefix=no
 
11324
  need_version=no
 
11325
  hardcode_into_libs=yes
 
11326
  if test ia64 = "$host_cpu"; then
 
11327
    # AIX 5 supports IA64
 
11328
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 
11329
    shlibpath_var=LD_LIBRARY_PATH
 
11330
  else
 
11331
    # With GCC up to 2.95.x, collect2 would create an import file
 
11332
    # for dependence libraries.  The import file would start with
 
11333
    # the line '#! .'.  This would cause the generated library to
 
11334
    # depend on '.', always an invalid library.  This was fixed in
 
11335
    # development snapshots of GCC prior to 3.0.
 
11336
    case $host_os in
 
11337
      aix4 | aix4.[01] | aix4.[01].*)
 
11338
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11339
           echo ' yes '
 
11340
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 
11341
        :
 
11342
      else
 
11343
        can_build_shared=no
 
11344
      fi
 
11345
      ;;
 
11346
    esac
 
11347
    # Using Import Files as archive members, it is possible to support
 
11348
    # filename-based versioning of shared library archives on AIX. While
 
11349
    # this would work for both with and without runtime linking, it will
 
11350
    # prevent static linking of such archives. So we do filename-based
 
11351
    # shared library versioning with .so extension only, which is used
 
11352
    # when both runtime linking and shared linking is enabled.
 
11353
    # Unfortunately, runtime linking may impact performance, so we do
 
11354
    # not want this to be the default eventually. Also, we use the
 
11355
    # versioned .so libs for executables only if there is the -brtl
 
11356
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 
11357
    # To allow for filename-based versioning support, we need to create
 
11358
    # libNAME.so.V as an archive file, containing:
 
11359
    # *) an Import File, referring to the versioned filename of the
 
11360
    #    archive as well as the shared archive member, telling the
 
11361
    #    bitwidth (32 or 64) of that shared object, and providing the
 
11362
    #    list of exported symbols of that shared object, eventually
 
11363
    #    decorated with the 'weak' keyword
 
11364
    # *) the shared object with the F_LOADONLY flag set, to really avoid
 
11365
    #    it being seen by the linker.
 
11366
    # At run time we better use the real file rather than another symlink,
 
11367
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
 
11368
 
 
11369
    case $with_aix_soname,$aix_use_runtimelinking in
 
11370
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 
11371
    # soname into executable. Probably we can add versioning support to
 
11372
    # collect2, so additional links can be useful in future.
 
11373
    aix,yes) # traditional libtool
 
11374
      dynamic_linker='AIX unversionable lib.so'
 
11375
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11376
      # instead of lib<name>.a to let people know that these are not
 
11377
      # typical AIX shared libraries.
 
11378
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11379
      ;;
 
11380
    aix,no) # traditional AIX only
 
11381
      dynamic_linker='AIX lib.a(lib.so.V)'
 
11382
      # We preserve .a as extension for shared libraries through AIX4.2
 
11383
      # and later when we are not doing run time linking.
 
11384
      library_names_spec='$libname$release.a $libname.a'
 
11385
      soname_spec='$libname$release$shared_ext$major'
 
11386
      ;;
 
11387
    svr4,*) # full svr4 only
 
11388
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
 
11389
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
11390
      # We do not specify a path in Import Files, so LIBPATH fires.
 
11391
      shlibpath_overrides_runpath=yes
 
11392
      ;;
 
11393
    *,yes) # both, prefer svr4
 
11394
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
 
11395
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
11396
      # unpreferred sharedlib libNAME.a needs extra handling
 
11397
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 
11398
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 
11399
      # We do not specify a path in Import Files, so LIBPATH fires.
 
11400
      shlibpath_overrides_runpath=yes
 
11401
      ;;
 
11402
    *,no) # both, prefer aix
 
11403
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
 
11404
      library_names_spec='$libname$release.a $libname.a'
 
11405
      soname_spec='$libname$release$shared_ext$major'
 
11406
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 
11407
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 
11408
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 
11409
      ;;
 
11410
    esac
 
11411
    shlibpath_var=LIBPATH
 
11412
  fi
 
11413
  ;;
 
11414
 
 
11415
amigaos*)
 
11416
  case $host_cpu in
 
11417
  powerpc)
 
11418
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11419
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11420
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11421
    ;;
 
11422
  m68k)
 
11423
    library_names_spec='$libname.ixlibrary $libname.a'
 
11424
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11425
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
 
11426
    ;;
 
11427
  esac
 
11428
  ;;
 
11429
 
 
11430
beos*)
 
11431
  library_names_spec='$libname$shared_ext'
 
11432
  dynamic_linker="$host_os ld.so"
 
11433
  shlibpath_var=LIBRARY_PATH
 
11434
  ;;
 
11435
 
 
11436
bsdi[45]*)
 
11437
  version_type=linux # correct to gnu/linux during the next big refactor
 
11438
  need_version=no
 
11439
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11440
  soname_spec='$libname$release$shared_ext$major'
 
11441
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11442
  shlibpath_var=LD_LIBRARY_PATH
 
11443
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11444
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11445
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11446
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11447
  # libtool to hard-code these into programs
 
11448
  ;;
 
11449
 
 
11450
cygwin* | mingw* | pw32* | cegcc*)
 
11451
  version_type=windows
 
11452
  shrext_cmds=.dll
 
11453
  need_version=no
 
11454
  need_lib_prefix=no
 
11455
 
 
11456
  case $GCC,$cc_basename in
 
11457
  yes,*)
 
11458
    # gcc
 
11459
    library_names_spec='$libname.dll.a'
 
11460
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11461
    postinstall_cmds='base_file=`basename \$file`~
 
11462
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
11463
      dldir=$destdir/`dirname \$dlpath`~
 
11464
      test -d \$dldir || mkdir -p \$dldir~
 
11465
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11466
      chmod a+x \$dldir/$dlname~
 
11467
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11468
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11469
      fi'
 
11470
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11471
      dlpath=$dir/\$dldll~
 
11472
       $RM \$dlpath'
 
11473
    shlibpath_overrides_runpath=yes
 
11474
 
 
11475
    case $host_os in
 
11476
    cygwin*)
 
11477
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11478
      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11479
 
 
11480
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11481
      ;;
 
11482
    mingw* | cegcc*)
 
11483
      # MinGW DLLs use traditional 'lib' prefix
 
11484
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11485
      ;;
 
11486
    pw32*)
 
11487
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11488
      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11489
      ;;
 
11490
    esac
 
11491
    dynamic_linker='Win32 ld.exe'
 
11492
    ;;
 
11493
 
 
11494
  *,cl* | *,icl*)
 
11495
    # Native MSVC or ICC
 
11496
    libname_spec='$name'
 
11497
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11498
    library_names_spec='$libname.dll.lib'
 
11499
 
 
11500
    case $build_os in
 
11501
    mingw*)
 
11502
      sys_lib_search_path_spec=
 
11503
      lt_save_ifs=$IFS
 
11504
      IFS=';'
 
11505
      for lt_path in $LIB
 
11506
      do
 
11507
        IFS=$lt_save_ifs
 
11508
        # Let DOS variable expansion print the short 8.3 style file name.
 
11509
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11510
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11511
      done
 
11512
      IFS=$lt_save_ifs
 
11513
      # Convert to MSYS style.
 
11514
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11515
      ;;
 
11516
    cygwin*)
 
11517
      # Convert to unix form, then to dos form, then back to unix form
 
11518
      # but this time dos style (no spaces!) so that the unix form looks
 
11519
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11520
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11521
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11522
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11523
      ;;
 
11524
    *)
 
11525
      sys_lib_search_path_spec=$LIB
 
11526
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11527
        # It is most probably a Windows format PATH.
 
11528
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11529
      else
 
11530
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11531
      fi
 
11532
      # FIXME: find the short name or the path components, as spaces are
 
11533
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11534
      ;;
 
11535
    esac
 
11536
 
 
11537
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11538
    postinstall_cmds='base_file=`basename \$file`~
 
11539
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
11540
      dldir=$destdir/`dirname \$dlpath`~
 
11541
      test -d \$dldir || mkdir -p \$dldir~
 
11542
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11543
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11544
      dlpath=$dir/\$dldll~
 
11545
       $RM \$dlpath'
 
11546
    shlibpath_overrides_runpath=yes
 
11547
    dynamic_linker='Win32 link.exe'
 
11548
    ;;
 
11549
 
 
11550
  *)
 
11551
    # Assume MSVC and ICC wrapper
 
11552
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 
11553
    dynamic_linker='Win32 ld.exe'
 
11554
    ;;
 
11555
  esac
 
11556
  # FIXME: first we should search . and the directory the executable is in
 
11557
  shlibpath_var=PATH
 
11558
  ;;
 
11559
 
 
11560
darwin* | rhapsody*)
 
11561
  dynamic_linker="$host_os dyld"
 
11562
  version_type=darwin
 
11563
  need_lib_prefix=no
 
11564
  need_version=no
 
11565
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
11566
  soname_spec='$libname$release$major$shared_ext'
 
11567
  shlibpath_overrides_runpath=yes
 
11568
  shlibpath_var=DYLD_LIBRARY_PATH
 
11569
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11570
 
 
11571
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11572
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11573
  ;;
 
11574
 
 
11575
dgux*)
 
11576
  version_type=linux # correct to gnu/linux during the next big refactor
 
11577
  need_lib_prefix=no
 
11578
  need_version=no
 
11579
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11580
  soname_spec='$libname$release$shared_ext$major'
 
11581
  shlibpath_var=LD_LIBRARY_PATH
 
11582
  ;;
 
11583
 
 
11584
freebsd* | dragonfly* | midnightbsd*)
 
11585
  # DragonFly does not have aout.  When/if they implement a new
 
11586
  # versioning mechanism, adjust this.
 
11587
  if test -x /usr/bin/objformat; then
 
11588
    objformat=`/usr/bin/objformat`
 
11589
  else
 
11590
    case $host_os in
 
11591
    freebsd[23].*) objformat=aout ;;
 
11592
    *) objformat=elf ;;
 
11593
    esac
 
11594
  fi
 
11595
  version_type=freebsd-$objformat
 
11596
  case $version_type in
 
11597
    freebsd-elf*)
 
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
      need_version=no
 
11601
      need_lib_prefix=no
 
11602
      ;;
 
11603
    freebsd-*)
 
11604
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
11605
      need_version=yes
 
11606
      ;;
 
11607
  esac
 
11608
  shlibpath_var=LD_LIBRARY_PATH
 
11609
  case $host_os in
 
11610
  freebsd2.*)
 
11611
    shlibpath_overrides_runpath=yes
 
11612
    ;;
 
11613
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11614
    shlibpath_overrides_runpath=yes
 
11615
    hardcode_into_libs=yes
 
11616
    ;;
 
11617
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11618
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11619
    shlibpath_overrides_runpath=no
 
11620
    hardcode_into_libs=yes
 
11621
    ;;
 
11622
  *) # from 4.6 on, and DragonFly
 
11623
    shlibpath_overrides_runpath=yes
 
11624
    hardcode_into_libs=yes
 
11625
    ;;
 
11626
  esac
 
11627
  ;;
 
11628
 
 
11629
haiku*)
 
11630
  version_type=linux # correct to gnu/linux during the next big refactor
 
11631
  need_lib_prefix=no
 
11632
  need_version=no
 
11633
  dynamic_linker="$host_os runtime_loader"
 
11634
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11635
  soname_spec='$libname$release$shared_ext$major'
 
11636
  shlibpath_var=LIBRARY_PATH
 
11637
  shlibpath_overrides_runpath=no
 
11638
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11639
  hardcode_into_libs=yes
 
11640
  ;;
 
11641
 
 
11642
hpux9* | hpux10* | hpux11*)
 
11643
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11644
  # link against other versions.
 
11645
  version_type=sunos
 
11646
  need_lib_prefix=no
 
11647
  need_version=no
 
11648
  case $host_cpu in
 
11649
  ia64*)
 
11650
    shrext_cmds='.so'
 
11651
    hardcode_into_libs=yes
 
11652
    dynamic_linker="$host_os dld.so"
 
11653
    shlibpath_var=LD_LIBRARY_PATH
 
11654
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11655
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11656
    soname_spec='$libname$release$shared_ext$major'
 
11657
    if test 32 = "$HPUX_IA64_MODE"; then
 
11658
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11659
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 
11660
    else
 
11661
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11662
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 
11663
    fi
 
11664
    ;;
 
11665
  hppa*64*)
 
11666
    shrext_cmds='.sl'
 
11667
    hardcode_into_libs=yes
 
11668
    dynamic_linker="$host_os dld.sl"
 
11669
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11670
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11671
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11672
    soname_spec='$libname$release$shared_ext$major'
 
11673
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11674
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11675
    ;;
 
11676
  *)
 
11677
    shrext_cmds='.sl'
 
11678
    dynamic_linker="$host_os dld.sl"
 
11679
    shlibpath_var=SHLIB_PATH
 
11680
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11681
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11682
    soname_spec='$libname$release$shared_ext$major'
 
11683
    ;;
 
11684
  esac
 
11685
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11686
  postinstall_cmds='chmod 555 $lib'
 
11687
  # or fails outright, so override atomically:
 
11688
  install_override_mode=555
 
11689
  ;;
 
11690
 
 
11691
interix[3-9]*)
 
11692
  version_type=linux # correct to gnu/linux during the next big refactor
 
11693
  need_lib_prefix=no
 
11694
  need_version=no
 
11695
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11696
  soname_spec='$libname$release$shared_ext$major'
 
11697
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11698
  shlibpath_var=LD_LIBRARY_PATH
 
11699
  shlibpath_overrides_runpath=no
 
11700
  hardcode_into_libs=yes
 
11701
  ;;
 
11702
 
 
11703
irix5* | irix6* | nonstopux*)
 
11704
  case $host_os in
 
11705
    nonstopux*) version_type=nonstopux ;;
 
11706
    *)
 
11707
        if test yes = "$lt_cv_prog_gnu_ld"; then
 
11708
                version_type=linux # correct to gnu/linux during the next big refactor
 
11709
        else
 
11710
                version_type=irix
 
11711
        fi ;;
 
11712
  esac
 
11713
  need_lib_prefix=no
 
11714
  need_version=no
 
11715
  soname_spec='$libname$release$shared_ext$major'
 
11716
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 
11717
  case $host_os in
 
11718
  irix5* | nonstopux*)
 
11719
    libsuff= shlibsuff=
 
11720
    ;;
 
11721
  *)
 
11722
    case $LD in # libtool.m4 will add one of these switches to LD
 
11723
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11724
      libsuff= shlibsuff= libmagic=32-bit;;
 
11725
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11726
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11727
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11728
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11729
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11730
    esac
 
11731
    ;;
 
11732
  esac
 
11733
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11734
  shlibpath_overrides_runpath=no
 
11735
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
11736
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 
11737
  hardcode_into_libs=yes
 
11738
  ;;
 
11739
 
 
11740
# No shared lib support for Linux oldld, aout, or coff.
 
11741
linux*oldld* | linux*aout* | linux*coff*)
 
11742
  dynamic_linker=no
 
11743
  ;;
 
11744
 
 
11745
linux*android*)
 
11746
  version_type=none # Android doesn't support versioned libraries.
 
11747
  need_lib_prefix=no
 
11748
  need_version=no
 
11749
  library_names_spec='$libname$release$shared_ext'
 
11750
  soname_spec='$libname$release$shared_ext'
 
11751
  finish_cmds=
 
11752
  shlibpath_var=LD_LIBRARY_PATH
 
11753
  shlibpath_overrides_runpath=yes
 
11754
 
 
11755
  # This implies no fast_install, which is unacceptable.
 
11756
  # Some rework will be needed to allow for fast_install
 
11757
  # before this can be enabled.
 
11758
  hardcode_into_libs=yes
 
11759
 
 
11760
  dynamic_linker='Android linker'
 
11761
  # Don't embed -rpath directories since the linker doesn't support them.
 
11762
  hardcode_libdir_flag_spec='-L$libdir'
 
11763
  ;;
 
11764
 
 
11765
# This must be glibc/ELF.
 
11766
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11767
  version_type=linux # correct to gnu/linux during the next big refactor
 
11768
  need_lib_prefix=no
 
11769
  need_version=no
 
11770
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11771
  soname_spec='$libname$release$shared_ext$major'
 
11772
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11773
  shlibpath_var=LD_LIBRARY_PATH
 
11774
  shlibpath_overrides_runpath=no
 
11775
 
 
11776
  # Some binutils ld are patched to set DT_RUNPATH
 
11777
  if test ${lt_cv_shlibpath_overrides_runpath+y}
 
11778
then :
 
11779
  printf %s "(cached) " >&6
 
11780
else $as_nop
 
11781
  lt_cv_shlibpath_overrides_runpath=no
 
11782
    save_LDFLAGS=$LDFLAGS
 
11783
    save_libdir=$libdir
 
11784
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11785
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11786
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11787
/* end confdefs.h.  */
 
11788
 
 
11789
int
 
11790
main (void)
 
11791
{
 
11792
 
 
11793
  ;
 
11794
  return 0;
 
11795
}
 
11796
_ACEOF
 
11797
if ac_fn_c_try_link "$LINENO"
 
11798
then :
 
11799
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
 
11800
then :
 
11801
  lt_cv_shlibpath_overrides_runpath=yes
 
11802
fi
 
11803
fi
 
11804
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
11805
    conftest$ac_exeext conftest.$ac_ext
 
11806
    LDFLAGS=$save_LDFLAGS
 
11807
    libdir=$save_libdir
 
11808
 
 
11809
fi
 
11810
 
 
11811
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11812
 
 
11813
  # This implies no fast_install, which is unacceptable.
 
11814
  # Some rework will be needed to allow for fast_install
 
11815
  # before this can be enabled.
 
11816
  hardcode_into_libs=yes
 
11817
 
 
11818
  # Ideally, we could use ldconfig to report *all* directores which are
 
11819
  # searched for libraries, however this is still not possible.  Aside from not
 
11820
  # being certain /sbin/ldconfig is available, command
 
11821
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 
11822
  # even though it is searched at run-time.  Try to do the best guess by
 
11823
  # appending ld.so.conf contents (and includes) to the search path.
 
11824
  if test -f /etc/ld.so.conf; then
 
11825
    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' ' '`
 
11826
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11827
  fi
 
11828
 
 
11829
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11830
  # powerpc, because MkLinux only supported shared libraries with the
 
11831
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11832
  # most powerpc-linux boxes support dynamic linking these days and
 
11833
  # people can always --disable-shared, the test was removed, and we
 
11834
  # assume the GNU/Linux dynamic linker is in use.
 
11835
  dynamic_linker='GNU/Linux ld.so'
 
11836
  ;;
 
11837
 
 
11838
netbsd*)
 
11839
  version_type=sunos
 
11840
  need_lib_prefix=no
 
11841
  need_version=no
 
11842
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11843
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
11844
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11845
    dynamic_linker='NetBSD (a.out) ld.so'
 
11846
  else
 
11847
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11848
    soname_spec='$libname$release$shared_ext$major'
 
11849
    dynamic_linker='NetBSD ld.elf_so'
 
11850
  fi
 
11851
  shlibpath_var=LD_LIBRARY_PATH
 
11852
  shlibpath_overrides_runpath=yes
 
11853
  hardcode_into_libs=yes
 
11854
  ;;
 
11855
 
 
11856
newsos6)
 
11857
  version_type=linux # correct to gnu/linux during the next big refactor
 
11858
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11859
  shlibpath_var=LD_LIBRARY_PATH
 
11860
  shlibpath_overrides_runpath=yes
 
11861
  ;;
 
11862
 
 
11863
*nto* | *qnx*)
 
11864
  version_type=qnx
 
11865
  need_lib_prefix=no
 
11866
  need_version=no
 
11867
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11868
  soname_spec='$libname$release$shared_ext$major'
 
11869
  shlibpath_var=LD_LIBRARY_PATH
 
11870
  shlibpath_overrides_runpath=no
 
11871
  hardcode_into_libs=yes
 
11872
  dynamic_linker='ldqnx.so'
 
11873
  ;;
 
11874
 
 
11875
openbsd* | bitrig*)
 
11876
  version_type=sunos
 
11877
  sys_lib_dlsearch_path_spec=/usr/lib
 
11878
  need_lib_prefix=no
 
11879
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
11880
    need_version=no
 
11881
  else
 
11882
    need_version=yes
 
11883
  fi
 
11884
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
11885
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11886
  shlibpath_var=LD_LIBRARY_PATH
 
11887
  shlibpath_overrides_runpath=yes
 
11888
  ;;
 
11889
 
 
11890
os2*)
 
11891
  libname_spec='$name'
 
11892
  version_type=windows
 
11893
  shrext_cmds=.dll
 
11894
  need_version=no
 
11895
  need_lib_prefix=no
 
11896
  # OS/2 can only load a DLL with a base name of 8 characters or less.
 
11897
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 
11898
    v=$($ECHO $release$versuffix | tr -d .-);
 
11899
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 
11900
    $ECHO $n$v`$shared_ext'
 
11901
  library_names_spec='${libname}_dll.$libext'
 
11902
  dynamic_linker='OS/2 ld.exe'
 
11903
  shlibpath_var=BEGINLIBPATH
 
11904
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11905
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11906
  postinstall_cmds='base_file=`basename \$file`~
 
11907
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 
11908
    dldir=$destdir/`dirname \$dlpath`~
 
11909
    test -d \$dldir || mkdir -p \$dldir~
 
11910
    $install_prog $dir/$dlname \$dldir/$dlname~
 
11911
    chmod a+x \$dldir/$dlname~
 
11912
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11913
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11914
    fi'
 
11915
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 
11916
    dlpath=$dir/\$dldll~
 
11917
    $RM \$dlpath'
 
11918
  ;;
 
11919
 
 
11920
osf3* | osf4* | osf5*)
 
11921
  version_type=osf
 
11922
  need_lib_prefix=no
 
11923
  need_version=no
 
11924
  soname_spec='$libname$release$shared_ext$major'
 
11925
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11926
  shlibpath_var=LD_LIBRARY_PATH
 
11927
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11928
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11929
  ;;
 
11930
 
 
11931
rdos*)
 
11932
  dynamic_linker=no
 
11933
  ;;
 
11934
 
 
11935
solaris*)
 
11936
  version_type=linux # correct to gnu/linux during the next big refactor
 
11937
  need_lib_prefix=no
 
11938
  need_version=no
 
11939
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11940
  soname_spec='$libname$release$shared_ext$major'
 
11941
  shlibpath_var=LD_LIBRARY_PATH
 
11942
  shlibpath_overrides_runpath=yes
 
11943
  hardcode_into_libs=yes
 
11944
  # ldd complains unless libraries are executable
 
11945
  postinstall_cmds='chmod +x $lib'
 
11946
  ;;
 
11947
 
 
11948
sunos4*)
 
11949
  version_type=sunos
 
11950
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
11951
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11952
  shlibpath_var=LD_LIBRARY_PATH
 
11953
  shlibpath_overrides_runpath=yes
 
11954
  if test yes = "$with_gnu_ld"; then
 
11955
    need_lib_prefix=no
 
11956
  fi
 
11957
  need_version=yes
 
11958
  ;;
 
11959
 
 
11960
sysv4 | sysv4.3*)
 
11961
  version_type=linux # correct to gnu/linux during the next big refactor
 
11962
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11963
  soname_spec='$libname$release$shared_ext$major'
 
11964
  shlibpath_var=LD_LIBRARY_PATH
 
11965
  case $host_vendor in
 
11966
    sni)
 
11967
      shlibpath_overrides_runpath=no
 
11968
      need_lib_prefix=no
 
11969
      runpath_var=LD_RUN_PATH
 
11970
      ;;
 
11971
    siemens)
 
11972
      need_lib_prefix=no
 
11973
      ;;
 
11974
    motorola)
 
11975
      need_lib_prefix=no
 
11976
      need_version=no
 
11977
      shlibpath_overrides_runpath=no
 
11978
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11979
      ;;
 
11980
  esac
 
11981
  ;;
 
11982
 
 
11983
sysv4*MP*)
 
11984
  if test -d /usr/nec; then
 
11985
    version_type=linux # correct to gnu/linux during the next big refactor
 
11986
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
11987
    soname_spec='$libname$shared_ext.$major'
 
11988
    shlibpath_var=LD_LIBRARY_PATH
 
11989
  fi
 
11990
  ;;
 
11991
 
 
11992
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11993
  version_type=sco
 
11994
  need_lib_prefix=no
 
11995
  need_version=no
 
11996
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
11997
  soname_spec='$libname$release$shared_ext$major'
 
11998
  shlibpath_var=LD_LIBRARY_PATH
 
11999
  shlibpath_overrides_runpath=yes
 
12000
  hardcode_into_libs=yes
 
12001
  if test yes = "$with_gnu_ld"; then
 
12002
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12003
  else
 
12004
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12005
    case $host_os in
 
12006
      sco3.2v5*)
 
12007
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12008
        ;;
 
12009
    esac
 
12010
  fi
 
12011
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12012
  ;;
 
12013
 
 
12014
tpf*)
 
12015
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
12016
  version_type=linux # correct to gnu/linux during the next big refactor
 
12017
  need_lib_prefix=no
 
12018
  need_version=no
 
12019
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12020
  shlibpath_var=LD_LIBRARY_PATH
 
12021
  shlibpath_overrides_runpath=no
 
12022
  hardcode_into_libs=yes
 
12023
  ;;
 
12024
 
 
12025
uts4*)
 
12026
  version_type=linux # correct to gnu/linux during the next big refactor
 
12027
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12028
  soname_spec='$libname$release$shared_ext$major'
 
12029
  shlibpath_var=LD_LIBRARY_PATH
 
12030
  ;;
 
12031
 
 
12032
*)
 
12033
  dynamic_linker=no
 
12034
  ;;
 
12035
esac
 
12036
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
12037
printf "%s\n" "$dynamic_linker" >&6; }
 
12038
test no = "$dynamic_linker" && can_build_shared=no
 
12039
 
 
12040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12041
if test yes = "$GCC"; then
 
12042
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12043
fi
 
12044
 
 
12045
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
12046
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 
12047
fi
 
12048
 
 
12049
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
12050
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 
12051
fi
 
12052
 
 
12053
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 
12054
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 
12055
 
 
12056
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 
12057
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 
12058
 
 
12059
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 
12060
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 
12061
 
 
12062
 
 
12063
 
 
12064
 
 
12065
 
 
12066
 
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
 
 
12072
 
 
12073
 
 
12074
 
 
12075
 
 
12076
 
 
12077
 
 
12078
 
 
12079
 
 
12080
 
 
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
 
12086
 
 
12087
 
 
12088
 
 
12089
 
 
12090
 
 
12091
 
 
12092
 
 
12093
 
 
12094
 
 
12095
 
 
12096
 
 
12097
 
 
12098
 
 
12099
 
 
12100
 
 
12101
 
 
12102
 
 
12103
 
 
12104
 
 
12105
 
 
12106
 
 
12107
 
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
 
 
12113
 
 
12114
 
 
12115
 
 
12116
 
 
12117
 
 
12118
 
 
12119
 
 
12120
 
 
12121
 
 
12122
 
 
12123
 
 
12124
 
 
12125
 
 
12126
 
 
12127
 
 
12128
 
 
12129
 
 
12130
 
 
12131
 
 
12132
 
 
12133
 
 
12134
 
 
12135
 
 
12136
 
 
12137
 
 
12138
 
 
12139
 
 
12140
 
 
12141
 
 
12142
 
 
12143
 
 
12144
 
 
12145
 
 
12146
 
 
12147
 
 
12148
 
 
12149
 
 
12150
 
 
12151
 
 
12152
 
 
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
 
 
12158
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
12159
printf %s "checking how to hardcode library paths into programs... " >&6; }
 
12160
hardcode_action=
 
12161
if test -n "$hardcode_libdir_flag_spec" ||
 
12162
   test -n "$runpath_var" ||
 
12163
   test yes = "$hardcode_automatic"; then
 
12164
 
 
12165
  # We can hardcode non-existent directories.
 
12166
  if test no != "$hardcode_direct" &&
 
12167
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12168
     # have to relink, otherwise we might link with an installed library
 
12169
     # when we should be linking with a yet-to-be-installed one
 
12170
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
 
12171
     test no != "$hardcode_minus_L"; then
 
12172
    # Linking always hardcodes the temporary library directory.
 
12173
    hardcode_action=relink
 
12174
  else
 
12175
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12176
    hardcode_action=immediate
 
12177
  fi
 
12178
else
 
12179
  # We cannot hardcode anything, or else we can only hardcode existing
 
12180
  # directories.
 
12181
  hardcode_action=unsupported
 
12182
fi
 
12183
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
12184
printf "%s\n" "$hardcode_action" >&6; }
 
12185
 
 
12186
if test relink = "$hardcode_action" ||
 
12187
   test yes = "$inherit_rpath"; then
 
12188
  # Fast installation is not supported
 
12189
  enable_fast_install=no
 
12190
elif test yes = "$shlibpath_overrides_runpath" ||
 
12191
     test no = "$enable_shared"; then
 
12192
  # Fast installation is not necessary
 
12193
  enable_fast_install=needless
 
12194
fi
 
12195
 
 
12196
 
 
12197
 
 
12198
 
 
12199
 
 
12200
 
 
12201
  if test yes != "$enable_dlopen"; then
 
12202
  enable_dlopen=unknown
 
12203
  enable_dlopen_self=unknown
 
12204
  enable_dlopen_self_static=unknown
 
12205
else
 
12206
  lt_cv_dlopen=no
 
12207
  lt_cv_dlopen_libs=
 
12208
 
 
12209
  case $host_os in
 
12210
  beos*)
 
12211
    lt_cv_dlopen=load_add_on
 
12212
    lt_cv_dlopen_libs=
 
12213
    lt_cv_dlopen_self=yes
 
12214
    ;;
 
12215
 
 
12216
  mingw* | pw32* | cegcc*)
 
12217
    lt_cv_dlopen=LoadLibrary
 
12218
    lt_cv_dlopen_libs=
 
12219
    ;;
 
12220
 
 
12221
  cygwin*)
 
12222
    lt_cv_dlopen=dlopen
 
12223
    lt_cv_dlopen_libs=
 
12224
    ;;
 
12225
 
 
12226
  darwin*)
 
12227
    # if libdl is installed we need to link against it
 
12228
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12229
printf %s "checking for dlopen in -ldl... " >&6; }
 
12230
if test ${ac_cv_lib_dl_dlopen+y}
 
12231
then :
 
12232
  printf %s "(cached) " >&6
 
12233
else $as_nop
 
12234
  ac_check_lib_save_LIBS=$LIBS
 
12235
LIBS="-ldl  $LIBS"
 
12236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12237
/* end confdefs.h.  */
 
12238
 
 
12239
/* Override any GCC internal prototype to avoid an error.
 
12240
   Use char because int might match the return type of a GCC
 
12241
   builtin and then its argument prototype would still apply.  */
 
12242
char dlopen ();
 
12243
int
 
12244
main (void)
 
12245
{
 
12246
return dlopen ();
 
12247
  ;
 
12248
  return 0;
 
12249
}
 
12250
_ACEOF
 
12251
if ac_fn_c_try_link "$LINENO"
 
12252
then :
 
12253
  ac_cv_lib_dl_dlopen=yes
 
12254
else $as_nop
 
12255
  ac_cv_lib_dl_dlopen=no
 
12256
fi
 
12257
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
12258
    conftest$ac_exeext conftest.$ac_ext
 
12259
LIBS=$ac_check_lib_save_LIBS
 
12260
fi
 
12261
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12262
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
 
12263
if test "x$ac_cv_lib_dl_dlopen" = xyes
 
12264
then :
 
12265
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
12266
else $as_nop
 
12267
 
 
12268
    lt_cv_dlopen=dyld
 
12269
    lt_cv_dlopen_libs=
 
12270
    lt_cv_dlopen_self=yes
 
12271
 
 
12272
fi
 
12273
 
 
12274
    ;;
 
12275
 
 
12276
  tpf*)
 
12277
    # Don't try to run any link tests for TPF.  We know it's impossible
 
12278
    # because TPF is a cross-compiler, and we know how we open DSOs.
 
12279
    lt_cv_dlopen=dlopen
 
12280
    lt_cv_dlopen_libs=
 
12281
    lt_cv_dlopen_self=no
 
12282
    ;;
 
12283
 
 
12284
  *)
 
12285
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12286
if test "x$ac_cv_func_shl_load" = xyes
 
12287
then :
 
12288
  lt_cv_dlopen=shl_load
 
12289
else $as_nop
 
12290
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12291
printf %s "checking for shl_load in -ldld... " >&6; }
 
12292
if test ${ac_cv_lib_dld_shl_load+y}
 
12293
then :
 
12294
  printf %s "(cached) " >&6
 
12295
else $as_nop
 
12296
  ac_check_lib_save_LIBS=$LIBS
 
12297
LIBS="-ldld  $LIBS"
 
12298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12299
/* end confdefs.h.  */
 
12300
 
 
12301
/* Override any GCC internal prototype to avoid an error.
 
12302
   Use char because int might match the return type of a GCC
 
12303
   builtin and then its argument prototype would still apply.  */
 
12304
char shl_load ();
 
12305
int
 
12306
main (void)
 
12307
{
 
12308
return shl_load ();
 
12309
  ;
 
12310
  return 0;
 
12311
}
 
12312
_ACEOF
 
12313
if ac_fn_c_try_link "$LINENO"
 
12314
then :
 
12315
  ac_cv_lib_dld_shl_load=yes
 
12316
else $as_nop
 
12317
  ac_cv_lib_dld_shl_load=no
 
12318
fi
 
12319
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
12320
    conftest$ac_exeext conftest.$ac_ext
 
12321
LIBS=$ac_check_lib_save_LIBS
 
12322
fi
 
12323
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12324
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
 
12325
if test "x$ac_cv_lib_dld_shl_load" = xyes
 
12326
then :
 
12327
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
 
12328
else $as_nop
 
12329
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12330
if test "x$ac_cv_func_dlopen" = xyes
 
12331
then :
 
12332
  lt_cv_dlopen=dlopen
 
12333
else $as_nop
 
12334
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12335
printf %s "checking for dlopen in -ldl... " >&6; }
 
12336
if test ${ac_cv_lib_dl_dlopen+y}
 
12337
then :
 
12338
  printf %s "(cached) " >&6
 
12339
else $as_nop
 
12340
  ac_check_lib_save_LIBS=$LIBS
 
12341
LIBS="-ldl  $LIBS"
 
12342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12343
/* end confdefs.h.  */
 
12344
 
 
12345
/* Override any GCC internal prototype to avoid an error.
 
12346
   Use char because int might match the return type of a GCC
 
12347
   builtin and then its argument prototype would still apply.  */
 
12348
char dlopen ();
 
12349
int
 
12350
main (void)
 
12351
{
 
12352
return dlopen ();
 
12353
  ;
 
12354
  return 0;
 
12355
}
 
12356
_ACEOF
 
12357
if ac_fn_c_try_link "$LINENO"
 
12358
then :
 
12359
  ac_cv_lib_dl_dlopen=yes
 
12360
else $as_nop
 
12361
  ac_cv_lib_dl_dlopen=no
 
12362
fi
 
12363
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
12364
    conftest$ac_exeext conftest.$ac_ext
 
12365
LIBS=$ac_check_lib_save_LIBS
 
12366
fi
 
12367
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12368
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
 
12369
if test "x$ac_cv_lib_dl_dlopen" = xyes
 
12370
then :
 
12371
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
12372
else $as_nop
 
12373
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12374
printf %s "checking for dlopen in -lsvld... " >&6; }
 
12375
if test ${ac_cv_lib_svld_dlopen+y}
 
12376
then :
 
12377
  printf %s "(cached) " >&6
 
12378
else $as_nop
 
12379
  ac_check_lib_save_LIBS=$LIBS
 
12380
LIBS="-lsvld  $LIBS"
 
12381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12382
/* end confdefs.h.  */
 
12383
 
 
12384
/* Override any GCC internal prototype to avoid an error.
 
12385
   Use char because int might match the return type of a GCC
 
12386
   builtin and then its argument prototype would still apply.  */
 
12387
char dlopen ();
 
12388
int
 
12389
main (void)
 
12390
{
 
12391
return dlopen ();
 
12392
  ;
 
12393
  return 0;
 
12394
}
 
12395
_ACEOF
 
12396
if ac_fn_c_try_link "$LINENO"
 
12397
then :
 
12398
  ac_cv_lib_svld_dlopen=yes
 
12399
else $as_nop
 
12400
  ac_cv_lib_svld_dlopen=no
 
12401
fi
 
12402
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
12403
    conftest$ac_exeext conftest.$ac_ext
 
12404
LIBS=$ac_check_lib_save_LIBS
 
12405
fi
 
12406
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12407
printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
 
12408
if test "x$ac_cv_lib_svld_dlopen" = xyes
 
12409
then :
 
12410
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
 
12411
else $as_nop
 
12412
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12413
printf %s "checking for dld_link in -ldld... " >&6; }
 
12414
if test ${ac_cv_lib_dld_dld_link+y}
 
12415
then :
 
12416
  printf %s "(cached) " >&6
 
12417
else $as_nop
 
12418
  ac_check_lib_save_LIBS=$LIBS
 
12419
LIBS="-ldld  $LIBS"
 
12420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12421
/* end confdefs.h.  */
 
12422
 
 
12423
/* Override any GCC internal prototype to avoid an error.
 
12424
   Use char because int might match the return type of a GCC
 
12425
   builtin and then its argument prototype would still apply.  */
 
12426
char dld_link ();
 
12427
int
 
12428
main (void)
 
12429
{
 
12430
return dld_link ();
 
12431
  ;
 
12432
  return 0;
 
12433
}
 
12434
_ACEOF
 
12435
if ac_fn_c_try_link "$LINENO"
 
12436
then :
 
12437
  ac_cv_lib_dld_dld_link=yes
 
12438
else $as_nop
 
12439
  ac_cv_lib_dld_dld_link=no
 
12440
fi
 
12441
rm -f core conftest.err conftest.$ac_objext conftest.beam \
 
12442
    conftest$ac_exeext conftest.$ac_ext
 
12443
LIBS=$ac_check_lib_save_LIBS
 
12444
fi
 
12445
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12446
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
 
12447
if test "x$ac_cv_lib_dld_dld_link" = xyes
 
12448
then :
 
12449
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
 
12450
fi
 
12451
 
 
12452
 
 
12453
fi
 
12454
 
 
12455
 
 
12456
fi
 
12457
 
 
12458
 
 
12459
fi
 
12460
 
 
12461
 
 
12462
fi
 
12463
 
 
12464
 
 
12465
fi
 
12466
 
 
12467
    ;;
 
12468
  esac
 
12469
 
 
12470
  if test no = "$lt_cv_dlopen"; then
 
12471
    enable_dlopen=no
 
12472
  else
 
12473
    enable_dlopen=yes
 
12474
  fi
 
12475
 
 
12476
  case $lt_cv_dlopen in
 
12477
  dlopen)
 
12478
    save_CPPFLAGS=$CPPFLAGS
 
12479
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12480
 
 
12481
    save_LDFLAGS=$LDFLAGS
 
12482
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12483
 
 
12484
    save_LIBS=$LIBS
 
12485
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12486
 
 
12487
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12488
printf %s "checking whether a program can dlopen itself... " >&6; }
 
12489
if test ${lt_cv_dlopen_self+y}
 
12490
then :
 
12491
  printf %s "(cached) " >&6
 
12492
else $as_nop
 
12493
          if test yes = "$cross_compiling"; then :
 
12494
  lt_cv_dlopen_self=cross
 
12495
else
 
12496
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12497
  lt_status=$lt_dlunknown
 
12498
  cat > conftest.$ac_ext <<_LT_EOF
 
12499
#line $LINENO "configure"
 
12500
#include "confdefs.h"
 
12501
 
 
12502
#if HAVE_DLFCN_H
 
12503
#include <dlfcn.h>
 
12504
#endif
 
12505
 
 
12506
#include <stdio.h>
 
12507
 
 
12508
#ifdef RTLD_GLOBAL
 
12509
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12510
#else
 
12511
#  ifdef DL_GLOBAL
 
12512
#    define LT_DLGLOBAL         DL_GLOBAL
 
12513
#  else
 
12514
#    define LT_DLGLOBAL         0
 
12515
#  endif
 
12516
#endif
 
12517
 
 
12518
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12519
   find out it does not work in some platform. */
 
12520
#ifndef LT_DLLAZY_OR_NOW
 
12521
#  ifdef RTLD_LAZY
 
12522
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12523
#  else
 
12524
#    ifdef DL_LAZY
 
12525
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12526
#    else
 
12527
#      ifdef RTLD_NOW
 
12528
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12529
#      else
 
12530
#        ifdef DL_NOW
 
12531
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12532
#        else
 
12533
#          define LT_DLLAZY_OR_NOW      0
 
12534
#        endif
 
12535
#      endif
 
12536
#    endif
 
12537
#  endif
 
12538
#endif
 
12539
 
 
12540
/* When -fvisibility=hidden is used, assume the code has been annotated
 
12541
   correspondingly for the symbols needed.  */
 
12542
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12543
int fnord () __attribute__((visibility("default")));
 
12544
#endif
 
12545
 
 
12546
int fnord () { return 42; }
 
12547
int main ()
 
12548
{
 
12549
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12550
  int status = $lt_dlunknown;
 
12551
 
 
12552
  if (self)
 
12553
    {
 
12554
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12555
      else
 
12556
        {
 
12557
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12558
          else puts (dlerror ());
 
12559
        }
 
12560
      /* dlclose (self); */
 
12561
    }
 
12562
  else
 
12563
    puts (dlerror ());
 
12564
 
 
12565
  return status;
 
12566
}
 
12567
_LT_EOF
 
12568
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12569
  (eval $ac_link) 2>&5
 
12570
  ac_status=$?
 
12571
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12572
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
12573
    (./conftest; exit; ) >&5 2>/dev/null
 
12574
    lt_status=$?
 
12575
    case x$lt_status in
 
12576
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12577
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12578
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12579
    esac
 
12580
  else :
 
12581
    # compilation failed
 
12582
    lt_cv_dlopen_self=no
 
12583
  fi
 
12584
fi
 
12585
rm -fr conftest*
 
12586
 
 
12587
 
 
12588
fi
 
12589
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12590
printf "%s\n" "$lt_cv_dlopen_self" >&6; }
 
12591
 
 
12592
    if test yes = "$lt_cv_dlopen_self"; then
 
12593
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12594
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12595
printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
 
12596
if test ${lt_cv_dlopen_self_static+y}
 
12597
then :
 
12598
  printf %s "(cached) " >&6
 
12599
else $as_nop
 
12600
          if test yes = "$cross_compiling"; then :
 
12601
  lt_cv_dlopen_self_static=cross
 
12602
else
 
12603
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12604
  lt_status=$lt_dlunknown
 
12605
  cat > conftest.$ac_ext <<_LT_EOF
 
12606
#line $LINENO "configure"
 
12607
#include "confdefs.h"
 
12608
 
 
12609
#if HAVE_DLFCN_H
 
12610
#include <dlfcn.h>
 
12611
#endif
 
12612
 
 
12613
#include <stdio.h>
 
12614
 
 
12615
#ifdef RTLD_GLOBAL
 
12616
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12617
#else
 
12618
#  ifdef DL_GLOBAL
 
12619
#    define LT_DLGLOBAL         DL_GLOBAL
 
12620
#  else
 
12621
#    define LT_DLGLOBAL         0
 
12622
#  endif
 
12623
#endif
 
12624
 
 
12625
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12626
   find out it does not work in some platform. */
 
12627
#ifndef LT_DLLAZY_OR_NOW
 
12628
#  ifdef RTLD_LAZY
 
12629
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12630
#  else
 
12631
#    ifdef DL_LAZY
 
12632
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12633
#    else
 
12634
#      ifdef RTLD_NOW
 
12635
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12636
#      else
 
12637
#        ifdef DL_NOW
 
12638
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12639
#        else
 
12640
#          define LT_DLLAZY_OR_NOW      0
 
12641
#        endif
 
12642
#      endif
 
12643
#    endif
 
12644
#  endif
 
12645
#endif
 
12646
 
 
12647
/* When -fvisibility=hidden is used, assume the code has been annotated
 
12648
   correspondingly for the symbols needed.  */
 
12649
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12650
int fnord () __attribute__((visibility("default")));
 
12651
#endif
 
12652
 
 
12653
int fnord () { return 42; }
 
12654
int main ()
 
12655
{
 
12656
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12657
  int status = $lt_dlunknown;
 
12658
 
 
12659
  if (self)
 
12660
    {
 
12661
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12662
      else
 
12663
        {
 
12664
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12665
          else puts (dlerror ());
 
12666
        }
 
12667
      /* dlclose (self); */
 
12668
    }
 
12669
  else
 
12670
    puts (dlerror ());
 
12671
 
 
12672
  return status;
 
12673
}
 
12674
_LT_EOF
 
12675
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12676
  (eval $ac_link) 2>&5
 
12677
  ac_status=$?
 
12678
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12679
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
12680
    (./conftest; exit; ) >&5 2>/dev/null
 
12681
    lt_status=$?
 
12682
    case x$lt_status in
 
12683
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12684
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12685
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12686
    esac
 
12687
  else :
 
12688
    # compilation failed
 
12689
    lt_cv_dlopen_self_static=no
 
12690
  fi
 
12691
fi
 
12692
rm -fr conftest*
 
12693
 
 
12694
 
 
12695
fi
 
12696
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12697
printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
 
12698
    fi
 
12699
 
 
12700
    CPPFLAGS=$save_CPPFLAGS
 
12701
    LDFLAGS=$save_LDFLAGS
 
12702
    LIBS=$save_LIBS
 
12703
    ;;
 
12704
  esac
 
12705
 
 
12706
  case $lt_cv_dlopen_self in
 
12707
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12708
  *) enable_dlopen_self=unknown ;;
 
12709
  esac
 
12710
 
 
12711
  case $lt_cv_dlopen_self_static in
 
12712
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12713
  *) enable_dlopen_self_static=unknown ;;
 
12714
  esac
 
12715
fi
 
12716
 
 
12717
 
 
12718
 
 
12719
 
 
12720
 
 
12721
 
 
12722
 
 
12723
 
 
12724
 
 
12725
 
 
12726
 
 
12727
 
 
12728
 
 
12729
 
 
12730
 
 
12731
 
 
12732
 
 
12733
striplib=
 
12734
old_striplib=
 
12735
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12736
printf %s "checking whether stripping libraries is possible... " >&6; }
 
12737
if test -z "$STRIP"; then
 
12738
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12739
printf "%s\n" "no" >&6; }
 
12740
else
 
12741
  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12742
    old_striplib="$STRIP --strip-debug"
 
12743
    striplib="$STRIP --strip-unneeded"
 
12744
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12745
printf "%s\n" "yes" >&6; }
 
12746
  else
 
12747
    case $host_os in
 
12748
    darwin*)
 
12749
      # FIXME - insert some real tests, host_os isn't really good enough
 
12750
      striplib="$STRIP -x"
 
12751
      old_striplib="$STRIP -S"
 
12752
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12753
printf "%s\n" "yes" >&6; }
 
12754
      ;;
 
12755
    freebsd*)
 
12756
      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
 
12757
        old_striplib="$STRIP --strip-debug"
 
12758
        striplib="$STRIP --strip-unneeded"
 
12759
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12760
printf "%s\n" "yes" >&6; }
 
12761
      else
 
12762
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12763
printf "%s\n" "no" >&6; }
 
12764
      fi
 
12765
      ;;
 
12766
    *)
 
12767
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12768
printf "%s\n" "no" >&6; }
 
12769
      ;;
 
12770
    esac
 
12771
  fi
 
12772
fi
 
12773
 
 
12774
 
 
12775
 
 
12776
 
 
12777
 
 
12778
 
 
12779
 
 
12780
 
 
12781
 
 
12782
 
 
12783
 
 
12784
 
 
12785
  # Report what library types will actually be built
 
12786
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12787
printf %s "checking if libtool supports shared libraries... " >&6; }
 
12788
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12789
printf "%s\n" "$can_build_shared" >&6; }
 
12790
 
 
12791
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12792
printf %s "checking whether to build shared libraries... " >&6; }
 
12793
  test no = "$can_build_shared" && enable_shared=no
 
12794
 
 
12795
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12796
  # are all built from PIC.
 
12797
  case $host_os in
 
12798
  aix3*)
 
12799
    test yes = "$enable_shared" && enable_static=no
 
12800
    if test -n "$RANLIB"; then
 
12801
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12802
      postinstall_cmds='$RANLIB $lib'
 
12803
    fi
 
12804
    ;;
 
12805
 
 
12806
  aix[4-9]*)
 
12807
    if test ia64 != "$host_cpu"; then
 
12808
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 
12809
      yes,aix,yes) ;;                   # shared object as lib.so file only
 
12810
      yes,svr4,*) ;;                    # shared object as lib.so archive member only
 
12811
      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
 
12812
      esac
 
12813
    fi
 
12814
    ;;
 
12815
  esac
 
12816
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12817
printf "%s\n" "$enable_shared" >&6; }
 
12818
 
 
12819
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12820
printf %s "checking whether to build static libraries... " >&6; }
 
12821
  # Make sure either enable_shared or enable_static is yes.
 
12822
  test yes = "$enable_shared" || enable_static=yes
 
12823
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12824
printf "%s\n" "$enable_static" >&6; }
 
12825
 
 
12826
 
 
12827
 
 
12828
 
 
12829
fi
 
12830
ac_ext=c
 
12831
ac_cpp='$CPP $CPPFLAGS'
 
12832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12835
 
 
12836
CC=$lt_save_CC
 
12837
 
 
12838
 
 
12839
 
 
12840
 
 
12841
 
 
12842
 
 
12843
 
 
12844
 
 
12845
 
 
12846
 
 
12847
 
 
12848
 
 
12849
 
 
12850
 
 
12851
 
 
12852
        ac_config_commands="$ac_config_commands libtool"
 
12853
 
 
12854
 
 
12855
 
 
12856
 
 
12857
# Only expand once:
 
12858
 
 
12859
 
 
12860
 
 
12861
# Check whether --enable-largefile was given.
 
12862
if test ${enable_largefile+y}
 
12863
then :
 
12864
  enableval=$enable_largefile;
 
12865
fi
 
12866
 
 
12867
if test "$enable_largefile" != no; then
 
12868
 
 
12869
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
12870
printf %s "checking for special C compiler options needed for large files... " >&6; }
 
12871
if test ${ac_cv_sys_largefile_CC+y}
 
12872
then :
 
12873
  printf %s "(cached) " >&6
 
12874
else $as_nop
 
12875
  ac_cv_sys_largefile_CC=no
 
12876
     if test "$GCC" != yes; then
 
12877
       ac_save_CC=$CC
 
12878
       while :; do
 
12879
         # IRIX 6.2 and later do not support large files by default,
 
12880
         # so use the C compiler's -n32 option if that helps.
 
12881
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12882
/* end confdefs.h.  */
 
12883
#include <sys/types.h>
 
12884
 /* Check that off_t can represent 2**63 - 1 correctly.
 
12885
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
12886
    since some C++ compilers masquerading as C compilers
 
12887
    incorrectly reject 9223372036854775807.  */
 
12888
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 
12889
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
12890
                       && LARGE_OFF_T % 2147483647 == 1)
 
12891
                      ? 1 : -1];
 
12892
int
 
12893
main (void)
 
12894
{
 
12895
 
 
12896
  ;
 
12897
  return 0;
 
12898
}
 
12899
_ACEOF
 
12900
         if ac_fn_c_try_compile "$LINENO"
 
12901
then :
 
12902
  break
 
12903
fi
 
12904
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
12905
         CC="$CC -n32"
 
12906
         if ac_fn_c_try_compile "$LINENO"
 
12907
then :
 
12908
  ac_cv_sys_largefile_CC=' -n32'; break
 
12909
fi
 
12910
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
12911
         break
 
12912
       done
 
12913
       CC=$ac_save_CC
 
12914
       rm -f conftest.$ac_ext
 
12915
    fi
 
12916
fi
 
12917
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
12918
printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
 
12919
  if test "$ac_cv_sys_largefile_CC" != no; then
 
12920
    CC=$CC$ac_cv_sys_largefile_CC
 
12921
  fi
 
12922
 
 
12923
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
12924
printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
12925
if test ${ac_cv_sys_file_offset_bits+y}
 
12926
then :
 
12927
  printf %s "(cached) " >&6
 
12928
else $as_nop
 
12929
  while :; do
 
12930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12931
/* end confdefs.h.  */
 
12932
#include <sys/types.h>
 
12933
 /* Check that off_t can represent 2**63 - 1 correctly.
 
12934
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
12935
    since some C++ compilers masquerading as C compilers
 
12936
    incorrectly reject 9223372036854775807.  */
 
12937
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 
12938
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
12939
                       && LARGE_OFF_T % 2147483647 == 1)
 
12940
                      ? 1 : -1];
 
12941
int
 
12942
main (void)
 
12943
{
 
12944
 
 
12945
  ;
 
12946
  return 0;
 
12947
}
 
12948
_ACEOF
 
12949
if ac_fn_c_try_compile "$LINENO"
 
12950
then :
 
12951
  ac_cv_sys_file_offset_bits=no; break
 
12952
fi
 
12953
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12954
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12955
/* end confdefs.h.  */
 
12956
#define _FILE_OFFSET_BITS 64
 
12957
#include <sys/types.h>
 
12958
 /* Check that off_t can represent 2**63 - 1 correctly.
 
12959
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
12960
    since some C++ compilers masquerading as C compilers
 
12961
    incorrectly reject 9223372036854775807.  */
 
12962
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 
12963
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
12964
                       && LARGE_OFF_T % 2147483647 == 1)
 
12965
                      ? 1 : -1];
 
12966
int
 
12967
main (void)
 
12968
{
 
12969
 
 
12970
  ;
 
12971
  return 0;
 
12972
}
 
12973
_ACEOF
 
12974
if ac_fn_c_try_compile "$LINENO"
 
12975
then :
 
12976
  ac_cv_sys_file_offset_bits=64; break
 
12977
fi
 
12978
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12979
  ac_cv_sys_file_offset_bits=unknown
 
12980
  break
 
12981
done
 
12982
fi
 
12983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
12984
printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
 
12985
case $ac_cv_sys_file_offset_bits in #(
 
12986
  no | unknown) ;;
 
12987
  *)
 
12988
printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
 
12989
;;
 
12990
esac
 
12991
rm -rf conftest*
 
12992
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
12993
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
12994
printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
 
12995
if test ${ac_cv_sys_large_files+y}
 
12996
then :
 
12997
  printf %s "(cached) " >&6
 
12998
else $as_nop
 
12999
  while :; do
 
13000
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13001
/* end confdefs.h.  */
 
13002
#include <sys/types.h>
 
13003
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13004
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13005
    since some C++ compilers masquerading as C compilers
 
13006
    incorrectly reject 9223372036854775807.  */
 
13007
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 
13008
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13009
                       && LARGE_OFF_T % 2147483647 == 1)
 
13010
                      ? 1 : -1];
 
13011
int
 
13012
main (void)
 
13013
{
 
13014
 
 
13015
  ;
 
13016
  return 0;
 
13017
}
 
13018
_ACEOF
 
13019
if ac_fn_c_try_compile "$LINENO"
 
13020
then :
 
13021
  ac_cv_sys_large_files=no; break
 
13022
fi
 
13023
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13024
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13025
/* end confdefs.h.  */
 
13026
#define _LARGE_FILES 1
 
13027
#include <sys/types.h>
 
13028
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13029
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13030
    since some C++ compilers masquerading as C compilers
 
13031
    incorrectly reject 9223372036854775807.  */
 
13032
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 
13033
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13034
                       && LARGE_OFF_T % 2147483647 == 1)
 
13035
                      ? 1 : -1];
 
13036
int
 
13037
main (void)
 
13038
{
 
13039
 
 
13040
  ;
 
13041
  return 0;
 
13042
}
 
13043
_ACEOF
 
13044
if ac_fn_c_try_compile "$LINENO"
 
13045
then :
 
13046
  ac_cv_sys_large_files=1; break
 
13047
fi
 
13048
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13049
  ac_cv_sys_large_files=unknown
 
13050
  break
 
13051
done
 
13052
fi
 
13053
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
13054
printf "%s\n" "$ac_cv_sys_large_files" >&6; }
 
13055
case $ac_cv_sys_large_files in #(
 
13056
  no | unknown) ;;
 
13057
  *)
 
13058
printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
 
13059
;;
 
13060
esac
 
13061
rm -rf conftest*
 
13062
  fi
 
13063
fi
 
13064
 
 
13065
 
 
13066
 
 
13067
# Check whether --with-personality-dir was given.
 
13068
if test ${with_personality_dir+y}
 
13069
then :
 
13070
  withval=$with_personality_dir; PERSONALITY_PATH="$withval"
 
13071
else $as_nop
 
13072
  PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d"
 
13073
fi
 
13074
 
 
13075
 
 
13076
 
 
13077
 
 
13078
 
 
13079
# Check whether --with-pkg-config-dir was given.
 
13080
if test ${with_pkg_config_dir+y}
 
13081
then :
 
13082
  withval=$with_pkg_config_dir; PKG_DEFAULT_PATH="$withval"
 
13083
else $as_nop
 
13084
  PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig"
 
13085
fi
 
13086
 
 
13087
 
 
13088
 
 
13089
 
 
13090
 
 
13091
# Check whether --with-system-libdir was given.
 
13092
if test ${with_system_libdir+y}
 
13093
then :
 
13094
  withval=$with_system_libdir; SYSTEM_LIBDIR="$withval"
 
13095
else $as_nop
 
13096
  SYSTEM_LIBDIR="${libdir}"
 
13097
fi
 
13098
 
 
13099
 
 
13100
 
 
13101
 
 
13102
 
 
13103
# Check whether --with-system-includedir was given.
 
13104
if test ${with_system_includedir+y}
 
13105
then :
 
13106
  withval=$with_system_includedir; SYSTEM_INCLUDEDIR="$withval"
 
13107
else $as_nop
 
13108
  SYSTEM_INCLUDEDIR="${includedir}"
 
13109
fi
 
13110
 
 
13111
 
 
13112
 
 
13113
 
 
13114
ac_ext=c
 
13115
ac_cpp='$CPP $CPPFLAGS'
 
13116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13119
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
13120
printf %s "checking how to run the C preprocessor... " >&6; }
 
13121
# On Suns, sometimes $CPP names a directory.
 
13122
if test -n "$CPP" && test -d "$CPP"; then
 
13123
  CPP=
 
13124
fi
 
13125
if test -z "$CPP"; then
 
13126
  if test ${ac_cv_prog_CPP+y}
 
13127
then :
 
13128
  printf %s "(cached) " >&6
 
13129
else $as_nop
 
13130
      # Double quotes because $CC needs to be expanded
 
13131
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
 
13132
    do
 
13133
      ac_preproc_ok=false
 
13134
for ac_c_preproc_warn_flag in '' yes
 
13135
do
 
13136
  # Use a header file that comes with gcc, so configuring glibc
 
13137
  # with a fresh cross-compiler works.
 
13138
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13139
  # not just through cpp. "Syntax error" is here to catch this case.
 
13140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13141
/* end confdefs.h.  */
 
13142
#include <limits.h>
 
13143
                     Syntax error
 
13144
_ACEOF
 
13145
if ac_fn_c_try_cpp "$LINENO"
 
13146
then :
 
13147
 
 
13148
else $as_nop
 
13149
  # Broken: fails on valid input.
 
13150
continue
 
13151
fi
 
13152
rm -f conftest.err conftest.i conftest.$ac_ext
 
13153
 
 
13154
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13155
  # can be detected and how.
 
13156
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13157
/* end confdefs.h.  */
 
13158
#include <ac_nonexistent.h>
 
13159
_ACEOF
 
13160
if ac_fn_c_try_cpp "$LINENO"
 
13161
then :
 
13162
  # Broken: success on invalid input.
 
13163
continue
 
13164
else $as_nop
 
13165
  # Passes both tests.
 
13166
ac_preproc_ok=:
 
13167
break
 
13168
fi
 
13169
rm -f conftest.err conftest.i conftest.$ac_ext
 
13170
 
 
13171
done
 
13172
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13173
rm -f conftest.i conftest.err conftest.$ac_ext
 
13174
if $ac_preproc_ok
 
13175
then :
 
13176
  break
 
13177
fi
 
13178
 
 
13179
    done
 
13180
    ac_cv_prog_CPP=$CPP
 
13181
 
 
13182
fi
 
13183
  CPP=$ac_cv_prog_CPP
 
13184
else
 
13185
  ac_cv_prog_CPP=$CPP
 
13186
fi
 
13187
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
13188
printf "%s\n" "$CPP" >&6; }
 
13189
ac_preproc_ok=false
 
13190
for ac_c_preproc_warn_flag in '' yes
 
13191
do
 
13192
  # Use a header file that comes with gcc, so configuring glibc
 
13193
  # with a fresh cross-compiler works.
 
13194
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13195
  # not just through cpp. "Syntax error" is here to catch this case.
 
13196
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13197
/* end confdefs.h.  */
 
13198
#include <limits.h>
 
13199
                     Syntax error
 
13200
_ACEOF
 
13201
if ac_fn_c_try_cpp "$LINENO"
 
13202
then :
 
13203
 
 
13204
else $as_nop
 
13205
  # Broken: fails on valid input.
 
13206
continue
 
13207
fi
 
13208
rm -f conftest.err conftest.i conftest.$ac_ext
 
13209
 
 
13210
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13211
  # can be detected and how.
 
13212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13213
/* end confdefs.h.  */
 
13214
#include <ac_nonexistent.h>
 
13215
_ACEOF
 
13216
if ac_fn_c_try_cpp "$LINENO"
 
13217
then :
 
13218
  # Broken: success on invalid input.
 
13219
continue
 
13220
else $as_nop
 
13221
  # Passes both tests.
 
13222
ac_preproc_ok=:
 
13223
break
 
13224
fi
 
13225
rm -f conftest.err conftest.i conftest.$ac_ext
 
13226
 
 
13227
done
 
13228
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13229
rm -f conftest.i conftest.err conftest.$ac_ext
 
13230
if $ac_preproc_ok
 
13231
then :
 
13232
 
 
13233
else $as_nop
 
13234
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13235
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
13236
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
13237
See \`config.log' for more details" "$LINENO" 5; }
 
13238
fi
 
13239
 
 
13240
ac_ext=c
 
13241
ac_cpp='$CPP $CPPFLAGS'
 
13242
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13243
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13244
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13245
 
 
13246
ac_ext=c
 
13247
ac_cpp='$CPP $CPPFLAGS'
 
13248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13251
if test -n "$ac_tool_prefix"; then
 
13252
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
13253
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
13254
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13255
printf %s "checking for $ac_word... " >&6; }
 
13256
if test ${ac_cv_prog_CC+y}
 
13257
then :
 
13258
  printf %s "(cached) " >&6
 
13259
else $as_nop
 
13260
  if test -n "$CC"; then
 
13261
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13262
else
 
13263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13264
for as_dir in $PATH
 
13265
do
 
13266
  IFS=$as_save_IFS
 
13267
  case $as_dir in #(((
 
13268
    '') as_dir=./ ;;
 
13269
    */) ;;
 
13270
    *) as_dir=$as_dir/ ;;
 
13271
  esac
 
13272
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13273
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13274
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
13275
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13276
    break 2
 
13277
  fi
 
13278
done
 
13279
  done
 
13280
IFS=$as_save_IFS
 
13281
 
 
13282
fi
 
13283
fi
 
13284
CC=$ac_cv_prog_CC
 
13285
if test -n "$CC"; then
 
13286
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13287
printf "%s\n" "$CC" >&6; }
 
13288
else
 
13289
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13290
printf "%s\n" "no" >&6; }
 
13291
fi
 
13292
 
 
13293
 
 
13294
fi
 
13295
if test -z "$ac_cv_prog_CC"; then
 
13296
  ac_ct_CC=$CC
 
13297
  # Extract the first word of "gcc", so it can be a program name with args.
 
13298
set dummy gcc; ac_word=$2
 
13299
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13300
printf %s "checking for $ac_word... " >&6; }
 
13301
if test ${ac_cv_prog_ac_ct_CC+y}
 
13302
then :
 
13303
  printf %s "(cached) " >&6
 
13304
else $as_nop
 
13305
  if test -n "$ac_ct_CC"; then
 
13306
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13307
else
 
13308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13309
for as_dir in $PATH
 
13310
do
 
13311
  IFS=$as_save_IFS
 
13312
  case $as_dir in #(((
 
13313
    '') as_dir=./ ;;
 
13314
    */) ;;
 
13315
    *) as_dir=$as_dir/ ;;
 
13316
  esac
 
13317
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13318
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13319
    ac_cv_prog_ac_ct_CC="gcc"
 
13320
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13321
    break 2
 
13322
  fi
 
13323
done
 
13324
  done
 
13325
IFS=$as_save_IFS
 
13326
 
 
13327
fi
 
13328
fi
 
13329
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13330
if test -n "$ac_ct_CC"; then
 
13331
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13332
printf "%s\n" "$ac_ct_CC" >&6; }
 
13333
else
 
13334
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13335
printf "%s\n" "no" >&6; }
 
13336
fi
 
13337
 
 
13338
  if test "x$ac_ct_CC" = x; then
 
13339
    CC=""
 
13340
  else
 
13341
    case $cross_compiling:$ac_tool_warned in
 
13342
yes:)
 
13343
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13344
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13345
ac_tool_warned=yes ;;
 
13346
esac
 
13347
    CC=$ac_ct_CC
 
13348
  fi
 
13349
else
 
13350
  CC="$ac_cv_prog_CC"
 
13351
fi
 
13352
 
 
13353
if test -z "$CC"; then
 
13354
          if test -n "$ac_tool_prefix"; then
 
13355
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
13356
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
13357
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13358
printf %s "checking for $ac_word... " >&6; }
 
13359
if test ${ac_cv_prog_CC+y}
 
13360
then :
 
13361
  printf %s "(cached) " >&6
 
13362
else $as_nop
 
13363
  if test -n "$CC"; then
 
13364
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13365
else
 
13366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13367
for as_dir in $PATH
 
13368
do
 
13369
  IFS=$as_save_IFS
 
13370
  case $as_dir in #(((
 
13371
    '') as_dir=./ ;;
 
13372
    */) ;;
 
13373
    *) as_dir=$as_dir/ ;;
 
13374
  esac
 
13375
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13376
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13377
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
13378
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13379
    break 2
 
13380
  fi
 
13381
done
 
13382
  done
 
13383
IFS=$as_save_IFS
 
13384
 
 
13385
fi
 
13386
fi
 
13387
CC=$ac_cv_prog_CC
 
13388
if test -n "$CC"; then
 
13389
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13390
printf "%s\n" "$CC" >&6; }
 
13391
else
 
13392
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13393
printf "%s\n" "no" >&6; }
 
13394
fi
 
13395
 
 
13396
 
 
13397
  fi
 
13398
fi
 
13399
if test -z "$CC"; then
 
13400
  # Extract the first word of "cc", so it can be a program name with args.
 
13401
set dummy cc; ac_word=$2
 
13402
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13403
printf %s "checking for $ac_word... " >&6; }
 
13404
if test ${ac_cv_prog_CC+y}
 
13405
then :
 
13406
  printf %s "(cached) " >&6
 
13407
else $as_nop
 
13408
  if test -n "$CC"; then
 
13409
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13410
else
 
13411
  ac_prog_rejected=no
 
13412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13413
for as_dir in $PATH
 
13414
do
 
13415
  IFS=$as_save_IFS
 
13416
  case $as_dir in #(((
 
13417
    '') as_dir=./ ;;
 
13418
    */) ;;
 
13419
    *) as_dir=$as_dir/ ;;
 
13420
  esac
 
13421
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13422
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13423
    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
13424
       ac_prog_rejected=yes
 
13425
       continue
 
13426
     fi
 
13427
    ac_cv_prog_CC="cc"
 
13428
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13429
    break 2
 
13430
  fi
 
13431
done
 
13432
  done
 
13433
IFS=$as_save_IFS
 
13434
 
 
13435
if test $ac_prog_rejected = yes; then
 
13436
  # We found a bogon in the path, so make sure we never use it.
 
13437
  set dummy $ac_cv_prog_CC
 
13438
  shift
 
13439
  if test $# != 0; then
 
13440
    # We chose a different compiler from the bogus one.
 
13441
    # However, it has the same basename, so the bogon will be chosen
 
13442
    # first if we set CC to just the basename; use the full file name.
 
13443
    shift
 
13444
    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
 
13445
  fi
 
13446
fi
 
13447
fi
 
13448
fi
 
13449
CC=$ac_cv_prog_CC
 
13450
if test -n "$CC"; then
 
13451
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13452
printf "%s\n" "$CC" >&6; }
 
13453
else
 
13454
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13455
printf "%s\n" "no" >&6; }
 
13456
fi
 
13457
 
 
13458
 
 
13459
fi
 
13460
if test -z "$CC"; then
 
13461
  if test -n "$ac_tool_prefix"; then
 
13462
  for ac_prog in cl.exe
 
13463
  do
 
13464
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
13465
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
13466
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13467
printf %s "checking for $ac_word... " >&6; }
 
13468
if test ${ac_cv_prog_CC+y}
 
13469
then :
 
13470
  printf %s "(cached) " >&6
 
13471
else $as_nop
 
13472
  if test -n "$CC"; then
 
13473
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13474
else
 
13475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13476
for as_dir in $PATH
 
13477
do
 
13478
  IFS=$as_save_IFS
 
13479
  case $as_dir in #(((
 
13480
    '') as_dir=./ ;;
 
13481
    */) ;;
 
13482
    *) as_dir=$as_dir/ ;;
 
13483
  esac
 
13484
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13485
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13486
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
13487
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13488
    break 2
 
13489
  fi
 
13490
done
 
13491
  done
 
13492
IFS=$as_save_IFS
 
13493
 
 
13494
fi
 
13495
fi
 
13496
CC=$ac_cv_prog_CC
 
13497
if test -n "$CC"; then
 
13498
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13499
printf "%s\n" "$CC" >&6; }
 
13500
else
 
13501
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13502
printf "%s\n" "no" >&6; }
 
13503
fi
 
13504
 
 
13505
 
 
13506
    test -n "$CC" && break
 
13507
  done
 
13508
fi
 
13509
if test -z "$CC"; then
 
13510
  ac_ct_CC=$CC
 
13511
  for ac_prog in cl.exe
 
13512
do
 
13513
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13514
set dummy $ac_prog; ac_word=$2
 
13515
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13516
printf %s "checking for $ac_word... " >&6; }
 
13517
if test ${ac_cv_prog_ac_ct_CC+y}
 
13518
then :
 
13519
  printf %s "(cached) " >&6
 
13520
else $as_nop
 
13521
  if test -n "$ac_ct_CC"; then
 
13522
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13523
else
 
13524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13525
for as_dir in $PATH
 
13526
do
 
13527
  IFS=$as_save_IFS
 
13528
  case $as_dir in #(((
 
13529
    '') as_dir=./ ;;
 
13530
    */) ;;
 
13531
    *) as_dir=$as_dir/ ;;
 
13532
  esac
 
13533
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13534
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13535
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
13536
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13537
    break 2
 
13538
  fi
 
13539
done
 
13540
  done
 
13541
IFS=$as_save_IFS
 
13542
 
 
13543
fi
 
13544
fi
 
13545
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13546
if test -n "$ac_ct_CC"; then
 
13547
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13548
printf "%s\n" "$ac_ct_CC" >&6; }
 
13549
else
 
13550
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13551
printf "%s\n" "no" >&6; }
 
13552
fi
 
13553
 
 
13554
 
 
13555
  test -n "$ac_ct_CC" && break
 
13556
done
 
13557
 
 
13558
  if test "x$ac_ct_CC" = x; then
 
13559
    CC=""
 
13560
  else
 
13561
    case $cross_compiling:$ac_tool_warned in
 
13562
yes:)
 
13563
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13564
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13565
ac_tool_warned=yes ;;
 
13566
esac
 
13567
    CC=$ac_ct_CC
 
13568
  fi
 
13569
fi
 
13570
 
 
13571
fi
 
13572
if test -z "$CC"; then
 
13573
  if test -n "$ac_tool_prefix"; then
 
13574
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
 
13575
set dummy ${ac_tool_prefix}clang; ac_word=$2
 
13576
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13577
printf %s "checking for $ac_word... " >&6; }
 
13578
if test ${ac_cv_prog_CC+y}
 
13579
then :
 
13580
  printf %s "(cached) " >&6
 
13581
else $as_nop
 
13582
  if test -n "$CC"; then
 
13583
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13584
else
 
13585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13586
for as_dir in $PATH
 
13587
do
 
13588
  IFS=$as_save_IFS
 
13589
  case $as_dir in #(((
 
13590
    '') as_dir=./ ;;
 
13591
    */) ;;
 
13592
    *) as_dir=$as_dir/ ;;
 
13593
  esac
 
13594
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13595
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13596
    ac_cv_prog_CC="${ac_tool_prefix}clang"
 
13597
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13598
    break 2
 
13599
  fi
 
13600
done
 
13601
  done
 
13602
IFS=$as_save_IFS
 
13603
 
 
13604
fi
 
13605
fi
 
13606
CC=$ac_cv_prog_CC
 
13607
if test -n "$CC"; then
 
13608
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13609
printf "%s\n" "$CC" >&6; }
 
13610
else
 
13611
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13612
printf "%s\n" "no" >&6; }
 
13613
fi
 
13614
 
 
13615
 
 
13616
fi
 
13617
if test -z "$ac_cv_prog_CC"; then
 
13618
  ac_ct_CC=$CC
 
13619
  # Extract the first word of "clang", so it can be a program name with args.
 
13620
set dummy clang; ac_word=$2
 
13621
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13622
printf %s "checking for $ac_word... " >&6; }
 
13623
if test ${ac_cv_prog_ac_ct_CC+y}
 
13624
then :
 
13625
  printf %s "(cached) " >&6
 
13626
else $as_nop
 
13627
  if test -n "$ac_ct_CC"; then
 
13628
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13629
else
 
13630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13631
for as_dir in $PATH
 
13632
do
 
13633
  IFS=$as_save_IFS
 
13634
  case $as_dir in #(((
 
13635
    '') as_dir=./ ;;
 
13636
    */) ;;
 
13637
    *) as_dir=$as_dir/ ;;
 
13638
  esac
 
13639
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13640
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 
13641
    ac_cv_prog_ac_ct_CC="clang"
 
13642
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 
13643
    break 2
 
13644
  fi
 
13645
done
 
13646
  done
 
13647
IFS=$as_save_IFS
 
13648
 
 
13649
fi
 
13650
fi
 
13651
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13652
if test -n "$ac_ct_CC"; then
 
13653
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13654
printf "%s\n" "$ac_ct_CC" >&6; }
 
13655
else
 
13656
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13657
printf "%s\n" "no" >&6; }
 
13658
fi
 
13659
 
 
13660
  if test "x$ac_ct_CC" = x; then
 
13661
    CC=""
 
13662
  else
 
13663
    case $cross_compiling:$ac_tool_warned in
 
13664
yes:)
 
13665
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13666
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13667
ac_tool_warned=yes ;;
 
13668
esac
 
13669
    CC=$ac_ct_CC
 
13670
  fi
 
13671
else
 
13672
  CC="$ac_cv_prog_CC"
 
13673
fi
 
13674
 
 
13675
fi
 
13676
 
 
13677
 
 
13678
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13679
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
13680
as_fn_error $? "no acceptable C compiler found in \$PATH
 
13681
See \`config.log' for more details" "$LINENO" 5; }
 
13682
 
 
13683
# Provide some information about the compiler.
 
13684
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
13685
set X $ac_compile
 
13686
ac_compiler=$2
 
13687
for ac_option in --version -v -V -qversion -version; do
 
13688
  { { ac_try="$ac_compiler $ac_option >&5"
 
13689
case "(($ac_try" in
 
13690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13691
  *) ac_try_echo=$ac_try;;
 
13692
esac
 
13693
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
13694
printf "%s\n" "$ac_try_echo"; } >&5
 
13695
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
13696
  ac_status=$?
 
13697
  if test -s conftest.err; then
 
13698
    sed '10a\
 
13699
... rest of stderr output deleted ...
 
13700
         10q' conftest.err >conftest.er1
 
13701
    cat conftest.er1 >&5
 
13702
  fi
 
13703
  rm -f conftest.er1 conftest.err
 
13704
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13705
  test $ac_status = 0; }
 
13706
done
 
13707
 
 
13708
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
 
13709
printf %s "checking whether the compiler supports GNU C... " >&6; }
 
13710
if test ${ac_cv_c_compiler_gnu+y}
 
13711
then :
 
13712
  printf %s "(cached) " >&6
 
13713
else $as_nop
 
13714
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13715
/* end confdefs.h.  */
 
13716
 
 
13717
int
 
13718
main (void)
 
13719
{
 
13720
#ifndef __GNUC__
 
13721
       choke me
 
13722
#endif
 
13723
 
 
13724
  ;
 
13725
  return 0;
 
13726
}
 
13727
_ACEOF
 
13728
if ac_fn_c_try_compile "$LINENO"
 
13729
then :
 
13730
  ac_compiler_gnu=yes
 
13731
else $as_nop
 
13732
  ac_compiler_gnu=no
 
13733
fi
 
13734
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13735
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
13736
 
 
13737
fi
 
13738
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
13739
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
 
13740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13741
 
 
13742
if test $ac_compiler_gnu = yes; then
 
13743
  GCC=yes
 
13744
else
 
13745
  GCC=
 
13746
fi
 
13747
ac_test_CFLAGS=${CFLAGS+y}
 
13748
ac_save_CFLAGS=$CFLAGS
 
13749
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
13750
printf %s "checking whether $CC accepts -g... " >&6; }
 
13751
if test ${ac_cv_prog_cc_g+y}
 
13752
then :
 
13753
  printf %s "(cached) " >&6
 
13754
else $as_nop
 
13755
  ac_save_c_werror_flag=$ac_c_werror_flag
 
13756
   ac_c_werror_flag=yes
 
13757
   ac_cv_prog_cc_g=no
 
13758
   CFLAGS="-g"
 
13759
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13760
/* end confdefs.h.  */
 
13761
 
 
13762
int
 
13763
main (void)
 
13764
{
 
13765
 
 
13766
  ;
 
13767
  return 0;
 
13768
}
 
13769
_ACEOF
 
13770
if ac_fn_c_try_compile "$LINENO"
 
13771
then :
 
13772
  ac_cv_prog_cc_g=yes
 
13773
else $as_nop
 
13774
  CFLAGS=""
 
13775
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13776
/* end confdefs.h.  */
 
13777
 
 
13778
int
 
13779
main (void)
 
13780
{
 
13781
 
 
13782
  ;
 
13783
  return 0;
 
13784
}
 
13785
_ACEOF
 
13786
if ac_fn_c_try_compile "$LINENO"
 
13787
then :
 
13788
 
 
13789
else $as_nop
 
13790
  ac_c_werror_flag=$ac_save_c_werror_flag
 
13791
         CFLAGS="-g"
 
13792
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13793
/* end confdefs.h.  */
 
13794
 
 
13795
int
 
13796
main (void)
 
13797
{
 
13798
 
 
13799
  ;
 
13800
  return 0;
 
13801
}
 
13802
_ACEOF
 
13803
if ac_fn_c_try_compile "$LINENO"
 
13804
then :
 
13805
  ac_cv_prog_cc_g=yes
 
13806
fi
 
13807
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13808
fi
 
13809
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13810
fi
 
13811
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13812
   ac_c_werror_flag=$ac_save_c_werror_flag
 
13813
fi
 
13814
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
13815
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
 
13816
if test $ac_test_CFLAGS; then
 
13817
  CFLAGS=$ac_save_CFLAGS
 
13818
elif test $ac_cv_prog_cc_g = yes; then
 
13819
  if test "$GCC" = yes; then
 
13820
    CFLAGS="-g -O2"
 
13821
  else
 
13822
    CFLAGS="-g"
 
13823
  fi
 
13824
else
 
13825
  if test "$GCC" = yes; then
 
13826
    CFLAGS="-O2"
 
13827
  else
 
13828
    CFLAGS=
 
13829
  fi
 
13830
fi
 
13831
ac_prog_cc_stdc=no
 
13832
if test x$ac_prog_cc_stdc = xno
 
13833
then :
 
13834
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
 
13835
printf %s "checking for $CC option to enable C11 features... " >&6; }
 
13836
if test ${ac_cv_prog_cc_c11+y}
 
13837
then :
 
13838
  printf %s "(cached) " >&6
 
13839
else $as_nop
 
13840
  ac_cv_prog_cc_c11=no
 
13841
ac_save_CC=$CC
 
13842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13843
/* end confdefs.h.  */
 
13844
$ac_c_conftest_c11_program
 
13845
_ACEOF
 
13846
for ac_arg in '' -std=gnu11
 
13847
do
 
13848
  CC="$ac_save_CC $ac_arg"
 
13849
  if ac_fn_c_try_compile "$LINENO"
 
13850
then :
 
13851
  ac_cv_prog_cc_c11=$ac_arg
 
13852
fi
 
13853
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
13854
  test "x$ac_cv_prog_cc_c11" != "xno" && break
 
13855
done
 
13856
rm -f conftest.$ac_ext
 
13857
CC=$ac_save_CC
 
13858
fi
 
13859
 
 
13860
if test "x$ac_cv_prog_cc_c11" = xno
 
13861
then :
 
13862
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13863
printf "%s\n" "unsupported" >&6; }
 
13864
else $as_nop
 
13865
  if test "x$ac_cv_prog_cc_c11" = x
 
13866
then :
 
13867
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13868
printf "%s\n" "none needed" >&6; }
 
13869
else $as_nop
 
13870
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
 
13871
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
 
13872
     CC="$CC $ac_cv_prog_cc_c11"
 
13873
fi
 
13874
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
 
13875
  ac_prog_cc_stdc=c11
 
13876
fi
 
13877
fi
 
13878
if test x$ac_prog_cc_stdc = xno
 
13879
then :
 
13880
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
 
13881
printf %s "checking for $CC option to enable C99 features... " >&6; }
 
13882
if test ${ac_cv_prog_cc_c99+y}
 
13883
then :
 
13884
  printf %s "(cached) " >&6
 
13885
else $as_nop
 
13886
  ac_cv_prog_cc_c99=no
 
13887
ac_save_CC=$CC
 
13888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13889
/* end confdefs.h.  */
 
13890
$ac_c_conftest_c99_program
 
13891
_ACEOF
 
13892
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
 
13893
do
 
13894
  CC="$ac_save_CC $ac_arg"
 
13895
  if ac_fn_c_try_compile "$LINENO"
 
13896
then :
 
13897
  ac_cv_prog_cc_c99=$ac_arg
 
13898
fi
 
13899
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
13900
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
13901
done
 
13902
rm -f conftest.$ac_ext
 
13903
CC=$ac_save_CC
 
13904
fi
 
13905
 
 
13906
if test "x$ac_cv_prog_cc_c99" = xno
 
13907
then :
 
13908
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13909
printf "%s\n" "unsupported" >&6; }
 
13910
else $as_nop
 
13911
  if test "x$ac_cv_prog_cc_c99" = x
 
13912
then :
 
13913
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13914
printf "%s\n" "none needed" >&6; }
 
13915
else $as_nop
 
13916
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
13917
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
 
13918
     CC="$CC $ac_cv_prog_cc_c99"
 
13919
fi
 
13920
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
13921
  ac_prog_cc_stdc=c99
 
13922
fi
 
13923
fi
 
13924
if test x$ac_prog_cc_stdc = xno
 
13925
then :
 
13926
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
 
13927
printf %s "checking for $CC option to enable C89 features... " >&6; }
 
13928
if test ${ac_cv_prog_cc_c89+y}
 
13929
then :
 
13930
  printf %s "(cached) " >&6
 
13931
else $as_nop
 
13932
  ac_cv_prog_cc_c89=no
 
13933
ac_save_CC=$CC
 
13934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13935
/* end confdefs.h.  */
 
13936
$ac_c_conftest_c89_program
 
13937
_ACEOF
 
13938
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
13939
do
 
13940
  CC="$ac_save_CC $ac_arg"
 
13941
  if ac_fn_c_try_compile "$LINENO"
 
13942
then :
 
13943
  ac_cv_prog_cc_c89=$ac_arg
 
13944
fi
 
13945
rm -f core conftest.err conftest.$ac_objext conftest.beam
 
13946
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
13947
done
 
13948
rm -f conftest.$ac_ext
 
13949
CC=$ac_save_CC
 
13950
fi
 
13951
 
 
13952
if test "x$ac_cv_prog_cc_c89" = xno
 
13953
then :
 
13954
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13955
printf "%s\n" "unsupported" >&6; }
 
13956
else $as_nop
 
13957
  if test "x$ac_cv_prog_cc_c89" = x
 
13958
then :
 
13959
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13960
printf "%s\n" "none needed" >&6; }
 
13961
else $as_nop
 
13962
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
13963
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
 
13964
     CC="$CC $ac_cv_prog_cc_c89"
 
13965
fi
 
13966
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
13967
  ac_prog_cc_stdc=c89
 
13968
fi
 
13969
fi
 
13970
 
 
13971
ac_ext=c
 
13972
ac_cpp='$CPP $CPPFLAGS'
 
13973
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13974
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13975
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13976
 
 
13977
 
 
13978
  ac_ext=c
 
13979
ac_cpp='$CPP $CPPFLAGS'
 
13980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
13984
printf %s "checking whether $CC understands -c and -o together... " >&6; }
 
13985
if test ${am_cv_prog_cc_c_o+y}
 
13986
then :
 
13987
  printf %s "(cached) " >&6
 
13988
else $as_nop
 
13989
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13990
/* end confdefs.h.  */
 
13991
 
 
13992
int
 
13993
main (void)
 
13994
{
 
13995
 
 
13996
  ;
 
13997
  return 0;
 
13998
}
 
13999
_ACEOF
 
14000
  # Make sure it works both with $CC and with simple cc.
 
14001
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
14002
  # compilers refuse to overwrite an existing .o file with -o,
 
14003
  # though they will create one.
 
14004
  am_cv_prog_cc_c_o=yes
 
14005
  for am_i in 1 2; do
 
14006
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
14007
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
14008
   ac_status=$?
 
14009
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14010
   (exit $ac_status); } \
 
14011
         && test -f conftest2.$ac_objext; then
 
14012
      : OK
 
14013
    else
 
14014
      am_cv_prog_cc_c_o=no
 
14015
      break
 
14016
    fi
 
14017
  done
 
14018
  rm -f core conftest*
 
14019
  unset am_i
 
14020
fi
 
14021
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
14022
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
 
14023
if test "$am_cv_prog_cc_c_o" != yes; then
 
14024
   # Losing compiler, so override with the script.
 
14025
   # FIXME: It is wrong to rewrite CC.
 
14026
   # But if we don't then we get into trouble of one sort or another.
 
14027
   # A longer-term fix would be to have automake use am__CC in this case,
 
14028
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
14029
   CC="$am_aux_dir/compile $CC"
 
14030
fi
 
14031
ac_ext=c
 
14032
ac_cpp='$CPP $CPPFLAGS'
 
14033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14036
 
 
14037
 
 
14038
 
 
14039
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
14040
printf %s "checking whether ln -s works... " >&6; }
 
14041
LN_S=$as_ln_s
 
14042
if test "$LN_S" = "ln -s"; then
 
14043
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14044
printf "%s\n" "yes" >&6; }
 
14045
else
 
14046
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
14047
printf "%s\n" "no, using $LN_S" >&6; }
 
14048
fi
 
14049
 
 
14050
 
 
14051
ac_config_files="$ac_config_files Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh"
 
14052
 
 
14053
cat >confcache <<\_ACEOF
 
14054
# This file is a shell script that caches the results of configure
 
14055
# tests run on this system so they can be shared between configure
 
14056
# scripts and configure runs, see configure's option --config-cache.
 
14057
# It is not useful on other systems.  If it contains results you don't
 
14058
# want to keep, you may remove or edit it.
 
14059
#
 
14060
# config.status only pays attention to the cache file if you give it
 
14061
# the --recheck option to rerun configure.
 
14062
#
 
14063
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
14064
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
14065
# following values.
 
14066
 
 
14067
_ACEOF
 
14068
 
 
14069
# The following way of writing the cache mishandles newlines in values,
 
14070
# but we know of no workaround that is simple, portable, and efficient.
 
14071
# So, we kill variables containing newlines.
 
14072
# Ultrix sh set writes to stderr and can't be redirected directly,
 
14073
# and sets the high bit in the cache file unless we assign to the vars.
 
14074
(
 
14075
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
14076
    eval ac_val=\$$ac_var
 
14077
    case $ac_val in #(
 
14078
    *${as_nl}*)
 
14079
      case $ac_var in #(
 
14080
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
14081
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
14082
      esac
 
14083
      case $ac_var in #(
 
14084
      _ | IFS | as_nl) ;; #(
 
14085
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
14086
      *) { eval $ac_var=; unset $ac_var;} ;;
 
14087
      esac ;;
 
14088
    esac
 
14089
  done
 
14090
 
 
14091
  (set) 2>&1 |
 
14092
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
14093
    *${as_nl}ac_space=\ *)
 
14094
      # `set' does not quote correctly, so add quotes: double-quote
 
14095
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
14096
      sed -n \
 
14097
        "s/'/'\\\\''/g;
 
14098
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
14099
      ;; #(
 
14100
    *)
 
14101
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
14102
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
14103
      ;;
 
14104
    esac |
 
14105
    sort
 
14106
) |
 
14107
  sed '
 
14108
     /^ac_cv_env_/b end
 
14109
     t clear
 
14110
     :clear
 
14111
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
 
14112
     t end
 
14113
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
14114
     :end' >>confcache
 
14115
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
14116
  if test -w "$cache_file"; then
 
14117
    if test "x$cache_file" != "x/dev/null"; then
 
14118
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
14119
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
 
14120
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
14121
        cat confcache >"$cache_file"
 
14122
      else
 
14123
        case $cache_file in #(
 
14124
        */* | ?:*)
 
14125
          mv -f confcache "$cache_file"$$ &&
 
14126
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
14127
        *)
 
14128
          mv -f confcache "$cache_file" ;;
 
14129
        esac
 
14130
      fi
 
14131
    fi
 
14132
  else
 
14133
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
14134
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
 
14135
  fi
 
14136
fi
 
14137
rm -f confcache
 
14138
 
 
14139
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
14140
# Let make expand exec_prefix.
 
14141
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
14142
 
 
14143
DEFS=-DHAVE_CONFIG_H
 
14144
 
 
14145
ac_libobjs=
 
14146
ac_ltlibobjs=
 
14147
U=
 
14148
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
14149
  # 1. Remove the extension, and $U if already installed.
 
14150
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
14151
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
 
14152
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
14153
  #    will be set to the directory where LIBOBJS objects are built.
 
14154
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
14155
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
14156
done
 
14157
LIBOBJS=$ac_libobjs
 
14158
 
 
14159
LTLIBOBJS=$ac_ltlibobjs
 
14160
 
 
14161
 
 
14162
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
14163
printf %s "checking that generated files are newer than configure... " >&6; }
 
14164
   if test -n "$am_sleep_pid"; then
 
14165
     # Hide warnings about reused PIDs.
 
14166
     wait $am_sleep_pid 2>/dev/null
 
14167
   fi
 
14168
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
14169
printf "%s\n" "done" >&6; }
 
14170
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
14171
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
14172
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14173
fi
 
14174
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
14175
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
14176
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14177
fi
 
14178
 if test -n "$EXEEXT"; then
 
14179
  am__EXEEXT_TRUE=
 
14180
  am__EXEEXT_FALSE='#'
 
14181
else
 
14182
  am__EXEEXT_TRUE='#'
 
14183
  am__EXEEXT_FALSE=
 
14184
fi
 
14185
 
 
14186
 
 
14187
: "${CONFIG_STATUS=./config.status}"
 
14188
ac_write_fail=0
 
14189
ac_clean_files_save=$ac_clean_files
 
14190
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
14191
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
14192
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
 
14193
as_write_fail=0
 
14194
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
14195
#! $SHELL
 
14196
# Generated by $as_me.
 
14197
# Run this file to recreate the current configuration.
 
14198
# Compiler output produced by configure, useful for debugging
 
14199
# configure, is in config.log if it exists.
 
14200
 
 
14201
debug=false
 
14202
ac_cs_recheck=false
 
14203
ac_cs_silent=false
 
14204
 
 
14205
SHELL=\${CONFIG_SHELL-$SHELL}
 
14206
export SHELL
 
14207
_ASEOF
 
14208
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
14209
## -------------------- ##
 
14210
## M4sh Initialization. ##
 
14211
## -------------------- ##
 
14212
 
 
14213
# Be more Bourne compatible
 
14214
DUALCASE=1; export DUALCASE # for MKS sh
 
14215
as_nop=:
 
14216
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 
14217
then :
 
14218
  emulate sh
 
14219
  NULLCMD=:
 
14220
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
14221
  # is contrary to our usage.  Disable this feature.
 
14222
  alias -g '${1+"$@"}'='"$@"'
 
14223
  setopt NO_GLOB_SUBST
 
14224
else $as_nop
 
14225
  case `(set -o) 2>/dev/null` in #(
 
14226
  *posix*) :
 
14227
    set -o posix ;; #(
 
14228
  *) :
 
14229
     ;;
 
14230
esac
 
14231
fi
 
14232
 
 
14233
 
 
14234
 
 
14235
# Reset variables that may have inherited troublesome values from
 
14236
# the environment.
 
14237
 
 
14238
# IFS needs to be set, to space, tab, and newline, in precisely that order.
 
14239
# (If _AS_PATH_WALK were called with IFS unset, it would have the
 
14240
# side effect of setting IFS to empty, thus disabling word splitting.)
 
14241
# Quoting is to prevent editors from complaining about space-tab.
 
14242
as_nl='
 
14243
'
 
14244
export as_nl
 
14245
IFS=" ""        $as_nl"
 
14246
 
 
14247
PS1='$ '
 
14248
PS2='> '
 
14249
PS4='+ '
 
14250
 
 
14251
# Ensure predictable behavior from utilities with locale-dependent output.
 
14252
LC_ALL=C
 
14253
export LC_ALL
 
14254
LANGUAGE=C
 
14255
export LANGUAGE
 
14256
 
 
14257
# We cannot yet rely on "unset" to work, but we need these variables
 
14258
# to be unset--not just set to an empty or harmless value--now, to
 
14259
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
 
14260
# also avoids known problems related to "unset" and subshell syntax
 
14261
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
 
14262
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
 
14263
do eval test \${$as_var+y} \
 
14264
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
14265
done
 
14266
 
 
14267
# Ensure that fds 0, 1, and 2 are open.
 
14268
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
 
14269
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
 
14270
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
 
14271
 
 
14272
# The user is always right.
 
14273
if ${PATH_SEPARATOR+false} :; then
 
14274
  PATH_SEPARATOR=:
 
14275
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
14276
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
14277
      PATH_SEPARATOR=';'
 
14278
  }
 
14279
fi
 
14280
 
 
14281
 
 
14282
# Find who we are.  Look in the path if we contain no directory separator.
 
14283
as_myself=
 
14284
case $0 in #((
 
14285
  *[\\/]* ) as_myself=$0 ;;
 
14286
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14287
for as_dir in $PATH
 
14288
do
 
14289
  IFS=$as_save_IFS
 
14290
  case $as_dir in #(((
 
14291
    '') as_dir=./ ;;
 
14292
    */) ;;
 
14293
    *) as_dir=$as_dir/ ;;
 
14294
  esac
 
14295
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
 
14296
  done
 
14297
IFS=$as_save_IFS
 
14298
 
 
14299
     ;;
 
14300
esac
 
14301
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
14302
# in which case we are not to be found in the path.
 
14303
if test "x$as_myself" = x; then
 
14304
  as_myself=$0
 
14305
fi
 
14306
if test ! -f "$as_myself"; then
 
14307
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
14308
  exit 1
 
14309
fi
 
14310
 
 
14311
 
 
14312
 
 
14313
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
14314
# ----------------------------------------
 
14315
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
14316
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
14317
# script with STATUS, using 1 if that was 0.
 
14318
as_fn_error ()
 
14319
{
 
14320
  as_status=$1; test $as_status -eq 0 && as_status=1
 
14321
  if test "$4"; then
 
14322
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
14323
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
14324
  fi
 
14325
  printf "%s\n" "$as_me: error: $2" >&2
 
14326
  as_fn_exit $as_status
 
14327
} # as_fn_error
 
14328
 
 
14329
 
 
14330
 
 
14331
# as_fn_set_status STATUS
 
14332
# -----------------------
 
14333
# Set $? to STATUS, without forking.
 
14334
as_fn_set_status ()
 
14335
{
 
14336
  return $1
 
14337
} # as_fn_set_status
 
14338
 
 
14339
# as_fn_exit STATUS
 
14340
# -----------------
 
14341
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
14342
as_fn_exit ()
 
14343
{
 
14344
  set +e
 
14345
  as_fn_set_status $1
 
14346
  exit $1
 
14347
} # as_fn_exit
 
14348
 
 
14349
# as_fn_unset VAR
 
14350
# ---------------
 
14351
# Portably unset VAR.
 
14352
as_fn_unset ()
 
14353
{
 
14354
  { eval $1=; unset $1;}
 
14355
}
 
14356
as_unset=as_fn_unset
 
14357
 
 
14358
# as_fn_append VAR VALUE
 
14359
# ----------------------
 
14360
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
14361
# advantage of any shell optimizations that allow amortized linear growth over
 
14362
# repeated appends, instead of the typical quadratic growth present in naive
 
14363
# implementations.
 
14364
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
 
14365
then :
 
14366
  eval 'as_fn_append ()
 
14367
  {
 
14368
    eval $1+=\$2
 
14369
  }'
 
14370
else $as_nop
 
14371
  as_fn_append ()
 
14372
  {
 
14373
    eval $1=\$$1\$2
 
14374
  }
 
14375
fi # as_fn_append
 
14376
 
 
14377
# as_fn_arith ARG...
 
14378
# ------------------
 
14379
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14380
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14381
# must be portable across $(()) and expr.
 
14382
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
 
14383
then :
 
14384
  eval 'as_fn_arith ()
 
14385
  {
 
14386
    as_val=$(( $* ))
 
14387
  }'
 
14388
else $as_nop
 
14389
  as_fn_arith ()
 
14390
  {
 
14391
    as_val=`expr "$@" || test $? -eq 1`
 
14392
  }
 
14393
fi # as_fn_arith
 
14394
 
 
14395
 
 
14396
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14397
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14398
  as_expr=expr
 
14399
else
 
14400
  as_expr=false
 
14401
fi
 
14402
 
 
14403
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14404
  as_basename=basename
 
14405
else
 
14406
  as_basename=false
 
14407
fi
 
14408
 
 
14409
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14410
  as_dirname=dirname
 
14411
else
 
14412
  as_dirname=false
 
14413
fi
 
14414
 
 
14415
as_me=`$as_basename -- "$0" ||
 
14416
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14417
         X"$0" : 'X\(//\)$' \| \
 
14418
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14419
printf "%s\n" X/"$0" |
 
14420
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14421
            s//\1/
 
14422
            q
 
14423
          }
 
14424
          /^X\/\(\/\/\)$/{
 
14425
            s//\1/
 
14426
            q
 
14427
          }
 
14428
          /^X\/\(\/\).*/{
 
14429
            s//\1/
 
14430
            q
 
14431
          }
 
14432
          s/.*/./; q'`
 
14433
 
 
14434
# Avoid depending upon Character Ranges.
 
14435
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14436
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14437
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14438
as_cr_digits='0123456789'
 
14439
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14440
 
 
14441
 
 
14442
# Determine whether it's possible to make 'echo' print without a newline.
 
14443
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
 
14444
# for compatibility with existing Makefiles.
 
14445
ECHO_C= ECHO_N= ECHO_T=
 
14446
case `echo -n x` in #(((((
 
14447
-n*)
 
14448
  case `echo 'xy\c'` in
 
14449
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14450
  xy)  ECHO_C='\c';;
 
14451
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14452
       ECHO_T=' ';;
 
14453
  esac;;
 
14454
*)
 
14455
  ECHO_N='-n';;
 
14456
esac
 
14457
 
 
14458
# For backward compatibility with old third-party macros, we provide
 
14459
# the shell variables $as_echo and $as_echo_n.  New code should use
 
14460
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
 
14461
as_echo='printf %s\n'
 
14462
as_echo_n='printf %s'
 
14463
 
 
14464
rm -f conf$$ conf$$.exe conf$$.file
 
14465
if test -d conf$$.dir; then
 
14466
  rm -f conf$$.dir/conf$$.file
 
14467
else
 
14468
  rm -f conf$$.dir
 
14469
  mkdir conf$$.dir 2>/dev/null
 
14470
fi
 
14471
if (echo >conf$$.file) 2>/dev/null; then
 
14472
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14473
    as_ln_s='ln -s'
 
14474
    # ... but there are two gotchas:
 
14475
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14476
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14477
    # In both cases, we have to default to `cp -pR'.
 
14478
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14479
      as_ln_s='cp -pR'
 
14480
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14481
    as_ln_s=ln
 
14482
  else
 
14483
    as_ln_s='cp -pR'
 
14484
  fi
 
14485
else
 
14486
  as_ln_s='cp -pR'
 
14487
fi
 
14488
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14489
rmdir conf$$.dir 2>/dev/null
 
14490
 
 
14491
 
 
14492
# as_fn_mkdir_p
 
14493
# -------------
 
14494
# Create "$as_dir" as a directory, including parents if necessary.
 
14495
as_fn_mkdir_p ()
 
14496
{
 
14497
 
 
14498
  case $as_dir in #(
 
14499
  -*) as_dir=./$as_dir;;
 
14500
  esac
 
14501
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14502
    as_dirs=
 
14503
    while :; do
 
14504
      case $as_dir in #(
 
14505
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14506
      *) as_qdir=$as_dir;;
 
14507
      esac
 
14508
      as_dirs="'$as_qdir' $as_dirs"
 
14509
      as_dir=`$as_dirname -- "$as_dir" ||
 
14510
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14511
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14512
         X"$as_dir" : 'X\(//\)$' \| \
 
14513
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14514
printf "%s\n" X"$as_dir" |
 
14515
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14516
            s//\1/
 
14517
            q
 
14518
          }
 
14519
          /^X\(\/\/\)[^/].*/{
 
14520
            s//\1/
 
14521
            q
 
14522
          }
 
14523
          /^X\(\/\/\)$/{
 
14524
            s//\1/
 
14525
            q
 
14526
          }
 
14527
          /^X\(\/\).*/{
 
14528
            s//\1/
 
14529
            q
 
14530
          }
 
14531
          s/.*/./; q'`
 
14532
      test -d "$as_dir" && break
 
14533
    done
 
14534
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14535
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
14536
 
 
14537
 
 
14538
} # as_fn_mkdir_p
 
14539
if mkdir -p . 2>/dev/null; then
 
14540
  as_mkdir_p='mkdir -p "$as_dir"'
 
14541
else
 
14542
  test -d ./-p && rmdir ./-p
 
14543
  as_mkdir_p=false
 
14544
fi
 
14545
 
 
14546
 
 
14547
# as_fn_executable_p FILE
 
14548
# -----------------------
 
14549
# Test if FILE is an executable regular file.
 
14550
as_fn_executable_p ()
 
14551
{
 
14552
  test -f "$1" && test -x "$1"
 
14553
} # as_fn_executable_p
 
14554
as_test_x='test -x'
 
14555
as_executable_p=as_fn_executable_p
 
14556
 
 
14557
# Sed expression to map a string onto a valid CPP name.
 
14558
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14559
 
 
14560
# Sed expression to map a string onto a valid variable name.
 
14561
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14562
 
 
14563
 
 
14564
exec 6>&1
 
14565
## ----------------------------------- ##
 
14566
## Main body of $CONFIG_STATUS script. ##
 
14567
## ----------------------------------- ##
 
14568
_ASEOF
 
14569
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14570
 
 
14571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14572
# Save the log message, to keep $0 and so on meaningful, and to
 
14573
# report actual input values of CONFIG_FILES etc. instead of their
 
14574
# values after options handling.
 
14575
ac_log="
 
14576
This file was extended by pkgconf $as_me 1.8.1, which was
 
14577
generated by GNU Autoconf 2.71.  Invocation command line was
 
14578
 
 
14579
  CONFIG_FILES    = $CONFIG_FILES
 
14580
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14581
  CONFIG_LINKS    = $CONFIG_LINKS
 
14582
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14583
  $ $0 $@
 
14584
 
 
14585
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14586
"
 
14587
 
 
14588
_ACEOF
 
14589
 
 
14590
case $ac_config_files in *"
 
14591
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14592
esac
 
14593
 
 
14594
case $ac_config_headers in *"
 
14595
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14596
esac
 
14597
 
 
14598
 
 
14599
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14600
# Files that config.status was made for.
 
14601
config_files="$ac_config_files"
 
14602
config_headers="$ac_config_headers"
 
14603
config_commands="$ac_config_commands"
 
14604
 
 
14605
_ACEOF
 
14606
 
 
14607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14608
ac_cs_usage="\
 
14609
\`$as_me' instantiates files and other configuration actions
 
14610
from templates according to the current configuration.  Unless the files
 
14611
and actions are specified as TAGs, all are instantiated by default.
 
14612
 
 
14613
Usage: $0 [OPTION]... [TAG]...
 
14614
 
 
14615
  -h, --help       print this help, then exit
 
14616
  -V, --version    print version number and configuration settings, then exit
 
14617
      --config     print configuration, then exit
 
14618
  -q, --quiet, --silent
 
14619
                   do not print progress messages
 
14620
  -d, --debug      don't remove temporary files
 
14621
      --recheck    update $as_me by reconfiguring in the same conditions
 
14622
      --file=FILE[:TEMPLATE]
 
14623
                   instantiate the configuration file FILE
 
14624
      --header=FILE[:TEMPLATE]
 
14625
                   instantiate the configuration header FILE
 
14626
 
 
14627
Configuration files:
 
14628
$config_files
 
14629
 
 
14630
Configuration headers:
 
14631
$config_headers
 
14632
 
 
14633
Configuration commands:
 
14634
$config_commands
 
14635
 
 
14636
Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>."
 
14637
 
 
14638
_ACEOF
 
14639
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
 
14640
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
 
14641
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14642
ac_cs_config='$ac_cs_config_escaped'
 
14643
ac_cs_version="\\
 
14644
pkgconf config.status 1.8.1
 
14645
configured by $0, generated by GNU Autoconf 2.71,
 
14646
  with options \\"\$ac_cs_config\\"
 
14647
 
 
14648
Copyright (C) 2021 Free Software Foundation, Inc.
 
14649
This config.status script is free software; the Free Software Foundation
 
14650
gives unlimited permission to copy, distribute and modify it."
 
14651
 
 
14652
ac_pwd='$ac_pwd'
 
14653
srcdir='$srcdir'
 
14654
INSTALL='$INSTALL'
 
14655
MKDIR_P='$MKDIR_P'
 
14656
AWK='$AWK'
 
14657
test -n "\$AWK" || AWK=awk
 
14658
_ACEOF
 
14659
 
 
14660
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14661
# The default lists apply if the user does not specify any file.
 
14662
ac_need_defaults=:
 
14663
while test $# != 0
 
14664
do
 
14665
  case $1 in
 
14666
  --*=?*)
 
14667
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14668
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14669
    ac_shift=:
 
14670
    ;;
 
14671
  --*=)
 
14672
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14673
    ac_optarg=
 
14674
    ac_shift=:
 
14675
    ;;
 
14676
  *)
 
14677
    ac_option=$1
 
14678
    ac_optarg=$2
 
14679
    ac_shift=shift
 
14680
    ;;
 
14681
  esac
 
14682
 
 
14683
  case $ac_option in
 
14684
  # Handling of the options.
 
14685
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14686
    ac_cs_recheck=: ;;
 
14687
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14688
    printf "%s\n" "$ac_cs_version"; exit ;;
 
14689
  --config | --confi | --conf | --con | --co | --c )
 
14690
    printf "%s\n" "$ac_cs_config"; exit ;;
 
14691
  --debug | --debu | --deb | --de | --d | -d )
 
14692
    debug=: ;;
 
14693
  --file | --fil | --fi | --f )
 
14694
    $ac_shift
 
14695
    case $ac_optarg in
 
14696
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14697
    '') as_fn_error $? "missing file argument" ;;
 
14698
    esac
 
14699
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14700
    ac_need_defaults=false;;
 
14701
  --header | --heade | --head | --hea )
 
14702
    $ac_shift
 
14703
    case $ac_optarg in
 
14704
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14705
    esac
 
14706
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
14707
    ac_need_defaults=false;;
 
14708
  --he | --h)
 
14709
    # Conflict between --help and --header
 
14710
    as_fn_error $? "ambiguous option: \`$1'
 
14711
Try \`$0 --help' for more information.";;
 
14712
  --help | --hel | -h )
 
14713
    printf "%s\n" "$ac_cs_usage"; exit ;;
 
14714
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14715
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14716
    ac_cs_silent=: ;;
 
14717
 
 
14718
  # This is an error.
 
14719
  -*) as_fn_error $? "unrecognized option: \`$1'
 
14720
Try \`$0 --help' for more information." ;;
 
14721
 
 
14722
  *) as_fn_append ac_config_targets " $1"
 
14723
     ac_need_defaults=false ;;
 
14724
 
 
14725
  esac
 
14726
  shift
 
14727
done
 
14728
 
 
14729
ac_configure_extra_args=
 
14730
 
 
14731
if $ac_cs_silent; then
 
14732
  exec 6>/dev/null
 
14733
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14734
fi
 
14735
 
 
14736
_ACEOF
 
14737
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14738
if \$ac_cs_recheck; then
 
14739
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14740
  shift
 
14741
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
 
14742
  CONFIG_SHELL='$SHELL'
 
14743
  export CONFIG_SHELL
 
14744
  exec "\$@"
 
14745
fi
 
14746
 
 
14747
_ACEOF
 
14748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14749
exec 5>>config.log
 
14750
{
 
14751
  echo
 
14752
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14753
## Running $as_me. ##
 
14754
_ASBOX
 
14755
  printf "%s\n" "$ac_log"
 
14756
} >&5
 
14757
 
 
14758
_ACEOF
 
14759
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14760
#
 
14761
# INIT-COMMANDS
 
14762
#
 
14763
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
 
14764
 
 
14765
 
 
14766
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14767
# if CDPATH is set.
 
14768
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14769
 
 
14770
sed_quote_subst='$sed_quote_subst'
 
14771
double_quote_subst='$double_quote_subst'
 
14772
delay_variable_subst='$delay_variable_subst'
 
14773
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14774
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14775
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14776
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14777
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14778
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14779
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
 
14780
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14781
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14782
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
14783
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14784
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14785
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14786
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14787
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14788
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14789
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14790
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14791
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
14792
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
14793
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
14794
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
14795
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
14796
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
14797
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
14798
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
14799
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
14800
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
14801
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
14802
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
14803
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14804
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14805
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
14806
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
14807
FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
 
14808
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
14809
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
14810
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
14811
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
14812
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
14813
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
14814
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
14815
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
14816
lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
 
14817
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
14818
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
14819
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
14820
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
14821
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14822
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14823
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14824
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
14825
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
14826
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
14827
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
14828
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
14829
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
14830
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
14831
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
 
14832
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
14833
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"`'
 
14834
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
 
14835
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14836
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
14837
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
 
14838
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
14839
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
14840
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
14841
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
14842
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
14843
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
14844
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
14845
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
14846
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
14847
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
14848
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
14849
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
14850
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
14851
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
14852
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
14853
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
14854
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14855
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
14856
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
14857
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14858
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14859
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
14860
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
14861
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14862
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14863
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14864
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
14865
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14866
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
14867
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14868
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14869
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14870
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
14871
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
14872
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
14873
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
14874
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14875
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
14876
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
14877
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
14878
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
14879
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
14880
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
14881
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
14882
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
14883
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
14884
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14885
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
14886
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14887
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
14888
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
14889
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
14890
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14891
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
14892
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
14893
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
14894
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
14895
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
14896
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14897
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14898
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
14899
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
14900
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
14901
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
14902
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
 
14903
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
 
14904
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
14905
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
14906
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
14907
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
14908
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
14909
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
14910
 
 
14911
LTCC='$LTCC'
 
14912
LTCFLAGS='$LTCFLAGS'
 
14913
compiler='$compiler_DEFAULT'
 
14914
 
 
14915
# A function that is used when there is no print builtin or printf.
 
14916
func_fallback_echo ()
 
14917
{
 
14918
  eval 'cat <<_LTECHO_EOF
 
14919
\$1
 
14920
_LTECHO_EOF'
 
14921
}
 
14922
 
 
14923
# Quote evaled strings.
 
14924
for var in SHELL \
 
14925
ECHO \
 
14926
PATH_SEPARATOR \
 
14927
SED \
 
14928
GREP \
 
14929
EGREP \
 
14930
FGREP \
 
14931
LD \
 
14932
NM \
 
14933
LN_S \
 
14934
lt_SP2NL \
 
14935
lt_NL2SP \
 
14936
reload_flag \
 
14937
FILECMD \
 
14938
OBJDUMP \
 
14939
deplibs_check_method \
 
14940
file_magic_cmd \
 
14941
file_magic_glob \
 
14942
want_nocaseglob \
 
14943
DLLTOOL \
 
14944
sharedlib_from_linklib_cmd \
 
14945
AR \
 
14946
archiver_list_spec \
 
14947
STRIP \
 
14948
RANLIB \
 
14949
CC \
 
14950
CFLAGS \
 
14951
compiler \
 
14952
lt_cv_sys_global_symbol_pipe \
 
14953
lt_cv_sys_global_symbol_to_cdecl \
 
14954
lt_cv_sys_global_symbol_to_import \
 
14955
lt_cv_sys_global_symbol_to_c_name_address \
 
14956
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14957
lt_cv_nm_interface \
 
14958
nm_file_list_spec \
 
14959
lt_cv_truncate_bin \
 
14960
lt_prog_compiler_no_builtin_flag \
 
14961
lt_prog_compiler_pic \
 
14962
lt_prog_compiler_wl \
 
14963
lt_prog_compiler_static \
 
14964
lt_cv_prog_compiler_c_o \
 
14965
need_locks \
 
14966
MANIFEST_TOOL \
 
14967
DSYMUTIL \
 
14968
NMEDIT \
 
14969
LIPO \
 
14970
OTOOL \
 
14971
OTOOL64 \
 
14972
shrext_cmds \
 
14973
export_dynamic_flag_spec \
 
14974
whole_archive_flag_spec \
 
14975
compiler_needs_object \
 
14976
with_gnu_ld \
 
14977
allow_undefined_flag \
 
14978
no_undefined_flag \
 
14979
hardcode_libdir_flag_spec \
 
14980
hardcode_libdir_separator \
 
14981
exclude_expsyms \
 
14982
include_expsyms \
 
14983
file_list_spec \
 
14984
variables_saved_for_relink \
 
14985
libname_spec \
 
14986
library_names_spec \
 
14987
soname_spec \
 
14988
install_override_mode \
 
14989
finish_eval \
 
14990
old_striplib \
 
14991
striplib; do
 
14992
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14993
    *[\\\\\\\`\\"\\\$]*)
 
14994
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
14995
      ;;
 
14996
    *)
 
14997
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14998
      ;;
 
14999
    esac
 
15000
done
 
15001
 
 
15002
# Double-quote double-evaled strings.
 
15003
for var in reload_cmds \
 
15004
old_postinstall_cmds \
 
15005
old_postuninstall_cmds \
 
15006
old_archive_cmds \
 
15007
extract_expsyms_cmds \
 
15008
old_archive_from_new_cmds \
 
15009
old_archive_from_expsyms_cmds \
 
15010
archive_cmds \
 
15011
archive_expsym_cmds \
 
15012
module_cmds \
 
15013
module_expsym_cmds \
 
15014
export_symbols_cmds \
 
15015
prelink_cmds \
 
15016
postlink_cmds \
 
15017
postinstall_cmds \
 
15018
postuninstall_cmds \
 
15019
finish_cmds \
 
15020
sys_lib_search_path_spec \
 
15021
configure_time_dlsearch_path \
 
15022
configure_time_lt_sys_library_path; do
 
15023
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
15024
    *[\\\\\\\`\\"\\\$]*)
 
15025
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
15026
      ;;
 
15027
    *)
 
15028
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15029
      ;;
 
15030
    esac
 
15031
done
 
15032
 
 
15033
ac_aux_dir='$ac_aux_dir'
 
15034
 
 
15035
# See if we are running on zsh, and set the options that allow our
 
15036
# commands through without removal of \ escapes INIT.
 
15037
if test -n "\${ZSH_VERSION+set}"; then
 
15038
   setopt NO_GLOB_SUBST
 
15039
fi
 
15040
 
 
15041
 
 
15042
    PACKAGE='$PACKAGE'
 
15043
    VERSION='$VERSION'
 
15044
    RM='$RM'
 
15045
    ofile='$ofile'
 
15046
 
 
15047
 
 
15048
 
 
15049
 
 
15050
_ACEOF
 
15051
 
 
15052
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15053
 
 
15054
# Handling of arguments.
 
15055
for ac_config_target in $ac_config_targets
 
15056
do
 
15057
  case $ac_config_target in
 
15058
    "libpkgconf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libpkgconf/config.h" ;;
 
15059
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
15060
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
15061
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
15062
    "Kyuafile") CONFIG_FILES="$CONFIG_FILES Kyuafile" ;;
 
15063
    "libpkgconf.pc") CONFIG_FILES="$CONFIG_FILES libpkgconf.pc" ;;
 
15064
    "tests/Kyuafile") CONFIG_FILES="$CONFIG_FILES tests/Kyuafile" ;;
 
15065
    "tests/test_env.sh") CONFIG_FILES="$CONFIG_FILES tests/test_env.sh" ;;
 
15066
 
 
15067
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
15068
  esac
 
15069
done
 
15070
 
 
15071
 
 
15072
# If the user did not use the arguments to specify the items to instantiate,
 
15073
# then the envvar interface is used.  Set only those that are not.
 
15074
# We use the long form for the default assignment because of an extremely
 
15075
# bizarre bug on SunOS 4.1.3.
 
15076
if $ac_need_defaults; then
 
15077
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
 
15078
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
 
15079
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
 
15080
fi
 
15081
 
 
15082
# Have a temporary directory for convenience.  Make it in the build tree
 
15083
# simply because there is no reason against having it here, and in addition,
 
15084
# creating and moving files from /tmp can sometimes cause problems.
 
15085
# Hook for its removal unless debugging.
 
15086
# Note that there is a small window in which the directory will not be cleaned:
 
15087
# after its creation but before its name has been assigned to `$tmp'.
 
15088
$debug ||
 
15089
{
 
15090
  tmp= ac_tmp=
 
15091
  trap 'exit_status=$?
 
15092
  : "${ac_tmp:=$tmp}"
 
15093
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
15094
' 0
 
15095
  trap 'as_fn_exit 1' 1 2 13 15
 
15096
}
 
15097
# Create a (secure) tmp directory for tmp files.
 
15098
 
 
15099
{
 
15100
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
15101
  test -d "$tmp"
 
15102
}  ||
 
15103
{
 
15104
  tmp=./conf$$-$RANDOM
 
15105
  (umask 077 && mkdir "$tmp")
 
15106
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
15107
ac_tmp=$tmp
 
15108
 
 
15109
# Set up the scripts for CONFIG_FILES section.
 
15110
# No need to generate them if there are no CONFIG_FILES.
 
15111
# This happens for instance with `./config.status config.h'.
 
15112
if test -n "$CONFIG_FILES"; then
 
15113
 
 
15114
 
 
15115
ac_cr=`echo X | tr X '\015'`
 
15116
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
15117
# But we know of no other shell where ac_cr would be empty at this
 
15118
# point, so we can use a bashism as a fallback.
 
15119
if test "x$ac_cr" = x; then
 
15120
  eval ac_cr=\$\'\\r\'
 
15121
fi
 
15122
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
15123
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
15124
  ac_cs_awk_cr='\\r'
 
15125
else
 
15126
  ac_cs_awk_cr=$ac_cr
 
15127
fi
 
15128
 
 
15129
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
15130
_ACEOF
 
15131
 
 
15132
 
 
15133
{
 
15134
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
15135
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
15136
  echo "_ACEOF"
 
15137
} >conf$$subs.sh ||
 
15138
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15139
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
15140
ac_delim='%!_!# '
 
15141
for ac_last_try in false false false false false :; do
 
15142
  . ./conf$$subs.sh ||
 
15143
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15144
 
 
15145
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
15146
  if test $ac_delim_n = $ac_delim_num; then
 
15147
    break
 
15148
  elif $ac_last_try; then
 
15149
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15150
  else
 
15151
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15152
  fi
 
15153
done
 
15154
rm -f conf$$subs.sh
 
15155
 
 
15156
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15157
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
15158
_ACEOF
 
15159
sed -n '
 
15160
h
 
15161
s/^/S["/; s/!.*/"]=/
 
15162
p
 
15163
g
 
15164
s/^[^!]*!//
 
15165
:repl
 
15166
t repl
 
15167
s/'"$ac_delim"'$//
 
15168
t delim
 
15169
:nl
 
15170
h
 
15171
s/\(.\{148\}\)..*/\1/
 
15172
t more1
 
15173
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
15174
p
 
15175
n
 
15176
b repl
 
15177
:more1
 
15178
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15179
p
 
15180
g
 
15181
s/.\{148\}//
 
15182
t nl
 
15183
:delim
 
15184
h
 
15185
s/\(.\{148\}\)..*/\1/
 
15186
t more2
 
15187
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
15188
p
 
15189
b
 
15190
:more2
 
15191
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15192
p
 
15193
g
 
15194
s/.\{148\}//
 
15195
t delim
 
15196
' <conf$$subs.awk | sed '
 
15197
/^[^""]/{
 
15198
  N
 
15199
  s/\n//
 
15200
}
 
15201
' >>$CONFIG_STATUS || ac_write_fail=1
 
15202
rm -f conf$$subs.awk
 
15203
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15204
_ACAWK
 
15205
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
15206
  for (key in S) S_is_set[key] = 1
 
15207
  FS = ""
 
15208
 
 
15209
}
 
15210
{
 
15211
  line = $ 0
 
15212
  nfields = split(line, field, "@")
 
15213
  substed = 0
 
15214
  len = length(field[1])
 
15215
  for (i = 2; i < nfields; i++) {
 
15216
    key = field[i]
 
15217
    keylen = length(key)
 
15218
    if (S_is_set[key]) {
 
15219
      value = S[key]
 
15220
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
15221
      len += length(value) + length(field[++i])
 
15222
      substed = 1
 
15223
    } else
 
15224
      len += 1 + keylen
 
15225
  }
 
15226
 
 
15227
  print line
 
15228
}
 
15229
 
 
15230
_ACAWK
 
15231
_ACEOF
 
15232
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15233
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
15234
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
15235
else
 
15236
  cat
 
15237
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
15238
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
15239
_ACEOF
 
15240
 
 
15241
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
15242
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
15243
# trailing colons and then remove the whole line if VPATH becomes empty
 
15244
# (actually we leave an empty line to preserve line numbers).
 
15245
if test "x$srcdir" = x.; then
 
15246
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
15247
h
 
15248
s///
 
15249
s/^/:/
 
15250
s/[      ]*$/:/
 
15251
s/:\$(srcdir):/:/g
 
15252
s/:\${srcdir}:/:/g
 
15253
s/:@srcdir@:/:/g
 
15254
s/^:*//
 
15255
s/:*$//
 
15256
x
 
15257
s/\(=[   ]*\).*/\1/
 
15258
G
 
15259
s/\n//
 
15260
s/^[^=]*=[       ]*$//
 
15261
}'
 
15262
fi
 
15263
 
 
15264
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15265
fi # test -n "$CONFIG_FILES"
 
15266
 
 
15267
# Set up the scripts for CONFIG_HEADERS section.
 
15268
# No need to generate them if there are no CONFIG_HEADERS.
 
15269
# This happens for instance with `./config.status Makefile'.
 
15270
if test -n "$CONFIG_HEADERS"; then
 
15271
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
15272
BEGIN {
 
15273
_ACEOF
 
15274
 
 
15275
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
15276
# here-document in config.status, that substitutes the proper values into
 
15277
# config.h.in to produce config.h.
 
15278
 
 
15279
# Create a delimiter string that does not exist in confdefs.h, to ease
 
15280
# handling of long lines.
 
15281
ac_delim='%!_!# '
 
15282
for ac_last_try in false false :; do
 
15283
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
15284
  if test -z "$ac_tt"; then
 
15285
    break
 
15286
  elif $ac_last_try; then
 
15287
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
15288
  else
 
15289
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15290
  fi
 
15291
done
 
15292
 
 
15293
# For the awk script, D is an array of macro values keyed by name,
 
15294
# likewise P contains macro parameters if any.  Preserve backslash
 
15295
# newline sequences.
 
15296
 
 
15297
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
15298
sed -n '
 
15299
s/.\{148\}/&'"$ac_delim"'/g
 
15300
t rset
 
15301
:rset
 
15302
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
15303
t def
 
15304
d
 
15305
:def
 
15306
s/\\$//
 
15307
t bsnl
 
15308
s/["\\]/\\&/g
 
15309
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15310
D["\1"]=" \3"/p
 
15311
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
15312
d
 
15313
:bsnl
 
15314
s/["\\]/\\&/g
 
15315
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15316
D["\1"]=" \3\\\\\\n"\\/p
 
15317
t cont
 
15318
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
15319
t cont
 
15320
d
 
15321
:cont
 
15322
n
 
15323
s/.\{148\}/&'"$ac_delim"'/g
 
15324
t clear
 
15325
:clear
 
15326
s/\\$//
 
15327
t bsnlc
 
15328
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
15329
d
 
15330
:bsnlc
 
15331
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
15332
b cont
 
15333
' <confdefs.h | sed '
 
15334
s/'"$ac_delim"'/"\\\
 
15335
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
15336
 
 
15337
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15338
  for (key in D) D_is_set[key] = 1
 
15339
  FS = ""
 
15340
}
 
15341
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
15342
  line = \$ 0
 
15343
  split(line, arg, " ")
 
15344
  if (arg[1] == "#") {
 
15345
    defundef = arg[2]
 
15346
    mac1 = arg[3]
 
15347
  } else {
 
15348
    defundef = substr(arg[1], 2)
 
15349
    mac1 = arg[2]
 
15350
  }
 
15351
  split(mac1, mac2, "(") #)
 
15352
  macro = mac2[1]
 
15353
  prefix = substr(line, 1, index(line, defundef) - 1)
 
15354
  if (D_is_set[macro]) {
 
15355
    # Preserve the white space surrounding the "#".
 
15356
    print prefix "define", macro P[macro] D[macro]
 
15357
    next
 
15358
  } else {
 
15359
    # Replace #undef with comments.  This is necessary, for example,
 
15360
    # in the case of _POSIX_SOURCE, which is predefined and required
 
15361
    # on some systems where configure will not decide to define it.
 
15362
    if (defundef == "undef") {
 
15363
      print "/*", prefix defundef, macro, "*/"
 
15364
      next
 
15365
    }
 
15366
  }
 
15367
}
 
15368
{ print }
 
15369
_ACAWK
 
15370
_ACEOF
 
15371
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15372
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
15373
fi # test -n "$CONFIG_HEADERS"
 
15374
 
 
15375
 
 
15376
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
15377
shift
 
15378
for ac_tag
 
15379
do
 
15380
  case $ac_tag in
 
15381
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
15382
  esac
 
15383
  case $ac_mode$ac_tag in
 
15384
  :[FHL]*:*);;
 
15385
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
15386
  :[FH]-) ac_tag=-:-;;
 
15387
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15388
  esac
 
15389
  ac_save_IFS=$IFS
 
15390
  IFS=:
 
15391
  set x $ac_tag
 
15392
  IFS=$ac_save_IFS
 
15393
  shift
 
15394
  ac_file=$1
 
15395
  shift
 
15396
 
 
15397
  case $ac_mode in
 
15398
  :L) ac_source=$1;;
 
15399
  :[FH])
 
15400
    ac_file_inputs=
 
15401
    for ac_f
 
15402
    do
 
15403
      case $ac_f in
 
15404
      -) ac_f="$ac_tmp/stdin";;
 
15405
      *) # Look for the file first in the build tree, then in the source tree
 
15406
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
15407
         # because $ac_f cannot contain `:'.
 
15408
         test -f "$ac_f" ||
 
15409
           case $ac_f in
 
15410
           [\\/$]*) false;;
 
15411
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
15412
           esac ||
 
15413
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
15414
      esac
 
15415
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15416
      as_fn_append ac_file_inputs " '$ac_f'"
 
15417
    done
 
15418
 
 
15419
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
15420
    # use $as_me), people would be surprised to read:
 
15421
    #    /* config.h.  Generated by config.status.  */
 
15422
    configure_input='Generated from '`
 
15423
          printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15424
        `' by configure.'
 
15425
    if test x"$ac_file" != x-; then
 
15426
      configure_input="$ac_file.  $configure_input"
 
15427
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15428
printf "%s\n" "$as_me: creating $ac_file" >&6;}
 
15429
    fi
 
15430
    # Neutralize special characters interpreted by sed in replacement strings.
 
15431
    case $configure_input in #(
 
15432
    *\&* | *\|* | *\\* )
 
15433
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
 
15434
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15435
    *) ac_sed_conf_input=$configure_input;;
 
15436
    esac
 
15437
 
 
15438
    case $ac_tag in
 
15439
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
15440
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
15441
    esac
 
15442
    ;;
 
15443
  esac
 
15444
 
 
15445
  ac_dir=`$as_dirname -- "$ac_file" ||
 
15446
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15447
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
15448
         X"$ac_file" : 'X\(//\)$' \| \
 
15449
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
15450
printf "%s\n" X"$ac_file" |
 
15451
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15452
            s//\1/
 
15453
            q
 
15454
          }
 
15455
          /^X\(\/\/\)[^/].*/{
 
15456
            s//\1/
 
15457
            q
 
15458
          }
 
15459
          /^X\(\/\/\)$/{
 
15460
            s//\1/
 
15461
            q
 
15462
          }
 
15463
          /^X\(\/\).*/{
 
15464
            s//\1/
 
15465
            q
 
15466
          }
 
15467
          s/.*/./; q'`
 
15468
  as_dir="$ac_dir"; as_fn_mkdir_p
 
15469
  ac_builddir=.
 
15470
 
 
15471
case "$ac_dir" in
 
15472
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15473
*)
 
15474
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
 
15475
  # A ".." for each directory in $ac_dir_suffix.
 
15476
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15477
  case $ac_top_builddir_sub in
 
15478
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15479
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15480
  esac ;;
 
15481
esac
 
15482
ac_abs_top_builddir=$ac_pwd
 
15483
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15484
# for backward compatibility:
 
15485
ac_top_builddir=$ac_top_build_prefix
 
15486
 
 
15487
case $srcdir in
 
15488
  .)  # We are building in place.
 
15489
    ac_srcdir=.
 
15490
    ac_top_srcdir=$ac_top_builddir_sub
 
15491
    ac_abs_top_srcdir=$ac_pwd ;;
 
15492
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15493
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15494
    ac_top_srcdir=$srcdir
 
15495
    ac_abs_top_srcdir=$srcdir ;;
 
15496
  *) # Relative name.
 
15497
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15498
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15499
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15500
esac
 
15501
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15502
 
 
15503
 
 
15504
  case $ac_mode in
 
15505
  :F)
 
15506
  #
 
15507
  # CONFIG_FILE
 
15508
  #
 
15509
 
 
15510
  case $INSTALL in
 
15511
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
15512
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
15513
  esac
 
15514
  ac_MKDIR_P=$MKDIR_P
 
15515
  case $MKDIR_P in
 
15516
  [\\/$]* | ?:[\\/]* ) ;;
 
15517
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
15518
  esac
 
15519
_ACEOF
 
15520
 
 
15521
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15522
# If the template does not know about datarootdir, expand it.
 
15523
# FIXME: This hack should be removed a few years after 2.60.
 
15524
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15525
ac_sed_dataroot='
 
15526
/datarootdir/ {
 
15527
  p
 
15528
  q
 
15529
}
 
15530
/@datadir@/p
 
15531
/@docdir@/p
 
15532
/@infodir@/p
 
15533
/@localedir@/p
 
15534
/@mandir@/p'
 
15535
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15536
*datarootdir*) ac_datarootdir_seen=yes;;
 
15537
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15538
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15539
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15540
_ACEOF
 
15541
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15542
  ac_datarootdir_hack='
 
15543
  s&@datadir@&$datadir&g
 
15544
  s&@docdir@&$docdir&g
 
15545
  s&@infodir@&$infodir&g
 
15546
  s&@localedir@&$localedir&g
 
15547
  s&@mandir@&$mandir&g
 
15548
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15549
esac
 
15550
_ACEOF
 
15551
 
 
15552
# Neutralize VPATH when `$srcdir' = `.'.
 
15553
# Shell code in configure.ac might set extrasub.
 
15554
# FIXME: do we really want to maintain this feature?
 
15555
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15556
ac_sed_extra="$ac_vpsub
 
15557
$extrasub
 
15558
_ACEOF
 
15559
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15560
:t
 
15561
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15562
s|@configure_input@|$ac_sed_conf_input|;t t
 
15563
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15564
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15565
s&@srcdir@&$ac_srcdir&;t t
 
15566
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15567
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15568
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15569
s&@builddir@&$ac_builddir&;t t
 
15570
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15571
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15572
s&@INSTALL@&$ac_INSTALL&;t t
 
15573
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15574
$ac_datarootdir_hack
 
15575
"
 
15576
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
15577
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15578
 
 
15579
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15580
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
15581
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
15582
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
15583
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15584
which seems to be undefined.  Please make sure it is defined" >&5
 
15585
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15586
which seems to be undefined.  Please make sure it is defined" >&2;}
 
15587
 
 
15588
  rm -f "$ac_tmp/stdin"
 
15589
  case $ac_file in
 
15590
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
15591
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
15592
  esac \
 
15593
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15594
 ;;
 
15595
  :H)
 
15596
  #
 
15597
  # CONFIG_HEADER
 
15598
  #
 
15599
  if test x"$ac_file" != x-; then
 
15600
    {
 
15601
      printf "%s\n" "/* $configure_input  */" >&1 \
 
15602
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
15603
    } >"$ac_tmp/config.h" \
 
15604
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15605
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
15606
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15607
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
 
15608
    else
 
15609
      rm -f "$ac_file"
 
15610
      mv "$ac_tmp/config.h" "$ac_file" \
 
15611
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15612
    fi
 
15613
  else
 
15614
    printf "%s\n" "/* $configure_input  */" >&1 \
 
15615
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
15616
      || as_fn_error $? "could not create -" "$LINENO" 5
 
15617
  fi
 
15618
# Compute "$ac_file"'s index in $config_headers.
 
15619
_am_arg="$ac_file"
 
15620
_am_stamp_count=1
 
15621
for _am_header in $config_headers :; do
 
15622
  case $_am_header in
 
15623
    $_am_arg | $_am_arg:* )
 
15624
      break ;;
 
15625
    * )
 
15626
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15627
  esac
 
15628
done
 
15629
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15630
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15631
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15632
         X"$_am_arg" : 'X\(//\)$' \| \
 
15633
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15634
printf "%s\n" X"$_am_arg" |
 
15635
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15636
            s//\1/
 
15637
            q
 
15638
          }
 
15639
          /^X\(\/\/\)[^/].*/{
 
15640
            s//\1/
 
15641
            q
 
15642
          }
 
15643
          /^X\(\/\/\)$/{
 
15644
            s//\1/
 
15645
            q
 
15646
          }
 
15647
          /^X\(\/\).*/{
 
15648
            s//\1/
 
15649
            q
 
15650
          }
 
15651
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15652
 ;;
 
15653
 
 
15654
  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15655
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
 
15656
 ;;
 
15657
  esac
 
15658
 
 
15659
 
 
15660
  case $ac_file$ac_mode in
 
15661
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15662
  # Older Autoconf quotes --file arguments for eval, but not when files
 
15663
  # are listed without --file.  Let's play safe and only enable the eval
 
15664
  # if we detect the quoting.
 
15665
  # TODO: see whether this extra hack can be removed once we start
 
15666
  # requiring Autoconf 2.70 or later.
 
15667
  case $CONFIG_FILES in #(
 
15668
  *\'*) :
 
15669
    eval set x "$CONFIG_FILES" ;; #(
 
15670
  *) :
 
15671
    set x $CONFIG_FILES ;; #(
 
15672
  *) :
 
15673
     ;;
 
15674
esac
 
15675
  shift
 
15676
  # Used to flag and report bootstrapping failures.
 
15677
  am_rc=0
 
15678
  for am_mf
 
15679
  do
 
15680
    # Strip MF so we end up with the name of the file.
 
15681
    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
 
15682
    # Check whether this is an Automake generated Makefile which includes
 
15683
    # dependency-tracking related rules and includes.
 
15684
    # Grep'ing the whole file directly is not great: AIX grep has a line
 
15685
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15686
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
 
15687
      || continue
 
15688
    am_dirpart=`$as_dirname -- "$am_mf" ||
 
15689
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15690
         X"$am_mf" : 'X\(//\)[^/]' \| \
 
15691
         X"$am_mf" : 'X\(//\)$' \| \
 
15692
         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15693
printf "%s\n" X"$am_mf" |
 
15694
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15695
            s//\1/
 
15696
            q
 
15697
          }
 
15698
          /^X\(\/\/\)[^/].*/{
 
15699
            s//\1/
 
15700
            q
 
15701
          }
 
15702
          /^X\(\/\/\)$/{
 
15703
            s//\1/
 
15704
            q
 
15705
          }
 
15706
          /^X\(\/\).*/{
 
15707
            s//\1/
 
15708
            q
 
15709
          }
 
15710
          s/.*/./; q'`
 
15711
    am_filepart=`$as_basename -- "$am_mf" ||
 
15712
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
 
15713
         X"$am_mf" : 'X\(//\)$' \| \
 
15714
         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15715
printf "%s\n" X/"$am_mf" |
 
15716
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
15717
            s//\1/
 
15718
            q
 
15719
          }
 
15720
          /^X\/\(\/\/\)$/{
 
15721
            s//\1/
 
15722
            q
 
15723
          }
 
15724
          /^X\/\(\/\).*/{
 
15725
            s//\1/
 
15726
            q
 
15727
          }
 
15728
          s/.*/./; q'`
 
15729
    { echo "$as_me:$LINENO: cd "$am_dirpart" \
 
15730
      && sed -e '/# am--include-marker/d' "$am_filepart" \
 
15731
        | $MAKE -f - am--depfiles" >&5
 
15732
   (cd "$am_dirpart" \
 
15733
      && sed -e '/# am--include-marker/d' "$am_filepart" \
 
15734
        | $MAKE -f - am--depfiles) >&5 2>&5
 
15735
   ac_status=$?
 
15736
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15737
   (exit $ac_status); } || am_rc=$?
 
15738
  done
 
15739
  if test $am_rc -ne 0; then
 
15740
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15741
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 
15742
as_fn_error $? "Something went wrong bootstrapping makefile fragments
 
15743
    for automatic dependency tracking.  If GNU make was not used, consider
 
15744
    re-running the configure script with MAKE=\"gmake\" (or whatever is
 
15745
    necessary).  You can also try re-running configure with the
 
15746
    '--disable-dependency-tracking' option to at least be able to build
 
15747
    the package (albeit without support for automatic dependency tracking).
 
15748
See \`config.log' for more details" "$LINENO" 5; }
 
15749
  fi
 
15750
  { am_dirpart=; unset am_dirpart;}
 
15751
  { am_filepart=; unset am_filepart;}
 
15752
  { am_mf=; unset am_mf;}
 
15753
  { am_rc=; unset am_rc;}
 
15754
  rm -f conftest-deps.mk
 
15755
}
 
15756
 ;;
 
15757
    "libtool":C)
 
15758
 
 
15759
    # See if we are running on zsh, and set the options that allow our
 
15760
    # commands through without removal of \ escapes.
 
15761
    if test -n "${ZSH_VERSION+set}"; then
 
15762
      setopt NO_GLOB_SUBST
 
15763
    fi
 
15764
 
 
15765
    cfgfile=${ofile}T
 
15766
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15767
    $RM "$cfgfile"
 
15768
 
 
15769
    cat <<_LT_EOF >> "$cfgfile"
 
15770
#! $SHELL
 
15771
# Generated automatically by $as_me ($PACKAGE) $VERSION
 
15772
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15773
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15774
 
 
15775
# Provide generalized library-building support services.
 
15776
# Written by Gordon Matzigkeit, 1996
 
15777
 
 
15778
# Copyright (C) 2014 Free Software Foundation, Inc.
 
15779
# This is free software; see the source for copying conditions.  There is NO
 
15780
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
15781
 
 
15782
# GNU Libtool is free software; you can redistribute it and/or modify
 
15783
# it under the terms of the GNU General Public License as published by
 
15784
# the Free Software Foundation; either version 2 of of the License, or
 
15785
# (at your option) any later version.
 
15786
#
 
15787
# As a special exception to the GNU General Public License, if you
 
15788
# distribute this file as part of a program or library that is built
 
15789
# using GNU Libtool, you may include this file under the  same
 
15790
# distribution terms that you use for the rest of that program.
 
15791
#
 
15792
# GNU Libtool is distributed in the hope that it will be useful, but
 
15793
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
15794
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15795
# GNU General Public License for more details.
 
15796
#
 
15797
# You should have received a copy of the GNU General Public License
 
15798
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15799
 
 
15800
 
 
15801
# The names of the tagged configurations supported by this script.
 
15802
available_tags=''
 
15803
 
 
15804
# Configured defaults for sys_lib_dlsearch_path munging.
 
15805
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
 
15806
 
 
15807
# ### BEGIN LIBTOOL CONFIG
 
15808
 
 
15809
# Which release of libtool.m4 was used?
 
15810
macro_version=$macro_version
 
15811
macro_revision=$macro_revision
 
15812
 
 
15813
# Whether or not to build shared libraries.
 
15814
build_libtool_libs=$enable_shared
 
15815
 
 
15816
# Whether or not to build static libraries.
 
15817
build_old_libs=$enable_static
 
15818
 
 
15819
# What type of objects to build.
 
15820
pic_mode=$pic_mode
 
15821
 
 
15822
# Whether or not to optimize for fast installation.
 
15823
fast_install=$enable_fast_install
 
15824
 
 
15825
# Shared archive member basename,for filename based shared library versioning on AIX.
 
15826
shared_archive_member_spec=$shared_archive_member_spec
 
15827
 
 
15828
# Shell to use when invoking shell scripts.
 
15829
SHELL=$lt_SHELL
 
15830
 
 
15831
# An echo program that protects backslashes.
 
15832
ECHO=$lt_ECHO
 
15833
 
 
15834
# The PATH separator for the build system.
 
15835
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
15836
 
 
15837
# The host system.
 
15838
host_alias=$host_alias
 
15839
host=$host
 
15840
host_os=$host_os
 
15841
 
 
15842
# The build system.
 
15843
build_alias=$build_alias
 
15844
build=$build
 
15845
build_os=$build_os
 
15846
 
 
15847
# A sed program that does not truncate output.
 
15848
SED=$lt_SED
 
15849
 
 
15850
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15851
Xsed="\$SED -e 1s/^X//"
 
15852
 
 
15853
# A grep program that handles long lines.
 
15854
GREP=$lt_GREP
 
15855
 
 
15856
# An ERE matcher.
 
15857
EGREP=$lt_EGREP
 
15858
 
 
15859
# A literal string matcher.
 
15860
FGREP=$lt_FGREP
 
15861
 
 
15862
# A BSD- or MS-compatible name lister.
 
15863
NM=$lt_NM
 
15864
 
 
15865
# Whether we need soft or hard links.
 
15866
LN_S=$lt_LN_S
 
15867
 
 
15868
# What is the maximum length of a command?
 
15869
max_cmd_len=$max_cmd_len
 
15870
 
 
15871
# Object file suffix (normally "o").
 
15872
objext=$ac_objext
 
15873
 
 
15874
# Executable file suffix (normally "").
 
15875
exeext=$exeext
 
15876
 
 
15877
# whether the shell understands "unset".
 
15878
lt_unset=$lt_unset
 
15879
 
 
15880
# turn spaces into newlines.
 
15881
SP2NL=$lt_lt_SP2NL
 
15882
 
 
15883
# turn newlines into spaces.
 
15884
NL2SP=$lt_lt_NL2SP
 
15885
 
 
15886
# convert \$build file names to \$host format.
 
15887
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
15888
 
 
15889
# convert \$build files to toolchain format.
 
15890
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
15891
 
 
15892
# A file(cmd) program that detects file types.
 
15893
FILECMD=$lt_FILECMD
 
15894
 
 
15895
# An object symbol dumper.
 
15896
OBJDUMP=$lt_OBJDUMP
 
15897
 
 
15898
# Method to check whether dependent libraries are shared objects.
 
15899
deplibs_check_method=$lt_deplibs_check_method
 
15900
 
 
15901
# Command to use when deplibs_check_method = "file_magic".
 
15902
file_magic_cmd=$lt_file_magic_cmd
 
15903
 
 
15904
# How to find potential files when deplibs_check_method = "file_magic".
 
15905
file_magic_glob=$lt_file_magic_glob
 
15906
 
 
15907
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
15908
want_nocaseglob=$lt_want_nocaseglob
 
15909
 
 
15910
# DLL creation program.
 
15911
DLLTOOL=$lt_DLLTOOL
 
15912
 
 
15913
# Command to associate shared and link libraries.
 
15914
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
15915
 
 
15916
# The archiver.
 
15917
AR=$lt_AR
 
15918
 
 
15919
# Flags to create an archive (by configure).
 
15920
lt_ar_flags=$lt_ar_flags
 
15921
 
 
15922
# Flags to create an archive.
 
15923
AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
 
15924
 
 
15925
# How to feed a file listing to the archiver.
 
15926
archiver_list_spec=$lt_archiver_list_spec
 
15927
 
 
15928
# A symbol stripping program.
 
15929
STRIP=$lt_STRIP
 
15930
 
 
15931
# Commands used to install an old-style archive.
 
15932
RANLIB=$lt_RANLIB
 
15933
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15934
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15935
 
 
15936
# Whether to use a lock for old archive extraction.
 
15937
lock_old_archive_extraction=$lock_old_archive_extraction
 
15938
 
 
15939
# A C compiler.
 
15940
LTCC=$lt_CC
 
15941
 
 
15942
# LTCC compiler flags.
 
15943
LTCFLAGS=$lt_CFLAGS
 
15944
 
 
15945
# Take the output of nm and produce a listing of raw symbols and C names.
 
15946
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15947
 
 
15948
# Transform the output of nm in a proper C declaration.
 
15949
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15950
 
 
15951
# Transform the output of nm into a list of symbols to manually relocate.
 
15952
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
 
15953
 
 
15954
# Transform the output of nm in a C name address pair.
 
15955
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15956
 
 
15957
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15958
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15959
 
 
15960
# The name lister interface.
 
15961
nm_interface=$lt_lt_cv_nm_interface
 
15962
 
 
15963
# Specify filename containing input files for \$NM.
 
15964
nm_file_list_spec=$lt_nm_file_list_spec
 
15965
 
 
15966
# The root where to search for dependent libraries,and where our libraries should be installed.
 
15967
lt_sysroot=$lt_sysroot
 
15968
 
 
15969
# Command to truncate a binary pipe.
 
15970
lt_truncate_bin=$lt_lt_cv_truncate_bin
 
15971
 
 
15972
# The name of the directory that contains temporary libtool files.
 
15973
objdir=$objdir
 
15974
 
 
15975
# Used to examine libraries when file_magic_cmd begins with "file".
 
15976
MAGIC_CMD=$MAGIC_CMD
 
15977
 
 
15978
# Must we lock files when doing compilation?
 
15979
need_locks=$lt_need_locks
 
15980
 
 
15981
# Manifest tool.
 
15982
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
15983
 
 
15984
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15985
DSYMUTIL=$lt_DSYMUTIL
 
15986
 
 
15987
# Tool to change global to local symbols on Mac OS X.
 
15988
NMEDIT=$lt_NMEDIT
 
15989
 
 
15990
# Tool to manipulate fat objects and archives on Mac OS X.
 
15991
LIPO=$lt_LIPO
 
15992
 
 
15993
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15994
OTOOL=$lt_OTOOL
 
15995
 
 
15996
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15997
OTOOL64=$lt_OTOOL64
 
15998
 
 
15999
# Old archive suffix (normally "a").
 
16000
libext=$libext
 
16001
 
 
16002
# Shared library suffix (normally ".so").
 
16003
shrext_cmds=$lt_shrext_cmds
 
16004
 
 
16005
# The commands to extract the exported symbol list from a shared archive.
 
16006
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16007
 
 
16008
# Variables whose values should be saved in libtool wrapper scripts and
 
16009
# restored at link time.
 
16010
variables_saved_for_relink=$lt_variables_saved_for_relink
 
16011
 
 
16012
# Do we need the "lib" prefix for modules?
 
16013
need_lib_prefix=$need_lib_prefix
 
16014
 
 
16015
# Do we need a version for libraries?
 
16016
need_version=$need_version
 
16017
 
 
16018
# Library versioning type.
 
16019
version_type=$version_type
 
16020
 
 
16021
# Shared library runtime path variable.
 
16022
runpath_var=$runpath_var
 
16023
 
 
16024
# Shared library path variable.
 
16025
shlibpath_var=$shlibpath_var
 
16026
 
 
16027
# Is shlibpath searched before the hard-coded library search path?
 
16028
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16029
 
 
16030
# Format of library name prefix.
 
16031
libname_spec=$lt_libname_spec
 
16032
 
 
16033
# List of archive names.  First name is the real one, the rest are links.
 
16034
# The last name is the one that the linker finds with -lNAME
 
16035
library_names_spec=$lt_library_names_spec
 
16036
 
 
16037
# The coded name of the library, if different from the real name.
 
16038
soname_spec=$lt_soname_spec
 
16039
 
 
16040
# Permission mode override for installation of shared libraries.
 
16041
install_override_mode=$lt_install_override_mode
 
16042
 
 
16043
# Command to use after installation of a shared archive.
 
16044
postinstall_cmds=$lt_postinstall_cmds
 
16045
 
 
16046
# Command to use after uninstallation of a shared archive.
 
16047
postuninstall_cmds=$lt_postuninstall_cmds
 
16048
 
 
16049
# Commands used to finish a libtool library installation in a directory.
 
16050
finish_cmds=$lt_finish_cmds
 
16051
 
 
16052
# As "finish_cmds", except a single script fragment to be evaled but
 
16053
# not shown.
 
16054
finish_eval=$lt_finish_eval
 
16055
 
 
16056
# Whether we should hardcode library paths into libraries.
 
16057
hardcode_into_libs=$hardcode_into_libs
 
16058
 
 
16059
# Compile-time system search path for libraries.
 
16060
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16061
 
 
16062
# Detected run-time system search path for libraries.
 
16063
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
 
16064
 
 
16065
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
 
16066
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
 
16067
 
 
16068
# Whether dlopen is supported.
 
16069
dlopen_support=$enable_dlopen
 
16070
 
 
16071
# Whether dlopen of programs is supported.
 
16072
dlopen_self=$enable_dlopen_self
 
16073
 
 
16074
# Whether dlopen of statically linked programs is supported.
 
16075
dlopen_self_static=$enable_dlopen_self_static
 
16076
 
 
16077
# Commands to strip libraries.
 
16078
old_striplib=$lt_old_striplib
 
16079
striplib=$lt_striplib
 
16080
 
 
16081
 
 
16082
# The linker used to build libraries.
 
16083
LD=$lt_LD
 
16084
 
 
16085
# How to create reloadable object files.
 
16086
reload_flag=$lt_reload_flag
 
16087
reload_cmds=$lt_reload_cmds
 
16088
 
 
16089
# Commands used to build an old-style archive.
 
16090
old_archive_cmds=$lt_old_archive_cmds
 
16091
 
 
16092
# A language specific compiler.
 
16093
CC=$lt_compiler
 
16094
 
 
16095
# Is the compiler the GNU compiler?
 
16096
with_gcc=$GCC
 
16097
 
 
16098
# Compiler flag to turn off builtin functions.
 
16099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
16100
 
 
16101
# Additional compiler flags for building library objects.
 
16102
pic_flag=$lt_lt_prog_compiler_pic
 
16103
 
 
16104
# How to pass a linker flag through the compiler.
 
16105
wl=$lt_lt_prog_compiler_wl
 
16106
 
 
16107
# Compiler flag to prevent dynamic linking.
 
16108
link_static_flag=$lt_lt_prog_compiler_static
 
16109
 
 
16110
# Does compiler simultaneously support -c and -o options?
 
16111
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
16112
 
 
16113
# Whether or not to add -lc for building shared libraries.
 
16114
build_libtool_need_lc=$archive_cmds_need_lc
 
16115
 
 
16116
# Whether or not to disallow shared libs when runtime libs are static.
 
16117
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
16118
 
 
16119
# Compiler flag to allow reflexive dlopens.
 
16120
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
16121
 
 
16122
# Compiler flag to generate shared objects directly from archives.
 
16123
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
16124
 
 
16125
# Whether the compiler copes with passing no objects directly.
 
16126
compiler_needs_object=$lt_compiler_needs_object
 
16127
 
 
16128
# Create an old-style archive from a shared archive.
 
16129
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
16130
 
 
16131
# Create a temporary old-style archive to link instead of a shared archive.
 
16132
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
16133
 
 
16134
# Commands used to build a shared archive.
 
16135
archive_cmds=$lt_archive_cmds
 
16136
archive_expsym_cmds=$lt_archive_expsym_cmds
 
16137
 
 
16138
# Commands used to build a loadable module if different from building
 
16139
# a shared archive.
 
16140
module_cmds=$lt_module_cmds
 
16141
module_expsym_cmds=$lt_module_expsym_cmds
 
16142
 
 
16143
# Whether we are building with GNU ld or not.
 
16144
with_gnu_ld=$lt_with_gnu_ld
 
16145
 
 
16146
# Flag that allows shared libraries with undefined symbols to be built.
 
16147
allow_undefined_flag=$lt_allow_undefined_flag
 
16148
 
 
16149
# Flag that enforces no undefined symbols.
 
16150
no_undefined_flag=$lt_no_undefined_flag
 
16151
 
 
16152
# Flag to hardcode \$libdir into a binary during linking.
 
16153
# This must work even if \$libdir does not exist
 
16154
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
16155
 
 
16156
# Whether we need a single "-rpath" flag with a separated argument.
 
16157
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
16158
 
 
16159
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
16160
# DIR into the resulting binary.
 
16161
hardcode_direct=$hardcode_direct
 
16162
 
 
16163
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
16164
# DIR into the resulting binary and the resulting library dependency is
 
16165
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
 
16166
# library is relocated.
 
16167
hardcode_direct_absolute=$hardcode_direct_absolute
 
16168
 
 
16169
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16170
# into the resulting binary.
 
16171
hardcode_minus_L=$hardcode_minus_L
 
16172
 
 
16173
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16174
# into the resulting binary.
 
16175
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
16176
 
 
16177
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16178
# into the library and all subsequent libraries and executables linked
 
16179
# against it.
 
16180
hardcode_automatic=$hardcode_automatic
 
16181
 
 
16182
# Set to yes if linker adds runtime paths of dependent libraries
 
16183
# to runtime path list.
 
16184
inherit_rpath=$inherit_rpath
 
16185
 
 
16186
# Whether libtool must link a program against all its dependency libraries.
 
16187
link_all_deplibs=$link_all_deplibs
 
16188
 
 
16189
# Set to "yes" if exported symbols are required.
 
16190
always_export_symbols=$always_export_symbols
 
16191
 
 
16192
# The commands to list exported symbols.
 
16193
export_symbols_cmds=$lt_export_symbols_cmds
 
16194
 
 
16195
# Symbols that should not be listed in the preloaded symbols.
 
16196
exclude_expsyms=$lt_exclude_expsyms
 
16197
 
 
16198
# Symbols that must always be exported.
 
16199
include_expsyms=$lt_include_expsyms
 
16200
 
 
16201
# Commands necessary for linking programs (against libraries) with templates.
 
16202
prelink_cmds=$lt_prelink_cmds
 
16203
 
 
16204
# Commands necessary for finishing linking programs.
 
16205
postlink_cmds=$lt_postlink_cmds
 
16206
 
 
16207
# Specify filename containing input files.
 
16208
file_list_spec=$lt_file_list_spec
 
16209
 
 
16210
# How to hardcode a shared library path into an executable.
 
16211
hardcode_action=$hardcode_action
 
16212
 
 
16213
# ### END LIBTOOL CONFIG
 
16214
 
 
16215
_LT_EOF
 
16216
 
 
16217
    cat <<'_LT_EOF' >> "$cfgfile"
 
16218
 
 
16219
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
 
16220
 
 
16221
# func_munge_path_list VARIABLE PATH
 
16222
# -----------------------------------
 
16223
# VARIABLE is name of variable containing _space_ separated list of
 
16224
# directories to be munged by the contents of PATH, which is string
 
16225
# having a format:
 
16226
# "DIR[:DIR]:"
 
16227
#       string "DIR[ DIR]" will be prepended to VARIABLE
 
16228
# ":DIR[:DIR]"
 
16229
#       string "DIR[ DIR]" will be appended to VARIABLE
 
16230
# "DIRP[:DIRP]::[DIRA:]DIRA"
 
16231
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 
16232
#       "DIRA[ DIRA]" will be appended to VARIABLE
 
16233
# "DIR[:DIR]"
 
16234
#       VARIABLE will be replaced by "DIR[ DIR]"
 
16235
func_munge_path_list ()
 
16236
{
 
16237
    case x$2 in
 
16238
    x)
 
16239
        ;;
 
16240
    *:)
 
16241
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 
16242
        ;;
 
16243
    x:*)
 
16244
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 
16245
        ;;
 
16246
    *::*)
 
16247
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 
16248
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 
16249
        ;;
 
16250
    *)
 
16251
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 
16252
        ;;
 
16253
    esac
 
16254
}
 
16255
 
 
16256
 
 
16257
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
16258
func_cc_basename ()
 
16259
{
 
16260
    for cc_temp in $*""; do
 
16261
      case $cc_temp in
 
16262
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16263
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16264
        \-*) ;;
 
16265
        *) break;;
 
16266
      esac
 
16267
    done
 
16268
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
16269
}
 
16270
 
 
16271
 
 
16272
# ### END FUNCTIONS SHARED WITH CONFIGURE
 
16273
 
 
16274
_LT_EOF
 
16275
 
 
16276
  case $host_os in
 
16277
  aix3*)
 
16278
    cat <<\_LT_EOF >> "$cfgfile"
 
16279
# AIX sometimes has problems with the GCC collect2 program.  For some
 
16280
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
16281
# vanish in a puff of smoke.
 
16282
if test set != "${COLLECT_NAMES+set}"; then
 
16283
  COLLECT_NAMES=
 
16284
  export COLLECT_NAMES
 
16285
fi
 
16286
_LT_EOF
 
16287
    ;;
 
16288
  esac
 
16289
 
 
16290
 
 
16291
 
 
16292
ltmain=$ac_aux_dir/ltmain.sh
 
16293
 
 
16294
 
 
16295
  # We use sed instead of cat because bash on DJGPP gets confused if
 
16296
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
16297
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
16298
  # is reportedly fixed, but why not run on old versions too?
 
16299
  $SED '$q' "$ltmain" >> "$cfgfile" \
 
16300
     || (rm -f "$cfgfile"; exit 1)
 
16301
 
 
16302
   mv -f "$cfgfile" "$ofile" ||
 
16303
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
16304
  chmod +x "$ofile"
 
16305
 
 
16306
 ;;
 
16307
 
 
16308
  esac
 
16309
done # for ac_tag
 
16310
 
 
16311
 
 
16312
as_fn_exit 0
 
16313
_ACEOF
 
16314
ac_clean_files=$ac_clean_files_save
 
16315
 
 
16316
test $ac_write_fail = 0 ||
 
16317
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16318
 
 
16319
 
 
16320
# configure is writing to config.log, and then calls config.status.
 
16321
# config.status does its own redirection, appending to config.log.
 
16322
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16323
# by configure, so config.status won't be able to write to it; its
 
16324
# output is simply discarded.  So we exec the FD to /dev/null,
 
16325
# effectively closing config.log, so it can be properly (re)opened and
 
16326
# appended to by config.status.  When coming back to configure, we
 
16327
# need to make the FD available again.
 
16328
if test "$no_create" != yes; then
 
16329
  ac_cs_success=:
 
16330
  ac_config_status_args=
 
16331
  test "$silent" = yes &&
 
16332
    ac_config_status_args="$ac_config_status_args --quiet"
 
16333
  exec 5>/dev/null
 
16334
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16335
  exec 5>>config.log
 
16336
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
16337
  # would make configure fail if this is the last instruction.
 
16338
  $ac_cs_success || as_fn_exit 1
 
16339
fi
 
16340
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
16341
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
16342
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
16343
fi
 
16344
 
 
16345