~ubuntu-branches/ubuntu/trusty/libquvi/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Alejandro Garrido Mota
  • Date: 2010-05-16 12:12:51 UTC
  • Revision ID: james.westby@ubuntu.com-20100516121251-oku70h33ycn8m6xe
Tags: upstream-0.2.0
ImportĀ upstreamĀ versionĀ 0.2.0

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.65 for quvi 0.2.0.
 
4
#
 
5
# Report bugs to <legatvs@gmail.com>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and legatvs@gmail.com
 
234
$0: about your system, including any error possibly output
 
235
$0: before this message. Then install a modern shell, or
 
236
$0: manually run the script under such a shell if you do
 
237
$0: have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
 
 
533
# Check that we are running under the correct shell.
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
 
535
 
 
536
case X$lt_ECHO in
 
537
X*--fallback-echo)
 
538
  # Remove one level of quotation (which was required for Make).
 
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
540
  ;;
 
541
esac
 
542
 
 
543
ECHO=${lt_ECHO-echo}
 
544
if test "X$1" = X--no-reexec; then
 
545
  # Discard the --no-reexec flag, and continue.
 
546
  shift
 
547
elif test "X$1" = X--fallback-echo; then
 
548
  # Avoid inline document here, it may be left over
 
549
  :
 
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
551
  # Yippee, $ECHO works!
 
552
  :
 
553
else
 
554
  # Restart under the correct shell.
 
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
556
fi
 
557
 
 
558
if test "X$1" = X--fallback-echo; then
 
559
  # used as fallback echo
 
560
  shift
 
561
  cat <<_LT_EOF
 
562
$*
 
563
_LT_EOF
 
564
  exit 0
 
565
fi
 
566
 
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
568
# if CDPATH is set.
 
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
570
 
 
571
if test -z "$lt_ECHO"; then
 
572
  if test "X${echo_test_string+set}" != Xset; then
 
573
    # find a string as large as possible, as long as the shell can cope with it
 
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
578
      then
 
579
        break
 
580
      fi
 
581
    done
 
582
  fi
 
583
 
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
587
    :
 
588
  else
 
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
590
    # backslashes.  This makes it impossible to quote backslashes using
 
591
    #   echo "$something" | sed 's/\\/\\\\/g'
 
592
    #
 
593
    # So, first we look for a working echo in the user's PATH.
 
594
 
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
596
    for dir in $PATH /usr/ucb; do
 
597
      IFS="$lt_save_ifs"
 
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
602
        ECHO="$dir/echo"
 
603
        break
 
604
      fi
 
605
    done
 
606
    IFS="$lt_save_ifs"
 
607
 
 
608
    if test "X$ECHO" = Xecho; then
 
609
      # We didn't find a better echo, so look for alternatives.
 
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
613
        # This shell has a builtin print -r that does the trick.
 
614
        ECHO='print -r'
 
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
617
        # If we have ksh, try running configure again with it.
 
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
619
        export ORIGINAL_CONFIG_SHELL
 
620
        CONFIG_SHELL=/bin/ksh
 
621
        export CONFIG_SHELL
 
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
623
      else
 
624
        # Try using printf.
 
625
        ECHO='printf %s\n'
 
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
          # Cool, printf works
 
630
          :
 
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = 'X\t' &&
 
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
636
          export CONFIG_SHELL
 
637
          SHELL="$CONFIG_SHELL"
 
638
          export SHELL
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = 'X\t' &&
 
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
645
        else
 
646
          # maybe with a smaller string...
 
647
          prev=:
 
648
 
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
651
            then
 
652
              break
 
653
            fi
 
654
            prev="$cmd"
 
655
          done
 
656
 
 
657
          if test "$prev" != 'sed 50q "$0"'; then
 
658
            echo_test_string=`eval $prev`
 
659
            export echo_test_string
 
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
661
          else
 
662
            # Oops.  We lost completely, so just stick with echo.
 
663
            ECHO=echo
 
664
          fi
 
665
        fi
 
666
      fi
 
667
    fi
 
668
  fi
 
669
fi
 
670
 
 
671
# Copy echo and quote the copy suitably for passing to libtool from
 
672
# the Makefile, instead of quoting the original, which is used later.
 
673
lt_ECHO=$ECHO
 
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
676
fi
 
677
 
 
678
 
 
679
 
 
680
 
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
 
683
 
 
684
# Name of the host.
 
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
686
# so uname gets run too.
 
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
688
 
 
689
#
 
690
# Initializations.
 
691
#
 
692
ac_default_prefix=/usr/local
 
693
ac_clean_files=
 
694
ac_config_libobj_dir=.
 
695
LIBOBJS=
 
696
cross_compiling=no
 
697
subdirs=
 
698
MFLAGS=
 
699
MAKEFLAGS=
 
700
 
 
701
# Identity of this package.
 
702
PACKAGE_NAME='quvi'
 
703
PACKAGE_TARNAME='quvi'
 
704
PACKAGE_VERSION='0.2.0'
 
705
PACKAGE_STRING='quvi 0.2.0'
 
706
PACKAGE_BUGREPORT='legatvs@gmail.com'
 
707
PACKAGE_URL=''
 
708
 
 
709
ac_unique_file="lib/quvi.c"
 
710
# Factoring default headers for most tests.
 
711
ac_includes_default="\
 
712
#include <stdio.h>
 
713
#ifdef HAVE_SYS_TYPES_H
 
714
# include <sys/types.h>
 
715
#endif
 
716
#ifdef HAVE_SYS_STAT_H
 
717
# include <sys/stat.h>
 
718
#endif
 
719
#ifdef STDC_HEADERS
 
720
# include <stdlib.h>
 
721
# include <stddef.h>
 
722
#else
 
723
# ifdef HAVE_STDLIB_H
 
724
#  include <stdlib.h>
 
725
# endif
 
726
#endif
 
727
#ifdef HAVE_STRING_H
 
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
729
#  include <memory.h>
 
730
# endif
 
731
# include <string.h>
 
732
#endif
 
733
#ifdef HAVE_STRINGS_H
 
734
# include <strings.h>
 
735
#endif
 
736
#ifdef HAVE_INTTYPES_H
 
737
# include <inttypes.h>
 
738
#endif
 
739
#ifdef HAVE_STDINT_H
 
740
# include <stdint.h>
 
741
#endif
 
742
#ifdef HAVE_UNISTD_H
 
743
# include <unistd.h>
 
744
#endif"
 
745
 
 
746
ac_subst_vars='am__EXEEXT_FALSE
 
747
am__EXEEXT_TRUE
 
748
LTLIBOBJS
 
749
HAVE_GNU_LD_FALSE
 
750
HAVE_GNU_LD_TRUE
 
751
WITH_DOC_FALSE
 
752
WITH_DOC_TRUE
 
753
WITH_MAN_FALSE
 
754
WITH_MAN_TRUE
 
755
ENABLE_BROKEN_FALSE
 
756
ENABLE_BROKEN_TRUE
 
757
ENABLE_SMUT_FALSE
 
758
ENABLE_SMUT_TRUE
 
759
ENABLE_EXAMPLES_FALSE
 
760
ENABLE_EXAMPLES_TRUE
 
761
ENABLE_QUVI_FALSE
 
762
ENABLE_QUVI_TRUE
 
763
NO_STRTOK_R_FALSE
 
764
NO_STRTOK_R_TRUE
 
765
NO_STRUPR_FALSE
 
766
NO_STRUPR_TRUE
 
767
NO_ASPRINTF_FALSE
 
768
NO_ASPRINTF_TRUE
 
769
POW_LIB
 
770
LIBOBJS
 
771
AM_BACKSLASH
 
772
AM_DEFAULT_VERBOSITY
 
773
liblua_LIBS
 
774
liblua_CFLAGS
 
775
libpcre_LIBS
 
776
libpcre_CFLAGS
 
777
libcurl_LIBS
 
778
libcurl_CFLAGS
 
779
PKG_CONFIG
 
780
LTLIBICONV
 
781
LIBICONV
 
782
DATE
 
783
HAVE_POD2HTML_FALSE
 
784
HAVE_POD2HTML_TRUE
 
785
POD2HTML
 
786
HAVE_POD2MAN_FALSE
 
787
HAVE_POD2MAN_TRUE
 
788
POD2MAN
 
789
HAVE_PERL_POD_CHECKER_FALSE
 
790
HAVE_PERL_POD_CHECKER_TRUE
 
791
HAVE_PERL_FALSE
 
792
HAVE_PERL_TRUE
 
793
PERL
 
794
HAVE_DOXYGEN_FALSE
 
795
HAVE_DOXYGEN_TRUE
 
796
DOXYGEN
 
797
HAVE_GENGETOPT_FALSE
 
798
HAVE_GENGETOPT_TRUE
 
799
GENGETOPT
 
800
CXXCPP
 
801
am__fastdepCXX_FALSE
 
802
am__fastdepCXX_TRUE
 
803
CXXDEPMODE
 
804
ac_ct_CXX
 
805
CXXFLAGS
 
806
CXX
 
807
EXTRA_LIBQUVI_LDFLAGS
 
808
OTOOL64
 
809
OTOOL
 
810
LIPO
 
811
NMEDIT
 
812
DSYMUTIL
 
813
lt_ECHO
 
814
RANLIB
 
815
AR
 
816
OBJDUMP
 
817
LN_S
 
818
NM
 
819
ac_ct_DUMPBIN
 
820
DUMPBIN
 
821
LD
 
822
FGREP
 
823
SED
 
824
LIBTOOL
 
825
am__fastdepCC_FALSE
 
826
am__fastdepCC_TRUE
 
827
CCDEPMODE
 
828
AMDEPBACKSLASH
 
829
AMDEP_FALSE
 
830
AMDEP_TRUE
 
831
am__quote
 
832
am__include
 
833
DEPDIR
 
834
am__untar
 
835
am__tar
 
836
AMTAR
 
837
am__leading_dot
 
838
SET_MAKE
 
839
AWK
 
840
mkdir_p
 
841
MKDIR_P
 
842
INSTALL_STRIP_PROGRAM
 
843
STRIP
 
844
install_sh
 
845
MAKEINFO
 
846
AUTOHEADER
 
847
AUTOMAKE
 
848
AUTOCONF
 
849
ACLOCAL
 
850
VERSION
 
851
PACKAGE
 
852
CYGPATH_W
 
853
am__isrc
 
854
INSTALL_DATA
 
855
INSTALL_SCRIPT
 
856
INSTALL_PROGRAM
 
857
EGREP
 
858
GREP
 
859
CPP
 
860
OBJEXT
 
861
EXEEXT
 
862
ac_ct_CC
 
863
CPPFLAGS
 
864
LDFLAGS
 
865
CFLAGS
 
866
CC
 
867
target_os
 
868
target_vendor
 
869
target_cpu
 
870
target
 
871
host_os
 
872
host_vendor
 
873
host_cpu
 
874
host
 
875
build_os
 
876
build_vendor
 
877
build_cpu
 
878
build
 
879
QUVI_AGE
 
880
QUVI_REVISION
 
881
QUVI_CURRENT
 
882
target_alias
 
883
host_alias
 
884
build_alias
 
885
LIBS
 
886
ECHO_T
 
887
ECHO_N
 
888
ECHO_C
 
889
DEFS
 
890
mandir
 
891
localedir
 
892
libdir
 
893
psdir
 
894
pdfdir
 
895
dvidir
 
896
htmldir
 
897
infodir
 
898
docdir
 
899
oldincludedir
 
900
includedir
 
901
localstatedir
 
902
sharedstatedir
 
903
sysconfdir
 
904
datadir
 
905
datarootdir
 
906
libexecdir
 
907
sbindir
 
908
bindir
 
909
program_transform_name
 
910
prefix
 
911
exec_prefix
 
912
PACKAGE_URL
 
913
PACKAGE_BUGREPORT
 
914
PACKAGE_STRING
 
915
PACKAGE_VERSION
 
916
PACKAGE_TARNAME
 
917
PACKAGE_NAME
 
918
PATH_SEPARATOR
 
919
SHELL'
 
920
ac_subst_files=''
 
921
ac_user_opts='
 
922
enable_option_checking
 
923
enable_dependency_tracking
 
924
enable_shared
 
925
enable_static
 
926
with_pic
 
927
enable_fast_install
 
928
with_gnu_ld
 
929
enable_libtool_lock
 
930
enable_rpath
 
931
with_libiconv_prefix
 
932
enable_silent_rules
 
933
enable_quvi
 
934
enable_examples
 
935
enable_smut
 
936
enable_broken
 
937
with_man
 
938
with_doc
 
939
'
 
940
      ac_precious_vars='build_alias
 
941
host_alias
 
942
target_alias
 
943
CC
 
944
CFLAGS
 
945
LDFLAGS
 
946
LIBS
 
947
CPPFLAGS
 
948
CPP
 
949
CXX
 
950
CXXFLAGS
 
951
CCC
 
952
CXXCPP
 
953
PKG_CONFIG
 
954
libcurl_CFLAGS
 
955
libcurl_LIBS
 
956
libpcre_CFLAGS
 
957
libpcre_LIBS
 
958
liblua_CFLAGS
 
959
liblua_LIBS'
 
960
 
 
961
 
 
962
# Initialize some variables set by options.
 
963
ac_init_help=
 
964
ac_init_version=false
 
965
ac_unrecognized_opts=
 
966
ac_unrecognized_sep=
 
967
# The variables have the same names as the options, with
 
968
# dashes changed to underlines.
 
969
cache_file=/dev/null
 
970
exec_prefix=NONE
 
971
no_create=
 
972
no_recursion=
 
973
prefix=NONE
 
974
program_prefix=NONE
 
975
program_suffix=NONE
 
976
program_transform_name=s,x,x,
 
977
silent=
 
978
site=
 
979
srcdir=
 
980
verbose=
 
981
x_includes=NONE
 
982
x_libraries=NONE
 
983
 
 
984
# Installation directory options.
 
985
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
986
# and all the variables that are supposed to be based on exec_prefix
 
987
# by default will actually change.
 
988
# Use braces instead of parens because sh, perl, etc. also accept them.
 
989
# (The list follows the same order as the GNU Coding Standards.)
 
990
bindir='${exec_prefix}/bin'
 
991
sbindir='${exec_prefix}/sbin'
 
992
libexecdir='${exec_prefix}/libexec'
 
993
datarootdir='${prefix}/share'
 
994
datadir='${datarootdir}'
 
995
sysconfdir='${prefix}/etc'
 
996
sharedstatedir='${prefix}/com'
 
997
localstatedir='${prefix}/var'
 
998
includedir='${prefix}/include'
 
999
oldincludedir='/usr/include'
 
1000
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1001
infodir='${datarootdir}/info'
 
1002
htmldir='${docdir}'
 
1003
dvidir='${docdir}'
 
1004
pdfdir='${docdir}'
 
1005
psdir='${docdir}'
 
1006
libdir='${exec_prefix}/lib'
 
1007
localedir='${datarootdir}/locale'
 
1008
mandir='${datarootdir}/man'
 
1009
 
 
1010
ac_prev=
 
1011
ac_dashdash=
 
1012
for ac_option
 
1013
do
 
1014
  # If the previous option needs an argument, assign it.
 
1015
  if test -n "$ac_prev"; then
 
1016
    eval $ac_prev=\$ac_option
 
1017
    ac_prev=
 
1018
    continue
 
1019
  fi
 
1020
 
 
1021
  case $ac_option in
 
1022
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1023
  *)    ac_optarg=yes ;;
 
1024
  esac
 
1025
 
 
1026
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1027
 
 
1028
  case $ac_dashdash$ac_option in
 
1029
  --)
 
1030
    ac_dashdash=yes ;;
 
1031
 
 
1032
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1033
    ac_prev=bindir ;;
 
1034
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1035
    bindir=$ac_optarg ;;
 
1036
 
 
1037
  -build | --build | --buil | --bui | --bu)
 
1038
    ac_prev=build_alias ;;
 
1039
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1040
    build_alias=$ac_optarg ;;
 
1041
 
 
1042
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1043
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1044
    ac_prev=cache_file ;;
 
1045
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1046
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1047
    cache_file=$ac_optarg ;;
 
1048
 
 
1049
  --config-cache | -C)
 
1050
    cache_file=config.cache ;;
 
1051
 
 
1052
  -datadir | --datadir | --datadi | --datad)
 
1053
    ac_prev=datadir ;;
 
1054
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1055
    datadir=$ac_optarg ;;
 
1056
 
 
1057
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1058
  | --dataroo | --dataro | --datar)
 
1059
    ac_prev=datarootdir ;;
 
1060
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1061
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1062
    datarootdir=$ac_optarg ;;
 
1063
 
 
1064
  -disable-* | --disable-*)
 
1065
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1066
    # Reject names that are not valid shell variable names.
 
1067
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1068
      as_fn_error "invalid feature name: $ac_useropt"
 
1069
    ac_useropt_orig=$ac_useropt
 
1070
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1071
    case $ac_user_opts in
 
1072
      *"
 
1073
"enable_$ac_useropt"
 
1074
"*) ;;
 
1075
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1076
         ac_unrecognized_sep=', ';;
 
1077
    esac
 
1078
    eval enable_$ac_useropt=no ;;
 
1079
 
 
1080
  -docdir | --docdir | --docdi | --doc | --do)
 
1081
    ac_prev=docdir ;;
 
1082
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1083
    docdir=$ac_optarg ;;
 
1084
 
 
1085
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1086
    ac_prev=dvidir ;;
 
1087
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1088
    dvidir=$ac_optarg ;;
 
1089
 
 
1090
  -enable-* | --enable-*)
 
1091
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1092
    # Reject names that are not valid shell variable names.
 
1093
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1094
      as_fn_error "invalid feature name: $ac_useropt"
 
1095
    ac_useropt_orig=$ac_useropt
 
1096
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1097
    case $ac_user_opts in
 
1098
      *"
 
1099
"enable_$ac_useropt"
 
1100
"*) ;;
 
1101
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1102
         ac_unrecognized_sep=', ';;
 
1103
    esac
 
1104
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1105
 
 
1106
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1107
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1108
  | --exec | --exe | --ex)
 
1109
    ac_prev=exec_prefix ;;
 
1110
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1111
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1112
  | --exec=* | --exe=* | --ex=*)
 
1113
    exec_prefix=$ac_optarg ;;
 
1114
 
 
1115
  -gas | --gas | --ga | --g)
 
1116
    # Obsolete; use --with-gas.
 
1117
    with_gas=yes ;;
 
1118
 
 
1119
  -help | --help | --hel | --he | -h)
 
1120
    ac_init_help=long ;;
 
1121
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1122
    ac_init_help=recursive ;;
 
1123
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1124
    ac_init_help=short ;;
 
1125
 
 
1126
  -host | --host | --hos | --ho)
 
1127
    ac_prev=host_alias ;;
 
1128
  -host=* | --host=* | --hos=* | --ho=*)
 
1129
    host_alias=$ac_optarg ;;
 
1130
 
 
1131
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1132
    ac_prev=htmldir ;;
 
1133
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1134
  | --ht=*)
 
1135
    htmldir=$ac_optarg ;;
 
1136
 
 
1137
  -includedir | --includedir | --includedi | --included | --include \
 
1138
  | --includ | --inclu | --incl | --inc)
 
1139
    ac_prev=includedir ;;
 
1140
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1141
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1142
    includedir=$ac_optarg ;;
 
1143
 
 
1144
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1145
    ac_prev=infodir ;;
 
1146
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1147
    infodir=$ac_optarg ;;
 
1148
 
 
1149
  -libdir | --libdir | --libdi | --libd)
 
1150
    ac_prev=libdir ;;
 
1151
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1152
    libdir=$ac_optarg ;;
 
1153
 
 
1154
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1155
  | --libexe | --libex | --libe)
 
1156
    ac_prev=libexecdir ;;
 
1157
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1158
  | --libexe=* | --libex=* | --libe=*)
 
1159
    libexecdir=$ac_optarg ;;
 
1160
 
 
1161
  -localedir | --localedir | --localedi | --localed | --locale)
 
1162
    ac_prev=localedir ;;
 
1163
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1164
    localedir=$ac_optarg ;;
 
1165
 
 
1166
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1167
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1168
    ac_prev=localstatedir ;;
 
1169
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1170
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1171
    localstatedir=$ac_optarg ;;
 
1172
 
 
1173
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1174
    ac_prev=mandir ;;
 
1175
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1176
    mandir=$ac_optarg ;;
 
1177
 
 
1178
  -nfp | --nfp | --nf)
 
1179
    # Obsolete; use --without-fp.
 
1180
    with_fp=no ;;
 
1181
 
 
1182
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1183
  | --no-cr | --no-c | -n)
 
1184
    no_create=yes ;;
 
1185
 
 
1186
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1187
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1188
    no_recursion=yes ;;
 
1189
 
 
1190
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1191
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1192
  | --oldin | --oldi | --old | --ol | --o)
 
1193
    ac_prev=oldincludedir ;;
 
1194
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1195
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1196
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1197
    oldincludedir=$ac_optarg ;;
 
1198
 
 
1199
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1200
    ac_prev=prefix ;;
 
1201
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1202
    prefix=$ac_optarg ;;
 
1203
 
 
1204
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1205
  | --program-pre | --program-pr | --program-p)
 
1206
    ac_prev=program_prefix ;;
 
1207
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1208
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1209
    program_prefix=$ac_optarg ;;
 
1210
 
 
1211
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1212
  | --program-suf | --program-su | --program-s)
 
1213
    ac_prev=program_suffix ;;
 
1214
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1215
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1216
    program_suffix=$ac_optarg ;;
 
1217
 
 
1218
  -program-transform-name | --program-transform-name \
 
1219
  | --program-transform-nam | --program-transform-na \
 
1220
  | --program-transform-n | --program-transform- \
 
1221
  | --program-transform | --program-transfor \
 
1222
  | --program-transfo | --program-transf \
 
1223
  | --program-trans | --program-tran \
 
1224
  | --progr-tra | --program-tr | --program-t)
 
1225
    ac_prev=program_transform_name ;;
 
1226
  -program-transform-name=* | --program-transform-name=* \
 
1227
  | --program-transform-nam=* | --program-transform-na=* \
 
1228
  | --program-transform-n=* | --program-transform-=* \
 
1229
  | --program-transform=* | --program-transfor=* \
 
1230
  | --program-transfo=* | --program-transf=* \
 
1231
  | --program-trans=* | --program-tran=* \
 
1232
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1233
    program_transform_name=$ac_optarg ;;
 
1234
 
 
1235
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1236
    ac_prev=pdfdir ;;
 
1237
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1238
    pdfdir=$ac_optarg ;;
 
1239
 
 
1240
  -psdir | --psdir | --psdi | --psd | --ps)
 
1241
    ac_prev=psdir ;;
 
1242
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1243
    psdir=$ac_optarg ;;
 
1244
 
 
1245
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1246
  | -silent | --silent | --silen | --sile | --sil)
 
1247
    silent=yes ;;
 
1248
 
 
1249
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1250
    ac_prev=sbindir ;;
 
1251
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1252
  | --sbi=* | --sb=*)
 
1253
    sbindir=$ac_optarg ;;
 
1254
 
 
1255
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1256
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1257
  | --sharedst | --shareds | --shared | --share | --shar \
 
1258
  | --sha | --sh)
 
1259
    ac_prev=sharedstatedir ;;
 
1260
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1261
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1262
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1263
  | --sha=* | --sh=*)
 
1264
    sharedstatedir=$ac_optarg ;;
 
1265
 
 
1266
  -site | --site | --sit)
 
1267
    ac_prev=site ;;
 
1268
  -site=* | --site=* | --sit=*)
 
1269
    site=$ac_optarg ;;
 
1270
 
 
1271
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1272
    ac_prev=srcdir ;;
 
1273
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1274
    srcdir=$ac_optarg ;;
 
1275
 
 
1276
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1277
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1278
    ac_prev=sysconfdir ;;
 
1279
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1280
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1281
    sysconfdir=$ac_optarg ;;
 
1282
 
 
1283
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1284
    ac_prev=target_alias ;;
 
1285
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1286
    target_alias=$ac_optarg ;;
 
1287
 
 
1288
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1289
    verbose=yes ;;
 
1290
 
 
1291
  -version | --version | --versio | --versi | --vers | -V)
 
1292
    ac_init_version=: ;;
 
1293
 
 
1294
  -with-* | --with-*)
 
1295
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1296
    # Reject names that are not valid shell variable names.
 
1297
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1298
      as_fn_error "invalid package name: $ac_useropt"
 
1299
    ac_useropt_orig=$ac_useropt
 
1300
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1301
    case $ac_user_opts in
 
1302
      *"
 
1303
"with_$ac_useropt"
 
1304
"*) ;;
 
1305
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1306
         ac_unrecognized_sep=', ';;
 
1307
    esac
 
1308
    eval with_$ac_useropt=\$ac_optarg ;;
 
1309
 
 
1310
  -without-* | --without-*)
 
1311
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1312
    # Reject names that are not valid shell variable names.
 
1313
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1314
      as_fn_error "invalid package name: $ac_useropt"
 
1315
    ac_useropt_orig=$ac_useropt
 
1316
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1317
    case $ac_user_opts in
 
1318
      *"
 
1319
"with_$ac_useropt"
 
1320
"*) ;;
 
1321
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1322
         ac_unrecognized_sep=', ';;
 
1323
    esac
 
1324
    eval with_$ac_useropt=no ;;
 
1325
 
 
1326
  --x)
 
1327
    # Obsolete; use --with-x.
 
1328
    with_x=yes ;;
 
1329
 
 
1330
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1331
  | --x-incl | --x-inc | --x-in | --x-i)
 
1332
    ac_prev=x_includes ;;
 
1333
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1334
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1335
    x_includes=$ac_optarg ;;
 
1336
 
 
1337
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1338
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1339
    ac_prev=x_libraries ;;
 
1340
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1341
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1342
    x_libraries=$ac_optarg ;;
 
1343
 
 
1344
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1345
Try \`$0 --help' for more information."
 
1346
    ;;
 
1347
 
 
1348
  *=*)
 
1349
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1350
    # Reject names that are not valid shell variable names.
 
1351
    case $ac_envvar in #(
 
1352
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1353
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1354
    esac
 
1355
    eval $ac_envvar=\$ac_optarg
 
1356
    export $ac_envvar ;;
 
1357
 
 
1358
  *)
 
1359
    # FIXME: should be removed in autoconf 3.0.
 
1360
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1361
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1362
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1363
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1364
    ;;
 
1365
 
 
1366
  esac
 
1367
done
 
1368
 
 
1369
if test -n "$ac_prev"; then
 
1370
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1371
  as_fn_error "missing argument to $ac_option"
 
1372
fi
 
1373
 
 
1374
if test -n "$ac_unrecognized_opts"; then
 
1375
  case $enable_option_checking in
 
1376
    no) ;;
 
1377
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1378
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1379
  esac
 
1380
fi
 
1381
 
 
1382
# Check all directory arguments for consistency.
 
1383
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1384
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1385
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1386
                libdir localedir mandir
 
1387
do
 
1388
  eval ac_val=\$$ac_var
 
1389
  # Remove trailing slashes.
 
1390
  case $ac_val in
 
1391
    */ )
 
1392
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1393
      eval $ac_var=\$ac_val;;
 
1394
  esac
 
1395
  # Be sure to have absolute directory names.
 
1396
  case $ac_val in
 
1397
    [\\/$]* | ?:[\\/]* )  continue;;
 
1398
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1399
  esac
 
1400
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1401
done
 
1402
 
 
1403
# There might be people who depend on the old broken behavior: `$host'
 
1404
# used to hold the argument of --host etc.
 
1405
# FIXME: To remove some day.
 
1406
build=$build_alias
 
1407
host=$host_alias
 
1408
target=$target_alias
 
1409
 
 
1410
# FIXME: To remove some day.
 
1411
if test "x$host_alias" != x; then
 
1412
  if test "x$build_alias" = x; then
 
1413
    cross_compiling=maybe
 
1414
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1415
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1416
  elif test "x$build_alias" != "x$host_alias"; then
 
1417
    cross_compiling=yes
 
1418
  fi
 
1419
fi
 
1420
 
 
1421
ac_tool_prefix=
 
1422
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1423
 
 
1424
test "$silent" = yes && exec 6>/dev/null
 
1425
 
 
1426
 
 
1427
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1428
ac_ls_di=`ls -di .` &&
 
1429
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1430
  as_fn_error "working directory cannot be determined"
 
1431
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1432
  as_fn_error "pwd does not report name of working directory"
 
1433
 
 
1434
 
 
1435
# Find the source files, if location was not specified.
 
1436
if test -z "$srcdir"; then
 
1437
  ac_srcdir_defaulted=yes
 
1438
  # Try the directory containing this script, then the parent directory.
 
1439
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1440
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1441
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1442
         X"$as_myself" : 'X\(//\)$' \| \
 
1443
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1444
$as_echo X"$as_myself" |
 
1445
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1446
            s//\1/
 
1447
            q
 
1448
          }
 
1449
          /^X\(\/\/\)[^/].*/{
 
1450
            s//\1/
 
1451
            q
 
1452
          }
 
1453
          /^X\(\/\/\)$/{
 
1454
            s//\1/
 
1455
            q
 
1456
          }
 
1457
          /^X\(\/\).*/{
 
1458
            s//\1/
 
1459
            q
 
1460
          }
 
1461
          s/.*/./; q'`
 
1462
  srcdir=$ac_confdir
 
1463
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1464
    srcdir=..
 
1465
  fi
 
1466
else
 
1467
  ac_srcdir_defaulted=no
 
1468
fi
 
1469
if test ! -r "$srcdir/$ac_unique_file"; then
 
1470
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1471
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1472
fi
 
1473
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1474
ac_abs_confdir=`(
 
1475
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1476
        pwd)`
 
1477
# When building in place, set srcdir=.
 
1478
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1479
  srcdir=.
 
1480
fi
 
1481
# Remove unnecessary trailing slashes from srcdir.
 
1482
# Double slashes in file names in object file debugging info
 
1483
# mess up M-x gdb in Emacs.
 
1484
case $srcdir in
 
1485
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1486
esac
 
1487
for ac_var in $ac_precious_vars; do
 
1488
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1489
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1490
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1491
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1492
done
 
1493
 
 
1494
#
 
1495
# Report the --help message.
 
1496
#
 
1497
if test "$ac_init_help" = "long"; then
 
1498
  # Omit some internal or obsolete options to make the list less imposing.
 
1499
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1500
  cat <<_ACEOF
 
1501
\`configure' configures quvi 0.2.0 to adapt to many kinds of systems.
 
1502
 
 
1503
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1504
 
 
1505
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1506
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1507
 
 
1508
Defaults for the options are specified in brackets.
 
1509
 
 
1510
Configuration:
 
1511
  -h, --help              display this help and exit
 
1512
      --help=short        display options specific to this package
 
1513
      --help=recursive    display the short help of all the included packages
 
1514
  -V, --version           display version information and exit
 
1515
  -q, --quiet, --silent   do not print \`checking...' messages
 
1516
      --cache-file=FILE   cache test results in FILE [disabled]
 
1517
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1518
  -n, --no-create         do not create output files
 
1519
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1520
 
 
1521
Installation directories:
 
1522
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1523
                          [$ac_default_prefix]
 
1524
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1525
                          [PREFIX]
 
1526
 
 
1527
By default, \`make install' will install all the files in
 
1528
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1529
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1530
for instance \`--prefix=\$HOME'.
 
1531
 
 
1532
For better control, use the options below.
 
1533
 
 
1534
Fine tuning of the installation directories:
 
1535
  --bindir=DIR            user executables [EPREFIX/bin]
 
1536
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1537
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1538
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1539
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1540
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1541
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1542
  --includedir=DIR        C header files [PREFIX/include]
 
1543
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1544
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1545
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1546
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1547
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1548
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1549
  --docdir=DIR            documentation root [DATAROOTDIR/doc/quvi]
 
1550
  --htmldir=DIR           html documentation [DOCDIR]
 
1551
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1552
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1553
  --psdir=DIR             ps documentation [DOCDIR]
 
1554
_ACEOF
 
1555
 
 
1556
  cat <<\_ACEOF
 
1557
 
 
1558
Program names:
 
1559
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1560
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1561
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1562
 
 
1563
System types:
 
1564
  --build=BUILD     configure for building on BUILD [guessed]
 
1565
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1566
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1567
_ACEOF
 
1568
fi
 
1569
 
 
1570
if test -n "$ac_init_help"; then
 
1571
  case $ac_init_help in
 
1572
     short | recursive ) echo "Configuration of quvi 0.2.0:";;
 
1573
   esac
 
1574
  cat <<\_ACEOF
 
1575
 
 
1576
Optional Features:
 
1577
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1578
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1579
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1580
  --disable-dependency-tracking  speeds up one-time build
 
1581
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1582
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1583
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1584
  --enable-fast-install[=PKGS]
 
1585
                          optimize for fast installation [default=yes]
 
1586
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1587
  --disable-rpath         do not hardcode runtime library paths
 
1588
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1589
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1590
  --enable-quvi           build quvi command line tool[default=yes]
 
1591
  --enable-examples       build examples [default=no]
 
1592
  --enable-smut           build with adult website support [default=no]
 
1593
  --enable-broken         build with broken website support [default=no]
 
1594
 
 
1595
Optional Packages:
 
1596
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1597
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1598
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1599
                          both]
 
1600
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1601
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1602
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1603
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1604
  --with-man              install manual pages [default=yes]
 
1605
  --with-doc              install documentation [default=yes]
 
1606
 
 
1607
Some influential environment variables:
 
1608
  CC          C compiler command
 
1609
  CFLAGS      C compiler flags
 
1610
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1611
              nonstandard directory <lib dir>
 
1612
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1613
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1614
              you have headers in a nonstandard directory <include dir>
 
1615
  CPP         C preprocessor
 
1616
  CXX         C++ compiler command
 
1617
  CXXFLAGS    C++ compiler flags
 
1618
  CXXCPP      C++ preprocessor
 
1619
  PKG_CONFIG  path to pkg-config utility
 
1620
  libcurl_CFLAGS
 
1621
              C compiler flags for libcurl, overriding pkg-config
 
1622
  libcurl_LIBS
 
1623
              linker flags for libcurl, overriding pkg-config
 
1624
  libpcre_CFLAGS
 
1625
              C compiler flags for libpcre, overriding pkg-config
 
1626
  libpcre_LIBS
 
1627
              linker flags for libpcre, overriding pkg-config
 
1628
  liblua_CFLAGS
 
1629
              C compiler flags for liblua, overriding pkg-config
 
1630
  liblua_LIBS linker flags for liblua, overriding pkg-config
 
1631
 
 
1632
Use these variables to override the choices made by `configure' or to help
 
1633
it to find libraries and programs with nonstandard names/locations.
 
1634
 
 
1635
Report bugs to <legatvs@gmail.com>.
 
1636
_ACEOF
 
1637
ac_status=$?
 
1638
fi
 
1639
 
 
1640
if test "$ac_init_help" = "recursive"; then
 
1641
  # If there are subdirs, report their specific --help.
 
1642
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1643
    test -d "$ac_dir" ||
 
1644
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1645
      continue
 
1646
    ac_builddir=.
 
1647
 
 
1648
case "$ac_dir" in
 
1649
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1650
*)
 
1651
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1652
  # A ".." for each directory in $ac_dir_suffix.
 
1653
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1654
  case $ac_top_builddir_sub in
 
1655
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1656
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1657
  esac ;;
 
1658
esac
 
1659
ac_abs_top_builddir=$ac_pwd
 
1660
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1661
# for backward compatibility:
 
1662
ac_top_builddir=$ac_top_build_prefix
 
1663
 
 
1664
case $srcdir in
 
1665
  .)  # We are building in place.
 
1666
    ac_srcdir=.
 
1667
    ac_top_srcdir=$ac_top_builddir_sub
 
1668
    ac_abs_top_srcdir=$ac_pwd ;;
 
1669
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1670
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1671
    ac_top_srcdir=$srcdir
 
1672
    ac_abs_top_srcdir=$srcdir ;;
 
1673
  *) # Relative name.
 
1674
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1675
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1676
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1677
esac
 
1678
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1679
 
 
1680
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1681
    # Check for guested configure.
 
1682
    if test -f "$ac_srcdir/configure.gnu"; then
 
1683
      echo &&
 
1684
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1685
    elif test -f "$ac_srcdir/configure"; then
 
1686
      echo &&
 
1687
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1688
    else
 
1689
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1690
    fi || ac_status=$?
 
1691
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1692
  done
 
1693
fi
 
1694
 
 
1695
test -n "$ac_init_help" && exit $ac_status
 
1696
if $ac_init_version; then
 
1697
  cat <<\_ACEOF
 
1698
quvi configure 0.2.0
 
1699
generated by GNU Autoconf 2.65
 
1700
 
 
1701
Copyright (C) 2009 Free Software Foundation, Inc.
 
1702
This configure script is free software; the Free Software Foundation
 
1703
gives unlimited permission to copy, distribute and modify it.
 
1704
_ACEOF
 
1705
  exit
 
1706
fi
 
1707
 
 
1708
## ------------------------ ##
 
1709
## Autoconf initialization. ##
 
1710
## ------------------------ ##
 
1711
 
 
1712
# ac_fn_c_try_compile LINENO
 
1713
# --------------------------
 
1714
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1715
ac_fn_c_try_compile ()
 
1716
{
 
1717
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1718
  rm -f conftest.$ac_objext
 
1719
  if { { ac_try="$ac_compile"
 
1720
case "(($ac_try" in
 
1721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1722
  *) ac_try_echo=$ac_try;;
 
1723
esac
 
1724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1725
$as_echo "$ac_try_echo"; } >&5
 
1726
  (eval "$ac_compile") 2>conftest.err
 
1727
  ac_status=$?
 
1728
  if test -s conftest.err; then
 
1729
    grep -v '^ *+' conftest.err >conftest.er1
 
1730
    cat conftest.er1 >&5
 
1731
    mv -f conftest.er1 conftest.err
 
1732
  fi
 
1733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1734
  test $ac_status = 0; } && {
 
1735
         test -z "$ac_c_werror_flag" ||
 
1736
         test ! -s conftest.err
 
1737
       } && test -s conftest.$ac_objext; then :
 
1738
  ac_retval=0
 
1739
else
 
1740
  $as_echo "$as_me: failed program was:" >&5
 
1741
sed 's/^/| /' conftest.$ac_ext >&5
 
1742
 
 
1743
        ac_retval=1
 
1744
fi
 
1745
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1746
  as_fn_set_status $ac_retval
 
1747
 
 
1748
} # ac_fn_c_try_compile
 
1749
 
 
1750
# ac_fn_c_try_cpp LINENO
 
1751
# ----------------------
 
1752
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1753
ac_fn_c_try_cpp ()
 
1754
{
 
1755
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1756
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1757
case "(($ac_try" in
 
1758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1759
  *) ac_try_echo=$ac_try;;
 
1760
esac
 
1761
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1762
$as_echo "$ac_try_echo"; } >&5
 
1763
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1764
  ac_status=$?
 
1765
  if test -s conftest.err; then
 
1766
    grep -v '^ *+' conftest.err >conftest.er1
 
1767
    cat conftest.er1 >&5
 
1768
    mv -f conftest.er1 conftest.err
 
1769
  fi
 
1770
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1771
  test $ac_status = 0; } >/dev/null && {
 
1772
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1773
         test ! -s conftest.err
 
1774
       }; then :
 
1775
  ac_retval=0
 
1776
else
 
1777
  $as_echo "$as_me: failed program was:" >&5
 
1778
sed 's/^/| /' conftest.$ac_ext >&5
 
1779
 
 
1780
    ac_retval=1
 
1781
fi
 
1782
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1783
  as_fn_set_status $ac_retval
 
1784
 
 
1785
} # ac_fn_c_try_cpp
 
1786
 
 
1787
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1788
# -------------------------------------------------------
 
1789
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1790
# the include files in INCLUDES and setting the cache variable VAR
 
1791
# accordingly.
 
1792
ac_fn_c_check_header_mongrel ()
 
1793
{
 
1794
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1795
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1796
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1797
$as_echo_n "checking for $2... " >&6; }
 
1798
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1799
  $as_echo_n "(cached) " >&6
 
1800
fi
 
1801
eval ac_res=\$$3
 
1802
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1803
$as_echo "$ac_res" >&6; }
 
1804
else
 
1805
  # Is the header compilable?
 
1806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1807
$as_echo_n "checking $2 usability... " >&6; }
 
1808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1809
/* end confdefs.h.  */
 
1810
$4
 
1811
#include <$2>
 
1812
_ACEOF
 
1813
if ac_fn_c_try_compile "$LINENO"; then :
 
1814
  ac_header_compiler=yes
 
1815
else
 
1816
  ac_header_compiler=no
 
1817
fi
 
1818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1820
$as_echo "$ac_header_compiler" >&6; }
 
1821
 
 
1822
# Is the header present?
 
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1824
$as_echo_n "checking $2 presence... " >&6; }
 
1825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1826
/* end confdefs.h.  */
 
1827
#include <$2>
 
1828
_ACEOF
 
1829
if ac_fn_c_try_cpp "$LINENO"; then :
 
1830
  ac_header_preproc=yes
 
1831
else
 
1832
  ac_header_preproc=no
 
1833
fi
 
1834
rm -f conftest.err conftest.$ac_ext
 
1835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1836
$as_echo "$ac_header_preproc" >&6; }
 
1837
 
 
1838
# So?  What about this header?
 
1839
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1840
  yes:no: )
 
1841
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1842
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1843
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1844
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1845
    ;;
 
1846
  no:yes:* )
 
1847
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1848
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1849
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1850
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1851
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1852
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1853
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1854
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1855
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1856
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1857
( cat <<\_ASBOX
 
1858
## -------------------------------- ##
 
1859
## Report this to legatvs@gmail.com ##
 
1860
## -------------------------------- ##
 
1861
_ASBOX
 
1862
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1863
    ;;
 
1864
esac
 
1865
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1866
$as_echo_n "checking for $2... " >&6; }
 
1867
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1868
  $as_echo_n "(cached) " >&6
 
1869
else
 
1870
  eval "$3=\$ac_header_compiler"
 
1871
fi
 
1872
eval ac_res=\$$3
 
1873
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1874
$as_echo "$ac_res" >&6; }
 
1875
fi
 
1876
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1877
 
 
1878
} # ac_fn_c_check_header_mongrel
 
1879
 
 
1880
# ac_fn_c_try_run LINENO
 
1881
# ----------------------
 
1882
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1883
# that executables *can* be run.
 
1884
ac_fn_c_try_run ()
 
1885
{
 
1886
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1887
  if { { ac_try="$ac_link"
 
1888
case "(($ac_try" in
 
1889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1890
  *) ac_try_echo=$ac_try;;
 
1891
esac
 
1892
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1893
$as_echo "$ac_try_echo"; } >&5
 
1894
  (eval "$ac_link") 2>&5
 
1895
  ac_status=$?
 
1896
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1897
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1898
  { { case "(($ac_try" in
 
1899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1900
  *) ac_try_echo=$ac_try;;
 
1901
esac
 
1902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1903
$as_echo "$ac_try_echo"; } >&5
 
1904
  (eval "$ac_try") 2>&5
 
1905
  ac_status=$?
 
1906
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1907
  test $ac_status = 0; }; }; then :
 
1908
  ac_retval=0
 
1909
else
 
1910
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1911
       $as_echo "$as_me: failed program was:" >&5
 
1912
sed 's/^/| /' conftest.$ac_ext >&5
 
1913
 
 
1914
       ac_retval=$ac_status
 
1915
fi
 
1916
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1917
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1918
  as_fn_set_status $ac_retval
 
1919
 
 
1920
} # ac_fn_c_try_run
 
1921
 
 
1922
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1923
# -------------------------------------------------------
 
1924
# Tests whether HEADER exists and can be compiled using the include files in
 
1925
# INCLUDES, setting the cache variable VAR accordingly.
 
1926
ac_fn_c_check_header_compile ()
 
1927
{
 
1928
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1929
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1930
$as_echo_n "checking for $2... " >&6; }
 
1931
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1932
  $as_echo_n "(cached) " >&6
 
1933
else
 
1934
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1935
/* end confdefs.h.  */
 
1936
$4
 
1937
#include <$2>
 
1938
_ACEOF
 
1939
if ac_fn_c_try_compile "$LINENO"; then :
 
1940
  eval "$3=yes"
 
1941
else
 
1942
  eval "$3=no"
 
1943
fi
 
1944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1945
fi
 
1946
eval ac_res=\$$3
 
1947
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1948
$as_echo "$ac_res" >&6; }
 
1949
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1950
 
 
1951
} # ac_fn_c_check_header_compile
 
1952
 
 
1953
# ac_fn_c_try_link LINENO
 
1954
# -----------------------
 
1955
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1956
ac_fn_c_try_link ()
 
1957
{
 
1958
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1959
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1960
  if { { ac_try="$ac_link"
 
1961
case "(($ac_try" in
 
1962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1963
  *) ac_try_echo=$ac_try;;
 
1964
esac
 
1965
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1966
$as_echo "$ac_try_echo"; } >&5
 
1967
  (eval "$ac_link") 2>conftest.err
 
1968
  ac_status=$?
 
1969
  if test -s conftest.err; then
 
1970
    grep -v '^ *+' conftest.err >conftest.er1
 
1971
    cat conftest.er1 >&5
 
1972
    mv -f conftest.er1 conftest.err
 
1973
  fi
 
1974
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1975
  test $ac_status = 0; } && {
 
1976
         test -z "$ac_c_werror_flag" ||
 
1977
         test ! -s conftest.err
 
1978
       } && test -s conftest$ac_exeext && {
 
1979
         test "$cross_compiling" = yes ||
 
1980
         $as_test_x conftest$ac_exeext
 
1981
       }; then :
 
1982
  ac_retval=0
 
1983
else
 
1984
  $as_echo "$as_me: failed program was:" >&5
 
1985
sed 's/^/| /' conftest.$ac_ext >&5
 
1986
 
 
1987
        ac_retval=1
 
1988
fi
 
1989
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1990
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1991
  # interfere with the next link command; also delete a directory that is
 
1992
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1993
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1994
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1995
  as_fn_set_status $ac_retval
 
1996
 
 
1997
} # ac_fn_c_try_link
 
1998
 
 
1999
# ac_fn_c_check_func LINENO FUNC VAR
 
2000
# ----------------------------------
 
2001
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2002
ac_fn_c_check_func ()
 
2003
{
 
2004
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2005
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2006
$as_echo_n "checking for $2... " >&6; }
 
2007
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2008
  $as_echo_n "(cached) " >&6
 
2009
else
 
2010
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2011
/* end confdefs.h.  */
 
2012
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2013
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2014
#define $2 innocuous_$2
 
2015
 
 
2016
/* System header to define __stub macros and hopefully few prototypes,
 
2017
    which can conflict with char $2 (); below.
 
2018
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2019
    <limits.h> exists even on freestanding compilers.  */
 
2020
 
 
2021
#ifdef __STDC__
 
2022
# include <limits.h>
 
2023
#else
 
2024
# include <assert.h>
 
2025
#endif
 
2026
 
 
2027
#undef $2
 
2028
 
 
2029
/* Override any GCC internal prototype to avoid an error.
 
2030
   Use char because int might match the return type of a GCC
 
2031
   builtin and then its argument prototype would still apply.  */
 
2032
#ifdef __cplusplus
 
2033
extern "C"
 
2034
#endif
 
2035
char $2 ();
 
2036
/* The GNU C library defines this for functions which it implements
 
2037
    to always fail with ENOSYS.  Some functions are actually named
 
2038
    something starting with __ and the normal name is an alias.  */
 
2039
#if defined __stub_$2 || defined __stub___$2
 
2040
choke me
 
2041
#endif
 
2042
 
 
2043
int
 
2044
main ()
 
2045
{
 
2046
return $2 ();
 
2047
  ;
 
2048
  return 0;
 
2049
}
 
2050
_ACEOF
 
2051
if ac_fn_c_try_link "$LINENO"; then :
 
2052
  eval "$3=yes"
 
2053
else
 
2054
  eval "$3=no"
 
2055
fi
 
2056
rm -f core conftest.err conftest.$ac_objext \
 
2057
    conftest$ac_exeext conftest.$ac_ext
 
2058
fi
 
2059
eval ac_res=\$$3
 
2060
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2061
$as_echo "$ac_res" >&6; }
 
2062
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2063
 
 
2064
} # ac_fn_c_check_func
 
2065
 
 
2066
# ac_fn_cxx_try_compile LINENO
 
2067
# ----------------------------
 
2068
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2069
ac_fn_cxx_try_compile ()
 
2070
{
 
2071
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2072
  rm -f conftest.$ac_objext
 
2073
  if { { ac_try="$ac_compile"
 
2074
case "(($ac_try" in
 
2075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2076
  *) ac_try_echo=$ac_try;;
 
2077
esac
 
2078
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2079
$as_echo "$ac_try_echo"; } >&5
 
2080
  (eval "$ac_compile") 2>conftest.err
 
2081
  ac_status=$?
 
2082
  if test -s conftest.err; then
 
2083
    grep -v '^ *+' conftest.err >conftest.er1
 
2084
    cat conftest.er1 >&5
 
2085
    mv -f conftest.er1 conftest.err
 
2086
  fi
 
2087
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2088
  test $ac_status = 0; } && {
 
2089
         test -z "$ac_cxx_werror_flag" ||
 
2090
         test ! -s conftest.err
 
2091
       } && test -s conftest.$ac_objext; then :
 
2092
  ac_retval=0
 
2093
else
 
2094
  $as_echo "$as_me: failed program was:" >&5
 
2095
sed 's/^/| /' conftest.$ac_ext >&5
 
2096
 
 
2097
        ac_retval=1
 
2098
fi
 
2099
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2100
  as_fn_set_status $ac_retval
 
2101
 
 
2102
} # ac_fn_cxx_try_compile
 
2103
 
 
2104
# ac_fn_cxx_try_cpp LINENO
 
2105
# ------------------------
 
2106
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2107
ac_fn_cxx_try_cpp ()
 
2108
{
 
2109
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2110
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2111
case "(($ac_try" in
 
2112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2113
  *) ac_try_echo=$ac_try;;
 
2114
esac
 
2115
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2116
$as_echo "$ac_try_echo"; } >&5
 
2117
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2118
  ac_status=$?
 
2119
  if test -s conftest.err; then
 
2120
    grep -v '^ *+' conftest.err >conftest.er1
 
2121
    cat conftest.er1 >&5
 
2122
    mv -f conftest.er1 conftest.err
 
2123
  fi
 
2124
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2125
  test $ac_status = 0; } >/dev/null && {
 
2126
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2127
         test ! -s conftest.err
 
2128
       }; then :
 
2129
  ac_retval=0
 
2130
else
 
2131
  $as_echo "$as_me: failed program was:" >&5
 
2132
sed 's/^/| /' conftest.$ac_ext >&5
 
2133
 
 
2134
    ac_retval=1
 
2135
fi
 
2136
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2137
  as_fn_set_status $ac_retval
 
2138
 
 
2139
} # ac_fn_cxx_try_cpp
 
2140
 
 
2141
# ac_fn_cxx_try_link LINENO
 
2142
# -------------------------
 
2143
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2144
ac_fn_cxx_try_link ()
 
2145
{
 
2146
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2147
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2148
  if { { ac_try="$ac_link"
 
2149
case "(($ac_try" in
 
2150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2151
  *) ac_try_echo=$ac_try;;
 
2152
esac
 
2153
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2154
$as_echo "$ac_try_echo"; } >&5
 
2155
  (eval "$ac_link") 2>conftest.err
 
2156
  ac_status=$?
 
2157
  if test -s conftest.err; then
 
2158
    grep -v '^ *+' conftest.err >conftest.er1
 
2159
    cat conftest.er1 >&5
 
2160
    mv -f conftest.er1 conftest.err
 
2161
  fi
 
2162
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2163
  test $ac_status = 0; } && {
 
2164
         test -z "$ac_cxx_werror_flag" ||
 
2165
         test ! -s conftest.err
 
2166
       } && test -s conftest$ac_exeext && {
 
2167
         test "$cross_compiling" = yes ||
 
2168
         $as_test_x conftest$ac_exeext
 
2169
       }; then :
 
2170
  ac_retval=0
 
2171
else
 
2172
  $as_echo "$as_me: failed program was:" >&5
 
2173
sed 's/^/| /' conftest.$ac_ext >&5
 
2174
 
 
2175
        ac_retval=1
 
2176
fi
 
2177
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2178
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2179
  # interfere with the next link command; also delete a directory that is
 
2180
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2181
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2182
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2183
  as_fn_set_status $ac_retval
 
2184
 
 
2185
} # ac_fn_cxx_try_link
 
2186
 
 
2187
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2188
# -------------------------------------------
 
2189
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2190
# variable VAR accordingly.
 
2191
ac_fn_c_check_type ()
 
2192
{
 
2193
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2194
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2195
$as_echo_n "checking for $2... " >&6; }
 
2196
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2197
  $as_echo_n "(cached) " >&6
 
2198
else
 
2199
  eval "$3=no"
 
2200
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2201
/* end confdefs.h.  */
 
2202
$4
 
2203
int
 
2204
main ()
 
2205
{
 
2206
if (sizeof ($2))
 
2207
         return 0;
 
2208
  ;
 
2209
  return 0;
 
2210
}
 
2211
_ACEOF
 
2212
if ac_fn_c_try_compile "$LINENO"; then :
 
2213
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2214
/* end confdefs.h.  */
 
2215
$4
 
2216
int
 
2217
main ()
 
2218
{
 
2219
if (sizeof (($2)))
 
2220
            return 0;
 
2221
  ;
 
2222
  return 0;
 
2223
}
 
2224
_ACEOF
 
2225
if ac_fn_c_try_compile "$LINENO"; then :
 
2226
 
 
2227
else
 
2228
  eval "$3=yes"
 
2229
fi
 
2230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2231
fi
 
2232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2233
fi
 
2234
eval ac_res=\$$3
 
2235
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2236
$as_echo "$ac_res" >&6; }
 
2237
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2238
 
 
2239
} # ac_fn_c_check_type
 
2240
 
 
2241
# ac_fn_c_find_uintX_t LINENO BITS VAR
 
2242
# ------------------------------------
 
2243
# Finds an unsigned integer type with width BITS, setting cache variable VAR
 
2244
# accordingly.
 
2245
ac_fn_c_find_uintX_t ()
 
2246
{
 
2247
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2248
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
 
2249
$as_echo_n "checking for uint$2_t... " >&6; }
 
2250
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2251
  $as_echo_n "(cached) " >&6
 
2252
else
 
2253
  eval "$3=no"
 
2254
     # Order is important - never check a type that is potentially smaller
 
2255
     # than half of the expected target width.
 
2256
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
 
2257
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
2258
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2259
/* end confdefs.h.  */
 
2260
$ac_includes_default
 
2261
int
 
2262
main ()
 
2263
{
 
2264
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
 
2265
test_array [0] = 0
 
2266
 
 
2267
  ;
 
2268
  return 0;
 
2269
}
 
2270
_ACEOF
 
2271
if ac_fn_c_try_compile "$LINENO"; then :
 
2272
  case $ac_type in #(
 
2273
  uint$2_t) :
 
2274
    eval "$3=yes" ;; #(
 
2275
  *) :
 
2276
    eval "$3=\$ac_type" ;;
 
2277
esac
 
2278
fi
 
2279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2280
       eval as_val=\$$3
 
2281
   if test "x$as_val" = x""no; then :
 
2282
 
 
2283
else
 
2284
  break
 
2285
fi
 
2286
     done
 
2287
fi
 
2288
eval ac_res=\$$3
 
2289
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2290
$as_echo "$ac_res" >&6; }
 
2291
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2292
 
 
2293
} # ac_fn_c_find_uintX_t
 
2294
cat >config.log <<_ACEOF
 
2295
This file contains any messages produced by compilers while
 
2296
running configure, to aid debugging if configure makes a mistake.
 
2297
 
 
2298
It was created by quvi $as_me 0.2.0, which was
 
2299
generated by GNU Autoconf 2.65.  Invocation command line was
 
2300
 
 
2301
  $ $0 $@
 
2302
 
 
2303
_ACEOF
 
2304
exec 5>>config.log
 
2305
{
 
2306
cat <<_ASUNAME
 
2307
## --------- ##
 
2308
## Platform. ##
 
2309
## --------- ##
 
2310
 
 
2311
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2312
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2313
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2314
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2315
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2316
 
 
2317
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2318
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2319
 
 
2320
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2321
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2322
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2323
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2324
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2325
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2326
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2327
 
 
2328
_ASUNAME
 
2329
 
 
2330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2331
for as_dir in $PATH
 
2332
do
 
2333
  IFS=$as_save_IFS
 
2334
  test -z "$as_dir" && as_dir=.
 
2335
    $as_echo "PATH: $as_dir"
 
2336
  done
 
2337
IFS=$as_save_IFS
 
2338
 
 
2339
} >&5
 
2340
 
 
2341
cat >&5 <<_ACEOF
 
2342
 
 
2343
 
 
2344
## ----------- ##
 
2345
## Core tests. ##
 
2346
## ----------- ##
 
2347
 
 
2348
_ACEOF
 
2349
 
 
2350
 
 
2351
# Keep a trace of the command line.
 
2352
# Strip out --no-create and --no-recursion so they do not pile up.
 
2353
# Strip out --silent because we don't want to record it for future runs.
 
2354
# Also quote any args containing shell meta-characters.
 
2355
# Make two passes to allow for proper duplicate-argument suppression.
 
2356
ac_configure_args=
 
2357
ac_configure_args0=
 
2358
ac_configure_args1=
 
2359
ac_must_keep_next=false
 
2360
for ac_pass in 1 2
 
2361
do
 
2362
  for ac_arg
 
2363
  do
 
2364
    case $ac_arg in
 
2365
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2366
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2367
    | -silent | --silent | --silen | --sile | --sil)
 
2368
      continue ;;
 
2369
    *\'*)
 
2370
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2371
    esac
 
2372
    case $ac_pass in
 
2373
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2374
    2)
 
2375
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2376
      if test $ac_must_keep_next = true; then
 
2377
        ac_must_keep_next=false # Got value, back to normal.
 
2378
      else
 
2379
        case $ac_arg in
 
2380
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2381
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2382
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2383
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2384
            case "$ac_configure_args0 " in
 
2385
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2386
            esac
 
2387
            ;;
 
2388
          -* ) ac_must_keep_next=true ;;
 
2389
        esac
 
2390
      fi
 
2391
      as_fn_append ac_configure_args " '$ac_arg'"
 
2392
      ;;
 
2393
    esac
 
2394
  done
 
2395
done
 
2396
{ ac_configure_args0=; unset ac_configure_args0;}
 
2397
{ ac_configure_args1=; unset ac_configure_args1;}
 
2398
 
 
2399
# When interrupted or exit'd, cleanup temporary files, and complete
 
2400
# config.log.  We remove comments because anyway the quotes in there
 
2401
# would cause problems or look ugly.
 
2402
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2403
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2404
trap 'exit_status=$?
 
2405
  # Save into config.log some information that might help in debugging.
 
2406
  {
 
2407
    echo
 
2408
 
 
2409
    cat <<\_ASBOX
 
2410
## ---------------- ##
 
2411
## Cache variables. ##
 
2412
## ---------------- ##
 
2413
_ASBOX
 
2414
    echo
 
2415
    # The following way of writing the cache mishandles newlines in values,
 
2416
(
 
2417
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2418
    eval ac_val=\$$ac_var
 
2419
    case $ac_val in #(
 
2420
    *${as_nl}*)
 
2421
      case $ac_var in #(
 
2422
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2423
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2424
      esac
 
2425
      case $ac_var in #(
 
2426
      _ | IFS | as_nl) ;; #(
 
2427
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2428
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2429
      esac ;;
 
2430
    esac
 
2431
  done
 
2432
  (set) 2>&1 |
 
2433
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2434
    *${as_nl}ac_space=\ *)
 
2435
      sed -n \
 
2436
        "s/'\''/'\''\\\\'\'''\''/g;
 
2437
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2438
      ;; #(
 
2439
    *)
 
2440
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2441
      ;;
 
2442
    esac |
 
2443
    sort
 
2444
)
 
2445
    echo
 
2446
 
 
2447
    cat <<\_ASBOX
 
2448
## ----------------- ##
 
2449
## Output variables. ##
 
2450
## ----------------- ##
 
2451
_ASBOX
 
2452
    echo
 
2453
    for ac_var in $ac_subst_vars
 
2454
    do
 
2455
      eval ac_val=\$$ac_var
 
2456
      case $ac_val in
 
2457
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2458
      esac
 
2459
      $as_echo "$ac_var='\''$ac_val'\''"
 
2460
    done | sort
 
2461
    echo
 
2462
 
 
2463
    if test -n "$ac_subst_files"; then
 
2464
      cat <<\_ASBOX
 
2465
## ------------------- ##
 
2466
## File substitutions. ##
 
2467
## ------------------- ##
 
2468
_ASBOX
 
2469
      echo
 
2470
      for ac_var in $ac_subst_files
 
2471
      do
 
2472
        eval ac_val=\$$ac_var
 
2473
        case $ac_val in
 
2474
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2475
        esac
 
2476
        $as_echo "$ac_var='\''$ac_val'\''"
 
2477
      done | sort
 
2478
      echo
 
2479
    fi
 
2480
 
 
2481
    if test -s confdefs.h; then
 
2482
      cat <<\_ASBOX
 
2483
## ----------- ##
 
2484
## confdefs.h. ##
 
2485
## ----------- ##
 
2486
_ASBOX
 
2487
      echo
 
2488
      cat confdefs.h
 
2489
      echo
 
2490
    fi
 
2491
    test "$ac_signal" != 0 &&
 
2492
      $as_echo "$as_me: caught signal $ac_signal"
 
2493
    $as_echo "$as_me: exit $exit_status"
 
2494
  } >&5
 
2495
  rm -f core *.core core.conftest.* &&
 
2496
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2497
    exit $exit_status
 
2498
' 0
 
2499
for ac_signal in 1 2 13 15; do
 
2500
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2501
done
 
2502
ac_signal=0
 
2503
 
 
2504
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2505
rm -f -r conftest* confdefs.h
 
2506
 
 
2507
$as_echo "/* confdefs.h */" > confdefs.h
 
2508
 
 
2509
# Predefined preprocessor variables.
 
2510
 
 
2511
cat >>confdefs.h <<_ACEOF
 
2512
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2513
_ACEOF
 
2514
 
 
2515
cat >>confdefs.h <<_ACEOF
 
2516
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2517
_ACEOF
 
2518
 
 
2519
cat >>confdefs.h <<_ACEOF
 
2520
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2521
_ACEOF
 
2522
 
 
2523
cat >>confdefs.h <<_ACEOF
 
2524
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2525
_ACEOF
 
2526
 
 
2527
cat >>confdefs.h <<_ACEOF
 
2528
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2529
_ACEOF
 
2530
 
 
2531
cat >>confdefs.h <<_ACEOF
 
2532
#define PACKAGE_URL "$PACKAGE_URL"
 
2533
_ACEOF
 
2534
 
 
2535
 
 
2536
# Let the site file select an alternate cache file if it wants to.
 
2537
# Prefer an explicitly selected file to automatically selected ones.
 
2538
ac_site_file1=NONE
 
2539
ac_site_file2=NONE
 
2540
if test -n "$CONFIG_SITE"; then
 
2541
  ac_site_file1=$CONFIG_SITE
 
2542
elif test "x$prefix" != xNONE; then
 
2543
  ac_site_file1=$prefix/share/config.site
 
2544
  ac_site_file2=$prefix/etc/config.site
 
2545
else
 
2546
  ac_site_file1=$ac_default_prefix/share/config.site
 
2547
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2548
fi
 
2549
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2550
do
 
2551
  test "x$ac_site_file" = xNONE && continue
 
2552
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2553
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2554
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2555
    sed 's/^/| /' "$ac_site_file" >&5
 
2556
    . "$ac_site_file"
 
2557
  fi
 
2558
done
 
2559
 
 
2560
if test -r "$cache_file"; then
 
2561
  # Some versions of bash will fail to source /dev/null (special files
 
2562
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2563
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2564
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2565
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2566
    case $cache_file in
 
2567
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2568
      *)                      . "./$cache_file";;
 
2569
    esac
 
2570
  fi
 
2571
else
 
2572
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2573
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2574
  >$cache_file
 
2575
fi
 
2576
 
 
2577
# Check that the precious variables saved in the cache have kept the same
 
2578
# value.
 
2579
ac_cache_corrupted=false
 
2580
for ac_var in $ac_precious_vars; do
 
2581
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2582
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2583
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2584
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2585
  case $ac_old_set,$ac_new_set in
 
2586
    set,)
 
2587
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2588
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2589
      ac_cache_corrupted=: ;;
 
2590
    ,set)
 
2591
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2592
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2593
      ac_cache_corrupted=: ;;
 
2594
    ,);;
 
2595
    *)
 
2596
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2597
        # differences in whitespace do not lead to failure.
 
2598
        ac_old_val_w=`echo x $ac_old_val`
 
2599
        ac_new_val_w=`echo x $ac_new_val`
 
2600
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2601
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2602
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2603
          ac_cache_corrupted=:
 
2604
        else
 
2605
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2606
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2607
          eval $ac_var=\$ac_old_val
 
2608
        fi
 
2609
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2610
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2611
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2612
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2613
      fi;;
 
2614
  esac
 
2615
  # Pass precious variables to config.status.
 
2616
  if test "$ac_new_set" = set; then
 
2617
    case $ac_new_val in
 
2618
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2619
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2620
    esac
 
2621
    case " $ac_configure_args " in
 
2622
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2623
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2624
    esac
 
2625
  fi
 
2626
done
 
2627
if $ac_cache_corrupted; then
 
2628
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2629
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2630
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2631
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2632
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2633
fi
 
2634
## -------------------- ##
 
2635
## Main body of script. ##
 
2636
## -------------------- ##
 
2637
 
 
2638
ac_ext=c
 
2639
ac_cpp='$CPP $CPPFLAGS'
 
2640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2643
 
 
2644
 
 
2645
 
 
2646
# Interface:
 
2647
QUVI_CURRENT=2
 
2648
QUVI_REVISION=0
 
2649
QUVI_AGE=2
 
2650
 
 
2651
 
 
2652
 
 
2653
 
 
2654
 
 
2655
ac_config_headers="$ac_config_headers config.h"
 
2656
 
 
2657
ac_aux_dir=
 
2658
for ac_dir in config.aux "$srcdir"/config.aux; do
 
2659
  for ac_t in install-sh install.sh shtool; do
 
2660
    if test -f "$ac_dir/$ac_t"; then
 
2661
      ac_aux_dir=$ac_dir
 
2662
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2663
      break 2
 
2664
    fi
 
2665
  done
 
2666
done
 
2667
if test -z "$ac_aux_dir"; then
 
2668
  as_fn_error "cannot find install-sh, install.sh, or shtool in config.aux \"$srcdir\"/config.aux" "$LINENO" 5
 
2669
fi
 
2670
 
 
2671
# These three variables are undocumented and unsupported,
 
2672
# and are intended to be withdrawn in a future Autoconf release.
 
2673
# They can cause serious problems if a builder's source tree is in a directory
 
2674
# whose full name contains unusual characters.
 
2675
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2676
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2677
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2678
 
 
2679
 
 
2680
 
 
2681
 
 
2682
# Make sure we can run config.sub.
 
2683
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2684
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2685
 
 
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2687
$as_echo_n "checking build system type... " >&6; }
 
2688
if test "${ac_cv_build+set}" = set; then :
 
2689
  $as_echo_n "(cached) " >&6
 
2690
else
 
2691
  ac_build_alias=$build_alias
 
2692
test "x$ac_build_alias" = x &&
 
2693
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2694
test "x$ac_build_alias" = x &&
 
2695
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2696
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2697
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2698
 
 
2699
fi
 
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2701
$as_echo "$ac_cv_build" >&6; }
 
2702
case $ac_cv_build in
 
2703
*-*-*) ;;
 
2704
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2705
esac
 
2706
build=$ac_cv_build
 
2707
ac_save_IFS=$IFS; IFS='-'
 
2708
set x $ac_cv_build
 
2709
shift
 
2710
build_cpu=$1
 
2711
build_vendor=$2
 
2712
shift; shift
 
2713
# Remember, the first character of IFS is used to create $*,
 
2714
# except with old shells:
 
2715
build_os=$*
 
2716
IFS=$ac_save_IFS
 
2717
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2718
 
 
2719
 
 
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2721
$as_echo_n "checking host system type... " >&6; }
 
2722
if test "${ac_cv_host+set}" = set; then :
 
2723
  $as_echo_n "(cached) " >&6
 
2724
else
 
2725
  if test "x$host_alias" = x; then
 
2726
  ac_cv_host=$ac_cv_build
 
2727
else
 
2728
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2729
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2730
fi
 
2731
 
 
2732
fi
 
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2734
$as_echo "$ac_cv_host" >&6; }
 
2735
case $ac_cv_host in
 
2736
*-*-*) ;;
 
2737
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2738
esac
 
2739
host=$ac_cv_host
 
2740
ac_save_IFS=$IFS; IFS='-'
 
2741
set x $ac_cv_host
 
2742
shift
 
2743
host_cpu=$1
 
2744
host_vendor=$2
 
2745
shift; shift
 
2746
# Remember, the first character of IFS is used to create $*,
 
2747
# except with old shells:
 
2748
host_os=$*
 
2749
IFS=$ac_save_IFS
 
2750
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2751
 
 
2752
 
 
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2754
$as_echo_n "checking target system type... " >&6; }
 
2755
if test "${ac_cv_target+set}" = set; then :
 
2756
  $as_echo_n "(cached) " >&6
 
2757
else
 
2758
  if test "x$target_alias" = x; then
 
2759
  ac_cv_target=$ac_cv_host
 
2760
else
 
2761
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2762
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2763
fi
 
2764
 
 
2765
fi
 
2766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2767
$as_echo "$ac_cv_target" >&6; }
 
2768
case $ac_cv_target in
 
2769
*-*-*) ;;
 
2770
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2771
esac
 
2772
target=$ac_cv_target
 
2773
ac_save_IFS=$IFS; IFS='-'
 
2774
set x $ac_cv_target
 
2775
shift
 
2776
target_cpu=$1
 
2777
target_vendor=$2
 
2778
shift; shift
 
2779
# Remember, the first character of IFS is used to create $*,
 
2780
# except with old shells:
 
2781
target_os=$*
 
2782
IFS=$ac_save_IFS
 
2783
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2784
 
 
2785
 
 
2786
# The aliases save the names the user supplied, while $host etc.
 
2787
# will get canonicalized.
 
2788
test -n "$target_alias" &&
 
2789
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2790
    NONENONEs,x,x, &&
 
2791
  program_prefix=${target_alias}-
 
2792
 
 
2793
ac_ext=c
 
2794
ac_cpp='$CPP $CPPFLAGS'
 
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2798
if test -n "$ac_tool_prefix"; then
 
2799
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2800
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2802
$as_echo_n "checking for $ac_word... " >&6; }
 
2803
if test "${ac_cv_prog_CC+set}" = set; then :
 
2804
  $as_echo_n "(cached) " >&6
 
2805
else
 
2806
  if test -n "$CC"; then
 
2807
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2808
else
 
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2810
for as_dir in $PATH
 
2811
do
 
2812
  IFS=$as_save_IFS
 
2813
  test -z "$as_dir" && as_dir=.
 
2814
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2816
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2817
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2818
    break 2
 
2819
  fi
 
2820
done
 
2821
  done
 
2822
IFS=$as_save_IFS
 
2823
 
 
2824
fi
 
2825
fi
 
2826
CC=$ac_cv_prog_CC
 
2827
if test -n "$CC"; then
 
2828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2829
$as_echo "$CC" >&6; }
 
2830
else
 
2831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2832
$as_echo "no" >&6; }
 
2833
fi
 
2834
 
 
2835
 
 
2836
fi
 
2837
if test -z "$ac_cv_prog_CC"; then
 
2838
  ac_ct_CC=$CC
 
2839
  # Extract the first word of "gcc", so it can be a program name with args.
 
2840
set dummy gcc; ac_word=$2
 
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2842
$as_echo_n "checking for $ac_word... " >&6; }
 
2843
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2844
  $as_echo_n "(cached) " >&6
 
2845
else
 
2846
  if test -n "$ac_ct_CC"; then
 
2847
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2848
else
 
2849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2850
for as_dir in $PATH
 
2851
do
 
2852
  IFS=$as_save_IFS
 
2853
  test -z "$as_dir" && as_dir=.
 
2854
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2855
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2856
    ac_cv_prog_ac_ct_CC="gcc"
 
2857
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2858
    break 2
 
2859
  fi
 
2860
done
 
2861
  done
 
2862
IFS=$as_save_IFS
 
2863
 
 
2864
fi
 
2865
fi
 
2866
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2867
if test -n "$ac_ct_CC"; then
 
2868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2869
$as_echo "$ac_ct_CC" >&6; }
 
2870
else
 
2871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2872
$as_echo "no" >&6; }
 
2873
fi
 
2874
 
 
2875
  if test "x$ac_ct_CC" = x; then
 
2876
    CC=""
 
2877
  else
 
2878
    case $cross_compiling:$ac_tool_warned in
 
2879
yes:)
 
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2881
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2882
ac_tool_warned=yes ;;
 
2883
esac
 
2884
    CC=$ac_ct_CC
 
2885
  fi
 
2886
else
 
2887
  CC="$ac_cv_prog_CC"
 
2888
fi
 
2889
 
 
2890
if test -z "$CC"; then
 
2891
          if test -n "$ac_tool_prefix"; then
 
2892
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2893
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2895
$as_echo_n "checking for $ac_word... " >&6; }
 
2896
if test "${ac_cv_prog_CC+set}" = set; then :
 
2897
  $as_echo_n "(cached) " >&6
 
2898
else
 
2899
  if test -n "$CC"; then
 
2900
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2901
else
 
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2903
for as_dir in $PATH
 
2904
do
 
2905
  IFS=$as_save_IFS
 
2906
  test -z "$as_dir" && as_dir=.
 
2907
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2909
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2910
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2911
    break 2
 
2912
  fi
 
2913
done
 
2914
  done
 
2915
IFS=$as_save_IFS
 
2916
 
 
2917
fi
 
2918
fi
 
2919
CC=$ac_cv_prog_CC
 
2920
if test -n "$CC"; then
 
2921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2922
$as_echo "$CC" >&6; }
 
2923
else
 
2924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2925
$as_echo "no" >&6; }
 
2926
fi
 
2927
 
 
2928
 
 
2929
  fi
 
2930
fi
 
2931
if test -z "$CC"; then
 
2932
  # Extract the first word of "cc", so it can be a program name with args.
 
2933
set dummy cc; ac_word=$2
 
2934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2935
$as_echo_n "checking for $ac_word... " >&6; }
 
2936
if test "${ac_cv_prog_CC+set}" = set; then :
 
2937
  $as_echo_n "(cached) " >&6
 
2938
else
 
2939
  if test -n "$CC"; then
 
2940
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2941
else
 
2942
  ac_prog_rejected=no
 
2943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2944
for as_dir in $PATH
 
2945
do
 
2946
  IFS=$as_save_IFS
 
2947
  test -z "$as_dir" && as_dir=.
 
2948
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2950
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2951
       ac_prog_rejected=yes
 
2952
       continue
 
2953
     fi
 
2954
    ac_cv_prog_CC="cc"
 
2955
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2956
    break 2
 
2957
  fi
 
2958
done
 
2959
  done
 
2960
IFS=$as_save_IFS
 
2961
 
 
2962
if test $ac_prog_rejected = yes; then
 
2963
  # We found a bogon in the path, so make sure we never use it.
 
2964
  set dummy $ac_cv_prog_CC
 
2965
  shift
 
2966
  if test $# != 0; then
 
2967
    # We chose a different compiler from the bogus one.
 
2968
    # However, it has the same basename, so the bogon will be chosen
 
2969
    # first if we set CC to just the basename; use the full file name.
 
2970
    shift
 
2971
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2972
  fi
 
2973
fi
 
2974
fi
 
2975
fi
 
2976
CC=$ac_cv_prog_CC
 
2977
if test -n "$CC"; then
 
2978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2979
$as_echo "$CC" >&6; }
 
2980
else
 
2981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2982
$as_echo "no" >&6; }
 
2983
fi
 
2984
 
 
2985
 
 
2986
fi
 
2987
if test -z "$CC"; then
 
2988
  if test -n "$ac_tool_prefix"; then
 
2989
  for ac_prog in cl.exe
 
2990
  do
 
2991
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2992
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2994
$as_echo_n "checking for $ac_word... " >&6; }
 
2995
if test "${ac_cv_prog_CC+set}" = set; then :
 
2996
  $as_echo_n "(cached) " >&6
 
2997
else
 
2998
  if test -n "$CC"; then
 
2999
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3000
else
 
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3002
for as_dir in $PATH
 
3003
do
 
3004
  IFS=$as_save_IFS
 
3005
  test -z "$as_dir" && as_dir=.
 
3006
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3007
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3008
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3009
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3010
    break 2
 
3011
  fi
 
3012
done
 
3013
  done
 
3014
IFS=$as_save_IFS
 
3015
 
 
3016
fi
 
3017
fi
 
3018
CC=$ac_cv_prog_CC
 
3019
if test -n "$CC"; then
 
3020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3021
$as_echo "$CC" >&6; }
 
3022
else
 
3023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3024
$as_echo "no" >&6; }
 
3025
fi
 
3026
 
 
3027
 
 
3028
    test -n "$CC" && break
 
3029
  done
 
3030
fi
 
3031
if test -z "$CC"; then
 
3032
  ac_ct_CC=$CC
 
3033
  for ac_prog in cl.exe
 
3034
do
 
3035
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3036
set dummy $ac_prog; ac_word=$2
 
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3038
$as_echo_n "checking for $ac_word... " >&6; }
 
3039
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3040
  $as_echo_n "(cached) " >&6
 
3041
else
 
3042
  if test -n "$ac_ct_CC"; then
 
3043
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3044
else
 
3045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3046
for as_dir in $PATH
 
3047
do
 
3048
  IFS=$as_save_IFS
 
3049
  test -z "$as_dir" && as_dir=.
 
3050
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3051
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3052
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3053
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3054
    break 2
 
3055
  fi
 
3056
done
 
3057
  done
 
3058
IFS=$as_save_IFS
 
3059
 
 
3060
fi
 
3061
fi
 
3062
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3063
if test -n "$ac_ct_CC"; then
 
3064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3065
$as_echo "$ac_ct_CC" >&6; }
 
3066
else
 
3067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3068
$as_echo "no" >&6; }
 
3069
fi
 
3070
 
 
3071
 
 
3072
  test -n "$ac_ct_CC" && break
 
3073
done
 
3074
 
 
3075
  if test "x$ac_ct_CC" = x; then
 
3076
    CC=""
 
3077
  else
 
3078
    case $cross_compiling:$ac_tool_warned in
 
3079
yes:)
 
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3081
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3082
ac_tool_warned=yes ;;
 
3083
esac
 
3084
    CC=$ac_ct_CC
 
3085
  fi
 
3086
fi
 
3087
 
 
3088
fi
 
3089
 
 
3090
 
 
3091
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3092
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3093
as_fn_error "no acceptable C compiler found in \$PATH
 
3094
See \`config.log' for more details." "$LINENO" 5; }
 
3095
 
 
3096
# Provide some information about the compiler.
 
3097
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3098
set X $ac_compile
 
3099
ac_compiler=$2
 
3100
for ac_option in --version -v -V -qversion; do
 
3101
  { { ac_try="$ac_compiler $ac_option >&5"
 
3102
case "(($ac_try" in
 
3103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3104
  *) ac_try_echo=$ac_try;;
 
3105
esac
 
3106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3107
$as_echo "$ac_try_echo"; } >&5
 
3108
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3109
  ac_status=$?
 
3110
  if test -s conftest.err; then
 
3111
    sed '10a\
 
3112
... rest of stderr output deleted ...
 
3113
         10q' conftest.err >conftest.er1
 
3114
    cat conftest.er1 >&5
 
3115
  fi
 
3116
  rm -f conftest.er1 conftest.err
 
3117
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3118
  test $ac_status = 0; }
 
3119
done
 
3120
 
 
3121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3122
/* end confdefs.h.  */
 
3123
 
 
3124
int
 
3125
main ()
 
3126
{
 
3127
 
 
3128
  ;
 
3129
  return 0;
 
3130
}
 
3131
_ACEOF
 
3132
ac_clean_files_save=$ac_clean_files
 
3133
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3134
# Try to create an executable without -o first, disregard a.out.
 
3135
# It will help us diagnose broken compilers, and finding out an intuition
 
3136
# of exeext.
 
3137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3138
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3139
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3140
 
 
3141
# The possible output files:
 
3142
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3143
 
 
3144
ac_rmfiles=
 
3145
for ac_file in $ac_files
 
3146
do
 
3147
  case $ac_file in
 
3148
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3149
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3150
  esac
 
3151
done
 
3152
rm -f $ac_rmfiles
 
3153
 
 
3154
if { { ac_try="$ac_link_default"
 
3155
case "(($ac_try" in
 
3156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3157
  *) ac_try_echo=$ac_try;;
 
3158
esac
 
3159
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3160
$as_echo "$ac_try_echo"; } >&5
 
3161
  (eval "$ac_link_default") 2>&5
 
3162
  ac_status=$?
 
3163
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3164
  test $ac_status = 0; }; then :
 
3165
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3166
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3167
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3168
# so that the user can short-circuit this test for compilers unknown to
 
3169
# Autoconf.
 
3170
for ac_file in $ac_files ''
 
3171
do
 
3172
  test -f "$ac_file" || continue
 
3173
  case $ac_file in
 
3174
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3175
        ;;
 
3176
    [ab].out )
 
3177
        # We found the default executable, but exeext='' is most
 
3178
        # certainly right.
 
3179
        break;;
 
3180
    *.* )
 
3181
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3182
        then :; else
 
3183
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3184
        fi
 
3185
        # We set ac_cv_exeext here because the later test for it is not
 
3186
        # safe: cross compilers may not add the suffix if given an `-o'
 
3187
        # argument, so we may need to know it at that point already.
 
3188
        # Even if this section looks crufty: it has the advantage of
 
3189
        # actually working.
 
3190
        break;;
 
3191
    * )
 
3192
        break;;
 
3193
  esac
 
3194
done
 
3195
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3196
 
 
3197
else
 
3198
  ac_file=''
 
3199
fi
 
3200
if test -z "$ac_file"; then :
 
3201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3202
$as_echo "no" >&6; }
 
3203
$as_echo "$as_me: failed program was:" >&5
 
3204
sed 's/^/| /' conftest.$ac_ext >&5
 
3205
 
 
3206
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3207
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3208
{ as_fn_set_status 77
 
3209
as_fn_error "C compiler cannot create executables
 
3210
See \`config.log' for more details." "$LINENO" 5; }; }
 
3211
else
 
3212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3213
$as_echo "yes" >&6; }
 
3214
fi
 
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3216
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3218
$as_echo "$ac_file" >&6; }
 
3219
ac_exeext=$ac_cv_exeext
 
3220
 
 
3221
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3222
ac_clean_files=$ac_clean_files_save
 
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3224
$as_echo_n "checking for suffix of executables... " >&6; }
 
3225
if { { ac_try="$ac_link"
 
3226
case "(($ac_try" in
 
3227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3228
  *) ac_try_echo=$ac_try;;
 
3229
esac
 
3230
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3231
$as_echo "$ac_try_echo"; } >&5
 
3232
  (eval "$ac_link") 2>&5
 
3233
  ac_status=$?
 
3234
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3235
  test $ac_status = 0; }; then :
 
3236
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3237
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3238
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3239
# `rm'.
 
3240
for ac_file in conftest.exe conftest conftest.*; do
 
3241
  test -f "$ac_file" || continue
 
3242
  case $ac_file in
 
3243
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3244
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3245
          break;;
 
3246
    * ) break;;
 
3247
  esac
 
3248
done
 
3249
else
 
3250
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3251
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3252
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3253
See \`config.log' for more details." "$LINENO" 5; }
 
3254
fi
 
3255
rm -f conftest conftest$ac_cv_exeext
 
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3257
$as_echo "$ac_cv_exeext" >&6; }
 
3258
 
 
3259
rm -f conftest.$ac_ext
 
3260
EXEEXT=$ac_cv_exeext
 
3261
ac_exeext=$EXEEXT
 
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3263
/* end confdefs.h.  */
 
3264
#include <stdio.h>
 
3265
int
 
3266
main ()
 
3267
{
 
3268
FILE *f = fopen ("conftest.out", "w");
 
3269
 return ferror (f) || fclose (f) != 0;
 
3270
 
 
3271
  ;
 
3272
  return 0;
 
3273
}
 
3274
_ACEOF
 
3275
ac_clean_files="$ac_clean_files conftest.out"
 
3276
# Check that the compiler produces executables we can run.  If not, either
 
3277
# the compiler is broken, or we cross compile.
 
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3279
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3280
if test "$cross_compiling" != yes; then
 
3281
  { { ac_try="$ac_link"
 
3282
case "(($ac_try" in
 
3283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3284
  *) ac_try_echo=$ac_try;;
 
3285
esac
 
3286
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3287
$as_echo "$ac_try_echo"; } >&5
 
3288
  (eval "$ac_link") 2>&5
 
3289
  ac_status=$?
 
3290
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3291
  test $ac_status = 0; }
 
3292
  if { ac_try='./conftest$ac_cv_exeext'
 
3293
  { { case "(($ac_try" in
 
3294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3295
  *) ac_try_echo=$ac_try;;
 
3296
esac
 
3297
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3298
$as_echo "$ac_try_echo"; } >&5
 
3299
  (eval "$ac_try") 2>&5
 
3300
  ac_status=$?
 
3301
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3302
  test $ac_status = 0; }; }; then
 
3303
    cross_compiling=no
 
3304
  else
 
3305
    if test "$cross_compiling" = maybe; then
 
3306
        cross_compiling=yes
 
3307
    else
 
3308
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3310
as_fn_error "cannot run C compiled programs.
 
3311
If you meant to cross compile, use \`--host'.
 
3312
See \`config.log' for more details." "$LINENO" 5; }
 
3313
    fi
 
3314
  fi
 
3315
fi
 
3316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3317
$as_echo "$cross_compiling" >&6; }
 
3318
 
 
3319
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3320
ac_clean_files=$ac_clean_files_save
 
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3322
$as_echo_n "checking for suffix of object files... " >&6; }
 
3323
if test "${ac_cv_objext+set}" = set; then :
 
3324
  $as_echo_n "(cached) " >&6
 
3325
else
 
3326
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3327
/* end confdefs.h.  */
 
3328
 
 
3329
int
 
3330
main ()
 
3331
{
 
3332
 
 
3333
  ;
 
3334
  return 0;
 
3335
}
 
3336
_ACEOF
 
3337
rm -f conftest.o conftest.obj
 
3338
if { { ac_try="$ac_compile"
 
3339
case "(($ac_try" in
 
3340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3341
  *) ac_try_echo=$ac_try;;
 
3342
esac
 
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3344
$as_echo "$ac_try_echo"; } >&5
 
3345
  (eval "$ac_compile") 2>&5
 
3346
  ac_status=$?
 
3347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3348
  test $ac_status = 0; }; then :
 
3349
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3350
  test -f "$ac_file" || continue;
 
3351
  case $ac_file in
 
3352
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3353
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3354
       break;;
 
3355
  esac
 
3356
done
 
3357
else
 
3358
  $as_echo "$as_me: failed program was:" >&5
 
3359
sed 's/^/| /' conftest.$ac_ext >&5
 
3360
 
 
3361
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3362
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3363
as_fn_error "cannot compute suffix of object files: cannot compile
 
3364
See \`config.log' for more details." "$LINENO" 5; }
 
3365
fi
 
3366
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3367
fi
 
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3369
$as_echo "$ac_cv_objext" >&6; }
 
3370
OBJEXT=$ac_cv_objext
 
3371
ac_objext=$OBJEXT
 
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3373
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3374
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3375
  $as_echo_n "(cached) " >&6
 
3376
else
 
3377
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3378
/* end confdefs.h.  */
 
3379
 
 
3380
int
 
3381
main ()
 
3382
{
 
3383
#ifndef __GNUC__
 
3384
       choke me
 
3385
#endif
 
3386
 
 
3387
  ;
 
3388
  return 0;
 
3389
}
 
3390
_ACEOF
 
3391
if ac_fn_c_try_compile "$LINENO"; then :
 
3392
  ac_compiler_gnu=yes
 
3393
else
 
3394
  ac_compiler_gnu=no
 
3395
fi
 
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3397
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3398
 
 
3399
fi
 
3400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3401
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3402
if test $ac_compiler_gnu = yes; then
 
3403
  GCC=yes
 
3404
else
 
3405
  GCC=
 
3406
fi
 
3407
ac_test_CFLAGS=${CFLAGS+set}
 
3408
ac_save_CFLAGS=$CFLAGS
 
3409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3410
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3411
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3412
  $as_echo_n "(cached) " >&6
 
3413
else
 
3414
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3415
   ac_c_werror_flag=yes
 
3416
   ac_cv_prog_cc_g=no
 
3417
   CFLAGS="-g"
 
3418
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3419
/* end confdefs.h.  */
 
3420
 
 
3421
int
 
3422
main ()
 
3423
{
 
3424
 
 
3425
  ;
 
3426
  return 0;
 
3427
}
 
3428
_ACEOF
 
3429
if ac_fn_c_try_compile "$LINENO"; then :
 
3430
  ac_cv_prog_cc_g=yes
 
3431
else
 
3432
  CFLAGS=""
 
3433
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3434
/* end confdefs.h.  */
 
3435
 
 
3436
int
 
3437
main ()
 
3438
{
 
3439
 
 
3440
  ;
 
3441
  return 0;
 
3442
}
 
3443
_ACEOF
 
3444
if ac_fn_c_try_compile "$LINENO"; then :
 
3445
 
 
3446
else
 
3447
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3448
         CFLAGS="-g"
 
3449
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3450
/* end confdefs.h.  */
 
3451
 
 
3452
int
 
3453
main ()
 
3454
{
 
3455
 
 
3456
  ;
 
3457
  return 0;
 
3458
}
 
3459
_ACEOF
 
3460
if ac_fn_c_try_compile "$LINENO"; then :
 
3461
  ac_cv_prog_cc_g=yes
 
3462
fi
 
3463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3464
fi
 
3465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3466
fi
 
3467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3468
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3469
fi
 
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3471
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3472
if test "$ac_test_CFLAGS" = set; then
 
3473
  CFLAGS=$ac_save_CFLAGS
 
3474
elif test $ac_cv_prog_cc_g = yes; then
 
3475
  if test "$GCC" = yes; then
 
3476
    CFLAGS="-g -O2"
 
3477
  else
 
3478
    CFLAGS="-g"
 
3479
  fi
 
3480
else
 
3481
  if test "$GCC" = yes; then
 
3482
    CFLAGS="-O2"
 
3483
  else
 
3484
    CFLAGS=
 
3485
  fi
 
3486
fi
 
3487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3488
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3489
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3490
  $as_echo_n "(cached) " >&6
 
3491
else
 
3492
  ac_cv_prog_cc_c89=no
 
3493
ac_save_CC=$CC
 
3494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3495
/* end confdefs.h.  */
 
3496
#include <stdarg.h>
 
3497
#include <stdio.h>
 
3498
#include <sys/types.h>
 
3499
#include <sys/stat.h>
 
3500
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3501
struct buf { int x; };
 
3502
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3503
static char *e (p, i)
 
3504
     char **p;
 
3505
     int i;
 
3506
{
 
3507
  return p[i];
 
3508
}
 
3509
static char *f (char * (*g) (char **, int), char **p, ...)
 
3510
{
 
3511
  char *s;
 
3512
  va_list v;
 
3513
  va_start (v,p);
 
3514
  s = g (p, va_arg (v,int));
 
3515
  va_end (v);
 
3516
  return s;
 
3517
}
 
3518
 
 
3519
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3520
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3521
   These don't provoke an error unfortunately, instead are silently treated
 
3522
   as 'x'.  The following induces an error, until -std is added to get
 
3523
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3524
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3525
   that's true only with -std.  */
 
3526
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3527
 
 
3528
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3529
   inside strings and character constants.  */
 
3530
#define FOO(x) 'x'
 
3531
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3532
 
 
3533
int test (int i, double x);
 
3534
struct s1 {int (*f) (int a);};
 
3535
struct s2 {int (*f) (double a);};
 
3536
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3537
int argc;
 
3538
char **argv;
 
3539
int
 
3540
main ()
 
3541
{
 
3542
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3543
  ;
 
3544
  return 0;
 
3545
}
 
3546
_ACEOF
 
3547
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3548
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3549
do
 
3550
  CC="$ac_save_CC $ac_arg"
 
3551
  if ac_fn_c_try_compile "$LINENO"; then :
 
3552
  ac_cv_prog_cc_c89=$ac_arg
 
3553
fi
 
3554
rm -f core conftest.err conftest.$ac_objext
 
3555
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3556
done
 
3557
rm -f conftest.$ac_ext
 
3558
CC=$ac_save_CC
 
3559
 
 
3560
fi
 
3561
# AC_CACHE_VAL
 
3562
case "x$ac_cv_prog_cc_c89" in
 
3563
  x)
 
3564
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3565
$as_echo "none needed" >&6; } ;;
 
3566
  xno)
 
3567
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3568
$as_echo "unsupported" >&6; } ;;
 
3569
  *)
 
3570
    CC="$CC $ac_cv_prog_cc_c89"
 
3571
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3572
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3573
esac
 
3574
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3575
 
 
3576
fi
 
3577
 
 
3578
ac_ext=c
 
3579
ac_cpp='$CPP $CPPFLAGS'
 
3580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3583
 
 
3584
 
 
3585
ac_ext=c
 
3586
ac_cpp='$CPP $CPPFLAGS'
 
3587
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3588
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3589
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3591
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3592
# On Suns, sometimes $CPP names a directory.
 
3593
if test -n "$CPP" && test -d "$CPP"; then
 
3594
  CPP=
 
3595
fi
 
3596
if test -z "$CPP"; then
 
3597
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3598
  $as_echo_n "(cached) " >&6
 
3599
else
 
3600
      # Double quotes because CPP needs to be expanded
 
3601
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3602
    do
 
3603
      ac_preproc_ok=false
 
3604
for ac_c_preproc_warn_flag in '' yes
 
3605
do
 
3606
  # Use a header file that comes with gcc, so configuring glibc
 
3607
  # with a fresh cross-compiler works.
 
3608
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3609
  # <limits.h> exists even on freestanding compilers.
 
3610
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3611
  # not just through cpp. "Syntax error" is here to catch this case.
 
3612
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3613
/* end confdefs.h.  */
 
3614
#ifdef __STDC__
 
3615
# include <limits.h>
 
3616
#else
 
3617
# include <assert.h>
 
3618
#endif
 
3619
                     Syntax error
 
3620
_ACEOF
 
3621
if ac_fn_c_try_cpp "$LINENO"; then :
 
3622
 
 
3623
else
 
3624
  # Broken: fails on valid input.
 
3625
continue
 
3626
fi
 
3627
rm -f conftest.err conftest.$ac_ext
 
3628
 
 
3629
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3630
  # can be detected and how.
 
3631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3632
/* end confdefs.h.  */
 
3633
#include <ac_nonexistent.h>
 
3634
_ACEOF
 
3635
if ac_fn_c_try_cpp "$LINENO"; then :
 
3636
  # Broken: success on invalid input.
 
3637
continue
 
3638
else
 
3639
  # Passes both tests.
 
3640
ac_preproc_ok=:
 
3641
break
 
3642
fi
 
3643
rm -f conftest.err conftest.$ac_ext
 
3644
 
 
3645
done
 
3646
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3647
rm -f conftest.err conftest.$ac_ext
 
3648
if $ac_preproc_ok; then :
 
3649
  break
 
3650
fi
 
3651
 
 
3652
    done
 
3653
    ac_cv_prog_CPP=$CPP
 
3654
 
 
3655
fi
 
3656
  CPP=$ac_cv_prog_CPP
 
3657
else
 
3658
  ac_cv_prog_CPP=$CPP
 
3659
fi
 
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3661
$as_echo "$CPP" >&6; }
 
3662
ac_preproc_ok=false
 
3663
for ac_c_preproc_warn_flag in '' yes
 
3664
do
 
3665
  # Use a header file that comes with gcc, so configuring glibc
 
3666
  # with a fresh cross-compiler works.
 
3667
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3668
  # <limits.h> exists even on freestanding compilers.
 
3669
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3670
  # not just through cpp. "Syntax error" is here to catch this case.
 
3671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3672
/* end confdefs.h.  */
 
3673
#ifdef __STDC__
 
3674
# include <limits.h>
 
3675
#else
 
3676
# include <assert.h>
 
3677
#endif
 
3678
                     Syntax error
 
3679
_ACEOF
 
3680
if ac_fn_c_try_cpp "$LINENO"; then :
 
3681
 
 
3682
else
 
3683
  # Broken: fails on valid input.
 
3684
continue
 
3685
fi
 
3686
rm -f conftest.err conftest.$ac_ext
 
3687
 
 
3688
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3689
  # can be detected and how.
 
3690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3691
/* end confdefs.h.  */
 
3692
#include <ac_nonexistent.h>
 
3693
_ACEOF
 
3694
if ac_fn_c_try_cpp "$LINENO"; then :
 
3695
  # Broken: success on invalid input.
 
3696
continue
 
3697
else
 
3698
  # Passes both tests.
 
3699
ac_preproc_ok=:
 
3700
break
 
3701
fi
 
3702
rm -f conftest.err conftest.$ac_ext
 
3703
 
 
3704
done
 
3705
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3706
rm -f conftest.err conftest.$ac_ext
 
3707
if $ac_preproc_ok; then :
 
3708
 
 
3709
else
 
3710
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3711
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3712
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
3713
See \`config.log' for more details." "$LINENO" 5; }
 
3714
fi
 
3715
 
 
3716
ac_ext=c
 
3717
ac_cpp='$CPP $CPPFLAGS'
 
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3721
 
 
3722
 
 
3723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3724
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3725
if test "${ac_cv_path_GREP+set}" = set; then :
 
3726
  $as_echo_n "(cached) " >&6
 
3727
else
 
3728
  if test -z "$GREP"; then
 
3729
  ac_path_GREP_found=false
 
3730
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3731
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3732
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3733
do
 
3734
  IFS=$as_save_IFS
 
3735
  test -z "$as_dir" && as_dir=.
 
3736
    for ac_prog in grep ggrep; do
 
3737
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3738
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3739
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3740
# Check for GNU ac_path_GREP and select it if it is found.
 
3741
  # Check for GNU $ac_path_GREP
 
3742
case `"$ac_path_GREP" --version 2>&1` in
 
3743
*GNU*)
 
3744
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3745
*)
 
3746
  ac_count=0
 
3747
  $as_echo_n 0123456789 >"conftest.in"
 
3748
  while :
 
3749
  do
 
3750
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3751
    mv "conftest.tmp" "conftest.in"
 
3752
    cp "conftest.in" "conftest.nl"
 
3753
    $as_echo 'GREP' >> "conftest.nl"
 
3754
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3755
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3756
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3757
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3758
      # Best one so far, save it but keep looking for a better one
 
3759
      ac_cv_path_GREP="$ac_path_GREP"
 
3760
      ac_path_GREP_max=$ac_count
 
3761
    fi
 
3762
    # 10*(2^10) chars as input seems more than enough
 
3763
    test $ac_count -gt 10 && break
 
3764
  done
 
3765
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3766
esac
 
3767
 
 
3768
      $ac_path_GREP_found && break 3
 
3769
    done
 
3770
  done
 
3771
  done
 
3772
IFS=$as_save_IFS
 
3773
  if test -z "$ac_cv_path_GREP"; then
 
3774
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3775
  fi
 
3776
else
 
3777
  ac_cv_path_GREP=$GREP
 
3778
fi
 
3779
 
 
3780
fi
 
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3782
$as_echo "$ac_cv_path_GREP" >&6; }
 
3783
 GREP="$ac_cv_path_GREP"
 
3784
 
 
3785
 
 
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3787
$as_echo_n "checking for egrep... " >&6; }
 
3788
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3789
  $as_echo_n "(cached) " >&6
 
3790
else
 
3791
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3792
   then ac_cv_path_EGREP="$GREP -E"
 
3793
   else
 
3794
     if test -z "$EGREP"; then
 
3795
  ac_path_EGREP_found=false
 
3796
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3797
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3798
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3799
do
 
3800
  IFS=$as_save_IFS
 
3801
  test -z "$as_dir" && as_dir=.
 
3802
    for ac_prog in egrep; do
 
3803
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3804
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3805
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3806
# Check for GNU ac_path_EGREP and select it if it is found.
 
3807
  # Check for GNU $ac_path_EGREP
 
3808
case `"$ac_path_EGREP" --version 2>&1` in
 
3809
*GNU*)
 
3810
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3811
*)
 
3812
  ac_count=0
 
3813
  $as_echo_n 0123456789 >"conftest.in"
 
3814
  while :
 
3815
  do
 
3816
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3817
    mv "conftest.tmp" "conftest.in"
 
3818
    cp "conftest.in" "conftest.nl"
 
3819
    $as_echo 'EGREP' >> "conftest.nl"
 
3820
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3821
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3822
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3823
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3824
      # Best one so far, save it but keep looking for a better one
 
3825
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3826
      ac_path_EGREP_max=$ac_count
 
3827
    fi
 
3828
    # 10*(2^10) chars as input seems more than enough
 
3829
    test $ac_count -gt 10 && break
 
3830
  done
 
3831
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3832
esac
 
3833
 
 
3834
      $ac_path_EGREP_found && break 3
 
3835
    done
 
3836
  done
 
3837
  done
 
3838
IFS=$as_save_IFS
 
3839
  if test -z "$ac_cv_path_EGREP"; then
 
3840
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3841
  fi
 
3842
else
 
3843
  ac_cv_path_EGREP=$EGREP
 
3844
fi
 
3845
 
 
3846
   fi
 
3847
fi
 
3848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3849
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3850
 EGREP="$ac_cv_path_EGREP"
 
3851
 
 
3852
 
 
3853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3854
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3855
if test "${ac_cv_header_stdc+set}" = set; then :
 
3856
  $as_echo_n "(cached) " >&6
 
3857
else
 
3858
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3859
/* end confdefs.h.  */
 
3860
#include <stdlib.h>
 
3861
#include <stdarg.h>
 
3862
#include <string.h>
 
3863
#include <float.h>
 
3864
 
 
3865
int
 
3866
main ()
 
3867
{
 
3868
 
 
3869
  ;
 
3870
  return 0;
 
3871
}
 
3872
_ACEOF
 
3873
if ac_fn_c_try_compile "$LINENO"; then :
 
3874
  ac_cv_header_stdc=yes
 
3875
else
 
3876
  ac_cv_header_stdc=no
 
3877
fi
 
3878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3879
 
 
3880
if test $ac_cv_header_stdc = yes; then
 
3881
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3883
/* end confdefs.h.  */
 
3884
#include <string.h>
 
3885
 
 
3886
_ACEOF
 
3887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3888
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3889
 
 
3890
else
 
3891
  ac_cv_header_stdc=no
 
3892
fi
 
3893
rm -f conftest*
 
3894
 
 
3895
fi
 
3896
 
 
3897
if test $ac_cv_header_stdc = yes; then
 
3898
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3899
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3900
/* end confdefs.h.  */
 
3901
#include <stdlib.h>
 
3902
 
 
3903
_ACEOF
 
3904
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3905
  $EGREP "free" >/dev/null 2>&1; then :
 
3906
 
 
3907
else
 
3908
  ac_cv_header_stdc=no
 
3909
fi
 
3910
rm -f conftest*
 
3911
 
 
3912
fi
 
3913
 
 
3914
if test $ac_cv_header_stdc = yes; then
 
3915
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3916
  if test "$cross_compiling" = yes; then :
 
3917
  :
 
3918
else
 
3919
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3920
/* end confdefs.h.  */
 
3921
#include <ctype.h>
 
3922
#include <stdlib.h>
 
3923
#if ((' ' & 0x0FF) == 0x020)
 
3924
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3925
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3926
#else
 
3927
# define ISLOWER(c) \
 
3928
                   (('a' <= (c) && (c) <= 'i') \
 
3929
                     || ('j' <= (c) && (c) <= 'r') \
 
3930
                     || ('s' <= (c) && (c) <= 'z'))
 
3931
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3932
#endif
 
3933
 
 
3934
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3935
int
 
3936
main ()
 
3937
{
 
3938
  int i;
 
3939
  for (i = 0; i < 256; i++)
 
3940
    if (XOR (islower (i), ISLOWER (i))
 
3941
        || toupper (i) != TOUPPER (i))
 
3942
      return 2;
 
3943
  return 0;
 
3944
}
 
3945
_ACEOF
 
3946
if ac_fn_c_try_run "$LINENO"; then :
 
3947
 
 
3948
else
 
3949
  ac_cv_header_stdc=no
 
3950
fi
 
3951
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
3952
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3953
fi
 
3954
 
 
3955
fi
 
3956
fi
 
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
3958
$as_echo "$ac_cv_header_stdc" >&6; }
 
3959
if test $ac_cv_header_stdc = yes; then
 
3960
 
 
3961
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
3962
 
 
3963
fi
 
3964
 
 
3965
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3966
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3967
                  inttypes.h stdint.h unistd.h
 
3968
do :
 
3969
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3970
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3971
"
 
3972
eval as_val=\$$as_ac_Header
 
3973
   if test "x$as_val" = x""yes; then :
 
3974
  cat >>confdefs.h <<_ACEOF
 
3975
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3976
_ACEOF
 
3977
 
 
3978
fi
 
3979
 
 
3980
done
 
3981
 
 
3982
 
 
3983
 
 
3984
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
3985
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
3986
  MINIX=yes
 
3987
else
 
3988
  MINIX=
 
3989
fi
 
3990
 
 
3991
 
 
3992
  if test "$MINIX" = yes; then
 
3993
 
 
3994
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
3995
 
 
3996
 
 
3997
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
3998
 
 
3999
 
 
4000
$as_echo "#define _MINIX 1" >>confdefs.h
 
4001
 
 
4002
  fi
 
4003
 
 
4004
 
 
4005
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4006
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4007
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
4008
  $as_echo_n "(cached) " >&6
 
4009
else
 
4010
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4011
/* end confdefs.h.  */
 
4012
 
 
4013
#         define __EXTENSIONS__ 1
 
4014
          $ac_includes_default
 
4015
int
 
4016
main ()
 
4017
{
 
4018
 
 
4019
  ;
 
4020
  return 0;
 
4021
}
 
4022
_ACEOF
 
4023
if ac_fn_c_try_compile "$LINENO"; then :
 
4024
  ac_cv_safe_to_define___extensions__=yes
 
4025
else
 
4026
  ac_cv_safe_to_define___extensions__=no
 
4027
fi
 
4028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4029
fi
 
4030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4031
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4032
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4033
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4034
 
 
4035
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4036
 
 
4037
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4038
 
 
4039
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4040
 
 
4041
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4042
 
 
4043
 
 
4044
 
 
4045
 
 
4046
 
 
4047
cat >>confdefs.h <<_ACEOF
 
4048
#define CANONICAL_TARGET "$target"
 
4049
_ACEOF
 
4050
 
 
4051
 
 
4052
cat >>confdefs.h <<_ACEOF
 
4053
#define CANONICAL_HOST "$host"
 
4054
_ACEOF
 
4055
 
 
4056
 
 
4057
am__api_version='1.11'
 
4058
 
 
4059
# Find a good install program.  We prefer a C program (faster),
 
4060
# so one script is as good as another.  But avoid the broken or
 
4061
# incompatible versions:
 
4062
# SysV /etc/install, /usr/sbin/install
 
4063
# SunOS /usr/etc/install
 
4064
# IRIX /sbin/install
 
4065
# AIX /bin/install
 
4066
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4067
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4068
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4069
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4070
# OS/2's system install, which has a completely different semantic
 
4071
# ./install, which can be erroneously created by make from ./install.sh.
 
4072
# Reject install programs that cannot install multiple files.
 
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
4074
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
4075
if test -z "$INSTALL"; then
 
4076
if test "${ac_cv_path_install+set}" = set; then :
 
4077
  $as_echo_n "(cached) " >&6
 
4078
else
 
4079
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4080
for as_dir in $PATH
 
4081
do
 
4082
  IFS=$as_save_IFS
 
4083
  test -z "$as_dir" && as_dir=.
 
4084
    # Account for people who put trailing slashes in PATH elements.
 
4085
case $as_dir/ in #((
 
4086
  ./ | .// | /[cC]/* | \
 
4087
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4088
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
4089
  /usr/ucb/* ) ;;
 
4090
  *)
 
4091
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4092
    # Don't use installbsd from OSF since it installs stuff as root
 
4093
    # by default.
 
4094
    for ac_prog in ginstall scoinst install; do
 
4095
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4096
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
4097
          if test $ac_prog = install &&
 
4098
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4099
            # AIX install.  It has an incompatible calling convention.
 
4100
            :
 
4101
          elif test $ac_prog = install &&
 
4102
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4103
            # program-specific install script used by HP pwplus--don't use.
 
4104
            :
 
4105
          else
 
4106
            rm -rf conftest.one conftest.two conftest.dir
 
4107
            echo one > conftest.one
 
4108
            echo two > conftest.two
 
4109
            mkdir conftest.dir
 
4110
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
4111
              test -s conftest.one && test -s conftest.two &&
 
4112
              test -s conftest.dir/conftest.one &&
 
4113
              test -s conftest.dir/conftest.two
 
4114
            then
 
4115
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4116
              break 3
 
4117
            fi
 
4118
          fi
 
4119
        fi
 
4120
      done
 
4121
    done
 
4122
    ;;
 
4123
esac
 
4124
 
 
4125
  done
 
4126
IFS=$as_save_IFS
 
4127
 
 
4128
rm -rf conftest.one conftest.two conftest.dir
 
4129
 
 
4130
fi
 
4131
  if test "${ac_cv_path_install+set}" = set; then
 
4132
    INSTALL=$ac_cv_path_install
 
4133
  else
 
4134
    # As a last resort, use the slow shell script.  Don't cache a
 
4135
    # value for INSTALL within a source directory, because that will
 
4136
    # break other packages using the cache if that directory is
 
4137
    # removed, or if the value is a relative name.
 
4138
    INSTALL=$ac_install_sh
 
4139
  fi
 
4140
fi
 
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
4142
$as_echo "$INSTALL" >&6; }
 
4143
 
 
4144
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4145
# It thinks the first close brace ends the variable substitution.
 
4146
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4147
 
 
4148
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4149
 
 
4150
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4151
 
 
4152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
4153
$as_echo_n "checking whether build environment is sane... " >&6; }
 
4154
# Just in case
 
4155
sleep 1
 
4156
echo timestamp > conftest.file
 
4157
# Reject unsafe characters in $srcdir or the absolute working directory
 
4158
# name.  Accept space and tab only in the latter.
 
4159
am_lf='
 
4160
'
 
4161
case `pwd` in
 
4162
  *[\\\"\#\$\&\'\`$am_lf]*)
 
4163
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
4164
esac
 
4165
case $srcdir in
 
4166
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
4167
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
4168
esac
 
4169
 
 
4170
# Do `set' in a subshell so we don't clobber the current shell's
 
4171
# arguments.  Must try -L first in case configure is actually a
 
4172
# symlink; some systems play weird games with the mod time of symlinks
 
4173
# (eg FreeBSD returns the mod time of the symlink's containing
 
4174
# directory).
 
4175
if (
 
4176
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
4177
   if test "$*" = "X"; then
 
4178
      # -L didn't work.
 
4179
      set X `ls -t "$srcdir/configure" conftest.file`
 
4180
   fi
 
4181
   rm -f conftest.file
 
4182
   if test "$*" != "X $srcdir/configure conftest.file" \
 
4183
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
4184
 
 
4185
      # If neither matched, then we have a broken ls.  This can happen
 
4186
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
4187
      # broken ls alias from the environment.  This has actually
 
4188
      # happened.  Such a system could not be considered "sane".
 
4189
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
4190
alias in your environment" "$LINENO" 5
 
4191
   fi
 
4192
 
 
4193
   test "$2" = conftest.file
 
4194
   )
 
4195
then
 
4196
   # Ok.
 
4197
   :
 
4198
else
 
4199
   as_fn_error "newly created file is older than distributed files!
 
4200
Check your system clock" "$LINENO" 5
 
4201
fi
 
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4203
$as_echo "yes" >&6; }
 
4204
test "$program_prefix" != NONE &&
 
4205
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
4206
# Use a double $ so make ignores it.
 
4207
test "$program_suffix" != NONE &&
 
4208
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
4209
# Double any \ or $.
 
4210
# By default was `s,x,x', remove it if useless.
 
4211
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
4212
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
4213
 
 
4214
# expand $ac_aux_dir to an absolute path
 
4215
am_aux_dir=`cd $ac_aux_dir && pwd`
 
4216
 
 
4217
if test x"${MISSING+set}" != xset; then
 
4218
  case $am_aux_dir in
 
4219
  *\ * | *\     *)
 
4220
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
4221
  *)
 
4222
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
4223
  esac
 
4224
fi
 
4225
# Use eval to expand $SHELL
 
4226
if eval "$MISSING --run true"; then
 
4227
  am_missing_run="$MISSING --run "
 
4228
else
 
4229
  am_missing_run=
 
4230
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
4231
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
4232
fi
 
4233
 
 
4234
if test x"${install_sh}" != xset; then
 
4235
  case $am_aux_dir in
 
4236
  *\ * | *\     *)
 
4237
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
4238
  *)
 
4239
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
4240
  esac
 
4241
fi
 
4242
 
 
4243
# Installed binaries are usually stripped using `strip' when the user
 
4244
# run `make install-strip'.  However `strip' might not be the right
 
4245
# tool to use in cross-compilation environments, therefore Automake
 
4246
# will honor the `STRIP' environment variable to overrule this program.
 
4247
if test "$cross_compiling" != no; then
 
4248
  if test -n "$ac_tool_prefix"; then
 
4249
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4250
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4252
$as_echo_n "checking for $ac_word... " >&6; }
 
4253
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
4254
  $as_echo_n "(cached) " >&6
 
4255
else
 
4256
  if test -n "$STRIP"; then
 
4257
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4258
else
 
4259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4260
for as_dir in $PATH
 
4261
do
 
4262
  IFS=$as_save_IFS
 
4263
  test -z "$as_dir" && as_dir=.
 
4264
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4266
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4268
    break 2
 
4269
  fi
 
4270
done
 
4271
  done
 
4272
IFS=$as_save_IFS
 
4273
 
 
4274
fi
 
4275
fi
 
4276
STRIP=$ac_cv_prog_STRIP
 
4277
if test -n "$STRIP"; then
 
4278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
4279
$as_echo "$STRIP" >&6; }
 
4280
else
 
4281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4282
$as_echo "no" >&6; }
 
4283
fi
 
4284
 
 
4285
 
 
4286
fi
 
4287
if test -z "$ac_cv_prog_STRIP"; then
 
4288
  ac_ct_STRIP=$STRIP
 
4289
  # Extract the first word of "strip", so it can be a program name with args.
 
4290
set dummy strip; ac_word=$2
 
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4292
$as_echo_n "checking for $ac_word... " >&6; }
 
4293
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
4294
  $as_echo_n "(cached) " >&6
 
4295
else
 
4296
  if test -n "$ac_ct_STRIP"; then
 
4297
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4298
else
 
4299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4300
for as_dir in $PATH
 
4301
do
 
4302
  IFS=$as_save_IFS
 
4303
  test -z "$as_dir" && as_dir=.
 
4304
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4305
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4306
    ac_cv_prog_ac_ct_STRIP="strip"
 
4307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4308
    break 2
 
4309
  fi
 
4310
done
 
4311
  done
 
4312
IFS=$as_save_IFS
 
4313
 
 
4314
fi
 
4315
fi
 
4316
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4317
if test -n "$ac_ct_STRIP"; then
 
4318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
4319
$as_echo "$ac_ct_STRIP" >&6; }
 
4320
else
 
4321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4322
$as_echo "no" >&6; }
 
4323
fi
 
4324
 
 
4325
  if test "x$ac_ct_STRIP" = x; then
 
4326
    STRIP=":"
 
4327
  else
 
4328
    case $cross_compiling:$ac_tool_warned in
 
4329
yes:)
 
4330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4332
ac_tool_warned=yes ;;
 
4333
esac
 
4334
    STRIP=$ac_ct_STRIP
 
4335
  fi
 
4336
else
 
4337
  STRIP="$ac_cv_prog_STRIP"
 
4338
fi
 
4339
 
 
4340
fi
 
4341
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
4342
 
 
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
4344
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
4345
if test -z "$MKDIR_P"; then
 
4346
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
4347
  $as_echo_n "(cached) " >&6
 
4348
else
 
4349
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4350
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
4351
do
 
4352
  IFS=$as_save_IFS
 
4353
  test -z "$as_dir" && as_dir=.
 
4354
    for ac_prog in mkdir gmkdir; do
 
4355
         for ac_exec_ext in '' $ac_executable_extensions; do
 
4356
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
4357
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
4358
             'mkdir (GNU coreutils) '* | \
 
4359
             'mkdir (coreutils) '* | \
 
4360
             'mkdir (fileutils) '4.1*)
 
4361
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
4362
               break 3;;
 
4363
           esac
 
4364
         done
 
4365
       done
 
4366
  done
 
4367
IFS=$as_save_IFS
 
4368
 
 
4369
fi
 
4370
 
 
4371
  test -d ./--version && rmdir ./--version
 
4372
  if test "${ac_cv_path_mkdir+set}" = set; then
 
4373
    MKDIR_P="$ac_cv_path_mkdir -p"
 
4374
  else
 
4375
    # As a last resort, use the slow shell script.  Don't cache a
 
4376
    # value for MKDIR_P within a source directory, because that will
 
4377
    # break other packages using the cache if that directory is
 
4378
    # removed, or if the value is a relative name.
 
4379
    MKDIR_P="$ac_install_sh -d"
 
4380
  fi
 
4381
fi
 
4382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
4383
$as_echo "$MKDIR_P" >&6; }
 
4384
 
 
4385
mkdir_p="$MKDIR_P"
 
4386
case $mkdir_p in
 
4387
  [\\/$]* | ?:[\\/]*) ;;
 
4388
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
4389
esac
 
4390
 
 
4391
for ac_prog in gawk mawk nawk awk
 
4392
do
 
4393
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4394
set dummy $ac_prog; ac_word=$2
 
4395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4396
$as_echo_n "checking for $ac_word... " >&6; }
 
4397
if test "${ac_cv_prog_AWK+set}" = set; then :
 
4398
  $as_echo_n "(cached) " >&6
 
4399
else
 
4400
  if test -n "$AWK"; then
 
4401
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4402
else
 
4403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4404
for as_dir in $PATH
 
4405
do
 
4406
  IFS=$as_save_IFS
 
4407
  test -z "$as_dir" && as_dir=.
 
4408
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4409
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4410
    ac_cv_prog_AWK="$ac_prog"
 
4411
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4412
    break 2
 
4413
  fi
 
4414
done
 
4415
  done
 
4416
IFS=$as_save_IFS
 
4417
 
 
4418
fi
 
4419
fi
 
4420
AWK=$ac_cv_prog_AWK
 
4421
if test -n "$AWK"; then
 
4422
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4423
$as_echo "$AWK" >&6; }
 
4424
else
 
4425
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4426
$as_echo "no" >&6; }
 
4427
fi
 
4428
 
 
4429
 
 
4430
  test -n "$AWK" && break
 
4431
done
 
4432
 
 
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4434
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4435
set x ${MAKE-make}
 
4436
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4437
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
4438
  $as_echo_n "(cached) " >&6
 
4439
else
 
4440
  cat >conftest.make <<\_ACEOF
 
4441
SHELL = /bin/sh
 
4442
all:
 
4443
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4444
_ACEOF
 
4445
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4446
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4447
  *@@@%%%=?*=@@@%%%*)
 
4448
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4449
  *)
 
4450
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4451
esac
 
4452
rm -f conftest.make
 
4453
fi
 
4454
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4456
$as_echo "yes" >&6; }
 
4457
  SET_MAKE=
 
4458
else
 
4459
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4460
$as_echo "no" >&6; }
 
4461
  SET_MAKE="MAKE=${MAKE-make}"
 
4462
fi
 
4463
 
 
4464
rm -rf .tst 2>/dev/null
 
4465
mkdir .tst 2>/dev/null
 
4466
if test -d .tst; then
 
4467
  am__leading_dot=.
 
4468
else
 
4469
  am__leading_dot=_
 
4470
fi
 
4471
rmdir .tst 2>/dev/null
 
4472
 
 
4473
DEPDIR="${am__leading_dot}deps"
 
4474
 
 
4475
ac_config_commands="$ac_config_commands depfiles"
 
4476
 
 
4477
 
 
4478
am_make=${MAKE-make}
 
4479
cat > confinc << 'END'
 
4480
am__doit:
 
4481
        @echo this is the am__doit target
 
4482
.PHONY: am__doit
 
4483
END
 
4484
# If we don't find an include directive, just comment out the code.
 
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4486
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4487
am__include="#"
 
4488
am__quote=
 
4489
_am_result=none
 
4490
# First try GNU make style include.
 
4491
echo "include confinc" > confmf
 
4492
# Ignore all kinds of additional output from `make'.
 
4493
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4494
*the\ am__doit\ target*)
 
4495
  am__include=include
 
4496
  am__quote=
 
4497
  _am_result=GNU
 
4498
  ;;
 
4499
esac
 
4500
# Now try BSD make style include.
 
4501
if test "$am__include" = "#"; then
 
4502
   echo '.include "confinc"' > confmf
 
4503
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4504
   *the\ am__doit\ target*)
 
4505
     am__include=.include
 
4506
     am__quote="\""
 
4507
     _am_result=BSD
 
4508
     ;;
 
4509
   esac
 
4510
fi
 
4511
 
 
4512
 
 
4513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4514
$as_echo "$_am_result" >&6; }
 
4515
rm -f confinc confmf
 
4516
 
 
4517
# Check whether --enable-dependency-tracking was given.
 
4518
if test "${enable_dependency_tracking+set}" = set; then :
 
4519
  enableval=$enable_dependency_tracking;
 
4520
fi
 
4521
 
 
4522
if test "x$enable_dependency_tracking" != xno; then
 
4523
  am_depcomp="$ac_aux_dir/depcomp"
 
4524
  AMDEPBACKSLASH='\'
 
4525
fi
 
4526
 if test "x$enable_dependency_tracking" != xno; then
 
4527
  AMDEP_TRUE=
 
4528
  AMDEP_FALSE='#'
 
4529
else
 
4530
  AMDEP_TRUE='#'
 
4531
  AMDEP_FALSE=
 
4532
fi
 
4533
 
 
4534
 
 
4535
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
4536
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
4537
  # is not polluted with repeated "-I."
 
4538
  am__isrc=' -I$(srcdir)'
 
4539
  # test to see if srcdir already configured
 
4540
  if test -f $srcdir/config.status; then
 
4541
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
4542
  fi
 
4543
fi
 
4544
 
 
4545
# test whether we have cygpath
 
4546
if test -z "$CYGPATH_W"; then
 
4547
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
4548
    CYGPATH_W='cygpath -w'
 
4549
  else
 
4550
    CYGPATH_W=echo
 
4551
  fi
 
4552
fi
 
4553
 
 
4554
 
 
4555
# Define the identity of the package.
 
4556
 PACKAGE='quvi'
 
4557
 VERSION='0.2.0'
 
4558
 
 
4559
 
 
4560
cat >>confdefs.h <<_ACEOF
 
4561
#define PACKAGE "$PACKAGE"
 
4562
_ACEOF
 
4563
 
 
4564
 
 
4565
cat >>confdefs.h <<_ACEOF
 
4566
#define VERSION "$VERSION"
 
4567
_ACEOF
 
4568
 
 
4569
# Some tools Automake needs.
 
4570
 
 
4571
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
4572
 
 
4573
 
 
4574
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
4575
 
 
4576
 
 
4577
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
4578
 
 
4579
 
 
4580
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
4581
 
 
4582
 
 
4583
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
4584
 
 
4585
# We need awk for the "check" target.  The system "awk" is bad on
 
4586
# some platforms.
 
4587
# Always define AMTAR for backward compatibility.
 
4588
 
 
4589
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
4590
 
 
4591
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
4592
 
 
4593
 
 
4594
 
 
4595
 
 
4596
depcc="$CC"   am_compiler_list=
 
4597
 
 
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4599
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4600
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4601
  $as_echo_n "(cached) " >&6
 
4602
else
 
4603
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4604
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4605
  # making bogus files that we don't know about and never remove.  For
 
4606
  # instance it was reported that on HP-UX the gcc test will end up
 
4607
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4608
  # in D'.
 
4609
  mkdir conftest.dir
 
4610
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4611
  # using a relative directory.
 
4612
  cp "$am_depcomp" conftest.dir
 
4613
  cd conftest.dir
 
4614
  # We will build objects and dependencies in a subdirectory because
 
4615
  # it helps to detect inapplicable dependency modes.  For instance
 
4616
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4617
  # side effect of compilation, but ICC will put the dependencies in
 
4618
  # the current directory while Tru64 will put them in the object
 
4619
  # directory.
 
4620
  mkdir sub
 
4621
 
 
4622
  am_cv_CC_dependencies_compiler_type=none
 
4623
  if test "$am_compiler_list" = ""; then
 
4624
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4625
  fi
 
4626
  am__universal=false
 
4627
  case " $depcc " in #(
 
4628
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4629
     esac
 
4630
 
 
4631
  for depmode in $am_compiler_list; do
 
4632
    # Setup a source with many dependencies, because some compilers
 
4633
    # like to wrap large dependency lists on column 80 (with \), and
 
4634
    # we should not choose a depcomp mode which is confused by this.
 
4635
    #
 
4636
    # We need to recreate these files for each test, as the compiler may
 
4637
    # overwrite some of them when testing with obscure command lines.
 
4638
    # This happens at least with the AIX C compiler.
 
4639
    : > sub/conftest.c
 
4640
    for i in 1 2 3 4 5 6; do
 
4641
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4642
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4643
      # Solaris 8's {/usr,}/bin/sh.
 
4644
      touch sub/conftst$i.h
 
4645
    done
 
4646
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4647
 
 
4648
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4649
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4650
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4651
    # versions had trouble with output in subdirs
 
4652
    am__obj=sub/conftest.${OBJEXT-o}
 
4653
    am__minus_obj="-o $am__obj"
 
4654
    case $depmode in
 
4655
    gcc)
 
4656
      # This depmode causes a compiler race in universal mode.
 
4657
      test "$am__universal" = false || continue
 
4658
      ;;
 
4659
    nosideeffect)
 
4660
      # after this tag, mechanisms are not by side-effect, so they'll
 
4661
      # only be used when explicitly requested
 
4662
      if test "x$enable_dependency_tracking" = xyes; then
 
4663
        continue
 
4664
      else
 
4665
        break
 
4666
      fi
 
4667
      ;;
 
4668
    msvisualcpp | msvcmsys)
 
4669
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4670
      # not run yet.  These depmodes are late enough in the game, and
 
4671
      # so weak that their functioning should not be impacted.
 
4672
      am__obj=conftest.${OBJEXT-o}
 
4673
      am__minus_obj=
 
4674
      ;;
 
4675
    none) break ;;
 
4676
    esac
 
4677
    if depmode=$depmode \
 
4678
       source=sub/conftest.c object=$am__obj \
 
4679
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4680
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4681
         >/dev/null 2>conftest.err &&
 
4682
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4683
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4684
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4685
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4686
      # icc doesn't choke on unknown options, it will just issue warnings
 
4687
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4688
      # that says an option was ignored or not supported.
 
4689
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4690
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4691
      # The diagnosis changed in icc 8.0:
 
4692
      #   icc: Command line remark: option '-MP' not supported
 
4693
      if (grep 'ignoring option' conftest.err ||
 
4694
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4695
        am_cv_CC_dependencies_compiler_type=$depmode
 
4696
        break
 
4697
      fi
 
4698
    fi
 
4699
  done
 
4700
 
 
4701
  cd ..
 
4702
  rm -rf conftest.dir
 
4703
else
 
4704
  am_cv_CC_dependencies_compiler_type=none
 
4705
fi
 
4706
 
 
4707
fi
 
4708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4709
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4710
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4711
 
 
4712
 if
 
4713
  test "x$enable_dependency_tracking" != xno \
 
4714
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4715
  am__fastdepCC_TRUE=
 
4716
  am__fastdepCC_FALSE='#'
 
4717
else
 
4718
  am__fastdepCC_TRUE='#'
 
4719
  am__fastdepCC_FALSE=
 
4720
fi
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
case `pwd` in
 
4726
  *\ * | *\     *)
 
4727
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4728
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4729
esac
 
4730
 
 
4731
 
 
4732
 
 
4733
macro_version='2.2.6b'
 
4734
macro_revision='1.3017'
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
ltmain="$ac_aux_dir/ltmain.sh"
 
4749
 
 
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4751
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4752
if test "${ac_cv_path_SED+set}" = set; then :
 
4753
  $as_echo_n "(cached) " >&6
 
4754
else
 
4755
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4756
     for ac_i in 1 2 3 4 5 6 7; do
 
4757
       ac_script="$ac_script$as_nl$ac_script"
 
4758
     done
 
4759
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4760
     { ac_script=; unset ac_script;}
 
4761
     if test -z "$SED"; then
 
4762
  ac_path_SED_found=false
 
4763
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4764
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4765
for as_dir in $PATH
 
4766
do
 
4767
  IFS=$as_save_IFS
 
4768
  test -z "$as_dir" && as_dir=.
 
4769
    for ac_prog in sed gsed; do
 
4770
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4771
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4772
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4773
# Check for GNU ac_path_SED and select it if it is found.
 
4774
  # Check for GNU $ac_path_SED
 
4775
case `"$ac_path_SED" --version 2>&1` in
 
4776
*GNU*)
 
4777
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4778
*)
 
4779
  ac_count=0
 
4780
  $as_echo_n 0123456789 >"conftest.in"
 
4781
  while :
 
4782
  do
 
4783
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4784
    mv "conftest.tmp" "conftest.in"
 
4785
    cp "conftest.in" "conftest.nl"
 
4786
    $as_echo '' >> "conftest.nl"
 
4787
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4788
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4789
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4790
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4791
      # Best one so far, save it but keep looking for a better one
 
4792
      ac_cv_path_SED="$ac_path_SED"
 
4793
      ac_path_SED_max=$ac_count
 
4794
    fi
 
4795
    # 10*(2^10) chars as input seems more than enough
 
4796
    test $ac_count -gt 10 && break
 
4797
  done
 
4798
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4799
esac
 
4800
 
 
4801
      $ac_path_SED_found && break 3
 
4802
    done
 
4803
  done
 
4804
  done
 
4805
IFS=$as_save_IFS
 
4806
  if test -z "$ac_cv_path_SED"; then
 
4807
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4808
  fi
 
4809
else
 
4810
  ac_cv_path_SED=$SED
 
4811
fi
 
4812
 
 
4813
fi
 
4814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4815
$as_echo "$ac_cv_path_SED" >&6; }
 
4816
 SED="$ac_cv_path_SED"
 
4817
  rm -f conftest.sed
 
4818
 
 
4819
test -z "$SED" && SED=sed
 
4820
Xsed="$SED -e 1s/^X//"
 
4821
 
 
4822
 
 
4823
 
 
4824
 
 
4825
 
 
4826
 
 
4827
 
 
4828
 
 
4829
 
 
4830
 
 
4831
 
 
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4833
$as_echo_n "checking for fgrep... " >&6; }
 
4834
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4835
  $as_echo_n "(cached) " >&6
 
4836
else
 
4837
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4838
   then ac_cv_path_FGREP="$GREP -F"
 
4839
   else
 
4840
     if test -z "$FGREP"; then
 
4841
  ac_path_FGREP_found=false
 
4842
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4843
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4844
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4845
do
 
4846
  IFS=$as_save_IFS
 
4847
  test -z "$as_dir" && as_dir=.
 
4848
    for ac_prog in fgrep; do
 
4849
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4850
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4851
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4852
# Check for GNU ac_path_FGREP and select it if it is found.
 
4853
  # Check for GNU $ac_path_FGREP
 
4854
case `"$ac_path_FGREP" --version 2>&1` in
 
4855
*GNU*)
 
4856
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4857
*)
 
4858
  ac_count=0
 
4859
  $as_echo_n 0123456789 >"conftest.in"
 
4860
  while :
 
4861
  do
 
4862
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4863
    mv "conftest.tmp" "conftest.in"
 
4864
    cp "conftest.in" "conftest.nl"
 
4865
    $as_echo 'FGREP' >> "conftest.nl"
 
4866
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4867
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4868
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4869
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4870
      # Best one so far, save it but keep looking for a better one
 
4871
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4872
      ac_path_FGREP_max=$ac_count
 
4873
    fi
 
4874
    # 10*(2^10) chars as input seems more than enough
 
4875
    test $ac_count -gt 10 && break
 
4876
  done
 
4877
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4878
esac
 
4879
 
 
4880
      $ac_path_FGREP_found && break 3
 
4881
    done
 
4882
  done
 
4883
  done
 
4884
IFS=$as_save_IFS
 
4885
  if test -z "$ac_cv_path_FGREP"; then
 
4886
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4887
  fi
 
4888
else
 
4889
  ac_cv_path_FGREP=$FGREP
 
4890
fi
 
4891
 
 
4892
   fi
 
4893
fi
 
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4895
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4896
 FGREP="$ac_cv_path_FGREP"
 
4897
 
 
4898
 
 
4899
test -z "$GREP" && GREP=grep
 
4900
 
 
4901
 
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
 
 
4912
 
 
4913
 
 
4914
 
 
4915
 
 
4916
 
 
4917
 
 
4918
 
 
4919
# Check whether --with-gnu-ld was given.
 
4920
if test "${with_gnu_ld+set}" = set; then :
 
4921
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4922
else
 
4923
  with_gnu_ld=no
 
4924
fi
 
4925
 
 
4926
ac_prog=ld
 
4927
if test "$GCC" = yes; then
 
4928
  # Check if gcc -print-prog-name=ld gives a path.
 
4929
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4930
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4931
  case $host in
 
4932
  *-*-mingw*)
 
4933
    # gcc leaves a trailing carriage return which upsets mingw
 
4934
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4935
  *)
 
4936
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4937
  esac
 
4938
  case $ac_prog in
 
4939
    # Accept absolute paths.
 
4940
    [\\/]* | ?:[\\/]*)
 
4941
      re_direlt='/[^/][^/]*/\.\./'
 
4942
      # Canonicalize the pathname of ld
 
4943
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4944
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4945
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4946
      done
 
4947
      test -z "$LD" && LD="$ac_prog"
 
4948
      ;;
 
4949
  "")
 
4950
    # If it fails, then pretend we aren't using GCC.
 
4951
    ac_prog=ld
 
4952
    ;;
 
4953
  *)
 
4954
    # If it is relative, then search for the first ld in PATH.
 
4955
    with_gnu_ld=unknown
 
4956
    ;;
 
4957
  esac
 
4958
elif test "$with_gnu_ld" = yes; then
 
4959
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4960
$as_echo_n "checking for GNU ld... " >&6; }
 
4961
else
 
4962
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4963
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4964
fi
 
4965
if test "${lt_cv_path_LD+set}" = set; then :
 
4966
  $as_echo_n "(cached) " >&6
 
4967
else
 
4968
  if test -z "$LD"; then
 
4969
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4970
  for ac_dir in $PATH; do
 
4971
    IFS="$lt_save_ifs"
 
4972
    test -z "$ac_dir" && ac_dir=.
 
4973
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4974
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4975
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4976
      # but apparently some variants of GNU ld only accept -v.
 
4977
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4978
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4979
      *GNU* | *'with BFD'*)
 
4980
        test "$with_gnu_ld" != no && break
 
4981
        ;;
 
4982
      *)
 
4983
        test "$with_gnu_ld" != yes && break
 
4984
        ;;
 
4985
      esac
 
4986
    fi
 
4987
  done
 
4988
  IFS="$lt_save_ifs"
 
4989
else
 
4990
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4991
fi
 
4992
fi
 
4993
 
 
4994
LD="$lt_cv_path_LD"
 
4995
if test -n "$LD"; then
 
4996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4997
$as_echo "$LD" >&6; }
 
4998
else
 
4999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5000
$as_echo "no" >&6; }
 
5001
fi
 
5002
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
5003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5004
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5005
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
5006
  $as_echo_n "(cached) " >&6
 
5007
else
 
5008
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5009
case `$LD -v 2>&1 </dev/null` in
 
5010
*GNU* | *'with BFD'*)
 
5011
  lt_cv_prog_gnu_ld=yes
 
5012
  ;;
 
5013
*)
 
5014
  lt_cv_prog_gnu_ld=no
 
5015
  ;;
 
5016
esac
 
5017
fi
 
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5019
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5020
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
 
 
5029
 
 
5030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5031
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5032
if test "${lt_cv_path_NM+set}" = set; then :
 
5033
  $as_echo_n "(cached) " >&6
 
5034
else
 
5035
  if test -n "$NM"; then
 
5036
  # Let the user override the test.
 
5037
  lt_cv_path_NM="$NM"
 
5038
else
 
5039
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5040
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5041
    lt_nm_to_check="$lt_nm_to_check nm"
 
5042
  fi
 
5043
  for lt_tmp_nm in $lt_nm_to_check; do
 
5044
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5045
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5046
      IFS="$lt_save_ifs"
 
5047
      test -z "$ac_dir" && ac_dir=.
 
5048
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5049
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5050
        # Check to see if the nm accepts a BSD-compat flag.
 
5051
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5052
        #   nm: unknown option "B" ignored
 
5053
        # Tru64's nm complains that /dev/null is an invalid object file
 
5054
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5055
        */dev/null* | *'Invalid file or object type'*)
 
5056
          lt_cv_path_NM="$tmp_nm -B"
 
5057
          break
 
5058
          ;;
 
5059
        *)
 
5060
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5061
          */dev/null*)
 
5062
            lt_cv_path_NM="$tmp_nm -p"
 
5063
            break
 
5064
            ;;
 
5065
          *)
 
5066
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5067
            continue # so that we can try to find one that supports BSD flags
 
5068
            ;;
 
5069
          esac
 
5070
          ;;
 
5071
        esac
 
5072
      fi
 
5073
    done
 
5074
    IFS="$lt_save_ifs"
 
5075
  done
 
5076
  : ${lt_cv_path_NM=no}
 
5077
fi
 
5078
fi
 
5079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5080
$as_echo "$lt_cv_path_NM" >&6; }
 
5081
if test "$lt_cv_path_NM" != "no"; then
 
5082
  NM="$lt_cv_path_NM"
 
5083
else
 
5084
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5085
  if test -n "$ac_tool_prefix"; then
 
5086
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5087
  do
 
5088
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5089
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5091
$as_echo_n "checking for $ac_word... " >&6; }
 
5092
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5093
  $as_echo_n "(cached) " >&6
 
5094
else
 
5095
  if test -n "$DUMPBIN"; then
 
5096
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5097
else
 
5098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5099
for as_dir in $PATH
 
5100
do
 
5101
  IFS=$as_save_IFS
 
5102
  test -z "$as_dir" && as_dir=.
 
5103
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5104
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5105
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5106
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5107
    break 2
 
5108
  fi
 
5109
done
 
5110
  done
 
5111
IFS=$as_save_IFS
 
5112
 
 
5113
fi
 
5114
fi
 
5115
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5116
if test -n "$DUMPBIN"; then
 
5117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5118
$as_echo "$DUMPBIN" >&6; }
 
5119
else
 
5120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5121
$as_echo "no" >&6; }
 
5122
fi
 
5123
 
 
5124
 
 
5125
    test -n "$DUMPBIN" && break
 
5126
  done
 
5127
fi
 
5128
if test -z "$DUMPBIN"; then
 
5129
  ac_ct_DUMPBIN=$DUMPBIN
 
5130
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5131
do
 
5132
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5133
set dummy $ac_prog; ac_word=$2
 
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5135
$as_echo_n "checking for $ac_word... " >&6; }
 
5136
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5137
  $as_echo_n "(cached) " >&6
 
5138
else
 
5139
  if test -n "$ac_ct_DUMPBIN"; then
 
5140
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5141
else
 
5142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5143
for as_dir in $PATH
 
5144
do
 
5145
  IFS=$as_save_IFS
 
5146
  test -z "$as_dir" && as_dir=.
 
5147
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5148
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5149
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5150
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5151
    break 2
 
5152
  fi
 
5153
done
 
5154
  done
 
5155
IFS=$as_save_IFS
 
5156
 
 
5157
fi
 
5158
fi
 
5159
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5160
if test -n "$ac_ct_DUMPBIN"; then
 
5161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5162
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5163
else
 
5164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5165
$as_echo "no" >&6; }
 
5166
fi
 
5167
 
 
5168
 
 
5169
  test -n "$ac_ct_DUMPBIN" && break
 
5170
done
 
5171
 
 
5172
  if test "x$ac_ct_DUMPBIN" = x; then
 
5173
    DUMPBIN=":"
 
5174
  else
 
5175
    case $cross_compiling:$ac_tool_warned in
 
5176
yes:)
 
5177
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5179
ac_tool_warned=yes ;;
 
5180
esac
 
5181
    DUMPBIN=$ac_ct_DUMPBIN
 
5182
  fi
 
5183
fi
 
5184
 
 
5185
 
 
5186
  if test "$DUMPBIN" != ":"; then
 
5187
    NM="$DUMPBIN"
 
5188
  fi
 
5189
fi
 
5190
test -z "$NM" && NM=nm
 
5191
 
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
 
5197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5198
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5199
if test "${lt_cv_nm_interface+set}" = set; then :
 
5200
  $as_echo_n "(cached) " >&6
 
5201
else
 
5202
  lt_cv_nm_interface="BSD nm"
 
5203
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5204
  (eval echo "\"\$as_me:5204: $ac_compile\"" >&5)
 
5205
  (eval "$ac_compile" 2>conftest.err)
 
5206
  cat conftest.err >&5
 
5207
  (eval echo "\"\$as_me:5207: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5208
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5209
  cat conftest.err >&5
 
5210
  (eval echo "\"\$as_me:5210: output\"" >&5)
 
5211
  cat conftest.out >&5
 
5212
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5213
    lt_cv_nm_interface="MS dumpbin"
 
5214
  fi
 
5215
  rm -f conftest*
 
5216
fi
 
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5218
$as_echo "$lt_cv_nm_interface" >&6; }
 
5219
 
 
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5221
$as_echo_n "checking whether ln -s works... " >&6; }
 
5222
LN_S=$as_ln_s
 
5223
if test "$LN_S" = "ln -s"; then
 
5224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5225
$as_echo "yes" >&6; }
 
5226
else
 
5227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5228
$as_echo "no, using $LN_S" >&6; }
 
5229
fi
 
5230
 
 
5231
# find the maximum length of command line arguments
 
5232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5233
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5234
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5235
  $as_echo_n "(cached) " >&6
 
5236
else
 
5237
    i=0
 
5238
  teststring="ABCD"
 
5239
 
 
5240
  case $build_os in
 
5241
  msdosdjgpp*)
 
5242
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5243
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5244
    # during glob expansion).  Even if it were fixed, the result of this
 
5245
    # check would be larger than it should be.
 
5246
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5247
    ;;
 
5248
 
 
5249
  gnu*)
 
5250
    # Under GNU Hurd, this test is not required because there is
 
5251
    # no limit to the length of command line arguments.
 
5252
    # Libtool will interpret -1 as no limit whatsoever
 
5253
    lt_cv_sys_max_cmd_len=-1;
 
5254
    ;;
 
5255
 
 
5256
  cygwin* | mingw* | cegcc*)
 
5257
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5258
    # about 5 minutes as the teststring grows exponentially.
 
5259
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5260
    # you end up with a "frozen" computer, even though with patience
 
5261
    # the test eventually succeeds (with a max line length of 256k).
 
5262
    # Instead, let's just punt: use the minimum linelength reported by
 
5263
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5264
    lt_cv_sys_max_cmd_len=8192;
 
5265
    ;;
 
5266
 
 
5267
  amigaos*)
 
5268
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5269
    # So we just punt and use a minimum line length of 8192.
 
5270
    lt_cv_sys_max_cmd_len=8192;
 
5271
    ;;
 
5272
 
 
5273
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5274
    # This has been around since 386BSD, at least.  Likely further.
 
5275
    if test -x /sbin/sysctl; then
 
5276
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5277
    elif test -x /usr/sbin/sysctl; then
 
5278
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5279
    else
 
5280
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5281
    fi
 
5282
    # And add a safety zone
 
5283
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5284
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5285
    ;;
 
5286
 
 
5287
  interix*)
 
5288
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5289
    lt_cv_sys_max_cmd_len=196608
 
5290
    ;;
 
5291
 
 
5292
  osf*)
 
5293
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5294
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5295
    # nice to cause kernel panics so lets avoid the loop below.
 
5296
    # First set a reasonable default.
 
5297
    lt_cv_sys_max_cmd_len=16384
 
5298
    #
 
5299
    if test -x /sbin/sysconfig; then
 
5300
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5301
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5302
      esac
 
5303
    fi
 
5304
    ;;
 
5305
  sco3.2v5*)
 
5306
    lt_cv_sys_max_cmd_len=102400
 
5307
    ;;
 
5308
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5309
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5310
    if test -n "$kargmax"; then
 
5311
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5312
    else
 
5313
      lt_cv_sys_max_cmd_len=32768
 
5314
    fi
 
5315
    ;;
 
5316
  *)
 
5317
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5318
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5319
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5320
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5321
    else
 
5322
      # Make teststring a little bigger before we do anything with it.
 
5323
      # a 1K string should be a reasonable start.
 
5324
      for i in 1 2 3 4 5 6 7 8 ; do
 
5325
        teststring=$teststring$teststring
 
5326
      done
 
5327
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5328
      # If test is not a shell built-in, we'll probably end up computing a
 
5329
      # maximum length that is only half of the actual maximum length, but
 
5330
      # we can't tell.
 
5331
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5332
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5333
              test $i != 17 # 1/2 MB should be enough
 
5334
      do
 
5335
        i=`expr $i + 1`
 
5336
        teststring=$teststring$teststring
 
5337
      done
 
5338
      # Only check the string length outside the loop.
 
5339
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5340
      teststring=
 
5341
      # Add a significant safety factor because C++ compilers can tack on
 
5342
      # massive amounts of additional arguments before passing them to the
 
5343
      # linker.  It appears as though 1/2 is a usable value.
 
5344
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5345
    fi
 
5346
    ;;
 
5347
  esac
 
5348
 
 
5349
fi
 
5350
 
 
5351
if test -n $lt_cv_sys_max_cmd_len ; then
 
5352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5353
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5354
else
 
5355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5356
$as_echo "none" >&6; }
 
5357
fi
 
5358
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
: ${CP="cp -f"}
 
5366
: ${MV="mv -f"}
 
5367
: ${RM="rm -f"}
 
5368
 
 
5369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5370
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5371
# Try some XSI features
 
5372
xsi_shell=no
 
5373
( _lt_dummy="a/b/c"
 
5374
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5375
      = c,a/b,, \
 
5376
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5377
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5378
  && xsi_shell=yes
 
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5380
$as_echo "$xsi_shell" >&6; }
 
5381
 
 
5382
 
 
5383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5384
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5385
lt_shell_append=no
 
5386
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5387
    >/dev/null 2>&1 \
 
5388
  && lt_shell_append=yes
 
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5390
$as_echo "$lt_shell_append" >&6; }
 
5391
 
 
5392
 
 
5393
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5394
  lt_unset=unset
 
5395
else
 
5396
  lt_unset=false
 
5397
fi
 
5398
 
 
5399
 
 
5400
 
 
5401
 
 
5402
 
 
5403
# test EBCDIC or ASCII
 
5404
case `echo X|tr X '\101'` in
 
5405
 A) # ASCII based system
 
5406
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5407
  lt_SP2NL='tr \040 \012'
 
5408
  lt_NL2SP='tr \015\012 \040\040'
 
5409
  ;;
 
5410
 *) # EBCDIC based system
 
5411
  lt_SP2NL='tr \100 \n'
 
5412
  lt_NL2SP='tr \r\n \100\100'
 
5413
  ;;
 
5414
esac
 
5415
 
 
5416
 
 
5417
 
 
5418
 
 
5419
 
 
5420
 
 
5421
 
 
5422
 
 
5423
 
 
5424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5425
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5426
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5427
  $as_echo_n "(cached) " >&6
 
5428
else
 
5429
  lt_cv_ld_reload_flag='-r'
 
5430
fi
 
5431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5432
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5433
reload_flag=$lt_cv_ld_reload_flag
 
5434
case $reload_flag in
 
5435
"" | " "*) ;;
 
5436
*) reload_flag=" $reload_flag" ;;
 
5437
esac
 
5438
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5439
case $host_os in
 
5440
  darwin*)
 
5441
    if test "$GCC" = yes; then
 
5442
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5443
    else
 
5444
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5445
    fi
 
5446
    ;;
 
5447
esac
 
5448
 
 
5449
 
 
5450
 
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
 
5457
if test -n "$ac_tool_prefix"; then
 
5458
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5459
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5461
$as_echo_n "checking for $ac_word... " >&6; }
 
5462
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5463
  $as_echo_n "(cached) " >&6
 
5464
else
 
5465
  if test -n "$OBJDUMP"; then
 
5466
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5467
else
 
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5469
for as_dir in $PATH
 
5470
do
 
5471
  IFS=$as_save_IFS
 
5472
  test -z "$as_dir" && as_dir=.
 
5473
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5474
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5475
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5476
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5477
    break 2
 
5478
  fi
 
5479
done
 
5480
  done
 
5481
IFS=$as_save_IFS
 
5482
 
 
5483
fi
 
5484
fi
 
5485
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5486
if test -n "$OBJDUMP"; then
 
5487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5488
$as_echo "$OBJDUMP" >&6; }
 
5489
else
 
5490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5491
$as_echo "no" >&6; }
 
5492
fi
 
5493
 
 
5494
 
 
5495
fi
 
5496
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5497
  ac_ct_OBJDUMP=$OBJDUMP
 
5498
  # Extract the first word of "objdump", so it can be a program name with args.
 
5499
set dummy objdump; ac_word=$2
 
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5501
$as_echo_n "checking for $ac_word... " >&6; }
 
5502
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5503
  $as_echo_n "(cached) " >&6
 
5504
else
 
5505
  if test -n "$ac_ct_OBJDUMP"; then
 
5506
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5507
else
 
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5509
for as_dir in $PATH
 
5510
do
 
5511
  IFS=$as_save_IFS
 
5512
  test -z "$as_dir" && as_dir=.
 
5513
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5515
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5517
    break 2
 
5518
  fi
 
5519
done
 
5520
  done
 
5521
IFS=$as_save_IFS
 
5522
 
 
5523
fi
 
5524
fi
 
5525
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5526
if test -n "$ac_ct_OBJDUMP"; then
 
5527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5528
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5529
else
 
5530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5531
$as_echo "no" >&6; }
 
5532
fi
 
5533
 
 
5534
  if test "x$ac_ct_OBJDUMP" = x; then
 
5535
    OBJDUMP="false"
 
5536
  else
 
5537
    case $cross_compiling:$ac_tool_warned in
 
5538
yes:)
 
5539
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5540
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5541
ac_tool_warned=yes ;;
 
5542
esac
 
5543
    OBJDUMP=$ac_ct_OBJDUMP
 
5544
  fi
 
5545
else
 
5546
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5547
fi
 
5548
 
 
5549
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5550
 
 
5551
 
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5560
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5561
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5562
  $as_echo_n "(cached) " >&6
 
5563
else
 
5564
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5565
lt_cv_file_magic_test_file=
 
5566
lt_cv_deplibs_check_method='unknown'
 
5567
# Need to set the preceding variable on all platforms that support
 
5568
# interlibrary dependencies.
 
5569
# 'none' -- dependencies not supported.
 
5570
# `unknown' -- same as none, but documents that we really don't know.
 
5571
# 'pass_all' -- all dependencies passed with no checks.
 
5572
# 'test_compile' -- check by making test program.
 
5573
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5574
# which responds to the $file_magic_cmd with a given extended regex.
 
5575
# If you have `file' or equivalent on your system and you're not sure
 
5576
# whether `pass_all' will *always* work, you probably want this one.
 
5577
 
 
5578
case $host_os in
 
5579
aix[4-9]*)
 
5580
  lt_cv_deplibs_check_method=pass_all
 
5581
  ;;
 
5582
 
 
5583
beos*)
 
5584
  lt_cv_deplibs_check_method=pass_all
 
5585
  ;;
 
5586
 
 
5587
bsdi[45]*)
 
5588
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5589
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5590
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5591
  ;;
 
5592
 
 
5593
cygwin*)
 
5594
  # func_win32_libid is a shell function defined in ltmain.sh
 
5595
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5596
  lt_cv_file_magic_cmd='func_win32_libid'
 
5597
  ;;
 
5598
 
 
5599
mingw* | pw32*)
 
5600
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5601
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5602
  # unless we find 'file', for example because we are cross-compiling.
 
5603
  if ( file / ) >/dev/null 2>&1; then
 
5604
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5605
    lt_cv_file_magic_cmd='func_win32_libid'
 
5606
  else
 
5607
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5608
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5609
  fi
 
5610
  ;;
 
5611
 
 
5612
cegcc)
 
5613
  # use the weaker test based on 'objdump'. See mingw*.
 
5614
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5615
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5616
  ;;
 
5617
 
 
5618
darwin* | rhapsody*)
 
5619
  lt_cv_deplibs_check_method=pass_all
 
5620
  ;;
 
5621
 
 
5622
freebsd* | dragonfly*)
 
5623
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5624
    case $host_cpu in
 
5625
    i*86 )
 
5626
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5627
      # Let's accept both of them until this is cleared up.
 
5628
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5629
      lt_cv_file_magic_cmd=/usr/bin/file
 
5630
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5631
      ;;
 
5632
    esac
 
5633
  else
 
5634
    lt_cv_deplibs_check_method=pass_all
 
5635
  fi
 
5636
  ;;
 
5637
 
 
5638
gnu*)
 
5639
  lt_cv_deplibs_check_method=pass_all
 
5640
  ;;
 
5641
 
 
5642
hpux10.20* | hpux11*)
 
5643
  lt_cv_file_magic_cmd=/usr/bin/file
 
5644
  case $host_cpu in
 
5645
  ia64*)
 
5646
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5647
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5648
    ;;
 
5649
  hppa*64*)
 
5650
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5651
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5652
    ;;
 
5653
  *)
 
5654
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5655
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5656
    ;;
 
5657
  esac
 
5658
  ;;
 
5659
 
 
5660
interix[3-9]*)
 
5661
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5662
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5663
  ;;
 
5664
 
 
5665
irix5* | irix6* | nonstopux*)
 
5666
  case $LD in
 
5667
  *-32|*"-32 ") libmagic=32-bit;;
 
5668
  *-n32|*"-n32 ") libmagic=N32;;
 
5669
  *-64|*"-64 ") libmagic=64-bit;;
 
5670
  *) libmagic=never-match;;
 
5671
  esac
 
5672
  lt_cv_deplibs_check_method=pass_all
 
5673
  ;;
 
5674
 
 
5675
# This must be Linux ELF.
 
5676
linux* | k*bsd*-gnu)
 
5677
  lt_cv_deplibs_check_method=pass_all
 
5678
  ;;
 
5679
 
 
5680
netbsd*)
 
5681
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5682
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5683
  else
 
5684
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5685
  fi
 
5686
  ;;
 
5687
 
 
5688
newos6*)
 
5689
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5690
  lt_cv_file_magic_cmd=/usr/bin/file
 
5691
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5692
  ;;
 
5693
 
 
5694
*nto* | *qnx*)
 
5695
  lt_cv_deplibs_check_method=pass_all
 
5696
  ;;
 
5697
 
 
5698
openbsd*)
 
5699
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5700
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5701
  else
 
5702
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5703
  fi
 
5704
  ;;
 
5705
 
 
5706
osf3* | osf4* | osf5*)
 
5707
  lt_cv_deplibs_check_method=pass_all
 
5708
  ;;
 
5709
 
 
5710
rdos*)
 
5711
  lt_cv_deplibs_check_method=pass_all
 
5712
  ;;
 
5713
 
 
5714
solaris*)
 
5715
  lt_cv_deplibs_check_method=pass_all
 
5716
  ;;
 
5717
 
 
5718
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5719
  lt_cv_deplibs_check_method=pass_all
 
5720
  ;;
 
5721
 
 
5722
sysv4 | sysv4.3*)
 
5723
  case $host_vendor in
 
5724
  motorola)
 
5725
    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]'
 
5726
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5727
    ;;
 
5728
  ncr)
 
5729
    lt_cv_deplibs_check_method=pass_all
 
5730
    ;;
 
5731
  sequent)
 
5732
    lt_cv_file_magic_cmd='/bin/file'
 
5733
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5734
    ;;
 
5735
  sni)
 
5736
    lt_cv_file_magic_cmd='/bin/file'
 
5737
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5738
    lt_cv_file_magic_test_file=/lib/libc.so
 
5739
    ;;
 
5740
  siemens)
 
5741
    lt_cv_deplibs_check_method=pass_all
 
5742
    ;;
 
5743
  pc)
 
5744
    lt_cv_deplibs_check_method=pass_all
 
5745
    ;;
 
5746
  esac
 
5747
  ;;
 
5748
 
 
5749
tpf*)
 
5750
  lt_cv_deplibs_check_method=pass_all
 
5751
  ;;
 
5752
esac
 
5753
 
 
5754
fi
 
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5756
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5757
file_magic_cmd=$lt_cv_file_magic_cmd
 
5758
deplibs_check_method=$lt_cv_deplibs_check_method
 
5759
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5760
 
 
5761
 
 
5762
 
 
5763
 
 
5764
 
 
5765
 
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
if test -n "$ac_tool_prefix"; then
 
5773
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5774
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5776
$as_echo_n "checking for $ac_word... " >&6; }
 
5777
if test "${ac_cv_prog_AR+set}" = set; then :
 
5778
  $as_echo_n "(cached) " >&6
 
5779
else
 
5780
  if test -n "$AR"; then
 
5781
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5782
else
 
5783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5784
for as_dir in $PATH
 
5785
do
 
5786
  IFS=$as_save_IFS
 
5787
  test -z "$as_dir" && as_dir=.
 
5788
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5789
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5790
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5791
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5792
    break 2
 
5793
  fi
 
5794
done
 
5795
  done
 
5796
IFS=$as_save_IFS
 
5797
 
 
5798
fi
 
5799
fi
 
5800
AR=$ac_cv_prog_AR
 
5801
if test -n "$AR"; then
 
5802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5803
$as_echo "$AR" >&6; }
 
5804
else
 
5805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5806
$as_echo "no" >&6; }
 
5807
fi
 
5808
 
 
5809
 
 
5810
fi
 
5811
if test -z "$ac_cv_prog_AR"; then
 
5812
  ac_ct_AR=$AR
 
5813
  # Extract the first word of "ar", so it can be a program name with args.
 
5814
set dummy ar; ac_word=$2
 
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5816
$as_echo_n "checking for $ac_word... " >&6; }
 
5817
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5818
  $as_echo_n "(cached) " >&6
 
5819
else
 
5820
  if test -n "$ac_ct_AR"; then
 
5821
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5822
else
 
5823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5824
for as_dir in $PATH
 
5825
do
 
5826
  IFS=$as_save_IFS
 
5827
  test -z "$as_dir" && as_dir=.
 
5828
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5829
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5830
    ac_cv_prog_ac_ct_AR="ar"
 
5831
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5832
    break 2
 
5833
  fi
 
5834
done
 
5835
  done
 
5836
IFS=$as_save_IFS
 
5837
 
 
5838
fi
 
5839
fi
 
5840
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5841
if test -n "$ac_ct_AR"; then
 
5842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5843
$as_echo "$ac_ct_AR" >&6; }
 
5844
else
 
5845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5846
$as_echo "no" >&6; }
 
5847
fi
 
5848
 
 
5849
  if test "x$ac_ct_AR" = x; then
 
5850
    AR="false"
 
5851
  else
 
5852
    case $cross_compiling:$ac_tool_warned in
 
5853
yes:)
 
5854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5855
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5856
ac_tool_warned=yes ;;
 
5857
esac
 
5858
    AR=$ac_ct_AR
 
5859
  fi
 
5860
else
 
5861
  AR="$ac_cv_prog_AR"
 
5862
fi
 
5863
 
 
5864
test -z "$AR" && AR=ar
 
5865
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
if test -n "$ac_tool_prefix"; then
 
5878
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5879
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5881
$as_echo_n "checking for $ac_word... " >&6; }
 
5882
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5883
  $as_echo_n "(cached) " >&6
 
5884
else
 
5885
  if test -n "$STRIP"; then
 
5886
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5887
else
 
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5889
for as_dir in $PATH
 
5890
do
 
5891
  IFS=$as_save_IFS
 
5892
  test -z "$as_dir" && as_dir=.
 
5893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5895
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5897
    break 2
 
5898
  fi
 
5899
done
 
5900
  done
 
5901
IFS=$as_save_IFS
 
5902
 
 
5903
fi
 
5904
fi
 
5905
STRIP=$ac_cv_prog_STRIP
 
5906
if test -n "$STRIP"; then
 
5907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5908
$as_echo "$STRIP" >&6; }
 
5909
else
 
5910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5911
$as_echo "no" >&6; }
 
5912
fi
 
5913
 
 
5914
 
 
5915
fi
 
5916
if test -z "$ac_cv_prog_STRIP"; then
 
5917
  ac_ct_STRIP=$STRIP
 
5918
  # Extract the first word of "strip", so it can be a program name with args.
 
5919
set dummy strip; ac_word=$2
 
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5921
$as_echo_n "checking for $ac_word... " >&6; }
 
5922
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5923
  $as_echo_n "(cached) " >&6
 
5924
else
 
5925
  if test -n "$ac_ct_STRIP"; then
 
5926
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5927
else
 
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5929
for as_dir in $PATH
 
5930
do
 
5931
  IFS=$as_save_IFS
 
5932
  test -z "$as_dir" && as_dir=.
 
5933
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5934
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5935
    ac_cv_prog_ac_ct_STRIP="strip"
 
5936
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5937
    break 2
 
5938
  fi
 
5939
done
 
5940
  done
 
5941
IFS=$as_save_IFS
 
5942
 
 
5943
fi
 
5944
fi
 
5945
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5946
if test -n "$ac_ct_STRIP"; then
 
5947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5948
$as_echo "$ac_ct_STRIP" >&6; }
 
5949
else
 
5950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5951
$as_echo "no" >&6; }
 
5952
fi
 
5953
 
 
5954
  if test "x$ac_ct_STRIP" = x; then
 
5955
    STRIP=":"
 
5956
  else
 
5957
    case $cross_compiling:$ac_tool_warned in
 
5958
yes:)
 
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5961
ac_tool_warned=yes ;;
 
5962
esac
 
5963
    STRIP=$ac_ct_STRIP
 
5964
  fi
 
5965
else
 
5966
  STRIP="$ac_cv_prog_STRIP"
 
5967
fi
 
5968
 
 
5969
test -z "$STRIP" && STRIP=:
 
5970
 
 
5971
 
 
5972
 
 
5973
 
 
5974
 
 
5975
 
 
5976
if test -n "$ac_tool_prefix"; then
 
5977
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5978
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5980
$as_echo_n "checking for $ac_word... " >&6; }
 
5981
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5982
  $as_echo_n "(cached) " >&6
 
5983
else
 
5984
  if test -n "$RANLIB"; then
 
5985
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5986
else
 
5987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5988
for as_dir in $PATH
 
5989
do
 
5990
  IFS=$as_save_IFS
 
5991
  test -z "$as_dir" && as_dir=.
 
5992
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5994
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5996
    break 2
 
5997
  fi
 
5998
done
 
5999
  done
 
6000
IFS=$as_save_IFS
 
6001
 
 
6002
fi
 
6003
fi
 
6004
RANLIB=$ac_cv_prog_RANLIB
 
6005
if test -n "$RANLIB"; then
 
6006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6007
$as_echo "$RANLIB" >&6; }
 
6008
else
 
6009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6010
$as_echo "no" >&6; }
 
6011
fi
 
6012
 
 
6013
 
 
6014
fi
 
6015
if test -z "$ac_cv_prog_RANLIB"; then
 
6016
  ac_ct_RANLIB=$RANLIB
 
6017
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6018
set dummy ranlib; ac_word=$2
 
6019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6020
$as_echo_n "checking for $ac_word... " >&6; }
 
6021
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6022
  $as_echo_n "(cached) " >&6
 
6023
else
 
6024
  if test -n "$ac_ct_RANLIB"; then
 
6025
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6026
else
 
6027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6028
for as_dir in $PATH
 
6029
do
 
6030
  IFS=$as_save_IFS
 
6031
  test -z "$as_dir" && as_dir=.
 
6032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6034
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6035
    $as_echo "$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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6045
if test -n "$ac_ct_RANLIB"; then
 
6046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6047
$as_echo "$ac_ct_RANLIB" >&6; }
 
6048
else
 
6049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6050
$as_echo "no" >&6; }
 
6051
fi
 
6052
 
 
6053
  if test "x$ac_ct_RANLIB" = x; then
 
6054
    RANLIB=":"
 
6055
  else
 
6056
    case $cross_compiling:$ac_tool_warned in
 
6057
yes:)
 
6058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6060
ac_tool_warned=yes ;;
 
6061
esac
 
6062
    RANLIB=$ac_ct_RANLIB
 
6063
  fi
 
6064
else
 
6065
  RANLIB="$ac_cv_prog_RANLIB"
 
6066
fi
 
6067
 
 
6068
test -z "$RANLIB" && RANLIB=:
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
# Determine commands to create old-style static archives.
 
6076
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6077
old_postinstall_cmds='chmod 644 $oldlib'
 
6078
old_postuninstall_cmds=
 
6079
 
 
6080
if test -n "$RANLIB"; then
 
6081
  case $host_os in
 
6082
  openbsd*)
 
6083
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6084
    ;;
 
6085
  *)
 
6086
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6087
    ;;
 
6088
  esac
 
6089
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6090
fi
 
6091
 
 
6092
 
 
6093
 
 
6094
 
 
6095
 
 
6096
 
 
6097
 
 
6098
 
 
6099
 
 
6100
 
 
6101
 
 
6102
 
 
6103
 
 
6104
 
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
# If no C compiler was specified, use CC.
 
6126
LTCC=${LTCC-"$CC"}
 
6127
 
 
6128
# If no C compiler flags were specified, use CFLAGS.
 
6129
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6130
 
 
6131
# Allow CC to be a program name with arguments.
 
6132
compiler=$CC
 
6133
 
 
6134
 
 
6135
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6137
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6138
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6139
  $as_echo_n "(cached) " >&6
 
6140
else
 
6141
 
 
6142
# These are sane defaults that work on at least a few old systems.
 
6143
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6144
 
 
6145
# Character class describing NM global symbol codes.
 
6146
symcode='[BCDEGRST]'
 
6147
 
 
6148
# Regexp to match symbols that can be accessed directly from C.
 
6149
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6150
 
 
6151
# Define system-specific variables.
 
6152
case $host_os in
 
6153
aix*)
 
6154
  symcode='[BCDT]'
 
6155
  ;;
 
6156
cygwin* | mingw* | pw32* | cegcc*)
 
6157
  symcode='[ABCDGISTW]'
 
6158
  ;;
 
6159
hpux*)
 
6160
  if test "$host_cpu" = ia64; then
 
6161
    symcode='[ABCDEGRST]'
 
6162
  fi
 
6163
  ;;
 
6164
irix* | nonstopux*)
 
6165
  symcode='[BCDEGRST]'
 
6166
  ;;
 
6167
osf*)
 
6168
  symcode='[BCDEGQRST]'
 
6169
  ;;
 
6170
solaris*)
 
6171
  symcode='[BDRT]'
 
6172
  ;;
 
6173
sco3.2v5*)
 
6174
  symcode='[DT]'
 
6175
  ;;
 
6176
sysv4.2uw2*)
 
6177
  symcode='[DT]'
 
6178
  ;;
 
6179
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6180
  symcode='[ABDT]'
 
6181
  ;;
 
6182
sysv4)
 
6183
  symcode='[DFNSTU]'
 
6184
  ;;
 
6185
esac
 
6186
 
 
6187
# If we're using GNU nm, then use its standard symbol codes.
 
6188
case `$NM -V 2>&1` in
 
6189
*GNU* | *'with BFD'*)
 
6190
  symcode='[ABCDGIRSTW]' ;;
 
6191
esac
 
6192
 
 
6193
# Transform an extracted symbol line into a proper C declaration.
 
6194
# Some systems (esp. on ia64) link data and code symbols differently,
 
6195
# so use this general approach.
 
6196
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6197
 
 
6198
# Transform an extracted symbol line into symbol name and symbol address
 
6199
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6200
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6201
 
 
6202
# Handle CRLF in mingw tool chain
 
6203
opt_cr=
 
6204
case $build_os in
 
6205
mingw*)
 
6206
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6207
  ;;
 
6208
esac
 
6209
 
 
6210
# Try without a prefix underscore, then with it.
 
6211
for ac_symprfx in "" "_"; do
 
6212
 
 
6213
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6214
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6215
 
 
6216
  # Write the raw and C identifiers.
 
6217
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6218
    # Fake it for dumpbin and say T for any non-static function
 
6219
    # and D for any global variable.
 
6220
    # Also find C++ and __fastcall symbols from MSVC++,
 
6221
    # which start with @ or ?.
 
6222
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6223
"     {last_section=section; section=\$ 3};"\
 
6224
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6225
"     \$ 0!~/External *\|/{next};"\
 
6226
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6227
"     {if(hide[section]) next};"\
 
6228
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6229
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6230
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6231
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6232
"     ' prfx=^$ac_symprfx"
 
6233
  else
 
6234
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6235
  fi
 
6236
 
 
6237
  # Check to see that the pipe works correctly.
 
6238
  pipe_works=no
 
6239
 
 
6240
  rm -f conftest*
 
6241
  cat > conftest.$ac_ext <<_LT_EOF
 
6242
#ifdef __cplusplus
 
6243
extern "C" {
 
6244
#endif
 
6245
char nm_test_var;
 
6246
void nm_test_func(void);
 
6247
void nm_test_func(void){}
 
6248
#ifdef __cplusplus
 
6249
}
 
6250
#endif
 
6251
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6252
_LT_EOF
 
6253
 
 
6254
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6255
  (eval $ac_compile) 2>&5
 
6256
  ac_status=$?
 
6257
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6258
  test $ac_status = 0; }; then
 
6259
    # Now try to grab the symbols.
 
6260
    nlist=conftest.nm
 
6261
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6262
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6263
  ac_status=$?
 
6264
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6265
  test $ac_status = 0; } && test -s "$nlist"; then
 
6266
      # Try sorting and uniquifying the output.
 
6267
      if sort "$nlist" | uniq > "$nlist"T; then
 
6268
        mv -f "$nlist"T "$nlist"
 
6269
      else
 
6270
        rm -f "$nlist"T
 
6271
      fi
 
6272
 
 
6273
      # Make sure that we snagged all the symbols we need.
 
6274
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6275
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6276
          cat <<_LT_EOF > conftest.$ac_ext
 
6277
#ifdef __cplusplus
 
6278
extern "C" {
 
6279
#endif
 
6280
 
 
6281
_LT_EOF
 
6282
          # Now generate the symbol file.
 
6283
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6284
 
 
6285
          cat <<_LT_EOF >> conftest.$ac_ext
 
6286
 
 
6287
/* The mapping between symbol names and symbols.  */
 
6288
const struct {
 
6289
  const char *name;
 
6290
  void       *address;
 
6291
}
 
6292
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6293
{
 
6294
  { "@PROGRAM@", (void *) 0 },
 
6295
_LT_EOF
 
6296
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6297
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6298
  {0, (void *) 0}
 
6299
};
 
6300
 
 
6301
/* This works around a problem in FreeBSD linker */
 
6302
#ifdef FREEBSD_WORKAROUND
 
6303
static const void *lt_preloaded_setup() {
 
6304
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6305
}
 
6306
#endif
 
6307
 
 
6308
#ifdef __cplusplus
 
6309
}
 
6310
#endif
 
6311
_LT_EOF
 
6312
          # Now try linking the two files.
 
6313
          mv conftest.$ac_objext conftstm.$ac_objext
 
6314
          lt_save_LIBS="$LIBS"
 
6315
          lt_save_CFLAGS="$CFLAGS"
 
6316
          LIBS="conftstm.$ac_objext"
 
6317
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6318
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6319
  (eval $ac_link) 2>&5
 
6320
  ac_status=$?
 
6321
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6322
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6323
            pipe_works=yes
 
6324
          fi
 
6325
          LIBS="$lt_save_LIBS"
 
6326
          CFLAGS="$lt_save_CFLAGS"
 
6327
        else
 
6328
          echo "cannot find nm_test_func in $nlist" >&5
 
6329
        fi
 
6330
      else
 
6331
        echo "cannot find nm_test_var in $nlist" >&5
 
6332
      fi
 
6333
    else
 
6334
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6335
    fi
 
6336
  else
 
6337
    echo "$progname: failed program was:" >&5
 
6338
    cat conftest.$ac_ext >&5
 
6339
  fi
 
6340
  rm -rf conftest* conftst*
 
6341
 
 
6342
  # Do not use the global_symbol_pipe unless it works.
 
6343
  if test "$pipe_works" = yes; then
 
6344
    break
 
6345
  else
 
6346
    lt_cv_sys_global_symbol_pipe=
 
6347
  fi
 
6348
done
 
6349
 
 
6350
fi
 
6351
 
 
6352
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6353
  lt_cv_sys_global_symbol_to_cdecl=
 
6354
fi
 
6355
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6357
$as_echo "failed" >&6; }
 
6358
else
 
6359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6360
$as_echo "ok" >&6; }
 
6361
fi
 
6362
 
 
6363
 
 
6364
 
 
6365
 
 
6366
 
 
6367
 
 
6368
 
 
6369
 
 
6370
 
 
6371
 
 
6372
 
 
6373
 
 
6374
 
 
6375
 
 
6376
 
 
6377
 
 
6378
 
 
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
# Check whether --enable-libtool-lock was given.
 
6385
if test "${enable_libtool_lock+set}" = set; then :
 
6386
  enableval=$enable_libtool_lock;
 
6387
fi
 
6388
 
 
6389
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6390
 
 
6391
# Some flags need to be propagated to the compiler or linker for good
 
6392
# libtool support.
 
6393
case $host in
 
6394
ia64-*-hpux*)
 
6395
  # Find out which ABI we are using.
 
6396
  echo 'int i;' > conftest.$ac_ext
 
6397
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6398
  (eval $ac_compile) 2>&5
 
6399
  ac_status=$?
 
6400
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6401
  test $ac_status = 0; }; then
 
6402
    case `/usr/bin/file conftest.$ac_objext` in
 
6403
      *ELF-32*)
 
6404
        HPUX_IA64_MODE="32"
 
6405
        ;;
 
6406
      *ELF-64*)
 
6407
        HPUX_IA64_MODE="64"
 
6408
        ;;
 
6409
    esac
 
6410
  fi
 
6411
  rm -rf conftest*
 
6412
  ;;
 
6413
*-*-irix6*)
 
6414
  # Find out which ABI we are using.
 
6415
  echo '#line 6415 "configure"' > conftest.$ac_ext
 
6416
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6417
  (eval $ac_compile) 2>&5
 
6418
  ac_status=$?
 
6419
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6420
  test $ac_status = 0; }; then
 
6421
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6422
      case `/usr/bin/file conftest.$ac_objext` in
 
6423
        *32-bit*)
 
6424
          LD="${LD-ld} -melf32bsmip"
 
6425
          ;;
 
6426
        *N32*)
 
6427
          LD="${LD-ld} -melf32bmipn32"
 
6428
          ;;
 
6429
        *64-bit*)
 
6430
          LD="${LD-ld} -melf64bmip"
 
6431
        ;;
 
6432
      esac
 
6433
    else
 
6434
      case `/usr/bin/file conftest.$ac_objext` in
 
6435
        *32-bit*)
 
6436
          LD="${LD-ld} -32"
 
6437
          ;;
 
6438
        *N32*)
 
6439
          LD="${LD-ld} -n32"
 
6440
          ;;
 
6441
        *64-bit*)
 
6442
          LD="${LD-ld} -64"
 
6443
          ;;
 
6444
      esac
 
6445
    fi
 
6446
  fi
 
6447
  rm -rf conftest*
 
6448
  ;;
 
6449
 
 
6450
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6451
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6452
  # Find out which ABI we are using.
 
6453
  echo 'int i;' > conftest.$ac_ext
 
6454
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6455
  (eval $ac_compile) 2>&5
 
6456
  ac_status=$?
 
6457
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6458
  test $ac_status = 0; }; then
 
6459
    case `/usr/bin/file conftest.o` in
 
6460
      *32-bit*)
 
6461
        case $host in
 
6462
          x86_64-*kfreebsd*-gnu)
 
6463
            LD="${LD-ld} -m elf_i386_fbsd"
 
6464
            ;;
 
6465
          x86_64-*linux*)
 
6466
            LD="${LD-ld} -m elf_i386"
 
6467
            ;;
 
6468
          ppc64-*linux*|powerpc64-*linux*)
 
6469
            LD="${LD-ld} -m elf32ppclinux"
 
6470
            ;;
 
6471
          s390x-*linux*)
 
6472
            LD="${LD-ld} -m elf_s390"
 
6473
            ;;
 
6474
          sparc64-*linux*)
 
6475
            LD="${LD-ld} -m elf32_sparc"
 
6476
            ;;
 
6477
        esac
 
6478
        ;;
 
6479
      *64-bit*)
 
6480
        case $host in
 
6481
          x86_64-*kfreebsd*-gnu)
 
6482
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6483
            ;;
 
6484
          x86_64-*linux*)
 
6485
            LD="${LD-ld} -m elf_x86_64"
 
6486
            ;;
 
6487
          ppc*-*linux*|powerpc*-*linux*)
 
6488
            LD="${LD-ld} -m elf64ppc"
 
6489
            ;;
 
6490
          s390*-*linux*|s390*-*tpf*)
 
6491
            LD="${LD-ld} -m elf64_s390"
 
6492
            ;;
 
6493
          sparc*-*linux*)
 
6494
            LD="${LD-ld} -m elf64_sparc"
 
6495
            ;;
 
6496
        esac
 
6497
        ;;
 
6498
    esac
 
6499
  fi
 
6500
  rm -rf conftest*
 
6501
  ;;
 
6502
 
 
6503
*-*-sco3.2v5*)
 
6504
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6505
  SAVE_CFLAGS="$CFLAGS"
 
6506
  CFLAGS="$CFLAGS -belf"
 
6507
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6508
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6509
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6510
  $as_echo_n "(cached) " >&6
 
6511
else
 
6512
  ac_ext=c
 
6513
ac_cpp='$CPP $CPPFLAGS'
 
6514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6517
 
 
6518
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6519
/* end confdefs.h.  */
 
6520
 
 
6521
int
 
6522
main ()
 
6523
{
 
6524
 
 
6525
  ;
 
6526
  return 0;
 
6527
}
 
6528
_ACEOF
 
6529
if ac_fn_c_try_link "$LINENO"; then :
 
6530
  lt_cv_cc_needs_belf=yes
 
6531
else
 
6532
  lt_cv_cc_needs_belf=no
 
6533
fi
 
6534
rm -f core conftest.err conftest.$ac_objext \
 
6535
    conftest$ac_exeext conftest.$ac_ext
 
6536
     ac_ext=c
 
6537
ac_cpp='$CPP $CPPFLAGS'
 
6538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6541
 
 
6542
fi
 
6543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6544
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6545
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6546
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6547
    CFLAGS="$SAVE_CFLAGS"
 
6548
  fi
 
6549
  ;;
 
6550
sparc*-*solaris*)
 
6551
  # Find out which ABI we are using.
 
6552
  echo 'int i;' > conftest.$ac_ext
 
6553
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6554
  (eval $ac_compile) 2>&5
 
6555
  ac_status=$?
 
6556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6557
  test $ac_status = 0; }; then
 
6558
    case `/usr/bin/file conftest.o` in
 
6559
    *64-bit*)
 
6560
      case $lt_cv_prog_gnu_ld in
 
6561
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6562
      *)
 
6563
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6564
          LD="${LD-ld} -64"
 
6565
        fi
 
6566
        ;;
 
6567
      esac
 
6568
      ;;
 
6569
    esac
 
6570
  fi
 
6571
  rm -rf conftest*
 
6572
  ;;
 
6573
esac
 
6574
 
 
6575
need_locks="$enable_libtool_lock"
 
6576
 
 
6577
 
 
6578
  case $host_os in
 
6579
    rhapsody* | darwin*)
 
6580
    if test -n "$ac_tool_prefix"; then
 
6581
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6582
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6584
$as_echo_n "checking for $ac_word... " >&6; }
 
6585
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6586
  $as_echo_n "(cached) " >&6
 
6587
else
 
6588
  if test -n "$DSYMUTIL"; then
 
6589
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6590
else
 
6591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6592
for as_dir in $PATH
 
6593
do
 
6594
  IFS=$as_save_IFS
 
6595
  test -z "$as_dir" && as_dir=.
 
6596
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6598
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6600
    break 2
 
6601
  fi
 
6602
done
 
6603
  done
 
6604
IFS=$as_save_IFS
 
6605
 
 
6606
fi
 
6607
fi
 
6608
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6609
if test -n "$DSYMUTIL"; then
 
6610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6611
$as_echo "$DSYMUTIL" >&6; }
 
6612
else
 
6613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6614
$as_echo "no" >&6; }
 
6615
fi
 
6616
 
 
6617
 
 
6618
fi
 
6619
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6620
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6621
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6622
set dummy dsymutil; ac_word=$2
 
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6624
$as_echo_n "checking for $ac_word... " >&6; }
 
6625
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6626
  $as_echo_n "(cached) " >&6
 
6627
else
 
6628
  if test -n "$ac_ct_DSYMUTIL"; then
 
6629
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6630
else
 
6631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6632
for as_dir in $PATH
 
6633
do
 
6634
  IFS=$as_save_IFS
 
6635
  test -z "$as_dir" && as_dir=.
 
6636
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6637
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6638
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6639
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6640
    break 2
 
6641
  fi
 
6642
done
 
6643
  done
 
6644
IFS=$as_save_IFS
 
6645
 
 
6646
fi
 
6647
fi
 
6648
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6649
if test -n "$ac_ct_DSYMUTIL"; then
 
6650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6651
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6652
else
 
6653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6654
$as_echo "no" >&6; }
 
6655
fi
 
6656
 
 
6657
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6658
    DSYMUTIL=":"
 
6659
  else
 
6660
    case $cross_compiling:$ac_tool_warned in
 
6661
yes:)
 
6662
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6663
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6664
ac_tool_warned=yes ;;
 
6665
esac
 
6666
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6667
  fi
 
6668
else
 
6669
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6670
fi
 
6671
 
 
6672
    if test -n "$ac_tool_prefix"; then
 
6673
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6674
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6676
$as_echo_n "checking for $ac_word... " >&6; }
 
6677
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6678
  $as_echo_n "(cached) " >&6
 
6679
else
 
6680
  if test -n "$NMEDIT"; then
 
6681
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6682
else
 
6683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6684
for as_dir in $PATH
 
6685
do
 
6686
  IFS=$as_save_IFS
 
6687
  test -z "$as_dir" && as_dir=.
 
6688
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6689
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6690
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6692
    break 2
 
6693
  fi
 
6694
done
 
6695
  done
 
6696
IFS=$as_save_IFS
 
6697
 
 
6698
fi
 
6699
fi
 
6700
NMEDIT=$ac_cv_prog_NMEDIT
 
6701
if test -n "$NMEDIT"; then
 
6702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6703
$as_echo "$NMEDIT" >&6; }
 
6704
else
 
6705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6706
$as_echo "no" >&6; }
 
6707
fi
 
6708
 
 
6709
 
 
6710
fi
 
6711
if test -z "$ac_cv_prog_NMEDIT"; then
 
6712
  ac_ct_NMEDIT=$NMEDIT
 
6713
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6714
set dummy nmedit; ac_word=$2
 
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6716
$as_echo_n "checking for $ac_word... " >&6; }
 
6717
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6718
  $as_echo_n "(cached) " >&6
 
6719
else
 
6720
  if test -n "$ac_ct_NMEDIT"; then
 
6721
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6722
else
 
6723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6724
for as_dir in $PATH
 
6725
do
 
6726
  IFS=$as_save_IFS
 
6727
  test -z "$as_dir" && as_dir=.
 
6728
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6729
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6730
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6731
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6732
    break 2
 
6733
  fi
 
6734
done
 
6735
  done
 
6736
IFS=$as_save_IFS
 
6737
 
 
6738
fi
 
6739
fi
 
6740
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6741
if test -n "$ac_ct_NMEDIT"; then
 
6742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6743
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6744
else
 
6745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6746
$as_echo "no" >&6; }
 
6747
fi
 
6748
 
 
6749
  if test "x$ac_ct_NMEDIT" = x; then
 
6750
    NMEDIT=":"
 
6751
  else
 
6752
    case $cross_compiling:$ac_tool_warned in
 
6753
yes:)
 
6754
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6755
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6756
ac_tool_warned=yes ;;
 
6757
esac
 
6758
    NMEDIT=$ac_ct_NMEDIT
 
6759
  fi
 
6760
else
 
6761
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6762
fi
 
6763
 
 
6764
    if test -n "$ac_tool_prefix"; then
 
6765
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6766
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6768
$as_echo_n "checking for $ac_word... " >&6; }
 
6769
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6770
  $as_echo_n "(cached) " >&6
 
6771
else
 
6772
  if test -n "$LIPO"; then
 
6773
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6774
else
 
6775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6776
for as_dir in $PATH
 
6777
do
 
6778
  IFS=$as_save_IFS
 
6779
  test -z "$as_dir" && as_dir=.
 
6780
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6782
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6783
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6784
    break 2
 
6785
  fi
 
6786
done
 
6787
  done
 
6788
IFS=$as_save_IFS
 
6789
 
 
6790
fi
 
6791
fi
 
6792
LIPO=$ac_cv_prog_LIPO
 
6793
if test -n "$LIPO"; then
 
6794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6795
$as_echo "$LIPO" >&6; }
 
6796
else
 
6797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6798
$as_echo "no" >&6; }
 
6799
fi
 
6800
 
 
6801
 
 
6802
fi
 
6803
if test -z "$ac_cv_prog_LIPO"; then
 
6804
  ac_ct_LIPO=$LIPO
 
6805
  # Extract the first word of "lipo", so it can be a program name with args.
 
6806
set dummy lipo; ac_word=$2
 
6807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6808
$as_echo_n "checking for $ac_word... " >&6; }
 
6809
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6810
  $as_echo_n "(cached) " >&6
 
6811
else
 
6812
  if test -n "$ac_ct_LIPO"; then
 
6813
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6814
else
 
6815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6816
for as_dir in $PATH
 
6817
do
 
6818
  IFS=$as_save_IFS
 
6819
  test -z "$as_dir" && as_dir=.
 
6820
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6821
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6822
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6823
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6824
    break 2
 
6825
  fi
 
6826
done
 
6827
  done
 
6828
IFS=$as_save_IFS
 
6829
 
 
6830
fi
 
6831
fi
 
6832
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6833
if test -n "$ac_ct_LIPO"; then
 
6834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6835
$as_echo "$ac_ct_LIPO" >&6; }
 
6836
else
 
6837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6838
$as_echo "no" >&6; }
 
6839
fi
 
6840
 
 
6841
  if test "x$ac_ct_LIPO" = x; then
 
6842
    LIPO=":"
 
6843
  else
 
6844
    case $cross_compiling:$ac_tool_warned in
 
6845
yes:)
 
6846
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6847
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6848
ac_tool_warned=yes ;;
 
6849
esac
 
6850
    LIPO=$ac_ct_LIPO
 
6851
  fi
 
6852
else
 
6853
  LIPO="$ac_cv_prog_LIPO"
 
6854
fi
 
6855
 
 
6856
    if test -n "$ac_tool_prefix"; then
 
6857
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6858
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6860
$as_echo_n "checking for $ac_word... " >&6; }
 
6861
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6862
  $as_echo_n "(cached) " >&6
 
6863
else
 
6864
  if test -n "$OTOOL"; then
 
6865
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6866
else
 
6867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6868
for as_dir in $PATH
 
6869
do
 
6870
  IFS=$as_save_IFS
 
6871
  test -z "$as_dir" && as_dir=.
 
6872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6874
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6875
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6876
    break 2
 
6877
  fi
 
6878
done
 
6879
  done
 
6880
IFS=$as_save_IFS
 
6881
 
 
6882
fi
 
6883
fi
 
6884
OTOOL=$ac_cv_prog_OTOOL
 
6885
if test -n "$OTOOL"; then
 
6886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6887
$as_echo "$OTOOL" >&6; }
 
6888
else
 
6889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6890
$as_echo "no" >&6; }
 
6891
fi
 
6892
 
 
6893
 
 
6894
fi
 
6895
if test -z "$ac_cv_prog_OTOOL"; then
 
6896
  ac_ct_OTOOL=$OTOOL
 
6897
  # Extract the first word of "otool", so it can be a program name with args.
 
6898
set dummy otool; ac_word=$2
 
6899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6900
$as_echo_n "checking for $ac_word... " >&6; }
 
6901
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6902
  $as_echo_n "(cached) " >&6
 
6903
else
 
6904
  if test -n "$ac_ct_OTOOL"; then
 
6905
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6906
else
 
6907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6908
for as_dir in $PATH
 
6909
do
 
6910
  IFS=$as_save_IFS
 
6911
  test -z "$as_dir" && as_dir=.
 
6912
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6913
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6914
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6915
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6916
    break 2
 
6917
  fi
 
6918
done
 
6919
  done
 
6920
IFS=$as_save_IFS
 
6921
 
 
6922
fi
 
6923
fi
 
6924
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6925
if test -n "$ac_ct_OTOOL"; then
 
6926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6927
$as_echo "$ac_ct_OTOOL" >&6; }
 
6928
else
 
6929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6930
$as_echo "no" >&6; }
 
6931
fi
 
6932
 
 
6933
  if test "x$ac_ct_OTOOL" = x; then
 
6934
    OTOOL=":"
 
6935
  else
 
6936
    case $cross_compiling:$ac_tool_warned in
 
6937
yes:)
 
6938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6940
ac_tool_warned=yes ;;
 
6941
esac
 
6942
    OTOOL=$ac_ct_OTOOL
 
6943
  fi
 
6944
else
 
6945
  OTOOL="$ac_cv_prog_OTOOL"
 
6946
fi
 
6947
 
 
6948
    if test -n "$ac_tool_prefix"; then
 
6949
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6950
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6952
$as_echo_n "checking for $ac_word... " >&6; }
 
6953
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6954
  $as_echo_n "(cached) " >&6
 
6955
else
 
6956
  if test -n "$OTOOL64"; then
 
6957
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6958
else
 
6959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6960
for as_dir in $PATH
 
6961
do
 
6962
  IFS=$as_save_IFS
 
6963
  test -z "$as_dir" && as_dir=.
 
6964
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6966
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6967
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6968
    break 2
 
6969
  fi
 
6970
done
 
6971
  done
 
6972
IFS=$as_save_IFS
 
6973
 
 
6974
fi
 
6975
fi
 
6976
OTOOL64=$ac_cv_prog_OTOOL64
 
6977
if test -n "$OTOOL64"; then
 
6978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6979
$as_echo "$OTOOL64" >&6; }
 
6980
else
 
6981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6982
$as_echo "no" >&6; }
 
6983
fi
 
6984
 
 
6985
 
 
6986
fi
 
6987
if test -z "$ac_cv_prog_OTOOL64"; then
 
6988
  ac_ct_OTOOL64=$OTOOL64
 
6989
  # Extract the first word of "otool64", so it can be a program name with args.
 
6990
set dummy otool64; ac_word=$2
 
6991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6992
$as_echo_n "checking for $ac_word... " >&6; }
 
6993
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6994
  $as_echo_n "(cached) " >&6
 
6995
else
 
6996
  if test -n "$ac_ct_OTOOL64"; then
 
6997
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6998
else
 
6999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7000
for as_dir in $PATH
 
7001
do
 
7002
  IFS=$as_save_IFS
 
7003
  test -z "$as_dir" && as_dir=.
 
7004
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7005
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7006
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7007
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7008
    break 2
 
7009
  fi
 
7010
done
 
7011
  done
 
7012
IFS=$as_save_IFS
 
7013
 
 
7014
fi
 
7015
fi
 
7016
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7017
if test -n "$ac_ct_OTOOL64"; then
 
7018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7019
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7020
else
 
7021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7022
$as_echo "no" >&6; }
 
7023
fi
 
7024
 
 
7025
  if test "x$ac_ct_OTOOL64" = x; then
 
7026
    OTOOL64=":"
 
7027
  else
 
7028
    case $cross_compiling:$ac_tool_warned in
 
7029
yes:)
 
7030
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7031
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7032
ac_tool_warned=yes ;;
 
7033
esac
 
7034
    OTOOL64=$ac_ct_OTOOL64
 
7035
  fi
 
7036
else
 
7037
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7038
fi
 
7039
 
 
7040
 
 
7041
 
 
7042
 
 
7043
 
 
7044
 
 
7045
 
 
7046
 
 
7047
 
 
7048
 
 
7049
 
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
 
 
7065
 
 
7066
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7067
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7068
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7069
  $as_echo_n "(cached) " >&6
 
7070
else
 
7071
  lt_cv_apple_cc_single_mod=no
 
7072
      if test -z "${LT_MULTI_MODULE}"; then
 
7073
        # By default we will add the -single_module flag. You can override
 
7074
        # by either setting the environment variable LT_MULTI_MODULE
 
7075
        # non-empty at configure time, or by adding -multi_module to the
 
7076
        # link flags.
 
7077
        rm -rf libconftest.dylib*
 
7078
        echo "int foo(void){return 1;}" > conftest.c
 
7079
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7080
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7081
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7082
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7083
        _lt_result=$?
 
7084
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7085
          lt_cv_apple_cc_single_mod=yes
 
7086
        else
 
7087
          cat conftest.err >&5
 
7088
        fi
 
7089
        rm -rf libconftest.dylib*
 
7090
        rm -f conftest.*
 
7091
      fi
 
7092
fi
 
7093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7094
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7095
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7096
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7097
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7098
  $as_echo_n "(cached) " >&6
 
7099
else
 
7100
  lt_cv_ld_exported_symbols_list=no
 
7101
      save_LDFLAGS=$LDFLAGS
 
7102
      echo "_main" > conftest.sym
 
7103
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7104
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7105
/* end confdefs.h.  */
 
7106
 
 
7107
int
 
7108
main ()
 
7109
{
 
7110
 
 
7111
  ;
 
7112
  return 0;
 
7113
}
 
7114
_ACEOF
 
7115
if ac_fn_c_try_link "$LINENO"; then :
 
7116
  lt_cv_ld_exported_symbols_list=yes
 
7117
else
 
7118
  lt_cv_ld_exported_symbols_list=no
 
7119
fi
 
7120
rm -f core conftest.err conftest.$ac_objext \
 
7121
    conftest$ac_exeext conftest.$ac_ext
 
7122
        LDFLAGS="$save_LDFLAGS"
 
7123
 
 
7124
fi
 
7125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7126
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7127
    case $host_os in
 
7128
    rhapsody* | darwin1.[012])
 
7129
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7130
    darwin1.*)
 
7131
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7132
    darwin*) # darwin 5.x on
 
7133
      # if running on 10.5 or later, the deployment target defaults
 
7134
      # to the OS version, if on x86, and 10.4, the deployment
 
7135
      # target defaults to 10.4. Don't you love it?
 
7136
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7137
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7138
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7139
        10.[012]*)
 
7140
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7141
        10.*)
 
7142
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7143
      esac
 
7144
    ;;
 
7145
  esac
 
7146
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7147
      _lt_dar_single_mod='$single_module'
 
7148
    fi
 
7149
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7150
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7151
    else
 
7152
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7153
    fi
 
7154
    if test "$DSYMUTIL" != ":"; then
 
7155
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7156
    else
 
7157
      _lt_dsymutil=
 
7158
    fi
 
7159
    ;;
 
7160
  esac
 
7161
 
 
7162
for ac_header in dlfcn.h
 
7163
do :
 
7164
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7165
"
 
7166
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7167
  cat >>confdefs.h <<_ACEOF
 
7168
#define HAVE_DLFCN_H 1
 
7169
_ACEOF
 
7170
 
 
7171
fi
 
7172
 
 
7173
done
 
7174
 
 
7175
 
 
7176
 
 
7177
# Set options
 
7178
 
 
7179
 
 
7180
 
 
7181
        enable_dlopen=no
 
7182
 
 
7183
 
 
7184
  enable_win32_dll=no
 
7185
 
 
7186
 
 
7187
            # Check whether --enable-shared was given.
 
7188
if test "${enable_shared+set}" = set; then :
 
7189
  enableval=$enable_shared; p=${PACKAGE-default}
 
7190
    case $enableval in
 
7191
    yes) enable_shared=yes ;;
 
7192
    no) enable_shared=no ;;
 
7193
    *)
 
7194
      enable_shared=no
 
7195
      # Look at the argument we got.  We use all the common list separators.
 
7196
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7197
      for pkg in $enableval; do
 
7198
        IFS="$lt_save_ifs"
 
7199
        if test "X$pkg" = "X$p"; then
 
7200
          enable_shared=yes
 
7201
        fi
 
7202
      done
 
7203
      IFS="$lt_save_ifs"
 
7204
      ;;
 
7205
    esac
 
7206
else
 
7207
  enable_shared=yes
 
7208
fi
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
  # Check whether --enable-static was given.
 
7219
if test "${enable_static+set}" = set; then :
 
7220
  enableval=$enable_static; p=${PACKAGE-default}
 
7221
    case $enableval in
 
7222
    yes) enable_static=yes ;;
 
7223
    no) enable_static=no ;;
 
7224
    *)
 
7225
     enable_static=no
 
7226
      # Look at the argument we got.  We use all the common list separators.
 
7227
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7228
      for pkg in $enableval; do
 
7229
        IFS="$lt_save_ifs"
 
7230
        if test "X$pkg" = "X$p"; then
 
7231
          enable_static=yes
 
7232
        fi
 
7233
      done
 
7234
      IFS="$lt_save_ifs"
 
7235
      ;;
 
7236
    esac
 
7237
else
 
7238
  enable_static=yes
 
7239
fi
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
 
 
7250
# Check whether --with-pic was given.
 
7251
if test "${with_pic+set}" = set; then :
 
7252
  withval=$with_pic; pic_mode="$withval"
 
7253
else
 
7254
  pic_mode=default
 
7255
fi
 
7256
 
 
7257
 
 
7258
test -z "$pic_mode" && pic_mode=default
 
7259
 
 
7260
 
 
7261
 
 
7262
 
 
7263
 
 
7264
 
 
7265
 
 
7266
  # Check whether --enable-fast-install was given.
 
7267
if test "${enable_fast_install+set}" = set; then :
 
7268
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7269
    case $enableval in
 
7270
    yes) enable_fast_install=yes ;;
 
7271
    no) enable_fast_install=no ;;
 
7272
    *)
 
7273
      enable_fast_install=no
 
7274
      # Look at the argument we got.  We use all the common list separators.
 
7275
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7276
      for pkg in $enableval; do
 
7277
        IFS="$lt_save_ifs"
 
7278
        if test "X$pkg" = "X$p"; then
 
7279
          enable_fast_install=yes
 
7280
        fi
 
7281
      done
 
7282
      IFS="$lt_save_ifs"
 
7283
      ;;
 
7284
    esac
 
7285
else
 
7286
  enable_fast_install=yes
 
7287
fi
 
7288
 
 
7289
 
 
7290
 
 
7291
 
 
7292
 
 
7293
 
 
7294
 
 
7295
 
 
7296
 
 
7297
 
 
7298
 
 
7299
# This can be used to rebuild libtool when needed
 
7300
LIBTOOL_DEPS="$ltmain"
 
7301
 
 
7302
# Always use our own libtool.
 
7303
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7304
 
 
7305
 
 
7306
 
 
7307
 
 
7308
 
 
7309
 
 
7310
 
 
7311
 
 
7312
 
 
7313
 
 
7314
 
 
7315
 
 
7316
 
 
7317
 
 
7318
 
 
7319
 
 
7320
 
 
7321
 
 
7322
 
 
7323
 
 
7324
 
 
7325
 
 
7326
 
 
7327
 
 
7328
 
 
7329
test -z "$LN_S" && LN_S="ln -s"
 
7330
 
 
7331
 
 
7332
 
 
7333
 
 
7334
 
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
 
 
7340
 
 
7341
 
 
7342
 
 
7343
 
 
7344
if test -n "${ZSH_VERSION+set}" ; then
 
7345
   setopt NO_GLOB_SUBST
 
7346
fi
 
7347
 
 
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7349
$as_echo_n "checking for objdir... " >&6; }
 
7350
if test "${lt_cv_objdir+set}" = set; then :
 
7351
  $as_echo_n "(cached) " >&6
 
7352
else
 
7353
  rm -f .libs 2>/dev/null
 
7354
mkdir .libs 2>/dev/null
 
7355
if test -d .libs; then
 
7356
  lt_cv_objdir=.libs
 
7357
else
 
7358
  # MS-DOS does not allow filenames that begin with a dot.
 
7359
  lt_cv_objdir=_libs
 
7360
fi
 
7361
rmdir .libs 2>/dev/null
 
7362
fi
 
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7364
$as_echo "$lt_cv_objdir" >&6; }
 
7365
objdir=$lt_cv_objdir
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
cat >>confdefs.h <<_ACEOF
 
7372
#define LT_OBJDIR "$lt_cv_objdir/"
 
7373
_ACEOF
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
 
 
7391
case $host_os in
 
7392
aix3*)
 
7393
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7394
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7395
  # vanish in a puff of smoke.
 
7396
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7397
    COLLECT_NAMES=
 
7398
    export COLLECT_NAMES
 
7399
  fi
 
7400
  ;;
 
7401
esac
 
7402
 
 
7403
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7404
# metacharacters that are still active within double-quoted strings.
 
7405
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7406
 
 
7407
# Same as above, but do not quote variable references.
 
7408
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7409
 
 
7410
# Sed substitution to delay expansion of an escaped shell variable in a
 
7411
# double_quote_subst'ed string.
 
7412
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7413
 
 
7414
# Sed substitution to delay expansion of an escaped single quote.
 
7415
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7416
 
 
7417
# Sed substitution to avoid accidental globbing in evaled expressions
 
7418
no_glob_subst='s/\*/\\\*/g'
 
7419
 
 
7420
# Global variables:
 
7421
ofile=libtool
 
7422
can_build_shared=yes
 
7423
 
 
7424
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7425
# which needs '.lib').
 
7426
libext=a
 
7427
 
 
7428
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7429
 
 
7430
old_CC="$CC"
 
7431
old_CFLAGS="$CFLAGS"
 
7432
 
 
7433
# Set sane defaults for various variables
 
7434
test -z "$CC" && CC=cc
 
7435
test -z "$LTCC" && LTCC=$CC
 
7436
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7437
test -z "$LD" && LD=ld
 
7438
test -z "$ac_objext" && ac_objext=o
 
7439
 
 
7440
for cc_temp in $compiler""; do
 
7441
  case $cc_temp in
 
7442
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7443
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7444
    \-*) ;;
 
7445
    *) break;;
 
7446
  esac
 
7447
done
 
7448
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7449
 
 
7450
 
 
7451
# Only perform the check for file, if the check method requires it
 
7452
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7453
case $deplibs_check_method in
 
7454
file_magic*)
 
7455
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7456
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7457
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7458
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7459
  $as_echo_n "(cached) " >&6
 
7460
else
 
7461
  case $MAGIC_CMD in
 
7462
[\\/*] |  ?:[\\/]*)
 
7463
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7464
  ;;
 
7465
*)
 
7466
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7467
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7468
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7469
  for ac_dir in $ac_dummy; do
 
7470
    IFS="$lt_save_ifs"
 
7471
    test -z "$ac_dir" && ac_dir=.
 
7472
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7473
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7474
      if test -n "$file_magic_test_file"; then
 
7475
        case $deplibs_check_method in
 
7476
        "file_magic "*)
 
7477
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7478
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7479
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7480
            $EGREP "$file_magic_regex" > /dev/null; then
 
7481
            :
 
7482
          else
 
7483
            cat <<_LT_EOF 1>&2
 
7484
 
 
7485
*** Warning: the command libtool uses to detect shared libraries,
 
7486
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7487
*** The result is that libtool may fail to recognize shared libraries
 
7488
*** as such.  This will affect the creation of libtool libraries that
 
7489
*** depend on shared libraries, but programs linked with such libtool
 
7490
*** libraries will work regardless of this problem.  Nevertheless, you
 
7491
*** may want to report the problem to your system manager and/or to
 
7492
*** bug-libtool@gnu.org
 
7493
 
 
7494
_LT_EOF
 
7495
          fi ;;
 
7496
        esac
 
7497
      fi
 
7498
      break
 
7499
    fi
 
7500
  done
 
7501
  IFS="$lt_save_ifs"
 
7502
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7503
  ;;
 
7504
esac
 
7505
fi
 
7506
 
 
7507
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7508
if test -n "$MAGIC_CMD"; then
 
7509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7510
$as_echo "$MAGIC_CMD" >&6; }
 
7511
else
 
7512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7513
$as_echo "no" >&6; }
 
7514
fi
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7521
  if test -n "$ac_tool_prefix"; then
 
7522
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7523
$as_echo_n "checking for file... " >&6; }
 
7524
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7525
  $as_echo_n "(cached) " >&6
 
7526
else
 
7527
  case $MAGIC_CMD in
 
7528
[\\/*] |  ?:[\\/]*)
 
7529
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7530
  ;;
 
7531
*)
 
7532
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7533
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7534
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7535
  for ac_dir in $ac_dummy; do
 
7536
    IFS="$lt_save_ifs"
 
7537
    test -z "$ac_dir" && ac_dir=.
 
7538
    if test -f $ac_dir/file; then
 
7539
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7540
      if test -n "$file_magic_test_file"; then
 
7541
        case $deplibs_check_method in
 
7542
        "file_magic "*)
 
7543
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7544
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7545
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7546
            $EGREP "$file_magic_regex" > /dev/null; then
 
7547
            :
 
7548
          else
 
7549
            cat <<_LT_EOF 1>&2
 
7550
 
 
7551
*** Warning: the command libtool uses to detect shared libraries,
 
7552
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7553
*** The result is that libtool may fail to recognize shared libraries
 
7554
*** as such.  This will affect the creation of libtool libraries that
 
7555
*** depend on shared libraries, but programs linked with such libtool
 
7556
*** libraries will work regardless of this problem.  Nevertheless, you
 
7557
*** may want to report the problem to your system manager and/or to
 
7558
*** bug-libtool@gnu.org
 
7559
 
 
7560
_LT_EOF
 
7561
          fi ;;
 
7562
        esac
 
7563
      fi
 
7564
      break
 
7565
    fi
 
7566
  done
 
7567
  IFS="$lt_save_ifs"
 
7568
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7569
  ;;
 
7570
esac
 
7571
fi
 
7572
 
 
7573
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7574
if test -n "$MAGIC_CMD"; then
 
7575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7576
$as_echo "$MAGIC_CMD" >&6; }
 
7577
else
 
7578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7579
$as_echo "no" >&6; }
 
7580
fi
 
7581
 
 
7582
 
 
7583
  else
 
7584
    MAGIC_CMD=:
 
7585
  fi
 
7586
fi
 
7587
 
 
7588
  fi
 
7589
  ;;
 
7590
esac
 
7591
 
 
7592
# Use C for the default configuration in the libtool script
 
7593
 
 
7594
lt_save_CC="$CC"
 
7595
ac_ext=c
 
7596
ac_cpp='$CPP $CPPFLAGS'
 
7597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7600
 
 
7601
 
 
7602
# Source file extension for C test sources.
 
7603
ac_ext=c
 
7604
 
 
7605
# Object file extension for compiled C test sources.
 
7606
objext=o
 
7607
objext=$objext
 
7608
 
 
7609
# Code to be used in simple compile tests
 
7610
lt_simple_compile_test_code="int some_variable = 0;"
 
7611
 
 
7612
# Code to be used in simple link tests
 
7613
lt_simple_link_test_code='int main(){return(0);}'
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
 
7619
 
 
7620
 
 
7621
# If no C compiler was specified, use CC.
 
7622
LTCC=${LTCC-"$CC"}
 
7623
 
 
7624
# If no C compiler flags were specified, use CFLAGS.
 
7625
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7626
 
 
7627
# Allow CC to be a program name with arguments.
 
7628
compiler=$CC
 
7629
 
 
7630
# Save the default compiler, since it gets overwritten when the other
 
7631
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7632
compiler_DEFAULT=$CC
 
7633
 
 
7634
# save warnings/boilerplate of simple test code
 
7635
ac_outfile=conftest.$ac_objext
 
7636
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7637
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7638
_lt_compiler_boilerplate=`cat conftest.err`
 
7639
$RM conftest*
 
7640
 
 
7641
ac_outfile=conftest.$ac_objext
 
7642
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7643
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7644
_lt_linker_boilerplate=`cat conftest.err`
 
7645
$RM -r conftest*
 
7646
 
 
7647
 
 
7648
## CAVEAT EMPTOR:
 
7649
## There is no encapsulation within the following macros, do not change
 
7650
## the running order or otherwise move them around unless you know exactly
 
7651
## what you are doing...
 
7652
if test -n "$compiler"; then
 
7653
 
 
7654
lt_prog_compiler_no_builtin_flag=
 
7655
 
 
7656
if test "$GCC" = yes; then
 
7657
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7658
 
 
7659
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7660
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7661
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
7662
  $as_echo_n "(cached) " >&6
 
7663
else
 
7664
  lt_cv_prog_compiler_rtti_exceptions=no
 
7665
   ac_outfile=conftest.$ac_objext
 
7666
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7667
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7668
   # Insert the option either (1) after the last *FLAGS variable, or
 
7669
   # (2) before a word containing "conftest.", or (3) at the end.
 
7670
   # Note that $ac_compile itself does not contain backslashes and begins
 
7671
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7672
   # The option is referenced via a variable to avoid confusing sed.
 
7673
   lt_compile=`echo "$ac_compile" | $SED \
 
7674
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7675
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7676
   -e 's:$: $lt_compiler_flag:'`
 
7677
   (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
 
7678
   (eval "$lt_compile" 2>conftest.err)
 
7679
   ac_status=$?
 
7680
   cat conftest.err >&5
 
7681
   echo "$as_me:7681: \$? = $ac_status" >&5
 
7682
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7683
     # The compiler can only warn and ignore the option if not recognized
 
7684
     # So say no if there are warnings other than the usual output.
 
7685
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7686
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7687
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7688
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7689
     fi
 
7690
   fi
 
7691
   $RM conftest*
 
7692
 
 
7693
fi
 
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7695
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7696
 
 
7697
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7698
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7699
else
 
7700
    :
 
7701
fi
 
7702
 
 
7703
fi
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
  lt_prog_compiler_wl=
 
7711
lt_prog_compiler_pic=
 
7712
lt_prog_compiler_static=
 
7713
 
 
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
7715
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7716
 
 
7717
  if test "$GCC" = yes; then
 
7718
    lt_prog_compiler_wl='-Wl,'
 
7719
    lt_prog_compiler_static='-static'
 
7720
 
 
7721
    case $host_os in
 
7722
      aix*)
 
7723
      # All AIX code is PIC.
 
7724
      if test "$host_cpu" = ia64; then
 
7725
        # AIX 5 now supports IA64 processor
 
7726
        lt_prog_compiler_static='-Bstatic'
 
7727
      fi
 
7728
      ;;
 
7729
 
 
7730
    amigaos*)
 
7731
      case $host_cpu in
 
7732
      powerpc)
 
7733
            # see comment about AmigaOS4 .so support
 
7734
            lt_prog_compiler_pic='-fPIC'
 
7735
        ;;
 
7736
      m68k)
 
7737
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7738
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7739
            # like `-m68040'.
 
7740
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7741
        ;;
 
7742
      esac
 
7743
      ;;
 
7744
 
 
7745
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7746
      # PIC is the default for these OSes.
 
7747
      ;;
 
7748
 
 
7749
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7750
      # This hack is so that the source file can tell whether it is being
 
7751
      # built for inclusion in a dll (and should export symbols for example).
 
7752
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7753
      # (--disable-auto-import) libraries
 
7754
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7755
      ;;
 
7756
 
 
7757
    darwin* | rhapsody*)
 
7758
      # PIC is the default on this platform
 
7759
      # Common symbols not allowed in MH_DYLIB files
 
7760
      lt_prog_compiler_pic='-fno-common'
 
7761
      ;;
 
7762
 
 
7763
    hpux*)
 
7764
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7765
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7766
      # sets the default TLS model and affects inlining.
 
7767
      case $host_cpu in
 
7768
      hppa*64*)
 
7769
        # +Z the default
 
7770
        ;;
 
7771
      *)
 
7772
        lt_prog_compiler_pic='-fPIC'
 
7773
        ;;
 
7774
      esac
 
7775
      ;;
 
7776
 
 
7777
    interix[3-9]*)
 
7778
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7779
      # Instead, we relocate shared libraries at runtime.
 
7780
      ;;
 
7781
 
 
7782
    msdosdjgpp*)
 
7783
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7784
      # on systems that don't support them.
 
7785
      lt_prog_compiler_can_build_shared=no
 
7786
      enable_shared=no
 
7787
      ;;
 
7788
 
 
7789
    *nto* | *qnx*)
 
7790
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7791
      # it will coredump.
 
7792
      lt_prog_compiler_pic='-fPIC -shared'
 
7793
      ;;
 
7794
 
 
7795
    sysv4*MP*)
 
7796
      if test -d /usr/nec; then
 
7797
        lt_prog_compiler_pic=-Kconform_pic
 
7798
      fi
 
7799
      ;;
 
7800
 
 
7801
    *)
 
7802
      lt_prog_compiler_pic='-fPIC'
 
7803
      ;;
 
7804
    esac
 
7805
  else
 
7806
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7807
    case $host_os in
 
7808
    aix*)
 
7809
      lt_prog_compiler_wl='-Wl,'
 
7810
      if test "$host_cpu" = ia64; then
 
7811
        # AIX 5 now supports IA64 processor
 
7812
        lt_prog_compiler_static='-Bstatic'
 
7813
      else
 
7814
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7815
      fi
 
7816
      ;;
 
7817
 
 
7818
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7819
      # This hack is so that the source file can tell whether it is being
 
7820
      # built for inclusion in a dll (and should export symbols for example).
 
7821
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7822
      ;;
 
7823
 
 
7824
    hpux9* | hpux10* | hpux11*)
 
7825
      lt_prog_compiler_wl='-Wl,'
 
7826
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7827
      # not for PA HP-UX.
 
7828
      case $host_cpu in
 
7829
      hppa*64*|ia64*)
 
7830
        # +Z the default
 
7831
        ;;
 
7832
      *)
 
7833
        lt_prog_compiler_pic='+Z'
 
7834
        ;;
 
7835
      esac
 
7836
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7837
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7838
      ;;
 
7839
 
 
7840
    irix5* | irix6* | nonstopux*)
 
7841
      lt_prog_compiler_wl='-Wl,'
 
7842
      # PIC (with -KPIC) is the default.
 
7843
      lt_prog_compiler_static='-non_shared'
 
7844
      ;;
 
7845
 
 
7846
    linux* | k*bsd*-gnu)
 
7847
      case $cc_basename in
 
7848
      # old Intel for x86_64 which still supported -KPIC.
 
7849
      ecc*)
 
7850
        lt_prog_compiler_wl='-Wl,'
 
7851
        lt_prog_compiler_pic='-KPIC'
 
7852
        lt_prog_compiler_static='-static'
 
7853
        ;;
 
7854
      # icc used to be incompatible with GCC.
 
7855
      # ICC 10 doesn't accept -KPIC any more.
 
7856
      icc* | ifort*)
 
7857
        lt_prog_compiler_wl='-Wl,'
 
7858
        lt_prog_compiler_pic='-fPIC'
 
7859
        lt_prog_compiler_static='-static'
 
7860
        ;;
 
7861
      # Lahey Fortran 8.1.
 
7862
      lf95*)
 
7863
        lt_prog_compiler_wl='-Wl,'
 
7864
        lt_prog_compiler_pic='--shared'
 
7865
        lt_prog_compiler_static='--static'
 
7866
        ;;
 
7867
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7868
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7869
        # which looks to be a dead project)
 
7870
        lt_prog_compiler_wl='-Wl,'
 
7871
        lt_prog_compiler_pic='-fpic'
 
7872
        lt_prog_compiler_static='-Bstatic'
 
7873
        ;;
 
7874
      ccc*)
 
7875
        lt_prog_compiler_wl='-Wl,'
 
7876
        # All Alpha code is PIC.
 
7877
        lt_prog_compiler_static='-non_shared'
 
7878
        ;;
 
7879
      xl*)
 
7880
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7881
        lt_prog_compiler_wl='-Wl,'
 
7882
        lt_prog_compiler_pic='-qpic'
 
7883
        lt_prog_compiler_static='-qstaticlink'
 
7884
        ;;
 
7885
      *)
 
7886
        case `$CC -V 2>&1 | sed 5q` in
 
7887
        *Sun\ C*)
 
7888
          # Sun C 5.9
 
7889
          lt_prog_compiler_pic='-KPIC'
 
7890
          lt_prog_compiler_static='-Bstatic'
 
7891
          lt_prog_compiler_wl='-Wl,'
 
7892
          ;;
 
7893
        *Sun\ F*)
 
7894
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7895
          lt_prog_compiler_pic='-KPIC'
 
7896
          lt_prog_compiler_static='-Bstatic'
 
7897
          lt_prog_compiler_wl=''
 
7898
          ;;
 
7899
        esac
 
7900
        ;;
 
7901
      esac
 
7902
      ;;
 
7903
 
 
7904
    newsos6)
 
7905
      lt_prog_compiler_pic='-KPIC'
 
7906
      lt_prog_compiler_static='-Bstatic'
 
7907
      ;;
 
7908
 
 
7909
    *nto* | *qnx*)
 
7910
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7911
      # it will coredump.
 
7912
      lt_prog_compiler_pic='-fPIC -shared'
 
7913
      ;;
 
7914
 
 
7915
    osf3* | osf4* | osf5*)
 
7916
      lt_prog_compiler_wl='-Wl,'
 
7917
      # All OSF/1 code is PIC.
 
7918
      lt_prog_compiler_static='-non_shared'
 
7919
      ;;
 
7920
 
 
7921
    rdos*)
 
7922
      lt_prog_compiler_static='-non_shared'
 
7923
      ;;
 
7924
 
 
7925
    solaris*)
 
7926
      lt_prog_compiler_pic='-KPIC'
 
7927
      lt_prog_compiler_static='-Bstatic'
 
7928
      case $cc_basename in
 
7929
      f77* | f90* | f95*)
 
7930
        lt_prog_compiler_wl='-Qoption ld ';;
 
7931
      *)
 
7932
        lt_prog_compiler_wl='-Wl,';;
 
7933
      esac
 
7934
      ;;
 
7935
 
 
7936
    sunos4*)
 
7937
      lt_prog_compiler_wl='-Qoption ld '
 
7938
      lt_prog_compiler_pic='-PIC'
 
7939
      lt_prog_compiler_static='-Bstatic'
 
7940
      ;;
 
7941
 
 
7942
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7943
      lt_prog_compiler_wl='-Wl,'
 
7944
      lt_prog_compiler_pic='-KPIC'
 
7945
      lt_prog_compiler_static='-Bstatic'
 
7946
      ;;
 
7947
 
 
7948
    sysv4*MP*)
 
7949
      if test -d /usr/nec ;then
 
7950
        lt_prog_compiler_pic='-Kconform_pic'
 
7951
        lt_prog_compiler_static='-Bstatic'
 
7952
      fi
 
7953
      ;;
 
7954
 
 
7955
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7956
      lt_prog_compiler_wl='-Wl,'
 
7957
      lt_prog_compiler_pic='-KPIC'
 
7958
      lt_prog_compiler_static='-Bstatic'
 
7959
      ;;
 
7960
 
 
7961
    unicos*)
 
7962
      lt_prog_compiler_wl='-Wl,'
 
7963
      lt_prog_compiler_can_build_shared=no
 
7964
      ;;
 
7965
 
 
7966
    uts4*)
 
7967
      lt_prog_compiler_pic='-pic'
 
7968
      lt_prog_compiler_static='-Bstatic'
 
7969
      ;;
 
7970
 
 
7971
    *)
 
7972
      lt_prog_compiler_can_build_shared=no
 
7973
      ;;
 
7974
    esac
 
7975
  fi
 
7976
 
 
7977
case $host_os in
 
7978
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7979
  *djgpp*)
 
7980
    lt_prog_compiler_pic=
 
7981
    ;;
 
7982
  *)
 
7983
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7984
    ;;
 
7985
esac
 
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
7987
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7988
 
 
7989
 
 
7990
 
 
7991
 
 
7992
 
 
7993
 
 
7994
#
 
7995
# Check to make sure the PIC flag actually works.
 
7996
#
 
7997
if test -n "$lt_prog_compiler_pic"; then
 
7998
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7999
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8000
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8001
  $as_echo_n "(cached) " >&6
 
8002
else
 
8003
  lt_cv_prog_compiler_pic_works=no
 
8004
   ac_outfile=conftest.$ac_objext
 
8005
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8006
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8007
   # Insert the option either (1) after the last *FLAGS variable, or
 
8008
   # (2) before a word containing "conftest.", or (3) at the end.
 
8009
   # Note that $ac_compile itself does not contain backslashes and begins
 
8010
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8011
   # The option is referenced via a variable to avoid confusing sed.
 
8012
   lt_compile=`echo "$ac_compile" | $SED \
 
8013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8015
   -e 's:$: $lt_compiler_flag:'`
 
8016
   (eval echo "\"\$as_me:8016: $lt_compile\"" >&5)
 
8017
   (eval "$lt_compile" 2>conftest.err)
 
8018
   ac_status=$?
 
8019
   cat conftest.err >&5
 
8020
   echo "$as_me:8020: \$? = $ac_status" >&5
 
8021
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8022
     # The compiler can only warn and ignore the option if not recognized
 
8023
     # So say no if there are warnings other than the usual output.
 
8024
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8025
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8026
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8027
       lt_cv_prog_compiler_pic_works=yes
 
8028
     fi
 
8029
   fi
 
8030
   $RM conftest*
 
8031
 
 
8032
fi
 
8033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8034
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8035
 
 
8036
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8037
    case $lt_prog_compiler_pic in
 
8038
     "" | " "*) ;;
 
8039
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8040
     esac
 
8041
else
 
8042
    lt_prog_compiler_pic=
 
8043
     lt_prog_compiler_can_build_shared=no
 
8044
fi
 
8045
 
 
8046
fi
 
8047
 
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
#
 
8054
# Check to make sure the static flag actually works.
 
8055
#
 
8056
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8058
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8059
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8060
  $as_echo_n "(cached) " >&6
 
8061
else
 
8062
  lt_cv_prog_compiler_static_works=no
 
8063
   save_LDFLAGS="$LDFLAGS"
 
8064
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8065
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8066
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8067
     # The linker can only warn and ignore the option if not recognized
 
8068
     # So say no if there are warnings
 
8069
     if test -s conftest.err; then
 
8070
       # Append any errors to the config.log.
 
8071
       cat conftest.err 1>&5
 
8072
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8073
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8074
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8075
         lt_cv_prog_compiler_static_works=yes
 
8076
       fi
 
8077
     else
 
8078
       lt_cv_prog_compiler_static_works=yes
 
8079
     fi
 
8080
   fi
 
8081
   $RM -r conftest*
 
8082
   LDFLAGS="$save_LDFLAGS"
 
8083
 
 
8084
fi
 
8085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8086
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8087
 
 
8088
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8089
    :
 
8090
else
 
8091
    lt_prog_compiler_static=
 
8092
fi
 
8093
 
 
8094
 
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8101
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8102
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8103
  $as_echo_n "(cached) " >&6
 
8104
else
 
8105
  lt_cv_prog_compiler_c_o=no
 
8106
   $RM -r conftest 2>/dev/null
 
8107
   mkdir conftest
 
8108
   cd conftest
 
8109
   mkdir out
 
8110
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8111
 
 
8112
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8113
   # Insert the option either (1) after the last *FLAGS variable, or
 
8114
   # (2) before a word containing "conftest.", or (3) at the end.
 
8115
   # Note that $ac_compile itself does not contain backslashes and begins
 
8116
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8117
   lt_compile=`echo "$ac_compile" | $SED \
 
8118
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8119
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8120
   -e 's:$: $lt_compiler_flag:'`
 
8121
   (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
 
8122
   (eval "$lt_compile" 2>out/conftest.err)
 
8123
   ac_status=$?
 
8124
   cat out/conftest.err >&5
 
8125
   echo "$as_me:8125: \$? = $ac_status" >&5
 
8126
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8127
   then
 
8128
     # The compiler can only warn and ignore the option if not recognized
 
8129
     # So say no if there are warnings
 
8130
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8131
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8132
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8133
       lt_cv_prog_compiler_c_o=yes
 
8134
     fi
 
8135
   fi
 
8136
   chmod u+w . 2>&5
 
8137
   $RM conftest*
 
8138
   # SGI C++ compiler will create directory out/ii_files/ for
 
8139
   # template instantiation
 
8140
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8141
   $RM out/* && rmdir out
 
8142
   cd ..
 
8143
   $RM -r conftest
 
8144
   $RM conftest*
 
8145
 
 
8146
fi
 
8147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8148
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8156
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8157
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8158
  $as_echo_n "(cached) " >&6
 
8159
else
 
8160
  lt_cv_prog_compiler_c_o=no
 
8161
   $RM -r conftest 2>/dev/null
 
8162
   mkdir conftest
 
8163
   cd conftest
 
8164
   mkdir out
 
8165
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8166
 
 
8167
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8168
   # Insert the option either (1) after the last *FLAGS variable, or
 
8169
   # (2) before a word containing "conftest.", or (3) at the end.
 
8170
   # Note that $ac_compile itself does not contain backslashes and begins
 
8171
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8172
   lt_compile=`echo "$ac_compile" | $SED \
 
8173
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8174
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8175
   -e 's:$: $lt_compiler_flag:'`
 
8176
   (eval echo "\"\$as_me:8176: $lt_compile\"" >&5)
 
8177
   (eval "$lt_compile" 2>out/conftest.err)
 
8178
   ac_status=$?
 
8179
   cat out/conftest.err >&5
 
8180
   echo "$as_me:8180: \$? = $ac_status" >&5
 
8181
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8182
   then
 
8183
     # The compiler can only warn and ignore the option if not recognized
 
8184
     # So say no if there are warnings
 
8185
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8186
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8187
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8188
       lt_cv_prog_compiler_c_o=yes
 
8189
     fi
 
8190
   fi
 
8191
   chmod u+w . 2>&5
 
8192
   $RM conftest*
 
8193
   # SGI C++ compiler will create directory out/ii_files/ for
 
8194
   # template instantiation
 
8195
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8196
   $RM out/* && rmdir out
 
8197
   cd ..
 
8198
   $RM -r conftest
 
8199
   $RM conftest*
 
8200
 
 
8201
fi
 
8202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8203
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
hard_links="nottested"
 
8209
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8210
  # do not overwrite the value of need_locks provided by the user
 
8211
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8212
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8213
  hard_links=yes
 
8214
  $RM conftest*
 
8215
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8216
  touch conftest.a
 
8217
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8218
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8220
$as_echo "$hard_links" >&6; }
 
8221
  if test "$hard_links" = no; then
 
8222
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8223
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8224
    need_locks=warn
 
8225
  fi
 
8226
else
 
8227
  need_locks=no
 
8228
fi
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
 
 
8234
 
 
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8236
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8237
 
 
8238
  runpath_var=
 
8239
  allow_undefined_flag=
 
8240
  always_export_symbols=no
 
8241
  archive_cmds=
 
8242
  archive_expsym_cmds=
 
8243
  compiler_needs_object=no
 
8244
  enable_shared_with_static_runtimes=no
 
8245
  export_dynamic_flag_spec=
 
8246
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8247
  hardcode_automatic=no
 
8248
  hardcode_direct=no
 
8249
  hardcode_direct_absolute=no
 
8250
  hardcode_libdir_flag_spec=
 
8251
  hardcode_libdir_flag_spec_ld=
 
8252
  hardcode_libdir_separator=
 
8253
  hardcode_minus_L=no
 
8254
  hardcode_shlibpath_var=unsupported
 
8255
  inherit_rpath=no
 
8256
  link_all_deplibs=unknown
 
8257
  module_cmds=
 
8258
  module_expsym_cmds=
 
8259
  old_archive_from_new_cmds=
 
8260
  old_archive_from_expsyms_cmds=
 
8261
  thread_safe_flag_spec=
 
8262
  whole_archive_flag_spec=
 
8263
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8264
  # included in the symbol list
 
8265
  include_expsyms=
 
8266
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8267
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8268
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8269
  # as well as any symbol that contains `d'.
 
8270
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8271
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8272
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8273
  # the symbol is explicitly referenced.  Since portable code cannot
 
8274
  # rely on this symbol name, it's probably fine to never include it in
 
8275
  # preloaded symbol tables.
 
8276
  # Exclude shared library initialization/finalization symbols.
 
8277
  extract_expsyms_cmds=
 
8278
 
 
8279
  case $host_os in
 
8280
  cygwin* | mingw* | pw32* | cegcc*)
 
8281
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8282
    # When not using gcc, we currently assume that we are using
 
8283
    # Microsoft Visual C++.
 
8284
    if test "$GCC" != yes; then
 
8285
      with_gnu_ld=no
 
8286
    fi
 
8287
    ;;
 
8288
  interix*)
 
8289
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8290
    with_gnu_ld=yes
 
8291
    ;;
 
8292
  openbsd*)
 
8293
    with_gnu_ld=no
 
8294
    ;;
 
8295
  esac
 
8296
 
 
8297
  ld_shlibs=yes
 
8298
  if test "$with_gnu_ld" = yes; then
 
8299
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8300
    wlarc='${wl}'
 
8301
 
 
8302
    # Set some defaults for GNU ld with shared library support. These
 
8303
    # are reset later if shared libraries are not supported. Putting them
 
8304
    # here allows them to be overridden if necessary.
 
8305
    runpath_var=LD_RUN_PATH
 
8306
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8307
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8308
    # ancient GNU ld didn't support --whole-archive et. al.
 
8309
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8310
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8311
    else
 
8312
      whole_archive_flag_spec=
 
8313
    fi
 
8314
    supports_anon_versioning=no
 
8315
    case `$LD -v 2>&1` in
 
8316
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8317
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8318
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8319
      *\ 2.11.*) ;; # other 2.11 versions
 
8320
      *) supports_anon_versioning=yes ;;
 
8321
    esac
 
8322
 
 
8323
    # See if GNU ld supports shared libraries.
 
8324
    case $host_os in
 
8325
    aix[3-9]*)
 
8326
      # On AIX/PPC, the GNU linker is very broken
 
8327
      if test "$host_cpu" != ia64; then
 
8328
        ld_shlibs=no
 
8329
        cat <<_LT_EOF 1>&2
 
8330
 
 
8331
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8332
*** to be unable to reliably create shared libraries on AIX.
 
8333
*** Therefore, libtool is disabling shared libraries support.  If you
 
8334
*** really care for shared libraries, you may want to modify your PATH
 
8335
*** so that a non-GNU linker is found, and then restart.
 
8336
 
 
8337
_LT_EOF
 
8338
      fi
 
8339
      ;;
 
8340
 
 
8341
    amigaos*)
 
8342
      case $host_cpu in
 
8343
      powerpc)
 
8344
            # see comment about AmigaOS4 .so support
 
8345
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8346
            archive_expsym_cmds=''
 
8347
        ;;
 
8348
      m68k)
 
8349
            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)'
 
8350
            hardcode_libdir_flag_spec='-L$libdir'
 
8351
            hardcode_minus_L=yes
 
8352
        ;;
 
8353
      esac
 
8354
      ;;
 
8355
 
 
8356
    beos*)
 
8357
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8358
        allow_undefined_flag=unsupported
 
8359
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8360
        # support --undefined.  This deserves some investigation.  FIXME
 
8361
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8362
      else
 
8363
        ld_shlibs=no
 
8364
      fi
 
8365
      ;;
 
8366
 
 
8367
    cygwin* | mingw* | pw32* | cegcc*)
 
8368
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8369
      # as there is no search path for DLLs.
 
8370
      hardcode_libdir_flag_spec='-L$libdir'
 
8371
      allow_undefined_flag=unsupported
 
8372
      always_export_symbols=no
 
8373
      enable_shared_with_static_runtimes=yes
 
8374
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8375
 
 
8376
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8377
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8378
        # If the export-symbols file already is a .def file (1st line
 
8379
        # is EXPORTS), use it as is; otherwise, prepend...
 
8380
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8381
          cp $export_symbols $output_objdir/$soname.def;
 
8382
        else
 
8383
          echo EXPORTS > $output_objdir/$soname.def;
 
8384
          cat $export_symbols >> $output_objdir/$soname.def;
 
8385
        fi~
 
8386
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8387
      else
 
8388
        ld_shlibs=no
 
8389
      fi
 
8390
      ;;
 
8391
 
 
8392
    interix[3-9]*)
 
8393
      hardcode_direct=no
 
8394
      hardcode_shlibpath_var=no
 
8395
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8396
      export_dynamic_flag_spec='${wl}-E'
 
8397
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8398
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8399
      # default) and relocated if they conflict, which is a slow very memory
 
8400
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8401
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8402
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8403
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8404
      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'
 
8405
      ;;
 
8406
 
 
8407
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8408
      tmp_diet=no
 
8409
      if test "$host_os" = linux-dietlibc; then
 
8410
        case $cc_basename in
 
8411
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8412
        esac
 
8413
      fi
 
8414
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8415
         && test "$tmp_diet" = no
 
8416
      then
 
8417
        tmp_addflag=
 
8418
        tmp_sharedflag='-shared'
 
8419
        case $cc_basename,$host_cpu in
 
8420
        pgcc*)                          # Portland Group C compiler
 
8421
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8422
          tmp_addflag=' $pic_flag'
 
8423
          ;;
 
8424
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8425
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8426
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8427
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8428
          tmp_addflag=' -i_dynamic' ;;
 
8429
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8430
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8431
        ifc* | ifort*)                  # Intel Fortran compiler
 
8432
          tmp_addflag=' -nofor_main' ;;
 
8433
        lf95*)                          # Lahey Fortran 8.1
 
8434
          whole_archive_flag_spec=
 
8435
          tmp_sharedflag='--shared' ;;
 
8436
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8437
          tmp_sharedflag='-qmkshrobj'
 
8438
          tmp_addflag= ;;
 
8439
        esac
 
8440
        case `$CC -V 2>&1 | sed 5q` in
 
8441
        *Sun\ C*)                       # Sun C 5.9
 
8442
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8443
          compiler_needs_object=yes
 
8444
          tmp_sharedflag='-G' ;;
 
8445
        *Sun\ F*)                       # Sun Fortran 8.3
 
8446
          tmp_sharedflag='-G' ;;
 
8447
        esac
 
8448
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8449
 
 
8450
        if test "x$supports_anon_versioning" = xyes; then
 
8451
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8452
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8453
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8454
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8455
        fi
 
8456
 
 
8457
        case $cc_basename in
 
8458
        xlf*)
 
8459
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8460
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8461
          hardcode_libdir_flag_spec=
 
8462
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8463
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8464
          if test "x$supports_anon_versioning" = xyes; then
 
8465
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8466
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8467
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8468
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8469
          fi
 
8470
          ;;
 
8471
        esac
 
8472
      else
 
8473
        ld_shlibs=no
 
8474
      fi
 
8475
      ;;
 
8476
 
 
8477
    netbsd*)
 
8478
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8479
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8480
        wlarc=
 
8481
      else
 
8482
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8483
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8484
      fi
 
8485
      ;;
 
8486
 
 
8487
    solaris*)
 
8488
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8489
        ld_shlibs=no
 
8490
        cat <<_LT_EOF 1>&2
 
8491
 
 
8492
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8493
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8494
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8495
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8496
*** your PATH or compiler configuration so that the native linker is
 
8497
*** used, and then restart.
 
8498
 
 
8499
_LT_EOF
 
8500
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8501
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8502
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8503
      else
 
8504
        ld_shlibs=no
 
8505
      fi
 
8506
      ;;
 
8507
 
 
8508
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8509
      case `$LD -v 2>&1` in
 
8510
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8511
        ld_shlibs=no
 
8512
        cat <<_LT_EOF 1>&2
 
8513
 
 
8514
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8515
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8516
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8517
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8518
*** your PATH or compiler configuration so that the native linker is
 
8519
*** used, and then restart.
 
8520
 
 
8521
_LT_EOF
 
8522
        ;;
 
8523
        *)
 
8524
          # For security reasons, it is highly recommended that you always
 
8525
          # use absolute paths for naming shared libraries, and exclude the
 
8526
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8527
          # requires that you compile everything twice, which is a pain.
 
8528
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8529
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8530
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8531
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8532
          else
 
8533
            ld_shlibs=no
 
8534
          fi
 
8535
        ;;
 
8536
      esac
 
8537
      ;;
 
8538
 
 
8539
    sunos4*)
 
8540
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8541
      wlarc=
 
8542
      hardcode_direct=yes
 
8543
      hardcode_shlibpath_var=no
 
8544
      ;;
 
8545
 
 
8546
    *)
 
8547
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8548
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8549
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8550
      else
 
8551
        ld_shlibs=no
 
8552
      fi
 
8553
      ;;
 
8554
    esac
 
8555
 
 
8556
    if test "$ld_shlibs" = no; then
 
8557
      runpath_var=
 
8558
      hardcode_libdir_flag_spec=
 
8559
      export_dynamic_flag_spec=
 
8560
      whole_archive_flag_spec=
 
8561
    fi
 
8562
  else
 
8563
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8564
    case $host_os in
 
8565
    aix3*)
 
8566
      allow_undefined_flag=unsupported
 
8567
      always_export_symbols=yes
 
8568
      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'
 
8569
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8570
      # are no directories specified by -L.
 
8571
      hardcode_minus_L=yes
 
8572
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8573
        # Neither direct hardcoding nor static linking is supported with a
 
8574
        # broken collect2.
 
8575
        hardcode_direct=unsupported
 
8576
      fi
 
8577
      ;;
 
8578
 
 
8579
    aix[4-9]*)
 
8580
      if test "$host_cpu" = ia64; then
 
8581
        # On IA64, the linker does run time linking by default, so we don't
 
8582
        # have to do anything special.
 
8583
        aix_use_runtimelinking=no
 
8584
        exp_sym_flag='-Bexport'
 
8585
        no_entry_flag=""
 
8586
      else
 
8587
        # If we're using GNU nm, then we don't want the "-C" option.
 
8588
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8589
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8590
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8591
        else
 
8592
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8593
        fi
 
8594
        aix_use_runtimelinking=no
 
8595
 
 
8596
        # Test if we are trying to use run time linking or normal
 
8597
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8598
        # need to do runtime linking.
 
8599
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8600
          for ld_flag in $LDFLAGS; do
 
8601
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8602
            aix_use_runtimelinking=yes
 
8603
            break
 
8604
          fi
 
8605
          done
 
8606
          ;;
 
8607
        esac
 
8608
 
 
8609
        exp_sym_flag='-bexport'
 
8610
        no_entry_flag='-bnoentry'
 
8611
      fi
 
8612
 
 
8613
      # When large executables or shared objects are built, AIX ld can
 
8614
      # have problems creating the table of contents.  If linking a library
 
8615
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8616
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8617
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8618
 
 
8619
      archive_cmds=''
 
8620
      hardcode_direct=yes
 
8621
      hardcode_direct_absolute=yes
 
8622
      hardcode_libdir_separator=':'
 
8623
      link_all_deplibs=yes
 
8624
      file_list_spec='${wl}-f,'
 
8625
 
 
8626
      if test "$GCC" = yes; then
 
8627
        case $host_os in aix4.[012]|aix4.[012].*)
 
8628
        # We only want to do this on AIX 4.2 and lower, the check
 
8629
        # below for broken collect2 doesn't work under 4.3+
 
8630
          collect2name=`${CC} -print-prog-name=collect2`
 
8631
          if test -f "$collect2name" &&
 
8632
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8633
          then
 
8634
          # We have reworked collect2
 
8635
          :
 
8636
          else
 
8637
          # We have old collect2
 
8638
          hardcode_direct=unsupported
 
8639
          # It fails to find uninstalled libraries when the uninstalled
 
8640
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8641
          # to unsupported forces relinking
 
8642
          hardcode_minus_L=yes
 
8643
          hardcode_libdir_flag_spec='-L$libdir'
 
8644
          hardcode_libdir_separator=
 
8645
          fi
 
8646
          ;;
 
8647
        esac
 
8648
        shared_flag='-shared'
 
8649
        if test "$aix_use_runtimelinking" = yes; then
 
8650
          shared_flag="$shared_flag "'${wl}-G'
 
8651
        fi
 
8652
      else
 
8653
        # not using gcc
 
8654
        if test "$host_cpu" = ia64; then
 
8655
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8656
        # chokes on -Wl,-G. The following line is correct:
 
8657
          shared_flag='-G'
 
8658
        else
 
8659
          if test "$aix_use_runtimelinking" = yes; then
 
8660
            shared_flag='${wl}-G'
 
8661
          else
 
8662
            shared_flag='${wl}-bM:SRE'
 
8663
          fi
 
8664
        fi
 
8665
      fi
 
8666
 
 
8667
      export_dynamic_flag_spec='${wl}-bexpall'
 
8668
      # It seems that -bexpall does not export symbols beginning with
 
8669
      # underscore (_), so it is better to generate a list of symbols to export.
 
8670
      always_export_symbols=yes
 
8671
      if test "$aix_use_runtimelinking" = yes; then
 
8672
        # Warning - without using the other runtime loading flags (-brtl),
 
8673
        # -berok will link without error, but may produce a broken library.
 
8674
        allow_undefined_flag='-berok'
 
8675
        # Determine the default libpath from the value encoded in an
 
8676
        # empty executable.
 
8677
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8678
/* end confdefs.h.  */
 
8679
 
 
8680
int
 
8681
main ()
 
8682
{
 
8683
 
 
8684
  ;
 
8685
  return 0;
 
8686
}
 
8687
_ACEOF
 
8688
if ac_fn_c_try_link "$LINENO"; then :
 
8689
 
 
8690
lt_aix_libpath_sed='
 
8691
    /Import File Strings/,/^$/ {
 
8692
        /^0/ {
 
8693
            s/^0  *\(.*\)$/\1/
 
8694
            p
 
8695
        }
 
8696
    }'
 
8697
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8698
# Check for a 64-bit object if we didn't find anything.
 
8699
if test -z "$aix_libpath"; then
 
8700
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8701
fi
 
8702
fi
 
8703
rm -f core conftest.err conftest.$ac_objext \
 
8704
    conftest$ac_exeext conftest.$ac_ext
 
8705
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8706
 
 
8707
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8708
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8709
      else
 
8710
        if test "$host_cpu" = ia64; then
 
8711
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8712
          allow_undefined_flag="-z nodefs"
 
8713
          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"
 
8714
        else
 
8715
         # Determine the default libpath from the value encoded in an
 
8716
         # empty executable.
 
8717
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8718
/* end confdefs.h.  */
 
8719
 
 
8720
int
 
8721
main ()
 
8722
{
 
8723
 
 
8724
  ;
 
8725
  return 0;
 
8726
}
 
8727
_ACEOF
 
8728
if ac_fn_c_try_link "$LINENO"; then :
 
8729
 
 
8730
lt_aix_libpath_sed='
 
8731
    /Import File Strings/,/^$/ {
 
8732
        /^0/ {
 
8733
            s/^0  *\(.*\)$/\1/
 
8734
            p
 
8735
        }
 
8736
    }'
 
8737
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8738
# Check for a 64-bit object if we didn't find anything.
 
8739
if test -z "$aix_libpath"; then
 
8740
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8741
fi
 
8742
fi
 
8743
rm -f core conftest.err conftest.$ac_objext \
 
8744
    conftest$ac_exeext conftest.$ac_ext
 
8745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8746
 
 
8747
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8748
          # Warning - without using the other run time loading flags,
 
8749
          # -berok will link without error, but may produce a broken library.
 
8750
          no_undefined_flag=' ${wl}-bernotok'
 
8751
          allow_undefined_flag=' ${wl}-berok'
 
8752
          # Exported symbols can be pulled into shared objects from archives
 
8753
          whole_archive_flag_spec='$convenience'
 
8754
          archive_cmds_need_lc=yes
 
8755
          # This is similar to how AIX traditionally builds its shared libraries.
 
8756
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8757
        fi
 
8758
      fi
 
8759
      ;;
 
8760
 
 
8761
    amigaos*)
 
8762
      case $host_cpu in
 
8763
      powerpc)
 
8764
            # see comment about AmigaOS4 .so support
 
8765
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8766
            archive_expsym_cmds=''
 
8767
        ;;
 
8768
      m68k)
 
8769
            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)'
 
8770
            hardcode_libdir_flag_spec='-L$libdir'
 
8771
            hardcode_minus_L=yes
 
8772
        ;;
 
8773
      esac
 
8774
      ;;
 
8775
 
 
8776
    bsdi[45]*)
 
8777
      export_dynamic_flag_spec=-rdynamic
 
8778
      ;;
 
8779
 
 
8780
    cygwin* | mingw* | pw32* | cegcc*)
 
8781
      # When not using gcc, we currently assume that we are using
 
8782
      # Microsoft Visual C++.
 
8783
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8784
      # no search path for DLLs.
 
8785
      hardcode_libdir_flag_spec=' '
 
8786
      allow_undefined_flag=unsupported
 
8787
      # Tell ltmain to make .lib files, not .a files.
 
8788
      libext=lib
 
8789
      # Tell ltmain to make .dll files, not .so files.
 
8790
      shrext_cmds=".dll"
 
8791
      # FIXME: Setting linknames here is a bad hack.
 
8792
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8793
      # The linker will automatically build a .lib file if we build a DLL.
 
8794
      old_archive_from_new_cmds='true'
 
8795
      # FIXME: Should let the user specify the lib program.
 
8796
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8797
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8798
      enable_shared_with_static_runtimes=yes
 
8799
      ;;
 
8800
 
 
8801
    darwin* | rhapsody*)
 
8802
 
 
8803
 
 
8804
  archive_cmds_need_lc=no
 
8805
  hardcode_direct=no
 
8806
  hardcode_automatic=yes
 
8807
  hardcode_shlibpath_var=unsupported
 
8808
  whole_archive_flag_spec=''
 
8809
  link_all_deplibs=yes
 
8810
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8811
  case $cc_basename in
 
8812
     ifort*) _lt_dar_can_shared=yes ;;
 
8813
     *) _lt_dar_can_shared=$GCC ;;
 
8814
  esac
 
8815
  if test "$_lt_dar_can_shared" = "yes"; then
 
8816
    output_verbose_link_cmd=echo
 
8817
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8818
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8819
    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}"
 
8820
    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}"
 
8821
 
 
8822
  else
 
8823
  ld_shlibs=no
 
8824
  fi
 
8825
 
 
8826
      ;;
 
8827
 
 
8828
    dgux*)
 
8829
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8830
      hardcode_libdir_flag_spec='-L$libdir'
 
8831
      hardcode_shlibpath_var=no
 
8832
      ;;
 
8833
 
 
8834
    freebsd1*)
 
8835
      ld_shlibs=no
 
8836
      ;;
 
8837
 
 
8838
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8839
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8840
    # does not break anything, and helps significantly (at the cost of a little
 
8841
    # extra space).
 
8842
    freebsd2.2*)
 
8843
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8844
      hardcode_libdir_flag_spec='-R$libdir'
 
8845
      hardcode_direct=yes
 
8846
      hardcode_shlibpath_var=no
 
8847
      ;;
 
8848
 
 
8849
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8850
    freebsd2*)
 
8851
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8852
      hardcode_direct=yes
 
8853
      hardcode_minus_L=yes
 
8854
      hardcode_shlibpath_var=no
 
8855
      ;;
 
8856
 
 
8857
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8858
    freebsd* | dragonfly*)
 
8859
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8860
      hardcode_libdir_flag_spec='-R$libdir'
 
8861
      hardcode_direct=yes
 
8862
      hardcode_shlibpath_var=no
 
8863
      ;;
 
8864
 
 
8865
    hpux9*)
 
8866
      if test "$GCC" = yes; then
 
8867
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8868
      else
 
8869
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8870
      fi
 
8871
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8872
      hardcode_libdir_separator=:
 
8873
      hardcode_direct=yes
 
8874
 
 
8875
      # hardcode_minus_L: Not really in the search PATH,
 
8876
      # but as the default location of the library.
 
8877
      hardcode_minus_L=yes
 
8878
      export_dynamic_flag_spec='${wl}-E'
 
8879
      ;;
 
8880
 
 
8881
    hpux10*)
 
8882
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8883
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8884
      else
 
8885
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8886
      fi
 
8887
      if test "$with_gnu_ld" = no; then
 
8888
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8889
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
8890
        hardcode_libdir_separator=:
 
8891
        hardcode_direct=yes
 
8892
        hardcode_direct_absolute=yes
 
8893
        export_dynamic_flag_spec='${wl}-E'
 
8894
        # hardcode_minus_L: Not really in the search PATH,
 
8895
        # but as the default location of the library.
 
8896
        hardcode_minus_L=yes
 
8897
      fi
 
8898
      ;;
 
8899
 
 
8900
    hpux11*)
 
8901
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8902
        case $host_cpu in
 
8903
        hppa*64*)
 
8904
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8905
          ;;
 
8906
        ia64*)
 
8907
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8908
          ;;
 
8909
        *)
 
8910
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8911
          ;;
 
8912
        esac
 
8913
      else
 
8914
        case $host_cpu in
 
8915
        hppa*64*)
 
8916
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8917
          ;;
 
8918
        ia64*)
 
8919
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8920
          ;;
 
8921
        *)
 
8922
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8923
          ;;
 
8924
        esac
 
8925
      fi
 
8926
      if test "$with_gnu_ld" = no; then
 
8927
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8928
        hardcode_libdir_separator=:
 
8929
 
 
8930
        case $host_cpu in
 
8931
        hppa*64*|ia64*)
 
8932
          hardcode_direct=no
 
8933
          hardcode_shlibpath_var=no
 
8934
          ;;
 
8935
        *)
 
8936
          hardcode_direct=yes
 
8937
          hardcode_direct_absolute=yes
 
8938
          export_dynamic_flag_spec='${wl}-E'
 
8939
 
 
8940
          # hardcode_minus_L: Not really in the search PATH,
 
8941
          # but as the default location of the library.
 
8942
          hardcode_minus_L=yes
 
8943
          ;;
 
8944
        esac
 
8945
      fi
 
8946
      ;;
 
8947
 
 
8948
    irix5* | irix6* | nonstopux*)
 
8949
      if test "$GCC" = yes; then
 
8950
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8951
        # Try to use the -exported_symbol ld option, if it does not
 
8952
        # work, assume that -exports_file does not work either and
 
8953
        # implicitly export all symbols.
 
8954
        save_LDFLAGS="$LDFLAGS"
 
8955
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8956
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8957
/* end confdefs.h.  */
 
8958
int foo(void) {}
 
8959
_ACEOF
 
8960
if ac_fn_c_try_link "$LINENO"; then :
 
8961
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
8962
 
 
8963
fi
 
8964
rm -f core conftest.err conftest.$ac_objext \
 
8965
    conftest$ac_exeext conftest.$ac_ext
 
8966
        LDFLAGS="$save_LDFLAGS"
 
8967
      else
 
8968
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8969
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
8970
      fi
 
8971
      archive_cmds_need_lc='no'
 
8972
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8973
      hardcode_libdir_separator=:
 
8974
      inherit_rpath=yes
 
8975
      link_all_deplibs=yes
 
8976
      ;;
 
8977
 
 
8978
    netbsd*)
 
8979
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8980
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8981
      else
 
8982
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8983
      fi
 
8984
      hardcode_libdir_flag_spec='-R$libdir'
 
8985
      hardcode_direct=yes
 
8986
      hardcode_shlibpath_var=no
 
8987
      ;;
 
8988
 
 
8989
    newsos6)
 
8990
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8991
      hardcode_direct=yes
 
8992
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8993
      hardcode_libdir_separator=:
 
8994
      hardcode_shlibpath_var=no
 
8995
      ;;
 
8996
 
 
8997
    *nto* | *qnx*)
 
8998
      ;;
 
8999
 
 
9000
    openbsd*)
 
9001
      if test -f /usr/libexec/ld.so; then
 
9002
        hardcode_direct=yes
 
9003
        hardcode_shlibpath_var=no
 
9004
        hardcode_direct_absolute=yes
 
9005
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9006
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9007
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9008
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9009
          export_dynamic_flag_spec='${wl}-E'
 
9010
        else
 
9011
          case $host_os in
 
9012
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9013
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9014
             hardcode_libdir_flag_spec='-R$libdir'
 
9015
             ;;
 
9016
           *)
 
9017
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9018
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9019
             ;;
 
9020
          esac
 
9021
        fi
 
9022
      else
 
9023
        ld_shlibs=no
 
9024
      fi
 
9025
      ;;
 
9026
 
 
9027
    os2*)
 
9028
      hardcode_libdir_flag_spec='-L$libdir'
 
9029
      hardcode_minus_L=yes
 
9030
      allow_undefined_flag=unsupported
 
9031
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9032
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9033
      ;;
 
9034
 
 
9035
    osf3*)
 
9036
      if test "$GCC" = yes; then
 
9037
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9038
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9039
      else
 
9040
        allow_undefined_flag=' -expect_unresolved \*'
 
9041
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9042
      fi
 
9043
      archive_cmds_need_lc='no'
 
9044
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9045
      hardcode_libdir_separator=:
 
9046
      ;;
 
9047
 
 
9048
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9049
      if test "$GCC" = yes; then
 
9050
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9051
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9052
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9053
      else
 
9054
        allow_undefined_flag=' -expect_unresolved \*'
 
9055
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9056
        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~
 
9057
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9058
 
 
9059
        # Both c and cxx compiler support -rpath directly
 
9060
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9061
      fi
 
9062
      archive_cmds_need_lc='no'
 
9063
      hardcode_libdir_separator=:
 
9064
      ;;
 
9065
 
 
9066
    solaris*)
 
9067
      no_undefined_flag=' -z defs'
 
9068
      if test "$GCC" = yes; then
 
9069
        wlarc='${wl}'
 
9070
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9071
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9072
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9073
      else
 
9074
        case `$CC -V 2>&1` in
 
9075
        *"Compilers 5.0"*)
 
9076
          wlarc=''
 
9077
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9078
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9079
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9080
          ;;
 
9081
        *)
 
9082
          wlarc='${wl}'
 
9083
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9084
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9085
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9086
          ;;
 
9087
        esac
 
9088
      fi
 
9089
      hardcode_libdir_flag_spec='-R$libdir'
 
9090
      hardcode_shlibpath_var=no
 
9091
      case $host_os in
 
9092
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9093
      *)
 
9094
        # The compiler driver will combine and reorder linker options,
 
9095
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9096
        # but is careful enough not to reorder.
 
9097
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9098
        if test "$GCC" = yes; then
 
9099
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9100
        else
 
9101
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9102
        fi
 
9103
        ;;
 
9104
      esac
 
9105
      link_all_deplibs=yes
 
9106
      ;;
 
9107
 
 
9108
    sunos4*)
 
9109
      if test "x$host_vendor" = xsequent; then
 
9110
        # Use $CC to link under sequent, because it throws in some extra .o
 
9111
        # files that make .init and .fini sections work.
 
9112
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9113
      else
 
9114
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9115
      fi
 
9116
      hardcode_libdir_flag_spec='-L$libdir'
 
9117
      hardcode_direct=yes
 
9118
      hardcode_minus_L=yes
 
9119
      hardcode_shlibpath_var=no
 
9120
      ;;
 
9121
 
 
9122
    sysv4)
 
9123
      case $host_vendor in
 
9124
        sni)
 
9125
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9126
          hardcode_direct=yes # is this really true???
 
9127
        ;;
 
9128
        siemens)
 
9129
          ## LD is ld it makes a PLAMLIB
 
9130
          ## CC just makes a GrossModule.
 
9131
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9132
          reload_cmds='$CC -r -o $output$reload_objs'
 
9133
          hardcode_direct=no
 
9134
        ;;
 
9135
        motorola)
 
9136
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9137
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9138
        ;;
 
9139
      esac
 
9140
      runpath_var='LD_RUN_PATH'
 
9141
      hardcode_shlibpath_var=no
 
9142
      ;;
 
9143
 
 
9144
    sysv4.3*)
 
9145
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9146
      hardcode_shlibpath_var=no
 
9147
      export_dynamic_flag_spec='-Bexport'
 
9148
      ;;
 
9149
 
 
9150
    sysv4*MP*)
 
9151
      if test -d /usr/nec; then
 
9152
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9153
        hardcode_shlibpath_var=no
 
9154
        runpath_var=LD_RUN_PATH
 
9155
        hardcode_runpath_var=yes
 
9156
        ld_shlibs=yes
 
9157
      fi
 
9158
      ;;
 
9159
 
 
9160
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9161
      no_undefined_flag='${wl}-z,text'
 
9162
      archive_cmds_need_lc=no
 
9163
      hardcode_shlibpath_var=no
 
9164
      runpath_var='LD_RUN_PATH'
 
9165
 
 
9166
      if test "$GCC" = yes; then
 
9167
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9168
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9169
      else
 
9170
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9171
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9172
      fi
 
9173
      ;;
 
9174
 
 
9175
    sysv5* | sco3.2v5* | sco5v6*)
 
9176
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9177
      # link with -lc, and that would cause any symbols used from libc to
 
9178
      # always be unresolved, which means just about no library would
 
9179
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9180
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9181
      # as -z defs.
 
9182
      no_undefined_flag='${wl}-z,text'
 
9183
      allow_undefined_flag='${wl}-z,nodefs'
 
9184
      archive_cmds_need_lc=no
 
9185
      hardcode_shlibpath_var=no
 
9186
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9187
      hardcode_libdir_separator=':'
 
9188
      link_all_deplibs=yes
 
9189
      export_dynamic_flag_spec='${wl}-Bexport'
 
9190
      runpath_var='LD_RUN_PATH'
 
9191
 
 
9192
      if test "$GCC" = yes; then
 
9193
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9194
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9195
      else
 
9196
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9197
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9198
      fi
 
9199
      ;;
 
9200
 
 
9201
    uts4*)
 
9202
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9203
      hardcode_libdir_flag_spec='-L$libdir'
 
9204
      hardcode_shlibpath_var=no
 
9205
      ;;
 
9206
 
 
9207
    *)
 
9208
      ld_shlibs=no
 
9209
      ;;
 
9210
    esac
 
9211
 
 
9212
    if test x$host_vendor = xsni; then
 
9213
      case $host in
 
9214
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9215
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9216
        ;;
 
9217
      esac
 
9218
    fi
 
9219
  fi
 
9220
 
 
9221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9222
$as_echo "$ld_shlibs" >&6; }
 
9223
test "$ld_shlibs" = no && can_build_shared=no
 
9224
 
 
9225
with_gnu_ld=$with_gnu_ld
 
9226
 
 
9227
 
 
9228
 
 
9229
 
 
9230
 
 
9231
 
 
9232
 
 
9233
 
 
9234
 
 
9235
 
 
9236
 
 
9237
 
 
9238
 
 
9239
 
 
9240
 
 
9241
#
 
9242
# Do we need to explicitly link libc?
 
9243
#
 
9244
case "x$archive_cmds_need_lc" in
 
9245
x|xyes)
 
9246
  # Assume -lc should be added
 
9247
  archive_cmds_need_lc=yes
 
9248
 
 
9249
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9250
    case $archive_cmds in
 
9251
    *'~'*)
 
9252
      # FIXME: we may have to deal with multi-command sequences.
 
9253
      ;;
 
9254
    '$CC '*)
 
9255
      # Test whether the compiler implicitly links with -lc since on some
 
9256
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9257
      # to ld, don't add -lc before -lgcc.
 
9258
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9259
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9260
      $RM conftest*
 
9261
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9262
 
 
9263
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9264
  (eval $ac_compile) 2>&5
 
9265
  ac_status=$?
 
9266
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9267
  test $ac_status = 0; } 2>conftest.err; then
 
9268
        soname=conftest
 
9269
        lib=conftest
 
9270
        libobjs=conftest.$ac_objext
 
9271
        deplibs=
 
9272
        wl=$lt_prog_compiler_wl
 
9273
        pic_flag=$lt_prog_compiler_pic
 
9274
        compiler_flags=-v
 
9275
        linker_flags=-v
 
9276
        verstring=
 
9277
        output_objdir=.
 
9278
        libname=conftest
 
9279
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9280
        allow_undefined_flag=
 
9281
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9282
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9283
  ac_status=$?
 
9284
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9285
  test $ac_status = 0; }
 
9286
        then
 
9287
          archive_cmds_need_lc=no
 
9288
        else
 
9289
          archive_cmds_need_lc=yes
 
9290
        fi
 
9291
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9292
      else
 
9293
        cat conftest.err 1>&5
 
9294
      fi
 
9295
      $RM conftest*
 
9296
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9297
$as_echo "$archive_cmds_need_lc" >&6; }
 
9298
      ;;
 
9299
    esac
 
9300
  fi
 
9301
  ;;
 
9302
esac
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
 
 
9316
 
 
9317
 
 
9318
 
 
9319
 
 
9320
 
 
9321
 
 
9322
 
 
9323
 
 
9324
 
 
9325
 
 
9326
 
 
9327
 
 
9328
 
 
9329
 
 
9330
 
 
9331
 
 
9332
 
 
9333
 
 
9334
 
 
9335
 
 
9336
 
 
9337
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
 
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
 
 
9397
 
 
9398
 
 
9399
 
 
9400
 
 
9401
 
 
9402
 
 
9403
 
 
9404
 
 
9405
 
 
9406
 
 
9407
 
 
9408
 
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
 
 
9417
 
 
9418
 
 
9419
 
 
9420
 
 
9421
 
 
9422
 
 
9423
 
 
9424
 
 
9425
 
 
9426
 
 
9427
 
 
9428
 
 
9429
 
 
9430
 
 
9431
 
 
9432
 
 
9433
 
 
9434
 
 
9435
 
 
9436
 
 
9437
 
 
9438
 
 
9439
 
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
 
 
9448
 
 
9449
 
 
9450
 
 
9451
 
 
9452
 
 
9453
 
 
9454
 
 
9455
 
 
9456
 
 
9457
 
 
9458
 
 
9459
 
 
9460
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9461
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9462
 
 
9463
if test "$GCC" = yes; then
 
9464
  case $host_os in
 
9465
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9466
    *) lt_awk_arg="/^libraries:/" ;;
 
9467
  esac
 
9468
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9469
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9470
    # if the path contains ";" then we assume it to be the separator
 
9471
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9472
    # assumed that no part of a normal pathname contains ";" but that should
 
9473
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9474
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9475
  else
 
9476
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9477
  fi
 
9478
  # Ok, now we have the path, separated by spaces, we can step through it
 
9479
  # and add multilib dir if necessary.
 
9480
  lt_tmp_lt_search_path_spec=
 
9481
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9482
  for lt_sys_path in $lt_search_path_spec; do
 
9483
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9484
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9485
    else
 
9486
      test -d "$lt_sys_path" && \
 
9487
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9488
    fi
 
9489
  done
 
9490
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9491
BEGIN {RS=" "; FS="/|\n";} {
 
9492
  lt_foo="";
 
9493
  lt_count=0;
 
9494
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9495
    if ($lt_i != "" && $lt_i != ".") {
 
9496
      if ($lt_i == "..") {
 
9497
        lt_count++;
 
9498
      } else {
 
9499
        if (lt_count == 0) {
 
9500
          lt_foo="/" $lt_i lt_foo;
 
9501
        } else {
 
9502
          lt_count--;
 
9503
        }
 
9504
      }
 
9505
    }
 
9506
  }
 
9507
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9508
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9509
}'`
 
9510
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9511
else
 
9512
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9513
fi
 
9514
library_names_spec=
 
9515
libname_spec='lib$name'
 
9516
soname_spec=
 
9517
shrext_cmds=".so"
 
9518
postinstall_cmds=
 
9519
postuninstall_cmds=
 
9520
finish_cmds=
 
9521
finish_eval=
 
9522
shlibpath_var=
 
9523
shlibpath_overrides_runpath=unknown
 
9524
version_type=none
 
9525
dynamic_linker="$host_os ld.so"
 
9526
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9527
need_lib_prefix=unknown
 
9528
hardcode_into_libs=no
 
9529
 
 
9530
# when you set need_version to no, make sure it does not cause -set_version
 
9531
# flags to be left without arguments
 
9532
need_version=unknown
 
9533
 
 
9534
case $host_os in
 
9535
aix3*)
 
9536
  version_type=linux
 
9537
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9538
  shlibpath_var=LIBPATH
 
9539
 
 
9540
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9541
  soname_spec='${libname}${release}${shared_ext}$major'
 
9542
  ;;
 
9543
 
 
9544
aix[4-9]*)
 
9545
  version_type=linux
 
9546
  need_lib_prefix=no
 
9547
  need_version=no
 
9548
  hardcode_into_libs=yes
 
9549
  if test "$host_cpu" = ia64; then
 
9550
    # AIX 5 supports IA64
 
9551
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9552
    shlibpath_var=LD_LIBRARY_PATH
 
9553
  else
 
9554
    # With GCC up to 2.95.x, collect2 would create an import file
 
9555
    # for dependence libraries.  The import file would start with
 
9556
    # the line `#! .'.  This would cause the generated library to
 
9557
    # depend on `.', always an invalid library.  This was fixed in
 
9558
    # development snapshots of GCC prior to 3.0.
 
9559
    case $host_os in
 
9560
      aix4 | aix4.[01] | aix4.[01].*)
 
9561
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9562
           echo ' yes '
 
9563
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9564
        :
 
9565
      else
 
9566
        can_build_shared=no
 
9567
      fi
 
9568
      ;;
 
9569
    esac
 
9570
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9571
    # soname into executable. Probably we can add versioning support to
 
9572
    # collect2, so additional links can be useful in future.
 
9573
    if test "$aix_use_runtimelinking" = yes; then
 
9574
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9575
      # instead of lib<name>.a to let people know that these are not
 
9576
      # typical AIX shared libraries.
 
9577
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9578
    else
 
9579
      # We preserve .a as extension for shared libraries through AIX4.2
 
9580
      # and later when we are not doing run time linking.
 
9581
      library_names_spec='${libname}${release}.a $libname.a'
 
9582
      soname_spec='${libname}${release}${shared_ext}$major'
 
9583
    fi
 
9584
    shlibpath_var=LIBPATH
 
9585
  fi
 
9586
  ;;
 
9587
 
 
9588
amigaos*)
 
9589
  case $host_cpu in
 
9590
  powerpc)
 
9591
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9592
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9594
    ;;
 
9595
  m68k)
 
9596
    library_names_spec='$libname.ixlibrary $libname.a'
 
9597
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9598
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9599
    ;;
 
9600
  esac
 
9601
  ;;
 
9602
 
 
9603
beos*)
 
9604
  library_names_spec='${libname}${shared_ext}'
 
9605
  dynamic_linker="$host_os ld.so"
 
9606
  shlibpath_var=LIBRARY_PATH
 
9607
  ;;
 
9608
 
 
9609
bsdi[45]*)
 
9610
  version_type=linux
 
9611
  need_version=no
 
9612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9613
  soname_spec='${libname}${release}${shared_ext}$major'
 
9614
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9615
  shlibpath_var=LD_LIBRARY_PATH
 
9616
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9617
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9618
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9619
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9620
  # libtool to hard-code these into programs
 
9621
  ;;
 
9622
 
 
9623
cygwin* | mingw* | pw32* | cegcc*)
 
9624
  version_type=windows
 
9625
  shrext_cmds=".dll"
 
9626
  need_version=no
 
9627
  need_lib_prefix=no
 
9628
 
 
9629
  case $GCC,$host_os in
 
9630
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9631
    library_names_spec='$libname.dll.a'
 
9632
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9633
    postinstall_cmds='base_file=`basename \${file}`~
 
9634
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9635
      dldir=$destdir/`dirname \$dlpath`~
 
9636
      test -d \$dldir || mkdir -p \$dldir~
 
9637
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9638
      chmod a+x \$dldir/$dlname~
 
9639
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9640
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9641
      fi'
 
9642
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9643
      dlpath=$dir/\$dldll~
 
9644
       $RM \$dlpath'
 
9645
    shlibpath_overrides_runpath=yes
 
9646
 
 
9647
    case $host_os in
 
9648
    cygwin*)
 
9649
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9650
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9651
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9652
      ;;
 
9653
    mingw* | cegcc*)
 
9654
      # MinGW DLLs use traditional 'lib' prefix
 
9655
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9656
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9657
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9658
        # It is most probably a Windows format PATH printed by
 
9659
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9660
        # path with ; separators, and with drive letters. We can handle the
 
9661
        # drive letters (cygwin fileutils understands them), so leave them,
 
9662
        # especially as we might pass files found there to a mingw objdump,
 
9663
        # which wouldn't understand a cygwinified path. Ahh.
 
9664
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9665
      else
 
9666
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9667
      fi
 
9668
      ;;
 
9669
    pw32*)
 
9670
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9671
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9672
      ;;
 
9673
    esac
 
9674
    ;;
 
9675
 
 
9676
  *)
 
9677
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9678
    ;;
 
9679
  esac
 
9680
  dynamic_linker='Win32 ld.exe'
 
9681
  # FIXME: first we should search . and the directory the executable is in
 
9682
  shlibpath_var=PATH
 
9683
  ;;
 
9684
 
 
9685
darwin* | rhapsody*)
 
9686
  dynamic_linker="$host_os dyld"
 
9687
  version_type=darwin
 
9688
  need_lib_prefix=no
 
9689
  need_version=no
 
9690
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9691
  soname_spec='${libname}${release}${major}$shared_ext'
 
9692
  shlibpath_overrides_runpath=yes
 
9693
  shlibpath_var=DYLD_LIBRARY_PATH
 
9694
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9695
 
 
9696
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9697
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9698
  ;;
 
9699
 
 
9700
dgux*)
 
9701
  version_type=linux
 
9702
  need_lib_prefix=no
 
9703
  need_version=no
 
9704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9705
  soname_spec='${libname}${release}${shared_ext}$major'
 
9706
  shlibpath_var=LD_LIBRARY_PATH
 
9707
  ;;
 
9708
 
 
9709
freebsd1*)
 
9710
  dynamic_linker=no
 
9711
  ;;
 
9712
 
 
9713
freebsd* | dragonfly*)
 
9714
  # DragonFly does not have aout.  When/if they implement a new
 
9715
  # versioning mechanism, adjust this.
 
9716
  if test -x /usr/bin/objformat; then
 
9717
    objformat=`/usr/bin/objformat`
 
9718
  else
 
9719
    case $host_os in
 
9720
    freebsd[123]*) objformat=aout ;;
 
9721
    *) objformat=elf ;;
 
9722
    esac
 
9723
  fi
 
9724
  version_type=freebsd-$objformat
 
9725
  case $version_type in
 
9726
    freebsd-elf*)
 
9727
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9728
      need_version=no
 
9729
      need_lib_prefix=no
 
9730
      ;;
 
9731
    freebsd-*)
 
9732
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9733
      need_version=yes
 
9734
      ;;
 
9735
  esac
 
9736
  shlibpath_var=LD_LIBRARY_PATH
 
9737
  case $host_os in
 
9738
  freebsd2*)
 
9739
    shlibpath_overrides_runpath=yes
 
9740
    ;;
 
9741
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9742
    shlibpath_overrides_runpath=yes
 
9743
    hardcode_into_libs=yes
 
9744
    ;;
 
9745
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9746
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9747
    shlibpath_overrides_runpath=no
 
9748
    hardcode_into_libs=yes
 
9749
    ;;
 
9750
  *) # from 4.6 on, and DragonFly
 
9751
    shlibpath_overrides_runpath=yes
 
9752
    hardcode_into_libs=yes
 
9753
    ;;
 
9754
  esac
 
9755
  ;;
 
9756
 
 
9757
gnu*)
 
9758
  version_type=linux
 
9759
  need_lib_prefix=no
 
9760
  need_version=no
 
9761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9762
  soname_spec='${libname}${release}${shared_ext}$major'
 
9763
  shlibpath_var=LD_LIBRARY_PATH
 
9764
  hardcode_into_libs=yes
 
9765
  ;;
 
9766
 
 
9767
hpux9* | hpux10* | hpux11*)
 
9768
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9769
  # link against other versions.
 
9770
  version_type=sunos
 
9771
  need_lib_prefix=no
 
9772
  need_version=no
 
9773
  case $host_cpu in
 
9774
  ia64*)
 
9775
    shrext_cmds='.so'
 
9776
    hardcode_into_libs=yes
 
9777
    dynamic_linker="$host_os dld.so"
 
9778
    shlibpath_var=LD_LIBRARY_PATH
 
9779
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9780
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9781
    soname_spec='${libname}${release}${shared_ext}$major'
 
9782
    if test "X$HPUX_IA64_MODE" = X32; then
 
9783
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9784
    else
 
9785
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9786
    fi
 
9787
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9788
    ;;
 
9789
  hppa*64*)
 
9790
    shrext_cmds='.sl'
 
9791
    hardcode_into_libs=yes
 
9792
    dynamic_linker="$host_os dld.sl"
 
9793
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9794
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9795
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9796
    soname_spec='${libname}${release}${shared_ext}$major'
 
9797
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9798
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9799
    ;;
 
9800
  *)
 
9801
    shrext_cmds='.sl'
 
9802
    dynamic_linker="$host_os dld.sl"
 
9803
    shlibpath_var=SHLIB_PATH
 
9804
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9805
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9806
    soname_spec='${libname}${release}${shared_ext}$major'
 
9807
    ;;
 
9808
  esac
 
9809
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9810
  postinstall_cmds='chmod 555 $lib'
 
9811
  ;;
 
9812
 
 
9813
interix[3-9]*)
 
9814
  version_type=linux
 
9815
  need_lib_prefix=no
 
9816
  need_version=no
 
9817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9818
  soname_spec='${libname}${release}${shared_ext}$major'
 
9819
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9820
  shlibpath_var=LD_LIBRARY_PATH
 
9821
  shlibpath_overrides_runpath=no
 
9822
  hardcode_into_libs=yes
 
9823
  ;;
 
9824
 
 
9825
irix5* | irix6* | nonstopux*)
 
9826
  case $host_os in
 
9827
    nonstopux*) version_type=nonstopux ;;
 
9828
    *)
 
9829
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9830
                version_type=linux
 
9831
        else
 
9832
                version_type=irix
 
9833
        fi ;;
 
9834
  esac
 
9835
  need_lib_prefix=no
 
9836
  need_version=no
 
9837
  soname_spec='${libname}${release}${shared_ext}$major'
 
9838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9839
  case $host_os in
 
9840
  irix5* | nonstopux*)
 
9841
    libsuff= shlibsuff=
 
9842
    ;;
 
9843
  *)
 
9844
    case $LD in # libtool.m4 will add one of these switches to LD
 
9845
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9846
      libsuff= shlibsuff= libmagic=32-bit;;
 
9847
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9848
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9849
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9850
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9851
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9852
    esac
 
9853
    ;;
 
9854
  esac
 
9855
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9856
  shlibpath_overrides_runpath=no
 
9857
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9858
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9859
  hardcode_into_libs=yes
 
9860
  ;;
 
9861
 
 
9862
# No shared lib support for Linux oldld, aout, or coff.
 
9863
linux*oldld* | linux*aout* | linux*coff*)
 
9864
  dynamic_linker=no
 
9865
  ;;
 
9866
 
 
9867
# This must be Linux ELF.
 
9868
linux* | k*bsd*-gnu)
 
9869
  version_type=linux
 
9870
  need_lib_prefix=no
 
9871
  need_version=no
 
9872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9873
  soname_spec='${libname}${release}${shared_ext}$major'
 
9874
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9875
  shlibpath_var=LD_LIBRARY_PATH
 
9876
  shlibpath_overrides_runpath=no
 
9877
  # Some binutils ld are patched to set DT_RUNPATH
 
9878
  save_LDFLAGS=$LDFLAGS
 
9879
  save_libdir=$libdir
 
9880
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9881
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9883
/* end confdefs.h.  */
 
9884
 
 
9885
int
 
9886
main ()
 
9887
{
 
9888
 
 
9889
  ;
 
9890
  return 0;
 
9891
}
 
9892
_ACEOF
 
9893
if ac_fn_c_try_link "$LINENO"; then :
 
9894
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
9895
  shlibpath_overrides_runpath=yes
 
9896
fi
 
9897
fi
 
9898
rm -f core conftest.err conftest.$ac_objext \
 
9899
    conftest$ac_exeext conftest.$ac_ext
 
9900
  LDFLAGS=$save_LDFLAGS
 
9901
  libdir=$save_libdir
 
9902
 
 
9903
  # This implies no fast_install, which is unacceptable.
 
9904
  # Some rework will be needed to allow for fast_install
 
9905
  # before this can be enabled.
 
9906
  hardcode_into_libs=yes
 
9907
 
 
9908
  # Append ld.so.conf contents to the search path
 
9909
  if test -f /etc/ld.so.conf; then
 
9910
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9911
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9912
  fi
 
9913
 
 
9914
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9915
  # powerpc, because MkLinux only supported shared libraries with the
 
9916
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9917
  # most powerpc-linux boxes support dynamic linking these days and
 
9918
  # people can always --disable-shared, the test was removed, and we
 
9919
  # assume the GNU/Linux dynamic linker is in use.
 
9920
  dynamic_linker='GNU/Linux ld.so'
 
9921
  ;;
 
9922
 
 
9923
netbsd*)
 
9924
  version_type=sunos
 
9925
  need_lib_prefix=no
 
9926
  need_version=no
 
9927
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9928
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9929
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9930
    dynamic_linker='NetBSD (a.out) ld.so'
 
9931
  else
 
9932
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9933
    soname_spec='${libname}${release}${shared_ext}$major'
 
9934
    dynamic_linker='NetBSD ld.elf_so'
 
9935
  fi
 
9936
  shlibpath_var=LD_LIBRARY_PATH
 
9937
  shlibpath_overrides_runpath=yes
 
9938
  hardcode_into_libs=yes
 
9939
  ;;
 
9940
 
 
9941
newsos6)
 
9942
  version_type=linux
 
9943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9944
  shlibpath_var=LD_LIBRARY_PATH
 
9945
  shlibpath_overrides_runpath=yes
 
9946
  ;;
 
9947
 
 
9948
*nto* | *qnx*)
 
9949
  version_type=qnx
 
9950
  need_lib_prefix=no
 
9951
  need_version=no
 
9952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9953
  soname_spec='${libname}${release}${shared_ext}$major'
 
9954
  shlibpath_var=LD_LIBRARY_PATH
 
9955
  shlibpath_overrides_runpath=no
 
9956
  hardcode_into_libs=yes
 
9957
  dynamic_linker='ldqnx.so'
 
9958
  ;;
 
9959
 
 
9960
openbsd*)
 
9961
  version_type=sunos
 
9962
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9963
  need_lib_prefix=no
 
9964
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9965
  case $host_os in
 
9966
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9967
    *)                          need_version=no  ;;
 
9968
  esac
 
9969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9970
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9971
  shlibpath_var=LD_LIBRARY_PATH
 
9972
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9973
    case $host_os in
 
9974
      openbsd2.[89] | openbsd2.[89].*)
 
9975
        shlibpath_overrides_runpath=no
 
9976
        ;;
 
9977
      *)
 
9978
        shlibpath_overrides_runpath=yes
 
9979
        ;;
 
9980
      esac
 
9981
  else
 
9982
    shlibpath_overrides_runpath=yes
 
9983
  fi
 
9984
  ;;
 
9985
 
 
9986
os2*)
 
9987
  libname_spec='$name'
 
9988
  shrext_cmds=".dll"
 
9989
  need_lib_prefix=no
 
9990
  library_names_spec='$libname${shared_ext} $libname.a'
 
9991
  dynamic_linker='OS/2 ld.exe'
 
9992
  shlibpath_var=LIBPATH
 
9993
  ;;
 
9994
 
 
9995
osf3* | osf4* | osf5*)
 
9996
  version_type=osf
 
9997
  need_lib_prefix=no
 
9998
  need_version=no
 
9999
  soname_spec='${libname}${release}${shared_ext}$major'
 
10000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10001
  shlibpath_var=LD_LIBRARY_PATH
 
10002
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10003
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10004
  ;;
 
10005
 
 
10006
rdos*)
 
10007
  dynamic_linker=no
 
10008
  ;;
 
10009
 
 
10010
solaris*)
 
10011
  version_type=linux
 
10012
  need_lib_prefix=no
 
10013
  need_version=no
 
10014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10015
  soname_spec='${libname}${release}${shared_ext}$major'
 
10016
  shlibpath_var=LD_LIBRARY_PATH
 
10017
  shlibpath_overrides_runpath=yes
 
10018
  hardcode_into_libs=yes
 
10019
  # ldd complains unless libraries are executable
 
10020
  postinstall_cmds='chmod +x $lib'
 
10021
  ;;
 
10022
 
 
10023
sunos4*)
 
10024
  version_type=sunos
 
10025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10026
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10027
  shlibpath_var=LD_LIBRARY_PATH
 
10028
  shlibpath_overrides_runpath=yes
 
10029
  if test "$with_gnu_ld" = yes; then
 
10030
    need_lib_prefix=no
 
10031
  fi
 
10032
  need_version=yes
 
10033
  ;;
 
10034
 
 
10035
sysv4 | sysv4.3*)
 
10036
  version_type=linux
 
10037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10038
  soname_spec='${libname}${release}${shared_ext}$major'
 
10039
  shlibpath_var=LD_LIBRARY_PATH
 
10040
  case $host_vendor in
 
10041
    sni)
 
10042
      shlibpath_overrides_runpath=no
 
10043
      need_lib_prefix=no
 
10044
      runpath_var=LD_RUN_PATH
 
10045
      ;;
 
10046
    siemens)
 
10047
      need_lib_prefix=no
 
10048
      ;;
 
10049
    motorola)
 
10050
      need_lib_prefix=no
 
10051
      need_version=no
 
10052
      shlibpath_overrides_runpath=no
 
10053
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10054
      ;;
 
10055
  esac
 
10056
  ;;
 
10057
 
 
10058
sysv4*MP*)
 
10059
  if test -d /usr/nec ;then
 
10060
    version_type=linux
 
10061
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10062
    soname_spec='$libname${shared_ext}.$major'
 
10063
    shlibpath_var=LD_LIBRARY_PATH
 
10064
  fi
 
10065
  ;;
 
10066
 
 
10067
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10068
  version_type=freebsd-elf
 
10069
  need_lib_prefix=no
 
10070
  need_version=no
 
10071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10072
  soname_spec='${libname}${release}${shared_ext}$major'
 
10073
  shlibpath_var=LD_LIBRARY_PATH
 
10074
  shlibpath_overrides_runpath=yes
 
10075
  hardcode_into_libs=yes
 
10076
  if test "$with_gnu_ld" = yes; then
 
10077
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10078
  else
 
10079
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10080
    case $host_os in
 
10081
      sco3.2v5*)
 
10082
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10083
        ;;
 
10084
    esac
 
10085
  fi
 
10086
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10087
  ;;
 
10088
 
 
10089
tpf*)
 
10090
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10091
  version_type=linux
 
10092
  need_lib_prefix=no
 
10093
  need_version=no
 
10094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10095
  shlibpath_var=LD_LIBRARY_PATH
 
10096
  shlibpath_overrides_runpath=no
 
10097
  hardcode_into_libs=yes
 
10098
  ;;
 
10099
 
 
10100
uts4*)
 
10101
  version_type=linux
 
10102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10103
  soname_spec='${libname}${release}${shared_ext}$major'
 
10104
  shlibpath_var=LD_LIBRARY_PATH
 
10105
  ;;
 
10106
 
 
10107
*)
 
10108
  dynamic_linker=no
 
10109
  ;;
 
10110
esac
 
10111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10112
$as_echo "$dynamic_linker" >&6; }
 
10113
test "$dynamic_linker" = no && can_build_shared=no
 
10114
 
 
10115
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10116
if test "$GCC" = yes; then
 
10117
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10118
fi
 
10119
 
 
10120
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10121
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10122
fi
 
10123
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10124
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10125
fi
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10214
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10215
hardcode_action=
 
10216
if test -n "$hardcode_libdir_flag_spec" ||
 
10217
   test -n "$runpath_var" ||
 
10218
   test "X$hardcode_automatic" = "Xyes" ; then
 
10219
 
 
10220
  # We can hardcode non-existent directories.
 
10221
  if test "$hardcode_direct" != no &&
 
10222
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10223
     # have to relink, otherwise we might link with an installed library
 
10224
     # when we should be linking with a yet-to-be-installed one
 
10225
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10226
     test "$hardcode_minus_L" != no; then
 
10227
    # Linking always hardcodes the temporary library directory.
 
10228
    hardcode_action=relink
 
10229
  else
 
10230
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10231
    hardcode_action=immediate
 
10232
  fi
 
10233
else
 
10234
  # We cannot hardcode anything, or else we can only hardcode existing
 
10235
  # directories.
 
10236
  hardcode_action=unsupported
 
10237
fi
 
10238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10239
$as_echo "$hardcode_action" >&6; }
 
10240
 
 
10241
if test "$hardcode_action" = relink ||
 
10242
   test "$inherit_rpath" = yes; then
 
10243
  # Fast installation is not supported
 
10244
  enable_fast_install=no
 
10245
elif test "$shlibpath_overrides_runpath" = yes ||
 
10246
     test "$enable_shared" = no; then
 
10247
  # Fast installation is not necessary
 
10248
  enable_fast_install=needless
 
10249
fi
 
10250
 
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
 
 
10256
  if test "x$enable_dlopen" != xyes; then
 
10257
  enable_dlopen=unknown
 
10258
  enable_dlopen_self=unknown
 
10259
  enable_dlopen_self_static=unknown
 
10260
else
 
10261
  lt_cv_dlopen=no
 
10262
  lt_cv_dlopen_libs=
 
10263
 
 
10264
  case $host_os in
 
10265
  beos*)
 
10266
    lt_cv_dlopen="load_add_on"
 
10267
    lt_cv_dlopen_libs=
 
10268
    lt_cv_dlopen_self=yes
 
10269
    ;;
 
10270
 
 
10271
  mingw* | pw32* | cegcc*)
 
10272
    lt_cv_dlopen="LoadLibrary"
 
10273
    lt_cv_dlopen_libs=
 
10274
    ;;
 
10275
 
 
10276
  cygwin*)
 
10277
    lt_cv_dlopen="dlopen"
 
10278
    lt_cv_dlopen_libs=
 
10279
    ;;
 
10280
 
 
10281
  darwin*)
 
10282
  # if libdl is installed we need to link against it
 
10283
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10284
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10285
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10286
  $as_echo_n "(cached) " >&6
 
10287
else
 
10288
  ac_check_lib_save_LIBS=$LIBS
 
10289
LIBS="-ldl  $LIBS"
 
10290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10291
/* end confdefs.h.  */
 
10292
 
 
10293
/* Override any GCC internal prototype to avoid an error.
 
10294
   Use char because int might match the return type of a GCC
 
10295
   builtin and then its argument prototype would still apply.  */
 
10296
#ifdef __cplusplus
 
10297
extern "C"
 
10298
#endif
 
10299
char dlopen ();
 
10300
int
 
10301
main ()
 
10302
{
 
10303
return dlopen ();
 
10304
  ;
 
10305
  return 0;
 
10306
}
 
10307
_ACEOF
 
10308
if ac_fn_c_try_link "$LINENO"; then :
 
10309
  ac_cv_lib_dl_dlopen=yes
 
10310
else
 
10311
  ac_cv_lib_dl_dlopen=no
 
10312
fi
 
10313
rm -f core conftest.err conftest.$ac_objext \
 
10314
    conftest$ac_exeext conftest.$ac_ext
 
10315
LIBS=$ac_check_lib_save_LIBS
 
10316
fi
 
10317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10318
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10319
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10320
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10321
else
 
10322
 
 
10323
    lt_cv_dlopen="dyld"
 
10324
    lt_cv_dlopen_libs=
 
10325
    lt_cv_dlopen_self=yes
 
10326
 
 
10327
fi
 
10328
 
 
10329
    ;;
 
10330
 
 
10331
  *)
 
10332
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10333
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10334
  lt_cv_dlopen="shl_load"
 
10335
else
 
10336
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10337
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10338
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10339
  $as_echo_n "(cached) " >&6
 
10340
else
 
10341
  ac_check_lib_save_LIBS=$LIBS
 
10342
LIBS="-ldld  $LIBS"
 
10343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10344
/* end confdefs.h.  */
 
10345
 
 
10346
/* Override any GCC internal prototype to avoid an error.
 
10347
   Use char because int might match the return type of a GCC
 
10348
   builtin and then its argument prototype would still apply.  */
 
10349
#ifdef __cplusplus
 
10350
extern "C"
 
10351
#endif
 
10352
char shl_load ();
 
10353
int
 
10354
main ()
 
10355
{
 
10356
return shl_load ();
 
10357
  ;
 
10358
  return 0;
 
10359
}
 
10360
_ACEOF
 
10361
if ac_fn_c_try_link "$LINENO"; then :
 
10362
  ac_cv_lib_dld_shl_load=yes
 
10363
else
 
10364
  ac_cv_lib_dld_shl_load=no
 
10365
fi
 
10366
rm -f core conftest.err conftest.$ac_objext \
 
10367
    conftest$ac_exeext conftest.$ac_ext
 
10368
LIBS=$ac_check_lib_save_LIBS
 
10369
fi
 
10370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10371
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10372
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10373
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10374
else
 
10375
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10376
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10377
  lt_cv_dlopen="dlopen"
 
10378
else
 
10379
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10380
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10381
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10382
  $as_echo_n "(cached) " >&6
 
10383
else
 
10384
  ac_check_lib_save_LIBS=$LIBS
 
10385
LIBS="-ldl  $LIBS"
 
10386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10387
/* end confdefs.h.  */
 
10388
 
 
10389
/* Override any GCC internal prototype to avoid an error.
 
10390
   Use char because int might match the return type of a GCC
 
10391
   builtin and then its argument prototype would still apply.  */
 
10392
#ifdef __cplusplus
 
10393
extern "C"
 
10394
#endif
 
10395
char dlopen ();
 
10396
int
 
10397
main ()
 
10398
{
 
10399
return dlopen ();
 
10400
  ;
 
10401
  return 0;
 
10402
}
 
10403
_ACEOF
 
10404
if ac_fn_c_try_link "$LINENO"; then :
 
10405
  ac_cv_lib_dl_dlopen=yes
 
10406
else
 
10407
  ac_cv_lib_dl_dlopen=no
 
10408
fi
 
10409
rm -f core conftest.err conftest.$ac_objext \
 
10410
    conftest$ac_exeext conftest.$ac_ext
 
10411
LIBS=$ac_check_lib_save_LIBS
 
10412
fi
 
10413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10414
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10415
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10416
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10417
else
 
10418
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10419
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10420
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10421
  $as_echo_n "(cached) " >&6
 
10422
else
 
10423
  ac_check_lib_save_LIBS=$LIBS
 
10424
LIBS="-lsvld  $LIBS"
 
10425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10426
/* end confdefs.h.  */
 
10427
 
 
10428
/* Override any GCC internal prototype to avoid an error.
 
10429
   Use char because int might match the return type of a GCC
 
10430
   builtin and then its argument prototype would still apply.  */
 
10431
#ifdef __cplusplus
 
10432
extern "C"
 
10433
#endif
 
10434
char dlopen ();
 
10435
int
 
10436
main ()
 
10437
{
 
10438
return dlopen ();
 
10439
  ;
 
10440
  return 0;
 
10441
}
 
10442
_ACEOF
 
10443
if ac_fn_c_try_link "$LINENO"; then :
 
10444
  ac_cv_lib_svld_dlopen=yes
 
10445
else
 
10446
  ac_cv_lib_svld_dlopen=no
 
10447
fi
 
10448
rm -f core conftest.err conftest.$ac_objext \
 
10449
    conftest$ac_exeext conftest.$ac_ext
 
10450
LIBS=$ac_check_lib_save_LIBS
 
10451
fi
 
10452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10453
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10454
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
10455
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10456
else
 
10457
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10458
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10459
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
10460
  $as_echo_n "(cached) " >&6
 
10461
else
 
10462
  ac_check_lib_save_LIBS=$LIBS
 
10463
LIBS="-ldld  $LIBS"
 
10464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10465
/* end confdefs.h.  */
 
10466
 
 
10467
/* Override any GCC internal prototype to avoid an error.
 
10468
   Use char because int might match the return type of a GCC
 
10469
   builtin and then its argument prototype would still apply.  */
 
10470
#ifdef __cplusplus
 
10471
extern "C"
 
10472
#endif
 
10473
char dld_link ();
 
10474
int
 
10475
main ()
 
10476
{
 
10477
return dld_link ();
 
10478
  ;
 
10479
  return 0;
 
10480
}
 
10481
_ACEOF
 
10482
if ac_fn_c_try_link "$LINENO"; then :
 
10483
  ac_cv_lib_dld_dld_link=yes
 
10484
else
 
10485
  ac_cv_lib_dld_dld_link=no
 
10486
fi
 
10487
rm -f core conftest.err conftest.$ac_objext \
 
10488
    conftest$ac_exeext conftest.$ac_ext
 
10489
LIBS=$ac_check_lib_save_LIBS
 
10490
fi
 
10491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10492
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10493
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
10494
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10495
fi
 
10496
 
 
10497
 
 
10498
fi
 
10499
 
 
10500
 
 
10501
fi
 
10502
 
 
10503
 
 
10504
fi
 
10505
 
 
10506
 
 
10507
fi
 
10508
 
 
10509
 
 
10510
fi
 
10511
 
 
10512
    ;;
 
10513
  esac
 
10514
 
 
10515
  if test "x$lt_cv_dlopen" != xno; then
 
10516
    enable_dlopen=yes
 
10517
  else
 
10518
    enable_dlopen=no
 
10519
  fi
 
10520
 
 
10521
  case $lt_cv_dlopen in
 
10522
  dlopen)
 
10523
    save_CPPFLAGS="$CPPFLAGS"
 
10524
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10525
 
 
10526
    save_LDFLAGS="$LDFLAGS"
 
10527
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10528
 
 
10529
    save_LIBS="$LIBS"
 
10530
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10531
 
 
10532
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10533
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10534
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10535
  $as_echo_n "(cached) " >&6
 
10536
else
 
10537
          if test "$cross_compiling" = yes; then :
 
10538
  lt_cv_dlopen_self=cross
 
10539
else
 
10540
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10541
  lt_status=$lt_dlunknown
 
10542
  cat > conftest.$ac_ext <<_LT_EOF
 
10543
#line 10543 "configure"
 
10544
#include "confdefs.h"
 
10545
 
 
10546
#if HAVE_DLFCN_H
 
10547
#include <dlfcn.h>
 
10548
#endif
 
10549
 
 
10550
#include <stdio.h>
 
10551
 
 
10552
#ifdef RTLD_GLOBAL
 
10553
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10554
#else
 
10555
#  ifdef DL_GLOBAL
 
10556
#    define LT_DLGLOBAL         DL_GLOBAL
 
10557
#  else
 
10558
#    define LT_DLGLOBAL         0
 
10559
#  endif
 
10560
#endif
 
10561
 
 
10562
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10563
   find out it does not work in some platform. */
 
10564
#ifndef LT_DLLAZY_OR_NOW
 
10565
#  ifdef RTLD_LAZY
 
10566
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10567
#  else
 
10568
#    ifdef DL_LAZY
 
10569
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10570
#    else
 
10571
#      ifdef RTLD_NOW
 
10572
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10573
#      else
 
10574
#        ifdef DL_NOW
 
10575
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10576
#        else
 
10577
#          define LT_DLLAZY_OR_NOW      0
 
10578
#        endif
 
10579
#      endif
 
10580
#    endif
 
10581
#  endif
 
10582
#endif
 
10583
 
 
10584
void fnord() { int i=42;}
 
10585
int main ()
 
10586
{
 
10587
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10588
  int status = $lt_dlunknown;
 
10589
 
 
10590
  if (self)
 
10591
    {
 
10592
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10593
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10594
      /* dlclose (self); */
 
10595
    }
 
10596
  else
 
10597
    puts (dlerror ());
 
10598
 
 
10599
  return status;
 
10600
}
 
10601
_LT_EOF
 
10602
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10603
  (eval $ac_link) 2>&5
 
10604
  ac_status=$?
 
10605
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10606
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10607
    (./conftest; exit; ) >&5 2>/dev/null
 
10608
    lt_status=$?
 
10609
    case x$lt_status in
 
10610
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10611
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10612
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10613
    esac
 
10614
  else :
 
10615
    # compilation failed
 
10616
    lt_cv_dlopen_self=no
 
10617
  fi
 
10618
fi
 
10619
rm -fr conftest*
 
10620
 
 
10621
 
 
10622
fi
 
10623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10624
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10625
 
 
10626
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10627
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10628
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10629
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10630
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
10631
  $as_echo_n "(cached) " >&6
 
10632
else
 
10633
          if test "$cross_compiling" = yes; then :
 
10634
  lt_cv_dlopen_self_static=cross
 
10635
else
 
10636
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10637
  lt_status=$lt_dlunknown
 
10638
  cat > conftest.$ac_ext <<_LT_EOF
 
10639
#line 10639 "configure"
 
10640
#include "confdefs.h"
 
10641
 
 
10642
#if HAVE_DLFCN_H
 
10643
#include <dlfcn.h>
 
10644
#endif
 
10645
 
 
10646
#include <stdio.h>
 
10647
 
 
10648
#ifdef RTLD_GLOBAL
 
10649
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10650
#else
 
10651
#  ifdef DL_GLOBAL
 
10652
#    define LT_DLGLOBAL         DL_GLOBAL
 
10653
#  else
 
10654
#    define LT_DLGLOBAL         0
 
10655
#  endif
 
10656
#endif
 
10657
 
 
10658
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10659
   find out it does not work in some platform. */
 
10660
#ifndef LT_DLLAZY_OR_NOW
 
10661
#  ifdef RTLD_LAZY
 
10662
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10663
#  else
 
10664
#    ifdef DL_LAZY
 
10665
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10666
#    else
 
10667
#      ifdef RTLD_NOW
 
10668
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10669
#      else
 
10670
#        ifdef DL_NOW
 
10671
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10672
#        else
 
10673
#          define LT_DLLAZY_OR_NOW      0
 
10674
#        endif
 
10675
#      endif
 
10676
#    endif
 
10677
#  endif
 
10678
#endif
 
10679
 
 
10680
void fnord() { int i=42;}
 
10681
int main ()
 
10682
{
 
10683
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10684
  int status = $lt_dlunknown;
 
10685
 
 
10686
  if (self)
 
10687
    {
 
10688
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10689
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10690
      /* dlclose (self); */
 
10691
    }
 
10692
  else
 
10693
    puts (dlerror ());
 
10694
 
 
10695
  return status;
 
10696
}
 
10697
_LT_EOF
 
10698
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10699
  (eval $ac_link) 2>&5
 
10700
  ac_status=$?
 
10701
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10702
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10703
    (./conftest; exit; ) >&5 2>/dev/null
 
10704
    lt_status=$?
 
10705
    case x$lt_status in
 
10706
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10707
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10708
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10709
    esac
 
10710
  else :
 
10711
    # compilation failed
 
10712
    lt_cv_dlopen_self_static=no
 
10713
  fi
 
10714
fi
 
10715
rm -fr conftest*
 
10716
 
 
10717
 
 
10718
fi
 
10719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
10720
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10721
    fi
 
10722
 
 
10723
    CPPFLAGS="$save_CPPFLAGS"
 
10724
    LDFLAGS="$save_LDFLAGS"
 
10725
    LIBS="$save_LIBS"
 
10726
    ;;
 
10727
  esac
 
10728
 
 
10729
  case $lt_cv_dlopen_self in
 
10730
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10731
  *) enable_dlopen_self=unknown ;;
 
10732
  esac
 
10733
 
 
10734
  case $lt_cv_dlopen_self_static in
 
10735
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10736
  *) enable_dlopen_self_static=unknown ;;
 
10737
  esac
 
10738
fi
 
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
 
 
10748
 
 
10749
 
 
10750
 
 
10751
 
 
10752
 
 
10753
 
 
10754
 
 
10755
 
 
10756
striplib=
 
10757
old_striplib=
 
10758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
10759
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10760
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
10761
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10762
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10764
$as_echo "yes" >&6; }
 
10765
else
 
10766
# FIXME - insert some real tests, host_os isn't really good enough
 
10767
  case $host_os in
 
10768
  darwin*)
 
10769
    if test -n "$STRIP" ; then
 
10770
      striplib="$STRIP -x"
 
10771
      old_striplib="$STRIP -S"
 
10772
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10773
$as_echo "yes" >&6; }
 
10774
    else
 
10775
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10776
$as_echo "no" >&6; }
 
10777
    fi
 
10778
    ;;
 
10779
  *)
 
10780
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10781
$as_echo "no" >&6; }
 
10782
    ;;
 
10783
  esac
 
10784
fi
 
10785
 
 
10786
 
 
10787
 
 
10788
 
 
10789
 
 
10790
 
 
10791
 
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
  # Report which library types will actually be built
 
10798
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
10799
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
10801
$as_echo "$can_build_shared" >&6; }
 
10802
 
 
10803
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
10804
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10805
  test "$can_build_shared" = "no" && enable_shared=no
 
10806
 
 
10807
  # On AIX, shared libraries and static libraries use the same namespace, and
 
10808
  # are all built from PIC.
 
10809
  case $host_os in
 
10810
  aix3*)
 
10811
    test "$enable_shared" = yes && enable_static=no
 
10812
    if test -n "$RANLIB"; then
 
10813
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10814
      postinstall_cmds='$RANLIB $lib'
 
10815
    fi
 
10816
    ;;
 
10817
 
 
10818
  aix[4-9]*)
 
10819
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10820
      test "$enable_shared" = yes && enable_static=no
 
10821
    fi
 
10822
    ;;
 
10823
  esac
 
10824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
10825
$as_echo "$enable_shared" >&6; }
 
10826
 
 
10827
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
10828
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10829
  # Make sure either enable_shared or enable_static is yes.
 
10830
  test "$enable_shared" = yes || enable_static=yes
 
10831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
10832
$as_echo "$enable_static" >&6; }
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
fi
 
10838
ac_ext=c
 
10839
ac_cpp='$CPP $CPPFLAGS'
 
10840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10843
 
 
10844
CC="$lt_save_CC"
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
        ac_config_commands="$ac_config_commands libtool"
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
# Only expand once:
 
10864
 
 
10865
 
 
10866
 
 
10867
 
 
10868
# Host specific.
 
10869
NO_UNDEFINED=
 
10870
case "$host" in
 
10871
    *-*-mingw32* | *-*-cygwin*)
 
10872
 
 
10873
$as_echo "#define HOST_W32 1" >>confdefs.h
 
10874
 
 
10875
        host_w32=yes
 
10876
        if  test x"$enable_shared" != "xno" ; then
 
10877
            NO_UNDEFINED="-no-undefined"
 
10878
        fi
 
10879
    ;;
 
10880
esac
 
10881
EXTRA_LIBQUVI_LDFLAGS="$NO_UNDEFINED"
 
10882
 
 
10883
 
 
10884
# Checks for programs.
 
10885
for ac_prog in gawk mawk nawk awk
 
10886
do
 
10887
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
10888
set dummy $ac_prog; ac_word=$2
 
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10890
$as_echo_n "checking for $ac_word... " >&6; }
 
10891
if test "${ac_cv_prog_AWK+set}" = set; then :
 
10892
  $as_echo_n "(cached) " >&6
 
10893
else
 
10894
  if test -n "$AWK"; then
 
10895
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
10896
else
 
10897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10898
for as_dir in $PATH
 
10899
do
 
10900
  IFS=$as_save_IFS
 
10901
  test -z "$as_dir" && as_dir=.
 
10902
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10904
    ac_cv_prog_AWK="$ac_prog"
 
10905
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10906
    break 2
 
10907
  fi
 
10908
done
 
10909
  done
 
10910
IFS=$as_save_IFS
 
10911
 
 
10912
fi
 
10913
fi
 
10914
AWK=$ac_cv_prog_AWK
 
10915
if test -n "$AWK"; then
 
10916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
10917
$as_echo "$AWK" >&6; }
 
10918
else
 
10919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10920
$as_echo "no" >&6; }
 
10921
fi
 
10922
 
 
10923
 
 
10924
  test -n "$AWK" && break
 
10925
done
 
10926
 
 
10927
ac_ext=c
 
10928
ac_cpp='$CPP $CPPFLAGS'
 
10929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10932
if test -n "$ac_tool_prefix"; then
 
10933
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
10934
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
10935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10936
$as_echo_n "checking for $ac_word... " >&6; }
 
10937
if test "${ac_cv_prog_CC+set}" = set; then :
 
10938
  $as_echo_n "(cached) " >&6
 
10939
else
 
10940
  if test -n "$CC"; then
 
10941
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
10942
else
 
10943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10944
for as_dir in $PATH
 
10945
do
 
10946
  IFS=$as_save_IFS
 
10947
  test -z "$as_dir" && as_dir=.
 
10948
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10950
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
10951
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10952
    break 2
 
10953
  fi
 
10954
done
 
10955
  done
 
10956
IFS=$as_save_IFS
 
10957
 
 
10958
fi
 
10959
fi
 
10960
CC=$ac_cv_prog_CC
 
10961
if test -n "$CC"; then
 
10962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
10963
$as_echo "$CC" >&6; }
 
10964
else
 
10965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10966
$as_echo "no" >&6; }
 
10967
fi
 
10968
 
 
10969
 
 
10970
fi
 
10971
if test -z "$ac_cv_prog_CC"; then
 
10972
  ac_ct_CC=$CC
 
10973
  # Extract the first word of "gcc", so it can be a program name with args.
 
10974
set dummy gcc; ac_word=$2
 
10975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10976
$as_echo_n "checking for $ac_word... " >&6; }
 
10977
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
10978
  $as_echo_n "(cached) " >&6
 
10979
else
 
10980
  if test -n "$ac_ct_CC"; then
 
10981
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
10982
else
 
10983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10984
for as_dir in $PATH
 
10985
do
 
10986
  IFS=$as_save_IFS
 
10987
  test -z "$as_dir" && as_dir=.
 
10988
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10990
    ac_cv_prog_ac_ct_CC="gcc"
 
10991
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10992
    break 2
 
10993
  fi
 
10994
done
 
10995
  done
 
10996
IFS=$as_save_IFS
 
10997
 
 
10998
fi
 
10999
fi
 
11000
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11001
if test -n "$ac_ct_CC"; then
 
11002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11003
$as_echo "$ac_ct_CC" >&6; }
 
11004
else
 
11005
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11006
$as_echo "no" >&6; }
 
11007
fi
 
11008
 
 
11009
  if test "x$ac_ct_CC" = x; then
 
11010
    CC=""
 
11011
  else
 
11012
    case $cross_compiling:$ac_tool_warned in
 
11013
yes:)
 
11014
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11015
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11016
ac_tool_warned=yes ;;
 
11017
esac
 
11018
    CC=$ac_ct_CC
 
11019
  fi
 
11020
else
 
11021
  CC="$ac_cv_prog_CC"
 
11022
fi
 
11023
 
 
11024
if test -z "$CC"; then
 
11025
          if test -n "$ac_tool_prefix"; then
 
11026
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
11027
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
11028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11029
$as_echo_n "checking for $ac_word... " >&6; }
 
11030
if test "${ac_cv_prog_CC+set}" = set; then :
 
11031
  $as_echo_n "(cached) " >&6
 
11032
else
 
11033
  if test -n "$CC"; then
 
11034
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11035
else
 
11036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11037
for as_dir in $PATH
 
11038
do
 
11039
  IFS=$as_save_IFS
 
11040
  test -z "$as_dir" && as_dir=.
 
11041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11043
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
11044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11045
    break 2
 
11046
  fi
 
11047
done
 
11048
  done
 
11049
IFS=$as_save_IFS
 
11050
 
 
11051
fi
 
11052
fi
 
11053
CC=$ac_cv_prog_CC
 
11054
if test -n "$CC"; then
 
11055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11056
$as_echo "$CC" >&6; }
 
11057
else
 
11058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11059
$as_echo "no" >&6; }
 
11060
fi
 
11061
 
 
11062
 
 
11063
  fi
 
11064
fi
 
11065
if test -z "$CC"; then
 
11066
  # Extract the first word of "cc", so it can be a program name with args.
 
11067
set dummy cc; ac_word=$2
 
11068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11069
$as_echo_n "checking for $ac_word... " >&6; }
 
11070
if test "${ac_cv_prog_CC+set}" = set; then :
 
11071
  $as_echo_n "(cached) " >&6
 
11072
else
 
11073
  if test -n "$CC"; then
 
11074
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11075
else
 
11076
  ac_prog_rejected=no
 
11077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11078
for as_dir in $PATH
 
11079
do
 
11080
  IFS=$as_save_IFS
 
11081
  test -z "$as_dir" && as_dir=.
 
11082
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11084
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
11085
       ac_prog_rejected=yes
 
11086
       continue
 
11087
     fi
 
11088
    ac_cv_prog_CC="cc"
 
11089
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11090
    break 2
 
11091
  fi
 
11092
done
 
11093
  done
 
11094
IFS=$as_save_IFS
 
11095
 
 
11096
if test $ac_prog_rejected = yes; then
 
11097
  # We found a bogon in the path, so make sure we never use it.
 
11098
  set dummy $ac_cv_prog_CC
 
11099
  shift
 
11100
  if test $# != 0; then
 
11101
    # We chose a different compiler from the bogus one.
 
11102
    # However, it has the same basename, so the bogon will be chosen
 
11103
    # first if we set CC to just the basename; use the full file name.
 
11104
    shift
 
11105
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
11106
  fi
 
11107
fi
 
11108
fi
 
11109
fi
 
11110
CC=$ac_cv_prog_CC
 
11111
if test -n "$CC"; then
 
11112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11113
$as_echo "$CC" >&6; }
 
11114
else
 
11115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11116
$as_echo "no" >&6; }
 
11117
fi
 
11118
 
 
11119
 
 
11120
fi
 
11121
if test -z "$CC"; then
 
11122
  if test -n "$ac_tool_prefix"; then
 
11123
  for ac_prog in cl.exe
 
11124
  do
 
11125
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11126
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11128
$as_echo_n "checking for $ac_word... " >&6; }
 
11129
if test "${ac_cv_prog_CC+set}" = set; then :
 
11130
  $as_echo_n "(cached) " >&6
 
11131
else
 
11132
  if test -n "$CC"; then
 
11133
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11134
else
 
11135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11136
for as_dir in $PATH
 
11137
do
 
11138
  IFS=$as_save_IFS
 
11139
  test -z "$as_dir" && as_dir=.
 
11140
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11141
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11142
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
11143
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11144
    break 2
 
11145
  fi
 
11146
done
 
11147
  done
 
11148
IFS=$as_save_IFS
 
11149
 
 
11150
fi
 
11151
fi
 
11152
CC=$ac_cv_prog_CC
 
11153
if test -n "$CC"; then
 
11154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11155
$as_echo "$CC" >&6; }
 
11156
else
 
11157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11158
$as_echo "no" >&6; }
 
11159
fi
 
11160
 
 
11161
 
 
11162
    test -n "$CC" && break
 
11163
  done
 
11164
fi
 
11165
if test -z "$CC"; then
 
11166
  ac_ct_CC=$CC
 
11167
  for ac_prog in cl.exe
 
11168
do
 
11169
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11170
set dummy $ac_prog; ac_word=$2
 
11171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11172
$as_echo_n "checking for $ac_word... " >&6; }
 
11173
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
11174
  $as_echo_n "(cached) " >&6
 
11175
else
 
11176
  if test -n "$ac_ct_CC"; then
 
11177
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11178
else
 
11179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11180
for as_dir in $PATH
 
11181
do
 
11182
  IFS=$as_save_IFS
 
11183
  test -z "$as_dir" && as_dir=.
 
11184
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11186
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
11187
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11188
    break 2
 
11189
  fi
 
11190
done
 
11191
  done
 
11192
IFS=$as_save_IFS
 
11193
 
 
11194
fi
 
11195
fi
 
11196
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11197
if test -n "$ac_ct_CC"; then
 
11198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11199
$as_echo "$ac_ct_CC" >&6; }
 
11200
else
 
11201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11202
$as_echo "no" >&6; }
 
11203
fi
 
11204
 
 
11205
 
 
11206
  test -n "$ac_ct_CC" && break
 
11207
done
 
11208
 
 
11209
  if test "x$ac_ct_CC" = x; then
 
11210
    CC=""
 
11211
  else
 
11212
    case $cross_compiling:$ac_tool_warned in
 
11213
yes:)
 
11214
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11215
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11216
ac_tool_warned=yes ;;
 
11217
esac
 
11218
    CC=$ac_ct_CC
 
11219
  fi
 
11220
fi
 
11221
 
 
11222
fi
 
11223
 
 
11224
 
 
11225
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11226
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11227
as_fn_error "no acceptable C compiler found in \$PATH
 
11228
See \`config.log' for more details." "$LINENO" 5; }
 
11229
 
 
11230
# Provide some information about the compiler.
 
11231
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
11232
set X $ac_compile
 
11233
ac_compiler=$2
 
11234
for ac_option in --version -v -V -qversion; do
 
11235
  { { ac_try="$ac_compiler $ac_option >&5"
 
11236
case "(($ac_try" in
 
11237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11238
  *) ac_try_echo=$ac_try;;
 
11239
esac
 
11240
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11241
$as_echo "$ac_try_echo"; } >&5
 
11242
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11243
  ac_status=$?
 
11244
  if test -s conftest.err; then
 
11245
    sed '10a\
 
11246
... rest of stderr output deleted ...
 
11247
         10q' conftest.err >conftest.er1
 
11248
    cat conftest.er1 >&5
 
11249
  fi
 
11250
  rm -f conftest.er1 conftest.err
 
11251
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11252
  test $ac_status = 0; }
 
11253
done
 
11254
 
 
11255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
11256
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
11257
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
11258
  $as_echo_n "(cached) " >&6
 
11259
else
 
11260
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11261
/* end confdefs.h.  */
 
11262
 
 
11263
int
 
11264
main ()
 
11265
{
 
11266
#ifndef __GNUC__
 
11267
       choke me
 
11268
#endif
 
11269
 
 
11270
  ;
 
11271
  return 0;
 
11272
}
 
11273
_ACEOF
 
11274
if ac_fn_c_try_compile "$LINENO"; then :
 
11275
  ac_compiler_gnu=yes
 
11276
else
 
11277
  ac_compiler_gnu=no
 
11278
fi
 
11279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11280
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
11281
 
 
11282
fi
 
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
11284
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
11285
if test $ac_compiler_gnu = yes; then
 
11286
  GCC=yes
 
11287
else
 
11288
  GCC=
 
11289
fi
 
11290
ac_test_CFLAGS=${CFLAGS+set}
 
11291
ac_save_CFLAGS=$CFLAGS
 
11292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
11293
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
11294
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
11295
  $as_echo_n "(cached) " >&6
 
11296
else
 
11297
  ac_save_c_werror_flag=$ac_c_werror_flag
 
11298
   ac_c_werror_flag=yes
 
11299
   ac_cv_prog_cc_g=no
 
11300
   CFLAGS="-g"
 
11301
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11302
/* end confdefs.h.  */
 
11303
 
 
11304
int
 
11305
main ()
 
11306
{
 
11307
 
 
11308
  ;
 
11309
  return 0;
 
11310
}
 
11311
_ACEOF
 
11312
if ac_fn_c_try_compile "$LINENO"; then :
 
11313
  ac_cv_prog_cc_g=yes
 
11314
else
 
11315
  CFLAGS=""
 
11316
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11317
/* end confdefs.h.  */
 
11318
 
 
11319
int
 
11320
main ()
 
11321
{
 
11322
 
 
11323
  ;
 
11324
  return 0;
 
11325
}
 
11326
_ACEOF
 
11327
if ac_fn_c_try_compile "$LINENO"; then :
 
11328
 
 
11329
else
 
11330
  ac_c_werror_flag=$ac_save_c_werror_flag
 
11331
         CFLAGS="-g"
 
11332
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11333
/* end confdefs.h.  */
 
11334
 
 
11335
int
 
11336
main ()
 
11337
{
 
11338
 
 
11339
  ;
 
11340
  return 0;
 
11341
}
 
11342
_ACEOF
 
11343
if ac_fn_c_try_compile "$LINENO"; then :
 
11344
  ac_cv_prog_cc_g=yes
 
11345
fi
 
11346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11347
fi
 
11348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11349
fi
 
11350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11351
   ac_c_werror_flag=$ac_save_c_werror_flag
 
11352
fi
 
11353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
11354
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
11355
if test "$ac_test_CFLAGS" = set; then
 
11356
  CFLAGS=$ac_save_CFLAGS
 
11357
elif test $ac_cv_prog_cc_g = yes; then
 
11358
  if test "$GCC" = yes; then
 
11359
    CFLAGS="-g -O2"
 
11360
  else
 
11361
    CFLAGS="-g"
 
11362
  fi
 
11363
else
 
11364
  if test "$GCC" = yes; then
 
11365
    CFLAGS="-O2"
 
11366
  else
 
11367
    CFLAGS=
 
11368
  fi
 
11369
fi
 
11370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
11371
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
11372
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
11373
  $as_echo_n "(cached) " >&6
 
11374
else
 
11375
  ac_cv_prog_cc_c89=no
 
11376
ac_save_CC=$CC
 
11377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11378
/* end confdefs.h.  */
 
11379
#include <stdarg.h>
 
11380
#include <stdio.h>
 
11381
#include <sys/types.h>
 
11382
#include <sys/stat.h>
 
11383
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11384
struct buf { int x; };
 
11385
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11386
static char *e (p, i)
 
11387
     char **p;
 
11388
     int i;
 
11389
{
 
11390
  return p[i];
 
11391
}
 
11392
static char *f (char * (*g) (char **, int), char **p, ...)
 
11393
{
 
11394
  char *s;
 
11395
  va_list v;
 
11396
  va_start (v,p);
 
11397
  s = g (p, va_arg (v,int));
 
11398
  va_end (v);
 
11399
  return s;
 
11400
}
 
11401
 
 
11402
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
11403
   function prototypes and stuff, but not '\xHH' hex character constants.
 
11404
   These don't provoke an error unfortunately, instead are silently treated
 
11405
   as 'x'.  The following induces an error, until -std is added to get
 
11406
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
11407
   array size at least.  It's necessary to write '\x00'==0 to get something
 
11408
   that's true only with -std.  */
 
11409
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
11410
 
 
11411
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
11412
   inside strings and character constants.  */
 
11413
#define FOO(x) 'x'
 
11414
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
11415
 
 
11416
int test (int i, double x);
 
11417
struct s1 {int (*f) (int a);};
 
11418
struct s2 {int (*f) (double a);};
 
11419
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11420
int argc;
 
11421
char **argv;
 
11422
int
 
11423
main ()
 
11424
{
 
11425
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11426
  ;
 
11427
  return 0;
 
11428
}
 
11429
_ACEOF
 
11430
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
11431
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11432
do
 
11433
  CC="$ac_save_CC $ac_arg"
 
11434
  if ac_fn_c_try_compile "$LINENO"; then :
 
11435
  ac_cv_prog_cc_c89=$ac_arg
 
11436
fi
 
11437
rm -f core conftest.err conftest.$ac_objext
 
11438
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
11439
done
 
11440
rm -f conftest.$ac_ext
 
11441
CC=$ac_save_CC
 
11442
 
 
11443
fi
 
11444
# AC_CACHE_VAL
 
11445
case "x$ac_cv_prog_cc_c89" in
 
11446
  x)
 
11447
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
11448
$as_echo "none needed" >&6; } ;;
 
11449
  xno)
 
11450
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
11451
$as_echo "unsupported" >&6; } ;;
 
11452
  *)
 
11453
    CC="$CC $ac_cv_prog_cc_c89"
 
11454
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
11455
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
11456
esac
 
11457
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
11458
 
 
11459
fi
 
11460
 
 
11461
ac_ext=c
 
11462
ac_cpp='$CPP $CPPFLAGS'
 
11463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11466
 
 
11467
ac_ext=cpp
 
11468
ac_cpp='$CXXCPP $CPPFLAGS'
 
11469
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11470
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11471
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11472
if test -z "$CXX"; then
 
11473
  if test -n "$CCC"; then
 
11474
    CXX=$CCC
 
11475
  else
 
11476
    if test -n "$ac_tool_prefix"; then
 
11477
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11478
  do
 
11479
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11480
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11482
$as_echo_n "checking for $ac_word... " >&6; }
 
11483
if test "${ac_cv_prog_CXX+set}" = set; then :
 
11484
  $as_echo_n "(cached) " >&6
 
11485
else
 
11486
  if test -n "$CXX"; then
 
11487
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
11488
else
 
11489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11490
for as_dir in $PATH
 
11491
do
 
11492
  IFS=$as_save_IFS
 
11493
  test -z "$as_dir" && as_dir=.
 
11494
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11496
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
11497
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11498
    break 2
 
11499
  fi
 
11500
done
 
11501
  done
 
11502
IFS=$as_save_IFS
 
11503
 
 
11504
fi
 
11505
fi
 
11506
CXX=$ac_cv_prog_CXX
 
11507
if test -n "$CXX"; then
 
11508
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
11509
$as_echo "$CXX" >&6; }
 
11510
else
 
11511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11512
$as_echo "no" >&6; }
 
11513
fi
 
11514
 
 
11515
 
 
11516
    test -n "$CXX" && break
 
11517
  done
 
11518
fi
 
11519
if test -z "$CXX"; then
 
11520
  ac_ct_CXX=$CXX
 
11521
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11522
do
 
11523
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11524
set dummy $ac_prog; ac_word=$2
 
11525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11526
$as_echo_n "checking for $ac_word... " >&6; }
 
11527
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
11528
  $as_echo_n "(cached) " >&6
 
11529
else
 
11530
  if test -n "$ac_ct_CXX"; then
 
11531
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
11532
else
 
11533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11534
for as_dir in $PATH
 
11535
do
 
11536
  IFS=$as_save_IFS
 
11537
  test -z "$as_dir" && as_dir=.
 
11538
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11539
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11540
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
11541
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11542
    break 2
 
11543
  fi
 
11544
done
 
11545
  done
 
11546
IFS=$as_save_IFS
 
11547
 
 
11548
fi
 
11549
fi
 
11550
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
11551
if test -n "$ac_ct_CXX"; then
 
11552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
11553
$as_echo "$ac_ct_CXX" >&6; }
 
11554
else
 
11555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11556
$as_echo "no" >&6; }
 
11557
fi
 
11558
 
 
11559
 
 
11560
  test -n "$ac_ct_CXX" && break
 
11561
done
 
11562
 
 
11563
  if test "x$ac_ct_CXX" = x; then
 
11564
    CXX="g++"
 
11565
  else
 
11566
    case $cross_compiling:$ac_tool_warned in
 
11567
yes:)
 
11568
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11569
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11570
ac_tool_warned=yes ;;
 
11571
esac
 
11572
    CXX=$ac_ct_CXX
 
11573
  fi
 
11574
fi
 
11575
 
 
11576
  fi
 
11577
fi
 
11578
# Provide some information about the compiler.
 
11579
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
11580
set X $ac_compile
 
11581
ac_compiler=$2
 
11582
for ac_option in --version -v -V -qversion; do
 
11583
  { { ac_try="$ac_compiler $ac_option >&5"
 
11584
case "(($ac_try" in
 
11585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11586
  *) ac_try_echo=$ac_try;;
 
11587
esac
 
11588
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11589
$as_echo "$ac_try_echo"; } >&5
 
11590
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11591
  ac_status=$?
 
11592
  if test -s conftest.err; then
 
11593
    sed '10a\
 
11594
... rest of stderr output deleted ...
 
11595
         10q' conftest.err >conftest.er1
 
11596
    cat conftest.er1 >&5
 
11597
  fi
 
11598
  rm -f conftest.er1 conftest.err
 
11599
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11600
  test $ac_status = 0; }
 
11601
done
 
11602
 
 
11603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
11604
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
11605
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
11606
  $as_echo_n "(cached) " >&6
 
11607
else
 
11608
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11609
/* end confdefs.h.  */
 
11610
 
 
11611
int
 
11612
main ()
 
11613
{
 
11614
#ifndef __GNUC__
 
11615
       choke me
 
11616
#endif
 
11617
 
 
11618
  ;
 
11619
  return 0;
 
11620
}
 
11621
_ACEOF
 
11622
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11623
  ac_compiler_gnu=yes
 
11624
else
 
11625
  ac_compiler_gnu=no
 
11626
fi
 
11627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11628
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
11629
 
 
11630
fi
 
11631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
11632
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
11633
if test $ac_compiler_gnu = yes; then
 
11634
  GXX=yes
 
11635
else
 
11636
  GXX=
 
11637
fi
 
11638
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
11639
ac_save_CXXFLAGS=$CXXFLAGS
 
11640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
11641
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
11642
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
11643
  $as_echo_n "(cached) " >&6
 
11644
else
 
11645
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
11646
   ac_cxx_werror_flag=yes
 
11647
   ac_cv_prog_cxx_g=no
 
11648
   CXXFLAGS="-g"
 
11649
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11650
/* end confdefs.h.  */
 
11651
 
 
11652
int
 
11653
main ()
 
11654
{
 
11655
 
 
11656
  ;
 
11657
  return 0;
 
11658
}
 
11659
_ACEOF
 
11660
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11661
  ac_cv_prog_cxx_g=yes
 
11662
else
 
11663
  CXXFLAGS=""
 
11664
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11665
/* end confdefs.h.  */
 
11666
 
 
11667
int
 
11668
main ()
 
11669
{
 
11670
 
 
11671
  ;
 
11672
  return 0;
 
11673
}
 
11674
_ACEOF
 
11675
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11676
 
 
11677
else
 
11678
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11679
         CXXFLAGS="-g"
 
11680
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11681
/* end confdefs.h.  */
 
11682
 
 
11683
int
 
11684
main ()
 
11685
{
 
11686
 
 
11687
  ;
 
11688
  return 0;
 
11689
}
 
11690
_ACEOF
 
11691
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11692
  ac_cv_prog_cxx_g=yes
 
11693
fi
 
11694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11695
fi
 
11696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11697
fi
 
11698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11699
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11700
fi
 
11701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
11702
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
11703
if test "$ac_test_CXXFLAGS" = set; then
 
11704
  CXXFLAGS=$ac_save_CXXFLAGS
 
11705
elif test $ac_cv_prog_cxx_g = yes; then
 
11706
  if test "$GXX" = yes; then
 
11707
    CXXFLAGS="-g -O2"
 
11708
  else
 
11709
    CXXFLAGS="-g"
 
11710
  fi
 
11711
else
 
11712
  if test "$GXX" = yes; then
 
11713
    CXXFLAGS="-O2"
 
11714
  else
 
11715
    CXXFLAGS=
 
11716
  fi
 
11717
fi
 
11718
ac_ext=c
 
11719
ac_cpp='$CPP $CPPFLAGS'
 
11720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11723
 
 
11724
depcc="$CXX"  am_compiler_list=
 
11725
 
 
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
11727
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
11728
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
11729
  $as_echo_n "(cached) " >&6
 
11730
else
 
11731
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
11732
  # We make a subdir and do the tests there.  Otherwise we can end up
 
11733
  # making bogus files that we don't know about and never remove.  For
 
11734
  # instance it was reported that on HP-UX the gcc test will end up
 
11735
  # making a dummy file named `D' -- because `-MD' means `put the output
 
11736
  # in D'.
 
11737
  mkdir conftest.dir
 
11738
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
11739
  # using a relative directory.
 
11740
  cp "$am_depcomp" conftest.dir
 
11741
  cd conftest.dir
 
11742
  # We will build objects and dependencies in a subdirectory because
 
11743
  # it helps to detect inapplicable dependency modes.  For instance
 
11744
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
11745
  # side effect of compilation, but ICC will put the dependencies in
 
11746
  # the current directory while Tru64 will put them in the object
 
11747
  # directory.
 
11748
  mkdir sub
 
11749
 
 
11750
  am_cv_CXX_dependencies_compiler_type=none
 
11751
  if test "$am_compiler_list" = ""; then
 
11752
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
11753
  fi
 
11754
  am__universal=false
 
11755
  case " $depcc " in #(
 
11756
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
11757
     esac
 
11758
 
 
11759
  for depmode in $am_compiler_list; do
 
11760
    # Setup a source with many dependencies, because some compilers
 
11761
    # like to wrap large dependency lists on column 80 (with \), and
 
11762
    # we should not choose a depcomp mode which is confused by this.
 
11763
    #
 
11764
    # We need to recreate these files for each test, as the compiler may
 
11765
    # overwrite some of them when testing with obscure command lines.
 
11766
    # This happens at least with the AIX C compiler.
 
11767
    : > sub/conftest.c
 
11768
    for i in 1 2 3 4 5 6; do
 
11769
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
11770
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
11771
      # Solaris 8's {/usr,}/bin/sh.
 
11772
      touch sub/conftst$i.h
 
11773
    done
 
11774
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
11775
 
 
11776
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
11777
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
11778
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
11779
    # versions had trouble with output in subdirs
 
11780
    am__obj=sub/conftest.${OBJEXT-o}
 
11781
    am__minus_obj="-o $am__obj"
 
11782
    case $depmode in
 
11783
    gcc)
 
11784
      # This depmode causes a compiler race in universal mode.
 
11785
      test "$am__universal" = false || continue
 
11786
      ;;
 
11787
    nosideeffect)
 
11788
      # after this tag, mechanisms are not by side-effect, so they'll
 
11789
      # only be used when explicitly requested
 
11790
      if test "x$enable_dependency_tracking" = xyes; then
 
11791
        continue
 
11792
      else
 
11793
        break
 
11794
      fi
 
11795
      ;;
 
11796
    msvisualcpp | msvcmsys)
 
11797
      # This compiler won't grok `-c -o', but also, the minuso test has
 
11798
      # not run yet.  These depmodes are late enough in the game, and
 
11799
      # so weak that their functioning should not be impacted.
 
11800
      am__obj=conftest.${OBJEXT-o}
 
11801
      am__minus_obj=
 
11802
      ;;
 
11803
    none) break ;;
 
11804
    esac
 
11805
    if depmode=$depmode \
 
11806
       source=sub/conftest.c object=$am__obj \
 
11807
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
11808
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
11809
         >/dev/null 2>conftest.err &&
 
11810
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
11811
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
11812
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
11813
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
11814
      # icc doesn't choke on unknown options, it will just issue warnings
 
11815
      # or remarks (even with -Werror).  So we grep stderr for any message
 
11816
      # that says an option was ignored or not supported.
 
11817
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
11818
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
11819
      # The diagnosis changed in icc 8.0:
 
11820
      #   icc: Command line remark: option '-MP' not supported
 
11821
      if (grep 'ignoring option' conftest.err ||
 
11822
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
11823
        am_cv_CXX_dependencies_compiler_type=$depmode
 
11824
        break
 
11825
      fi
 
11826
    fi
 
11827
  done
 
11828
 
 
11829
  cd ..
 
11830
  rm -rf conftest.dir
 
11831
else
 
11832
  am_cv_CXX_dependencies_compiler_type=none
 
11833
fi
 
11834
 
 
11835
fi
 
11836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
11837
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
11838
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
11839
 
 
11840
 if
 
11841
  test "x$enable_dependency_tracking" != xno \
 
11842
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
11843
  am__fastdepCXX_TRUE=
 
11844
  am__fastdepCXX_FALSE='#'
 
11845
else
 
11846
  am__fastdepCXX_TRUE='#'
 
11847
  am__fastdepCXX_FALSE=
 
11848
fi
 
11849
 
 
11850
 
 
11851
 
 
11852
ac_ext=cpp
 
11853
ac_cpp='$CXXCPP $CPPFLAGS'
 
11854
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11855
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11856
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11857
if test -z "$CXX"; then
 
11858
  if test -n "$CCC"; then
 
11859
    CXX=$CCC
 
11860
  else
 
11861
    if test -n "$ac_tool_prefix"; then
 
11862
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11863
  do
 
11864
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11867
$as_echo_n "checking for $ac_word... " >&6; }
 
11868
if test "${ac_cv_prog_CXX+set}" = set; then :
 
11869
  $as_echo_n "(cached) " >&6
 
11870
else
 
11871
  if test -n "$CXX"; then
 
11872
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
11873
else
 
11874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11875
for as_dir in $PATH
 
11876
do
 
11877
  IFS=$as_save_IFS
 
11878
  test -z "$as_dir" && as_dir=.
 
11879
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11881
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
11882
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11883
    break 2
 
11884
  fi
 
11885
done
 
11886
  done
 
11887
IFS=$as_save_IFS
 
11888
 
 
11889
fi
 
11890
fi
 
11891
CXX=$ac_cv_prog_CXX
 
11892
if test -n "$CXX"; then
 
11893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
11894
$as_echo "$CXX" >&6; }
 
11895
else
 
11896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11897
$as_echo "no" >&6; }
 
11898
fi
 
11899
 
 
11900
 
 
11901
    test -n "$CXX" && break
 
11902
  done
 
11903
fi
 
11904
if test -z "$CXX"; then
 
11905
  ac_ct_CXX=$CXX
 
11906
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11907
do
 
11908
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11909
set dummy $ac_prog; ac_word=$2
 
11910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11911
$as_echo_n "checking for $ac_word... " >&6; }
 
11912
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
11913
  $as_echo_n "(cached) " >&6
 
11914
else
 
11915
  if test -n "$ac_ct_CXX"; then
 
11916
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
11917
else
 
11918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11919
for as_dir in $PATH
 
11920
do
 
11921
  IFS=$as_save_IFS
 
11922
  test -z "$as_dir" && as_dir=.
 
11923
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11924
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11925
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
11926
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11927
    break 2
 
11928
  fi
 
11929
done
 
11930
  done
 
11931
IFS=$as_save_IFS
 
11932
 
 
11933
fi
 
11934
fi
 
11935
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
11936
if test -n "$ac_ct_CXX"; then
 
11937
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
11938
$as_echo "$ac_ct_CXX" >&6; }
 
11939
else
 
11940
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11941
$as_echo "no" >&6; }
 
11942
fi
 
11943
 
 
11944
 
 
11945
  test -n "$ac_ct_CXX" && break
 
11946
done
 
11947
 
 
11948
  if test "x$ac_ct_CXX" = x; then
 
11949
    CXX="g++"
 
11950
  else
 
11951
    case $cross_compiling:$ac_tool_warned in
 
11952
yes:)
 
11953
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11955
ac_tool_warned=yes ;;
 
11956
esac
 
11957
    CXX=$ac_ct_CXX
 
11958
  fi
 
11959
fi
 
11960
 
 
11961
  fi
 
11962
fi
 
11963
# Provide some information about the compiler.
 
11964
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
11965
set X $ac_compile
 
11966
ac_compiler=$2
 
11967
for ac_option in --version -v -V -qversion; do
 
11968
  { { ac_try="$ac_compiler $ac_option >&5"
 
11969
case "(($ac_try" in
 
11970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11971
  *) ac_try_echo=$ac_try;;
 
11972
esac
 
11973
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11974
$as_echo "$ac_try_echo"; } >&5
 
11975
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11976
  ac_status=$?
 
11977
  if test -s conftest.err; then
 
11978
    sed '10a\
 
11979
... rest of stderr output deleted ...
 
11980
         10q' conftest.err >conftest.er1
 
11981
    cat conftest.er1 >&5
 
11982
  fi
 
11983
  rm -f conftest.er1 conftest.err
 
11984
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11985
  test $ac_status = 0; }
 
11986
done
 
11987
 
 
11988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
11989
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
11990
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
11991
  $as_echo_n "(cached) " >&6
 
11992
else
 
11993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11994
/* end confdefs.h.  */
 
11995
 
 
11996
int
 
11997
main ()
 
11998
{
 
11999
#ifndef __GNUC__
 
12000
       choke me
 
12001
#endif
 
12002
 
 
12003
  ;
 
12004
  return 0;
 
12005
}
 
12006
_ACEOF
 
12007
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12008
  ac_compiler_gnu=yes
 
12009
else
 
12010
  ac_compiler_gnu=no
 
12011
fi
 
12012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12013
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
12014
 
 
12015
fi
 
12016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
12017
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
12018
if test $ac_compiler_gnu = yes; then
 
12019
  GXX=yes
 
12020
else
 
12021
  GXX=
 
12022
fi
 
12023
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
12024
ac_save_CXXFLAGS=$CXXFLAGS
 
12025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
12026
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
12027
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
12028
  $as_echo_n "(cached) " >&6
 
12029
else
 
12030
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
12031
   ac_cxx_werror_flag=yes
 
12032
   ac_cv_prog_cxx_g=no
 
12033
   CXXFLAGS="-g"
 
12034
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12035
/* end confdefs.h.  */
 
12036
 
 
12037
int
 
12038
main ()
 
12039
{
 
12040
 
 
12041
  ;
 
12042
  return 0;
 
12043
}
 
12044
_ACEOF
 
12045
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12046
  ac_cv_prog_cxx_g=yes
 
12047
else
 
12048
  CXXFLAGS=""
 
12049
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12050
/* end confdefs.h.  */
 
12051
 
 
12052
int
 
12053
main ()
 
12054
{
 
12055
 
 
12056
  ;
 
12057
  return 0;
 
12058
}
 
12059
_ACEOF
 
12060
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12061
 
 
12062
else
 
12063
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12064
         CXXFLAGS="-g"
 
12065
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12066
/* end confdefs.h.  */
 
12067
 
 
12068
int
 
12069
main ()
 
12070
{
 
12071
 
 
12072
  ;
 
12073
  return 0;
 
12074
}
 
12075
_ACEOF
 
12076
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12077
  ac_cv_prog_cxx_g=yes
 
12078
fi
 
12079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12080
fi
 
12081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12082
fi
 
12083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12084
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12085
fi
 
12086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
12087
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
12088
if test "$ac_test_CXXFLAGS" = set; then
 
12089
  CXXFLAGS=$ac_save_CXXFLAGS
 
12090
elif test $ac_cv_prog_cxx_g = yes; then
 
12091
  if test "$GXX" = yes; then
 
12092
    CXXFLAGS="-g -O2"
 
12093
  else
 
12094
    CXXFLAGS="-g"
 
12095
  fi
 
12096
else
 
12097
  if test "$GXX" = yes; then
 
12098
    CXXFLAGS="-O2"
 
12099
  else
 
12100
    CXXFLAGS=
 
12101
  fi
 
12102
fi
 
12103
ac_ext=c
 
12104
ac_cpp='$CPP $CPPFLAGS'
 
12105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12108
 
 
12109
depcc="$CXX"  am_compiler_list=
 
12110
 
 
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
12112
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
12113
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
12114
  $as_echo_n "(cached) " >&6
 
12115
else
 
12116
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
12117
  # We make a subdir and do the tests there.  Otherwise we can end up
 
12118
  # making bogus files that we don't know about and never remove.  For
 
12119
  # instance it was reported that on HP-UX the gcc test will end up
 
12120
  # making a dummy file named `D' -- because `-MD' means `put the output
 
12121
  # in D'.
 
12122
  mkdir conftest.dir
 
12123
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
12124
  # using a relative directory.
 
12125
  cp "$am_depcomp" conftest.dir
 
12126
  cd conftest.dir
 
12127
  # We will build objects and dependencies in a subdirectory because
 
12128
  # it helps to detect inapplicable dependency modes.  For instance
 
12129
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
12130
  # side effect of compilation, but ICC will put the dependencies in
 
12131
  # the current directory while Tru64 will put them in the object
 
12132
  # directory.
 
12133
  mkdir sub
 
12134
 
 
12135
  am_cv_CXX_dependencies_compiler_type=none
 
12136
  if test "$am_compiler_list" = ""; then
 
12137
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
12138
  fi
 
12139
  am__universal=false
 
12140
  case " $depcc " in #(
 
12141
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12142
     esac
 
12143
 
 
12144
  for depmode in $am_compiler_list; do
 
12145
    # Setup a source with many dependencies, because some compilers
 
12146
    # like to wrap large dependency lists on column 80 (with \), and
 
12147
    # we should not choose a depcomp mode which is confused by this.
 
12148
    #
 
12149
    # We need to recreate these files for each test, as the compiler may
 
12150
    # overwrite some of them when testing with obscure command lines.
 
12151
    # This happens at least with the AIX C compiler.
 
12152
    : > sub/conftest.c
 
12153
    for i in 1 2 3 4 5 6; do
 
12154
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
12155
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
12156
      # Solaris 8's {/usr,}/bin/sh.
 
12157
      touch sub/conftst$i.h
 
12158
    done
 
12159
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12160
 
 
12161
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12162
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12163
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12164
    # versions had trouble with output in subdirs
 
12165
    am__obj=sub/conftest.${OBJEXT-o}
 
12166
    am__minus_obj="-o $am__obj"
 
12167
    case $depmode in
 
12168
    gcc)
 
12169
      # This depmode causes a compiler race in universal mode.
 
12170
      test "$am__universal" = false || continue
 
12171
      ;;
 
12172
    nosideeffect)
 
12173
      # after this tag, mechanisms are not by side-effect, so they'll
 
12174
      # only be used when explicitly requested
 
12175
      if test "x$enable_dependency_tracking" = xyes; then
 
12176
        continue
 
12177
      else
 
12178
        break
 
12179
      fi
 
12180
      ;;
 
12181
    msvisualcpp | msvcmsys)
 
12182
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12183
      # not run yet.  These depmodes are late enough in the game, and
 
12184
      # so weak that their functioning should not be impacted.
 
12185
      am__obj=conftest.${OBJEXT-o}
 
12186
      am__minus_obj=
 
12187
      ;;
 
12188
    none) break ;;
 
12189
    esac
 
12190
    if depmode=$depmode \
 
12191
       source=sub/conftest.c object=$am__obj \
 
12192
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12193
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12194
         >/dev/null 2>conftest.err &&
 
12195
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12196
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12197
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12198
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12199
      # icc doesn't choke on unknown options, it will just issue warnings
 
12200
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12201
      # that says an option was ignored or not supported.
 
12202
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12203
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12204
      # The diagnosis changed in icc 8.0:
 
12205
      #   icc: Command line remark: option '-MP' not supported
 
12206
      if (grep 'ignoring option' conftest.err ||
 
12207
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12208
        am_cv_CXX_dependencies_compiler_type=$depmode
 
12209
        break
 
12210
      fi
 
12211
    fi
 
12212
  done
 
12213
 
 
12214
  cd ..
 
12215
  rm -rf conftest.dir
 
12216
else
 
12217
  am_cv_CXX_dependencies_compiler_type=none
 
12218
fi
 
12219
 
 
12220
fi
 
12221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
12222
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
12223
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
12224
 
 
12225
 if
 
12226
  test "x$enable_dependency_tracking" != xno \
 
12227
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
12228
  am__fastdepCXX_TRUE=
 
12229
  am__fastdepCXX_FALSE='#'
 
12230
else
 
12231
  am__fastdepCXX_TRUE='#'
 
12232
  am__fastdepCXX_FALSE=
 
12233
fi
 
12234
 
 
12235
 
 
12236
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12237
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12238
    (test "X$CXX" != "Xg++"))) ; then
 
12239
  ac_ext=cpp
 
12240
ac_cpp='$CXXCPP $CPPFLAGS'
 
12241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12245
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12246
if test -z "$CXXCPP"; then
 
12247
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
12248
  $as_echo_n "(cached) " >&6
 
12249
else
 
12250
      # Double quotes because CXXCPP needs to be expanded
 
12251
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12252
    do
 
12253
      ac_preproc_ok=false
 
12254
for ac_cxx_preproc_warn_flag in '' yes
 
12255
do
 
12256
  # Use a header file that comes with gcc, so configuring glibc
 
12257
  # with a fresh cross-compiler works.
 
12258
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12259
  # <limits.h> exists even on freestanding compilers.
 
12260
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12261
  # not just through cpp. "Syntax error" is here to catch this case.
 
12262
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12263
/* end confdefs.h.  */
 
12264
#ifdef __STDC__
 
12265
# include <limits.h>
 
12266
#else
 
12267
# include <assert.h>
 
12268
#endif
 
12269
                     Syntax error
 
12270
_ACEOF
 
12271
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12272
 
 
12273
else
 
12274
  # Broken: fails on valid input.
 
12275
continue
 
12276
fi
 
12277
rm -f conftest.err conftest.$ac_ext
 
12278
 
 
12279
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12280
  # can be detected and how.
 
12281
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12282
/* end confdefs.h.  */
 
12283
#include <ac_nonexistent.h>
 
12284
_ACEOF
 
12285
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12286
  # Broken: success on invalid input.
 
12287
continue
 
12288
else
 
12289
  # Passes both tests.
 
12290
ac_preproc_ok=:
 
12291
break
 
12292
fi
 
12293
rm -f conftest.err conftest.$ac_ext
 
12294
 
 
12295
done
 
12296
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12297
rm -f conftest.err conftest.$ac_ext
 
12298
if $ac_preproc_ok; then :
 
12299
  break
 
12300
fi
 
12301
 
 
12302
    done
 
12303
    ac_cv_prog_CXXCPP=$CXXCPP
 
12304
 
 
12305
fi
 
12306
  CXXCPP=$ac_cv_prog_CXXCPP
 
12307
else
 
12308
  ac_cv_prog_CXXCPP=$CXXCPP
 
12309
fi
 
12310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12311
$as_echo "$CXXCPP" >&6; }
 
12312
ac_preproc_ok=false
 
12313
for ac_cxx_preproc_warn_flag in '' yes
 
12314
do
 
12315
  # Use a header file that comes with gcc, so configuring glibc
 
12316
  # with a fresh cross-compiler works.
 
12317
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12318
  # <limits.h> exists even on freestanding compilers.
 
12319
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12320
  # not just through cpp. "Syntax error" is here to catch this case.
 
12321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12322
/* end confdefs.h.  */
 
12323
#ifdef __STDC__
 
12324
# include <limits.h>
 
12325
#else
 
12326
# include <assert.h>
 
12327
#endif
 
12328
                     Syntax error
 
12329
_ACEOF
 
12330
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12331
 
 
12332
else
 
12333
  # Broken: fails on valid input.
 
12334
continue
 
12335
fi
 
12336
rm -f conftest.err conftest.$ac_ext
 
12337
 
 
12338
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12339
  # can be detected and how.
 
12340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12341
/* end confdefs.h.  */
 
12342
#include <ac_nonexistent.h>
 
12343
_ACEOF
 
12344
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12345
  # Broken: success on invalid input.
 
12346
continue
 
12347
else
 
12348
  # Passes both tests.
 
12349
ac_preproc_ok=:
 
12350
break
 
12351
fi
 
12352
rm -f conftest.err conftest.$ac_ext
 
12353
 
 
12354
done
 
12355
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12356
rm -f conftest.err conftest.$ac_ext
 
12357
if $ac_preproc_ok; then :
 
12358
 
 
12359
else
 
12360
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12361
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12362
_lt_caught_CXX_error=yes; }
 
12363
fi
 
12364
 
 
12365
ac_ext=c
 
12366
ac_cpp='$CPP $CPPFLAGS'
 
12367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12370
 
 
12371
else
 
12372
  _lt_caught_CXX_error=yes
 
12373
fi
 
12374
 
 
12375
 
 
12376
 
 
12377
 
 
12378
ac_ext=cpp
 
12379
ac_cpp='$CXXCPP $CPPFLAGS'
 
12380
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12381
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12382
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12383
 
 
12384
archive_cmds_need_lc_CXX=no
 
12385
allow_undefined_flag_CXX=
 
12386
always_export_symbols_CXX=no
 
12387
archive_expsym_cmds_CXX=
 
12388
compiler_needs_object_CXX=no
 
12389
export_dynamic_flag_spec_CXX=
 
12390
hardcode_direct_CXX=no
 
12391
hardcode_direct_absolute_CXX=no
 
12392
hardcode_libdir_flag_spec_CXX=
 
12393
hardcode_libdir_flag_spec_ld_CXX=
 
12394
hardcode_libdir_separator_CXX=
 
12395
hardcode_minus_L_CXX=no
 
12396
hardcode_shlibpath_var_CXX=unsupported
 
12397
hardcode_automatic_CXX=no
 
12398
inherit_rpath_CXX=no
 
12399
module_cmds_CXX=
 
12400
module_expsym_cmds_CXX=
 
12401
link_all_deplibs_CXX=unknown
 
12402
old_archive_cmds_CXX=$old_archive_cmds
 
12403
no_undefined_flag_CXX=
 
12404
whole_archive_flag_spec_CXX=
 
12405
enable_shared_with_static_runtimes_CXX=no
 
12406
 
 
12407
# Source file extension for C++ test sources.
 
12408
ac_ext=cpp
 
12409
 
 
12410
# Object file extension for compiled C++ test sources.
 
12411
objext=o
 
12412
objext_CXX=$objext
 
12413
 
 
12414
# No sense in running all these tests if we already determined that
 
12415
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12416
# are currently assumed to apply to all compilers on this platform,
 
12417
# and will be corrupted by setting them based on a non-working compiler.
 
12418
if test "$_lt_caught_CXX_error" != yes; then
 
12419
  # Code to be used in simple compile tests
 
12420
  lt_simple_compile_test_code="int some_variable = 0;"
 
12421
 
 
12422
  # Code to be used in simple link tests
 
12423
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12424
 
 
12425
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12426
 
 
12427
 
 
12428
 
 
12429
 
 
12430
 
 
12431
 
 
12432
# If no C compiler was specified, use CC.
 
12433
LTCC=${LTCC-"$CC"}
 
12434
 
 
12435
# If no C compiler flags were specified, use CFLAGS.
 
12436
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12437
 
 
12438
# Allow CC to be a program name with arguments.
 
12439
compiler=$CC
 
12440
 
 
12441
 
 
12442
  # save warnings/boilerplate of simple test code
 
12443
  ac_outfile=conftest.$ac_objext
 
12444
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12445
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12446
_lt_compiler_boilerplate=`cat conftest.err`
 
12447
$RM conftest*
 
12448
 
 
12449
  ac_outfile=conftest.$ac_objext
 
12450
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12451
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12452
_lt_linker_boilerplate=`cat conftest.err`
 
12453
$RM -r conftest*
 
12454
 
 
12455
 
 
12456
  # Allow CC to be a program name with arguments.
 
12457
  lt_save_CC=$CC
 
12458
  lt_save_LD=$LD
 
12459
  lt_save_GCC=$GCC
 
12460
  GCC=$GXX
 
12461
  lt_save_with_gnu_ld=$with_gnu_ld
 
12462
  lt_save_path_LD=$lt_cv_path_LD
 
12463
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12464
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12465
  else
 
12466
    $as_unset lt_cv_prog_gnu_ld
 
12467
  fi
 
12468
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12469
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12470
  else
 
12471
    $as_unset lt_cv_path_LD
 
12472
  fi
 
12473
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12474
  CC=${CXX-"c++"}
 
12475
  compiler=$CC
 
12476
  compiler_CXX=$CC
 
12477
  for cc_temp in $compiler""; do
 
12478
  case $cc_temp in
 
12479
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12480
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12481
    \-*) ;;
 
12482
    *) break;;
 
12483
  esac
 
12484
done
 
12485
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12486
 
 
12487
 
 
12488
  if test -n "$compiler"; then
 
12489
    # We don't want -fno-exception when compiling C++ code, so set the
 
12490
    # no_builtin_flag separately
 
12491
    if test "$GXX" = yes; then
 
12492
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12493
    else
 
12494
      lt_prog_compiler_no_builtin_flag_CXX=
 
12495
    fi
 
12496
 
 
12497
    if test "$GXX" = yes; then
 
12498
      # Set up default GNU C++ configuration
 
12499
 
 
12500
 
 
12501
 
 
12502
# Check whether --with-gnu-ld was given.
 
12503
if test "${with_gnu_ld+set}" = set; then :
 
12504
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12505
else
 
12506
  with_gnu_ld=no
 
12507
fi
 
12508
 
 
12509
ac_prog=ld
 
12510
if test "$GCC" = yes; then
 
12511
  # Check if gcc -print-prog-name=ld gives a path.
 
12512
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12513
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12514
  case $host in
 
12515
  *-*-mingw*)
 
12516
    # gcc leaves a trailing carriage return which upsets mingw
 
12517
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12518
  *)
 
12519
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12520
  esac
 
12521
  case $ac_prog in
 
12522
    # Accept absolute paths.
 
12523
    [\\/]* | ?:[\\/]*)
 
12524
      re_direlt='/[^/][^/]*/\.\./'
 
12525
      # Canonicalize the pathname of ld
 
12526
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12527
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12528
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12529
      done
 
12530
      test -z "$LD" && LD="$ac_prog"
 
12531
      ;;
 
12532
  "")
 
12533
    # If it fails, then pretend we aren't using GCC.
 
12534
    ac_prog=ld
 
12535
    ;;
 
12536
  *)
 
12537
    # If it is relative, then search for the first ld in PATH.
 
12538
    with_gnu_ld=unknown
 
12539
    ;;
 
12540
  esac
 
12541
elif test "$with_gnu_ld" = yes; then
 
12542
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12543
$as_echo_n "checking for GNU ld... " >&6; }
 
12544
else
 
12545
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12546
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12547
fi
 
12548
if test "${lt_cv_path_LD+set}" = set; then :
 
12549
  $as_echo_n "(cached) " >&6
 
12550
else
 
12551
  if test -z "$LD"; then
 
12552
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12553
  for ac_dir in $PATH; do
 
12554
    IFS="$lt_save_ifs"
 
12555
    test -z "$ac_dir" && ac_dir=.
 
12556
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12557
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12558
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12559
      # but apparently some variants of GNU ld only accept -v.
 
12560
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12561
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12562
      *GNU* | *'with BFD'*)
 
12563
        test "$with_gnu_ld" != no && break
 
12564
        ;;
 
12565
      *)
 
12566
        test "$with_gnu_ld" != yes && break
 
12567
        ;;
 
12568
      esac
 
12569
    fi
 
12570
  done
 
12571
  IFS="$lt_save_ifs"
 
12572
else
 
12573
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12574
fi
 
12575
fi
 
12576
 
 
12577
LD="$lt_cv_path_LD"
 
12578
if test -n "$LD"; then
 
12579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12580
$as_echo "$LD" >&6; }
 
12581
else
 
12582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12583
$as_echo "no" >&6; }
 
12584
fi
 
12585
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
12586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12587
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12588
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
12589
  $as_echo_n "(cached) " >&6
 
12590
else
 
12591
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12592
case `$LD -v 2>&1 </dev/null` in
 
12593
*GNU* | *'with BFD'*)
 
12594
  lt_cv_prog_gnu_ld=yes
 
12595
  ;;
 
12596
*)
 
12597
  lt_cv_prog_gnu_ld=no
 
12598
  ;;
 
12599
esac
 
12600
fi
 
12601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12602
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12603
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12604
 
 
12605
 
 
12606
 
 
12607
 
 
12608
 
 
12609
 
 
12610
 
 
12611
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12612
      # archiving commands below assume that GNU ld is being used.
 
12613
      if test "$with_gnu_ld" = yes; then
 
12614
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12615
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12616
 
 
12617
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12618
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12619
 
 
12620
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12621
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12622
        #     investigate it a little bit more. (MM)
 
12623
        wlarc='${wl}'
 
12624
 
 
12625
        # ancient GNU ld didn't support --whole-archive et. al.
 
12626
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12627
          $GREP 'no-whole-archive' > /dev/null; then
 
12628
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12629
        else
 
12630
          whole_archive_flag_spec_CXX=
 
12631
        fi
 
12632
      else
 
12633
        with_gnu_ld=no
 
12634
        wlarc=
 
12635
 
 
12636
        # A generic and very simple default shared library creation
 
12637
        # command for GNU C++ for the case where it uses the native
 
12638
        # linker, instead of GNU ld.  If possible, this setting should
 
12639
        # overridden to take advantage of the native linker features on
 
12640
        # the platform it is being used on.
 
12641
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12642
      fi
 
12643
 
 
12644
      # Commands to make compiler produce verbose output that lists
 
12645
      # what "hidden" libraries, object files and flags are used when
 
12646
      # linking a shared library.
 
12647
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12648
 
 
12649
    else
 
12650
      GXX=no
 
12651
      with_gnu_ld=no
 
12652
      wlarc=
 
12653
    fi
 
12654
 
 
12655
    # PORTME: fill in a description of your system's C++ link characteristics
 
12656
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12657
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12658
    ld_shlibs_CXX=yes
 
12659
    case $host_os in
 
12660
      aix3*)
 
12661
        # FIXME: insert proper C++ library support
 
12662
        ld_shlibs_CXX=no
 
12663
        ;;
 
12664
      aix[4-9]*)
 
12665
        if test "$host_cpu" = ia64; then
 
12666
          # On IA64, the linker does run time linking by default, so we don't
 
12667
          # have to do anything special.
 
12668
          aix_use_runtimelinking=no
 
12669
          exp_sym_flag='-Bexport'
 
12670
          no_entry_flag=""
 
12671
        else
 
12672
          aix_use_runtimelinking=no
 
12673
 
 
12674
          # Test if we are trying to use run time linking or normal
 
12675
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12676
          # need to do runtime linking.
 
12677
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12678
            for ld_flag in $LDFLAGS; do
 
12679
              case $ld_flag in
 
12680
              *-brtl*)
 
12681
                aix_use_runtimelinking=yes
 
12682
                break
 
12683
                ;;
 
12684
              esac
 
12685
            done
 
12686
            ;;
 
12687
          esac
 
12688
 
 
12689
          exp_sym_flag='-bexport'
 
12690
          no_entry_flag='-bnoentry'
 
12691
        fi
 
12692
 
 
12693
        # When large executables or shared objects are built, AIX ld can
 
12694
        # have problems creating the table of contents.  If linking a library
 
12695
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12696
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12697
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12698
 
 
12699
        archive_cmds_CXX=''
 
12700
        hardcode_direct_CXX=yes
 
12701
        hardcode_direct_absolute_CXX=yes
 
12702
        hardcode_libdir_separator_CXX=':'
 
12703
        link_all_deplibs_CXX=yes
 
12704
        file_list_spec_CXX='${wl}-f,'
 
12705
 
 
12706
        if test "$GXX" = yes; then
 
12707
          case $host_os in aix4.[012]|aix4.[012].*)
 
12708
          # We only want to do this on AIX 4.2 and lower, the check
 
12709
          # below for broken collect2 doesn't work under 4.3+
 
12710
          collect2name=`${CC} -print-prog-name=collect2`
 
12711
          if test -f "$collect2name" &&
 
12712
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12713
          then
 
12714
            # We have reworked collect2
 
12715
            :
 
12716
          else
 
12717
            # We have old collect2
 
12718
            hardcode_direct_CXX=unsupported
 
12719
            # It fails to find uninstalled libraries when the uninstalled
 
12720
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12721
            # to unsupported forces relinking
 
12722
            hardcode_minus_L_CXX=yes
 
12723
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12724
            hardcode_libdir_separator_CXX=
 
12725
          fi
 
12726
          esac
 
12727
          shared_flag='-shared'
 
12728
          if test "$aix_use_runtimelinking" = yes; then
 
12729
            shared_flag="$shared_flag "'${wl}-G'
 
12730
          fi
 
12731
        else
 
12732
          # not using gcc
 
12733
          if test "$host_cpu" = ia64; then
 
12734
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12735
          # chokes on -Wl,-G. The following line is correct:
 
12736
          shared_flag='-G'
 
12737
          else
 
12738
            if test "$aix_use_runtimelinking" = yes; then
 
12739
              shared_flag='${wl}-G'
 
12740
            else
 
12741
              shared_flag='${wl}-bM:SRE'
 
12742
            fi
 
12743
          fi
 
12744
        fi
 
12745
 
 
12746
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12747
        # It seems that -bexpall does not export symbols beginning with
 
12748
        # underscore (_), so it is better to generate a list of symbols to
 
12749
        # export.
 
12750
        always_export_symbols_CXX=yes
 
12751
        if test "$aix_use_runtimelinking" = yes; then
 
12752
          # Warning - without using the other runtime loading flags (-brtl),
 
12753
          # -berok will link without error, but may produce a broken library.
 
12754
          allow_undefined_flag_CXX='-berok'
 
12755
          # Determine the default libpath from the value encoded in an empty
 
12756
          # executable.
 
12757
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12758
/* end confdefs.h.  */
 
12759
 
 
12760
int
 
12761
main ()
 
12762
{
 
12763
 
 
12764
  ;
 
12765
  return 0;
 
12766
}
 
12767
_ACEOF
 
12768
if ac_fn_cxx_try_link "$LINENO"; then :
 
12769
 
 
12770
lt_aix_libpath_sed='
 
12771
    /Import File Strings/,/^$/ {
 
12772
        /^0/ {
 
12773
            s/^0  *\(.*\)$/\1/
 
12774
            p
 
12775
        }
 
12776
    }'
 
12777
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12778
# Check for a 64-bit object if we didn't find anything.
 
12779
if test -z "$aix_libpath"; then
 
12780
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12781
fi
 
12782
fi
 
12783
rm -f core conftest.err conftest.$ac_objext \
 
12784
    conftest$ac_exeext conftest.$ac_ext
 
12785
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12786
 
 
12787
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12788
 
 
12789
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12790
        else
 
12791
          if test "$host_cpu" = ia64; then
 
12792
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12793
            allow_undefined_flag_CXX="-z nodefs"
 
12794
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
12795
          else
 
12796
            # Determine the default libpath from the value encoded in an
 
12797
            # empty executable.
 
12798
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12799
/* end confdefs.h.  */
 
12800
 
 
12801
int
 
12802
main ()
 
12803
{
 
12804
 
 
12805
  ;
 
12806
  return 0;
 
12807
}
 
12808
_ACEOF
 
12809
if ac_fn_cxx_try_link "$LINENO"; then :
 
12810
 
 
12811
lt_aix_libpath_sed='
 
12812
    /Import File Strings/,/^$/ {
 
12813
        /^0/ {
 
12814
            s/^0  *\(.*\)$/\1/
 
12815
            p
 
12816
        }
 
12817
    }'
 
12818
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12819
# Check for a 64-bit object if we didn't find anything.
 
12820
if test -z "$aix_libpath"; then
 
12821
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12822
fi
 
12823
fi
 
12824
rm -f core conftest.err conftest.$ac_objext \
 
12825
    conftest$ac_exeext conftest.$ac_ext
 
12826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12827
 
 
12828
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12829
            # Warning - without using the other run time loading flags,
 
12830
            # -berok will link without error, but may produce a broken library.
 
12831
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12832
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12833
            # Exported symbols can be pulled into shared objects from archives
 
12834
            whole_archive_flag_spec_CXX='$convenience'
 
12835
            archive_cmds_need_lc_CXX=yes
 
12836
            # This is similar to how AIX traditionally builds its shared
 
12837
            # libraries.
 
12838
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12839
          fi
 
12840
        fi
 
12841
        ;;
 
12842
 
 
12843
      beos*)
 
12844
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12845
          allow_undefined_flag_CXX=unsupported
 
12846
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12847
          # support --undefined.  This deserves some investigation.  FIXME
 
12848
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12849
        else
 
12850
          ld_shlibs_CXX=no
 
12851
        fi
 
12852
        ;;
 
12853
 
 
12854
      chorus*)
 
12855
        case $cc_basename in
 
12856
          *)
 
12857
          # FIXME: insert proper C++ library support
 
12858
          ld_shlibs_CXX=no
 
12859
          ;;
 
12860
        esac
 
12861
        ;;
 
12862
 
 
12863
      cygwin* | mingw* | pw32* | cegcc*)
 
12864
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12865
        # as there is no search path for DLLs.
 
12866
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12867
        allow_undefined_flag_CXX=unsupported
 
12868
        always_export_symbols_CXX=no
 
12869
        enable_shared_with_static_runtimes_CXX=yes
 
12870
 
 
12871
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12872
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12873
          # If the export-symbols file already is a .def file (1st line
 
12874
          # is EXPORTS), use it as is; otherwise, prepend...
 
12875
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12876
            cp $export_symbols $output_objdir/$soname.def;
 
12877
          else
 
12878
            echo EXPORTS > $output_objdir/$soname.def;
 
12879
            cat $export_symbols >> $output_objdir/$soname.def;
 
12880
          fi~
 
12881
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12882
        else
 
12883
          ld_shlibs_CXX=no
 
12884
        fi
 
12885
        ;;
 
12886
      darwin* | rhapsody*)
 
12887
 
 
12888
 
 
12889
  archive_cmds_need_lc_CXX=no
 
12890
  hardcode_direct_CXX=no
 
12891
  hardcode_automatic_CXX=yes
 
12892
  hardcode_shlibpath_var_CXX=unsupported
 
12893
  whole_archive_flag_spec_CXX=''
 
12894
  link_all_deplibs_CXX=yes
 
12895
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12896
  case $cc_basename in
 
12897
     ifort*) _lt_dar_can_shared=yes ;;
 
12898
     *) _lt_dar_can_shared=$GCC ;;
 
12899
  esac
 
12900
  if test "$_lt_dar_can_shared" = "yes"; then
 
12901
    output_verbose_link_cmd=echo
 
12902
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12903
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12904
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
12905
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
12906
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12907
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
12908
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
12909
    fi
 
12910
 
 
12911
  else
 
12912
  ld_shlibs_CXX=no
 
12913
  fi
 
12914
 
 
12915
        ;;
 
12916
 
 
12917
      dgux*)
 
12918
        case $cc_basename in
 
12919
          ec++*)
 
12920
            # FIXME: insert proper C++ library support
 
12921
            ld_shlibs_CXX=no
 
12922
            ;;
 
12923
          ghcx*)
 
12924
            # Green Hills C++ Compiler
 
12925
            # FIXME: insert proper C++ library support
 
12926
            ld_shlibs_CXX=no
 
12927
            ;;
 
12928
          *)
 
12929
            # FIXME: insert proper C++ library support
 
12930
            ld_shlibs_CXX=no
 
12931
            ;;
 
12932
        esac
 
12933
        ;;
 
12934
 
 
12935
      freebsd[12]*)
 
12936
        # C++ shared libraries reported to be fairly broken before
 
12937
        # switch to ELF
 
12938
        ld_shlibs_CXX=no
 
12939
        ;;
 
12940
 
 
12941
      freebsd-elf*)
 
12942
        archive_cmds_need_lc_CXX=no
 
12943
        ;;
 
12944
 
 
12945
      freebsd* | dragonfly*)
 
12946
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12947
        # conventions
 
12948
        ld_shlibs_CXX=yes
 
12949
        ;;
 
12950
 
 
12951
      gnu*)
 
12952
        ;;
 
12953
 
 
12954
      hpux9*)
 
12955
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12956
        hardcode_libdir_separator_CXX=:
 
12957
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12958
        hardcode_direct_CXX=yes
 
12959
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12960
                                             # but as the default
 
12961
                                             # location of the library.
 
12962
 
 
12963
        case $cc_basename in
 
12964
          CC*)
 
12965
            # FIXME: insert proper C++ library support
 
12966
            ld_shlibs_CXX=no
 
12967
            ;;
 
12968
          aCC*)
 
12969
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12970
            # Commands to make compiler produce verbose output that lists
 
12971
            # what "hidden" libraries, object files and flags are used when
 
12972
            # linking a shared library.
 
12973
            #
 
12974
            # There doesn't appear to be a way to prevent this compiler from
 
12975
            # explicitly linking system object files so we need to strip them
 
12976
            # from the output so that they don't get included in the library
 
12977
            # dependencies.
 
12978
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12979
            ;;
 
12980
          *)
 
12981
            if test "$GXX" = yes; then
 
12982
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12983
            else
 
12984
              # FIXME: insert proper C++ library support
 
12985
              ld_shlibs_CXX=no
 
12986
            fi
 
12987
            ;;
 
12988
        esac
 
12989
        ;;
 
12990
 
 
12991
      hpux10*|hpux11*)
 
12992
        if test $with_gnu_ld = no; then
 
12993
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12994
          hardcode_libdir_separator_CXX=:
 
12995
 
 
12996
          case $host_cpu in
 
12997
            hppa*64*|ia64*)
 
12998
              ;;
 
12999
            *)
 
13000
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13001
              ;;
 
13002
          esac
 
13003
        fi
 
13004
        case $host_cpu in
 
13005
          hppa*64*|ia64*)
 
13006
            hardcode_direct_CXX=no
 
13007
            hardcode_shlibpath_var_CXX=no
 
13008
            ;;
 
13009
          *)
 
13010
            hardcode_direct_CXX=yes
 
13011
            hardcode_direct_absolute_CXX=yes
 
13012
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13013
                                                 # but as the default
 
13014
                                                 # location of the library.
 
13015
            ;;
 
13016
        esac
 
13017
 
 
13018
        case $cc_basename in
 
13019
          CC*)
 
13020
            # FIXME: insert proper C++ library support
 
13021
            ld_shlibs_CXX=no
 
13022
            ;;
 
13023
          aCC*)
 
13024
            case $host_cpu in
 
13025
              hppa*64*)
 
13026
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13027
                ;;
 
13028
              ia64*)
 
13029
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13030
                ;;
 
13031
              *)
 
13032
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13033
                ;;
 
13034
            esac
 
13035
            # Commands to make compiler produce verbose output that lists
 
13036
            # what "hidden" libraries, object files and flags are used when
 
13037
            # linking a shared library.
 
13038
            #
 
13039
            # There doesn't appear to be a way to prevent this compiler from
 
13040
            # explicitly linking system object files so we need to strip them
 
13041
            # from the output so that they don't get included in the library
 
13042
            # dependencies.
 
13043
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13044
            ;;
 
13045
          *)
 
13046
            if test "$GXX" = yes; then
 
13047
              if test $with_gnu_ld = no; then
 
13048
                case $host_cpu in
 
13049
                  hppa*64*)
 
13050
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13051
                    ;;
 
13052
                  ia64*)
 
13053
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13054
                    ;;
 
13055
                  *)
 
13056
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13057
                    ;;
 
13058
                esac
 
13059
              fi
 
13060
            else
 
13061
              # FIXME: insert proper C++ library support
 
13062
              ld_shlibs_CXX=no
 
13063
            fi
 
13064
            ;;
 
13065
        esac
 
13066
        ;;
 
13067
 
 
13068
      interix[3-9]*)
 
13069
        hardcode_direct_CXX=no
 
13070
        hardcode_shlibpath_var_CXX=no
 
13071
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13072
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13073
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13074
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13075
        # default) and relocated if they conflict, which is a slow very memory
 
13076
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13077
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13078
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13079
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13080
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13081
        ;;
 
13082
      irix5* | irix6*)
 
13083
        case $cc_basename in
 
13084
          CC*)
 
13085
            # SGI C++
 
13086
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13087
 
 
13088
            # Archives containing C++ object files must be created using
 
13089
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13090
            # necessary to make sure instantiated templates are included
 
13091
            # in the archive.
 
13092
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13093
            ;;
 
13094
          *)
 
13095
            if test "$GXX" = yes; then
 
13096
              if test "$with_gnu_ld" = no; then
 
13097
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13098
              else
 
13099
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
13100
              fi
 
13101
            fi
 
13102
            link_all_deplibs_CXX=yes
 
13103
            ;;
 
13104
        esac
 
13105
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13106
        hardcode_libdir_separator_CXX=:
 
13107
        inherit_rpath_CXX=yes
 
13108
        ;;
 
13109
 
 
13110
      linux* | k*bsd*-gnu)
 
13111
        case $cc_basename in
 
13112
          KCC*)
 
13113
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13114
 
 
13115
            # KCC will only create a shared library if the output file
 
13116
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13117
            # to its proper name (with version) after linking.
 
13118
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13119
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
13120
            # Commands to make compiler produce verbose output that lists
 
13121
            # what "hidden" libraries, object files and flags are used when
 
13122
            # linking a shared library.
 
13123
            #
 
13124
            # There doesn't appear to be a way to prevent this compiler from
 
13125
            # explicitly linking system object files so we need to strip them
 
13126
            # from the output so that they don't get included in the library
 
13127
            # dependencies.
 
13128
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13129
 
 
13130
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13131
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13132
 
 
13133
            # Archives containing C++ object files must be created using
 
13134
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13135
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13136
            ;;
 
13137
          icpc* | ecpc* )
 
13138
            # Intel C++
 
13139
            with_gnu_ld=yes
 
13140
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13141
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13142
            # earlier do not add the objects themselves.
 
13143
            case `$CC -V 2>&1` in
 
13144
              *"Version 7."*)
 
13145
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13146
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13147
                ;;
 
13148
              *)  # Version 8.0 or newer
 
13149
                tmp_idyn=
 
13150
                case $host_cpu in
 
13151
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13152
                esac
 
13153
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13154
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13155
                ;;
 
13156
            esac
 
13157
            archive_cmds_need_lc_CXX=no
 
13158
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13159
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13160
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13161
            ;;
 
13162
          pgCC* | pgcpp*)
 
13163
            # Portland Group C++ compiler
 
13164
            case `$CC -V` in
 
13165
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
13166
              prelink_cmds_CXX='tpldir=Template.dir~
 
13167
                rm -rf $tpldir~
 
13168
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13169
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
13170
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13171
                rm -rf $tpldir~
 
13172
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13173
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
13174
                $RANLIB $oldlib'
 
13175
              archive_cmds_CXX='tpldir=Template.dir~
 
13176
                rm -rf $tpldir~
 
13177
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13178
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13179
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13180
                rm -rf $tpldir~
 
13181
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13182
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13183
              ;;
 
13184
            *) # Version 6 will use weak symbols
 
13185
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13186
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13187
              ;;
 
13188
            esac
 
13189
 
 
13190
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13191
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13192
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
13193
            ;;
 
13194
          cxx*)
 
13195
            # Compaq C++
 
13196
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13197
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
13198
 
 
13199
            runpath_var=LD_RUN_PATH
 
13200
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13201
            hardcode_libdir_separator_CXX=:
 
13202
 
 
13203
            # Commands to make compiler produce verbose output that lists
 
13204
            # what "hidden" libraries, object files and flags are used when
 
13205
            # linking a shared library.
 
13206
            #
 
13207
            # There doesn't appear to be a way to prevent this compiler from
 
13208
            # explicitly linking system object files so we need to strip them
 
13209
            # from the output so that they don't get included in the library
 
13210
            # dependencies.
 
13211
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13212
            ;;
 
13213
          xl*)
 
13214
            # IBM XL 8.0 on PPC, with GNU ld
 
13215
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13216
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13217
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13218
            if test "x$supports_anon_versioning" = xyes; then
 
13219
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13220
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13221
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13222
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13223
            fi
 
13224
            ;;
 
13225
          *)
 
13226
            case `$CC -V 2>&1 | sed 5q` in
 
13227
            *Sun\ C*)
 
13228
              # Sun C++ 5.9
 
13229
              no_undefined_flag_CXX=' -zdefs'
 
13230
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13231
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
13232
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13233
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
13234
              compiler_needs_object_CXX=yes
 
13235
 
 
13236
              # Not sure whether something based on
 
13237
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13238
              # would be better.
 
13239
              output_verbose_link_cmd='echo'
 
13240
 
 
13241
              # Archives containing C++ object files must be created using
 
13242
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13243
              # necessary to make sure instantiated templates are included
 
13244
              # in the archive.
 
13245
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13246
              ;;
 
13247
            esac
 
13248
            ;;
 
13249
        esac
 
13250
        ;;
 
13251
 
 
13252
      lynxos*)
 
13253
        # FIXME: insert proper C++ library support
 
13254
        ld_shlibs_CXX=no
 
13255
        ;;
 
13256
 
 
13257
      m88k*)
 
13258
        # FIXME: insert proper C++ library support
 
13259
        ld_shlibs_CXX=no
 
13260
        ;;
 
13261
 
 
13262
      mvs*)
 
13263
        case $cc_basename in
 
13264
          cxx*)
 
13265
            # FIXME: insert proper C++ library support
 
13266
            ld_shlibs_CXX=no
 
13267
            ;;
 
13268
          *)
 
13269
            # FIXME: insert proper C++ library support
 
13270
            ld_shlibs_CXX=no
 
13271
            ;;
 
13272
        esac
 
13273
        ;;
 
13274
 
 
13275
      netbsd*)
 
13276
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13277
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13278
          wlarc=
 
13279
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13280
          hardcode_direct_CXX=yes
 
13281
          hardcode_shlibpath_var_CXX=no
 
13282
        fi
 
13283
        # Workaround some broken pre-1.5 toolchains
 
13284
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13285
        ;;
 
13286
 
 
13287
      *nto* | *qnx*)
 
13288
        ld_shlibs_CXX=yes
 
13289
        ;;
 
13290
 
 
13291
      openbsd2*)
 
13292
        # C++ shared libraries are fairly broken
 
13293
        ld_shlibs_CXX=no
 
13294
        ;;
 
13295
 
 
13296
      openbsd*)
 
13297
        if test -f /usr/libexec/ld.so; then
 
13298
          hardcode_direct_CXX=yes
 
13299
          hardcode_shlibpath_var_CXX=no
 
13300
          hardcode_direct_absolute_CXX=yes
 
13301
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13302
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13303
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13304
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13305
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13306
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13307
          fi
 
13308
          output_verbose_link_cmd=echo
 
13309
        else
 
13310
          ld_shlibs_CXX=no
 
13311
        fi
 
13312
        ;;
 
13313
 
 
13314
      osf3* | osf4* | osf5*)
 
13315
        case $cc_basename in
 
13316
          KCC*)
 
13317
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13318
 
 
13319
            # KCC will only create a shared library if the output file
 
13320
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13321
            # to its proper name (with version) after linking.
 
13322
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13323
 
 
13324
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13325
            hardcode_libdir_separator_CXX=:
 
13326
 
 
13327
            # Archives containing C++ object files must be created using
 
13328
            # the KAI C++ compiler.
 
13329
            case $host in
 
13330
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13331
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13332
            esac
 
13333
            ;;
 
13334
          RCC*)
 
13335
            # Rational C++ 2.4.1
 
13336
            # FIXME: insert proper C++ library support
 
13337
            ld_shlibs_CXX=no
 
13338
            ;;
 
13339
          cxx*)
 
13340
            case $host in
 
13341
              osf3*)
 
13342
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13343
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13344
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13345
                ;;
 
13346
              *)
 
13347
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13348
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13349
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13350
                  echo "-hidden">> $lib.exp~
 
13351
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
13352
                  $RM $lib.exp'
 
13353
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13354
                ;;
 
13355
            esac
 
13356
 
 
13357
            hardcode_libdir_separator_CXX=:
 
13358
 
 
13359
            # Commands to make compiler produce verbose output that lists
 
13360
            # what "hidden" libraries, object files and flags are used when
 
13361
            # linking a shared library.
 
13362
            #
 
13363
            # There doesn't appear to be a way to prevent this compiler from
 
13364
            # explicitly linking system object files so we need to strip them
 
13365
            # from the output so that they don't get included in the library
 
13366
            # dependencies.
 
13367
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13368
            ;;
 
13369
          *)
 
13370
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13371
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13372
              case $host in
 
13373
                osf3*)
 
13374
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13375
                  ;;
 
13376
                *)
 
13377
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13378
                  ;;
 
13379
              esac
 
13380
 
 
13381
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13382
              hardcode_libdir_separator_CXX=:
 
13383
 
 
13384
              # Commands to make compiler produce verbose output that lists
 
13385
              # what "hidden" libraries, object files and flags are used when
 
13386
              # linking a shared library.
 
13387
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13388
 
 
13389
            else
 
13390
              # FIXME: insert proper C++ library support
 
13391
              ld_shlibs_CXX=no
 
13392
            fi
 
13393
            ;;
 
13394
        esac
 
13395
        ;;
 
13396
 
 
13397
      psos*)
 
13398
        # FIXME: insert proper C++ library support
 
13399
        ld_shlibs_CXX=no
 
13400
        ;;
 
13401
 
 
13402
      sunos4*)
 
13403
        case $cc_basename in
 
13404
          CC*)
 
13405
            # Sun C++ 4.x
 
13406
            # FIXME: insert proper C++ library support
 
13407
            ld_shlibs_CXX=no
 
13408
            ;;
 
13409
          lcc*)
 
13410
            # Lucid
 
13411
            # FIXME: insert proper C++ library support
 
13412
            ld_shlibs_CXX=no
 
13413
            ;;
 
13414
          *)
 
13415
            # FIXME: insert proper C++ library support
 
13416
            ld_shlibs_CXX=no
 
13417
            ;;
 
13418
        esac
 
13419
        ;;
 
13420
 
 
13421
      solaris*)
 
13422
        case $cc_basename in
 
13423
          CC*)
 
13424
            # Sun C++ 4.2, 5.x and Centerline C++
 
13425
            archive_cmds_need_lc_CXX=yes
 
13426
            no_undefined_flag_CXX=' -zdefs'
 
13427
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13428
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13429
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13430
 
 
13431
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13432
            hardcode_shlibpath_var_CXX=no
 
13433
            case $host_os in
 
13434
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13435
              *)
 
13436
                # The compiler driver will combine and reorder linker options,
 
13437
                # but understands `-z linker_flag'.
 
13438
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13439
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13440
                ;;
 
13441
            esac
 
13442
            link_all_deplibs_CXX=yes
 
13443
 
 
13444
            output_verbose_link_cmd='echo'
 
13445
 
 
13446
            # Archives containing C++ object files must be created using
 
13447
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13448
            # necessary to make sure instantiated templates are included
 
13449
            # in the archive.
 
13450
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13451
            ;;
 
13452
          gcx*)
 
13453
            # Green Hills C++ Compiler
 
13454
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13455
 
 
13456
            # The C++ compiler must be used to create the archive.
 
13457
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13458
            ;;
 
13459
          *)
 
13460
            # GNU C++ compiler with Solaris linker
 
13461
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13462
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13463
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13464
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13465
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13466
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13467
 
 
13468
                # Commands to make compiler produce verbose output that lists
 
13469
                # what "hidden" libraries, object files and flags are used when
 
13470
                # linking a shared library.
 
13471
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13472
              else
 
13473
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13474
                # platform.
 
13475
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13476
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13477
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13478
 
 
13479
                # Commands to make compiler produce verbose output that lists
 
13480
                # what "hidden" libraries, object files and flags are used when
 
13481
                # linking a shared library.
 
13482
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13483
              fi
 
13484
 
 
13485
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13486
              case $host_os in
 
13487
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13488
                *)
 
13489
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13490
                  ;;
 
13491
              esac
 
13492
            fi
 
13493
            ;;
 
13494
        esac
 
13495
        ;;
 
13496
 
 
13497
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13498
      no_undefined_flag_CXX='${wl}-z,text'
 
13499
      archive_cmds_need_lc_CXX=no
 
13500
      hardcode_shlibpath_var_CXX=no
 
13501
      runpath_var='LD_RUN_PATH'
 
13502
 
 
13503
      case $cc_basename in
 
13504
        CC*)
 
13505
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13506
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13507
          ;;
 
13508
        *)
 
13509
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13510
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13511
          ;;
 
13512
      esac
 
13513
      ;;
 
13514
 
 
13515
      sysv5* | sco3.2v5* | sco5v6*)
 
13516
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13517
        # link with -lc, and that would cause any symbols used from libc to
 
13518
        # always be unresolved, which means just about no library would
 
13519
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13520
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13521
        # as -z defs.
 
13522
        no_undefined_flag_CXX='${wl}-z,text'
 
13523
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13524
        archive_cmds_need_lc_CXX=no
 
13525
        hardcode_shlibpath_var_CXX=no
 
13526
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13527
        hardcode_libdir_separator_CXX=':'
 
13528
        link_all_deplibs_CXX=yes
 
13529
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13530
        runpath_var='LD_RUN_PATH'
 
13531
 
 
13532
        case $cc_basename in
 
13533
          CC*)
 
13534
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13535
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13536
            ;;
 
13537
          *)
 
13538
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13539
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13540
            ;;
 
13541
        esac
 
13542
      ;;
 
13543
 
 
13544
      tandem*)
 
13545
        case $cc_basename in
 
13546
          NCC*)
 
13547
            # NonStop-UX NCC 3.20
 
13548
            # FIXME: insert proper C++ library support
 
13549
            ld_shlibs_CXX=no
 
13550
            ;;
 
13551
          *)
 
13552
            # FIXME: insert proper C++ library support
 
13553
            ld_shlibs_CXX=no
 
13554
            ;;
 
13555
        esac
 
13556
        ;;
 
13557
 
 
13558
      vxworks*)
 
13559
        # FIXME: insert proper C++ library support
 
13560
        ld_shlibs_CXX=no
 
13561
        ;;
 
13562
 
 
13563
      *)
 
13564
        # FIXME: insert proper C++ library support
 
13565
        ld_shlibs_CXX=no
 
13566
        ;;
 
13567
    esac
 
13568
 
 
13569
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13570
$as_echo "$ld_shlibs_CXX" >&6; }
 
13571
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13572
 
 
13573
    GCC_CXX="$GXX"
 
13574
    LD_CXX="$LD"
 
13575
 
 
13576
    ## CAVEAT EMPTOR:
 
13577
    ## There is no encapsulation within the following macros, do not change
 
13578
    ## the running order or otherwise move them around unless you know exactly
 
13579
    ## what you are doing...
 
13580
    # Dependencies to place before and after the object being linked:
 
13581
predep_objects_CXX=
 
13582
postdep_objects_CXX=
 
13583
predeps_CXX=
 
13584
postdeps_CXX=
 
13585
compiler_lib_search_path_CXX=
 
13586
 
 
13587
cat > conftest.$ac_ext <<_LT_EOF
 
13588
class Foo
 
13589
{
 
13590
public:
 
13591
  Foo (void) { a = 0; }
 
13592
private:
 
13593
  int a;
 
13594
};
 
13595
_LT_EOF
 
13596
 
 
13597
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13598
  (eval $ac_compile) 2>&5
 
13599
  ac_status=$?
 
13600
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13601
  test $ac_status = 0; }; then
 
13602
  # Parse the compiler output and extract the necessary
 
13603
  # objects, libraries and library flags.
 
13604
 
 
13605
  # Sentinel used to keep track of whether or not we are before
 
13606
  # the conftest object file.
 
13607
  pre_test_object_deps_done=no
 
13608
 
 
13609
  for p in `eval "$output_verbose_link_cmd"`; do
 
13610
    case $p in
 
13611
 
 
13612
    -L* | -R* | -l*)
 
13613
       # Some compilers place space between "-{L,R}" and the path.
 
13614
       # Remove the space.
 
13615
       if test $p = "-L" ||
 
13616
          test $p = "-R"; then
 
13617
         prev=$p
 
13618
         continue
 
13619
       else
 
13620
         prev=
 
13621
       fi
 
13622
 
 
13623
       if test "$pre_test_object_deps_done" = no; then
 
13624
         case $p in
 
13625
         -L* | -R*)
 
13626
           # Internal compiler library paths should come after those
 
13627
           # provided the user.  The postdeps already come after the
 
13628
           # user supplied libs so there is no need to process them.
 
13629
           if test -z "$compiler_lib_search_path_CXX"; then
 
13630
             compiler_lib_search_path_CXX="${prev}${p}"
 
13631
           else
 
13632
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13633
           fi
 
13634
           ;;
 
13635
         # The "-l" case would never come before the object being
 
13636
         # linked, so don't bother handling this case.
 
13637
         esac
 
13638
       else
 
13639
         if test -z "$postdeps_CXX"; then
 
13640
           postdeps_CXX="${prev}${p}"
 
13641
         else
 
13642
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13643
         fi
 
13644
       fi
 
13645
       ;;
 
13646
 
 
13647
    *.$objext)
 
13648
       # This assumes that the test object file only shows up
 
13649
       # once in the compiler output.
 
13650
       if test "$p" = "conftest.$objext"; then
 
13651
         pre_test_object_deps_done=yes
 
13652
         continue
 
13653
       fi
 
13654
 
 
13655
       if test "$pre_test_object_deps_done" = no; then
 
13656
         if test -z "$predep_objects_CXX"; then
 
13657
           predep_objects_CXX="$p"
 
13658
         else
 
13659
           predep_objects_CXX="$predep_objects_CXX $p"
 
13660
         fi
 
13661
       else
 
13662
         if test -z "$postdep_objects_CXX"; then
 
13663
           postdep_objects_CXX="$p"
 
13664
         else
 
13665
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13666
         fi
 
13667
       fi
 
13668
       ;;
 
13669
 
 
13670
    *) ;; # Ignore the rest.
 
13671
 
 
13672
    esac
 
13673
  done
 
13674
 
 
13675
  # Clean up.
 
13676
  rm -f a.out a.exe
 
13677
else
 
13678
  echo "libtool.m4: error: problem compiling CXX test program"
 
13679
fi
 
13680
 
 
13681
$RM -f confest.$objext
 
13682
 
 
13683
# PORTME: override above test on systems where it is broken
 
13684
case $host_os in
 
13685
interix[3-9]*)
 
13686
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13687
  # hack all around it, let's just trust "g++" to DTRT.
 
13688
  predep_objects_CXX=
 
13689
  postdep_objects_CXX=
 
13690
  postdeps_CXX=
 
13691
  ;;
 
13692
 
 
13693
linux*)
 
13694
  case `$CC -V 2>&1 | sed 5q` in
 
13695
  *Sun\ C*)
 
13696
    # Sun C++ 5.9
 
13697
 
 
13698
    # The more standards-conforming stlport4 library is
 
13699
    # incompatible with the Cstd library. Avoid specifying
 
13700
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13701
    # -library=stlport4 depends on it.
 
13702
    case " $CXX $CXXFLAGS " in
 
13703
    *" -library=stlport4 "*)
 
13704
      solaris_use_stlport4=yes
 
13705
      ;;
 
13706
    esac
 
13707
 
 
13708
    if test "$solaris_use_stlport4" != yes; then
 
13709
      postdeps_CXX='-library=Cstd -library=Crun'
 
13710
    fi
 
13711
    ;;
 
13712
  esac
 
13713
  ;;
 
13714
 
 
13715
solaris*)
 
13716
  case $cc_basename in
 
13717
  CC*)
 
13718
    # The more standards-conforming stlport4 library is
 
13719
    # incompatible with the Cstd library. Avoid specifying
 
13720
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13721
    # -library=stlport4 depends on it.
 
13722
    case " $CXX $CXXFLAGS " in
 
13723
    *" -library=stlport4 "*)
 
13724
      solaris_use_stlport4=yes
 
13725
      ;;
 
13726
    esac
 
13727
 
 
13728
    # Adding this requires a known-good setup of shared libraries for
 
13729
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13730
    # archive will be linked into the output, leading to subtle bugs.
 
13731
    if test "$solaris_use_stlport4" != yes; then
 
13732
      postdeps_CXX='-library=Cstd -library=Crun'
 
13733
    fi
 
13734
    ;;
 
13735
  esac
 
13736
  ;;
 
13737
esac
 
13738
 
 
13739
 
 
13740
case " $postdeps_CXX " in
 
13741
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13742
esac
 
13743
 compiler_lib_search_dirs_CXX=
 
13744
if test -n "${compiler_lib_search_path_CXX}"; then
 
13745
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13746
fi
 
13747
 
 
13748
 
 
13749
 
 
13750
 
 
13751
 
 
13752
 
 
13753
 
 
13754
 
 
13755
 
 
13756
 
 
13757
 
 
13758
 
 
13759
 
 
13760
 
 
13761
 
 
13762
 
 
13763
 
 
13764
 
 
13765
 
 
13766
 
 
13767
 
 
13768
 
 
13769
 
 
13770
 
 
13771
 
 
13772
 
 
13773
 
 
13774
 
 
13775
 
 
13776
 
 
13777
 
 
13778
    lt_prog_compiler_wl_CXX=
 
13779
lt_prog_compiler_pic_CXX=
 
13780
lt_prog_compiler_static_CXX=
 
13781
 
 
13782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
13783
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13784
 
 
13785
  # C++ specific cases for pic, static, wl, etc.
 
13786
  if test "$GXX" = yes; then
 
13787
    lt_prog_compiler_wl_CXX='-Wl,'
 
13788
    lt_prog_compiler_static_CXX='-static'
 
13789
 
 
13790
    case $host_os in
 
13791
    aix*)
 
13792
      # All AIX code is PIC.
 
13793
      if test "$host_cpu" = ia64; then
 
13794
        # AIX 5 now supports IA64 processor
 
13795
        lt_prog_compiler_static_CXX='-Bstatic'
 
13796
      fi
 
13797
      ;;
 
13798
 
 
13799
    amigaos*)
 
13800
      case $host_cpu in
 
13801
      powerpc)
 
13802
            # see comment about AmigaOS4 .so support
 
13803
            lt_prog_compiler_pic_CXX='-fPIC'
 
13804
        ;;
 
13805
      m68k)
 
13806
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13807
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13808
            # like `-m68040'.
 
13809
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13810
        ;;
 
13811
      esac
 
13812
      ;;
 
13813
 
 
13814
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13815
      # PIC is the default for these OSes.
 
13816
      ;;
 
13817
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13818
      # This hack is so that the source file can tell whether it is being
 
13819
      # built for inclusion in a dll (and should export symbols for example).
 
13820
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13821
      # (--disable-auto-import) libraries
 
13822
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13823
      ;;
 
13824
    darwin* | rhapsody*)
 
13825
      # PIC is the default on this platform
 
13826
      # Common symbols not allowed in MH_DYLIB files
 
13827
      lt_prog_compiler_pic_CXX='-fno-common'
 
13828
      ;;
 
13829
    *djgpp*)
 
13830
      # DJGPP does not support shared libraries at all
 
13831
      lt_prog_compiler_pic_CXX=
 
13832
      ;;
 
13833
    interix[3-9]*)
 
13834
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13835
      # Instead, we relocate shared libraries at runtime.
 
13836
      ;;
 
13837
    sysv4*MP*)
 
13838
      if test -d /usr/nec; then
 
13839
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13840
      fi
 
13841
      ;;
 
13842
    hpux*)
 
13843
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13844
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13845
      # sets the default TLS model and affects inlining.
 
13846
      case $host_cpu in
 
13847
      hppa*64*)
 
13848
        ;;
 
13849
      *)
 
13850
        lt_prog_compiler_pic_CXX='-fPIC'
 
13851
        ;;
 
13852
      esac
 
13853
      ;;
 
13854
    *qnx* | *nto*)
 
13855
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13856
      # it will coredump.
 
13857
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13858
      ;;
 
13859
    *)
 
13860
      lt_prog_compiler_pic_CXX='-fPIC'
 
13861
      ;;
 
13862
    esac
 
13863
  else
 
13864
    case $host_os in
 
13865
      aix[4-9]*)
 
13866
        # All AIX code is PIC.
 
13867
        if test "$host_cpu" = ia64; then
 
13868
          # AIX 5 now supports IA64 processor
 
13869
          lt_prog_compiler_static_CXX='-Bstatic'
 
13870
        else
 
13871
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13872
        fi
 
13873
        ;;
 
13874
      chorus*)
 
13875
        case $cc_basename in
 
13876
        cxch68*)
 
13877
          # Green Hills C++ Compiler
 
13878
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
13879
          ;;
 
13880
        esac
 
13881
        ;;
 
13882
      dgux*)
 
13883
        case $cc_basename in
 
13884
          ec++*)
 
13885
            lt_prog_compiler_pic_CXX='-KPIC'
 
13886
            ;;
 
13887
          ghcx*)
 
13888
            # Green Hills C++ Compiler
 
13889
            lt_prog_compiler_pic_CXX='-pic'
 
13890
            ;;
 
13891
          *)
 
13892
            ;;
 
13893
        esac
 
13894
        ;;
 
13895
      freebsd* | dragonfly*)
 
13896
        # FreeBSD uses GNU C++
 
13897
        ;;
 
13898
      hpux9* | hpux10* | hpux11*)
 
13899
        case $cc_basename in
 
13900
          CC*)
 
13901
            lt_prog_compiler_wl_CXX='-Wl,'
 
13902
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13903
            if test "$host_cpu" != ia64; then
 
13904
              lt_prog_compiler_pic_CXX='+Z'
 
13905
            fi
 
13906
            ;;
 
13907
          aCC*)
 
13908
            lt_prog_compiler_wl_CXX='-Wl,'
 
13909
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13910
            case $host_cpu in
 
13911
            hppa*64*|ia64*)
 
13912
              # +Z the default
 
13913
              ;;
 
13914
            *)
 
13915
              lt_prog_compiler_pic_CXX='+Z'
 
13916
              ;;
 
13917
            esac
 
13918
            ;;
 
13919
          *)
 
13920
            ;;
 
13921
        esac
 
13922
        ;;
 
13923
      interix*)
 
13924
        # This is c89, which is MS Visual C++ (no shared libs)
 
13925
        # Anyone wants to do a port?
 
13926
        ;;
 
13927
      irix5* | irix6* | nonstopux*)
 
13928
        case $cc_basename in
 
13929
          CC*)
 
13930
            lt_prog_compiler_wl_CXX='-Wl,'
 
13931
            lt_prog_compiler_static_CXX='-non_shared'
 
13932
            # CC pic flag -KPIC is the default.
 
13933
            ;;
 
13934
          *)
 
13935
            ;;
 
13936
        esac
 
13937
        ;;
 
13938
      linux* | k*bsd*-gnu)
 
13939
        case $cc_basename in
 
13940
          KCC*)
 
13941
            # KAI C++ Compiler
 
13942
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13943
            lt_prog_compiler_pic_CXX='-fPIC'
 
13944
            ;;
 
13945
          ecpc* )
 
13946
            # old Intel C++ for x86_64 which still supported -KPIC.
 
13947
            lt_prog_compiler_wl_CXX='-Wl,'
 
13948
            lt_prog_compiler_pic_CXX='-KPIC'
 
13949
            lt_prog_compiler_static_CXX='-static'
 
13950
            ;;
 
13951
          icpc* )
 
13952
            # Intel C++, used to be incompatible with GCC.
 
13953
            # ICC 10 doesn't accept -KPIC any more.
 
13954
            lt_prog_compiler_wl_CXX='-Wl,'
 
13955
            lt_prog_compiler_pic_CXX='-fPIC'
 
13956
            lt_prog_compiler_static_CXX='-static'
 
13957
            ;;
 
13958
          pgCC* | pgcpp*)
 
13959
            # Portland Group C++ compiler
 
13960
            lt_prog_compiler_wl_CXX='-Wl,'
 
13961
            lt_prog_compiler_pic_CXX='-fpic'
 
13962
            lt_prog_compiler_static_CXX='-Bstatic'
 
13963
            ;;
 
13964
          cxx*)
 
13965
            # Compaq C++
 
13966
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13967
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13968
            lt_prog_compiler_pic_CXX=
 
13969
            lt_prog_compiler_static_CXX='-non_shared'
 
13970
            ;;
 
13971
          xlc* | xlC*)
 
13972
            # IBM XL 8.0 on PPC
 
13973
            lt_prog_compiler_wl_CXX='-Wl,'
 
13974
            lt_prog_compiler_pic_CXX='-qpic'
 
13975
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13976
            ;;
 
13977
          *)
 
13978
            case `$CC -V 2>&1 | sed 5q` in
 
13979
            *Sun\ C*)
 
13980
              # Sun C++ 5.9
 
13981
              lt_prog_compiler_pic_CXX='-KPIC'
 
13982
              lt_prog_compiler_static_CXX='-Bstatic'
 
13983
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13984
              ;;
 
13985
            esac
 
13986
            ;;
 
13987
        esac
 
13988
        ;;
 
13989
      lynxos*)
 
13990
        ;;
 
13991
      m88k*)
 
13992
        ;;
 
13993
      mvs*)
 
13994
        case $cc_basename in
 
13995
          cxx*)
 
13996
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13997
            ;;
 
13998
          *)
 
13999
            ;;
 
14000
        esac
 
14001
        ;;
 
14002
      netbsd*)
 
14003
        ;;
 
14004
      *qnx* | *nto*)
 
14005
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14006
        # it will coredump.
 
14007
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14008
        ;;
 
14009
      osf3* | osf4* | osf5*)
 
14010
        case $cc_basename in
 
14011
          KCC*)
 
14012
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14013
            ;;
 
14014
          RCC*)
 
14015
            # Rational C++ 2.4.1
 
14016
            lt_prog_compiler_pic_CXX='-pic'
 
14017
            ;;
 
14018
          cxx*)
 
14019
            # Digital/Compaq C++
 
14020
            lt_prog_compiler_wl_CXX='-Wl,'
 
14021
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14022
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14023
            lt_prog_compiler_pic_CXX=
 
14024
            lt_prog_compiler_static_CXX='-non_shared'
 
14025
            ;;
 
14026
          *)
 
14027
            ;;
 
14028
        esac
 
14029
        ;;
 
14030
      psos*)
 
14031
        ;;
 
14032
      solaris*)
 
14033
        case $cc_basename in
 
14034
          CC*)
 
14035
            # Sun C++ 4.2, 5.x and Centerline C++
 
14036
            lt_prog_compiler_pic_CXX='-KPIC'
 
14037
            lt_prog_compiler_static_CXX='-Bstatic'
 
14038
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14039
            ;;
 
14040
          gcx*)
 
14041
            # Green Hills C++ Compiler
 
14042
            lt_prog_compiler_pic_CXX='-PIC'
 
14043
            ;;
 
14044
          *)
 
14045
            ;;
 
14046
        esac
 
14047
        ;;
 
14048
      sunos4*)
 
14049
        case $cc_basename in
 
14050
          CC*)
 
14051
            # Sun C++ 4.x
 
14052
            lt_prog_compiler_pic_CXX='-pic'
 
14053
            lt_prog_compiler_static_CXX='-Bstatic'
 
14054
            ;;
 
14055
          lcc*)
 
14056
            # Lucid
 
14057
            lt_prog_compiler_pic_CXX='-pic'
 
14058
            ;;
 
14059
          *)
 
14060
            ;;
 
14061
        esac
 
14062
        ;;
 
14063
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14064
        case $cc_basename in
 
14065
          CC*)
 
14066
            lt_prog_compiler_wl_CXX='-Wl,'
 
14067
            lt_prog_compiler_pic_CXX='-KPIC'
 
14068
            lt_prog_compiler_static_CXX='-Bstatic'
 
14069
            ;;
 
14070
        esac
 
14071
        ;;
 
14072
      tandem*)
 
14073
        case $cc_basename in
 
14074
          NCC*)
 
14075
            # NonStop-UX NCC 3.20
 
14076
            lt_prog_compiler_pic_CXX='-KPIC'
 
14077
            ;;
 
14078
          *)
 
14079
            ;;
 
14080
        esac
 
14081
        ;;
 
14082
      vxworks*)
 
14083
        ;;
 
14084
      *)
 
14085
        lt_prog_compiler_can_build_shared_CXX=no
 
14086
        ;;
 
14087
    esac
 
14088
  fi
 
14089
 
 
14090
case $host_os in
 
14091
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14092
  *djgpp*)
 
14093
    lt_prog_compiler_pic_CXX=
 
14094
    ;;
 
14095
  *)
 
14096
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14097
    ;;
 
14098
esac
 
14099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
 
14100
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
14101
 
 
14102
 
 
14103
 
 
14104
#
 
14105
# Check to make sure the PIC flag actually works.
 
14106
#
 
14107
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14108
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14109
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14110
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
14111
  $as_echo_n "(cached) " >&6
 
14112
else
 
14113
  lt_cv_prog_compiler_pic_works_CXX=no
 
14114
   ac_outfile=conftest.$ac_objext
 
14115
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14116
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14117
   # Insert the option either (1) after the last *FLAGS variable, or
 
14118
   # (2) before a word containing "conftest.", or (3) at the end.
 
14119
   # Note that $ac_compile itself does not contain backslashes and begins
 
14120
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14121
   # The option is referenced via a variable to avoid confusing sed.
 
14122
   lt_compile=`echo "$ac_compile" | $SED \
 
14123
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14124
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14125
   -e 's:$: $lt_compiler_flag:'`
 
14126
   (eval echo "\"\$as_me:14126: $lt_compile\"" >&5)
 
14127
   (eval "$lt_compile" 2>conftest.err)
 
14128
   ac_status=$?
 
14129
   cat conftest.err >&5
 
14130
   echo "$as_me:14130: \$? = $ac_status" >&5
 
14131
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14132
     # The compiler can only warn and ignore the option if not recognized
 
14133
     # So say no if there are warnings other than the usual output.
 
14134
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14135
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14136
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14137
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14138
     fi
 
14139
   fi
 
14140
   $RM conftest*
 
14141
 
 
14142
fi
 
14143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14144
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14145
 
 
14146
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14147
    case $lt_prog_compiler_pic_CXX in
 
14148
     "" | " "*) ;;
 
14149
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14150
     esac
 
14151
else
 
14152
    lt_prog_compiler_pic_CXX=
 
14153
     lt_prog_compiler_can_build_shared_CXX=no
 
14154
fi
 
14155
 
 
14156
fi
 
14157
 
 
14158
 
 
14159
 
 
14160
#
 
14161
# Check to make sure the static flag actually works.
 
14162
#
 
14163
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14165
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14166
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
14167
  $as_echo_n "(cached) " >&6
 
14168
else
 
14169
  lt_cv_prog_compiler_static_works_CXX=no
 
14170
   save_LDFLAGS="$LDFLAGS"
 
14171
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14172
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14173
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14174
     # The linker can only warn and ignore the option if not recognized
 
14175
     # So say no if there are warnings
 
14176
     if test -s conftest.err; then
 
14177
       # Append any errors to the config.log.
 
14178
       cat conftest.err 1>&5
 
14179
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14180
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14181
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14182
         lt_cv_prog_compiler_static_works_CXX=yes
 
14183
       fi
 
14184
     else
 
14185
       lt_cv_prog_compiler_static_works_CXX=yes
 
14186
     fi
 
14187
   fi
 
14188
   $RM -r conftest*
 
14189
   LDFLAGS="$save_LDFLAGS"
 
14190
 
 
14191
fi
 
14192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14193
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14194
 
 
14195
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14196
    :
 
14197
else
 
14198
    lt_prog_compiler_static_CXX=
 
14199
fi
 
14200
 
 
14201
 
 
14202
 
 
14203
 
 
14204
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14205
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14206
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
14207
  $as_echo_n "(cached) " >&6
 
14208
else
 
14209
  lt_cv_prog_compiler_c_o_CXX=no
 
14210
   $RM -r conftest 2>/dev/null
 
14211
   mkdir conftest
 
14212
   cd conftest
 
14213
   mkdir out
 
14214
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14215
 
 
14216
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14217
   # Insert the option either (1) after the last *FLAGS variable, or
 
14218
   # (2) before a word containing "conftest.", or (3) at the end.
 
14219
   # Note that $ac_compile itself does not contain backslashes and begins
 
14220
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14221
   lt_compile=`echo "$ac_compile" | $SED \
 
14222
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14223
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14224
   -e 's:$: $lt_compiler_flag:'`
 
14225
   (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
 
14226
   (eval "$lt_compile" 2>out/conftest.err)
 
14227
   ac_status=$?
 
14228
   cat out/conftest.err >&5
 
14229
   echo "$as_me:14229: \$? = $ac_status" >&5
 
14230
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14231
   then
 
14232
     # The compiler can only warn and ignore the option if not recognized
 
14233
     # So say no if there are warnings
 
14234
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14235
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14236
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14237
       lt_cv_prog_compiler_c_o_CXX=yes
 
14238
     fi
 
14239
   fi
 
14240
   chmod u+w . 2>&5
 
14241
   $RM conftest*
 
14242
   # SGI C++ compiler will create directory out/ii_files/ for
 
14243
   # template instantiation
 
14244
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14245
   $RM out/* && rmdir out
 
14246
   cd ..
 
14247
   $RM -r conftest
 
14248
   $RM conftest*
 
14249
 
 
14250
fi
 
14251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14252
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14253
 
 
14254
 
 
14255
 
 
14256
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14257
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14258
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
14259
  $as_echo_n "(cached) " >&6
 
14260
else
 
14261
  lt_cv_prog_compiler_c_o_CXX=no
 
14262
   $RM -r conftest 2>/dev/null
 
14263
   mkdir conftest
 
14264
   cd conftest
 
14265
   mkdir out
 
14266
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14267
 
 
14268
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14269
   # Insert the option either (1) after the last *FLAGS variable, or
 
14270
   # (2) before a word containing "conftest.", or (3) at the end.
 
14271
   # Note that $ac_compile itself does not contain backslashes and begins
 
14272
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14273
   lt_compile=`echo "$ac_compile" | $SED \
 
14274
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14275
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14276
   -e 's:$: $lt_compiler_flag:'`
 
14277
   (eval echo "\"\$as_me:14277: $lt_compile\"" >&5)
 
14278
   (eval "$lt_compile" 2>out/conftest.err)
 
14279
   ac_status=$?
 
14280
   cat out/conftest.err >&5
 
14281
   echo "$as_me:14281: \$? = $ac_status" >&5
 
14282
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14283
   then
 
14284
     # The compiler can only warn and ignore the option if not recognized
 
14285
     # So say no if there are warnings
 
14286
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14287
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14288
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14289
       lt_cv_prog_compiler_c_o_CXX=yes
 
14290
     fi
 
14291
   fi
 
14292
   chmod u+w . 2>&5
 
14293
   $RM conftest*
 
14294
   # SGI C++ compiler will create directory out/ii_files/ for
 
14295
   # template instantiation
 
14296
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14297
   $RM out/* && rmdir out
 
14298
   cd ..
 
14299
   $RM -r conftest
 
14300
   $RM conftest*
 
14301
 
 
14302
fi
 
14303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14304
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14305
 
 
14306
 
 
14307
 
 
14308
 
 
14309
hard_links="nottested"
 
14310
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14311
  # do not overwrite the value of need_locks provided by the user
 
14312
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14313
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14314
  hard_links=yes
 
14315
  $RM conftest*
 
14316
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14317
  touch conftest.a
 
14318
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14319
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14321
$as_echo "$hard_links" >&6; }
 
14322
  if test "$hard_links" = no; then
 
14323
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14324
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14325
    need_locks=warn
 
14326
  fi
 
14327
else
 
14328
  need_locks=no
 
14329
fi
 
14330
 
 
14331
 
 
14332
 
 
14333
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14334
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14335
 
 
14336
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14337
  case $host_os in
 
14338
  aix[4-9]*)
 
14339
    # If we're using GNU nm, then we don't want the "-C" option.
 
14340
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14341
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14342
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14343
    else
 
14344
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14345
    fi
 
14346
    ;;
 
14347
  pw32*)
 
14348
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14349
  ;;
 
14350
  cygwin* | mingw* | cegcc*)
 
14351
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14352
  ;;
 
14353
  *)
 
14354
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14355
  ;;
 
14356
  esac
 
14357
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14358
 
 
14359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14360
$as_echo "$ld_shlibs_CXX" >&6; }
 
14361
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14362
 
 
14363
with_gnu_ld_CXX=$with_gnu_ld
 
14364
 
 
14365
 
 
14366
 
 
14367
 
 
14368
 
 
14369
 
 
14370
#
 
14371
# Do we need to explicitly link libc?
 
14372
#
 
14373
case "x$archive_cmds_need_lc_CXX" in
 
14374
x|xyes)
 
14375
  # Assume -lc should be added
 
14376
  archive_cmds_need_lc_CXX=yes
 
14377
 
 
14378
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14379
    case $archive_cmds_CXX in
 
14380
    *'~'*)
 
14381
      # FIXME: we may have to deal with multi-command sequences.
 
14382
      ;;
 
14383
    '$CC '*)
 
14384
      # Test whether the compiler implicitly links with -lc since on some
 
14385
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14386
      # to ld, don't add -lc before -lgcc.
 
14387
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14388
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14389
      $RM conftest*
 
14390
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14391
 
 
14392
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14393
  (eval $ac_compile) 2>&5
 
14394
  ac_status=$?
 
14395
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14396
  test $ac_status = 0; } 2>conftest.err; then
 
14397
        soname=conftest
 
14398
        lib=conftest
 
14399
        libobjs=conftest.$ac_objext
 
14400
        deplibs=
 
14401
        wl=$lt_prog_compiler_wl_CXX
 
14402
        pic_flag=$lt_prog_compiler_pic_CXX
 
14403
        compiler_flags=-v
 
14404
        linker_flags=-v
 
14405
        verstring=
 
14406
        output_objdir=.
 
14407
        libname=conftest
 
14408
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14409
        allow_undefined_flag_CXX=
 
14410
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14411
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14412
  ac_status=$?
 
14413
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14414
  test $ac_status = 0; }
 
14415
        then
 
14416
          archive_cmds_need_lc_CXX=no
 
14417
        else
 
14418
          archive_cmds_need_lc_CXX=yes
 
14419
        fi
 
14420
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14421
      else
 
14422
        cat conftest.err 1>&5
 
14423
      fi
 
14424
      $RM conftest*
 
14425
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
 
14426
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
14427
      ;;
 
14428
    esac
 
14429
  fi
 
14430
  ;;
 
14431
esac
 
14432
 
 
14433
 
 
14434
 
 
14435
 
 
14436
 
 
14437
 
 
14438
 
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
 
 
14444
 
 
14445
 
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
 
 
14451
 
 
14452
 
 
14453
 
 
14454
 
 
14455
 
 
14456
 
 
14457
 
 
14458
 
 
14459
 
 
14460
 
 
14461
 
 
14462
 
 
14463
 
 
14464
 
 
14465
 
 
14466
 
 
14467
 
 
14468
 
 
14469
 
 
14470
 
 
14471
 
 
14472
 
 
14473
 
 
14474
 
 
14475
 
 
14476
 
 
14477
 
 
14478
 
 
14479
 
 
14480
 
 
14481
 
 
14482
 
 
14483
 
 
14484
 
 
14485
 
 
14486
 
 
14487
 
 
14488
 
 
14489
 
 
14490
 
 
14491
 
 
14492
 
 
14493
 
 
14494
 
 
14495
 
 
14496
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14497
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14498
 
 
14499
library_names_spec=
 
14500
libname_spec='lib$name'
 
14501
soname_spec=
 
14502
shrext_cmds=".so"
 
14503
postinstall_cmds=
 
14504
postuninstall_cmds=
 
14505
finish_cmds=
 
14506
finish_eval=
 
14507
shlibpath_var=
 
14508
shlibpath_overrides_runpath=unknown
 
14509
version_type=none
 
14510
dynamic_linker="$host_os ld.so"
 
14511
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14512
need_lib_prefix=unknown
 
14513
hardcode_into_libs=no
 
14514
 
 
14515
# when you set need_version to no, make sure it does not cause -set_version
 
14516
# flags to be left without arguments
 
14517
need_version=unknown
 
14518
 
 
14519
case $host_os in
 
14520
aix3*)
 
14521
  version_type=linux
 
14522
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14523
  shlibpath_var=LIBPATH
 
14524
 
 
14525
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14526
  soname_spec='${libname}${release}${shared_ext}$major'
 
14527
  ;;
 
14528
 
 
14529
aix[4-9]*)
 
14530
  version_type=linux
 
14531
  need_lib_prefix=no
 
14532
  need_version=no
 
14533
  hardcode_into_libs=yes
 
14534
  if test "$host_cpu" = ia64; then
 
14535
    # AIX 5 supports IA64
 
14536
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14537
    shlibpath_var=LD_LIBRARY_PATH
 
14538
  else
 
14539
    # With GCC up to 2.95.x, collect2 would create an import file
 
14540
    # for dependence libraries.  The import file would start with
 
14541
    # the line `#! .'.  This would cause the generated library to
 
14542
    # depend on `.', always an invalid library.  This was fixed in
 
14543
    # development snapshots of GCC prior to 3.0.
 
14544
    case $host_os in
 
14545
      aix4 | aix4.[01] | aix4.[01].*)
 
14546
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14547
           echo ' yes '
 
14548
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14549
        :
 
14550
      else
 
14551
        can_build_shared=no
 
14552
      fi
 
14553
      ;;
 
14554
    esac
 
14555
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14556
    # soname into executable. Probably we can add versioning support to
 
14557
    # collect2, so additional links can be useful in future.
 
14558
    if test "$aix_use_runtimelinking" = yes; then
 
14559
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14560
      # instead of lib<name>.a to let people know that these are not
 
14561
      # typical AIX shared libraries.
 
14562
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14563
    else
 
14564
      # We preserve .a as extension for shared libraries through AIX4.2
 
14565
      # and later when we are not doing run time linking.
 
14566
      library_names_spec='${libname}${release}.a $libname.a'
 
14567
      soname_spec='${libname}${release}${shared_ext}$major'
 
14568
    fi
 
14569
    shlibpath_var=LIBPATH
 
14570
  fi
 
14571
  ;;
 
14572
 
 
14573
amigaos*)
 
14574
  case $host_cpu in
 
14575
  powerpc)
 
14576
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14577
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14578
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14579
    ;;
 
14580
  m68k)
 
14581
    library_names_spec='$libname.ixlibrary $libname.a'
 
14582
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14583
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14584
    ;;
 
14585
  esac
 
14586
  ;;
 
14587
 
 
14588
beos*)
 
14589
  library_names_spec='${libname}${shared_ext}'
 
14590
  dynamic_linker="$host_os ld.so"
 
14591
  shlibpath_var=LIBRARY_PATH
 
14592
  ;;
 
14593
 
 
14594
bsdi[45]*)
 
14595
  version_type=linux
 
14596
  need_version=no
 
14597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14598
  soname_spec='${libname}${release}${shared_ext}$major'
 
14599
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14600
  shlibpath_var=LD_LIBRARY_PATH
 
14601
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14602
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14603
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14604
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14605
  # libtool to hard-code these into programs
 
14606
  ;;
 
14607
 
 
14608
cygwin* | mingw* | pw32* | cegcc*)
 
14609
  version_type=windows
 
14610
  shrext_cmds=".dll"
 
14611
  need_version=no
 
14612
  need_lib_prefix=no
 
14613
 
 
14614
  case $GCC,$host_os in
 
14615
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
14616
    library_names_spec='$libname.dll.a'
 
14617
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14618
    postinstall_cmds='base_file=`basename \${file}`~
 
14619
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14620
      dldir=$destdir/`dirname \$dlpath`~
 
14621
      test -d \$dldir || mkdir -p \$dldir~
 
14622
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14623
      chmod a+x \$dldir/$dlname~
 
14624
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14625
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14626
      fi'
 
14627
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14628
      dlpath=$dir/\$dldll~
 
14629
       $RM \$dlpath'
 
14630
    shlibpath_overrides_runpath=yes
 
14631
 
 
14632
    case $host_os in
 
14633
    cygwin*)
 
14634
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14635
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14636
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14637
      ;;
 
14638
    mingw* | cegcc*)
 
14639
      # MinGW DLLs use traditional 'lib' prefix
 
14640
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14641
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14642
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14643
        # It is most probably a Windows format PATH printed by
 
14644
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14645
        # path with ; separators, and with drive letters. We can handle the
 
14646
        # drive letters (cygwin fileutils understands them), so leave them,
 
14647
        # especially as we might pass files found there to a mingw objdump,
 
14648
        # which wouldn't understand a cygwinified path. Ahh.
 
14649
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14650
      else
 
14651
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14652
      fi
 
14653
      ;;
 
14654
    pw32*)
 
14655
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14656
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14657
      ;;
 
14658
    esac
 
14659
    ;;
 
14660
 
 
14661
  *)
 
14662
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14663
    ;;
 
14664
  esac
 
14665
  dynamic_linker='Win32 ld.exe'
 
14666
  # FIXME: first we should search . and the directory the executable is in
 
14667
  shlibpath_var=PATH
 
14668
  ;;
 
14669
 
 
14670
darwin* | rhapsody*)
 
14671
  dynamic_linker="$host_os dyld"
 
14672
  version_type=darwin
 
14673
  need_lib_prefix=no
 
14674
  need_version=no
 
14675
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14676
  soname_spec='${libname}${release}${major}$shared_ext'
 
14677
  shlibpath_overrides_runpath=yes
 
14678
  shlibpath_var=DYLD_LIBRARY_PATH
 
14679
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14680
 
 
14681
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14682
  ;;
 
14683
 
 
14684
dgux*)
 
14685
  version_type=linux
 
14686
  need_lib_prefix=no
 
14687
  need_version=no
 
14688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14689
  soname_spec='${libname}${release}${shared_ext}$major'
 
14690
  shlibpath_var=LD_LIBRARY_PATH
 
14691
  ;;
 
14692
 
 
14693
freebsd1*)
 
14694
  dynamic_linker=no
 
14695
  ;;
 
14696
 
 
14697
freebsd* | dragonfly*)
 
14698
  # DragonFly does not have aout.  When/if they implement a new
 
14699
  # versioning mechanism, adjust this.
 
14700
  if test -x /usr/bin/objformat; then
 
14701
    objformat=`/usr/bin/objformat`
 
14702
  else
 
14703
    case $host_os in
 
14704
    freebsd[123]*) objformat=aout ;;
 
14705
    *) objformat=elf ;;
 
14706
    esac
 
14707
  fi
 
14708
  version_type=freebsd-$objformat
 
14709
  case $version_type in
 
14710
    freebsd-elf*)
 
14711
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14712
      need_version=no
 
14713
      need_lib_prefix=no
 
14714
      ;;
 
14715
    freebsd-*)
 
14716
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14717
      need_version=yes
 
14718
      ;;
 
14719
  esac
 
14720
  shlibpath_var=LD_LIBRARY_PATH
 
14721
  case $host_os in
 
14722
  freebsd2*)
 
14723
    shlibpath_overrides_runpath=yes
 
14724
    ;;
 
14725
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14726
    shlibpath_overrides_runpath=yes
 
14727
    hardcode_into_libs=yes
 
14728
    ;;
 
14729
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14730
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14731
    shlibpath_overrides_runpath=no
 
14732
    hardcode_into_libs=yes
 
14733
    ;;
 
14734
  *) # from 4.6 on, and DragonFly
 
14735
    shlibpath_overrides_runpath=yes
 
14736
    hardcode_into_libs=yes
 
14737
    ;;
 
14738
  esac
 
14739
  ;;
 
14740
 
 
14741
gnu*)
 
14742
  version_type=linux
 
14743
  need_lib_prefix=no
 
14744
  need_version=no
 
14745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14746
  soname_spec='${libname}${release}${shared_ext}$major'
 
14747
  shlibpath_var=LD_LIBRARY_PATH
 
14748
  hardcode_into_libs=yes
 
14749
  ;;
 
14750
 
 
14751
hpux9* | hpux10* | hpux11*)
 
14752
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14753
  # link against other versions.
 
14754
  version_type=sunos
 
14755
  need_lib_prefix=no
 
14756
  need_version=no
 
14757
  case $host_cpu in
 
14758
  ia64*)
 
14759
    shrext_cmds='.so'
 
14760
    hardcode_into_libs=yes
 
14761
    dynamic_linker="$host_os dld.so"
 
14762
    shlibpath_var=LD_LIBRARY_PATH
 
14763
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14764
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14765
    soname_spec='${libname}${release}${shared_ext}$major'
 
14766
    if test "X$HPUX_IA64_MODE" = X32; then
 
14767
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14768
    else
 
14769
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14770
    fi
 
14771
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14772
    ;;
 
14773
  hppa*64*)
 
14774
    shrext_cmds='.sl'
 
14775
    hardcode_into_libs=yes
 
14776
    dynamic_linker="$host_os dld.sl"
 
14777
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14778
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14779
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14780
    soname_spec='${libname}${release}${shared_ext}$major'
 
14781
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14782
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14783
    ;;
 
14784
  *)
 
14785
    shrext_cmds='.sl'
 
14786
    dynamic_linker="$host_os dld.sl"
 
14787
    shlibpath_var=SHLIB_PATH
 
14788
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14789
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14790
    soname_spec='${libname}${release}${shared_ext}$major'
 
14791
    ;;
 
14792
  esac
 
14793
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14794
  postinstall_cmds='chmod 555 $lib'
 
14795
  ;;
 
14796
 
 
14797
interix[3-9]*)
 
14798
  version_type=linux
 
14799
  need_lib_prefix=no
 
14800
  need_version=no
 
14801
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14802
  soname_spec='${libname}${release}${shared_ext}$major'
 
14803
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14804
  shlibpath_var=LD_LIBRARY_PATH
 
14805
  shlibpath_overrides_runpath=no
 
14806
  hardcode_into_libs=yes
 
14807
  ;;
 
14808
 
 
14809
irix5* | irix6* | nonstopux*)
 
14810
  case $host_os in
 
14811
    nonstopux*) version_type=nonstopux ;;
 
14812
    *)
 
14813
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14814
                version_type=linux
 
14815
        else
 
14816
                version_type=irix
 
14817
        fi ;;
 
14818
  esac
 
14819
  need_lib_prefix=no
 
14820
  need_version=no
 
14821
  soname_spec='${libname}${release}${shared_ext}$major'
 
14822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14823
  case $host_os in
 
14824
  irix5* | nonstopux*)
 
14825
    libsuff= shlibsuff=
 
14826
    ;;
 
14827
  *)
 
14828
    case $LD in # libtool.m4 will add one of these switches to LD
 
14829
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14830
      libsuff= shlibsuff= libmagic=32-bit;;
 
14831
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14832
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14833
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14834
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14835
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14836
    esac
 
14837
    ;;
 
14838
  esac
 
14839
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14840
  shlibpath_overrides_runpath=no
 
14841
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14842
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14843
  hardcode_into_libs=yes
 
14844
  ;;
 
14845
 
 
14846
# No shared lib support for Linux oldld, aout, or coff.
 
14847
linux*oldld* | linux*aout* | linux*coff*)
 
14848
  dynamic_linker=no
 
14849
  ;;
 
14850
 
 
14851
# This must be Linux ELF.
 
14852
linux* | k*bsd*-gnu)
 
14853
  version_type=linux
 
14854
  need_lib_prefix=no
 
14855
  need_version=no
 
14856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14857
  soname_spec='${libname}${release}${shared_ext}$major'
 
14858
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14859
  shlibpath_var=LD_LIBRARY_PATH
 
14860
  shlibpath_overrides_runpath=no
 
14861
  # Some binutils ld are patched to set DT_RUNPATH
 
14862
  save_LDFLAGS=$LDFLAGS
 
14863
  save_libdir=$libdir
 
14864
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14865
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14867
/* end confdefs.h.  */
 
14868
 
 
14869
int
 
14870
main ()
 
14871
{
 
14872
 
 
14873
  ;
 
14874
  return 0;
 
14875
}
 
14876
_ACEOF
 
14877
if ac_fn_cxx_try_link "$LINENO"; then :
 
14878
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14879
  shlibpath_overrides_runpath=yes
 
14880
fi
 
14881
fi
 
14882
rm -f core conftest.err conftest.$ac_objext \
 
14883
    conftest$ac_exeext conftest.$ac_ext
 
14884
  LDFLAGS=$save_LDFLAGS
 
14885
  libdir=$save_libdir
 
14886
 
 
14887
  # This implies no fast_install, which is unacceptable.
 
14888
  # Some rework will be needed to allow for fast_install
 
14889
  # before this can be enabled.
 
14890
  hardcode_into_libs=yes
 
14891
 
 
14892
  # Append ld.so.conf contents to the search path
 
14893
  if test -f /etc/ld.so.conf; then
 
14894
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14895
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14896
  fi
 
14897
 
 
14898
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14899
  # powerpc, because MkLinux only supported shared libraries with the
 
14900
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14901
  # most powerpc-linux boxes support dynamic linking these days and
 
14902
  # people can always --disable-shared, the test was removed, and we
 
14903
  # assume the GNU/Linux dynamic linker is in use.
 
14904
  dynamic_linker='GNU/Linux ld.so'
 
14905
  ;;
 
14906
 
 
14907
netbsd*)
 
14908
  version_type=sunos
 
14909
  need_lib_prefix=no
 
14910
  need_version=no
 
14911
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14913
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14914
    dynamic_linker='NetBSD (a.out) ld.so'
 
14915
  else
 
14916
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14917
    soname_spec='${libname}${release}${shared_ext}$major'
 
14918
    dynamic_linker='NetBSD ld.elf_so'
 
14919
  fi
 
14920
  shlibpath_var=LD_LIBRARY_PATH
 
14921
  shlibpath_overrides_runpath=yes
 
14922
  hardcode_into_libs=yes
 
14923
  ;;
 
14924
 
 
14925
newsos6)
 
14926
  version_type=linux
 
14927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14928
  shlibpath_var=LD_LIBRARY_PATH
 
14929
  shlibpath_overrides_runpath=yes
 
14930
  ;;
 
14931
 
 
14932
*nto* | *qnx*)
 
14933
  version_type=qnx
 
14934
  need_lib_prefix=no
 
14935
  need_version=no
 
14936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14937
  soname_spec='${libname}${release}${shared_ext}$major'
 
14938
  shlibpath_var=LD_LIBRARY_PATH
 
14939
  shlibpath_overrides_runpath=no
 
14940
  hardcode_into_libs=yes
 
14941
  dynamic_linker='ldqnx.so'
 
14942
  ;;
 
14943
 
 
14944
openbsd*)
 
14945
  version_type=sunos
 
14946
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14947
  need_lib_prefix=no
 
14948
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14949
  case $host_os in
 
14950
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14951
    *)                          need_version=no  ;;
 
14952
  esac
 
14953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14954
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14955
  shlibpath_var=LD_LIBRARY_PATH
 
14956
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14957
    case $host_os in
 
14958
      openbsd2.[89] | openbsd2.[89].*)
 
14959
        shlibpath_overrides_runpath=no
 
14960
        ;;
 
14961
      *)
 
14962
        shlibpath_overrides_runpath=yes
 
14963
        ;;
 
14964
      esac
 
14965
  else
 
14966
    shlibpath_overrides_runpath=yes
 
14967
  fi
 
14968
  ;;
 
14969
 
 
14970
os2*)
 
14971
  libname_spec='$name'
 
14972
  shrext_cmds=".dll"
 
14973
  need_lib_prefix=no
 
14974
  library_names_spec='$libname${shared_ext} $libname.a'
 
14975
  dynamic_linker='OS/2 ld.exe'
 
14976
  shlibpath_var=LIBPATH
 
14977
  ;;
 
14978
 
 
14979
osf3* | osf4* | osf5*)
 
14980
  version_type=osf
 
14981
  need_lib_prefix=no
 
14982
  need_version=no
 
14983
  soname_spec='${libname}${release}${shared_ext}$major'
 
14984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14985
  shlibpath_var=LD_LIBRARY_PATH
 
14986
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14987
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14988
  ;;
 
14989
 
 
14990
rdos*)
 
14991
  dynamic_linker=no
 
14992
  ;;
 
14993
 
 
14994
solaris*)
 
14995
  version_type=linux
 
14996
  need_lib_prefix=no
 
14997
  need_version=no
 
14998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14999
  soname_spec='${libname}${release}${shared_ext}$major'
 
15000
  shlibpath_var=LD_LIBRARY_PATH
 
15001
  shlibpath_overrides_runpath=yes
 
15002
  hardcode_into_libs=yes
 
15003
  # ldd complains unless libraries are executable
 
15004
  postinstall_cmds='chmod +x $lib'
 
15005
  ;;
 
15006
 
 
15007
sunos4*)
 
15008
  version_type=sunos
 
15009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15010
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15011
  shlibpath_var=LD_LIBRARY_PATH
 
15012
  shlibpath_overrides_runpath=yes
 
15013
  if test "$with_gnu_ld" = yes; then
 
15014
    need_lib_prefix=no
 
15015
  fi
 
15016
  need_version=yes
 
15017
  ;;
 
15018
 
 
15019
sysv4 | sysv4.3*)
 
15020
  version_type=linux
 
15021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15022
  soname_spec='${libname}${release}${shared_ext}$major'
 
15023
  shlibpath_var=LD_LIBRARY_PATH
 
15024
  case $host_vendor in
 
15025
    sni)
 
15026
      shlibpath_overrides_runpath=no
 
15027
      need_lib_prefix=no
 
15028
      runpath_var=LD_RUN_PATH
 
15029
      ;;
 
15030
    siemens)
 
15031
      need_lib_prefix=no
 
15032
      ;;
 
15033
    motorola)
 
15034
      need_lib_prefix=no
 
15035
      need_version=no
 
15036
      shlibpath_overrides_runpath=no
 
15037
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15038
      ;;
 
15039
  esac
 
15040
  ;;
 
15041
 
 
15042
sysv4*MP*)
 
15043
  if test -d /usr/nec ;then
 
15044
    version_type=linux
 
15045
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15046
    soname_spec='$libname${shared_ext}.$major'
 
15047
    shlibpath_var=LD_LIBRARY_PATH
 
15048
  fi
 
15049
  ;;
 
15050
 
 
15051
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15052
  version_type=freebsd-elf
 
15053
  need_lib_prefix=no
 
15054
  need_version=no
 
15055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15056
  soname_spec='${libname}${release}${shared_ext}$major'
 
15057
  shlibpath_var=LD_LIBRARY_PATH
 
15058
  shlibpath_overrides_runpath=yes
 
15059
  hardcode_into_libs=yes
 
15060
  if test "$with_gnu_ld" = yes; then
 
15061
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15062
  else
 
15063
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15064
    case $host_os in
 
15065
      sco3.2v5*)
 
15066
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15067
        ;;
 
15068
    esac
 
15069
  fi
 
15070
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15071
  ;;
 
15072
 
 
15073
tpf*)
 
15074
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15075
  version_type=linux
 
15076
  need_lib_prefix=no
 
15077
  need_version=no
 
15078
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15079
  shlibpath_var=LD_LIBRARY_PATH
 
15080
  shlibpath_overrides_runpath=no
 
15081
  hardcode_into_libs=yes
 
15082
  ;;
 
15083
 
 
15084
uts4*)
 
15085
  version_type=linux
 
15086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15087
  soname_spec='${libname}${release}${shared_ext}$major'
 
15088
  shlibpath_var=LD_LIBRARY_PATH
 
15089
  ;;
 
15090
 
 
15091
*)
 
15092
  dynamic_linker=no
 
15093
  ;;
 
15094
esac
 
15095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15096
$as_echo "$dynamic_linker" >&6; }
 
15097
test "$dynamic_linker" = no && can_build_shared=no
 
15098
 
 
15099
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15100
if test "$GCC" = yes; then
 
15101
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15102
fi
 
15103
 
 
15104
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15105
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15106
fi
 
15107
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15108
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15109
fi
 
15110
 
 
15111
 
 
15112
 
 
15113
 
 
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
 
 
15122
 
 
15123
 
 
15124
 
 
15125
 
 
15126
 
 
15127
 
 
15128
 
 
15129
 
 
15130
 
 
15131
 
 
15132
 
 
15133
 
 
15134
 
 
15135
 
 
15136
 
 
15137
 
 
15138
 
 
15139
 
 
15140
 
 
15141
 
 
15142
 
 
15143
 
 
15144
 
 
15145
 
 
15146
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15147
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15148
hardcode_action_CXX=
 
15149
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15150
   test -n "$runpath_var_CXX" ||
 
15151
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15152
 
 
15153
  # We can hardcode non-existent directories.
 
15154
  if test "$hardcode_direct_CXX" != no &&
 
15155
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15156
     # have to relink, otherwise we might link with an installed library
 
15157
     # when we should be linking with a yet-to-be-installed one
 
15158
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15159
     test "$hardcode_minus_L_CXX" != no; then
 
15160
    # Linking always hardcodes the temporary library directory.
 
15161
    hardcode_action_CXX=relink
 
15162
  else
 
15163
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15164
    hardcode_action_CXX=immediate
 
15165
  fi
 
15166
else
 
15167
  # We cannot hardcode anything, or else we can only hardcode existing
 
15168
  # directories.
 
15169
  hardcode_action_CXX=unsupported
 
15170
fi
 
15171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15172
$as_echo "$hardcode_action_CXX" >&6; }
 
15173
 
 
15174
if test "$hardcode_action_CXX" = relink ||
 
15175
   test "$inherit_rpath_CXX" = yes; then
 
15176
  # Fast installation is not supported
 
15177
  enable_fast_install=no
 
15178
elif test "$shlibpath_overrides_runpath" = yes ||
 
15179
     test "$enable_shared" = no; then
 
15180
  # Fast installation is not necessary
 
15181
  enable_fast_install=needless
 
15182
fi
 
15183
 
 
15184
 
 
15185
 
 
15186
 
 
15187
 
 
15188
 
 
15189
 
 
15190
  fi # test -n "$compiler"
 
15191
 
 
15192
  CC=$lt_save_CC
 
15193
  LDCXX=$LD
 
15194
  LD=$lt_save_LD
 
15195
  GCC=$lt_save_GCC
 
15196
  with_gnu_ld=$lt_save_with_gnu_ld
 
15197
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15198
  lt_cv_path_LD=$lt_save_path_LD
 
15199
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15200
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15201
fi # test "$_lt_caught_CXX_error" != yes
 
15202
 
 
15203
ac_ext=c
 
15204
ac_cpp='$CPP $CPPFLAGS'
 
15205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15208
 
 
15209
 
 
15210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
15211
$as_echo_n "checking whether ln -s works... " >&6; }
 
15212
LN_S=$as_ln_s
 
15213
if test "$LN_S" = "ln -s"; then
 
15214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15215
$as_echo "yes" >&6; }
 
15216
else
 
15217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
15218
$as_echo "no, using $LN_S" >&6; }
 
15219
fi
 
15220
 
 
15221
 
 
15222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
15223
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
15224
set x ${MAKE-make}
 
15225
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
15226
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
15227
  $as_echo_n "(cached) " >&6
 
15228
else
 
15229
  cat >conftest.make <<\_ACEOF
 
15230
SHELL = /bin/sh
 
15231
all:
 
15232
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
15233
_ACEOF
 
15234
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
15235
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
15236
  *@@@%%%=?*=@@@%%%*)
 
15237
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
15238
  *)
 
15239
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
15240
esac
 
15241
rm -f conftest.make
 
15242
fi
 
15243
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
15244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15245
$as_echo "yes" >&6; }
 
15246
  SET_MAKE=
 
15247
else
 
15248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15249
$as_echo "no" >&6; }
 
15250
  SET_MAKE="MAKE=${MAKE-make}"
 
15251
fi
 
15252
 
 
15253
 
 
15254
 
 
15255
# Extract the first word of "gengetopt", so it can be a program name with args.
 
15256
set dummy gengetopt; ac_word=$2
 
15257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15258
$as_echo_n "checking for $ac_word... " >&6; }
 
15259
if test "${ac_cv_path_GENGETOPT+set}" = set; then :
 
15260
  $as_echo_n "(cached) " >&6
 
15261
else
 
15262
  case $GENGETOPT in
 
15263
  [\\/]* | ?:[\\/]*)
 
15264
  ac_cv_path_GENGETOPT="$GENGETOPT" # Let the user override the test with a path.
 
15265
  ;;
 
15266
  *)
 
15267
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15268
for as_dir in $PATH
 
15269
do
 
15270
  IFS=$as_save_IFS
 
15271
  test -z "$as_dir" && as_dir=.
 
15272
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15273
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15274
    ac_cv_path_GENGETOPT="$as_dir/$ac_word$ac_exec_ext"
 
15275
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15276
    break 2
 
15277
  fi
 
15278
done
 
15279
  done
 
15280
IFS=$as_save_IFS
 
15281
 
 
15282
  test -z "$ac_cv_path_GENGETOPT" && ac_cv_path_GENGETOPT="no"
 
15283
  ;;
 
15284
esac
 
15285
fi
 
15286
GENGETOPT=$ac_cv_path_GENGETOPT
 
15287
if test -n "$GENGETOPT"; then
 
15288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENGETOPT" >&5
 
15289
$as_echo "$GENGETOPT" >&6; }
 
15290
else
 
15291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15292
$as_echo "no" >&6; }
 
15293
fi
 
15294
 
 
15295
 
 
15296
 if test x"$GENGETOPT" != "xno"; then
 
15297
  HAVE_GENGETOPT_TRUE=
 
15298
  HAVE_GENGETOPT_FALSE='#'
 
15299
else
 
15300
  HAVE_GENGETOPT_TRUE='#'
 
15301
  HAVE_GENGETOPT_FALSE=
 
15302
fi
 
15303
 
 
15304
 
 
15305
 
 
15306
# Extract the first word of "doxygen", so it can be a program name with args.
 
15307
set dummy doxygen; ac_word=$2
 
15308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15309
$as_echo_n "checking for $ac_word... " >&6; }
 
15310
if test "${ac_cv_path_DOXYGEN+set}" = set; then :
 
15311
  $as_echo_n "(cached) " >&6
 
15312
else
 
15313
  case $DOXYGEN in
 
15314
  [\\/]* | ?:[\\/]*)
 
15315
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
15316
  ;;
 
15317
  *)
 
15318
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15319
for as_dir in $PATH
 
15320
do
 
15321
  IFS=$as_save_IFS
 
15322
  test -z "$as_dir" && as_dir=.
 
15323
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15325
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
15326
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15327
    break 2
 
15328
  fi
 
15329
done
 
15330
  done
 
15331
IFS=$as_save_IFS
 
15332
 
 
15333
  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
 
15334
  ;;
 
15335
esac
 
15336
fi
 
15337
DOXYGEN=$ac_cv_path_DOXYGEN
 
15338
if test -n "$DOXYGEN"; then
 
15339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
15340
$as_echo "$DOXYGEN" >&6; }
 
15341
else
 
15342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15343
$as_echo "no" >&6; }
 
15344
fi
 
15345
 
 
15346
 
 
15347
 if test x"$DOXYGEN" != "xno"; then
 
15348
  HAVE_DOXYGEN_TRUE=
 
15349
  HAVE_DOXYGEN_FALSE='#'
 
15350
else
 
15351
  HAVE_DOXYGEN_TRUE='#'
 
15352
  HAVE_DOXYGEN_FALSE=
 
15353
fi
 
15354
 
 
15355
 
 
15356
 
 
15357
# Extract the first word of "perl", so it can be a program name with args.
 
15358
set dummy perl; ac_word=$2
 
15359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15360
$as_echo_n "checking for $ac_word... " >&6; }
 
15361
if test "${ac_cv_path_PERL+set}" = set; then :
 
15362
  $as_echo_n "(cached) " >&6
 
15363
else
 
15364
  case $PERL in
 
15365
  [\\/]* | ?:[\\/]*)
 
15366
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
15367
  ;;
 
15368
  *)
 
15369
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15370
for as_dir in $PATH
 
15371
do
 
15372
  IFS=$as_save_IFS
 
15373
  test -z "$as_dir" && as_dir=.
 
15374
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15376
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
15377
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15378
    break 2
 
15379
  fi
 
15380
done
 
15381
  done
 
15382
IFS=$as_save_IFS
 
15383
 
 
15384
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
 
15385
  ;;
 
15386
esac
 
15387
fi
 
15388
PERL=$ac_cv_path_PERL
 
15389
if test -n "$PERL"; then
 
15390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
15391
$as_echo "$PERL" >&6; }
 
15392
else
 
15393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15394
$as_echo "no" >&6; }
 
15395
fi
 
15396
 
 
15397
 
 
15398
 if test x"$PERL" != "xno"; then
 
15399
  HAVE_PERL_TRUE=
 
15400
  HAVE_PERL_FALSE='#'
 
15401
else
 
15402
  HAVE_PERL_TRUE='#'
 
15403
  HAVE_PERL_FALSE=
 
15404
fi
 
15405
 
 
15406
 
 
15407
 
 
15408
have_pod_checker=no
 
15409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pod::Checker" >&5
 
15410
$as_echo_n "checking for Pod::Checker... " >&6; }
 
15411
if  $PERL -mPod::Checker >/dev/null 2>&1 ; then
 
15412
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15413
$as_echo "yes" >&6; }
 
15414
    have_pod_checker=yes
 
15415
fi
 
15416
 if test x"$have_pod_checker" = "xyes"; then
 
15417
  HAVE_PERL_POD_CHECKER_TRUE=
 
15418
  HAVE_PERL_POD_CHECKER_FALSE='#'
 
15419
else
 
15420
  HAVE_PERL_POD_CHECKER_TRUE='#'
 
15421
  HAVE_PERL_POD_CHECKER_FALSE=
 
15422
fi
 
15423
 
 
15424
 
 
15425
# Extract the first word of "pod2man", so it can be a program name with args.
 
15426
set dummy pod2man; ac_word=$2
 
15427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15428
$as_echo_n "checking for $ac_word... " >&6; }
 
15429
if test "${ac_cv_path_POD2MAN+set}" = set; then :
 
15430
  $as_echo_n "(cached) " >&6
 
15431
else
 
15432
  case $POD2MAN in
 
15433
  [\\/]* | ?:[\\/]*)
 
15434
  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
 
15435
  ;;
 
15436
  *)
 
15437
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15438
for as_dir in $PATH
 
15439
do
 
15440
  IFS=$as_save_IFS
 
15441
  test -z "$as_dir" && as_dir=.
 
15442
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15443
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15444
    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
 
15445
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15446
    break 2
 
15447
  fi
 
15448
done
 
15449
  done
 
15450
IFS=$as_save_IFS
 
15451
 
 
15452
  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
 
15453
  ;;
 
15454
esac
 
15455
fi
 
15456
POD2MAN=$ac_cv_path_POD2MAN
 
15457
if test -n "$POD2MAN"; then
 
15458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
 
15459
$as_echo "$POD2MAN" >&6; }
 
15460
else
 
15461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15462
$as_echo "no" >&6; }
 
15463
fi
 
15464
 
 
15465
 
 
15466
 if test x"$POD2MAN" != "xno"; then
 
15467
  HAVE_POD2MAN_TRUE=
 
15468
  HAVE_POD2MAN_FALSE='#'
 
15469
else
 
15470
  HAVE_POD2MAN_TRUE='#'
 
15471
  HAVE_POD2MAN_FALSE=
 
15472
fi
 
15473
 
 
15474
 
 
15475
 
 
15476
# Extract the first word of "pod2html", so it can be a program name with args.
 
15477
set dummy pod2html; ac_word=$2
 
15478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15479
$as_echo_n "checking for $ac_word... " >&6; }
 
15480
if test "${ac_cv_path_POD2HTML+set}" = set; then :
 
15481
  $as_echo_n "(cached) " >&6
 
15482
else
 
15483
  case $POD2HTML in
 
15484
  [\\/]* | ?:[\\/]*)
 
15485
  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
 
15486
  ;;
 
15487
  *)
 
15488
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15489
for as_dir in $PATH
 
15490
do
 
15491
  IFS=$as_save_IFS
 
15492
  test -z "$as_dir" && as_dir=.
 
15493
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15494
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15495
    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
 
15496
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15497
    break 2
 
15498
  fi
 
15499
done
 
15500
  done
 
15501
IFS=$as_save_IFS
 
15502
 
 
15503
  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
 
15504
  ;;
 
15505
esac
 
15506
fi
 
15507
POD2HTML=$ac_cv_path_POD2HTML
 
15508
if test -n "$POD2HTML"; then
 
15509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
 
15510
$as_echo "$POD2HTML" >&6; }
 
15511
else
 
15512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15513
$as_echo "no" >&6; }
 
15514
fi
 
15515
 
 
15516
 
 
15517
 if test x"$POD2HTML" != "xno"; then
 
15518
  HAVE_POD2HTML_TRUE=
 
15519
  HAVE_POD2HTML_FALSE='#'
 
15520
else
 
15521
  HAVE_POD2HTML_TRUE='#'
 
15522
  HAVE_POD2HTML_FALSE=
 
15523
fi
 
15524
 
 
15525
 
 
15526
 
 
15527
build_date=
 
15528
# Extract the first word of "date", so it can be a program name with args.
 
15529
set dummy date; ac_word=$2
 
15530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15531
$as_echo_n "checking for $ac_word... " >&6; }
 
15532
if test "${ac_cv_path_DATE+set}" = set; then :
 
15533
  $as_echo_n "(cached) " >&6
 
15534
else
 
15535
  case $DATE in
 
15536
  [\\/]* | ?:[\\/]*)
 
15537
  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
 
15538
  ;;
 
15539
  *)
 
15540
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15541
for as_dir in $PATH
 
15542
do
 
15543
  IFS=$as_save_IFS
 
15544
  test -z "$as_dir" && as_dir=.
 
15545
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15547
    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
 
15548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15549
    break 2
 
15550
  fi
 
15551
done
 
15552
  done
 
15553
IFS=$as_save_IFS
 
15554
 
 
15555
  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="no"
 
15556
  ;;
 
15557
esac
 
15558
fi
 
15559
DATE=$ac_cv_path_DATE
 
15560
if test -n "$DATE"; then
 
15561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
 
15562
$as_echo "$DATE" >&6; }
 
15563
else
 
15564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15565
$as_echo "no" >&6; }
 
15566
fi
 
15567
 
 
15568
 
 
15569
if  test x"$DATE" != "xno" ; then
 
15570
    build_date=`"$DATE" +%Y%m%d`
 
15571
fi
 
15572
 
 
15573
cat >>confdefs.h <<_ACEOF
 
15574
#define BUILD_DATE "$build_date"
 
15575
_ACEOF
 
15576
 
 
15577
 
 
15578
# Checks for libraries.
 
15579
 
 
15580
      if test "X$prefix" = "XNONE"; then
 
15581
    acl_final_prefix="$ac_default_prefix"
 
15582
  else
 
15583
    acl_final_prefix="$prefix"
 
15584
  fi
 
15585
  if test "X$exec_prefix" = "XNONE"; then
 
15586
    acl_final_exec_prefix='${prefix}'
 
15587
  else
 
15588
    acl_final_exec_prefix="$exec_prefix"
 
15589
  fi
 
15590
  acl_save_prefix="$prefix"
 
15591
  prefix="$acl_final_prefix"
 
15592
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
15593
  prefix="$acl_save_prefix"
 
15594
 
 
15595
 
 
15596
# Check whether --with-gnu-ld was given.
 
15597
if test "${with_gnu_ld+set}" = set; then :
 
15598
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
15599
else
 
15600
  with_gnu_ld=no
 
15601
fi
 
15602
 
 
15603
# Prepare PATH_SEPARATOR.
 
15604
# The user is always right.
 
15605
if test "${PATH_SEPARATOR+set}" != set; then
 
15606
  echo "#! /bin/sh" >conf$$.sh
 
15607
  echo  "exit 0"   >>conf$$.sh
 
15608
  chmod +x conf$$.sh
 
15609
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
15610
    PATH_SEPARATOR=';'
 
15611
  else
 
15612
    PATH_SEPARATOR=:
 
15613
  fi
 
15614
  rm -f conf$$.sh
 
15615
fi
 
15616
ac_prog=ld
 
15617
if test "$GCC" = yes; then
 
15618
  # Check if gcc -print-prog-name=ld gives a path.
 
15619
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
15620
$as_echo_n "checking for ld used by GCC... " >&6; }
 
15621
  case $host in
 
15622
  *-*-mingw*)
 
15623
    # gcc leaves a trailing carriage return which upsets mingw
 
15624
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
15625
  *)
 
15626
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
15627
  esac
 
15628
  case $ac_prog in
 
15629
    # Accept absolute paths.
 
15630
    [\\/]* | [A-Za-z]:[\\/]*)
 
15631
      re_direlt='/[^/][^/]*/\.\./'
 
15632
      # Canonicalize the path of ld
 
15633
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
15634
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
15635
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
15636
      done
 
15637
      test -z "$LD" && LD="$ac_prog"
 
15638
      ;;
 
15639
  "")
 
15640
    # If it fails, then pretend we aren't using GCC.
 
15641
    ac_prog=ld
 
15642
    ;;
 
15643
  *)
 
15644
    # If it is relative, then search for the first ld in PATH.
 
15645
    with_gnu_ld=unknown
 
15646
    ;;
 
15647
  esac
 
15648
elif test "$with_gnu_ld" = yes; then
 
15649
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
15650
$as_echo_n "checking for GNU ld... " >&6; }
 
15651
else
 
15652
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
15653
$as_echo_n "checking for non-GNU ld... " >&6; }
 
15654
fi
 
15655
if test "${acl_cv_path_LD+set}" = set; then :
 
15656
  $as_echo_n "(cached) " >&6
 
15657
else
 
15658
  if test -z "$LD"; then
 
15659
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
15660
  for ac_dir in $PATH; do
 
15661
    test -z "$ac_dir" && ac_dir=.
 
15662
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
15663
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
15664
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
15665
      # but apparently some GNU ld's only accept -v.
 
15666
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
15667
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
15668
      *GNU* | *'with BFD'*)
 
15669
        test "$with_gnu_ld" != no && break ;;
 
15670
      *)
 
15671
        test "$with_gnu_ld" != yes && break ;;
 
15672
      esac
 
15673
    fi
 
15674
  done
 
15675
  IFS="$ac_save_ifs"
 
15676
else
 
15677
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
15678
fi
 
15679
fi
 
15680
 
 
15681
LD="$acl_cv_path_LD"
 
15682
if test -n "$LD"; then
 
15683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
15684
$as_echo "$LD" >&6; }
 
15685
else
 
15686
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15687
$as_echo "no" >&6; }
 
15688
fi
 
15689
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
15691
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
15692
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
15693
  $as_echo_n "(cached) " >&6
 
15694
else
 
15695
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
15696
case `$LD -v 2>&1 </dev/null` in
 
15697
*GNU* | *'with BFD'*)
 
15698
  acl_cv_prog_gnu_ld=yes ;;
 
15699
*)
 
15700
  acl_cv_prog_gnu_ld=no ;;
 
15701
esac
 
15702
fi
 
15703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
15704
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
15705
with_gnu_ld=$acl_cv_prog_gnu_ld
 
15706
 
 
15707
 
 
15708
 
 
15709
 
 
15710
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
15711
$as_echo_n "checking for shared library run path origin... " >&6; }
 
15712
if test "${acl_cv_rpath+set}" = set; then :
 
15713
  $as_echo_n "(cached) " >&6
 
15714
else
 
15715
 
 
15716
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
15717
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
15718
    . ./conftest.sh
 
15719
    rm -f ./conftest.sh
 
15720
    acl_cv_rpath=done
 
15721
 
 
15722
fi
 
15723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
15724
$as_echo "$acl_cv_rpath" >&6; }
 
15725
  wl="$acl_cv_wl"
 
15726
  acl_libext="$acl_cv_libext"
 
15727
  acl_shlibext="$acl_cv_shlibext"
 
15728
  acl_libname_spec="$acl_cv_libname_spec"
 
15729
  acl_library_names_spec="$acl_cv_library_names_spec"
 
15730
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
15731
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
15732
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
15733
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
15734
    # Check whether --enable-rpath was given.
 
15735
if test "${enable_rpath+set}" = set; then :
 
15736
  enableval=$enable_rpath; :
 
15737
else
 
15738
  enable_rpath=yes
 
15739
fi
 
15740
 
 
15741
 
 
15742
 
 
15743
                  acl_libdirstem=lib
 
15744
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
15745
  if test -n "$searchpath"; then
 
15746
    acl_save_IFS="${IFS=        }"; IFS=":"
 
15747
    for searchdir in $searchpath; do
 
15748
      if test -d "$searchdir"; then
 
15749
        case "$searchdir" in
 
15750
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
15751
          *) searchdir=`cd "$searchdir" && pwd`
 
15752
             case "$searchdir" in
 
15753
               */lib64 ) acl_libdirstem=lib64 ;;
 
15754
             esac ;;
 
15755
        esac
 
15756
      fi
 
15757
    done
 
15758
    IFS="$acl_save_IFS"
 
15759
  fi
 
15760
 
 
15761
 
 
15762
 
 
15763
 
 
15764
 
 
15765
 
 
15766
 
 
15767
 
 
15768
 
 
15769
    use_additional=yes
 
15770
 
 
15771
  acl_save_prefix="$prefix"
 
15772
  prefix="$acl_final_prefix"
 
15773
  acl_save_exec_prefix="$exec_prefix"
 
15774
  exec_prefix="$acl_final_exec_prefix"
 
15775
 
 
15776
    eval additional_includedir=\"$includedir\"
 
15777
    eval additional_libdir=\"$libdir\"
 
15778
 
 
15779
  exec_prefix="$acl_save_exec_prefix"
 
15780
  prefix="$acl_save_prefix"
 
15781
 
 
15782
 
 
15783
# Check whether --with-libiconv-prefix was given.
 
15784
if test "${with_libiconv_prefix+set}" = set; then :
 
15785
  withval=$with_libiconv_prefix;
 
15786
    if test "X$withval" = "Xno"; then
 
15787
      use_additional=no
 
15788
    else
 
15789
      if test "X$withval" = "X"; then
 
15790
 
 
15791
  acl_save_prefix="$prefix"
 
15792
  prefix="$acl_final_prefix"
 
15793
  acl_save_exec_prefix="$exec_prefix"
 
15794
  exec_prefix="$acl_final_exec_prefix"
 
15795
 
 
15796
          eval additional_includedir=\"$includedir\"
 
15797
          eval additional_libdir=\"$libdir\"
 
15798
 
 
15799
  exec_prefix="$acl_save_exec_prefix"
 
15800
  prefix="$acl_save_prefix"
 
15801
 
 
15802
      else
 
15803
        additional_includedir="$withval/include"
 
15804
        additional_libdir="$withval/$acl_libdirstem"
 
15805
      fi
 
15806
    fi
 
15807
 
 
15808
fi
 
15809
 
 
15810
      LIBICONV=
 
15811
  LTLIBICONV=
 
15812
  INCICONV=
 
15813
  LIBICONV_PREFIX=
 
15814
  rpathdirs=
 
15815
  ltrpathdirs=
 
15816
  names_already_handled=
 
15817
  names_next_round='iconv '
 
15818
  while test -n "$names_next_round"; do
 
15819
    names_this_round="$names_next_round"
 
15820
    names_next_round=
 
15821
    for name in $names_this_round; do
 
15822
      already_handled=
 
15823
      for n in $names_already_handled; do
 
15824
        if test "$n" = "$name"; then
 
15825
          already_handled=yes
 
15826
          break
 
15827
        fi
 
15828
      done
 
15829
      if test -z "$already_handled"; then
 
15830
        names_already_handled="$names_already_handled $name"
 
15831
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
15832
        eval value=\"\$HAVE_LIB$uppername\"
 
15833
        if test -n "$value"; then
 
15834
          if test "$value" = yes; then
 
15835
            eval value=\"\$LIB$uppername\"
 
15836
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
15837
            eval value=\"\$LTLIB$uppername\"
 
15838
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
15839
          else
 
15840
                                    :
 
15841
          fi
 
15842
        else
 
15843
                              found_dir=
 
15844
          found_la=
 
15845
          found_so=
 
15846
          found_a=
 
15847
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
15848
          if test -n "$acl_shlibext"; then
 
15849
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
15850
          else
 
15851
            shrext=
 
15852
          fi
 
15853
          if test $use_additional = yes; then
 
15854
            dir="$additional_libdir"
 
15855
                                    if test -n "$acl_shlibext"; then
 
15856
              if test -f "$dir/$libname$shrext"; then
 
15857
                found_dir="$dir"
 
15858
                found_so="$dir/$libname$shrext"
 
15859
              else
 
15860
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
15861
                  ver=`(cd "$dir" && \
 
15862
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
15863
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
15864
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
15865
                        | sed 1q ) 2>/dev/null`
 
15866
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
15867
                    found_dir="$dir"
 
15868
                    found_so="$dir/$libname$shrext.$ver"
 
15869
                  fi
 
15870
                else
 
15871
                  eval library_names=\"$acl_library_names_spec\"
 
15872
                  for f in $library_names; do
 
15873
                    if test -f "$dir/$f"; then
 
15874
                      found_dir="$dir"
 
15875
                      found_so="$dir/$f"
 
15876
                      break
 
15877
                    fi
 
15878
                  done
 
15879
                fi
 
15880
              fi
 
15881
            fi
 
15882
                        if test "X$found_dir" = "X"; then
 
15883
              if test -f "$dir/$libname.$acl_libext"; then
 
15884
                found_dir="$dir"
 
15885
                found_a="$dir/$libname.$acl_libext"
 
15886
              fi
 
15887
            fi
 
15888
            if test "X$found_dir" != "X"; then
 
15889
              if test -f "$dir/$libname.la"; then
 
15890
                found_la="$dir/$libname.la"
 
15891
              fi
 
15892
            fi
 
15893
          fi
 
15894
          if test "X$found_dir" = "X"; then
 
15895
            for x in $LDFLAGS $LTLIBICONV; do
 
15896
 
 
15897
  acl_save_prefix="$prefix"
 
15898
  prefix="$acl_final_prefix"
 
15899
  acl_save_exec_prefix="$exec_prefix"
 
15900
  exec_prefix="$acl_final_exec_prefix"
 
15901
  eval x=\"$x\"
 
15902
  exec_prefix="$acl_save_exec_prefix"
 
15903
  prefix="$acl_save_prefix"
 
15904
 
 
15905
              case "$x" in
 
15906
                -L*)
 
15907
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
15908
                                    if test -n "$acl_shlibext"; then
 
15909
                    if test -f "$dir/$libname$shrext"; then
 
15910
                      found_dir="$dir"
 
15911
                      found_so="$dir/$libname$shrext"
 
15912
                    else
 
15913
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
15914
                        ver=`(cd "$dir" && \
 
15915
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
15916
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
15917
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
15918
                              | sed 1q ) 2>/dev/null`
 
15919
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
15920
                          found_dir="$dir"
 
15921
                          found_so="$dir/$libname$shrext.$ver"
 
15922
                        fi
 
15923
                      else
 
15924
                        eval library_names=\"$acl_library_names_spec\"
 
15925
                        for f in $library_names; do
 
15926
                          if test -f "$dir/$f"; then
 
15927
                            found_dir="$dir"
 
15928
                            found_so="$dir/$f"
 
15929
                            break
 
15930
                          fi
 
15931
                        done
 
15932
                      fi
 
15933
                    fi
 
15934
                  fi
 
15935
                                    if test "X$found_dir" = "X"; then
 
15936
                    if test -f "$dir/$libname.$acl_libext"; then
 
15937
                      found_dir="$dir"
 
15938
                      found_a="$dir/$libname.$acl_libext"
 
15939
                    fi
 
15940
                  fi
 
15941
                  if test "X$found_dir" != "X"; then
 
15942
                    if test -f "$dir/$libname.la"; then
 
15943
                      found_la="$dir/$libname.la"
 
15944
                    fi
 
15945
                  fi
 
15946
                  ;;
 
15947
              esac
 
15948
              if test "X$found_dir" != "X"; then
 
15949
                break
 
15950
              fi
 
15951
            done
 
15952
          fi
 
15953
          if test "X$found_dir" != "X"; then
 
15954
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
15955
            if test "X$found_so" != "X"; then
 
15956
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
15957
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
15958
              else
 
15959
                                                                                haveit=
 
15960
                for x in $ltrpathdirs; do
 
15961
                  if test "X$x" = "X$found_dir"; then
 
15962
                    haveit=yes
 
15963
                    break
 
15964
                  fi
 
15965
                done
 
15966
                if test -z "$haveit"; then
 
15967
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
15968
                fi
 
15969
                                if test "$acl_hardcode_direct" = yes; then
 
15970
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
15971
                else
 
15972
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
15973
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
15974
                                                            haveit=
 
15975
                    for x in $rpathdirs; do
 
15976
                      if test "X$x" = "X$found_dir"; then
 
15977
                        haveit=yes
 
15978
                        break
 
15979
                      fi
 
15980
                    done
 
15981
                    if test -z "$haveit"; then
 
15982
                      rpathdirs="$rpathdirs $found_dir"
 
15983
                    fi
 
15984
                  else
 
15985
                                                                                haveit=
 
15986
                    for x in $LDFLAGS $LIBICONV; do
 
15987
 
 
15988
  acl_save_prefix="$prefix"
 
15989
  prefix="$acl_final_prefix"
 
15990
  acl_save_exec_prefix="$exec_prefix"
 
15991
  exec_prefix="$acl_final_exec_prefix"
 
15992
  eval x=\"$x\"
 
15993
  exec_prefix="$acl_save_exec_prefix"
 
15994
  prefix="$acl_save_prefix"
 
15995
 
 
15996
                      if test "X$x" = "X-L$found_dir"; then
 
15997
                        haveit=yes
 
15998
                        break
 
15999
                      fi
 
16000
                    done
 
16001
                    if test -z "$haveit"; then
 
16002
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
16003
                    fi
 
16004
                    if test "$acl_hardcode_minus_L" != no; then
 
16005
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
16006
                    else
 
16007
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
16008
                    fi
 
16009
                  fi
 
16010
                fi
 
16011
              fi
 
16012
            else
 
16013
              if test "X$found_a" != "X"; then
 
16014
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
16015
              else
 
16016
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
16017
              fi
 
16018
            fi
 
16019
                        additional_includedir=
 
16020
            case "$found_dir" in
 
16021
              */$acl_libdirstem | */$acl_libdirstem/)
 
16022
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
16023
                LIBICONV_PREFIX="$basedir"
 
16024
                additional_includedir="$basedir/include"
 
16025
                ;;
 
16026
            esac
 
16027
            if test "X$additional_includedir" != "X"; then
 
16028
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
16029
                haveit=
 
16030
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
16031
                  if test -n "$GCC"; then
 
16032
                    case $host_os in
 
16033
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
16034
                    esac
 
16035
                  fi
 
16036
                fi
 
16037
                if test -z "$haveit"; then
 
16038
                  for x in $CPPFLAGS $INCICONV; do
 
16039
 
 
16040
  acl_save_prefix="$prefix"
 
16041
  prefix="$acl_final_prefix"
 
16042
  acl_save_exec_prefix="$exec_prefix"
 
16043
  exec_prefix="$acl_final_exec_prefix"
 
16044
  eval x=\"$x\"
 
16045
  exec_prefix="$acl_save_exec_prefix"
 
16046
  prefix="$acl_save_prefix"
 
16047
 
 
16048
                    if test "X$x" = "X-I$additional_includedir"; then
 
16049
                      haveit=yes
 
16050
                      break
 
16051
                    fi
 
16052
                  done
 
16053
                  if test -z "$haveit"; then
 
16054
                    if test -d "$additional_includedir"; then
 
16055
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
16056
                    fi
 
16057
                  fi
 
16058
                fi
 
16059
              fi
 
16060
            fi
 
16061
                        if test -n "$found_la"; then
 
16062
                                                        save_libdir="$libdir"
 
16063
              case "$found_la" in
 
16064
                */* | *\\*) . "$found_la" ;;
 
16065
                *) . "./$found_la" ;;
 
16066
              esac
 
16067
              libdir="$save_libdir"
 
16068
                            for dep in $dependency_libs; do
 
16069
                case "$dep" in
 
16070
                  -L*)
 
16071
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
16072
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
16073
                      haveit=
 
16074
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
16075
                        if test -n "$GCC"; then
 
16076
                          case $host_os in
 
16077
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
16078
                          esac
 
16079
                        fi
 
16080
                      fi
 
16081
                      if test -z "$haveit"; then
 
16082
                        haveit=
 
16083
                        for x in $LDFLAGS $LIBICONV; do
 
16084
 
 
16085
  acl_save_prefix="$prefix"
 
16086
  prefix="$acl_final_prefix"
 
16087
  acl_save_exec_prefix="$exec_prefix"
 
16088
  exec_prefix="$acl_final_exec_prefix"
 
16089
  eval x=\"$x\"
 
16090
  exec_prefix="$acl_save_exec_prefix"
 
16091
  prefix="$acl_save_prefix"
 
16092
 
 
16093
                          if test "X$x" = "X-L$additional_libdir"; then
 
16094
                            haveit=yes
 
16095
                            break
 
16096
                          fi
 
16097
                        done
 
16098
                        if test -z "$haveit"; then
 
16099
                          if test -d "$additional_libdir"; then
 
16100
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
16101
                          fi
 
16102
                        fi
 
16103
                        haveit=
 
16104
                        for x in $LDFLAGS $LTLIBICONV; do
 
16105
 
 
16106
  acl_save_prefix="$prefix"
 
16107
  prefix="$acl_final_prefix"
 
16108
  acl_save_exec_prefix="$exec_prefix"
 
16109
  exec_prefix="$acl_final_exec_prefix"
 
16110
  eval x=\"$x\"
 
16111
  exec_prefix="$acl_save_exec_prefix"
 
16112
  prefix="$acl_save_prefix"
 
16113
 
 
16114
                          if test "X$x" = "X-L$additional_libdir"; then
 
16115
                            haveit=yes
 
16116
                            break
 
16117
                          fi
 
16118
                        done
 
16119
                        if test -z "$haveit"; then
 
16120
                          if test -d "$additional_libdir"; then
 
16121
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
16122
                          fi
 
16123
                        fi
 
16124
                      fi
 
16125
                    fi
 
16126
                    ;;
 
16127
                  -R*)
 
16128
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
16129
                    if test "$enable_rpath" != no; then
 
16130
                                                                  haveit=
 
16131
                      for x in $rpathdirs; do
 
16132
                        if test "X$x" = "X$dir"; then
 
16133
                          haveit=yes
 
16134
                          break
 
16135
                        fi
 
16136
                      done
 
16137
                      if test -z "$haveit"; then
 
16138
                        rpathdirs="$rpathdirs $dir"
 
16139
                      fi
 
16140
                                                                  haveit=
 
16141
                      for x in $ltrpathdirs; do
 
16142
                        if test "X$x" = "X$dir"; then
 
16143
                          haveit=yes
 
16144
                          break
 
16145
                        fi
 
16146
                      done
 
16147
                      if test -z "$haveit"; then
 
16148
                        ltrpathdirs="$ltrpathdirs $dir"
 
16149
                      fi
 
16150
                    fi
 
16151
                    ;;
 
16152
                  -l*)
 
16153
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
16154
                    ;;
 
16155
                  *.la)
 
16156
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
16157
                    ;;
 
16158
                  *)
 
16159
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
16160
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
16161
                    ;;
 
16162
                esac
 
16163
              done
 
16164
            fi
 
16165
          else
 
16166
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
16167
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
16168
          fi
 
16169
        fi
 
16170
      fi
 
16171
    done
 
16172
  done
 
16173
  if test "X$rpathdirs" != "X"; then
 
16174
    if test -n "$acl_hardcode_libdir_separator"; then
 
16175
                        alldirs=
 
16176
      for found_dir in $rpathdirs; do
 
16177
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
16178
      done
 
16179
            acl_save_libdir="$libdir"
 
16180
      libdir="$alldirs"
 
16181
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
16182
      libdir="$acl_save_libdir"
 
16183
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
16184
    else
 
16185
            for found_dir in $rpathdirs; do
 
16186
        acl_save_libdir="$libdir"
 
16187
        libdir="$found_dir"
 
16188
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
16189
        libdir="$acl_save_libdir"
 
16190
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
16191
      done
 
16192
    fi
 
16193
  fi
 
16194
  if test "X$ltrpathdirs" != "X"; then
 
16195
            for found_dir in $ltrpathdirs; do
 
16196
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
16197
    done
 
16198
  fi
 
16199
 
 
16200
 
 
16201
 
 
16202
 
 
16203
 
 
16204
 
 
16205
 
 
16206
          am_save_CPPFLAGS="$CPPFLAGS"
 
16207
 
 
16208
  for element in $INCICONV; do
 
16209
    haveit=
 
16210
    for x in $CPPFLAGS; do
 
16211
 
 
16212
  acl_save_prefix="$prefix"
 
16213
  prefix="$acl_final_prefix"
 
16214
  acl_save_exec_prefix="$exec_prefix"
 
16215
  exec_prefix="$acl_final_exec_prefix"
 
16216
  eval x=\"$x\"
 
16217
  exec_prefix="$acl_save_exec_prefix"
 
16218
  prefix="$acl_save_prefix"
 
16219
 
 
16220
      if test "X$x" = "X$element"; then
 
16221
        haveit=yes
 
16222
        break
 
16223
      fi
 
16224
    done
 
16225
    if test -z "$haveit"; then
 
16226
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
16227
    fi
 
16228
  done
 
16229
 
 
16230
 
 
16231
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
16232
$as_echo_n "checking for iconv... " >&6; }
 
16233
if test "${am_cv_func_iconv+set}" = set; then :
 
16234
  $as_echo_n "(cached) " >&6
 
16235
else
 
16236
 
 
16237
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
16238
    am_cv_lib_iconv=no
 
16239
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16240
/* end confdefs.h.  */
 
16241
#include <stdlib.h>
 
16242
#include <iconv.h>
 
16243
int
 
16244
main ()
 
16245
{
 
16246
iconv_t cd = iconv_open("","");
 
16247
       iconv(cd,NULL,NULL,NULL,NULL);
 
16248
       iconv_close(cd);
 
16249
  ;
 
16250
  return 0;
 
16251
}
 
16252
_ACEOF
 
16253
if ac_fn_c_try_link "$LINENO"; then :
 
16254
  am_cv_func_iconv=yes
 
16255
fi
 
16256
rm -f core conftest.err conftest.$ac_objext \
 
16257
    conftest$ac_exeext conftest.$ac_ext
 
16258
    if test "$am_cv_func_iconv" != yes; then
 
16259
      am_save_LIBS="$LIBS"
 
16260
      LIBS="$LIBS $LIBICONV"
 
16261
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16262
/* end confdefs.h.  */
 
16263
#include <stdlib.h>
 
16264
#include <iconv.h>
 
16265
int
 
16266
main ()
 
16267
{
 
16268
iconv_t cd = iconv_open("","");
 
16269
         iconv(cd,NULL,NULL,NULL,NULL);
 
16270
         iconv_close(cd);
 
16271
  ;
 
16272
  return 0;
 
16273
}
 
16274
_ACEOF
 
16275
if ac_fn_c_try_link "$LINENO"; then :
 
16276
  am_cv_lib_iconv=yes
 
16277
        am_cv_func_iconv=yes
 
16278
fi
 
16279
rm -f core conftest.err conftest.$ac_objext \
 
16280
    conftest$ac_exeext conftest.$ac_ext
 
16281
      LIBS="$am_save_LIBS"
 
16282
    fi
 
16283
 
 
16284
fi
 
16285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
16286
$as_echo "$am_cv_func_iconv" >&6; }
 
16287
  if test "$am_cv_func_iconv" = yes; then
 
16288
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
16289
$as_echo_n "checking for working iconv... " >&6; }
 
16290
if test "${am_cv_func_iconv_works+set}" = set; then :
 
16291
  $as_echo_n "(cached) " >&6
 
16292
else
 
16293
 
 
16294
            am_save_LIBS="$LIBS"
 
16295
      if test $am_cv_lib_iconv = yes; then
 
16296
        LIBS="$LIBS $LIBICONV"
 
16297
      fi
 
16298
      if test "$cross_compiling" = yes; then :
 
16299
  case "$host_os" in
 
16300
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
16301
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
16302
         esac
 
16303
else
 
16304
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16305
/* end confdefs.h.  */
 
16306
 
 
16307
#include <iconv.h>
 
16308
#include <string.h>
 
16309
int main ()
 
16310
{
 
16311
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
16312
     returns.  */
 
16313
  {
 
16314
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
16315
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
16316
      {
 
16317
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
16318
        char buf[10];
 
16319
        const char *inptr = input;
 
16320
        size_t inbytesleft = strlen (input);
 
16321
        char *outptr = buf;
 
16322
        size_t outbytesleft = sizeof (buf);
 
16323
        size_t res = iconv (cd_utf8_to_88591,
 
16324
                            (char **) &inptr, &inbytesleft,
 
16325
                            &outptr, &outbytesleft);
 
16326
        if (res == 0)
 
16327
          return 1;
 
16328
      }
 
16329
  }
 
16330
#if 0 /* This bug could be worked around by the caller.  */
 
16331
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
16332
  {
 
16333
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
16334
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
16335
      {
 
16336
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
16337
        char buf[50];
 
16338
        const char *inptr = input;
 
16339
        size_t inbytesleft = strlen (input);
 
16340
        char *outptr = buf;
 
16341
        size_t outbytesleft = sizeof (buf);
 
16342
        size_t res = iconv (cd_88591_to_utf8,
 
16343
                            (char **) &inptr, &inbytesleft,
 
16344
                            &outptr, &outbytesleft);
 
16345
        if ((int)res > 0)
 
16346
          return 1;
 
16347
      }
 
16348
  }
 
16349
#endif
 
16350
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
16351
     provided.  */
 
16352
  if (/* Try standardized names.  */
 
16353
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
16354
      /* Try IRIX, OSF/1 names.  */
 
16355
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
16356
      /* Try AIX names.  */
 
16357
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
16358
      /* Try HP-UX names.  */
 
16359
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
16360
    return 1;
 
16361
  return 0;
 
16362
}
 
16363
_ACEOF
 
16364
if ac_fn_c_try_run "$LINENO"; then :
 
16365
  am_cv_func_iconv_works=yes
 
16366
else
 
16367
  am_cv_func_iconv_works=no
 
16368
fi
 
16369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16370
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16371
fi
 
16372
 
 
16373
      LIBS="$am_save_LIBS"
 
16374
 
 
16375
fi
 
16376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
16377
$as_echo "$am_cv_func_iconv_works" >&6; }
 
16378
    case "$am_cv_func_iconv_works" in
 
16379
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
16380
      *)   am_func_iconv=yes ;;
 
16381
    esac
 
16382
  else
 
16383
    am_func_iconv=no am_cv_lib_iconv=no
 
16384
  fi
 
16385
  if test "$am_func_iconv" = yes; then
 
16386
 
 
16387
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
16388
 
 
16389
  fi
 
16390
  if test "$am_cv_lib_iconv" = yes; then
 
16391
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
16392
$as_echo_n "checking how to link with libiconv... " >&6; }
 
16393
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
16394
$as_echo "$LIBICONV" >&6; }
 
16395
  else
 
16396
            CPPFLAGS="$am_save_CPPFLAGS"
 
16397
    LIBICONV=
 
16398
    LTLIBICONV=
 
16399
  fi
 
16400
 
 
16401
 
 
16402
 
 
16403
  if test "$am_cv_func_iconv" = yes; then
 
16404
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
 
16405
$as_echo_n "checking for iconv declaration... " >&6; }
 
16406
    if test "${am_cv_proto_iconv+set}" = set; then :
 
16407
  $as_echo_n "(cached) " >&6
 
16408
else
 
16409
 
 
16410
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16411
/* end confdefs.h.  */
 
16412
 
 
16413
#include <stdlib.h>
 
16414
#include <iconv.h>
 
16415
extern
 
16416
#ifdef __cplusplus
 
16417
"C"
 
16418
#endif
 
16419
#if defined(__STDC__) || defined(__cplusplus)
 
16420
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
16421
#else
 
16422
size_t iconv();
 
16423
#endif
 
16424
 
 
16425
int
 
16426
main ()
 
16427
{
 
16428
 
 
16429
  ;
 
16430
  return 0;
 
16431
}
 
16432
_ACEOF
 
16433
if ac_fn_c_try_compile "$LINENO"; then :
 
16434
  am_cv_proto_iconv_arg1=""
 
16435
else
 
16436
  am_cv_proto_iconv_arg1="const"
 
16437
fi
 
16438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16439
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
16440
fi
 
16441
 
 
16442
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
16443
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
 
16444
         }$am_cv_proto_iconv" >&5
 
16445
$as_echo "${ac_t:-
 
16446
         }$am_cv_proto_iconv" >&6; }
 
16447
 
 
16448
cat >>confdefs.h <<_ACEOF
 
16449
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
16450
_ACEOF
 
16451
 
 
16452
  fi
 
16453
 
 
16454
 
 
16455
 
 
16456
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
16457
        if test -n "$ac_tool_prefix"; then
 
16458
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
16459
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
16460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16461
$as_echo_n "checking for $ac_word... " >&6; }
 
16462
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
16463
  $as_echo_n "(cached) " >&6
 
16464
else
 
16465
  case $PKG_CONFIG in
 
16466
  [\\/]* | ?:[\\/]*)
 
16467
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
16468
  ;;
 
16469
  *)
 
16470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16471
for as_dir in $PATH
 
16472
do
 
16473
  IFS=$as_save_IFS
 
16474
  test -z "$as_dir" && as_dir=.
 
16475
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16477
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16478
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16479
    break 2
 
16480
  fi
 
16481
done
 
16482
  done
 
16483
IFS=$as_save_IFS
 
16484
 
 
16485
  ;;
 
16486
esac
 
16487
fi
 
16488
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
16489
if test -n "$PKG_CONFIG"; then
 
16490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
16491
$as_echo "$PKG_CONFIG" >&6; }
 
16492
else
 
16493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16494
$as_echo "no" >&6; }
 
16495
fi
 
16496
 
 
16497
 
 
16498
fi
 
16499
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
16500
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
16501
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
16502
set dummy pkg-config; ac_word=$2
 
16503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16504
$as_echo_n "checking for $ac_word... " >&6; }
 
16505
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
16506
  $as_echo_n "(cached) " >&6
 
16507
else
 
16508
  case $ac_pt_PKG_CONFIG in
 
16509
  [\\/]* | ?:[\\/]*)
 
16510
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
16511
  ;;
 
16512
  *)
 
16513
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16514
for as_dir in $PATH
 
16515
do
 
16516
  IFS=$as_save_IFS
 
16517
  test -z "$as_dir" && as_dir=.
 
16518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16520
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16522
    break 2
 
16523
  fi
 
16524
done
 
16525
  done
 
16526
IFS=$as_save_IFS
 
16527
 
 
16528
  ;;
 
16529
esac
 
16530
fi
 
16531
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
16532
if test -n "$ac_pt_PKG_CONFIG"; then
 
16533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
16534
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
16535
else
 
16536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16537
$as_echo "no" >&6; }
 
16538
fi
 
16539
 
 
16540
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
16541
    PKG_CONFIG=""
 
16542
  else
 
16543
    case $cross_compiling:$ac_tool_warned in
 
16544
yes:)
 
16545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16547
ac_tool_warned=yes ;;
 
16548
esac
 
16549
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
16550
  fi
 
16551
else
 
16552
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
16553
fi
 
16554
 
 
16555
fi
 
16556
if test -n "$PKG_CONFIG"; then
 
16557
        _pkg_min_version=0.9.0
 
16558
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
16559
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
16560
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
16561
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16562
$as_echo "yes" >&6; }
 
16563
        else
 
16564
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16565
$as_echo "no" >&6; }
 
16566
                PKG_CONFIG=""
 
16567
        fi
 
16568
 
 
16569
fi
 
16570
 
 
16571
pkg_failed=no
 
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
 
16573
$as_echo_n "checking for libcurl... " >&6; }
 
16574
 
 
16575
if test -n "$libcurl_CFLAGS"; then
 
16576
    pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
 
16577
 elif test -n "$PKG_CONFIG"; then
 
16578
    if test -n "$PKG_CONFIG" && \
 
16579
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
 
16580
  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
 
16581
  ac_status=$?
 
16582
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16583
  test $ac_status = 0; }; then
 
16584
  pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.0" 2>/dev/null`
 
16585
else
 
16586
  pkg_failed=yes
 
16587
fi
 
16588
 else
 
16589
    pkg_failed=untried
 
16590
fi
 
16591
if test -n "$libcurl_LIBS"; then
 
16592
    pkg_cv_libcurl_LIBS="$libcurl_LIBS"
 
16593
 elif test -n "$PKG_CONFIG"; then
 
16594
    if test -n "$PKG_CONFIG" && \
 
16595
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
 
16596
  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
 
16597
  ac_status=$?
 
16598
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16599
  test $ac_status = 0; }; then
 
16600
  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.0" 2>/dev/null`
 
16601
else
 
16602
  pkg_failed=yes
 
16603
fi
 
16604
 else
 
16605
    pkg_failed=untried
 
16606
fi
 
16607
 
 
16608
 
 
16609
 
 
16610
if test $pkg_failed = yes; then
 
16611
 
 
16612
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16613
        _pkg_short_errors_supported=yes
 
16614
else
 
16615
        _pkg_short_errors_supported=no
 
16616
fi
 
16617
        if test $_pkg_short_errors_supported = yes; then
 
16618
                libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl >= 7.18.0" 2>&1`
 
16619
        else
 
16620
                libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl >= 7.18.0" 2>&1`
 
16621
        fi
 
16622
        # Put the nasty error message in config.log where it belongs
 
16623
        echo "$libcurl_PKG_ERRORS" >&5
 
16624
 
 
16625
        as_fn_error "Package requirements (libcurl >= 7.18.0) were not met:
 
16626
 
 
16627
$libcurl_PKG_ERRORS
 
16628
 
 
16629
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16630
installed software in a non-standard prefix.
 
16631
 
 
16632
Alternatively, you may set the environment variables libcurl_CFLAGS
 
16633
and libcurl_LIBS to avoid the need to call pkg-config.
 
16634
See the pkg-config man page for more details.
 
16635
" "$LINENO" 5
 
16636
elif test $pkg_failed = untried; then
 
16637
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16639
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
16640
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16641
path to pkg-config.
 
16642
 
 
16643
Alternatively, you may set the environment variables libcurl_CFLAGS
 
16644
and libcurl_LIBS to avoid the need to call pkg-config.
 
16645
See the pkg-config man page for more details.
 
16646
 
 
16647
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16648
See \`config.log' for more details." "$LINENO" 5; }
 
16649
else
 
16650
        libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
 
16651
        libcurl_LIBS=$pkg_cv_libcurl_LIBS
 
16652
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16653
$as_echo "yes" >&6; }
 
16654
        :
 
16655
fi
 
16656
 
 
16657
pkg_failed=no
 
16658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre" >&5
 
16659
$as_echo_n "checking for libpcre... " >&6; }
 
16660
 
 
16661
if test -n "$libpcre_CFLAGS"; then
 
16662
    pkg_cv_libpcre_CFLAGS="$libpcre_CFLAGS"
 
16663
 elif test -n "$PKG_CONFIG"; then
 
16664
    if test -n "$PKG_CONFIG" && \
 
16665
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7.8\""; } >&5
 
16666
  ($PKG_CONFIG --exists --print-errors "libpcre >= 7.8") 2>&5
 
16667
  ac_status=$?
 
16668
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16669
  test $ac_status = 0; }; then
 
16670
  pkg_cv_libpcre_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= 7.8" 2>/dev/null`
 
16671
else
 
16672
  pkg_failed=yes
 
16673
fi
 
16674
 else
 
16675
    pkg_failed=untried
 
16676
fi
 
16677
if test -n "$libpcre_LIBS"; then
 
16678
    pkg_cv_libpcre_LIBS="$libpcre_LIBS"
 
16679
 elif test -n "$PKG_CONFIG"; then
 
16680
    if test -n "$PKG_CONFIG" && \
 
16681
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7.8\""; } >&5
 
16682
  ($PKG_CONFIG --exists --print-errors "libpcre >= 7.8") 2>&5
 
16683
  ac_status=$?
 
16684
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16685
  test $ac_status = 0; }; then
 
16686
  pkg_cv_libpcre_LIBS=`$PKG_CONFIG --libs "libpcre >= 7.8" 2>/dev/null`
 
16687
else
 
16688
  pkg_failed=yes
 
16689
fi
 
16690
 else
 
16691
    pkg_failed=untried
 
16692
fi
 
16693
 
 
16694
 
 
16695
 
 
16696
if test $pkg_failed = yes; then
 
16697
 
 
16698
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16699
        _pkg_short_errors_supported=yes
 
16700
else
 
16701
        _pkg_short_errors_supported=no
 
16702
fi
 
16703
        if test $_pkg_short_errors_supported = yes; then
 
16704
                libpcre_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= 7.8" 2>&1`
 
16705
        else
 
16706
                libpcre_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= 7.8" 2>&1`
 
16707
        fi
 
16708
        # Put the nasty error message in config.log where it belongs
 
16709
        echo "$libpcre_PKG_ERRORS" >&5
 
16710
 
 
16711
        as_fn_error "Package requirements (libpcre >= 7.8) were not met:
 
16712
 
 
16713
$libpcre_PKG_ERRORS
 
16714
 
 
16715
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16716
installed software in a non-standard prefix.
 
16717
 
 
16718
Alternatively, you may set the environment variables libpcre_CFLAGS
 
16719
and libpcre_LIBS to avoid the need to call pkg-config.
 
16720
See the pkg-config man page for more details.
 
16721
" "$LINENO" 5
 
16722
elif test $pkg_failed = untried; then
 
16723
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16724
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16725
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
16726
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16727
path to pkg-config.
 
16728
 
 
16729
Alternatively, you may set the environment variables libpcre_CFLAGS
 
16730
and libpcre_LIBS to avoid the need to call pkg-config.
 
16731
See the pkg-config man page for more details.
 
16732
 
 
16733
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16734
See \`config.log' for more details." "$LINENO" 5; }
 
16735
else
 
16736
        libpcre_CFLAGS=$pkg_cv_libpcre_CFLAGS
 
16737
        libpcre_LIBS=$pkg_cv_libpcre_LIBS
 
16738
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16739
$as_echo "yes" >&6; }
 
16740
        :
 
16741
fi
 
16742
 
 
16743
pkg_failed=no
 
16744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
16745
$as_echo_n "checking for liblua... " >&6; }
 
16746
 
 
16747
if test -n "$liblua_CFLAGS"; then
 
16748
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
16749
 elif test -n "$PKG_CONFIG"; then
 
16750
    if test -n "$PKG_CONFIG" && \
 
16751
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
 
16752
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
16753
  ac_status=$?
 
16754
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16755
  test $ac_status = 0; }; then
 
16756
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
 
16757
else
 
16758
  pkg_failed=yes
 
16759
fi
 
16760
 else
 
16761
    pkg_failed=untried
 
16762
fi
 
16763
if test -n "$liblua_LIBS"; then
 
16764
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
16765
 elif test -n "$PKG_CONFIG"; then
 
16766
    if test -n "$PKG_CONFIG" && \
 
16767
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
 
16768
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
16769
  ac_status=$?
 
16770
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16771
  test $ac_status = 0; }; then
 
16772
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
 
16773
else
 
16774
  pkg_failed=yes
 
16775
fi
 
16776
 else
 
16777
    pkg_failed=untried
 
16778
fi
 
16779
 
 
16780
 
 
16781
 
 
16782
if test $pkg_failed = yes; then
 
16783
 
 
16784
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16785
        _pkg_short_errors_supported=yes
 
16786
else
 
16787
        _pkg_short_errors_supported=no
 
16788
fi
 
16789
        if test $_pkg_short_errors_supported = yes; then
 
16790
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
 
16791
        else
 
16792
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
 
16793
        fi
 
16794
        # Put the nasty error message in config.log where it belongs
 
16795
        echo "$liblua_PKG_ERRORS" >&5
 
16796
 
 
16797
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16798
$as_echo "no" >&6; }
 
16799
 
 
16800
 
 
16801
pkg_failed=no
 
16802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
16803
$as_echo_n "checking for liblua... " >&6; }
 
16804
 
 
16805
if test -n "$liblua_CFLAGS"; then
 
16806
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
16807
 elif test -n "$PKG_CONFIG"; then
 
16808
    if test -n "$PKG_CONFIG" && \
 
16809
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
 
16810
  ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
 
16811
  ac_status=$?
 
16812
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16813
  test $ac_status = 0; }; then
 
16814
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
 
16815
else
 
16816
  pkg_failed=yes
 
16817
fi
 
16818
 else
 
16819
    pkg_failed=untried
 
16820
fi
 
16821
if test -n "$liblua_LIBS"; then
 
16822
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
16823
 elif test -n "$PKG_CONFIG"; then
 
16824
    if test -n "$PKG_CONFIG" && \
 
16825
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
 
16826
  ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
 
16827
  ac_status=$?
 
16828
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16829
  test $ac_status = 0; }; then
 
16830
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
 
16831
else
 
16832
  pkg_failed=yes
 
16833
fi
 
16834
 else
 
16835
    pkg_failed=untried
 
16836
fi
 
16837
 
 
16838
 
 
16839
 
 
16840
if test $pkg_failed = yes; then
 
16841
 
 
16842
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16843
        _pkg_short_errors_supported=yes
 
16844
else
 
16845
        _pkg_short_errors_supported=no
 
16846
fi
 
16847
        if test $_pkg_short_errors_supported = yes; then
 
16848
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
 
16849
        else
 
16850
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
 
16851
        fi
 
16852
        # Put the nasty error message in config.log where it belongs
 
16853
        echo "$liblua_PKG_ERRORS" >&5
 
16854
 
 
16855
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16856
$as_echo "no" >&6; }
 
16857
 
 
16858
 
 
16859
pkg_failed=no
 
16860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
16861
$as_echo_n "checking for liblua... " >&6; }
 
16862
 
 
16863
if test -n "$liblua_CFLAGS"; then
 
16864
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
16865
 elif test -n "$PKG_CONFIG"; then
 
16866
    if test -n "$PKG_CONFIG" && \
 
16867
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
16868
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
16869
  ac_status=$?
 
16870
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16871
  test $ac_status = 0; }; then
 
16872
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
16873
else
 
16874
  pkg_failed=yes
 
16875
fi
 
16876
 else
 
16877
    pkg_failed=untried
 
16878
fi
 
16879
if test -n "$liblua_LIBS"; then
 
16880
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
16881
 elif test -n "$PKG_CONFIG"; then
 
16882
    if test -n "$PKG_CONFIG" && \
 
16883
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
16884
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
16885
  ac_status=$?
 
16886
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16887
  test $ac_status = 0; }; then
 
16888
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
16889
else
 
16890
  pkg_failed=yes
 
16891
fi
 
16892
 else
 
16893
    pkg_failed=untried
 
16894
fi
 
16895
 
 
16896
 
 
16897
 
 
16898
if test $pkg_failed = yes; then
 
16899
 
 
16900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16901
        _pkg_short_errors_supported=yes
 
16902
else
 
16903
        _pkg_short_errors_supported=no
 
16904
fi
 
16905
        if test $_pkg_short_errors_supported = yes; then
 
16906
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
 
16907
        else
 
16908
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
 
16909
        fi
 
16910
        # Put the nasty error message in config.log where it belongs
 
16911
        echo "$liblua_PKG_ERRORS" >&5
 
16912
 
 
16913
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16914
$as_echo "no" >&6; }
 
16915
 
 
16916
 
 
16917
pkg_failed=no
 
16918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
16919
$as_echo_n "checking for liblua... " >&6; }
 
16920
 
 
16921
if test -n "$liblua_CFLAGS"; then
 
16922
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
16923
 elif test -n "$PKG_CONFIG"; then
 
16924
    if test -n "$PKG_CONFIG" && \
 
16925
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
16926
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
16927
  ac_status=$?
 
16928
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16929
  test $ac_status = 0; }; then
 
16930
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
16931
else
 
16932
  pkg_failed=yes
 
16933
fi
 
16934
 else
 
16935
    pkg_failed=untried
 
16936
fi
 
16937
if test -n "$liblua_LIBS"; then
 
16938
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
16939
 elif test -n "$PKG_CONFIG"; then
 
16940
    if test -n "$PKG_CONFIG" && \
 
16941
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
16942
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
16943
  ac_status=$?
 
16944
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16945
  test $ac_status = 0; }; then
 
16946
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
16947
else
 
16948
  pkg_failed=yes
 
16949
fi
 
16950
 else
 
16951
    pkg_failed=untried
 
16952
fi
 
16953
 
 
16954
 
 
16955
 
 
16956
if test $pkg_failed = yes; then
 
16957
 
 
16958
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16959
        _pkg_short_errors_supported=yes
 
16960
else
 
16961
        _pkg_short_errors_supported=no
 
16962
fi
 
16963
        if test $_pkg_short_errors_supported = yes; then
 
16964
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
16965
        else
 
16966
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
16967
        fi
 
16968
        # Put the nasty error message in config.log where it belongs
 
16969
        echo "$liblua_PKG_ERRORS" >&5
 
16970
 
 
16971
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
16972
 
 
16973
$liblua_PKG_ERRORS
 
16974
 
 
16975
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16976
installed software in a non-standard prefix.
 
16977
 
 
16978
Alternatively, you may set the environment variables liblua_CFLAGS
 
16979
and liblua_LIBS to avoid the need to call pkg-config.
 
16980
See the pkg-config man page for more details.
 
16981
" "$LINENO" 5
 
16982
elif test $pkg_failed = untried; then
 
16983
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16984
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16985
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
16986
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16987
path to pkg-config.
 
16988
 
 
16989
Alternatively, you may set the environment variables liblua_CFLAGS
 
16990
and liblua_LIBS to avoid the need to call pkg-config.
 
16991
See the pkg-config man page for more details.
 
16992
 
 
16993
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16994
See \`config.log' for more details." "$LINENO" 5; }
 
16995
else
 
16996
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
16997
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
16998
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16999
$as_echo "yes" >&6; }
 
17000
        :
 
17001
fi
 
17002
 
 
17003
elif test $pkg_failed = untried; then
 
17004
 
 
17005
 
 
17006
pkg_failed=no
 
17007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17008
$as_echo_n "checking for liblua... " >&6; }
 
17009
 
 
17010
if test -n "$liblua_CFLAGS"; then
 
17011
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17012
 elif test -n "$PKG_CONFIG"; then
 
17013
    if test -n "$PKG_CONFIG" && \
 
17014
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17015
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17016
  ac_status=$?
 
17017
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17018
  test $ac_status = 0; }; then
 
17019
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17020
else
 
17021
  pkg_failed=yes
 
17022
fi
 
17023
 else
 
17024
    pkg_failed=untried
 
17025
fi
 
17026
if test -n "$liblua_LIBS"; then
 
17027
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17028
 elif test -n "$PKG_CONFIG"; then
 
17029
    if test -n "$PKG_CONFIG" && \
 
17030
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17031
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17032
  ac_status=$?
 
17033
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17034
  test $ac_status = 0; }; then
 
17035
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17036
else
 
17037
  pkg_failed=yes
 
17038
fi
 
17039
 else
 
17040
    pkg_failed=untried
 
17041
fi
 
17042
 
 
17043
 
 
17044
 
 
17045
if test $pkg_failed = yes; then
 
17046
 
 
17047
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17048
        _pkg_short_errors_supported=yes
 
17049
else
 
17050
        _pkg_short_errors_supported=no
 
17051
fi
 
17052
        if test $_pkg_short_errors_supported = yes; then
 
17053
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17054
        else
 
17055
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17056
        fi
 
17057
        # Put the nasty error message in config.log where it belongs
 
17058
        echo "$liblua_PKG_ERRORS" >&5
 
17059
 
 
17060
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17061
 
 
17062
$liblua_PKG_ERRORS
 
17063
 
 
17064
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17065
installed software in a non-standard prefix.
 
17066
 
 
17067
Alternatively, you may set the environment variables liblua_CFLAGS
 
17068
and liblua_LIBS to avoid the need to call pkg-config.
 
17069
See the pkg-config man page for more details.
 
17070
" "$LINENO" 5
 
17071
elif test $pkg_failed = untried; then
 
17072
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17074
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17075
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17076
path to pkg-config.
 
17077
 
 
17078
Alternatively, you may set the environment variables liblua_CFLAGS
 
17079
and liblua_LIBS to avoid the need to call pkg-config.
 
17080
See the pkg-config man page for more details.
 
17081
 
 
17082
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17083
See \`config.log' for more details." "$LINENO" 5; }
 
17084
else
 
17085
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17086
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17087
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17088
$as_echo "yes" >&6; }
 
17089
        :
 
17090
fi
 
17091
 
 
17092
else
 
17093
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17094
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17095
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17096
$as_echo "yes" >&6; }
 
17097
        :
 
17098
fi
 
17099
 
 
17100
elif test $pkg_failed = untried; then
 
17101
 
 
17102
 
 
17103
pkg_failed=no
 
17104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17105
$as_echo_n "checking for liblua... " >&6; }
 
17106
 
 
17107
if test -n "$liblua_CFLAGS"; then
 
17108
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17109
 elif test -n "$PKG_CONFIG"; then
 
17110
    if test -n "$PKG_CONFIG" && \
 
17111
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17112
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17113
  ac_status=$?
 
17114
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17115
  test $ac_status = 0; }; then
 
17116
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
17117
else
 
17118
  pkg_failed=yes
 
17119
fi
 
17120
 else
 
17121
    pkg_failed=untried
 
17122
fi
 
17123
if test -n "$liblua_LIBS"; then
 
17124
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17125
 elif test -n "$PKG_CONFIG"; then
 
17126
    if test -n "$PKG_CONFIG" && \
 
17127
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17128
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17129
  ac_status=$?
 
17130
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17131
  test $ac_status = 0; }; then
 
17132
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
17133
else
 
17134
  pkg_failed=yes
 
17135
fi
 
17136
 else
 
17137
    pkg_failed=untried
 
17138
fi
 
17139
 
 
17140
 
 
17141
 
 
17142
if test $pkg_failed = yes; then
 
17143
 
 
17144
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17145
        _pkg_short_errors_supported=yes
 
17146
else
 
17147
        _pkg_short_errors_supported=no
 
17148
fi
 
17149
        if test $_pkg_short_errors_supported = yes; then
 
17150
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
 
17151
        else
 
17152
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
 
17153
        fi
 
17154
        # Put the nasty error message in config.log where it belongs
 
17155
        echo "$liblua_PKG_ERRORS" >&5
 
17156
 
 
17157
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17158
$as_echo "no" >&6; }
 
17159
 
 
17160
 
 
17161
pkg_failed=no
 
17162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17163
$as_echo_n "checking for liblua... " >&6; }
 
17164
 
 
17165
if test -n "$liblua_CFLAGS"; then
 
17166
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17167
 elif test -n "$PKG_CONFIG"; then
 
17168
    if test -n "$PKG_CONFIG" && \
 
17169
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17170
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17171
  ac_status=$?
 
17172
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17173
  test $ac_status = 0; }; then
 
17174
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17175
else
 
17176
  pkg_failed=yes
 
17177
fi
 
17178
 else
 
17179
    pkg_failed=untried
 
17180
fi
 
17181
if test -n "$liblua_LIBS"; then
 
17182
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17183
 elif test -n "$PKG_CONFIG"; then
 
17184
    if test -n "$PKG_CONFIG" && \
 
17185
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17186
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17187
  ac_status=$?
 
17188
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17189
  test $ac_status = 0; }; then
 
17190
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17191
else
 
17192
  pkg_failed=yes
 
17193
fi
 
17194
 else
 
17195
    pkg_failed=untried
 
17196
fi
 
17197
 
 
17198
 
 
17199
 
 
17200
if test $pkg_failed = yes; then
 
17201
 
 
17202
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17203
        _pkg_short_errors_supported=yes
 
17204
else
 
17205
        _pkg_short_errors_supported=no
 
17206
fi
 
17207
        if test $_pkg_short_errors_supported = yes; then
 
17208
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17209
        else
 
17210
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17211
        fi
 
17212
        # Put the nasty error message in config.log where it belongs
 
17213
        echo "$liblua_PKG_ERRORS" >&5
 
17214
 
 
17215
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17216
 
 
17217
$liblua_PKG_ERRORS
 
17218
 
 
17219
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17220
installed software in a non-standard prefix.
 
17221
 
 
17222
Alternatively, you may set the environment variables liblua_CFLAGS
 
17223
and liblua_LIBS to avoid the need to call pkg-config.
 
17224
See the pkg-config man page for more details.
 
17225
" "$LINENO" 5
 
17226
elif test $pkg_failed = untried; then
 
17227
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17228
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17229
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17230
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17231
path to pkg-config.
 
17232
 
 
17233
Alternatively, you may set the environment variables liblua_CFLAGS
 
17234
and liblua_LIBS to avoid the need to call pkg-config.
 
17235
See the pkg-config man page for more details.
 
17236
 
 
17237
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17238
See \`config.log' for more details." "$LINENO" 5; }
 
17239
else
 
17240
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17241
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17242
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17243
$as_echo "yes" >&6; }
 
17244
        :
 
17245
fi
 
17246
 
 
17247
elif test $pkg_failed = untried; then
 
17248
 
 
17249
 
 
17250
pkg_failed=no
 
17251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17252
$as_echo_n "checking for liblua... " >&6; }
 
17253
 
 
17254
if test -n "$liblua_CFLAGS"; then
 
17255
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17256
 elif test -n "$PKG_CONFIG"; then
 
17257
    if test -n "$PKG_CONFIG" && \
 
17258
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17259
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17260
  ac_status=$?
 
17261
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17262
  test $ac_status = 0; }; then
 
17263
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17264
else
 
17265
  pkg_failed=yes
 
17266
fi
 
17267
 else
 
17268
    pkg_failed=untried
 
17269
fi
 
17270
if test -n "$liblua_LIBS"; then
 
17271
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17272
 elif test -n "$PKG_CONFIG"; then
 
17273
    if test -n "$PKG_CONFIG" && \
 
17274
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17275
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17276
  ac_status=$?
 
17277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17278
  test $ac_status = 0; }; then
 
17279
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17280
else
 
17281
  pkg_failed=yes
 
17282
fi
 
17283
 else
 
17284
    pkg_failed=untried
 
17285
fi
 
17286
 
 
17287
 
 
17288
 
 
17289
if test $pkg_failed = yes; then
 
17290
 
 
17291
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17292
        _pkg_short_errors_supported=yes
 
17293
else
 
17294
        _pkg_short_errors_supported=no
 
17295
fi
 
17296
        if test $_pkg_short_errors_supported = yes; then
 
17297
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17298
        else
 
17299
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17300
        fi
 
17301
        # Put the nasty error message in config.log where it belongs
 
17302
        echo "$liblua_PKG_ERRORS" >&5
 
17303
 
 
17304
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17305
 
 
17306
$liblua_PKG_ERRORS
 
17307
 
 
17308
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17309
installed software in a non-standard prefix.
 
17310
 
 
17311
Alternatively, you may set the environment variables liblua_CFLAGS
 
17312
and liblua_LIBS to avoid the need to call pkg-config.
 
17313
See the pkg-config man page for more details.
 
17314
" "$LINENO" 5
 
17315
elif test $pkg_failed = untried; then
 
17316
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17317
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17318
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17319
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17320
path to pkg-config.
 
17321
 
 
17322
Alternatively, you may set the environment variables liblua_CFLAGS
 
17323
and liblua_LIBS to avoid the need to call pkg-config.
 
17324
See the pkg-config man page for more details.
 
17325
 
 
17326
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17327
See \`config.log' for more details." "$LINENO" 5; }
 
17328
else
 
17329
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17330
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17331
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17332
$as_echo "yes" >&6; }
 
17333
        :
 
17334
fi
 
17335
 
 
17336
else
 
17337
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17338
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17339
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17340
$as_echo "yes" >&6; }
 
17341
        :
 
17342
fi
 
17343
 
 
17344
else
 
17345
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17346
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17347
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17348
$as_echo "yes" >&6; }
 
17349
        :
 
17350
fi
 
17351
 
 
17352
elif test $pkg_failed = untried; then
 
17353
 
 
17354
 
 
17355
pkg_failed=no
 
17356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17357
$as_echo_n "checking for liblua... " >&6; }
 
17358
 
 
17359
if test -n "$liblua_CFLAGS"; then
 
17360
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17361
 elif test -n "$PKG_CONFIG"; then
 
17362
    if test -n "$PKG_CONFIG" && \
 
17363
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
 
17364
  ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
 
17365
  ac_status=$?
 
17366
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17367
  test $ac_status = 0; }; then
 
17368
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
 
17369
else
 
17370
  pkg_failed=yes
 
17371
fi
 
17372
 else
 
17373
    pkg_failed=untried
 
17374
fi
 
17375
if test -n "$liblua_LIBS"; then
 
17376
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17377
 elif test -n "$PKG_CONFIG"; then
 
17378
    if test -n "$PKG_CONFIG" && \
 
17379
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
 
17380
  ($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
 
17381
  ac_status=$?
 
17382
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17383
  test $ac_status = 0; }; then
 
17384
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
 
17385
else
 
17386
  pkg_failed=yes
 
17387
fi
 
17388
 else
 
17389
    pkg_failed=untried
 
17390
fi
 
17391
 
 
17392
 
 
17393
 
 
17394
if test $pkg_failed = yes; then
 
17395
 
 
17396
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17397
        _pkg_short_errors_supported=yes
 
17398
else
 
17399
        _pkg_short_errors_supported=no
 
17400
fi
 
17401
        if test $_pkg_short_errors_supported = yes; then
 
17402
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
 
17403
        else
 
17404
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
 
17405
        fi
 
17406
        # Put the nasty error message in config.log where it belongs
 
17407
        echo "$liblua_PKG_ERRORS" >&5
 
17408
 
 
17409
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17410
$as_echo "no" >&6; }
 
17411
 
 
17412
 
 
17413
pkg_failed=no
 
17414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17415
$as_echo_n "checking for liblua... " >&6; }
 
17416
 
 
17417
if test -n "$liblua_CFLAGS"; then
 
17418
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17419
 elif test -n "$PKG_CONFIG"; then
 
17420
    if test -n "$PKG_CONFIG" && \
 
17421
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17422
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17423
  ac_status=$?
 
17424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17425
  test $ac_status = 0; }; then
 
17426
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
17427
else
 
17428
  pkg_failed=yes
 
17429
fi
 
17430
 else
 
17431
    pkg_failed=untried
 
17432
fi
 
17433
if test -n "$liblua_LIBS"; then
 
17434
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17435
 elif test -n "$PKG_CONFIG"; then
 
17436
    if test -n "$PKG_CONFIG" && \
 
17437
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17438
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17439
  ac_status=$?
 
17440
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17441
  test $ac_status = 0; }; then
 
17442
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
17443
else
 
17444
  pkg_failed=yes
 
17445
fi
 
17446
 else
 
17447
    pkg_failed=untried
 
17448
fi
 
17449
 
 
17450
 
 
17451
 
 
17452
if test $pkg_failed = yes; then
 
17453
 
 
17454
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17455
        _pkg_short_errors_supported=yes
 
17456
else
 
17457
        _pkg_short_errors_supported=no
 
17458
fi
 
17459
        if test $_pkg_short_errors_supported = yes; then
 
17460
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
 
17461
        else
 
17462
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
 
17463
        fi
 
17464
        # Put the nasty error message in config.log where it belongs
 
17465
        echo "$liblua_PKG_ERRORS" >&5
 
17466
 
 
17467
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17468
$as_echo "no" >&6; }
 
17469
 
 
17470
 
 
17471
pkg_failed=no
 
17472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17473
$as_echo_n "checking for liblua... " >&6; }
 
17474
 
 
17475
if test -n "$liblua_CFLAGS"; then
 
17476
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17477
 elif test -n "$PKG_CONFIG"; then
 
17478
    if test -n "$PKG_CONFIG" && \
 
17479
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17480
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17481
  ac_status=$?
 
17482
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17483
  test $ac_status = 0; }; then
 
17484
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17485
else
 
17486
  pkg_failed=yes
 
17487
fi
 
17488
 else
 
17489
    pkg_failed=untried
 
17490
fi
 
17491
if test -n "$liblua_LIBS"; then
 
17492
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17493
 elif test -n "$PKG_CONFIG"; then
 
17494
    if test -n "$PKG_CONFIG" && \
 
17495
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17496
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17497
  ac_status=$?
 
17498
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17499
  test $ac_status = 0; }; then
 
17500
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17501
else
 
17502
  pkg_failed=yes
 
17503
fi
 
17504
 else
 
17505
    pkg_failed=untried
 
17506
fi
 
17507
 
 
17508
 
 
17509
 
 
17510
if test $pkg_failed = yes; then
 
17511
 
 
17512
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17513
        _pkg_short_errors_supported=yes
 
17514
else
 
17515
        _pkg_short_errors_supported=no
 
17516
fi
 
17517
        if test $_pkg_short_errors_supported = yes; then
 
17518
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17519
        else
 
17520
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17521
        fi
 
17522
        # Put the nasty error message in config.log where it belongs
 
17523
        echo "$liblua_PKG_ERRORS" >&5
 
17524
 
 
17525
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17526
 
 
17527
$liblua_PKG_ERRORS
 
17528
 
 
17529
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17530
installed software in a non-standard prefix.
 
17531
 
 
17532
Alternatively, you may set the environment variables liblua_CFLAGS
 
17533
and liblua_LIBS to avoid the need to call pkg-config.
 
17534
See the pkg-config man page for more details.
 
17535
" "$LINENO" 5
 
17536
elif test $pkg_failed = untried; then
 
17537
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17538
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17539
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17540
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17541
path to pkg-config.
 
17542
 
 
17543
Alternatively, you may set the environment variables liblua_CFLAGS
 
17544
and liblua_LIBS to avoid the need to call pkg-config.
 
17545
See the pkg-config man page for more details.
 
17546
 
 
17547
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17548
See \`config.log' for more details." "$LINENO" 5; }
 
17549
else
 
17550
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17551
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17552
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17553
$as_echo "yes" >&6; }
 
17554
        :
 
17555
fi
 
17556
 
 
17557
elif test $pkg_failed = untried; then
 
17558
 
 
17559
 
 
17560
pkg_failed=no
 
17561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17562
$as_echo_n "checking for liblua... " >&6; }
 
17563
 
 
17564
if test -n "$liblua_CFLAGS"; then
 
17565
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17566
 elif test -n "$PKG_CONFIG"; then
 
17567
    if test -n "$PKG_CONFIG" && \
 
17568
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17569
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17570
  ac_status=$?
 
17571
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17572
  test $ac_status = 0; }; then
 
17573
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17574
else
 
17575
  pkg_failed=yes
 
17576
fi
 
17577
 else
 
17578
    pkg_failed=untried
 
17579
fi
 
17580
if test -n "$liblua_LIBS"; then
 
17581
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17582
 elif test -n "$PKG_CONFIG"; then
 
17583
    if test -n "$PKG_CONFIG" && \
 
17584
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17585
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17586
  ac_status=$?
 
17587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17588
  test $ac_status = 0; }; then
 
17589
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17590
else
 
17591
  pkg_failed=yes
 
17592
fi
 
17593
 else
 
17594
    pkg_failed=untried
 
17595
fi
 
17596
 
 
17597
 
 
17598
 
 
17599
if test $pkg_failed = yes; then
 
17600
 
 
17601
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17602
        _pkg_short_errors_supported=yes
 
17603
else
 
17604
        _pkg_short_errors_supported=no
 
17605
fi
 
17606
        if test $_pkg_short_errors_supported = yes; then
 
17607
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17608
        else
 
17609
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17610
        fi
 
17611
        # Put the nasty error message in config.log where it belongs
 
17612
        echo "$liblua_PKG_ERRORS" >&5
 
17613
 
 
17614
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17615
 
 
17616
$liblua_PKG_ERRORS
 
17617
 
 
17618
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17619
installed software in a non-standard prefix.
 
17620
 
 
17621
Alternatively, you may set the environment variables liblua_CFLAGS
 
17622
and liblua_LIBS to avoid the need to call pkg-config.
 
17623
See the pkg-config man page for more details.
 
17624
" "$LINENO" 5
 
17625
elif test $pkg_failed = untried; then
 
17626
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17627
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17628
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17629
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17630
path to pkg-config.
 
17631
 
 
17632
Alternatively, you may set the environment variables liblua_CFLAGS
 
17633
and liblua_LIBS to avoid the need to call pkg-config.
 
17634
See the pkg-config man page for more details.
 
17635
 
 
17636
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17637
See \`config.log' for more details." "$LINENO" 5; }
 
17638
else
 
17639
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17640
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17641
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17642
$as_echo "yes" >&6; }
 
17643
        :
 
17644
fi
 
17645
 
 
17646
else
 
17647
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17648
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17649
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17650
$as_echo "yes" >&6; }
 
17651
        :
 
17652
fi
 
17653
 
 
17654
elif test $pkg_failed = untried; then
 
17655
 
 
17656
 
 
17657
pkg_failed=no
 
17658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17659
$as_echo_n "checking for liblua... " >&6; }
 
17660
 
 
17661
if test -n "$liblua_CFLAGS"; then
 
17662
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17663
 elif test -n "$PKG_CONFIG"; then
 
17664
    if test -n "$PKG_CONFIG" && \
 
17665
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17666
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17667
  ac_status=$?
 
17668
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17669
  test $ac_status = 0; }; then
 
17670
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
17671
else
 
17672
  pkg_failed=yes
 
17673
fi
 
17674
 else
 
17675
    pkg_failed=untried
 
17676
fi
 
17677
if test -n "$liblua_LIBS"; then
 
17678
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17679
 elif test -n "$PKG_CONFIG"; then
 
17680
    if test -n "$PKG_CONFIG" && \
 
17681
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
17682
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
17683
  ac_status=$?
 
17684
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17685
  test $ac_status = 0; }; then
 
17686
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
17687
else
 
17688
  pkg_failed=yes
 
17689
fi
 
17690
 else
 
17691
    pkg_failed=untried
 
17692
fi
 
17693
 
 
17694
 
 
17695
 
 
17696
if test $pkg_failed = yes; then
 
17697
 
 
17698
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17699
        _pkg_short_errors_supported=yes
 
17700
else
 
17701
        _pkg_short_errors_supported=no
 
17702
fi
 
17703
        if test $_pkg_short_errors_supported = yes; then
 
17704
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
 
17705
        else
 
17706
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
 
17707
        fi
 
17708
        # Put the nasty error message in config.log where it belongs
 
17709
        echo "$liblua_PKG_ERRORS" >&5
 
17710
 
 
17711
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17712
$as_echo "no" >&6; }
 
17713
 
 
17714
 
 
17715
pkg_failed=no
 
17716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17717
$as_echo_n "checking for liblua... " >&6; }
 
17718
 
 
17719
if test -n "$liblua_CFLAGS"; then
 
17720
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17721
 elif test -n "$PKG_CONFIG"; then
 
17722
    if test -n "$PKG_CONFIG" && \
 
17723
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17724
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17725
  ac_status=$?
 
17726
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17727
  test $ac_status = 0; }; then
 
17728
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17729
else
 
17730
  pkg_failed=yes
 
17731
fi
 
17732
 else
 
17733
    pkg_failed=untried
 
17734
fi
 
17735
if test -n "$liblua_LIBS"; then
 
17736
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17737
 elif test -n "$PKG_CONFIG"; then
 
17738
    if test -n "$PKG_CONFIG" && \
 
17739
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17740
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17741
  ac_status=$?
 
17742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17743
  test $ac_status = 0; }; then
 
17744
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17745
else
 
17746
  pkg_failed=yes
 
17747
fi
 
17748
 else
 
17749
    pkg_failed=untried
 
17750
fi
 
17751
 
 
17752
 
 
17753
 
 
17754
if test $pkg_failed = yes; then
 
17755
 
 
17756
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17757
        _pkg_short_errors_supported=yes
 
17758
else
 
17759
        _pkg_short_errors_supported=no
 
17760
fi
 
17761
        if test $_pkg_short_errors_supported = yes; then
 
17762
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17763
        else
 
17764
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17765
        fi
 
17766
        # Put the nasty error message in config.log where it belongs
 
17767
        echo "$liblua_PKG_ERRORS" >&5
 
17768
 
 
17769
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17770
 
 
17771
$liblua_PKG_ERRORS
 
17772
 
 
17773
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17774
installed software in a non-standard prefix.
 
17775
 
 
17776
Alternatively, you may set the environment variables liblua_CFLAGS
 
17777
and liblua_LIBS to avoid the need to call pkg-config.
 
17778
See the pkg-config man page for more details.
 
17779
" "$LINENO" 5
 
17780
elif test $pkg_failed = untried; then
 
17781
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17782
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17783
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17784
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17785
path to pkg-config.
 
17786
 
 
17787
Alternatively, you may set the environment variables liblua_CFLAGS
 
17788
and liblua_LIBS to avoid the need to call pkg-config.
 
17789
See the pkg-config man page for more details.
 
17790
 
 
17791
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17792
See \`config.log' for more details." "$LINENO" 5; }
 
17793
else
 
17794
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17795
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17796
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17797
$as_echo "yes" >&6; }
 
17798
        :
 
17799
fi
 
17800
 
 
17801
elif test $pkg_failed = untried; then
 
17802
 
 
17803
 
 
17804
pkg_failed=no
 
17805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
 
17806
$as_echo_n "checking for liblua... " >&6; }
 
17807
 
 
17808
if test -n "$liblua_CFLAGS"; then
 
17809
    pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
 
17810
 elif test -n "$PKG_CONFIG"; then
 
17811
    if test -n "$PKG_CONFIG" && \
 
17812
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17813
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17814
  ac_status=$?
 
17815
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17816
  test $ac_status = 0; }; then
 
17817
  pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
17818
else
 
17819
  pkg_failed=yes
 
17820
fi
 
17821
 else
 
17822
    pkg_failed=untried
 
17823
fi
 
17824
if test -n "$liblua_LIBS"; then
 
17825
    pkg_cv_liblua_LIBS="$liblua_LIBS"
 
17826
 elif test -n "$PKG_CONFIG"; then
 
17827
    if test -n "$PKG_CONFIG" && \
 
17828
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
17829
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
17830
  ac_status=$?
 
17831
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17832
  test $ac_status = 0; }; then
 
17833
  pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
17834
else
 
17835
  pkg_failed=yes
 
17836
fi
 
17837
 else
 
17838
    pkg_failed=untried
 
17839
fi
 
17840
 
 
17841
 
 
17842
 
 
17843
if test $pkg_failed = yes; then
 
17844
 
 
17845
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17846
        _pkg_short_errors_supported=yes
 
17847
else
 
17848
        _pkg_short_errors_supported=no
 
17849
fi
 
17850
        if test $_pkg_short_errors_supported = yes; then
 
17851
                liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17852
        else
 
17853
                liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
 
17854
        fi
 
17855
        # Put the nasty error message in config.log where it belongs
 
17856
        echo "$liblua_PKG_ERRORS" >&5
 
17857
 
 
17858
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
17859
 
 
17860
$liblua_PKG_ERRORS
 
17861
 
 
17862
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17863
installed software in a non-standard prefix.
 
17864
 
 
17865
Alternatively, you may set the environment variables liblua_CFLAGS
 
17866
and liblua_LIBS to avoid the need to call pkg-config.
 
17867
See the pkg-config man page for more details.
 
17868
" "$LINENO" 5
 
17869
elif test $pkg_failed = untried; then
 
17870
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17871
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17872
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
17873
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17874
path to pkg-config.
 
17875
 
 
17876
Alternatively, you may set the environment variables liblua_CFLAGS
 
17877
and liblua_LIBS to avoid the need to call pkg-config.
 
17878
See the pkg-config man page for more details.
 
17879
 
 
17880
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17881
See \`config.log' for more details." "$LINENO" 5; }
 
17882
else
 
17883
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17884
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17885
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17886
$as_echo "yes" >&6; }
 
17887
        :
 
17888
fi
 
17889
 
 
17890
else
 
17891
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17892
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17893
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17894
$as_echo "yes" >&6; }
 
17895
        :
 
17896
fi
 
17897
 
 
17898
else
 
17899
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17900
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17901
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17902
$as_echo "yes" >&6; }
 
17903
        :
 
17904
fi
 
17905
 
 
17906
else
 
17907
        liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
 
17908
        liblua_LIBS=$pkg_cv_liblua_LIBS
 
17909
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17910
$as_echo "yes" >&6; }
 
17911
        :
 
17912
fi
 
17913
# Check whether --enable-silent-rules was given.
 
17914
if test "${enable_silent_rules+set}" = set; then :
 
17915
  enableval=$enable_silent_rules;
 
17916
fi
 
17917
 
 
17918
case $enable_silent_rules in
 
17919
yes) AM_DEFAULT_VERBOSITY=0;;
 
17920
no)  AM_DEFAULT_VERBOSITY=1;;
 
17921
*)   AM_DEFAULT_VERBOSITY=0;;
 
17922
esac
 
17923
AM_BACKSLASH='\'
 
17924
 
 
17925
 
 
17926
# Checks for header files.
 
17927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
17928
$as_echo_n "checking for ANSI C header files... " >&6; }
 
17929
if test "${ac_cv_header_stdc+set}" = set; then :
 
17930
  $as_echo_n "(cached) " >&6
 
17931
else
 
17932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17933
/* end confdefs.h.  */
 
17934
#include <stdlib.h>
 
17935
#include <stdarg.h>
 
17936
#include <string.h>
 
17937
#include <float.h>
 
17938
 
 
17939
int
 
17940
main ()
 
17941
{
 
17942
 
 
17943
  ;
 
17944
  return 0;
 
17945
}
 
17946
_ACEOF
 
17947
if ac_fn_c_try_compile "$LINENO"; then :
 
17948
  ac_cv_header_stdc=yes
 
17949
else
 
17950
  ac_cv_header_stdc=no
 
17951
fi
 
17952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17953
 
 
17954
if test $ac_cv_header_stdc = yes; then
 
17955
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
17956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17957
/* end confdefs.h.  */
 
17958
#include <string.h>
 
17959
 
 
17960
_ACEOF
 
17961
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
17962
  $EGREP "memchr" >/dev/null 2>&1; then :
 
17963
 
 
17964
else
 
17965
  ac_cv_header_stdc=no
 
17966
fi
 
17967
rm -f conftest*
 
17968
 
 
17969
fi
 
17970
 
 
17971
if test $ac_cv_header_stdc = yes; then
 
17972
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
17973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17974
/* end confdefs.h.  */
 
17975
#include <stdlib.h>
 
17976
 
 
17977
_ACEOF
 
17978
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
17979
  $EGREP "free" >/dev/null 2>&1; then :
 
17980
 
 
17981
else
 
17982
  ac_cv_header_stdc=no
 
17983
fi
 
17984
rm -f conftest*
 
17985
 
 
17986
fi
 
17987
 
 
17988
if test $ac_cv_header_stdc = yes; then
 
17989
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
17990
  if test "$cross_compiling" = yes; then :
 
17991
  :
 
17992
else
 
17993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17994
/* end confdefs.h.  */
 
17995
#include <ctype.h>
 
17996
#include <stdlib.h>
 
17997
#if ((' ' & 0x0FF) == 0x020)
 
17998
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
17999
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
18000
#else
 
18001
# define ISLOWER(c) \
 
18002
                   (('a' <= (c) && (c) <= 'i') \
 
18003
                     || ('j' <= (c) && (c) <= 'r') \
 
18004
                     || ('s' <= (c) && (c) <= 'z'))
 
18005
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
18006
#endif
 
18007
 
 
18008
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
18009
int
 
18010
main ()
 
18011
{
 
18012
  int i;
 
18013
  for (i = 0; i < 256; i++)
 
18014
    if (XOR (islower (i), ISLOWER (i))
 
18015
        || toupper (i) != TOUPPER (i))
 
18016
      return 2;
 
18017
  return 0;
 
18018
}
 
18019
_ACEOF
 
18020
if ac_fn_c_try_run "$LINENO"; then :
 
18021
 
 
18022
else
 
18023
  ac_cv_header_stdc=no
 
18024
fi
 
18025
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18026
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18027
fi
 
18028
 
 
18029
fi
 
18030
fi
 
18031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
18032
$as_echo "$ac_cv_header_stdc" >&6; }
 
18033
if test $ac_cv_header_stdc = yes; then
 
18034
 
 
18035
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
18036
 
 
18037
fi
 
18038
 # `stdlib.h', `stdarg.h', `string.h', ...
 
18039
for ac_header in memory.h stdint.h stdlib.h limits.h stddef.h
 
18040
do :
 
18041
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18042
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
18043
eval as_val=\$$as_ac_Header
 
18044
   if test "x$as_val" = x""yes; then :
 
18045
  cat >>confdefs.h <<_ACEOF
 
18046
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18047
_ACEOF
 
18048
 
 
18049
fi
 
18050
 
 
18051
done
 
18052
 
 
18053
 
 
18054
# Checks for typedefs, structures, and compiler characteristics.
 
18055
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
18056
if test "x$ac_cv_type_size_t" = x""yes; then :
 
18057
 
 
18058
else
 
18059
 
 
18060
cat >>confdefs.h <<_ACEOF
 
18061
#define size_t unsigned int
 
18062
_ACEOF
 
18063
 
 
18064
fi
 
18065
 
 
18066
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
 
18067
case $ac_cv_c_uint32_t in #(
 
18068
  no|yes) ;; #(
 
18069
  *)
 
18070
 
 
18071
$as_echo "#define _UINT32_T 1" >>confdefs.h
 
18072
 
 
18073
 
 
18074
cat >>confdefs.h <<_ACEOF
 
18075
#define uint32_t $ac_cv_c_uint32_t
 
18076
_ACEOF
 
18077
;;
 
18078
  esac
 
18079
 
 
18080
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
 
18081
case $ac_cv_c_uint64_t in #(
 
18082
  no|yes) ;; #(
 
18083
  *)
 
18084
 
 
18085
$as_echo "#define _UINT64_T 1" >>confdefs.h
 
18086
 
 
18087
 
 
18088
cat >>confdefs.h <<_ACEOF
 
18089
#define uint64_t $ac_cv_c_uint64_t
 
18090
_ACEOF
 
18091
;;
 
18092
  esac
 
18093
 
 
18094
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
 
18095
case $ac_cv_c_uint8_t in #(
 
18096
  no|yes) ;; #(
 
18097
  *)
 
18098
 
 
18099
$as_echo "#define _UINT8_T 1" >>confdefs.h
 
18100
 
 
18101
 
 
18102
cat >>confdefs.h <<_ACEOF
 
18103
#define uint8_t $ac_cv_c_uint8_t
 
18104
_ACEOF
 
18105
;;
 
18106
  esac
 
18107
 
 
18108
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
18109
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
 
18110
 
 
18111
cat >>confdefs.h <<_ACEOF
 
18112
#define HAVE_PTRDIFF_T 1
 
18113
_ACEOF
 
18114
 
 
18115
 
 
18116
fi
 
18117
 
 
18118
 
 
18119
# Checks for library functions.
 
18120
if  test x"$host_w32" = "xno" ; then
 
18121
    for ac_header in stdlib.h
 
18122
do :
 
18123
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
18124
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
18125
  cat >>confdefs.h <<_ACEOF
 
18126
#define HAVE_STDLIB_H 1
 
18127
_ACEOF
 
18128
 
 
18129
fi
 
18130
 
 
18131
done
 
18132
 
 
18133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 
18134
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
18135
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
 
18136
  $as_echo_n "(cached) " >&6
 
18137
else
 
18138
  if test "$cross_compiling" = yes; then :
 
18139
  ac_cv_func_malloc_0_nonnull=no
 
18140
else
 
18141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18142
/* end confdefs.h.  */
 
18143
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
18144
# include <stdlib.h>
 
18145
#else
 
18146
char *malloc ();
 
18147
#endif
 
18148
 
 
18149
int
 
18150
main ()
 
18151
{
 
18152
return ! malloc (0);
 
18153
  ;
 
18154
  return 0;
 
18155
}
 
18156
_ACEOF
 
18157
if ac_fn_c_try_run "$LINENO"; then :
 
18158
  ac_cv_func_malloc_0_nonnull=yes
 
18159
else
 
18160
  ac_cv_func_malloc_0_nonnull=no
 
18161
fi
 
18162
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18163
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18164
fi
 
18165
 
 
18166
fi
 
18167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 
18168
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
18169
if test $ac_cv_func_malloc_0_nonnull = yes; then :
 
18170
 
 
18171
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
 
18172
 
 
18173
else
 
18174
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
 
18175
 
 
18176
   case " $LIBOBJS " in
 
18177
  *" malloc.$ac_objext "* ) ;;
 
18178
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
18179
 ;;
 
18180
esac
 
18181
 
 
18182
 
 
18183
$as_echo "#define malloc rpl_malloc" >>confdefs.h
 
18184
 
 
18185
fi
 
18186
 
 
18187
 
 
18188
    for ac_header in stdlib.h
 
18189
do :
 
18190
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
18191
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
18192
  cat >>confdefs.h <<_ACEOF
 
18193
#define HAVE_STDLIB_H 1
 
18194
_ACEOF
 
18195
 
 
18196
fi
 
18197
 
 
18198
done
 
18199
 
 
18200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
 
18201
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
 
18202
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
 
18203
  $as_echo_n "(cached) " >&6
 
18204
else
 
18205
  if test "$cross_compiling" = yes; then :
 
18206
  ac_cv_func_realloc_0_nonnull=no
 
18207
else
 
18208
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18209
/* end confdefs.h.  */
 
18210
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
18211
# include <stdlib.h>
 
18212
#else
 
18213
char *realloc ();
 
18214
#endif
 
18215
 
 
18216
int
 
18217
main ()
 
18218
{
 
18219
return ! realloc (0, 0);
 
18220
  ;
 
18221
  return 0;
 
18222
}
 
18223
_ACEOF
 
18224
if ac_fn_c_try_run "$LINENO"; then :
 
18225
  ac_cv_func_realloc_0_nonnull=yes
 
18226
else
 
18227
  ac_cv_func_realloc_0_nonnull=no
 
18228
fi
 
18229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18230
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18231
fi
 
18232
 
 
18233
fi
 
18234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
 
18235
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
 
18236
if test $ac_cv_func_realloc_0_nonnull = yes; then :
 
18237
 
 
18238
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
 
18239
 
 
18240
else
 
18241
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
 
18242
 
 
18243
   case " $LIBOBJS " in
 
18244
  *" realloc.$ac_objext "* ) ;;
 
18245
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
18246
 ;;
 
18247
esac
 
18248
 
 
18249
 
 
18250
$as_echo "#define realloc rpl_realloc" >>confdefs.h
 
18251
 
 
18252
fi
 
18253
 
 
18254
 
 
18255
fi
 
18256
for ac_func in memset strdup strstr strtol strerror strcspn getcwd
 
18257
do :
 
18258
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18259
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
18260
eval as_val=\$$as_ac_var
 
18261
   if test "x$as_val" = x""yes; then :
 
18262
  cat >>confdefs.h <<_ACEOF
 
18263
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18264
_ACEOF
 
18265
 
 
18266
fi
 
18267
done
 
18268
 
 
18269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
 
18270
$as_echo_n "checking for working strtod... " >&6; }
 
18271
if test "${ac_cv_func_strtod+set}" = set; then :
 
18272
  $as_echo_n "(cached) " >&6
 
18273
else
 
18274
  if test "$cross_compiling" = yes; then :
 
18275
  ac_cv_func_strtod=no
 
18276
else
 
18277
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18278
/* end confdefs.h.  */
 
18279
 
 
18280
$ac_includes_default
 
18281
#ifndef strtod
 
18282
double strtod ();
 
18283
#endif
 
18284
int
 
18285
main()
 
18286
{
 
18287
  {
 
18288
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
 
18289
    char *string = " +69";
 
18290
    char *term;
 
18291
    double value;
 
18292
    value = strtod (string, &term);
 
18293
    if (value != 69 || term != (string + 4))
 
18294
      return 1;
 
18295
  }
 
18296
 
 
18297
  {
 
18298
    /* Under Solaris 2.4, strtod returns the wrong value for the
 
18299
       terminating character under some conditions.  */
 
18300
    char *string = "NaN";
 
18301
    char *term;
 
18302
    strtod (string, &term);
 
18303
    if (term != string && *(term - 1) == 0)
 
18304
      return 1;
 
18305
  }
 
18306
  return 0;
 
18307
}
 
18308
 
 
18309
_ACEOF
 
18310
if ac_fn_c_try_run "$LINENO"; then :
 
18311
  ac_cv_func_strtod=yes
 
18312
else
 
18313
  ac_cv_func_strtod=no
 
18314
fi
 
18315
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18316
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18317
fi
 
18318
 
 
18319
fi
 
18320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
 
18321
$as_echo "$ac_cv_func_strtod" >&6; }
 
18322
if test $ac_cv_func_strtod = no; then
 
18323
  case " $LIBOBJS " in
 
18324
  *" strtod.$ac_objext "* ) ;;
 
18325
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
 
18326
 ;;
 
18327
esac
 
18328
 
 
18329
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
 
18330
if test "x$ac_cv_func_pow" = x""yes; then :
 
18331
 
 
18332
fi
 
18333
 
 
18334
if test $ac_cv_func_pow = no; then
 
18335
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
 
18336
$as_echo_n "checking for pow in -lm... " >&6; }
 
18337
if test "${ac_cv_lib_m_pow+set}" = set; then :
 
18338
  $as_echo_n "(cached) " >&6
 
18339
else
 
18340
  ac_check_lib_save_LIBS=$LIBS
 
18341
LIBS="-lm  $LIBS"
 
18342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18343
/* end confdefs.h.  */
 
18344
 
 
18345
/* Override any GCC internal prototype to avoid an error.
 
18346
   Use char because int might match the return type of a GCC
 
18347
   builtin and then its argument prototype would still apply.  */
 
18348
#ifdef __cplusplus
 
18349
extern "C"
 
18350
#endif
 
18351
char pow ();
 
18352
int
 
18353
main ()
 
18354
{
 
18355
return pow ();
 
18356
  ;
 
18357
  return 0;
 
18358
}
 
18359
_ACEOF
 
18360
if ac_fn_c_try_link "$LINENO"; then :
 
18361
  ac_cv_lib_m_pow=yes
 
18362
else
 
18363
  ac_cv_lib_m_pow=no
 
18364
fi
 
18365
rm -f core conftest.err conftest.$ac_objext \
 
18366
    conftest$ac_exeext conftest.$ac_ext
 
18367
LIBS=$ac_check_lib_save_LIBS
 
18368
fi
 
18369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
 
18370
$as_echo "$ac_cv_lib_m_pow" >&6; }
 
18371
if test "x$ac_cv_lib_m_pow" = x""yes; then :
 
18372
  POW_LIB=-lm
 
18373
else
 
18374
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
 
18375
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
 
18376
fi
 
18377
 
 
18378
fi
 
18379
 
 
18380
fi
 
18381
 
 
18382
 
 
18383
have_asprintf=no
 
18384
for ac_func in vasprintf
 
18385
do :
 
18386
  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
 
18387
if test "x$ac_cv_func_vasprintf" = x""yes; then :
 
18388
  cat >>confdefs.h <<_ACEOF
 
18389
#define HAVE_VASPRINTF 1
 
18390
_ACEOF
 
18391
 
 
18392
    for ac_func in asprintf
 
18393
do :
 
18394
  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
 
18395
if test "x$ac_cv_func_asprintf" = x""yes; then :
 
18396
  cat >>confdefs.h <<_ACEOF
 
18397
#define HAVE_ASPRINTF 1
 
18398
_ACEOF
 
18399
 have_asprintf=yes
 
18400
fi
 
18401
done
 
18402
 
 
18403
 
 
18404
fi
 
18405
done
 
18406
 
 
18407
 if test x"$have_asprintf" != "xyes"; then
 
18408
  NO_ASPRINTF_TRUE=
 
18409
  NO_ASPRINTF_FALSE='#'
 
18410
else
 
18411
  NO_ASPRINTF_TRUE='#'
 
18412
  NO_ASPRINTF_FALSE=
 
18413
fi
 
18414
 
 
18415
 
 
18416
have_strupr=no
 
18417
for ac_func in strupr
 
18418
do :
 
18419
  ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
 
18420
if test "x$ac_cv_func_strupr" = x""yes; then :
 
18421
  cat >>confdefs.h <<_ACEOF
 
18422
#define HAVE_STRUPR 1
 
18423
_ACEOF
 
18424
 have_strupr=yes
 
18425
fi
 
18426
done
 
18427
 
 
18428
 if test x"$have_strupr" != "xyes"; then
 
18429
  NO_STRUPR_TRUE=
 
18430
  NO_STRUPR_FALSE='#'
 
18431
else
 
18432
  NO_STRUPR_TRUE='#'
 
18433
  NO_STRUPR_FALSE=
 
18434
fi
 
18435
 
 
18436
 
 
18437
have_strtok_r=no
 
18438
for ac_func in strtok_r
 
18439
do :
 
18440
  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
 
18441
if test "x$ac_cv_func_strtok_r" = x""yes; then :
 
18442
  cat >>confdefs.h <<_ACEOF
 
18443
#define HAVE_STRTOK_R 1
 
18444
_ACEOF
 
18445
 have_strtok_r=yes
 
18446
fi
 
18447
done
 
18448
 
 
18449
 if test x"$have_strtok_r" != "xyes"; then
 
18450
  NO_STRTOK_R_TRUE=
 
18451
  NO_STRTOK_R_FALSE='#'
 
18452
else
 
18453
  NO_STRTOK_R_TRUE='#'
 
18454
  NO_STRTOK_R_FALSE=
 
18455
fi
 
18456
 
 
18457
 
 
18458
if  test x"$have_strtok_r" = "xno" ; then
 
18459
    for ac_func in strchr strpbrk strspn
 
18460
do :
 
18461
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18462
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
18463
eval as_val=\$$as_ac_var
 
18464
   if test "x$as_val" = x""yes; then :
 
18465
  cat >>confdefs.h <<_ACEOF
 
18466
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18467
_ACEOF
 
18468
 
 
18469
fi
 
18470
done
 
18471
 
 
18472
fi
 
18473
 
 
18474
# --enable-quvi
 
18475
# Check whether --enable-quvi was given.
 
18476
if test "${enable_quvi+set}" = set; then :
 
18477
  enableval=$enable_quvi;
 
18478
else
 
18479
  enable_quvi=yes
 
18480
fi
 
18481
 
 
18482
 if test x"$enable_quvi" != "xno"; then
 
18483
  ENABLE_QUVI_TRUE=
 
18484
  ENABLE_QUVI_FALSE='#'
 
18485
else
 
18486
  ENABLE_QUVI_TRUE='#'
 
18487
  ENABLE_QUVI_FALSE=
 
18488
fi
 
18489
 
 
18490
 
 
18491
# --enable-examples
 
18492
# Check whether --enable-examples was given.
 
18493
if test "${enable_examples+set}" = set; then :
 
18494
  enableval=$enable_examples;
 
18495
else
 
18496
  enable_examples=no
 
18497
fi
 
18498
 
 
18499
 if test x"$enable_examples" != "xno"; then
 
18500
  ENABLE_EXAMPLES_TRUE=
 
18501
  ENABLE_EXAMPLES_FALSE='#'
 
18502
else
 
18503
  ENABLE_EXAMPLES_TRUE='#'
 
18504
  ENABLE_EXAMPLES_FALSE=
 
18505
fi
 
18506
 
 
18507
 
 
18508
# --enable-smut
 
18509
# Check whether --enable-smut was given.
 
18510
if test "${enable_smut+set}" = set; then :
 
18511
  enableval=$enable_smut;
 
18512
else
 
18513
  enable_smut=no
 
18514
fi
 
18515
 
 
18516
 if test x"$enable_smut" != "xno"; then
 
18517
  ENABLE_SMUT_TRUE=
 
18518
  ENABLE_SMUT_FALSE='#'
 
18519
else
 
18520
  ENABLE_SMUT_TRUE='#'
 
18521
  ENABLE_SMUT_FALSE=
 
18522
fi
 
18523
 
 
18524
 
 
18525
if  test x"$enable_smut" != "xno" ; then
 
18526
 
 
18527
$as_echo "#define ENABLE_SMUT 1" >>confdefs.h
 
18528
 
 
18529
fi
 
18530
 
 
18531
# --enable-broken
 
18532
# Check whether --enable-broken was given.
 
18533
if test "${enable_broken+set}" = set; then :
 
18534
  enableval=$enable_broken;
 
18535
else
 
18536
  enable_broken=no
 
18537
fi
 
18538
 
 
18539
 if test x"$enable_broken" != "xno"; then
 
18540
  ENABLE_BROKEN_TRUE=
 
18541
  ENABLE_BROKEN_FALSE='#'
 
18542
else
 
18543
  ENABLE_BROKEN_TRUE='#'
 
18544
  ENABLE_BROKEN_FALSE=
 
18545
fi
 
18546
 
 
18547
 
 
18548
if  test x"$enable_broken" != "xno" ; then
 
18549
 
 
18550
$as_echo "#define ENABLE_BROKEN 1" >>confdefs.h
 
18551
 
 
18552
fi
 
18553
 
 
18554
 
 
18555
# --with-man
 
18556
 
 
18557
# Check whether --with-man was given.
 
18558
if test "${with_man+set}" = set; then :
 
18559
  withval=$with_man;
 
18560
else
 
18561
  with_man=yes
 
18562
fi
 
18563
 
 
18564
 if test x"$with_man" != "xno"; then
 
18565
  WITH_MAN_TRUE=
 
18566
  WITH_MAN_FALSE='#'
 
18567
else
 
18568
  WITH_MAN_TRUE='#'
 
18569
  WITH_MAN_FALSE=
 
18570
fi
 
18571
 
 
18572
 
 
18573
# --with-doc
 
18574
 
 
18575
# Check whether --with-doc was given.
 
18576
if test "${with_doc+set}" = set; then :
 
18577
  withval=$with_doc;
 
18578
else
 
18579
  with_doc=yes
 
18580
fi
 
18581
 
 
18582
 if test x"$with_doc" != "xno"; then
 
18583
  WITH_DOC_TRUE=
 
18584
  WITH_DOC_FALSE='#'
 
18585
else
 
18586
  WITH_DOC_TRUE='#'
 
18587
  WITH_DOC_FALSE=
 
18588
fi
 
18589
 
 
18590
 
 
18591
# GNU ld?
 
18592
 if test x"$with_gnu_ld" = "xyes"; then
 
18593
  HAVE_GNU_LD_TRUE=
 
18594
  HAVE_GNU_LD_FALSE='#'
 
18595
else
 
18596
  HAVE_GNU_LD_TRUE='#'
 
18597
  HAVE_GNU_LD_FALSE=
 
18598
fi
 
18599
 
 
18600
 
 
18601
ac_config_files="$ac_config_files Makefile include/Makefile include/quvi/Makefile include/quvi/quvi.h lib/Makefile share/Makefile doc/Makefile src/Makefile examples/Makefile tests/Makefile tests/quviTest.pm libquvi.pc doxygen.conf"
 
18602
 
 
18603
 
 
18604
cat >confcache <<\_ACEOF
 
18605
# This file is a shell script that caches the results of configure
 
18606
# tests run on this system so they can be shared between configure
 
18607
# scripts and configure runs, see configure's option --config-cache.
 
18608
# It is not useful on other systems.  If it contains results you don't
 
18609
# want to keep, you may remove or edit it.
 
18610
#
 
18611
# config.status only pays attention to the cache file if you give it
 
18612
# the --recheck option to rerun configure.
 
18613
#
 
18614
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18615
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18616
# following values.
 
18617
 
 
18618
_ACEOF
 
18619
 
 
18620
# The following way of writing the cache mishandles newlines in values,
 
18621
# but we know of no workaround that is simple, portable, and efficient.
 
18622
# So, we kill variables containing newlines.
 
18623
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18624
# and sets the high bit in the cache file unless we assign to the vars.
 
18625
(
 
18626
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
18627
    eval ac_val=\$$ac_var
 
18628
    case $ac_val in #(
 
18629
    *${as_nl}*)
 
18630
      case $ac_var in #(
 
18631
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
18632
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
18633
      esac
 
18634
      case $ac_var in #(
 
18635
      _ | IFS | as_nl) ;; #(
 
18636
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
18637
      *) { eval $ac_var=; unset $ac_var;} ;;
 
18638
      esac ;;
 
18639
    esac
 
18640
  done
 
18641
 
 
18642
  (set) 2>&1 |
 
18643
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18644
    *${as_nl}ac_space=\ *)
 
18645
      # `set' does not quote correctly, so add quotes: double-quote
 
18646
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
18647
      sed -n \
 
18648
        "s/'/'\\\\''/g;
 
18649
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18650
      ;; #(
 
18651
    *)
 
18652
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18653
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18654
      ;;
 
18655
    esac |
 
18656
    sort
 
18657
) |
 
18658
  sed '
 
18659
     /^ac_cv_env_/b end
 
18660
     t clear
 
18661
     :clear
 
18662
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18663
     t end
 
18664
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18665
     :end' >>confcache
 
18666
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18667
  if test -w "$cache_file"; then
 
18668
    test "x$cache_file" != "x/dev/null" &&
 
18669
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
18670
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
18671
    cat confcache >$cache_file
 
18672
  else
 
18673
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
18674
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18675
  fi
 
18676
fi
 
18677
rm -f confcache
 
18678
 
 
18679
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18680
# Let make expand exec_prefix.
 
18681
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18682
 
 
18683
DEFS=-DHAVE_CONFIG_H
 
18684
 
 
18685
ac_libobjs=
 
18686
ac_ltlibobjs=
 
18687
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18688
  # 1. Remove the extension, and $U if already installed.
 
18689
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18690
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
18691
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18692
  #    will be set to the directory where LIBOBJS objects are built.
 
18693
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18694
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
18695
done
 
18696
LIBOBJS=$ac_libobjs
 
18697
 
 
18698
LTLIBOBJS=$ac_ltlibobjs
 
18699
 
 
18700
 
 
18701
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18702
  as_fn_error "conditional \"AMDEP\" was never defined.
 
18703
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18704
fi
 
18705
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18706
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
18707
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18708
fi
 
18709
 if test -n "$EXEEXT"; then
 
18710
  am__EXEEXT_TRUE=
 
18711
  am__EXEEXT_FALSE='#'
 
18712
else
 
18713
  am__EXEEXT_TRUE='#'
 
18714
  am__EXEEXT_FALSE=
 
18715
fi
 
18716
 
 
18717
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18718
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
18719
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18720
fi
 
18721
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18722
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
18723
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18724
fi
 
18725
if test -z "${HAVE_GENGETOPT_TRUE}" && test -z "${HAVE_GENGETOPT_FALSE}"; then
 
18726
  as_fn_error "conditional \"HAVE_GENGETOPT\" was never defined.
 
18727
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18728
fi
 
18729
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
 
18730
  as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
 
18731
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18732
fi
 
18733
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
 
18734
  as_fn_error "conditional \"HAVE_PERL\" was never defined.
 
18735
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18736
fi
 
18737
if test -z "${HAVE_PERL_POD_CHECKER_TRUE}" && test -z "${HAVE_PERL_POD_CHECKER_FALSE}"; then
 
18738
  as_fn_error "conditional \"HAVE_PERL_POD_CHECKER\" was never defined.
 
18739
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18740
fi
 
18741
if test -z "${HAVE_POD2MAN_TRUE}" && test -z "${HAVE_POD2MAN_FALSE}"; then
 
18742
  as_fn_error "conditional \"HAVE_POD2MAN\" was never defined.
 
18743
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18744
fi
 
18745
if test -z "${HAVE_POD2HTML_TRUE}" && test -z "${HAVE_POD2HTML_FALSE}"; then
 
18746
  as_fn_error "conditional \"HAVE_POD2HTML\" was never defined.
 
18747
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18748
fi
 
18749
if test -z "${NO_ASPRINTF_TRUE}" && test -z "${NO_ASPRINTF_FALSE}"; then
 
18750
  as_fn_error "conditional \"NO_ASPRINTF\" was never defined.
 
18751
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18752
fi
 
18753
if test -z "${NO_STRUPR_TRUE}" && test -z "${NO_STRUPR_FALSE}"; then
 
18754
  as_fn_error "conditional \"NO_STRUPR\" was never defined.
 
18755
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18756
fi
 
18757
if test -z "${NO_STRTOK_R_TRUE}" && test -z "${NO_STRTOK_R_FALSE}"; then
 
18758
  as_fn_error "conditional \"NO_STRTOK_R\" was never defined.
 
18759
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18760
fi
 
18761
if test -z "${ENABLE_QUVI_TRUE}" && test -z "${ENABLE_QUVI_FALSE}"; then
 
18762
  as_fn_error "conditional \"ENABLE_QUVI\" was never defined.
 
18763
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18764
fi
 
18765
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
 
18766
  as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
 
18767
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18768
fi
 
18769
if test -z "${ENABLE_SMUT_TRUE}" && test -z "${ENABLE_SMUT_FALSE}"; then
 
18770
  as_fn_error "conditional \"ENABLE_SMUT\" was never defined.
 
18771
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18772
fi
 
18773
if test -z "${ENABLE_BROKEN_TRUE}" && test -z "${ENABLE_BROKEN_FALSE}"; then
 
18774
  as_fn_error "conditional \"ENABLE_BROKEN\" was never defined.
 
18775
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18776
fi
 
18777
if test -z "${WITH_MAN_TRUE}" && test -z "${WITH_MAN_FALSE}"; then
 
18778
  as_fn_error "conditional \"WITH_MAN\" was never defined.
 
18779
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18780
fi
 
18781
if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
 
18782
  as_fn_error "conditional \"WITH_DOC\" was never defined.
 
18783
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18784
fi
 
18785
if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
 
18786
  as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
 
18787
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18788
fi
 
18789
 
 
18790
: ${CONFIG_STATUS=./config.status}
 
18791
ac_write_fail=0
 
18792
ac_clean_files_save=$ac_clean_files
 
18793
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18794
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
18795
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18796
as_write_fail=0
 
18797
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
18798
#! $SHELL
 
18799
# Generated by $as_me.
 
18800
# Run this file to recreate the current configuration.
 
18801
# Compiler output produced by configure, useful for debugging
 
18802
# configure, is in config.log if it exists.
 
18803
 
 
18804
debug=false
 
18805
ac_cs_recheck=false
 
18806
ac_cs_silent=false
 
18807
 
 
18808
SHELL=\${CONFIG_SHELL-$SHELL}
 
18809
export SHELL
 
18810
_ASEOF
 
18811
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
18812
## -------------------- ##
 
18813
## M4sh Initialization. ##
 
18814
## -------------------- ##
 
18815
 
 
18816
# Be more Bourne compatible
 
18817
DUALCASE=1; export DUALCASE # for MKS sh
 
18818
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18819
  emulate sh
 
18820
  NULLCMD=:
 
18821
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
18822
  # is contrary to our usage.  Disable this feature.
 
18823
  alias -g '${1+"$@"}'='"$@"'
 
18824
  setopt NO_GLOB_SUBST
 
18825
else
 
18826
  case `(set -o) 2>/dev/null` in #(
 
18827
  *posix*) :
 
18828
    set -o posix ;; #(
 
18829
  *) :
 
18830
     ;;
 
18831
esac
 
18832
fi
 
18833
 
 
18834
 
 
18835
as_nl='
 
18836
'
 
18837
export as_nl
 
18838
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
18839
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
18840
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
18841
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
18842
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
18843
# but without wasting forks for bash or zsh.
 
18844
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
18845
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18846
  as_echo='print -r --'
 
18847
  as_echo_n='print -rn --'
 
18848
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18849
  as_echo='printf %s\n'
 
18850
  as_echo_n='printf %s'
 
18851
else
 
18852
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
18853
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
18854
    as_echo_n='/usr/ucb/echo -n'
 
18855
  else
 
18856
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
18857
    as_echo_n_body='eval
 
18858
      arg=$1;
 
18859
      case $arg in #(
 
18860
      *"$as_nl"*)
 
18861
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
18862
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
18863
      esac;
 
18864
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
18865
    '
 
18866
    export as_echo_n_body
 
18867
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
18868
  fi
 
18869
  export as_echo_body
 
18870
  as_echo='sh -c $as_echo_body as_echo'
 
18871
fi
 
18872
 
 
18873
# The user is always right.
 
18874
if test "${PATH_SEPARATOR+set}" != set; then
 
18875
  PATH_SEPARATOR=:
 
18876
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
18877
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
18878
      PATH_SEPARATOR=';'
 
18879
  }
 
18880
fi
 
18881
 
 
18882
 
 
18883
# IFS
 
18884
# We need space, tab and new line, in precisely that order.  Quoting is
 
18885
# there to prevent editors from complaining about space-tab.
 
18886
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
18887
# splitting by setting IFS to empty value.)
 
18888
IFS=" ""        $as_nl"
 
18889
 
 
18890
# Find who we are.  Look in the path if we contain no directory separator.
 
18891
case $0 in #((
 
18892
  *[\\/]* ) as_myself=$0 ;;
 
18893
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18894
for as_dir in $PATH
 
18895
do
 
18896
  IFS=$as_save_IFS
 
18897
  test -z "$as_dir" && as_dir=.
 
18898
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18899
  done
 
18900
IFS=$as_save_IFS
 
18901
 
 
18902
     ;;
 
18903
esac
 
18904
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
18905
# in which case we are not to be found in the path.
 
18906
if test "x$as_myself" = x; then
 
18907
  as_myself=$0
 
18908
fi
 
18909
if test ! -f "$as_myself"; then
 
18910
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
18911
  exit 1
 
18912
fi
 
18913
 
 
18914
# Unset variables that we do not need and which cause bugs (e.g. in
 
18915
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
18916
# suppresses any "Segmentation fault" message there.  '((' could
 
18917
# trigger a bug in pdksh 5.2.14.
 
18918
for as_var in BASH_ENV ENV MAIL MAILPATH
 
18919
do eval test x\${$as_var+set} = xset \
 
18920
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
18921
done
 
18922
PS1='$ '
 
18923
PS2='> '
 
18924
PS4='+ '
 
18925
 
 
18926
# NLS nuisances.
 
18927
LC_ALL=C
 
18928
export LC_ALL
 
18929
LANGUAGE=C
 
18930
export LANGUAGE
 
18931
 
 
18932
# CDPATH.
 
18933
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18934
 
 
18935
 
 
18936
# as_fn_error ERROR [LINENO LOG_FD]
 
18937
# ---------------------------------
 
18938
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
18939
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
18940
# script with status $?, using 1 if that was 0.
 
18941
as_fn_error ()
 
18942
{
 
18943
  as_status=$?; test $as_status -eq 0 && as_status=1
 
18944
  if test "$3"; then
 
18945
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
18946
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
18947
  fi
 
18948
  $as_echo "$as_me: error: $1" >&2
 
18949
  as_fn_exit $as_status
 
18950
} # as_fn_error
 
18951
 
 
18952
 
 
18953
# as_fn_set_status STATUS
 
18954
# -----------------------
 
18955
# Set $? to STATUS, without forking.
 
18956
as_fn_set_status ()
 
18957
{
 
18958
  return $1
 
18959
} # as_fn_set_status
 
18960
 
 
18961
# as_fn_exit STATUS
 
18962
# -----------------
 
18963
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
18964
as_fn_exit ()
 
18965
{
 
18966
  set +e
 
18967
  as_fn_set_status $1
 
18968
  exit $1
 
18969
} # as_fn_exit
 
18970
 
 
18971
# as_fn_unset VAR
 
18972
# ---------------
 
18973
# Portably unset VAR.
 
18974
as_fn_unset ()
 
18975
{
 
18976
  { eval $1=; unset $1;}
 
18977
}
 
18978
as_unset=as_fn_unset
 
18979
# as_fn_append VAR VALUE
 
18980
# ----------------------
 
18981
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
18982
# advantage of any shell optimizations that allow amortized linear growth over
 
18983
# repeated appends, instead of the typical quadratic growth present in naive
 
18984
# implementations.
 
18985
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
18986
  eval 'as_fn_append ()
 
18987
  {
 
18988
    eval $1+=\$2
 
18989
  }'
 
18990
else
 
18991
  as_fn_append ()
 
18992
  {
 
18993
    eval $1=\$$1\$2
 
18994
  }
 
18995
fi # as_fn_append
 
18996
 
 
18997
# as_fn_arith ARG...
 
18998
# ------------------
 
18999
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
19000
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
19001
# must be portable across $(()) and expr.
 
19002
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
19003
  eval 'as_fn_arith ()
 
19004
  {
 
19005
    as_val=$(( $* ))
 
19006
  }'
 
19007
else
 
19008
  as_fn_arith ()
 
19009
  {
 
19010
    as_val=`expr "$@" || test $? -eq 1`
 
19011
  }
 
19012
fi # as_fn_arith
 
19013
 
 
19014
 
 
19015
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19016
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19017
  as_expr=expr
 
19018
else
 
19019
  as_expr=false
 
19020
fi
 
19021
 
 
19022
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
19023
  as_basename=basename
 
19024
else
 
19025
  as_basename=false
 
19026
fi
 
19027
 
 
19028
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
19029
  as_dirname=dirname
 
19030
else
 
19031
  as_dirname=false
 
19032
fi
 
19033
 
 
19034
as_me=`$as_basename -- "$0" ||
 
19035
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19036
         X"$0" : 'X\(//\)$' \| \
 
19037
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
19038
$as_echo X/"$0" |
 
19039
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
19040
            s//\1/
 
19041
            q
 
19042
          }
 
19043
          /^X\/\(\/\/\)$/{
 
19044
            s//\1/
 
19045
            q
 
19046
          }
 
19047
          /^X\/\(\/\).*/{
 
19048
            s//\1/
 
19049
            q
 
19050
          }
 
19051
          s/.*/./; q'`
 
19052
 
 
19053
# Avoid depending upon Character Ranges.
 
19054
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19055
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19056
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19057
as_cr_digits='0123456789'
 
19058
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19059
 
 
19060
ECHO_C= ECHO_N= ECHO_T=
 
19061
case `echo -n x` in #(((((
 
19062
-n*)
 
19063
  case `echo 'xy\c'` in
 
19064
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
19065
  xy)  ECHO_C='\c';;
 
19066
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
19067
       ECHO_T=' ';;
 
19068
  esac;;
 
19069
*)
 
19070
  ECHO_N='-n';;
 
19071
esac
 
19072
 
 
19073
rm -f conf$$ conf$$.exe conf$$.file
 
19074
if test -d conf$$.dir; then
 
19075
  rm -f conf$$.dir/conf$$.file
 
19076
else
 
19077
  rm -f conf$$.dir
 
19078
  mkdir conf$$.dir 2>/dev/null
 
19079
fi
 
19080
if (echo >conf$$.file) 2>/dev/null; then
 
19081
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19082
    as_ln_s='ln -s'
 
19083
    # ... but there are two gotchas:
 
19084
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
19085
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
19086
    # In both cases, we have to default to `cp -p'.
 
19087
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
19088
      as_ln_s='cp -p'
 
19089
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
19090
    as_ln_s=ln
 
19091
  else
 
19092
    as_ln_s='cp -p'
 
19093
  fi
 
19094
else
 
19095
  as_ln_s='cp -p'
 
19096
fi
 
19097
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
19098
rmdir conf$$.dir 2>/dev/null
 
19099
 
 
19100
 
 
19101
# as_fn_mkdir_p
 
19102
# -------------
 
19103
# Create "$as_dir" as a directory, including parents if necessary.
 
19104
as_fn_mkdir_p ()
 
19105
{
 
19106
 
 
19107
  case $as_dir in #(
 
19108
  -*) as_dir=./$as_dir;;
 
19109
  esac
 
19110
  test -d "$as_dir" || eval $as_mkdir_p || {
 
19111
    as_dirs=
 
19112
    while :; do
 
19113
      case $as_dir in #(
 
19114
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
19115
      *) as_qdir=$as_dir;;
 
19116
      esac
 
19117
      as_dirs="'$as_qdir' $as_dirs"
 
19118
      as_dir=`$as_dirname -- "$as_dir" ||
 
19119
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19120
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19121
         X"$as_dir" : 'X\(//\)$' \| \
 
19122
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19123
$as_echo X"$as_dir" |
 
19124
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19125
            s//\1/
 
19126
            q
 
19127
          }
 
19128
          /^X\(\/\/\)[^/].*/{
 
19129
            s//\1/
 
19130
            q
 
19131
          }
 
19132
          /^X\(\/\/\)$/{
 
19133
            s//\1/
 
19134
            q
 
19135
          }
 
19136
          /^X\(\/\).*/{
 
19137
            s//\1/
 
19138
            q
 
19139
          }
 
19140
          s/.*/./; q'`
 
19141
      test -d "$as_dir" && break
 
19142
    done
 
19143
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19144
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
19145
 
 
19146
 
 
19147
} # as_fn_mkdir_p
 
19148
if mkdir -p . 2>/dev/null; then
 
19149
  as_mkdir_p='mkdir -p "$as_dir"'
 
19150
else
 
19151
  test -d ./-p && rmdir ./-p
 
19152
  as_mkdir_p=false
 
19153
fi
 
19154
 
 
19155
if test -x / >/dev/null 2>&1; then
 
19156
  as_test_x='test -x'
 
19157
else
 
19158
  if ls -dL / >/dev/null 2>&1; then
 
19159
    as_ls_L_option=L
 
19160
  else
 
19161
    as_ls_L_option=
 
19162
  fi
 
19163
  as_test_x='
 
19164
    eval sh -c '\''
 
19165
      if test -d "$1"; then
 
19166
        test -d "$1/.";
 
19167
      else
 
19168
        case $1 in #(
 
19169
        -*)set "./$1";;
 
19170
        esac;
 
19171
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
19172
        ???[sx]*):;;*)false;;esac;fi
 
19173
    '\'' sh
 
19174
  '
 
19175
fi
 
19176
as_executable_p=$as_test_x
 
19177
 
 
19178
# Sed expression to map a string onto a valid CPP name.
 
19179
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19180
 
 
19181
# Sed expression to map a string onto a valid variable name.
 
19182
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19183
 
 
19184
 
 
19185
exec 6>&1
 
19186
## ----------------------------------- ##
 
19187
## Main body of $CONFIG_STATUS script. ##
 
19188
## ----------------------------------- ##
 
19189
_ASEOF
 
19190
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
19191
 
 
19192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19193
# Save the log message, to keep $0 and so on meaningful, and to
 
19194
# report actual input values of CONFIG_FILES etc. instead of their
 
19195
# values after options handling.
 
19196
ac_log="
 
19197
This file was extended by quvi $as_me 0.2.0, which was
 
19198
generated by GNU Autoconf 2.65.  Invocation command line was
 
19199
 
 
19200
  CONFIG_FILES    = $CONFIG_FILES
 
19201
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19202
  CONFIG_LINKS    = $CONFIG_LINKS
 
19203
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19204
  $ $0 $@
 
19205
 
 
19206
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
19207
"
 
19208
 
 
19209
_ACEOF
 
19210
 
 
19211
case $ac_config_files in *"
 
19212
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
19213
esac
 
19214
 
 
19215
case $ac_config_headers in *"
 
19216
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
19217
esac
 
19218
 
 
19219
 
 
19220
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19221
# Files that config.status was made for.
 
19222
config_files="$ac_config_files"
 
19223
config_headers="$ac_config_headers"
 
19224
config_commands="$ac_config_commands"
 
19225
 
 
19226
_ACEOF
 
19227
 
 
19228
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19229
ac_cs_usage="\
 
19230
\`$as_me' instantiates files and other configuration actions
 
19231
from templates according to the current configuration.  Unless the files
 
19232
and actions are specified as TAGs, all are instantiated by default.
 
19233
 
 
19234
Usage: $0 [OPTION]... [TAG]...
 
19235
 
 
19236
  -h, --help       print this help, then exit
 
19237
  -V, --version    print version number and configuration settings, then exit
 
19238
      --config     print configuration, then exit
 
19239
  -q, --quiet, --silent
 
19240
                   do not print progress messages
 
19241
  -d, --debug      don't remove temporary files
 
19242
      --recheck    update $as_me by reconfiguring in the same conditions
 
19243
      --file=FILE[:TEMPLATE]
 
19244
                   instantiate the configuration file FILE
 
19245
      --header=FILE[:TEMPLATE]
 
19246
                   instantiate the configuration header FILE
 
19247
 
 
19248
Configuration files:
 
19249
$config_files
 
19250
 
 
19251
Configuration headers:
 
19252
$config_headers
 
19253
 
 
19254
Configuration commands:
 
19255
$config_commands
 
19256
 
 
19257
Report bugs to <legatvs@gmail.com>."
 
19258
 
 
19259
_ACEOF
 
19260
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19261
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
19262
ac_cs_version="\\
 
19263
quvi config.status 0.2.0
 
19264
configured by $0, generated by GNU Autoconf 2.65,
 
19265
  with options \\"\$ac_cs_config\\"
 
19266
 
 
19267
Copyright (C) 2009 Free Software Foundation, Inc.
 
19268
This config.status script is free software; the Free Software Foundation
 
19269
gives unlimited permission to copy, distribute and modify it."
 
19270
 
 
19271
ac_pwd='$ac_pwd'
 
19272
srcdir='$srcdir'
 
19273
INSTALL='$INSTALL'
 
19274
MKDIR_P='$MKDIR_P'
 
19275
AWK='$AWK'
 
19276
test -n "\$AWK" || AWK=awk
 
19277
_ACEOF
 
19278
 
 
19279
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19280
# The default lists apply if the user does not specify any file.
 
19281
ac_need_defaults=:
 
19282
while test $# != 0
 
19283
do
 
19284
  case $1 in
 
19285
  --*=*)
 
19286
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19287
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
19288
    ac_shift=:
 
19289
    ;;
 
19290
  *)
 
19291
    ac_option=$1
 
19292
    ac_optarg=$2
 
19293
    ac_shift=shift
 
19294
    ;;
 
19295
  esac
 
19296
 
 
19297
  case $ac_option in
 
19298
  # Handling of the options.
 
19299
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19300
    ac_cs_recheck=: ;;
 
19301
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
19302
    $as_echo "$ac_cs_version"; exit ;;
 
19303
  --config | --confi | --conf | --con | --co | --c )
 
19304
    $as_echo "$ac_cs_config"; exit ;;
 
19305
  --debug | --debu | --deb | --de | --d | -d )
 
19306
    debug=: ;;
 
19307
  --file | --fil | --fi | --f )
 
19308
    $ac_shift
 
19309
    case $ac_optarg in
 
19310
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
19311
    esac
 
19312
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
19313
    ac_need_defaults=false;;
 
19314
  --header | --heade | --head | --hea )
 
19315
    $ac_shift
 
19316
    case $ac_optarg in
 
19317
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
19318
    esac
 
19319
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
19320
    ac_need_defaults=false;;
 
19321
  --he | --h)
 
19322
    # Conflict between --help and --header
 
19323
    as_fn_error "ambiguous option: \`$1'
 
19324
Try \`$0 --help' for more information.";;
 
19325
  --help | --hel | -h )
 
19326
    $as_echo "$ac_cs_usage"; exit ;;
 
19327
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19328
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19329
    ac_cs_silent=: ;;
 
19330
 
 
19331
  # This is an error.
 
19332
  -*) as_fn_error "unrecognized option: \`$1'
 
19333
Try \`$0 --help' for more information." ;;
 
19334
 
 
19335
  *) as_fn_append ac_config_targets " $1"
 
19336
     ac_need_defaults=false ;;
 
19337
 
 
19338
  esac
 
19339
  shift
 
19340
done
 
19341
 
 
19342
ac_configure_extra_args=
 
19343
 
 
19344
if $ac_cs_silent; then
 
19345
  exec 6>/dev/null
 
19346
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19347
fi
 
19348
 
 
19349
_ACEOF
 
19350
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19351
if \$ac_cs_recheck; then
 
19352
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19353
  shift
 
19354
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
19355
  CONFIG_SHELL='$SHELL'
 
19356
  export CONFIG_SHELL
 
19357
  exec "\$@"
 
19358
fi
 
19359
 
 
19360
_ACEOF
 
19361
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19362
exec 5>>config.log
 
19363
{
 
19364
  echo
 
19365
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19366
## Running $as_me. ##
 
19367
_ASBOX
 
19368
  $as_echo "$ac_log"
 
19369
} >&5
 
19370
 
 
19371
_ACEOF
 
19372
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19373
#
 
19374
# INIT-COMMANDS
 
19375
#
 
19376
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19377
 
 
19378
 
 
19379
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
19380
# if CDPATH is set.
 
19381
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19382
 
 
19383
sed_quote_subst='$sed_quote_subst'
 
19384
double_quote_subst='$double_quote_subst'
 
19385
delay_variable_subst='$delay_variable_subst'
 
19386
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
19387
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
19388
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
19389
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19390
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
19391
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
19392
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
19393
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
19394
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
19395
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
19396
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
19397
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
19398
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
19399
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
19400
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19401
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19402
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19403
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
19404
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
19405
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
19406
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
19407
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
19408
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
19409
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
19410
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
19411
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
19412
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19413
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19414
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
19415
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
19416
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
19417
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
19418
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
19419
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
19420
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
19421
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19422
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19423
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19424
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
19425
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
19426
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
19427
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
19428
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
19429
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
19430
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
19431
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
19432
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
19433
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
19434
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
19435
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
19436
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19437
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
19438
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
19439
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19440
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
19441
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
19442
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
19443
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
19444
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
19445
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
19446
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
19447
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
19448
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19449
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19450
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
19451
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
19452
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19453
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19454
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
19455
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19456
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19457
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19458
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19459
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19460
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19461
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
19462
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19463
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19464
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19465
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
19466
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
19467
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
19468
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
19469
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
19470
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19471
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
19472
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
19473
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
19474
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
19475
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
19476
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19477
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
19478
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
19479
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19480
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19481
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
19482
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
19483
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
19484
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
19485
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19486
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19487
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
19488
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19489
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19490
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19491
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19492
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19493
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19494
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
19495
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
19496
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19497
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19498
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
19499
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
19500
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
19501
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19502
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
19503
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
19504
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
19505
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
19506
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
19507
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
19508
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
19509
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
19510
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19511
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19512
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19513
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19514
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19515
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19516
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19517
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19518
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19519
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19520
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19521
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19522
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19523
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19524
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19525
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19526
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19527
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19528
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19529
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19530
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19531
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19532
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19533
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19534
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19535
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19536
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19537
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19538
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19539
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19540
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19541
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19542
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19543
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19544
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19545
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19546
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19547
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19548
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19549
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19550
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19551
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19552
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19553
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19554
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19555
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19556
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19557
 
 
19558
LTCC='$LTCC'
 
19559
LTCFLAGS='$LTCFLAGS'
 
19560
compiler='$compiler_DEFAULT'
 
19561
 
 
19562
# Quote evaled strings.
 
19563
for var in SED \
 
19564
GREP \
 
19565
EGREP \
 
19566
FGREP \
 
19567
LD \
 
19568
NM \
 
19569
LN_S \
 
19570
lt_SP2NL \
 
19571
lt_NL2SP \
 
19572
reload_flag \
 
19573
OBJDUMP \
 
19574
deplibs_check_method \
 
19575
file_magic_cmd \
 
19576
AR \
 
19577
AR_FLAGS \
 
19578
STRIP \
 
19579
RANLIB \
 
19580
CC \
 
19581
CFLAGS \
 
19582
compiler \
 
19583
lt_cv_sys_global_symbol_pipe \
 
19584
lt_cv_sys_global_symbol_to_cdecl \
 
19585
lt_cv_sys_global_symbol_to_c_name_address \
 
19586
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
19587
SHELL \
 
19588
ECHO \
 
19589
lt_prog_compiler_no_builtin_flag \
 
19590
lt_prog_compiler_wl \
 
19591
lt_prog_compiler_pic \
 
19592
lt_prog_compiler_static \
 
19593
lt_cv_prog_compiler_c_o \
 
19594
need_locks \
 
19595
DSYMUTIL \
 
19596
NMEDIT \
 
19597
LIPO \
 
19598
OTOOL \
 
19599
OTOOL64 \
 
19600
shrext_cmds \
 
19601
export_dynamic_flag_spec \
 
19602
whole_archive_flag_spec \
 
19603
compiler_needs_object \
 
19604
with_gnu_ld \
 
19605
allow_undefined_flag \
 
19606
no_undefined_flag \
 
19607
hardcode_libdir_flag_spec \
 
19608
hardcode_libdir_flag_spec_ld \
 
19609
hardcode_libdir_separator \
 
19610
fix_srcfile_path \
 
19611
exclude_expsyms \
 
19612
include_expsyms \
 
19613
file_list_spec \
 
19614
variables_saved_for_relink \
 
19615
libname_spec \
 
19616
library_names_spec \
 
19617
soname_spec \
 
19618
finish_eval \
 
19619
old_striplib \
 
19620
striplib \
 
19621
compiler_lib_search_dirs \
 
19622
predep_objects \
 
19623
postdep_objects \
 
19624
predeps \
 
19625
postdeps \
 
19626
compiler_lib_search_path \
 
19627
LD_CXX \
 
19628
compiler_CXX \
 
19629
lt_prog_compiler_no_builtin_flag_CXX \
 
19630
lt_prog_compiler_wl_CXX \
 
19631
lt_prog_compiler_pic_CXX \
 
19632
lt_prog_compiler_static_CXX \
 
19633
lt_cv_prog_compiler_c_o_CXX \
 
19634
export_dynamic_flag_spec_CXX \
 
19635
whole_archive_flag_spec_CXX \
 
19636
compiler_needs_object_CXX \
 
19637
with_gnu_ld_CXX \
 
19638
allow_undefined_flag_CXX \
 
19639
no_undefined_flag_CXX \
 
19640
hardcode_libdir_flag_spec_CXX \
 
19641
hardcode_libdir_flag_spec_ld_CXX \
 
19642
hardcode_libdir_separator_CXX \
 
19643
fix_srcfile_path_CXX \
 
19644
exclude_expsyms_CXX \
 
19645
include_expsyms_CXX \
 
19646
file_list_spec_CXX \
 
19647
compiler_lib_search_dirs_CXX \
 
19648
predep_objects_CXX \
 
19649
postdep_objects_CXX \
 
19650
predeps_CXX \
 
19651
postdeps_CXX \
 
19652
compiler_lib_search_path_CXX; do
 
19653
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
19654
    *[\\\\\\\`\\"\\\$]*)
 
19655
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
19656
      ;;
 
19657
    *)
 
19658
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19659
      ;;
 
19660
    esac
 
19661
done
 
19662
 
 
19663
# Double-quote double-evaled strings.
 
19664
for var in reload_cmds \
 
19665
old_postinstall_cmds \
 
19666
old_postuninstall_cmds \
 
19667
old_archive_cmds \
 
19668
extract_expsyms_cmds \
 
19669
old_archive_from_new_cmds \
 
19670
old_archive_from_expsyms_cmds \
 
19671
archive_cmds \
 
19672
archive_expsym_cmds \
 
19673
module_cmds \
 
19674
module_expsym_cmds \
 
19675
export_symbols_cmds \
 
19676
prelink_cmds \
 
19677
postinstall_cmds \
 
19678
postuninstall_cmds \
 
19679
finish_cmds \
 
19680
sys_lib_search_path_spec \
 
19681
sys_lib_dlsearch_path_spec \
 
19682
old_archive_cmds_CXX \
 
19683
old_archive_from_new_cmds_CXX \
 
19684
old_archive_from_expsyms_cmds_CXX \
 
19685
archive_cmds_CXX \
 
19686
archive_expsym_cmds_CXX \
 
19687
module_cmds_CXX \
 
19688
module_expsym_cmds_CXX \
 
19689
export_symbols_cmds_CXX \
 
19690
prelink_cmds_CXX; do
 
19691
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
19692
    *[\\\\\\\`\\"\\\$]*)
 
19693
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
19694
      ;;
 
19695
    *)
 
19696
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19697
      ;;
 
19698
    esac
 
19699
done
 
19700
 
 
19701
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
19702
case \$lt_ECHO in
 
19703
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
19704
  ;;
 
19705
esac
 
19706
 
 
19707
ac_aux_dir='$ac_aux_dir'
 
19708
xsi_shell='$xsi_shell'
 
19709
lt_shell_append='$lt_shell_append'
 
19710
 
 
19711
# See if we are running on zsh, and set the options which allow our
 
19712
# commands through without removal of \ escapes INIT.
 
19713
if test -n "\${ZSH_VERSION+set}" ; then
 
19714
   setopt NO_GLOB_SUBST
 
19715
fi
 
19716
 
 
19717
 
 
19718
    PACKAGE='$PACKAGE'
 
19719
    VERSION='$VERSION'
 
19720
    TIMESTAMP='$TIMESTAMP'
 
19721
    RM='$RM'
 
19722
    ofile='$ofile'
 
19723
 
 
19724
 
 
19725
 
 
19726
 
 
19727
 
 
19728
 
 
19729
_ACEOF
 
19730
 
 
19731
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19732
 
 
19733
# Handling of arguments.
 
19734
for ac_config_target in $ac_config_targets
 
19735
do
 
19736
  case $ac_config_target in
 
19737
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19738
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19739
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
19740
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19741
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
19742
    "include/quvi/Makefile") CONFIG_FILES="$CONFIG_FILES include/quvi/Makefile" ;;
 
19743
    "include/quvi/quvi.h") CONFIG_FILES="$CONFIG_FILES include/quvi/quvi.h" ;;
 
19744
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
19745
    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
 
19746
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
19747
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
19748
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
19749
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
19750
    "tests/quviTest.pm") CONFIG_FILES="$CONFIG_FILES tests/quviTest.pm" ;;
 
19751
    "libquvi.pc") CONFIG_FILES="$CONFIG_FILES libquvi.pc" ;;
 
19752
    "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf" ;;
 
19753
 
 
19754
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
19755
  esac
 
19756
done
 
19757
 
 
19758
 
 
19759
# If the user did not use the arguments to specify the items to instantiate,
 
19760
# then the envvar interface is used.  Set only those that are not.
 
19761
# We use the long form for the default assignment because of an extremely
 
19762
# bizarre bug on SunOS 4.1.3.
 
19763
if $ac_need_defaults; then
 
19764
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19765
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19766
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19767
fi
 
19768
 
 
19769
# Have a temporary directory for convenience.  Make it in the build tree
 
19770
# simply because there is no reason against having it here, and in addition,
 
19771
# creating and moving files from /tmp can sometimes cause problems.
 
19772
# Hook for its removal unless debugging.
 
19773
# Note that there is a small window in which the directory will not be cleaned:
 
19774
# after its creation but before its name has been assigned to `$tmp'.
 
19775
$debug ||
 
19776
{
 
19777
  tmp=
 
19778
  trap 'exit_status=$?
 
19779
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
19780
' 0
 
19781
  trap 'as_fn_exit 1' 1 2 13 15
 
19782
}
 
19783
# Create a (secure) tmp directory for tmp files.
 
19784
 
 
19785
{
 
19786
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
19787
  test -n "$tmp" && test -d "$tmp"
 
19788
}  ||
 
19789
{
 
19790
  tmp=./conf$$-$RANDOM
 
19791
  (umask 077 && mkdir "$tmp")
 
19792
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
19793
 
 
19794
# Set up the scripts for CONFIG_FILES section.
 
19795
# No need to generate them if there are no CONFIG_FILES.
 
19796
# This happens for instance with `./config.status config.h'.
 
19797
if test -n "$CONFIG_FILES"; then
 
19798
 
 
19799
 
 
19800
ac_cr=`echo X | tr X '\015'`
 
19801
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
19802
# But we know of no other shell where ac_cr would be empty at this
 
19803
# point, so we can use a bashism as a fallback.
 
19804
if test "x$ac_cr" = x; then
 
19805
  eval ac_cr=\$\'\\r\'
 
19806
fi
 
19807
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
19808
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
19809
  ac_cs_awk_cr='\r'
 
19810
else
 
19811
  ac_cs_awk_cr=$ac_cr
 
19812
fi
 
19813
 
 
19814
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
19815
_ACEOF
 
19816
 
 
19817
 
 
19818
{
 
19819
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
19820
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
19821
  echo "_ACEOF"
 
19822
} >conf$$subs.sh ||
 
19823
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
19824
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
19825
ac_delim='%!_!# '
 
19826
for ac_last_try in false false false false false :; do
 
19827
  . ./conf$$subs.sh ||
 
19828
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
19829
 
 
19830
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
19831
  if test $ac_delim_n = $ac_delim_num; then
 
19832
    break
 
19833
  elif $ac_last_try; then
 
19834
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
19835
  else
 
19836
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19837
  fi
 
19838
done
 
19839
rm -f conf$$subs.sh
 
19840
 
 
19841
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19842
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
19843
_ACEOF
 
19844
sed -n '
 
19845
h
 
19846
s/^/S["/; s/!.*/"]=/
 
19847
p
 
19848
g
 
19849
s/^[^!]*!//
 
19850
:repl
 
19851
t repl
 
19852
s/'"$ac_delim"'$//
 
19853
t delim
 
19854
:nl
 
19855
h
 
19856
s/\(.\{148\}\)..*/\1/
 
19857
t more1
 
19858
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
19859
p
 
19860
n
 
19861
b repl
 
19862
:more1
 
19863
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
19864
p
 
19865
g
 
19866
s/.\{148\}//
 
19867
t nl
 
19868
:delim
 
19869
h
 
19870
s/\(.\{148\}\)..*/\1/
 
19871
t more2
 
19872
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
19873
p
 
19874
b
 
19875
:more2
 
19876
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
19877
p
 
19878
g
 
19879
s/.\{148\}//
 
19880
t delim
 
19881
' <conf$$subs.awk | sed '
 
19882
/^[^""]/{
 
19883
  N
 
19884
  s/\n//
 
19885
}
 
19886
' >>$CONFIG_STATUS || ac_write_fail=1
 
19887
rm -f conf$$subs.awk
 
19888
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19889
_ACAWK
 
19890
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
19891
  for (key in S) S_is_set[key] = 1
 
19892
  FS = ""
 
19893
 
 
19894
}
 
19895
{
 
19896
  line = $ 0
 
19897
  nfields = split(line, field, "@")
 
19898
  substed = 0
 
19899
  len = length(field[1])
 
19900
  for (i = 2; i < nfields; i++) {
 
19901
    key = field[i]
 
19902
    keylen = length(key)
 
19903
    if (S_is_set[key]) {
 
19904
      value = S[key]
 
19905
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
19906
      len += length(value) + length(field[++i])
 
19907
      substed = 1
 
19908
    } else
 
19909
      len += 1 + keylen
 
19910
  }
 
19911
 
 
19912
  print line
 
19913
}
 
19914
 
 
19915
_ACAWK
 
19916
_ACEOF
 
19917
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19918
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
19919
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
19920
else
 
19921
  cat
 
19922
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
19923
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
19924
_ACEOF
 
19925
 
 
19926
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19927
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19928
# trailing colons and then remove the whole line if VPATH becomes empty
 
19929
# (actually we leave an empty line to preserve line numbers).
 
19930
if test "x$srcdir" = x.; then
 
19931
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19932
s/:*\$(srcdir):*/:/
 
19933
s/:*\${srcdir}:*/:/
 
19934
s/:*@srcdir@:*/:/
 
19935
s/^\([^=]*=[     ]*\):*/\1/
 
19936
s/:*$//
 
19937
s/^[^=]*=[       ]*$//
 
19938
}'
 
19939
fi
 
19940
 
 
19941
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19942
fi # test -n "$CONFIG_FILES"
 
19943
 
 
19944
# Set up the scripts for CONFIG_HEADERS section.
 
19945
# No need to generate them if there are no CONFIG_HEADERS.
 
19946
# This happens for instance with `./config.status Makefile'.
 
19947
if test -n "$CONFIG_HEADERS"; then
 
19948
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
19949
BEGIN {
 
19950
_ACEOF
 
19951
 
 
19952
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
19953
# here-document in config.status, that substitutes the proper values into
 
19954
# config.h.in to produce config.h.
 
19955
 
 
19956
# Create a delimiter string that does not exist in confdefs.h, to ease
 
19957
# handling of long lines.
 
19958
ac_delim='%!_!# '
 
19959
for ac_last_try in false false :; do
 
19960
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
19961
  if test -z "$ac_t"; then
 
19962
    break
 
19963
  elif $ac_last_try; then
 
19964
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
19965
  else
 
19966
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19967
  fi
 
19968
done
 
19969
 
 
19970
# For the awk script, D is an array of macro values keyed by name,
 
19971
# likewise P contains macro parameters if any.  Preserve backslash
 
19972
# newline sequences.
 
19973
 
 
19974
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19975
sed -n '
 
19976
s/.\{148\}/&'"$ac_delim"'/g
 
19977
t rset
 
19978
:rset
 
19979
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
19980
t def
 
19981
d
 
19982
:def
 
19983
s/\\$//
 
19984
t bsnl
 
19985
s/["\\]/\\&/g
 
19986
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19987
D["\1"]=" \3"/p
 
19988
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
19989
d
 
19990
:bsnl
 
19991
s/["\\]/\\&/g
 
19992
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19993
D["\1"]=" \3\\\\\\n"\\/p
 
19994
t cont
 
19995
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
19996
t cont
 
19997
d
 
19998
:cont
 
19999
n
 
20000
s/.\{148\}/&'"$ac_delim"'/g
 
20001
t clear
 
20002
:clear
 
20003
s/\\$//
 
20004
t bsnlc
 
20005
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
20006
d
 
20007
:bsnlc
 
20008
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
20009
b cont
 
20010
' <confdefs.h | sed '
 
20011
s/'"$ac_delim"'/"\\\
 
20012
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
20013
 
 
20014
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20015
  for (key in D) D_is_set[key] = 1
 
20016
  FS = ""
 
20017
}
 
20018
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
20019
  line = \$ 0
 
20020
  split(line, arg, " ")
 
20021
  if (arg[1] == "#") {
 
20022
    defundef = arg[2]
 
20023
    mac1 = arg[3]
 
20024
  } else {
 
20025
    defundef = substr(arg[1], 2)
 
20026
    mac1 = arg[2]
 
20027
  }
 
20028
  split(mac1, mac2, "(") #)
 
20029
  macro = mac2[1]
 
20030
  prefix = substr(line, 1, index(line, defundef) - 1)
 
20031
  if (D_is_set[macro]) {
 
20032
    # Preserve the white space surrounding the "#".
 
20033
    print prefix "define", macro P[macro] D[macro]
 
20034
    next
 
20035
  } else {
 
20036
    # Replace #undef with comments.  This is necessary, for example,
 
20037
    # in the case of _POSIX_SOURCE, which is predefined and required
 
20038
    # on some systems where configure will not decide to define it.
 
20039
    if (defundef == "undef") {
 
20040
      print "/*", prefix defundef, macro, "*/"
 
20041
      next
 
20042
    }
 
20043
  }
 
20044
}
 
20045
{ print }
 
20046
_ACAWK
 
20047
_ACEOF
 
20048
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20049
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
20050
fi # test -n "$CONFIG_HEADERS"
 
20051
 
 
20052
 
 
20053
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
20054
shift
 
20055
for ac_tag
 
20056
do
 
20057
  case $ac_tag in
 
20058
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
20059
  esac
 
20060
  case $ac_mode$ac_tag in
 
20061
  :[FHL]*:*);;
 
20062
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
20063
  :[FH]-) ac_tag=-:-;;
 
20064
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
20065
  esac
 
20066
  ac_save_IFS=$IFS
 
20067
  IFS=:
 
20068
  set x $ac_tag
 
20069
  IFS=$ac_save_IFS
 
20070
  shift
 
20071
  ac_file=$1
 
20072
  shift
 
20073
 
 
20074
  case $ac_mode in
 
20075
  :L) ac_source=$1;;
 
20076
  :[FH])
 
20077
    ac_file_inputs=
 
20078
    for ac_f
 
20079
    do
 
20080
      case $ac_f in
 
20081
      -) ac_f="$tmp/stdin";;
 
20082
      *) # Look for the file first in the build tree, then in the source tree
 
20083
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
20084
         # because $ac_f cannot contain `:'.
 
20085
         test -f "$ac_f" ||
 
20086
           case $ac_f in
 
20087
           [\\/$]*) false;;
 
20088
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
20089
           esac ||
 
20090
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
20091
      esac
 
20092
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
20093
      as_fn_append ac_file_inputs " '$ac_f'"
 
20094
    done
 
20095
 
 
20096
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20097
    # use $as_me), people would be surprised to read:
 
20098
    #    /* config.h.  Generated by config.status.  */
 
20099
    configure_input='Generated from '`
 
20100
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
20101
        `' by configure.'
 
20102
    if test x"$ac_file" != x-; then
 
20103
      configure_input="$ac_file.  $configure_input"
 
20104
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
20105
$as_echo "$as_me: creating $ac_file" >&6;}
 
20106
    fi
 
20107
    # Neutralize special characters interpreted by sed in replacement strings.
 
20108
    case $configure_input in #(
 
20109
    *\&* | *\|* | *\\* )
 
20110
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
20111
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
20112
    *) ac_sed_conf_input=$configure_input;;
 
20113
    esac
 
20114
 
 
20115
    case $ac_tag in
 
20116
    *:-:* | *:-) cat >"$tmp/stdin" \
 
20117
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
20118
    esac
 
20119
    ;;
 
20120
  esac
 
20121
 
 
20122
  ac_dir=`$as_dirname -- "$ac_file" ||
 
20123
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20124
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20125
         X"$ac_file" : 'X\(//\)$' \| \
 
20126
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
20127
$as_echo X"$ac_file" |
 
20128
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20129
            s//\1/
 
20130
            q
 
20131
          }
 
20132
          /^X\(\/\/\)[^/].*/{
 
20133
            s//\1/
 
20134
            q
 
20135
          }
 
20136
          /^X\(\/\/\)$/{
 
20137
            s//\1/
 
20138
            q
 
20139
          }
 
20140
          /^X\(\/\).*/{
 
20141
            s//\1/
 
20142
            q
 
20143
          }
 
20144
          s/.*/./; q'`
 
20145
  as_dir="$ac_dir"; as_fn_mkdir_p
 
20146
  ac_builddir=.
 
20147
 
 
20148
case "$ac_dir" in
 
20149
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20150
*)
 
20151
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
20152
  # A ".." for each directory in $ac_dir_suffix.
 
20153
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
20154
  case $ac_top_builddir_sub in
 
20155
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20156
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
20157
  esac ;;
 
20158
esac
 
20159
ac_abs_top_builddir=$ac_pwd
 
20160
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
20161
# for backward compatibility:
 
20162
ac_top_builddir=$ac_top_build_prefix
 
20163
 
 
20164
case $srcdir in
 
20165
  .)  # We are building in place.
 
20166
    ac_srcdir=.
 
20167
    ac_top_srcdir=$ac_top_builddir_sub
 
20168
    ac_abs_top_srcdir=$ac_pwd ;;
 
20169
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
20170
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20171
    ac_top_srcdir=$srcdir
 
20172
    ac_abs_top_srcdir=$srcdir ;;
 
20173
  *) # Relative name.
 
20174
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
20175
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
20176
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
20177
esac
 
20178
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
20179
 
 
20180
 
 
20181
  case $ac_mode in
 
20182
  :F)
 
20183
  #
 
20184
  # CONFIG_FILE
 
20185
  #
 
20186
 
 
20187
  case $INSTALL in
 
20188
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20189
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
20190
  esac
 
20191
  ac_MKDIR_P=$MKDIR_P
 
20192
  case $MKDIR_P in
 
20193
  [\\/$]* | ?:[\\/]* ) ;;
 
20194
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
20195
  esac
 
20196
_ACEOF
 
20197
 
 
20198
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20199
# If the template does not know about datarootdir, expand it.
 
20200
# FIXME: This hack should be removed a few years after 2.60.
 
20201
ac_datarootdir_hack=; ac_datarootdir_seen=
 
20202
ac_sed_dataroot='
 
20203
/datarootdir/ {
 
20204
  p
 
20205
  q
 
20206
}
 
20207
/@datadir@/p
 
20208
/@docdir@/p
 
20209
/@infodir@/p
 
20210
/@localedir@/p
 
20211
/@mandir@/p'
 
20212
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
20213
*datarootdir*) ac_datarootdir_seen=yes;;
 
20214
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
20215
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
20216
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
20217
_ACEOF
 
20218
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20219
  ac_datarootdir_hack='
 
20220
  s&@datadir@&$datadir&g
 
20221
  s&@docdir@&$docdir&g
 
20222
  s&@infodir@&$infodir&g
 
20223
  s&@localedir@&$localedir&g
 
20224
  s&@mandir@&$mandir&g
 
20225
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
20226
esac
 
20227
_ACEOF
 
20228
 
 
20229
# Neutralize VPATH when `$srcdir' = `.'.
 
20230
# Shell code in configure.ac might set extrasub.
 
20231
# FIXME: do we really want to maintain this feature?
 
20232
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20233
ac_sed_extra="$ac_vpsub
 
20234
$extrasub
 
20235
_ACEOF
 
20236
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20237
:t
 
20238
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20239
s|@configure_input@|$ac_sed_conf_input|;t t
 
20240
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
20241
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
20242
s&@srcdir@&$ac_srcdir&;t t
 
20243
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
20244
s&@top_srcdir@&$ac_top_srcdir&;t t
 
20245
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
20246
s&@builddir@&$ac_builddir&;t t
 
20247
s&@abs_builddir@&$ac_abs_builddir&;t t
 
20248
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
20249
s&@INSTALL@&$ac_INSTALL&;t t
 
20250
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
20251
$ac_datarootdir_hack
 
20252
"
 
20253
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
20254
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
20255
 
 
20256
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
20257
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
20258
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
20259
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20260
which seems to be undefined.  Please make sure it is defined." >&5
 
20261
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20262
which seems to be undefined.  Please make sure it is defined." >&2;}
 
20263
 
 
20264
  rm -f "$tmp/stdin"
 
20265
  case $ac_file in
 
20266
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
20267
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
20268
  esac \
 
20269
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
20270
 ;;
 
20271
  :H)
 
20272
  #
 
20273
  # CONFIG_HEADER
 
20274
  #
 
20275
  if test x"$ac_file" != x-; then
 
20276
    {
 
20277
      $as_echo "/* $configure_input  */" \
 
20278
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
20279
    } >"$tmp/config.h" \
 
20280
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
20281
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
20282
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
20283
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
20284
    else
 
20285
      rm -f "$ac_file"
 
20286
      mv "$tmp/config.h" "$ac_file" \
 
20287
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
20288
    fi
 
20289
  else
 
20290
    $as_echo "/* $configure_input  */" \
 
20291
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
20292
      || as_fn_error "could not create -" "$LINENO" 5
 
20293
  fi
 
20294
# Compute "$ac_file"'s index in $config_headers.
 
20295
_am_arg="$ac_file"
 
20296
_am_stamp_count=1
 
20297
for _am_header in $config_headers :; do
 
20298
  case $_am_header in
 
20299
    $_am_arg | $_am_arg:* )
 
20300
      break ;;
 
20301
    * )
 
20302
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20303
  esac
 
20304
done
 
20305
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
20306
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20307
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
20308
         X"$_am_arg" : 'X\(//\)$' \| \
 
20309
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
20310
$as_echo X"$_am_arg" |
 
20311
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20312
            s//\1/
 
20313
            q
 
20314
          }
 
20315
          /^X\(\/\/\)[^/].*/{
 
20316
            s//\1/
 
20317
            q
 
20318
          }
 
20319
          /^X\(\/\/\)$/{
 
20320
            s//\1/
 
20321
            q
 
20322
          }
 
20323
          /^X\(\/\).*/{
 
20324
            s//\1/
 
20325
            q
 
20326
          }
 
20327
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20328
 ;;
 
20329
 
 
20330
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
20331
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
20332
 ;;
 
20333
  esac
 
20334
 
 
20335
 
 
20336
  case $ac_file$ac_mode in
 
20337
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
20338
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
20339
  # are listed without --file.  Let's play safe and only enable the eval
 
20340
  # if we detect the quoting.
 
20341
  case $CONFIG_FILES in
 
20342
  *\'*) eval set x "$CONFIG_FILES" ;;
 
20343
  *)   set x $CONFIG_FILES ;;
 
20344
  esac
 
20345
  shift
 
20346
  for mf
 
20347
  do
 
20348
    # Strip MF so we end up with the name of the file.
 
20349
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
20350
    # Check whether this is an Automake generated Makefile or not.
 
20351
    # We used to match only the files named `Makefile.in', but
 
20352
    # some people rename them; so instead we look at the file content.
 
20353
    # Grep'ing the first line is not enough: some people post-process
 
20354
    # each Makefile.in and add a new line on top of each file to say so.
 
20355
    # Grep'ing the whole file is not good either: AIX grep has a line
 
20356
    # limit of 2048, but all sed's we know have understand at least 4000.
 
20357
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
20358
      dirpart=`$as_dirname -- "$mf" ||
 
20359
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20360
         X"$mf" : 'X\(//\)[^/]' \| \
 
20361
         X"$mf" : 'X\(//\)$' \| \
 
20362
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
20363
$as_echo X"$mf" |
 
20364
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20365
            s//\1/
 
20366
            q
 
20367
          }
 
20368
          /^X\(\/\/\)[^/].*/{
 
20369
            s//\1/
 
20370
            q
 
20371
          }
 
20372
          /^X\(\/\/\)$/{
 
20373
            s//\1/
 
20374
            q
 
20375
          }
 
20376
          /^X\(\/\).*/{
 
20377
            s//\1/
 
20378
            q
 
20379
          }
 
20380
          s/.*/./; q'`
 
20381
    else
 
20382
      continue
 
20383
    fi
 
20384
    # Extract the definition of DEPDIR, am__include, and am__quote
 
20385
    # from the Makefile without running `make'.
 
20386
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
20387
    test -z "$DEPDIR" && continue
 
20388
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20389
    test -z "am__include" && continue
 
20390
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20391
    # When using ansi2knr, U may be empty or an underscore; expand it
 
20392
    U=`sed -n 's/^U = //p' < "$mf"`
 
20393
    # Find all dependency output files, they are included files with
 
20394
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20395
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
20396
    # expansion.
 
20397
    for file in `sed -n "
 
20398
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20399
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20400
      # Make sure the directory exists.
 
20401
      test -f "$dirpart/$file" && continue
 
20402
      fdir=`$as_dirname -- "$file" ||
 
20403
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20404
         X"$file" : 'X\(//\)[^/]' \| \
 
20405
         X"$file" : 'X\(//\)$' \| \
 
20406
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
20407
$as_echo X"$file" |
 
20408
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20409
            s//\1/
 
20410
            q
 
20411
          }
 
20412
          /^X\(\/\/\)[^/].*/{
 
20413
            s//\1/
 
20414
            q
 
20415
          }
 
20416
          /^X\(\/\/\)$/{
 
20417
            s//\1/
 
20418
            q
 
20419
          }
 
20420
          /^X\(\/\).*/{
 
20421
            s//\1/
 
20422
            q
 
20423
          }
 
20424
          s/.*/./; q'`
 
20425
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
20426
      # echo "creating $dirpart/$file"
 
20427
      echo '# dummy' > "$dirpart/$file"
 
20428
    done
 
20429
  done
 
20430
}
 
20431
 ;;
 
20432
    "libtool":C)
 
20433
 
 
20434
    # See if we are running on zsh, and set the options which allow our
 
20435
    # commands through without removal of \ escapes.
 
20436
    if test -n "${ZSH_VERSION+set}" ; then
 
20437
      setopt NO_GLOB_SUBST
 
20438
    fi
 
20439
 
 
20440
    cfgfile="${ofile}T"
 
20441
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
20442
    $RM "$cfgfile"
 
20443
 
 
20444
    cat <<_LT_EOF >> "$cfgfile"
 
20445
#! $SHELL
 
20446
 
 
20447
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
20448
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
20449
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20450
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
20451
#
 
20452
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
20453
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
20454
#   Written by Gordon Matzigkeit, 1996
 
20455
#
 
20456
#   This file is part of GNU Libtool.
 
20457
#
 
20458
# GNU Libtool is free software; you can redistribute it and/or
 
20459
# modify it under the terms of the GNU General Public License as
 
20460
# published by the Free Software Foundation; either version 2 of
 
20461
# the License, or (at your option) any later version.
 
20462
#
 
20463
# As a special exception to the GNU General Public License,
 
20464
# if you distribute this file as part of a program or library that
 
20465
# is built using GNU Libtool, you may include this file under the
 
20466
# same distribution terms that you use for the rest of that program.
 
20467
#
 
20468
# GNU Libtool is distributed in the hope that it will be useful,
 
20469
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20470
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20471
# GNU General Public License for more details.
 
20472
#
 
20473
# You should have received a copy of the GNU General Public License
 
20474
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
20475
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
20476
# obtained by writing to the Free Software Foundation, Inc.,
 
20477
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20478
 
 
20479
 
 
20480
# The names of the tagged configurations supported by this script.
 
20481
available_tags="CXX "
 
20482
 
 
20483
# ### BEGIN LIBTOOL CONFIG
 
20484
 
 
20485
# Which release of libtool.m4 was used?
 
20486
macro_version=$macro_version
 
20487
macro_revision=$macro_revision
 
20488
 
 
20489
# Whether or not to build shared libraries.
 
20490
build_libtool_libs=$enable_shared
 
20491
 
 
20492
# Whether or not to build static libraries.
 
20493
build_old_libs=$enable_static
 
20494
 
 
20495
# What type of objects to build.
 
20496
pic_mode=$pic_mode
 
20497
 
 
20498
# Whether or not to optimize for fast installation.
 
20499
fast_install=$enable_fast_install
 
20500
 
 
20501
# The host system.
 
20502
host_alias=$host_alias
 
20503
host=$host
 
20504
host_os=$host_os
 
20505
 
 
20506
# The build system.
 
20507
build_alias=$build_alias
 
20508
build=$build
 
20509
build_os=$build_os
 
20510
 
 
20511
# A sed program that does not truncate output.
 
20512
SED=$lt_SED
 
20513
 
 
20514
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
20515
Xsed="\$SED -e 1s/^X//"
 
20516
 
 
20517
# A grep program that handles long lines.
 
20518
GREP=$lt_GREP
 
20519
 
 
20520
# An ERE matcher.
 
20521
EGREP=$lt_EGREP
 
20522
 
 
20523
# A literal string matcher.
 
20524
FGREP=$lt_FGREP
 
20525
 
 
20526
# A BSD- or MS-compatible name lister.
 
20527
NM=$lt_NM
 
20528
 
 
20529
# Whether we need soft or hard links.
 
20530
LN_S=$lt_LN_S
 
20531
 
 
20532
# What is the maximum length of a command?
 
20533
max_cmd_len=$max_cmd_len
 
20534
 
 
20535
# Object file suffix (normally "o").
 
20536
objext=$ac_objext
 
20537
 
 
20538
# Executable file suffix (normally "").
 
20539
exeext=$exeext
 
20540
 
 
20541
# whether the shell understands "unset".
 
20542
lt_unset=$lt_unset
 
20543
 
 
20544
# turn spaces into newlines.
 
20545
SP2NL=$lt_lt_SP2NL
 
20546
 
 
20547
# turn newlines into spaces.
 
20548
NL2SP=$lt_lt_NL2SP
 
20549
 
 
20550
# How to create reloadable object files.
 
20551
reload_flag=$lt_reload_flag
 
20552
reload_cmds=$lt_reload_cmds
 
20553
 
 
20554
# An object symbol dumper.
 
20555
OBJDUMP=$lt_OBJDUMP
 
20556
 
 
20557
# Method to check whether dependent libraries are shared objects.
 
20558
deplibs_check_method=$lt_deplibs_check_method
 
20559
 
 
20560
# Command to use when deplibs_check_method == "file_magic".
 
20561
file_magic_cmd=$lt_file_magic_cmd
 
20562
 
 
20563
# The archiver.
 
20564
AR=$lt_AR
 
20565
AR_FLAGS=$lt_AR_FLAGS
 
20566
 
 
20567
# A symbol stripping program.
 
20568
STRIP=$lt_STRIP
 
20569
 
 
20570
# Commands used to install an old-style archive.
 
20571
RANLIB=$lt_RANLIB
 
20572
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20573
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20574
 
 
20575
# A C compiler.
 
20576
LTCC=$lt_CC
 
20577
 
 
20578
# LTCC compiler flags.
 
20579
LTCFLAGS=$lt_CFLAGS
 
20580
 
 
20581
# Take the output of nm and produce a listing of raw symbols and C names.
 
20582
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20583
 
 
20584
# Transform the output of nm in a proper C declaration.
 
20585
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20586
 
 
20587
# Transform the output of nm in a C name address pair.
 
20588
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20589
 
 
20590
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
20591
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
20592
 
 
20593
# The name of the directory that contains temporary libtool files.
 
20594
objdir=$objdir
 
20595
 
 
20596
# Shell to use when invoking shell scripts.
 
20597
SHELL=$lt_SHELL
 
20598
 
 
20599
# An echo program that does not interpret backslashes.
 
20600
ECHO=$lt_ECHO
 
20601
 
 
20602
# Used to examine libraries when file_magic_cmd begins with "file".
 
20603
MAGIC_CMD=$MAGIC_CMD
 
20604
 
 
20605
# Must we lock files when doing compilation?
 
20606
need_locks=$lt_need_locks
 
20607
 
 
20608
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
20609
DSYMUTIL=$lt_DSYMUTIL
 
20610
 
 
20611
# Tool to change global to local symbols on Mac OS X.
 
20612
NMEDIT=$lt_NMEDIT
 
20613
 
 
20614
# Tool to manipulate fat objects and archives on Mac OS X.
 
20615
LIPO=$lt_LIPO
 
20616
 
 
20617
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
20618
OTOOL=$lt_OTOOL
 
20619
 
 
20620
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
20621
OTOOL64=$lt_OTOOL64
 
20622
 
 
20623
# Old archive suffix (normally "a").
 
20624
libext=$libext
 
20625
 
 
20626
# Shared library suffix (normally ".so").
 
20627
shrext_cmds=$lt_shrext_cmds
 
20628
 
 
20629
# The commands to extract the exported symbol list from a shared archive.
 
20630
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20631
 
 
20632
# Variables whose values should be saved in libtool wrapper scripts and
 
20633
# restored at link time.
 
20634
variables_saved_for_relink=$lt_variables_saved_for_relink
 
20635
 
 
20636
# Do we need the "lib" prefix for modules?
 
20637
need_lib_prefix=$need_lib_prefix
 
20638
 
 
20639
# Do we need a version for libraries?
 
20640
need_version=$need_version
 
20641
 
 
20642
# Library versioning type.
 
20643
version_type=$version_type
 
20644
 
 
20645
# Shared library runtime path variable.
 
20646
runpath_var=$runpath_var
 
20647
 
 
20648
# Shared library path variable.
 
20649
shlibpath_var=$shlibpath_var
 
20650
 
 
20651
# Is shlibpath searched before the hard-coded library search path?
 
20652
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20653
 
 
20654
# Format of library name prefix.
 
20655
libname_spec=$lt_libname_spec
 
20656
 
 
20657
# List of archive names.  First name is the real one, the rest are links.
 
20658
# The last name is the one that the linker finds with -lNAME
 
20659
library_names_spec=$lt_library_names_spec
 
20660
 
 
20661
# The coded name of the library, if different from the real name.
 
20662
soname_spec=$lt_soname_spec
 
20663
 
 
20664
# Command to use after installation of a shared archive.
 
20665
postinstall_cmds=$lt_postinstall_cmds
 
20666
 
 
20667
# Command to use after uninstallation of a shared archive.
 
20668
postuninstall_cmds=$lt_postuninstall_cmds
 
20669
 
 
20670
# Commands used to finish a libtool library installation in a directory.
 
20671
finish_cmds=$lt_finish_cmds
 
20672
 
 
20673
# As "finish_cmds", except a single script fragment to be evaled but
 
20674
# not shown.
 
20675
finish_eval=$lt_finish_eval
 
20676
 
 
20677
# Whether we should hardcode library paths into libraries.
 
20678
hardcode_into_libs=$hardcode_into_libs
 
20679
 
 
20680
# Compile-time system search path for libraries.
 
20681
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20682
 
 
20683
# Run-time system search path for libraries.
 
20684
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20685
 
 
20686
# Whether dlopen is supported.
 
20687
dlopen_support=$enable_dlopen
 
20688
 
 
20689
# Whether dlopen of programs is supported.
 
20690
dlopen_self=$enable_dlopen_self
 
20691
 
 
20692
# Whether dlopen of statically linked programs is supported.
 
20693
dlopen_self_static=$enable_dlopen_self_static
 
20694
 
 
20695
# Commands to strip libraries.
 
20696
old_striplib=$lt_old_striplib
 
20697
striplib=$lt_striplib
 
20698
 
 
20699
 
 
20700
# The linker used to build libraries.
 
20701
LD=$lt_LD
 
20702
 
 
20703
# Commands used to build an old-style archive.
 
20704
old_archive_cmds=$lt_old_archive_cmds
 
20705
 
 
20706
# A language specific compiler.
 
20707
CC=$lt_compiler
 
20708
 
 
20709
# Is the compiler the GNU compiler?
 
20710
with_gcc=$GCC
 
20711
 
 
20712
# Compiler flag to turn off builtin functions.
 
20713
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20714
 
 
20715
# How to pass a linker flag through the compiler.
 
20716
wl=$lt_lt_prog_compiler_wl
 
20717
 
 
20718
# Additional compiler flags for building library objects.
 
20719
pic_flag=$lt_lt_prog_compiler_pic
 
20720
 
 
20721
# Compiler flag to prevent dynamic linking.
 
20722
link_static_flag=$lt_lt_prog_compiler_static
 
20723
 
 
20724
# Does compiler simultaneously support -c and -o options?
 
20725
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20726
 
 
20727
# Whether or not to add -lc for building shared libraries.
 
20728
build_libtool_need_lc=$archive_cmds_need_lc
 
20729
 
 
20730
# Whether or not to disallow shared libs when runtime libs are static.
 
20731
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20732
 
 
20733
# Compiler flag to allow reflexive dlopens.
 
20734
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20735
 
 
20736
# Compiler flag to generate shared objects directly from archives.
 
20737
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20738
 
 
20739
# Whether the compiler copes with passing no objects directly.
 
20740
compiler_needs_object=$lt_compiler_needs_object
 
20741
 
 
20742
# Create an old-style archive from a shared archive.
 
20743
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20744
 
 
20745
# Create a temporary old-style archive to link instead of a shared archive.
 
20746
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20747
 
 
20748
# Commands used to build a shared archive.
 
20749
archive_cmds=$lt_archive_cmds
 
20750
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20751
 
 
20752
# Commands used to build a loadable module if different from building
 
20753
# a shared archive.
 
20754
module_cmds=$lt_module_cmds
 
20755
module_expsym_cmds=$lt_module_expsym_cmds
 
20756
 
 
20757
# Whether we are building with GNU ld or not.
 
20758
with_gnu_ld=$lt_with_gnu_ld
 
20759
 
 
20760
# Flag that allows shared libraries with undefined symbols to be built.
 
20761
allow_undefined_flag=$lt_allow_undefined_flag
 
20762
 
 
20763
# Flag that enforces no undefined symbols.
 
20764
no_undefined_flag=$lt_no_undefined_flag
 
20765
 
 
20766
# Flag to hardcode \$libdir into a binary during linking.
 
20767
# This must work even if \$libdir does not exist
 
20768
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20769
 
 
20770
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
20771
# during linking.  This must work even if \$libdir does not exist.
 
20772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20773
 
 
20774
# Whether we need a single "-rpath" flag with a separated argument.
 
20775
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20776
 
 
20777
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20778
# DIR into the resulting binary.
 
20779
hardcode_direct=$hardcode_direct
 
20780
 
 
20781
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20782
# DIR into the resulting binary and the resulting library dependency is
 
20783
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20784
# library is relocated.
 
20785
hardcode_direct_absolute=$hardcode_direct_absolute
 
20786
 
 
20787
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
20788
# into the resulting binary.
 
20789
hardcode_minus_L=$hardcode_minus_L
 
20790
 
 
20791
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
20792
# into the resulting binary.
 
20793
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20794
 
 
20795
# Set to "yes" if building a shared library automatically hardcodes DIR
 
20796
# into the library and all subsequent libraries and executables linked
 
20797
# against it.
 
20798
hardcode_automatic=$hardcode_automatic
 
20799
 
 
20800
# Set to yes if linker adds runtime paths of dependent libraries
 
20801
# to runtime path list.
 
20802
inherit_rpath=$inherit_rpath
 
20803
 
 
20804
# Whether libtool must link a program against all its dependency libraries.
 
20805
link_all_deplibs=$link_all_deplibs
 
20806
 
 
20807
# Fix the shell variable \$srcfile for the compiler.
 
20808
fix_srcfile_path=$lt_fix_srcfile_path
 
20809
 
 
20810
# Set to "yes" if exported symbols are required.
 
20811
always_export_symbols=$always_export_symbols
 
20812
 
 
20813
# The commands to list exported symbols.
 
20814
export_symbols_cmds=$lt_export_symbols_cmds
 
20815
 
 
20816
# Symbols that should not be listed in the preloaded symbols.
 
20817
exclude_expsyms=$lt_exclude_expsyms
 
20818
 
 
20819
# Symbols that must always be exported.
 
20820
include_expsyms=$lt_include_expsyms
 
20821
 
 
20822
# Commands necessary for linking programs (against libraries) with templates.
 
20823
prelink_cmds=$lt_prelink_cmds
 
20824
 
 
20825
# Specify filename containing input files.
 
20826
file_list_spec=$lt_file_list_spec
 
20827
 
 
20828
# How to hardcode a shared library path into an executable.
 
20829
hardcode_action=$hardcode_action
 
20830
 
 
20831
# The directories searched by this compiler when creating a shared library.
 
20832
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
20833
 
 
20834
# Dependencies to place before and after the objects being linked to
 
20835
# create a shared library.
 
20836
predep_objects=$lt_predep_objects
 
20837
postdep_objects=$lt_postdep_objects
 
20838
predeps=$lt_predeps
 
20839
postdeps=$lt_postdeps
 
20840
 
 
20841
# The library search path used internally by the compiler when linking
 
20842
# a shared library.
 
20843
compiler_lib_search_path=$lt_compiler_lib_search_path
 
20844
 
 
20845
# ### END LIBTOOL CONFIG
 
20846
 
 
20847
_LT_EOF
 
20848
 
 
20849
  case $host_os in
 
20850
  aix3*)
 
20851
    cat <<\_LT_EOF >> "$cfgfile"
 
20852
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20853
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20854
# vanish in a puff of smoke.
 
20855
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20856
  COLLECT_NAMES=
 
20857
  export COLLECT_NAMES
 
20858
fi
 
20859
_LT_EOF
 
20860
    ;;
 
20861
  esac
 
20862
 
 
20863
 
 
20864
ltmain="$ac_aux_dir/ltmain.sh"
 
20865
 
 
20866
 
 
20867
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20868
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20869
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20870
  # is reportedly fixed, but why not run on old versions too?
 
20871
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
20872
    || (rm -f "$cfgfile"; exit 1)
 
20873
 
 
20874
  case $xsi_shell in
 
20875
  yes)
 
20876
    cat << \_LT_EOF >> "$cfgfile"
 
20877
 
 
20878
# func_dirname file append nondir_replacement
 
20879
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20880
# otherwise set result to NONDIR_REPLACEMENT.
 
20881
func_dirname ()
 
20882
{
 
20883
  case ${1} in
 
20884
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20885
    *  ) func_dirname_result="${3}" ;;
 
20886
  esac
 
20887
}
 
20888
 
 
20889
# func_basename file
 
20890
func_basename ()
 
20891
{
 
20892
  func_basename_result="${1##*/}"
 
20893
}
 
20894
 
 
20895
# func_dirname_and_basename file append nondir_replacement
 
20896
# perform func_basename and func_dirname in a single function
 
20897
# call:
 
20898
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
20899
#             add APPEND to the result, otherwise set result
 
20900
#             to NONDIR_REPLACEMENT.
 
20901
#             value returned in "$func_dirname_result"
 
20902
#   basename: Compute filename of FILE.
 
20903
#             value retuned in "$func_basename_result"
 
20904
# Implementation must be kept synchronized with func_dirname
 
20905
# and func_basename. For efficiency, we do not delegate to
 
20906
# those functions but instead duplicate the functionality here.
 
20907
func_dirname_and_basename ()
 
20908
{
 
20909
  case ${1} in
 
20910
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20911
    *  ) func_dirname_result="${3}" ;;
 
20912
  esac
 
20913
  func_basename_result="${1##*/}"
 
20914
}
 
20915
 
 
20916
# func_stripname prefix suffix name
 
20917
# strip PREFIX and SUFFIX off of NAME.
 
20918
# PREFIX and SUFFIX must not contain globbing or regex special
 
20919
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20920
# dot (in which case that matches only a dot).
 
20921
func_stripname ()
 
20922
{
 
20923
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
20924
  # positional parameters, so assign one to ordinary parameter first.
 
20925
  func_stripname_result=${3}
 
20926
  func_stripname_result=${func_stripname_result#"${1}"}
 
20927
  func_stripname_result=${func_stripname_result%"${2}"}
 
20928
}
 
20929
 
 
20930
# func_opt_split
 
20931
func_opt_split ()
 
20932
{
 
20933
  func_opt_split_opt=${1%%=*}
 
20934
  func_opt_split_arg=${1#*=}
 
20935
}
 
20936
 
 
20937
# func_lo2o object
 
20938
func_lo2o ()
 
20939
{
 
20940
  case ${1} in
 
20941
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
20942
    *)    func_lo2o_result=${1} ;;
 
20943
  esac
 
20944
}
 
20945
 
 
20946
# func_xform libobj-or-source
 
20947
func_xform ()
 
20948
{
 
20949
  func_xform_result=${1%.*}.lo
 
20950
}
 
20951
 
 
20952
# func_arith arithmetic-term...
 
20953
func_arith ()
 
20954
{
 
20955
  func_arith_result=$(( $* ))
 
20956
}
 
20957
 
 
20958
# func_len string
 
20959
# STRING may not start with a hyphen.
 
20960
func_len ()
 
20961
{
 
20962
  func_len_result=${#1}
 
20963
}
 
20964
 
 
20965
_LT_EOF
 
20966
    ;;
 
20967
  *) # Bourne compatible functions.
 
20968
    cat << \_LT_EOF >> "$cfgfile"
 
20969
 
 
20970
# func_dirname file append nondir_replacement
 
20971
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20972
# otherwise set result to NONDIR_REPLACEMENT.
 
20973
func_dirname ()
 
20974
{
 
20975
  # Extract subdirectory from the argument.
 
20976
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
20977
  if test "X$func_dirname_result" = "X${1}"; then
 
20978
    func_dirname_result="${3}"
 
20979
  else
 
20980
    func_dirname_result="$func_dirname_result${2}"
 
20981
  fi
 
20982
}
 
20983
 
 
20984
# func_basename file
 
20985
func_basename ()
 
20986
{
 
20987
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
20988
}
 
20989
 
 
20990
 
 
20991
# func_stripname prefix suffix name
 
20992
# strip PREFIX and SUFFIX off of NAME.
 
20993
# PREFIX and SUFFIX must not contain globbing or regex special
 
20994
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20995
# dot (in which case that matches only a dot).
 
20996
# func_strip_suffix prefix name
 
20997
func_stripname ()
 
20998
{
 
20999
  case ${2} in
 
21000
    .*) func_stripname_result=`$ECHO "X${3}" \
 
21001
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
21002
    *)  func_stripname_result=`$ECHO "X${3}" \
 
21003
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
21004
  esac
 
21005
}
 
21006
 
 
21007
# sed scripts:
 
21008
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
21009
my_sed_long_arg='1s/^-[^=]*=//'
 
21010
 
 
21011
# func_opt_split
 
21012
func_opt_split ()
 
21013
{
 
21014
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
21015
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
21016
}
 
21017
 
 
21018
# func_lo2o object
 
21019
func_lo2o ()
 
21020
{
 
21021
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
21022
}
 
21023
 
 
21024
# func_xform libobj-or-source
 
21025
func_xform ()
 
21026
{
 
21027
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
21028
}
 
21029
 
 
21030
# func_arith arithmetic-term...
 
21031
func_arith ()
 
21032
{
 
21033
  func_arith_result=`expr "$@"`
 
21034
}
 
21035
 
 
21036
# func_len string
 
21037
# STRING may not start with a hyphen.
 
21038
func_len ()
 
21039
{
 
21040
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
21041
}
 
21042
 
 
21043
_LT_EOF
 
21044
esac
 
21045
 
 
21046
case $lt_shell_append in
 
21047
  yes)
 
21048
    cat << \_LT_EOF >> "$cfgfile"
 
21049
 
 
21050
# func_append var value
 
21051
# Append VALUE to the end of shell variable VAR.
 
21052
func_append ()
 
21053
{
 
21054
  eval "$1+=\$2"
 
21055
}
 
21056
_LT_EOF
 
21057
    ;;
 
21058
  *)
 
21059
    cat << \_LT_EOF >> "$cfgfile"
 
21060
 
 
21061
# func_append var value
 
21062
# Append VALUE to the end of shell variable VAR.
 
21063
func_append ()
 
21064
{
 
21065
  eval "$1=\$$1\$2"
 
21066
}
 
21067
 
 
21068
_LT_EOF
 
21069
    ;;
 
21070
  esac
 
21071
 
 
21072
 
 
21073
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
21074
    || (rm -f "$cfgfile"; exit 1)
 
21075
 
 
21076
  mv -f "$cfgfile" "$ofile" ||
 
21077
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
21078
  chmod +x "$ofile"
 
21079
 
 
21080
 
 
21081
    cat <<_LT_EOF >> "$ofile"
 
21082
 
 
21083
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
21084
 
 
21085
# The linker used to build libraries.
 
21086
LD=$lt_LD_CXX
 
21087
 
 
21088
# Commands used to build an old-style archive.
 
21089
old_archive_cmds=$lt_old_archive_cmds_CXX
 
21090
 
 
21091
# A language specific compiler.
 
21092
CC=$lt_compiler_CXX
 
21093
 
 
21094
# Is the compiler the GNU compiler?
 
21095
with_gcc=$GCC_CXX
 
21096
 
 
21097
# Compiler flag to turn off builtin functions.
 
21098
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
21099
 
 
21100
# How to pass a linker flag through the compiler.
 
21101
wl=$lt_lt_prog_compiler_wl_CXX
 
21102
 
 
21103
# Additional compiler flags for building library objects.
 
21104
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
21105
 
 
21106
# Compiler flag to prevent dynamic linking.
 
21107
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
21108
 
 
21109
# Does compiler simultaneously support -c and -o options?
 
21110
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
21111
 
 
21112
# Whether or not to add -lc for building shared libraries.
 
21113
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
21114
 
 
21115
# Whether or not to disallow shared libs when runtime libs are static.
 
21116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
21117
 
 
21118
# Compiler flag to allow reflexive dlopens.
 
21119
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
21120
 
 
21121
# Compiler flag to generate shared objects directly from archives.
 
21122
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
21123
 
 
21124
# Whether the compiler copes with passing no objects directly.
 
21125
compiler_needs_object=$lt_compiler_needs_object_CXX
 
21126
 
 
21127
# Create an old-style archive from a shared archive.
 
21128
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
21129
 
 
21130
# Create a temporary old-style archive to link instead of a shared archive.
 
21131
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
21132
 
 
21133
# Commands used to build a shared archive.
 
21134
archive_cmds=$lt_archive_cmds_CXX
 
21135
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
21136
 
 
21137
# Commands used to build a loadable module if different from building
 
21138
# a shared archive.
 
21139
module_cmds=$lt_module_cmds_CXX
 
21140
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
21141
 
 
21142
# Whether we are building with GNU ld or not.
 
21143
with_gnu_ld=$lt_with_gnu_ld_CXX
 
21144
 
 
21145
# Flag that allows shared libraries with undefined symbols to be built.
 
21146
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
21147
 
 
21148
# Flag that enforces no undefined symbols.
 
21149
no_undefined_flag=$lt_no_undefined_flag_CXX
 
21150
 
 
21151
# Flag to hardcode \$libdir into a binary during linking.
 
21152
# This must work even if \$libdir does not exist
 
21153
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
21154
 
 
21155
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
21156
# during linking.  This must work even if \$libdir does not exist.
 
21157
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
21158
 
 
21159
# Whether we need a single "-rpath" flag with a separated argument.
 
21160
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
21161
 
 
21162
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21163
# DIR into the resulting binary.
 
21164
hardcode_direct=$hardcode_direct_CXX
 
21165
 
 
21166
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21167
# DIR into the resulting binary and the resulting library dependency is
 
21168
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21169
# library is relocated.
 
21170
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
21171
 
 
21172
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21173
# into the resulting binary.
 
21174
hardcode_minus_L=$hardcode_minus_L_CXX
 
21175
 
 
21176
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21177
# into the resulting binary.
 
21178
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
21179
 
 
21180
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21181
# into the library and all subsequent libraries and executables linked
 
21182
# against it.
 
21183
hardcode_automatic=$hardcode_automatic_CXX
 
21184
 
 
21185
# Set to yes if linker adds runtime paths of dependent libraries
 
21186
# to runtime path list.
 
21187
inherit_rpath=$inherit_rpath_CXX
 
21188
 
 
21189
# Whether libtool must link a program against all its dependency libraries.
 
21190
link_all_deplibs=$link_all_deplibs_CXX
 
21191
 
 
21192
# Fix the shell variable \$srcfile for the compiler.
 
21193
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
21194
 
 
21195
# Set to "yes" if exported symbols are required.
 
21196
always_export_symbols=$always_export_symbols_CXX
 
21197
 
 
21198
# The commands to list exported symbols.
 
21199
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
21200
 
 
21201
# Symbols that should not be listed in the preloaded symbols.
 
21202
exclude_expsyms=$lt_exclude_expsyms_CXX
 
21203
 
 
21204
# Symbols that must always be exported.
 
21205
include_expsyms=$lt_include_expsyms_CXX
 
21206
 
 
21207
# Commands necessary for linking programs (against libraries) with templates.
 
21208
prelink_cmds=$lt_prelink_cmds_CXX
 
21209
 
 
21210
# Specify filename containing input files.
 
21211
file_list_spec=$lt_file_list_spec_CXX
 
21212
 
 
21213
# How to hardcode a shared library path into an executable.
 
21214
hardcode_action=$hardcode_action_CXX
 
21215
 
 
21216
# The directories searched by this compiler when creating a shared library.
 
21217
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
21218
 
 
21219
# Dependencies to place before and after the objects being linked to
 
21220
# create a shared library.
 
21221
predep_objects=$lt_predep_objects_CXX
 
21222
postdep_objects=$lt_postdep_objects_CXX
 
21223
predeps=$lt_predeps_CXX
 
21224
postdeps=$lt_postdeps_CXX
 
21225
 
 
21226
# The library search path used internally by the compiler when linking
 
21227
# a shared library.
 
21228
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
21229
 
 
21230
# ### END LIBTOOL TAG CONFIG: CXX
 
21231
_LT_EOF
 
21232
 
 
21233
 ;;
 
21234
 
 
21235
  esac
 
21236
done # for ac_tag
 
21237
 
 
21238
 
 
21239
as_fn_exit 0
 
21240
_ACEOF
 
21241
ac_clean_files=$ac_clean_files_save
 
21242
 
 
21243
test $ac_write_fail = 0 ||
 
21244
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
21245
 
 
21246
 
 
21247
# configure is writing to config.log, and then calls config.status.
 
21248
# config.status does its own redirection, appending to config.log.
 
21249
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21250
# by configure, so config.status won't be able to write to it; its
 
21251
# output is simply discarded.  So we exec the FD to /dev/null,
 
21252
# effectively closing config.log, so it can be properly (re)opened and
 
21253
# appended to by config.status.  When coming back to configure, we
 
21254
# need to make the FD available again.
 
21255
if test "$no_create" != yes; then
 
21256
  ac_cs_success=:
 
21257
  ac_config_status_args=
 
21258
  test "$silent" = yes &&
 
21259
    ac_config_status_args="$ac_config_status_args --quiet"
 
21260
  exec 5>/dev/null
 
21261
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21262
  exec 5>>config.log
 
21263
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21264
  # would make configure fail if this is the last instruction.
 
21265
  $ac_cs_success || as_fn_exit $?
 
21266
fi
 
21267
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
21268
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
21269
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
21270
fi
 
21271
 
 
21272
 
 
21273
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build quvi/libquvi:
 
21274
 
 
21275
    quvi version:   ${VERSION}
 
21276
    host setup:     ${host}
 
21277
    install prefix: ${prefix}
 
21278
    compiler:       ${CC}
 
21279
    cflags:         ${CFLAGS}
 
21280
 
 
21281
Options:
 
21282
    build libquvi:  shared=${enable_shared} static=${enable_static}
 
21283
    build quvi:     ${enable_quvi}
 
21284
    build examples: ${enable_examples}
 
21285
    adult support:  ${enable_smut}
 
21286
    broken support: ${enable_broken}
 
21287
    install manual: ${with_man}
 
21288
    install docs:   ${with_doc}
 
21289
 
 
21290
Other:
 
21291
    gengetopt:      ${GENGETOPT}
 
21292
    doxygen:        ${DOXYGEN}
 
21293
    perl:           ${PERL}
 
21294
    Pod::Checker:   ${have_pod_checker}
 
21295
    pod2man:        ${POD2MAN}
 
21296
    pod2html:       ${POD2HTML}
 
21297
" >&5
 
21298
$as_echo "$as_me: Configured to build quvi/libquvi:
 
21299
 
 
21300
    quvi version:   ${VERSION}
 
21301
    host setup:     ${host}
 
21302
    install prefix: ${prefix}
 
21303
    compiler:       ${CC}
 
21304
    cflags:         ${CFLAGS}
 
21305
 
 
21306
Options:
 
21307
    build libquvi:  shared=${enable_shared} static=${enable_static}
 
21308
    build quvi:     ${enable_quvi}
 
21309
    build examples: ${enable_examples}
 
21310
    adult support:  ${enable_smut}
 
21311
    broken support: ${enable_broken}
 
21312
    install manual: ${with_man}
 
21313
    install docs:   ${with_doc}
 
21314
 
 
21315
Other:
 
21316
    gengetopt:      ${GENGETOPT}
 
21317
    doxygen:        ${DOXYGEN}
 
21318
    perl:           ${PERL}
 
21319
    Pod::Checker:   ${have_pod_checker}
 
21320
    pod2man:        ${POD2MAN}
 
21321
    pod2html:       ${POD2HTML}
 
21322
" >&6;}
 
21323
 
 
21324