~whzhang-kylin/unity-china-music-scope/unity-china-music-scope

« back to all changes in this revision

Viewing changes to configure

add codes of shijing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for unity-china-music-scope 1.0.2.
 
4
#
 
5
# Report bugs to <https://code.launchpad.net/unity-china-music-scope>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
#
 
14
# Copyright 2012-2013 Kylin Ltd
 
15
# 2011 Canonical Ltd
 
16
## -------------------- ##
 
17
## M4sh Initialization. ##
 
18
## -------------------- ##
 
19
 
 
20
# Be more Bourne compatible
 
21
DUALCASE=1; export DUALCASE # for MKS sh
 
22
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
23
  emulate sh
 
24
  NULLCMD=:
 
25
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
26
  # is contrary to our usage.  Disable this feature.
 
27
  alias -g '${1+"$@"}'='"$@"'
 
28
  setopt NO_GLOB_SUBST
 
29
else
 
30
  case `(set -o) 2>/dev/null` in #(
 
31
  *posix*) :
 
32
    set -o posix ;; #(
 
33
  *) :
 
34
     ;;
 
35
esac
 
36
fi
 
37
 
 
38
 
 
39
as_nl='
 
40
'
 
41
export as_nl
 
42
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
43
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
47
# but without wasting forks for bash or zsh.
 
48
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
49
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='print -r --'
 
51
  as_echo_n='print -rn --'
 
52
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
53
  as_echo='printf %s\n'
 
54
  as_echo_n='printf %s'
 
55
else
 
56
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
57
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
58
    as_echo_n='/usr/ucb/echo -n'
 
59
  else
 
60
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
61
    as_echo_n_body='eval
 
62
      arg=$1;
 
63
      case $arg in #(
 
64
      *"$as_nl"*)
 
65
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
66
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
67
      esac;
 
68
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
69
    '
 
70
    export as_echo_n_body
 
71
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
72
  fi
 
73
  export as_echo_body
 
74
  as_echo='sh -c $as_echo_body as_echo'
 
75
fi
 
76
 
 
77
# The user is always right.
 
78
if test "${PATH_SEPARATOR+set}" != set; then
 
79
  PATH_SEPARATOR=:
 
80
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
81
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
82
      PATH_SEPARATOR=';'
 
83
  }
 
84
fi
 
85
 
 
86
 
 
87
# IFS
 
88
# We need space, tab and new line, in precisely that order.  Quoting is
 
89
# there to prevent editors from complaining about space-tab.
 
90
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
91
# splitting by setting IFS to empty value.)
 
92
IFS=" ""        $as_nl"
 
93
 
 
94
# Find who we are.  Look in the path if we contain no directory separator.
 
95
as_myself=
 
96
case $0 in #((
 
97
  *[\\/]* ) as_myself=$0 ;;
 
98
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
99
for as_dir in $PATH
 
100
do
 
101
  IFS=$as_save_IFS
 
102
  test -z "$as_dir" && as_dir=.
 
103
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
104
  done
 
105
IFS=$as_save_IFS
 
106
 
 
107
     ;;
 
108
esac
 
109
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
110
# in which case we are not to be found in the path.
 
111
if test "x$as_myself" = x; then
 
112
  as_myself=$0
 
113
fi
 
114
if test ! -f "$as_myself"; then
 
115
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
116
  exit 1
 
117
fi
 
118
 
 
119
# Unset variables that we do not need and which cause bugs (e.g. in
 
120
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
121
# suppresses any "Segmentation fault" message there.  '((' could
 
122
# trigger a bug in pdksh 5.2.14.
 
123
for as_var in BASH_ENV ENV MAIL MAILPATH
 
124
do eval test x\${$as_var+set} = xset \
 
125
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
126
done
 
127
PS1='$ '
 
128
PS2='> '
 
129
PS4='+ '
 
130
 
 
131
# NLS nuisances.
 
132
LC_ALL=C
 
133
export LC_ALL
 
134
LANGUAGE=C
 
135
export LANGUAGE
 
136
 
 
137
# CDPATH.
 
138
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
139
 
 
140
# Use a proper internal environment variable to ensure we don't fall
 
141
  # into an infinite loop, continuously re-executing ourselves.
 
142
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
143
    _as_can_reexec=no; export _as_can_reexec;
 
144
    # We cannot yet assume a decent shell, so we have to provide a
 
145
# neutralization value for shells without unset; and this also
 
146
# works around shells that cannot unset nonexistent variables.
 
147
# Preserve -v and -x to the replacement shell.
 
148
BASH_ENV=/dev/null
 
149
ENV=/dev/null
 
150
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
151
case $- in # ((((
 
152
  *v*x* | *x*v* ) as_opts=-vx ;;
 
153
  *v* ) as_opts=-v ;;
 
154
  *x* ) as_opts=-x ;;
 
155
  * ) as_opts= ;;
 
156
esac
 
157
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
158
# Admittedly, this is quite paranoid, since all the known shells bail
 
159
# out after a failed `exec'.
 
160
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
161
as_fn_exit 255
 
162
  fi
 
163
  # We don't want this to propagate to other subprocesses.
 
164
          { _as_can_reexec=; unset _as_can_reexec;}
 
165
if test "x$CONFIG_SHELL" = x; then
 
166
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
167
  emulate sh
 
168
  NULLCMD=:
 
169
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
170
  # is contrary to our usage.  Disable this feature.
 
171
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
172
  setopt NO_GLOB_SUBST
 
173
else
 
174
  case \`(set -o) 2>/dev/null\` in #(
 
175
  *posix*) :
 
176
    set -o posix ;; #(
 
177
  *) :
 
178
     ;;
 
179
esac
 
180
fi
 
181
"
 
182
  as_required="as_fn_return () { (exit \$1); }
 
183
as_fn_success () { as_fn_return 0; }
 
184
as_fn_failure () { as_fn_return 1; }
 
185
as_fn_ret_success () { return 0; }
 
186
as_fn_ret_failure () { return 1; }
 
187
 
 
188
exitcode=0
 
189
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
190
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
191
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
192
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
193
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
194
 
 
195
else
 
196
  exitcode=1; echo positional parameters were not saved.
 
197
fi
 
198
test x\$exitcode = x0 || exit 1
 
199
test -x / || exit 1"
 
200
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
201
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
202
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
203
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
204
test \$(( 1 + 1 )) = 2 || exit 1
 
205
 
 
206
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
207
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
208
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
209
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
210
    PATH=/empty FPATH=/empty; export PATH FPATH
 
211
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
212
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
213
  if (eval "$as_required") 2>/dev/null; then :
 
214
  as_have_required=yes
 
215
else
 
216
  as_have_required=no
 
217
fi
 
218
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
219
 
 
220
else
 
221
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
as_found=false
 
223
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
224
do
 
225
  IFS=$as_save_IFS
 
226
  test -z "$as_dir" && as_dir=.
 
227
  as_found=:
 
228
  case $as_dir in #(
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             # Try only shells that exist, to save several forks.
 
232
             as_shell=$as_dir/$as_base
 
233
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
234
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
235
  CONFIG_SHELL=$as_shell as_have_required=yes
 
236
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
237
  break 2
 
238
fi
 
239
fi
 
240
           done;;
 
241
       esac
 
242
  as_found=false
 
243
done
 
244
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
245
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
246
  CONFIG_SHELL=$SHELL as_have_required=yes
 
247
fi; }
 
248
IFS=$as_save_IFS
 
249
 
 
250
 
 
251
      if test "x$CONFIG_SHELL" != x; then :
 
252
  export CONFIG_SHELL
 
253
             # We cannot yet assume a decent shell, so we have to provide a
 
254
# neutralization value for shells without unset; and this also
 
255
# works around shells that cannot unset nonexistent variables.
 
256
# Preserve -v and -x to the replacement shell.
 
257
BASH_ENV=/dev/null
 
258
ENV=/dev/null
 
259
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
260
case $- in # ((((
 
261
  *v*x* | *x*v* ) as_opts=-vx ;;
 
262
  *v* ) as_opts=-v ;;
 
263
  *x* ) as_opts=-x ;;
 
264
  * ) as_opts= ;;
 
265
esac
 
266
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
267
# Admittedly, this is quite paranoid, since all the known shells bail
 
268
# out after a failed `exec'.
 
269
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
270
exit 255
 
271
fi
 
272
 
 
273
    if test x$as_have_required = xno; then :
 
274
  $as_echo "$0: This script requires a shell more modern than all"
 
275
  $as_echo "$0: the shells that I found on your system."
 
276
  if test x${ZSH_VERSION+set} = xset ; then
 
277
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
278
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
279
  else
 
280
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
281
$0: https://code.launchpad.net/unity-china-music-scope
 
282
$0: about your system, including any error possibly output
 
283
$0: before this message. Then install a modern shell, or
 
284
$0: manually run the script under such a shell if you do
 
285
$0: have one."
 
286
  fi
 
287
  exit 1
 
288
fi
 
289
fi
 
290
fi
 
291
SHELL=${CONFIG_SHELL-/bin/sh}
 
292
export SHELL
 
293
# Unset more variables known to interfere with behavior of common tools.
 
294
CLICOLOR_FORCE= GREP_OPTIONS=
 
295
unset CLICOLOR_FORCE GREP_OPTIONS
 
296
 
 
297
## --------------------- ##
 
298
## M4sh Shell Functions. ##
 
299
## --------------------- ##
 
300
# as_fn_unset VAR
 
301
# ---------------
 
302
# Portably unset VAR.
 
303
as_fn_unset ()
 
304
{
 
305
  { eval $1=; unset $1;}
 
306
}
 
307
as_unset=as_fn_unset
 
308
 
 
309
# as_fn_set_status STATUS
 
310
# -----------------------
 
311
# Set $? to STATUS, without forking.
 
312
as_fn_set_status ()
 
313
{
 
314
  return $1
 
315
} # as_fn_set_status
 
316
 
 
317
# as_fn_exit STATUS
 
318
# -----------------
 
319
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
320
as_fn_exit ()
 
321
{
 
322
  set +e
 
323
  as_fn_set_status $1
 
324
  exit $1
 
325
} # as_fn_exit
 
326
 
 
327
# as_fn_mkdir_p
 
328
# -------------
 
329
# Create "$as_dir" as a directory, including parents if necessary.
 
330
as_fn_mkdir_p ()
 
331
{
 
332
 
 
333
  case $as_dir in #(
 
334
  -*) as_dir=./$as_dir;;
 
335
  esac
 
336
  test -d "$as_dir" || eval $as_mkdir_p || {
 
337
    as_dirs=
 
338
    while :; do
 
339
      case $as_dir in #(
 
340
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
341
      *) as_qdir=$as_dir;;
 
342
      esac
 
343
      as_dirs="'$as_qdir' $as_dirs"
 
344
      as_dir=`$as_dirname -- "$as_dir" ||
 
345
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
346
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
347
         X"$as_dir" : 'X\(//\)$' \| \
 
348
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
349
$as_echo X"$as_dir" |
 
350
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)[^/].*/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\/\)$/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          /^X\(\/\).*/{
 
363
            s//\1/
 
364
            q
 
365
          }
 
366
          s/.*/./; q'`
 
367
      test -d "$as_dir" && break
 
368
    done
 
369
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
370
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
371
 
 
372
 
 
373
} # as_fn_mkdir_p
 
374
 
 
375
# as_fn_executable_p FILE
 
376
# -----------------------
 
377
# Test if FILE is an executable regular file.
 
378
as_fn_executable_p ()
 
379
{
 
380
  test -f "$1" && test -x "$1"
 
381
} # as_fn_executable_p
 
382
# as_fn_append VAR VALUE
 
383
# ----------------------
 
384
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
385
# advantage of any shell optimizations that allow amortized linear growth over
 
386
# repeated appends, instead of the typical quadratic growth present in naive
 
387
# implementations.
 
388
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
389
  eval 'as_fn_append ()
 
390
  {
 
391
    eval $1+=\$2
 
392
  }'
 
393
else
 
394
  as_fn_append ()
 
395
  {
 
396
    eval $1=\$$1\$2
 
397
  }
 
398
fi # as_fn_append
 
399
 
 
400
# as_fn_arith ARG...
 
401
# ------------------
 
402
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
403
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
404
# must be portable across $(()) and expr.
 
405
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
406
  eval 'as_fn_arith ()
 
407
  {
 
408
    as_val=$(( $* ))
 
409
  }'
 
410
else
 
411
  as_fn_arith ()
 
412
  {
 
413
    as_val=`expr "$@" || test $? -eq 1`
 
414
  }
 
415
fi # as_fn_arith
 
416
 
 
417
 
 
418
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
419
# ----------------------------------------
 
420
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
421
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
422
# script with STATUS, using 1 if that was 0.
 
423
as_fn_error ()
 
424
{
 
425
  as_status=$1; test $as_status -eq 0 && as_status=1
 
426
  if test "$4"; then
 
427
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
428
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
429
  fi
 
430
  $as_echo "$as_me: error: $2" >&2
 
431
  as_fn_exit $as_status
 
432
} # as_fn_error
 
433
 
 
434
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
435
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
436
  as_expr=expr
 
437
else
 
438
  as_expr=false
 
439
fi
 
440
 
 
441
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
442
  as_basename=basename
 
443
else
 
444
  as_basename=false
 
445
fi
 
446
 
 
447
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
448
  as_dirname=dirname
 
449
else
 
450
  as_dirname=false
 
451
fi
 
452
 
 
453
as_me=`$as_basename -- "$0" ||
 
454
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
455
         X"$0" : 'X\(//\)$' \| \
 
456
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
457
$as_echo X/"$0" |
 
458
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\/\)$/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          /^X\/\(\/\).*/{
 
467
            s//\1/
 
468
            q
 
469
          }
 
470
          s/.*/./; q'`
 
471
 
 
472
# Avoid depending upon Character Ranges.
 
473
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
474
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
475
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
476
as_cr_digits='0123456789'
 
477
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
478
 
 
479
 
 
480
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
481
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
482
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
483
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
484
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
485
  sed -n '
 
486
    p
 
487
    /[$]LINENO/=
 
488
  ' <$as_myself |
 
489
    sed '
 
490
      s/[$]LINENO.*/&-/
 
491
      t lineno
 
492
      b
 
493
      :lineno
 
494
      N
 
495
      :loop
 
496
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
497
      t loop
 
498
      s/-\n.*//
 
499
    ' >$as_me.lineno &&
 
500
  chmod +x "$as_me.lineno" ||
 
501
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
502
 
 
503
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
504
  # already done that, so ensure we don't try to do so again and fall
 
505
  # in an infinite loop.  This has already happened in practice.
 
506
  _as_can_reexec=no; export _as_can_reexec
 
507
  # Don't try to exec as it changes $[0], causing all sort of problems
 
508
  # (the dirname of $[0] is not the place where we might find the
 
509
  # original and so on.  Autoconf is especially sensitive to this).
 
510
  . "./$as_me.lineno"
 
511
  # Exit status is that of the last command.
 
512
  exit
 
513
}
 
514
 
 
515
ECHO_C= ECHO_N= ECHO_T=
 
516
case `echo -n x` in #(((((
 
517
-n*)
 
518
  case `echo 'xy\c'` in
 
519
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
520
  xy)  ECHO_C='\c';;
 
521
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
522
       ECHO_T=' ';;
 
523
  esac;;
 
524
*)
 
525
  ECHO_N='-n';;
 
526
esac
 
527
 
 
528
rm -f conf$$ conf$$.exe conf$$.file
 
529
if test -d conf$$.dir; then
 
530
  rm -f conf$$.dir/conf$$.file
 
531
else
 
532
  rm -f conf$$.dir
 
533
  mkdir conf$$.dir 2>/dev/null
 
534
fi
 
535
if (echo >conf$$.file) 2>/dev/null; then
 
536
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
537
    as_ln_s='ln -s'
 
538
    # ... but there are two gotchas:
 
539
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
540
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
541
    # In both cases, we have to default to `cp -pR'.
 
542
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
543
      as_ln_s='cp -pR'
 
544
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
545
    as_ln_s=ln
 
546
  else
 
547
    as_ln_s='cp -pR'
 
548
  fi
 
549
else
 
550
  as_ln_s='cp -pR'
 
551
fi
 
552
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
553
rmdir conf$$.dir 2>/dev/null
 
554
 
 
555
if mkdir -p . 2>/dev/null; then
 
556
  as_mkdir_p='mkdir -p "$as_dir"'
 
557
else
 
558
  test -d ./-p && rmdir ./-p
 
559
  as_mkdir_p=false
 
560
fi
 
561
 
 
562
as_test_x='test -x'
 
563
as_executable_p=as_fn_executable_p
 
564
 
 
565
# Sed expression to map a string onto a valid CPP name.
 
566
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
# Sed expression to map a string onto a valid variable name.
 
569
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
as_awk_strverscmp='
 
572
  # Use only awk features that work with 7th edition Unix awk (1978).
 
573
  # My, what an old awk you have, Mr. Solaris!
 
574
  END {
 
575
    while (length(v1) && length(v2)) {
 
576
      # Set d1 to be the next thing to compare from v1, and likewise for d2.
 
577
      # Normally this is a single character, but if v1 and v2 contain digits,
 
578
      # compare them as integers and fractions as strverscmp does.
 
579
      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
 
580
        # Split v1 and v2 into their leading digit string components d1 and d2,
 
581
        # and advance v1 and v2 past the leading digit strings.
 
582
        for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
 
583
        for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
 
584
        d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
 
585
        d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
 
586
        if (d1 ~ /^0/) {
 
587
          if (d2 ~ /^0/) {
 
588
            # Compare two fractions.
 
589
            while (d1 ~ /^0/ && d2 ~ /^0/) {
 
590
              d1 = substr(d1, 2); len1--
 
591
              d2 = substr(d2, 2); len2--
 
592
            }
 
593
            if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
 
594
              # The two components differ in length, and the common prefix
 
595
              # contains only leading zeros.  Consider the longer to be less.
 
596
              d1 = -len1
 
597
              d2 = -len2
 
598
            } else {
 
599
              # Otherwise, compare as strings.
 
600
              d1 = "x" d1
 
601
              d2 = "x" d2
 
602
            }
 
603
          } else {
 
604
            # A fraction is less than an integer.
 
605
            exit 1
 
606
          }
 
607
        } else {
 
608
          if (d2 ~ /^0/) {
 
609
            # An integer is greater than a fraction.
 
610
            exit 2
 
611
          } else {
 
612
            # Compare two integers.
 
613
            d1 += 0
 
614
            d2 += 0
 
615
          }
 
616
        }
 
617
      } else {
 
618
        # The normal case, without worrying about digits.
 
619
        d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
 
620
        d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
 
621
      }
 
622
      if (d1 < d2) exit 1
 
623
      if (d1 > d2) exit 2
 
624
    }
 
625
    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
 
626
    # which mishandles some comparisons of empty strings to integers.
 
627
    if (length(v2)) exit 1
 
628
    if (length(v1)) exit 2
 
629
  }
 
630
'
 
631
SHELL=${CONFIG_SHELL-/bin/sh}
 
632
 
 
633
 
 
634
test -n "$DJDIR" || exec 7<&0 </dev/null
 
635
exec 6>&1
 
636
 
 
637
# Name of the host.
 
638
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
639
# so uname gets run too.
 
640
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
641
 
 
642
#
 
643
# Initializations.
 
644
#
 
645
ac_default_prefix=/usr/local
 
646
ac_clean_files=
 
647
ac_config_libobj_dir=.
 
648
LIBOBJS=
 
649
cross_compiling=no
 
650
subdirs=
 
651
MFLAGS=
 
652
MAKEFLAGS=
 
653
 
 
654
# Identity of this package.
 
655
PACKAGE_NAME='unity-china-music-scope'
 
656
PACKAGE_TARNAME='unity-china-music-scope'
 
657
PACKAGE_VERSION='1.0.2'
 
658
PACKAGE_STRING='unity-china-music-scope 1.0.2'
 
659
PACKAGE_BUGREPORT='https://code.launchpad.net/unity-china-music-scope'
 
660
PACKAGE_URL=''
 
661
 
 
662
# Factoring default headers for most tests.
 
663
ac_includes_default="\
 
664
#include <stdio.h>
 
665
#ifdef HAVE_SYS_TYPES_H
 
666
# include <sys/types.h>
 
667
#endif
 
668
#ifdef HAVE_SYS_STAT_H
 
669
# include <sys/stat.h>
 
670
#endif
 
671
#ifdef STDC_HEADERS
 
672
# include <stdlib.h>
 
673
# include <stddef.h>
 
674
#else
 
675
# ifdef HAVE_STDLIB_H
 
676
#  include <stdlib.h>
 
677
# endif
 
678
#endif
 
679
#ifdef HAVE_STRING_H
 
680
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
681
#  include <memory.h>
 
682
# endif
 
683
# include <string.h>
 
684
#endif
 
685
#ifdef HAVE_STRINGS_H
 
686
# include <strings.h>
 
687
#endif
 
688
#ifdef HAVE_INTTYPES_H
 
689
# include <inttypes.h>
 
690
#endif
 
691
#ifdef HAVE_STDINT_H
 
692
# include <stdint.h>
 
693
#endif
 
694
#ifdef HAVE_UNISTD_H
 
695
# include <unistd.h>
 
696
#endif"
 
697
 
 
698
ac_subst_vars='am__EXEEXT_FALSE
 
699
am__EXEEXT_TRUE
 
700
LTLIBOBJS
 
701
LIBOBJS
 
702
SCOPESDIR
 
703
DBUSSERVICEDIR
 
704
DATADIR
 
705
PREFIX
 
706
HAVE_LOCALINSTALL_FALSE
 
707
HAVE_LOCALINSTALL_TRUE
 
708
PREVIEW_PLAYER_LIBS
 
709
PREVIEW_PLAYER_CFLAGS
 
710
SCOPE_DAEMON_LIBS
 
711
SCOPE_DAEMON_CFLAGS
 
712
PKG_CONFIG_LIBDIR
 
713
PKG_CONFIG_PATH
 
714
PKG_CONFIG
 
715
INTLTOOL_SCOPE_RULE
 
716
ALL_LINGUAS
 
717
INTLTOOL_PERL
 
718
MSGMERGE
 
719
INTLTOOL_POLICY_RULE
 
720
INTLTOOL_SERVICE_RULE
 
721
INTLTOOL_THEME_RULE
 
722
INTLTOOL_SCHEMAS_RULE
 
723
INTLTOOL_CAVES_RULE
 
724
INTLTOOL_XML_NOMERGE_RULE
 
725
INTLTOOL_XML_RULE
 
726
INTLTOOL_KBD_RULE
 
727
INTLTOOL_XAM_RULE
 
728
INTLTOOL_UI_RULE
 
729
INTLTOOL_SOUNDLIST_RULE
 
730
INTLTOOL_SHEET_RULE
 
731
INTLTOOL_SERVER_RULE
 
732
INTLTOOL_PONG_RULE
 
733
INTLTOOL_OAF_RULE
 
734
INTLTOOL_PROP_RULE
 
735
INTLTOOL_KEYS_RULE
 
736
INTLTOOL_DIRECTORY_RULE
 
737
INTLTOOL_DESKTOP_RULE
 
738
intltool__v_merge_options_0
 
739
intltool__v_merge_options_
 
740
INTLTOOL_V_MERGE_OPTIONS
 
741
INTLTOOL__v_MERGE_0
 
742
INTLTOOL__v_MERGE_
 
743
INTLTOOL_V_MERGE
 
744
INTLTOOL_EXTRACT
 
745
INTLTOOL_MERGE
 
746
INTLTOOL_UPDATE
 
747
MKINSTALLDIRS
 
748
POSUB
 
749
POFILES
 
750
PO_IN_DATADIR_FALSE
 
751
PO_IN_DATADIR_TRUE
 
752
INTLLIBS
 
753
INSTOBJEXT
 
754
GMOFILES
 
755
DATADIRNAME
 
756
CATOBJEXT
 
757
CATALOGS
 
758
XGETTEXT
 
759
GMSGFMT
 
760
MSGFMT_OPTS
 
761
MSGFMT
 
762
USE_NLS
 
763
CONFIG_STATUS_DEPENDENCIES
 
764
GETTEXT_PACKAGE
 
765
OTOOL64
 
766
OTOOL
 
767
LIPO
 
768
NMEDIT
 
769
DSYMUTIL
 
770
MANIFEST_TOOL
 
771
RANLIB
 
772
ac_ct_AR
 
773
AR
 
774
DLLTOOL
 
775
OBJDUMP
 
776
LN_S
 
777
NM
 
778
ac_ct_DUMPBIN
 
779
DUMPBIN
 
780
LD
 
781
FGREP
 
782
SED
 
783
host_os
 
784
host_vendor
 
785
host_cpu
 
786
host
 
787
build_os
 
788
build_vendor
 
789
build_cpu
 
790
build
 
791
LIBTOOL
 
792
EGREP
 
793
GREP
 
794
CPP
 
795
am__fastdepCC_FALSE
 
796
am__fastdepCC_TRUE
 
797
CCDEPMODE
 
798
am__nodep
 
799
AMDEPBACKSLASH
 
800
AMDEP_FALSE
 
801
AMDEP_TRUE
 
802
am__quote
 
803
am__include
 
804
DEPDIR
 
805
OBJEXT
 
806
EXEEXT
 
807
ac_ct_CC
 
808
CPPFLAGS
 
809
LDFLAGS
 
810
CFLAGS
 
811
CC
 
812
VALAC
 
813
MAINT
 
814
MAINTAINER_MODE_FALSE
 
815
MAINTAINER_MODE_TRUE
 
816
AM_BACKSLASH
 
817
AM_DEFAULT_VERBOSITY
 
818
AM_DEFAULT_V
 
819
AM_V
 
820
am__untar
 
821
am__tar
 
822
AMTAR
 
823
am__leading_dot
 
824
SET_MAKE
 
825
AWK
 
826
mkdir_p
 
827
MKDIR_P
 
828
INSTALL_STRIP_PROGRAM
 
829
STRIP
 
830
install_sh
 
831
MAKEINFO
 
832
AUTOHEADER
 
833
AUTOMAKE
 
834
AUTOCONF
 
835
ACLOCAL
 
836
VERSION
 
837
PACKAGE
 
838
CYGPATH_W
 
839
am__isrc
 
840
INSTALL_DATA
 
841
INSTALL_SCRIPT
 
842
INSTALL_PROGRAM
 
843
target_alias
 
844
host_alias
 
845
build_alias
 
846
LIBS
 
847
ECHO_T
 
848
ECHO_N
 
849
ECHO_C
 
850
DEFS
 
851
mandir
 
852
localedir
 
853
libdir
 
854
psdir
 
855
pdfdir
 
856
dvidir
 
857
htmldir
 
858
infodir
 
859
docdir
 
860
oldincludedir
 
861
includedir
 
862
localstatedir
 
863
sharedstatedir
 
864
sysconfdir
 
865
datadir
 
866
datarootdir
 
867
libexecdir
 
868
sbindir
 
869
bindir
 
870
program_transform_name
 
871
prefix
 
872
exec_prefix
 
873
PACKAGE_URL
 
874
PACKAGE_BUGREPORT
 
875
PACKAGE_STRING
 
876
PACKAGE_VERSION
 
877
PACKAGE_TARNAME
 
878
PACKAGE_NAME
 
879
PATH_SEPARATOR
 
880
SHELL'
 
881
ac_subst_files=''
 
882
ac_user_opts='
 
883
enable_option_checking
 
884
enable_silent_rules
 
885
enable_maintainer_mode
 
886
enable_dependency_tracking
 
887
enable_shared
 
888
enable_static
 
889
with_pic
 
890
enable_fast_install
 
891
with_gnu_ld
 
892
with_sysroot
 
893
enable_libtool_lock
 
894
enable_nls
 
895
enable_localinstall
 
896
'
 
897
      ac_precious_vars='build_alias
 
898
host_alias
 
899
target_alias
 
900
CC
 
901
CFLAGS
 
902
LDFLAGS
 
903
LIBS
 
904
CPPFLAGS
 
905
CPP
 
906
PKG_CONFIG
 
907
PKG_CONFIG_PATH
 
908
PKG_CONFIG_LIBDIR
 
909
SCOPE_DAEMON_CFLAGS
 
910
SCOPE_DAEMON_LIBS
 
911
PREVIEW_PLAYER_CFLAGS
 
912
PREVIEW_PLAYER_LIBS'
 
913
 
 
914
 
 
915
# Initialize some variables set by options.
 
916
ac_init_help=
 
917
ac_init_version=false
 
918
ac_unrecognized_opts=
 
919
ac_unrecognized_sep=
 
920
# The variables have the same names as the options, with
 
921
# dashes changed to underlines.
 
922
cache_file=/dev/null
 
923
exec_prefix=NONE
 
924
no_create=
 
925
no_recursion=
 
926
prefix=NONE
 
927
program_prefix=NONE
 
928
program_suffix=NONE
 
929
program_transform_name=s,x,x,
 
930
silent=
 
931
site=
 
932
srcdir=
 
933
verbose=
 
934
x_includes=NONE
 
935
x_libraries=NONE
 
936
 
 
937
# Installation directory options.
 
938
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
939
# and all the variables that are supposed to be based on exec_prefix
 
940
# by default will actually change.
 
941
# Use braces instead of parens because sh, perl, etc. also accept them.
 
942
# (The list follows the same order as the GNU Coding Standards.)
 
943
bindir='${exec_prefix}/bin'
 
944
sbindir='${exec_prefix}/sbin'
 
945
libexecdir='${exec_prefix}/libexec'
 
946
datarootdir='${prefix}/share'
 
947
datadir='${datarootdir}'
 
948
sysconfdir='${prefix}/etc'
 
949
sharedstatedir='${prefix}/com'
 
950
localstatedir='${prefix}/var'
 
951
includedir='${prefix}/include'
 
952
oldincludedir='/usr/include'
 
953
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
954
infodir='${datarootdir}/info'
 
955
htmldir='${docdir}'
 
956
dvidir='${docdir}'
 
957
pdfdir='${docdir}'
 
958
psdir='${docdir}'
 
959
libdir='${exec_prefix}/lib'
 
960
localedir='${datarootdir}/locale'
 
961
mandir='${datarootdir}/man'
 
962
 
 
963
ac_prev=
 
964
ac_dashdash=
 
965
for ac_option
 
966
do
 
967
  # If the previous option needs an argument, assign it.
 
968
  if test -n "$ac_prev"; then
 
969
    eval $ac_prev=\$ac_option
 
970
    ac_prev=
 
971
    continue
 
972
  fi
 
973
 
 
974
  case $ac_option in
 
975
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
976
  *=)   ac_optarg= ;;
 
977
  *)    ac_optarg=yes ;;
 
978
  esac
 
979
 
 
980
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
981
 
 
982
  case $ac_dashdash$ac_option in
 
983
  --)
 
984
    ac_dashdash=yes ;;
 
985
 
 
986
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
987
    ac_prev=bindir ;;
 
988
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
989
    bindir=$ac_optarg ;;
 
990
 
 
991
  -build | --build | --buil | --bui | --bu)
 
992
    ac_prev=build_alias ;;
 
993
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
994
    build_alias=$ac_optarg ;;
 
995
 
 
996
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
997
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
998
    ac_prev=cache_file ;;
 
999
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1000
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1001
    cache_file=$ac_optarg ;;
 
1002
 
 
1003
  --config-cache | -C)
 
1004
    cache_file=config.cache ;;
 
1005
 
 
1006
  -datadir | --datadir | --datadi | --datad)
 
1007
    ac_prev=datadir ;;
 
1008
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1009
    datadir=$ac_optarg ;;
 
1010
 
 
1011
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1012
  | --dataroo | --dataro | --datar)
 
1013
    ac_prev=datarootdir ;;
 
1014
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1015
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1016
    datarootdir=$ac_optarg ;;
 
1017
 
 
1018
  -disable-* | --disable-*)
 
1019
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1020
    # Reject names that are not valid shell variable names.
 
1021
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1022
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1023
    ac_useropt_orig=$ac_useropt
 
1024
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1025
    case $ac_user_opts in
 
1026
      *"
 
1027
"enable_$ac_useropt"
 
1028
"*) ;;
 
1029
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1030
         ac_unrecognized_sep=', ';;
 
1031
    esac
 
1032
    eval enable_$ac_useropt=no ;;
 
1033
 
 
1034
  -docdir | --docdir | --docdi | --doc | --do)
 
1035
    ac_prev=docdir ;;
 
1036
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1037
    docdir=$ac_optarg ;;
 
1038
 
 
1039
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1040
    ac_prev=dvidir ;;
 
1041
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1042
    dvidir=$ac_optarg ;;
 
1043
 
 
1044
  -enable-* | --enable-*)
 
1045
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1046
    # Reject names that are not valid shell variable names.
 
1047
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1048
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1049
    ac_useropt_orig=$ac_useropt
 
1050
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1051
    case $ac_user_opts in
 
1052
      *"
 
1053
"enable_$ac_useropt"
 
1054
"*) ;;
 
1055
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1056
         ac_unrecognized_sep=', ';;
 
1057
    esac
 
1058
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1059
 
 
1060
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1061
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1062
  | --exec | --exe | --ex)
 
1063
    ac_prev=exec_prefix ;;
 
1064
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1065
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1066
  | --exec=* | --exe=* | --ex=*)
 
1067
    exec_prefix=$ac_optarg ;;
 
1068
 
 
1069
  -gas | --gas | --ga | --g)
 
1070
    # Obsolete; use --with-gas.
 
1071
    with_gas=yes ;;
 
1072
 
 
1073
  -help | --help | --hel | --he | -h)
 
1074
    ac_init_help=long ;;
 
1075
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1076
    ac_init_help=recursive ;;
 
1077
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1078
    ac_init_help=short ;;
 
1079
 
 
1080
  -host | --host | --hos | --ho)
 
1081
    ac_prev=host_alias ;;
 
1082
  -host=* | --host=* | --hos=* | --ho=*)
 
1083
    host_alias=$ac_optarg ;;
 
1084
 
 
1085
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1086
    ac_prev=htmldir ;;
 
1087
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1088
  | --ht=*)
 
1089
    htmldir=$ac_optarg ;;
 
1090
 
 
1091
  -includedir | --includedir | --includedi | --included | --include \
 
1092
  | --includ | --inclu | --incl | --inc)
 
1093
    ac_prev=includedir ;;
 
1094
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1095
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1096
    includedir=$ac_optarg ;;
 
1097
 
 
1098
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1099
    ac_prev=infodir ;;
 
1100
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1101
    infodir=$ac_optarg ;;
 
1102
 
 
1103
  -libdir | --libdir | --libdi | --libd)
 
1104
    ac_prev=libdir ;;
 
1105
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1106
    libdir=$ac_optarg ;;
 
1107
 
 
1108
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1109
  | --libexe | --libex | --libe)
 
1110
    ac_prev=libexecdir ;;
 
1111
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1112
  | --libexe=* | --libex=* | --libe=*)
 
1113
    libexecdir=$ac_optarg ;;
 
1114
 
 
1115
  -localedir | --localedir | --localedi | --localed | --locale)
 
1116
    ac_prev=localedir ;;
 
1117
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1118
    localedir=$ac_optarg ;;
 
1119
 
 
1120
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1121
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1122
    ac_prev=localstatedir ;;
 
1123
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1124
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1125
    localstatedir=$ac_optarg ;;
 
1126
 
 
1127
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1128
    ac_prev=mandir ;;
 
1129
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1130
    mandir=$ac_optarg ;;
 
1131
 
 
1132
  -nfp | --nfp | --nf)
 
1133
    # Obsolete; use --without-fp.
 
1134
    with_fp=no ;;
 
1135
 
 
1136
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1137
  | --no-cr | --no-c | -n)
 
1138
    no_create=yes ;;
 
1139
 
 
1140
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1141
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1142
    no_recursion=yes ;;
 
1143
 
 
1144
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1145
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1146
  | --oldin | --oldi | --old | --ol | --o)
 
1147
    ac_prev=oldincludedir ;;
 
1148
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1149
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1150
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1151
    oldincludedir=$ac_optarg ;;
 
1152
 
 
1153
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1154
    ac_prev=prefix ;;
 
1155
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1156
    prefix=$ac_optarg ;;
 
1157
 
 
1158
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1159
  | --program-pre | --program-pr | --program-p)
 
1160
    ac_prev=program_prefix ;;
 
1161
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1162
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1163
    program_prefix=$ac_optarg ;;
 
1164
 
 
1165
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1166
  | --program-suf | --program-su | --program-s)
 
1167
    ac_prev=program_suffix ;;
 
1168
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1169
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1170
    program_suffix=$ac_optarg ;;
 
1171
 
 
1172
  -program-transform-name | --program-transform-name \
 
1173
  | --program-transform-nam | --program-transform-na \
 
1174
  | --program-transform-n | --program-transform- \
 
1175
  | --program-transform | --program-transfor \
 
1176
  | --program-transfo | --program-transf \
 
1177
  | --program-trans | --program-tran \
 
1178
  | --progr-tra | --program-tr | --program-t)
 
1179
    ac_prev=program_transform_name ;;
 
1180
  -program-transform-name=* | --program-transform-name=* \
 
1181
  | --program-transform-nam=* | --program-transform-na=* \
 
1182
  | --program-transform-n=* | --program-transform-=* \
 
1183
  | --program-transform=* | --program-transfor=* \
 
1184
  | --program-transfo=* | --program-transf=* \
 
1185
  | --program-trans=* | --program-tran=* \
 
1186
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1187
    program_transform_name=$ac_optarg ;;
 
1188
 
 
1189
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1190
    ac_prev=pdfdir ;;
 
1191
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1192
    pdfdir=$ac_optarg ;;
 
1193
 
 
1194
  -psdir | --psdir | --psdi | --psd | --ps)
 
1195
    ac_prev=psdir ;;
 
1196
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1197
    psdir=$ac_optarg ;;
 
1198
 
 
1199
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1200
  | -silent | --silent | --silen | --sile | --sil)
 
1201
    silent=yes ;;
 
1202
 
 
1203
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1204
    ac_prev=sbindir ;;
 
1205
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1206
  | --sbi=* | --sb=*)
 
1207
    sbindir=$ac_optarg ;;
 
1208
 
 
1209
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1210
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1211
  | --sharedst | --shareds | --shared | --share | --shar \
 
1212
  | --sha | --sh)
 
1213
    ac_prev=sharedstatedir ;;
 
1214
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1215
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1216
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1217
  | --sha=* | --sh=*)
 
1218
    sharedstatedir=$ac_optarg ;;
 
1219
 
 
1220
  -site | --site | --sit)
 
1221
    ac_prev=site ;;
 
1222
  -site=* | --site=* | --sit=*)
 
1223
    site=$ac_optarg ;;
 
1224
 
 
1225
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1226
    ac_prev=srcdir ;;
 
1227
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1228
    srcdir=$ac_optarg ;;
 
1229
 
 
1230
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1231
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1232
    ac_prev=sysconfdir ;;
 
1233
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1234
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1235
    sysconfdir=$ac_optarg ;;
 
1236
 
 
1237
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1238
    ac_prev=target_alias ;;
 
1239
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1240
    target_alias=$ac_optarg ;;
 
1241
 
 
1242
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1243
    verbose=yes ;;
 
1244
 
 
1245
  -version | --version | --versio | --versi | --vers | -V)
 
1246
    ac_init_version=: ;;
 
1247
 
 
1248
  -with-* | --with-*)
 
1249
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1250
    # Reject names that are not valid shell variable names.
 
1251
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1252
      as_fn_error $? "invalid package name: $ac_useropt"
 
1253
    ac_useropt_orig=$ac_useropt
 
1254
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1255
    case $ac_user_opts in
 
1256
      *"
 
1257
"with_$ac_useropt"
 
1258
"*) ;;
 
1259
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1260
         ac_unrecognized_sep=', ';;
 
1261
    esac
 
1262
    eval with_$ac_useropt=\$ac_optarg ;;
 
1263
 
 
1264
  -without-* | --without-*)
 
1265
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1266
    # Reject names that are not valid shell variable names.
 
1267
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1268
      as_fn_error $? "invalid package name: $ac_useropt"
 
1269
    ac_useropt_orig=$ac_useropt
 
1270
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1271
    case $ac_user_opts in
 
1272
      *"
 
1273
"with_$ac_useropt"
 
1274
"*) ;;
 
1275
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1276
         ac_unrecognized_sep=', ';;
 
1277
    esac
 
1278
    eval with_$ac_useropt=no ;;
 
1279
 
 
1280
  --x)
 
1281
    # Obsolete; use --with-x.
 
1282
    with_x=yes ;;
 
1283
 
 
1284
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1285
  | --x-incl | --x-inc | --x-in | --x-i)
 
1286
    ac_prev=x_includes ;;
 
1287
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1288
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1289
    x_includes=$ac_optarg ;;
 
1290
 
 
1291
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1292
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1293
    ac_prev=x_libraries ;;
 
1294
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1295
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1296
    x_libraries=$ac_optarg ;;
 
1297
 
 
1298
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1299
Try \`$0 --help' for more information"
 
1300
    ;;
 
1301
 
 
1302
  *=*)
 
1303
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1304
    # Reject names that are not valid shell variable names.
 
1305
    case $ac_envvar in #(
 
1306
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1307
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1308
    esac
 
1309
    eval $ac_envvar=\$ac_optarg
 
1310
    export $ac_envvar ;;
 
1311
 
 
1312
  *)
 
1313
    # FIXME: should be removed in autoconf 3.0.
 
1314
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1315
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1316
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1317
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1318
    ;;
 
1319
 
 
1320
  esac
 
1321
done
 
1322
 
 
1323
if test -n "$ac_prev"; then
 
1324
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1325
  as_fn_error $? "missing argument to $ac_option"
 
1326
fi
 
1327
 
 
1328
if test -n "$ac_unrecognized_opts"; then
 
1329
  case $enable_option_checking in
 
1330
    no) ;;
 
1331
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1332
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1333
  esac
 
1334
fi
 
1335
 
 
1336
# Check all directory arguments for consistency.
 
1337
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1338
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1339
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1340
                libdir localedir mandir
 
1341
do
 
1342
  eval ac_val=\$$ac_var
 
1343
  # Remove trailing slashes.
 
1344
  case $ac_val in
 
1345
    */ )
 
1346
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1347
      eval $ac_var=\$ac_val;;
 
1348
  esac
 
1349
  # Be sure to have absolute directory names.
 
1350
  case $ac_val in
 
1351
    [\\/$]* | ?:[\\/]* )  continue;;
 
1352
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1353
  esac
 
1354
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1355
done
 
1356
 
 
1357
# There might be people who depend on the old broken behavior: `$host'
 
1358
# used to hold the argument of --host etc.
 
1359
# FIXME: To remove some day.
 
1360
build=$build_alias
 
1361
host=$host_alias
 
1362
target=$target_alias
 
1363
 
 
1364
# FIXME: To remove some day.
 
1365
if test "x$host_alias" != x; then
 
1366
  if test "x$build_alias" = x; then
 
1367
    cross_compiling=maybe
 
1368
  elif test "x$build_alias" != "x$host_alias"; then
 
1369
    cross_compiling=yes
 
1370
  fi
 
1371
fi
 
1372
 
 
1373
ac_tool_prefix=
 
1374
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1375
 
 
1376
test "$silent" = yes && exec 6>/dev/null
 
1377
 
 
1378
 
 
1379
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1380
ac_ls_di=`ls -di .` &&
 
1381
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1382
  as_fn_error $? "working directory cannot be determined"
 
1383
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1384
  as_fn_error $? "pwd does not report name of working directory"
 
1385
 
 
1386
 
 
1387
# Find the source files, if location was not specified.
 
1388
if test -z "$srcdir"; then
 
1389
  ac_srcdir_defaulted=yes
 
1390
  # Try the directory containing this script, then the parent directory.
 
1391
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1392
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1393
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1394
         X"$as_myself" : 'X\(//\)$' \| \
 
1395
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1396
$as_echo X"$as_myself" |
 
1397
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1398
            s//\1/
 
1399
            q
 
1400
          }
 
1401
          /^X\(\/\/\)[^/].*/{
 
1402
            s//\1/
 
1403
            q
 
1404
          }
 
1405
          /^X\(\/\/\)$/{
 
1406
            s//\1/
 
1407
            q
 
1408
          }
 
1409
          /^X\(\/\).*/{
 
1410
            s//\1/
 
1411
            q
 
1412
          }
 
1413
          s/.*/./; q'`
 
1414
  srcdir=$ac_confdir
 
1415
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1416
    srcdir=..
 
1417
  fi
 
1418
else
 
1419
  ac_srcdir_defaulted=no
 
1420
fi
 
1421
if test ! -r "$srcdir/$ac_unique_file"; then
 
1422
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1423
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1424
fi
 
1425
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1426
ac_abs_confdir=`(
 
1427
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1428
        pwd)`
 
1429
# When building in place, set srcdir=.
 
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1431
  srcdir=.
 
1432
fi
 
1433
# Remove unnecessary trailing slashes from srcdir.
 
1434
# Double slashes in file names in object file debugging info
 
1435
# mess up M-x gdb in Emacs.
 
1436
case $srcdir in
 
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1438
esac
 
1439
for ac_var in $ac_precious_vars; do
 
1440
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1441
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1442
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1443
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1444
done
 
1445
 
 
1446
#
 
1447
# Report the --help message.
 
1448
#
 
1449
if test "$ac_init_help" = "long"; then
 
1450
  # Omit some internal or obsolete options to make the list less imposing.
 
1451
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1452
  cat <<_ACEOF
 
1453
\`configure' configures unity-china-music-scope 1.0.2 to adapt to many kinds of systems.
 
1454
 
 
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1456
 
 
1457
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1458
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1459
 
 
1460
Defaults for the options are specified in brackets.
 
1461
 
 
1462
Configuration:
 
1463
  -h, --help              display this help and exit
 
1464
      --help=short        display options specific to this package
 
1465
      --help=recursive    display the short help of all the included packages
 
1466
  -V, --version           display version information and exit
 
1467
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1468
      --cache-file=FILE   cache test results in FILE [disabled]
 
1469
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1470
  -n, --no-create         do not create output files
 
1471
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1472
 
 
1473
Installation directories:
 
1474
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1475
                          [$ac_default_prefix]
 
1476
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1477
                          [PREFIX]
 
1478
 
 
1479
By default, \`make install' will install all the files in
 
1480
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1481
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1482
for instance \`--prefix=\$HOME'.
 
1483
 
 
1484
For better control, use the options below.
 
1485
 
 
1486
Fine tuning of the installation directories:
 
1487
  --bindir=DIR            user executables [EPREFIX/bin]
 
1488
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1489
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1490
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1491
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1492
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1493
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1494
  --includedir=DIR        C header files [PREFIX/include]
 
1495
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1496
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1497
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1498
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1499
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1500
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1501
  --docdir=DIR            documentation root
 
1502
                          [DATAROOTDIR/doc/unity-china-music-scope]
 
1503
  --htmldir=DIR           html documentation [DOCDIR]
 
1504
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1505
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1506
  --psdir=DIR             ps documentation [DOCDIR]
 
1507
_ACEOF
 
1508
 
 
1509
  cat <<\_ACEOF
 
1510
 
 
1511
Program names:
 
1512
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1513
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1514
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1515
 
 
1516
System types:
 
1517
  --build=BUILD     configure for building on BUILD [guessed]
 
1518
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1519
_ACEOF
 
1520
fi
 
1521
 
 
1522
if test -n "$ac_init_help"; then
 
1523
  case $ac_init_help in
 
1524
     short | recursive ) echo "Configuration of unity-china-music-scope 1.0.2:";;
 
1525
   esac
 
1526
  cat <<\_ACEOF
 
1527
 
 
1528
Optional Features:
 
1529
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1530
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1531
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1532
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1533
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1534
  --enable-maintainer-mode
 
1535
                          enable make rules and dependencies not useful (and
 
1536
                          sometimes confusing) to the casual installer
 
1537
  --enable-dependency-tracking
 
1538
                          do not reject slow dependency extractors
 
1539
  --disable-dependency-tracking
 
1540
                          speeds up one-time build
 
1541
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1542
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1543
  --enable-fast-install[=PKGS]
 
1544
                          optimize for fast installation [default=yes]
 
1545
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1546
  --disable-nls           do not use Native Language Support
 
1547
  --enable-localinstall   Install all of the files locally instead of in
 
1548
                          system directories (for distcheck)
 
1549
 
 
1550
Optional Packages:
 
1551
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1552
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1553
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1554
                          both]
 
1555
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1556
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1557
                        (or the compiler's sysroot if not specified).
 
1558
 
 
1559
Some influential environment variables:
 
1560
  CC          C compiler command
 
1561
  CFLAGS      C compiler flags
 
1562
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1563
              nonstandard directory <lib dir>
 
1564
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1565
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1566
              you have headers in a nonstandard directory <include dir>
 
1567
  CPP         C preprocessor
 
1568
  PKG_CONFIG  path to pkg-config utility
 
1569
  PKG_CONFIG_PATH
 
1570
              directories to add to pkg-config's search path
 
1571
  PKG_CONFIG_LIBDIR
 
1572
              path overriding pkg-config's built-in search path
 
1573
  SCOPE_DAEMON_CFLAGS
 
1574
              C compiler flags for SCOPE_DAEMON, overriding pkg-config
 
1575
  SCOPE_DAEMON_LIBS
 
1576
              linker flags for SCOPE_DAEMON, overriding pkg-config
 
1577
  PREVIEW_PLAYER_CFLAGS
 
1578
              C compiler flags for PREVIEW_PLAYER, overriding pkg-config
 
1579
  PREVIEW_PLAYER_LIBS
 
1580
              linker flags for PREVIEW_PLAYER, overriding pkg-config
 
1581
 
 
1582
Use these variables to override the choices made by `configure' or to help
 
1583
it to find libraries and programs with nonstandard names/locations.
 
1584
 
 
1585
Report bugs to <https://code.launchpad.net/unity-china-music-scope>.
 
1586
_ACEOF
 
1587
ac_status=$?
 
1588
fi
 
1589
 
 
1590
if test "$ac_init_help" = "recursive"; then
 
1591
  # If there are subdirs, report their specific --help.
 
1592
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1593
    test -d "$ac_dir" ||
 
1594
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1595
      continue
 
1596
    ac_builddir=.
 
1597
 
 
1598
case "$ac_dir" in
 
1599
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1600
*)
 
1601
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1602
  # A ".." for each directory in $ac_dir_suffix.
 
1603
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1604
  case $ac_top_builddir_sub in
 
1605
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1606
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1607
  esac ;;
 
1608
esac
 
1609
ac_abs_top_builddir=$ac_pwd
 
1610
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1611
# for backward compatibility:
 
1612
ac_top_builddir=$ac_top_build_prefix
 
1613
 
 
1614
case $srcdir in
 
1615
  .)  # We are building in place.
 
1616
    ac_srcdir=.
 
1617
    ac_top_srcdir=$ac_top_builddir_sub
 
1618
    ac_abs_top_srcdir=$ac_pwd ;;
 
1619
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1620
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1621
    ac_top_srcdir=$srcdir
 
1622
    ac_abs_top_srcdir=$srcdir ;;
 
1623
  *) # Relative name.
 
1624
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1625
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1626
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1627
esac
 
1628
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1629
 
 
1630
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1631
    # Check for guested configure.
 
1632
    if test -f "$ac_srcdir/configure.gnu"; then
 
1633
      echo &&
 
1634
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1635
    elif test -f "$ac_srcdir/configure"; then
 
1636
      echo &&
 
1637
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1638
    else
 
1639
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1640
    fi || ac_status=$?
 
1641
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1642
  done
 
1643
fi
 
1644
 
 
1645
test -n "$ac_init_help" && exit $ac_status
 
1646
if $ac_init_version; then
 
1647
  cat <<\_ACEOF
 
1648
unity-china-music-scope configure 1.0.2
 
1649
generated by GNU Autoconf 2.69
 
1650
 
 
1651
Copyright (C) 2012 Free Software Foundation, Inc.
 
1652
This configure script is free software; the Free Software Foundation
 
1653
gives unlimited permission to copy, distribute and modify it.
 
1654
 
 
1655
Copyright 2012-2013 Kylin Ltd
 
1656
2011 Canonical Ltd
 
1657
_ACEOF
 
1658
  exit
 
1659
fi
 
1660
 
 
1661
## ------------------------ ##
 
1662
## Autoconf initialization. ##
 
1663
## ------------------------ ##
 
1664
 
 
1665
# ac_fn_c_try_compile LINENO
 
1666
# --------------------------
 
1667
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1668
ac_fn_c_try_compile ()
 
1669
{
 
1670
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1671
  rm -f conftest.$ac_objext
 
1672
  if { { ac_try="$ac_compile"
 
1673
case "(($ac_try" in
 
1674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1675
  *) ac_try_echo=$ac_try;;
 
1676
esac
 
1677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1678
$as_echo "$ac_try_echo"; } >&5
 
1679
  (eval "$ac_compile") 2>conftest.err
 
1680
  ac_status=$?
 
1681
  if test -s conftest.err; then
 
1682
    grep -v '^ *+' conftest.err >conftest.er1
 
1683
    cat conftest.er1 >&5
 
1684
    mv -f conftest.er1 conftest.err
 
1685
  fi
 
1686
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1687
  test $ac_status = 0; } && {
 
1688
         test -z "$ac_c_werror_flag" ||
 
1689
         test ! -s conftest.err
 
1690
       } && test -s conftest.$ac_objext; then :
 
1691
  ac_retval=0
 
1692
else
 
1693
  $as_echo "$as_me: failed program was:" >&5
 
1694
sed 's/^/| /' conftest.$ac_ext >&5
 
1695
 
 
1696
        ac_retval=1
 
1697
fi
 
1698
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1699
  as_fn_set_status $ac_retval
 
1700
 
 
1701
} # ac_fn_c_try_compile
 
1702
 
 
1703
# ac_fn_c_try_cpp LINENO
 
1704
# ----------------------
 
1705
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1706
ac_fn_c_try_cpp ()
 
1707
{
 
1708
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1709
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1710
case "(($ac_try" in
 
1711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1712
  *) ac_try_echo=$ac_try;;
 
1713
esac
 
1714
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1715
$as_echo "$ac_try_echo"; } >&5
 
1716
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1717
  ac_status=$?
 
1718
  if test -s conftest.err; then
 
1719
    grep -v '^ *+' conftest.err >conftest.er1
 
1720
    cat conftest.er1 >&5
 
1721
    mv -f conftest.er1 conftest.err
 
1722
  fi
 
1723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1724
  test $ac_status = 0; } > conftest.i && {
 
1725
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1726
         test ! -s conftest.err
 
1727
       }; then :
 
1728
  ac_retval=0
 
1729
else
 
1730
  $as_echo "$as_me: failed program was:" >&5
 
1731
sed 's/^/| /' conftest.$ac_ext >&5
 
1732
 
 
1733
    ac_retval=1
 
1734
fi
 
1735
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1736
  as_fn_set_status $ac_retval
 
1737
 
 
1738
} # ac_fn_c_try_cpp
 
1739
 
 
1740
# ac_fn_c_try_run LINENO
 
1741
# ----------------------
 
1742
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1743
# that executables *can* be run.
 
1744
ac_fn_c_try_run ()
 
1745
{
 
1746
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1747
  if { { ac_try="$ac_link"
 
1748
case "(($ac_try" in
 
1749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1750
  *) ac_try_echo=$ac_try;;
 
1751
esac
 
1752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1753
$as_echo "$ac_try_echo"; } >&5
 
1754
  (eval "$ac_link") 2>&5
 
1755
  ac_status=$?
 
1756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1757
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1758
  { { case "(($ac_try" in
 
1759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1760
  *) ac_try_echo=$ac_try;;
 
1761
esac
 
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1763
$as_echo "$ac_try_echo"; } >&5
 
1764
  (eval "$ac_try") 2>&5
 
1765
  ac_status=$?
 
1766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1767
  test $ac_status = 0; }; }; then :
 
1768
  ac_retval=0
 
1769
else
 
1770
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1771
       $as_echo "$as_me: failed program was:" >&5
 
1772
sed 's/^/| /' conftest.$ac_ext >&5
 
1773
 
 
1774
       ac_retval=$ac_status
 
1775
fi
 
1776
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1777
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1778
  as_fn_set_status $ac_retval
 
1779
 
 
1780
} # ac_fn_c_try_run
 
1781
 
 
1782
# ac_fn_c_try_link LINENO
 
1783
# -----------------------
 
1784
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1785
ac_fn_c_try_link ()
 
1786
{
 
1787
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1788
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1789
  if { { ac_try="$ac_link"
 
1790
case "(($ac_try" in
 
1791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1792
  *) ac_try_echo=$ac_try;;
 
1793
esac
 
1794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1795
$as_echo "$ac_try_echo"; } >&5
 
1796
  (eval "$ac_link") 2>conftest.err
 
1797
  ac_status=$?
 
1798
  if test -s conftest.err; then
 
1799
    grep -v '^ *+' conftest.err >conftest.er1
 
1800
    cat conftest.er1 >&5
 
1801
    mv -f conftest.er1 conftest.err
 
1802
  fi
 
1803
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1804
  test $ac_status = 0; } && {
 
1805
         test -z "$ac_c_werror_flag" ||
 
1806
         test ! -s conftest.err
 
1807
       } && test -s conftest$ac_exeext && {
 
1808
         test "$cross_compiling" = yes ||
 
1809
         test -x conftest$ac_exeext
 
1810
       }; then :
 
1811
  ac_retval=0
 
1812
else
 
1813
  $as_echo "$as_me: failed program was:" >&5
 
1814
sed 's/^/| /' conftest.$ac_ext >&5
 
1815
 
 
1816
        ac_retval=1
 
1817
fi
 
1818
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1819
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1820
  # interfere with the next link command; also delete a directory that is
 
1821
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1822
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1823
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1824
  as_fn_set_status $ac_retval
 
1825
 
 
1826
} # ac_fn_c_try_link
 
1827
 
 
1828
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1829
# -------------------------------------------------------
 
1830
# Tests whether HEADER exists and can be compiled using the include files in
 
1831
# INCLUDES, setting the cache variable VAR accordingly.
 
1832
ac_fn_c_check_header_compile ()
 
1833
{
 
1834
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1835
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1836
$as_echo_n "checking for $2... " >&6; }
 
1837
if eval \${$3+:} false; then :
 
1838
  $as_echo_n "(cached) " >&6
 
1839
else
 
1840
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1841
/* end confdefs.h.  */
 
1842
$4
 
1843
#include <$2>
 
1844
_ACEOF
 
1845
if ac_fn_c_try_compile "$LINENO"; then :
 
1846
  eval "$3=yes"
 
1847
else
 
1848
  eval "$3=no"
 
1849
fi
 
1850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1851
fi
 
1852
eval ac_res=\$$3
 
1853
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1854
$as_echo "$ac_res" >&6; }
 
1855
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1856
 
 
1857
} # ac_fn_c_check_header_compile
 
1858
 
 
1859
# ac_fn_c_check_func LINENO FUNC VAR
 
1860
# ----------------------------------
 
1861
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1862
ac_fn_c_check_func ()
 
1863
{
 
1864
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1865
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1866
$as_echo_n "checking for $2... " >&6; }
 
1867
if eval \${$3+:} false; then :
 
1868
  $as_echo_n "(cached) " >&6
 
1869
else
 
1870
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1871
/* end confdefs.h.  */
 
1872
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1873
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1874
#define $2 innocuous_$2
 
1875
 
 
1876
/* System header to define __stub macros and hopefully few prototypes,
 
1877
    which can conflict with char $2 (); below.
 
1878
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1879
    <limits.h> exists even on freestanding compilers.  */
 
1880
 
 
1881
#ifdef __STDC__
 
1882
# include <limits.h>
 
1883
#else
 
1884
# include <assert.h>
 
1885
#endif
 
1886
 
 
1887
#undef $2
 
1888
 
 
1889
/* Override any GCC internal prototype to avoid an error.
 
1890
   Use char because int might match the return type of a GCC
 
1891
   builtin and then its argument prototype would still apply.  */
 
1892
#ifdef __cplusplus
 
1893
extern "C"
 
1894
#endif
 
1895
char $2 ();
 
1896
/* The GNU C library defines this for functions which it implements
 
1897
    to always fail with ENOSYS.  Some functions are actually named
 
1898
    something starting with __ and the normal name is an alias.  */
 
1899
#if defined __stub_$2 || defined __stub___$2
 
1900
choke me
 
1901
#endif
 
1902
 
 
1903
int
 
1904
main ()
 
1905
{
 
1906
return $2 ();
 
1907
  ;
 
1908
  return 0;
 
1909
}
 
1910
_ACEOF
 
1911
if ac_fn_c_try_link "$LINENO"; then :
 
1912
  eval "$3=yes"
 
1913
else
 
1914
  eval "$3=no"
 
1915
fi
 
1916
rm -f core conftest.err conftest.$ac_objext \
 
1917
    conftest$ac_exeext conftest.$ac_ext
 
1918
fi
 
1919
eval ac_res=\$$3
 
1920
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1921
$as_echo "$ac_res" >&6; }
 
1922
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1923
 
 
1924
} # ac_fn_c_check_func
 
1925
 
 
1926
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1927
# -------------------------------------------------------
 
1928
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1929
# the include files in INCLUDES and setting the cache variable VAR
 
1930
# accordingly.
 
1931
ac_fn_c_check_header_mongrel ()
 
1932
{
 
1933
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1934
  if eval \${$3+:} false; then :
 
1935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1936
$as_echo_n "checking for $2... " >&6; }
 
1937
if eval \${$3+:} false; then :
 
1938
  $as_echo_n "(cached) " >&6
 
1939
fi
 
1940
eval ac_res=\$$3
 
1941
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1942
$as_echo "$ac_res" >&6; }
 
1943
else
 
1944
  # Is the header compilable?
 
1945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1946
$as_echo_n "checking $2 usability... " >&6; }
 
1947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1948
/* end confdefs.h.  */
 
1949
$4
 
1950
#include <$2>
 
1951
_ACEOF
 
1952
if ac_fn_c_try_compile "$LINENO"; then :
 
1953
  ac_header_compiler=yes
 
1954
else
 
1955
  ac_header_compiler=no
 
1956
fi
 
1957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1959
$as_echo "$ac_header_compiler" >&6; }
 
1960
 
 
1961
# Is the header present?
 
1962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1963
$as_echo_n "checking $2 presence... " >&6; }
 
1964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1965
/* end confdefs.h.  */
 
1966
#include <$2>
 
1967
_ACEOF
 
1968
if ac_fn_c_try_cpp "$LINENO"; then :
 
1969
  ac_header_preproc=yes
 
1970
else
 
1971
  ac_header_preproc=no
 
1972
fi
 
1973
rm -f conftest.err conftest.i conftest.$ac_ext
 
1974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1975
$as_echo "$ac_header_preproc" >&6; }
 
1976
 
 
1977
# So?  What about this header?
 
1978
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1979
  yes:no: )
 
1980
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1981
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1982
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1983
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1984
    ;;
 
1985
  no:yes:* )
 
1986
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1987
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1988
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1989
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1990
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1991
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1992
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1993
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1994
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1995
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1996
( $as_echo "## ----------------------------------------------------------------- ##
 
1997
## Report this to https://code.launchpad.net/unity-china-music-scope ##
 
1998
## ----------------------------------------------------------------- ##"
 
1999
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2000
    ;;
 
2001
esac
 
2002
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2003
$as_echo_n "checking for $2... " >&6; }
 
2004
if eval \${$3+:} false; then :
 
2005
  $as_echo_n "(cached) " >&6
 
2006
else
 
2007
  eval "$3=\$ac_header_compiler"
 
2008
fi
 
2009
eval ac_res=\$$3
 
2010
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2011
$as_echo "$ac_res" >&6; }
 
2012
fi
 
2013
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2014
 
 
2015
} # ac_fn_c_check_header_mongrel
 
2016
cat >config.log <<_ACEOF
 
2017
This file contains any messages produced by compilers while
 
2018
running configure, to aid debugging if configure makes a mistake.
 
2019
 
 
2020
It was created by unity-china-music-scope $as_me 1.0.2, which was
 
2021
generated by GNU Autoconf 2.69.  Invocation command line was
 
2022
 
 
2023
  $ $0 $@
 
2024
 
 
2025
_ACEOF
 
2026
exec 5>>config.log
 
2027
{
 
2028
cat <<_ASUNAME
 
2029
## --------- ##
 
2030
## Platform. ##
 
2031
## --------- ##
 
2032
 
 
2033
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2034
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2035
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2036
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2037
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2038
 
 
2039
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2040
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2041
 
 
2042
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2043
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2044
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2045
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2046
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2047
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2048
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2049
 
 
2050
_ASUNAME
 
2051
 
 
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2053
for as_dir in $PATH
 
2054
do
 
2055
  IFS=$as_save_IFS
 
2056
  test -z "$as_dir" && as_dir=.
 
2057
    $as_echo "PATH: $as_dir"
 
2058
  done
 
2059
IFS=$as_save_IFS
 
2060
 
 
2061
} >&5
 
2062
 
 
2063
cat >&5 <<_ACEOF
 
2064
 
 
2065
 
 
2066
## ----------- ##
 
2067
## Core tests. ##
 
2068
## ----------- ##
 
2069
 
 
2070
_ACEOF
 
2071
 
 
2072
 
 
2073
# Keep a trace of the command line.
 
2074
# Strip out --no-create and --no-recursion so they do not pile up.
 
2075
# Strip out --silent because we don't want to record it for future runs.
 
2076
# Also quote any args containing shell meta-characters.
 
2077
# Make two passes to allow for proper duplicate-argument suppression.
 
2078
ac_configure_args=
 
2079
ac_configure_args0=
 
2080
ac_configure_args1=
 
2081
ac_must_keep_next=false
 
2082
for ac_pass in 1 2
 
2083
do
 
2084
  for ac_arg
 
2085
  do
 
2086
    case $ac_arg in
 
2087
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2088
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2089
    | -silent | --silent | --silen | --sile | --sil)
 
2090
      continue ;;
 
2091
    *\'*)
 
2092
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2093
    esac
 
2094
    case $ac_pass in
 
2095
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2096
    2)
 
2097
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2098
      if test $ac_must_keep_next = true; then
 
2099
        ac_must_keep_next=false # Got value, back to normal.
 
2100
      else
 
2101
        case $ac_arg in
 
2102
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2103
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2104
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2105
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2106
            case "$ac_configure_args0 " in
 
2107
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2108
            esac
 
2109
            ;;
 
2110
          -* ) ac_must_keep_next=true ;;
 
2111
        esac
 
2112
      fi
 
2113
      as_fn_append ac_configure_args " '$ac_arg'"
 
2114
      ;;
 
2115
    esac
 
2116
  done
 
2117
done
 
2118
{ ac_configure_args0=; unset ac_configure_args0;}
 
2119
{ ac_configure_args1=; unset ac_configure_args1;}
 
2120
 
 
2121
# When interrupted or exit'd, cleanup temporary files, and complete
 
2122
# config.log.  We remove comments because anyway the quotes in there
 
2123
# would cause problems or look ugly.
 
2124
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2125
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2126
trap 'exit_status=$?
 
2127
  # Save into config.log some information that might help in debugging.
 
2128
  {
 
2129
    echo
 
2130
 
 
2131
    $as_echo "## ---------------- ##
 
2132
## Cache variables. ##
 
2133
## ---------------- ##"
 
2134
    echo
 
2135
    # The following way of writing the cache mishandles newlines in values,
 
2136
(
 
2137
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2138
    eval ac_val=\$$ac_var
 
2139
    case $ac_val in #(
 
2140
    *${as_nl}*)
 
2141
      case $ac_var in #(
 
2142
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2143
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2144
      esac
 
2145
      case $ac_var in #(
 
2146
      _ | IFS | as_nl) ;; #(
 
2147
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2148
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2149
      esac ;;
 
2150
    esac
 
2151
  done
 
2152
  (set) 2>&1 |
 
2153
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2154
    *${as_nl}ac_space=\ *)
 
2155
      sed -n \
 
2156
        "s/'\''/'\''\\\\'\'''\''/g;
 
2157
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2158
      ;; #(
 
2159
    *)
 
2160
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2161
      ;;
 
2162
    esac |
 
2163
    sort
 
2164
)
 
2165
    echo
 
2166
 
 
2167
    $as_echo "## ----------------- ##
 
2168
## Output variables. ##
 
2169
## ----------------- ##"
 
2170
    echo
 
2171
    for ac_var in $ac_subst_vars
 
2172
    do
 
2173
      eval ac_val=\$$ac_var
 
2174
      case $ac_val in
 
2175
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2176
      esac
 
2177
      $as_echo "$ac_var='\''$ac_val'\''"
 
2178
    done | sort
 
2179
    echo
 
2180
 
 
2181
    if test -n "$ac_subst_files"; then
 
2182
      $as_echo "## ------------------- ##
 
2183
## File substitutions. ##
 
2184
## ------------------- ##"
 
2185
      echo
 
2186
      for ac_var in $ac_subst_files
 
2187
      do
 
2188
        eval ac_val=\$$ac_var
 
2189
        case $ac_val in
 
2190
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2191
        esac
 
2192
        $as_echo "$ac_var='\''$ac_val'\''"
 
2193
      done | sort
 
2194
      echo
 
2195
    fi
 
2196
 
 
2197
    if test -s confdefs.h; then
 
2198
      $as_echo "## ----------- ##
 
2199
## confdefs.h. ##
 
2200
## ----------- ##"
 
2201
      echo
 
2202
      cat confdefs.h
 
2203
      echo
 
2204
    fi
 
2205
    test "$ac_signal" != 0 &&
 
2206
      $as_echo "$as_me: caught signal $ac_signal"
 
2207
    $as_echo "$as_me: exit $exit_status"
 
2208
  } >&5
 
2209
  rm -f core *.core core.conftest.* &&
 
2210
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2211
    exit $exit_status
 
2212
' 0
 
2213
for ac_signal in 1 2 13 15; do
 
2214
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2215
done
 
2216
ac_signal=0
 
2217
 
 
2218
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2219
rm -f -r conftest* confdefs.h
 
2220
 
 
2221
$as_echo "/* confdefs.h */" > confdefs.h
 
2222
 
 
2223
# Predefined preprocessor variables.
 
2224
 
 
2225
cat >>confdefs.h <<_ACEOF
 
2226
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2227
_ACEOF
 
2228
 
 
2229
cat >>confdefs.h <<_ACEOF
 
2230
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2231
_ACEOF
 
2232
 
 
2233
cat >>confdefs.h <<_ACEOF
 
2234
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2235
_ACEOF
 
2236
 
 
2237
cat >>confdefs.h <<_ACEOF
 
2238
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2239
_ACEOF
 
2240
 
 
2241
cat >>confdefs.h <<_ACEOF
 
2242
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2243
_ACEOF
 
2244
 
 
2245
cat >>confdefs.h <<_ACEOF
 
2246
#define PACKAGE_URL "$PACKAGE_URL"
 
2247
_ACEOF
 
2248
 
 
2249
 
 
2250
# Let the site file select an alternate cache file if it wants to.
 
2251
# Prefer an explicitly selected file to automatically selected ones.
 
2252
ac_site_file1=NONE
 
2253
ac_site_file2=NONE
 
2254
if test -n "$CONFIG_SITE"; then
 
2255
  # We do not want a PATH search for config.site.
 
2256
  case $CONFIG_SITE in #((
 
2257
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2258
    */*) ac_site_file1=$CONFIG_SITE;;
 
2259
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2260
  esac
 
2261
elif test "x$prefix" != xNONE; then
 
2262
  ac_site_file1=$prefix/share/config.site
 
2263
  ac_site_file2=$prefix/etc/config.site
 
2264
else
 
2265
  ac_site_file1=$ac_default_prefix/share/config.site
 
2266
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2267
fi
 
2268
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2269
do
 
2270
  test "x$ac_site_file" = xNONE && continue
 
2271
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2272
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2273
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2274
    sed 's/^/| /' "$ac_site_file" >&5
 
2275
    . "$ac_site_file" \
 
2276
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2277
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2278
as_fn_error $? "failed to load site script $ac_site_file
 
2279
See \`config.log' for more details" "$LINENO" 5; }
 
2280
  fi
 
2281
done
 
2282
 
 
2283
if test -r "$cache_file"; then
 
2284
  # Some versions of bash will fail to source /dev/null (special files
 
2285
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2286
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2287
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2288
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2289
    case $cache_file in
 
2290
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2291
      *)                      . "./$cache_file";;
 
2292
    esac
 
2293
  fi
 
2294
else
 
2295
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2296
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2297
  >$cache_file
 
2298
fi
 
2299
 
 
2300
# Check that the precious variables saved in the cache have kept the same
 
2301
# value.
 
2302
ac_cache_corrupted=false
 
2303
for ac_var in $ac_precious_vars; do
 
2304
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2305
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2306
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2307
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2308
  case $ac_old_set,$ac_new_set in
 
2309
    set,)
 
2310
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2311
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2312
      ac_cache_corrupted=: ;;
 
2313
    ,set)
 
2314
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2315
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2316
      ac_cache_corrupted=: ;;
 
2317
    ,);;
 
2318
    *)
 
2319
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2320
        # differences in whitespace do not lead to failure.
 
2321
        ac_old_val_w=`echo x $ac_old_val`
 
2322
        ac_new_val_w=`echo x $ac_new_val`
 
2323
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2324
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2325
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2326
          ac_cache_corrupted=:
 
2327
        else
 
2328
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2329
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2330
          eval $ac_var=\$ac_old_val
 
2331
        fi
 
2332
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2333
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2334
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2335
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2336
      fi;;
 
2337
  esac
 
2338
  # Pass precious variables to config.status.
 
2339
  if test "$ac_new_set" = set; then
 
2340
    case $ac_new_val in
 
2341
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2342
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2343
    esac
 
2344
    case " $ac_configure_args " in
 
2345
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2346
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2347
    esac
 
2348
  fi
 
2349
done
 
2350
if $ac_cache_corrupted; then
 
2351
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2352
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2353
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2354
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2355
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2356
fi
 
2357
## -------------------- ##
 
2358
## Main body of script. ##
 
2359
## -------------------- ##
 
2360
 
 
2361
ac_ext=c
 
2362
ac_cpp='$CPP $CPPFLAGS'
 
2363
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2364
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2365
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2366
 
 
2367
 
 
2368
 
 
2369
 
 
2370
am__api_version='1.13'
 
2371
 
 
2372
ac_aux_dir=
 
2373
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2374
  if test -f "$ac_dir/install-sh"; then
 
2375
    ac_aux_dir=$ac_dir
 
2376
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2377
    break
 
2378
  elif test -f "$ac_dir/install.sh"; then
 
2379
    ac_aux_dir=$ac_dir
 
2380
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2381
    break
 
2382
  elif test -f "$ac_dir/shtool"; then
 
2383
    ac_aux_dir=$ac_dir
 
2384
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2385
    break
 
2386
  fi
 
2387
done
 
2388
if test -z "$ac_aux_dir"; then
 
2389
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2390
fi
 
2391
 
 
2392
# These three variables are undocumented and unsupported,
 
2393
# and are intended to be withdrawn in a future Autoconf release.
 
2394
# They can cause serious problems if a builder's source tree is in a directory
 
2395
# whose full name contains unusual characters.
 
2396
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2397
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2398
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2399
 
 
2400
 
 
2401
# Find a good install program.  We prefer a C program (faster),
 
2402
# so one script is as good as another.  But avoid the broken or
 
2403
# incompatible versions:
 
2404
# SysV /etc/install, /usr/sbin/install
 
2405
# SunOS /usr/etc/install
 
2406
# IRIX /sbin/install
 
2407
# AIX /bin/install
 
2408
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2409
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2410
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2411
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2412
# OS/2's system install, which has a completely different semantic
 
2413
# ./install, which can be erroneously created by make from ./install.sh.
 
2414
# Reject install programs that cannot install multiple files.
 
2415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2416
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2417
if test -z "$INSTALL"; then
 
2418
if ${ac_cv_path_install+:} false; then :
 
2419
  $as_echo_n "(cached) " >&6
 
2420
else
 
2421
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2422
for as_dir in $PATH
 
2423
do
 
2424
  IFS=$as_save_IFS
 
2425
  test -z "$as_dir" && as_dir=.
 
2426
    # Account for people who put trailing slashes in PATH elements.
 
2427
case $as_dir/ in #((
 
2428
  ./ | .// | /[cC]/* | \
 
2429
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2430
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2431
  /usr/ucb/* ) ;;
 
2432
  *)
 
2433
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2434
    # Don't use installbsd from OSF since it installs stuff as root
 
2435
    # by default.
 
2436
    for ac_prog in ginstall scoinst install; do
 
2437
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2438
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2439
          if test $ac_prog = install &&
 
2440
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2441
            # AIX install.  It has an incompatible calling convention.
 
2442
            :
 
2443
          elif test $ac_prog = install &&
 
2444
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2445
            # program-specific install script used by HP pwplus--don't use.
 
2446
            :
 
2447
          else
 
2448
            rm -rf conftest.one conftest.two conftest.dir
 
2449
            echo one > conftest.one
 
2450
            echo two > conftest.two
 
2451
            mkdir conftest.dir
 
2452
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2453
              test -s conftest.one && test -s conftest.two &&
 
2454
              test -s conftest.dir/conftest.one &&
 
2455
              test -s conftest.dir/conftest.two
 
2456
            then
 
2457
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2458
              break 3
 
2459
            fi
 
2460
          fi
 
2461
        fi
 
2462
      done
 
2463
    done
 
2464
    ;;
 
2465
esac
 
2466
 
 
2467
  done
 
2468
IFS=$as_save_IFS
 
2469
 
 
2470
rm -rf conftest.one conftest.two conftest.dir
 
2471
 
 
2472
fi
 
2473
  if test "${ac_cv_path_install+set}" = set; then
 
2474
    INSTALL=$ac_cv_path_install
 
2475
  else
 
2476
    # As a last resort, use the slow shell script.  Don't cache a
 
2477
    # value for INSTALL within a source directory, because that will
 
2478
    # break other packages using the cache if that directory is
 
2479
    # removed, or if the value is a relative name.
 
2480
    INSTALL=$ac_install_sh
 
2481
  fi
 
2482
fi
 
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2484
$as_echo "$INSTALL" >&6; }
 
2485
 
 
2486
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2487
# It thinks the first close brace ends the variable substitution.
 
2488
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2489
 
 
2490
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2491
 
 
2492
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2493
 
 
2494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2495
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2496
# Reject unsafe characters in $srcdir or the absolute working directory
 
2497
# name.  Accept space and tab only in the latter.
 
2498
am_lf='
 
2499
'
 
2500
case `pwd` in
 
2501
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2502
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2503
esac
 
2504
case $srcdir in
 
2505
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2506
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2507
esac
 
2508
 
 
2509
# Do 'set' in a subshell so we don't clobber the current shell's
 
2510
# arguments.  Must try -L first in case configure is actually a
 
2511
# symlink; some systems play weird games with the mod time of symlinks
 
2512
# (eg FreeBSD returns the mod time of the symlink's containing
 
2513
# directory).
 
2514
if (
 
2515
   am_has_slept=no
 
2516
   for am_try in 1 2; do
 
2517
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2518
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2519
     if test "$*" = "X"; then
 
2520
        # -L didn't work.
 
2521
        set X `ls -t "$srcdir/configure" conftest.file`
 
2522
     fi
 
2523
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2524
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2525
 
 
2526
        # If neither matched, then we have a broken ls.  This can happen
 
2527
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2528
        # broken ls alias from the environment.  This has actually
 
2529
        # happened.  Such a system could not be considered "sane".
 
2530
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2531
  alias in your environment" "$LINENO" 5
 
2532
     fi
 
2533
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2534
       break
 
2535
     fi
 
2536
     # Just in case.
 
2537
     sleep 1
 
2538
     am_has_slept=yes
 
2539
   done
 
2540
   test "$2" = conftest.file
 
2541
   )
 
2542
then
 
2543
   # Ok.
 
2544
   :
 
2545
else
 
2546
   as_fn_error $? "newly created file is older than distributed files!
 
2547
Check your system clock" "$LINENO" 5
 
2548
fi
 
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2550
$as_echo "yes" >&6; }
 
2551
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2552
# generated files are strictly newer.
 
2553
am_sleep_pid=
 
2554
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2555
  ( sleep 1 ) &
 
2556
  am_sleep_pid=$!
 
2557
fi
 
2558
 
 
2559
rm -f conftest.file
 
2560
 
 
2561
test "$program_prefix" != NONE &&
 
2562
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2563
# Use a double $ so make ignores it.
 
2564
test "$program_suffix" != NONE &&
 
2565
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2566
# Double any \ or $.
 
2567
# By default was `s,x,x', remove it if useless.
 
2568
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2569
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2570
 
 
2571
# expand $ac_aux_dir to an absolute path
 
2572
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2573
 
 
2574
if test x"${MISSING+set}" != xset; then
 
2575
  case $am_aux_dir in
 
2576
  *\ * | *\     *)
 
2577
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2578
  *)
 
2579
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2580
  esac
 
2581
fi
 
2582
# Use eval to expand $SHELL
 
2583
if eval "$MISSING --is-lightweight"; then
 
2584
  am_missing_run="$MISSING "
 
2585
else
 
2586
  am_missing_run=
 
2587
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2588
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2589
fi
 
2590
 
 
2591
if test x"${install_sh}" != xset; then
 
2592
  case $am_aux_dir in
 
2593
  *\ * | *\     *)
 
2594
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2595
  *)
 
2596
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2597
  esac
 
2598
fi
 
2599
 
 
2600
# Installed binaries are usually stripped using 'strip' when the user
 
2601
# run "make install-strip".  However 'strip' might not be the right
 
2602
# tool to use in cross-compilation environments, therefore Automake
 
2603
# will honor the 'STRIP' environment variable to overrule this program.
 
2604
if test "$cross_compiling" != no; then
 
2605
  if test -n "$ac_tool_prefix"; then
 
2606
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2607
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2609
$as_echo_n "checking for $ac_word... " >&6; }
 
2610
if ${ac_cv_prog_STRIP+:} false; then :
 
2611
  $as_echo_n "(cached) " >&6
 
2612
else
 
2613
  if test -n "$STRIP"; then
 
2614
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2615
else
 
2616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2617
for as_dir in $PATH
 
2618
do
 
2619
  IFS=$as_save_IFS
 
2620
  test -z "$as_dir" && as_dir=.
 
2621
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2622
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2623
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2625
    break 2
 
2626
  fi
 
2627
done
 
2628
  done
 
2629
IFS=$as_save_IFS
 
2630
 
 
2631
fi
 
2632
fi
 
2633
STRIP=$ac_cv_prog_STRIP
 
2634
if test -n "$STRIP"; then
 
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2636
$as_echo "$STRIP" >&6; }
 
2637
else
 
2638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2639
$as_echo "no" >&6; }
 
2640
fi
 
2641
 
 
2642
 
 
2643
fi
 
2644
if test -z "$ac_cv_prog_STRIP"; then
 
2645
  ac_ct_STRIP=$STRIP
 
2646
  # Extract the first word of "strip", so it can be a program name with args.
 
2647
set dummy strip; ac_word=$2
 
2648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2649
$as_echo_n "checking for $ac_word... " >&6; }
 
2650
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2651
  $as_echo_n "(cached) " >&6
 
2652
else
 
2653
  if test -n "$ac_ct_STRIP"; then
 
2654
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2655
else
 
2656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2657
for as_dir in $PATH
 
2658
do
 
2659
  IFS=$as_save_IFS
 
2660
  test -z "$as_dir" && as_dir=.
 
2661
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2662
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2663
    ac_cv_prog_ac_ct_STRIP="strip"
 
2664
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2665
    break 2
 
2666
  fi
 
2667
done
 
2668
  done
 
2669
IFS=$as_save_IFS
 
2670
 
 
2671
fi
 
2672
fi
 
2673
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2674
if test -n "$ac_ct_STRIP"; then
 
2675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2676
$as_echo "$ac_ct_STRIP" >&6; }
 
2677
else
 
2678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2679
$as_echo "no" >&6; }
 
2680
fi
 
2681
 
 
2682
  if test "x$ac_ct_STRIP" = x; then
 
2683
    STRIP=":"
 
2684
  else
 
2685
    case $cross_compiling:$ac_tool_warned in
 
2686
yes:)
 
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2689
ac_tool_warned=yes ;;
 
2690
esac
 
2691
    STRIP=$ac_ct_STRIP
 
2692
  fi
 
2693
else
 
2694
  STRIP="$ac_cv_prog_STRIP"
 
2695
fi
 
2696
 
 
2697
fi
 
2698
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2699
 
 
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2701
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2702
if test -z "$MKDIR_P"; then
 
2703
  if ${ac_cv_path_mkdir+:} false; then :
 
2704
  $as_echo_n "(cached) " >&6
 
2705
else
 
2706
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2707
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2708
do
 
2709
  IFS=$as_save_IFS
 
2710
  test -z "$as_dir" && as_dir=.
 
2711
    for ac_prog in mkdir gmkdir; do
 
2712
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2713
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2714
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2715
             'mkdir (GNU coreutils) '* | \
 
2716
             'mkdir (coreutils) '* | \
 
2717
             'mkdir (fileutils) '4.1*)
 
2718
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2719
               break 3;;
 
2720
           esac
 
2721
         done
 
2722
       done
 
2723
  done
 
2724
IFS=$as_save_IFS
 
2725
 
 
2726
fi
 
2727
 
 
2728
  test -d ./--version && rmdir ./--version
 
2729
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2730
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2731
  else
 
2732
    # As a last resort, use the slow shell script.  Don't cache a
 
2733
    # value for MKDIR_P within a source directory, because that will
 
2734
    # break other packages using the cache if that directory is
 
2735
    # removed, or if the value is a relative name.
 
2736
    MKDIR_P="$ac_install_sh -d"
 
2737
  fi
 
2738
fi
 
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2740
$as_echo "$MKDIR_P" >&6; }
 
2741
 
 
2742
for ac_prog in gawk mawk nawk awk
 
2743
do
 
2744
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2745
set dummy $ac_prog; ac_word=$2
 
2746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2747
$as_echo_n "checking for $ac_word... " >&6; }
 
2748
if ${ac_cv_prog_AWK+:} false; then :
 
2749
  $as_echo_n "(cached) " >&6
 
2750
else
 
2751
  if test -n "$AWK"; then
 
2752
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2753
else
 
2754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2755
for as_dir in $PATH
 
2756
do
 
2757
  IFS=$as_save_IFS
 
2758
  test -z "$as_dir" && as_dir=.
 
2759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2760
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2761
    ac_cv_prog_AWK="$ac_prog"
 
2762
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2763
    break 2
 
2764
  fi
 
2765
done
 
2766
  done
 
2767
IFS=$as_save_IFS
 
2768
 
 
2769
fi
 
2770
fi
 
2771
AWK=$ac_cv_prog_AWK
 
2772
if test -n "$AWK"; then
 
2773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2774
$as_echo "$AWK" >&6; }
 
2775
else
 
2776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2777
$as_echo "no" >&6; }
 
2778
fi
 
2779
 
 
2780
 
 
2781
  test -n "$AWK" && break
 
2782
done
 
2783
 
 
2784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2785
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2786
set x ${MAKE-make}
 
2787
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2788
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2789
  $as_echo_n "(cached) " >&6
 
2790
else
 
2791
  cat >conftest.make <<\_ACEOF
 
2792
SHELL = /bin/sh
 
2793
all:
 
2794
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2795
_ACEOF
 
2796
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2797
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2798
  *@@@%%%=?*=@@@%%%*)
 
2799
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2800
  *)
 
2801
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2802
esac
 
2803
rm -f conftest.make
 
2804
fi
 
2805
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2807
$as_echo "yes" >&6; }
 
2808
  SET_MAKE=
 
2809
else
 
2810
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2811
$as_echo "no" >&6; }
 
2812
  SET_MAKE="MAKE=${MAKE-make}"
 
2813
fi
 
2814
 
 
2815
rm -rf .tst 2>/dev/null
 
2816
mkdir .tst 2>/dev/null
 
2817
if test -d .tst; then
 
2818
  am__leading_dot=.
 
2819
else
 
2820
  am__leading_dot=_
 
2821
fi
 
2822
rmdir .tst 2>/dev/null
 
2823
 
 
2824
# Check whether --enable-silent-rules was given.
 
2825
if test "${enable_silent_rules+set}" = set; then :
 
2826
  enableval=$enable_silent_rules;
 
2827
fi
 
2828
 
 
2829
case $enable_silent_rules in # (((
 
2830
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2831
   no) AM_DEFAULT_VERBOSITY=1;;
 
2832
    *) AM_DEFAULT_VERBOSITY=1;;
 
2833
esac
 
2834
am_make=${MAKE-make}
 
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2836
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2837
if ${am_cv_make_support_nested_variables+:} false; then :
 
2838
  $as_echo_n "(cached) " >&6
 
2839
else
 
2840
  if $as_echo 'TRUE=$(BAR$(V))
 
2841
BAR0=false
 
2842
BAR1=true
 
2843
V=1
 
2844
am__doit:
 
2845
        @$(TRUE)
 
2846
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2847
  am_cv_make_support_nested_variables=yes
 
2848
else
 
2849
  am_cv_make_support_nested_variables=no
 
2850
fi
 
2851
fi
 
2852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2853
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2854
if test $am_cv_make_support_nested_variables = yes; then
 
2855
    AM_V='$(V)'
 
2856
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2857
else
 
2858
  AM_V=$AM_DEFAULT_VERBOSITY
 
2859
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2860
fi
 
2861
AM_BACKSLASH='\'
 
2862
 
 
2863
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2864
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2865
  # is not polluted with repeated "-I."
 
2866
  am__isrc=' -I$(srcdir)'
 
2867
  # test to see if srcdir already configured
 
2868
  if test -f $srcdir/config.status; then
 
2869
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2870
  fi
 
2871
fi
 
2872
 
 
2873
# test whether we have cygpath
 
2874
if test -z "$CYGPATH_W"; then
 
2875
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2876
    CYGPATH_W='cygpath -w'
 
2877
  else
 
2878
    CYGPATH_W=echo
 
2879
  fi
 
2880
fi
 
2881
 
 
2882
 
 
2883
# Define the identity of the package.
 
2884
 
 
2885
 PACKAGE=unity-china-music-scope
 
2886
 VERSION=1.0.2
 
2887
 
 
2888
 
 
2889
cat >>confdefs.h <<_ACEOF
 
2890
#define PACKAGE "$PACKAGE"
 
2891
_ACEOF
 
2892
 
 
2893
 
 
2894
cat >>confdefs.h <<_ACEOF
 
2895
#define VERSION "$VERSION"
 
2896
_ACEOF
 
2897
 
 
2898
# Some tools Automake needs.
 
2899
 
 
2900
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2901
 
 
2902
 
 
2903
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2904
 
 
2905
 
 
2906
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2907
 
 
2908
 
 
2909
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2910
 
 
2911
 
 
2912
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2913
 
 
2914
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2915
# dies out for good.  For more background, see:
 
2916
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2917
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2918
mkdir_p='$(MKDIR_P)'
 
2919
 
 
2920
# We need awk for the "check" target.  The system "awk" is bad on
 
2921
# some platforms.
 
2922
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2923
# in the wild :-(  We should find a proper way to deprecate it ...
 
2924
AMTAR='$${TAR-tar}'
 
2925
 
 
2926
 
 
2927
# We'll loop over all known methods to create a tar archive until one works.
 
2928
_am_tools='gnutar  pax cpio none'
 
2929
 
 
2930
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2931
 
 
2932
 
 
2933
 
 
2934
 
 
2935
 
 
2936
 
 
2937
 
 
2938
#####################################################
 
2939
# Silent build rules
 
2940
#####################################################
 
2941
# Check whether --enable-silent-rules was given.
 
2942
if test "${enable_silent_rules+set}" = set; then :
 
2943
  enableval=$enable_silent_rules;
 
2944
fi
 
2945
 
 
2946
case $enable_silent_rules in # (((
 
2947
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2948
   no) AM_DEFAULT_VERBOSITY=1;;
 
2949
    *) AM_DEFAULT_VERBOSITY=0;;
 
2950
esac
 
2951
am_make=${MAKE-make}
 
2952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2953
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2954
if ${am_cv_make_support_nested_variables+:} false; then :
 
2955
  $as_echo_n "(cached) " >&6
 
2956
else
 
2957
  if $as_echo 'TRUE=$(BAR$(V))
 
2958
BAR0=false
 
2959
BAR1=true
 
2960
V=1
 
2961
am__doit:
 
2962
        @$(TRUE)
 
2963
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2964
  am_cv_make_support_nested_variables=yes
 
2965
else
 
2966
  am_cv_make_support_nested_variables=no
 
2967
fi
 
2968
fi
 
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2970
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2971
if test $am_cv_make_support_nested_variables = yes; then
 
2972
    AM_V='$(V)'
 
2973
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2974
else
 
2975
  AM_V=$AM_DEFAULT_VERBOSITY
 
2976
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2977
fi
 
2978
AM_BACKSLASH='\'
 
2979
 
 
2980
 
 
2981
 
 
2982
 
 
2983
ac_config_headers="$ac_config_headers config.h"
 
2984
 
 
2985
 
 
2986
#####################################################
 
2987
# Init the other things we depend on
 
2988
#####################################################
 
2989
 
 
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2991
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2992
    # Check whether --enable-maintainer-mode was given.
 
2993
if test "${enable_maintainer_mode+set}" = set; then :
 
2994
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2995
else
 
2996
  USE_MAINTAINER_MODE=no
 
2997
fi
 
2998
 
 
2999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
3000
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
3001
   if test $USE_MAINTAINER_MODE = yes; then
 
3002
  MAINTAINER_MODE_TRUE=
 
3003
  MAINTAINER_MODE_FALSE='#'
 
3004
else
 
3005
  MAINTAINER_MODE_TRUE='#'
 
3006
  MAINTAINER_MODE_FALSE=
 
3007
fi
 
3008
 
 
3009
  MAINT=$MAINTAINER_MODE_TRUE
 
3010
 
 
3011
 
 
3012
# Extract the first word of "valac", so it can be a program name with args.
 
3013
set dummy valac; ac_word=$2
 
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3015
$as_echo_n "checking for $ac_word... " >&6; }
 
3016
if ${ac_cv_path_VALAC+:} false; then :
 
3017
  $as_echo_n "(cached) " >&6
 
3018
else
 
3019
  case $VALAC in
 
3020
  [\\/]* | ?:[\\/]*)
 
3021
  ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
 
3022
  ;;
 
3023
  *)
 
3024
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3025
for as_dir in $PATH
 
3026
do
 
3027
  IFS=$as_save_IFS
 
3028
  test -z "$as_dir" && as_dir=.
 
3029
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3030
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3031
    ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
 
3032
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3033
    break 2
 
3034
  fi
 
3035
done
 
3036
  done
 
3037
IFS=$as_save_IFS
 
3038
 
 
3039
  test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
 
3040
  ;;
 
3041
esac
 
3042
fi
 
3043
VALAC=$ac_cv_path_VALAC
 
3044
if test -n "$VALAC"; then
 
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
 
3046
$as_echo "$VALAC" >&6; }
 
3047
else
 
3048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3049
$as_echo "no" >&6; }
 
3050
fi
 
3051
 
 
3052
 
 
3053
   if test "$VALAC" != valac && test -n "0.16.0"; then :
 
3054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.16.0" >&5
 
3055
$as_echo_n "checking whether $VALAC is at least version 0.16.0... " >&6; }
 
3056
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
3057
       as_arg_v1=0.16.0
 
3058
as_arg_v2="$am__vala_version"
 
3059
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
 
3060
case $? in #(
 
3061
  1) :
 
3062
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3063
$as_echo "yes" >&6; } ;; #(
 
3064
  0) :
 
3065
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3066
$as_echo "yes" >&6; } ;; #(
 
3067
  2) :
 
3068
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3069
$as_echo "no" >&6; }
 
3070
          VALAC=valac ;; #(
 
3071
  *) :
 
3072
     ;;
 
3073
esac
 
3074
fi
 
3075
    if test "$VALAC" = valac; then
 
3076
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
 
3077
$as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
 
3078
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
 
3079
$as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
 
3080
    else
 
3081
      :
 
3082
    fi
 
3083
if test -z "$VALAC"; then :
 
3084
  as_fn_error $? "\"No valac compiler found.\"" "$LINENO" 5
 
3085
fi
 
3086
ac_ext=c
 
3087
ac_cpp='$CPP $CPPFLAGS'
 
3088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3091
if test -n "$ac_tool_prefix"; then
 
3092
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3093
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3095
$as_echo_n "checking for $ac_word... " >&6; }
 
3096
if ${ac_cv_prog_CC+:} false; then :
 
3097
  $as_echo_n "(cached) " >&6
 
3098
else
 
3099
  if test -n "$CC"; then
 
3100
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3101
else
 
3102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3103
for as_dir in $PATH
 
3104
do
 
3105
  IFS=$as_save_IFS
 
3106
  test -z "$as_dir" && as_dir=.
 
3107
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3108
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3109
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3110
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3111
    break 2
 
3112
  fi
 
3113
done
 
3114
  done
 
3115
IFS=$as_save_IFS
 
3116
 
 
3117
fi
 
3118
fi
 
3119
CC=$ac_cv_prog_CC
 
3120
if test -n "$CC"; then
 
3121
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3122
$as_echo "$CC" >&6; }
 
3123
else
 
3124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3125
$as_echo "no" >&6; }
 
3126
fi
 
3127
 
 
3128
 
 
3129
fi
 
3130
if test -z "$ac_cv_prog_CC"; then
 
3131
  ac_ct_CC=$CC
 
3132
  # Extract the first word of "gcc", so it can be a program name with args.
 
3133
set dummy gcc; ac_word=$2
 
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3135
$as_echo_n "checking for $ac_word... " >&6; }
 
3136
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3137
  $as_echo_n "(cached) " >&6
 
3138
else
 
3139
  if test -n "$ac_ct_CC"; then
 
3140
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3141
else
 
3142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3143
for as_dir in $PATH
 
3144
do
 
3145
  IFS=$as_save_IFS
 
3146
  test -z "$as_dir" && as_dir=.
 
3147
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3148
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3149
    ac_cv_prog_ac_ct_CC="gcc"
 
3150
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3151
    break 2
 
3152
  fi
 
3153
done
 
3154
  done
 
3155
IFS=$as_save_IFS
 
3156
 
 
3157
fi
 
3158
fi
 
3159
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3160
if test -n "$ac_ct_CC"; then
 
3161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3162
$as_echo "$ac_ct_CC" >&6; }
 
3163
else
 
3164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3165
$as_echo "no" >&6; }
 
3166
fi
 
3167
 
 
3168
  if test "x$ac_ct_CC" = x; then
 
3169
    CC=""
 
3170
  else
 
3171
    case $cross_compiling:$ac_tool_warned in
 
3172
yes:)
 
3173
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3174
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3175
ac_tool_warned=yes ;;
 
3176
esac
 
3177
    CC=$ac_ct_CC
 
3178
  fi
 
3179
else
 
3180
  CC="$ac_cv_prog_CC"
 
3181
fi
 
3182
 
 
3183
if test -z "$CC"; then
 
3184
          if test -n "$ac_tool_prefix"; then
 
3185
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3186
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3188
$as_echo_n "checking for $ac_word... " >&6; }
 
3189
if ${ac_cv_prog_CC+:} false; then :
 
3190
  $as_echo_n "(cached) " >&6
 
3191
else
 
3192
  if test -n "$CC"; then
 
3193
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3194
else
 
3195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3196
for as_dir in $PATH
 
3197
do
 
3198
  IFS=$as_save_IFS
 
3199
  test -z "$as_dir" && as_dir=.
 
3200
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3201
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3202
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3203
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3204
    break 2
 
3205
  fi
 
3206
done
 
3207
  done
 
3208
IFS=$as_save_IFS
 
3209
 
 
3210
fi
 
3211
fi
 
3212
CC=$ac_cv_prog_CC
 
3213
if test -n "$CC"; then
 
3214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3215
$as_echo "$CC" >&6; }
 
3216
else
 
3217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3218
$as_echo "no" >&6; }
 
3219
fi
 
3220
 
 
3221
 
 
3222
  fi
 
3223
fi
 
3224
if test -z "$CC"; then
 
3225
  # Extract the first word of "cc", so it can be a program name with args.
 
3226
set dummy cc; ac_word=$2
 
3227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3228
$as_echo_n "checking for $ac_word... " >&6; }
 
3229
if ${ac_cv_prog_CC+:} false; then :
 
3230
  $as_echo_n "(cached) " >&6
 
3231
else
 
3232
  if test -n "$CC"; then
 
3233
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3234
else
 
3235
  ac_prog_rejected=no
 
3236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3237
for as_dir in $PATH
 
3238
do
 
3239
  IFS=$as_save_IFS
 
3240
  test -z "$as_dir" && as_dir=.
 
3241
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3242
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3243
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3244
       ac_prog_rejected=yes
 
3245
       continue
 
3246
     fi
 
3247
    ac_cv_prog_CC="cc"
 
3248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3249
    break 2
 
3250
  fi
 
3251
done
 
3252
  done
 
3253
IFS=$as_save_IFS
 
3254
 
 
3255
if test $ac_prog_rejected = yes; then
 
3256
  # We found a bogon in the path, so make sure we never use it.
 
3257
  set dummy $ac_cv_prog_CC
 
3258
  shift
 
3259
  if test $# != 0; then
 
3260
    # We chose a different compiler from the bogus one.
 
3261
    # However, it has the same basename, so the bogon will be chosen
 
3262
    # first if we set CC to just the basename; use the full file name.
 
3263
    shift
 
3264
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3265
  fi
 
3266
fi
 
3267
fi
 
3268
fi
 
3269
CC=$ac_cv_prog_CC
 
3270
if test -n "$CC"; then
 
3271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3272
$as_echo "$CC" >&6; }
 
3273
else
 
3274
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3275
$as_echo "no" >&6; }
 
3276
fi
 
3277
 
 
3278
 
 
3279
fi
 
3280
if test -z "$CC"; then
 
3281
  if test -n "$ac_tool_prefix"; then
 
3282
  for ac_prog in cl.exe
 
3283
  do
 
3284
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3285
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3287
$as_echo_n "checking for $ac_word... " >&6; }
 
3288
if ${ac_cv_prog_CC+:} false; then :
 
3289
  $as_echo_n "(cached) " >&6
 
3290
else
 
3291
  if test -n "$CC"; then
 
3292
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3293
else
 
3294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3295
for as_dir in $PATH
 
3296
do
 
3297
  IFS=$as_save_IFS
 
3298
  test -z "$as_dir" && as_dir=.
 
3299
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3300
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3301
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3303
    break 2
 
3304
  fi
 
3305
done
 
3306
  done
 
3307
IFS=$as_save_IFS
 
3308
 
 
3309
fi
 
3310
fi
 
3311
CC=$ac_cv_prog_CC
 
3312
if test -n "$CC"; then
 
3313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3314
$as_echo "$CC" >&6; }
 
3315
else
 
3316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3317
$as_echo "no" >&6; }
 
3318
fi
 
3319
 
 
3320
 
 
3321
    test -n "$CC" && break
 
3322
  done
 
3323
fi
 
3324
if test -z "$CC"; then
 
3325
  ac_ct_CC=$CC
 
3326
  for ac_prog in cl.exe
 
3327
do
 
3328
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3329
set dummy $ac_prog; ac_word=$2
 
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3331
$as_echo_n "checking for $ac_word... " >&6; }
 
3332
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3333
  $as_echo_n "(cached) " >&6
 
3334
else
 
3335
  if test -n "$ac_ct_CC"; then
 
3336
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3337
else
 
3338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3339
for as_dir in $PATH
 
3340
do
 
3341
  IFS=$as_save_IFS
 
3342
  test -z "$as_dir" && as_dir=.
 
3343
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3344
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3345
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3346
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3347
    break 2
 
3348
  fi
 
3349
done
 
3350
  done
 
3351
IFS=$as_save_IFS
 
3352
 
 
3353
fi
 
3354
fi
 
3355
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3356
if test -n "$ac_ct_CC"; then
 
3357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3358
$as_echo "$ac_ct_CC" >&6; }
 
3359
else
 
3360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3361
$as_echo "no" >&6; }
 
3362
fi
 
3363
 
 
3364
 
 
3365
  test -n "$ac_ct_CC" && break
 
3366
done
 
3367
 
 
3368
  if test "x$ac_ct_CC" = x; then
 
3369
    CC=""
 
3370
  else
 
3371
    case $cross_compiling:$ac_tool_warned in
 
3372
yes:)
 
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3374
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3375
ac_tool_warned=yes ;;
 
3376
esac
 
3377
    CC=$ac_ct_CC
 
3378
  fi
 
3379
fi
 
3380
 
 
3381
fi
 
3382
 
 
3383
 
 
3384
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3385
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3386
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3387
See \`config.log' for more details" "$LINENO" 5; }
 
3388
 
 
3389
# Provide some information about the compiler.
 
3390
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3391
set X $ac_compile
 
3392
ac_compiler=$2
 
3393
for ac_option in --version -v -V -qversion; do
 
3394
  { { ac_try="$ac_compiler $ac_option >&5"
 
3395
case "(($ac_try" in
 
3396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3397
  *) ac_try_echo=$ac_try;;
 
3398
esac
 
3399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3400
$as_echo "$ac_try_echo"; } >&5
 
3401
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3402
  ac_status=$?
 
3403
  if test -s conftest.err; then
 
3404
    sed '10a\
 
3405
... rest of stderr output deleted ...
 
3406
         10q' conftest.err >conftest.er1
 
3407
    cat conftest.er1 >&5
 
3408
  fi
 
3409
  rm -f conftest.er1 conftest.err
 
3410
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3411
  test $ac_status = 0; }
 
3412
done
 
3413
 
 
3414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3415
/* end confdefs.h.  */
 
3416
 
 
3417
int
 
3418
main ()
 
3419
{
 
3420
 
 
3421
  ;
 
3422
  return 0;
 
3423
}
 
3424
_ACEOF
 
3425
ac_clean_files_save=$ac_clean_files
 
3426
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3427
# Try to create an executable without -o first, disregard a.out.
 
3428
# It will help us diagnose broken compilers, and finding out an intuition
 
3429
# of exeext.
 
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3431
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3432
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3433
 
 
3434
# The possible output files:
 
3435
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3436
 
 
3437
ac_rmfiles=
 
3438
for ac_file in $ac_files
 
3439
do
 
3440
  case $ac_file in
 
3441
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3442
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3443
  esac
 
3444
done
 
3445
rm -f $ac_rmfiles
 
3446
 
 
3447
if { { ac_try="$ac_link_default"
 
3448
case "(($ac_try" in
 
3449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3450
  *) ac_try_echo=$ac_try;;
 
3451
esac
 
3452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3453
$as_echo "$ac_try_echo"; } >&5
 
3454
  (eval "$ac_link_default") 2>&5
 
3455
  ac_status=$?
 
3456
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3457
  test $ac_status = 0; }; then :
 
3458
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3459
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3460
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3461
# so that the user can short-circuit this test for compilers unknown to
 
3462
# Autoconf.
 
3463
for ac_file in $ac_files ''
 
3464
do
 
3465
  test -f "$ac_file" || continue
 
3466
  case $ac_file in
 
3467
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3468
        ;;
 
3469
    [ab].out )
 
3470
        # We found the default executable, but exeext='' is most
 
3471
        # certainly right.
 
3472
        break;;
 
3473
    *.* )
 
3474
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3475
        then :; else
 
3476
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3477
        fi
 
3478
        # We set ac_cv_exeext here because the later test for it is not
 
3479
        # safe: cross compilers may not add the suffix if given an `-o'
 
3480
        # argument, so we may need to know it at that point already.
 
3481
        # Even if this section looks crufty: it has the advantage of
 
3482
        # actually working.
 
3483
        break;;
 
3484
    * )
 
3485
        break;;
 
3486
  esac
 
3487
done
 
3488
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3489
 
 
3490
else
 
3491
  ac_file=''
 
3492
fi
 
3493
if test -z "$ac_file"; then :
 
3494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3495
$as_echo "no" >&6; }
 
3496
$as_echo "$as_me: failed program was:" >&5
 
3497
sed 's/^/| /' conftest.$ac_ext >&5
 
3498
 
 
3499
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3500
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3501
as_fn_error 77 "C compiler cannot create executables
 
3502
See \`config.log' for more details" "$LINENO" 5; }
 
3503
else
 
3504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3505
$as_echo "yes" >&6; }
 
3506
fi
 
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3508
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3510
$as_echo "$ac_file" >&6; }
 
3511
ac_exeext=$ac_cv_exeext
 
3512
 
 
3513
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3514
ac_clean_files=$ac_clean_files_save
 
3515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3516
$as_echo_n "checking for suffix of executables... " >&6; }
 
3517
if { { ac_try="$ac_link"
 
3518
case "(($ac_try" in
 
3519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3520
  *) ac_try_echo=$ac_try;;
 
3521
esac
 
3522
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3523
$as_echo "$ac_try_echo"; } >&5
 
3524
  (eval "$ac_link") 2>&5
 
3525
  ac_status=$?
 
3526
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3527
  test $ac_status = 0; }; then :
 
3528
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3529
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3530
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3531
# `rm'.
 
3532
for ac_file in conftest.exe conftest conftest.*; do
 
3533
  test -f "$ac_file" || continue
 
3534
  case $ac_file in
 
3535
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3536
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3537
          break;;
 
3538
    * ) break;;
 
3539
  esac
 
3540
done
 
3541
else
 
3542
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3544
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3545
See \`config.log' for more details" "$LINENO" 5; }
 
3546
fi
 
3547
rm -f conftest conftest$ac_cv_exeext
 
3548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3549
$as_echo "$ac_cv_exeext" >&6; }
 
3550
 
 
3551
rm -f conftest.$ac_ext
 
3552
EXEEXT=$ac_cv_exeext
 
3553
ac_exeext=$EXEEXT
 
3554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3555
/* end confdefs.h.  */
 
3556
#include <stdio.h>
 
3557
int
 
3558
main ()
 
3559
{
 
3560
FILE *f = fopen ("conftest.out", "w");
 
3561
 return ferror (f) || fclose (f) != 0;
 
3562
 
 
3563
  ;
 
3564
  return 0;
 
3565
}
 
3566
_ACEOF
 
3567
ac_clean_files="$ac_clean_files conftest.out"
 
3568
# Check that the compiler produces executables we can run.  If not, either
 
3569
# the compiler is broken, or we cross compile.
 
3570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3571
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3572
if test "$cross_compiling" != yes; then
 
3573
  { { ac_try="$ac_link"
 
3574
case "(($ac_try" in
 
3575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3576
  *) ac_try_echo=$ac_try;;
 
3577
esac
 
3578
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3579
$as_echo "$ac_try_echo"; } >&5
 
3580
  (eval "$ac_link") 2>&5
 
3581
  ac_status=$?
 
3582
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3583
  test $ac_status = 0; }
 
3584
  if { ac_try='./conftest$ac_cv_exeext'
 
3585
  { { case "(($ac_try" in
 
3586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3587
  *) ac_try_echo=$ac_try;;
 
3588
esac
 
3589
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3590
$as_echo "$ac_try_echo"; } >&5
 
3591
  (eval "$ac_try") 2>&5
 
3592
  ac_status=$?
 
3593
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3594
  test $ac_status = 0; }; }; then
 
3595
    cross_compiling=no
 
3596
  else
 
3597
    if test "$cross_compiling" = maybe; then
 
3598
        cross_compiling=yes
 
3599
    else
 
3600
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3601
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3602
as_fn_error $? "cannot run C compiled programs.
 
3603
If you meant to cross compile, use \`--host'.
 
3604
See \`config.log' for more details" "$LINENO" 5; }
 
3605
    fi
 
3606
  fi
 
3607
fi
 
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3609
$as_echo "$cross_compiling" >&6; }
 
3610
 
 
3611
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3612
ac_clean_files=$ac_clean_files_save
 
3613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3614
$as_echo_n "checking for suffix of object files... " >&6; }
 
3615
if ${ac_cv_objext+:} false; then :
 
3616
  $as_echo_n "(cached) " >&6
 
3617
else
 
3618
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3619
/* end confdefs.h.  */
 
3620
 
 
3621
int
 
3622
main ()
 
3623
{
 
3624
 
 
3625
  ;
 
3626
  return 0;
 
3627
}
 
3628
_ACEOF
 
3629
rm -f conftest.o conftest.obj
 
3630
if { { ac_try="$ac_compile"
 
3631
case "(($ac_try" in
 
3632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3633
  *) ac_try_echo=$ac_try;;
 
3634
esac
 
3635
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3636
$as_echo "$ac_try_echo"; } >&5
 
3637
  (eval "$ac_compile") 2>&5
 
3638
  ac_status=$?
 
3639
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3640
  test $ac_status = 0; }; then :
 
3641
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3642
  test -f "$ac_file" || continue;
 
3643
  case $ac_file in
 
3644
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3645
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3646
       break;;
 
3647
  esac
 
3648
done
 
3649
else
 
3650
  $as_echo "$as_me: failed program was:" >&5
 
3651
sed 's/^/| /' conftest.$ac_ext >&5
 
3652
 
 
3653
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3654
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3655
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3656
See \`config.log' for more details" "$LINENO" 5; }
 
3657
fi
 
3658
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3659
fi
 
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3661
$as_echo "$ac_cv_objext" >&6; }
 
3662
OBJEXT=$ac_cv_objext
 
3663
ac_objext=$OBJEXT
 
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3665
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3666
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3667
  $as_echo_n "(cached) " >&6
 
3668
else
 
3669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3670
/* end confdefs.h.  */
 
3671
 
 
3672
int
 
3673
main ()
 
3674
{
 
3675
#ifndef __GNUC__
 
3676
       choke me
 
3677
#endif
 
3678
 
 
3679
  ;
 
3680
  return 0;
 
3681
}
 
3682
_ACEOF
 
3683
if ac_fn_c_try_compile "$LINENO"; then :
 
3684
  ac_compiler_gnu=yes
 
3685
else
 
3686
  ac_compiler_gnu=no
 
3687
fi
 
3688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3689
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3690
 
 
3691
fi
 
3692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3693
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3694
if test $ac_compiler_gnu = yes; then
 
3695
  GCC=yes
 
3696
else
 
3697
  GCC=
 
3698
fi
 
3699
ac_test_CFLAGS=${CFLAGS+set}
 
3700
ac_save_CFLAGS=$CFLAGS
 
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3702
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3703
if ${ac_cv_prog_cc_g+:} false; then :
 
3704
  $as_echo_n "(cached) " >&6
 
3705
else
 
3706
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3707
   ac_c_werror_flag=yes
 
3708
   ac_cv_prog_cc_g=no
 
3709
   CFLAGS="-g"
 
3710
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3711
/* end confdefs.h.  */
 
3712
 
 
3713
int
 
3714
main ()
 
3715
{
 
3716
 
 
3717
  ;
 
3718
  return 0;
 
3719
}
 
3720
_ACEOF
 
3721
if ac_fn_c_try_compile "$LINENO"; then :
 
3722
  ac_cv_prog_cc_g=yes
 
3723
else
 
3724
  CFLAGS=""
 
3725
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3726
/* end confdefs.h.  */
 
3727
 
 
3728
int
 
3729
main ()
 
3730
{
 
3731
 
 
3732
  ;
 
3733
  return 0;
 
3734
}
 
3735
_ACEOF
 
3736
if ac_fn_c_try_compile "$LINENO"; then :
 
3737
 
 
3738
else
 
3739
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3740
         CFLAGS="-g"
 
3741
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3742
/* end confdefs.h.  */
 
3743
 
 
3744
int
 
3745
main ()
 
3746
{
 
3747
 
 
3748
  ;
 
3749
  return 0;
 
3750
}
 
3751
_ACEOF
 
3752
if ac_fn_c_try_compile "$LINENO"; then :
 
3753
  ac_cv_prog_cc_g=yes
 
3754
fi
 
3755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3756
fi
 
3757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3758
fi
 
3759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3760
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3761
fi
 
3762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3763
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3764
if test "$ac_test_CFLAGS" = set; then
 
3765
  CFLAGS=$ac_save_CFLAGS
 
3766
elif test $ac_cv_prog_cc_g = yes; then
 
3767
  if test "$GCC" = yes; then
 
3768
    CFLAGS="-g -O2"
 
3769
  else
 
3770
    CFLAGS="-g"
 
3771
  fi
 
3772
else
 
3773
  if test "$GCC" = yes; then
 
3774
    CFLAGS="-O2"
 
3775
  else
 
3776
    CFLAGS=
 
3777
  fi
 
3778
fi
 
3779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3780
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3781
if ${ac_cv_prog_cc_c89+:} false; then :
 
3782
  $as_echo_n "(cached) " >&6
 
3783
else
 
3784
  ac_cv_prog_cc_c89=no
 
3785
ac_save_CC=$CC
 
3786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3787
/* end confdefs.h.  */
 
3788
#include <stdarg.h>
 
3789
#include <stdio.h>
 
3790
struct stat;
 
3791
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3792
struct buf { int x; };
 
3793
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3794
static char *e (p, i)
 
3795
     char **p;
 
3796
     int i;
 
3797
{
 
3798
  return p[i];
 
3799
}
 
3800
static char *f (char * (*g) (char **, int), char **p, ...)
 
3801
{
 
3802
  char *s;
 
3803
  va_list v;
 
3804
  va_start (v,p);
 
3805
  s = g (p, va_arg (v,int));
 
3806
  va_end (v);
 
3807
  return s;
 
3808
}
 
3809
 
 
3810
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3811
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3812
   These don't provoke an error unfortunately, instead are silently treated
 
3813
   as 'x'.  The following induces an error, until -std is added to get
 
3814
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3815
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3816
   that's true only with -std.  */
 
3817
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3818
 
 
3819
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3820
   inside strings and character constants.  */
 
3821
#define FOO(x) 'x'
 
3822
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3823
 
 
3824
int test (int i, double x);
 
3825
struct s1 {int (*f) (int a);};
 
3826
struct s2 {int (*f) (double a);};
 
3827
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3828
int argc;
 
3829
char **argv;
 
3830
int
 
3831
main ()
 
3832
{
 
3833
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3834
  ;
 
3835
  return 0;
 
3836
}
 
3837
_ACEOF
 
3838
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3839
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3840
do
 
3841
  CC="$ac_save_CC $ac_arg"
 
3842
  if ac_fn_c_try_compile "$LINENO"; then :
 
3843
  ac_cv_prog_cc_c89=$ac_arg
 
3844
fi
 
3845
rm -f core conftest.err conftest.$ac_objext
 
3846
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3847
done
 
3848
rm -f conftest.$ac_ext
 
3849
CC=$ac_save_CC
 
3850
 
 
3851
fi
 
3852
# AC_CACHE_VAL
 
3853
case "x$ac_cv_prog_cc_c89" in
 
3854
  x)
 
3855
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3856
$as_echo "none needed" >&6; } ;;
 
3857
  xno)
 
3858
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3859
$as_echo "unsupported" >&6; } ;;
 
3860
  *)
 
3861
    CC="$CC $ac_cv_prog_cc_c89"
 
3862
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3863
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3864
esac
 
3865
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3866
 
 
3867
fi
 
3868
 
 
3869
ac_ext=c
 
3870
ac_cpp='$CPP $CPPFLAGS'
 
3871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3874
DEPDIR="${am__leading_dot}deps"
 
3875
 
 
3876
ac_config_commands="$ac_config_commands depfiles"
 
3877
 
 
3878
 
 
3879
am_make=${MAKE-make}
 
3880
cat > confinc << 'END'
 
3881
am__doit:
 
3882
        @echo this is the am__doit target
 
3883
.PHONY: am__doit
 
3884
END
 
3885
# If we don't find an include directive, just comment out the code.
 
3886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3887
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3888
am__include="#"
 
3889
am__quote=
 
3890
_am_result=none
 
3891
# First try GNU make style include.
 
3892
echo "include confinc" > confmf
 
3893
# Ignore all kinds of additional output from 'make'.
 
3894
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3895
*the\ am__doit\ target*)
 
3896
  am__include=include
 
3897
  am__quote=
 
3898
  _am_result=GNU
 
3899
  ;;
 
3900
esac
 
3901
# Now try BSD make style include.
 
3902
if test "$am__include" = "#"; then
 
3903
   echo '.include "confinc"' > confmf
 
3904
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3905
   *the\ am__doit\ target*)
 
3906
     am__include=.include
 
3907
     am__quote="\""
 
3908
     _am_result=BSD
 
3909
     ;;
 
3910
   esac
 
3911
fi
 
3912
 
 
3913
 
 
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3915
$as_echo "$_am_result" >&6; }
 
3916
rm -f confinc confmf
 
3917
 
 
3918
# Check whether --enable-dependency-tracking was given.
 
3919
if test "${enable_dependency_tracking+set}" = set; then :
 
3920
  enableval=$enable_dependency_tracking;
 
3921
fi
 
3922
 
 
3923
if test "x$enable_dependency_tracking" != xno; then
 
3924
  am_depcomp="$ac_aux_dir/depcomp"
 
3925
  AMDEPBACKSLASH='\'
 
3926
  am__nodep='_no'
 
3927
fi
 
3928
 if test "x$enable_dependency_tracking" != xno; then
 
3929
  AMDEP_TRUE=
 
3930
  AMDEP_FALSE='#'
 
3931
else
 
3932
  AMDEP_TRUE='#'
 
3933
  AMDEP_FALSE=
 
3934
fi
 
3935
 
 
3936
 
 
3937
 
 
3938
depcc="$CC"   am_compiler_list=
 
3939
 
 
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3941
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3942
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3943
  $as_echo_n "(cached) " >&6
 
3944
else
 
3945
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3946
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3947
  # making bogus files that we don't know about and never remove.  For
 
3948
  # instance it was reported that on HP-UX the gcc test will end up
 
3949
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3950
  # in D".
 
3951
  rm -rf conftest.dir
 
3952
  mkdir conftest.dir
 
3953
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3954
  # using a relative directory.
 
3955
  cp "$am_depcomp" conftest.dir
 
3956
  cd conftest.dir
 
3957
  # We will build objects and dependencies in a subdirectory because
 
3958
  # it helps to detect inapplicable dependency modes.  For instance
 
3959
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3960
  # side effect of compilation, but ICC will put the dependencies in
 
3961
  # the current directory while Tru64 will put them in the object
 
3962
  # directory.
 
3963
  mkdir sub
 
3964
 
 
3965
  am_cv_CC_dependencies_compiler_type=none
 
3966
  if test "$am_compiler_list" = ""; then
 
3967
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3968
  fi
 
3969
  am__universal=false
 
3970
  case " $depcc " in #(
 
3971
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3972
     esac
 
3973
 
 
3974
  for depmode in $am_compiler_list; do
 
3975
    # Setup a source with many dependencies, because some compilers
 
3976
    # like to wrap large dependency lists on column 80 (with \), and
 
3977
    # we should not choose a depcomp mode which is confused by this.
 
3978
    #
 
3979
    # We need to recreate these files for each test, as the compiler may
 
3980
    # overwrite some of them when testing with obscure command lines.
 
3981
    # This happens at least with the AIX C compiler.
 
3982
    : > sub/conftest.c
 
3983
    for i in 1 2 3 4 5 6; do
 
3984
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3985
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3986
      # Solaris 10 /bin/sh.
 
3987
      echo '/* dummy */' > sub/conftst$i.h
 
3988
    done
 
3989
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3990
 
 
3991
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3992
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3993
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3994
    # versions had trouble with output in subdirs.
 
3995
    am__obj=sub/conftest.${OBJEXT-o}
 
3996
    am__minus_obj="-o $am__obj"
 
3997
    case $depmode in
 
3998
    gcc)
 
3999
      # This depmode causes a compiler race in universal mode.
 
4000
      test "$am__universal" = false || continue
 
4001
      ;;
 
4002
    nosideeffect)
 
4003
      # After this tag, mechanisms are not by side-effect, so they'll
 
4004
      # only be used when explicitly requested.
 
4005
      if test "x$enable_dependency_tracking" = xyes; then
 
4006
        continue
 
4007
      else
 
4008
        break
 
4009
      fi
 
4010
      ;;
 
4011
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4012
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4013
      # not run yet.  These depmodes are late enough in the game, and
 
4014
      # so weak that their functioning should not be impacted.
 
4015
      am__obj=conftest.${OBJEXT-o}
 
4016
      am__minus_obj=
 
4017
      ;;
 
4018
    none) break ;;
 
4019
    esac
 
4020
    if depmode=$depmode \
 
4021
       source=sub/conftest.c object=$am__obj \
 
4022
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4023
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4024
         >/dev/null 2>conftest.err &&
 
4025
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4026
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4027
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4028
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4029
      # icc doesn't choke on unknown options, it will just issue warnings
 
4030
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4031
      # that says an option was ignored or not supported.
 
4032
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4033
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4034
      # The diagnosis changed in icc 8.0:
 
4035
      #   icc: Command line remark: option '-MP' not supported
 
4036
      if (grep 'ignoring option' conftest.err ||
 
4037
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4038
        am_cv_CC_dependencies_compiler_type=$depmode
 
4039
        break
 
4040
      fi
 
4041
    fi
 
4042
  done
 
4043
 
 
4044
  cd ..
 
4045
  rm -rf conftest.dir
 
4046
else
 
4047
  am_cv_CC_dependencies_compiler_type=none
 
4048
fi
 
4049
 
 
4050
fi
 
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4052
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4053
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4054
 
 
4055
 if
 
4056
  test "x$enable_dependency_tracking" != xno \
 
4057
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4058
  am__fastdepCC_TRUE=
 
4059
  am__fastdepCC_FALSE='#'
 
4060
else
 
4061
  am__fastdepCC_TRUE='#'
 
4062
  am__fastdepCC_FALSE=
 
4063
fi
 
4064
 
 
4065
 
 
4066
if test "x$CC" != xcc; then
 
4067
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
4068
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4069
else
 
4070
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
4071
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4072
fi
 
4073
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4074
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4075
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
4076
  $as_echo_n "(cached) " >&6
 
4077
else
 
4078
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4079
/* end confdefs.h.  */
 
4080
 
 
4081
int
 
4082
main ()
 
4083
{
 
4084
 
 
4085
  ;
 
4086
  return 0;
 
4087
}
 
4088
_ACEOF
 
4089
# Make sure it works both with $CC and with simple cc.
 
4090
# We do the test twice because some compilers refuse to overwrite an
 
4091
# existing .o file with -o, though they will create one.
 
4092
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4093
rm -f conftest2.*
 
4094
if { { case "(($ac_try" in
 
4095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4096
  *) ac_try_echo=$ac_try;;
 
4097
esac
 
4098
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4099
$as_echo "$ac_try_echo"; } >&5
 
4100
  (eval "$ac_try") 2>&5
 
4101
  ac_status=$?
 
4102
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4103
  test $ac_status = 0; } &&
 
4104
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4106
  *) ac_try_echo=$ac_try;;
 
4107
esac
 
4108
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4109
$as_echo "$ac_try_echo"; } >&5
 
4110
  (eval "$ac_try") 2>&5
 
4111
  ac_status=$?
 
4112
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4113
  test $ac_status = 0; };
 
4114
then
 
4115
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4116
  if test "x$CC" != xcc; then
 
4117
    # Test first that cc exists at all.
 
4118
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4119
  { { case "(($ac_try" in
 
4120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4121
  *) ac_try_echo=$ac_try;;
 
4122
esac
 
4123
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4124
$as_echo "$ac_try_echo"; } >&5
 
4125
  (eval "$ac_try") 2>&5
 
4126
  ac_status=$?
 
4127
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4128
  test $ac_status = 0; }; }; then
 
4129
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4130
      rm -f conftest2.*
 
4131
      if { { case "(($ac_try" in
 
4132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4133
  *) ac_try_echo=$ac_try;;
 
4134
esac
 
4135
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4136
$as_echo "$ac_try_echo"; } >&5
 
4137
  (eval "$ac_try") 2>&5
 
4138
  ac_status=$?
 
4139
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4140
  test $ac_status = 0; } &&
 
4141
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4143
  *) ac_try_echo=$ac_try;;
 
4144
esac
 
4145
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4146
$as_echo "$ac_try_echo"; } >&5
 
4147
  (eval "$ac_try") 2>&5
 
4148
  ac_status=$?
 
4149
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4150
  test $ac_status = 0; };
 
4151
      then
 
4152
        # cc works too.
 
4153
        :
 
4154
      else
 
4155
        # cc exists but doesn't like -o.
 
4156
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4157
      fi
 
4158
    fi
 
4159
  fi
 
4160
else
 
4161
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4162
fi
 
4163
rm -f core conftest*
 
4164
 
 
4165
fi
 
4166
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4168
$as_echo "yes" >&6; }
 
4169
else
 
4170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4171
$as_echo "no" >&6; }
 
4172
 
 
4173
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4174
 
 
4175
fi
 
4176
 
 
4177
# FIXME: we rely on the cache variable name because
 
4178
# there is no other way.
 
4179
set dummy $CC
 
4180
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4181
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4182
if test "$am_t" != yes; then
 
4183
   # Losing compiler, so override with the script.
 
4184
   # FIXME: It is wrong to rewrite CC.
 
4185
   # But if we don't then we get into trouble of one sort or another.
 
4186
   # A longer-term fix would be to have automake use am__CC in this case,
 
4187
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4188
   CC="$am_aux_dir/compile $CC"
 
4189
fi
 
4190
 
 
4191
 
 
4192
 
 
4193
ac_ext=c
 
4194
ac_cpp='$CPP $CPPFLAGS'
 
4195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4199
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4200
# On Suns, sometimes $CPP names a directory.
 
4201
if test -n "$CPP" && test -d "$CPP"; then
 
4202
  CPP=
 
4203
fi
 
4204
if test -z "$CPP"; then
 
4205
  if ${ac_cv_prog_CPP+:} false; then :
 
4206
  $as_echo_n "(cached) " >&6
 
4207
else
 
4208
      # Double quotes because CPP needs to be expanded
 
4209
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4210
    do
 
4211
      ac_preproc_ok=false
 
4212
for ac_c_preproc_warn_flag in '' yes
 
4213
do
 
4214
  # Use a header file that comes with gcc, so configuring glibc
 
4215
  # with a fresh cross-compiler works.
 
4216
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4217
  # <limits.h> exists even on freestanding compilers.
 
4218
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4219
  # not just through cpp. "Syntax error" is here to catch this case.
 
4220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4221
/* end confdefs.h.  */
 
4222
#ifdef __STDC__
 
4223
# include <limits.h>
 
4224
#else
 
4225
# include <assert.h>
 
4226
#endif
 
4227
                     Syntax error
 
4228
_ACEOF
 
4229
if ac_fn_c_try_cpp "$LINENO"; then :
 
4230
 
 
4231
else
 
4232
  # Broken: fails on valid input.
 
4233
continue
 
4234
fi
 
4235
rm -f conftest.err conftest.i conftest.$ac_ext
 
4236
 
 
4237
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4238
  # can be detected and how.
 
4239
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4240
/* end confdefs.h.  */
 
4241
#include <ac_nonexistent.h>
 
4242
_ACEOF
 
4243
if ac_fn_c_try_cpp "$LINENO"; then :
 
4244
  # Broken: success on invalid input.
 
4245
continue
 
4246
else
 
4247
  # Passes both tests.
 
4248
ac_preproc_ok=:
 
4249
break
 
4250
fi
 
4251
rm -f conftest.err conftest.i conftest.$ac_ext
 
4252
 
 
4253
done
 
4254
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4255
rm -f conftest.i conftest.err conftest.$ac_ext
 
4256
if $ac_preproc_ok; then :
 
4257
  break
 
4258
fi
 
4259
 
 
4260
    done
 
4261
    ac_cv_prog_CPP=$CPP
 
4262
 
 
4263
fi
 
4264
  CPP=$ac_cv_prog_CPP
 
4265
else
 
4266
  ac_cv_prog_CPP=$CPP
 
4267
fi
 
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4269
$as_echo "$CPP" >&6; }
 
4270
ac_preproc_ok=false
 
4271
for ac_c_preproc_warn_flag in '' yes
 
4272
do
 
4273
  # Use a header file that comes with gcc, so configuring glibc
 
4274
  # with a fresh cross-compiler works.
 
4275
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4276
  # <limits.h> exists even on freestanding compilers.
 
4277
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4278
  # not just through cpp. "Syntax error" is here to catch this case.
 
4279
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4280
/* end confdefs.h.  */
 
4281
#ifdef __STDC__
 
4282
# include <limits.h>
 
4283
#else
 
4284
# include <assert.h>
 
4285
#endif
 
4286
                     Syntax error
 
4287
_ACEOF
 
4288
if ac_fn_c_try_cpp "$LINENO"; then :
 
4289
 
 
4290
else
 
4291
  # Broken: fails on valid input.
 
4292
continue
 
4293
fi
 
4294
rm -f conftest.err conftest.i conftest.$ac_ext
 
4295
 
 
4296
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4297
  # can be detected and how.
 
4298
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4299
/* end confdefs.h.  */
 
4300
#include <ac_nonexistent.h>
 
4301
_ACEOF
 
4302
if ac_fn_c_try_cpp "$LINENO"; then :
 
4303
  # Broken: success on invalid input.
 
4304
continue
 
4305
else
 
4306
  # Passes both tests.
 
4307
ac_preproc_ok=:
 
4308
break
 
4309
fi
 
4310
rm -f conftest.err conftest.i conftest.$ac_ext
 
4311
 
 
4312
done
 
4313
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4314
rm -f conftest.i conftest.err conftest.$ac_ext
 
4315
if $ac_preproc_ok; then :
 
4316
 
 
4317
else
 
4318
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4320
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4321
See \`config.log' for more details" "$LINENO" 5; }
 
4322
fi
 
4323
 
 
4324
ac_ext=c
 
4325
ac_cpp='$CPP $CPPFLAGS'
 
4326
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4327
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4328
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4329
 
 
4330
 
 
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4332
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4333
if ${ac_cv_path_GREP+:} false; then :
 
4334
  $as_echo_n "(cached) " >&6
 
4335
else
 
4336
  if test -z "$GREP"; then
 
4337
  ac_path_GREP_found=false
 
4338
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4339
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4340
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4341
do
 
4342
  IFS=$as_save_IFS
 
4343
  test -z "$as_dir" && as_dir=.
 
4344
    for ac_prog in grep ggrep; do
 
4345
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4346
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4347
      as_fn_executable_p "$ac_path_GREP" || continue
 
4348
# Check for GNU ac_path_GREP and select it if it is found.
 
4349
  # Check for GNU $ac_path_GREP
 
4350
case `"$ac_path_GREP" --version 2>&1` in
 
4351
*GNU*)
 
4352
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4353
*)
 
4354
  ac_count=0
 
4355
  $as_echo_n 0123456789 >"conftest.in"
 
4356
  while :
 
4357
  do
 
4358
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4359
    mv "conftest.tmp" "conftest.in"
 
4360
    cp "conftest.in" "conftest.nl"
 
4361
    $as_echo 'GREP' >> "conftest.nl"
 
4362
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4363
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4364
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4365
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4366
      # Best one so far, save it but keep looking for a better one
 
4367
      ac_cv_path_GREP="$ac_path_GREP"
 
4368
      ac_path_GREP_max=$ac_count
 
4369
    fi
 
4370
    # 10*(2^10) chars as input seems more than enough
 
4371
    test $ac_count -gt 10 && break
 
4372
  done
 
4373
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4374
esac
 
4375
 
 
4376
      $ac_path_GREP_found && break 3
 
4377
    done
 
4378
  done
 
4379
  done
 
4380
IFS=$as_save_IFS
 
4381
  if test -z "$ac_cv_path_GREP"; then
 
4382
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4383
  fi
 
4384
else
 
4385
  ac_cv_path_GREP=$GREP
 
4386
fi
 
4387
 
 
4388
fi
 
4389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4390
$as_echo "$ac_cv_path_GREP" >&6; }
 
4391
 GREP="$ac_cv_path_GREP"
 
4392
 
 
4393
 
 
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4395
$as_echo_n "checking for egrep... " >&6; }
 
4396
if ${ac_cv_path_EGREP+:} false; then :
 
4397
  $as_echo_n "(cached) " >&6
 
4398
else
 
4399
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4400
   then ac_cv_path_EGREP="$GREP -E"
 
4401
   else
 
4402
     if test -z "$EGREP"; then
 
4403
  ac_path_EGREP_found=false
 
4404
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4405
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4406
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4407
do
 
4408
  IFS=$as_save_IFS
 
4409
  test -z "$as_dir" && as_dir=.
 
4410
    for ac_prog in egrep; do
 
4411
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4412
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4413
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4414
# Check for GNU ac_path_EGREP and select it if it is found.
 
4415
  # Check for GNU $ac_path_EGREP
 
4416
case `"$ac_path_EGREP" --version 2>&1` in
 
4417
*GNU*)
 
4418
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4419
*)
 
4420
  ac_count=0
 
4421
  $as_echo_n 0123456789 >"conftest.in"
 
4422
  while :
 
4423
  do
 
4424
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4425
    mv "conftest.tmp" "conftest.in"
 
4426
    cp "conftest.in" "conftest.nl"
 
4427
    $as_echo 'EGREP' >> "conftest.nl"
 
4428
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4429
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4430
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4431
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4432
      # Best one so far, save it but keep looking for a better one
 
4433
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4434
      ac_path_EGREP_max=$ac_count
 
4435
    fi
 
4436
    # 10*(2^10) chars as input seems more than enough
 
4437
    test $ac_count -gt 10 && break
 
4438
  done
 
4439
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4440
esac
 
4441
 
 
4442
      $ac_path_EGREP_found && break 3
 
4443
    done
 
4444
  done
 
4445
  done
 
4446
IFS=$as_save_IFS
 
4447
  if test -z "$ac_cv_path_EGREP"; then
 
4448
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4449
  fi
 
4450
else
 
4451
  ac_cv_path_EGREP=$EGREP
 
4452
fi
 
4453
 
 
4454
   fi
 
4455
fi
 
4456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4457
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4458
 EGREP="$ac_cv_path_EGREP"
 
4459
 
 
4460
 
 
4461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4462
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4463
if ${ac_cv_header_stdc+:} false; then :
 
4464
  $as_echo_n "(cached) " >&6
 
4465
else
 
4466
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4467
/* end confdefs.h.  */
 
4468
#include <stdlib.h>
 
4469
#include <stdarg.h>
 
4470
#include <string.h>
 
4471
#include <float.h>
 
4472
 
 
4473
int
 
4474
main ()
 
4475
{
 
4476
 
 
4477
  ;
 
4478
  return 0;
 
4479
}
 
4480
_ACEOF
 
4481
if ac_fn_c_try_compile "$LINENO"; then :
 
4482
  ac_cv_header_stdc=yes
 
4483
else
 
4484
  ac_cv_header_stdc=no
 
4485
fi
 
4486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4487
 
 
4488
if test $ac_cv_header_stdc = yes; then
 
4489
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4490
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4491
/* end confdefs.h.  */
 
4492
#include <string.h>
 
4493
 
 
4494
_ACEOF
 
4495
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4496
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4497
 
 
4498
else
 
4499
  ac_cv_header_stdc=no
 
4500
fi
 
4501
rm -f conftest*
 
4502
 
 
4503
fi
 
4504
 
 
4505
if test $ac_cv_header_stdc = yes; then
 
4506
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4507
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4508
/* end confdefs.h.  */
 
4509
#include <stdlib.h>
 
4510
 
 
4511
_ACEOF
 
4512
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4513
  $EGREP "free" >/dev/null 2>&1; then :
 
4514
 
 
4515
else
 
4516
  ac_cv_header_stdc=no
 
4517
fi
 
4518
rm -f conftest*
 
4519
 
 
4520
fi
 
4521
 
 
4522
if test $ac_cv_header_stdc = yes; then
 
4523
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4524
  if test "$cross_compiling" = yes; then :
 
4525
  :
 
4526
else
 
4527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4528
/* end confdefs.h.  */
 
4529
#include <ctype.h>
 
4530
#include <stdlib.h>
 
4531
#if ((' ' & 0x0FF) == 0x020)
 
4532
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4533
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4534
#else
 
4535
# define ISLOWER(c) \
 
4536
                   (('a' <= (c) && (c) <= 'i') \
 
4537
                     || ('j' <= (c) && (c) <= 'r') \
 
4538
                     || ('s' <= (c) && (c) <= 'z'))
 
4539
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4540
#endif
 
4541
 
 
4542
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4543
int
 
4544
main ()
 
4545
{
 
4546
  int i;
 
4547
  for (i = 0; i < 256; i++)
 
4548
    if (XOR (islower (i), ISLOWER (i))
 
4549
        || toupper (i) != TOUPPER (i))
 
4550
      return 2;
 
4551
  return 0;
 
4552
}
 
4553
_ACEOF
 
4554
if ac_fn_c_try_run "$LINENO"; then :
 
4555
 
 
4556
else
 
4557
  ac_cv_header_stdc=no
 
4558
fi
 
4559
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4560
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4561
fi
 
4562
 
 
4563
fi
 
4564
fi
 
4565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4566
$as_echo "$ac_cv_header_stdc" >&6; }
 
4567
if test $ac_cv_header_stdc = yes; then
 
4568
 
 
4569
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4570
 
 
4571
fi
 
4572
 
 
4573
 
 
4574
case `pwd` in
 
4575
  *\ * | *\     *)
 
4576
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4577
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4578
esac
 
4579
 
 
4580
 
 
4581
 
 
4582
macro_version='2.4.2'
 
4583
macro_revision='1.3337'
 
4584
 
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
 
4593
 
 
4594
 
 
4595
 
 
4596
 
 
4597
ltmain="$ac_aux_dir/ltmain.sh"
 
4598
 
 
4599
# Make sure we can run config.sub.
 
4600
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4601
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4602
 
 
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4604
$as_echo_n "checking build system type... " >&6; }
 
4605
if ${ac_cv_build+:} false; then :
 
4606
  $as_echo_n "(cached) " >&6
 
4607
else
 
4608
  ac_build_alias=$build_alias
 
4609
test "x$ac_build_alias" = x &&
 
4610
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4611
test "x$ac_build_alias" = x &&
 
4612
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4613
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4614
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4615
 
 
4616
fi
 
4617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4618
$as_echo "$ac_cv_build" >&6; }
 
4619
case $ac_cv_build in
 
4620
*-*-*) ;;
 
4621
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4622
esac
 
4623
build=$ac_cv_build
 
4624
ac_save_IFS=$IFS; IFS='-'
 
4625
set x $ac_cv_build
 
4626
shift
 
4627
build_cpu=$1
 
4628
build_vendor=$2
 
4629
shift; shift
 
4630
# Remember, the first character of IFS is used to create $*,
 
4631
# except with old shells:
 
4632
build_os=$*
 
4633
IFS=$ac_save_IFS
 
4634
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4635
 
 
4636
 
 
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4638
$as_echo_n "checking host system type... " >&6; }
 
4639
if ${ac_cv_host+:} false; then :
 
4640
  $as_echo_n "(cached) " >&6
 
4641
else
 
4642
  if test "x$host_alias" = x; then
 
4643
  ac_cv_host=$ac_cv_build
 
4644
else
 
4645
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4646
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4647
fi
 
4648
 
 
4649
fi
 
4650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4651
$as_echo "$ac_cv_host" >&6; }
 
4652
case $ac_cv_host in
 
4653
*-*-*) ;;
 
4654
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4655
esac
 
4656
host=$ac_cv_host
 
4657
ac_save_IFS=$IFS; IFS='-'
 
4658
set x $ac_cv_host
 
4659
shift
 
4660
host_cpu=$1
 
4661
host_vendor=$2
 
4662
shift; shift
 
4663
# Remember, the first character of IFS is used to create $*,
 
4664
# except with old shells:
 
4665
host_os=$*
 
4666
IFS=$ac_save_IFS
 
4667
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4668
 
 
4669
 
 
4670
# Backslashify metacharacters that are still active within
 
4671
# double-quoted strings.
 
4672
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4673
 
 
4674
# Same as above, but do not quote variable references.
 
4675
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4676
 
 
4677
# Sed substitution to delay expansion of an escaped shell variable in a
 
4678
# double_quote_subst'ed string.
 
4679
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4680
 
 
4681
# Sed substitution to delay expansion of an escaped single quote.
 
4682
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4683
 
 
4684
# Sed substitution to avoid accidental globbing in evaled expressions
 
4685
no_glob_subst='s/\*/\\\*/g'
 
4686
 
 
4687
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4688
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4689
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4690
 
 
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4692
$as_echo_n "checking how to print strings... " >&6; }
 
4693
# Test print first, because it will be a builtin if present.
 
4694
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4695
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4696
  ECHO='print -r --'
 
4697
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4698
  ECHO='printf %s\n'
 
4699
else
 
4700
  # Use this function as a fallback that always works.
 
4701
  func_fallback_echo ()
 
4702
  {
 
4703
    eval 'cat <<_LTECHO_EOF
 
4704
$1
 
4705
_LTECHO_EOF'
 
4706
  }
 
4707
  ECHO='func_fallback_echo'
 
4708
fi
 
4709
 
 
4710
# func_echo_all arg...
 
4711
# Invoke $ECHO with all args, space-separated.
 
4712
func_echo_all ()
 
4713
{
 
4714
    $ECHO ""
 
4715
}
 
4716
 
 
4717
case "$ECHO" in
 
4718
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4719
$as_echo "printf" >&6; } ;;
 
4720
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4721
$as_echo "print -r" >&6; } ;;
 
4722
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4723
$as_echo "cat" >&6; } ;;
 
4724
esac
 
4725
 
 
4726
 
 
4727
 
 
4728
 
 
4729
 
 
4730
 
 
4731
 
 
4732
 
 
4733
 
 
4734
 
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4740
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4741
if ${ac_cv_path_SED+:} false; then :
 
4742
  $as_echo_n "(cached) " >&6
 
4743
else
 
4744
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4745
     for ac_i in 1 2 3 4 5 6 7; do
 
4746
       ac_script="$ac_script$as_nl$ac_script"
 
4747
     done
 
4748
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4749
     { ac_script=; unset ac_script;}
 
4750
     if test -z "$SED"; then
 
4751
  ac_path_SED_found=false
 
4752
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4753
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4754
for as_dir in $PATH
 
4755
do
 
4756
  IFS=$as_save_IFS
 
4757
  test -z "$as_dir" && as_dir=.
 
4758
    for ac_prog in sed gsed; do
 
4759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4760
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4761
      as_fn_executable_p "$ac_path_SED" || continue
 
4762
# Check for GNU ac_path_SED and select it if it is found.
 
4763
  # Check for GNU $ac_path_SED
 
4764
case `"$ac_path_SED" --version 2>&1` in
 
4765
*GNU*)
 
4766
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4767
*)
 
4768
  ac_count=0
 
4769
  $as_echo_n 0123456789 >"conftest.in"
 
4770
  while :
 
4771
  do
 
4772
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4773
    mv "conftest.tmp" "conftest.in"
 
4774
    cp "conftest.in" "conftest.nl"
 
4775
    $as_echo '' >> "conftest.nl"
 
4776
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4777
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4778
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4779
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4780
      # Best one so far, save it but keep looking for a better one
 
4781
      ac_cv_path_SED="$ac_path_SED"
 
4782
      ac_path_SED_max=$ac_count
 
4783
    fi
 
4784
    # 10*(2^10) chars as input seems more than enough
 
4785
    test $ac_count -gt 10 && break
 
4786
  done
 
4787
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4788
esac
 
4789
 
 
4790
      $ac_path_SED_found && break 3
 
4791
    done
 
4792
  done
 
4793
  done
 
4794
IFS=$as_save_IFS
 
4795
  if test -z "$ac_cv_path_SED"; then
 
4796
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4797
  fi
 
4798
else
 
4799
  ac_cv_path_SED=$SED
 
4800
fi
 
4801
 
 
4802
fi
 
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4804
$as_echo "$ac_cv_path_SED" >&6; }
 
4805
 SED="$ac_cv_path_SED"
 
4806
  rm -f conftest.sed
 
4807
 
 
4808
test -z "$SED" && SED=sed
 
4809
Xsed="$SED -e 1s/^X//"
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
 
 
4815
 
 
4816
 
 
4817
 
 
4818
 
 
4819
 
 
4820
 
 
4821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4822
$as_echo_n "checking for fgrep... " >&6; }
 
4823
if ${ac_cv_path_FGREP+:} false; then :
 
4824
  $as_echo_n "(cached) " >&6
 
4825
else
 
4826
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4827
   then ac_cv_path_FGREP="$GREP -F"
 
4828
   else
 
4829
     if test -z "$FGREP"; then
 
4830
  ac_path_FGREP_found=false
 
4831
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4832
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4833
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4834
do
 
4835
  IFS=$as_save_IFS
 
4836
  test -z "$as_dir" && as_dir=.
 
4837
    for ac_prog in fgrep; do
 
4838
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4839
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4840
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4841
# Check for GNU ac_path_FGREP and select it if it is found.
 
4842
  # Check for GNU $ac_path_FGREP
 
4843
case `"$ac_path_FGREP" --version 2>&1` in
 
4844
*GNU*)
 
4845
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4846
*)
 
4847
  ac_count=0
 
4848
  $as_echo_n 0123456789 >"conftest.in"
 
4849
  while :
 
4850
  do
 
4851
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4852
    mv "conftest.tmp" "conftest.in"
 
4853
    cp "conftest.in" "conftest.nl"
 
4854
    $as_echo 'FGREP' >> "conftest.nl"
 
4855
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4856
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4857
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4858
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4859
      # Best one so far, save it but keep looking for a better one
 
4860
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4861
      ac_path_FGREP_max=$ac_count
 
4862
    fi
 
4863
    # 10*(2^10) chars as input seems more than enough
 
4864
    test $ac_count -gt 10 && break
 
4865
  done
 
4866
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4867
esac
 
4868
 
 
4869
      $ac_path_FGREP_found && break 3
 
4870
    done
 
4871
  done
 
4872
  done
 
4873
IFS=$as_save_IFS
 
4874
  if test -z "$ac_cv_path_FGREP"; then
 
4875
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4876
  fi
 
4877
else
 
4878
  ac_cv_path_FGREP=$FGREP
 
4879
fi
 
4880
 
 
4881
   fi
 
4882
fi
 
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4884
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4885
 FGREP="$ac_cv_path_FGREP"
 
4886
 
 
4887
 
 
4888
test -z "$GREP" && GREP=grep
 
4889
 
 
4890
 
 
4891
 
 
4892
 
 
4893
 
 
4894
 
 
4895
 
 
4896
 
 
4897
 
 
4898
 
 
4899
 
 
4900
 
 
4901
 
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
# Check whether --with-gnu-ld was given.
 
4909
if test "${with_gnu_ld+set}" = set; then :
 
4910
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4911
else
 
4912
  with_gnu_ld=no
 
4913
fi
 
4914
 
 
4915
ac_prog=ld
 
4916
if test "$GCC" = yes; then
 
4917
  # Check if gcc -print-prog-name=ld gives a path.
 
4918
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4919
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4920
  case $host in
 
4921
  *-*-mingw*)
 
4922
    # gcc leaves a trailing carriage return which upsets mingw
 
4923
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4924
  *)
 
4925
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4926
  esac
 
4927
  case $ac_prog in
 
4928
    # Accept absolute paths.
 
4929
    [\\/]* | ?:[\\/]*)
 
4930
      re_direlt='/[^/][^/]*/\.\./'
 
4931
      # Canonicalize the pathname of ld
 
4932
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4933
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4934
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4935
      done
 
4936
      test -z "$LD" && LD="$ac_prog"
 
4937
      ;;
 
4938
  "")
 
4939
    # If it fails, then pretend we aren't using GCC.
 
4940
    ac_prog=ld
 
4941
    ;;
 
4942
  *)
 
4943
    # If it is relative, then search for the first ld in PATH.
 
4944
    with_gnu_ld=unknown
 
4945
    ;;
 
4946
  esac
 
4947
elif test "$with_gnu_ld" = yes; then
 
4948
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4949
$as_echo_n "checking for GNU ld... " >&6; }
 
4950
else
 
4951
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4952
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4953
fi
 
4954
if ${lt_cv_path_LD+:} false; then :
 
4955
  $as_echo_n "(cached) " >&6
 
4956
else
 
4957
  if test -z "$LD"; then
 
4958
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4959
  for ac_dir in $PATH; do
 
4960
    IFS="$lt_save_ifs"
 
4961
    test -z "$ac_dir" && ac_dir=.
 
4962
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4963
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4964
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4965
      # but apparently some variants of GNU ld only accept -v.
 
4966
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4967
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4968
      *GNU* | *'with BFD'*)
 
4969
        test "$with_gnu_ld" != no && break
 
4970
        ;;
 
4971
      *)
 
4972
        test "$with_gnu_ld" != yes && break
 
4973
        ;;
 
4974
      esac
 
4975
    fi
 
4976
  done
 
4977
  IFS="$lt_save_ifs"
 
4978
else
 
4979
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4980
fi
 
4981
fi
 
4982
 
 
4983
LD="$lt_cv_path_LD"
 
4984
if test -n "$LD"; then
 
4985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4986
$as_echo "$LD" >&6; }
 
4987
else
 
4988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4989
$as_echo "no" >&6; }
 
4990
fi
 
4991
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4993
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4994
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4995
  $as_echo_n "(cached) " >&6
 
4996
else
 
4997
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4998
case `$LD -v 2>&1 </dev/null` in
 
4999
*GNU* | *'with BFD'*)
 
5000
  lt_cv_prog_gnu_ld=yes
 
5001
  ;;
 
5002
*)
 
5003
  lt_cv_prog_gnu_ld=no
 
5004
  ;;
 
5005
esac
 
5006
fi
 
5007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5008
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5009
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
 
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5020
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5021
if ${lt_cv_path_NM+:} false; then :
 
5022
  $as_echo_n "(cached) " >&6
 
5023
else
 
5024
  if test -n "$NM"; then
 
5025
  # Let the user override the test.
 
5026
  lt_cv_path_NM="$NM"
 
5027
else
 
5028
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5029
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5030
    lt_nm_to_check="$lt_nm_to_check nm"
 
5031
  fi
 
5032
  for lt_tmp_nm in $lt_nm_to_check; do
 
5033
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5034
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5035
      IFS="$lt_save_ifs"
 
5036
      test -z "$ac_dir" && ac_dir=.
 
5037
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5038
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5039
        # Check to see if the nm accepts a BSD-compat flag.
 
5040
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5041
        #   nm: unknown option "B" ignored
 
5042
        # Tru64's nm complains that /dev/null is an invalid object file
 
5043
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5044
        */dev/null* | *'Invalid file or object type'*)
 
5045
          lt_cv_path_NM="$tmp_nm -B"
 
5046
          break
 
5047
          ;;
 
5048
        *)
 
5049
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5050
          */dev/null*)
 
5051
            lt_cv_path_NM="$tmp_nm -p"
 
5052
            break
 
5053
            ;;
 
5054
          *)
 
5055
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5056
            continue # so that we can try to find one that supports BSD flags
 
5057
            ;;
 
5058
          esac
 
5059
          ;;
 
5060
        esac
 
5061
      fi
 
5062
    done
 
5063
    IFS="$lt_save_ifs"
 
5064
  done
 
5065
  : ${lt_cv_path_NM=no}
 
5066
fi
 
5067
fi
 
5068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5069
$as_echo "$lt_cv_path_NM" >&6; }
 
5070
if test "$lt_cv_path_NM" != "no"; then
 
5071
  NM="$lt_cv_path_NM"
 
5072
else
 
5073
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5074
  if test -n "$DUMPBIN"; then :
 
5075
    # Let the user override the test.
 
5076
  else
 
5077
    if test -n "$ac_tool_prefix"; then
 
5078
  for ac_prog in dumpbin "link -dump"
 
5079
  do
 
5080
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5081
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5083
$as_echo_n "checking for $ac_word... " >&6; }
 
5084
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5085
  $as_echo_n "(cached) " >&6
 
5086
else
 
5087
  if test -n "$DUMPBIN"; then
 
5088
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5089
else
 
5090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5091
for as_dir in $PATH
 
5092
do
 
5093
  IFS=$as_save_IFS
 
5094
  test -z "$as_dir" && as_dir=.
 
5095
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5096
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5097
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5098
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5099
    break 2
 
5100
  fi
 
5101
done
 
5102
  done
 
5103
IFS=$as_save_IFS
 
5104
 
 
5105
fi
 
5106
fi
 
5107
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5108
if test -n "$DUMPBIN"; then
 
5109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5110
$as_echo "$DUMPBIN" >&6; }
 
5111
else
 
5112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5113
$as_echo "no" >&6; }
 
5114
fi
 
5115
 
 
5116
 
 
5117
    test -n "$DUMPBIN" && break
 
5118
  done
 
5119
fi
 
5120
if test -z "$DUMPBIN"; then
 
5121
  ac_ct_DUMPBIN=$DUMPBIN
 
5122
  for ac_prog in dumpbin "link -dump"
 
5123
do
 
5124
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5125
set dummy $ac_prog; ac_word=$2
 
5126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5127
$as_echo_n "checking for $ac_word... " >&6; }
 
5128
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5129
  $as_echo_n "(cached) " >&6
 
5130
else
 
5131
  if test -n "$ac_ct_DUMPBIN"; then
 
5132
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5133
else
 
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5135
for as_dir in $PATH
 
5136
do
 
5137
  IFS=$as_save_IFS
 
5138
  test -z "$as_dir" && as_dir=.
 
5139
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5140
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5141
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5142
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5143
    break 2
 
5144
  fi
 
5145
done
 
5146
  done
 
5147
IFS=$as_save_IFS
 
5148
 
 
5149
fi
 
5150
fi
 
5151
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5152
if test -n "$ac_ct_DUMPBIN"; then
 
5153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5154
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5155
else
 
5156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5157
$as_echo "no" >&6; }
 
5158
fi
 
5159
 
 
5160
 
 
5161
  test -n "$ac_ct_DUMPBIN" && break
 
5162
done
 
5163
 
 
5164
  if test "x$ac_ct_DUMPBIN" = x; then
 
5165
    DUMPBIN=":"
 
5166
  else
 
5167
    case $cross_compiling:$ac_tool_warned in
 
5168
yes:)
 
5169
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5170
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5171
ac_tool_warned=yes ;;
 
5172
esac
 
5173
    DUMPBIN=$ac_ct_DUMPBIN
 
5174
  fi
 
5175
fi
 
5176
 
 
5177
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5178
    *COFF*)
 
5179
      DUMPBIN="$DUMPBIN -symbols"
 
5180
      ;;
 
5181
    *)
 
5182
      DUMPBIN=:
 
5183
      ;;
 
5184
    esac
 
5185
  fi
 
5186
 
 
5187
  if test "$DUMPBIN" != ":"; then
 
5188
    NM="$DUMPBIN"
 
5189
  fi
 
5190
fi
 
5191
test -z "$NM" && NM=nm
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
 
5197
 
 
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5199
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5200
if ${lt_cv_nm_interface+:} false; then :
 
5201
  $as_echo_n "(cached) " >&6
 
5202
else
 
5203
  lt_cv_nm_interface="BSD nm"
 
5204
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5205
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5206
  (eval "$ac_compile" 2>conftest.err)
 
5207
  cat conftest.err >&5
 
5208
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5209
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5210
  cat conftest.err >&5
 
5211
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5212
  cat conftest.out >&5
 
5213
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5214
    lt_cv_nm_interface="MS dumpbin"
 
5215
  fi
 
5216
  rm -f conftest*
 
5217
fi
 
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5219
$as_echo "$lt_cv_nm_interface" >&6; }
 
5220
 
 
5221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5222
$as_echo_n "checking whether ln -s works... " >&6; }
 
5223
LN_S=$as_ln_s
 
5224
if test "$LN_S" = "ln -s"; then
 
5225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5226
$as_echo "yes" >&6; }
 
5227
else
 
5228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5229
$as_echo "no, using $LN_S" >&6; }
 
5230
fi
 
5231
 
 
5232
# find the maximum length of command line arguments
 
5233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5234
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5235
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5236
  $as_echo_n "(cached) " >&6
 
5237
else
 
5238
    i=0
 
5239
  teststring="ABCD"
 
5240
 
 
5241
  case $build_os in
 
5242
  msdosdjgpp*)
 
5243
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5244
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5245
    # during glob expansion).  Even if it were fixed, the result of this
 
5246
    # check would be larger than it should be.
 
5247
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5248
    ;;
 
5249
 
 
5250
  gnu*)
 
5251
    # Under GNU Hurd, this test is not required because there is
 
5252
    # no limit to the length of command line arguments.
 
5253
    # Libtool will interpret -1 as no limit whatsoever
 
5254
    lt_cv_sys_max_cmd_len=-1;
 
5255
    ;;
 
5256
 
 
5257
  cygwin* | mingw* | cegcc*)
 
5258
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5259
    # about 5 minutes as the teststring grows exponentially.
 
5260
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5261
    # you end up with a "frozen" computer, even though with patience
 
5262
    # the test eventually succeeds (with a max line length of 256k).
 
5263
    # Instead, let's just punt: use the minimum linelength reported by
 
5264
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5265
    lt_cv_sys_max_cmd_len=8192;
 
5266
    ;;
 
5267
 
 
5268
  mint*)
 
5269
    # On MiNT this can take a long time and run out of memory.
 
5270
    lt_cv_sys_max_cmd_len=8192;
 
5271
    ;;
 
5272
 
 
5273
  amigaos*)
 
5274
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5275
    # So we just punt and use a minimum line length of 8192.
 
5276
    lt_cv_sys_max_cmd_len=8192;
 
5277
    ;;
 
5278
 
 
5279
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5280
    # This has been around since 386BSD, at least.  Likely further.
 
5281
    if test -x /sbin/sysctl; then
 
5282
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5283
    elif test -x /usr/sbin/sysctl; then
 
5284
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5285
    else
 
5286
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5287
    fi
 
5288
    # And add a safety zone
 
5289
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5290
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5291
    ;;
 
5292
 
 
5293
  interix*)
 
5294
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5295
    lt_cv_sys_max_cmd_len=196608
 
5296
    ;;
 
5297
 
 
5298
  os2*)
 
5299
    # The test takes a long time on OS/2.
 
5300
    lt_cv_sys_max_cmd_len=8192
 
5301
    ;;
 
5302
 
 
5303
  osf*)
 
5304
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5305
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5306
    # nice to cause kernel panics so lets avoid the loop below.
 
5307
    # First set a reasonable default.
 
5308
    lt_cv_sys_max_cmd_len=16384
 
5309
    #
 
5310
    if test -x /sbin/sysconfig; then
 
5311
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5312
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5313
      esac
 
5314
    fi
 
5315
    ;;
 
5316
  sco3.2v5*)
 
5317
    lt_cv_sys_max_cmd_len=102400
 
5318
    ;;
 
5319
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5320
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5321
    if test -n "$kargmax"; then
 
5322
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5323
    else
 
5324
      lt_cv_sys_max_cmd_len=32768
 
5325
    fi
 
5326
    ;;
 
5327
  *)
 
5328
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5329
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5330
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5331
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5332
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5333
    else
 
5334
      # Make teststring a little bigger before we do anything with it.
 
5335
      # a 1K string should be a reasonable start.
 
5336
      for i in 1 2 3 4 5 6 7 8 ; do
 
5337
        teststring=$teststring$teststring
 
5338
      done
 
5339
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5340
      # If test is not a shell built-in, we'll probably end up computing a
 
5341
      # maximum length that is only half of the actual maximum length, but
 
5342
      # we can't tell.
 
5343
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5344
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5345
              test $i != 17 # 1/2 MB should be enough
 
5346
      do
 
5347
        i=`expr $i + 1`
 
5348
        teststring=$teststring$teststring
 
5349
      done
 
5350
      # Only check the string length outside the loop.
 
5351
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5352
      teststring=
 
5353
      # Add a significant safety factor because C++ compilers can tack on
 
5354
      # massive amounts of additional arguments before passing them to the
 
5355
      # linker.  It appears as though 1/2 is a usable value.
 
5356
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5357
    fi
 
5358
    ;;
 
5359
  esac
 
5360
 
 
5361
fi
 
5362
 
 
5363
if test -n $lt_cv_sys_max_cmd_len ; then
 
5364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5365
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5366
else
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5368
$as_echo "none" >&6; }
 
5369
fi
 
5370
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5371
 
 
5372
 
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
: ${CP="cp -f"}
 
5378
: ${MV="mv -f"}
 
5379
: ${RM="rm -f"}
 
5380
 
 
5381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5382
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5383
# Try some XSI features
 
5384
xsi_shell=no
 
5385
( _lt_dummy="a/b/c"
 
5386
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5387
      = c,a/b,b/c, \
 
5388
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5389
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5390
  && xsi_shell=yes
 
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5392
$as_echo "$xsi_shell" >&6; }
 
5393
 
 
5394
 
 
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5396
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5397
lt_shell_append=no
 
5398
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5399
    >/dev/null 2>&1 \
 
5400
  && lt_shell_append=yes
 
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5402
$as_echo "$lt_shell_append" >&6; }
 
5403
 
 
5404
 
 
5405
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5406
  lt_unset=unset
 
5407
else
 
5408
  lt_unset=false
 
5409
fi
 
5410
 
 
5411
 
 
5412
 
 
5413
 
 
5414
 
 
5415
# test EBCDIC or ASCII
 
5416
case `echo X|tr X '\101'` in
 
5417
 A) # ASCII based system
 
5418
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5419
  lt_SP2NL='tr \040 \012'
 
5420
  lt_NL2SP='tr \015\012 \040\040'
 
5421
  ;;
 
5422
 *) # EBCDIC based system
 
5423
  lt_SP2NL='tr \100 \n'
 
5424
  lt_NL2SP='tr \r\n \100\100'
 
5425
  ;;
 
5426
esac
 
5427
 
 
5428
 
 
5429
 
 
5430
 
 
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5437
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5438
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5439
  $as_echo_n "(cached) " >&6
 
5440
else
 
5441
  case $host in
 
5442
  *-*-mingw* )
 
5443
    case $build in
 
5444
      *-*-mingw* ) # actually msys
 
5445
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5446
        ;;
 
5447
      *-*-cygwin* )
 
5448
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5449
        ;;
 
5450
      * ) # otherwise, assume *nix
 
5451
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5452
        ;;
 
5453
    esac
 
5454
    ;;
 
5455
  *-*-cygwin* )
 
5456
    case $build in
 
5457
      *-*-mingw* ) # actually msys
 
5458
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5459
        ;;
 
5460
      *-*-cygwin* )
 
5461
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5462
        ;;
 
5463
      * ) # otherwise, assume *nix
 
5464
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5465
        ;;
 
5466
    esac
 
5467
    ;;
 
5468
  * ) # unhandled hosts (and "normal" native builds)
 
5469
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5470
    ;;
 
5471
esac
 
5472
 
 
5473
fi
 
5474
 
 
5475
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5477
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5484
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5485
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5486
  $as_echo_n "(cached) " >&6
 
5487
else
 
5488
  #assume ordinary cross tools, or native build.
 
5489
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5490
case $host in
 
5491
  *-*-mingw* )
 
5492
    case $build in
 
5493
      *-*-mingw* ) # actually msys
 
5494
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5495
        ;;
 
5496
    esac
 
5497
    ;;
 
5498
esac
 
5499
 
 
5500
fi
 
5501
 
 
5502
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5504
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5505
 
 
5506
 
 
5507
 
 
5508
 
 
5509
 
 
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5511
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5512
if ${lt_cv_ld_reload_flag+:} false; then :
 
5513
  $as_echo_n "(cached) " >&6
 
5514
else
 
5515
  lt_cv_ld_reload_flag='-r'
 
5516
fi
 
5517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5518
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5519
reload_flag=$lt_cv_ld_reload_flag
 
5520
case $reload_flag in
 
5521
"" | " "*) ;;
 
5522
*) reload_flag=" $reload_flag" ;;
 
5523
esac
 
5524
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5525
case $host_os in
 
5526
  cygwin* | mingw* | pw32* | cegcc*)
 
5527
    if test "$GCC" != yes; then
 
5528
      reload_cmds=false
 
5529
    fi
 
5530
    ;;
 
5531
  darwin*)
 
5532
    if test "$GCC" = yes; then
 
5533
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5534
    else
 
5535
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5536
    fi
 
5537
    ;;
 
5538
esac
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
 
 
5546
 
 
5547
 
 
5548
if test -n "$ac_tool_prefix"; then
 
5549
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5550
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5552
$as_echo_n "checking for $ac_word... " >&6; }
 
5553
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5554
  $as_echo_n "(cached) " >&6
 
5555
else
 
5556
  if test -n "$OBJDUMP"; then
 
5557
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5558
else
 
5559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5560
for as_dir in $PATH
 
5561
do
 
5562
  IFS=$as_save_IFS
 
5563
  test -z "$as_dir" && as_dir=.
 
5564
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5565
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5566
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5567
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5568
    break 2
 
5569
  fi
 
5570
done
 
5571
  done
 
5572
IFS=$as_save_IFS
 
5573
 
 
5574
fi
 
5575
fi
 
5576
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5577
if test -n "$OBJDUMP"; then
 
5578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5579
$as_echo "$OBJDUMP" >&6; }
 
5580
else
 
5581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5582
$as_echo "no" >&6; }
 
5583
fi
 
5584
 
 
5585
 
 
5586
fi
 
5587
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5588
  ac_ct_OBJDUMP=$OBJDUMP
 
5589
  # Extract the first word of "objdump", so it can be a program name with args.
 
5590
set dummy objdump; ac_word=$2
 
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5592
$as_echo_n "checking for $ac_word... " >&6; }
 
5593
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5594
  $as_echo_n "(cached) " >&6
 
5595
else
 
5596
  if test -n "$ac_ct_OBJDUMP"; then
 
5597
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5598
else
 
5599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5600
for as_dir in $PATH
 
5601
do
 
5602
  IFS=$as_save_IFS
 
5603
  test -z "$as_dir" && as_dir=.
 
5604
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5605
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5606
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5607
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5608
    break 2
 
5609
  fi
 
5610
done
 
5611
  done
 
5612
IFS=$as_save_IFS
 
5613
 
 
5614
fi
 
5615
fi
 
5616
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5617
if test -n "$ac_ct_OBJDUMP"; then
 
5618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5619
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5620
else
 
5621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5622
$as_echo "no" >&6; }
 
5623
fi
 
5624
 
 
5625
  if test "x$ac_ct_OBJDUMP" = x; then
 
5626
    OBJDUMP="false"
 
5627
  else
 
5628
    case $cross_compiling:$ac_tool_warned in
 
5629
yes:)
 
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5632
ac_tool_warned=yes ;;
 
5633
esac
 
5634
    OBJDUMP=$ac_ct_OBJDUMP
 
5635
  fi
 
5636
else
 
5637
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5638
fi
 
5639
 
 
5640
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5641
 
 
5642
 
 
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5651
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5652
if ${lt_cv_deplibs_check_method+:} false; then :
 
5653
  $as_echo_n "(cached) " >&6
 
5654
else
 
5655
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5656
lt_cv_file_magic_test_file=
 
5657
lt_cv_deplibs_check_method='unknown'
 
5658
# Need to set the preceding variable on all platforms that support
 
5659
# interlibrary dependencies.
 
5660
# 'none' -- dependencies not supported.
 
5661
# `unknown' -- same as none, but documents that we really don't know.
 
5662
# 'pass_all' -- all dependencies passed with no checks.
 
5663
# 'test_compile' -- check by making test program.
 
5664
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5665
# which responds to the $file_magic_cmd with a given extended regex.
 
5666
# If you have `file' or equivalent on your system and you're not sure
 
5667
# whether `pass_all' will *always* work, you probably want this one.
 
5668
 
 
5669
case $host_os in
 
5670
aix[4-9]*)
 
5671
  lt_cv_deplibs_check_method=pass_all
 
5672
  ;;
 
5673
 
 
5674
beos*)
 
5675
  lt_cv_deplibs_check_method=pass_all
 
5676
  ;;
 
5677
 
 
5678
bsdi[45]*)
 
5679
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5680
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5681
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5682
  ;;
 
5683
 
 
5684
cygwin*)
 
5685
  # func_win32_libid is a shell function defined in ltmain.sh
 
5686
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5687
  lt_cv_file_magic_cmd='func_win32_libid'
 
5688
  ;;
 
5689
 
 
5690
mingw* | pw32*)
 
5691
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5692
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5693
  # unless we find 'file', for example because we are cross-compiling.
 
5694
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5695
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5696
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5697
    lt_cv_file_magic_cmd='func_win32_libid'
 
5698
  else
 
5699
    # Keep this pattern in sync with the one in func_win32_libid.
 
5700
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5701
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5702
  fi
 
5703
  ;;
 
5704
 
 
5705
cegcc*)
 
5706
  # use the weaker test based on 'objdump'. See mingw*.
 
5707
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5708
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5709
  ;;
 
5710
 
 
5711
darwin* | rhapsody*)
 
5712
  lt_cv_deplibs_check_method=pass_all
 
5713
  ;;
 
5714
 
 
5715
freebsd* | dragonfly*)
 
5716
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5717
    case $host_cpu in
 
5718
    i*86 )
 
5719
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5720
      # Let's accept both of them until this is cleared up.
 
5721
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5722
      lt_cv_file_magic_cmd=/usr/bin/file
 
5723
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5724
      ;;
 
5725
    esac
 
5726
  else
 
5727
    lt_cv_deplibs_check_method=pass_all
 
5728
  fi
 
5729
  ;;
 
5730
 
 
5731
haiku*)
 
5732
  lt_cv_deplibs_check_method=pass_all
 
5733
  ;;
 
5734
 
 
5735
hpux10.20* | hpux11*)
 
5736
  lt_cv_file_magic_cmd=/usr/bin/file
 
5737
  case $host_cpu in
 
5738
  ia64*)
 
5739
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5740
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5741
    ;;
 
5742
  hppa*64*)
 
5743
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5744
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5745
    ;;
 
5746
  *)
 
5747
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5748
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5749
    ;;
 
5750
  esac
 
5751
  ;;
 
5752
 
 
5753
interix[3-9]*)
 
5754
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5755
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5756
  ;;
 
5757
 
 
5758
irix5* | irix6* | nonstopux*)
 
5759
  case $LD in
 
5760
  *-32|*"-32 ") libmagic=32-bit;;
 
5761
  *-n32|*"-n32 ") libmagic=N32;;
 
5762
  *-64|*"-64 ") libmagic=64-bit;;
 
5763
  *) libmagic=never-match;;
 
5764
  esac
 
5765
  lt_cv_deplibs_check_method=pass_all
 
5766
  ;;
 
5767
 
 
5768
# This must be glibc/ELF.
 
5769
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5770
  lt_cv_deplibs_check_method=pass_all
 
5771
  ;;
 
5772
 
 
5773
netbsd* | netbsdelf*-gnu)
 
5774
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5775
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5776
  else
 
5777
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5778
  fi
 
5779
  ;;
 
5780
 
 
5781
newos6*)
 
5782
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5783
  lt_cv_file_magic_cmd=/usr/bin/file
 
5784
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5785
  ;;
 
5786
 
 
5787
*nto* | *qnx*)
 
5788
  lt_cv_deplibs_check_method=pass_all
 
5789
  ;;
 
5790
 
 
5791
openbsd*)
 
5792
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5793
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5794
  else
 
5795
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5796
  fi
 
5797
  ;;
 
5798
 
 
5799
osf3* | osf4* | osf5*)
 
5800
  lt_cv_deplibs_check_method=pass_all
 
5801
  ;;
 
5802
 
 
5803
rdos*)
 
5804
  lt_cv_deplibs_check_method=pass_all
 
5805
  ;;
 
5806
 
 
5807
solaris*)
 
5808
  lt_cv_deplibs_check_method=pass_all
 
5809
  ;;
 
5810
 
 
5811
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5812
  lt_cv_deplibs_check_method=pass_all
 
5813
  ;;
 
5814
 
 
5815
sysv4 | sysv4.3*)
 
5816
  case $host_vendor in
 
5817
  motorola)
 
5818
    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]'
 
5819
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5820
    ;;
 
5821
  ncr)
 
5822
    lt_cv_deplibs_check_method=pass_all
 
5823
    ;;
 
5824
  sequent)
 
5825
    lt_cv_file_magic_cmd='/bin/file'
 
5826
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5827
    ;;
 
5828
  sni)
 
5829
    lt_cv_file_magic_cmd='/bin/file'
 
5830
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5831
    lt_cv_file_magic_test_file=/lib/libc.so
 
5832
    ;;
 
5833
  siemens)
 
5834
    lt_cv_deplibs_check_method=pass_all
 
5835
    ;;
 
5836
  pc)
 
5837
    lt_cv_deplibs_check_method=pass_all
 
5838
    ;;
 
5839
  esac
 
5840
  ;;
 
5841
 
 
5842
tpf*)
 
5843
  lt_cv_deplibs_check_method=pass_all
 
5844
  ;;
 
5845
esac
 
5846
 
 
5847
fi
 
5848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5849
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5850
 
 
5851
file_magic_glob=
 
5852
want_nocaseglob=no
 
5853
if test "$build" = "$host"; then
 
5854
  case $host_os in
 
5855
  mingw* | pw32*)
 
5856
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5857
      want_nocaseglob=yes
 
5858
    else
 
5859
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5860
    fi
 
5861
    ;;
 
5862
  esac
 
5863
fi
 
5864
 
 
5865
file_magic_cmd=$lt_cv_file_magic_cmd
 
5866
deplibs_check_method=$lt_cv_deplibs_check_method
 
5867
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
if test -n "$ac_tool_prefix"; then
 
5891
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5892
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5894
$as_echo_n "checking for $ac_word... " >&6; }
 
5895
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5896
  $as_echo_n "(cached) " >&6
 
5897
else
 
5898
  if test -n "$DLLTOOL"; then
 
5899
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5900
else
 
5901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5902
for as_dir in $PATH
 
5903
do
 
5904
  IFS=$as_save_IFS
 
5905
  test -z "$as_dir" && as_dir=.
 
5906
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5907
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5908
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5909
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5910
    break 2
 
5911
  fi
 
5912
done
 
5913
  done
 
5914
IFS=$as_save_IFS
 
5915
 
 
5916
fi
 
5917
fi
 
5918
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5919
if test -n "$DLLTOOL"; then
 
5920
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5921
$as_echo "$DLLTOOL" >&6; }
 
5922
else
 
5923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5924
$as_echo "no" >&6; }
 
5925
fi
 
5926
 
 
5927
 
 
5928
fi
 
5929
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5930
  ac_ct_DLLTOOL=$DLLTOOL
 
5931
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5932
set dummy dlltool; ac_word=$2
 
5933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5934
$as_echo_n "checking for $ac_word... " >&6; }
 
5935
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5936
  $as_echo_n "(cached) " >&6
 
5937
else
 
5938
  if test -n "$ac_ct_DLLTOOL"; then
 
5939
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5940
else
 
5941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5942
for as_dir in $PATH
 
5943
do
 
5944
  IFS=$as_save_IFS
 
5945
  test -z "$as_dir" && as_dir=.
 
5946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5947
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5948
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5950
    break 2
 
5951
  fi
 
5952
done
 
5953
  done
 
5954
IFS=$as_save_IFS
 
5955
 
 
5956
fi
 
5957
fi
 
5958
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5959
if test -n "$ac_ct_DLLTOOL"; then
 
5960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5961
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5962
else
 
5963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5964
$as_echo "no" >&6; }
 
5965
fi
 
5966
 
 
5967
  if test "x$ac_ct_DLLTOOL" = x; then
 
5968
    DLLTOOL="false"
 
5969
  else
 
5970
    case $cross_compiling:$ac_tool_warned in
 
5971
yes:)
 
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5973
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5974
ac_tool_warned=yes ;;
 
5975
esac
 
5976
    DLLTOOL=$ac_ct_DLLTOOL
 
5977
  fi
 
5978
else
 
5979
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5980
fi
 
5981
 
 
5982
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5994
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5995
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5996
  $as_echo_n "(cached) " >&6
 
5997
else
 
5998
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5999
 
 
6000
case $host_os in
 
6001
cygwin* | mingw* | pw32* | cegcc*)
 
6002
  # two different shell functions defined in ltmain.sh
 
6003
  # decide which to use based on capabilities of $DLLTOOL
 
6004
  case `$DLLTOOL --help 2>&1` in
 
6005
  *--identify-strict*)
 
6006
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6007
    ;;
 
6008
  *)
 
6009
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6010
    ;;
 
6011
  esac
 
6012
  ;;
 
6013
*)
 
6014
  # fallback: assume linklib IS sharedlib
 
6015
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6016
  ;;
 
6017
esac
 
6018
 
 
6019
fi
 
6020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6021
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6022
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6023
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6024
 
 
6025
 
 
6026
 
 
6027
 
 
6028
 
 
6029
 
 
6030
 
 
6031
if test -n "$ac_tool_prefix"; then
 
6032
  for ac_prog in ar
 
6033
  do
 
6034
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6035
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6037
$as_echo_n "checking for $ac_word... " >&6; }
 
6038
if ${ac_cv_prog_AR+:} false; then :
 
6039
  $as_echo_n "(cached) " >&6
 
6040
else
 
6041
  if test -n "$AR"; then
 
6042
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6043
else
 
6044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6045
for as_dir in $PATH
 
6046
do
 
6047
  IFS=$as_save_IFS
 
6048
  test -z "$as_dir" && as_dir=.
 
6049
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6050
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6051
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6052
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6053
    break 2
 
6054
  fi
 
6055
done
 
6056
  done
 
6057
IFS=$as_save_IFS
 
6058
 
 
6059
fi
 
6060
fi
 
6061
AR=$ac_cv_prog_AR
 
6062
if test -n "$AR"; then
 
6063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6064
$as_echo "$AR" >&6; }
 
6065
else
 
6066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6067
$as_echo "no" >&6; }
 
6068
fi
 
6069
 
 
6070
 
 
6071
    test -n "$AR" && break
 
6072
  done
 
6073
fi
 
6074
if test -z "$AR"; then
 
6075
  ac_ct_AR=$AR
 
6076
  for ac_prog in ar
 
6077
do
 
6078
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6079
set dummy $ac_prog; ac_word=$2
 
6080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6081
$as_echo_n "checking for $ac_word... " >&6; }
 
6082
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6083
  $as_echo_n "(cached) " >&6
 
6084
else
 
6085
  if test -n "$ac_ct_AR"; then
 
6086
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6087
else
 
6088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6089
for as_dir in $PATH
 
6090
do
 
6091
  IFS=$as_save_IFS
 
6092
  test -z "$as_dir" && as_dir=.
 
6093
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6094
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6095
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6097
    break 2
 
6098
  fi
 
6099
done
 
6100
  done
 
6101
IFS=$as_save_IFS
 
6102
 
 
6103
fi
 
6104
fi
 
6105
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6106
if test -n "$ac_ct_AR"; then
 
6107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6108
$as_echo "$ac_ct_AR" >&6; }
 
6109
else
 
6110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6111
$as_echo "no" >&6; }
 
6112
fi
 
6113
 
 
6114
 
 
6115
  test -n "$ac_ct_AR" && break
 
6116
done
 
6117
 
 
6118
  if test "x$ac_ct_AR" = x; then
 
6119
    AR="false"
 
6120
  else
 
6121
    case $cross_compiling:$ac_tool_warned in
 
6122
yes:)
 
6123
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6124
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6125
ac_tool_warned=yes ;;
 
6126
esac
 
6127
    AR=$ac_ct_AR
 
6128
  fi
 
6129
fi
 
6130
 
 
6131
: ${AR=ar}
 
6132
: ${AR_FLAGS=cru}
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
 
 
6140
 
 
6141
 
 
6142
 
 
6143
 
 
6144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6145
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6146
if ${lt_cv_ar_at_file+:} false; then :
 
6147
  $as_echo_n "(cached) " >&6
 
6148
else
 
6149
  lt_cv_ar_at_file=no
 
6150
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6151
/* end confdefs.h.  */
 
6152
 
 
6153
int
 
6154
main ()
 
6155
{
 
6156
 
 
6157
  ;
 
6158
  return 0;
 
6159
}
 
6160
_ACEOF
 
6161
if ac_fn_c_try_compile "$LINENO"; then :
 
6162
  echo conftest.$ac_objext > conftest.lst
 
6163
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6164
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6165
  (eval $lt_ar_try) 2>&5
 
6166
  ac_status=$?
 
6167
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6168
  test $ac_status = 0; }
 
6169
      if test "$ac_status" -eq 0; then
 
6170
        # Ensure the archiver fails upon bogus file names.
 
6171
        rm -f conftest.$ac_objext libconftest.a
 
6172
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6173
  (eval $lt_ar_try) 2>&5
 
6174
  ac_status=$?
 
6175
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6176
  test $ac_status = 0; }
 
6177
        if test "$ac_status" -ne 0; then
 
6178
          lt_cv_ar_at_file=@
 
6179
        fi
 
6180
      fi
 
6181
      rm -f conftest.* libconftest.a
 
6182
 
 
6183
fi
 
6184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6185
 
 
6186
fi
 
6187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6188
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6189
 
 
6190
if test "x$lt_cv_ar_at_file" = xno; then
 
6191
  archiver_list_spec=
 
6192
else
 
6193
  archiver_list_spec=$lt_cv_ar_at_file
 
6194
fi
 
6195
 
 
6196
 
 
6197
 
 
6198
 
 
6199
 
 
6200
 
 
6201
 
 
6202
if test -n "$ac_tool_prefix"; then
 
6203
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6204
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6206
$as_echo_n "checking for $ac_word... " >&6; }
 
6207
if ${ac_cv_prog_STRIP+:} false; then :
 
6208
  $as_echo_n "(cached) " >&6
 
6209
else
 
6210
  if test -n "$STRIP"; then
 
6211
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6212
else
 
6213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6214
for as_dir in $PATH
 
6215
do
 
6216
  IFS=$as_save_IFS
 
6217
  test -z "$as_dir" && as_dir=.
 
6218
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6219
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6220
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6221
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6222
    break 2
 
6223
  fi
 
6224
done
 
6225
  done
 
6226
IFS=$as_save_IFS
 
6227
 
 
6228
fi
 
6229
fi
 
6230
STRIP=$ac_cv_prog_STRIP
 
6231
if test -n "$STRIP"; then
 
6232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6233
$as_echo "$STRIP" >&6; }
 
6234
else
 
6235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6236
$as_echo "no" >&6; }
 
6237
fi
 
6238
 
 
6239
 
 
6240
fi
 
6241
if test -z "$ac_cv_prog_STRIP"; then
 
6242
  ac_ct_STRIP=$STRIP
 
6243
  # Extract the first word of "strip", so it can be a program name with args.
 
6244
set dummy strip; ac_word=$2
 
6245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6246
$as_echo_n "checking for $ac_word... " >&6; }
 
6247
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6248
  $as_echo_n "(cached) " >&6
 
6249
else
 
6250
  if test -n "$ac_ct_STRIP"; then
 
6251
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6252
else
 
6253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6254
for as_dir in $PATH
 
6255
do
 
6256
  IFS=$as_save_IFS
 
6257
  test -z "$as_dir" && as_dir=.
 
6258
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6259
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6260
    ac_cv_prog_ac_ct_STRIP="strip"
 
6261
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6262
    break 2
 
6263
  fi
 
6264
done
 
6265
  done
 
6266
IFS=$as_save_IFS
 
6267
 
 
6268
fi
 
6269
fi
 
6270
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6271
if test -n "$ac_ct_STRIP"; then
 
6272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6273
$as_echo "$ac_ct_STRIP" >&6; }
 
6274
else
 
6275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6276
$as_echo "no" >&6; }
 
6277
fi
 
6278
 
 
6279
  if test "x$ac_ct_STRIP" = x; then
 
6280
    STRIP=":"
 
6281
  else
 
6282
    case $cross_compiling:$ac_tool_warned in
 
6283
yes:)
 
6284
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6285
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6286
ac_tool_warned=yes ;;
 
6287
esac
 
6288
    STRIP=$ac_ct_STRIP
 
6289
  fi
 
6290
else
 
6291
  STRIP="$ac_cv_prog_STRIP"
 
6292
fi
 
6293
 
 
6294
test -z "$STRIP" && STRIP=:
 
6295
 
 
6296
 
 
6297
 
 
6298
 
 
6299
 
 
6300
 
 
6301
if test -n "$ac_tool_prefix"; then
 
6302
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6303
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6305
$as_echo_n "checking for $ac_word... " >&6; }
 
6306
if ${ac_cv_prog_RANLIB+:} false; then :
 
6307
  $as_echo_n "(cached) " >&6
 
6308
else
 
6309
  if test -n "$RANLIB"; then
 
6310
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6311
else
 
6312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6313
for as_dir in $PATH
 
6314
do
 
6315
  IFS=$as_save_IFS
 
6316
  test -z "$as_dir" && as_dir=.
 
6317
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6318
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6319
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6320
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6321
    break 2
 
6322
  fi
 
6323
done
 
6324
  done
 
6325
IFS=$as_save_IFS
 
6326
 
 
6327
fi
 
6328
fi
 
6329
RANLIB=$ac_cv_prog_RANLIB
 
6330
if test -n "$RANLIB"; then
 
6331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6332
$as_echo "$RANLIB" >&6; }
 
6333
else
 
6334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6335
$as_echo "no" >&6; }
 
6336
fi
 
6337
 
 
6338
 
 
6339
fi
 
6340
if test -z "$ac_cv_prog_RANLIB"; then
 
6341
  ac_ct_RANLIB=$RANLIB
 
6342
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6343
set dummy ranlib; ac_word=$2
 
6344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6345
$as_echo_n "checking for $ac_word... " >&6; }
 
6346
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6347
  $as_echo_n "(cached) " >&6
 
6348
else
 
6349
  if test -n "$ac_ct_RANLIB"; then
 
6350
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6351
else
 
6352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6353
for as_dir in $PATH
 
6354
do
 
6355
  IFS=$as_save_IFS
 
6356
  test -z "$as_dir" && as_dir=.
 
6357
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6358
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6359
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6360
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6361
    break 2
 
6362
  fi
 
6363
done
 
6364
  done
 
6365
IFS=$as_save_IFS
 
6366
 
 
6367
fi
 
6368
fi
 
6369
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6370
if test -n "$ac_ct_RANLIB"; then
 
6371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6372
$as_echo "$ac_ct_RANLIB" >&6; }
 
6373
else
 
6374
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6375
$as_echo "no" >&6; }
 
6376
fi
 
6377
 
 
6378
  if test "x$ac_ct_RANLIB" = x; then
 
6379
    RANLIB=":"
 
6380
  else
 
6381
    case $cross_compiling:$ac_tool_warned in
 
6382
yes:)
 
6383
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6384
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6385
ac_tool_warned=yes ;;
 
6386
esac
 
6387
    RANLIB=$ac_ct_RANLIB
 
6388
  fi
 
6389
else
 
6390
  RANLIB="$ac_cv_prog_RANLIB"
 
6391
fi
 
6392
 
 
6393
test -z "$RANLIB" && RANLIB=:
 
6394
 
 
6395
 
 
6396
 
 
6397
 
 
6398
 
 
6399
 
 
6400
# Determine commands to create old-style static archives.
 
6401
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6402
old_postinstall_cmds='chmod 644 $oldlib'
 
6403
old_postuninstall_cmds=
 
6404
 
 
6405
if test -n "$RANLIB"; then
 
6406
  case $host_os in
 
6407
  openbsd*)
 
6408
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6409
    ;;
 
6410
  *)
 
6411
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6412
    ;;
 
6413
  esac
 
6414
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6415
fi
 
6416
 
 
6417
case $host_os in
 
6418
  darwin*)
 
6419
    lock_old_archive_extraction=yes ;;
 
6420
  *)
 
6421
    lock_old_archive_extraction=no ;;
 
6422
esac
 
6423
 
 
6424
 
 
6425
 
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
 
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
 
 
6447
 
 
6448
 
 
6449
 
 
6450
 
 
6451
 
 
6452
 
 
6453
 
 
6454
 
 
6455
 
 
6456
 
 
6457
 
 
6458
 
 
6459
 
 
6460
 
 
6461
 
 
6462
# If no C compiler was specified, use CC.
 
6463
LTCC=${LTCC-"$CC"}
 
6464
 
 
6465
# If no C compiler flags were specified, use CFLAGS.
 
6466
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6467
 
 
6468
# Allow CC to be a program name with arguments.
 
6469
compiler=$CC
 
6470
 
 
6471
 
 
6472
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6474
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6475
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6476
  $as_echo_n "(cached) " >&6
 
6477
else
 
6478
 
 
6479
# These are sane defaults that work on at least a few old systems.
 
6480
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6481
 
 
6482
# Character class describing NM global symbol codes.
 
6483
symcode='[BCDEGRST]'
 
6484
 
 
6485
# Regexp to match symbols that can be accessed directly from C.
 
6486
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6487
 
 
6488
# Define system-specific variables.
 
6489
case $host_os in
 
6490
aix*)
 
6491
  symcode='[BCDT]'
 
6492
  ;;
 
6493
cygwin* | mingw* | pw32* | cegcc*)
 
6494
  symcode='[ABCDGISTW]'
 
6495
  ;;
 
6496
hpux*)
 
6497
  if test "$host_cpu" = ia64; then
 
6498
    symcode='[ABCDEGRST]'
 
6499
  fi
 
6500
  ;;
 
6501
irix* | nonstopux*)
 
6502
  symcode='[BCDEGRST]'
 
6503
  ;;
 
6504
osf*)
 
6505
  symcode='[BCDEGQRST]'
 
6506
  ;;
 
6507
solaris*)
 
6508
  symcode='[BDRT]'
 
6509
  ;;
 
6510
sco3.2v5*)
 
6511
  symcode='[DT]'
 
6512
  ;;
 
6513
sysv4.2uw2*)
 
6514
  symcode='[DT]'
 
6515
  ;;
 
6516
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6517
  symcode='[ABDT]'
 
6518
  ;;
 
6519
sysv4)
 
6520
  symcode='[DFNSTU]'
 
6521
  ;;
 
6522
esac
 
6523
 
 
6524
# If we're using GNU nm, then use its standard symbol codes.
 
6525
case `$NM -V 2>&1` in
 
6526
*GNU* | *'with BFD'*)
 
6527
  symcode='[ABCDGIRSTW]' ;;
 
6528
esac
 
6529
 
 
6530
# Transform an extracted symbol line into a proper C declaration.
 
6531
# Some systems (esp. on ia64) link data and code symbols differently,
 
6532
# so use this general approach.
 
6533
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6534
 
 
6535
# Transform an extracted symbol line into symbol name and symbol address
 
6536
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6537
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'"
 
6538
 
 
6539
# Handle CRLF in mingw tool chain
 
6540
opt_cr=
 
6541
case $build_os in
 
6542
mingw*)
 
6543
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6544
  ;;
 
6545
esac
 
6546
 
 
6547
# Try without a prefix underscore, then with it.
 
6548
for ac_symprfx in "" "_"; do
 
6549
 
 
6550
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6551
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6552
 
 
6553
  # Write the raw and C identifiers.
 
6554
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6555
    # Fake it for dumpbin and say T for any non-static function
 
6556
    # and D for any global variable.
 
6557
    # Also find C++ and __fastcall symbols from MSVC++,
 
6558
    # which start with @ or ?.
 
6559
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6560
"     {last_section=section; section=\$ 3};"\
 
6561
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6562
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6563
"     \$ 0!~/External *\|/{next};"\
 
6564
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6565
"     {if(hide[section]) next};"\
 
6566
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6567
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6568
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6569
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6570
"     ' prfx=^$ac_symprfx"
 
6571
  else
 
6572
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6573
  fi
 
6574
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6575
 
 
6576
  # Check to see that the pipe works correctly.
 
6577
  pipe_works=no
 
6578
 
 
6579
  rm -f conftest*
 
6580
  cat > conftest.$ac_ext <<_LT_EOF
 
6581
#ifdef __cplusplus
 
6582
extern "C" {
 
6583
#endif
 
6584
char nm_test_var;
 
6585
void nm_test_func(void);
 
6586
void nm_test_func(void){}
 
6587
#ifdef __cplusplus
 
6588
}
 
6589
#endif
 
6590
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6591
_LT_EOF
 
6592
 
 
6593
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6594
  (eval $ac_compile) 2>&5
 
6595
  ac_status=$?
 
6596
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6597
  test $ac_status = 0; }; then
 
6598
    # Now try to grab the symbols.
 
6599
    nlist=conftest.nm
 
6600
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6601
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6602
  ac_status=$?
 
6603
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6604
  test $ac_status = 0; } && test -s "$nlist"; then
 
6605
      # Try sorting and uniquifying the output.
 
6606
      if sort "$nlist" | uniq > "$nlist"T; then
 
6607
        mv -f "$nlist"T "$nlist"
 
6608
      else
 
6609
        rm -f "$nlist"T
 
6610
      fi
 
6611
 
 
6612
      # Make sure that we snagged all the symbols we need.
 
6613
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6614
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6615
          cat <<_LT_EOF > conftest.$ac_ext
 
6616
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6617
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6618
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6619
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6620
# define LT_DLSYM_CONST
 
6621
#elif defined(__osf__)
 
6622
/* This system does not cope well with relocations in const data.  */
 
6623
# define LT_DLSYM_CONST
 
6624
#else
 
6625
# define LT_DLSYM_CONST const
 
6626
#endif
 
6627
 
 
6628
#ifdef __cplusplus
 
6629
extern "C" {
 
6630
#endif
 
6631
 
 
6632
_LT_EOF
 
6633
          # Now generate the symbol file.
 
6634
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6635
 
 
6636
          cat <<_LT_EOF >> conftest.$ac_ext
 
6637
 
 
6638
/* The mapping between symbol names and symbols.  */
 
6639
LT_DLSYM_CONST struct {
 
6640
  const char *name;
 
6641
  void       *address;
 
6642
}
 
6643
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6644
{
 
6645
  { "@PROGRAM@", (void *) 0 },
 
6646
_LT_EOF
 
6647
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6648
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6649
  {0, (void *) 0}
 
6650
};
 
6651
 
 
6652
/* This works around a problem in FreeBSD linker */
 
6653
#ifdef FREEBSD_WORKAROUND
 
6654
static const void *lt_preloaded_setup() {
 
6655
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6656
}
 
6657
#endif
 
6658
 
 
6659
#ifdef __cplusplus
 
6660
}
 
6661
#endif
 
6662
_LT_EOF
 
6663
          # Now try linking the two files.
 
6664
          mv conftest.$ac_objext conftstm.$ac_objext
 
6665
          lt_globsym_save_LIBS=$LIBS
 
6666
          lt_globsym_save_CFLAGS=$CFLAGS
 
6667
          LIBS="conftstm.$ac_objext"
 
6668
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6669
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6670
  (eval $ac_link) 2>&5
 
6671
  ac_status=$?
 
6672
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6673
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6674
            pipe_works=yes
 
6675
          fi
 
6676
          LIBS=$lt_globsym_save_LIBS
 
6677
          CFLAGS=$lt_globsym_save_CFLAGS
 
6678
        else
 
6679
          echo "cannot find nm_test_func in $nlist" >&5
 
6680
        fi
 
6681
      else
 
6682
        echo "cannot find nm_test_var in $nlist" >&5
 
6683
      fi
 
6684
    else
 
6685
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6686
    fi
 
6687
  else
 
6688
    echo "$progname: failed program was:" >&5
 
6689
    cat conftest.$ac_ext >&5
 
6690
  fi
 
6691
  rm -rf conftest* conftst*
 
6692
 
 
6693
  # Do not use the global_symbol_pipe unless it works.
 
6694
  if test "$pipe_works" = yes; then
 
6695
    break
 
6696
  else
 
6697
    lt_cv_sys_global_symbol_pipe=
 
6698
  fi
 
6699
done
 
6700
 
 
6701
fi
 
6702
 
 
6703
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6704
  lt_cv_sys_global_symbol_to_cdecl=
 
6705
fi
 
6706
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6708
$as_echo "failed" >&6; }
 
6709
else
 
6710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6711
$as_echo "ok" >&6; }
 
6712
fi
 
6713
 
 
6714
# Response file support.
 
6715
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6716
  nm_file_list_spec='@'
 
6717
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6718
  nm_file_list_spec='@'
 
6719
fi
 
6720
 
 
6721
 
 
6722
 
 
6723
 
 
6724
 
 
6725
 
 
6726
 
 
6727
 
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
 
6734
 
 
6735
 
 
6736
 
 
6737
 
 
6738
 
 
6739
 
 
6740
 
 
6741
 
 
6742
 
 
6743
 
 
6744
 
 
6745
 
 
6746
 
 
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6748
$as_echo_n "checking for sysroot... " >&6; }
 
6749
 
 
6750
# Check whether --with-sysroot was given.
 
6751
if test "${with_sysroot+set}" = set; then :
 
6752
  withval=$with_sysroot;
 
6753
else
 
6754
  with_sysroot=no
 
6755
fi
 
6756
 
 
6757
 
 
6758
lt_sysroot=
 
6759
case ${with_sysroot} in #(
 
6760
 yes)
 
6761
   if test "$GCC" = yes; then
 
6762
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6763
   fi
 
6764
   ;; #(
 
6765
 /*)
 
6766
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6767
   ;; #(
 
6768
 no|'')
 
6769
   ;; #(
 
6770
 *)
 
6771
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6772
$as_echo "${with_sysroot}" >&6; }
 
6773
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6774
   ;;
 
6775
esac
 
6776
 
 
6777
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6778
$as_echo "${lt_sysroot:-no}" >&6; }
 
6779
 
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
# Check whether --enable-libtool-lock was given.
 
6785
if test "${enable_libtool_lock+set}" = set; then :
 
6786
  enableval=$enable_libtool_lock;
 
6787
fi
 
6788
 
 
6789
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6790
 
 
6791
# Some flags need to be propagated to the compiler or linker for good
 
6792
# libtool support.
 
6793
case $host in
 
6794
ia64-*-hpux*)
 
6795
  # Find out which ABI we are using.
 
6796
  echo 'int i;' > conftest.$ac_ext
 
6797
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6798
  (eval $ac_compile) 2>&5
 
6799
  ac_status=$?
 
6800
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6801
  test $ac_status = 0; }; then
 
6802
    case `/usr/bin/file conftest.$ac_objext` in
 
6803
      *ELF-32*)
 
6804
        HPUX_IA64_MODE="32"
 
6805
        ;;
 
6806
      *ELF-64*)
 
6807
        HPUX_IA64_MODE="64"
 
6808
        ;;
 
6809
    esac
 
6810
  fi
 
6811
  rm -rf conftest*
 
6812
  ;;
 
6813
*-*-irix6*)
 
6814
  # Find out which ABI we are using.
 
6815
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6816
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6817
  (eval $ac_compile) 2>&5
 
6818
  ac_status=$?
 
6819
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6820
  test $ac_status = 0; }; then
 
6821
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6822
      case `/usr/bin/file conftest.$ac_objext` in
 
6823
        *32-bit*)
 
6824
          LD="${LD-ld} -melf32bsmip"
 
6825
          ;;
 
6826
        *N32*)
 
6827
          LD="${LD-ld} -melf32bmipn32"
 
6828
          ;;
 
6829
        *64-bit*)
 
6830
          LD="${LD-ld} -melf64bmip"
 
6831
        ;;
 
6832
      esac
 
6833
    else
 
6834
      case `/usr/bin/file conftest.$ac_objext` in
 
6835
        *32-bit*)
 
6836
          LD="${LD-ld} -32"
 
6837
          ;;
 
6838
        *N32*)
 
6839
          LD="${LD-ld} -n32"
 
6840
          ;;
 
6841
        *64-bit*)
 
6842
          LD="${LD-ld} -64"
 
6843
          ;;
 
6844
      esac
 
6845
    fi
 
6846
  fi
 
6847
  rm -rf conftest*
 
6848
  ;;
 
6849
 
 
6850
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6851
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6852
  # Find out which ABI we are using.
 
6853
  echo 'int i;' > conftest.$ac_ext
 
6854
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6855
  (eval $ac_compile) 2>&5
 
6856
  ac_status=$?
 
6857
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6858
  test $ac_status = 0; }; then
 
6859
    case `/usr/bin/file conftest.o` in
 
6860
      *32-bit*)
 
6861
        case $host in
 
6862
          x86_64-*kfreebsd*-gnu)
 
6863
            LD="${LD-ld} -m elf_i386_fbsd"
 
6864
            ;;
 
6865
          x86_64-*linux*)
 
6866
            case `/usr/bin/file conftest.o` in
 
6867
              *x86-64*)
 
6868
                LD="${LD-ld} -m elf32_x86_64"
 
6869
                ;;
 
6870
              *)
 
6871
                LD="${LD-ld} -m elf_i386"
 
6872
                ;;
 
6873
            esac
 
6874
            ;;
 
6875
          ppc64-*linux*|powerpc64-*linux*)
 
6876
            LD="${LD-ld} -m elf32ppclinux"
 
6877
            ;;
 
6878
          s390x-*linux*)
 
6879
            LD="${LD-ld} -m elf_s390"
 
6880
            ;;
 
6881
          sparc64-*linux*)
 
6882
            LD="${LD-ld} -m elf32_sparc"
 
6883
            ;;
 
6884
        esac
 
6885
        ;;
 
6886
      *64-bit*)
 
6887
        case $host in
 
6888
          x86_64-*kfreebsd*-gnu)
 
6889
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6890
            ;;
 
6891
          x86_64-*linux*)
 
6892
            LD="${LD-ld} -m elf_x86_64"
 
6893
            ;;
 
6894
          ppc*-*linux*|powerpc*-*linux*)
 
6895
            LD="${LD-ld} -m elf64ppc"
 
6896
            ;;
 
6897
          s390*-*linux*|s390*-*tpf*)
 
6898
            LD="${LD-ld} -m elf64_s390"
 
6899
            ;;
 
6900
          sparc*-*linux*)
 
6901
            LD="${LD-ld} -m elf64_sparc"
 
6902
            ;;
 
6903
        esac
 
6904
        ;;
 
6905
    esac
 
6906
  fi
 
6907
  rm -rf conftest*
 
6908
  ;;
 
6909
 
 
6910
*-*-sco3.2v5*)
 
6911
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6912
  SAVE_CFLAGS="$CFLAGS"
 
6913
  CFLAGS="$CFLAGS -belf"
 
6914
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6915
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6916
if ${lt_cv_cc_needs_belf+:} false; then :
 
6917
  $as_echo_n "(cached) " >&6
 
6918
else
 
6919
  ac_ext=c
 
6920
ac_cpp='$CPP $CPPFLAGS'
 
6921
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6922
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6923
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6924
 
 
6925
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6926
/* end confdefs.h.  */
 
6927
 
 
6928
int
 
6929
main ()
 
6930
{
 
6931
 
 
6932
  ;
 
6933
  return 0;
 
6934
}
 
6935
_ACEOF
 
6936
if ac_fn_c_try_link "$LINENO"; then :
 
6937
  lt_cv_cc_needs_belf=yes
 
6938
else
 
6939
  lt_cv_cc_needs_belf=no
 
6940
fi
 
6941
rm -f core conftest.err conftest.$ac_objext \
 
6942
    conftest$ac_exeext conftest.$ac_ext
 
6943
     ac_ext=c
 
6944
ac_cpp='$CPP $CPPFLAGS'
 
6945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6948
 
 
6949
fi
 
6950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6951
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6952
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6953
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6954
    CFLAGS="$SAVE_CFLAGS"
 
6955
  fi
 
6956
  ;;
 
6957
*-*solaris*)
 
6958
  # Find out which ABI we are using.
 
6959
  echo 'int i;' > conftest.$ac_ext
 
6960
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6961
  (eval $ac_compile) 2>&5
 
6962
  ac_status=$?
 
6963
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6964
  test $ac_status = 0; }; then
 
6965
    case `/usr/bin/file conftest.o` in
 
6966
    *64-bit*)
 
6967
      case $lt_cv_prog_gnu_ld in
 
6968
      yes*)
 
6969
        case $host in
 
6970
        i?86-*-solaris*)
 
6971
          LD="${LD-ld} -m elf_x86_64"
 
6972
          ;;
 
6973
        sparc*-*-solaris*)
 
6974
          LD="${LD-ld} -m elf64_sparc"
 
6975
          ;;
 
6976
        esac
 
6977
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6978
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6979
          LD="${LD-ld}_sol2"
 
6980
        fi
 
6981
        ;;
 
6982
      *)
 
6983
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6984
          LD="${LD-ld} -64"
 
6985
        fi
 
6986
        ;;
 
6987
      esac
 
6988
      ;;
 
6989
    esac
 
6990
  fi
 
6991
  rm -rf conftest*
 
6992
  ;;
 
6993
esac
 
6994
 
 
6995
need_locks="$enable_libtool_lock"
 
6996
 
 
6997
if test -n "$ac_tool_prefix"; then
 
6998
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6999
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7001
$as_echo_n "checking for $ac_word... " >&6; }
 
7002
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7003
  $as_echo_n "(cached) " >&6
 
7004
else
 
7005
  if test -n "$MANIFEST_TOOL"; then
 
7006
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7007
else
 
7008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7009
for as_dir in $PATH
 
7010
do
 
7011
  IFS=$as_save_IFS
 
7012
  test -z "$as_dir" && as_dir=.
 
7013
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7014
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7015
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7017
    break 2
 
7018
  fi
 
7019
done
 
7020
  done
 
7021
IFS=$as_save_IFS
 
7022
 
 
7023
fi
 
7024
fi
 
7025
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7026
if test -n "$MANIFEST_TOOL"; then
 
7027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7028
$as_echo "$MANIFEST_TOOL" >&6; }
 
7029
else
 
7030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7031
$as_echo "no" >&6; }
 
7032
fi
 
7033
 
 
7034
 
 
7035
fi
 
7036
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7037
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7038
  # Extract the first word of "mt", so it can be a program name with args.
 
7039
set dummy mt; ac_word=$2
 
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7041
$as_echo_n "checking for $ac_word... " >&6; }
 
7042
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7043
  $as_echo_n "(cached) " >&6
 
7044
else
 
7045
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7046
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7047
else
 
7048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7049
for as_dir in $PATH
 
7050
do
 
7051
  IFS=$as_save_IFS
 
7052
  test -z "$as_dir" && as_dir=.
 
7053
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7054
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7055
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7056
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7057
    break 2
 
7058
  fi
 
7059
done
 
7060
  done
 
7061
IFS=$as_save_IFS
 
7062
 
 
7063
fi
 
7064
fi
 
7065
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7066
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7068
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7069
else
 
7070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7071
$as_echo "no" >&6; }
 
7072
fi
 
7073
 
 
7074
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7075
    MANIFEST_TOOL=":"
 
7076
  else
 
7077
    case $cross_compiling:$ac_tool_warned in
 
7078
yes:)
 
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7080
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7081
ac_tool_warned=yes ;;
 
7082
esac
 
7083
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7084
  fi
 
7085
else
 
7086
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7087
fi
 
7088
 
 
7089
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7091
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7092
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7093
  $as_echo_n "(cached) " >&6
 
7094
else
 
7095
  lt_cv_path_mainfest_tool=no
 
7096
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7097
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7098
  cat conftest.err >&5
 
7099
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7100
    lt_cv_path_mainfest_tool=yes
 
7101
  fi
 
7102
  rm -f conftest*
 
7103
fi
 
7104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7105
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7106
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7107
  MANIFEST_TOOL=:
 
7108
fi
 
7109
 
 
7110
 
 
7111
 
 
7112
 
 
7113
 
 
7114
 
 
7115
  case $host_os in
 
7116
    rhapsody* | darwin*)
 
7117
    if test -n "$ac_tool_prefix"; then
 
7118
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7119
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7121
$as_echo_n "checking for $ac_word... " >&6; }
 
7122
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7123
  $as_echo_n "(cached) " >&6
 
7124
else
 
7125
  if test -n "$DSYMUTIL"; then
 
7126
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7127
else
 
7128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7129
for as_dir in $PATH
 
7130
do
 
7131
  IFS=$as_save_IFS
 
7132
  test -z "$as_dir" && as_dir=.
 
7133
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7134
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7135
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7137
    break 2
 
7138
  fi
 
7139
done
 
7140
  done
 
7141
IFS=$as_save_IFS
 
7142
 
 
7143
fi
 
7144
fi
 
7145
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7146
if test -n "$DSYMUTIL"; then
 
7147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7148
$as_echo "$DSYMUTIL" >&6; }
 
7149
else
 
7150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7151
$as_echo "no" >&6; }
 
7152
fi
 
7153
 
 
7154
 
 
7155
fi
 
7156
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7157
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7158
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7159
set dummy dsymutil; ac_word=$2
 
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7161
$as_echo_n "checking for $ac_word... " >&6; }
 
7162
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7163
  $as_echo_n "(cached) " >&6
 
7164
else
 
7165
  if test -n "$ac_ct_DSYMUTIL"; then
 
7166
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7167
else
 
7168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7169
for as_dir in $PATH
 
7170
do
 
7171
  IFS=$as_save_IFS
 
7172
  test -z "$as_dir" && as_dir=.
 
7173
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7174
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7175
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7177
    break 2
 
7178
  fi
 
7179
done
 
7180
  done
 
7181
IFS=$as_save_IFS
 
7182
 
 
7183
fi
 
7184
fi
 
7185
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7186
if test -n "$ac_ct_DSYMUTIL"; then
 
7187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7188
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7189
else
 
7190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7191
$as_echo "no" >&6; }
 
7192
fi
 
7193
 
 
7194
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7195
    DSYMUTIL=":"
 
7196
  else
 
7197
    case $cross_compiling:$ac_tool_warned in
 
7198
yes:)
 
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7201
ac_tool_warned=yes ;;
 
7202
esac
 
7203
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7204
  fi
 
7205
else
 
7206
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7207
fi
 
7208
 
 
7209
    if test -n "$ac_tool_prefix"; then
 
7210
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7211
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7213
$as_echo_n "checking for $ac_word... " >&6; }
 
7214
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7215
  $as_echo_n "(cached) " >&6
 
7216
else
 
7217
  if test -n "$NMEDIT"; then
 
7218
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7219
else
 
7220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7221
for as_dir in $PATH
 
7222
do
 
7223
  IFS=$as_save_IFS
 
7224
  test -z "$as_dir" && as_dir=.
 
7225
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7226
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7227
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7228
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7229
    break 2
 
7230
  fi
 
7231
done
 
7232
  done
 
7233
IFS=$as_save_IFS
 
7234
 
 
7235
fi
 
7236
fi
 
7237
NMEDIT=$ac_cv_prog_NMEDIT
 
7238
if test -n "$NMEDIT"; then
 
7239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7240
$as_echo "$NMEDIT" >&6; }
 
7241
else
 
7242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7243
$as_echo "no" >&6; }
 
7244
fi
 
7245
 
 
7246
 
 
7247
fi
 
7248
if test -z "$ac_cv_prog_NMEDIT"; then
 
7249
  ac_ct_NMEDIT=$NMEDIT
 
7250
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7251
set dummy nmedit; ac_word=$2
 
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7253
$as_echo_n "checking for $ac_word... " >&6; }
 
7254
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7255
  $as_echo_n "(cached) " >&6
 
7256
else
 
7257
  if test -n "$ac_ct_NMEDIT"; then
 
7258
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7259
else
 
7260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7261
for as_dir in $PATH
 
7262
do
 
7263
  IFS=$as_save_IFS
 
7264
  test -z "$as_dir" && as_dir=.
 
7265
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7266
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7267
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7268
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7269
    break 2
 
7270
  fi
 
7271
done
 
7272
  done
 
7273
IFS=$as_save_IFS
 
7274
 
 
7275
fi
 
7276
fi
 
7277
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7278
if test -n "$ac_ct_NMEDIT"; then
 
7279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7280
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7281
else
 
7282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7283
$as_echo "no" >&6; }
 
7284
fi
 
7285
 
 
7286
  if test "x$ac_ct_NMEDIT" = x; then
 
7287
    NMEDIT=":"
 
7288
  else
 
7289
    case $cross_compiling:$ac_tool_warned in
 
7290
yes:)
 
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7292
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7293
ac_tool_warned=yes ;;
 
7294
esac
 
7295
    NMEDIT=$ac_ct_NMEDIT
 
7296
  fi
 
7297
else
 
7298
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7299
fi
 
7300
 
 
7301
    if test -n "$ac_tool_prefix"; then
 
7302
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7303
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7305
$as_echo_n "checking for $ac_word... " >&6; }
 
7306
if ${ac_cv_prog_LIPO+:} false; then :
 
7307
  $as_echo_n "(cached) " >&6
 
7308
else
 
7309
  if test -n "$LIPO"; then
 
7310
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7311
else
 
7312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7313
for as_dir in $PATH
 
7314
do
 
7315
  IFS=$as_save_IFS
 
7316
  test -z "$as_dir" && as_dir=.
 
7317
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7318
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7319
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7320
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7321
    break 2
 
7322
  fi
 
7323
done
 
7324
  done
 
7325
IFS=$as_save_IFS
 
7326
 
 
7327
fi
 
7328
fi
 
7329
LIPO=$ac_cv_prog_LIPO
 
7330
if test -n "$LIPO"; then
 
7331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7332
$as_echo "$LIPO" >&6; }
 
7333
else
 
7334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7335
$as_echo "no" >&6; }
 
7336
fi
 
7337
 
 
7338
 
 
7339
fi
 
7340
if test -z "$ac_cv_prog_LIPO"; then
 
7341
  ac_ct_LIPO=$LIPO
 
7342
  # Extract the first word of "lipo", so it can be a program name with args.
 
7343
set dummy lipo; ac_word=$2
 
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7345
$as_echo_n "checking for $ac_word... " >&6; }
 
7346
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7347
  $as_echo_n "(cached) " >&6
 
7348
else
 
7349
  if test -n "$ac_ct_LIPO"; then
 
7350
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7351
else
 
7352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7353
for as_dir in $PATH
 
7354
do
 
7355
  IFS=$as_save_IFS
 
7356
  test -z "$as_dir" && as_dir=.
 
7357
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7358
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7359
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7360
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7361
    break 2
 
7362
  fi
 
7363
done
 
7364
  done
 
7365
IFS=$as_save_IFS
 
7366
 
 
7367
fi
 
7368
fi
 
7369
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7370
if test -n "$ac_ct_LIPO"; then
 
7371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7372
$as_echo "$ac_ct_LIPO" >&6; }
 
7373
else
 
7374
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7375
$as_echo "no" >&6; }
 
7376
fi
 
7377
 
 
7378
  if test "x$ac_ct_LIPO" = x; then
 
7379
    LIPO=":"
 
7380
  else
 
7381
    case $cross_compiling:$ac_tool_warned in
 
7382
yes:)
 
7383
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7384
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7385
ac_tool_warned=yes ;;
 
7386
esac
 
7387
    LIPO=$ac_ct_LIPO
 
7388
  fi
 
7389
else
 
7390
  LIPO="$ac_cv_prog_LIPO"
 
7391
fi
 
7392
 
 
7393
    if test -n "$ac_tool_prefix"; then
 
7394
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7395
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7397
$as_echo_n "checking for $ac_word... " >&6; }
 
7398
if ${ac_cv_prog_OTOOL+:} false; then :
 
7399
  $as_echo_n "(cached) " >&6
 
7400
else
 
7401
  if test -n "$OTOOL"; then
 
7402
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7403
else
 
7404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7405
for as_dir in $PATH
 
7406
do
 
7407
  IFS=$as_save_IFS
 
7408
  test -z "$as_dir" && as_dir=.
 
7409
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7410
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7411
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7412
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7413
    break 2
 
7414
  fi
 
7415
done
 
7416
  done
 
7417
IFS=$as_save_IFS
 
7418
 
 
7419
fi
 
7420
fi
 
7421
OTOOL=$ac_cv_prog_OTOOL
 
7422
if test -n "$OTOOL"; then
 
7423
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7424
$as_echo "$OTOOL" >&6; }
 
7425
else
 
7426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7427
$as_echo "no" >&6; }
 
7428
fi
 
7429
 
 
7430
 
 
7431
fi
 
7432
if test -z "$ac_cv_prog_OTOOL"; then
 
7433
  ac_ct_OTOOL=$OTOOL
 
7434
  # Extract the first word of "otool", so it can be a program name with args.
 
7435
set dummy otool; ac_word=$2
 
7436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7437
$as_echo_n "checking for $ac_word... " >&6; }
 
7438
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7439
  $as_echo_n "(cached) " >&6
 
7440
else
 
7441
  if test -n "$ac_ct_OTOOL"; then
 
7442
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7443
else
 
7444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7445
for as_dir in $PATH
 
7446
do
 
7447
  IFS=$as_save_IFS
 
7448
  test -z "$as_dir" && as_dir=.
 
7449
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7450
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7451
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7452
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7453
    break 2
 
7454
  fi
 
7455
done
 
7456
  done
 
7457
IFS=$as_save_IFS
 
7458
 
 
7459
fi
 
7460
fi
 
7461
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7462
if test -n "$ac_ct_OTOOL"; then
 
7463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7464
$as_echo "$ac_ct_OTOOL" >&6; }
 
7465
else
 
7466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7467
$as_echo "no" >&6; }
 
7468
fi
 
7469
 
 
7470
  if test "x$ac_ct_OTOOL" = x; then
 
7471
    OTOOL=":"
 
7472
  else
 
7473
    case $cross_compiling:$ac_tool_warned in
 
7474
yes:)
 
7475
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7476
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7477
ac_tool_warned=yes ;;
 
7478
esac
 
7479
    OTOOL=$ac_ct_OTOOL
 
7480
  fi
 
7481
else
 
7482
  OTOOL="$ac_cv_prog_OTOOL"
 
7483
fi
 
7484
 
 
7485
    if test -n "$ac_tool_prefix"; then
 
7486
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7487
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7489
$as_echo_n "checking for $ac_word... " >&6; }
 
7490
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7491
  $as_echo_n "(cached) " >&6
 
7492
else
 
7493
  if test -n "$OTOOL64"; then
 
7494
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7495
else
 
7496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7497
for as_dir in $PATH
 
7498
do
 
7499
  IFS=$as_save_IFS
 
7500
  test -z "$as_dir" && as_dir=.
 
7501
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7502
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7503
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7504
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7505
    break 2
 
7506
  fi
 
7507
done
 
7508
  done
 
7509
IFS=$as_save_IFS
 
7510
 
 
7511
fi
 
7512
fi
 
7513
OTOOL64=$ac_cv_prog_OTOOL64
 
7514
if test -n "$OTOOL64"; then
 
7515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7516
$as_echo "$OTOOL64" >&6; }
 
7517
else
 
7518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7519
$as_echo "no" >&6; }
 
7520
fi
 
7521
 
 
7522
 
 
7523
fi
 
7524
if test -z "$ac_cv_prog_OTOOL64"; then
 
7525
  ac_ct_OTOOL64=$OTOOL64
 
7526
  # Extract the first word of "otool64", so it can be a program name with args.
 
7527
set dummy otool64; ac_word=$2
 
7528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7529
$as_echo_n "checking for $ac_word... " >&6; }
 
7530
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7531
  $as_echo_n "(cached) " >&6
 
7532
else
 
7533
  if test -n "$ac_ct_OTOOL64"; then
 
7534
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7535
else
 
7536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7537
for as_dir in $PATH
 
7538
do
 
7539
  IFS=$as_save_IFS
 
7540
  test -z "$as_dir" && as_dir=.
 
7541
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7542
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7543
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7544
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7545
    break 2
 
7546
  fi
 
7547
done
 
7548
  done
 
7549
IFS=$as_save_IFS
 
7550
 
 
7551
fi
 
7552
fi
 
7553
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7554
if test -n "$ac_ct_OTOOL64"; then
 
7555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7556
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7557
else
 
7558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7559
$as_echo "no" >&6; }
 
7560
fi
 
7561
 
 
7562
  if test "x$ac_ct_OTOOL64" = x; then
 
7563
    OTOOL64=":"
 
7564
  else
 
7565
    case $cross_compiling:$ac_tool_warned in
 
7566
yes:)
 
7567
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7568
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7569
ac_tool_warned=yes ;;
 
7570
esac
 
7571
    OTOOL64=$ac_ct_OTOOL64
 
7572
  fi
 
7573
else
 
7574
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7575
fi
 
7576
 
 
7577
 
 
7578
 
 
7579
 
 
7580
 
 
7581
 
 
7582
 
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
 
 
7588
 
 
7589
 
 
7590
 
 
7591
 
 
7592
 
 
7593
 
 
7594
 
 
7595
 
 
7596
 
 
7597
 
 
7598
 
 
7599
 
 
7600
 
 
7601
 
 
7602
 
 
7603
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7604
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7605
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7606
  $as_echo_n "(cached) " >&6
 
7607
else
 
7608
  lt_cv_apple_cc_single_mod=no
 
7609
      if test -z "${LT_MULTI_MODULE}"; then
 
7610
        # By default we will add the -single_module flag. You can override
 
7611
        # by either setting the environment variable LT_MULTI_MODULE
 
7612
        # non-empty at configure time, or by adding -multi_module to the
 
7613
        # link flags.
 
7614
        rm -rf libconftest.dylib*
 
7615
        echo "int foo(void){return 1;}" > conftest.c
 
7616
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7617
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7618
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7619
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7620
        _lt_result=$?
 
7621
        # If there is a non-empty error log, and "single_module"
 
7622
        # appears in it, assume the flag caused a linker warning
 
7623
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7624
          cat conftest.err >&5
 
7625
        # Otherwise, if the output was created with a 0 exit code from
 
7626
        # the compiler, it worked.
 
7627
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7628
          lt_cv_apple_cc_single_mod=yes
 
7629
        else
 
7630
          cat conftest.err >&5
 
7631
        fi
 
7632
        rm -rf libconftest.dylib*
 
7633
        rm -f conftest.*
 
7634
      fi
 
7635
fi
 
7636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7637
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7638
 
 
7639
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7640
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7641
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7642
  $as_echo_n "(cached) " >&6
 
7643
else
 
7644
  lt_cv_ld_exported_symbols_list=no
 
7645
      save_LDFLAGS=$LDFLAGS
 
7646
      echo "_main" > conftest.sym
 
7647
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7648
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7649
/* end confdefs.h.  */
 
7650
 
 
7651
int
 
7652
main ()
 
7653
{
 
7654
 
 
7655
  ;
 
7656
  return 0;
 
7657
}
 
7658
_ACEOF
 
7659
if ac_fn_c_try_link "$LINENO"; then :
 
7660
  lt_cv_ld_exported_symbols_list=yes
 
7661
else
 
7662
  lt_cv_ld_exported_symbols_list=no
 
7663
fi
 
7664
rm -f core conftest.err conftest.$ac_objext \
 
7665
    conftest$ac_exeext conftest.$ac_ext
 
7666
        LDFLAGS="$save_LDFLAGS"
 
7667
 
 
7668
fi
 
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7670
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7671
 
 
7672
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7673
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7674
if ${lt_cv_ld_force_load+:} false; then :
 
7675
  $as_echo_n "(cached) " >&6
 
7676
else
 
7677
  lt_cv_ld_force_load=no
 
7678
      cat > conftest.c << _LT_EOF
 
7679
int forced_loaded() { return 2;}
 
7680
_LT_EOF
 
7681
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7682
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7683
      echo "$AR cru libconftest.a conftest.o" >&5
 
7684
      $AR cru libconftest.a conftest.o 2>&5
 
7685
      echo "$RANLIB libconftest.a" >&5
 
7686
      $RANLIB libconftest.a 2>&5
 
7687
      cat > conftest.c << _LT_EOF
 
7688
int main() { return 0;}
 
7689
_LT_EOF
 
7690
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7691
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7692
      _lt_result=$?
 
7693
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7694
        cat conftest.err >&5
 
7695
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7696
        lt_cv_ld_force_load=yes
 
7697
      else
 
7698
        cat conftest.err >&5
 
7699
      fi
 
7700
        rm -f conftest.err libconftest.a conftest conftest.c
 
7701
        rm -rf conftest.dSYM
 
7702
 
 
7703
fi
 
7704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7705
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7706
    case $host_os in
 
7707
    rhapsody* | darwin1.[012])
 
7708
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7709
    darwin1.*)
 
7710
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7711
    darwin*) # darwin 5.x on
 
7712
      # if running on 10.5 or later, the deployment target defaults
 
7713
      # to the OS version, if on x86, and 10.4, the deployment
 
7714
      # target defaults to 10.4. Don't you love it?
 
7715
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7716
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7717
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7718
        10.[012]*)
 
7719
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7720
        10.*)
 
7721
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7722
      esac
 
7723
    ;;
 
7724
  esac
 
7725
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7726
      _lt_dar_single_mod='$single_module'
 
7727
    fi
 
7728
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7729
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7730
    else
 
7731
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7732
    fi
 
7733
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7734
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7735
    else
 
7736
      _lt_dsymutil=
 
7737
    fi
 
7738
    ;;
 
7739
  esac
 
7740
 
 
7741
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7742
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7743
                  inttypes.h stdint.h unistd.h
 
7744
do :
 
7745
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7746
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7747
"
 
7748
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7749
  cat >>confdefs.h <<_ACEOF
 
7750
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7751
_ACEOF
 
7752
 
 
7753
fi
 
7754
 
 
7755
done
 
7756
 
 
7757
 
 
7758
for ac_header in dlfcn.h
 
7759
do :
 
7760
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7761
"
 
7762
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7763
  cat >>confdefs.h <<_ACEOF
 
7764
#define HAVE_DLFCN_H 1
 
7765
_ACEOF
 
7766
 
 
7767
fi
 
7768
 
 
7769
done
 
7770
 
 
7771
 
 
7772
 
 
7773
 
 
7774
 
 
7775
# Set options
 
7776
 
 
7777
 
 
7778
 
 
7779
        enable_dlopen=no
 
7780
 
 
7781
 
 
7782
  enable_win32_dll=no
 
7783
 
 
7784
 
 
7785
            # Check whether --enable-shared was given.
 
7786
if test "${enable_shared+set}" = set; then :
 
7787
  enableval=$enable_shared; p=${PACKAGE-default}
 
7788
    case $enableval in
 
7789
    yes) enable_shared=yes ;;
 
7790
    no) enable_shared=no ;;
 
7791
    *)
 
7792
      enable_shared=no
 
7793
      # Look at the argument we got.  We use all the common list separators.
 
7794
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7795
      for pkg in $enableval; do
 
7796
        IFS="$lt_save_ifs"
 
7797
        if test "X$pkg" = "X$p"; then
 
7798
          enable_shared=yes
 
7799
        fi
 
7800
      done
 
7801
      IFS="$lt_save_ifs"
 
7802
      ;;
 
7803
    esac
 
7804
else
 
7805
  enable_shared=yes
 
7806
fi
 
7807
 
 
7808
 
 
7809
 
 
7810
 
 
7811
 
 
7812
 
 
7813
 
 
7814
 
 
7815
 
 
7816
  # Check whether --enable-static was given.
 
7817
if test "${enable_static+set}" = set; then :
 
7818
  enableval=$enable_static; p=${PACKAGE-default}
 
7819
    case $enableval in
 
7820
    yes) enable_static=yes ;;
 
7821
    no) enable_static=no ;;
 
7822
    *)
 
7823
     enable_static=no
 
7824
      # Look at the argument we got.  We use all the common list separators.
 
7825
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7826
      for pkg in $enableval; do
 
7827
        IFS="$lt_save_ifs"
 
7828
        if test "X$pkg" = "X$p"; then
 
7829
          enable_static=yes
 
7830
        fi
 
7831
      done
 
7832
      IFS="$lt_save_ifs"
 
7833
      ;;
 
7834
    esac
 
7835
else
 
7836
  enable_static=yes
 
7837
fi
 
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
# Check whether --with-pic was given.
 
7849
if test "${with_pic+set}" = set; then :
 
7850
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7851
    case $withval in
 
7852
    yes|no) pic_mode=$withval ;;
 
7853
    *)
 
7854
      pic_mode=default
 
7855
      # Look at the argument we got.  We use all the common list separators.
 
7856
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7857
      for lt_pkg in $withval; do
 
7858
        IFS="$lt_save_ifs"
 
7859
        if test "X$lt_pkg" = "X$lt_p"; then
 
7860
          pic_mode=yes
 
7861
        fi
 
7862
      done
 
7863
      IFS="$lt_save_ifs"
 
7864
      ;;
 
7865
    esac
 
7866
else
 
7867
  pic_mode=default
 
7868
fi
 
7869
 
 
7870
 
 
7871
test -z "$pic_mode" && pic_mode=default
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
  # Check whether --enable-fast-install was given.
 
7880
if test "${enable_fast_install+set}" = set; then :
 
7881
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7882
    case $enableval in
 
7883
    yes) enable_fast_install=yes ;;
 
7884
    no) enable_fast_install=no ;;
 
7885
    *)
 
7886
      enable_fast_install=no
 
7887
      # Look at the argument we got.  We use all the common list separators.
 
7888
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7889
      for pkg in $enableval; do
 
7890
        IFS="$lt_save_ifs"
 
7891
        if test "X$pkg" = "X$p"; then
 
7892
          enable_fast_install=yes
 
7893
        fi
 
7894
      done
 
7895
      IFS="$lt_save_ifs"
 
7896
      ;;
 
7897
    esac
 
7898
else
 
7899
  enable_fast_install=yes
 
7900
fi
 
7901
 
 
7902
 
 
7903
 
 
7904
 
 
7905
 
 
7906
 
 
7907
 
 
7908
 
 
7909
 
 
7910
 
 
7911
 
 
7912
# This can be used to rebuild libtool when needed
 
7913
LIBTOOL_DEPS="$ltmain"
 
7914
 
 
7915
# Always use our own libtool.
 
7916
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
test -z "$LN_S" && LN_S="ln -s"
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
 
 
7953
 
 
7954
 
 
7955
 
 
7956
 
 
7957
 
 
7958
 
 
7959
 
 
7960
 
 
7961
 
 
7962
if test -n "${ZSH_VERSION+set}" ; then
 
7963
   setopt NO_GLOB_SUBST
 
7964
fi
 
7965
 
 
7966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7967
$as_echo_n "checking for objdir... " >&6; }
 
7968
if ${lt_cv_objdir+:} false; then :
 
7969
  $as_echo_n "(cached) " >&6
 
7970
else
 
7971
  rm -f .libs 2>/dev/null
 
7972
mkdir .libs 2>/dev/null
 
7973
if test -d .libs; then
 
7974
  lt_cv_objdir=.libs
 
7975
else
 
7976
  # MS-DOS does not allow filenames that begin with a dot.
 
7977
  lt_cv_objdir=_libs
 
7978
fi
 
7979
rmdir .libs 2>/dev/null
 
7980
fi
 
7981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7982
$as_echo "$lt_cv_objdir" >&6; }
 
7983
objdir=$lt_cv_objdir
 
7984
 
 
7985
 
 
7986
 
 
7987
 
 
7988
 
 
7989
cat >>confdefs.h <<_ACEOF
 
7990
#define LT_OBJDIR "$lt_cv_objdir/"
 
7991
_ACEOF
 
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
case $host_os in
 
7997
aix3*)
 
7998
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7999
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8000
  # vanish in a puff of smoke.
 
8001
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8002
    COLLECT_NAMES=
 
8003
    export COLLECT_NAMES
 
8004
  fi
 
8005
  ;;
 
8006
esac
 
8007
 
 
8008
# Global variables:
 
8009
ofile=libtool
 
8010
can_build_shared=yes
 
8011
 
 
8012
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8013
# which needs '.lib').
 
8014
libext=a
 
8015
 
 
8016
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8017
 
 
8018
old_CC="$CC"
 
8019
old_CFLAGS="$CFLAGS"
 
8020
 
 
8021
# Set sane defaults for various variables
 
8022
test -z "$CC" && CC=cc
 
8023
test -z "$LTCC" && LTCC=$CC
 
8024
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8025
test -z "$LD" && LD=ld
 
8026
test -z "$ac_objext" && ac_objext=o
 
8027
 
 
8028
for cc_temp in $compiler""; do
 
8029
  case $cc_temp in
 
8030
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8031
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8032
    \-*) ;;
 
8033
    *) break;;
 
8034
  esac
 
8035
done
 
8036
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8037
 
 
8038
 
 
8039
# Only perform the check for file, if the check method requires it
 
8040
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8041
case $deplibs_check_method in
 
8042
file_magic*)
 
8043
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8044
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8045
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8046
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8047
  $as_echo_n "(cached) " >&6
 
8048
else
 
8049
  case $MAGIC_CMD in
 
8050
[\\/*] |  ?:[\\/]*)
 
8051
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8052
  ;;
 
8053
*)
 
8054
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8055
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8056
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8057
  for ac_dir in $ac_dummy; do
 
8058
    IFS="$lt_save_ifs"
 
8059
    test -z "$ac_dir" && ac_dir=.
 
8060
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8061
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8062
      if test -n "$file_magic_test_file"; then
 
8063
        case $deplibs_check_method in
 
8064
        "file_magic "*)
 
8065
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8066
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8067
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8068
            $EGREP "$file_magic_regex" > /dev/null; then
 
8069
            :
 
8070
          else
 
8071
            cat <<_LT_EOF 1>&2
 
8072
 
 
8073
*** Warning: the command libtool uses to detect shared libraries,
 
8074
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8075
*** The result is that libtool may fail to recognize shared libraries
 
8076
*** as such.  This will affect the creation of libtool libraries that
 
8077
*** depend on shared libraries, but programs linked with such libtool
 
8078
*** libraries will work regardless of this problem.  Nevertheless, you
 
8079
*** may want to report the problem to your system manager and/or to
 
8080
*** bug-libtool@gnu.org
 
8081
 
 
8082
_LT_EOF
 
8083
          fi ;;
 
8084
        esac
 
8085
      fi
 
8086
      break
 
8087
    fi
 
8088
  done
 
8089
  IFS="$lt_save_ifs"
 
8090
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8091
  ;;
 
8092
esac
 
8093
fi
 
8094
 
 
8095
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8096
if test -n "$MAGIC_CMD"; then
 
8097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8098
$as_echo "$MAGIC_CMD" >&6; }
 
8099
else
 
8100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8101
$as_echo "no" >&6; }
 
8102
fi
 
8103
 
 
8104
 
 
8105
 
 
8106
 
 
8107
 
 
8108
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8109
  if test -n "$ac_tool_prefix"; then
 
8110
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8111
$as_echo_n "checking for file... " >&6; }
 
8112
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8113
  $as_echo_n "(cached) " >&6
 
8114
else
 
8115
  case $MAGIC_CMD in
 
8116
[\\/*] |  ?:[\\/]*)
 
8117
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8118
  ;;
 
8119
*)
 
8120
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8121
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8122
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8123
  for ac_dir in $ac_dummy; do
 
8124
    IFS="$lt_save_ifs"
 
8125
    test -z "$ac_dir" && ac_dir=.
 
8126
    if test -f $ac_dir/file; then
 
8127
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8128
      if test -n "$file_magic_test_file"; then
 
8129
        case $deplibs_check_method in
 
8130
        "file_magic "*)
 
8131
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8132
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8133
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8134
            $EGREP "$file_magic_regex" > /dev/null; then
 
8135
            :
 
8136
          else
 
8137
            cat <<_LT_EOF 1>&2
 
8138
 
 
8139
*** Warning: the command libtool uses to detect shared libraries,
 
8140
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8141
*** The result is that libtool may fail to recognize shared libraries
 
8142
*** as such.  This will affect the creation of libtool libraries that
 
8143
*** depend on shared libraries, but programs linked with such libtool
 
8144
*** libraries will work regardless of this problem.  Nevertheless, you
 
8145
*** may want to report the problem to your system manager and/or to
 
8146
*** bug-libtool@gnu.org
 
8147
 
 
8148
_LT_EOF
 
8149
          fi ;;
 
8150
        esac
 
8151
      fi
 
8152
      break
 
8153
    fi
 
8154
  done
 
8155
  IFS="$lt_save_ifs"
 
8156
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8157
  ;;
 
8158
esac
 
8159
fi
 
8160
 
 
8161
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8162
if test -n "$MAGIC_CMD"; then
 
8163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8164
$as_echo "$MAGIC_CMD" >&6; }
 
8165
else
 
8166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8167
$as_echo "no" >&6; }
 
8168
fi
 
8169
 
 
8170
 
 
8171
  else
 
8172
    MAGIC_CMD=:
 
8173
  fi
 
8174
fi
 
8175
 
 
8176
  fi
 
8177
  ;;
 
8178
esac
 
8179
 
 
8180
# Use C for the default configuration in the libtool script
 
8181
 
 
8182
lt_save_CC="$CC"
 
8183
ac_ext=c
 
8184
ac_cpp='$CPP $CPPFLAGS'
 
8185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8188
 
 
8189
 
 
8190
# Source file extension for C test sources.
 
8191
ac_ext=c
 
8192
 
 
8193
# Object file extension for compiled C test sources.
 
8194
objext=o
 
8195
objext=$objext
 
8196
 
 
8197
# Code to be used in simple compile tests
 
8198
lt_simple_compile_test_code="int some_variable = 0;"
 
8199
 
 
8200
# Code to be used in simple link tests
 
8201
lt_simple_link_test_code='int main(){return(0);}'
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
 
 
8209
# If no C compiler was specified, use CC.
 
8210
LTCC=${LTCC-"$CC"}
 
8211
 
 
8212
# If no C compiler flags were specified, use CFLAGS.
 
8213
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8214
 
 
8215
# Allow CC to be a program name with arguments.
 
8216
compiler=$CC
 
8217
 
 
8218
# Save the default compiler, since it gets overwritten when the other
 
8219
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8220
compiler_DEFAULT=$CC
 
8221
 
 
8222
# save warnings/boilerplate of simple test code
 
8223
ac_outfile=conftest.$ac_objext
 
8224
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8225
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8226
_lt_compiler_boilerplate=`cat conftest.err`
 
8227
$RM conftest*
 
8228
 
 
8229
ac_outfile=conftest.$ac_objext
 
8230
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8231
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8232
_lt_linker_boilerplate=`cat conftest.err`
 
8233
$RM -r conftest*
 
8234
 
 
8235
 
 
8236
## CAVEAT EMPTOR:
 
8237
## There is no encapsulation within the following macros, do not change
 
8238
## the running order or otherwise move them around unless you know exactly
 
8239
## what you are doing...
 
8240
if test -n "$compiler"; then
 
8241
 
 
8242
lt_prog_compiler_no_builtin_flag=
 
8243
 
 
8244
if test "$GCC" = yes; then
 
8245
  case $cc_basename in
 
8246
  nvcc*)
 
8247
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8248
  *)
 
8249
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8250
  esac
 
8251
 
 
8252
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8253
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8254
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8255
  $as_echo_n "(cached) " >&6
 
8256
else
 
8257
  lt_cv_prog_compiler_rtti_exceptions=no
 
8258
   ac_outfile=conftest.$ac_objext
 
8259
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8260
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8261
   # Insert the option either (1) after the last *FLAGS variable, or
 
8262
   # (2) before a word containing "conftest.", or (3) at the end.
 
8263
   # Note that $ac_compile itself does not contain backslashes and begins
 
8264
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8265
   # The option is referenced via a variable to avoid confusing sed.
 
8266
   lt_compile=`echo "$ac_compile" | $SED \
 
8267
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8268
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8269
   -e 's:$: $lt_compiler_flag:'`
 
8270
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8271
   (eval "$lt_compile" 2>conftest.err)
 
8272
   ac_status=$?
 
8273
   cat conftest.err >&5
 
8274
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8275
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8276
     # The compiler can only warn and ignore the option if not recognized
 
8277
     # So say no if there are warnings other than the usual output.
 
8278
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8279
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8280
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8281
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8282
     fi
 
8283
   fi
 
8284
   $RM conftest*
 
8285
 
 
8286
fi
 
8287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8288
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8289
 
 
8290
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8291
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8292
else
 
8293
    :
 
8294
fi
 
8295
 
 
8296
fi
 
8297
 
 
8298
 
 
8299
 
 
8300
 
 
8301
 
 
8302
 
 
8303
  lt_prog_compiler_wl=
 
8304
lt_prog_compiler_pic=
 
8305
lt_prog_compiler_static=
 
8306
 
 
8307
 
 
8308
  if test "$GCC" = yes; then
 
8309
    lt_prog_compiler_wl='-Wl,'
 
8310
    lt_prog_compiler_static='-static'
 
8311
 
 
8312
    case $host_os in
 
8313
      aix*)
 
8314
      # All AIX code is PIC.
 
8315
      if test "$host_cpu" = ia64; then
 
8316
        # AIX 5 now supports IA64 processor
 
8317
        lt_prog_compiler_static='-Bstatic'
 
8318
      fi
 
8319
      ;;
 
8320
 
 
8321
    amigaos*)
 
8322
      case $host_cpu in
 
8323
      powerpc)
 
8324
            # see comment about AmigaOS4 .so support
 
8325
            lt_prog_compiler_pic='-fPIC'
 
8326
        ;;
 
8327
      m68k)
 
8328
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8329
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8330
            # like `-m68040'.
 
8331
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8332
        ;;
 
8333
      esac
 
8334
      ;;
 
8335
 
 
8336
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8337
      # PIC is the default for these OSes.
 
8338
      ;;
 
8339
 
 
8340
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8341
      # This hack is so that the source file can tell whether it is being
 
8342
      # built for inclusion in a dll (and should export symbols for example).
 
8343
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8344
      # (--disable-auto-import) libraries
 
8345
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8346
      ;;
 
8347
 
 
8348
    darwin* | rhapsody*)
 
8349
      # PIC is the default on this platform
 
8350
      # Common symbols not allowed in MH_DYLIB files
 
8351
      lt_prog_compiler_pic='-fno-common'
 
8352
      ;;
 
8353
 
 
8354
    haiku*)
 
8355
      # PIC is the default for Haiku.
 
8356
      # The "-static" flag exists, but is broken.
 
8357
      lt_prog_compiler_static=
 
8358
      ;;
 
8359
 
 
8360
    hpux*)
 
8361
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8362
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8363
      # sets the default TLS model and affects inlining.
 
8364
      case $host_cpu in
 
8365
      hppa*64*)
 
8366
        # +Z the default
 
8367
        ;;
 
8368
      *)
 
8369
        lt_prog_compiler_pic='-fPIC'
 
8370
        ;;
 
8371
      esac
 
8372
      ;;
 
8373
 
 
8374
    interix[3-9]*)
 
8375
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8376
      # Instead, we relocate shared libraries at runtime.
 
8377
      ;;
 
8378
 
 
8379
    msdosdjgpp*)
 
8380
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8381
      # on systems that don't support them.
 
8382
      lt_prog_compiler_can_build_shared=no
 
8383
      enable_shared=no
 
8384
      ;;
 
8385
 
 
8386
    *nto* | *qnx*)
 
8387
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8388
      # it will coredump.
 
8389
      lt_prog_compiler_pic='-fPIC -shared'
 
8390
      ;;
 
8391
 
 
8392
    sysv4*MP*)
 
8393
      if test -d /usr/nec; then
 
8394
        lt_prog_compiler_pic=-Kconform_pic
 
8395
      fi
 
8396
      ;;
 
8397
 
 
8398
    *)
 
8399
      lt_prog_compiler_pic='-fPIC'
 
8400
      ;;
 
8401
    esac
 
8402
 
 
8403
    case $cc_basename in
 
8404
    nvcc*) # Cuda Compiler Driver 2.2
 
8405
      lt_prog_compiler_wl='-Xlinker '
 
8406
      if test -n "$lt_prog_compiler_pic"; then
 
8407
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8408
      fi
 
8409
      ;;
 
8410
    esac
 
8411
  else
 
8412
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8413
    case $host_os in
 
8414
    aix*)
 
8415
      lt_prog_compiler_wl='-Wl,'
 
8416
      if test "$host_cpu" = ia64; then
 
8417
        # AIX 5 now supports IA64 processor
 
8418
        lt_prog_compiler_static='-Bstatic'
 
8419
      else
 
8420
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8421
      fi
 
8422
      ;;
 
8423
 
 
8424
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8425
      # This hack is so that the source file can tell whether it is being
 
8426
      # built for inclusion in a dll (and should export symbols for example).
 
8427
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8428
      ;;
 
8429
 
 
8430
    hpux9* | hpux10* | hpux11*)
 
8431
      lt_prog_compiler_wl='-Wl,'
 
8432
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8433
      # not for PA HP-UX.
 
8434
      case $host_cpu in
 
8435
      hppa*64*|ia64*)
 
8436
        # +Z the default
 
8437
        ;;
 
8438
      *)
 
8439
        lt_prog_compiler_pic='+Z'
 
8440
        ;;
 
8441
      esac
 
8442
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8443
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8444
      ;;
 
8445
 
 
8446
    irix5* | irix6* | nonstopux*)
 
8447
      lt_prog_compiler_wl='-Wl,'
 
8448
      # PIC (with -KPIC) is the default.
 
8449
      lt_prog_compiler_static='-non_shared'
 
8450
      ;;
 
8451
 
 
8452
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
8453
      case $cc_basename in
 
8454
      # old Intel for x86_64 which still supported -KPIC.
 
8455
      ecc*)
 
8456
        lt_prog_compiler_wl='-Wl,'
 
8457
        lt_prog_compiler_pic='-KPIC'
 
8458
        lt_prog_compiler_static='-static'
 
8459
        ;;
 
8460
      # icc used to be incompatible with GCC.
 
8461
      # ICC 10 doesn't accept -KPIC any more.
 
8462
      icc* | ifort*)
 
8463
        lt_prog_compiler_wl='-Wl,'
 
8464
        lt_prog_compiler_pic='-fPIC'
 
8465
        lt_prog_compiler_static='-static'
 
8466
        ;;
 
8467
      # Lahey Fortran 8.1.
 
8468
      lf95*)
 
8469
        lt_prog_compiler_wl='-Wl,'
 
8470
        lt_prog_compiler_pic='--shared'
 
8471
        lt_prog_compiler_static='--static'
 
8472
        ;;
 
8473
      nagfor*)
 
8474
        # NAG Fortran compiler
 
8475
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8476
        lt_prog_compiler_pic='-PIC'
 
8477
        lt_prog_compiler_static='-Bstatic'
 
8478
        ;;
 
8479
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8480
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8481
        # which looks to be a dead project)
 
8482
        lt_prog_compiler_wl='-Wl,'
 
8483
        lt_prog_compiler_pic='-fpic'
 
8484
        lt_prog_compiler_static='-Bstatic'
 
8485
        ;;
 
8486
      ccc*)
 
8487
        lt_prog_compiler_wl='-Wl,'
 
8488
        # All Alpha code is PIC.
 
8489
        lt_prog_compiler_static='-non_shared'
 
8490
        ;;
 
8491
      xl* | bgxl* | bgf* | mpixl*)
 
8492
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8493
        lt_prog_compiler_wl='-Wl,'
 
8494
        lt_prog_compiler_pic='-qpic'
 
8495
        lt_prog_compiler_static='-qstaticlink'
 
8496
        ;;
 
8497
      *)
 
8498
        case `$CC -V 2>&1 | sed 5q` in
 
8499
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8500
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8501
          lt_prog_compiler_pic='-KPIC'
 
8502
          lt_prog_compiler_static='-Bstatic'
 
8503
          lt_prog_compiler_wl=''
 
8504
          ;;
 
8505
        *Sun\ F* | *Sun*Fortran*)
 
8506
          lt_prog_compiler_pic='-KPIC'
 
8507
          lt_prog_compiler_static='-Bstatic'
 
8508
          lt_prog_compiler_wl='-Qoption ld '
 
8509
          ;;
 
8510
        *Sun\ C*)
 
8511
          # Sun C 5.9
 
8512
          lt_prog_compiler_pic='-KPIC'
 
8513
          lt_prog_compiler_static='-Bstatic'
 
8514
          lt_prog_compiler_wl='-Wl,'
 
8515
          ;;
 
8516
        *Intel*\ [CF]*Compiler*)
 
8517
          lt_prog_compiler_wl='-Wl,'
 
8518
          lt_prog_compiler_pic='-fPIC'
 
8519
          lt_prog_compiler_static='-static'
 
8520
          ;;
 
8521
        *Portland\ Group*)
 
8522
          lt_prog_compiler_wl='-Wl,'
 
8523
          lt_prog_compiler_pic='-fpic'
 
8524
          lt_prog_compiler_static='-Bstatic'
 
8525
          ;;
 
8526
        esac
 
8527
        ;;
 
8528
      esac
 
8529
      ;;
 
8530
 
 
8531
    newsos6)
 
8532
      lt_prog_compiler_pic='-KPIC'
 
8533
      lt_prog_compiler_static='-Bstatic'
 
8534
      ;;
 
8535
 
 
8536
    *nto* | *qnx*)
 
8537
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8538
      # it will coredump.
 
8539
      lt_prog_compiler_pic='-fPIC -shared'
 
8540
      ;;
 
8541
 
 
8542
    osf3* | osf4* | osf5*)
 
8543
      lt_prog_compiler_wl='-Wl,'
 
8544
      # All OSF/1 code is PIC.
 
8545
      lt_prog_compiler_static='-non_shared'
 
8546
      ;;
 
8547
 
 
8548
    rdos*)
 
8549
      lt_prog_compiler_static='-non_shared'
 
8550
      ;;
 
8551
 
 
8552
    solaris*)
 
8553
      lt_prog_compiler_pic='-KPIC'
 
8554
      lt_prog_compiler_static='-Bstatic'
 
8555
      case $cc_basename in
 
8556
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8557
        lt_prog_compiler_wl='-Qoption ld ';;
 
8558
      *)
 
8559
        lt_prog_compiler_wl='-Wl,';;
 
8560
      esac
 
8561
      ;;
 
8562
 
 
8563
    sunos4*)
 
8564
      lt_prog_compiler_wl='-Qoption ld '
 
8565
      lt_prog_compiler_pic='-PIC'
 
8566
      lt_prog_compiler_static='-Bstatic'
 
8567
      ;;
 
8568
 
 
8569
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8570
      lt_prog_compiler_wl='-Wl,'
 
8571
      lt_prog_compiler_pic='-KPIC'
 
8572
      lt_prog_compiler_static='-Bstatic'
 
8573
      ;;
 
8574
 
 
8575
    sysv4*MP*)
 
8576
      if test -d /usr/nec ;then
 
8577
        lt_prog_compiler_pic='-Kconform_pic'
 
8578
        lt_prog_compiler_static='-Bstatic'
 
8579
      fi
 
8580
      ;;
 
8581
 
 
8582
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8583
      lt_prog_compiler_wl='-Wl,'
 
8584
      lt_prog_compiler_pic='-KPIC'
 
8585
      lt_prog_compiler_static='-Bstatic'
 
8586
      ;;
 
8587
 
 
8588
    unicos*)
 
8589
      lt_prog_compiler_wl='-Wl,'
 
8590
      lt_prog_compiler_can_build_shared=no
 
8591
      ;;
 
8592
 
 
8593
    uts4*)
 
8594
      lt_prog_compiler_pic='-pic'
 
8595
      lt_prog_compiler_static='-Bstatic'
 
8596
      ;;
 
8597
 
 
8598
    *)
 
8599
      lt_prog_compiler_can_build_shared=no
 
8600
      ;;
 
8601
    esac
 
8602
  fi
 
8603
 
 
8604
case $host_os in
 
8605
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8606
  *djgpp*)
 
8607
    lt_prog_compiler_pic=
 
8608
    ;;
 
8609
  *)
 
8610
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8611
    ;;
 
8612
esac
 
8613
 
 
8614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8615
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8616
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8617
  $as_echo_n "(cached) " >&6
 
8618
else
 
8619
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8620
fi
 
8621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8622
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8623
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8624
 
 
8625
#
 
8626
# Check to make sure the PIC flag actually works.
 
8627
#
 
8628
if test -n "$lt_prog_compiler_pic"; then
 
8629
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8630
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8631
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8632
  $as_echo_n "(cached) " >&6
 
8633
else
 
8634
  lt_cv_prog_compiler_pic_works=no
 
8635
   ac_outfile=conftest.$ac_objext
 
8636
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8637
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8638
   # Insert the option either (1) after the last *FLAGS variable, or
 
8639
   # (2) before a word containing "conftest.", or (3) at the end.
 
8640
   # Note that $ac_compile itself does not contain backslashes and begins
 
8641
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8642
   # The option is referenced via a variable to avoid confusing sed.
 
8643
   lt_compile=`echo "$ac_compile" | $SED \
 
8644
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8645
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8646
   -e 's:$: $lt_compiler_flag:'`
 
8647
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8648
   (eval "$lt_compile" 2>conftest.err)
 
8649
   ac_status=$?
 
8650
   cat conftest.err >&5
 
8651
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8652
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8653
     # The compiler can only warn and ignore the option if not recognized
 
8654
     # So say no if there are warnings other than the usual output.
 
8655
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8656
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8657
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8658
       lt_cv_prog_compiler_pic_works=yes
 
8659
     fi
 
8660
   fi
 
8661
   $RM conftest*
 
8662
 
 
8663
fi
 
8664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8665
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8666
 
 
8667
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8668
    case $lt_prog_compiler_pic in
 
8669
     "" | " "*) ;;
 
8670
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8671
     esac
 
8672
else
 
8673
    lt_prog_compiler_pic=
 
8674
     lt_prog_compiler_can_build_shared=no
 
8675
fi
 
8676
 
 
8677
fi
 
8678
 
 
8679
 
 
8680
 
 
8681
 
 
8682
 
 
8683
 
 
8684
 
 
8685
 
 
8686
 
 
8687
 
 
8688
 
 
8689
#
 
8690
# Check to make sure the static flag actually works.
 
8691
#
 
8692
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8694
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8695
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8696
  $as_echo_n "(cached) " >&6
 
8697
else
 
8698
  lt_cv_prog_compiler_static_works=no
 
8699
   save_LDFLAGS="$LDFLAGS"
 
8700
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8701
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8702
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8703
     # The linker can only warn and ignore the option if not recognized
 
8704
     # So say no if there are warnings
 
8705
     if test -s conftest.err; then
 
8706
       # Append any errors to the config.log.
 
8707
       cat conftest.err 1>&5
 
8708
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8709
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8710
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8711
         lt_cv_prog_compiler_static_works=yes
 
8712
       fi
 
8713
     else
 
8714
       lt_cv_prog_compiler_static_works=yes
 
8715
     fi
 
8716
   fi
 
8717
   $RM -r conftest*
 
8718
   LDFLAGS="$save_LDFLAGS"
 
8719
 
 
8720
fi
 
8721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8722
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8723
 
 
8724
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8725
    :
 
8726
else
 
8727
    lt_prog_compiler_static=
 
8728
fi
 
8729
 
 
8730
 
 
8731
 
 
8732
 
 
8733
 
 
8734
 
 
8735
 
 
8736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8737
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8738
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8739
  $as_echo_n "(cached) " >&6
 
8740
else
 
8741
  lt_cv_prog_compiler_c_o=no
 
8742
   $RM -r conftest 2>/dev/null
 
8743
   mkdir conftest
 
8744
   cd conftest
 
8745
   mkdir out
 
8746
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8747
 
 
8748
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8749
   # Insert the option either (1) after the last *FLAGS variable, or
 
8750
   # (2) before a word containing "conftest.", or (3) at the end.
 
8751
   # Note that $ac_compile itself does not contain backslashes and begins
 
8752
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8753
   lt_compile=`echo "$ac_compile" | $SED \
 
8754
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8755
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8756
   -e 's:$: $lt_compiler_flag:'`
 
8757
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8758
   (eval "$lt_compile" 2>out/conftest.err)
 
8759
   ac_status=$?
 
8760
   cat out/conftest.err >&5
 
8761
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8762
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8763
   then
 
8764
     # The compiler can only warn and ignore the option if not recognized
 
8765
     # So say no if there are warnings
 
8766
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8767
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8768
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8769
       lt_cv_prog_compiler_c_o=yes
 
8770
     fi
 
8771
   fi
 
8772
   chmod u+w . 2>&5
 
8773
   $RM conftest*
 
8774
   # SGI C++ compiler will create directory out/ii_files/ for
 
8775
   # template instantiation
 
8776
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8777
   $RM out/* && rmdir out
 
8778
   cd ..
 
8779
   $RM -r conftest
 
8780
   $RM conftest*
 
8781
 
 
8782
fi
 
8783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8784
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8792
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8793
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8794
  $as_echo_n "(cached) " >&6
 
8795
else
 
8796
  lt_cv_prog_compiler_c_o=no
 
8797
   $RM -r conftest 2>/dev/null
 
8798
   mkdir conftest
 
8799
   cd conftest
 
8800
   mkdir out
 
8801
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8802
 
 
8803
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8804
   # Insert the option either (1) after the last *FLAGS variable, or
 
8805
   # (2) before a word containing "conftest.", or (3) at the end.
 
8806
   # Note that $ac_compile itself does not contain backslashes and begins
 
8807
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8808
   lt_compile=`echo "$ac_compile" | $SED \
 
8809
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8810
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8811
   -e 's:$: $lt_compiler_flag:'`
 
8812
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8813
   (eval "$lt_compile" 2>out/conftest.err)
 
8814
   ac_status=$?
 
8815
   cat out/conftest.err >&5
 
8816
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8817
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8818
   then
 
8819
     # The compiler can only warn and ignore the option if not recognized
 
8820
     # So say no if there are warnings
 
8821
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8822
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8823
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8824
       lt_cv_prog_compiler_c_o=yes
 
8825
     fi
 
8826
   fi
 
8827
   chmod u+w . 2>&5
 
8828
   $RM conftest*
 
8829
   # SGI C++ compiler will create directory out/ii_files/ for
 
8830
   # template instantiation
 
8831
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8832
   $RM out/* && rmdir out
 
8833
   cd ..
 
8834
   $RM -r conftest
 
8835
   $RM conftest*
 
8836
 
 
8837
fi
 
8838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8839
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8840
 
 
8841
 
 
8842
 
 
8843
 
 
8844
hard_links="nottested"
 
8845
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8846
  # do not overwrite the value of need_locks provided by the user
 
8847
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8848
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8849
  hard_links=yes
 
8850
  $RM conftest*
 
8851
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8852
  touch conftest.a
 
8853
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8854
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8856
$as_echo "$hard_links" >&6; }
 
8857
  if test "$hard_links" = no; then
 
8858
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8859
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8860
    need_locks=warn
 
8861
  fi
 
8862
else
 
8863
  need_locks=no
 
8864
fi
 
8865
 
 
8866
 
 
8867
 
 
8868
 
 
8869
 
 
8870
 
 
8871
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8872
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8873
 
 
8874
  runpath_var=
 
8875
  allow_undefined_flag=
 
8876
  always_export_symbols=no
 
8877
  archive_cmds=
 
8878
  archive_expsym_cmds=
 
8879
  compiler_needs_object=no
 
8880
  enable_shared_with_static_runtimes=no
 
8881
  export_dynamic_flag_spec=
 
8882
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8883
  hardcode_automatic=no
 
8884
  hardcode_direct=no
 
8885
  hardcode_direct_absolute=no
 
8886
  hardcode_libdir_flag_spec=
 
8887
  hardcode_libdir_separator=
 
8888
  hardcode_minus_L=no
 
8889
  hardcode_shlibpath_var=unsupported
 
8890
  inherit_rpath=no
 
8891
  link_all_deplibs=unknown
 
8892
  module_cmds=
 
8893
  module_expsym_cmds=
 
8894
  old_archive_from_new_cmds=
 
8895
  old_archive_from_expsyms_cmds=
 
8896
  thread_safe_flag_spec=
 
8897
  whole_archive_flag_spec=
 
8898
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8899
  # included in the symbol list
 
8900
  include_expsyms=
 
8901
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8902
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8903
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8904
  # as well as any symbol that contains `d'.
 
8905
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8906
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8907
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8908
  # the symbol is explicitly referenced.  Since portable code cannot
 
8909
  # rely on this symbol name, it's probably fine to never include it in
 
8910
  # preloaded symbol tables.
 
8911
  # Exclude shared library initialization/finalization symbols.
 
8912
  extract_expsyms_cmds=
 
8913
 
 
8914
  case $host_os in
 
8915
  cygwin* | mingw* | pw32* | cegcc*)
 
8916
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8917
    # When not using gcc, we currently assume that we are using
 
8918
    # Microsoft Visual C++.
 
8919
    if test "$GCC" != yes; then
 
8920
      with_gnu_ld=no
 
8921
    fi
 
8922
    ;;
 
8923
  interix*)
 
8924
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8925
    with_gnu_ld=yes
 
8926
    ;;
 
8927
  openbsd*)
 
8928
    with_gnu_ld=no
 
8929
    ;;
 
8930
  linux* | k*bsd*-gnu | gnu*)
 
8931
    link_all_deplibs=no
 
8932
    ;;
 
8933
  esac
 
8934
 
 
8935
  ld_shlibs=yes
 
8936
 
 
8937
  # On some targets, GNU ld is compatible enough with the native linker
 
8938
  # that we're better off using the native interface for both.
 
8939
  lt_use_gnu_ld_interface=no
 
8940
  if test "$with_gnu_ld" = yes; then
 
8941
    case $host_os in
 
8942
      aix*)
 
8943
        # The AIX port of GNU ld has always aspired to compatibility
 
8944
        # with the native linker.  However, as the warning in the GNU ld
 
8945
        # block says, versions before 2.19.5* couldn't really create working
 
8946
        # shared libraries, regardless of the interface used.
 
8947
        case `$LD -v 2>&1` in
 
8948
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8949
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8950
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8951
          *)
 
8952
            lt_use_gnu_ld_interface=yes
 
8953
            ;;
 
8954
        esac
 
8955
        ;;
 
8956
      *)
 
8957
        lt_use_gnu_ld_interface=yes
 
8958
        ;;
 
8959
    esac
 
8960
  fi
 
8961
 
 
8962
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8963
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8964
    wlarc='${wl}'
 
8965
 
 
8966
    # Set some defaults for GNU ld with shared library support. These
 
8967
    # are reset later if shared libraries are not supported. Putting them
 
8968
    # here allows them to be overridden if necessary.
 
8969
    runpath_var=LD_RUN_PATH
 
8970
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8971
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8972
    # ancient GNU ld didn't support --whole-archive et. al.
 
8973
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8974
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8975
    else
 
8976
      whole_archive_flag_spec=
 
8977
    fi
 
8978
    supports_anon_versioning=no
 
8979
    case `$LD -v 2>&1` in
 
8980
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8981
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8982
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8983
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8984
      *\ 2.11.*) ;; # other 2.11 versions
 
8985
      *) supports_anon_versioning=yes ;;
 
8986
    esac
 
8987
 
 
8988
    # See if GNU ld supports shared libraries.
 
8989
    case $host_os in
 
8990
    aix[3-9]*)
 
8991
      # On AIX/PPC, the GNU linker is very broken
 
8992
      if test "$host_cpu" != ia64; then
 
8993
        ld_shlibs=no
 
8994
        cat <<_LT_EOF 1>&2
 
8995
 
 
8996
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8997
*** to be unable to reliably create shared libraries on AIX.
 
8998
*** Therefore, libtool is disabling shared libraries support.  If you
 
8999
*** really care for shared libraries, you may want to install binutils
 
9000
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9001
*** You will then need to restart the configuration process.
 
9002
 
 
9003
_LT_EOF
 
9004
      fi
 
9005
      ;;
 
9006
 
 
9007
    amigaos*)
 
9008
      case $host_cpu in
 
9009
      powerpc)
 
9010
            # see comment about AmigaOS4 .so support
 
9011
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9012
            archive_expsym_cmds=''
 
9013
        ;;
 
9014
      m68k)
 
9015
            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)'
 
9016
            hardcode_libdir_flag_spec='-L$libdir'
 
9017
            hardcode_minus_L=yes
 
9018
        ;;
 
9019
      esac
 
9020
      ;;
 
9021
 
 
9022
    beos*)
 
9023
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9024
        allow_undefined_flag=unsupported
 
9025
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9026
        # support --undefined.  This deserves some investigation.  FIXME
 
9027
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9028
      else
 
9029
        ld_shlibs=no
 
9030
      fi
 
9031
      ;;
 
9032
 
 
9033
    cygwin* | mingw* | pw32* | cegcc*)
 
9034
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9035
      # as there is no search path for DLLs.
 
9036
      hardcode_libdir_flag_spec='-L$libdir'
 
9037
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9038
      allow_undefined_flag=unsupported
 
9039
      always_export_symbols=no
 
9040
      enable_shared_with_static_runtimes=yes
 
9041
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9042
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9043
 
 
9044
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9045
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9046
        # If the export-symbols file already is a .def file (1st line
 
9047
        # is EXPORTS), use it as is; otherwise, prepend...
 
9048
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9049
          cp $export_symbols $output_objdir/$soname.def;
 
9050
        else
 
9051
          echo EXPORTS > $output_objdir/$soname.def;
 
9052
          cat $export_symbols >> $output_objdir/$soname.def;
 
9053
        fi~
 
9054
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9055
      else
 
9056
        ld_shlibs=no
 
9057
      fi
 
9058
      ;;
 
9059
 
 
9060
    haiku*)
 
9061
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9062
      link_all_deplibs=yes
 
9063
      ;;
 
9064
 
 
9065
    interix[3-9]*)
 
9066
      hardcode_direct=no
 
9067
      hardcode_shlibpath_var=no
 
9068
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9069
      export_dynamic_flag_spec='${wl}-E'
 
9070
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9071
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9072
      # default) and relocated if they conflict, which is a slow very memory
 
9073
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9074
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9075
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9076
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9077
      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'
 
9078
      ;;
 
9079
 
 
9080
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9081
      tmp_diet=no
 
9082
      if test "$host_os" = linux-dietlibc; then
 
9083
        case $cc_basename in
 
9084
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9085
        esac
 
9086
      fi
 
9087
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9088
         && test "$tmp_diet" = no
 
9089
      then
 
9090
        tmp_addflag=' $pic_flag'
 
9091
        tmp_sharedflag='-shared'
 
9092
        case $cc_basename,$host_cpu in
 
9093
        pgcc*)                          # Portland Group C compiler
 
9094
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9095
          tmp_addflag=' $pic_flag'
 
9096
          ;;
 
9097
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9098
                                        # Portland Group f77 and f90 compilers
 
9099
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9100
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9101
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9102
          tmp_addflag=' -i_dynamic' ;;
 
9103
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9104
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9105
        ifc* | ifort*)                  # Intel Fortran compiler
 
9106
          tmp_addflag=' -nofor_main' ;;
 
9107
        lf95*)                          # Lahey Fortran 8.1
 
9108
          whole_archive_flag_spec=
 
9109
          tmp_sharedflag='--shared' ;;
 
9110
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9111
          tmp_sharedflag='-qmkshrobj'
 
9112
          tmp_addflag= ;;
 
9113
        nvcc*)  # Cuda Compiler Driver 2.2
 
9114
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9115
          compiler_needs_object=yes
 
9116
          ;;
 
9117
        esac
 
9118
        case `$CC -V 2>&1 | sed 5q` in
 
9119
        *Sun\ C*)                       # Sun C 5.9
 
9120
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9121
          compiler_needs_object=yes
 
9122
          tmp_sharedflag='-G' ;;
 
9123
        *Sun\ F*)                       # Sun Fortran 8.3
 
9124
          tmp_sharedflag='-G' ;;
 
9125
        esac
 
9126
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9127
 
 
9128
        if test "x$supports_anon_versioning" = xyes; then
 
9129
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9130
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9131
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9132
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9133
        fi
 
9134
 
 
9135
        case $cc_basename in
 
9136
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9137
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9138
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9139
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9140
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9141
          if test "x$supports_anon_versioning" = xyes; then
 
9142
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9143
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9144
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9145
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9146
          fi
 
9147
          ;;
 
9148
        esac
 
9149
      else
 
9150
        ld_shlibs=no
 
9151
      fi
 
9152
      ;;
 
9153
 
 
9154
    netbsd* | netbsdelf*-gnu)
 
9155
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9156
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9157
        wlarc=
 
9158
      else
 
9159
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9160
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9161
      fi
 
9162
      ;;
 
9163
 
 
9164
    solaris*)
 
9165
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9166
        ld_shlibs=no
 
9167
        cat <<_LT_EOF 1>&2
 
9168
 
 
9169
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9170
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9171
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9172
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9173
*** your PATH or compiler configuration so that the native linker is
 
9174
*** used, and then restart.
 
9175
 
 
9176
_LT_EOF
 
9177
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9178
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9179
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9180
      else
 
9181
        ld_shlibs=no
 
9182
      fi
 
9183
      ;;
 
9184
 
 
9185
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9186
      case `$LD -v 2>&1` in
 
9187
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9188
        ld_shlibs=no
 
9189
        cat <<_LT_EOF 1>&2
 
9190
 
 
9191
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9192
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9193
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9194
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9195
*** your PATH or compiler configuration so that the native linker is
 
9196
*** used, and then restart.
 
9197
 
 
9198
_LT_EOF
 
9199
        ;;
 
9200
        *)
 
9201
          # For security reasons, it is highly recommended that you always
 
9202
          # use absolute paths for naming shared libraries, and exclude the
 
9203
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9204
          # requires that you compile everything twice, which is a pain.
 
9205
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9206
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9207
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9208
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9209
          else
 
9210
            ld_shlibs=no
 
9211
          fi
 
9212
        ;;
 
9213
      esac
 
9214
      ;;
 
9215
 
 
9216
    sunos4*)
 
9217
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9218
      wlarc=
 
9219
      hardcode_direct=yes
 
9220
      hardcode_shlibpath_var=no
 
9221
      ;;
 
9222
 
 
9223
    *)
 
9224
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9225
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9226
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9227
      else
 
9228
        ld_shlibs=no
 
9229
      fi
 
9230
      ;;
 
9231
    esac
 
9232
 
 
9233
    if test "$ld_shlibs" = no; then
 
9234
      runpath_var=
 
9235
      hardcode_libdir_flag_spec=
 
9236
      export_dynamic_flag_spec=
 
9237
      whole_archive_flag_spec=
 
9238
    fi
 
9239
  else
 
9240
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9241
    case $host_os in
 
9242
    aix3*)
 
9243
      allow_undefined_flag=unsupported
 
9244
      always_export_symbols=yes
 
9245
      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'
 
9246
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9247
      # are no directories specified by -L.
 
9248
      hardcode_minus_L=yes
 
9249
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9250
        # Neither direct hardcoding nor static linking is supported with a
 
9251
        # broken collect2.
 
9252
        hardcode_direct=unsupported
 
9253
      fi
 
9254
      ;;
 
9255
 
 
9256
    aix[4-9]*)
 
9257
      if test "$host_cpu" = ia64; then
 
9258
        # On IA64, the linker does run time linking by default, so we don't
 
9259
        # have to do anything special.
 
9260
        aix_use_runtimelinking=no
 
9261
        exp_sym_flag='-Bexport'
 
9262
        no_entry_flag=""
 
9263
      else
 
9264
        # If we're using GNU nm, then we don't want the "-C" option.
 
9265
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9266
        # Also, AIX nm treats weak defined symbols like other global
 
9267
        # defined symbols, whereas GNU nm marks them as "W".
 
9268
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9269
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9270
        else
 
9271
          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'
 
9272
        fi
 
9273
        aix_use_runtimelinking=no
 
9274
 
 
9275
        # Test if we are trying to use run time linking or normal
 
9276
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9277
        # need to do runtime linking.
 
9278
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9279
          for ld_flag in $LDFLAGS; do
 
9280
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9281
            aix_use_runtimelinking=yes
 
9282
            break
 
9283
          fi
 
9284
          done
 
9285
          ;;
 
9286
        esac
 
9287
 
 
9288
        exp_sym_flag='-bexport'
 
9289
        no_entry_flag='-bnoentry'
 
9290
      fi
 
9291
 
 
9292
      # When large executables or shared objects are built, AIX ld can
 
9293
      # have problems creating the table of contents.  If linking a library
 
9294
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9295
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9296
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9297
 
 
9298
      archive_cmds=''
 
9299
      hardcode_direct=yes
 
9300
      hardcode_direct_absolute=yes
 
9301
      hardcode_libdir_separator=':'
 
9302
      link_all_deplibs=yes
 
9303
      file_list_spec='${wl}-f,'
 
9304
 
 
9305
      if test "$GCC" = yes; then
 
9306
        case $host_os in aix4.[012]|aix4.[012].*)
 
9307
        # We only want to do this on AIX 4.2 and lower, the check
 
9308
        # below for broken collect2 doesn't work under 4.3+
 
9309
          collect2name=`${CC} -print-prog-name=collect2`
 
9310
          if test -f "$collect2name" &&
 
9311
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9312
          then
 
9313
          # We have reworked collect2
 
9314
          :
 
9315
          else
 
9316
          # We have old collect2
 
9317
          hardcode_direct=unsupported
 
9318
          # It fails to find uninstalled libraries when the uninstalled
 
9319
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9320
          # to unsupported forces relinking
 
9321
          hardcode_minus_L=yes
 
9322
          hardcode_libdir_flag_spec='-L$libdir'
 
9323
          hardcode_libdir_separator=
 
9324
          fi
 
9325
          ;;
 
9326
        esac
 
9327
        shared_flag='-shared'
 
9328
        if test "$aix_use_runtimelinking" = yes; then
 
9329
          shared_flag="$shared_flag "'${wl}-G'
 
9330
        fi
 
9331
        link_all_deplibs=no
 
9332
      else
 
9333
        # not using gcc
 
9334
        if test "$host_cpu" = ia64; then
 
9335
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9336
        # chokes on -Wl,-G. The following line is correct:
 
9337
          shared_flag='-G'
 
9338
        else
 
9339
          if test "$aix_use_runtimelinking" = yes; then
 
9340
            shared_flag='${wl}-G'
 
9341
          else
 
9342
            shared_flag='${wl}-bM:SRE'
 
9343
          fi
 
9344
        fi
 
9345
      fi
 
9346
 
 
9347
      export_dynamic_flag_spec='${wl}-bexpall'
 
9348
      # It seems that -bexpall does not export symbols beginning with
 
9349
      # underscore (_), so it is better to generate a list of symbols to export.
 
9350
      always_export_symbols=yes
 
9351
      if test "$aix_use_runtimelinking" = yes; then
 
9352
        # Warning - without using the other runtime loading flags (-brtl),
 
9353
        # -berok will link without error, but may produce a broken library.
 
9354
        allow_undefined_flag='-berok'
 
9355
        # Determine the default libpath from the value encoded in an
 
9356
        # empty executable.
 
9357
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9358
  aix_libpath=$lt_cv_aix_libpath
 
9359
else
 
9360
  if ${lt_cv_aix_libpath_+:} false; then :
 
9361
  $as_echo_n "(cached) " >&6
 
9362
else
 
9363
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9364
/* end confdefs.h.  */
 
9365
 
 
9366
int
 
9367
main ()
 
9368
{
 
9369
 
 
9370
  ;
 
9371
  return 0;
 
9372
}
 
9373
_ACEOF
 
9374
if ac_fn_c_try_link "$LINENO"; then :
 
9375
 
 
9376
  lt_aix_libpath_sed='
 
9377
      /Import File Strings/,/^$/ {
 
9378
          /^0/ {
 
9379
              s/^0  *\([^ ]*\) *$/\1/
 
9380
              p
 
9381
          }
 
9382
      }'
 
9383
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9384
  # Check for a 64-bit object if we didn't find anything.
 
9385
  if test -z "$lt_cv_aix_libpath_"; then
 
9386
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9387
  fi
 
9388
fi
 
9389
rm -f core conftest.err conftest.$ac_objext \
 
9390
    conftest$ac_exeext conftest.$ac_ext
 
9391
  if test -z "$lt_cv_aix_libpath_"; then
 
9392
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9393
  fi
 
9394
 
 
9395
fi
 
9396
 
 
9397
  aix_libpath=$lt_cv_aix_libpath_
 
9398
fi
 
9399
 
 
9400
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9401
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9402
      else
 
9403
        if test "$host_cpu" = ia64; then
 
9404
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9405
          allow_undefined_flag="-z nodefs"
 
9406
          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"
 
9407
        else
 
9408
         # Determine the default libpath from the value encoded in an
 
9409
         # empty executable.
 
9410
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9411
  aix_libpath=$lt_cv_aix_libpath
 
9412
else
 
9413
  if ${lt_cv_aix_libpath_+:} false; then :
 
9414
  $as_echo_n "(cached) " >&6
 
9415
else
 
9416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9417
/* end confdefs.h.  */
 
9418
 
 
9419
int
 
9420
main ()
 
9421
{
 
9422
 
 
9423
  ;
 
9424
  return 0;
 
9425
}
 
9426
_ACEOF
 
9427
if ac_fn_c_try_link "$LINENO"; then :
 
9428
 
 
9429
  lt_aix_libpath_sed='
 
9430
      /Import File Strings/,/^$/ {
 
9431
          /^0/ {
 
9432
              s/^0  *\([^ ]*\) *$/\1/
 
9433
              p
 
9434
          }
 
9435
      }'
 
9436
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9437
  # Check for a 64-bit object if we didn't find anything.
 
9438
  if test -z "$lt_cv_aix_libpath_"; then
 
9439
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9440
  fi
 
9441
fi
 
9442
rm -f core conftest.err conftest.$ac_objext \
 
9443
    conftest$ac_exeext conftest.$ac_ext
 
9444
  if test -z "$lt_cv_aix_libpath_"; then
 
9445
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9446
  fi
 
9447
 
 
9448
fi
 
9449
 
 
9450
  aix_libpath=$lt_cv_aix_libpath_
 
9451
fi
 
9452
 
 
9453
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9454
          # Warning - without using the other run time loading flags,
 
9455
          # -berok will link without error, but may produce a broken library.
 
9456
          no_undefined_flag=' ${wl}-bernotok'
 
9457
          allow_undefined_flag=' ${wl}-berok'
 
9458
          if test "$with_gnu_ld" = yes; then
 
9459
            # We only use this code for GNU lds that support --whole-archive.
 
9460
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9461
          else
 
9462
            # Exported symbols can be pulled into shared objects from archives
 
9463
            whole_archive_flag_spec='$convenience'
 
9464
          fi
 
9465
          archive_cmds_need_lc=yes
 
9466
          # This is similar to how AIX traditionally builds its shared libraries.
 
9467
          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'
 
9468
        fi
 
9469
      fi
 
9470
      ;;
 
9471
 
 
9472
    amigaos*)
 
9473
      case $host_cpu in
 
9474
      powerpc)
 
9475
            # see comment about AmigaOS4 .so support
 
9476
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9477
            archive_expsym_cmds=''
 
9478
        ;;
 
9479
      m68k)
 
9480
            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)'
 
9481
            hardcode_libdir_flag_spec='-L$libdir'
 
9482
            hardcode_minus_L=yes
 
9483
        ;;
 
9484
      esac
 
9485
      ;;
 
9486
 
 
9487
    bsdi[45]*)
 
9488
      export_dynamic_flag_spec=-rdynamic
 
9489
      ;;
 
9490
 
 
9491
    cygwin* | mingw* | pw32* | cegcc*)
 
9492
      # When not using gcc, we currently assume that we are using
 
9493
      # Microsoft Visual C++.
 
9494
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9495
      # no search path for DLLs.
 
9496
      case $cc_basename in
 
9497
      cl*)
 
9498
        # Native MSVC
 
9499
        hardcode_libdir_flag_spec=' '
 
9500
        allow_undefined_flag=unsupported
 
9501
        always_export_symbols=yes
 
9502
        file_list_spec='@'
 
9503
        # Tell ltmain to make .lib files, not .a files.
 
9504
        libext=lib
 
9505
        # Tell ltmain to make .dll files, not .so files.
 
9506
        shrext_cmds=".dll"
 
9507
        # FIXME: Setting linknames here is a bad hack.
 
9508
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9509
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9510
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9511
          else
 
9512
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9513
          fi~
 
9514
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9515
          linknames='
 
9516
        # The linker will not automatically build a static lib if we build a DLL.
 
9517
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9518
        enable_shared_with_static_runtimes=yes
 
9519
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9520
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9521
        # Don't use ranlib
 
9522
        old_postinstall_cmds='chmod 644 $oldlib'
 
9523
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9524
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9525
          case $lt_outputfile in
 
9526
            *.exe|*.EXE) ;;
 
9527
            *)
 
9528
              lt_outputfile="$lt_outputfile.exe"
 
9529
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9530
              ;;
 
9531
          esac~
 
9532
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9533
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9534
            $RM "$lt_outputfile.manifest";
 
9535
          fi'
 
9536
        ;;
 
9537
      *)
 
9538
        # Assume MSVC wrapper
 
9539
        hardcode_libdir_flag_spec=' '
 
9540
        allow_undefined_flag=unsupported
 
9541
        # Tell ltmain to make .lib files, not .a files.
 
9542
        libext=lib
 
9543
        # Tell ltmain to make .dll files, not .so files.
 
9544
        shrext_cmds=".dll"
 
9545
        # FIXME: Setting linknames here is a bad hack.
 
9546
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9547
        # The linker will automatically build a .lib file if we build a DLL.
 
9548
        old_archive_from_new_cmds='true'
 
9549
        # FIXME: Should let the user specify the lib program.
 
9550
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9551
        enable_shared_with_static_runtimes=yes
 
9552
        ;;
 
9553
      esac
 
9554
      ;;
 
9555
 
 
9556
    darwin* | rhapsody*)
 
9557
 
 
9558
 
 
9559
  archive_cmds_need_lc=no
 
9560
  hardcode_direct=no
 
9561
  hardcode_automatic=yes
 
9562
  hardcode_shlibpath_var=unsupported
 
9563
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9564
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9565
 
 
9566
  else
 
9567
    whole_archive_flag_spec=''
 
9568
  fi
 
9569
  link_all_deplibs=yes
 
9570
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9571
  case $cc_basename in
 
9572
     ifort*) _lt_dar_can_shared=yes ;;
 
9573
     *) _lt_dar_can_shared=$GCC ;;
 
9574
  esac
 
9575
  if test "$_lt_dar_can_shared" = "yes"; then
 
9576
    output_verbose_link_cmd=func_echo_all
 
9577
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9578
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9579
    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}"
 
9580
    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}"
 
9581
 
 
9582
  else
 
9583
  ld_shlibs=no
 
9584
  fi
 
9585
 
 
9586
      ;;
 
9587
 
 
9588
    dgux*)
 
9589
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9590
      hardcode_libdir_flag_spec='-L$libdir'
 
9591
      hardcode_shlibpath_var=no
 
9592
      ;;
 
9593
 
 
9594
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9595
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9596
    # does not break anything, and helps significantly (at the cost of a little
 
9597
    # extra space).
 
9598
    freebsd2.2*)
 
9599
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9600
      hardcode_libdir_flag_spec='-R$libdir'
 
9601
      hardcode_direct=yes
 
9602
      hardcode_shlibpath_var=no
 
9603
      ;;
 
9604
 
 
9605
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9606
    freebsd2.*)
 
9607
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9608
      hardcode_direct=yes
 
9609
      hardcode_minus_L=yes
 
9610
      hardcode_shlibpath_var=no
 
9611
      ;;
 
9612
 
 
9613
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9614
    freebsd* | dragonfly*)
 
9615
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9616
      hardcode_libdir_flag_spec='-R$libdir'
 
9617
      hardcode_direct=yes
 
9618
      hardcode_shlibpath_var=no
 
9619
      ;;
 
9620
 
 
9621
    hpux9*)
 
9622
      if test "$GCC" = yes; then
 
9623
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9624
      else
 
9625
        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'
 
9626
      fi
 
9627
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9628
      hardcode_libdir_separator=:
 
9629
      hardcode_direct=yes
 
9630
 
 
9631
      # hardcode_minus_L: Not really in the search PATH,
 
9632
      # but as the default location of the library.
 
9633
      hardcode_minus_L=yes
 
9634
      export_dynamic_flag_spec='${wl}-E'
 
9635
      ;;
 
9636
 
 
9637
    hpux10*)
 
9638
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9639
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9640
      else
 
9641
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9642
      fi
 
9643
      if test "$with_gnu_ld" = no; then
 
9644
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9645
        hardcode_libdir_separator=:
 
9646
        hardcode_direct=yes
 
9647
        hardcode_direct_absolute=yes
 
9648
        export_dynamic_flag_spec='${wl}-E'
 
9649
        # hardcode_minus_L: Not really in the search PATH,
 
9650
        # but as the default location of the library.
 
9651
        hardcode_minus_L=yes
 
9652
      fi
 
9653
      ;;
 
9654
 
 
9655
    hpux11*)
 
9656
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9657
        case $host_cpu in
 
9658
        hppa*64*)
 
9659
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9660
          ;;
 
9661
        ia64*)
 
9662
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9663
          ;;
 
9664
        *)
 
9665
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9666
          ;;
 
9667
        esac
 
9668
      else
 
9669
        case $host_cpu in
 
9670
        hppa*64*)
 
9671
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9672
          ;;
 
9673
        ia64*)
 
9674
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9675
          ;;
 
9676
        *)
 
9677
 
 
9678
          # Older versions of the 11.00 compiler do not understand -b yet
 
9679
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9680
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9681
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9682
if ${lt_cv_prog_compiler__b+:} false; then :
 
9683
  $as_echo_n "(cached) " >&6
 
9684
else
 
9685
  lt_cv_prog_compiler__b=no
 
9686
   save_LDFLAGS="$LDFLAGS"
 
9687
   LDFLAGS="$LDFLAGS -b"
 
9688
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9689
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9690
     # The linker can only warn and ignore the option if not recognized
 
9691
     # So say no if there are warnings
 
9692
     if test -s conftest.err; then
 
9693
       # Append any errors to the config.log.
 
9694
       cat conftest.err 1>&5
 
9695
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9696
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9697
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9698
         lt_cv_prog_compiler__b=yes
 
9699
       fi
 
9700
     else
 
9701
       lt_cv_prog_compiler__b=yes
 
9702
     fi
 
9703
   fi
 
9704
   $RM -r conftest*
 
9705
   LDFLAGS="$save_LDFLAGS"
 
9706
 
 
9707
fi
 
9708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9709
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9710
 
 
9711
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9712
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9713
else
 
9714
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9715
fi
 
9716
 
 
9717
          ;;
 
9718
        esac
 
9719
      fi
 
9720
      if test "$with_gnu_ld" = no; then
 
9721
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9722
        hardcode_libdir_separator=:
 
9723
 
 
9724
        case $host_cpu in
 
9725
        hppa*64*|ia64*)
 
9726
          hardcode_direct=no
 
9727
          hardcode_shlibpath_var=no
 
9728
          ;;
 
9729
        *)
 
9730
          hardcode_direct=yes
 
9731
          hardcode_direct_absolute=yes
 
9732
          export_dynamic_flag_spec='${wl}-E'
 
9733
 
 
9734
          # hardcode_minus_L: Not really in the search PATH,
 
9735
          # but as the default location of the library.
 
9736
          hardcode_minus_L=yes
 
9737
          ;;
 
9738
        esac
 
9739
      fi
 
9740
      ;;
 
9741
 
 
9742
    irix5* | irix6* | nonstopux*)
 
9743
      if test "$GCC" = yes; then
 
9744
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9745
        # Try to use the -exported_symbol ld option, if it does not
 
9746
        # work, assume that -exports_file does not work either and
 
9747
        # implicitly export all symbols.
 
9748
        # This should be the same for all languages, so no per-tag cache variable.
 
9749
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9750
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9751
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9752
  $as_echo_n "(cached) " >&6
 
9753
else
 
9754
  save_LDFLAGS="$LDFLAGS"
 
9755
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9756
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9757
/* end confdefs.h.  */
 
9758
int foo (void) { return 0; }
 
9759
_ACEOF
 
9760
if ac_fn_c_try_link "$LINENO"; then :
 
9761
  lt_cv_irix_exported_symbol=yes
 
9762
else
 
9763
  lt_cv_irix_exported_symbol=no
 
9764
fi
 
9765
rm -f core conftest.err conftest.$ac_objext \
 
9766
    conftest$ac_exeext conftest.$ac_ext
 
9767
           LDFLAGS="$save_LDFLAGS"
 
9768
fi
 
9769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9770
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9771
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9772
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9773
        fi
 
9774
      else
 
9775
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9776
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9777
      fi
 
9778
      archive_cmds_need_lc='no'
 
9779
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9780
      hardcode_libdir_separator=:
 
9781
      inherit_rpath=yes
 
9782
      link_all_deplibs=yes
 
9783
      ;;
 
9784
 
 
9785
    netbsd* | netbsdelf*-gnu)
 
9786
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9787
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9788
      else
 
9789
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9790
      fi
 
9791
      hardcode_libdir_flag_spec='-R$libdir'
 
9792
      hardcode_direct=yes
 
9793
      hardcode_shlibpath_var=no
 
9794
      ;;
 
9795
 
 
9796
    newsos6)
 
9797
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9798
      hardcode_direct=yes
 
9799
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9800
      hardcode_libdir_separator=:
 
9801
      hardcode_shlibpath_var=no
 
9802
      ;;
 
9803
 
 
9804
    *nto* | *qnx*)
 
9805
      ;;
 
9806
 
 
9807
    openbsd*)
 
9808
      if test -f /usr/libexec/ld.so; then
 
9809
        hardcode_direct=yes
 
9810
        hardcode_shlibpath_var=no
 
9811
        hardcode_direct_absolute=yes
 
9812
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9813
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9814
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9815
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9816
          export_dynamic_flag_spec='${wl}-E'
 
9817
        else
 
9818
          case $host_os in
 
9819
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9820
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9821
             hardcode_libdir_flag_spec='-R$libdir'
 
9822
             ;;
 
9823
           *)
 
9824
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9825
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9826
             ;;
 
9827
          esac
 
9828
        fi
 
9829
      else
 
9830
        ld_shlibs=no
 
9831
      fi
 
9832
      ;;
 
9833
 
 
9834
    os2*)
 
9835
      hardcode_libdir_flag_spec='-L$libdir'
 
9836
      hardcode_minus_L=yes
 
9837
      allow_undefined_flag=unsupported
 
9838
      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'
 
9839
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9840
      ;;
 
9841
 
 
9842
    osf3*)
 
9843
      if test "$GCC" = yes; then
 
9844
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9845
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9846
      else
 
9847
        allow_undefined_flag=' -expect_unresolved \*'
 
9848
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9849
      fi
 
9850
      archive_cmds_need_lc='no'
 
9851
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9852
      hardcode_libdir_separator=:
 
9853
      ;;
 
9854
 
 
9855
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9856
      if test "$GCC" = yes; then
 
9857
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9858
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9859
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9860
      else
 
9861
        allow_undefined_flag=' -expect_unresolved \*'
 
9862
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9863
        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~
 
9864
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9865
 
 
9866
        # Both c and cxx compiler support -rpath directly
 
9867
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9868
      fi
 
9869
      archive_cmds_need_lc='no'
 
9870
      hardcode_libdir_separator=:
 
9871
      ;;
 
9872
 
 
9873
    solaris*)
 
9874
      no_undefined_flag=' -z defs'
 
9875
      if test "$GCC" = yes; then
 
9876
        wlarc='${wl}'
 
9877
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9878
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9879
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9880
      else
 
9881
        case `$CC -V 2>&1` in
 
9882
        *"Compilers 5.0"*)
 
9883
          wlarc=''
 
9884
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9885
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9886
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9887
          ;;
 
9888
        *)
 
9889
          wlarc='${wl}'
 
9890
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9891
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9892
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9893
          ;;
 
9894
        esac
 
9895
      fi
 
9896
      hardcode_libdir_flag_spec='-R$libdir'
 
9897
      hardcode_shlibpath_var=no
 
9898
      case $host_os in
 
9899
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9900
      *)
 
9901
        # The compiler driver will combine and reorder linker options,
 
9902
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9903
        # but is careful enough not to reorder.
 
9904
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9905
        if test "$GCC" = yes; then
 
9906
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9907
        else
 
9908
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9909
        fi
 
9910
        ;;
 
9911
      esac
 
9912
      link_all_deplibs=yes
 
9913
      ;;
 
9914
 
 
9915
    sunos4*)
 
9916
      if test "x$host_vendor" = xsequent; then
 
9917
        # Use $CC to link under sequent, because it throws in some extra .o
 
9918
        # files that make .init and .fini sections work.
 
9919
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9920
      else
 
9921
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9922
      fi
 
9923
      hardcode_libdir_flag_spec='-L$libdir'
 
9924
      hardcode_direct=yes
 
9925
      hardcode_minus_L=yes
 
9926
      hardcode_shlibpath_var=no
 
9927
      ;;
 
9928
 
 
9929
    sysv4)
 
9930
      case $host_vendor in
 
9931
        sni)
 
9932
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9933
          hardcode_direct=yes # is this really true???
 
9934
        ;;
 
9935
        siemens)
 
9936
          ## LD is ld it makes a PLAMLIB
 
9937
          ## CC just makes a GrossModule.
 
9938
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9939
          reload_cmds='$CC -r -o $output$reload_objs'
 
9940
          hardcode_direct=no
 
9941
        ;;
 
9942
        motorola)
 
9943
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9944
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9945
        ;;
 
9946
      esac
 
9947
      runpath_var='LD_RUN_PATH'
 
9948
      hardcode_shlibpath_var=no
 
9949
      ;;
 
9950
 
 
9951
    sysv4.3*)
 
9952
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9953
      hardcode_shlibpath_var=no
 
9954
      export_dynamic_flag_spec='-Bexport'
 
9955
      ;;
 
9956
 
 
9957
    sysv4*MP*)
 
9958
      if test -d /usr/nec; then
 
9959
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9960
        hardcode_shlibpath_var=no
 
9961
        runpath_var=LD_RUN_PATH
 
9962
        hardcode_runpath_var=yes
 
9963
        ld_shlibs=yes
 
9964
      fi
 
9965
      ;;
 
9966
 
 
9967
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9968
      no_undefined_flag='${wl}-z,text'
 
9969
      archive_cmds_need_lc=no
 
9970
      hardcode_shlibpath_var=no
 
9971
      runpath_var='LD_RUN_PATH'
 
9972
 
 
9973
      if test "$GCC" = yes; then
 
9974
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9975
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9976
      else
 
9977
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9978
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9979
      fi
 
9980
      ;;
 
9981
 
 
9982
    sysv5* | sco3.2v5* | sco5v6*)
 
9983
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9984
      # link with -lc, and that would cause any symbols used from libc to
 
9985
      # always be unresolved, which means just about no library would
 
9986
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9987
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9988
      # as -z defs.
 
9989
      no_undefined_flag='${wl}-z,text'
 
9990
      allow_undefined_flag='${wl}-z,nodefs'
 
9991
      archive_cmds_need_lc=no
 
9992
      hardcode_shlibpath_var=no
 
9993
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9994
      hardcode_libdir_separator=':'
 
9995
      link_all_deplibs=yes
 
9996
      export_dynamic_flag_spec='${wl}-Bexport'
 
9997
      runpath_var='LD_RUN_PATH'
 
9998
 
 
9999
      if test "$GCC" = yes; then
 
10000
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10001
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10002
      else
 
10003
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10004
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10005
      fi
 
10006
      ;;
 
10007
 
 
10008
    uts4*)
 
10009
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10010
      hardcode_libdir_flag_spec='-L$libdir'
 
10011
      hardcode_shlibpath_var=no
 
10012
      ;;
 
10013
 
 
10014
    *)
 
10015
      ld_shlibs=no
 
10016
      ;;
 
10017
    esac
 
10018
 
 
10019
    if test x$host_vendor = xsni; then
 
10020
      case $host in
 
10021
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10022
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10023
        ;;
 
10024
      esac
 
10025
    fi
 
10026
  fi
 
10027
 
 
10028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10029
$as_echo "$ld_shlibs" >&6; }
 
10030
test "$ld_shlibs" = no && can_build_shared=no
 
10031
 
 
10032
with_gnu_ld=$with_gnu_ld
 
10033
 
 
10034
 
 
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
#
 
10049
# Do we need to explicitly link libc?
 
10050
#
 
10051
case "x$archive_cmds_need_lc" in
 
10052
x|xyes)
 
10053
  # Assume -lc should be added
 
10054
  archive_cmds_need_lc=yes
 
10055
 
 
10056
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10057
    case $archive_cmds in
 
10058
    *'~'*)
 
10059
      # FIXME: we may have to deal with multi-command sequences.
 
10060
      ;;
 
10061
    '$CC '*)
 
10062
      # Test whether the compiler implicitly links with -lc since on some
 
10063
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10064
      # to ld, don't add -lc before -lgcc.
 
10065
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10066
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10067
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10068
  $as_echo_n "(cached) " >&6
 
10069
else
 
10070
  $RM conftest*
 
10071
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10072
 
 
10073
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10074
  (eval $ac_compile) 2>&5
 
10075
  ac_status=$?
 
10076
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10077
  test $ac_status = 0; } 2>conftest.err; then
 
10078
          soname=conftest
 
10079
          lib=conftest
 
10080
          libobjs=conftest.$ac_objext
 
10081
          deplibs=
 
10082
          wl=$lt_prog_compiler_wl
 
10083
          pic_flag=$lt_prog_compiler_pic
 
10084
          compiler_flags=-v
 
10085
          linker_flags=-v
 
10086
          verstring=
 
10087
          output_objdir=.
 
10088
          libname=conftest
 
10089
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10090
          allow_undefined_flag=
 
10091
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10092
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10093
  ac_status=$?
 
10094
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10095
  test $ac_status = 0; }
 
10096
          then
 
10097
            lt_cv_archive_cmds_need_lc=no
 
10098
          else
 
10099
            lt_cv_archive_cmds_need_lc=yes
 
10100
          fi
 
10101
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10102
        else
 
10103
          cat conftest.err 1>&5
 
10104
        fi
 
10105
        $RM conftest*
 
10106
 
 
10107
fi
 
10108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10109
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10110
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10111
      ;;
 
10112
    esac
 
10113
  fi
 
10114
  ;;
 
10115
esac
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
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
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
 
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
 
 
10236
 
 
10237
 
 
10238
 
 
10239
 
 
10240
 
 
10241
 
 
10242
 
 
10243
 
 
10244
 
 
10245
 
 
10246
 
 
10247
 
 
10248
 
 
10249
 
 
10250
 
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
 
 
10256
 
 
10257
 
 
10258
 
 
10259
 
 
10260
 
 
10261
 
 
10262
 
 
10263
 
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10269
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10270
 
 
10271
if test "$GCC" = yes; then
 
10272
  case $host_os in
 
10273
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10274
    *) lt_awk_arg="/^libraries:/" ;;
 
10275
  esac
 
10276
  case $host_os in
 
10277
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10278
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10279
  esac
 
10280
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10281
  case $lt_search_path_spec in
 
10282
  *\;*)
 
10283
    # if the path contains ";" then we assume it to be the separator
 
10284
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10285
    # assumed that no part of a normal pathname contains ";" but that should
 
10286
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10287
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10288
    ;;
 
10289
  *)
 
10290
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10291
    ;;
 
10292
  esac
 
10293
  # Ok, now we have the path, separated by spaces, we can step through it
 
10294
  # and add multilib dir if necessary.
 
10295
  lt_tmp_lt_search_path_spec=
 
10296
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10297
  for lt_sys_path in $lt_search_path_spec; do
 
10298
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10299
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10300
    else
 
10301
      test -d "$lt_sys_path" && \
 
10302
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10303
    fi
 
10304
  done
 
10305
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10306
BEGIN {RS=" "; FS="/|\n";} {
 
10307
  lt_foo="";
 
10308
  lt_count=0;
 
10309
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10310
    if ($lt_i != "" && $lt_i != ".") {
 
10311
      if ($lt_i == "..") {
 
10312
        lt_count++;
 
10313
      } else {
 
10314
        if (lt_count == 0) {
 
10315
          lt_foo="/" $lt_i lt_foo;
 
10316
        } else {
 
10317
          lt_count--;
 
10318
        }
 
10319
      }
 
10320
    }
 
10321
  }
 
10322
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10323
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10324
}'`
 
10325
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10326
  # for these hosts.
 
10327
  case $host_os in
 
10328
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10329
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10330
  esac
 
10331
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10332
else
 
10333
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10334
fi
 
10335
library_names_spec=
 
10336
libname_spec='lib$name'
 
10337
soname_spec=
 
10338
shrext_cmds=".so"
 
10339
postinstall_cmds=
 
10340
postuninstall_cmds=
 
10341
finish_cmds=
 
10342
finish_eval=
 
10343
shlibpath_var=
 
10344
shlibpath_overrides_runpath=unknown
 
10345
version_type=none
 
10346
dynamic_linker="$host_os ld.so"
 
10347
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10348
need_lib_prefix=unknown
 
10349
hardcode_into_libs=no
 
10350
 
 
10351
# when you set need_version to no, make sure it does not cause -set_version
 
10352
# flags to be left without arguments
 
10353
need_version=unknown
 
10354
 
 
10355
case $host_os in
 
10356
aix3*)
 
10357
  version_type=linux # correct to gnu/linux during the next big refactor
 
10358
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10359
  shlibpath_var=LIBPATH
 
10360
 
 
10361
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10362
  soname_spec='${libname}${release}${shared_ext}$major'
 
10363
  ;;
 
10364
 
 
10365
aix[4-9]*)
 
10366
  version_type=linux # correct to gnu/linux during the next big refactor
 
10367
  need_lib_prefix=no
 
10368
  need_version=no
 
10369
  hardcode_into_libs=yes
 
10370
  if test "$host_cpu" = ia64; then
 
10371
    # AIX 5 supports IA64
 
10372
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10373
    shlibpath_var=LD_LIBRARY_PATH
 
10374
  else
 
10375
    # With GCC up to 2.95.x, collect2 would create an import file
 
10376
    # for dependence libraries.  The import file would start with
 
10377
    # the line `#! .'.  This would cause the generated library to
 
10378
    # depend on `.', always an invalid library.  This was fixed in
 
10379
    # development snapshots of GCC prior to 3.0.
 
10380
    case $host_os in
 
10381
      aix4 | aix4.[01] | aix4.[01].*)
 
10382
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10383
           echo ' yes '
 
10384
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10385
        :
 
10386
      else
 
10387
        can_build_shared=no
 
10388
      fi
 
10389
      ;;
 
10390
    esac
 
10391
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10392
    # soname into executable. Probably we can add versioning support to
 
10393
    # collect2, so additional links can be useful in future.
 
10394
    if test "$aix_use_runtimelinking" = yes; then
 
10395
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10396
      # instead of lib<name>.a to let people know that these are not
 
10397
      # typical AIX shared libraries.
 
10398
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10399
    else
 
10400
      # We preserve .a as extension for shared libraries through AIX4.2
 
10401
      # and later when we are not doing run time linking.
 
10402
      library_names_spec='${libname}${release}.a $libname.a'
 
10403
      soname_spec='${libname}${release}${shared_ext}$major'
 
10404
    fi
 
10405
    shlibpath_var=LIBPATH
 
10406
  fi
 
10407
  ;;
 
10408
 
 
10409
amigaos*)
 
10410
  case $host_cpu in
 
10411
  powerpc)
 
10412
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10413
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10414
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10415
    ;;
 
10416
  m68k)
 
10417
    library_names_spec='$libname.ixlibrary $libname.a'
 
10418
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10419
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10420
    ;;
 
10421
  esac
 
10422
  ;;
 
10423
 
 
10424
beos*)
 
10425
  library_names_spec='${libname}${shared_ext}'
 
10426
  dynamic_linker="$host_os ld.so"
 
10427
  shlibpath_var=LIBRARY_PATH
 
10428
  ;;
 
10429
 
 
10430
bsdi[45]*)
 
10431
  version_type=linux # correct to gnu/linux during the next big refactor
 
10432
  need_version=no
 
10433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10434
  soname_spec='${libname}${release}${shared_ext}$major'
 
10435
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10436
  shlibpath_var=LD_LIBRARY_PATH
 
10437
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10438
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10439
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10440
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10441
  # libtool to hard-code these into programs
 
10442
  ;;
 
10443
 
 
10444
cygwin* | mingw* | pw32* | cegcc*)
 
10445
  version_type=windows
 
10446
  shrext_cmds=".dll"
 
10447
  need_version=no
 
10448
  need_lib_prefix=no
 
10449
 
 
10450
  case $GCC,$cc_basename in
 
10451
  yes,*)
 
10452
    # gcc
 
10453
    library_names_spec='$libname.dll.a'
 
10454
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10455
    postinstall_cmds='base_file=`basename \${file}`~
 
10456
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10457
      dldir=$destdir/`dirname \$dlpath`~
 
10458
      test -d \$dldir || mkdir -p \$dldir~
 
10459
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10460
      chmod a+x \$dldir/$dlname~
 
10461
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10462
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10463
      fi'
 
10464
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10465
      dlpath=$dir/\$dldll~
 
10466
       $RM \$dlpath'
 
10467
    shlibpath_overrides_runpath=yes
 
10468
 
 
10469
    case $host_os in
 
10470
    cygwin*)
 
10471
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10472
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10473
 
 
10474
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10475
      ;;
 
10476
    mingw* | cegcc*)
 
10477
      # MinGW DLLs use traditional 'lib' prefix
 
10478
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10479
      ;;
 
10480
    pw32*)
 
10481
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10482
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10483
      ;;
 
10484
    esac
 
10485
    dynamic_linker='Win32 ld.exe'
 
10486
    ;;
 
10487
 
 
10488
  *,cl*)
 
10489
    # Native MSVC
 
10490
    libname_spec='$name'
 
10491
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10492
    library_names_spec='${libname}.dll.lib'
 
10493
 
 
10494
    case $build_os in
 
10495
    mingw*)
 
10496
      sys_lib_search_path_spec=
 
10497
      lt_save_ifs=$IFS
 
10498
      IFS=';'
 
10499
      for lt_path in $LIB
 
10500
      do
 
10501
        IFS=$lt_save_ifs
 
10502
        # Let DOS variable expansion print the short 8.3 style file name.
 
10503
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10504
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10505
      done
 
10506
      IFS=$lt_save_ifs
 
10507
      # Convert to MSYS style.
 
10508
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10509
      ;;
 
10510
    cygwin*)
 
10511
      # Convert to unix form, then to dos form, then back to unix form
 
10512
      # but this time dos style (no spaces!) so that the unix form looks
 
10513
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10514
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10515
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10516
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10517
      ;;
 
10518
    *)
 
10519
      sys_lib_search_path_spec="$LIB"
 
10520
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10521
        # It is most probably a Windows format PATH.
 
10522
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10523
      else
 
10524
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10525
      fi
 
10526
      # FIXME: find the short name or the path components, as spaces are
 
10527
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10528
      ;;
 
10529
    esac
 
10530
 
 
10531
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10532
    postinstall_cmds='base_file=`basename \${file}`~
 
10533
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10534
      dldir=$destdir/`dirname \$dlpath`~
 
10535
      test -d \$dldir || mkdir -p \$dldir~
 
10536
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10537
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10538
      dlpath=$dir/\$dldll~
 
10539
       $RM \$dlpath'
 
10540
    shlibpath_overrides_runpath=yes
 
10541
    dynamic_linker='Win32 link.exe'
 
10542
    ;;
 
10543
 
 
10544
  *)
 
10545
    # Assume MSVC wrapper
 
10546
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10547
    dynamic_linker='Win32 ld.exe'
 
10548
    ;;
 
10549
  esac
 
10550
  # FIXME: first we should search . and the directory the executable is in
 
10551
  shlibpath_var=PATH
 
10552
  ;;
 
10553
 
 
10554
darwin* | rhapsody*)
 
10555
  dynamic_linker="$host_os dyld"
 
10556
  version_type=darwin
 
10557
  need_lib_prefix=no
 
10558
  need_version=no
 
10559
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10560
  soname_spec='${libname}${release}${major}$shared_ext'
 
10561
  shlibpath_overrides_runpath=yes
 
10562
  shlibpath_var=DYLD_LIBRARY_PATH
 
10563
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10564
 
 
10565
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10566
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10567
  ;;
 
10568
 
 
10569
dgux*)
 
10570
  version_type=linux # correct to gnu/linux during the next big refactor
 
10571
  need_lib_prefix=no
 
10572
  need_version=no
 
10573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10574
  soname_spec='${libname}${release}${shared_ext}$major'
 
10575
  shlibpath_var=LD_LIBRARY_PATH
 
10576
  ;;
 
10577
 
 
10578
freebsd* | dragonfly*)
 
10579
  # DragonFly does not have aout.  When/if they implement a new
 
10580
  # versioning mechanism, adjust this.
 
10581
  if test -x /usr/bin/objformat; then
 
10582
    objformat=`/usr/bin/objformat`
 
10583
  else
 
10584
    case $host_os in
 
10585
    freebsd[23].*) objformat=aout ;;
 
10586
    *) objformat=elf ;;
 
10587
    esac
 
10588
  fi
 
10589
  version_type=freebsd-$objformat
 
10590
  case $version_type in
 
10591
    freebsd-elf*)
 
10592
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10593
      need_version=no
 
10594
      need_lib_prefix=no
 
10595
      ;;
 
10596
    freebsd-*)
 
10597
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10598
      need_version=yes
 
10599
      ;;
 
10600
  esac
 
10601
  shlibpath_var=LD_LIBRARY_PATH
 
10602
  case $host_os in
 
10603
  freebsd2.*)
 
10604
    shlibpath_overrides_runpath=yes
 
10605
    ;;
 
10606
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10607
    shlibpath_overrides_runpath=yes
 
10608
    hardcode_into_libs=yes
 
10609
    ;;
 
10610
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10611
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10612
    shlibpath_overrides_runpath=no
 
10613
    hardcode_into_libs=yes
 
10614
    ;;
 
10615
  *) # from 4.6 on, and DragonFly
 
10616
    shlibpath_overrides_runpath=yes
 
10617
    hardcode_into_libs=yes
 
10618
    ;;
 
10619
  esac
 
10620
  ;;
 
10621
 
 
10622
haiku*)
 
10623
  version_type=linux # correct to gnu/linux during the next big refactor
 
10624
  need_lib_prefix=no
 
10625
  need_version=no
 
10626
  dynamic_linker="$host_os runtime_loader"
 
10627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10628
  soname_spec='${libname}${release}${shared_ext}$major'
 
10629
  shlibpath_var=LIBRARY_PATH
 
10630
  shlibpath_overrides_runpath=yes
 
10631
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10632
  hardcode_into_libs=yes
 
10633
  ;;
 
10634
 
 
10635
hpux9* | hpux10* | hpux11*)
 
10636
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10637
  # link against other versions.
 
10638
  version_type=sunos
 
10639
  need_lib_prefix=no
 
10640
  need_version=no
 
10641
  case $host_cpu in
 
10642
  ia64*)
 
10643
    shrext_cmds='.so'
 
10644
    hardcode_into_libs=yes
 
10645
    dynamic_linker="$host_os dld.so"
 
10646
    shlibpath_var=LD_LIBRARY_PATH
 
10647
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10648
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10649
    soname_spec='${libname}${release}${shared_ext}$major'
 
10650
    if test "X$HPUX_IA64_MODE" = X32; then
 
10651
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10652
    else
 
10653
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10654
    fi
 
10655
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10656
    ;;
 
10657
  hppa*64*)
 
10658
    shrext_cmds='.sl'
 
10659
    hardcode_into_libs=yes
 
10660
    dynamic_linker="$host_os dld.sl"
 
10661
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10662
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10663
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10664
    soname_spec='${libname}${release}${shared_ext}$major'
 
10665
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10666
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10667
    ;;
 
10668
  *)
 
10669
    shrext_cmds='.sl'
 
10670
    dynamic_linker="$host_os dld.sl"
 
10671
    shlibpath_var=SHLIB_PATH
 
10672
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10673
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10674
    soname_spec='${libname}${release}${shared_ext}$major'
 
10675
    ;;
 
10676
  esac
 
10677
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10678
  postinstall_cmds='chmod 555 $lib'
 
10679
  # or fails outright, so override atomically:
 
10680
  install_override_mode=555
 
10681
  ;;
 
10682
 
 
10683
interix[3-9]*)
 
10684
  version_type=linux # correct to gnu/linux during the next big refactor
 
10685
  need_lib_prefix=no
 
10686
  need_version=no
 
10687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10688
  soname_spec='${libname}${release}${shared_ext}$major'
 
10689
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10690
  shlibpath_var=LD_LIBRARY_PATH
 
10691
  shlibpath_overrides_runpath=no
 
10692
  hardcode_into_libs=yes
 
10693
  ;;
 
10694
 
 
10695
irix5* | irix6* | nonstopux*)
 
10696
  case $host_os in
 
10697
    nonstopux*) version_type=nonstopux ;;
 
10698
    *)
 
10699
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10700
                version_type=linux # correct to gnu/linux during the next big refactor
 
10701
        else
 
10702
                version_type=irix
 
10703
        fi ;;
 
10704
  esac
 
10705
  need_lib_prefix=no
 
10706
  need_version=no
 
10707
  soname_spec='${libname}${release}${shared_ext}$major'
 
10708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10709
  case $host_os in
 
10710
  irix5* | nonstopux*)
 
10711
    libsuff= shlibsuff=
 
10712
    ;;
 
10713
  *)
 
10714
    case $LD in # libtool.m4 will add one of these switches to LD
 
10715
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10716
      libsuff= shlibsuff= libmagic=32-bit;;
 
10717
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10718
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10719
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10720
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10721
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10722
    esac
 
10723
    ;;
 
10724
  esac
 
10725
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10726
  shlibpath_overrides_runpath=no
 
10727
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10728
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10729
  hardcode_into_libs=yes
 
10730
  ;;
 
10731
 
 
10732
# No shared lib support for Linux oldld, aout, or coff.
 
10733
linux*oldld* | linux*aout* | linux*coff*)
 
10734
  dynamic_linker=no
 
10735
  ;;
 
10736
 
 
10737
# This must be glibc/ELF.
 
10738
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
10739
  version_type=linux # correct to gnu/linux during the next big refactor
 
10740
  need_lib_prefix=no
 
10741
  need_version=no
 
10742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10743
  soname_spec='${libname}${release}${shared_ext}$major'
 
10744
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10745
  shlibpath_var=LD_LIBRARY_PATH
 
10746
  shlibpath_overrides_runpath=no
 
10747
 
 
10748
  # Some binutils ld are patched to set DT_RUNPATH
 
10749
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10750
  $as_echo_n "(cached) " >&6
 
10751
else
 
10752
  lt_cv_shlibpath_overrides_runpath=no
 
10753
    save_LDFLAGS=$LDFLAGS
 
10754
    save_libdir=$libdir
 
10755
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10756
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10757
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10758
/* end confdefs.h.  */
 
10759
 
 
10760
int
 
10761
main ()
 
10762
{
 
10763
 
 
10764
  ;
 
10765
  return 0;
 
10766
}
 
10767
_ACEOF
 
10768
if ac_fn_c_try_link "$LINENO"; then :
 
10769
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10770
  lt_cv_shlibpath_overrides_runpath=yes
 
10771
fi
 
10772
fi
 
10773
rm -f core conftest.err conftest.$ac_objext \
 
10774
    conftest$ac_exeext conftest.$ac_ext
 
10775
    LDFLAGS=$save_LDFLAGS
 
10776
    libdir=$save_libdir
 
10777
 
 
10778
fi
 
10779
 
 
10780
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10781
 
 
10782
  # This implies no fast_install, which is unacceptable.
 
10783
  # Some rework will be needed to allow for fast_install
 
10784
  # before this can be enabled.
 
10785
  hardcode_into_libs=yes
 
10786
 
 
10787
  # Append ld.so.conf contents to the search path
 
10788
  if test -f /etc/ld.so.conf; then
 
10789
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
10790
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10791
  fi
 
10792
 
 
10793
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10794
  # powerpc, because MkLinux only supported shared libraries with the
 
10795
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10796
  # most powerpc-linux boxes support dynamic linking these days and
 
10797
  # people can always --disable-shared, the test was removed, and we
 
10798
  # assume the GNU/Linux dynamic linker is in use.
 
10799
  dynamic_linker='GNU/Linux ld.so'
 
10800
  ;;
 
10801
 
 
10802
netbsdelf*-gnu)
 
10803
  version_type=linux
 
10804
  need_lib_prefix=no
 
10805
  need_version=no
 
10806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10807
  soname_spec='${libname}${release}${shared_ext}$major'
 
10808
  shlibpath_var=LD_LIBRARY_PATH
 
10809
  shlibpath_overrides_runpath=no
 
10810
  hardcode_into_libs=yes
 
10811
  dynamic_linker='NetBSD ld.elf_so'
 
10812
  ;;
 
10813
 
 
10814
netbsd*)
 
10815
  version_type=sunos
 
10816
  need_lib_prefix=no
 
10817
  need_version=no
 
10818
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10819
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10820
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10821
    dynamic_linker='NetBSD (a.out) ld.so'
 
10822
  else
 
10823
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10824
    soname_spec='${libname}${release}${shared_ext}$major'
 
10825
    dynamic_linker='NetBSD ld.elf_so'
 
10826
  fi
 
10827
  shlibpath_var=LD_LIBRARY_PATH
 
10828
  shlibpath_overrides_runpath=yes
 
10829
  hardcode_into_libs=yes
 
10830
  ;;
 
10831
 
 
10832
newsos6)
 
10833
  version_type=linux # correct to gnu/linux during the next big refactor
 
10834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10835
  shlibpath_var=LD_LIBRARY_PATH
 
10836
  shlibpath_overrides_runpath=yes
 
10837
  ;;
 
10838
 
 
10839
*nto* | *qnx*)
 
10840
  version_type=qnx
 
10841
  need_lib_prefix=no
 
10842
  need_version=no
 
10843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10844
  soname_spec='${libname}${release}${shared_ext}$major'
 
10845
  shlibpath_var=LD_LIBRARY_PATH
 
10846
  shlibpath_overrides_runpath=no
 
10847
  hardcode_into_libs=yes
 
10848
  dynamic_linker='ldqnx.so'
 
10849
  ;;
 
10850
 
 
10851
openbsd*)
 
10852
  version_type=sunos
 
10853
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10854
  need_lib_prefix=no
 
10855
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10856
  case $host_os in
 
10857
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10858
    *)                          need_version=no  ;;
 
10859
  esac
 
10860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10861
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10862
  shlibpath_var=LD_LIBRARY_PATH
 
10863
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10864
    case $host_os in
 
10865
      openbsd2.[89] | openbsd2.[89].*)
 
10866
        shlibpath_overrides_runpath=no
 
10867
        ;;
 
10868
      *)
 
10869
        shlibpath_overrides_runpath=yes
 
10870
        ;;
 
10871
      esac
 
10872
  else
 
10873
    shlibpath_overrides_runpath=yes
 
10874
  fi
 
10875
  ;;
 
10876
 
 
10877
os2*)
 
10878
  libname_spec='$name'
 
10879
  shrext_cmds=".dll"
 
10880
  need_lib_prefix=no
 
10881
  library_names_spec='$libname${shared_ext} $libname.a'
 
10882
  dynamic_linker='OS/2 ld.exe'
 
10883
  shlibpath_var=LIBPATH
 
10884
  ;;
 
10885
 
 
10886
osf3* | osf4* | osf5*)
 
10887
  version_type=osf
 
10888
  need_lib_prefix=no
 
10889
  need_version=no
 
10890
  soname_spec='${libname}${release}${shared_ext}$major'
 
10891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10892
  shlibpath_var=LD_LIBRARY_PATH
 
10893
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10894
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10895
  ;;
 
10896
 
 
10897
rdos*)
 
10898
  dynamic_linker=no
 
10899
  ;;
 
10900
 
 
10901
solaris*)
 
10902
  version_type=linux # correct to gnu/linux during the next big refactor
 
10903
  need_lib_prefix=no
 
10904
  need_version=no
 
10905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10906
  soname_spec='${libname}${release}${shared_ext}$major'
 
10907
  shlibpath_var=LD_LIBRARY_PATH
 
10908
  shlibpath_overrides_runpath=yes
 
10909
  hardcode_into_libs=yes
 
10910
  # ldd complains unless libraries are executable
 
10911
  postinstall_cmds='chmod +x $lib'
 
10912
  ;;
 
10913
 
 
10914
sunos4*)
 
10915
  version_type=sunos
 
10916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10917
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10918
  shlibpath_var=LD_LIBRARY_PATH
 
10919
  shlibpath_overrides_runpath=yes
 
10920
  if test "$with_gnu_ld" = yes; then
 
10921
    need_lib_prefix=no
 
10922
  fi
 
10923
  need_version=yes
 
10924
  ;;
 
10925
 
 
10926
sysv4 | sysv4.3*)
 
10927
  version_type=linux # correct to gnu/linux during the next big refactor
 
10928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10929
  soname_spec='${libname}${release}${shared_ext}$major'
 
10930
  shlibpath_var=LD_LIBRARY_PATH
 
10931
  case $host_vendor in
 
10932
    sni)
 
10933
      shlibpath_overrides_runpath=no
 
10934
      need_lib_prefix=no
 
10935
      runpath_var=LD_RUN_PATH
 
10936
      ;;
 
10937
    siemens)
 
10938
      need_lib_prefix=no
 
10939
      ;;
 
10940
    motorola)
 
10941
      need_lib_prefix=no
 
10942
      need_version=no
 
10943
      shlibpath_overrides_runpath=no
 
10944
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10945
      ;;
 
10946
  esac
 
10947
  ;;
 
10948
 
 
10949
sysv4*MP*)
 
10950
  if test -d /usr/nec ;then
 
10951
    version_type=linux # correct to gnu/linux during the next big refactor
 
10952
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10953
    soname_spec='$libname${shared_ext}.$major'
 
10954
    shlibpath_var=LD_LIBRARY_PATH
 
10955
  fi
 
10956
  ;;
 
10957
 
 
10958
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10959
  version_type=freebsd-elf
 
10960
  need_lib_prefix=no
 
10961
  need_version=no
 
10962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10963
  soname_spec='${libname}${release}${shared_ext}$major'
 
10964
  shlibpath_var=LD_LIBRARY_PATH
 
10965
  shlibpath_overrides_runpath=yes
 
10966
  hardcode_into_libs=yes
 
10967
  if test "$with_gnu_ld" = yes; then
 
10968
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10969
  else
 
10970
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10971
    case $host_os in
 
10972
      sco3.2v5*)
 
10973
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10974
        ;;
 
10975
    esac
 
10976
  fi
 
10977
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10978
  ;;
 
10979
 
 
10980
tpf*)
 
10981
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10982
  version_type=linux # correct to gnu/linux during the next big refactor
 
10983
  need_lib_prefix=no
 
10984
  need_version=no
 
10985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10986
  shlibpath_var=LD_LIBRARY_PATH
 
10987
  shlibpath_overrides_runpath=no
 
10988
  hardcode_into_libs=yes
 
10989
  ;;
 
10990
 
 
10991
uts4*)
 
10992
  version_type=linux # correct to gnu/linux during the next big refactor
 
10993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10994
  soname_spec='${libname}${release}${shared_ext}$major'
 
10995
  shlibpath_var=LD_LIBRARY_PATH
 
10996
  ;;
 
10997
 
 
10998
*)
 
10999
  dynamic_linker=no
 
11000
  ;;
 
11001
esac
 
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11003
$as_echo "$dynamic_linker" >&6; }
 
11004
test "$dynamic_linker" = no && can_build_shared=no
 
11005
 
 
11006
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11007
if test "$GCC" = yes; then
 
11008
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11009
fi
 
11010
 
 
11011
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11012
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11013
fi
 
11014
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11015
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11016
fi
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
 
 
11024
 
 
11025
 
 
11026
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
 
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11110
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11111
hardcode_action=
 
11112
if test -n "$hardcode_libdir_flag_spec" ||
 
11113
   test -n "$runpath_var" ||
 
11114
   test "X$hardcode_automatic" = "Xyes" ; then
 
11115
 
 
11116
  # We can hardcode non-existent directories.
 
11117
  if test "$hardcode_direct" != no &&
 
11118
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11119
     # have to relink, otherwise we might link with an installed library
 
11120
     # when we should be linking with a yet-to-be-installed one
 
11121
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11122
     test "$hardcode_minus_L" != no; then
 
11123
    # Linking always hardcodes the temporary library directory.
 
11124
    hardcode_action=relink
 
11125
  else
 
11126
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11127
    hardcode_action=immediate
 
11128
  fi
 
11129
else
 
11130
  # We cannot hardcode anything, or else we can only hardcode existing
 
11131
  # directories.
 
11132
  hardcode_action=unsupported
 
11133
fi
 
11134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11135
$as_echo "$hardcode_action" >&6; }
 
11136
 
 
11137
if test "$hardcode_action" = relink ||
 
11138
   test "$inherit_rpath" = yes; then
 
11139
  # Fast installation is not supported
 
11140
  enable_fast_install=no
 
11141
elif test "$shlibpath_overrides_runpath" = yes ||
 
11142
     test "$enable_shared" = no; then
 
11143
  # Fast installation is not necessary
 
11144
  enable_fast_install=needless
 
11145
fi
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
  if test "x$enable_dlopen" != xyes; then
 
11153
  enable_dlopen=unknown
 
11154
  enable_dlopen_self=unknown
 
11155
  enable_dlopen_self_static=unknown
 
11156
else
 
11157
  lt_cv_dlopen=no
 
11158
  lt_cv_dlopen_libs=
 
11159
 
 
11160
  case $host_os in
 
11161
  beos*)
 
11162
    lt_cv_dlopen="load_add_on"
 
11163
    lt_cv_dlopen_libs=
 
11164
    lt_cv_dlopen_self=yes
 
11165
    ;;
 
11166
 
 
11167
  mingw* | pw32* | cegcc*)
 
11168
    lt_cv_dlopen="LoadLibrary"
 
11169
    lt_cv_dlopen_libs=
 
11170
    ;;
 
11171
 
 
11172
  cygwin*)
 
11173
    lt_cv_dlopen="dlopen"
 
11174
    lt_cv_dlopen_libs=
 
11175
    ;;
 
11176
 
 
11177
  darwin*)
 
11178
  # if libdl is installed we need to link against it
 
11179
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11180
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11181
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11182
  $as_echo_n "(cached) " >&6
 
11183
else
 
11184
  ac_check_lib_save_LIBS=$LIBS
 
11185
LIBS="-ldl  $LIBS"
 
11186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11187
/* end confdefs.h.  */
 
11188
 
 
11189
/* Override any GCC internal prototype to avoid an error.
 
11190
   Use char because int might match the return type of a GCC
 
11191
   builtin and then its argument prototype would still apply.  */
 
11192
#ifdef __cplusplus
 
11193
extern "C"
 
11194
#endif
 
11195
char dlopen ();
 
11196
int
 
11197
main ()
 
11198
{
 
11199
return dlopen ();
 
11200
  ;
 
11201
  return 0;
 
11202
}
 
11203
_ACEOF
 
11204
if ac_fn_c_try_link "$LINENO"; then :
 
11205
  ac_cv_lib_dl_dlopen=yes
 
11206
else
 
11207
  ac_cv_lib_dl_dlopen=no
 
11208
fi
 
11209
rm -f core conftest.err conftest.$ac_objext \
 
11210
    conftest$ac_exeext conftest.$ac_ext
 
11211
LIBS=$ac_check_lib_save_LIBS
 
11212
fi
 
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11214
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11215
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11216
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11217
else
 
11218
 
 
11219
    lt_cv_dlopen="dyld"
 
11220
    lt_cv_dlopen_libs=
 
11221
    lt_cv_dlopen_self=yes
 
11222
 
 
11223
fi
 
11224
 
 
11225
    ;;
 
11226
 
 
11227
  *)
 
11228
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11229
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11230
  lt_cv_dlopen="shl_load"
 
11231
else
 
11232
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11233
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11234
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11235
  $as_echo_n "(cached) " >&6
 
11236
else
 
11237
  ac_check_lib_save_LIBS=$LIBS
 
11238
LIBS="-ldld  $LIBS"
 
11239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11240
/* end confdefs.h.  */
 
11241
 
 
11242
/* Override any GCC internal prototype to avoid an error.
 
11243
   Use char because int might match the return type of a GCC
 
11244
   builtin and then its argument prototype would still apply.  */
 
11245
#ifdef __cplusplus
 
11246
extern "C"
 
11247
#endif
 
11248
char shl_load ();
 
11249
int
 
11250
main ()
 
11251
{
 
11252
return shl_load ();
 
11253
  ;
 
11254
  return 0;
 
11255
}
 
11256
_ACEOF
 
11257
if ac_fn_c_try_link "$LINENO"; then :
 
11258
  ac_cv_lib_dld_shl_load=yes
 
11259
else
 
11260
  ac_cv_lib_dld_shl_load=no
 
11261
fi
 
11262
rm -f core conftest.err conftest.$ac_objext \
 
11263
    conftest$ac_exeext conftest.$ac_ext
 
11264
LIBS=$ac_check_lib_save_LIBS
 
11265
fi
 
11266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11267
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11268
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11269
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11270
else
 
11271
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11272
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11273
  lt_cv_dlopen="dlopen"
 
11274
else
 
11275
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11276
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11277
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11278
  $as_echo_n "(cached) " >&6
 
11279
else
 
11280
  ac_check_lib_save_LIBS=$LIBS
 
11281
LIBS="-ldl  $LIBS"
 
11282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11283
/* end confdefs.h.  */
 
11284
 
 
11285
/* Override any GCC internal prototype to avoid an error.
 
11286
   Use char because int might match the return type of a GCC
 
11287
   builtin and then its argument prototype would still apply.  */
 
11288
#ifdef __cplusplus
 
11289
extern "C"
 
11290
#endif
 
11291
char dlopen ();
 
11292
int
 
11293
main ()
 
11294
{
 
11295
return dlopen ();
 
11296
  ;
 
11297
  return 0;
 
11298
}
 
11299
_ACEOF
 
11300
if ac_fn_c_try_link "$LINENO"; then :
 
11301
  ac_cv_lib_dl_dlopen=yes
 
11302
else
 
11303
  ac_cv_lib_dl_dlopen=no
 
11304
fi
 
11305
rm -f core conftest.err conftest.$ac_objext \
 
11306
    conftest$ac_exeext conftest.$ac_ext
 
11307
LIBS=$ac_check_lib_save_LIBS
 
11308
fi
 
11309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11310
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11311
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11312
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11313
else
 
11314
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11315
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11316
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11317
  $as_echo_n "(cached) " >&6
 
11318
else
 
11319
  ac_check_lib_save_LIBS=$LIBS
 
11320
LIBS="-lsvld  $LIBS"
 
11321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11322
/* end confdefs.h.  */
 
11323
 
 
11324
/* Override any GCC internal prototype to avoid an error.
 
11325
   Use char because int might match the return type of a GCC
 
11326
   builtin and then its argument prototype would still apply.  */
 
11327
#ifdef __cplusplus
 
11328
extern "C"
 
11329
#endif
 
11330
char dlopen ();
 
11331
int
 
11332
main ()
 
11333
{
 
11334
return dlopen ();
 
11335
  ;
 
11336
  return 0;
 
11337
}
 
11338
_ACEOF
 
11339
if ac_fn_c_try_link "$LINENO"; then :
 
11340
  ac_cv_lib_svld_dlopen=yes
 
11341
else
 
11342
  ac_cv_lib_svld_dlopen=no
 
11343
fi
 
11344
rm -f core conftest.err conftest.$ac_objext \
 
11345
    conftest$ac_exeext conftest.$ac_ext
 
11346
LIBS=$ac_check_lib_save_LIBS
 
11347
fi
 
11348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11349
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11350
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11351
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11352
else
 
11353
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11354
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11355
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11356
  $as_echo_n "(cached) " >&6
 
11357
else
 
11358
  ac_check_lib_save_LIBS=$LIBS
 
11359
LIBS="-ldld  $LIBS"
 
11360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11361
/* end confdefs.h.  */
 
11362
 
 
11363
/* Override any GCC internal prototype to avoid an error.
 
11364
   Use char because int might match the return type of a GCC
 
11365
   builtin and then its argument prototype would still apply.  */
 
11366
#ifdef __cplusplus
 
11367
extern "C"
 
11368
#endif
 
11369
char dld_link ();
 
11370
int
 
11371
main ()
 
11372
{
 
11373
return dld_link ();
 
11374
  ;
 
11375
  return 0;
 
11376
}
 
11377
_ACEOF
 
11378
if ac_fn_c_try_link "$LINENO"; then :
 
11379
  ac_cv_lib_dld_dld_link=yes
 
11380
else
 
11381
  ac_cv_lib_dld_dld_link=no
 
11382
fi
 
11383
rm -f core conftest.err conftest.$ac_objext \
 
11384
    conftest$ac_exeext conftest.$ac_ext
 
11385
LIBS=$ac_check_lib_save_LIBS
 
11386
fi
 
11387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11388
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11389
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11390
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11391
fi
 
11392
 
 
11393
 
 
11394
fi
 
11395
 
 
11396
 
 
11397
fi
 
11398
 
 
11399
 
 
11400
fi
 
11401
 
 
11402
 
 
11403
fi
 
11404
 
 
11405
 
 
11406
fi
 
11407
 
 
11408
    ;;
 
11409
  esac
 
11410
 
 
11411
  if test "x$lt_cv_dlopen" != xno; then
 
11412
    enable_dlopen=yes
 
11413
  else
 
11414
    enable_dlopen=no
 
11415
  fi
 
11416
 
 
11417
  case $lt_cv_dlopen in
 
11418
  dlopen)
 
11419
    save_CPPFLAGS="$CPPFLAGS"
 
11420
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11421
 
 
11422
    save_LDFLAGS="$LDFLAGS"
 
11423
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11424
 
 
11425
    save_LIBS="$LIBS"
 
11426
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11427
 
 
11428
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11429
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11430
if ${lt_cv_dlopen_self+:} false; then :
 
11431
  $as_echo_n "(cached) " >&6
 
11432
else
 
11433
          if test "$cross_compiling" = yes; then :
 
11434
  lt_cv_dlopen_self=cross
 
11435
else
 
11436
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11437
  lt_status=$lt_dlunknown
 
11438
  cat > conftest.$ac_ext <<_LT_EOF
 
11439
#line $LINENO "configure"
 
11440
#include "confdefs.h"
 
11441
 
 
11442
#if HAVE_DLFCN_H
 
11443
#include <dlfcn.h>
 
11444
#endif
 
11445
 
 
11446
#include <stdio.h>
 
11447
 
 
11448
#ifdef RTLD_GLOBAL
 
11449
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11450
#else
 
11451
#  ifdef DL_GLOBAL
 
11452
#    define LT_DLGLOBAL         DL_GLOBAL
 
11453
#  else
 
11454
#    define LT_DLGLOBAL         0
 
11455
#  endif
 
11456
#endif
 
11457
 
 
11458
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11459
   find out it does not work in some platform. */
 
11460
#ifndef LT_DLLAZY_OR_NOW
 
11461
#  ifdef RTLD_LAZY
 
11462
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11463
#  else
 
11464
#    ifdef DL_LAZY
 
11465
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11466
#    else
 
11467
#      ifdef RTLD_NOW
 
11468
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11469
#      else
 
11470
#        ifdef DL_NOW
 
11471
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11472
#        else
 
11473
#          define LT_DLLAZY_OR_NOW      0
 
11474
#        endif
 
11475
#      endif
 
11476
#    endif
 
11477
#  endif
 
11478
#endif
 
11479
 
 
11480
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11481
   correspondingly for the symbols needed.  */
 
11482
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11483
int fnord () __attribute__((visibility("default")));
 
11484
#endif
 
11485
 
 
11486
int fnord () { return 42; }
 
11487
int main ()
 
11488
{
 
11489
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11490
  int status = $lt_dlunknown;
 
11491
 
 
11492
  if (self)
 
11493
    {
 
11494
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11495
      else
 
11496
        {
 
11497
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11498
          else puts (dlerror ());
 
11499
        }
 
11500
      /* dlclose (self); */
 
11501
    }
 
11502
  else
 
11503
    puts (dlerror ());
 
11504
 
 
11505
  return status;
 
11506
}
 
11507
_LT_EOF
 
11508
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11509
  (eval $ac_link) 2>&5
 
11510
  ac_status=$?
 
11511
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11512
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11513
    (./conftest; exit; ) >&5 2>/dev/null
 
11514
    lt_status=$?
 
11515
    case x$lt_status in
 
11516
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11517
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11518
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11519
    esac
 
11520
  else :
 
11521
    # compilation failed
 
11522
    lt_cv_dlopen_self=no
 
11523
  fi
 
11524
fi
 
11525
rm -fr conftest*
 
11526
 
 
11527
 
 
11528
fi
 
11529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11530
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11531
 
 
11532
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11533
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11534
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11535
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11536
if ${lt_cv_dlopen_self_static+:} false; then :
 
11537
  $as_echo_n "(cached) " >&6
 
11538
else
 
11539
          if test "$cross_compiling" = yes; then :
 
11540
  lt_cv_dlopen_self_static=cross
 
11541
else
 
11542
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11543
  lt_status=$lt_dlunknown
 
11544
  cat > conftest.$ac_ext <<_LT_EOF
 
11545
#line $LINENO "configure"
 
11546
#include "confdefs.h"
 
11547
 
 
11548
#if HAVE_DLFCN_H
 
11549
#include <dlfcn.h>
 
11550
#endif
 
11551
 
 
11552
#include <stdio.h>
 
11553
 
 
11554
#ifdef RTLD_GLOBAL
 
11555
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11556
#else
 
11557
#  ifdef DL_GLOBAL
 
11558
#    define LT_DLGLOBAL         DL_GLOBAL
 
11559
#  else
 
11560
#    define LT_DLGLOBAL         0
 
11561
#  endif
 
11562
#endif
 
11563
 
 
11564
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11565
   find out it does not work in some platform. */
 
11566
#ifndef LT_DLLAZY_OR_NOW
 
11567
#  ifdef RTLD_LAZY
 
11568
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11569
#  else
 
11570
#    ifdef DL_LAZY
 
11571
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11572
#    else
 
11573
#      ifdef RTLD_NOW
 
11574
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11575
#      else
 
11576
#        ifdef DL_NOW
 
11577
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11578
#        else
 
11579
#          define LT_DLLAZY_OR_NOW      0
 
11580
#        endif
 
11581
#      endif
 
11582
#    endif
 
11583
#  endif
 
11584
#endif
 
11585
 
 
11586
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11587
   correspondingly for the symbols needed.  */
 
11588
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11589
int fnord () __attribute__((visibility("default")));
 
11590
#endif
 
11591
 
 
11592
int fnord () { return 42; }
 
11593
int main ()
 
11594
{
 
11595
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11596
  int status = $lt_dlunknown;
 
11597
 
 
11598
  if (self)
 
11599
    {
 
11600
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11601
      else
 
11602
        {
 
11603
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11604
          else puts (dlerror ());
 
11605
        }
 
11606
      /* dlclose (self); */
 
11607
    }
 
11608
  else
 
11609
    puts (dlerror ());
 
11610
 
 
11611
  return status;
 
11612
}
 
11613
_LT_EOF
 
11614
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11615
  (eval $ac_link) 2>&5
 
11616
  ac_status=$?
 
11617
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11618
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11619
    (./conftest; exit; ) >&5 2>/dev/null
 
11620
    lt_status=$?
 
11621
    case x$lt_status in
 
11622
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11623
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11624
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11625
    esac
 
11626
  else :
 
11627
    # compilation failed
 
11628
    lt_cv_dlopen_self_static=no
 
11629
  fi
 
11630
fi
 
11631
rm -fr conftest*
 
11632
 
 
11633
 
 
11634
fi
 
11635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11636
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11637
    fi
 
11638
 
 
11639
    CPPFLAGS="$save_CPPFLAGS"
 
11640
    LDFLAGS="$save_LDFLAGS"
 
11641
    LIBS="$save_LIBS"
 
11642
    ;;
 
11643
  esac
 
11644
 
 
11645
  case $lt_cv_dlopen_self in
 
11646
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11647
  *) enable_dlopen_self=unknown ;;
 
11648
  esac
 
11649
 
 
11650
  case $lt_cv_dlopen_self_static in
 
11651
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11652
  *) enable_dlopen_self_static=unknown ;;
 
11653
  esac
 
11654
fi
 
11655
 
 
11656
 
 
11657
 
 
11658
 
 
11659
 
 
11660
 
 
11661
 
 
11662
 
 
11663
 
 
11664
 
 
11665
 
 
11666
 
 
11667
 
 
11668
 
 
11669
 
 
11670
 
 
11671
 
 
11672
striplib=
 
11673
old_striplib=
 
11674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11675
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11676
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11677
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11678
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11680
$as_echo "yes" >&6; }
 
11681
else
 
11682
# FIXME - insert some real tests, host_os isn't really good enough
 
11683
  case $host_os in
 
11684
  darwin*)
 
11685
    if test -n "$STRIP" ; then
 
11686
      striplib="$STRIP -x"
 
11687
      old_striplib="$STRIP -S"
 
11688
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11689
$as_echo "yes" >&6; }
 
11690
    else
 
11691
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11692
$as_echo "no" >&6; }
 
11693
    fi
 
11694
    ;;
 
11695
  *)
 
11696
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11697
$as_echo "no" >&6; }
 
11698
    ;;
 
11699
  esac
 
11700
fi
 
11701
 
 
11702
 
 
11703
 
 
11704
 
 
11705
 
 
11706
 
 
11707
 
 
11708
 
 
11709
 
 
11710
 
 
11711
 
 
11712
 
 
11713
  # Report which library types will actually be built
 
11714
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11715
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11717
$as_echo "$can_build_shared" >&6; }
 
11718
 
 
11719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11720
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11721
  test "$can_build_shared" = "no" && enable_shared=no
 
11722
 
 
11723
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11724
  # are all built from PIC.
 
11725
  case $host_os in
 
11726
  aix3*)
 
11727
    test "$enable_shared" = yes && enable_static=no
 
11728
    if test -n "$RANLIB"; then
 
11729
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11730
      postinstall_cmds='$RANLIB $lib'
 
11731
    fi
 
11732
    ;;
 
11733
 
 
11734
  aix[4-9]*)
 
11735
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11736
      test "$enable_shared" = yes && enable_static=no
 
11737
    fi
 
11738
    ;;
 
11739
  esac
 
11740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11741
$as_echo "$enable_shared" >&6; }
 
11742
 
 
11743
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11744
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11745
  # Make sure either enable_shared or enable_static is yes.
 
11746
  test "$enable_shared" = yes || enable_static=yes
 
11747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11748
$as_echo "$enable_static" >&6; }
 
11749
 
 
11750
 
 
11751
 
 
11752
 
 
11753
fi
 
11754
ac_ext=c
 
11755
ac_cpp='$CPP $CPPFLAGS'
 
11756
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11757
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11758
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11759
 
 
11760
CC="$lt_save_CC"
 
11761
 
 
11762
 
 
11763
 
 
11764
 
 
11765
 
 
11766
 
 
11767
 
 
11768
 
 
11769
 
 
11770
 
 
11771
 
 
11772
 
 
11773
 
 
11774
 
 
11775
 
 
11776
        ac_config_commands="$ac_config_commands libtool"
 
11777
 
 
11778
 
 
11779
 
 
11780
 
 
11781
# Only expand once:
 
11782
 
 
11783
 
 
11784
 
 
11785
 
 
11786
#############################################
 
11787
# Gettext
 
11788
#############################################
 
11789
GETTEXT_PACKAGE="$PACKAGE"
 
11790
 
 
11791
CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
 
11792
 
 
11793
 
 
11794
cat >>confdefs.h <<_ACEOF
 
11795
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
11796
_ACEOF
 
11797
 
 
11798
 
 
11799
   for ac_header in locale.h
 
11800
do :
 
11801
  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
11802
if test "x$ac_cv_header_locale_h" = xyes; then :
 
11803
  cat >>confdefs.h <<_ACEOF
 
11804
#define HAVE_LOCALE_H 1
 
11805
_ACEOF
 
11806
 
 
11807
fi
 
11808
 
 
11809
done
 
11810
 
 
11811
    if test $ac_cv_header_locale_h = yes; then
 
11812
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
 
11813
$as_echo_n "checking for LC_MESSAGES... " >&6; }
 
11814
if ${am_cv_val_LC_MESSAGES+:} false; then :
 
11815
  $as_echo_n "(cached) " >&6
 
11816
else
 
11817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11818
/* end confdefs.h.  */
 
11819
#include <locale.h>
 
11820
int
 
11821
main ()
 
11822
{
 
11823
return LC_MESSAGES
 
11824
  ;
 
11825
  return 0;
 
11826
}
 
11827
_ACEOF
 
11828
if ac_fn_c_try_link "$LINENO"; then :
 
11829
  am_cv_val_LC_MESSAGES=yes
 
11830
else
 
11831
  am_cv_val_LC_MESSAGES=no
 
11832
fi
 
11833
rm -f core conftest.err conftest.$ac_objext \
 
11834
    conftest$ac_exeext conftest.$ac_ext
 
11835
fi
 
11836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
 
11837
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 
11838
    if test $am_cv_val_LC_MESSAGES = yes; then
 
11839
 
 
11840
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
 
11841
 
 
11842
    fi
 
11843
  fi
 
11844
     USE_NLS=yes
 
11845
 
 
11846
 
 
11847
    gt_cv_have_gettext=no
 
11848
 
 
11849
    CATOBJEXT=NONE
 
11850
    XGETTEXT=:
 
11851
    INTLLIBS=
 
11852
 
 
11853
    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
11854
if test "x$ac_cv_header_libintl_h" = xyes; then :
 
11855
  gt_cv_func_dgettext_libintl="no"
 
11856
      libintl_extra_libs=""
 
11857
 
 
11858
      #
 
11859
      # First check in libc
 
11860
      #
 
11861
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
 
11862
$as_echo_n "checking for ngettext in libc... " >&6; }
 
11863
if ${gt_cv_func_ngettext_libc+:} false; then :
 
11864
  $as_echo_n "(cached) " >&6
 
11865
else
 
11866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11867
/* end confdefs.h.  */
 
11868
 
 
11869
#include <libintl.h>
 
11870
 
 
11871
int
 
11872
main ()
 
11873
{
 
11874
return !ngettext ("","", 1)
 
11875
  ;
 
11876
  return 0;
 
11877
}
 
11878
_ACEOF
 
11879
if ac_fn_c_try_link "$LINENO"; then :
 
11880
  gt_cv_func_ngettext_libc=yes
 
11881
else
 
11882
  gt_cv_func_ngettext_libc=no
 
11883
fi
 
11884
rm -f core conftest.err conftest.$ac_objext \
 
11885
    conftest$ac_exeext conftest.$ac_ext
 
11886
 
 
11887
fi
 
11888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
 
11889
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
 
11890
 
 
11891
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
11892
              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
 
11893
$as_echo_n "checking for dgettext in libc... " >&6; }
 
11894
if ${gt_cv_func_dgettext_libc+:} false; then :
 
11895
  $as_echo_n "(cached) " >&6
 
11896
else
 
11897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11898
/* end confdefs.h.  */
 
11899
 
 
11900
#include <libintl.h>
 
11901
 
 
11902
int
 
11903
main ()
 
11904
{
 
11905
return !dgettext ("","")
 
11906
  ;
 
11907
  return 0;
 
11908
}
 
11909
_ACEOF
 
11910
if ac_fn_c_try_link "$LINENO"; then :
 
11911
  gt_cv_func_dgettext_libc=yes
 
11912
else
 
11913
  gt_cv_func_dgettext_libc=no
 
11914
fi
 
11915
rm -f core conftest.err conftest.$ac_objext \
 
11916
    conftest$ac_exeext conftest.$ac_ext
 
11917
 
 
11918
fi
 
11919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
 
11920
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
 
11921
      fi
 
11922
 
 
11923
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
11924
        for ac_func in bind_textdomain_codeset
 
11925
do :
 
11926
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
11927
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
11928
  cat >>confdefs.h <<_ACEOF
 
11929
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
11930
_ACEOF
 
11931
 
 
11932
fi
 
11933
done
 
11934
 
 
11935
      fi
 
11936
 
 
11937
      #
 
11938
      # If we don't have everything we want, check in libintl
 
11939
      #
 
11940
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
11941
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
11942
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
11943
 
 
11944
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
 
11945
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 
11946
if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
 
11947
  $as_echo_n "(cached) " >&6
 
11948
else
 
11949
  ac_check_lib_save_LIBS=$LIBS
 
11950
LIBS="-lintl  $LIBS"
 
11951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11952
/* end confdefs.h.  */
 
11953
 
 
11954
/* Override any GCC internal prototype to avoid an error.
 
11955
   Use char because int might match the return type of a GCC
 
11956
   builtin and then its argument prototype would still apply.  */
 
11957
#ifdef __cplusplus
 
11958
extern "C"
 
11959
#endif
 
11960
char bindtextdomain ();
 
11961
int
 
11962
main ()
 
11963
{
 
11964
return bindtextdomain ();
 
11965
  ;
 
11966
  return 0;
 
11967
}
 
11968
_ACEOF
 
11969
if ac_fn_c_try_link "$LINENO"; then :
 
11970
  ac_cv_lib_intl_bindtextdomain=yes
 
11971
else
 
11972
  ac_cv_lib_intl_bindtextdomain=no
 
11973
fi
 
11974
rm -f core conftest.err conftest.$ac_objext \
 
11975
    conftest$ac_exeext conftest.$ac_ext
 
11976
LIBS=$ac_check_lib_save_LIBS
 
11977
fi
 
11978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
11979
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 
11980
if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
 
11981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
11982
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
11983
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
11984
  $as_echo_n "(cached) " >&6
 
11985
else
 
11986
  ac_check_lib_save_LIBS=$LIBS
 
11987
LIBS="-lintl  $LIBS"
 
11988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11989
/* end confdefs.h.  */
 
11990
 
 
11991
/* Override any GCC internal prototype to avoid an error.
 
11992
   Use char because int might match the return type of a GCC
 
11993
   builtin and then its argument prototype would still apply.  */
 
11994
#ifdef __cplusplus
 
11995
extern "C"
 
11996
#endif
 
11997
char ngettext ();
 
11998
int
 
11999
main ()
 
12000
{
 
12001
return ngettext ();
 
12002
  ;
 
12003
  return 0;
 
12004
}
 
12005
_ACEOF
 
12006
if ac_fn_c_try_link "$LINENO"; then :
 
12007
  ac_cv_lib_intl_ngettext=yes
 
12008
else
 
12009
  ac_cv_lib_intl_ngettext=no
 
12010
fi
 
12011
rm -f core conftest.err conftest.$ac_objext \
 
12012
    conftest$ac_exeext conftest.$ac_ext
 
12013
LIBS=$ac_check_lib_save_LIBS
 
12014
fi
 
12015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
12016
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
12017
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
12018
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
 
12019
$as_echo_n "checking for dgettext in -lintl... " >&6; }
 
12020
if ${ac_cv_lib_intl_dgettext+:} false; then :
 
12021
  $as_echo_n "(cached) " >&6
 
12022
else
 
12023
  ac_check_lib_save_LIBS=$LIBS
 
12024
LIBS="-lintl  $LIBS"
 
12025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12026
/* end confdefs.h.  */
 
12027
 
 
12028
/* Override any GCC internal prototype to avoid an error.
 
12029
   Use char because int might match the return type of a GCC
 
12030
   builtin and then its argument prototype would still apply.  */
 
12031
#ifdef __cplusplus
 
12032
extern "C"
 
12033
#endif
 
12034
char dgettext ();
 
12035
int
 
12036
main ()
 
12037
{
 
12038
return dgettext ();
 
12039
  ;
 
12040
  return 0;
 
12041
}
 
12042
_ACEOF
 
12043
if ac_fn_c_try_link "$LINENO"; then :
 
12044
  ac_cv_lib_intl_dgettext=yes
 
12045
else
 
12046
  ac_cv_lib_intl_dgettext=no
 
12047
fi
 
12048
rm -f core conftest.err conftest.$ac_objext \
 
12049
    conftest$ac_exeext conftest.$ac_ext
 
12050
LIBS=$ac_check_lib_save_LIBS
 
12051
fi
 
12052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
 
12053
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 
12054
if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
 
12055
  gt_cv_func_dgettext_libintl=yes
 
12056
fi
 
12057
 
 
12058
fi
 
12059
 
 
12060
fi
 
12061
 
 
12062
 
 
12063
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
12064
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
 
12065
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 
12066
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
12067
$as_echo "" >&6; }
 
12068
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
12069
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
12070
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
12071
  $as_echo_n "(cached) " >&6
 
12072
else
 
12073
  ac_check_lib_save_LIBS=$LIBS
 
12074
LIBS="-lintl -liconv $LIBS"
 
12075
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12076
/* end confdefs.h.  */
 
12077
 
 
12078
/* Override any GCC internal prototype to avoid an error.
 
12079
   Use char because int might match the return type of a GCC
 
12080
   builtin and then its argument prototype would still apply.  */
 
12081
#ifdef __cplusplus
 
12082
extern "C"
 
12083
#endif
 
12084
char ngettext ();
 
12085
int
 
12086
main ()
 
12087
{
 
12088
return ngettext ();
 
12089
  ;
 
12090
  return 0;
 
12091
}
 
12092
_ACEOF
 
12093
if ac_fn_c_try_link "$LINENO"; then :
 
12094
  ac_cv_lib_intl_ngettext=yes
 
12095
else
 
12096
  ac_cv_lib_intl_ngettext=no
 
12097
fi
 
12098
rm -f core conftest.err conftest.$ac_objext \
 
12099
    conftest$ac_exeext conftest.$ac_ext
 
12100
LIBS=$ac_check_lib_save_LIBS
 
12101
fi
 
12102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
12103
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
12104
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
12105
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
 
12106
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
 
12107
if ${ac_cv_lib_intl_dcgettext+:} false; then :
 
12108
  $as_echo_n "(cached) " >&6
 
12109
else
 
12110
  ac_check_lib_save_LIBS=$LIBS
 
12111
LIBS="-lintl -liconv $LIBS"
 
12112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12113
/* end confdefs.h.  */
 
12114
 
 
12115
/* Override any GCC internal prototype to avoid an error.
 
12116
   Use char because int might match the return type of a GCC
 
12117
   builtin and then its argument prototype would still apply.  */
 
12118
#ifdef __cplusplus
 
12119
extern "C"
 
12120
#endif
 
12121
char dcgettext ();
 
12122
int
 
12123
main ()
 
12124
{
 
12125
return dcgettext ();
 
12126
  ;
 
12127
  return 0;
 
12128
}
 
12129
_ACEOF
 
12130
if ac_fn_c_try_link "$LINENO"; then :
 
12131
  ac_cv_lib_intl_dcgettext=yes
 
12132
else
 
12133
  ac_cv_lib_intl_dcgettext=no
 
12134
fi
 
12135
rm -f core conftest.err conftest.$ac_objext \
 
12136
    conftest$ac_exeext conftest.$ac_ext
 
12137
LIBS=$ac_check_lib_save_LIBS
 
12138
fi
 
12139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
 
12140
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 
12141
if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
 
12142
  gt_cv_func_dgettext_libintl=yes
 
12143
                        libintl_extra_libs=-liconv
 
12144
else
 
12145
  :
 
12146
fi
 
12147
 
 
12148
else
 
12149
  :
 
12150
fi
 
12151
 
 
12152
        fi
 
12153
 
 
12154
        #
 
12155
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
12156
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
12157
        # and both have dgettext and ngettext
 
12158
        #
 
12159
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
12160
          glib_save_LIBS="$LIBS"
 
12161
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
12162
          unset ac_cv_func_bind_textdomain_codeset
 
12163
          for ac_func in bind_textdomain_codeset
 
12164
do :
 
12165
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
12166
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
12167
  cat >>confdefs.h <<_ACEOF
 
12168
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
12169
_ACEOF
 
12170
 
 
12171
fi
 
12172
done
 
12173
 
 
12174
          LIBS="$glib_save_LIBS"
 
12175
 
 
12176
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
12177
            gt_cv_func_dgettext_libc=no
 
12178
          else
 
12179
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
12180
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
12181
              gt_cv_func_dgettext_libintl=no
 
12182
            fi
 
12183
          fi
 
12184
        fi
 
12185
      fi
 
12186
 
 
12187
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
12188
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
12189
        gt_cv_have_gettext=yes
 
12190
      fi
 
12191
 
 
12192
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
12193
        INTLLIBS="-lintl $libintl_extra_libs"
 
12194
      fi
 
12195
 
 
12196
      if test "$gt_cv_have_gettext" = "yes"; then
 
12197
 
 
12198
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
12199
 
 
12200
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
12201
set dummy msgfmt; ac_word=$2
 
12202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12203
$as_echo_n "checking for $ac_word... " >&6; }
 
12204
if ${ac_cv_path_MSGFMT+:} false; then :
 
12205
  $as_echo_n "(cached) " >&6
 
12206
else
 
12207
  case "$MSGFMT" in
 
12208
  /*)
 
12209
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12210
  ;;
 
12211
  *)
 
12212
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
12213
  for ac_dir in $PATH; do
 
12214
    test -z "$ac_dir" && ac_dir=.
 
12215
    if test -f $ac_dir/$ac_word; then
 
12216
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
12217
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
12218
        break
 
12219
      fi
 
12220
    fi
 
12221
  done
 
12222
  IFS="$ac_save_ifs"
 
12223
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
12224
  ;;
 
12225
esac
 
12226
fi
 
12227
MSGFMT="$ac_cv_path_MSGFMT"
 
12228
if test "$MSGFMT" != "no"; then
 
12229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12230
$as_echo "$MSGFMT" >&6; }
 
12231
else
 
12232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12233
$as_echo "no" >&6; }
 
12234
fi
 
12235
        if test "$MSGFMT" != "no"; then
 
12236
          glib_save_LIBS="$LIBS"
 
12237
          LIBS="$LIBS $INTLLIBS"
 
12238
          for ac_func in dcgettext
 
12239
do :
 
12240
  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
 
12241
if test "x$ac_cv_func_dcgettext" = xyes; then :
 
12242
  cat >>confdefs.h <<_ACEOF
 
12243
#define HAVE_DCGETTEXT 1
 
12244
_ACEOF
 
12245
 
 
12246
fi
 
12247
done
 
12248
 
 
12249
          MSGFMT_OPTS=
 
12250
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
 
12251
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
 
12252
          cat >conftest.foo <<_ACEOF
 
12253
 
 
12254
msgid ""
 
12255
msgstr ""
 
12256
"Content-Type: text/plain; charset=UTF-8\n"
 
12257
"Project-Id-Version: test 1.0\n"
 
12258
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
12259
"Last-Translator: test <foo@bar.xx>\n"
 
12260
"Language-Team: C <LL@li.org>\n"
 
12261
"MIME-Version: 1.0\n"
 
12262
"Content-Transfer-Encoding: 8bit\n"
 
12263
 
 
12264
_ACEOF
 
12265
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
 
12266
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 
12267
  ac_status=$?
 
12268
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12269
  test $ac_status = 0; }; then
 
12270
  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12271
$as_echo "yes" >&6; }
 
12272
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12273
$as_echo "no" >&6; }
 
12274
echo "$as_me: failed input was:" >&5
 
12275
sed 's/^/| /' conftest.foo >&5
 
12276
fi
 
12277
 
 
12278
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12279
set dummy gmsgfmt; ac_word=$2
 
12280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12281
$as_echo_n "checking for $ac_word... " >&6; }
 
12282
if ${ac_cv_path_GMSGFMT+:} false; then :
 
12283
  $as_echo_n "(cached) " >&6
 
12284
else
 
12285
  case $GMSGFMT in
 
12286
  [\\/]* | ?:[\\/]*)
 
12287
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12288
  ;;
 
12289
  *)
 
12290
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12291
for as_dir in $PATH
 
12292
do
 
12293
  IFS=$as_save_IFS
 
12294
  test -z "$as_dir" && as_dir=.
 
12295
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12296
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12297
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12298
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12299
    break 2
 
12300
  fi
 
12301
done
 
12302
  done
 
12303
IFS=$as_save_IFS
 
12304
 
 
12305
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12306
  ;;
 
12307
esac
 
12308
fi
 
12309
GMSGFMT=$ac_cv_path_GMSGFMT
 
12310
if test -n "$GMSGFMT"; then
 
12311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12312
$as_echo "$GMSGFMT" >&6; }
 
12313
else
 
12314
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12315
$as_echo "no" >&6; }
 
12316
fi
 
12317
 
 
12318
 
 
12319
          # Extract the first word of "xgettext", so it can be a program name with args.
 
12320
set dummy xgettext; ac_word=$2
 
12321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12322
$as_echo_n "checking for $ac_word... " >&6; }
 
12323
if ${ac_cv_path_XGETTEXT+:} false; then :
 
12324
  $as_echo_n "(cached) " >&6
 
12325
else
 
12326
  case "$XGETTEXT" in
 
12327
  /*)
 
12328
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12329
  ;;
 
12330
  *)
 
12331
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
12332
  for ac_dir in $PATH; do
 
12333
    test -z "$ac_dir" && ac_dir=.
 
12334
    if test -f $ac_dir/$ac_word; then
 
12335
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
12336
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
12337
        break
 
12338
      fi
 
12339
    fi
 
12340
  done
 
12341
  IFS="$ac_save_ifs"
 
12342
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
12343
  ;;
 
12344
esac
 
12345
fi
 
12346
XGETTEXT="$ac_cv_path_XGETTEXT"
 
12347
if test "$XGETTEXT" != ":"; then
 
12348
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12349
$as_echo "$XGETTEXT" >&6; }
 
12350
else
 
12351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12352
$as_echo "no" >&6; }
 
12353
fi
 
12354
 
 
12355
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12356
/* end confdefs.h.  */
 
12357
 
 
12358
int
 
12359
main ()
 
12360
{
 
12361
extern int _nl_msg_cat_cntr;
 
12362
                         return _nl_msg_cat_cntr
 
12363
  ;
 
12364
  return 0;
 
12365
}
 
12366
_ACEOF
 
12367
if ac_fn_c_try_link "$LINENO"; then :
 
12368
  CATOBJEXT=.gmo
 
12369
             DATADIRNAME=share
 
12370
else
 
12371
  case $host in
 
12372
            *-*-solaris*)
 
12373
                                                                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
12374
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
12375
  CATOBJEXT=.gmo
 
12376
               DATADIRNAME=share
 
12377
else
 
12378
  CATOBJEXT=.mo
 
12379
               DATADIRNAME=lib
 
12380
fi
 
12381
 
 
12382
            ;;
 
12383
            *-*-openbsd*)
 
12384
            CATOBJEXT=.mo
 
12385
            DATADIRNAME=share
 
12386
            ;;
 
12387
            *)
 
12388
            CATOBJEXT=.mo
 
12389
            DATADIRNAME=lib
 
12390
            ;;
 
12391
            esac
 
12392
fi
 
12393
rm -f core conftest.err conftest.$ac_objext \
 
12394
    conftest$ac_exeext conftest.$ac_ext
 
12395
          LIBS="$glib_save_LIBS"
 
12396
          INSTOBJEXT=.mo
 
12397
        else
 
12398
          gt_cv_have_gettext=no
 
12399
        fi
 
12400
      fi
 
12401
 
 
12402
fi
 
12403
 
 
12404
 
 
12405
 
 
12406
    if test "$gt_cv_have_gettext" = "yes" ; then
 
12407
 
 
12408
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
12409
 
 
12410
    fi
 
12411
 
 
12412
        if test "$XGETTEXT" != ":"; then
 
12413
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
12414
        : ;
 
12415
      else
 
12416
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
12417
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 
12418
        XGETTEXT=":"
 
12419
      fi
 
12420
    fi
 
12421
 
 
12422
    # We need to process the po/ directory.
 
12423
    POSUB=po
 
12424
 
 
12425
    ac_config_commands="$ac_config_commands default-1"
 
12426
 
 
12427
 
 
12428
                for lang in $ALL_LINGUAS; do
 
12429
      GMOFILES="$GMOFILES $lang.gmo"
 
12430
      POFILES="$POFILES $lang.po"
 
12431
    done
 
12432
 
 
12433
 
 
12434
 
 
12435
 
 
12436
 
 
12437
 
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
 
 
12443
 
 
12444
 
 
12445
   if test "$gt_cv_have_gettext" = "yes"; then
 
12446
     if test "x$ALL_LINGUAS" = "x"; then
 
12447
       LINGUAS=
 
12448
     else
 
12449
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
 
12450
$as_echo_n "checking for catalogs to be installed... " >&6; }
 
12451
       NEW_LINGUAS=
 
12452
       for presentlang in $ALL_LINGUAS; do
 
12453
         useit=no
 
12454
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
12455
           desiredlanguages="$LINGUAS"
 
12456
         else
 
12457
           desiredlanguages="$ALL_LINGUAS"
 
12458
         fi
 
12459
         for desiredlang in $desiredlanguages; do
 
12460
           # Use the presentlang catalog if desiredlang is
 
12461
           #   a. equal to presentlang, or
 
12462
           #   b. a variant of presentlang (because in this case,
 
12463
           #      presentlang can be used as a fallback for messages
 
12464
           #      which are not translated in the desiredlang catalog).
 
12465
           case "$desiredlang" in
 
12466
             "$presentlang"*) useit=yes;;
 
12467
           esac
 
12468
         done
 
12469
         if test $useit = yes; then
 
12470
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
12471
         fi
 
12472
       done
 
12473
       LINGUAS=$NEW_LINGUAS
 
12474
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
 
12475
$as_echo "$LINGUAS" >&6; }
 
12476
     fi
 
12477
 
 
12478
          if test -n "$LINGUAS"; then
 
12479
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
12480
     fi
 
12481
   fi
 
12482
 
 
12483
            MKINSTALLDIRS=
 
12484
   if test -n "$ac_aux_dir"; then
 
12485
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
12486
   fi
 
12487
   if test -z "$MKINSTALLDIRS"; then
 
12488
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
12489
   fi
 
12490
 
 
12491
 
 
12492
         test -d po || mkdir po
 
12493
   if test "x$srcdir" != "x."; then
 
12494
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
12495
       posrcprefix="$srcdir/"
 
12496
     else
 
12497
       posrcprefix="../$srcdir/"
 
12498
     fi
 
12499
   else
 
12500
     posrcprefix="../"
 
12501
   fi
 
12502
   rm -f po/POTFILES
 
12503
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
12504
        < $srcdir/po/POTFILES.in > po/POTFILES
 
12505
 
 
12506
 
 
12507
# AM_GNOME_GETTEXT above substs $DATADIRNAME
 
12508
# this is the directory where the *.{mo,gmo} files are installed
 
12509
localedir='${prefix}/${DATADIRNAME}/locale'
 
12510
 
 
12511
 
 
12512
 
 
12513
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
12514
$as_echo_n "checking whether NLS is requested... " >&6; }
 
12515
    # Check whether --enable-nls was given.
 
12516
if test "${enable_nls+set}" = set; then :
 
12517
  enableval=$enable_nls; USE_NLS=$enableval
 
12518
else
 
12519
  USE_NLS=yes
 
12520
fi
 
12521
 
 
12522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
12523
$as_echo "$USE_NLS" >&6; }
 
12524
 
 
12525
 
 
12526
 
 
12527
 
 
12528
case "$am__api_version" in
 
12529
    1.01234)
 
12530
        as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
 
12531
    ;;
 
12532
    *)
 
12533
    ;;
 
12534
esac
 
12535
 
 
12536
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
12537
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
12538
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
12539
if test -n "0.40.0"; then
 
12540
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5
 
12541
$as_echo_n "checking for intltool >= 0.40.0... " >&6; }
 
12542
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
12543
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
 
12544
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
12545
        as_fn_error $? "Your intltool is too old.  You need intltool 0.40.0 or later." "$LINENO" 5
 
12546
fi
 
12547
 
 
12548
# Extract the first word of "intltool-update", so it can be a program name with args.
 
12549
set dummy intltool-update; ac_word=$2
 
12550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12551
$as_echo_n "checking for $ac_word... " >&6; }
 
12552
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
 
12553
  $as_echo_n "(cached) " >&6
 
12554
else
 
12555
  case $INTLTOOL_UPDATE in
 
12556
  [\\/]* | ?:[\\/]*)
 
12557
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
 
12558
  ;;
 
12559
  *)
 
12560
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12561
for as_dir in $PATH
 
12562
do
 
12563
  IFS=$as_save_IFS
 
12564
  test -z "$as_dir" && as_dir=.
 
12565
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12566
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12567
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
 
12568
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12569
    break 2
 
12570
  fi
 
12571
done
 
12572
  done
 
12573
IFS=$as_save_IFS
 
12574
 
 
12575
  ;;
 
12576
esac
 
12577
fi
 
12578
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
 
12579
if test -n "$INTLTOOL_UPDATE"; then
 
12580
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
 
12581
$as_echo "$INTLTOOL_UPDATE" >&6; }
 
12582
else
 
12583
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12584
$as_echo "no" >&6; }
 
12585
fi
 
12586
 
 
12587
 
 
12588
# Extract the first word of "intltool-merge", so it can be a program name with args.
 
12589
set dummy intltool-merge; ac_word=$2
 
12590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12591
$as_echo_n "checking for $ac_word... " >&6; }
 
12592
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
 
12593
  $as_echo_n "(cached) " >&6
 
12594
else
 
12595
  case $INTLTOOL_MERGE in
 
12596
  [\\/]* | ?:[\\/]*)
 
12597
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
 
12598
  ;;
 
12599
  *)
 
12600
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12601
for as_dir in $PATH
 
12602
do
 
12603
  IFS=$as_save_IFS
 
12604
  test -z "$as_dir" && as_dir=.
 
12605
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12606
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12607
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
 
12608
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12609
    break 2
 
12610
  fi
 
12611
done
 
12612
  done
 
12613
IFS=$as_save_IFS
 
12614
 
 
12615
  ;;
 
12616
esac
 
12617
fi
 
12618
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
 
12619
if test -n "$INTLTOOL_MERGE"; then
 
12620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
 
12621
$as_echo "$INTLTOOL_MERGE" >&6; }
 
12622
else
 
12623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12624
$as_echo "no" >&6; }
 
12625
fi
 
12626
 
 
12627
 
 
12628
# Extract the first word of "intltool-extract", so it can be a program name with args.
 
12629
set dummy intltool-extract; ac_word=$2
 
12630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12631
$as_echo_n "checking for $ac_word... " >&6; }
 
12632
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
 
12633
  $as_echo_n "(cached) " >&6
 
12634
else
 
12635
  case $INTLTOOL_EXTRACT in
 
12636
  [\\/]* | ?:[\\/]*)
 
12637
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
 
12638
  ;;
 
12639
  *)
 
12640
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12641
for as_dir in $PATH
 
12642
do
 
12643
  IFS=$as_save_IFS
 
12644
  test -z "$as_dir" && as_dir=.
 
12645
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12646
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12647
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
 
12648
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12649
    break 2
 
12650
  fi
 
12651
done
 
12652
  done
 
12653
IFS=$as_save_IFS
 
12654
 
 
12655
  ;;
 
12656
esac
 
12657
fi
 
12658
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
 
12659
if test -n "$INTLTOOL_EXTRACT"; then
 
12660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
 
12661
$as_echo "$INTLTOOL_EXTRACT" >&6; }
 
12662
else
 
12663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12664
$as_echo "no" >&6; }
 
12665
fi
 
12666
 
 
12667
 
 
12668
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
12669
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
 
12670
fi
 
12671
 
 
12672
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
12673
  AM_DEFAULT_VERBOSITY=1
 
12674
fi
 
12675
 
 
12676
 
 
12677
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
12678
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
12679
INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
 
12680
 
 
12681
 
 
12682
 
 
12683
 
 
12684
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
12685
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
12686
intltool__v_merge_options_0='-q'
 
12687
 
 
12688
 
 
12689
 
 
12690
 
 
12691
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12692
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12693
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12694
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12695
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
 
12696
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12697
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12698
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12699
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12700
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12701
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12702
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
12703
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
 
12704
else
 
12705
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
 
12706
fi
 
12707
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12708
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12709
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12710
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12711
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12712
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12713
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
12714
 
 
12715
 
 
12716
 
 
12717
 
 
12718
 
 
12719
 
 
12720
 
 
12721
 
 
12722
 
 
12723
 
 
12724
 
 
12725
 
 
12726
 
 
12727
 
 
12728
 
 
12729
 
 
12730
 
 
12731
 
 
12732
 
 
12733
 
 
12734
 
 
12735
 
 
12736
 
 
12737
 
 
12738
 
 
12739
 
 
12740
 
 
12741
 
 
12742
 
 
12743
 
 
12744
 
 
12745
 
 
12746
 
 
12747
 
 
12748
 
 
12749
 
 
12750
 
 
12751
 
 
12752
 
 
12753
 
 
12754
 
 
12755
 
 
12756
 
 
12757
 
 
12758
 
 
12759
 
 
12760
 
 
12761
 
 
12762
 
 
12763
 
 
12764
 
 
12765
 
 
12766
 
 
12767
 
 
12768
 
 
12769
 
 
12770
 
 
12771
 
 
12772
 
 
12773
 
 
12774
 
 
12775
 
 
12776
 
 
12777
 
 
12778
 
 
12779
 
 
12780
 
 
12781
 
 
12782
 
 
12783
 
 
12784
 
 
12785
 
 
12786
 
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
 
12811
# Check the gettext tools to make sure they are GNU
 
12812
# Extract the first word of "xgettext", so it can be a program name with args.
 
12813
set dummy xgettext; ac_word=$2
 
12814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12815
$as_echo_n "checking for $ac_word... " >&6; }
 
12816
if ${ac_cv_path_XGETTEXT+:} false; then :
 
12817
  $as_echo_n "(cached) " >&6
 
12818
else
 
12819
  case $XGETTEXT in
 
12820
  [\\/]* | ?:[\\/]*)
 
12821
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12822
  ;;
 
12823
  *)
 
12824
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12825
for as_dir in $PATH
 
12826
do
 
12827
  IFS=$as_save_IFS
 
12828
  test -z "$as_dir" && as_dir=.
 
12829
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12830
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12831
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
12832
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12833
    break 2
 
12834
  fi
 
12835
done
 
12836
  done
 
12837
IFS=$as_save_IFS
 
12838
 
 
12839
  ;;
 
12840
esac
 
12841
fi
 
12842
XGETTEXT=$ac_cv_path_XGETTEXT
 
12843
if test -n "$XGETTEXT"; then
 
12844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12845
$as_echo "$XGETTEXT" >&6; }
 
12846
else
 
12847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12848
$as_echo "no" >&6; }
 
12849
fi
 
12850
 
 
12851
 
 
12852
# Extract the first word of "msgmerge", so it can be a program name with args.
 
12853
set dummy msgmerge; ac_word=$2
 
12854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12855
$as_echo_n "checking for $ac_word... " >&6; }
 
12856
if ${ac_cv_path_MSGMERGE+:} false; then :
 
12857
  $as_echo_n "(cached) " >&6
 
12858
else
 
12859
  case $MSGMERGE in
 
12860
  [\\/]* | ?:[\\/]*)
 
12861
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
12862
  ;;
 
12863
  *)
 
12864
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12865
for as_dir in $PATH
 
12866
do
 
12867
  IFS=$as_save_IFS
 
12868
  test -z "$as_dir" && as_dir=.
 
12869
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12870
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12871
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
12872
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12873
    break 2
 
12874
  fi
 
12875
done
 
12876
  done
 
12877
IFS=$as_save_IFS
 
12878
 
 
12879
  ;;
 
12880
esac
 
12881
fi
 
12882
MSGMERGE=$ac_cv_path_MSGMERGE
 
12883
if test -n "$MSGMERGE"; then
 
12884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
12885
$as_echo "$MSGMERGE" >&6; }
 
12886
else
 
12887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12888
$as_echo "no" >&6; }
 
12889
fi
 
12890
 
 
12891
 
 
12892
# Extract the first word of "msgfmt", so it can be a program name with args.
 
12893
set dummy msgfmt; ac_word=$2
 
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12895
$as_echo_n "checking for $ac_word... " >&6; }
 
12896
if ${ac_cv_path_MSGFMT+:} false; then :
 
12897
  $as_echo_n "(cached) " >&6
 
12898
else
 
12899
  case $MSGFMT in
 
12900
  [\\/]* | ?:[\\/]*)
 
12901
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12902
  ;;
 
12903
  *)
 
12904
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12905
for as_dir in $PATH
 
12906
do
 
12907
  IFS=$as_save_IFS
 
12908
  test -z "$as_dir" && as_dir=.
 
12909
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12910
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12911
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12913
    break 2
 
12914
  fi
 
12915
done
 
12916
  done
 
12917
IFS=$as_save_IFS
 
12918
 
 
12919
  ;;
 
12920
esac
 
12921
fi
 
12922
MSGFMT=$ac_cv_path_MSGFMT
 
12923
if test -n "$MSGFMT"; then
 
12924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12925
$as_echo "$MSGFMT" >&6; }
 
12926
else
 
12927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12928
$as_echo "no" >&6; }
 
12929
fi
 
12930
 
 
12931
 
 
12932
# Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12933
set dummy gmsgfmt; ac_word=$2
 
12934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12935
$as_echo_n "checking for $ac_word... " >&6; }
 
12936
if ${ac_cv_path_GMSGFMT+:} false; then :
 
12937
  $as_echo_n "(cached) " >&6
 
12938
else
 
12939
  case $GMSGFMT in
 
12940
  [\\/]* | ?:[\\/]*)
 
12941
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12942
  ;;
 
12943
  *)
 
12944
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12945
for as_dir in $PATH
 
12946
do
 
12947
  IFS=$as_save_IFS
 
12948
  test -z "$as_dir" && as_dir=.
 
12949
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12950
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12951
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12952
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12953
    break 2
 
12954
  fi
 
12955
done
 
12956
  done
 
12957
IFS=$as_save_IFS
 
12958
 
 
12959
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12960
  ;;
 
12961
esac
 
12962
fi
 
12963
GMSGFMT=$ac_cv_path_GMSGFMT
 
12964
if test -n "$GMSGFMT"; then
 
12965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12966
$as_echo "$GMSGFMT" >&6; }
 
12967
else
 
12968
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12969
$as_echo "no" >&6; }
 
12970
fi
 
12971
 
 
12972
 
 
12973
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
12974
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
12975
fi
 
12976
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
12977
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
12978
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
12979
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
12980
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
12981
fi
 
12982
 
 
12983
# Extract the first word of "perl", so it can be a program name with args.
 
12984
set dummy perl; ac_word=$2
 
12985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12986
$as_echo_n "checking for $ac_word... " >&6; }
 
12987
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
 
12988
  $as_echo_n "(cached) " >&6
 
12989
else
 
12990
  case $INTLTOOL_PERL in
 
12991
  [\\/]* | ?:[\\/]*)
 
12992
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
12993
  ;;
 
12994
  *)
 
12995
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12996
for as_dir in $PATH
 
12997
do
 
12998
  IFS=$as_save_IFS
 
12999
  test -z "$as_dir" && as_dir=.
 
13000
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13001
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13002
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
13003
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13004
    break 2
 
13005
  fi
 
13006
done
 
13007
  done
 
13008
IFS=$as_save_IFS
 
13009
 
 
13010
  ;;
 
13011
esac
 
13012
fi
 
13013
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
13014
if test -n "$INTLTOOL_PERL"; then
 
13015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
 
13016
$as_echo "$INTLTOOL_PERL" >&6; }
 
13017
else
 
13018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13019
$as_echo "no" >&6; }
 
13020
fi
 
13021
 
 
13022
 
 
13023
if test -z "$INTLTOOL_PERL"; then
 
13024
   as_fn_error $? "perl not found" "$LINENO" 5
 
13025
fi
 
13026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
 
13027
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
 
13028
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
13029
if test $? -ne 0; then
 
13030
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
 
13031
else
 
13032
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
 
13033
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
 
13034
$as_echo "$IT_PERL_VERSION" >&6; }
 
13035
fi
 
13036
if test "x" != "xno-xml"; then
 
13037
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
 
13038
$as_echo_n "checking for XML::Parser... " >&6; }
 
13039
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
13040
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
13041
$as_echo "ok" >&6; }
 
13042
   else
 
13043
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
 
13044
   fi
 
13045
fi
 
13046
 
 
13047
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
13048
 
 
13049
 
 
13050
# Set DATADIRNAME correctly if it is not set yet
 
13051
# (copied from glib-gettext.m4)
 
13052
if test -z "$DATADIRNAME"; then
 
13053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13054
/* end confdefs.h.  */
 
13055
 
 
13056
int
 
13057
main ()
 
13058
{
 
13059
extern int _nl_msg_cat_cntr;
 
13060
                       return _nl_msg_cat_cntr
 
13061
  ;
 
13062
  return 0;
 
13063
}
 
13064
_ACEOF
 
13065
if ac_fn_c_try_link "$LINENO"; then :
 
13066
  DATADIRNAME=share
 
13067
else
 
13068
  case $host in
 
13069
    *-*-solaris*)
 
13070
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
13071
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
13072
  DATADIRNAME=share
 
13073
else
 
13074
  DATADIRNAME=lib
 
13075
fi
 
13076
 
 
13077
    ;;
 
13078
    *)
 
13079
    DATADIRNAME=lib
 
13080
    ;;
 
13081
    esac
 
13082
fi
 
13083
rm -f core conftest.err conftest.$ac_objext \
 
13084
    conftest$ac_exeext conftest.$ac_ext
 
13085
fi
 
13086
 
 
13087
 
 
13088
 
 
13089
 
 
13090
 
 
13091
 
 
13092
 
 
13093
cat >>confdefs.h <<_ACEOF
 
13094
#define LOCALE_DIR "${PREFIX}/${DATADIRNAME}/locale"
 
13095
_ACEOF
 
13096
 
 
13097
 
 
13098
cat >>confdefs.h <<_ACEOF
 
13099
#define DATADIR "${PREFIX}/${DATADIRNAME}"
 
13100
_ACEOF
 
13101
 
 
13102
 
 
13103
cat >>confdefs.h <<_ACEOF
 
13104
#define PREFIXDIR "${PREFIX}"
 
13105
_ACEOF
 
13106
 
 
13107
 
 
13108
libexecdir='${PREFIX}/lib'
 
13109
 
 
13110
# AC_DEFINE_UNQUOTED(libexecdir, "${PREFIX}",[Libexecdir directory])
 
13111
 
 
13112
######################################################
 
13113
# intltool rule for generating translated .lens file
 
13114
######################################################
 
13115
INTLTOOL_SCOPE_RULE='%.scope: %.scope.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
13116
 
 
13117
 
 
13118
 
 
13119
 
 
13120
#####################################################
 
13121
# Check for module and library dependancies
 
13122
#####################################################
 
13123
GLIB_REQUIRED=2.32
 
13124
 
 
13125
 
 
13126
 
 
13127
 
 
13128
 
 
13129
 
 
13130
 
 
13131
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
13132
        if test -n "$ac_tool_prefix"; then
 
13133
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
13134
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
13135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13136
$as_echo_n "checking for $ac_word... " >&6; }
 
13137
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
13138
  $as_echo_n "(cached) " >&6
 
13139
else
 
13140
  case $PKG_CONFIG in
 
13141
  [\\/]* | ?:[\\/]*)
 
13142
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
13143
  ;;
 
13144
  *)
 
13145
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13146
for as_dir in $PATH
 
13147
do
 
13148
  IFS=$as_save_IFS
 
13149
  test -z "$as_dir" && as_dir=.
 
13150
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13151
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13152
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
13153
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13154
    break 2
 
13155
  fi
 
13156
done
 
13157
  done
 
13158
IFS=$as_save_IFS
 
13159
 
 
13160
  ;;
 
13161
esac
 
13162
fi
 
13163
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
13164
if test -n "$PKG_CONFIG"; then
 
13165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
13166
$as_echo "$PKG_CONFIG" >&6; }
 
13167
else
 
13168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13169
$as_echo "no" >&6; }
 
13170
fi
 
13171
 
 
13172
 
 
13173
fi
 
13174
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
13175
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
13176
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
13177
set dummy pkg-config; ac_word=$2
 
13178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13179
$as_echo_n "checking for $ac_word... " >&6; }
 
13180
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
13181
  $as_echo_n "(cached) " >&6
 
13182
else
 
13183
  case $ac_pt_PKG_CONFIG in
 
13184
  [\\/]* | ?:[\\/]*)
 
13185
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
13186
  ;;
 
13187
  *)
 
13188
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13189
for as_dir in $PATH
 
13190
do
 
13191
  IFS=$as_save_IFS
 
13192
  test -z "$as_dir" && as_dir=.
 
13193
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13194
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13195
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
13196
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13197
    break 2
 
13198
  fi
 
13199
done
 
13200
  done
 
13201
IFS=$as_save_IFS
 
13202
 
 
13203
  ;;
 
13204
esac
 
13205
fi
 
13206
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
13207
if test -n "$ac_pt_PKG_CONFIG"; then
 
13208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
13209
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
13210
else
 
13211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13212
$as_echo "no" >&6; }
 
13213
fi
 
13214
 
 
13215
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
13216
    PKG_CONFIG=""
 
13217
  else
 
13218
    case $cross_compiling:$ac_tool_warned in
 
13219
yes:)
 
13220
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13221
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13222
ac_tool_warned=yes ;;
 
13223
esac
 
13224
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
13225
  fi
 
13226
else
 
13227
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
13228
fi
 
13229
 
 
13230
fi
 
13231
if test -n "$PKG_CONFIG"; then
 
13232
        _pkg_min_version=0.9.0
 
13233
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
13234
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
13235
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
13236
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13237
$as_echo "yes" >&6; }
 
13238
        else
 
13239
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13240
$as_echo "no" >&6; }
 
13241
                PKG_CONFIG=""
 
13242
        fi
 
13243
fi
 
13244
 
 
13245
pkg_failed=no
 
13246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCOPE_DAEMON" >&5
 
13247
$as_echo_n "checking for SCOPE_DAEMON... " >&6; }
 
13248
 
 
13249
if test -n "$SCOPE_DAEMON_CFLAGS"; then
 
13250
    pkg_cv_SCOPE_DAEMON_CFLAGS="$SCOPE_DAEMON_CFLAGS"
 
13251
 elif test -n "$PKG_CONFIG"; then
 
13252
    if test -n "$PKG_CONFIG" && \
 
13253
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED
 
13254
                  gobject-2.0 >= \$GLIB_REQUIRED
 
13255
                  gio-2.0 >= \$GLIB_REQUIRED
 
13256
                  gio-unix-2.0 >= \$GLIB_REQUIRED
 
13257
                  dee-1.0 >= 1.0.7
 
13258
                  sqlite3 >= 3.7.7
 
13259
                  gee-1.0
 
13260
                  json-glib-1.0
 
13261
                  unity >= 6.9.0
 
13262
                  tdb >= 1.2.6\""; } >&5
 
13263
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
 
13264
                  gobject-2.0 >= $GLIB_REQUIRED
 
13265
                  gio-2.0 >= $GLIB_REQUIRED
 
13266
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13267
                  dee-1.0 >= 1.0.7
 
13268
                  sqlite3 >= 3.7.7
 
13269
                  gee-1.0
 
13270
                  json-glib-1.0
 
13271
                  unity >= 6.9.0
 
13272
                  tdb >= 1.2.6") 2>&5
 
13273
  ac_status=$?
 
13274
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13275
  test $ac_status = 0; }; then
 
13276
  pkg_cv_SCOPE_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED
 
13277
                  gobject-2.0 >= $GLIB_REQUIRED
 
13278
                  gio-2.0 >= $GLIB_REQUIRED
 
13279
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13280
                  dee-1.0 >= 1.0.7
 
13281
                  sqlite3 >= 3.7.7
 
13282
                  gee-1.0
 
13283
                  json-glib-1.0
 
13284
                  unity >= 6.9.0
 
13285
                  tdb >= 1.2.6" 2>/dev/null`
 
13286
                      test "x$?" != "x0" && pkg_failed=yes
 
13287
else
 
13288
  pkg_failed=yes
 
13289
fi
 
13290
 else
 
13291
    pkg_failed=untried
 
13292
fi
 
13293
if test -n "$SCOPE_DAEMON_LIBS"; then
 
13294
    pkg_cv_SCOPE_DAEMON_LIBS="$SCOPE_DAEMON_LIBS"
 
13295
 elif test -n "$PKG_CONFIG"; then
 
13296
    if test -n "$PKG_CONFIG" && \
 
13297
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED
 
13298
                  gobject-2.0 >= \$GLIB_REQUIRED
 
13299
                  gio-2.0 >= \$GLIB_REQUIRED
 
13300
                  gio-unix-2.0 >= \$GLIB_REQUIRED
 
13301
                  dee-1.0 >= 1.0.7
 
13302
                  sqlite3 >= 3.7.7
 
13303
                  gee-1.0
 
13304
                  json-glib-1.0
 
13305
                  unity >= 6.9.0
 
13306
                  tdb >= 1.2.6\""; } >&5
 
13307
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
 
13308
                  gobject-2.0 >= $GLIB_REQUIRED
 
13309
                  gio-2.0 >= $GLIB_REQUIRED
 
13310
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13311
                  dee-1.0 >= 1.0.7
 
13312
                  sqlite3 >= 3.7.7
 
13313
                  gee-1.0
 
13314
                  json-glib-1.0
 
13315
                  unity >= 6.9.0
 
13316
                  tdb >= 1.2.6") 2>&5
 
13317
  ac_status=$?
 
13318
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13319
  test $ac_status = 0; }; then
 
13320
  pkg_cv_SCOPE_DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED
 
13321
                  gobject-2.0 >= $GLIB_REQUIRED
 
13322
                  gio-2.0 >= $GLIB_REQUIRED
 
13323
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13324
                  dee-1.0 >= 1.0.7
 
13325
                  sqlite3 >= 3.7.7
 
13326
                  gee-1.0
 
13327
                  json-glib-1.0
 
13328
                  unity >= 6.9.0
 
13329
                  tdb >= 1.2.6" 2>/dev/null`
 
13330
                      test "x$?" != "x0" && pkg_failed=yes
 
13331
else
 
13332
  pkg_failed=yes
 
13333
fi
 
13334
 else
 
13335
    pkg_failed=untried
 
13336
fi
 
13337
 
 
13338
 
 
13339
 
 
13340
if test $pkg_failed = yes; then
 
13341
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13342
$as_echo "no" >&6; }
 
13343
 
 
13344
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13345
        _pkg_short_errors_supported=yes
 
13346
else
 
13347
        _pkg_short_errors_supported=no
 
13348
fi
 
13349
        if test $_pkg_short_errors_supported = yes; then
 
13350
                SCOPE_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED
 
13351
                  gobject-2.0 >= $GLIB_REQUIRED
 
13352
                  gio-2.0 >= $GLIB_REQUIRED
 
13353
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13354
                  dee-1.0 >= 1.0.7
 
13355
                  sqlite3 >= 3.7.7
 
13356
                  gee-1.0
 
13357
                  json-glib-1.0
 
13358
                  unity >= 6.9.0
 
13359
                  tdb >= 1.2.6" 2>&1`
 
13360
        else
 
13361
                SCOPE_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED
 
13362
                  gobject-2.0 >= $GLIB_REQUIRED
 
13363
                  gio-2.0 >= $GLIB_REQUIRED
 
13364
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13365
                  dee-1.0 >= 1.0.7
 
13366
                  sqlite3 >= 3.7.7
 
13367
                  gee-1.0
 
13368
                  json-glib-1.0
 
13369
                  unity >= 6.9.0
 
13370
                  tdb >= 1.2.6" 2>&1`
 
13371
        fi
 
13372
        # Put the nasty error message in config.log where it belongs
 
13373
        echo "$SCOPE_DAEMON_PKG_ERRORS" >&5
 
13374
 
 
13375
        as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED
 
13376
                  gobject-2.0 >= $GLIB_REQUIRED
 
13377
                  gio-2.0 >= $GLIB_REQUIRED
 
13378
                  gio-unix-2.0 >= $GLIB_REQUIRED
 
13379
                  dee-1.0 >= 1.0.7
 
13380
                  sqlite3 >= 3.7.7
 
13381
                  gee-1.0
 
13382
                  json-glib-1.0
 
13383
                  unity >= 6.9.0
 
13384
                  tdb >= 1.2.6) were not met:
 
13385
 
 
13386
$SCOPE_DAEMON_PKG_ERRORS
 
13387
 
 
13388
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
13389
installed software in a non-standard prefix.
 
13390
 
 
13391
Alternatively, you may set the environment variables SCOPE_DAEMON_CFLAGS
 
13392
and SCOPE_DAEMON_LIBS to avoid the need to call pkg-config.
 
13393
See the pkg-config man page for more details." "$LINENO" 5
 
13394
elif test $pkg_failed = untried; then
 
13395
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13396
$as_echo "no" >&6; }
 
13397
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13398
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13399
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
13400
is in your PATH or set the PKG_CONFIG environment variable to the full
 
13401
path to pkg-config.
 
13402
 
 
13403
Alternatively, you may set the environment variables SCOPE_DAEMON_CFLAGS
 
13404
and SCOPE_DAEMON_LIBS to avoid the need to call pkg-config.
 
13405
See the pkg-config man page for more details.
 
13406
 
 
13407
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
13408
See \`config.log' for more details" "$LINENO" 5; }
 
13409
else
 
13410
        SCOPE_DAEMON_CFLAGS=$pkg_cv_SCOPE_DAEMON_CFLAGS
 
13411
        SCOPE_DAEMON_LIBS=$pkg_cv_SCOPE_DAEMON_LIBS
 
13412
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13413
$as_echo "yes" >&6; }
 
13414
 
 
13415
fi
 
13416
 
 
13417
 
 
13418
pkg_failed=no
 
13419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PREVIEW_PLAYER" >&5
 
13420
$as_echo_n "checking for PREVIEW_PLAYER... " >&6; }
 
13421
 
 
13422
if test -n "$PREVIEW_PLAYER_CFLAGS"; then
 
13423
    pkg_cv_PREVIEW_PLAYER_CFLAGS="$PREVIEW_PLAYER_CFLAGS"
 
13424
 elif test -n "$PKG_CONFIG"; then
 
13425
    if test -n "$PKG_CONFIG" && \
 
13426
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED
 
13427
                  gobject-2.0 >= \$GLIB_REQUIRED
 
13428
                  gio-2.0 >= \$GLIB_REQUIRED
 
13429
                  \""; } >&5
 
13430
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
 
13431
                  gobject-2.0 >= $GLIB_REQUIRED
 
13432
                  gio-2.0 >= $GLIB_REQUIRED
 
13433
                  ") 2>&5
 
13434
  ac_status=$?
 
13435
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13436
  test $ac_status = 0; }; then
 
13437
  pkg_cv_PREVIEW_PLAYER_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED
 
13438
                  gobject-2.0 >= $GLIB_REQUIRED
 
13439
                  gio-2.0 >= $GLIB_REQUIRED
 
13440
                  " 2>/dev/null`
 
13441
                      test "x$?" != "x0" && pkg_failed=yes
 
13442
else
 
13443
  pkg_failed=yes
 
13444
fi
 
13445
 else
 
13446
    pkg_failed=untried
 
13447
fi
 
13448
if test -n "$PREVIEW_PLAYER_LIBS"; then
 
13449
    pkg_cv_PREVIEW_PLAYER_LIBS="$PREVIEW_PLAYER_LIBS"
 
13450
 elif test -n "$PKG_CONFIG"; then
 
13451
    if test -n "$PKG_CONFIG" && \
 
13452
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED
 
13453
                  gobject-2.0 >= \$GLIB_REQUIRED
 
13454
                  gio-2.0 >= \$GLIB_REQUIRED
 
13455
                  \""; } >&5
 
13456
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
 
13457
                  gobject-2.0 >= $GLIB_REQUIRED
 
13458
                  gio-2.0 >= $GLIB_REQUIRED
 
13459
                  ") 2>&5
 
13460
  ac_status=$?
 
13461
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13462
  test $ac_status = 0; }; then
 
13463
  pkg_cv_PREVIEW_PLAYER_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED
 
13464
                  gobject-2.0 >= $GLIB_REQUIRED
 
13465
                  gio-2.0 >= $GLIB_REQUIRED
 
13466
                  " 2>/dev/null`
 
13467
                      test "x$?" != "x0" && pkg_failed=yes
 
13468
else
 
13469
  pkg_failed=yes
 
13470
fi
 
13471
 else
 
13472
    pkg_failed=untried
 
13473
fi
 
13474
 
 
13475
 
 
13476
 
 
13477
if test $pkg_failed = yes; then
 
13478
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13479
$as_echo "no" >&6; }
 
13480
 
 
13481
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13482
        _pkg_short_errors_supported=yes
 
13483
else
 
13484
        _pkg_short_errors_supported=no
 
13485
fi
 
13486
        if test $_pkg_short_errors_supported = yes; then
 
13487
                PREVIEW_PLAYER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED
 
13488
                  gobject-2.0 >= $GLIB_REQUIRED
 
13489
                  gio-2.0 >= $GLIB_REQUIRED
 
13490
                  " 2>&1`
 
13491
        else
 
13492
                PREVIEW_PLAYER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED
 
13493
                  gobject-2.0 >= $GLIB_REQUIRED
 
13494
                  gio-2.0 >= $GLIB_REQUIRED
 
13495
                  " 2>&1`
 
13496
        fi
 
13497
        # Put the nasty error message in config.log where it belongs
 
13498
        echo "$PREVIEW_PLAYER_PKG_ERRORS" >&5
 
13499
 
 
13500
        as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED
 
13501
                  gobject-2.0 >= $GLIB_REQUIRED
 
13502
                  gio-2.0 >= $GLIB_REQUIRED
 
13503
                  ) were not met:
 
13504
 
 
13505
$PREVIEW_PLAYER_PKG_ERRORS
 
13506
 
 
13507
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
13508
installed software in a non-standard prefix.
 
13509
 
 
13510
Alternatively, you may set the environment variables PREVIEW_PLAYER_CFLAGS
 
13511
and PREVIEW_PLAYER_LIBS to avoid the need to call pkg-config.
 
13512
See the pkg-config man page for more details." "$LINENO" 5
 
13513
elif test $pkg_failed = untried; then
 
13514
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13515
$as_echo "no" >&6; }
 
13516
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13517
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13518
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
13519
is in your PATH or set the PKG_CONFIG environment variable to the full
 
13520
path to pkg-config.
 
13521
 
 
13522
Alternatively, you may set the environment variables PREVIEW_PLAYER_CFLAGS
 
13523
and PREVIEW_PLAYER_LIBS to avoid the need to call pkg-config.
 
13524
See the pkg-config man page for more details.
 
13525
 
 
13526
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
13527
See \`config.log' for more details" "$LINENO" 5; }
 
13528
else
 
13529
        PREVIEW_PLAYER_CFLAGS=$pkg_cv_PREVIEW_PLAYER_CFLAGS
 
13530
        PREVIEW_PLAYER_LIBS=$pkg_cv_PREVIEW_PLAYER_LIBS
 
13531
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13532
$as_echo "yes" >&6; }
 
13533
 
 
13534
fi
 
13535
 
 
13536
 
 
13537
 
 
13538
 
 
13539
 
 
13540
 
 
13541
#####################################################
 
13542
# local install for distcheck and stand-alone running
 
13543
#####################################################
 
13544
with_localinstall="no"
 
13545
# Check whether --enable-localinstall was given.
 
13546
if test "${enable_localinstall+set}" = set; then :
 
13547
  enableval=$enable_localinstall; with_localinstall=$enableval
 
13548
else
 
13549
  with_localinstall=no
 
13550
fi
 
13551
 
 
13552
 
 
13553
 if test "x$with_localinstall" = "xyes"; then
 
13554
  HAVE_LOCALINSTALL_TRUE=
 
13555
  HAVE_LOCALINSTALL_FALSE='#'
 
13556
else
 
13557
  HAVE_LOCALINSTALL_TRUE='#'
 
13558
  HAVE_LOCALINSTALL_FALSE=
 
13559
fi
 
13560
 
 
13561
 
 
13562
#####################################################
 
13563
# Expand variables needed for config.vala
 
13564
#####################################################
 
13565
 
 
13566
  EXP_VAR=PREFIX
 
13567
  FROM_VAR=$prefix
 
13568
 
 
13569
    prefix_save=$prefix
 
13570
  exec_prefix_save=$exec_prefix
 
13571
 
 
13572
    if test "x$prefix" = "xNONE"; then
 
13573
    prefix=$ac_default_prefix
 
13574
  fi
 
13575
    if test "x$exec_prefix" = "xNONE"; then
 
13576
    exec_prefix=$prefix
 
13577
  fi
 
13578
 
 
13579
  full_var="$FROM_VAR"
 
13580
    while true; do
 
13581
    new_full_var="`eval echo $full_var`"
 
13582
    if test "x$new_full_var"="x$full_var"; then break; fi
 
13583
    full_var=$new_full_var
 
13584
  done
 
13585
 
 
13586
    full_var=$new_full_var
 
13587
  PREFIX="$full_var"
 
13588
 
 
13589
 
 
13590
    prefix=$prefix_save
 
13591
  exec_prefix=$exec_prefix_save
 
13592
 
 
13593
 
 
13594
 
 
13595
 
 
13596
  EXP_VAR=DATADIR
 
13597
  FROM_VAR=$datarootdir
 
13598
 
 
13599
    prefix_save=$prefix
 
13600
  exec_prefix_save=$exec_prefix
 
13601
 
 
13602
    if test "x$prefix" = "xNONE"; then
 
13603
    prefix=$ac_default_prefix
 
13604
  fi
 
13605
    if test "x$exec_prefix" = "xNONE"; then
 
13606
    exec_prefix=$prefix
 
13607
  fi
 
13608
 
 
13609
  full_var="$FROM_VAR"
 
13610
    while true; do
 
13611
    new_full_var="`eval echo $full_var`"
 
13612
    if test "x$new_full_var"="x$full_var"; then break; fi
 
13613
    full_var=$new_full_var
 
13614
  done
 
13615
 
 
13616
    full_var=$new_full_var
 
13617
  DATADIR="$full_var"
 
13618
 
 
13619
 
 
13620
    prefix=$prefix_save
 
13621
  exec_prefix=$exec_prefix_save
 
13622
 
 
13623
 
 
13624
 
 
13625
#####################################################
 
13626
# Look for dbus service dir
 
13627
#####################################################
 
13628
if test "x$with_localinstall" = "xyes"; then
 
13629
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
13630
else
 
13631
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
13632
fi
 
13633
 
 
13634
 
 
13635
#####################################################
 
13636
# Look for correct Scopes dir
 
13637
#####################################################
 
13638
if test "x$with_localinstall" = "xyes"; then
 
13639
        SCOPESDIR="${datadir}/unity/scopes"
 
13640
else
 
13641
        SCOPESDIR=`$PKG_CONFIG --variable=scopesdir unity`
 
13642
fi
 
13643
 
 
13644
 
 
13645
 
 
13646
 
 
13647
#####################################################
 
13648
# Create the Makefiles
 
13649
#####################################################
 
13650
#  music.lens.in
 
13651
ac_config_files="$ac_config_files Makefile musicbaidu.scope.in data/Makefile src/Makefile src/config.vala po/Makefile.in"
 
13652
 
 
13653
cat >confcache <<\_ACEOF
 
13654
# This file is a shell script that caches the results of configure
 
13655
# tests run on this system so they can be shared between configure
 
13656
# scripts and configure runs, see configure's option --config-cache.
 
13657
# It is not useful on other systems.  If it contains results you don't
 
13658
# want to keep, you may remove or edit it.
 
13659
#
 
13660
# config.status only pays attention to the cache file if you give it
 
13661
# the --recheck option to rerun configure.
 
13662
#
 
13663
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13664
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13665
# following values.
 
13666
 
 
13667
_ACEOF
 
13668
 
 
13669
# The following way of writing the cache mishandles newlines in values,
 
13670
# but we know of no workaround that is simple, portable, and efficient.
 
13671
# So, we kill variables containing newlines.
 
13672
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13673
# and sets the high bit in the cache file unless we assign to the vars.
 
13674
(
 
13675
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13676
    eval ac_val=\$$ac_var
 
13677
    case $ac_val in #(
 
13678
    *${as_nl}*)
 
13679
      case $ac_var in #(
 
13680
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13681
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13682
      esac
 
13683
      case $ac_var in #(
 
13684
      _ | IFS | as_nl) ;; #(
 
13685
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13686
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13687
      esac ;;
 
13688
    esac
 
13689
  done
 
13690
 
 
13691
  (set) 2>&1 |
 
13692
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13693
    *${as_nl}ac_space=\ *)
 
13694
      # `set' does not quote correctly, so add quotes: double-quote
 
13695
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13696
      sed -n \
 
13697
        "s/'/'\\\\''/g;
 
13698
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13699
      ;; #(
 
13700
    *)
 
13701
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13702
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13703
      ;;
 
13704
    esac |
 
13705
    sort
 
13706
) |
 
13707
  sed '
 
13708
     /^ac_cv_env_/b end
 
13709
     t clear
 
13710
     :clear
 
13711
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13712
     t end
 
13713
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13714
     :end' >>confcache
 
13715
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13716
  if test -w "$cache_file"; then
 
13717
    if test "x$cache_file" != "x/dev/null"; then
 
13718
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13719
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13720
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13721
        cat confcache >"$cache_file"
 
13722
      else
 
13723
        case $cache_file in #(
 
13724
        */* | ?:*)
 
13725
          mv -f confcache "$cache_file"$$ &&
 
13726
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13727
        *)
 
13728
          mv -f confcache "$cache_file" ;;
 
13729
        esac
 
13730
      fi
 
13731
    fi
 
13732
  else
 
13733
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13734
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13735
  fi
 
13736
fi
 
13737
rm -f confcache
 
13738
 
 
13739
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13740
# Let make expand exec_prefix.
 
13741
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13742
 
 
13743
DEFS=-DHAVE_CONFIG_H
 
13744
 
 
13745
ac_libobjs=
 
13746
ac_ltlibobjs=
 
13747
U=
 
13748
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13749
  # 1. Remove the extension, and $U if already installed.
 
13750
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13751
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13752
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13753
  #    will be set to the directory where LIBOBJS objects are built.
 
13754
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13755
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13756
done
 
13757
LIBOBJS=$ac_libobjs
 
13758
 
 
13759
LTLIBOBJS=$ac_ltlibobjs
 
13760
 
 
13761
 
 
13762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
13763
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
13764
   if test -n "$am_sleep_pid"; then
 
13765
     # Hide warnings about reused PIDs.
 
13766
     wait $am_sleep_pid 2>/dev/null
 
13767
   fi
 
13768
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
13769
$as_echo "done" >&6; }
 
13770
 if test -n "$EXEEXT"; then
 
13771
  am__EXEEXT_TRUE=
 
13772
  am__EXEEXT_FALSE='#'
 
13773
else
 
13774
  am__EXEEXT_TRUE='#'
 
13775
  am__EXEEXT_FALSE=
 
13776
fi
 
13777
 
 
13778
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
13779
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
13780
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13781
fi
 
13782
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13783
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13784
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13785
fi
 
13786
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13787
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13788
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13789
fi
 
13790
 
 
13791
  ac_config_commands="$ac_config_commands po/stamp-it"
 
13792
 
 
13793
 
 
13794
if test -z "${HAVE_LOCALINSTALL_TRUE}" && test -z "${HAVE_LOCALINSTALL_FALSE}"; then
 
13795
  as_fn_error $? "conditional \"HAVE_LOCALINSTALL\" was never defined.
 
13796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13797
fi
 
13798
 
 
13799
: "${CONFIG_STATUS=./config.status}"
 
13800
ac_write_fail=0
 
13801
ac_clean_files_save=$ac_clean_files
 
13802
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13803
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13804
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13805
as_write_fail=0
 
13806
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13807
#! $SHELL
 
13808
# Generated by $as_me.
 
13809
# Run this file to recreate the current configuration.
 
13810
# Compiler output produced by configure, useful for debugging
 
13811
# configure, is in config.log if it exists.
 
13812
 
 
13813
debug=false
 
13814
ac_cs_recheck=false
 
13815
ac_cs_silent=false
 
13816
 
 
13817
SHELL=\${CONFIG_SHELL-$SHELL}
 
13818
export SHELL
 
13819
_ASEOF
 
13820
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13821
## -------------------- ##
 
13822
## M4sh Initialization. ##
 
13823
## -------------------- ##
 
13824
 
 
13825
# Be more Bourne compatible
 
13826
DUALCASE=1; export DUALCASE # for MKS sh
 
13827
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13828
  emulate sh
 
13829
  NULLCMD=:
 
13830
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13831
  # is contrary to our usage.  Disable this feature.
 
13832
  alias -g '${1+"$@"}'='"$@"'
 
13833
  setopt NO_GLOB_SUBST
 
13834
else
 
13835
  case `(set -o) 2>/dev/null` in #(
 
13836
  *posix*) :
 
13837
    set -o posix ;; #(
 
13838
  *) :
 
13839
     ;;
 
13840
esac
 
13841
fi
 
13842
 
 
13843
 
 
13844
as_nl='
 
13845
'
 
13846
export as_nl
 
13847
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13848
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13849
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13850
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13851
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13852
# but without wasting forks for bash or zsh.
 
13853
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13854
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13855
  as_echo='print -r --'
 
13856
  as_echo_n='print -rn --'
 
13857
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13858
  as_echo='printf %s\n'
 
13859
  as_echo_n='printf %s'
 
13860
else
 
13861
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13862
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13863
    as_echo_n='/usr/ucb/echo -n'
 
13864
  else
 
13865
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13866
    as_echo_n_body='eval
 
13867
      arg=$1;
 
13868
      case $arg in #(
 
13869
      *"$as_nl"*)
 
13870
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13871
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13872
      esac;
 
13873
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13874
    '
 
13875
    export as_echo_n_body
 
13876
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13877
  fi
 
13878
  export as_echo_body
 
13879
  as_echo='sh -c $as_echo_body as_echo'
 
13880
fi
 
13881
 
 
13882
# The user is always right.
 
13883
if test "${PATH_SEPARATOR+set}" != set; then
 
13884
  PATH_SEPARATOR=:
 
13885
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13886
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13887
      PATH_SEPARATOR=';'
 
13888
  }
 
13889
fi
 
13890
 
 
13891
 
 
13892
# IFS
 
13893
# We need space, tab and new line, in precisely that order.  Quoting is
 
13894
# there to prevent editors from complaining about space-tab.
 
13895
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13896
# splitting by setting IFS to empty value.)
 
13897
IFS=" ""        $as_nl"
 
13898
 
 
13899
# Find who we are.  Look in the path if we contain no directory separator.
 
13900
as_myself=
 
13901
case $0 in #((
 
13902
  *[\\/]* ) as_myself=$0 ;;
 
13903
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13904
for as_dir in $PATH
 
13905
do
 
13906
  IFS=$as_save_IFS
 
13907
  test -z "$as_dir" && as_dir=.
 
13908
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13909
  done
 
13910
IFS=$as_save_IFS
 
13911
 
 
13912
     ;;
 
13913
esac
 
13914
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13915
# in which case we are not to be found in the path.
 
13916
if test "x$as_myself" = x; then
 
13917
  as_myself=$0
 
13918
fi
 
13919
if test ! -f "$as_myself"; then
 
13920
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13921
  exit 1
 
13922
fi
 
13923
 
 
13924
# Unset variables that we do not need and which cause bugs (e.g. in
 
13925
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13926
# suppresses any "Segmentation fault" message there.  '((' could
 
13927
# trigger a bug in pdksh 5.2.14.
 
13928
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13929
do eval test x\${$as_var+set} = xset \
 
13930
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13931
done
 
13932
PS1='$ '
 
13933
PS2='> '
 
13934
PS4='+ '
 
13935
 
 
13936
# NLS nuisances.
 
13937
LC_ALL=C
 
13938
export LC_ALL
 
13939
LANGUAGE=C
 
13940
export LANGUAGE
 
13941
 
 
13942
# CDPATH.
 
13943
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13944
 
 
13945
 
 
13946
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13947
# ----------------------------------------
 
13948
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13949
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13950
# script with STATUS, using 1 if that was 0.
 
13951
as_fn_error ()
 
13952
{
 
13953
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13954
  if test "$4"; then
 
13955
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13956
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13957
  fi
 
13958
  $as_echo "$as_me: error: $2" >&2
 
13959
  as_fn_exit $as_status
 
13960
} # as_fn_error
 
13961
 
 
13962
 
 
13963
# as_fn_set_status STATUS
 
13964
# -----------------------
 
13965
# Set $? to STATUS, without forking.
 
13966
as_fn_set_status ()
 
13967
{
 
13968
  return $1
 
13969
} # as_fn_set_status
 
13970
 
 
13971
# as_fn_exit STATUS
 
13972
# -----------------
 
13973
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13974
as_fn_exit ()
 
13975
{
 
13976
  set +e
 
13977
  as_fn_set_status $1
 
13978
  exit $1
 
13979
} # as_fn_exit
 
13980
 
 
13981
# as_fn_unset VAR
 
13982
# ---------------
 
13983
# Portably unset VAR.
 
13984
as_fn_unset ()
 
13985
{
 
13986
  { eval $1=; unset $1;}
 
13987
}
 
13988
as_unset=as_fn_unset
 
13989
# as_fn_append VAR VALUE
 
13990
# ----------------------
 
13991
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13992
# advantage of any shell optimizations that allow amortized linear growth over
 
13993
# repeated appends, instead of the typical quadratic growth present in naive
 
13994
# implementations.
 
13995
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13996
  eval 'as_fn_append ()
 
13997
  {
 
13998
    eval $1+=\$2
 
13999
  }'
 
14000
else
 
14001
  as_fn_append ()
 
14002
  {
 
14003
    eval $1=\$$1\$2
 
14004
  }
 
14005
fi # as_fn_append
 
14006
 
 
14007
# as_fn_arith ARG...
 
14008
# ------------------
 
14009
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14010
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14011
# must be portable across $(()) and expr.
 
14012
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14013
  eval 'as_fn_arith ()
 
14014
  {
 
14015
    as_val=$(( $* ))
 
14016
  }'
 
14017
else
 
14018
  as_fn_arith ()
 
14019
  {
 
14020
    as_val=`expr "$@" || test $? -eq 1`
 
14021
  }
 
14022
fi # as_fn_arith
 
14023
 
 
14024
 
 
14025
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14026
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14027
  as_expr=expr
 
14028
else
 
14029
  as_expr=false
 
14030
fi
 
14031
 
 
14032
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14033
  as_basename=basename
 
14034
else
 
14035
  as_basename=false
 
14036
fi
 
14037
 
 
14038
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14039
  as_dirname=dirname
 
14040
else
 
14041
  as_dirname=false
 
14042
fi
 
14043
 
 
14044
as_me=`$as_basename -- "$0" ||
 
14045
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14046
         X"$0" : 'X\(//\)$' \| \
 
14047
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14048
$as_echo X/"$0" |
 
14049
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14050
            s//\1/
 
14051
            q
 
14052
          }
 
14053
          /^X\/\(\/\/\)$/{
 
14054
            s//\1/
 
14055
            q
 
14056
          }
 
14057
          /^X\/\(\/\).*/{
 
14058
            s//\1/
 
14059
            q
 
14060
          }
 
14061
          s/.*/./; q'`
 
14062
 
 
14063
# Avoid depending upon Character Ranges.
 
14064
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14065
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14066
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14067
as_cr_digits='0123456789'
 
14068
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14069
 
 
14070
ECHO_C= ECHO_N= ECHO_T=
 
14071
case `echo -n x` in #(((((
 
14072
-n*)
 
14073
  case `echo 'xy\c'` in
 
14074
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14075
  xy)  ECHO_C='\c';;
 
14076
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14077
       ECHO_T=' ';;
 
14078
  esac;;
 
14079
*)
 
14080
  ECHO_N='-n';;
 
14081
esac
 
14082
 
 
14083
rm -f conf$$ conf$$.exe conf$$.file
 
14084
if test -d conf$$.dir; then
 
14085
  rm -f conf$$.dir/conf$$.file
 
14086
else
 
14087
  rm -f conf$$.dir
 
14088
  mkdir conf$$.dir 2>/dev/null
 
14089
fi
 
14090
if (echo >conf$$.file) 2>/dev/null; then
 
14091
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14092
    as_ln_s='ln -s'
 
14093
    # ... but there are two gotchas:
 
14094
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14095
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14096
    # In both cases, we have to default to `cp -pR'.
 
14097
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14098
      as_ln_s='cp -pR'
 
14099
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14100
    as_ln_s=ln
 
14101
  else
 
14102
    as_ln_s='cp -pR'
 
14103
  fi
 
14104
else
 
14105
  as_ln_s='cp -pR'
 
14106
fi
 
14107
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14108
rmdir conf$$.dir 2>/dev/null
 
14109
 
 
14110
 
 
14111
# as_fn_mkdir_p
 
14112
# -------------
 
14113
# Create "$as_dir" as a directory, including parents if necessary.
 
14114
as_fn_mkdir_p ()
 
14115
{
 
14116
 
 
14117
  case $as_dir in #(
 
14118
  -*) as_dir=./$as_dir;;
 
14119
  esac
 
14120
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14121
    as_dirs=
 
14122
    while :; do
 
14123
      case $as_dir in #(
 
14124
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14125
      *) as_qdir=$as_dir;;
 
14126
      esac
 
14127
      as_dirs="'$as_qdir' $as_dirs"
 
14128
      as_dir=`$as_dirname -- "$as_dir" ||
 
14129
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14130
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14131
         X"$as_dir" : 'X\(//\)$' \| \
 
14132
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14133
$as_echo X"$as_dir" |
 
14134
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14135
            s//\1/
 
14136
            q
 
14137
          }
 
14138
          /^X\(\/\/\)[^/].*/{
 
14139
            s//\1/
 
14140
            q
 
14141
          }
 
14142
          /^X\(\/\/\)$/{
 
14143
            s//\1/
 
14144
            q
 
14145
          }
 
14146
          /^X\(\/\).*/{
 
14147
            s//\1/
 
14148
            q
 
14149
          }
 
14150
          s/.*/./; q'`
 
14151
      test -d "$as_dir" && break
 
14152
    done
 
14153
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14154
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
14155
 
 
14156
 
 
14157
} # as_fn_mkdir_p
 
14158
if mkdir -p . 2>/dev/null; then
 
14159
  as_mkdir_p='mkdir -p "$as_dir"'
 
14160
else
 
14161
  test -d ./-p && rmdir ./-p
 
14162
  as_mkdir_p=false
 
14163
fi
 
14164
 
 
14165
 
 
14166
# as_fn_executable_p FILE
 
14167
# -----------------------
 
14168
# Test if FILE is an executable regular file.
 
14169
as_fn_executable_p ()
 
14170
{
 
14171
  test -f "$1" && test -x "$1"
 
14172
} # as_fn_executable_p
 
14173
as_test_x='test -x'
 
14174
as_executable_p=as_fn_executable_p
 
14175
 
 
14176
# Sed expression to map a string onto a valid CPP name.
 
14177
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14178
 
 
14179
# Sed expression to map a string onto a valid variable name.
 
14180
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14181
 
 
14182
 
 
14183
exec 6>&1
 
14184
## ----------------------------------- ##
 
14185
## Main body of $CONFIG_STATUS script. ##
 
14186
## ----------------------------------- ##
 
14187
_ASEOF
 
14188
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14189
 
 
14190
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14191
# Save the log message, to keep $0 and so on meaningful, and to
 
14192
# report actual input values of CONFIG_FILES etc. instead of their
 
14193
# values after options handling.
 
14194
ac_log="
 
14195
This file was extended by unity-china-music-scope $as_me 1.0.2, which was
 
14196
generated by GNU Autoconf 2.69.  Invocation command line was
 
14197
 
 
14198
  CONFIG_FILES    = $CONFIG_FILES
 
14199
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14200
  CONFIG_LINKS    = $CONFIG_LINKS
 
14201
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14202
  $ $0 $@
 
14203
 
 
14204
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14205
"
 
14206
 
 
14207
_ACEOF
 
14208
 
 
14209
case $ac_config_files in *"
 
14210
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14211
esac
 
14212
 
 
14213
case $ac_config_headers in *"
 
14214
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14215
esac
 
14216
 
 
14217
 
 
14218
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14219
# Files that config.status was made for.
 
14220
config_files="$ac_config_files"
 
14221
config_headers="$ac_config_headers"
 
14222
config_commands="$ac_config_commands"
 
14223
 
 
14224
_ACEOF
 
14225
 
 
14226
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14227
ac_cs_usage="\
 
14228
\`$as_me' instantiates files and other configuration actions
 
14229
from templates according to the current configuration.  Unless the files
 
14230
and actions are specified as TAGs, all are instantiated by default.
 
14231
 
 
14232
Usage: $0 [OPTION]... [TAG]...
 
14233
 
 
14234
  -h, --help       print this help, then exit
 
14235
  -V, --version    print version number and configuration settings, then exit
 
14236
      --config     print configuration, then exit
 
14237
  -q, --quiet, --silent
 
14238
                   do not print progress messages
 
14239
  -d, --debug      don't remove temporary files
 
14240
      --recheck    update $as_me by reconfiguring in the same conditions
 
14241
      --file=FILE[:TEMPLATE]
 
14242
                   instantiate the configuration file FILE
 
14243
      --header=FILE[:TEMPLATE]
 
14244
                   instantiate the configuration header FILE
 
14245
 
 
14246
Configuration files:
 
14247
$config_files
 
14248
 
 
14249
Configuration headers:
 
14250
$config_headers
 
14251
 
 
14252
Configuration commands:
 
14253
$config_commands
 
14254
 
 
14255
Report bugs to <https://code.launchpad.net/unity-china-music-scope>."
 
14256
 
 
14257
_ACEOF
 
14258
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14259
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
14260
ac_cs_version="\\
 
14261
unity-china-music-scope config.status 1.0.2
 
14262
configured by $0, generated by GNU Autoconf 2.69,
 
14263
  with options \\"\$ac_cs_config\\"
 
14264
 
 
14265
Copyright (C) 2012 Free Software Foundation, Inc.
 
14266
This config.status script is free software; the Free Software Foundation
 
14267
gives unlimited permission to copy, distribute and modify it."
 
14268
 
 
14269
ac_pwd='$ac_pwd'
 
14270
srcdir='$srcdir'
 
14271
INSTALL='$INSTALL'
 
14272
MKDIR_P='$MKDIR_P'
 
14273
AWK='$AWK'
 
14274
test -n "\$AWK" || AWK=awk
 
14275
_ACEOF
 
14276
 
 
14277
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14278
# The default lists apply if the user does not specify any file.
 
14279
ac_need_defaults=:
 
14280
while test $# != 0
 
14281
do
 
14282
  case $1 in
 
14283
  --*=?*)
 
14284
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14285
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14286
    ac_shift=:
 
14287
    ;;
 
14288
  --*=)
 
14289
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14290
    ac_optarg=
 
14291
    ac_shift=:
 
14292
    ;;
 
14293
  *)
 
14294
    ac_option=$1
 
14295
    ac_optarg=$2
 
14296
    ac_shift=shift
 
14297
    ;;
 
14298
  esac
 
14299
 
 
14300
  case $ac_option in
 
14301
  # Handling of the options.
 
14302
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14303
    ac_cs_recheck=: ;;
 
14304
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14305
    $as_echo "$ac_cs_version"; exit ;;
 
14306
  --config | --confi | --conf | --con | --co | --c )
 
14307
    $as_echo "$ac_cs_config"; exit ;;
 
14308
  --debug | --debu | --deb | --de | --d | -d )
 
14309
    debug=: ;;
 
14310
  --file | --fil | --fi | --f )
 
14311
    $ac_shift
 
14312
    case $ac_optarg in
 
14313
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14314
    '') as_fn_error $? "missing file argument" ;;
 
14315
    esac
 
14316
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14317
    ac_need_defaults=false;;
 
14318
  --header | --heade | --head | --hea )
 
14319
    $ac_shift
 
14320
    case $ac_optarg in
 
14321
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14322
    esac
 
14323
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
14324
    ac_need_defaults=false;;
 
14325
  --he | --h)
 
14326
    # Conflict between --help and --header
 
14327
    as_fn_error $? "ambiguous option: \`$1'
 
14328
Try \`$0 --help' for more information.";;
 
14329
  --help | --hel | -h )
 
14330
    $as_echo "$ac_cs_usage"; exit ;;
 
14331
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14332
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14333
    ac_cs_silent=: ;;
 
14334
 
 
14335
  # This is an error.
 
14336
  -*) as_fn_error $? "unrecognized option: \`$1'
 
14337
Try \`$0 --help' for more information." ;;
 
14338
 
 
14339
  *) as_fn_append ac_config_targets " $1"
 
14340
     ac_need_defaults=false ;;
 
14341
 
 
14342
  esac
 
14343
  shift
 
14344
done
 
14345
 
 
14346
ac_configure_extra_args=
 
14347
 
 
14348
if $ac_cs_silent; then
 
14349
  exec 6>/dev/null
 
14350
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14351
fi
 
14352
 
 
14353
_ACEOF
 
14354
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14355
if \$ac_cs_recheck; then
 
14356
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14357
  shift
 
14358
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14359
  CONFIG_SHELL='$SHELL'
 
14360
  export CONFIG_SHELL
 
14361
  exec "\$@"
 
14362
fi
 
14363
 
 
14364
_ACEOF
 
14365
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14366
exec 5>>config.log
 
14367
{
 
14368
  echo
 
14369
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14370
## Running $as_me. ##
 
14371
_ASBOX
 
14372
  $as_echo "$ac_log"
 
14373
} >&5
 
14374
 
 
14375
_ACEOF
 
14376
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14377
#
 
14378
# INIT-COMMANDS
 
14379
#
 
14380
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14381
 
 
14382
 
 
14383
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14384
# if CDPATH is set.
 
14385
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14386
 
 
14387
sed_quote_subst='$sed_quote_subst'
 
14388
double_quote_subst='$double_quote_subst'
 
14389
delay_variable_subst='$delay_variable_subst'
 
14390
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14391
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14392
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14393
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14394
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14395
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14396
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14397
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14398
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
14399
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14400
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14401
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14402
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14403
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14404
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14405
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14406
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14407
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
14408
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
14409
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
14410
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
14411
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
14412
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
14413
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
14414
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
14415
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
14416
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
14417
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
14418
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
14419
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14420
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
14421
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
14422
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
14423
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
14424
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
14425
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
14426
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
14427
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
14428
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
14429
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
14430
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
14431
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
14432
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
14433
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
14434
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
14435
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14436
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14437
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14438
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
14439
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
14440
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
14441
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
14442
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
14443
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
14444
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
14445
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
14446
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14447
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14448
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
14449
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
14450
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
14451
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
14452
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
14453
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
14454
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
14455
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
14456
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
14457
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
14458
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
14459
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
14460
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
14461
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
14462
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
14463
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
14464
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
14465
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14466
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
14467
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
14468
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14469
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14470
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
14471
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
14472
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
14473
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
14474
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14475
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
14476
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
14477
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
14478
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14479
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
14480
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
14481
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
14482
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
14483
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
14484
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
14485
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14486
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
14487
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
14488
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
14489
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
14490
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
14491
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
14492
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
14493
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
14494
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
14495
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
14496
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
14497
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
14498
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
14499
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
14500
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
14501
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
14502
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
14503
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
14504
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
14505
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
14506
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
14507
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14508
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
14509
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
14510
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
14511
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
14512
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
14513
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
14514
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
14515
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
14516
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
14517
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
14518
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
14519
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
14520
 
 
14521
LTCC='$LTCC'
 
14522
LTCFLAGS='$LTCFLAGS'
 
14523
compiler='$compiler_DEFAULT'
 
14524
 
 
14525
# A function that is used when there is no print builtin or printf.
 
14526
func_fallback_echo ()
 
14527
{
 
14528
  eval 'cat <<_LTECHO_EOF
 
14529
\$1
 
14530
_LTECHO_EOF'
 
14531
}
 
14532
 
 
14533
# Quote evaled strings.
 
14534
for var in SHELL \
 
14535
ECHO \
 
14536
PATH_SEPARATOR \
 
14537
SED \
 
14538
GREP \
 
14539
EGREP \
 
14540
FGREP \
 
14541
LD \
 
14542
NM \
 
14543
LN_S \
 
14544
lt_SP2NL \
 
14545
lt_NL2SP \
 
14546
reload_flag \
 
14547
OBJDUMP \
 
14548
deplibs_check_method \
 
14549
file_magic_cmd \
 
14550
file_magic_glob \
 
14551
want_nocaseglob \
 
14552
DLLTOOL \
 
14553
sharedlib_from_linklib_cmd \
 
14554
AR \
 
14555
AR_FLAGS \
 
14556
archiver_list_spec \
 
14557
STRIP \
 
14558
RANLIB \
 
14559
CC \
 
14560
CFLAGS \
 
14561
compiler \
 
14562
lt_cv_sys_global_symbol_pipe \
 
14563
lt_cv_sys_global_symbol_to_cdecl \
 
14564
lt_cv_sys_global_symbol_to_c_name_address \
 
14565
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14566
nm_file_list_spec \
 
14567
lt_prog_compiler_no_builtin_flag \
 
14568
lt_prog_compiler_pic \
 
14569
lt_prog_compiler_wl \
 
14570
lt_prog_compiler_static \
 
14571
lt_cv_prog_compiler_c_o \
 
14572
need_locks \
 
14573
MANIFEST_TOOL \
 
14574
DSYMUTIL \
 
14575
NMEDIT \
 
14576
LIPO \
 
14577
OTOOL \
 
14578
OTOOL64 \
 
14579
shrext_cmds \
 
14580
export_dynamic_flag_spec \
 
14581
whole_archive_flag_spec \
 
14582
compiler_needs_object \
 
14583
with_gnu_ld \
 
14584
allow_undefined_flag \
 
14585
no_undefined_flag \
 
14586
hardcode_libdir_flag_spec \
 
14587
hardcode_libdir_separator \
 
14588
exclude_expsyms \
 
14589
include_expsyms \
 
14590
file_list_spec \
 
14591
variables_saved_for_relink \
 
14592
libname_spec \
 
14593
library_names_spec \
 
14594
soname_spec \
 
14595
install_override_mode \
 
14596
finish_eval \
 
14597
old_striplib \
 
14598
striplib; do
 
14599
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14600
    *[\\\\\\\`\\"\\\$]*)
 
14601
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14602
      ;;
 
14603
    *)
 
14604
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14605
      ;;
 
14606
    esac
 
14607
done
 
14608
 
 
14609
# Double-quote double-evaled strings.
 
14610
for var in reload_cmds \
 
14611
old_postinstall_cmds \
 
14612
old_postuninstall_cmds \
 
14613
old_archive_cmds \
 
14614
extract_expsyms_cmds \
 
14615
old_archive_from_new_cmds \
 
14616
old_archive_from_expsyms_cmds \
 
14617
archive_cmds \
 
14618
archive_expsym_cmds \
 
14619
module_cmds \
 
14620
module_expsym_cmds \
 
14621
export_symbols_cmds \
 
14622
prelink_cmds \
 
14623
postlink_cmds \
 
14624
postinstall_cmds \
 
14625
postuninstall_cmds \
 
14626
finish_cmds \
 
14627
sys_lib_search_path_spec \
 
14628
sys_lib_dlsearch_path_spec; do
 
14629
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
14630
    *[\\\\\\\`\\"\\\$]*)
 
14631
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14632
      ;;
 
14633
    *)
 
14634
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14635
      ;;
 
14636
    esac
 
14637
done
 
14638
 
 
14639
ac_aux_dir='$ac_aux_dir'
 
14640
xsi_shell='$xsi_shell'
 
14641
lt_shell_append='$lt_shell_append'
 
14642
 
 
14643
# See if we are running on zsh, and set the options which allow our
 
14644
# commands through without removal of \ escapes INIT.
 
14645
if test -n "\${ZSH_VERSION+set}" ; then
 
14646
   setopt NO_GLOB_SUBST
 
14647
fi
 
14648
 
 
14649
 
 
14650
    PACKAGE='$PACKAGE'
 
14651
    VERSION='$VERSION'
 
14652
    TIMESTAMP='$TIMESTAMP'
 
14653
    RM='$RM'
 
14654
    ofile='$ofile'
 
14655
 
 
14656
 
 
14657
 
 
14658
 
 
14659
 
 
14660
_ACEOF
 
14661
 
 
14662
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14663
 
 
14664
# Handling of arguments.
 
14665
for ac_config_target in $ac_config_targets
 
14666
do
 
14667
  case $ac_config_target in
 
14668
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
14669
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14670
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14671
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
14672
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14673
    "musicbaidu.scope.in") CONFIG_FILES="$CONFIG_FILES musicbaidu.scope.in" ;;
 
14674
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
14675
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
14676
    "src/config.vala") CONFIG_FILES="$CONFIG_FILES src/config.vala" ;;
 
14677
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
14678
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
14679
 
 
14680
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
14681
  esac
 
14682
done
 
14683
 
 
14684
 
 
14685
# If the user did not use the arguments to specify the items to instantiate,
 
14686
# then the envvar interface is used.  Set only those that are not.
 
14687
# We use the long form for the default assignment because of an extremely
 
14688
# bizarre bug on SunOS 4.1.3.
 
14689
if $ac_need_defaults; then
 
14690
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14691
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14692
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14693
fi
 
14694
 
 
14695
# Have a temporary directory for convenience.  Make it in the build tree
 
14696
# simply because there is no reason against having it here, and in addition,
 
14697
# creating and moving files from /tmp can sometimes cause problems.
 
14698
# Hook for its removal unless debugging.
 
14699
# Note that there is a small window in which the directory will not be cleaned:
 
14700
# after its creation but before its name has been assigned to `$tmp'.
 
14701
$debug ||
 
14702
{
 
14703
  tmp= ac_tmp=
 
14704
  trap 'exit_status=$?
 
14705
  : "${ac_tmp:=$tmp}"
 
14706
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
14707
' 0
 
14708
  trap 'as_fn_exit 1' 1 2 13 15
 
14709
}
 
14710
# Create a (secure) tmp directory for tmp files.
 
14711
 
 
14712
{
 
14713
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14714
  test -d "$tmp"
 
14715
}  ||
 
14716
{
 
14717
  tmp=./conf$$-$RANDOM
 
14718
  (umask 077 && mkdir "$tmp")
 
14719
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14720
ac_tmp=$tmp
 
14721
 
 
14722
# Set up the scripts for CONFIG_FILES section.
 
14723
# No need to generate them if there are no CONFIG_FILES.
 
14724
# This happens for instance with `./config.status config.h'.
 
14725
if test -n "$CONFIG_FILES"; then
 
14726
 
 
14727
 
 
14728
ac_cr=`echo X | tr X '\015'`
 
14729
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14730
# But we know of no other shell where ac_cr would be empty at this
 
14731
# point, so we can use a bashism as a fallback.
 
14732
if test "x$ac_cr" = x; then
 
14733
  eval ac_cr=\$\'\\r\'
 
14734
fi
 
14735
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14736
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14737
  ac_cs_awk_cr='\\r'
 
14738
else
 
14739
  ac_cs_awk_cr=$ac_cr
 
14740
fi
 
14741
 
 
14742
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14743
_ACEOF
 
14744
 
 
14745
 
 
14746
{
 
14747
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14748
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14749
  echo "_ACEOF"
 
14750
} >conf$$subs.sh ||
 
14751
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14752
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14753
ac_delim='%!_!# '
 
14754
for ac_last_try in false false false false false :; do
 
14755
  . ./conf$$subs.sh ||
 
14756
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14757
 
 
14758
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14759
  if test $ac_delim_n = $ac_delim_num; then
 
14760
    break
 
14761
  elif $ac_last_try; then
 
14762
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14763
  else
 
14764
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14765
  fi
 
14766
done
 
14767
rm -f conf$$subs.sh
 
14768
 
 
14769
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14770
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14771
_ACEOF
 
14772
sed -n '
 
14773
h
 
14774
s/^/S["/; s/!.*/"]=/
 
14775
p
 
14776
g
 
14777
s/^[^!]*!//
 
14778
:repl
 
14779
t repl
 
14780
s/'"$ac_delim"'$//
 
14781
t delim
 
14782
:nl
 
14783
h
 
14784
s/\(.\{148\}\)..*/\1/
 
14785
t more1
 
14786
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14787
p
 
14788
n
 
14789
b repl
 
14790
:more1
 
14791
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14792
p
 
14793
g
 
14794
s/.\{148\}//
 
14795
t nl
 
14796
:delim
 
14797
h
 
14798
s/\(.\{148\}\)..*/\1/
 
14799
t more2
 
14800
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14801
p
 
14802
b
 
14803
:more2
 
14804
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14805
p
 
14806
g
 
14807
s/.\{148\}//
 
14808
t delim
 
14809
' <conf$$subs.awk | sed '
 
14810
/^[^""]/{
 
14811
  N
 
14812
  s/\n//
 
14813
}
 
14814
' >>$CONFIG_STATUS || ac_write_fail=1
 
14815
rm -f conf$$subs.awk
 
14816
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14817
_ACAWK
 
14818
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14819
  for (key in S) S_is_set[key] = 1
 
14820
  FS = ""
 
14821
 
 
14822
}
 
14823
{
 
14824
  line = $ 0
 
14825
  nfields = split(line, field, "@")
 
14826
  substed = 0
 
14827
  len = length(field[1])
 
14828
  for (i = 2; i < nfields; i++) {
 
14829
    key = field[i]
 
14830
    keylen = length(key)
 
14831
    if (S_is_set[key]) {
 
14832
      value = S[key]
 
14833
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14834
      len += length(value) + length(field[++i])
 
14835
      substed = 1
 
14836
    } else
 
14837
      len += 1 + keylen
 
14838
  }
 
14839
 
 
14840
  print line
 
14841
}
 
14842
 
 
14843
_ACAWK
 
14844
_ACEOF
 
14845
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14846
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14847
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14848
else
 
14849
  cat
 
14850
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14851
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14852
_ACEOF
 
14853
 
 
14854
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14855
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14856
# trailing colons and then remove the whole line if VPATH becomes empty
 
14857
# (actually we leave an empty line to preserve line numbers).
 
14858
if test "x$srcdir" = x.; then
 
14859
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14860
h
 
14861
s///
 
14862
s/^/:/
 
14863
s/[      ]*$/:/
 
14864
s/:\$(srcdir):/:/g
 
14865
s/:\${srcdir}:/:/g
 
14866
s/:@srcdir@:/:/g
 
14867
s/^:*//
 
14868
s/:*$//
 
14869
x
 
14870
s/\(=[   ]*\).*/\1/
 
14871
G
 
14872
s/\n//
 
14873
s/^[^=]*=[       ]*$//
 
14874
}'
 
14875
fi
 
14876
 
 
14877
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14878
fi # test -n "$CONFIG_FILES"
 
14879
 
 
14880
# Set up the scripts for CONFIG_HEADERS section.
 
14881
# No need to generate them if there are no CONFIG_HEADERS.
 
14882
# This happens for instance with `./config.status Makefile'.
 
14883
if test -n "$CONFIG_HEADERS"; then
 
14884
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14885
BEGIN {
 
14886
_ACEOF
 
14887
 
 
14888
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14889
# here-document in config.status, that substitutes the proper values into
 
14890
# config.h.in to produce config.h.
 
14891
 
 
14892
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14893
# handling of long lines.
 
14894
ac_delim='%!_!# '
 
14895
for ac_last_try in false false :; do
 
14896
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14897
  if test -z "$ac_tt"; then
 
14898
    break
 
14899
  elif $ac_last_try; then
 
14900
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14901
  else
 
14902
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14903
  fi
 
14904
done
 
14905
 
 
14906
# For the awk script, D is an array of macro values keyed by name,
 
14907
# likewise P contains macro parameters if any.  Preserve backslash
 
14908
# newline sequences.
 
14909
 
 
14910
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14911
sed -n '
 
14912
s/.\{148\}/&'"$ac_delim"'/g
 
14913
t rset
 
14914
:rset
 
14915
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14916
t def
 
14917
d
 
14918
:def
 
14919
s/\\$//
 
14920
t bsnl
 
14921
s/["\\]/\\&/g
 
14922
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14923
D["\1"]=" \3"/p
 
14924
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14925
d
 
14926
:bsnl
 
14927
s/["\\]/\\&/g
 
14928
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14929
D["\1"]=" \3\\\\\\n"\\/p
 
14930
t cont
 
14931
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14932
t cont
 
14933
d
 
14934
:cont
 
14935
n
 
14936
s/.\{148\}/&'"$ac_delim"'/g
 
14937
t clear
 
14938
:clear
 
14939
s/\\$//
 
14940
t bsnlc
 
14941
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14942
d
 
14943
:bsnlc
 
14944
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14945
b cont
 
14946
' <confdefs.h | sed '
 
14947
s/'"$ac_delim"'/"\\\
 
14948
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14949
 
 
14950
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14951
  for (key in D) D_is_set[key] = 1
 
14952
  FS = ""
 
14953
}
 
14954
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14955
  line = \$ 0
 
14956
  split(line, arg, " ")
 
14957
  if (arg[1] == "#") {
 
14958
    defundef = arg[2]
 
14959
    mac1 = arg[3]
 
14960
  } else {
 
14961
    defundef = substr(arg[1], 2)
 
14962
    mac1 = arg[2]
 
14963
  }
 
14964
  split(mac1, mac2, "(") #)
 
14965
  macro = mac2[1]
 
14966
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14967
  if (D_is_set[macro]) {
 
14968
    # Preserve the white space surrounding the "#".
 
14969
    print prefix "define", macro P[macro] D[macro]
 
14970
    next
 
14971
  } else {
 
14972
    # Replace #undef with comments.  This is necessary, for example,
 
14973
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14974
    # on some systems where configure will not decide to define it.
 
14975
    if (defundef == "undef") {
 
14976
      print "/*", prefix defundef, macro, "*/"
 
14977
      next
 
14978
    }
 
14979
  }
 
14980
}
 
14981
{ print }
 
14982
_ACAWK
 
14983
_ACEOF
 
14984
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14985
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14986
fi # test -n "$CONFIG_HEADERS"
 
14987
 
 
14988
 
 
14989
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14990
shift
 
14991
for ac_tag
 
14992
do
 
14993
  case $ac_tag in
 
14994
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14995
  esac
 
14996
  case $ac_mode$ac_tag in
 
14997
  :[FHL]*:*);;
 
14998
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14999
  :[FH]-) ac_tag=-:-;;
 
15000
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15001
  esac
 
15002
  ac_save_IFS=$IFS
 
15003
  IFS=:
 
15004
  set x $ac_tag
 
15005
  IFS=$ac_save_IFS
 
15006
  shift
 
15007
  ac_file=$1
 
15008
  shift
 
15009
 
 
15010
  case $ac_mode in
 
15011
  :L) ac_source=$1;;
 
15012
  :[FH])
 
15013
    ac_file_inputs=
 
15014
    for ac_f
 
15015
    do
 
15016
      case $ac_f in
 
15017
      -) ac_f="$ac_tmp/stdin";;
 
15018
      *) # Look for the file first in the build tree, then in the source tree
 
15019
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
15020
         # because $ac_f cannot contain `:'.
 
15021
         test -f "$ac_f" ||
 
15022
           case $ac_f in
 
15023
           [\\/$]*) false;;
 
15024
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
15025
           esac ||
 
15026
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
15027
      esac
 
15028
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15029
      as_fn_append ac_file_inputs " '$ac_f'"
 
15030
    done
 
15031
 
 
15032
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
15033
    # use $as_me), people would be surprised to read:
 
15034
    #    /* config.h.  Generated by config.status.  */
 
15035
    configure_input='Generated from '`
 
15036
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15037
        `' by configure.'
 
15038
    if test x"$ac_file" != x-; then
 
15039
      configure_input="$ac_file.  $configure_input"
 
15040
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15041
$as_echo "$as_me: creating $ac_file" >&6;}
 
15042
    fi
 
15043
    # Neutralize special characters interpreted by sed in replacement strings.
 
15044
    case $configure_input in #(
 
15045
    *\&* | *\|* | *\\* )
 
15046
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
15047
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15048
    *) ac_sed_conf_input=$configure_input;;
 
15049
    esac
 
15050
 
 
15051
    case $ac_tag in
 
15052
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
15053
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
15054
    esac
 
15055
    ;;
 
15056
  esac
 
15057
 
 
15058
  ac_dir=`$as_dirname -- "$ac_file" ||
 
15059
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15060
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
15061
         X"$ac_file" : 'X\(//\)$' \| \
 
15062
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
15063
$as_echo X"$ac_file" |
 
15064
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15065
            s//\1/
 
15066
            q
 
15067
          }
 
15068
          /^X\(\/\/\)[^/].*/{
 
15069
            s//\1/
 
15070
            q
 
15071
          }
 
15072
          /^X\(\/\/\)$/{
 
15073
            s//\1/
 
15074
            q
 
15075
          }
 
15076
          /^X\(\/\).*/{
 
15077
            s//\1/
 
15078
            q
 
15079
          }
 
15080
          s/.*/./; q'`
 
15081
  as_dir="$ac_dir"; as_fn_mkdir_p
 
15082
  ac_builddir=.
 
15083
 
 
15084
case "$ac_dir" in
 
15085
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15086
*)
 
15087
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
15088
  # A ".." for each directory in $ac_dir_suffix.
 
15089
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15090
  case $ac_top_builddir_sub in
 
15091
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15092
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15093
  esac ;;
 
15094
esac
 
15095
ac_abs_top_builddir=$ac_pwd
 
15096
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15097
# for backward compatibility:
 
15098
ac_top_builddir=$ac_top_build_prefix
 
15099
 
 
15100
case $srcdir in
 
15101
  .)  # We are building in place.
 
15102
    ac_srcdir=.
 
15103
    ac_top_srcdir=$ac_top_builddir_sub
 
15104
    ac_abs_top_srcdir=$ac_pwd ;;
 
15105
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15106
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15107
    ac_top_srcdir=$srcdir
 
15108
    ac_abs_top_srcdir=$srcdir ;;
 
15109
  *) # Relative name.
 
15110
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15111
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15112
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15113
esac
 
15114
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15115
 
 
15116
 
 
15117
  case $ac_mode in
 
15118
  :F)
 
15119
  #
 
15120
  # CONFIG_FILE
 
15121
  #
 
15122
 
 
15123
  case $INSTALL in
 
15124
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
15125
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
15126
  esac
 
15127
  ac_MKDIR_P=$MKDIR_P
 
15128
  case $MKDIR_P in
 
15129
  [\\/$]* | ?:[\\/]* ) ;;
 
15130
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
15131
  esac
 
15132
_ACEOF
 
15133
 
 
15134
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15135
# If the template does not know about datarootdir, expand it.
 
15136
# FIXME: This hack should be removed a few years after 2.60.
 
15137
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15138
ac_sed_dataroot='
 
15139
/datarootdir/ {
 
15140
  p
 
15141
  q
 
15142
}
 
15143
/@datadir@/p
 
15144
/@docdir@/p
 
15145
/@infodir@/p
 
15146
/@localedir@/p
 
15147
/@mandir@/p'
 
15148
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15149
*datarootdir*) ac_datarootdir_seen=yes;;
 
15150
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15151
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15152
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15153
_ACEOF
 
15154
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15155
  ac_datarootdir_hack='
 
15156
  s&@datadir@&$datadir&g
 
15157
  s&@docdir@&$docdir&g
 
15158
  s&@infodir@&$infodir&g
 
15159
  s&@localedir@&$localedir&g
 
15160
  s&@mandir@&$mandir&g
 
15161
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15162
esac
 
15163
_ACEOF
 
15164
 
 
15165
# Neutralize VPATH when `$srcdir' = `.'.
 
15166
# Shell code in configure.ac might set extrasub.
 
15167
# FIXME: do we really want to maintain this feature?
 
15168
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15169
ac_sed_extra="$ac_vpsub
 
15170
$extrasub
 
15171
_ACEOF
 
15172
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15173
:t
 
15174
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15175
s|@configure_input@|$ac_sed_conf_input|;t t
 
15176
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15177
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15178
s&@srcdir@&$ac_srcdir&;t t
 
15179
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15180
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15181
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15182
s&@builddir@&$ac_builddir&;t t
 
15183
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15184
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15185
s&@INSTALL@&$ac_INSTALL&;t t
 
15186
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15187
$ac_datarootdir_hack
 
15188
"
 
15189
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
15190
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15191
 
 
15192
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15193
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
15194
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
15195
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
15196
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15197
which seems to be undefined.  Please make sure it is defined" >&5
 
15198
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15199
which seems to be undefined.  Please make sure it is defined" >&2;}
 
15200
 
 
15201
  rm -f "$ac_tmp/stdin"
 
15202
  case $ac_file in
 
15203
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
15204
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
15205
  esac \
 
15206
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15207
 ;;
 
15208
  :H)
 
15209
  #
 
15210
  # CONFIG_HEADER
 
15211
  #
 
15212
  if test x"$ac_file" != x-; then
 
15213
    {
 
15214
      $as_echo "/* $configure_input  */" \
 
15215
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
15216
    } >"$ac_tmp/config.h" \
 
15217
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15218
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
15219
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15220
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
15221
    else
 
15222
      rm -f "$ac_file"
 
15223
      mv "$ac_tmp/config.h" "$ac_file" \
 
15224
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15225
    fi
 
15226
  else
 
15227
    $as_echo "/* $configure_input  */" \
 
15228
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
15229
      || as_fn_error $? "could not create -" "$LINENO" 5
 
15230
  fi
 
15231
# Compute "$ac_file"'s index in $config_headers.
 
15232
_am_arg="$ac_file"
 
15233
_am_stamp_count=1
 
15234
for _am_header in $config_headers :; do
 
15235
  case $_am_header in
 
15236
    $_am_arg | $_am_arg:* )
 
15237
      break ;;
 
15238
    * )
 
15239
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15240
  esac
 
15241
done
 
15242
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15243
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15244
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15245
         X"$_am_arg" : 'X\(//\)$' \| \
 
15246
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15247
$as_echo X"$_am_arg" |
 
15248
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15249
            s//\1/
 
15250
            q
 
15251
          }
 
15252
          /^X\(\/\/\)[^/].*/{
 
15253
            s//\1/
 
15254
            q
 
15255
          }
 
15256
          /^X\(\/\/\)$/{
 
15257
            s//\1/
 
15258
            q
 
15259
          }
 
15260
          /^X\(\/\).*/{
 
15261
            s//\1/
 
15262
            q
 
15263
          }
 
15264
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15265
 ;;
 
15266
 
 
15267
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15268
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15269
 ;;
 
15270
  esac
 
15271
 
 
15272
 
 
15273
  case $ac_file$ac_mode in
 
15274
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15275
  # Older Autoconf quotes --file arguments for eval, but not when files
 
15276
  # are listed without --file.  Let's play safe and only enable the eval
 
15277
  # if we detect the quoting.
 
15278
  case $CONFIG_FILES in
 
15279
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15280
  *)   set x $CONFIG_FILES ;;
 
15281
  esac
 
15282
  shift
 
15283
  for mf
 
15284
  do
 
15285
    # Strip MF so we end up with the name of the file.
 
15286
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15287
    # Check whether this is an Automake generated Makefile or not.
 
15288
    # We used to match only the files named 'Makefile.in', but
 
15289
    # some people rename them; so instead we look at the file content.
 
15290
    # Grep'ing the first line is not enough: some people post-process
 
15291
    # each Makefile.in and add a new line on top of each file to say so.
 
15292
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15293
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15294
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15295
      dirpart=`$as_dirname -- "$mf" ||
 
15296
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15297
         X"$mf" : 'X\(//\)[^/]' \| \
 
15298
         X"$mf" : 'X\(//\)$' \| \
 
15299
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15300
$as_echo X"$mf" |
 
15301
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15302
            s//\1/
 
15303
            q
 
15304
          }
 
15305
          /^X\(\/\/\)[^/].*/{
 
15306
            s//\1/
 
15307
            q
 
15308
          }
 
15309
          /^X\(\/\/\)$/{
 
15310
            s//\1/
 
15311
            q
 
15312
          }
 
15313
          /^X\(\/\).*/{
 
15314
            s//\1/
 
15315
            q
 
15316
          }
 
15317
          s/.*/./; q'`
 
15318
    else
 
15319
      continue
 
15320
    fi
 
15321
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15322
    # from the Makefile without running 'make'.
 
15323
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15324
    test -z "$DEPDIR" && continue
 
15325
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15326
    test -z "$am__include" && continue
 
15327
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15328
    # Find all dependency output files, they are included files with
 
15329
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15330
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15331
    # expansion.
 
15332
    for file in `sed -n "
 
15333
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15334
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
15335
      # Make sure the directory exists.
 
15336
      test -f "$dirpart/$file" && continue
 
15337
      fdir=`$as_dirname -- "$file" ||
 
15338
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15339
         X"$file" : 'X\(//\)[^/]' \| \
 
15340
         X"$file" : 'X\(//\)$' \| \
 
15341
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15342
$as_echo X"$file" |
 
15343
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15344
            s//\1/
 
15345
            q
 
15346
          }
 
15347
          /^X\(\/\/\)[^/].*/{
 
15348
            s//\1/
 
15349
            q
 
15350
          }
 
15351
          /^X\(\/\/\)$/{
 
15352
            s//\1/
 
15353
            q
 
15354
          }
 
15355
          /^X\(\/\).*/{
 
15356
            s//\1/
 
15357
            q
 
15358
          }
 
15359
          s/.*/./; q'`
 
15360
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15361
      # echo "creating $dirpart/$file"
 
15362
      echo '# dummy' > "$dirpart/$file"
 
15363
    done
 
15364
  done
 
15365
}
 
15366
 ;;
 
15367
    "libtool":C)
 
15368
 
 
15369
    # See if we are running on zsh, and set the options which allow our
 
15370
    # commands through without removal of \ escapes.
 
15371
    if test -n "${ZSH_VERSION+set}" ; then
 
15372
      setopt NO_GLOB_SUBST
 
15373
    fi
 
15374
 
 
15375
    cfgfile="${ofile}T"
 
15376
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15377
    $RM "$cfgfile"
 
15378
 
 
15379
    cat <<_LT_EOF >> "$cfgfile"
 
15380
#! $SHELL
 
15381
 
 
15382
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15383
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15384
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15385
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15386
#
 
15387
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15388
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
15389
#                 Foundation, Inc.
 
15390
#   Written by Gordon Matzigkeit, 1996
 
15391
#
 
15392
#   This file is part of GNU Libtool.
 
15393
#
 
15394
# GNU Libtool is free software; you can redistribute it and/or
 
15395
# modify it under the terms of the GNU General Public License as
 
15396
# published by the Free Software Foundation; either version 2 of
 
15397
# the License, or (at your option) any later version.
 
15398
#
 
15399
# As a special exception to the GNU General Public License,
 
15400
# if you distribute this file as part of a program or library that
 
15401
# is built using GNU Libtool, you may include this file under the
 
15402
# same distribution terms that you use for the rest of that program.
 
15403
#
 
15404
# GNU Libtool is distributed in the hope that it will be useful,
 
15405
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15406
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15407
# GNU General Public License for more details.
 
15408
#
 
15409
# You should have received a copy of the GNU General Public License
 
15410
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15411
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15412
# obtained by writing to the Free Software Foundation, Inc.,
 
15413
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15414
 
 
15415
 
 
15416
# The names of the tagged configurations supported by this script.
 
15417
available_tags=""
 
15418
 
 
15419
# ### BEGIN LIBTOOL CONFIG
 
15420
 
 
15421
# Which release of libtool.m4 was used?
 
15422
macro_version=$macro_version
 
15423
macro_revision=$macro_revision
 
15424
 
 
15425
# Whether or not to build shared libraries.
 
15426
build_libtool_libs=$enable_shared
 
15427
 
 
15428
# Whether or not to build static libraries.
 
15429
build_old_libs=$enable_static
 
15430
 
 
15431
# What type of objects to build.
 
15432
pic_mode=$pic_mode
 
15433
 
 
15434
# Whether or not to optimize for fast installation.
 
15435
fast_install=$enable_fast_install
 
15436
 
 
15437
# Shell to use when invoking shell scripts.
 
15438
SHELL=$lt_SHELL
 
15439
 
 
15440
# An echo program that protects backslashes.
 
15441
ECHO=$lt_ECHO
 
15442
 
 
15443
# The PATH separator for the build system.
 
15444
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
15445
 
 
15446
# The host system.
 
15447
host_alias=$host_alias
 
15448
host=$host
 
15449
host_os=$host_os
 
15450
 
 
15451
# The build system.
 
15452
build_alias=$build_alias
 
15453
build=$build
 
15454
build_os=$build_os
 
15455
 
 
15456
# A sed program that does not truncate output.
 
15457
SED=$lt_SED
 
15458
 
 
15459
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15460
Xsed="\$SED -e 1s/^X//"
 
15461
 
 
15462
# A grep program that handles long lines.
 
15463
GREP=$lt_GREP
 
15464
 
 
15465
# An ERE matcher.
 
15466
EGREP=$lt_EGREP
 
15467
 
 
15468
# A literal string matcher.
 
15469
FGREP=$lt_FGREP
 
15470
 
 
15471
# A BSD- or MS-compatible name lister.
 
15472
NM=$lt_NM
 
15473
 
 
15474
# Whether we need soft or hard links.
 
15475
LN_S=$lt_LN_S
 
15476
 
 
15477
# What is the maximum length of a command?
 
15478
max_cmd_len=$max_cmd_len
 
15479
 
 
15480
# Object file suffix (normally "o").
 
15481
objext=$ac_objext
 
15482
 
 
15483
# Executable file suffix (normally "").
 
15484
exeext=$exeext
 
15485
 
 
15486
# whether the shell understands "unset".
 
15487
lt_unset=$lt_unset
 
15488
 
 
15489
# turn spaces into newlines.
 
15490
SP2NL=$lt_lt_SP2NL
 
15491
 
 
15492
# turn newlines into spaces.
 
15493
NL2SP=$lt_lt_NL2SP
 
15494
 
 
15495
# convert \$build file names to \$host format.
 
15496
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
15497
 
 
15498
# convert \$build files to toolchain format.
 
15499
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
15500
 
 
15501
# An object symbol dumper.
 
15502
OBJDUMP=$lt_OBJDUMP
 
15503
 
 
15504
# Method to check whether dependent libraries are shared objects.
 
15505
deplibs_check_method=$lt_deplibs_check_method
 
15506
 
 
15507
# Command to use when deplibs_check_method = "file_magic".
 
15508
file_magic_cmd=$lt_file_magic_cmd
 
15509
 
 
15510
# How to find potential files when deplibs_check_method = "file_magic".
 
15511
file_magic_glob=$lt_file_magic_glob
 
15512
 
 
15513
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
15514
want_nocaseglob=$lt_want_nocaseglob
 
15515
 
 
15516
# DLL creation program.
 
15517
DLLTOOL=$lt_DLLTOOL
 
15518
 
 
15519
# Command to associate shared and link libraries.
 
15520
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
15521
 
 
15522
# The archiver.
 
15523
AR=$lt_AR
 
15524
 
 
15525
# Flags to create an archive.
 
15526
AR_FLAGS=$lt_AR_FLAGS
 
15527
 
 
15528
# How to feed a file listing to the archiver.
 
15529
archiver_list_spec=$lt_archiver_list_spec
 
15530
 
 
15531
# A symbol stripping program.
 
15532
STRIP=$lt_STRIP
 
15533
 
 
15534
# Commands used to install an old-style archive.
 
15535
RANLIB=$lt_RANLIB
 
15536
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15537
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15538
 
 
15539
# Whether to use a lock for old archive extraction.
 
15540
lock_old_archive_extraction=$lock_old_archive_extraction
 
15541
 
 
15542
# A C compiler.
 
15543
LTCC=$lt_CC
 
15544
 
 
15545
# LTCC compiler flags.
 
15546
LTCFLAGS=$lt_CFLAGS
 
15547
 
 
15548
# Take the output of nm and produce a listing of raw symbols and C names.
 
15549
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15550
 
 
15551
# Transform the output of nm in a proper C declaration.
 
15552
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15553
 
 
15554
# Transform the output of nm in a C name address pair.
 
15555
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15556
 
 
15557
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15558
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15559
 
 
15560
# Specify filename containing input files for \$NM.
 
15561
nm_file_list_spec=$lt_nm_file_list_spec
 
15562
 
 
15563
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
15564
lt_sysroot=$lt_sysroot
 
15565
 
 
15566
# The name of the directory that contains temporary libtool files.
 
15567
objdir=$objdir
 
15568
 
 
15569
# Used to examine libraries when file_magic_cmd begins with "file".
 
15570
MAGIC_CMD=$MAGIC_CMD
 
15571
 
 
15572
# Must we lock files when doing compilation?
 
15573
need_locks=$lt_need_locks
 
15574
 
 
15575
# Manifest tool.
 
15576
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
15577
 
 
15578
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15579
DSYMUTIL=$lt_DSYMUTIL
 
15580
 
 
15581
# Tool to change global to local symbols on Mac OS X.
 
15582
NMEDIT=$lt_NMEDIT
 
15583
 
 
15584
# Tool to manipulate fat objects and archives on Mac OS X.
 
15585
LIPO=$lt_LIPO
 
15586
 
 
15587
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15588
OTOOL=$lt_OTOOL
 
15589
 
 
15590
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15591
OTOOL64=$lt_OTOOL64
 
15592
 
 
15593
# Old archive suffix (normally "a").
 
15594
libext=$libext
 
15595
 
 
15596
# Shared library suffix (normally ".so").
 
15597
shrext_cmds=$lt_shrext_cmds
 
15598
 
 
15599
# The commands to extract the exported symbol list from a shared archive.
 
15600
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15601
 
 
15602
# Variables whose values should be saved in libtool wrapper scripts and
 
15603
# restored at link time.
 
15604
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15605
 
 
15606
# Do we need the "lib" prefix for modules?
 
15607
need_lib_prefix=$need_lib_prefix
 
15608
 
 
15609
# Do we need a version for libraries?
 
15610
need_version=$need_version
 
15611
 
 
15612
# Library versioning type.
 
15613
version_type=$version_type
 
15614
 
 
15615
# Shared library runtime path variable.
 
15616
runpath_var=$runpath_var
 
15617
 
 
15618
# Shared library path variable.
 
15619
shlibpath_var=$shlibpath_var
 
15620
 
 
15621
# Is shlibpath searched before the hard-coded library search path?
 
15622
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15623
 
 
15624
# Format of library name prefix.
 
15625
libname_spec=$lt_libname_spec
 
15626
 
 
15627
# List of archive names.  First name is the real one, the rest are links.
 
15628
# The last name is the one that the linker finds with -lNAME
 
15629
library_names_spec=$lt_library_names_spec
 
15630
 
 
15631
# The coded name of the library, if different from the real name.
 
15632
soname_spec=$lt_soname_spec
 
15633
 
 
15634
# Permission mode override for installation of shared libraries.
 
15635
install_override_mode=$lt_install_override_mode
 
15636
 
 
15637
# Command to use after installation of a shared archive.
 
15638
postinstall_cmds=$lt_postinstall_cmds
 
15639
 
 
15640
# Command to use after uninstallation of a shared archive.
 
15641
postuninstall_cmds=$lt_postuninstall_cmds
 
15642
 
 
15643
# Commands used to finish a libtool library installation in a directory.
 
15644
finish_cmds=$lt_finish_cmds
 
15645
 
 
15646
# As "finish_cmds", except a single script fragment to be evaled but
 
15647
# not shown.
 
15648
finish_eval=$lt_finish_eval
 
15649
 
 
15650
# Whether we should hardcode library paths into libraries.
 
15651
hardcode_into_libs=$hardcode_into_libs
 
15652
 
 
15653
# Compile-time system search path for libraries.
 
15654
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15655
 
 
15656
# Run-time system search path for libraries.
 
15657
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15658
 
 
15659
# Whether dlopen is supported.
 
15660
dlopen_support=$enable_dlopen
 
15661
 
 
15662
# Whether dlopen of programs is supported.
 
15663
dlopen_self=$enable_dlopen_self
 
15664
 
 
15665
# Whether dlopen of statically linked programs is supported.
 
15666
dlopen_self_static=$enable_dlopen_self_static
 
15667
 
 
15668
# Commands to strip libraries.
 
15669
old_striplib=$lt_old_striplib
 
15670
striplib=$lt_striplib
 
15671
 
 
15672
 
 
15673
# The linker used to build libraries.
 
15674
LD=$lt_LD
 
15675
 
 
15676
# How to create reloadable object files.
 
15677
reload_flag=$lt_reload_flag
 
15678
reload_cmds=$lt_reload_cmds
 
15679
 
 
15680
# Commands used to build an old-style archive.
 
15681
old_archive_cmds=$lt_old_archive_cmds
 
15682
 
 
15683
# A language specific compiler.
 
15684
CC=$lt_compiler
 
15685
 
 
15686
# Is the compiler the GNU compiler?
 
15687
with_gcc=$GCC
 
15688
 
 
15689
# Compiler flag to turn off builtin functions.
 
15690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15691
 
 
15692
# Additional compiler flags for building library objects.
 
15693
pic_flag=$lt_lt_prog_compiler_pic
 
15694
 
 
15695
# How to pass a linker flag through the compiler.
 
15696
wl=$lt_lt_prog_compiler_wl
 
15697
 
 
15698
# Compiler flag to prevent dynamic linking.
 
15699
link_static_flag=$lt_lt_prog_compiler_static
 
15700
 
 
15701
# Does compiler simultaneously support -c and -o options?
 
15702
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15703
 
 
15704
# Whether or not to add -lc for building shared libraries.
 
15705
build_libtool_need_lc=$archive_cmds_need_lc
 
15706
 
 
15707
# Whether or not to disallow shared libs when runtime libs are static.
 
15708
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15709
 
 
15710
# Compiler flag to allow reflexive dlopens.
 
15711
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15712
 
 
15713
# Compiler flag to generate shared objects directly from archives.
 
15714
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15715
 
 
15716
# Whether the compiler copes with passing no objects directly.
 
15717
compiler_needs_object=$lt_compiler_needs_object
 
15718
 
 
15719
# Create an old-style archive from a shared archive.
 
15720
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15721
 
 
15722
# Create a temporary old-style archive to link instead of a shared archive.
 
15723
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15724
 
 
15725
# Commands used to build a shared archive.
 
15726
archive_cmds=$lt_archive_cmds
 
15727
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15728
 
 
15729
# Commands used to build a loadable module if different from building
 
15730
# a shared archive.
 
15731
module_cmds=$lt_module_cmds
 
15732
module_expsym_cmds=$lt_module_expsym_cmds
 
15733
 
 
15734
# Whether we are building with GNU ld or not.
 
15735
with_gnu_ld=$lt_with_gnu_ld
 
15736
 
 
15737
# Flag that allows shared libraries with undefined symbols to be built.
 
15738
allow_undefined_flag=$lt_allow_undefined_flag
 
15739
 
 
15740
# Flag that enforces no undefined symbols.
 
15741
no_undefined_flag=$lt_no_undefined_flag
 
15742
 
 
15743
# Flag to hardcode \$libdir into a binary during linking.
 
15744
# This must work even if \$libdir does not exist
 
15745
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15746
 
 
15747
# Whether we need a single "-rpath" flag with a separated argument.
 
15748
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15749
 
 
15750
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15751
# DIR into the resulting binary.
 
15752
hardcode_direct=$hardcode_direct
 
15753
 
 
15754
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15755
# DIR into the resulting binary and the resulting library dependency is
 
15756
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15757
# library is relocated.
 
15758
hardcode_direct_absolute=$hardcode_direct_absolute
 
15759
 
 
15760
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15761
# into the resulting binary.
 
15762
hardcode_minus_L=$hardcode_minus_L
 
15763
 
 
15764
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15765
# into the resulting binary.
 
15766
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15767
 
 
15768
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15769
# into the library and all subsequent libraries and executables linked
 
15770
# against it.
 
15771
hardcode_automatic=$hardcode_automatic
 
15772
 
 
15773
# Set to yes if linker adds runtime paths of dependent libraries
 
15774
# to runtime path list.
 
15775
inherit_rpath=$inherit_rpath
 
15776
 
 
15777
# Whether libtool must link a program against all its dependency libraries.
 
15778
link_all_deplibs=$link_all_deplibs
 
15779
 
 
15780
# Set to "yes" if exported symbols are required.
 
15781
always_export_symbols=$always_export_symbols
 
15782
 
 
15783
# The commands to list exported symbols.
 
15784
export_symbols_cmds=$lt_export_symbols_cmds
 
15785
 
 
15786
# Symbols that should not be listed in the preloaded symbols.
 
15787
exclude_expsyms=$lt_exclude_expsyms
 
15788
 
 
15789
# Symbols that must always be exported.
 
15790
include_expsyms=$lt_include_expsyms
 
15791
 
 
15792
# Commands necessary for linking programs (against libraries) with templates.
 
15793
prelink_cmds=$lt_prelink_cmds
 
15794
 
 
15795
# Commands necessary for finishing linking programs.
 
15796
postlink_cmds=$lt_postlink_cmds
 
15797
 
 
15798
# Specify filename containing input files.
 
15799
file_list_spec=$lt_file_list_spec
 
15800
 
 
15801
# How to hardcode a shared library path into an executable.
 
15802
hardcode_action=$hardcode_action
 
15803
 
 
15804
# ### END LIBTOOL CONFIG
 
15805
 
 
15806
_LT_EOF
 
15807
 
 
15808
  case $host_os in
 
15809
  aix3*)
 
15810
    cat <<\_LT_EOF >> "$cfgfile"
 
15811
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15812
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15813
# vanish in a puff of smoke.
 
15814
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15815
  COLLECT_NAMES=
 
15816
  export COLLECT_NAMES
 
15817
fi
 
15818
_LT_EOF
 
15819
    ;;
 
15820
  esac
 
15821
 
 
15822
 
 
15823
ltmain="$ac_aux_dir/ltmain.sh"
 
15824
 
 
15825
 
 
15826
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15827
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15828
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15829
  # is reportedly fixed, but why not run on old versions too?
 
15830
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15831
     || (rm -f "$cfgfile"; exit 1)
 
15832
 
 
15833
  if test x"$xsi_shell" = xyes; then
 
15834
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15835
func_dirname ()\
 
15836
{\
 
15837
\    case ${1} in\
 
15838
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15839
\      *  ) func_dirname_result="${3}" ;;\
 
15840
\    esac\
 
15841
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15842
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15843
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15844
test 0 -eq $? || _lt_function_replace_fail=:
 
15845
 
 
15846
 
 
15847
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15848
func_basename ()\
 
15849
{\
 
15850
\    func_basename_result="${1##*/}"\
 
15851
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15852
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15853
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15854
test 0 -eq $? || _lt_function_replace_fail=:
 
15855
 
 
15856
 
 
15857
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15858
func_dirname_and_basename ()\
 
15859
{\
 
15860
\    case ${1} in\
 
15861
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15862
\      *  ) func_dirname_result="${3}" ;;\
 
15863
\    esac\
 
15864
\    func_basename_result="${1##*/}"\
 
15865
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15866
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15867
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15868
test 0 -eq $? || _lt_function_replace_fail=:
 
15869
 
 
15870
 
 
15871
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15872
func_stripname ()\
 
15873
{\
 
15874
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15875
\    # positional parameters, so assign one to ordinary parameter first.\
 
15876
\    func_stripname_result=${3}\
 
15877
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15878
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15879
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15880
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15881
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15882
test 0 -eq $? || _lt_function_replace_fail=:
 
15883
 
 
15884
 
 
15885
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15886
func_split_long_opt ()\
 
15887
{\
 
15888
\    func_split_long_opt_name=${1%%=*}\
 
15889
\    func_split_long_opt_arg=${1#*=}\
 
15890
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15891
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15892
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15893
test 0 -eq $? || _lt_function_replace_fail=:
 
15894
 
 
15895
 
 
15896
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15897
func_split_short_opt ()\
 
15898
{\
 
15899
\    func_split_short_opt_arg=${1#??}\
 
15900
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15901
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15902
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15903
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15904
test 0 -eq $? || _lt_function_replace_fail=:
 
15905
 
 
15906
 
 
15907
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15908
func_lo2o ()\
 
15909
{\
 
15910
\    case ${1} in\
 
15911
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15912
\      *)    func_lo2o_result=${1} ;;\
 
15913
\    esac\
 
15914
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15915
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15916
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15917
test 0 -eq $? || _lt_function_replace_fail=:
 
15918
 
 
15919
 
 
15920
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15921
func_xform ()\
 
15922
{\
 
15923
    func_xform_result=${1%.*}.lo\
 
15924
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15925
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15926
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15927
test 0 -eq $? || _lt_function_replace_fail=:
 
15928
 
 
15929
 
 
15930
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15931
func_arith ()\
 
15932
{\
 
15933
    func_arith_result=$(( $* ))\
 
15934
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15935
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15936
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15937
test 0 -eq $? || _lt_function_replace_fail=:
 
15938
 
 
15939
 
 
15940
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15941
func_len ()\
 
15942
{\
 
15943
    func_len_result=${#1}\
 
15944
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15945
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15946
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15947
test 0 -eq $? || _lt_function_replace_fail=:
 
15948
 
 
15949
fi
 
15950
 
 
15951
if test x"$lt_shell_append" = xyes; then
 
15952
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15953
func_append ()\
 
15954
{\
 
15955
    eval "${1}+=\\${2}"\
 
15956
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15957
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15958
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15959
test 0 -eq $? || _lt_function_replace_fail=:
 
15960
 
 
15961
 
 
15962
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15963
func_append_quoted ()\
 
15964
{\
 
15965
\    func_quote_for_eval "${2}"\
 
15966
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15967
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15968
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15969
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15970
test 0 -eq $? || _lt_function_replace_fail=:
 
15971
 
 
15972
 
 
15973
  # Save a `func_append' function call where possible by direct use of '+='
 
15974
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15975
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15976
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15977
  test 0 -eq $? || _lt_function_replace_fail=:
 
15978
else
 
15979
  # Save a `func_append' function call even when '+=' is not available
 
15980
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15981
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15982
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15983
  test 0 -eq $? || _lt_function_replace_fail=:
 
15984
fi
 
15985
 
 
15986
if test x"$_lt_function_replace_fail" = x":"; then
 
15987
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15988
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15989
fi
 
15990
 
 
15991
 
 
15992
   mv -f "$cfgfile" "$ofile" ||
 
15993
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15994
  chmod +x "$ofile"
 
15995
 
 
15996
 ;;
 
15997
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
15998
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
15999
      esac ;;
 
16000
    "po/stamp-it":C)
 
16001
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
 
16002
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
 
16003
    fi
 
16004
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
16005
    >"po/stamp-it.tmp"
 
16006
    sed '/^#/d
 
16007
         s/^[[].*] *//
 
16008
         /^[    ]*$/d
 
16009
        '"s|^|  $ac_top_srcdir/|" \
 
16010
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
16011
 
 
16012
    sed '/^POTFILES =/,/[^\\]$/ {
 
16013
                /^POTFILES =/!d
 
16014
                r po/POTFILES
 
16015
          }
 
16016
         ' "po/Makefile.in" >"po/Makefile"
 
16017
    rm -f "po/Makefile.tmp"
 
16018
    mv "po/stamp-it.tmp" "po/stamp-it"
 
16019
   ;;
 
16020
 
 
16021
  esac
 
16022
done # for ac_tag
 
16023
 
 
16024
 
 
16025
as_fn_exit 0
 
16026
_ACEOF
 
16027
ac_clean_files=$ac_clean_files_save
 
16028
 
 
16029
test $ac_write_fail = 0 ||
 
16030
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16031
 
 
16032
 
 
16033
# configure is writing to config.log, and then calls config.status.
 
16034
# config.status does its own redirection, appending to config.log.
 
16035
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16036
# by configure, so config.status won't be able to write to it; its
 
16037
# output is simply discarded.  So we exec the FD to /dev/null,
 
16038
# effectively closing config.log, so it can be properly (re)opened and
 
16039
# appended to by config.status.  When coming back to configure, we
 
16040
# need to make the FD available again.
 
16041
if test "$no_create" != yes; then
 
16042
  ac_cs_success=:
 
16043
  ac_config_status_args=
 
16044
  test "$silent" = yes &&
 
16045
    ac_config_status_args="$ac_config_status_args --quiet"
 
16046
  exec 5>/dev/null
 
16047
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16048
  exec 5>>config.log
 
16049
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
16050
  # would make configure fail if this is the last instruction.
 
16051
  $ac_cs_success || as_fn_exit 1
 
16052
fi
 
16053
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
16054
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
16055
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
16056
fi
 
16057
 
 
16058
 
 
16059
#####################################################
 
16060
# Output the results
 
16061
#####################################################
 
16062
{ $as_echo "$as_me:${as_lineno-$LINENO}:
 
16063
 
 
16064
  Unity China Music Scope  Daemon $VERSION
 
16065
  -------------------------------
 
16066
 
 
16067
  Prefix          : ${prefix}
 
16068
 
 
16069
  Local install   : ${with_localinstall}
 
16070
 
 
16071
  Extra CFlags    : ${CPPFLAGS} $MAINTAINER_CFLAGS
 
16072
  Extra ValaFlags : ${CPPFLAGS} $MAINTAINER_VALAFLAGS
 
16073
 
 
16074
  Scopes Directory: ${SCOPESDIR}
 
16075
" >&5
 
16076
$as_echo "$as_me:
 
16077
 
 
16078
  Unity China Music Scope  Daemon $VERSION
 
16079
  -------------------------------
 
16080
 
 
16081
  Prefix          : ${prefix}
 
16082
 
 
16083
  Local install   : ${with_localinstall}
 
16084
 
 
16085
  Extra CFlags    : ${CPPFLAGS} $MAINTAINER_CFLAGS
 
16086
  Extra ValaFlags : ${CPPFLAGS} $MAINTAINER_VALAFLAGS
 
16087
 
 
16088
  Scopes Directory: ${SCOPESDIR}
 
16089
" >&6;}