~ubuntu-branches/ubuntu/raring/libdvdread/raring-proposed

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Package Import Robot
  • Author(s): Vibhav Pant
  • Date: 2012-12-15 17:06:42 UTC
  • mfrom: (1.3.2) (3.2.15 sid)
  • Revision ID: package-import@ubuntu.com-20121215170642-q0h4cc4r2mchkgcl
Tags: 4.2.0+20121016-1ubuntu1
* Merge from Debian unstable (LP: #1090692).  Remaining changes:
  - Re-add missing install-css.sh.
  - debian/control: add Suggests for install-css.sh on debhelper,
    fakeroot, and build-essential.
  - debian/rules: install install-css.sh, leave perms executable.

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 libdvdread 4.2.0.
 
4
@%:@ 
 
5
@%:@ 
 
6
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
7
@%:@ 
 
8
@%:@ 
 
9
@%:@ This configure script is free software; the Free Software Foundation
 
10
@%:@ gives unlimited permission to copy, distribute and modify it.
 
11
## -------------------- ##
 
12
## M4sh Initialization. ##
 
13
## -------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in @%:@(
 
26
  *posix*) :
 
27
    set -o posix ;; @%:@(
 
28
  *) :
 
29
     ;;
 
30
esac
 
31
fi
 
32
 
 
33
 
 
34
as_nl='
 
35
'
 
36
export as_nl
 
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
42
# but without wasting forks for bash or zsh.
 
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
  as_echo='print -r --'
 
46
  as_echo_n='print -rn --'
 
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in @%:@(
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
 
 
82
# IFS
 
83
# We need space, tab and new line, in precisely that order.  Quoting is
 
84
# there to prevent editors from complaining about space-tab.
 
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
86
# splitting by setting IFS to empty value.)
 
87
IFS=" ""        $as_nl"
 
88
 
 
89
# Find who we are.  Look in the path if we contain no directory separator.
 
90
as_myself=
 
91
case $0 in @%:@((
 
92
  *[\\/]* ) as_myself=$0 ;;
 
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
94
for as_dir in $PATH
 
95
do
 
96
  IFS=$as_save_IFS
 
97
  test -z "$as_dir" && as_dir=.
 
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
99
  done
 
100
IFS=$as_save_IFS
 
101
 
 
102
     ;;
 
103
esac
 
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
105
# in which case we are not to be found in the path.
 
106
if test "x$as_myself" = x; then
 
107
  as_myself=$0
 
108
fi
 
109
if test ! -f "$as_myself"; then
 
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
111
  exit 1
 
112
fi
 
113
 
 
114
# Unset variables that we do not need and which cause bugs (e.g. in
 
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
116
# suppresses any "Segmentation fault" message there.  '((' could
 
117
# trigger a bug in pdksh 5.2.14.
 
118
for as_var in BASH_ENV ENV MAIL MAILPATH
 
119
do eval test x\${$as_var+set} = xset \
 
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
121
done
 
122
PS1='$ '
 
123
PS2='> '
 
124
PS4='+ '
 
125
 
 
126
# NLS nuisances.
 
127
LC_ALL=C
 
128
export LC_ALL
 
129
LANGUAGE=C
 
130
export LANGUAGE
 
131
 
 
132
# CDPATH.
 
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
134
 
 
135
# Use a proper internal environment variable to ensure we don't fall
 
136
  # into an infinite loop, continuously re-executing ourselves.
 
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
138
    _as_can_reexec=no; export _as_can_reexec;
 
139
    # We cannot yet assume a decent shell, so we have to provide a
 
140
# neutralization value for shells without unset; and this also
 
141
# works around shells that cannot unset nonexistent variables.
 
142
# Preserve -v and -x to the replacement shell.
 
143
BASH_ENV=/dev/null
 
144
ENV=/dev/null
 
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
146
case $- in @%:@ ((((
 
147
  *v*x* | *x*v* ) as_opts=-vx ;;
 
148
  *v* ) as_opts=-v ;;
 
149
  *x* ) as_opts=-x ;;
 
150
  * ) as_opts= ;;
 
151
esac
 
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
153
# Admittedly, this is quite paranoid, since all the known shells bail
 
154
# out after a failed `exec'.
 
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
156
as_fn_exit 255
 
157
  fi
 
158
  # We don't want this to propagate to other subprocesses.
 
159
          { _as_can_reexec=; unset _as_can_reexec;}
 
160
if test "x$CONFIG_SHELL" = x; then
 
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
162
  emulate sh
 
163
  NULLCMD=:
 
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
165
  # is contrary to our usage.  Disable this feature.
 
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
167
  setopt NO_GLOB_SUBST
 
168
else
 
169
  case \`(set -o) 2>/dev/null\` in @%:@(
 
170
  *posix*) :
 
171
    set -o posix ;; @%:@(
 
172
  *) :
 
173
     ;;
 
174
esac
 
175
fi
 
176
"
 
177
  as_required="as_fn_return () { (exit \$1); }
 
178
as_fn_success () { as_fn_return 0; }
 
179
as_fn_failure () { as_fn_return 1; }
 
180
as_fn_ret_success () { return 0; }
 
181
as_fn_ret_failure () { return 1; }
 
182
 
 
183
exitcode=0
 
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
189
  
 
190
else
 
191
  exitcode=1; echo positional parameters were not saved.
 
192
fi
 
193
test x\$exitcode = x0 || exit 1
 
194
test -x / || exit 1"
 
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
199
 
 
200
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
201
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
202
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
203
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
204
    PATH=/empty FPATH=/empty; export PATH FPATH
 
205
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
206
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
207
test \$(( 1 + 1 )) = 2 || exit 1"
 
208
  if (eval "$as_required") 2>/dev/null; then :
 
209
  as_have_required=yes
 
210
else
 
211
  as_have_required=no
 
212
fi
 
213
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
214
  
 
215
else
 
216
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
217
as_found=false
 
218
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
219
do
 
220
  IFS=$as_save_IFS
 
221
  test -z "$as_dir" && as_dir=.
 
222
  as_found=:
 
223
  case $as_dir in @%:@(
 
224
         /*)
 
225
           for as_base in sh bash ksh sh5; do
 
226
             # Try only shells that exist, to save several forks.
 
227
             as_shell=$as_dir/$as_base
 
228
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
229
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
230
  CONFIG_SHELL=$as_shell as_have_required=yes
 
231
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  break 2
 
233
fi
 
234
fi
 
235
           done;;
 
236
       esac
 
237
  as_found=false
 
238
done
 
239
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
240
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
241
  CONFIG_SHELL=$SHELL as_have_required=yes
 
242
fi; }
 
243
IFS=$as_save_IFS
 
244
 
 
245
 
 
246
      if test "x$CONFIG_SHELL" != x; then :
 
247
  export CONFIG_SHELL
 
248
             # We cannot yet assume a decent shell, so we have to provide a
 
249
# neutralization value for shells without unset; and this also
 
250
# works around shells that cannot unset nonexistent variables.
 
251
# Preserve -v and -x to the replacement shell.
 
252
BASH_ENV=/dev/null
 
253
ENV=/dev/null
 
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
255
case $- in @%:@ ((((
 
256
  *v*x* | *x*v* ) as_opts=-vx ;;
 
257
  *v* ) as_opts=-v ;;
 
258
  *x* ) as_opts=-x ;;
 
259
  * ) as_opts= ;;
 
260
esac
 
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
262
# Admittedly, this is quite paranoid, since all the known shells bail
 
263
# out after a failed `exec'.
 
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
265
exit 255
 
266
fi
 
267
 
 
268
    if test x$as_have_required = xno; then :
 
269
  $as_echo "$0: This script requires a shell more modern than all"
 
270
  $as_echo "$0: the shells that I found on your system."
 
271
  if test x${ZSH_VERSION+set} = xset ; then
 
272
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
273
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
274
  else
 
275
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
276
$0: including any error possibly output before this
 
277
$0: message. Then install a modern shell, or manually run
 
278
$0: the script under such a shell if you do have one."
 
279
  fi
 
280
  exit 1
 
281
fi
 
282
fi
 
283
fi
 
284
SHELL=${CONFIG_SHELL-/bin/sh}
 
285
export SHELL
 
286
# Unset more variables known to interfere with behavior of common tools.
 
287
CLICOLOR_FORCE= GREP_OPTIONS=
 
288
unset CLICOLOR_FORCE GREP_OPTIONS
 
289
 
 
290
## --------------------- ##
 
291
## M4sh Shell Functions. ##
 
292
## --------------------- ##
 
293
@%:@ as_fn_unset VAR
 
294
@%:@ ---------------
 
295
@%:@ Portably unset VAR.
 
296
as_fn_unset ()
 
297
{
 
298
  { eval $1=; unset $1;}
 
299
}
 
300
as_unset=as_fn_unset
 
301
 
 
302
@%:@ as_fn_set_status STATUS
 
303
@%:@ -----------------------
 
304
@%:@ Set @S|@? to STATUS, without forking.
 
305
as_fn_set_status ()
 
306
{
 
307
  return $1
 
308
} @%:@ as_fn_set_status
 
309
 
 
310
@%:@ as_fn_exit STATUS
 
311
@%:@ -----------------
 
312
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
313
as_fn_exit ()
 
314
{
 
315
  set +e
 
316
  as_fn_set_status $1
 
317
  exit $1
 
318
} @%:@ as_fn_exit
 
319
 
 
320
@%:@ as_fn_mkdir_p
 
321
@%:@ -------------
 
322
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
323
as_fn_mkdir_p ()
 
324
{
 
325
 
 
326
  case $as_dir in #(
 
327
  -*) as_dir=./$as_dir;;
 
328
  esac
 
329
  test -d "$as_dir" || eval $as_mkdir_p || {
 
330
    as_dirs=
 
331
    while :; do
 
332
      case $as_dir in #(
 
333
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
334
      *) as_qdir=$as_dir;;
 
335
      esac
 
336
      as_dirs="'$as_qdir' $as_dirs"
 
337
      as_dir=`$as_dirname -- "$as_dir" ||
 
338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
339
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
340
         X"$as_dir" : 'X\(//\)$' \| \
 
341
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
342
$as_echo X"$as_dir" |
 
343
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
344
            s//\1/
 
345
            q
 
346
          }
 
347
          /^X\(\/\/\)[^/].*/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)$/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\).*/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          s/.*/./; q'`
 
360
      test -d "$as_dir" && break
 
361
    done
 
362
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
363
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
364
 
 
365
 
 
366
} @%:@ as_fn_mkdir_p
 
367
 
 
368
@%:@ as_fn_executable_p FILE
 
369
@%:@ -----------------------
 
370
@%:@ Test if FILE is an executable regular file.
 
371
as_fn_executable_p ()
 
372
{
 
373
  test -f "$1" && test -x "$1"
 
374
} @%:@ as_fn_executable_p
 
375
@%:@ as_fn_append VAR VALUE
 
376
@%:@ ----------------------
 
377
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
378
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
379
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
380
@%:@ implementations.
 
381
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
382
  eval 'as_fn_append ()
 
383
  {
 
384
    eval $1+=\$2
 
385
  }'
 
386
else
 
387
  as_fn_append ()
 
388
  {
 
389
    eval $1=\$$1\$2
 
390
  }
 
391
fi # as_fn_append
 
392
 
 
393
@%:@ as_fn_arith ARG...
 
394
@%:@ ------------------
 
395
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
396
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
397
@%:@ must be portable across @S|@(()) and expr.
 
398
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
399
  eval 'as_fn_arith ()
 
400
  {
 
401
    as_val=$(( $* ))
 
402
  }'
 
403
else
 
404
  as_fn_arith ()
 
405
  {
 
406
    as_val=`expr "$@" || test $? -eq 1`
 
407
  }
 
408
fi # as_fn_arith
 
409
 
 
410
 
 
411
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
412
@%:@ ----------------------------------------
 
413
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
414
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
415
@%:@ script with STATUS, using 1 if that was 0.
 
416
as_fn_error ()
 
417
{
 
418
  as_status=$1; test $as_status -eq 0 && as_status=1
 
419
  if test "$4"; then
 
420
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
421
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
422
  fi
 
423
  $as_echo "$as_me: error: $2" >&2
 
424
  as_fn_exit $as_status
 
425
} @%:@ as_fn_error
 
426
 
 
427
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
428
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
429
  as_expr=expr
 
430
else
 
431
  as_expr=false
 
432
fi
 
433
 
 
434
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
435
  as_basename=basename
 
436
else
 
437
  as_basename=false
 
438
fi
 
439
 
 
440
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
441
  as_dirname=dirname
 
442
else
 
443
  as_dirname=false
 
444
fi
 
445
 
 
446
as_me=`$as_basename -- "$0" ||
 
447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
448
         X"$0" : 'X\(//\)$' \| \
 
449
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
450
$as_echo X/"$0" |
 
451
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
452
            s//\1/
 
453
            q
 
454
          }
 
455
          /^X\/\(\/\/\)$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\).*/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          s/.*/./; q'`
 
464
 
 
465
# Avoid depending upon Character Ranges.
 
466
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
467
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
468
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
469
as_cr_digits='0123456789'
 
470
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
471
 
 
472
 
 
473
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
474
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
475
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
476
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
477
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
478
  sed -n '
 
479
    p
 
480
    /[$]LINENO/=
 
481
  ' <$as_myself |
 
482
    sed '
 
483
      s/[$]LINENO.*/&-/
 
484
      t lineno
 
485
      b
 
486
      :lineno
 
487
      N
 
488
      :loop
 
489
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
490
      t loop
 
491
      s/-\n.*//
 
492
    ' >$as_me.lineno &&
 
493
  chmod +x "$as_me.lineno" ||
 
494
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
495
 
 
496
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
497
  # already done that, so ensure we don't try to do so again and fall
 
498
  # in an infinite loop.  This has already happened in practice.
 
499
  _as_can_reexec=no; export _as_can_reexec
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
 
501
  # (the dirname of $[0] is not the place where we might find the
 
502
  # original and so on.  Autoconf is especially sensitive to this).
 
503
  . "./$as_me.lineno"
 
504
  # Exit status is that of the last command.
 
505
  exit
 
506
}
 
507
 
 
508
ECHO_C= ECHO_N= ECHO_T=
 
509
case `echo -n x` in @%:@(((((
 
510
-n*)
 
511
  case `echo 'xy\c'` in
 
512
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
513
  xy)  ECHO_C='\c';;
 
514
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
515
       ECHO_T=' ';;
 
516
  esac;;
 
517
*)
 
518
  ECHO_N='-n';;
 
519
esac
 
520
 
 
521
rm -f conf$$ conf$$.exe conf$$.file
 
522
if test -d conf$$.dir; then
 
523
  rm -f conf$$.dir/conf$$.file
 
524
else
 
525
  rm -f conf$$.dir
 
526
  mkdir conf$$.dir 2>/dev/null
 
527
fi
 
528
if (echo >conf$$.file) 2>/dev/null; then
 
529
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
530
    as_ln_s='ln -s'
 
531
    # ... but there are two gotchas:
 
532
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
533
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
534
    # In both cases, we have to default to `cp -pR'.
 
535
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
536
      as_ln_s='cp -pR'
 
537
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
538
    as_ln_s=ln
 
539
  else
 
540
    as_ln_s='cp -pR'
 
541
  fi
 
542
else
 
543
  as_ln_s='cp -pR'
 
544
fi
 
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
546
rmdir conf$$.dir 2>/dev/null
 
547
 
 
548
if mkdir -p . 2>/dev/null; then
 
549
  as_mkdir_p='mkdir -p "$as_dir"'
 
550
else
 
551
  test -d ./-p && rmdir ./-p
 
552
  as_mkdir_p=false
 
553
fi
 
554
 
 
555
as_test_x='test -x'
 
556
as_executable_p=as_fn_executable_p
 
557
 
 
558
# Sed expression to map a string onto a valid CPP name.
 
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
560
 
 
561
# Sed expression to map a string onto a valid variable name.
 
562
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
SHELL=${CONFIG_SHELL-/bin/sh}
 
565
 
 
566
 
 
567
test -n "$DJDIR" || exec 7<&0 </dev/null
 
568
exec 6>&1
 
569
 
 
570
# Name of the host.
 
571
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
572
# so uname gets run too.
 
573
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
574
 
 
575
#
 
576
# Initializations.
 
577
#
 
578
ac_default_prefix=/usr/local
 
579
ac_clean_files=
 
580
ac_config_libobj_dir=.
 
581
LIB@&t@OBJS=
 
582
cross_compiling=no
 
583
subdirs=
 
584
MFLAGS=
 
585
MAKEFLAGS=
 
586
 
 
587
# Identity of this package.
 
588
PACKAGE_NAME='libdvdread'
 
589
PACKAGE_TARNAME='libdvdread'
 
590
PACKAGE_VERSION='4.2.0'
 
591
PACKAGE_STRING='libdvdread 4.2.0'
 
592
PACKAGE_BUGREPORT=''
 
593
PACKAGE_URL=''
 
594
 
 
595
ac_unique_file="src/dvdread/dvd_reader.h"
 
596
# Factoring default headers for most tests.
 
597
ac_includes_default="\
 
598
#include <stdio.h>
 
599
#ifdef HAVE_SYS_TYPES_H
 
600
# include <sys/types.h>
 
601
#endif
 
602
#ifdef HAVE_SYS_STAT_H
 
603
# include <sys/stat.h>
 
604
#endif
 
605
#ifdef STDC_HEADERS
 
606
# include <stdlib.h>
 
607
# include <stddef.h>
 
608
#else
 
609
# ifdef HAVE_STDLIB_H
 
610
#  include <stdlib.h>
 
611
# endif
 
612
#endif
 
613
#ifdef HAVE_STRING_H
 
614
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
615
#  include <memory.h>
 
616
# endif
 
617
# include <string.h>
 
618
#endif
 
619
#ifdef HAVE_STRINGS_H
 
620
# include <strings.h>
 
621
#endif
 
622
#ifdef HAVE_INTTYPES_H
 
623
# include <inttypes.h>
 
624
#endif
 
625
#ifdef HAVE_STDINT_H
 
626
# include <stdint.h>
 
627
#endif
 
628
#ifdef HAVE_UNISTD_H
 
629
# include <unistd.h>
 
630
#endif"
 
631
 
 
632
ac_subst_vars='am__EXEEXT_FALSE
 
633
am__EXEEXT_TRUE
 
634
LTLIBOBJS
 
635
LIB@&t@OBJS
 
636
INCLUDES
 
637
DOXYGEN
 
638
DEBUG_CFLAGS
 
639
CSS_LIBS
 
640
DYNAMIC_LD_LIBS
 
641
STATIC
 
642
LIBTOOL_DEPS
 
643
CPP
 
644
OTOOL64
 
645
OTOOL
 
646
LIPO
 
647
NMEDIT
 
648
DSYMUTIL
 
649
MANIFEST_TOOL
 
650
RANLIB
 
651
ac_ct_AR
 
652
AR
 
653
DLLTOOL
 
654
OBJDUMP
 
655
NM
 
656
ac_ct_DUMPBIN
 
657
DUMPBIN
 
658
LD
 
659
FGREP
 
660
EGREP
 
661
GREP
 
662
SED
 
663
LIBTOOL
 
664
LN_S
 
665
am__fastdepCC_FALSE
 
666
am__fastdepCC_TRUE
 
667
CCDEPMODE
 
668
am__nodep
 
669
AMDEPBACKSLASH
 
670
AMDEP_FALSE
 
671
AMDEP_TRUE
 
672
am__quote
 
673
am__include
 
674
DEPDIR
 
675
OBJEXT
 
676
EXEEXT
 
677
ac_ct_CC
 
678
CPPFLAGS
 
679
LDFLAGS
 
680
CFLAGS
 
681
CC
 
682
DVDREAD_LT_REVISION
 
683
DVDREAD_LT_AGE
 
684
DVDREAD_LT_CURRENT
 
685
DVDREAD_SUB
 
686
DVDREAD_MINOR
 
687
DVDREAD_MAJOR
 
688
host_os
 
689
host_vendor
 
690
host_cpu
 
691
host
 
692
build_os
 
693
build_vendor
 
694
build_cpu
 
695
build
 
696
am__untar
 
697
am__tar
 
698
AMTAR
 
699
am__leading_dot
 
700
SET_MAKE
 
701
AWK
 
702
mkdir_p
 
703
MKDIR_P
 
704
INSTALL_STRIP_PROGRAM
 
705
STRIP
 
706
install_sh
 
707
MAKEINFO
 
708
AUTOHEADER
 
709
AUTOMAKE
 
710
AUTOCONF
 
711
ACLOCAL
 
712
VERSION
 
713
PACKAGE
 
714
CYGPATH_W
 
715
am__isrc
 
716
INSTALL_DATA
 
717
INSTALL_SCRIPT
 
718
INSTALL_PROGRAM
 
719
target_alias
 
720
host_alias
 
721
build_alias
 
722
LIBS
 
723
ECHO_T
 
724
ECHO_N
 
725
ECHO_C
 
726
DEFS
 
727
mandir
 
728
localedir
 
729
libdir
 
730
psdir
 
731
pdfdir
 
732
dvidir
 
733
htmldir
 
734
infodir
 
735
docdir
 
736
oldincludedir
 
737
includedir
 
738
localstatedir
 
739
sharedstatedir
 
740
sysconfdir
 
741
datadir
 
742
datarootdir
 
743
libexecdir
 
744
sbindir
 
745
bindir
 
746
program_transform_name
 
747
prefix
 
748
exec_prefix
 
749
PACKAGE_URL
 
750
PACKAGE_BUGREPORT
 
751
PACKAGE_STRING
 
752
PACKAGE_VERSION
 
753
PACKAGE_TARNAME
 
754
PACKAGE_NAME
 
755
PATH_SEPARATOR
 
756
SHELL'
 
757
ac_subst_files=''
 
758
ac_user_opts='
 
759
enable_option_checking
 
760
enable_dependency_tracking
 
761
enable_static
 
762
enable_shared
 
763
with_pic
 
764
enable_fast_install
 
765
with_gnu_ld
 
766
with_sysroot
 
767
enable_libtool_lock
 
768
enable_libdvdcss
 
769
enable_dlfcn
 
770
'
 
771
      ac_precious_vars='build_alias
 
772
host_alias
 
773
target_alias
 
774
CC
 
775
CFLAGS
 
776
LDFLAGS
 
777
LIBS
 
778
CPPFLAGS
 
779
CPP'
 
780
 
 
781
 
 
782
# Initialize some variables set by options.
 
783
ac_init_help=
 
784
ac_init_version=false
 
785
ac_unrecognized_opts=
 
786
ac_unrecognized_sep=
 
787
# The variables have the same names as the options, with
 
788
# dashes changed to underlines.
 
789
cache_file=/dev/null
 
790
exec_prefix=NONE
 
791
no_create=
 
792
no_recursion=
 
793
prefix=NONE
 
794
program_prefix=NONE
 
795
program_suffix=NONE
 
796
program_transform_name=s,x,x,
 
797
silent=
 
798
site=
 
799
srcdir=
 
800
verbose=
 
801
x_includes=NONE
 
802
x_libraries=NONE
 
803
 
 
804
# Installation directory options.
 
805
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
806
# and all the variables that are supposed to be based on exec_prefix
 
807
# by default will actually change.
 
808
# Use braces instead of parens because sh, perl, etc. also accept them.
 
809
# (The list follows the same order as the GNU Coding Standards.)
 
810
bindir='${exec_prefix}/bin'
 
811
sbindir='${exec_prefix}/sbin'
 
812
libexecdir='${exec_prefix}/libexec'
 
813
datarootdir='${prefix}/share'
 
814
datadir='${datarootdir}'
 
815
sysconfdir='${prefix}/etc'
 
816
sharedstatedir='${prefix}/com'
 
817
localstatedir='${prefix}/var'
 
818
includedir='${prefix}/include'
 
819
oldincludedir='/usr/include'
 
820
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
821
infodir='${datarootdir}/info'
 
822
htmldir='${docdir}'
 
823
dvidir='${docdir}'
 
824
pdfdir='${docdir}'
 
825
psdir='${docdir}'
 
826
libdir='${exec_prefix}/lib'
 
827
localedir='${datarootdir}/locale'
 
828
mandir='${datarootdir}/man'
 
829
 
 
830
ac_prev=
 
831
ac_dashdash=
 
832
for ac_option
 
833
do
 
834
  # If the previous option needs an argument, assign it.
 
835
  if test -n "$ac_prev"; then
 
836
    eval $ac_prev=\$ac_option
 
837
    ac_prev=
 
838
    continue
 
839
  fi
 
840
 
 
841
  case $ac_option in
 
842
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
843
  *=)   ac_optarg= ;;
 
844
  *)    ac_optarg=yes ;;
 
845
  esac
 
846
 
 
847
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
848
 
 
849
  case $ac_dashdash$ac_option in
 
850
  --)
 
851
    ac_dashdash=yes ;;
 
852
 
 
853
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
854
    ac_prev=bindir ;;
 
855
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
856
    bindir=$ac_optarg ;;
 
857
 
 
858
  -build | --build | --buil | --bui | --bu)
 
859
    ac_prev=build_alias ;;
 
860
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
861
    build_alias=$ac_optarg ;;
 
862
 
 
863
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
864
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
865
    ac_prev=cache_file ;;
 
866
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
867
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
868
    cache_file=$ac_optarg ;;
 
869
 
 
870
  --config-cache | -C)
 
871
    cache_file=config.cache ;;
 
872
 
 
873
  -datadir | --datadir | --datadi | --datad)
 
874
    ac_prev=datadir ;;
 
875
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
876
    datadir=$ac_optarg ;;
 
877
 
 
878
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
879
  | --dataroo | --dataro | --datar)
 
880
    ac_prev=datarootdir ;;
 
881
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
882
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
883
    datarootdir=$ac_optarg ;;
 
884
 
 
885
  -disable-* | --disable-*)
 
886
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
887
    # Reject names that are not valid shell variable names.
 
888
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
889
      as_fn_error $? "invalid feature name: $ac_useropt"
 
890
    ac_useropt_orig=$ac_useropt
 
891
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
892
    case $ac_user_opts in
 
893
      *"
 
894
"enable_$ac_useropt"
 
895
"*) ;;
 
896
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
897
         ac_unrecognized_sep=', ';;
 
898
    esac
 
899
    eval enable_$ac_useropt=no ;;
 
900
 
 
901
  -docdir | --docdir | --docdi | --doc | --do)
 
902
    ac_prev=docdir ;;
 
903
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
904
    docdir=$ac_optarg ;;
 
905
 
 
906
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
907
    ac_prev=dvidir ;;
 
908
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
909
    dvidir=$ac_optarg ;;
 
910
 
 
911
  -enable-* | --enable-*)
 
912
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
913
    # Reject names that are not valid shell variable names.
 
914
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
915
      as_fn_error $? "invalid feature name: $ac_useropt"
 
916
    ac_useropt_orig=$ac_useropt
 
917
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
918
    case $ac_user_opts in
 
919
      *"
 
920
"enable_$ac_useropt"
 
921
"*) ;;
 
922
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
923
         ac_unrecognized_sep=', ';;
 
924
    esac
 
925
    eval enable_$ac_useropt=\$ac_optarg ;;
 
926
 
 
927
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
928
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
929
  | --exec | --exe | --ex)
 
930
    ac_prev=exec_prefix ;;
 
931
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
932
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
933
  | --exec=* | --exe=* | --ex=*)
 
934
    exec_prefix=$ac_optarg ;;
 
935
 
 
936
  -gas | --gas | --ga | --g)
 
937
    # Obsolete; use --with-gas.
 
938
    with_gas=yes ;;
 
939
 
 
940
  -help | --help | --hel | --he | -h)
 
941
    ac_init_help=long ;;
 
942
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
943
    ac_init_help=recursive ;;
 
944
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
945
    ac_init_help=short ;;
 
946
 
 
947
  -host | --host | --hos | --ho)
 
948
    ac_prev=host_alias ;;
 
949
  -host=* | --host=* | --hos=* | --ho=*)
 
950
    host_alias=$ac_optarg ;;
 
951
 
 
952
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
953
    ac_prev=htmldir ;;
 
954
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
955
  | --ht=*)
 
956
    htmldir=$ac_optarg ;;
 
957
 
 
958
  -includedir | --includedir | --includedi | --included | --include \
 
959
  | --includ | --inclu | --incl | --inc)
 
960
    ac_prev=includedir ;;
 
961
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
962
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
963
    includedir=$ac_optarg ;;
 
964
 
 
965
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
966
    ac_prev=infodir ;;
 
967
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
968
    infodir=$ac_optarg ;;
 
969
 
 
970
  -libdir | --libdir | --libdi | --libd)
 
971
    ac_prev=libdir ;;
 
972
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
973
    libdir=$ac_optarg ;;
 
974
 
 
975
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
976
  | --libexe | --libex | --libe)
 
977
    ac_prev=libexecdir ;;
 
978
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
979
  | --libexe=* | --libex=* | --libe=*)
 
980
    libexecdir=$ac_optarg ;;
 
981
 
 
982
  -localedir | --localedir | --localedi | --localed | --locale)
 
983
    ac_prev=localedir ;;
 
984
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
985
    localedir=$ac_optarg ;;
 
986
 
 
987
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
988
  | --localstate | --localstat | --localsta | --localst | --locals)
 
989
    ac_prev=localstatedir ;;
 
990
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
991
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
992
    localstatedir=$ac_optarg ;;
 
993
 
 
994
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
995
    ac_prev=mandir ;;
 
996
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
997
    mandir=$ac_optarg ;;
 
998
 
 
999
  -nfp | --nfp | --nf)
 
1000
    # Obsolete; use --without-fp.
 
1001
    with_fp=no ;;
 
1002
 
 
1003
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1004
  | --no-cr | --no-c | -n)
 
1005
    no_create=yes ;;
 
1006
 
 
1007
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1008
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1009
    no_recursion=yes ;;
 
1010
 
 
1011
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1012
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1013
  | --oldin | --oldi | --old | --ol | --o)
 
1014
    ac_prev=oldincludedir ;;
 
1015
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1016
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1017
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1018
    oldincludedir=$ac_optarg ;;
 
1019
 
 
1020
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1021
    ac_prev=prefix ;;
 
1022
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1023
    prefix=$ac_optarg ;;
 
1024
 
 
1025
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1026
  | --program-pre | --program-pr | --program-p)
 
1027
    ac_prev=program_prefix ;;
 
1028
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1029
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1030
    program_prefix=$ac_optarg ;;
 
1031
 
 
1032
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1033
  | --program-suf | --program-su | --program-s)
 
1034
    ac_prev=program_suffix ;;
 
1035
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1036
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1037
    program_suffix=$ac_optarg ;;
 
1038
 
 
1039
  -program-transform-name | --program-transform-name \
 
1040
  | --program-transform-nam | --program-transform-na \
 
1041
  | --program-transform-n | --program-transform- \
 
1042
  | --program-transform | --program-transfor \
 
1043
  | --program-transfo | --program-transf \
 
1044
  | --program-trans | --program-tran \
 
1045
  | --progr-tra | --program-tr | --program-t)
 
1046
    ac_prev=program_transform_name ;;
 
1047
  -program-transform-name=* | --program-transform-name=* \
 
1048
  | --program-transform-nam=* | --program-transform-na=* \
 
1049
  | --program-transform-n=* | --program-transform-=* \
 
1050
  | --program-transform=* | --program-transfor=* \
 
1051
  | --program-transfo=* | --program-transf=* \
 
1052
  | --program-trans=* | --program-tran=* \
 
1053
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1054
    program_transform_name=$ac_optarg ;;
 
1055
 
 
1056
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1057
    ac_prev=pdfdir ;;
 
1058
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1059
    pdfdir=$ac_optarg ;;
 
1060
 
 
1061
  -psdir | --psdir | --psdi | --psd | --ps)
 
1062
    ac_prev=psdir ;;
 
1063
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1064
    psdir=$ac_optarg ;;
 
1065
 
 
1066
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1067
  | -silent | --silent | --silen | --sile | --sil)
 
1068
    silent=yes ;;
 
1069
 
 
1070
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1071
    ac_prev=sbindir ;;
 
1072
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1073
  | --sbi=* | --sb=*)
 
1074
    sbindir=$ac_optarg ;;
 
1075
 
 
1076
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1077
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1078
  | --sharedst | --shareds | --shared | --share | --shar \
 
1079
  | --sha | --sh)
 
1080
    ac_prev=sharedstatedir ;;
 
1081
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1082
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1083
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1084
  | --sha=* | --sh=*)
 
1085
    sharedstatedir=$ac_optarg ;;
 
1086
 
 
1087
  -site | --site | --sit)
 
1088
    ac_prev=site ;;
 
1089
  -site=* | --site=* | --sit=*)
 
1090
    site=$ac_optarg ;;
 
1091
 
 
1092
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1093
    ac_prev=srcdir ;;
 
1094
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1095
    srcdir=$ac_optarg ;;
 
1096
 
 
1097
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1098
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1099
    ac_prev=sysconfdir ;;
 
1100
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1101
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1102
    sysconfdir=$ac_optarg ;;
 
1103
 
 
1104
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1105
    ac_prev=target_alias ;;
 
1106
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1107
    target_alias=$ac_optarg ;;
 
1108
 
 
1109
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1110
    verbose=yes ;;
 
1111
 
 
1112
  -version | --version | --versio | --versi | --vers | -V)
 
1113
    ac_init_version=: ;;
 
1114
 
 
1115
  -with-* | --with-*)
 
1116
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1117
    # Reject names that are not valid shell variable names.
 
1118
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1119
      as_fn_error $? "invalid package name: $ac_useropt"
 
1120
    ac_useropt_orig=$ac_useropt
 
1121
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1122
    case $ac_user_opts in
 
1123
      *"
 
1124
"with_$ac_useropt"
 
1125
"*) ;;
 
1126
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1127
         ac_unrecognized_sep=', ';;
 
1128
    esac
 
1129
    eval with_$ac_useropt=\$ac_optarg ;;
 
1130
 
 
1131
  -without-* | --without-*)
 
1132
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1133
    # Reject names that are not valid shell variable names.
 
1134
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1135
      as_fn_error $? "invalid package name: $ac_useropt"
 
1136
    ac_useropt_orig=$ac_useropt
 
1137
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1138
    case $ac_user_opts in
 
1139
      *"
 
1140
"with_$ac_useropt"
 
1141
"*) ;;
 
1142
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1143
         ac_unrecognized_sep=', ';;
 
1144
    esac
 
1145
    eval with_$ac_useropt=no ;;
 
1146
 
 
1147
  --x)
 
1148
    # Obsolete; use --with-x.
 
1149
    with_x=yes ;;
 
1150
 
 
1151
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1152
  | --x-incl | --x-inc | --x-in | --x-i)
 
1153
    ac_prev=x_includes ;;
 
1154
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1155
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1156
    x_includes=$ac_optarg ;;
 
1157
 
 
1158
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1159
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1160
    ac_prev=x_libraries ;;
 
1161
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1162
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1163
    x_libraries=$ac_optarg ;;
 
1164
 
 
1165
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1166
Try \`$0 --help' for more information"
 
1167
    ;;
 
1168
 
 
1169
  *=*)
 
1170
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1171
    # Reject names that are not valid shell variable names.
 
1172
    case $ac_envvar in #(
 
1173
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1174
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1175
    esac
 
1176
    eval $ac_envvar=\$ac_optarg
 
1177
    export $ac_envvar ;;
 
1178
 
 
1179
  *)
 
1180
    # FIXME: should be removed in autoconf 3.0.
 
1181
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1182
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1183
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1184
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1185
    ;;
 
1186
 
 
1187
  esac
 
1188
done
 
1189
 
 
1190
if test -n "$ac_prev"; then
 
1191
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1192
  as_fn_error $? "missing argument to $ac_option"
 
1193
fi
 
1194
 
 
1195
if test -n "$ac_unrecognized_opts"; then
 
1196
  case $enable_option_checking in
 
1197
    no) ;;
 
1198
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1199
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1200
  esac
 
1201
fi
 
1202
 
 
1203
# Check all directory arguments for consistency.
 
1204
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1205
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1206
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1207
                libdir localedir mandir
 
1208
do
 
1209
  eval ac_val=\$$ac_var
 
1210
  # Remove trailing slashes.
 
1211
  case $ac_val in
 
1212
    */ )
 
1213
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1214
      eval $ac_var=\$ac_val;;
 
1215
  esac
 
1216
  # Be sure to have absolute directory names.
 
1217
  case $ac_val in
 
1218
    [\\/$]* | ?:[\\/]* )  continue;;
 
1219
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1220
  esac
 
1221
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1222
done
 
1223
 
 
1224
# There might be people who depend on the old broken behavior: `$host'
 
1225
# used to hold the argument of --host etc.
 
1226
# FIXME: To remove some day.
 
1227
build=$build_alias
 
1228
host=$host_alias
 
1229
target=$target_alias
 
1230
 
 
1231
# FIXME: To remove some day.
 
1232
if test "x$host_alias" != x; then
 
1233
  if test "x$build_alias" = x; then
 
1234
    cross_compiling=maybe
 
1235
  elif test "x$build_alias" != "x$host_alias"; then
 
1236
    cross_compiling=yes
 
1237
  fi
 
1238
fi
 
1239
 
 
1240
ac_tool_prefix=
 
1241
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1242
 
 
1243
test "$silent" = yes && exec 6>/dev/null
 
1244
 
 
1245
 
 
1246
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1247
ac_ls_di=`ls -di .` &&
 
1248
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1249
  as_fn_error $? "working directory cannot be determined"
 
1250
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1251
  as_fn_error $? "pwd does not report name of working directory"
 
1252
 
 
1253
 
 
1254
# Find the source files, if location was not specified.
 
1255
if test -z "$srcdir"; then
 
1256
  ac_srcdir_defaulted=yes
 
1257
  # Try the directory containing this script, then the parent directory.
 
1258
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1259
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1260
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1261
         X"$as_myself" : 'X\(//\)$' \| \
 
1262
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1263
$as_echo X"$as_myself" |
 
1264
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1265
            s//\1/
 
1266
            q
 
1267
          }
 
1268
          /^X\(\/\/\)[^/].*/{
 
1269
            s//\1/
 
1270
            q
 
1271
          }
 
1272
          /^X\(\/\/\)$/{
 
1273
            s//\1/
 
1274
            q
 
1275
          }
 
1276
          /^X\(\/\).*/{
 
1277
            s//\1/
 
1278
            q
 
1279
          }
 
1280
          s/.*/./; q'`
 
1281
  srcdir=$ac_confdir
 
1282
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1283
    srcdir=..
 
1284
  fi
 
1285
else
 
1286
  ac_srcdir_defaulted=no
 
1287
fi
 
1288
if test ! -r "$srcdir/$ac_unique_file"; then
 
1289
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1290
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1291
fi
 
1292
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1293
ac_abs_confdir=`(
 
1294
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1295
        pwd)`
 
1296
# When building in place, set srcdir=.
 
1297
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1298
  srcdir=.
 
1299
fi
 
1300
# Remove unnecessary trailing slashes from srcdir.
 
1301
# Double slashes in file names in object file debugging info
 
1302
# mess up M-x gdb in Emacs.
 
1303
case $srcdir in
 
1304
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1305
esac
 
1306
for ac_var in $ac_precious_vars; do
 
1307
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1308
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1309
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1310
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1311
done
 
1312
 
 
1313
#
 
1314
# Report the --help message.
 
1315
#
 
1316
if test "$ac_init_help" = "long"; then
 
1317
  # Omit some internal or obsolete options to make the list less imposing.
 
1318
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1319
  cat <<_ACEOF
 
1320
\`configure' configures libdvdread 4.2.0 to adapt to many kinds of systems.
 
1321
 
 
1322
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1323
 
 
1324
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1325
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1326
 
 
1327
Defaults for the options are specified in brackets.
 
1328
 
 
1329
Configuration:
 
1330
  -h, --help              display this help and exit
 
1331
      --help=short        display options specific to this package
 
1332
      --help=recursive    display the short help of all the included packages
 
1333
  -V, --version           display version information and exit
 
1334
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1335
      --cache-file=FILE   cache test results in FILE [disabled]
 
1336
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1337
  -n, --no-create         do not create output files
 
1338
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1339
 
 
1340
Installation directories:
 
1341
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1342
                          @<:@@S|@ac_default_prefix@:>@
 
1343
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1344
                          @<:@PREFIX@:>@
 
1345
 
 
1346
By default, \`make install' will install all the files in
 
1347
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1348
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1349
for instance \`--prefix=\$HOME'.
 
1350
 
 
1351
For better control, use the options below.
 
1352
 
 
1353
Fine tuning of the installation directories:
 
1354
  --bindir=DIR            user executables [EPREFIX/bin]
 
1355
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1356
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1357
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1358
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1359
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1360
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1361
  --includedir=DIR        C header files [PREFIX/include]
 
1362
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1363
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1364
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1365
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1366
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1367
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1368
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libdvdread@:>@
 
1369
  --htmldir=DIR           html documentation [DOCDIR]
 
1370
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1371
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1372
  --psdir=DIR             ps documentation [DOCDIR]
 
1373
_ACEOF
 
1374
 
 
1375
  cat <<\_ACEOF
 
1376
 
 
1377
Program names:
 
1378
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1379
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1380
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1381
 
 
1382
System types:
 
1383
  --build=BUILD     configure for building on BUILD [guessed]
 
1384
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1385
_ACEOF
 
1386
fi
 
1387
 
 
1388
if test -n "$ac_init_help"; then
 
1389
  case $ac_init_help in
 
1390
     short | recursive ) echo "Configuration of libdvdread 4.2.0:";;
 
1391
   esac
 
1392
  cat <<\_ACEOF
 
1393
 
 
1394
Optional Features:
 
1395
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1396
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1397
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1398
  --disable-dependency-tracking  speeds up one-time build
 
1399
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1400
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
 
1401
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1402
  --enable-fast-install@<:@=PKGS@:>@ 
 
1403
                          optimize for fast installation @<:@default=yes@:>@
 
1404
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1405
  --enable-libdvdcss    force linking against libdvdcss
 
1406
  --enable-dlfcn          use builtin dlfcn for mingw (default is auto)
 
1407
 
 
1408
Optional Packages:
 
1409
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1410
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1411
  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
 
1412
                          both@:>@
 
1413
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1414
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1415
                        (or the compiler's sysroot if not specified).
 
1416
 
 
1417
Some influential environment variables:
 
1418
  CC          C compiler command
 
1419
  CFLAGS      C compiler flags
 
1420
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1421
              nonstandard directory <lib dir>
 
1422
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1423
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1424
              you have headers in a nonstandard directory <include dir>
 
1425
  CPP         C preprocessor
 
1426
 
 
1427
Use these variables to override the choices made by `configure' or to help
 
1428
it to find libraries and programs with nonstandard names/locations.
 
1429
 
 
1430
Report bugs to the package provider.
 
1431
_ACEOF
 
1432
ac_status=$?
 
1433
fi
 
1434
 
 
1435
if test "$ac_init_help" = "recursive"; then
 
1436
  # If there are subdirs, report their specific --help.
 
1437
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1438
    test -d "$ac_dir" ||
 
1439
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1440
      continue
 
1441
    ac_builddir=.
 
1442
 
 
1443
case "$ac_dir" in
 
1444
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1445
*)
 
1446
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1447
  # A ".." for each directory in $ac_dir_suffix.
 
1448
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1449
  case $ac_top_builddir_sub in
 
1450
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1451
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1452
  esac ;;
 
1453
esac
 
1454
ac_abs_top_builddir=$ac_pwd
 
1455
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1456
# for backward compatibility:
 
1457
ac_top_builddir=$ac_top_build_prefix
 
1458
 
 
1459
case $srcdir in
 
1460
  .)  # We are building in place.
 
1461
    ac_srcdir=.
 
1462
    ac_top_srcdir=$ac_top_builddir_sub
 
1463
    ac_abs_top_srcdir=$ac_pwd ;;
 
1464
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1465
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1466
    ac_top_srcdir=$srcdir
 
1467
    ac_abs_top_srcdir=$srcdir ;;
 
1468
  *) # Relative name.
 
1469
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1470
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1471
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1472
esac
 
1473
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1474
 
 
1475
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1476
    # Check for guested configure.
 
1477
    if test -f "$ac_srcdir/configure.gnu"; then
 
1478
      echo &&
 
1479
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1480
    elif test -f "$ac_srcdir/configure"; then
 
1481
      echo &&
 
1482
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1483
    else
 
1484
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1485
    fi || ac_status=$?
 
1486
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1487
  done
 
1488
fi
 
1489
 
 
1490
test -n "$ac_init_help" && exit $ac_status
 
1491
if $ac_init_version; then
 
1492
  cat <<\_ACEOF
 
1493
libdvdread configure 4.2.0
 
1494
generated by GNU Autoconf 2.69
 
1495
 
 
1496
Copyright (C) 2012 Free Software Foundation, Inc.
 
1497
This configure script is free software; the Free Software Foundation
 
1498
gives unlimited permission to copy, distribute and modify it.
 
1499
_ACEOF
 
1500
  exit
 
1501
fi
 
1502
 
 
1503
## ------------------------ ##
 
1504
## Autoconf initialization. ##
 
1505
## ------------------------ ##
 
1506
 
 
1507
@%:@ ac_fn_c_try_compile LINENO
 
1508
@%:@ --------------------------
 
1509
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
 
1510
ac_fn_c_try_compile ()
 
1511
{
 
1512
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1513
  rm -f conftest.$ac_objext
 
1514
  if { { ac_try="$ac_compile"
 
1515
case "(($ac_try" in
 
1516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1517
  *) ac_try_echo=$ac_try;;
 
1518
esac
 
1519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1520
$as_echo "$ac_try_echo"; } >&5
 
1521
  (eval "$ac_compile") 2>conftest.err
 
1522
  ac_status=$?
 
1523
  if test -s conftest.err; then
 
1524
    grep -v '^ *+' conftest.err >conftest.er1
 
1525
    cat conftest.er1 >&5
 
1526
    mv -f conftest.er1 conftest.err
 
1527
  fi
 
1528
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1529
  test $ac_status = 0; } && {
 
1530
         test -z "$ac_c_werror_flag" ||
 
1531
         test ! -s conftest.err
 
1532
       } && test -s conftest.$ac_objext; then :
 
1533
  ac_retval=0
 
1534
else
 
1535
  $as_echo "$as_me: failed program was:" >&5
 
1536
sed 's/^/| /' conftest.$ac_ext >&5
 
1537
 
 
1538
        ac_retval=1
 
1539
fi
 
1540
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1541
  as_fn_set_status $ac_retval
 
1542
 
 
1543
} @%:@ ac_fn_c_try_compile
 
1544
 
 
1545
@%:@ ac_fn_c_try_link LINENO
 
1546
@%:@ -----------------------
 
1547
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
 
1548
ac_fn_c_try_link ()
 
1549
{
 
1550
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1551
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1552
  if { { ac_try="$ac_link"
 
1553
case "(($ac_try" in
 
1554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1555
  *) ac_try_echo=$ac_try;;
 
1556
esac
 
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1558
$as_echo "$ac_try_echo"; } >&5
 
1559
  (eval "$ac_link") 2>conftest.err
 
1560
  ac_status=$?
 
1561
  if test -s conftest.err; then
 
1562
    grep -v '^ *+' conftest.err >conftest.er1
 
1563
    cat conftest.er1 >&5
 
1564
    mv -f conftest.er1 conftest.err
 
1565
  fi
 
1566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1567
  test $ac_status = 0; } && {
 
1568
         test -z "$ac_c_werror_flag" ||
 
1569
         test ! -s conftest.err
 
1570
       } && test -s conftest$ac_exeext && {
 
1571
         test "$cross_compiling" = yes ||
 
1572
         test -x conftest$ac_exeext
 
1573
       }; then :
 
1574
  ac_retval=0
 
1575
else
 
1576
  $as_echo "$as_me: failed program was:" >&5
 
1577
sed 's/^/| /' conftest.$ac_ext >&5
 
1578
 
 
1579
        ac_retval=1
 
1580
fi
 
1581
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1582
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1583
  # interfere with the next link command; also delete a directory that is
 
1584
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1585
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1586
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1587
  as_fn_set_status $ac_retval
 
1588
 
 
1589
} @%:@ ac_fn_c_try_link
 
1590
 
 
1591
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1592
@%:@ -------------------------------------------------------
 
1593
@%:@ Tests whether HEADER exists and can be compiled using the include files in
 
1594
@%:@ INCLUDES, setting the cache variable VAR accordingly.
 
1595
ac_fn_c_check_header_compile ()
 
1596
{
 
1597
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1598
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1599
$as_echo_n "checking for $2... " >&6; }
 
1600
if eval \${$3+:} false; then :
 
1601
  $as_echo_n "(cached) " >&6
 
1602
else
 
1603
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1604
/* end confdefs.h.  */
 
1605
$4
 
1606
@%:@include <$2>
 
1607
_ACEOF
 
1608
if ac_fn_c_try_compile "$LINENO"; then :
 
1609
  eval "$3=yes"
 
1610
else
 
1611
  eval "$3=no"
 
1612
fi
 
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1614
fi
 
1615
eval ac_res=\$$3
 
1616
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1617
$as_echo "$ac_res" >&6; }
 
1618
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1619
 
 
1620
} @%:@ ac_fn_c_check_header_compile
 
1621
 
 
1622
@%:@ ac_fn_c_try_cpp LINENO
 
1623
@%:@ ----------------------
 
1624
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
 
1625
ac_fn_c_try_cpp ()
 
1626
{
 
1627
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1628
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1629
case "(($ac_try" in
 
1630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1631
  *) ac_try_echo=$ac_try;;
 
1632
esac
 
1633
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1634
$as_echo "$ac_try_echo"; } >&5
 
1635
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1636
  ac_status=$?
 
1637
  if test -s conftest.err; then
 
1638
    grep -v '^ *+' conftest.err >conftest.er1
 
1639
    cat conftest.er1 >&5
 
1640
    mv -f conftest.er1 conftest.err
 
1641
  fi
 
1642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1643
  test $ac_status = 0; } > conftest.i && {
 
1644
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1645
         test ! -s conftest.err
 
1646
       }; then :
 
1647
  ac_retval=0
 
1648
else
 
1649
  $as_echo "$as_me: failed program was:" >&5
 
1650
sed 's/^/| /' conftest.$ac_ext >&5
 
1651
 
 
1652
    ac_retval=1
 
1653
fi
 
1654
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1655
  as_fn_set_status $ac_retval
 
1656
 
 
1657
} @%:@ ac_fn_c_try_cpp
 
1658
 
 
1659
@%:@ ac_fn_c_try_run LINENO
 
1660
@%:@ ----------------------
 
1661
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
 
1662
@%:@ that executables *can* be run.
 
1663
ac_fn_c_try_run ()
 
1664
{
 
1665
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1666
  if { { ac_try="$ac_link"
 
1667
case "(($ac_try" in
 
1668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1669
  *) ac_try_echo=$ac_try;;
 
1670
esac
 
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1672
$as_echo "$ac_try_echo"; } >&5
 
1673
  (eval "$ac_link") 2>&5
 
1674
  ac_status=$?
 
1675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1676
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1677
  { { case "(($ac_try" in
 
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1679
  *) ac_try_echo=$ac_try;;
 
1680
esac
 
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1682
$as_echo "$ac_try_echo"; } >&5
 
1683
  (eval "$ac_try") 2>&5
 
1684
  ac_status=$?
 
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1686
  test $ac_status = 0; }; }; then :
 
1687
  ac_retval=0
 
1688
else
 
1689
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1690
       $as_echo "$as_me: failed program was:" >&5
 
1691
sed 's/^/| /' conftest.$ac_ext >&5
 
1692
 
 
1693
       ac_retval=$ac_status
 
1694
fi
 
1695
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1696
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1697
  as_fn_set_status $ac_retval
 
1698
 
 
1699
} @%:@ ac_fn_c_try_run
 
1700
 
 
1701
@%:@ ac_fn_c_check_func LINENO FUNC VAR
 
1702
@%:@ ----------------------------------
 
1703
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1704
ac_fn_c_check_func ()
 
1705
{
 
1706
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1708
$as_echo_n "checking for $2... " >&6; }
 
1709
if eval \${$3+:} false; then :
 
1710
  $as_echo_n "(cached) " >&6
 
1711
else
 
1712
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1713
/* end confdefs.h.  */
 
1714
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1715
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1716
#define $2 innocuous_$2
 
1717
 
 
1718
/* System header to define __stub macros and hopefully few prototypes,
 
1719
    which can conflict with char $2 (); below.
 
1720
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1721
    <limits.h> exists even on freestanding compilers.  */
 
1722
 
 
1723
#ifdef __STDC__
 
1724
# include <limits.h>
 
1725
#else
 
1726
# include <assert.h>
 
1727
#endif
 
1728
 
 
1729
#undef $2
 
1730
 
 
1731
/* Override any GCC internal prototype to avoid an error.
 
1732
   Use char because int might match the return type of a GCC
 
1733
   builtin and then its argument prototype would still apply.  */
 
1734
#ifdef __cplusplus
 
1735
extern "C"
 
1736
#endif
 
1737
char $2 ();
 
1738
/* The GNU C library defines this for functions which it implements
 
1739
    to always fail with ENOSYS.  Some functions are actually named
 
1740
    something starting with __ and the normal name is an alias.  */
 
1741
#if defined __stub_$2 || defined __stub___$2
 
1742
choke me
 
1743
#endif
 
1744
 
 
1745
int
 
1746
main ()
 
1747
{
 
1748
return $2 ();
 
1749
  ;
 
1750
  return 0;
 
1751
}
 
1752
_ACEOF
 
1753
if ac_fn_c_try_link "$LINENO"; then :
 
1754
  eval "$3=yes"
 
1755
else
 
1756
  eval "$3=no"
 
1757
fi
 
1758
rm -f core conftest.err conftest.$ac_objext \
 
1759
    conftest$ac_exeext conftest.$ac_ext
 
1760
fi
 
1761
eval ac_res=\$$3
 
1762
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1763
$as_echo "$ac_res" >&6; }
 
1764
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1765
 
 
1766
} @%:@ ac_fn_c_check_func
 
1767
 
 
1768
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1769
@%:@ -------------------------------------------------------
 
1770
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1771
@%:@ the include files in INCLUDES and setting the cache variable VAR
 
1772
@%:@ accordingly.
 
1773
ac_fn_c_check_header_mongrel ()
 
1774
{
 
1775
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1776
  if eval \${$3+:} false; then :
 
1777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1778
$as_echo_n "checking for $2... " >&6; }
 
1779
if eval \${$3+:} false; then :
 
1780
  $as_echo_n "(cached) " >&6
 
1781
fi
 
1782
eval ac_res=\$$3
 
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1784
$as_echo "$ac_res" >&6; }
 
1785
else
 
1786
  # Is the header compilable?
 
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1788
$as_echo_n "checking $2 usability... " >&6; }
 
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1790
/* end confdefs.h.  */
 
1791
$4
 
1792
@%:@include <$2>
 
1793
_ACEOF
 
1794
if ac_fn_c_try_compile "$LINENO"; then :
 
1795
  ac_header_compiler=yes
 
1796
else
 
1797
  ac_header_compiler=no
 
1798
fi
 
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1801
$as_echo "$ac_header_compiler" >&6; }
 
1802
 
 
1803
# Is the header present?
 
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1805
$as_echo_n "checking $2 presence... " >&6; }
 
1806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1807
/* end confdefs.h.  */
 
1808
@%:@include <$2>
 
1809
_ACEOF
 
1810
if ac_fn_c_try_cpp "$LINENO"; then :
 
1811
  ac_header_preproc=yes
 
1812
else
 
1813
  ac_header_preproc=no
 
1814
fi
 
1815
rm -f conftest.err conftest.i conftest.$ac_ext
 
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1817
$as_echo "$ac_header_preproc" >&6; }
 
1818
 
 
1819
# So?  What about this header?
 
1820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1821
  yes:no: )
 
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1823
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1825
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1826
    ;;
 
1827
  no:yes:* )
 
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1829
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1831
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1833
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1835
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1836
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1837
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1838
    ;;
 
1839
esac
 
1840
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1841
$as_echo_n "checking for $2... " >&6; }
 
1842
if eval \${$3+:} false; then :
 
1843
  $as_echo_n "(cached) " >&6
 
1844
else
 
1845
  eval "$3=\$ac_header_compiler"
 
1846
fi
 
1847
eval ac_res=\$$3
 
1848
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1849
$as_echo "$ac_res" >&6; }
 
1850
fi
 
1851
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1852
 
 
1853
} @%:@ ac_fn_c_check_header_mongrel
 
1854
 
 
1855
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1856
@%:@ -------------------------------------------
 
1857
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
 
1858
@%:@ variable VAR accordingly.
 
1859
ac_fn_c_check_type ()
 
1860
{
 
1861
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1862
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1863
$as_echo_n "checking for $2... " >&6; }
 
1864
if eval \${$3+:} false; then :
 
1865
  $as_echo_n "(cached) " >&6
 
1866
else
 
1867
  eval "$3=no"
 
1868
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1869
/* end confdefs.h.  */
 
1870
$4
 
1871
int
 
1872
main ()
 
1873
{
 
1874
if (sizeof ($2))
 
1875
         return 0;
 
1876
  ;
 
1877
  return 0;
 
1878
}
 
1879
_ACEOF
 
1880
if ac_fn_c_try_compile "$LINENO"; then :
 
1881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1882
/* end confdefs.h.  */
 
1883
$4
 
1884
int
 
1885
main ()
 
1886
{
 
1887
if (sizeof (($2)))
 
1888
            return 0;
 
1889
  ;
 
1890
  return 0;
 
1891
}
 
1892
_ACEOF
 
1893
if ac_fn_c_try_compile "$LINENO"; then :
 
1894
  
 
1895
else
 
1896
  eval "$3=yes"
 
1897
fi
 
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1899
fi
 
1900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1901
fi
 
1902
eval ac_res=\$$3
 
1903
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1904
$as_echo "$ac_res" >&6; }
 
1905
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1906
 
 
1907
} @%:@ ac_fn_c_check_type
 
1908
cat >config.log <<_ACEOF
 
1909
This file contains any messages produced by compilers while
 
1910
running configure, to aid debugging if configure makes a mistake.
 
1911
 
 
1912
It was created by libdvdread $as_me 4.2.0, which was
 
1913
generated by GNU Autoconf 2.69.  Invocation command line was
 
1914
 
 
1915
  $ $0 $@
 
1916
 
 
1917
_ACEOF
 
1918
exec 5>>config.log
 
1919
{
 
1920
cat <<_ASUNAME
 
1921
## --------- ##
 
1922
## Platform. ##
 
1923
## --------- ##
 
1924
 
 
1925
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1926
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1927
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1928
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1929
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1930
 
 
1931
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1932
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1933
 
 
1934
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1935
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1936
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1937
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1938
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1939
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1940
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1941
 
 
1942
_ASUNAME
 
1943
 
 
1944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1945
for as_dir in $PATH
 
1946
do
 
1947
  IFS=$as_save_IFS
 
1948
  test -z "$as_dir" && as_dir=.
 
1949
    $as_echo "PATH: $as_dir"
 
1950
  done
 
1951
IFS=$as_save_IFS
 
1952
 
 
1953
} >&5
 
1954
 
 
1955
cat >&5 <<_ACEOF
 
1956
 
 
1957
 
 
1958
## ----------- ##
 
1959
## Core tests. ##
 
1960
## ----------- ##
 
1961
 
 
1962
_ACEOF
 
1963
 
 
1964
 
 
1965
# Keep a trace of the command line.
 
1966
# Strip out --no-create and --no-recursion so they do not pile up.
 
1967
# Strip out --silent because we don't want to record it for future runs.
 
1968
# Also quote any args containing shell meta-characters.
 
1969
# Make two passes to allow for proper duplicate-argument suppression.
 
1970
ac_configure_args=
 
1971
ac_configure_args0=
 
1972
ac_configure_args1=
 
1973
ac_must_keep_next=false
 
1974
for ac_pass in 1 2
 
1975
do
 
1976
  for ac_arg
 
1977
  do
 
1978
    case $ac_arg in
 
1979
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1980
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1981
    | -silent | --silent | --silen | --sile | --sil)
 
1982
      continue ;;
 
1983
    *\'*)
 
1984
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1985
    esac
 
1986
    case $ac_pass in
 
1987
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1988
    2)
 
1989
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1990
      if test $ac_must_keep_next = true; then
 
1991
        ac_must_keep_next=false # Got value, back to normal.
 
1992
      else
 
1993
        case $ac_arg in
 
1994
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1995
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1996
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1997
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1998
            case "$ac_configure_args0 " in
 
1999
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2000
            esac
 
2001
            ;;
 
2002
          -* ) ac_must_keep_next=true ;;
 
2003
        esac
 
2004
      fi
 
2005
      as_fn_append ac_configure_args " '$ac_arg'"
 
2006
      ;;
 
2007
    esac
 
2008
  done
 
2009
done
 
2010
{ ac_configure_args0=; unset ac_configure_args0;}
 
2011
{ ac_configure_args1=; unset ac_configure_args1;}
 
2012
 
 
2013
# When interrupted or exit'd, cleanup temporary files, and complete
 
2014
# config.log.  We remove comments because anyway the quotes in there
 
2015
# would cause problems or look ugly.
 
2016
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2017
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2018
trap 'exit_status=$?
 
2019
  # Save into config.log some information that might help in debugging.
 
2020
  {
 
2021
    echo
 
2022
 
 
2023
    $as_echo "## ---------------- ##
 
2024
## Cache variables. ##
 
2025
## ---------------- ##"
 
2026
    echo
 
2027
    # The following way of writing the cache mishandles newlines in values,
 
2028
(
 
2029
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2030
    eval ac_val=\$$ac_var
 
2031
    case $ac_val in #(
 
2032
    *${as_nl}*)
 
2033
      case $ac_var in #(
 
2034
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2035
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2036
      esac
 
2037
      case $ac_var in #(
 
2038
      _ | IFS | as_nl) ;; #(
 
2039
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2040
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2041
      esac ;;
 
2042
    esac
 
2043
  done
 
2044
  (set) 2>&1 |
 
2045
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2046
    *${as_nl}ac_space=\ *)
 
2047
      sed -n \
 
2048
        "s/'\''/'\''\\\\'\'''\''/g;
 
2049
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2050
      ;; #(
 
2051
    *)
 
2052
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2053
      ;;
 
2054
    esac |
 
2055
    sort
 
2056
)
 
2057
    echo
 
2058
 
 
2059
    $as_echo "## ----------------- ##
 
2060
## Output variables. ##
 
2061
## ----------------- ##"
 
2062
    echo
 
2063
    for ac_var in $ac_subst_vars
 
2064
    do
 
2065
      eval ac_val=\$$ac_var
 
2066
      case $ac_val in
 
2067
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2068
      esac
 
2069
      $as_echo "$ac_var='\''$ac_val'\''"
 
2070
    done | sort
 
2071
    echo
 
2072
 
 
2073
    if test -n "$ac_subst_files"; then
 
2074
      $as_echo "## ------------------- ##
 
2075
## File substitutions. ##
 
2076
## ------------------- ##"
 
2077
      echo
 
2078
      for ac_var in $ac_subst_files
 
2079
      do
 
2080
        eval ac_val=\$$ac_var
 
2081
        case $ac_val in
 
2082
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2083
        esac
 
2084
        $as_echo "$ac_var='\''$ac_val'\''"
 
2085
      done | sort
 
2086
      echo
 
2087
    fi
 
2088
 
 
2089
    if test -s confdefs.h; then
 
2090
      $as_echo "## ----------- ##
 
2091
## confdefs.h. ##
 
2092
## ----------- ##"
 
2093
      echo
 
2094
      cat confdefs.h
 
2095
      echo
 
2096
    fi
 
2097
    test "$ac_signal" != 0 &&
 
2098
      $as_echo "$as_me: caught signal $ac_signal"
 
2099
    $as_echo "$as_me: exit $exit_status"
 
2100
  } >&5
 
2101
  rm -f core *.core core.conftest.* &&
 
2102
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2103
    exit $exit_status
 
2104
' 0
 
2105
for ac_signal in 1 2 13 15; do
 
2106
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2107
done
 
2108
ac_signal=0
 
2109
 
 
2110
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2111
rm -f -r conftest* confdefs.h
 
2112
 
 
2113
$as_echo "/* confdefs.h */" > confdefs.h
 
2114
 
 
2115
# Predefined preprocessor variables.
 
2116
 
 
2117
cat >>confdefs.h <<_ACEOF
 
2118
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
2119
_ACEOF
 
2120
 
 
2121
cat >>confdefs.h <<_ACEOF
 
2122
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2123
_ACEOF
 
2124
 
 
2125
cat >>confdefs.h <<_ACEOF
 
2126
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2127
_ACEOF
 
2128
 
 
2129
cat >>confdefs.h <<_ACEOF
 
2130
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
2131
_ACEOF
 
2132
 
 
2133
cat >>confdefs.h <<_ACEOF
 
2134
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2135
_ACEOF
 
2136
 
 
2137
cat >>confdefs.h <<_ACEOF
 
2138
@%:@define PACKAGE_URL "$PACKAGE_URL"
 
2139
_ACEOF
 
2140
 
 
2141
 
 
2142
# Let the site file select an alternate cache file if it wants to.
 
2143
# Prefer an explicitly selected file to automatically selected ones.
 
2144
ac_site_file1=NONE
 
2145
ac_site_file2=NONE
 
2146
if test -n "$CONFIG_SITE"; then
 
2147
  # We do not want a PATH search for config.site.
 
2148
  case $CONFIG_SITE in @%:@((
 
2149
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2150
    */*) ac_site_file1=$CONFIG_SITE;;
 
2151
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2152
  esac
 
2153
elif test "x$prefix" != xNONE; then
 
2154
  ac_site_file1=$prefix/share/config.site
 
2155
  ac_site_file2=$prefix/etc/config.site
 
2156
else
 
2157
  ac_site_file1=$ac_default_prefix/share/config.site
 
2158
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2159
fi
 
2160
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2161
do
 
2162
  test "x$ac_site_file" = xNONE && continue
 
2163
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2164
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2165
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2166
    sed 's/^/| /' "$ac_site_file" >&5
 
2167
    . "$ac_site_file" \
 
2168
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2170
as_fn_error $? "failed to load site script $ac_site_file
 
2171
See \`config.log' for more details" "$LINENO" 5; }
 
2172
  fi
 
2173
done
 
2174
 
 
2175
if test -r "$cache_file"; then
 
2176
  # Some versions of bash will fail to source /dev/null (special files
 
2177
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2178
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2179
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2180
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2181
    case $cache_file in
 
2182
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2183
      *)                      . "./$cache_file";;
 
2184
    esac
 
2185
  fi
 
2186
else
 
2187
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2188
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2189
  >$cache_file
 
2190
fi
 
2191
 
 
2192
# Check that the precious variables saved in the cache have kept the same
 
2193
# value.
 
2194
ac_cache_corrupted=false
 
2195
for ac_var in $ac_precious_vars; do
 
2196
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2197
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2198
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2199
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2200
  case $ac_old_set,$ac_new_set in
 
2201
    set,)
 
2202
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2203
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2204
      ac_cache_corrupted=: ;;
 
2205
    ,set)
 
2206
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2207
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2208
      ac_cache_corrupted=: ;;
 
2209
    ,);;
 
2210
    *)
 
2211
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2212
        # differences in whitespace do not lead to failure.
 
2213
        ac_old_val_w=`echo x $ac_old_val`
 
2214
        ac_new_val_w=`echo x $ac_new_val`
 
2215
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2216
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2217
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2218
          ac_cache_corrupted=:
 
2219
        else
 
2220
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2221
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2222
          eval $ac_var=\$ac_old_val
 
2223
        fi
 
2224
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2225
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2226
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2227
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2228
      fi;;
 
2229
  esac
 
2230
  # Pass precious variables to config.status.
 
2231
  if test "$ac_new_set" = set; then
 
2232
    case $ac_new_val in
 
2233
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2234
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2235
    esac
 
2236
    case " $ac_configure_args " in
 
2237
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2238
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2239
    esac
 
2240
  fi
 
2241
done
 
2242
if $ac_cache_corrupted; then
 
2243
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2245
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2246
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2247
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2248
fi
 
2249
## -------------------- ##
 
2250
## Main body of script. ##
 
2251
## -------------------- ##
 
2252
 
 
2253
ac_ext=c
 
2254
ac_cpp='$CPP $CPPFLAGS'
 
2255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2258
 
 
2259
 
 
2260
 
 
2261
am__api_version='1.11'
 
2262
 
 
2263
ac_aux_dir=
 
2264
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2265
  if test -f "$ac_dir/install-sh"; then
 
2266
    ac_aux_dir=$ac_dir
 
2267
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2268
    break
 
2269
  elif test -f "$ac_dir/install.sh"; then
 
2270
    ac_aux_dir=$ac_dir
 
2271
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2272
    break
 
2273
  elif test -f "$ac_dir/shtool"; then
 
2274
    ac_aux_dir=$ac_dir
 
2275
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2276
    break
 
2277
  fi
 
2278
done
 
2279
if test -z "$ac_aux_dir"; then
 
2280
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2281
fi
 
2282
 
 
2283
# These three variables are undocumented and unsupported,
 
2284
# and are intended to be withdrawn in a future Autoconf release.
 
2285
# They can cause serious problems if a builder's source tree is in a directory
 
2286
# whose full name contains unusual characters.
 
2287
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2288
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2289
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2290
 
 
2291
 
 
2292
# Find a good install program.  We prefer a C program (faster),
 
2293
# so one script is as good as another.  But avoid the broken or
 
2294
# incompatible versions:
 
2295
# SysV /etc/install, /usr/sbin/install
 
2296
# SunOS /usr/etc/install
 
2297
# IRIX /sbin/install
 
2298
# AIX /bin/install
 
2299
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2300
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2301
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2302
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2303
# OS/2's system install, which has a completely different semantic
 
2304
# ./install, which can be erroneously created by make from ./install.sh.
 
2305
# Reject install programs that cannot install multiple files.
 
2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2307
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2308
if test -z "$INSTALL"; then
 
2309
if ${ac_cv_path_install+:} false; then :
 
2310
  $as_echo_n "(cached) " >&6
 
2311
else
 
2312
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2313
for as_dir in $PATH
 
2314
do
 
2315
  IFS=$as_save_IFS
 
2316
  test -z "$as_dir" && as_dir=.
 
2317
    # Account for people who put trailing slashes in PATH elements.
 
2318
case $as_dir/ in @%:@((
 
2319
  ./ | .// | /[cC]/* | \
 
2320
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2321
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2322
  /usr/ucb/* ) ;;
 
2323
  *)
 
2324
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2325
    # Don't use installbsd from OSF since it installs stuff as root
 
2326
    # by default.
 
2327
    for ac_prog in ginstall scoinst install; do
 
2328
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2329
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2330
          if test $ac_prog = install &&
 
2331
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2332
            # AIX install.  It has an incompatible calling convention.
 
2333
            :
 
2334
          elif test $ac_prog = install &&
 
2335
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2336
            # program-specific install script used by HP pwplus--don't use.
 
2337
            :
 
2338
          else
 
2339
            rm -rf conftest.one conftest.two conftest.dir
 
2340
            echo one > conftest.one
 
2341
            echo two > conftest.two
 
2342
            mkdir conftest.dir
 
2343
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2344
              test -s conftest.one && test -s conftest.two &&
 
2345
              test -s conftest.dir/conftest.one &&
 
2346
              test -s conftest.dir/conftest.two
 
2347
            then
 
2348
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2349
              break 3
 
2350
            fi
 
2351
          fi
 
2352
        fi
 
2353
      done
 
2354
    done
 
2355
    ;;
 
2356
esac
 
2357
 
 
2358
  done
 
2359
IFS=$as_save_IFS
 
2360
 
 
2361
rm -rf conftest.one conftest.two conftest.dir
 
2362
 
 
2363
fi
 
2364
  if test "${ac_cv_path_install+set}" = set; then
 
2365
    INSTALL=$ac_cv_path_install
 
2366
  else
 
2367
    # As a last resort, use the slow shell script.  Don't cache a
 
2368
    # value for INSTALL within a source directory, because that will
 
2369
    # break other packages using the cache if that directory is
 
2370
    # removed, or if the value is a relative name.
 
2371
    INSTALL=$ac_install_sh
 
2372
  fi
 
2373
fi
 
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2375
$as_echo "$INSTALL" >&6; }
 
2376
 
 
2377
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2378
# It thinks the first close brace ends the variable substitution.
 
2379
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2380
 
 
2381
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2382
 
 
2383
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2384
 
 
2385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2386
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2387
# Just in case
 
2388
sleep 1
 
2389
echo timestamp > conftest.file
 
2390
# Reject unsafe characters in $srcdir or the absolute working directory
 
2391
# name.  Accept space and tab only in the latter.
 
2392
am_lf='
 
2393
'
 
2394
case `pwd` in
 
2395
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2396
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2397
esac
 
2398
case $srcdir in
 
2399
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2400
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2401
esac
 
2402
 
 
2403
# Do `set' in a subshell so we don't clobber the current shell's
 
2404
# arguments.  Must try -L first in case configure is actually a
 
2405
# symlink; some systems play weird games with the mod time of symlinks
 
2406
# (eg FreeBSD returns the mod time of the symlink's containing
 
2407
# directory).
 
2408
if (
 
2409
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2410
   if test "$*" = "X"; then
 
2411
      # -L didn't work.
 
2412
      set X `ls -t "$srcdir/configure" conftest.file`
 
2413
   fi
 
2414
   rm -f conftest.file
 
2415
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2416
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2417
 
 
2418
      # If neither matched, then we have a broken ls.  This can happen
 
2419
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2420
      # broken ls alias from the environment.  This has actually
 
2421
      # happened.  Such a system could not be considered "sane".
 
2422
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2423
alias in your environment" "$LINENO" 5
 
2424
   fi
 
2425
 
 
2426
   test "$2" = conftest.file
 
2427
   )
 
2428
then
 
2429
   # Ok.
 
2430
   :
 
2431
else
 
2432
   as_fn_error $? "newly created file is older than distributed files!
 
2433
Check your system clock" "$LINENO" 5
 
2434
fi
 
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2436
$as_echo "yes" >&6; }
 
2437
test "$program_prefix" != NONE &&
 
2438
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2439
# Use a double $ so make ignores it.
 
2440
test "$program_suffix" != NONE &&
 
2441
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2442
# Double any \ or $.
 
2443
# By default was `s,x,x', remove it if useless.
 
2444
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2445
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2446
 
 
2447
# expand $ac_aux_dir to an absolute path
 
2448
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2449
 
 
2450
if test x"${MISSING+set}" != xset; then
 
2451
  case $am_aux_dir in
 
2452
  *\ * | *\     *)
 
2453
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2454
  *)
 
2455
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2456
  esac
 
2457
fi
 
2458
# Use eval to expand $SHELL
 
2459
if eval "$MISSING --run true"; then
 
2460
  am_missing_run="$MISSING --run "
 
2461
else
 
2462
  am_missing_run=
 
2463
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2464
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2465
fi
 
2466
 
 
2467
if test x"${install_sh}" != xset; then
 
2468
  case $am_aux_dir in
 
2469
  *\ * | *\     *)
 
2470
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2471
  *)
 
2472
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2473
  esac
 
2474
fi
 
2475
 
 
2476
# Installed binaries are usually stripped using `strip' when the user
 
2477
# run `make install-strip'.  However `strip' might not be the right
 
2478
# tool to use in cross-compilation environments, therefore Automake
 
2479
# will honor the `STRIP' environment variable to overrule this program.
 
2480
if test "$cross_compiling" != no; then
 
2481
  if test -n "$ac_tool_prefix"; then
 
2482
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2483
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2485
$as_echo_n "checking for $ac_word... " >&6; }
 
2486
if ${ac_cv_prog_STRIP+:} false; then :
 
2487
  $as_echo_n "(cached) " >&6
 
2488
else
 
2489
  if test -n "$STRIP"; then
 
2490
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2491
else
 
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2493
for as_dir in $PATH
 
2494
do
 
2495
  IFS=$as_save_IFS
 
2496
  test -z "$as_dir" && as_dir=.
 
2497
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2498
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2499
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2500
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2501
    break 2
 
2502
  fi
 
2503
done
 
2504
  done
 
2505
IFS=$as_save_IFS
 
2506
 
 
2507
fi
 
2508
fi
 
2509
STRIP=$ac_cv_prog_STRIP
 
2510
if test -n "$STRIP"; then
 
2511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2512
$as_echo "$STRIP" >&6; }
 
2513
else
 
2514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2515
$as_echo "no" >&6; }
 
2516
fi
 
2517
 
 
2518
 
 
2519
fi
 
2520
if test -z "$ac_cv_prog_STRIP"; then
 
2521
  ac_ct_STRIP=$STRIP
 
2522
  # Extract the first word of "strip", so it can be a program name with args.
 
2523
set dummy strip; ac_word=$2
 
2524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2525
$as_echo_n "checking for $ac_word... " >&6; }
 
2526
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2527
  $as_echo_n "(cached) " >&6
 
2528
else
 
2529
  if test -n "$ac_ct_STRIP"; then
 
2530
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2531
else
 
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2533
for as_dir in $PATH
 
2534
do
 
2535
  IFS=$as_save_IFS
 
2536
  test -z "$as_dir" && as_dir=.
 
2537
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2538
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2539
    ac_cv_prog_ac_ct_STRIP="strip"
 
2540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2541
    break 2
 
2542
  fi
 
2543
done
 
2544
  done
 
2545
IFS=$as_save_IFS
 
2546
 
 
2547
fi
 
2548
fi
 
2549
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2550
if test -n "$ac_ct_STRIP"; then
 
2551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2552
$as_echo "$ac_ct_STRIP" >&6; }
 
2553
else
 
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2555
$as_echo "no" >&6; }
 
2556
fi
 
2557
 
 
2558
  if test "x$ac_ct_STRIP" = x; then
 
2559
    STRIP=":"
 
2560
  else
 
2561
    case $cross_compiling:$ac_tool_warned in
 
2562
yes:)
 
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2564
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2565
ac_tool_warned=yes ;;
 
2566
esac
 
2567
    STRIP=$ac_ct_STRIP
 
2568
  fi
 
2569
else
 
2570
  STRIP="$ac_cv_prog_STRIP"
 
2571
fi
 
2572
 
 
2573
fi
 
2574
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2575
 
 
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2577
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2578
if test -z "$MKDIR_P"; then
 
2579
  if ${ac_cv_path_mkdir+:} false; then :
 
2580
  $as_echo_n "(cached) " >&6
 
2581
else
 
2582
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2583
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2584
do
 
2585
  IFS=$as_save_IFS
 
2586
  test -z "$as_dir" && as_dir=.
 
2587
    for ac_prog in mkdir gmkdir; do
 
2588
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2589
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2590
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2591
             'mkdir (GNU coreutils) '* | \
 
2592
             'mkdir (coreutils) '* | \
 
2593
             'mkdir (fileutils) '4.1*)
 
2594
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2595
               break 3;;
 
2596
           esac
 
2597
         done
 
2598
       done
 
2599
  done
 
2600
IFS=$as_save_IFS
 
2601
 
 
2602
fi
 
2603
 
 
2604
  test -d ./--version && rmdir ./--version
 
2605
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2606
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2607
  else
 
2608
    # As a last resort, use the slow shell script.  Don't cache a
 
2609
    # value for MKDIR_P within a source directory, because that will
 
2610
    # break other packages using the cache if that directory is
 
2611
    # removed, or if the value is a relative name.
 
2612
    MKDIR_P="$ac_install_sh -d"
 
2613
  fi
 
2614
fi
 
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2616
$as_echo "$MKDIR_P" >&6; }
 
2617
 
 
2618
mkdir_p="$MKDIR_P"
 
2619
case $mkdir_p in
 
2620
  [\\/$]* | ?:[\\/]*) ;;
 
2621
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2622
esac
 
2623
 
 
2624
for ac_prog in gawk mawk nawk awk
 
2625
do
 
2626
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2627
set dummy $ac_prog; ac_word=$2
 
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2629
$as_echo_n "checking for $ac_word... " >&6; }
 
2630
if ${ac_cv_prog_AWK+:} false; then :
 
2631
  $as_echo_n "(cached) " >&6
 
2632
else
 
2633
  if test -n "$AWK"; then
 
2634
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2635
else
 
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2637
for as_dir in $PATH
 
2638
do
 
2639
  IFS=$as_save_IFS
 
2640
  test -z "$as_dir" && as_dir=.
 
2641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2642
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2643
    ac_cv_prog_AWK="$ac_prog"
 
2644
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2645
    break 2
 
2646
  fi
 
2647
done
 
2648
  done
 
2649
IFS=$as_save_IFS
 
2650
 
 
2651
fi
 
2652
fi
 
2653
AWK=$ac_cv_prog_AWK
 
2654
if test -n "$AWK"; then
 
2655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2656
$as_echo "$AWK" >&6; }
 
2657
else
 
2658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2659
$as_echo "no" >&6; }
 
2660
fi
 
2661
 
 
2662
 
 
2663
  test -n "$AWK" && break
 
2664
done
 
2665
 
 
2666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2667
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2668
set x ${MAKE-make}
 
2669
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2670
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2671
  $as_echo_n "(cached) " >&6
 
2672
else
 
2673
  cat >conftest.make <<\_ACEOF
 
2674
SHELL = /bin/sh
 
2675
all:
 
2676
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2677
_ACEOF
 
2678
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2679
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2680
  *@@@%%%=?*=@@@%%%*)
 
2681
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2682
  *)
 
2683
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2684
esac
 
2685
rm -f conftest.make
 
2686
fi
 
2687
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2689
$as_echo "yes" >&6; }
 
2690
  SET_MAKE=
 
2691
else
 
2692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2693
$as_echo "no" >&6; }
 
2694
  SET_MAKE="MAKE=${MAKE-make}"
 
2695
fi
 
2696
 
 
2697
rm -rf .tst 2>/dev/null
 
2698
mkdir .tst 2>/dev/null
 
2699
if test -d .tst; then
 
2700
  am__leading_dot=.
 
2701
else
 
2702
  am__leading_dot=_
 
2703
fi
 
2704
rmdir .tst 2>/dev/null
 
2705
 
 
2706
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2707
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2708
  # is not polluted with repeated "-I."
 
2709
  am__isrc=' -I$(srcdir)'
 
2710
  # test to see if srcdir already configured
 
2711
  if test -f $srcdir/config.status; then
 
2712
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2713
  fi
 
2714
fi
 
2715
 
 
2716
# test whether we have cygpath
 
2717
if test -z "$CYGPATH_W"; then
 
2718
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2719
    CYGPATH_W='cygpath -w'
 
2720
  else
 
2721
    CYGPATH_W=echo
 
2722
  fi
 
2723
fi
 
2724
 
 
2725
 
 
2726
# Define the identity of the package.
 
2727
 PACKAGE='libdvdread'
 
2728
 VERSION='4.2.0'
 
2729
 
 
2730
 
 
2731
cat >>confdefs.h <<_ACEOF
 
2732
@%:@define PACKAGE "$PACKAGE"
 
2733
_ACEOF
 
2734
 
 
2735
 
 
2736
cat >>confdefs.h <<_ACEOF
 
2737
@%:@define VERSION "$VERSION"
 
2738
_ACEOF
 
2739
 
 
2740
# Some tools Automake needs.
 
2741
 
 
2742
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2743
 
 
2744
 
 
2745
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2746
 
 
2747
 
 
2748
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2749
 
 
2750
 
 
2751
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2752
 
 
2753
 
 
2754
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2755
 
 
2756
# We need awk for the "check" target.  The system "awk" is bad on
 
2757
# some platforms.
 
2758
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2759
# in the wild :-(  We should find a proper way to deprecate it ...
 
2760
AMTAR='$${TAR-tar}'
 
2761
 
 
2762
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2763
 
 
2764
 
 
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
ac_config_headers="$ac_config_headers config.h"
 
2770
 
 
2771
# Make sure we can run config.sub.
 
2772
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2773
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2774
 
 
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2776
$as_echo_n "checking build system type... " >&6; }
 
2777
if ${ac_cv_build+:} false; then :
 
2778
  $as_echo_n "(cached) " >&6
 
2779
else
 
2780
  ac_build_alias=$build_alias
 
2781
test "x$ac_build_alias" = x &&
 
2782
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2783
test "x$ac_build_alias" = x &&
 
2784
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2785
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2786
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2787
 
 
2788
fi
 
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2790
$as_echo "$ac_cv_build" >&6; }
 
2791
case $ac_cv_build in
 
2792
*-*-*) ;;
 
2793
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2794
esac
 
2795
build=$ac_cv_build
 
2796
ac_save_IFS=$IFS; IFS='-'
 
2797
set x $ac_cv_build
 
2798
shift
 
2799
build_cpu=$1
 
2800
build_vendor=$2
 
2801
shift; shift
 
2802
# Remember, the first character of IFS is used to create $*,
 
2803
# except with old shells:
 
2804
build_os=$*
 
2805
IFS=$ac_save_IFS
 
2806
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2807
 
 
2808
 
 
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2810
$as_echo_n "checking host system type... " >&6; }
 
2811
if ${ac_cv_host+:} false; then :
 
2812
  $as_echo_n "(cached) " >&6
 
2813
else
 
2814
  if test "x$host_alias" = x; then
 
2815
  ac_cv_host=$ac_cv_build
 
2816
else
 
2817
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2818
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2819
fi
 
2820
 
 
2821
fi
 
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2823
$as_echo "$ac_cv_host" >&6; }
 
2824
case $ac_cv_host in
 
2825
*-*-*) ;;
 
2826
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2827
esac
 
2828
host=$ac_cv_host
 
2829
ac_save_IFS=$IFS; IFS='-'
 
2830
set x $ac_cv_host
 
2831
shift
 
2832
host_cpu=$1
 
2833
host_vendor=$2
 
2834
shift; shift
 
2835
# Remember, the first character of IFS is used to create $*,
 
2836
# except with old shells:
 
2837
host_os=$*
 
2838
IFS=$ac_save_IFS
 
2839
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2840
 
 
2841
 
 
2842
 
 
2843
DVDREAD_MAJOR="4"
 
2844
DVDREAD_MINOR="2"
 
2845
DVDREAD_SUB="0"
 
2846
DVDREAD_PRE=""
 
2847
 
 
2848
 
 
2849
 
 
2850
 
 
2851
 
 
2852
 
 
2853
DVDREAD_LT_CURRENT=5
 
2854
DVDREAD_LT_AGE=1
 
2855
DVDREAD_LT_REVISION=2
 
2856
 
 
2857
 
 
2858
 
 
2859
 
 
2860
 
 
2861
if test x$DVDREAD_BUILD != "x"; then
 
2862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** build forced to $DVDREAD_BUILD ***" >&5
 
2863
$as_echo "*** build forced to $DVDREAD_BUILD ***" >&6; }
 
2864
  build=$DVDREAD_BUILD
 
2865
  host=$DVDREAD_BUILD
 
2866
else
 
2867
  check_athlon=yes
 
2868
fi
 
2869
 
 
2870
saved_CFLAGS="$CFLAGS"
 
2871
DEPDIR="${am__leading_dot}deps"
 
2872
 
 
2873
ac_config_commands="$ac_config_commands depfiles"
 
2874
 
 
2875
 
 
2876
am_make=${MAKE-make}
 
2877
cat > confinc << 'END'
 
2878
am__doit:
 
2879
        @echo this is the am__doit target
 
2880
.PHONY: am__doit
 
2881
END
 
2882
# If we don't find an include directive, just comment out the code.
 
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2884
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2885
am__include="#"
 
2886
am__quote=
 
2887
_am_result=none
 
2888
# First try GNU make style include.
 
2889
echo "include confinc" > confmf
 
2890
# Ignore all kinds of additional output from `make'.
 
2891
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2892
*the\ am__doit\ target*)
 
2893
  am__include=include
 
2894
  am__quote=
 
2895
  _am_result=GNU
 
2896
  ;;
 
2897
esac
 
2898
# Now try BSD make style include.
 
2899
if test "$am__include" = "#"; then
 
2900
   echo '.include "confinc"' > confmf
 
2901
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2902
   *the\ am__doit\ target*)
 
2903
     am__include=.include
 
2904
     am__quote="\""
 
2905
     _am_result=BSD
 
2906
     ;;
 
2907
   esac
 
2908
fi
 
2909
 
 
2910
 
 
2911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2912
$as_echo "$_am_result" >&6; }
 
2913
rm -f confinc confmf
 
2914
 
 
2915
@%:@ Check whether --enable-dependency-tracking was given.
 
2916
if test "${enable_dependency_tracking+set}" = set; then :
 
2917
  enableval=$enable_dependency_tracking; 
 
2918
fi
 
2919
 
 
2920
if test "x$enable_dependency_tracking" != xno; then
 
2921
  am_depcomp="$ac_aux_dir/depcomp"
 
2922
  AMDEPBACKSLASH='\'
 
2923
  am__nodep='_no'
 
2924
fi
 
2925
 if test "x$enable_dependency_tracking" != xno; then
 
2926
  AMDEP_TRUE=
 
2927
  AMDEP_FALSE='#'
 
2928
else
 
2929
  AMDEP_TRUE='#'
 
2930
  AMDEP_FALSE=
 
2931
fi
 
2932
 
 
2933
 
 
2934
ac_ext=c
 
2935
ac_cpp='$CPP $CPPFLAGS'
 
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2939
if test -n "$ac_tool_prefix"; then
 
2940
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2941
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2943
$as_echo_n "checking for $ac_word... " >&6; }
 
2944
if ${ac_cv_prog_CC+:} false; then :
 
2945
  $as_echo_n "(cached) " >&6
 
2946
else
 
2947
  if test -n "$CC"; then
 
2948
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2949
else
 
2950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2951
for as_dir in $PATH
 
2952
do
 
2953
  IFS=$as_save_IFS
 
2954
  test -z "$as_dir" && as_dir=.
 
2955
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2956
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2957
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2958
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2959
    break 2
 
2960
  fi
 
2961
done
 
2962
  done
 
2963
IFS=$as_save_IFS
 
2964
 
 
2965
fi
 
2966
fi
 
2967
CC=$ac_cv_prog_CC
 
2968
if test -n "$CC"; then
 
2969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2970
$as_echo "$CC" >&6; }
 
2971
else
 
2972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2973
$as_echo "no" >&6; }
 
2974
fi
 
2975
 
 
2976
 
 
2977
fi
 
2978
if test -z "$ac_cv_prog_CC"; then
 
2979
  ac_ct_CC=$CC
 
2980
  # Extract the first word of "gcc", so it can be a program name with args.
 
2981
set dummy gcc; ac_word=$2
 
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2983
$as_echo_n "checking for $ac_word... " >&6; }
 
2984
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2985
  $as_echo_n "(cached) " >&6
 
2986
else
 
2987
  if test -n "$ac_ct_CC"; then
 
2988
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2989
else
 
2990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2991
for as_dir in $PATH
 
2992
do
 
2993
  IFS=$as_save_IFS
 
2994
  test -z "$as_dir" && as_dir=.
 
2995
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2996
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2997
    ac_cv_prog_ac_ct_CC="gcc"
 
2998
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2999
    break 2
 
3000
  fi
 
3001
done
 
3002
  done
 
3003
IFS=$as_save_IFS
 
3004
 
 
3005
fi
 
3006
fi
 
3007
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3008
if test -n "$ac_ct_CC"; then
 
3009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3010
$as_echo "$ac_ct_CC" >&6; }
 
3011
else
 
3012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3013
$as_echo "no" >&6; }
 
3014
fi
 
3015
 
 
3016
  if test "x$ac_ct_CC" = x; then
 
3017
    CC=""
 
3018
  else
 
3019
    case $cross_compiling:$ac_tool_warned in
 
3020
yes:)
 
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3023
ac_tool_warned=yes ;;
 
3024
esac
 
3025
    CC=$ac_ct_CC
 
3026
  fi
 
3027
else
 
3028
  CC="$ac_cv_prog_CC"
 
3029
fi
 
3030
 
 
3031
if test -z "$CC"; then
 
3032
          if test -n "$ac_tool_prefix"; then
 
3033
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3034
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3036
$as_echo_n "checking for $ac_word... " >&6; }
 
3037
if ${ac_cv_prog_CC+:} false; then :
 
3038
  $as_echo_n "(cached) " >&6
 
3039
else
 
3040
  if test -n "$CC"; then
 
3041
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3042
else
 
3043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3044
for as_dir in $PATH
 
3045
do
 
3046
  IFS=$as_save_IFS
 
3047
  test -z "$as_dir" && as_dir=.
 
3048
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3049
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3050
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3051
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3052
    break 2
 
3053
  fi
 
3054
done
 
3055
  done
 
3056
IFS=$as_save_IFS
 
3057
 
 
3058
fi
 
3059
fi
 
3060
CC=$ac_cv_prog_CC
 
3061
if test -n "$CC"; then
 
3062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3063
$as_echo "$CC" >&6; }
 
3064
else
 
3065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3066
$as_echo "no" >&6; }
 
3067
fi
 
3068
 
 
3069
 
 
3070
  fi
 
3071
fi
 
3072
if test -z "$CC"; then
 
3073
  # Extract the first word of "cc", so it can be a program name with args.
 
3074
set dummy cc; ac_word=$2
 
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3076
$as_echo_n "checking for $ac_word... " >&6; }
 
3077
if ${ac_cv_prog_CC+:} false; then :
 
3078
  $as_echo_n "(cached) " >&6
 
3079
else
 
3080
  if test -n "$CC"; then
 
3081
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3082
else
 
3083
  ac_prog_rejected=no
 
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3085
for as_dir in $PATH
 
3086
do
 
3087
  IFS=$as_save_IFS
 
3088
  test -z "$as_dir" && as_dir=.
 
3089
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3090
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3091
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3092
       ac_prog_rejected=yes
 
3093
       continue
 
3094
     fi
 
3095
    ac_cv_prog_CC="cc"
 
3096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3097
    break 2
 
3098
  fi
 
3099
done
 
3100
  done
 
3101
IFS=$as_save_IFS
 
3102
 
 
3103
if test $ac_prog_rejected = yes; then
 
3104
  # We found a bogon in the path, so make sure we never use it.
 
3105
  set dummy $ac_cv_prog_CC
 
3106
  shift
 
3107
  if test $@%:@ != 0; then
 
3108
    # We chose a different compiler from the bogus one.
 
3109
    # However, it has the same basename, so the bogon will be chosen
 
3110
    # first if we set CC to just the basename; use the full file name.
 
3111
    shift
 
3112
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3113
  fi
 
3114
fi
 
3115
fi
 
3116
fi
 
3117
CC=$ac_cv_prog_CC
 
3118
if test -n "$CC"; then
 
3119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3120
$as_echo "$CC" >&6; }
 
3121
else
 
3122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3123
$as_echo "no" >&6; }
 
3124
fi
 
3125
 
 
3126
 
 
3127
fi
 
3128
if test -z "$CC"; then
 
3129
  if test -n "$ac_tool_prefix"; then
 
3130
  for ac_prog in cl.exe
 
3131
  do
 
3132
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3133
set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then :
 
3137
  $as_echo_n "(cached) " >&6
 
3138
else
 
3139
  if test -n "$CC"; then
 
3140
  ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
 
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
CC=$ac_cv_prog_CC
 
3160
if test -n "$CC"; then
 
3161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3162
$as_echo "$CC" >&6; }
 
3163
else
 
3164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3165
$as_echo "no" >&6; }
 
3166
fi
 
3167
 
 
3168
 
 
3169
    test -n "$CC" && break
 
3170
  done
 
3171
fi
 
3172
if test -z "$CC"; then
 
3173
  ac_ct_CC=$CC
 
3174
  for ac_prog in cl.exe
 
3175
do
 
3176
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3177
set dummy $ac_prog; ac_word=$2
 
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3179
$as_echo_n "checking for $ac_word... " >&6; }
 
3180
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3181
  $as_echo_n "(cached) " >&6
 
3182
else
 
3183
  if test -n "$ac_ct_CC"; then
 
3184
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3185
else
 
3186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3187
for as_dir in $PATH
 
3188
do
 
3189
  IFS=$as_save_IFS
 
3190
  test -z "$as_dir" && as_dir=.
 
3191
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3192
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3193
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3194
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3195
    break 2
 
3196
  fi
 
3197
done
 
3198
  done
 
3199
IFS=$as_save_IFS
 
3200
 
 
3201
fi
 
3202
fi
 
3203
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3204
if test -n "$ac_ct_CC"; then
 
3205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3206
$as_echo "$ac_ct_CC" >&6; }
 
3207
else
 
3208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3209
$as_echo "no" >&6; }
 
3210
fi
 
3211
 
 
3212
 
 
3213
  test -n "$ac_ct_CC" && break
 
3214
done
 
3215
 
 
3216
  if test "x$ac_ct_CC" = x; then
 
3217
    CC=""
 
3218
  else
 
3219
    case $cross_compiling:$ac_tool_warned in
 
3220
yes:)
 
3221
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3222
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3223
ac_tool_warned=yes ;;
 
3224
esac
 
3225
    CC=$ac_ct_CC
 
3226
  fi
 
3227
fi
 
3228
 
 
3229
fi
 
3230
 
 
3231
 
 
3232
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3233
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3234
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3235
See \`config.log' for more details" "$LINENO" 5; }
 
3236
 
 
3237
# Provide some information about the compiler.
 
3238
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3239
set X $ac_compile
 
3240
ac_compiler=$2
 
3241
for ac_option in --version -v -V -qversion; do
 
3242
  { { ac_try="$ac_compiler $ac_option >&5"
 
3243
case "(($ac_try" in
 
3244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3245
  *) ac_try_echo=$ac_try;;
 
3246
esac
 
3247
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3248
$as_echo "$ac_try_echo"; } >&5
 
3249
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3250
  ac_status=$?
 
3251
  if test -s conftest.err; then
 
3252
    sed '10a\
 
3253
... rest of stderr output deleted ...
 
3254
         10q' conftest.err >conftest.er1
 
3255
    cat conftest.er1 >&5
 
3256
  fi
 
3257
  rm -f conftest.er1 conftest.err
 
3258
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3259
  test $ac_status = 0; }
 
3260
done
 
3261
 
 
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3263
/* end confdefs.h.  */
 
3264
 
 
3265
int
 
3266
main ()
 
3267
{
 
3268
 
 
3269
  ;
 
3270
  return 0;
 
3271
}
 
3272
_ACEOF
 
3273
ac_clean_files_save=$ac_clean_files
 
3274
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3275
# Try to create an executable without -o first, disregard a.out.
 
3276
# It will help us diagnose broken compilers, and finding out an intuition
 
3277
# of exeext.
 
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3279
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3280
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3281
 
 
3282
# The possible output files:
 
3283
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3284
 
 
3285
ac_rmfiles=
 
3286
for ac_file in $ac_files
 
3287
do
 
3288
  case $ac_file in
 
3289
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3290
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3291
  esac
 
3292
done
 
3293
rm -f $ac_rmfiles
 
3294
 
 
3295
if { { ac_try="$ac_link_default"
 
3296
case "(($ac_try" in
 
3297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3298
  *) ac_try_echo=$ac_try;;
 
3299
esac
 
3300
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3301
$as_echo "$ac_try_echo"; } >&5
 
3302
  (eval "$ac_link_default") 2>&5
 
3303
  ac_status=$?
 
3304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3305
  test $ac_status = 0; }; then :
 
3306
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3307
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3308
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3309
# so that the user can short-circuit this test for compilers unknown to
 
3310
# Autoconf.
 
3311
for ac_file in $ac_files ''
 
3312
do
 
3313
  test -f "$ac_file" || continue
 
3314
  case $ac_file in
 
3315
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3316
        ;;
 
3317
    [ab].out )
 
3318
        # We found the default executable, but exeext='' is most
 
3319
        # certainly right.
 
3320
        break;;
 
3321
    *.* )
 
3322
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3323
        then :; else
 
3324
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3325
        fi
 
3326
        # We set ac_cv_exeext here because the later test for it is not
 
3327
        # safe: cross compilers may not add the suffix if given an `-o'
 
3328
        # argument, so we may need to know it at that point already.
 
3329
        # Even if this section looks crufty: it has the advantage of
 
3330
        # actually working.
 
3331
        break;;
 
3332
    * )
 
3333
        break;;
 
3334
  esac
 
3335
done
 
3336
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3337
 
 
3338
else
 
3339
  ac_file=''
 
3340
fi
 
3341
if test -z "$ac_file"; then :
 
3342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3343
$as_echo "no" >&6; }
 
3344
$as_echo "$as_me: failed program was:" >&5
 
3345
sed 's/^/| /' conftest.$ac_ext >&5
 
3346
 
 
3347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3349
as_fn_error 77 "C compiler cannot create executables
 
3350
See \`config.log' for more details" "$LINENO" 5; }
 
3351
else
 
3352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3353
$as_echo "yes" >&6; }
 
3354
fi
 
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3356
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3358
$as_echo "$ac_file" >&6; }
 
3359
ac_exeext=$ac_cv_exeext
 
3360
 
 
3361
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3362
ac_clean_files=$ac_clean_files_save
 
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3364
$as_echo_n "checking for suffix of executables... " >&6; }
 
3365
if { { ac_try="$ac_link"
 
3366
case "(($ac_try" in
 
3367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3368
  *) ac_try_echo=$ac_try;;
 
3369
esac
 
3370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3371
$as_echo "$ac_try_echo"; } >&5
 
3372
  (eval "$ac_link") 2>&5
 
3373
  ac_status=$?
 
3374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3375
  test $ac_status = 0; }; then :
 
3376
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3377
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3378
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3379
# `rm'.
 
3380
for ac_file in conftest.exe conftest conftest.*; do
 
3381
  test -f "$ac_file" || continue
 
3382
  case $ac_file in
 
3383
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3384
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3385
          break;;
 
3386
    * ) break;;
 
3387
  esac
 
3388
done
 
3389
else
 
3390
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3392
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3393
See \`config.log' for more details" "$LINENO" 5; }
 
3394
fi
 
3395
rm -f conftest conftest$ac_cv_exeext
 
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3397
$as_echo "$ac_cv_exeext" >&6; }
 
3398
 
 
3399
rm -f conftest.$ac_ext
 
3400
EXEEXT=$ac_cv_exeext
 
3401
ac_exeext=$EXEEXT
 
3402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3403
/* end confdefs.h.  */
 
3404
@%:@include <stdio.h>
 
3405
int
 
3406
main ()
 
3407
{
 
3408
FILE *f = fopen ("conftest.out", "w");
 
3409
 return ferror (f) || fclose (f) != 0;
 
3410
 
 
3411
  ;
 
3412
  return 0;
 
3413
}
 
3414
_ACEOF
 
3415
ac_clean_files="$ac_clean_files conftest.out"
 
3416
# Check that the compiler produces executables we can run.  If not, either
 
3417
# the compiler is broken, or we cross compile.
 
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3419
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3420
if test "$cross_compiling" != yes; then
 
3421
  { { ac_try="$ac_link"
 
3422
case "(($ac_try" in
 
3423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3424
  *) ac_try_echo=$ac_try;;
 
3425
esac
 
3426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3427
$as_echo "$ac_try_echo"; } >&5
 
3428
  (eval "$ac_link") 2>&5
 
3429
  ac_status=$?
 
3430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3431
  test $ac_status = 0; }
 
3432
  if { ac_try='./conftest$ac_cv_exeext'
 
3433
  { { case "(($ac_try" in
 
3434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3435
  *) ac_try_echo=$ac_try;;
 
3436
esac
 
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3438
$as_echo "$ac_try_echo"; } >&5
 
3439
  (eval "$ac_try") 2>&5
 
3440
  ac_status=$?
 
3441
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3442
  test $ac_status = 0; }; }; then
 
3443
    cross_compiling=no
 
3444
  else
 
3445
    if test "$cross_compiling" = maybe; then
 
3446
        cross_compiling=yes
 
3447
    else
 
3448
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3449
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3450
as_fn_error $? "cannot run C compiled programs.
 
3451
If you meant to cross compile, use \`--host'.
 
3452
See \`config.log' for more details" "$LINENO" 5; }
 
3453
    fi
 
3454
  fi
 
3455
fi
 
3456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3457
$as_echo "$cross_compiling" >&6; }
 
3458
 
 
3459
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3460
ac_clean_files=$ac_clean_files_save
 
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3462
$as_echo_n "checking for suffix of object files... " >&6; }
 
3463
if ${ac_cv_objext+:} false; then :
 
3464
  $as_echo_n "(cached) " >&6
 
3465
else
 
3466
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3467
/* end confdefs.h.  */
 
3468
 
 
3469
int
 
3470
main ()
 
3471
{
 
3472
 
 
3473
  ;
 
3474
  return 0;
 
3475
}
 
3476
_ACEOF
 
3477
rm -f conftest.o conftest.obj
 
3478
if { { ac_try="$ac_compile"
 
3479
case "(($ac_try" in
 
3480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3481
  *) ac_try_echo=$ac_try;;
 
3482
esac
 
3483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3484
$as_echo "$ac_try_echo"; } >&5
 
3485
  (eval "$ac_compile") 2>&5
 
3486
  ac_status=$?
 
3487
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3488
  test $ac_status = 0; }; then :
 
3489
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3490
  test -f "$ac_file" || continue;
 
3491
  case $ac_file in
 
3492
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3493
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3494
       break;;
 
3495
  esac
 
3496
done
 
3497
else
 
3498
  $as_echo "$as_me: failed program was:" >&5
 
3499
sed 's/^/| /' conftest.$ac_ext >&5
 
3500
 
 
3501
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3502
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3503
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3504
See \`config.log' for more details" "$LINENO" 5; }
 
3505
fi
 
3506
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3507
fi
 
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3509
$as_echo "$ac_cv_objext" >&6; }
 
3510
OBJEXT=$ac_cv_objext
 
3511
ac_objext=$OBJEXT
 
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3513
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3514
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3515
  $as_echo_n "(cached) " >&6
 
3516
else
 
3517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3518
/* end confdefs.h.  */
 
3519
 
 
3520
int
 
3521
main ()
 
3522
{
 
3523
#ifndef __GNUC__
 
3524
       choke me
 
3525
#endif
 
3526
 
 
3527
  ;
 
3528
  return 0;
 
3529
}
 
3530
_ACEOF
 
3531
if ac_fn_c_try_compile "$LINENO"; then :
 
3532
  ac_compiler_gnu=yes
 
3533
else
 
3534
  ac_compiler_gnu=no
 
3535
fi
 
3536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3537
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3538
 
 
3539
fi
 
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3541
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3542
if test $ac_compiler_gnu = yes; then
 
3543
  GCC=yes
 
3544
else
 
3545
  GCC=
 
3546
fi
 
3547
ac_test_CFLAGS=${CFLAGS+set}
 
3548
ac_save_CFLAGS=$CFLAGS
 
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3550
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3551
if ${ac_cv_prog_cc_g+:} false; then :
 
3552
  $as_echo_n "(cached) " >&6
 
3553
else
 
3554
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3555
   ac_c_werror_flag=yes
 
3556
   ac_cv_prog_cc_g=no
 
3557
   CFLAGS="-g"
 
3558
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3559
/* end confdefs.h.  */
 
3560
 
 
3561
int
 
3562
main ()
 
3563
{
 
3564
 
 
3565
  ;
 
3566
  return 0;
 
3567
}
 
3568
_ACEOF
 
3569
if ac_fn_c_try_compile "$LINENO"; then :
 
3570
  ac_cv_prog_cc_g=yes
 
3571
else
 
3572
  CFLAGS=""
 
3573
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3574
/* end confdefs.h.  */
 
3575
 
 
3576
int
 
3577
main ()
 
3578
{
 
3579
 
 
3580
  ;
 
3581
  return 0;
 
3582
}
 
3583
_ACEOF
 
3584
if ac_fn_c_try_compile "$LINENO"; then :
 
3585
  
 
3586
else
 
3587
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3588
         CFLAGS="-g"
 
3589
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3590
/* end confdefs.h.  */
 
3591
 
 
3592
int
 
3593
main ()
 
3594
{
 
3595
 
 
3596
  ;
 
3597
  return 0;
 
3598
}
 
3599
_ACEOF
 
3600
if ac_fn_c_try_compile "$LINENO"; then :
 
3601
  ac_cv_prog_cc_g=yes
 
3602
fi
 
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3604
fi
 
3605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3606
fi
 
3607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3608
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3609
fi
 
3610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3611
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3612
if test "$ac_test_CFLAGS" = set; then
 
3613
  CFLAGS=$ac_save_CFLAGS
 
3614
elif test $ac_cv_prog_cc_g = yes; then
 
3615
  if test "$GCC" = yes; then
 
3616
    CFLAGS="-g -O2"
 
3617
  else
 
3618
    CFLAGS="-g"
 
3619
  fi
 
3620
else
 
3621
  if test "$GCC" = yes; then
 
3622
    CFLAGS="-O2"
 
3623
  else
 
3624
    CFLAGS=
 
3625
  fi
 
3626
fi
 
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3628
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3629
if ${ac_cv_prog_cc_c89+:} false; then :
 
3630
  $as_echo_n "(cached) " >&6
 
3631
else
 
3632
  ac_cv_prog_cc_c89=no
 
3633
ac_save_CC=$CC
 
3634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3635
/* end confdefs.h.  */
 
3636
#include <stdarg.h>
 
3637
#include <stdio.h>
 
3638
struct stat;
 
3639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3640
struct buf { int x; };
 
3641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3642
static char *e (p, i)
 
3643
     char **p;
 
3644
     int i;
 
3645
{
 
3646
  return p[i];
 
3647
}
 
3648
static char *f (char * (*g) (char **, int), char **p, ...)
 
3649
{
 
3650
  char *s;
 
3651
  va_list v;
 
3652
  va_start (v,p);
 
3653
  s = g (p, va_arg (v,int));
 
3654
  va_end (v);
 
3655
  return s;
 
3656
}
 
3657
 
 
3658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3659
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3660
   These don't provoke an error unfortunately, instead are silently treated
 
3661
   as 'x'.  The following induces an error, until -std is added to get
 
3662
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3663
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3664
   that's true only with -std.  */
 
3665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3666
 
 
3667
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3668
   inside strings and character constants.  */
 
3669
#define FOO(x) 'x'
 
3670
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3671
 
 
3672
int test (int i, double x);
 
3673
struct s1 {int (*f) (int a);};
 
3674
struct s2 {int (*f) (double a);};
 
3675
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3676
int argc;
 
3677
char **argv;
 
3678
int
 
3679
main ()
 
3680
{
 
3681
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3682
  ;
 
3683
  return 0;
 
3684
}
 
3685
_ACEOF
 
3686
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3687
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3688
do
 
3689
  CC="$ac_save_CC $ac_arg"
 
3690
  if ac_fn_c_try_compile "$LINENO"; then :
 
3691
  ac_cv_prog_cc_c89=$ac_arg
 
3692
fi
 
3693
rm -f core conftest.err conftest.$ac_objext
 
3694
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3695
done
 
3696
rm -f conftest.$ac_ext
 
3697
CC=$ac_save_CC
 
3698
 
 
3699
fi
 
3700
# AC_CACHE_VAL
 
3701
case "x$ac_cv_prog_cc_c89" in
 
3702
  x)
 
3703
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3704
$as_echo "none needed" >&6; } ;;
 
3705
  xno)
 
3706
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3707
$as_echo "unsupported" >&6; } ;;
 
3708
  *)
 
3709
    CC="$CC $ac_cv_prog_cc_c89"
 
3710
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3711
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3712
esac
 
3713
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3714
  
 
3715
fi
 
3716
 
 
3717
ac_ext=c
 
3718
ac_cpp='$CPP $CPPFLAGS'
 
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3722
 
 
3723
depcc="$CC"   am_compiler_list=
 
3724
 
 
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3726
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3727
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3728
  $as_echo_n "(cached) " >&6
 
3729
else
 
3730
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3731
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3732
  # making bogus files that we don't know about and never remove.  For
 
3733
  # instance it was reported that on HP-UX the gcc test will end up
 
3734
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3735
  # in D'.
 
3736
  rm -rf conftest.dir
 
3737
  mkdir conftest.dir
 
3738
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3739
  # using a relative directory.
 
3740
  cp "$am_depcomp" conftest.dir
 
3741
  cd conftest.dir
 
3742
  # We will build objects and dependencies in a subdirectory because
 
3743
  # it helps to detect inapplicable dependency modes.  For instance
 
3744
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3745
  # side effect of compilation, but ICC will put the dependencies in
 
3746
  # the current directory while Tru64 will put them in the object
 
3747
  # directory.
 
3748
  mkdir sub
 
3749
 
 
3750
  am_cv_CC_dependencies_compiler_type=none
 
3751
  if test "$am_compiler_list" = ""; then
 
3752
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3753
  fi
 
3754
  am__universal=false
 
3755
  case " $depcc " in #(
 
3756
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3757
     esac
 
3758
 
 
3759
  for depmode in $am_compiler_list; do
 
3760
    # Setup a source with many dependencies, because some compilers
 
3761
    # like to wrap large dependency lists on column 80 (with \), and
 
3762
    # we should not choose a depcomp mode which is confused by this.
 
3763
    #
 
3764
    # We need to recreate these files for each test, as the compiler may
 
3765
    # overwrite some of them when testing with obscure command lines.
 
3766
    # This happens at least with the AIX C compiler.
 
3767
    : > sub/conftest.c
 
3768
    for i in 1 2 3 4 5 6; do
 
3769
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3770
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3771
      # Solaris 8's {/usr,}/bin/sh.
 
3772
      touch sub/conftst$i.h
 
3773
    done
 
3774
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3775
 
 
3776
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3777
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3778
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3779
    # versions had trouble with output in subdirs
 
3780
    am__obj=sub/conftest.${OBJEXT-o}
 
3781
    am__minus_obj="-o $am__obj"
 
3782
    case $depmode in
 
3783
    gcc)
 
3784
      # This depmode causes a compiler race in universal mode.
 
3785
      test "$am__universal" = false || continue
 
3786
      ;;
 
3787
    nosideeffect)
 
3788
      # after this tag, mechanisms are not by side-effect, so they'll
 
3789
      # only be used when explicitly requested
 
3790
      if test "x$enable_dependency_tracking" = xyes; then
 
3791
        continue
 
3792
      else
 
3793
        break
 
3794
      fi
 
3795
      ;;
 
3796
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3797
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3798
      # not run yet.  These depmodes are late enough in the game, and
 
3799
      # so weak that their functioning should not be impacted.
 
3800
      am__obj=conftest.${OBJEXT-o}
 
3801
      am__minus_obj=
 
3802
      ;;
 
3803
    none) break ;;
 
3804
    esac
 
3805
    if depmode=$depmode \
 
3806
       source=sub/conftest.c object=$am__obj \
 
3807
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3808
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3809
         >/dev/null 2>conftest.err &&
 
3810
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3811
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3812
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3813
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3814
      # icc doesn't choke on unknown options, it will just issue warnings
 
3815
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3816
      # that says an option was ignored or not supported.
 
3817
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3818
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3819
      # The diagnosis changed in icc 8.0:
 
3820
      #   icc: Command line remark: option '-MP' not supported
 
3821
      if (grep 'ignoring option' conftest.err ||
 
3822
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3823
        am_cv_CC_dependencies_compiler_type=$depmode
 
3824
        break
 
3825
      fi
 
3826
    fi
 
3827
  done
 
3828
 
 
3829
  cd ..
 
3830
  rm -rf conftest.dir
 
3831
else
 
3832
  am_cv_CC_dependencies_compiler_type=none
 
3833
fi
 
3834
 
 
3835
fi
 
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3837
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3838
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3839
 
 
3840
 if 
 
3841
  test "x$enable_dependency_tracking" != xno \
 
3842
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3843
  am__fastdepCC_TRUE=
 
3844
  am__fastdepCC_FALSE='#'
 
3845
else
 
3846
  am__fastdepCC_TRUE='#'
 
3847
  am__fastdepCC_FALSE=
 
3848
fi
 
3849
 
 
3850
 
 
3851
 
 
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 
3853
$as_echo_n "checking for library containing strerror... " >&6; }
 
3854
if ${ac_cv_search_strerror+:} false; then :
 
3855
  $as_echo_n "(cached) " >&6
 
3856
else
 
3857
  ac_func_search_save_LIBS=$LIBS
 
3858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3859
/* end confdefs.h.  */
 
3860
 
 
3861
/* Override any GCC internal prototype to avoid an error.
 
3862
   Use char because int might match the return type of a GCC
 
3863
   builtin and then its argument prototype would still apply.  */
 
3864
#ifdef __cplusplus
 
3865
extern "C"
 
3866
#endif
 
3867
char strerror ();
 
3868
int
 
3869
main ()
 
3870
{
 
3871
return strerror ();
 
3872
  ;
 
3873
  return 0;
 
3874
}
 
3875
_ACEOF
 
3876
for ac_lib in '' cposix; do
 
3877
  if test -z "$ac_lib"; then
 
3878
    ac_res="none required"
 
3879
  else
 
3880
    ac_res=-l$ac_lib
 
3881
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3882
  fi
 
3883
  if ac_fn_c_try_link "$LINENO"; then :
 
3884
  ac_cv_search_strerror=$ac_res
 
3885
fi
 
3886
rm -f core conftest.err conftest.$ac_objext \
 
3887
    conftest$ac_exeext
 
3888
  if ${ac_cv_search_strerror+:} false; then :
 
3889
  break
 
3890
fi
 
3891
done
 
3892
if ${ac_cv_search_strerror+:} false; then :
 
3893
  
 
3894
else
 
3895
  ac_cv_search_strerror=no
 
3896
fi
 
3897
rm conftest.$ac_ext
 
3898
LIBS=$ac_func_search_save_LIBS
 
3899
fi
 
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 
3901
$as_echo "$ac_cv_search_strerror" >&6; }
 
3902
ac_res=$ac_cv_search_strerror
 
3903
if test "$ac_res" != no; then :
 
3904
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3905
  
 
3906
fi
 
3907
 
 
3908
CFLAGS="$saved_CFLAGS"
 
3909
ac_ext=c
 
3910
ac_cpp='$CPP $CPPFLAGS'
 
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3914
if test -n "$ac_tool_prefix"; then
 
3915
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3916
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3918
$as_echo_n "checking for $ac_word... " >&6; }
 
3919
if ${ac_cv_prog_CC+:} false; then :
 
3920
  $as_echo_n "(cached) " >&6
 
3921
else
 
3922
  if test -n "$CC"; then
 
3923
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3924
else
 
3925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3926
for as_dir in $PATH
 
3927
do
 
3928
  IFS=$as_save_IFS
 
3929
  test -z "$as_dir" && as_dir=.
 
3930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3932
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3934
    break 2
 
3935
  fi
 
3936
done
 
3937
  done
 
3938
IFS=$as_save_IFS
 
3939
 
 
3940
fi
 
3941
fi
 
3942
CC=$ac_cv_prog_CC
 
3943
if test -n "$CC"; then
 
3944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3945
$as_echo "$CC" >&6; }
 
3946
else
 
3947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3948
$as_echo "no" >&6; }
 
3949
fi
 
3950
 
 
3951
 
 
3952
fi
 
3953
if test -z "$ac_cv_prog_CC"; then
 
3954
  ac_ct_CC=$CC
 
3955
  # Extract the first word of "gcc", so it can be a program name with args.
 
3956
set dummy gcc; ac_word=$2
 
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3958
$as_echo_n "checking for $ac_word... " >&6; }
 
3959
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3960
  $as_echo_n "(cached) " >&6
 
3961
else
 
3962
  if test -n "$ac_ct_CC"; then
 
3963
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3964
else
 
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3966
for as_dir in $PATH
 
3967
do
 
3968
  IFS=$as_save_IFS
 
3969
  test -z "$as_dir" && as_dir=.
 
3970
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3972
    ac_cv_prog_ac_ct_CC="gcc"
 
3973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3974
    break 2
 
3975
  fi
 
3976
done
 
3977
  done
 
3978
IFS=$as_save_IFS
 
3979
 
 
3980
fi
 
3981
fi
 
3982
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3983
if test -n "$ac_ct_CC"; then
 
3984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3985
$as_echo "$ac_ct_CC" >&6; }
 
3986
else
 
3987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3988
$as_echo "no" >&6; }
 
3989
fi
 
3990
 
 
3991
  if test "x$ac_ct_CC" = x; then
 
3992
    CC=""
 
3993
  else
 
3994
    case $cross_compiling:$ac_tool_warned in
 
3995
yes:)
 
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3997
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3998
ac_tool_warned=yes ;;
 
3999
esac
 
4000
    CC=$ac_ct_CC
 
4001
  fi
 
4002
else
 
4003
  CC="$ac_cv_prog_CC"
 
4004
fi
 
4005
 
 
4006
if test -z "$CC"; then
 
4007
          if test -n "$ac_tool_prefix"; then
 
4008
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4009
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4011
$as_echo_n "checking for $ac_word... " >&6; }
 
4012
if ${ac_cv_prog_CC+:} false; then :
 
4013
  $as_echo_n "(cached) " >&6
 
4014
else
 
4015
  if test -n "$CC"; then
 
4016
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4017
else
 
4018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4019
for as_dir in $PATH
 
4020
do
 
4021
  IFS=$as_save_IFS
 
4022
  test -z "$as_dir" && as_dir=.
 
4023
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4024
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4025
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4026
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4027
    break 2
 
4028
  fi
 
4029
done
 
4030
  done
 
4031
IFS=$as_save_IFS
 
4032
 
 
4033
fi
 
4034
fi
 
4035
CC=$ac_cv_prog_CC
 
4036
if test -n "$CC"; then
 
4037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4038
$as_echo "$CC" >&6; }
 
4039
else
 
4040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4041
$as_echo "no" >&6; }
 
4042
fi
 
4043
 
 
4044
 
 
4045
  fi
 
4046
fi
 
4047
if test -z "$CC"; then
 
4048
  # Extract the first word of "cc", so it can be a program name with args.
 
4049
set dummy cc; ac_word=$2
 
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4051
$as_echo_n "checking for $ac_word... " >&6; }
 
4052
if ${ac_cv_prog_CC+:} false; then :
 
4053
  $as_echo_n "(cached) " >&6
 
4054
else
 
4055
  if test -n "$CC"; then
 
4056
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4057
else
 
4058
  ac_prog_rejected=no
 
4059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4060
for as_dir in $PATH
 
4061
do
 
4062
  IFS=$as_save_IFS
 
4063
  test -z "$as_dir" && as_dir=.
 
4064
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4065
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4066
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4067
       ac_prog_rejected=yes
 
4068
       continue
 
4069
     fi
 
4070
    ac_cv_prog_CC="cc"
 
4071
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4072
    break 2
 
4073
  fi
 
4074
done
 
4075
  done
 
4076
IFS=$as_save_IFS
 
4077
 
 
4078
if test $ac_prog_rejected = yes; then
 
4079
  # We found a bogon in the path, so make sure we never use it.
 
4080
  set dummy $ac_cv_prog_CC
 
4081
  shift
 
4082
  if test $@%:@ != 0; then
 
4083
    # We chose a different compiler from the bogus one.
 
4084
    # However, it has the same basename, so the bogon will be chosen
 
4085
    # first if we set CC to just the basename; use the full file name.
 
4086
    shift
 
4087
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4088
  fi
 
4089
fi
 
4090
fi
 
4091
fi
 
4092
CC=$ac_cv_prog_CC
 
4093
if test -n "$CC"; then
 
4094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4095
$as_echo "$CC" >&6; }
 
4096
else
 
4097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4098
$as_echo "no" >&6; }
 
4099
fi
 
4100
 
 
4101
 
 
4102
fi
 
4103
if test -z "$CC"; then
 
4104
  if test -n "$ac_tool_prefix"; then
 
4105
  for ac_prog in cl.exe
 
4106
  do
 
4107
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4108
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4110
$as_echo_n "checking for $ac_word... " >&6; }
 
4111
if ${ac_cv_prog_CC+:} false; then :
 
4112
  $as_echo_n "(cached) " >&6
 
4113
else
 
4114
  if test -n "$CC"; then
 
4115
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4116
else
 
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4118
for as_dir in $PATH
 
4119
do
 
4120
  IFS=$as_save_IFS
 
4121
  test -z "$as_dir" && as_dir=.
 
4122
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4123
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4124
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4126
    break 2
 
4127
  fi
 
4128
done
 
4129
  done
 
4130
IFS=$as_save_IFS
 
4131
 
 
4132
fi
 
4133
fi
 
4134
CC=$ac_cv_prog_CC
 
4135
if test -n "$CC"; then
 
4136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4137
$as_echo "$CC" >&6; }
 
4138
else
 
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4140
$as_echo "no" >&6; }
 
4141
fi
 
4142
 
 
4143
 
 
4144
    test -n "$CC" && break
 
4145
  done
 
4146
fi
 
4147
if test -z "$CC"; then
 
4148
  ac_ct_CC=$CC
 
4149
  for ac_prog in cl.exe
 
4150
do
 
4151
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4152
set dummy $ac_prog; ac_word=$2
 
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4154
$as_echo_n "checking for $ac_word... " >&6; }
 
4155
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4156
  $as_echo_n "(cached) " >&6
 
4157
else
 
4158
  if test -n "$ac_ct_CC"; then
 
4159
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4160
else
 
4161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4162
for as_dir in $PATH
 
4163
do
 
4164
  IFS=$as_save_IFS
 
4165
  test -z "$as_dir" && as_dir=.
 
4166
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4167
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4168
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4169
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4170
    break 2
 
4171
  fi
 
4172
done
 
4173
  done
 
4174
IFS=$as_save_IFS
 
4175
 
 
4176
fi
 
4177
fi
 
4178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4179
if test -n "$ac_ct_CC"; then
 
4180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4181
$as_echo "$ac_ct_CC" >&6; }
 
4182
else
 
4183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4184
$as_echo "no" >&6; }
 
4185
fi
 
4186
 
 
4187
 
 
4188
  test -n "$ac_ct_CC" && break
 
4189
done
 
4190
 
 
4191
  if test "x$ac_ct_CC" = x; then
 
4192
    CC=""
 
4193
  else
 
4194
    case $cross_compiling:$ac_tool_warned in
 
4195
yes:)
 
4196
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4198
ac_tool_warned=yes ;;
 
4199
esac
 
4200
    CC=$ac_ct_CC
 
4201
  fi
 
4202
fi
 
4203
 
 
4204
fi
 
4205
 
 
4206
 
 
4207
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4208
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4209
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4210
See \`config.log' for more details" "$LINENO" 5; }
 
4211
 
 
4212
# Provide some information about the compiler.
 
4213
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4214
set X $ac_compile
 
4215
ac_compiler=$2
 
4216
for ac_option in --version -v -V -qversion; do
 
4217
  { { ac_try="$ac_compiler $ac_option >&5"
 
4218
case "(($ac_try" in
 
4219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4220
  *) ac_try_echo=$ac_try;;
 
4221
esac
 
4222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4223
$as_echo "$ac_try_echo"; } >&5
 
4224
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4225
  ac_status=$?
 
4226
  if test -s conftest.err; then
 
4227
    sed '10a\
 
4228
... rest of stderr output deleted ...
 
4229
         10q' conftest.err >conftest.er1
 
4230
    cat conftest.er1 >&5
 
4231
  fi
 
4232
  rm -f conftest.er1 conftest.err
 
4233
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4234
  test $ac_status = 0; }
 
4235
done
 
4236
 
 
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4238
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4239
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4240
  $as_echo_n "(cached) " >&6
 
4241
else
 
4242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4243
/* end confdefs.h.  */
 
4244
 
 
4245
int
 
4246
main ()
 
4247
{
 
4248
#ifndef __GNUC__
 
4249
       choke me
 
4250
#endif
 
4251
 
 
4252
  ;
 
4253
  return 0;
 
4254
}
 
4255
_ACEOF
 
4256
if ac_fn_c_try_compile "$LINENO"; then :
 
4257
  ac_compiler_gnu=yes
 
4258
else
 
4259
  ac_compiler_gnu=no
 
4260
fi
 
4261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4262
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4263
 
 
4264
fi
 
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4266
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4267
if test $ac_compiler_gnu = yes; then
 
4268
  GCC=yes
 
4269
else
 
4270
  GCC=
 
4271
fi
 
4272
ac_test_CFLAGS=${CFLAGS+set}
 
4273
ac_save_CFLAGS=$CFLAGS
 
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4275
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4276
if ${ac_cv_prog_cc_g+:} false; then :
 
4277
  $as_echo_n "(cached) " >&6
 
4278
else
 
4279
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4280
   ac_c_werror_flag=yes
 
4281
   ac_cv_prog_cc_g=no
 
4282
   CFLAGS="-g"
 
4283
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4284
/* end confdefs.h.  */
 
4285
 
 
4286
int
 
4287
main ()
 
4288
{
 
4289
 
 
4290
  ;
 
4291
  return 0;
 
4292
}
 
4293
_ACEOF
 
4294
if ac_fn_c_try_compile "$LINENO"; then :
 
4295
  ac_cv_prog_cc_g=yes
 
4296
else
 
4297
  CFLAGS=""
 
4298
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4299
/* end confdefs.h.  */
 
4300
 
 
4301
int
 
4302
main ()
 
4303
{
 
4304
 
 
4305
  ;
 
4306
  return 0;
 
4307
}
 
4308
_ACEOF
 
4309
if ac_fn_c_try_compile "$LINENO"; then :
 
4310
  
 
4311
else
 
4312
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4313
         CFLAGS="-g"
 
4314
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4315
/* end confdefs.h.  */
 
4316
 
 
4317
int
 
4318
main ()
 
4319
{
 
4320
 
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
if ac_fn_c_try_compile "$LINENO"; then :
 
4326
  ac_cv_prog_cc_g=yes
 
4327
fi
 
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4329
fi
 
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4331
fi
 
4332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4333
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4334
fi
 
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4336
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4337
if test "$ac_test_CFLAGS" = set; then
 
4338
  CFLAGS=$ac_save_CFLAGS
 
4339
elif test $ac_cv_prog_cc_g = yes; then
 
4340
  if test "$GCC" = yes; then
 
4341
    CFLAGS="-g -O2"
 
4342
  else
 
4343
    CFLAGS="-g"
 
4344
  fi
 
4345
else
 
4346
  if test "$GCC" = yes; then
 
4347
    CFLAGS="-O2"
 
4348
  else
 
4349
    CFLAGS=
 
4350
  fi
 
4351
fi
 
4352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4353
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4354
if ${ac_cv_prog_cc_c89+:} false; then :
 
4355
  $as_echo_n "(cached) " >&6
 
4356
else
 
4357
  ac_cv_prog_cc_c89=no
 
4358
ac_save_CC=$CC
 
4359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4360
/* end confdefs.h.  */
 
4361
#include <stdarg.h>
 
4362
#include <stdio.h>
 
4363
struct stat;
 
4364
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4365
struct buf { int x; };
 
4366
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4367
static char *e (p, i)
 
4368
     char **p;
 
4369
     int i;
 
4370
{
 
4371
  return p[i];
 
4372
}
 
4373
static char *f (char * (*g) (char **, int), char **p, ...)
 
4374
{
 
4375
  char *s;
 
4376
  va_list v;
 
4377
  va_start (v,p);
 
4378
  s = g (p, va_arg (v,int));
 
4379
  va_end (v);
 
4380
  return s;
 
4381
}
 
4382
 
 
4383
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4384
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4385
   These don't provoke an error unfortunately, instead are silently treated
 
4386
   as 'x'.  The following induces an error, until -std is added to get
 
4387
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4388
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4389
   that's true only with -std.  */
 
4390
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4391
 
 
4392
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4393
   inside strings and character constants.  */
 
4394
#define FOO(x) 'x'
 
4395
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4396
 
 
4397
int test (int i, double x);
 
4398
struct s1 {int (*f) (int a);};
 
4399
struct s2 {int (*f) (double a);};
 
4400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4401
int argc;
 
4402
char **argv;
 
4403
int
 
4404
main ()
 
4405
{
 
4406
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4407
  ;
 
4408
  return 0;
 
4409
}
 
4410
_ACEOF
 
4411
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4412
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4413
do
 
4414
  CC="$ac_save_CC $ac_arg"
 
4415
  if ac_fn_c_try_compile "$LINENO"; then :
 
4416
  ac_cv_prog_cc_c89=$ac_arg
 
4417
fi
 
4418
rm -f core conftest.err conftest.$ac_objext
 
4419
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4420
done
 
4421
rm -f conftest.$ac_ext
 
4422
CC=$ac_save_CC
 
4423
 
 
4424
fi
 
4425
# AC_CACHE_VAL
 
4426
case "x$ac_cv_prog_cc_c89" in
 
4427
  x)
 
4428
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4429
$as_echo "none needed" >&6; } ;;
 
4430
  xno)
 
4431
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4432
$as_echo "unsupported" >&6; } ;;
 
4433
  *)
 
4434
    CC="$CC $ac_cv_prog_cc_c89"
 
4435
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4436
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4437
esac
 
4438
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4439
  
 
4440
fi
 
4441
 
 
4442
ac_ext=c
 
4443
ac_cpp='$CPP $CPPFLAGS'
 
4444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4447
 
 
4448
depcc="$CC"   am_compiler_list=
 
4449
 
 
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4451
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4452
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4453
  $as_echo_n "(cached) " >&6
 
4454
else
 
4455
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4456
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4457
  # making bogus files that we don't know about and never remove.  For
 
4458
  # instance it was reported that on HP-UX the gcc test will end up
 
4459
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4460
  # in D'.
 
4461
  rm -rf conftest.dir
 
4462
  mkdir conftest.dir
 
4463
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4464
  # using a relative directory.
 
4465
  cp "$am_depcomp" conftest.dir
 
4466
  cd conftest.dir
 
4467
  # We will build objects and dependencies in a subdirectory because
 
4468
  # it helps to detect inapplicable dependency modes.  For instance
 
4469
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4470
  # side effect of compilation, but ICC will put the dependencies in
 
4471
  # the current directory while Tru64 will put them in the object
 
4472
  # directory.
 
4473
  mkdir sub
 
4474
 
 
4475
  am_cv_CC_dependencies_compiler_type=none
 
4476
  if test "$am_compiler_list" = ""; then
 
4477
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4478
  fi
 
4479
  am__universal=false
 
4480
  case " $depcc " in #(
 
4481
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4482
     esac
 
4483
 
 
4484
  for depmode in $am_compiler_list; do
 
4485
    # Setup a source with many dependencies, because some compilers
 
4486
    # like to wrap large dependency lists on column 80 (with \), and
 
4487
    # we should not choose a depcomp mode which is confused by this.
 
4488
    #
 
4489
    # We need to recreate these files for each test, as the compiler may
 
4490
    # overwrite some of them when testing with obscure command lines.
 
4491
    # This happens at least with the AIX C compiler.
 
4492
    : > sub/conftest.c
 
4493
    for i in 1 2 3 4 5 6; do
 
4494
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4495
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4496
      # Solaris 8's {/usr,}/bin/sh.
 
4497
      touch sub/conftst$i.h
 
4498
    done
 
4499
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4500
 
 
4501
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4502
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4503
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4504
    # versions had trouble with output in subdirs
 
4505
    am__obj=sub/conftest.${OBJEXT-o}
 
4506
    am__minus_obj="-o $am__obj"
 
4507
    case $depmode in
 
4508
    gcc)
 
4509
      # This depmode causes a compiler race in universal mode.
 
4510
      test "$am__universal" = false || continue
 
4511
      ;;
 
4512
    nosideeffect)
 
4513
      # after this tag, mechanisms are not by side-effect, so they'll
 
4514
      # only be used when explicitly requested
 
4515
      if test "x$enable_dependency_tracking" = xyes; then
 
4516
        continue
 
4517
      else
 
4518
        break
 
4519
      fi
 
4520
      ;;
 
4521
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4522
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4523
      # not run yet.  These depmodes are late enough in the game, and
 
4524
      # so weak that their functioning should not be impacted.
 
4525
      am__obj=conftest.${OBJEXT-o}
 
4526
      am__minus_obj=
 
4527
      ;;
 
4528
    none) break ;;
 
4529
    esac
 
4530
    if depmode=$depmode \
 
4531
       source=sub/conftest.c object=$am__obj \
 
4532
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4533
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4534
         >/dev/null 2>conftest.err &&
 
4535
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4536
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4537
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4538
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4539
      # icc doesn't choke on unknown options, it will just issue warnings
 
4540
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4541
      # that says an option was ignored or not supported.
 
4542
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4543
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4544
      # The diagnosis changed in icc 8.0:
 
4545
      #   icc: Command line remark: option '-MP' not supported
 
4546
      if (grep 'ignoring option' conftest.err ||
 
4547
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4548
        am_cv_CC_dependencies_compiler_type=$depmode
 
4549
        break
 
4550
      fi
 
4551
    fi
 
4552
  done
 
4553
 
 
4554
  cd ..
 
4555
  rm -rf conftest.dir
 
4556
else
 
4557
  am_cv_CC_dependencies_compiler_type=none
 
4558
fi
 
4559
 
 
4560
fi
 
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4562
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4563
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4564
 
 
4565
 if 
 
4566
  test "x$enable_dependency_tracking" != xno \
 
4567
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4568
  am__fastdepCC_TRUE=
 
4569
  am__fastdepCC_FALSE='#'
 
4570
else
 
4571
  am__fastdepCC_TRUE='#'
 
4572
  am__fastdepCC_FALSE=
 
4573
fi
 
4574
 
 
4575
 
 
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4577
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4578
set x ${MAKE-make}
 
4579
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4580
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
4581
  $as_echo_n "(cached) " >&6
 
4582
else
 
4583
  cat >conftest.make <<\_ACEOF
 
4584
SHELL = /bin/sh
 
4585
all:
 
4586
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4587
_ACEOF
 
4588
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
4589
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4590
  *@@@%%%=?*=@@@%%%*)
 
4591
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4592
  *)
 
4593
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4594
esac
 
4595
rm -f conftest.make
 
4596
fi
 
4597
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4599
$as_echo "yes" >&6; }
 
4600
  SET_MAKE=
 
4601
else
 
4602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4603
$as_echo "no" >&6; }
 
4604
  SET_MAKE="MAKE=${MAKE-make}"
 
4605
fi
 
4606
 
 
4607
 
 
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4609
$as_echo_n "checking whether ln -s works... " >&6; }
 
4610
LN_S=$as_ln_s
 
4611
if test "$LN_S" = "ln -s"; then
 
4612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4613
$as_echo "yes" >&6; }
 
4614
else
 
4615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4616
$as_echo "no, using $LN_S" >&6; }
 
4617
fi
 
4618
 
 
4619
 
 
4620
enable_dlopen=yes
 
4621
 
 
4622
 
 
4623
 
 
4624
@%:@ Check whether --enable-static was given.
 
4625
if test "${enable_static+set}" = set; then :
 
4626
  enableval=$enable_static; p=${PACKAGE-default}
 
4627
    case $enableval in
 
4628
    yes) enable_static=yes ;;
 
4629
    no) enable_static=no ;;
 
4630
    *)
 
4631
     enable_static=no
 
4632
      # Look at the argument we got.  We use all the common list separators.
 
4633
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4634
      for pkg in $enableval; do
 
4635
        IFS="$lt_save_ifs"
 
4636
        if test "X$pkg" = "X$p"; then
 
4637
          enable_static=yes
 
4638
        fi
 
4639
      done
 
4640
      IFS="$lt_save_ifs"
 
4641
      ;;
 
4642
    esac
 
4643
else
 
4644
  enable_static=no
 
4645
fi
 
4646
 
 
4647
 
 
4648
    
 
4649
    
 
4650
    
 
4651
    
 
4652
 
 
4653
 
 
4654
 
 
4655
case `pwd` in
 
4656
  *\ * | *\     *)
 
4657
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4658
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4659
esac
 
4660
 
 
4661
 
 
4662
 
 
4663
macro_version='2.4.2'
 
4664
macro_revision='1.3337'
 
4665
 
 
4666
    
 
4667
    
 
4668
    
 
4669
 
 
4670
 
 
4671
    
 
4672
    
 
4673
    
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
ltmain="$ac_aux_dir/ltmain.sh"
 
4679
 
 
4680
# Backslashify metacharacters that are still active within
 
4681
# double-quoted strings.
 
4682
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4683
 
 
4684
# Same as above, but do not quote variable references.
 
4685
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4686
 
 
4687
# Sed substitution to delay expansion of an escaped shell variable in a
 
4688
# double_quote_subst'ed string.
 
4689
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4690
 
 
4691
# Sed substitution to delay expansion of an escaped single quote.
 
4692
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4693
 
 
4694
# Sed substitution to avoid accidental globbing in evaled expressions
 
4695
no_glob_subst='s/\*/\\\*/g'
 
4696
 
 
4697
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4698
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4699
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4700
 
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4702
$as_echo_n "checking how to print strings... " >&6; }
 
4703
# Test print first, because it will be a builtin if present.
 
4704
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4705
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4706
  ECHO='print -r --'
 
4707
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4708
  ECHO='printf %s\n'
 
4709
else
 
4710
  # Use this function as a fallback that always works.
 
4711
  func_fallback_echo ()
 
4712
  {
 
4713
    eval 'cat <<_LTECHO_EOF
 
4714
$1
 
4715
_LTECHO_EOF'
 
4716
  }
 
4717
  ECHO='func_fallback_echo'
 
4718
fi
 
4719
 
 
4720
# func_echo_all arg...
 
4721
# Invoke $ECHO with all args, space-separated.
 
4722
func_echo_all ()
 
4723
{
 
4724
    $ECHO "" 
 
4725
}
 
4726
 
 
4727
case "$ECHO" in
 
4728
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4729
$as_echo "printf" >&6; } ;;
 
4730
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4731
$as_echo "print -r" >&6; } ;;
 
4732
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4733
$as_echo "cat" >&6; } ;;
 
4734
esac
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
    
 
4740
    
 
4741
    
 
4742
 
 
4743
 
 
4744
    
 
4745
    
 
4746
    
 
4747
 
 
4748
 
 
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4750
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4751
if ${ac_cv_path_SED+:} false; then :
 
4752
  $as_echo_n "(cached) " >&6
 
4753
else
 
4754
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4755
     for ac_i in 1 2 3 4 5 6 7; do
 
4756
       ac_script="$ac_script$as_nl$ac_script"
 
4757
     done
 
4758
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4759
     { ac_script=; unset ac_script;}
 
4760
     if test -z "$SED"; then
 
4761
  ac_path_SED_found=false
 
4762
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4763
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4764
for as_dir in $PATH
 
4765
do
 
4766
  IFS=$as_save_IFS
 
4767
  test -z "$as_dir" && as_dir=.
 
4768
    for ac_prog in sed gsed; do
 
4769
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4770
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4771
      as_fn_executable_p "$ac_path_SED" || continue
 
4772
# Check for GNU ac_path_SED and select it if it is found.
 
4773
  # Check for GNU $ac_path_SED
 
4774
case `"$ac_path_SED" --version 2>&1` in
 
4775
*GNU*)
 
4776
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4777
*)
 
4778
  ac_count=0
 
4779
  $as_echo_n 0123456789 >"conftest.in"
 
4780
  while :
 
4781
  do
 
4782
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4783
    mv "conftest.tmp" "conftest.in"
 
4784
    cp "conftest.in" "conftest.nl"
 
4785
    $as_echo '' >> "conftest.nl"
 
4786
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4787
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4788
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4789
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4790
      # Best one so far, save it but keep looking for a better one
 
4791
      ac_cv_path_SED="$ac_path_SED"
 
4792
      ac_path_SED_max=$ac_count
 
4793
    fi
 
4794
    # 10*(2^10) chars as input seems more than enough
 
4795
    test $ac_count -gt 10 && break
 
4796
  done
 
4797
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4798
esac
 
4799
 
 
4800
      $ac_path_SED_found && break 3
 
4801
    done
 
4802
  done
 
4803
  done
 
4804
IFS=$as_save_IFS
 
4805
  if test -z "$ac_cv_path_SED"; then
 
4806
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4807
  fi
 
4808
else
 
4809
  ac_cv_path_SED=$SED
 
4810
fi
 
4811
 
 
4812
fi
 
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4814
$as_echo "$ac_cv_path_SED" >&6; }
 
4815
 SED="$ac_cv_path_SED"
 
4816
  rm -f conftest.sed
 
4817
 
 
4818
test -z "$SED" && SED=sed
 
4819
Xsed="$SED -e 1s/^X//"
 
4820
 
 
4821
    
 
4822
    
 
4823
    
 
4824
 
 
4825
 
 
4826
    
 
4827
    
 
4828
    
 
4829
 
 
4830
 
 
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4832
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4833
if ${ac_cv_path_GREP+:} false; then :
 
4834
  $as_echo_n "(cached) " >&6
 
4835
else
 
4836
  if test -z "$GREP"; then
 
4837
  ac_path_GREP_found=false
 
4838
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4839
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4840
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4841
do
 
4842
  IFS=$as_save_IFS
 
4843
  test -z "$as_dir" && as_dir=.
 
4844
    for ac_prog in grep ggrep; do
 
4845
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4846
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4847
      as_fn_executable_p "$ac_path_GREP" || continue
 
4848
# Check for GNU ac_path_GREP and select it if it is found.
 
4849
  # Check for GNU $ac_path_GREP
 
4850
case `"$ac_path_GREP" --version 2>&1` in
 
4851
*GNU*)
 
4852
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4853
*)
 
4854
  ac_count=0
 
4855
  $as_echo_n 0123456789 >"conftest.in"
 
4856
  while :
 
4857
  do
 
4858
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4859
    mv "conftest.tmp" "conftest.in"
 
4860
    cp "conftest.in" "conftest.nl"
 
4861
    $as_echo 'GREP' >> "conftest.nl"
 
4862
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4863
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4864
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4865
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4866
      # Best one so far, save it but keep looking for a better one
 
4867
      ac_cv_path_GREP="$ac_path_GREP"
 
4868
      ac_path_GREP_max=$ac_count
 
4869
    fi
 
4870
    # 10*(2^10) chars as input seems more than enough
 
4871
    test $ac_count -gt 10 && break
 
4872
  done
 
4873
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4874
esac
 
4875
 
 
4876
      $ac_path_GREP_found && break 3
 
4877
    done
 
4878
  done
 
4879
  done
 
4880
IFS=$as_save_IFS
 
4881
  if test -z "$ac_cv_path_GREP"; then
 
4882
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4883
  fi
 
4884
else
 
4885
  ac_cv_path_GREP=$GREP
 
4886
fi
 
4887
 
 
4888
fi
 
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4890
$as_echo "$ac_cv_path_GREP" >&6; }
 
4891
 GREP="$ac_cv_path_GREP"
 
4892
 
 
4893
 
 
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4895
$as_echo_n "checking for egrep... " >&6; }
 
4896
if ${ac_cv_path_EGREP+:} false; then :
 
4897
  $as_echo_n "(cached) " >&6
 
4898
else
 
4899
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4900
   then ac_cv_path_EGREP="$GREP -E"
 
4901
   else
 
4902
     if test -z "$EGREP"; then
 
4903
  ac_path_EGREP_found=false
 
4904
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4905
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4906
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4907
do
 
4908
  IFS=$as_save_IFS
 
4909
  test -z "$as_dir" && as_dir=.
 
4910
    for ac_prog in egrep; do
 
4911
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4912
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4913
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4914
# Check for GNU ac_path_EGREP and select it if it is found.
 
4915
  # Check for GNU $ac_path_EGREP
 
4916
case `"$ac_path_EGREP" --version 2>&1` in
 
4917
*GNU*)
 
4918
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4919
*)
 
4920
  ac_count=0
 
4921
  $as_echo_n 0123456789 >"conftest.in"
 
4922
  while :
 
4923
  do
 
4924
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4925
    mv "conftest.tmp" "conftest.in"
 
4926
    cp "conftest.in" "conftest.nl"
 
4927
    $as_echo 'EGREP' >> "conftest.nl"
 
4928
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4929
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4930
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4931
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4932
      # Best one so far, save it but keep looking for a better one
 
4933
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4934
      ac_path_EGREP_max=$ac_count
 
4935
    fi
 
4936
    # 10*(2^10) chars as input seems more than enough
 
4937
    test $ac_count -gt 10 && break
 
4938
  done
 
4939
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4940
esac
 
4941
 
 
4942
      $ac_path_EGREP_found && break 3
 
4943
    done
 
4944
  done
 
4945
  done
 
4946
IFS=$as_save_IFS
 
4947
  if test -z "$ac_cv_path_EGREP"; then
 
4948
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4949
  fi
 
4950
else
 
4951
  ac_cv_path_EGREP=$EGREP
 
4952
fi
 
4953
 
 
4954
   fi
 
4955
fi
 
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4957
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4958
 EGREP="$ac_cv_path_EGREP"
 
4959
 
 
4960
 
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4962
$as_echo_n "checking for fgrep... " >&6; }
 
4963
if ${ac_cv_path_FGREP+:} false; then :
 
4964
  $as_echo_n "(cached) " >&6
 
4965
else
 
4966
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4967
   then ac_cv_path_FGREP="$GREP -F"
 
4968
   else
 
4969
     if test -z "$FGREP"; then
 
4970
  ac_path_FGREP_found=false
 
4971
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4972
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4974
do
 
4975
  IFS=$as_save_IFS
 
4976
  test -z "$as_dir" && as_dir=.
 
4977
    for ac_prog in fgrep; do
 
4978
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4979
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4980
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4981
# Check for GNU ac_path_FGREP and select it if it is found.
 
4982
  # Check for GNU $ac_path_FGREP
 
4983
case `"$ac_path_FGREP" --version 2>&1` in
 
4984
*GNU*)
 
4985
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4986
*)
 
4987
  ac_count=0
 
4988
  $as_echo_n 0123456789 >"conftest.in"
 
4989
  while :
 
4990
  do
 
4991
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4992
    mv "conftest.tmp" "conftest.in"
 
4993
    cp "conftest.in" "conftest.nl"
 
4994
    $as_echo 'FGREP' >> "conftest.nl"
 
4995
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4996
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4997
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4998
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4999
      # Best one so far, save it but keep looking for a better one
 
5000
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5001
      ac_path_FGREP_max=$ac_count
 
5002
    fi
 
5003
    # 10*(2^10) chars as input seems more than enough
 
5004
    test $ac_count -gt 10 && break
 
5005
  done
 
5006
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5007
esac
 
5008
 
 
5009
      $ac_path_FGREP_found && break 3
 
5010
    done
 
5011
  done
 
5012
  done
 
5013
IFS=$as_save_IFS
 
5014
  if test -z "$ac_cv_path_FGREP"; then
 
5015
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5016
  fi
 
5017
else
 
5018
  ac_cv_path_FGREP=$FGREP
 
5019
fi
 
5020
 
 
5021
   fi
 
5022
fi
 
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5024
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5025
 FGREP="$ac_cv_path_FGREP"
 
5026
 
 
5027
 
 
5028
test -z "$GREP" && GREP=grep
 
5029
 
 
5030
    
 
5031
    
 
5032
    
 
5033
 
 
5034
 
 
5035
    
 
5036
    
 
5037
    
 
5038
 
 
5039
 
 
5040
    
 
5041
    
 
5042
    
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
@%:@ Check whether --with-gnu-ld was given.
 
5049
if test "${with_gnu_ld+set}" = set; then :
 
5050
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5051
else
 
5052
  with_gnu_ld=no
 
5053
fi
 
5054
 
 
5055
ac_prog=ld
 
5056
if test "$GCC" = yes; then
 
5057
  # Check if gcc -print-prog-name=ld gives a path.
 
5058
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5059
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5060
  case $host in
 
5061
  *-*-mingw*)
 
5062
    # gcc leaves a trailing carriage return which upsets mingw
 
5063
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5064
  *)
 
5065
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5066
  esac
 
5067
  case $ac_prog in
 
5068
    # Accept absolute paths.
 
5069
    [\\/]* | ?:[\\/]*)
 
5070
      re_direlt='/[^/][^/]*/\.\./'
 
5071
      # Canonicalize the pathname of ld
 
5072
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5073
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5074
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5075
      done
 
5076
      test -z "$LD" && LD="$ac_prog"
 
5077
      ;;
 
5078
  "")
 
5079
    # If it fails, then pretend we aren't using GCC.
 
5080
    ac_prog=ld
 
5081
    ;;
 
5082
  *)
 
5083
    # If it is relative, then search for the first ld in PATH.
 
5084
    with_gnu_ld=unknown
 
5085
    ;;
 
5086
  esac
 
5087
elif test "$with_gnu_ld" = yes; then
 
5088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5089
$as_echo_n "checking for GNU ld... " >&6; }
 
5090
else
 
5091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5092
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5093
fi
 
5094
if ${lt_cv_path_LD+:} false; then :
 
5095
  $as_echo_n "(cached) " >&6
 
5096
else
 
5097
  if test -z "$LD"; then
 
5098
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5099
  for ac_dir in $PATH; do
 
5100
    IFS="$lt_save_ifs"
 
5101
    test -z "$ac_dir" && ac_dir=.
 
5102
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5103
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5104
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5105
      # but apparently some variants of GNU ld only accept -v.
 
5106
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5107
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5108
      *GNU* | *'with BFD'*)
 
5109
        test "$with_gnu_ld" != no && break
 
5110
        ;;
 
5111
      *)
 
5112
        test "$with_gnu_ld" != yes && break
 
5113
        ;;
 
5114
      esac
 
5115
    fi
 
5116
  done
 
5117
  IFS="$lt_save_ifs"
 
5118
else
 
5119
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5120
fi
 
5121
fi
 
5122
 
 
5123
LD="$lt_cv_path_LD"
 
5124
if test -n "$LD"; then
 
5125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5126
$as_echo "$LD" >&6; }
 
5127
else
 
5128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5129
$as_echo "no" >&6; }
 
5130
fi
 
5131
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5133
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5134
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5135
  $as_echo_n "(cached) " >&6
 
5136
else
 
5137
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5138
case `$LD -v 2>&1 </dev/null` in
 
5139
*GNU* | *'with BFD'*)
 
5140
  lt_cv_prog_gnu_ld=yes
 
5141
  ;;
 
5142
*)
 
5143
  lt_cv_prog_gnu_ld=no
 
5144
  ;;
 
5145
esac
 
5146
fi
 
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5148
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5149
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5150
 
 
5151
 
 
5152
 
 
5153
 
 
5154
    
 
5155
    
 
5156
    
 
5157
 
 
5158
 
 
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5160
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5161
if ${lt_cv_path_NM+:} false; then :
 
5162
  $as_echo_n "(cached) " >&6
 
5163
else
 
5164
  if test -n "$NM"; then
 
5165
  # Let the user override the test.
 
5166
  lt_cv_path_NM="$NM"
 
5167
else
 
5168
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5169
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5170
    lt_nm_to_check="$lt_nm_to_check nm"
 
5171
  fi
 
5172
  for lt_tmp_nm in $lt_nm_to_check; do
 
5173
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5174
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5175
      IFS="$lt_save_ifs"
 
5176
      test -z "$ac_dir" && ac_dir=.
 
5177
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5178
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5179
        # Check to see if the nm accepts a BSD-compat flag.
 
5180
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5181
        #   nm: unknown option "B" ignored
 
5182
        # Tru64's nm complains that /dev/null is an invalid object file
 
5183
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5184
        */dev/null* | *'Invalid file or object type'*)
 
5185
          lt_cv_path_NM="$tmp_nm -B"
 
5186
          break
 
5187
          ;;
 
5188
        *)
 
5189
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5190
          */dev/null*)
 
5191
            lt_cv_path_NM="$tmp_nm -p"
 
5192
            break
 
5193
            ;;
 
5194
          *)
 
5195
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5196
            continue # so that we can try to find one that supports BSD flags
 
5197
            ;;
 
5198
          esac
 
5199
          ;;
 
5200
        esac
 
5201
      fi
 
5202
    done
 
5203
    IFS="$lt_save_ifs"
 
5204
  done
 
5205
  : ${lt_cv_path_NM=no}
 
5206
fi
 
5207
fi
 
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5209
$as_echo "$lt_cv_path_NM" >&6; }
 
5210
if test "$lt_cv_path_NM" != "no"; then
 
5211
  NM="$lt_cv_path_NM"
 
5212
else
 
5213
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5214
  if test -n "$DUMPBIN"; then :
 
5215
    # Let the user override the test.
 
5216
  else
 
5217
    if test -n "$ac_tool_prefix"; then
 
5218
  for ac_prog in dumpbin "link -dump"
 
5219
  do
 
5220
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5223
$as_echo_n "checking for $ac_word... " >&6; }
 
5224
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5225
  $as_echo_n "(cached) " >&6
 
5226
else
 
5227
  if test -n "$DUMPBIN"; then
 
5228
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5229
else
 
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5231
for as_dir in $PATH
 
5232
do
 
5233
  IFS=$as_save_IFS
 
5234
  test -z "$as_dir" && as_dir=.
 
5235
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5236
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5237
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5238
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5239
    break 2
 
5240
  fi
 
5241
done
 
5242
  done
 
5243
IFS=$as_save_IFS
 
5244
 
 
5245
fi
 
5246
fi
 
5247
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5248
if test -n "$DUMPBIN"; then
 
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5250
$as_echo "$DUMPBIN" >&6; }
 
5251
else
 
5252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5253
$as_echo "no" >&6; }
 
5254
fi
 
5255
 
 
5256
 
 
5257
    test -n "$DUMPBIN" && break
 
5258
  done
 
5259
fi
 
5260
if test -z "$DUMPBIN"; then
 
5261
  ac_ct_DUMPBIN=$DUMPBIN
 
5262
  for ac_prog in dumpbin "link -dump"
 
5263
do
 
5264
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5265
set dummy $ac_prog; ac_word=$2
 
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5267
$as_echo_n "checking for $ac_word... " >&6; }
 
5268
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5269
  $as_echo_n "(cached) " >&6
 
5270
else
 
5271
  if test -n "$ac_ct_DUMPBIN"; then
 
5272
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5273
else
 
5274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5275
for as_dir in $PATH
 
5276
do
 
5277
  IFS=$as_save_IFS
 
5278
  test -z "$as_dir" && as_dir=.
 
5279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5280
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5281
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5283
    break 2
 
5284
  fi
 
5285
done
 
5286
  done
 
5287
IFS=$as_save_IFS
 
5288
 
 
5289
fi
 
5290
fi
 
5291
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5292
if test -n "$ac_ct_DUMPBIN"; then
 
5293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5294
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5295
else
 
5296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5297
$as_echo "no" >&6; }
 
5298
fi
 
5299
 
 
5300
 
 
5301
  test -n "$ac_ct_DUMPBIN" && break
 
5302
done
 
5303
 
 
5304
  if test "x$ac_ct_DUMPBIN" = x; then
 
5305
    DUMPBIN=":"
 
5306
  else
 
5307
    case $cross_compiling:$ac_tool_warned in
 
5308
yes:)
 
5309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5311
ac_tool_warned=yes ;;
 
5312
esac
 
5313
    DUMPBIN=$ac_ct_DUMPBIN
 
5314
  fi
 
5315
fi
 
5316
 
 
5317
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5318
    *COFF*)
 
5319
      DUMPBIN="$DUMPBIN -symbols"
 
5320
      ;;
 
5321
    *)
 
5322
      DUMPBIN=:
 
5323
      ;;
 
5324
    esac
 
5325
  fi
 
5326
  
 
5327
  if test "$DUMPBIN" != ":"; then
 
5328
    NM="$DUMPBIN"
 
5329
  fi
 
5330
fi
 
5331
test -z "$NM" && NM=nm
 
5332
 
 
5333
 
 
5334
    
 
5335
    
 
5336
    
 
5337
 
 
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5339
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5340
if ${lt_cv_nm_interface+:} false; then :
 
5341
  $as_echo_n "(cached) " >&6
 
5342
else
 
5343
  lt_cv_nm_interface="BSD nm"
 
5344
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5345
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5346
  (eval "$ac_compile" 2>conftest.err)
 
5347
  cat conftest.err >&5
 
5348
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5349
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5350
  cat conftest.err >&5
 
5351
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5352
  cat conftest.out >&5
 
5353
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5354
    lt_cv_nm_interface="MS dumpbin"
 
5355
  fi
 
5356
  rm -f conftest*
 
5357
fi
 
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5359
$as_echo "$lt_cv_nm_interface" >&6; }
 
5360
 
 
5361
# find the maximum length of command line arguments
 
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5363
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5364
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5365
  $as_echo_n "(cached) " >&6
 
5366
else
 
5367
    i=0
 
5368
  teststring="ABCD"
 
5369
 
 
5370
  case $build_os in
 
5371
  msdosdjgpp*)
 
5372
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5373
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5374
    # during glob expansion).  Even if it were fixed, the result of this
 
5375
    # check would be larger than it should be.
 
5376
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5377
    ;;
 
5378
 
 
5379
  gnu*)
 
5380
    # Under GNU Hurd, this test is not required because there is
 
5381
    # no limit to the length of command line arguments.
 
5382
    # Libtool will interpret -1 as no limit whatsoever
 
5383
    lt_cv_sys_max_cmd_len=-1;
 
5384
    ;;
 
5385
 
 
5386
  cygwin* | mingw* | cegcc*)
 
5387
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5388
    # about 5 minutes as the teststring grows exponentially.
 
5389
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5390
    # you end up with a "frozen" computer, even though with patience
 
5391
    # the test eventually succeeds (with a max line length of 256k).
 
5392
    # Instead, let's just punt: use the minimum linelength reported by
 
5393
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5394
    lt_cv_sys_max_cmd_len=8192;
 
5395
    ;;
 
5396
 
 
5397
  mint*)
 
5398
    # On MiNT this can take a long time and run out of memory.
 
5399
    lt_cv_sys_max_cmd_len=8192;
 
5400
    ;;
 
5401
 
 
5402
  amigaos*)
 
5403
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5404
    # So we just punt and use a minimum line length of 8192.
 
5405
    lt_cv_sys_max_cmd_len=8192;
 
5406
    ;;
 
5407
 
 
5408
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5409
    # This has been around since 386BSD, at least.  Likely further.
 
5410
    if test -x /sbin/sysctl; then
 
5411
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5412
    elif test -x /usr/sbin/sysctl; then
 
5413
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5414
    else
 
5415
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5416
    fi
 
5417
    # And add a safety zone
 
5418
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5419
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5420
    ;;
 
5421
 
 
5422
  interix*)
 
5423
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5424
    lt_cv_sys_max_cmd_len=196608
 
5425
    ;;
 
5426
 
 
5427
  os2*)
 
5428
    # The test takes a long time on OS/2.
 
5429
    lt_cv_sys_max_cmd_len=8192
 
5430
    ;;
 
5431
 
 
5432
  osf*)
 
5433
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5434
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5435
    # nice to cause kernel panics so lets avoid the loop below.
 
5436
    # First set a reasonable default.
 
5437
    lt_cv_sys_max_cmd_len=16384
 
5438
    #
 
5439
    if test -x /sbin/sysconfig; then
 
5440
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5441
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5442
      esac
 
5443
    fi
 
5444
    ;;
 
5445
  sco3.2v5*)
 
5446
    lt_cv_sys_max_cmd_len=102400
 
5447
    ;;
 
5448
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5449
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5450
    if test -n "$kargmax"; then
 
5451
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5452
    else
 
5453
      lt_cv_sys_max_cmd_len=32768
 
5454
    fi
 
5455
    ;;
 
5456
  *)
 
5457
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5458
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5459
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5460
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5461
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5462
    else
 
5463
      # Make teststring a little bigger before we do anything with it.
 
5464
      # a 1K string should be a reasonable start.
 
5465
      for i in 1 2 3 4 5 6 7 8 ; do
 
5466
        teststring=$teststring$teststring
 
5467
      done
 
5468
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5469
      # If test is not a shell built-in, we'll probably end up computing a
 
5470
      # maximum length that is only half of the actual maximum length, but
 
5471
      # we can't tell.
 
5472
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5473
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5474
              test $i != 17 # 1/2 MB should be enough
 
5475
      do
 
5476
        i=`expr $i + 1`
 
5477
        teststring=$teststring$teststring
 
5478
      done
 
5479
      # Only check the string length outside the loop.
 
5480
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5481
      teststring=
 
5482
      # Add a significant safety factor because C++ compilers can tack on
 
5483
      # massive amounts of additional arguments before passing them to the
 
5484
      # linker.  It appears as though 1/2 is a usable value.
 
5485
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5486
    fi
 
5487
    ;;
 
5488
  esac
 
5489
 
 
5490
fi
 
5491
 
 
5492
if test -n $lt_cv_sys_max_cmd_len ; then
 
5493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5494
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5495
else
 
5496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5497
$as_echo "none" >&6; }
 
5498
fi
 
5499
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5500
 
 
5501
    
 
5502
    
 
5503
    
 
5504
 
 
5505
 
 
5506
: ${CP="cp -f"}
 
5507
: ${MV="mv -f"}
 
5508
: ${RM="rm -f"}
 
5509
 
 
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5511
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5512
# Try some XSI features
 
5513
xsi_shell=no
 
5514
( _lt_dummy="a/b/c"
 
5515
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5516
      = c,a/b,b/c, \
 
5517
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5518
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5519
  && xsi_shell=yes
 
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5521
$as_echo "$xsi_shell" >&6; }
 
5522
 
 
5523
 
 
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5525
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5526
lt_shell_append=no
 
5527
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5528
    >/dev/null 2>&1 \
 
5529
  && lt_shell_append=yes
 
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5531
$as_echo "$lt_shell_append" >&6; }
 
5532
 
 
5533
 
 
5534
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5535
  lt_unset=unset
 
5536
else
 
5537
  lt_unset=false
 
5538
fi
 
5539
 
 
5540
    
 
5541
    
 
5542
    
 
5543
 
 
5544
# test EBCDIC or ASCII
 
5545
case `echo X|tr X '\101'` in
 
5546
 A) # ASCII based system
 
5547
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5548
  lt_SP2NL='tr \040 \012'
 
5549
  lt_NL2SP='tr \015\012 \040\040'
 
5550
  ;;
 
5551
 *) # EBCDIC based system
 
5552
  lt_SP2NL='tr \100 \n'
 
5553
  lt_NL2SP='tr \r\n \100\100'
 
5554
  ;;
 
5555
esac
 
5556
 
 
5557
    
 
5558
    
 
5559
    
 
5560
 
 
5561
    
 
5562
    
 
5563
    
 
5564
 
 
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5566
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5567
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5568
  $as_echo_n "(cached) " >&6
 
5569
else
 
5570
  case $host in
 
5571
  *-*-mingw* )
 
5572
    case $build in
 
5573
      *-*-mingw* ) # actually msys
 
5574
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5575
        ;;
 
5576
      *-*-cygwin* )
 
5577
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5578
        ;;
 
5579
      * ) # otherwise, assume *nix
 
5580
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5581
        ;;
 
5582
    esac
 
5583
    ;;
 
5584
  *-*-cygwin* )
 
5585
    case $build in
 
5586
      *-*-mingw* ) # actually msys
 
5587
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5588
        ;;
 
5589
      *-*-cygwin* )
 
5590
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5591
        ;;
 
5592
      * ) # otherwise, assume *nix
 
5593
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5594
        ;;
 
5595
    esac
 
5596
    ;;
 
5597
  * ) # unhandled hosts (and "normal" native builds)
 
5598
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5599
    ;;
 
5600
esac
 
5601
 
 
5602
fi
 
5603
 
 
5604
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5606
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5607
 
 
5608
    
 
5609
    
 
5610
    
 
5611
 
 
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5613
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5614
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5615
  $as_echo_n "(cached) " >&6
 
5616
else
 
5617
  #assume ordinary cross tools, or native build.
 
5618
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5619
case $host in
 
5620
  *-*-mingw* )
 
5621
    case $build in
 
5622
      *-*-mingw* ) # actually msys
 
5623
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5624
        ;;
 
5625
    esac
 
5626
    ;;
 
5627
esac
 
5628
 
 
5629
fi
 
5630
 
 
5631
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5633
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5634
 
 
5635
    
 
5636
    
 
5637
    
 
5638
 
 
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5640
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5641
if ${lt_cv_ld_reload_flag+:} false; then :
 
5642
  $as_echo_n "(cached) " >&6
 
5643
else
 
5644
  lt_cv_ld_reload_flag='-r'
 
5645
fi
 
5646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5647
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5648
reload_flag=$lt_cv_ld_reload_flag
 
5649
case $reload_flag in
 
5650
"" | " "*) ;;
 
5651
*) reload_flag=" $reload_flag" ;;
 
5652
esac
 
5653
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5654
case $host_os in
 
5655
  cygwin* | mingw* | pw32* | cegcc*)
 
5656
    if test "$GCC" != yes; then
 
5657
      reload_cmds=false
 
5658
    fi
 
5659
    ;;
 
5660
  darwin*)
 
5661
    if test "$GCC" = yes; then
 
5662
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5663
    else
 
5664
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5665
    fi
 
5666
    ;;
 
5667
esac
 
5668
 
 
5669
    
 
5670
    
 
5671
    
 
5672
 
 
5673
    
 
5674
    
 
5675
    
 
5676
 
 
5677
if test -n "$ac_tool_prefix"; then
 
5678
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5679
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5681
$as_echo_n "checking for $ac_word... " >&6; }
 
5682
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5683
  $as_echo_n "(cached) " >&6
 
5684
else
 
5685
  if test -n "$OBJDUMP"; then
 
5686
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5687
else
 
5688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5689
for as_dir in $PATH
 
5690
do
 
5691
  IFS=$as_save_IFS
 
5692
  test -z "$as_dir" && as_dir=.
 
5693
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5694
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5695
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5696
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5697
    break 2
 
5698
  fi
 
5699
done
 
5700
  done
 
5701
IFS=$as_save_IFS
 
5702
 
 
5703
fi
 
5704
fi
 
5705
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5706
if test -n "$OBJDUMP"; then
 
5707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5708
$as_echo "$OBJDUMP" >&6; }
 
5709
else
 
5710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5711
$as_echo "no" >&6; }
 
5712
fi
 
5713
 
 
5714
 
 
5715
fi
 
5716
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5717
  ac_ct_OBJDUMP=$OBJDUMP
 
5718
  # Extract the first word of "objdump", so it can be a program name with args.
 
5719
set dummy objdump; ac_word=$2
 
5720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5721
$as_echo_n "checking for $ac_word... " >&6; }
 
5722
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5723
  $as_echo_n "(cached) " >&6
 
5724
else
 
5725
  if test -n "$ac_ct_OBJDUMP"; then
 
5726
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5727
else
 
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5729
for as_dir in $PATH
 
5730
do
 
5731
  IFS=$as_save_IFS
 
5732
  test -z "$as_dir" && as_dir=.
 
5733
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5734
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5735
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5736
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5737
    break 2
 
5738
  fi
 
5739
done
 
5740
  done
 
5741
IFS=$as_save_IFS
 
5742
 
 
5743
fi
 
5744
fi
 
5745
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5746
if test -n "$ac_ct_OBJDUMP"; then
 
5747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5748
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5749
else
 
5750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5751
$as_echo "no" >&6; }
 
5752
fi
 
5753
 
 
5754
  if test "x$ac_ct_OBJDUMP" = x; then
 
5755
    OBJDUMP="false"
 
5756
  else
 
5757
    case $cross_compiling:$ac_tool_warned in
 
5758
yes:)
 
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5761
ac_tool_warned=yes ;;
 
5762
esac
 
5763
    OBJDUMP=$ac_ct_OBJDUMP
 
5764
  fi
 
5765
else
 
5766
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5767
fi
 
5768
 
 
5769
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5770
 
 
5771
    
 
5772
    
 
5773
    
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5780
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5781
if ${lt_cv_deplibs_check_method+:} false; then :
 
5782
  $as_echo_n "(cached) " >&6
 
5783
else
 
5784
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5785
lt_cv_file_magic_test_file=
 
5786
lt_cv_deplibs_check_method='unknown'
 
5787
# Need to set the preceding variable on all platforms that support
 
5788
# interlibrary dependencies.
 
5789
# 'none' -- dependencies not supported.
 
5790
# `unknown' -- same as none, but documents that we really don't know.
 
5791
# 'pass_all' -- all dependencies passed with no checks.
 
5792
# 'test_compile' -- check by making test program.
 
5793
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5794
# which responds to the $file_magic_cmd with a given extended regex.
 
5795
# If you have `file' or equivalent on your system and you're not sure
 
5796
# whether `pass_all' will *always* work, you probably want this one.
 
5797
 
 
5798
case $host_os in
 
5799
aix[4-9]*)
 
5800
  lt_cv_deplibs_check_method=pass_all
 
5801
  ;;
 
5802
 
 
5803
beos*)
 
5804
  lt_cv_deplibs_check_method=pass_all
 
5805
  ;;
 
5806
 
 
5807
bsdi[45]*)
 
5808
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5809
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5810
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5811
  ;;
 
5812
 
 
5813
cygwin*)
 
5814
  # func_win32_libid is a shell function defined in ltmain.sh
 
5815
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5816
  lt_cv_file_magic_cmd='func_win32_libid'
 
5817
  ;;
 
5818
 
 
5819
mingw* | pw32*)
 
5820
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5821
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5822
  # unless we find 'file', for example because we are cross-compiling.
 
5823
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5824
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5825
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5826
    lt_cv_file_magic_cmd='func_win32_libid'
 
5827
  else
 
5828
    # Keep this pattern in sync with the one in func_win32_libid.
 
5829
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5830
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5831
  fi
 
5832
  ;;
 
5833
 
 
5834
cegcc*)
 
5835
  # use the weaker test based on 'objdump'. See mingw*.
 
5836
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5837
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5838
  ;;
 
5839
 
 
5840
darwin* | rhapsody*)
 
5841
  lt_cv_deplibs_check_method=pass_all
 
5842
  ;;
 
5843
 
 
5844
freebsd* | dragonfly*)
 
5845
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5846
    case $host_cpu in
 
5847
    i*86 )
 
5848
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5849
      # Let's accept both of them until this is cleared up.
 
5850
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5851
      lt_cv_file_magic_cmd=/usr/bin/file
 
5852
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5853
      ;;
 
5854
    esac
 
5855
  else
 
5856
    lt_cv_deplibs_check_method=pass_all
 
5857
  fi
 
5858
  ;;
 
5859
 
 
5860
haiku*)
 
5861
  lt_cv_deplibs_check_method=pass_all
 
5862
  ;;
 
5863
 
 
5864
hpux10.20* | hpux11*)
 
5865
  lt_cv_file_magic_cmd=/usr/bin/file
 
5866
  case $host_cpu in
 
5867
  ia64*)
 
5868
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5869
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5870
    ;;
 
5871
  hppa*64*)
 
5872
    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]'
 
5873
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5874
    ;;
 
5875
  *)
 
5876
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5877
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5878
    ;;
 
5879
  esac
 
5880
  ;;
 
5881
 
 
5882
interix[3-9]*)
 
5883
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5884
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5885
  ;;
 
5886
 
 
5887
irix5* | irix6* | nonstopux*)
 
5888
  case $LD in
 
5889
  *-32|*"-32 ") libmagic=32-bit;;
 
5890
  *-n32|*"-n32 ") libmagic=N32;;
 
5891
  *-64|*"-64 ") libmagic=64-bit;;
 
5892
  *) libmagic=never-match;;
 
5893
  esac
 
5894
  lt_cv_deplibs_check_method=pass_all
 
5895
  ;;
 
5896
 
 
5897
# This must be glibc/ELF.
 
5898
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5899
  lt_cv_deplibs_check_method=pass_all
 
5900
  ;;
 
5901
 
 
5902
netbsd* | netbsdelf*-gnu)
 
5903
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5904
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5905
  else
 
5906
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5907
  fi
 
5908
  ;;
 
5909
 
 
5910
newos6*)
 
5911
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5912
  lt_cv_file_magic_cmd=/usr/bin/file
 
5913
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5914
  ;;
 
5915
 
 
5916
*nto* | *qnx*)
 
5917
  lt_cv_deplibs_check_method=pass_all
 
5918
  ;;
 
5919
 
 
5920
openbsd*)
 
5921
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5922
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5923
  else
 
5924
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5925
  fi
 
5926
  ;;
 
5927
 
 
5928
osf3* | osf4* | osf5*)
 
5929
  lt_cv_deplibs_check_method=pass_all
 
5930
  ;;
 
5931
 
 
5932
rdos*)
 
5933
  lt_cv_deplibs_check_method=pass_all
 
5934
  ;;
 
5935
 
 
5936
solaris*)
 
5937
  lt_cv_deplibs_check_method=pass_all
 
5938
  ;;
 
5939
 
 
5940
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5941
  lt_cv_deplibs_check_method=pass_all
 
5942
  ;;
 
5943
 
 
5944
sysv4 | sysv4.3*)
 
5945
  case $host_vendor in
 
5946
  motorola)
 
5947
    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]'
 
5948
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5949
    ;;
 
5950
  ncr)
 
5951
    lt_cv_deplibs_check_method=pass_all
 
5952
    ;;
 
5953
  sequent)
 
5954
    lt_cv_file_magic_cmd='/bin/file'
 
5955
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5956
    ;;
 
5957
  sni)
 
5958
    lt_cv_file_magic_cmd='/bin/file'
 
5959
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5960
    lt_cv_file_magic_test_file=/lib/libc.so
 
5961
    ;;
 
5962
  siemens)
 
5963
    lt_cv_deplibs_check_method=pass_all
 
5964
    ;;
 
5965
  pc)
 
5966
    lt_cv_deplibs_check_method=pass_all
 
5967
    ;;
 
5968
  esac
 
5969
  ;;
 
5970
 
 
5971
tpf*)
 
5972
  lt_cv_deplibs_check_method=pass_all
 
5973
  ;;
 
5974
esac
 
5975
 
 
5976
fi
 
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5978
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5979
 
 
5980
file_magic_glob=
 
5981
want_nocaseglob=no
 
5982
if test "$build" = "$host"; then
 
5983
  case $host_os in
 
5984
  mingw* | pw32*)
 
5985
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5986
      want_nocaseglob=yes
 
5987
    else
 
5988
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5989
    fi
 
5990
    ;;
 
5991
  esac
 
5992
fi
 
5993
 
 
5994
file_magic_cmd=$lt_cv_file_magic_cmd
 
5995
deplibs_check_method=$lt_cv_deplibs_check_method
 
5996
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5997
 
 
5998
 
 
5999
    
 
6000
    
 
6001
    
 
6002
 
 
6003
 
 
6004
    
 
6005
    
 
6006
    
 
6007
 
 
6008
 
 
6009
    
 
6010
    
 
6011
    
 
6012
 
 
6013
 
 
6014
    
 
6015
    
 
6016
    
 
6017
 
 
6018
 
 
6019
if test -n "$ac_tool_prefix"; then
 
6020
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6021
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6023
$as_echo_n "checking for $ac_word... " >&6; }
 
6024
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6025
  $as_echo_n "(cached) " >&6
 
6026
else
 
6027
  if test -n "$DLLTOOL"; then
 
6028
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6029
else
 
6030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6031
for as_dir in $PATH
 
6032
do
 
6033
  IFS=$as_save_IFS
 
6034
  test -z "$as_dir" && as_dir=.
 
6035
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6036
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6037
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6038
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6039
    break 2
 
6040
  fi
 
6041
done
 
6042
  done
 
6043
IFS=$as_save_IFS
 
6044
 
 
6045
fi
 
6046
fi
 
6047
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6048
if test -n "$DLLTOOL"; then
 
6049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6050
$as_echo "$DLLTOOL" >&6; }
 
6051
else
 
6052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6053
$as_echo "no" >&6; }
 
6054
fi
 
6055
 
 
6056
 
 
6057
fi
 
6058
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6059
  ac_ct_DLLTOOL=$DLLTOOL
 
6060
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6061
set dummy dlltool; ac_word=$2
 
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6063
$as_echo_n "checking for $ac_word... " >&6; }
 
6064
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6065
  $as_echo_n "(cached) " >&6
 
6066
else
 
6067
  if test -n "$ac_ct_DLLTOOL"; then
 
6068
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6069
else
 
6070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6071
for as_dir in $PATH
 
6072
do
 
6073
  IFS=$as_save_IFS
 
6074
  test -z "$as_dir" && as_dir=.
 
6075
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6076
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6077
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6079
    break 2
 
6080
  fi
 
6081
done
 
6082
  done
 
6083
IFS=$as_save_IFS
 
6084
 
 
6085
fi
 
6086
fi
 
6087
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6088
if test -n "$ac_ct_DLLTOOL"; then
 
6089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6090
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6091
else
 
6092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6093
$as_echo "no" >&6; }
 
6094
fi
 
6095
 
 
6096
  if test "x$ac_ct_DLLTOOL" = x; then
 
6097
    DLLTOOL="false"
 
6098
  else
 
6099
    case $cross_compiling:$ac_tool_warned in
 
6100
yes:)
 
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6103
ac_tool_warned=yes ;;
 
6104
esac
 
6105
    DLLTOOL=$ac_ct_DLLTOOL
 
6106
  fi
 
6107
else
 
6108
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6109
fi
 
6110
 
 
6111
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6112
 
 
6113
    
 
6114
    
 
6115
    
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6123
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6124
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6125
  $as_echo_n "(cached) " >&6
 
6126
else
 
6127
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6128
 
 
6129
case $host_os in
 
6130
cygwin* | mingw* | pw32* | cegcc*)
 
6131
  # two different shell functions defined in ltmain.sh
 
6132
  # decide which to use based on capabilities of $DLLTOOL
 
6133
  case `$DLLTOOL --help 2>&1` in
 
6134
  *--identify-strict*)
 
6135
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6136
    ;;
 
6137
  *)
 
6138
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6139
    ;;
 
6140
  esac
 
6141
  ;;
 
6142
*)
 
6143
  # fallback: assume linklib IS sharedlib
 
6144
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6145
  ;;
 
6146
esac
 
6147
 
 
6148
fi
 
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6150
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6151
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6152
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6153
 
 
6154
 
 
6155
    
 
6156
    
 
6157
    
 
6158
 
 
6159
 
 
6160
if test -n "$ac_tool_prefix"; then
 
6161
  for ac_prog in ar
 
6162
  do
 
6163
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6164
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6166
$as_echo_n "checking for $ac_word... " >&6; }
 
6167
if ${ac_cv_prog_AR+:} false; then :
 
6168
  $as_echo_n "(cached) " >&6
 
6169
else
 
6170
  if test -n "$AR"; then
 
6171
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6172
else
 
6173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6174
for as_dir in $PATH
 
6175
do
 
6176
  IFS=$as_save_IFS
 
6177
  test -z "$as_dir" && as_dir=.
 
6178
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6179
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6180
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6181
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6182
    break 2
 
6183
  fi
 
6184
done
 
6185
  done
 
6186
IFS=$as_save_IFS
 
6187
 
 
6188
fi
 
6189
fi
 
6190
AR=$ac_cv_prog_AR
 
6191
if test -n "$AR"; then
 
6192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6193
$as_echo "$AR" >&6; }
 
6194
else
 
6195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6196
$as_echo "no" >&6; }
 
6197
fi
 
6198
 
 
6199
 
 
6200
    test -n "$AR" && break
 
6201
  done
 
6202
fi
 
6203
if test -z "$AR"; then
 
6204
  ac_ct_AR=$AR
 
6205
  for ac_prog in ar
 
6206
do
 
6207
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6208
set dummy $ac_prog; ac_word=$2
 
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6210
$as_echo_n "checking for $ac_word... " >&6; }
 
6211
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6212
  $as_echo_n "(cached) " >&6
 
6213
else
 
6214
  if test -n "$ac_ct_AR"; then
 
6215
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6216
else
 
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6218
for as_dir in $PATH
 
6219
do
 
6220
  IFS=$as_save_IFS
 
6221
  test -z "$as_dir" && as_dir=.
 
6222
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6223
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6224
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6225
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6226
    break 2
 
6227
  fi
 
6228
done
 
6229
  done
 
6230
IFS=$as_save_IFS
 
6231
 
 
6232
fi
 
6233
fi
 
6234
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6235
if test -n "$ac_ct_AR"; then
 
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6237
$as_echo "$ac_ct_AR" >&6; }
 
6238
else
 
6239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6240
$as_echo "no" >&6; }
 
6241
fi
 
6242
 
 
6243
 
 
6244
  test -n "$ac_ct_AR" && break
 
6245
done
 
6246
 
 
6247
  if test "x$ac_ct_AR" = x; then
 
6248
    AR="false"
 
6249
  else
 
6250
    case $cross_compiling:$ac_tool_warned in
 
6251
yes:)
 
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6253
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6254
ac_tool_warned=yes ;;
 
6255
esac
 
6256
    AR=$ac_ct_AR
 
6257
  fi
 
6258
fi
 
6259
 
 
6260
: ${AR=ar}
 
6261
: ${AR_FLAGS=cru}
 
6262
 
 
6263
    
 
6264
    
 
6265
    
 
6266
 
 
6267
 
 
6268
    
 
6269
    
 
6270
    
 
6271
 
 
6272
 
 
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6274
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6275
if ${lt_cv_ar_at_file+:} false; then :
 
6276
  $as_echo_n "(cached) " >&6
 
6277
else
 
6278
  lt_cv_ar_at_file=no
 
6279
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6280
/* end confdefs.h.  */
 
6281
 
 
6282
int
 
6283
main ()
 
6284
{
 
6285
 
 
6286
  ;
 
6287
  return 0;
 
6288
}
 
6289
_ACEOF
 
6290
if ac_fn_c_try_compile "$LINENO"; then :
 
6291
  echo conftest.$ac_objext > conftest.lst
 
6292
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6293
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6294
  (eval $lt_ar_try) 2>&5
 
6295
  ac_status=$?
 
6296
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6297
  test $ac_status = 0; }
 
6298
      if test "$ac_status" -eq 0; then
 
6299
        # Ensure the archiver fails upon bogus file names.
 
6300
        rm -f conftest.$ac_objext libconftest.a
 
6301
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6302
  (eval $lt_ar_try) 2>&5
 
6303
  ac_status=$?
 
6304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6305
  test $ac_status = 0; }
 
6306
        if test "$ac_status" -ne 0; then
 
6307
          lt_cv_ar_at_file=@
 
6308
        fi
 
6309
      fi
 
6310
      rm -f conftest.* libconftest.a
 
6311
     
 
6312
fi
 
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6314
  
 
6315
fi
 
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6317
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6318
 
 
6319
if test "x$lt_cv_ar_at_file" = xno; then
 
6320
  archiver_list_spec=
 
6321
else
 
6322
  archiver_list_spec=$lt_cv_ar_at_file
 
6323
fi
 
6324
 
 
6325
    
 
6326
    
 
6327
    
 
6328
 
 
6329
 
 
6330
 
 
6331
if test -n "$ac_tool_prefix"; then
 
6332
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6333
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6335
$as_echo_n "checking for $ac_word... " >&6; }
 
6336
if ${ac_cv_prog_STRIP+:} false; then :
 
6337
  $as_echo_n "(cached) " >&6
 
6338
else
 
6339
  if test -n "$STRIP"; then
 
6340
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6341
else
 
6342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6343
for as_dir in $PATH
 
6344
do
 
6345
  IFS=$as_save_IFS
 
6346
  test -z "$as_dir" && as_dir=.
 
6347
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6348
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6349
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6351
    break 2
 
6352
  fi
 
6353
done
 
6354
  done
 
6355
IFS=$as_save_IFS
 
6356
 
 
6357
fi
 
6358
fi
 
6359
STRIP=$ac_cv_prog_STRIP
 
6360
if test -n "$STRIP"; then
 
6361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6362
$as_echo "$STRIP" >&6; }
 
6363
else
 
6364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6365
$as_echo "no" >&6; }
 
6366
fi
 
6367
 
 
6368
 
 
6369
fi
 
6370
if test -z "$ac_cv_prog_STRIP"; then
 
6371
  ac_ct_STRIP=$STRIP
 
6372
  # Extract the first word of "strip", so it can be a program name with args.
 
6373
set dummy strip; ac_word=$2
 
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6375
$as_echo_n "checking for $ac_word... " >&6; }
 
6376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6377
  $as_echo_n "(cached) " >&6
 
6378
else
 
6379
  if test -n "$ac_ct_STRIP"; then
 
6380
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6381
else
 
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6383
for as_dir in $PATH
 
6384
do
 
6385
  IFS=$as_save_IFS
 
6386
  test -z "$as_dir" && as_dir=.
 
6387
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6388
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6389
    ac_cv_prog_ac_ct_STRIP="strip"
 
6390
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6391
    break 2
 
6392
  fi
 
6393
done
 
6394
  done
 
6395
IFS=$as_save_IFS
 
6396
 
 
6397
fi
 
6398
fi
 
6399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6400
if test -n "$ac_ct_STRIP"; then
 
6401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6402
$as_echo "$ac_ct_STRIP" >&6; }
 
6403
else
 
6404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6405
$as_echo "no" >&6; }
 
6406
fi
 
6407
 
 
6408
  if test "x$ac_ct_STRIP" = x; then
 
6409
    STRIP=":"
 
6410
  else
 
6411
    case $cross_compiling:$ac_tool_warned in
 
6412
yes:)
 
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6415
ac_tool_warned=yes ;;
 
6416
esac
 
6417
    STRIP=$ac_ct_STRIP
 
6418
  fi
 
6419
else
 
6420
  STRIP="$ac_cv_prog_STRIP"
 
6421
fi
 
6422
 
 
6423
test -z "$STRIP" && STRIP=:
 
6424
 
 
6425
    
 
6426
    
 
6427
    
 
6428
 
 
6429
 
 
6430
if test -n "$ac_tool_prefix"; then
 
6431
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6432
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6434
$as_echo_n "checking for $ac_word... " >&6; }
 
6435
if ${ac_cv_prog_RANLIB+:} false; then :
 
6436
  $as_echo_n "(cached) " >&6
 
6437
else
 
6438
  if test -n "$RANLIB"; then
 
6439
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6440
else
 
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6442
for as_dir in $PATH
 
6443
do
 
6444
  IFS=$as_save_IFS
 
6445
  test -z "$as_dir" && as_dir=.
 
6446
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6447
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6448
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6450
    break 2
 
6451
  fi
 
6452
done
 
6453
  done
 
6454
IFS=$as_save_IFS
 
6455
 
 
6456
fi
 
6457
fi
 
6458
RANLIB=$ac_cv_prog_RANLIB
 
6459
if test -n "$RANLIB"; then
 
6460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6461
$as_echo "$RANLIB" >&6; }
 
6462
else
 
6463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6464
$as_echo "no" >&6; }
 
6465
fi
 
6466
 
 
6467
 
 
6468
fi
 
6469
if test -z "$ac_cv_prog_RANLIB"; then
 
6470
  ac_ct_RANLIB=$RANLIB
 
6471
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6472
set dummy ranlib; ac_word=$2
 
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6474
$as_echo_n "checking for $ac_word... " >&6; }
 
6475
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6476
  $as_echo_n "(cached) " >&6
 
6477
else
 
6478
  if test -n "$ac_ct_RANLIB"; then
 
6479
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6480
else
 
6481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6482
for as_dir in $PATH
 
6483
do
 
6484
  IFS=$as_save_IFS
 
6485
  test -z "$as_dir" && as_dir=.
 
6486
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6487
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6488
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6490
    break 2
 
6491
  fi
 
6492
done
 
6493
  done
 
6494
IFS=$as_save_IFS
 
6495
 
 
6496
fi
 
6497
fi
 
6498
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6499
if test -n "$ac_ct_RANLIB"; then
 
6500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6501
$as_echo "$ac_ct_RANLIB" >&6; }
 
6502
else
 
6503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6504
$as_echo "no" >&6; }
 
6505
fi
 
6506
 
 
6507
  if test "x$ac_ct_RANLIB" = x; then
 
6508
    RANLIB=":"
 
6509
  else
 
6510
    case $cross_compiling:$ac_tool_warned in
 
6511
yes:)
 
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6514
ac_tool_warned=yes ;;
 
6515
esac
 
6516
    RANLIB=$ac_ct_RANLIB
 
6517
  fi
 
6518
else
 
6519
  RANLIB="$ac_cv_prog_RANLIB"
 
6520
fi
 
6521
 
 
6522
test -z "$RANLIB" && RANLIB=:
 
6523
 
 
6524
    
 
6525
    
 
6526
    
 
6527
 
 
6528
 
 
6529
# Determine commands to create old-style static archives.
 
6530
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6531
old_postinstall_cmds='chmod 644 $oldlib'
 
6532
old_postuninstall_cmds=
 
6533
 
 
6534
if test -n "$RANLIB"; then
 
6535
  case $host_os in
 
6536
  openbsd*)
 
6537
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6538
    ;;
 
6539
  *)
 
6540
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6541
    ;;
 
6542
  esac
 
6543
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6544
fi
 
6545
 
 
6546
case $host_os in
 
6547
  darwin*)
 
6548
    lock_old_archive_extraction=yes ;;
 
6549
  *)
 
6550
    lock_old_archive_extraction=no ;;
 
6551
esac
 
6552
 
 
6553
    
 
6554
    
 
6555
    
 
6556
 
 
6557
 
 
6558
    
 
6559
    
 
6560
    
 
6561
 
 
6562
 
 
6563
    
 
6564
    
 
6565
    
 
6566
 
 
6567
 
 
6568
    
 
6569
    
 
6570
    
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
    
 
6576
    
 
6577
    
 
6578
 
 
6579
    
 
6580
    
 
6581
    
 
6582
 
 
6583
    
 
6584
    
 
6585
    
 
6586
 
 
6587
    
 
6588
    
 
6589
    
 
6590
 
 
6591
# If no C compiler was specified, use CC.
 
6592
LTCC=${LTCC-"$CC"}
 
6593
 
 
6594
# If no C compiler flags were specified, use CFLAGS.
 
6595
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6596
 
 
6597
# Allow CC to be a program name with arguments.
 
6598
compiler=$CC
 
6599
 
 
6600
 
 
6601
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6603
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6604
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6605
  $as_echo_n "(cached) " >&6
 
6606
else
 
6607
  
 
6608
# These are sane defaults that work on at least a few old systems.
 
6609
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6610
 
 
6611
# Character class describing NM global symbol codes.
 
6612
symcode='[BCDEGRST]'
 
6613
 
 
6614
# Regexp to match symbols that can be accessed directly from C.
 
6615
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6616
 
 
6617
# Define system-specific variables.
 
6618
case $host_os in
 
6619
aix*)
 
6620
  symcode='[BCDT]'
 
6621
  ;;
 
6622
cygwin* | mingw* | pw32* | cegcc*)
 
6623
  symcode='[ABCDGISTW]'
 
6624
  ;;
 
6625
hpux*)
 
6626
  if test "$host_cpu" = ia64; then
 
6627
    symcode='[ABCDEGRST]'
 
6628
  fi
 
6629
  ;;
 
6630
irix* | nonstopux*)
 
6631
  symcode='[BCDEGRST]'
 
6632
  ;;
 
6633
osf*)
 
6634
  symcode='[BCDEGQRST]'
 
6635
  ;;
 
6636
solaris*)
 
6637
  symcode='[BDRT]'
 
6638
  ;;
 
6639
sco3.2v5*)
 
6640
  symcode='[DT]'
 
6641
  ;;
 
6642
sysv4.2uw2*)
 
6643
  symcode='[DT]'
 
6644
  ;;
 
6645
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6646
  symcode='[ABDT]'
 
6647
  ;;
 
6648
sysv4)
 
6649
  symcode='[DFNSTU]'
 
6650
  ;;
 
6651
esac
 
6652
 
 
6653
# If we're using GNU nm, then use its standard symbol codes.
 
6654
case `$NM -V 2>&1` in
 
6655
*GNU* | *'with BFD'*)
 
6656
  symcode='[ABCDGIRSTW]' ;;
 
6657
esac
 
6658
 
 
6659
# Transform an extracted symbol line into a proper C declaration.
 
6660
# Some systems (esp. on ia64) link data and code symbols differently,
 
6661
# so use this general approach.
 
6662
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6663
 
 
6664
# Transform an extracted symbol line into symbol name and symbol address
 
6665
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6666
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'"
 
6667
 
 
6668
# Handle CRLF in mingw tool chain
 
6669
opt_cr=
 
6670
case $build_os in
 
6671
mingw*)
 
6672
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6673
  ;;
 
6674
esac
 
6675
 
 
6676
# Try without a prefix underscore, then with it.
 
6677
for ac_symprfx in "" "_"; do
 
6678
 
 
6679
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6680
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6681
 
 
6682
  # Write the raw and C identifiers.
 
6683
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6684
    # Fake it for dumpbin and say T for any non-static function
 
6685
    # and D for any global variable.
 
6686
    # Also find C++ and __fastcall symbols from MSVC++,
 
6687
    # which start with @ or ?.
 
6688
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6689
"     {last_section=section; section=\$ 3};"\
 
6690
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6691
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6692
"     \$ 0!~/External *\|/{next};"\
 
6693
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6694
"     {if(hide[section]) next};"\
 
6695
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6696
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6697
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6698
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6699
"     ' prfx=^$ac_symprfx"
 
6700
  else
 
6701
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6702
  fi
 
6703
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6704
 
 
6705
  # Check to see that the pipe works correctly.
 
6706
  pipe_works=no
 
6707
 
 
6708
  rm -f conftest*
 
6709
  cat > conftest.$ac_ext <<_LT_EOF
 
6710
#ifdef __cplusplus
 
6711
extern "C" {
 
6712
#endif
 
6713
char nm_test_var;
 
6714
void nm_test_func(void);
 
6715
void nm_test_func(void){}
 
6716
#ifdef __cplusplus
 
6717
}
 
6718
#endif
 
6719
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6720
_LT_EOF
 
6721
 
 
6722
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6723
  (eval $ac_compile) 2>&5
 
6724
  ac_status=$?
 
6725
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6726
  test $ac_status = 0; }; then
 
6727
    # Now try to grab the symbols.
 
6728
    nlist=conftest.nm
 
6729
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6730
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6731
  ac_status=$?
 
6732
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6733
  test $ac_status = 0; } && test -s "$nlist"; then
 
6734
      # Try sorting and uniquifying the output.
 
6735
      if sort "$nlist" | uniq > "$nlist"T; then
 
6736
        mv -f "$nlist"T "$nlist"
 
6737
      else
 
6738
        rm -f "$nlist"T
 
6739
      fi
 
6740
 
 
6741
      # Make sure that we snagged all the symbols we need.
 
6742
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6743
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6744
          cat <<_LT_EOF > conftest.$ac_ext
 
6745
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6746
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6747
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6748
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6749
# define LT@&t@_DLSYM_CONST
 
6750
#elif defined(__osf__)
 
6751
/* This system does not cope well with relocations in const data.  */
 
6752
# define LT@&t@_DLSYM_CONST
 
6753
#else
 
6754
# define LT@&t@_DLSYM_CONST const
 
6755
#endif
 
6756
 
 
6757
#ifdef __cplusplus
 
6758
extern "C" {
 
6759
#endif
 
6760
 
 
6761
_LT_EOF
 
6762
          # Now generate the symbol file.
 
6763
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6764
 
 
6765
          cat <<_LT_EOF >> conftest.$ac_ext
 
6766
 
 
6767
/* The mapping between symbol names and symbols.  */
 
6768
LT@&t@_DLSYM_CONST struct {
 
6769
  const char *name;
 
6770
  void       *address;
 
6771
}
 
6772
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6773
{
 
6774
  { "@PROGRAM@", (void *) 0 },
 
6775
_LT_EOF
 
6776
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6777
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6778
  {0, (void *) 0}
 
6779
};
 
6780
 
 
6781
/* This works around a problem in FreeBSD linker */
 
6782
#ifdef FREEBSD_WORKAROUND
 
6783
static const void *lt_preloaded_setup() {
 
6784
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6785
}
 
6786
#endif
 
6787
 
 
6788
#ifdef __cplusplus
 
6789
}
 
6790
#endif
 
6791
_LT_EOF
 
6792
          # Now try linking the two files.
 
6793
          mv conftest.$ac_objext conftstm.$ac_objext
 
6794
          lt_globsym_save_LIBS=$LIBS
 
6795
          lt_globsym_save_CFLAGS=$CFLAGS
 
6796
          LIBS="conftstm.$ac_objext"
 
6797
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6798
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6799
  (eval $ac_link) 2>&5
 
6800
  ac_status=$?
 
6801
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6802
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6803
            pipe_works=yes
 
6804
          fi
 
6805
          LIBS=$lt_globsym_save_LIBS
 
6806
          CFLAGS=$lt_globsym_save_CFLAGS
 
6807
        else
 
6808
          echo "cannot find nm_test_func in $nlist" >&5
 
6809
        fi
 
6810
      else
 
6811
        echo "cannot find nm_test_var in $nlist" >&5
 
6812
      fi
 
6813
    else
 
6814
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6815
    fi
 
6816
  else
 
6817
    echo "$progname: failed program was:" >&5
 
6818
    cat conftest.$ac_ext >&5
 
6819
  fi
 
6820
  rm -rf conftest* conftst*
 
6821
 
 
6822
  # Do not use the global_symbol_pipe unless it works.
 
6823
  if test "$pipe_works" = yes; then
 
6824
    break
 
6825
  else
 
6826
    lt_cv_sys_global_symbol_pipe=
 
6827
  fi
 
6828
done
 
6829
 
 
6830
fi
 
6831
 
 
6832
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6833
  lt_cv_sys_global_symbol_to_cdecl=
 
6834
fi
 
6835
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6837
$as_echo "failed" >&6; }
 
6838
else
 
6839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6840
$as_echo "ok" >&6; }
 
6841
fi
 
6842
 
 
6843
# Response file support.
 
6844
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6845
  nm_file_list_spec='@'
 
6846
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6847
  nm_file_list_spec='@'
 
6848
fi
 
6849
 
 
6850
 
 
6851
    
 
6852
    
 
6853
    
 
6854
 
 
6855
 
 
6856
    
 
6857
    
 
6858
    
 
6859
 
 
6860
 
 
6861
    
 
6862
    
 
6863
    
 
6864
 
 
6865
 
 
6866
    
 
6867
    
 
6868
    
 
6869
 
 
6870
 
 
6871
    
 
6872
    
 
6873
    
 
6874
 
 
6875
 
 
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6877
$as_echo_n "checking for sysroot... " >&6; }
 
6878
 
 
6879
@%:@ Check whether --with-sysroot was given.
 
6880
if test "${with_sysroot+set}" = set; then :
 
6881
  withval=$with_sysroot; 
 
6882
else
 
6883
  with_sysroot=no
 
6884
fi
 
6885
 
 
6886
 
 
6887
lt_sysroot=
 
6888
case ${with_sysroot} in #(
 
6889
 yes)
 
6890
   if test "$GCC" = yes; then
 
6891
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6892
   fi
 
6893
   ;; #(
 
6894
 /*)
 
6895
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6896
   ;; #(
 
6897
 no|'')
 
6898
   ;; #(
 
6899
 *)
 
6900
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6901
$as_echo "${with_sysroot}" >&6; }
 
6902
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6903
   ;;
 
6904
esac
 
6905
 
 
6906
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6907
$as_echo "${lt_sysroot:-no}" >&6; }
 
6908
 
 
6909
    
 
6910
    
 
6911
    
 
6912
 
 
6913
@%:@ Check whether --enable-libtool-lock was given.
 
6914
if test "${enable_libtool_lock+set}" = set; then :
 
6915
  enableval=$enable_libtool_lock; 
 
6916
fi
 
6917
 
 
6918
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6919
 
 
6920
# Some flags need to be propagated to the compiler or linker for good
 
6921
# libtool support.
 
6922
case $host in
 
6923
ia64-*-hpux*)
 
6924
  # Find out which ABI we are using.
 
6925
  echo 'int i;' > conftest.$ac_ext
 
6926
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6927
  (eval $ac_compile) 2>&5
 
6928
  ac_status=$?
 
6929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6930
  test $ac_status = 0; }; then
 
6931
    case `/usr/bin/file conftest.$ac_objext` in
 
6932
      *ELF-32*)
 
6933
        HPUX_IA64_MODE="32"
 
6934
        ;;
 
6935
      *ELF-64*)
 
6936
        HPUX_IA64_MODE="64"
 
6937
        ;;
 
6938
    esac
 
6939
  fi
 
6940
  rm -rf conftest*
 
6941
  ;;
 
6942
*-*-irix6*)
 
6943
  # Find out which ABI we are using.
 
6944
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6945
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6946
  (eval $ac_compile) 2>&5
 
6947
  ac_status=$?
 
6948
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6949
  test $ac_status = 0; }; then
 
6950
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6951
      case `/usr/bin/file conftest.$ac_objext` in
 
6952
        *32-bit*)
 
6953
          LD="${LD-ld} -melf32bsmip"
 
6954
          ;;
 
6955
        *N32*)
 
6956
          LD="${LD-ld} -melf32bmipn32"
 
6957
          ;;
 
6958
        *64-bit*)
 
6959
          LD="${LD-ld} -melf64bmip"
 
6960
        ;;
 
6961
      esac
 
6962
    else
 
6963
      case `/usr/bin/file conftest.$ac_objext` in
 
6964
        *32-bit*)
 
6965
          LD="${LD-ld} -32"
 
6966
          ;;
 
6967
        *N32*)
 
6968
          LD="${LD-ld} -n32"
 
6969
          ;;
 
6970
        *64-bit*)
 
6971
          LD="${LD-ld} -64"
 
6972
          ;;
 
6973
      esac
 
6974
    fi
 
6975
  fi
 
6976
  rm -rf conftest*
 
6977
  ;;
 
6978
 
 
6979
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6980
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6981
  # Find out which ABI we are using.
 
6982
  echo 'int i;' > conftest.$ac_ext
 
6983
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6984
  (eval $ac_compile) 2>&5
 
6985
  ac_status=$?
 
6986
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6987
  test $ac_status = 0; }; then
 
6988
    case `/usr/bin/file conftest.o` in
 
6989
      *32-bit*)
 
6990
        case $host in
 
6991
          x86_64-*kfreebsd*-gnu)
 
6992
            LD="${LD-ld} -m elf_i386_fbsd"
 
6993
            ;;
 
6994
          x86_64-*linux*)
 
6995
            case `/usr/bin/file conftest.o` in
 
6996
              *x86-64*)
 
6997
                LD="${LD-ld} -m elf32_x86_64"
 
6998
                ;;
 
6999
              *)
 
7000
                LD="${LD-ld} -m elf_i386"
 
7001
                ;;
 
7002
            esac
 
7003
            ;;
 
7004
          ppc64-*linux*|powerpc64-*linux*)
 
7005
            LD="${LD-ld} -m elf32ppclinux"
 
7006
            ;;
 
7007
          s390x-*linux*)
 
7008
            LD="${LD-ld} -m elf_s390"
 
7009
            ;;
 
7010
          sparc64-*linux*)
 
7011
            LD="${LD-ld} -m elf32_sparc"
 
7012
            ;;
 
7013
        esac
 
7014
        ;;
 
7015
      *64-bit*)
 
7016
        case $host in
 
7017
          x86_64-*kfreebsd*-gnu)
 
7018
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7019
            ;;
 
7020
          x86_64-*linux*)
 
7021
            LD="${LD-ld} -m elf_x86_64"
 
7022
            ;;
 
7023
          ppc*-*linux*|powerpc*-*linux*)
 
7024
            LD="${LD-ld} -m elf64ppc"
 
7025
            ;;
 
7026
          s390*-*linux*|s390*-*tpf*)
 
7027
            LD="${LD-ld} -m elf64_s390"
 
7028
            ;;
 
7029
          sparc*-*linux*)
 
7030
            LD="${LD-ld} -m elf64_sparc"
 
7031
            ;;
 
7032
        esac
 
7033
        ;;
 
7034
    esac
 
7035
  fi
 
7036
  rm -rf conftest*
 
7037
  ;;
 
7038
 
 
7039
*-*-sco3.2v5*)
 
7040
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7041
  SAVE_CFLAGS="$CFLAGS"
 
7042
  CFLAGS="$CFLAGS -belf"
 
7043
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7044
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7045
if ${lt_cv_cc_needs_belf+:} false; then :
 
7046
  $as_echo_n "(cached) " >&6
 
7047
else
 
7048
  ac_ext=c
 
7049
ac_cpp='$CPP $CPPFLAGS'
 
7050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7053
 
 
7054
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7055
/* end confdefs.h.  */
 
7056
 
 
7057
int
 
7058
main ()
 
7059
{
 
7060
 
 
7061
  ;
 
7062
  return 0;
 
7063
}
 
7064
_ACEOF
 
7065
if ac_fn_c_try_link "$LINENO"; then :
 
7066
  lt_cv_cc_needs_belf=yes
 
7067
else
 
7068
  lt_cv_cc_needs_belf=no
 
7069
fi
 
7070
rm -f core conftest.err conftest.$ac_objext \
 
7071
    conftest$ac_exeext conftest.$ac_ext
 
7072
     ac_ext=c
 
7073
ac_cpp='$CPP $CPPFLAGS'
 
7074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7077
 
 
7078
fi
 
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7080
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7081
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7082
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7083
    CFLAGS="$SAVE_CFLAGS"
 
7084
  fi
 
7085
  ;;
 
7086
*-*solaris*)
 
7087
  # Find out which ABI we are using.
 
7088
  echo 'int i;' > conftest.$ac_ext
 
7089
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7090
  (eval $ac_compile) 2>&5
 
7091
  ac_status=$?
 
7092
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7093
  test $ac_status = 0; }; then
 
7094
    case `/usr/bin/file conftest.o` in
 
7095
    *64-bit*)
 
7096
      case $lt_cv_prog_gnu_ld in
 
7097
      yes*)
 
7098
        case $host in
 
7099
        i?86-*-solaris*)
 
7100
          LD="${LD-ld} -m elf_x86_64"
 
7101
          ;;
 
7102
        sparc*-*-solaris*)
 
7103
          LD="${LD-ld} -m elf64_sparc"
 
7104
          ;;
 
7105
        esac
 
7106
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7107
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7108
          LD="${LD-ld}_sol2"
 
7109
        fi
 
7110
        ;;
 
7111
      *)
 
7112
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7113
          LD="${LD-ld} -64"
 
7114
        fi
 
7115
        ;;
 
7116
      esac
 
7117
      ;;
 
7118
    esac
 
7119
  fi
 
7120
  rm -rf conftest*
 
7121
  ;;
 
7122
esac
 
7123
 
 
7124
need_locks="$enable_libtool_lock"
 
7125
 
 
7126
if test -n "$ac_tool_prefix"; then
 
7127
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7128
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7130
$as_echo_n "checking for $ac_word... " >&6; }
 
7131
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7132
  $as_echo_n "(cached) " >&6
 
7133
else
 
7134
  if test -n "$MANIFEST_TOOL"; then
 
7135
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7136
else
 
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7138
for as_dir in $PATH
 
7139
do
 
7140
  IFS=$as_save_IFS
 
7141
  test -z "$as_dir" && as_dir=.
 
7142
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7143
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7144
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7145
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7146
    break 2
 
7147
  fi
 
7148
done
 
7149
  done
 
7150
IFS=$as_save_IFS
 
7151
 
 
7152
fi
 
7153
fi
 
7154
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7155
if test -n "$MANIFEST_TOOL"; then
 
7156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7157
$as_echo "$MANIFEST_TOOL" >&6; }
 
7158
else
 
7159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7160
$as_echo "no" >&6; }
 
7161
fi
 
7162
 
 
7163
 
 
7164
fi
 
7165
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7166
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7167
  # Extract the first word of "mt", so it can be a program name with args.
 
7168
set dummy mt; ac_word=$2
 
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7170
$as_echo_n "checking for $ac_word... " >&6; }
 
7171
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7172
  $as_echo_n "(cached) " >&6
 
7173
else
 
7174
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7175
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7176
else
 
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7178
for as_dir in $PATH
 
7179
do
 
7180
  IFS=$as_save_IFS
 
7181
  test -z "$as_dir" && as_dir=.
 
7182
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7183
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7184
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7185
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7186
    break 2
 
7187
  fi
 
7188
done
 
7189
  done
 
7190
IFS=$as_save_IFS
 
7191
 
 
7192
fi
 
7193
fi
 
7194
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7195
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7197
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7198
else
 
7199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7200
$as_echo "no" >&6; }
 
7201
fi
 
7202
 
 
7203
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7204
    MANIFEST_TOOL=":"
 
7205
  else
 
7206
    case $cross_compiling:$ac_tool_warned in
 
7207
yes:)
 
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7210
ac_tool_warned=yes ;;
 
7211
esac
 
7212
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7213
  fi
 
7214
else
 
7215
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7216
fi
 
7217
 
 
7218
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7220
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7221
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7222
  $as_echo_n "(cached) " >&6
 
7223
else
 
7224
  lt_cv_path_mainfest_tool=no
 
7225
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7226
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7227
  cat conftest.err >&5
 
7228
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7229
    lt_cv_path_mainfest_tool=yes
 
7230
  fi
 
7231
  rm -f conftest*
 
7232
fi
 
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7234
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7235
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7236
  MANIFEST_TOOL=:
 
7237
fi
 
7238
 
 
7239
    
 
7240
    
 
7241
    
 
7242
 
 
7243
 
 
7244
  case $host_os in
 
7245
    rhapsody* | darwin*)
 
7246
    if test -n "$ac_tool_prefix"; then
 
7247
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7248
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7250
$as_echo_n "checking for $ac_word... " >&6; }
 
7251
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7252
  $as_echo_n "(cached) " >&6
 
7253
else
 
7254
  if test -n "$DSYMUTIL"; then
 
7255
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7256
else
 
7257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7258
for as_dir in $PATH
 
7259
do
 
7260
  IFS=$as_save_IFS
 
7261
  test -z "$as_dir" && as_dir=.
 
7262
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7263
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7264
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7266
    break 2
 
7267
  fi
 
7268
done
 
7269
  done
 
7270
IFS=$as_save_IFS
 
7271
 
 
7272
fi
 
7273
fi
 
7274
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7275
if test -n "$DSYMUTIL"; then
 
7276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7277
$as_echo "$DSYMUTIL" >&6; }
 
7278
else
 
7279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7280
$as_echo "no" >&6; }
 
7281
fi
 
7282
 
 
7283
 
 
7284
fi
 
7285
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7286
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7287
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7288
set dummy dsymutil; ac_word=$2
 
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7290
$as_echo_n "checking for $ac_word... " >&6; }
 
7291
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7292
  $as_echo_n "(cached) " >&6
 
7293
else
 
7294
  if test -n "$ac_ct_DSYMUTIL"; then
 
7295
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7296
else
 
7297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7298
for as_dir in $PATH
 
7299
do
 
7300
  IFS=$as_save_IFS
 
7301
  test -z "$as_dir" && as_dir=.
 
7302
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7303
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7304
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7306
    break 2
 
7307
  fi
 
7308
done
 
7309
  done
 
7310
IFS=$as_save_IFS
 
7311
 
 
7312
fi
 
7313
fi
 
7314
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7315
if test -n "$ac_ct_DSYMUTIL"; then
 
7316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7317
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7318
else
 
7319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7320
$as_echo "no" >&6; }
 
7321
fi
 
7322
 
 
7323
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7324
    DSYMUTIL=":"
 
7325
  else
 
7326
    case $cross_compiling:$ac_tool_warned in
 
7327
yes:)
 
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7329
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7330
ac_tool_warned=yes ;;
 
7331
esac
 
7332
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7333
  fi
 
7334
else
 
7335
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7336
fi
 
7337
 
 
7338
    if test -n "$ac_tool_prefix"; then
 
7339
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7340
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7342
$as_echo_n "checking for $ac_word... " >&6; }
 
7343
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7344
  $as_echo_n "(cached) " >&6
 
7345
else
 
7346
  if test -n "$NMEDIT"; then
 
7347
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7348
else
 
7349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7350
for as_dir in $PATH
 
7351
do
 
7352
  IFS=$as_save_IFS
 
7353
  test -z "$as_dir" && as_dir=.
 
7354
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7355
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7356
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7357
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7358
    break 2
 
7359
  fi
 
7360
done
 
7361
  done
 
7362
IFS=$as_save_IFS
 
7363
 
 
7364
fi
 
7365
fi
 
7366
NMEDIT=$ac_cv_prog_NMEDIT
 
7367
if test -n "$NMEDIT"; then
 
7368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7369
$as_echo "$NMEDIT" >&6; }
 
7370
else
 
7371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7372
$as_echo "no" >&6; }
 
7373
fi
 
7374
 
 
7375
 
 
7376
fi
 
7377
if test -z "$ac_cv_prog_NMEDIT"; then
 
7378
  ac_ct_NMEDIT=$NMEDIT
 
7379
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7380
set dummy nmedit; ac_word=$2
 
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7382
$as_echo_n "checking for $ac_word... " >&6; }
 
7383
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7384
  $as_echo_n "(cached) " >&6
 
7385
else
 
7386
  if test -n "$ac_ct_NMEDIT"; then
 
7387
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7388
else
 
7389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7390
for as_dir in $PATH
 
7391
do
 
7392
  IFS=$as_save_IFS
 
7393
  test -z "$as_dir" && as_dir=.
 
7394
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7395
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7396
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7398
    break 2
 
7399
  fi
 
7400
done
 
7401
  done
 
7402
IFS=$as_save_IFS
 
7403
 
 
7404
fi
 
7405
fi
 
7406
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7407
if test -n "$ac_ct_NMEDIT"; then
 
7408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7409
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7410
else
 
7411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7412
$as_echo "no" >&6; }
 
7413
fi
 
7414
 
 
7415
  if test "x$ac_ct_NMEDIT" = x; then
 
7416
    NMEDIT=":"
 
7417
  else
 
7418
    case $cross_compiling:$ac_tool_warned in
 
7419
yes:)
 
7420
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7421
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7422
ac_tool_warned=yes ;;
 
7423
esac
 
7424
    NMEDIT=$ac_ct_NMEDIT
 
7425
  fi
 
7426
else
 
7427
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7428
fi
 
7429
 
 
7430
    if test -n "$ac_tool_prefix"; then
 
7431
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7432
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7434
$as_echo_n "checking for $ac_word... " >&6; }
 
7435
if ${ac_cv_prog_LIPO+:} false; then :
 
7436
  $as_echo_n "(cached) " >&6
 
7437
else
 
7438
  if test -n "$LIPO"; then
 
7439
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7440
else
 
7441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7442
for as_dir in $PATH
 
7443
do
 
7444
  IFS=$as_save_IFS
 
7445
  test -z "$as_dir" && as_dir=.
 
7446
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7447
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7448
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7450
    break 2
 
7451
  fi
 
7452
done
 
7453
  done
 
7454
IFS=$as_save_IFS
 
7455
 
 
7456
fi
 
7457
fi
 
7458
LIPO=$ac_cv_prog_LIPO
 
7459
if test -n "$LIPO"; then
 
7460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7461
$as_echo "$LIPO" >&6; }
 
7462
else
 
7463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7464
$as_echo "no" >&6; }
 
7465
fi
 
7466
 
 
7467
 
 
7468
fi
 
7469
if test -z "$ac_cv_prog_LIPO"; then
 
7470
  ac_ct_LIPO=$LIPO
 
7471
  # Extract the first word of "lipo", so it can be a program name with args.
 
7472
set dummy lipo; ac_word=$2
 
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7474
$as_echo_n "checking for $ac_word... " >&6; }
 
7475
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7476
  $as_echo_n "(cached) " >&6
 
7477
else
 
7478
  if test -n "$ac_ct_LIPO"; then
 
7479
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7480
else
 
7481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7482
for as_dir in $PATH
 
7483
do
 
7484
  IFS=$as_save_IFS
 
7485
  test -z "$as_dir" && as_dir=.
 
7486
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7487
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7488
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7490
    break 2
 
7491
  fi
 
7492
done
 
7493
  done
 
7494
IFS=$as_save_IFS
 
7495
 
 
7496
fi
 
7497
fi
 
7498
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7499
if test -n "$ac_ct_LIPO"; then
 
7500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7501
$as_echo "$ac_ct_LIPO" >&6; }
 
7502
else
 
7503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7504
$as_echo "no" >&6; }
 
7505
fi
 
7506
 
 
7507
  if test "x$ac_ct_LIPO" = x; then
 
7508
    LIPO=":"
 
7509
  else
 
7510
    case $cross_compiling:$ac_tool_warned in
 
7511
yes:)
 
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7514
ac_tool_warned=yes ;;
 
7515
esac
 
7516
    LIPO=$ac_ct_LIPO
 
7517
  fi
 
7518
else
 
7519
  LIPO="$ac_cv_prog_LIPO"
 
7520
fi
 
7521
 
 
7522
    if test -n "$ac_tool_prefix"; then
 
7523
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7524
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7526
$as_echo_n "checking for $ac_word... " >&6; }
 
7527
if ${ac_cv_prog_OTOOL+:} false; then :
 
7528
  $as_echo_n "(cached) " >&6
 
7529
else
 
7530
  if test -n "$OTOOL"; then
 
7531
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7532
else
 
7533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7534
for as_dir in $PATH
 
7535
do
 
7536
  IFS=$as_save_IFS
 
7537
  test -z "$as_dir" && as_dir=.
 
7538
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7539
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7540
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7541
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7542
    break 2
 
7543
  fi
 
7544
done
 
7545
  done
 
7546
IFS=$as_save_IFS
 
7547
 
 
7548
fi
 
7549
fi
 
7550
OTOOL=$ac_cv_prog_OTOOL
 
7551
if test -n "$OTOOL"; then
 
7552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7553
$as_echo "$OTOOL" >&6; }
 
7554
else
 
7555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7556
$as_echo "no" >&6; }
 
7557
fi
 
7558
 
 
7559
 
 
7560
fi
 
7561
if test -z "$ac_cv_prog_OTOOL"; then
 
7562
  ac_ct_OTOOL=$OTOOL
 
7563
  # Extract the first word of "otool", so it can be a program name with args.
 
7564
set dummy otool; ac_word=$2
 
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7566
$as_echo_n "checking for $ac_word... " >&6; }
 
7567
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7568
  $as_echo_n "(cached) " >&6
 
7569
else
 
7570
  if test -n "$ac_ct_OTOOL"; then
 
7571
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7572
else
 
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7574
for as_dir in $PATH
 
7575
do
 
7576
  IFS=$as_save_IFS
 
7577
  test -z "$as_dir" && as_dir=.
 
7578
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7579
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7580
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7581
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7582
    break 2
 
7583
  fi
 
7584
done
 
7585
  done
 
7586
IFS=$as_save_IFS
 
7587
 
 
7588
fi
 
7589
fi
 
7590
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7591
if test -n "$ac_ct_OTOOL"; then
 
7592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7593
$as_echo "$ac_ct_OTOOL" >&6; }
 
7594
else
 
7595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7596
$as_echo "no" >&6; }
 
7597
fi
 
7598
 
 
7599
  if test "x$ac_ct_OTOOL" = x; then
 
7600
    OTOOL=":"
 
7601
  else
 
7602
    case $cross_compiling:$ac_tool_warned in
 
7603
yes:)
 
7604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7605
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7606
ac_tool_warned=yes ;;
 
7607
esac
 
7608
    OTOOL=$ac_ct_OTOOL
 
7609
  fi
 
7610
else
 
7611
  OTOOL="$ac_cv_prog_OTOOL"
 
7612
fi
 
7613
 
 
7614
    if test -n "$ac_tool_prefix"; then
 
7615
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7616
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7618
$as_echo_n "checking for $ac_word... " >&6; }
 
7619
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7620
  $as_echo_n "(cached) " >&6
 
7621
else
 
7622
  if test -n "$OTOOL64"; then
 
7623
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7624
else
 
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7626
for as_dir in $PATH
 
7627
do
 
7628
  IFS=$as_save_IFS
 
7629
  test -z "$as_dir" && as_dir=.
 
7630
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7631
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7632
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7634
    break 2
 
7635
  fi
 
7636
done
 
7637
  done
 
7638
IFS=$as_save_IFS
 
7639
 
 
7640
fi
 
7641
fi
 
7642
OTOOL64=$ac_cv_prog_OTOOL64
 
7643
if test -n "$OTOOL64"; then
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7645
$as_echo "$OTOOL64" >&6; }
 
7646
else
 
7647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7648
$as_echo "no" >&6; }
 
7649
fi
 
7650
 
 
7651
 
 
7652
fi
 
7653
if test -z "$ac_cv_prog_OTOOL64"; then
 
7654
  ac_ct_OTOOL64=$OTOOL64
 
7655
  # Extract the first word of "otool64", so it can be a program name with args.
 
7656
set dummy otool64; ac_word=$2
 
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7658
$as_echo_n "checking for $ac_word... " >&6; }
 
7659
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7660
  $as_echo_n "(cached) " >&6
 
7661
else
 
7662
  if test -n "$ac_ct_OTOOL64"; then
 
7663
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7664
else
 
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7666
for as_dir in $PATH
 
7667
do
 
7668
  IFS=$as_save_IFS
 
7669
  test -z "$as_dir" && as_dir=.
 
7670
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7671
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7672
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7674
    break 2
 
7675
  fi
 
7676
done
 
7677
  done
 
7678
IFS=$as_save_IFS
 
7679
 
 
7680
fi
 
7681
fi
 
7682
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7683
if test -n "$ac_ct_OTOOL64"; then
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7685
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7686
else
 
7687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7688
$as_echo "no" >&6; }
 
7689
fi
 
7690
 
 
7691
  if test "x$ac_ct_OTOOL64" = x; then
 
7692
    OTOOL64=":"
 
7693
  else
 
7694
    case $cross_compiling:$ac_tool_warned in
 
7695
yes:)
 
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7698
ac_tool_warned=yes ;;
 
7699
esac
 
7700
    OTOOL64=$ac_ct_OTOOL64
 
7701
  fi
 
7702
else
 
7703
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7704
fi
 
7705
 
 
7706
    
 
7707
    
 
7708
    
 
7709
    
 
7710
 
 
7711
    
 
7712
    
 
7713
    
 
7714
    
 
7715
 
 
7716
    
 
7717
    
 
7718
    
 
7719
    
 
7720
 
 
7721
    
 
7722
    
 
7723
    
 
7724
    
 
7725
 
 
7726
    
 
7727
    
 
7728
    
 
7729
    
 
7730
 
 
7731
 
 
7732
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7733
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7734
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7735
  $as_echo_n "(cached) " >&6
 
7736
else
 
7737
  lt_cv_apple_cc_single_mod=no
 
7738
      if test -z "${LT_MULTI_MODULE}"; then
 
7739
        # By default we will add the -single_module flag. You can override
 
7740
        # by either setting the environment variable LT_MULTI_MODULE
 
7741
        # non-empty at configure time, or by adding -multi_module to the
 
7742
        # link flags.
 
7743
        rm -rf libconftest.dylib*
 
7744
        echo "int foo(void){return 1;}" > conftest.c
 
7745
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7746
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7747
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7748
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7749
        _lt_result=$?
 
7750
        # If there is a non-empty error log, and "single_module"
 
7751
        # appears in it, assume the flag caused a linker warning
 
7752
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7753
          cat conftest.err >&5
 
7754
        # Otherwise, if the output was created with a 0 exit code from
 
7755
        # the compiler, it worked.
 
7756
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7757
          lt_cv_apple_cc_single_mod=yes
 
7758
        else
 
7759
          cat conftest.err >&5
 
7760
        fi
 
7761
        rm -rf libconftest.dylib*
 
7762
        rm -f conftest.*
 
7763
      fi
 
7764
fi
 
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7766
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7767
 
 
7768
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7769
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7770
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7771
  $as_echo_n "(cached) " >&6
 
7772
else
 
7773
  lt_cv_ld_exported_symbols_list=no
 
7774
      save_LDFLAGS=$LDFLAGS
 
7775
      echo "_main" > conftest.sym
 
7776
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7777
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7778
/* end confdefs.h.  */
 
7779
 
 
7780
int
 
7781
main ()
 
7782
{
 
7783
 
 
7784
  ;
 
7785
  return 0;
 
7786
}
 
7787
_ACEOF
 
7788
if ac_fn_c_try_link "$LINENO"; then :
 
7789
  lt_cv_ld_exported_symbols_list=yes
 
7790
else
 
7791
  lt_cv_ld_exported_symbols_list=no
 
7792
fi
 
7793
rm -f core conftest.err conftest.$ac_objext \
 
7794
    conftest$ac_exeext conftest.$ac_ext
 
7795
        LDFLAGS="$save_LDFLAGS"
 
7796
    
 
7797
fi
 
7798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7799
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7800
 
 
7801
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7802
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7803
if ${lt_cv_ld_force_load+:} false; then :
 
7804
  $as_echo_n "(cached) " >&6
 
7805
else
 
7806
  lt_cv_ld_force_load=no
 
7807
      cat > conftest.c << _LT_EOF
 
7808
int forced_loaded() { return 2;}
 
7809
_LT_EOF
 
7810
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7811
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7812
      echo "$AR cru libconftest.a conftest.o" >&5
 
7813
      $AR cru libconftest.a conftest.o 2>&5
 
7814
      echo "$RANLIB libconftest.a" >&5
 
7815
      $RANLIB libconftest.a 2>&5
 
7816
      cat > conftest.c << _LT_EOF
 
7817
int main() { return 0;}
 
7818
_LT_EOF
 
7819
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7820
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7821
      _lt_result=$?
 
7822
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7823
        cat conftest.err >&5
 
7824
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7825
        lt_cv_ld_force_load=yes
 
7826
      else
 
7827
        cat conftest.err >&5
 
7828
      fi
 
7829
        rm -f conftest.err libconftest.a conftest conftest.c
 
7830
        rm -rf conftest.dSYM
 
7831
    
 
7832
fi
 
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7834
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7835
    case $host_os in
 
7836
    rhapsody* | darwin1.[012])
 
7837
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7838
    darwin1.*)
 
7839
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7840
    darwin*) # darwin 5.x on
 
7841
      # if running on 10.5 or later, the deployment target defaults
 
7842
      # to the OS version, if on x86, and 10.4, the deployment
 
7843
      # target defaults to 10.4. Don't you love it?
 
7844
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7845
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7846
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7847
        10.[012]*)
 
7848
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7849
        10.*)
 
7850
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7851
      esac
 
7852
    ;;
 
7853
  esac
 
7854
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7855
      _lt_dar_single_mod='$single_module'
 
7856
    fi
 
7857
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7858
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7859
    else
 
7860
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7861
    fi
 
7862
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7863
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7864
    else
 
7865
      _lt_dsymutil=
 
7866
    fi
 
7867
    ;;
 
7868
  esac
 
7869
 
 
7870
ac_ext=c
 
7871
ac_cpp='$CPP $CPPFLAGS'
 
7872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7876
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7877
# On Suns, sometimes $CPP names a directory.
 
7878
if test -n "$CPP" && test -d "$CPP"; then
 
7879
  CPP=
 
7880
fi
 
7881
if test -z "$CPP"; then
 
7882
  if ${ac_cv_prog_CPP+:} false; then :
 
7883
  $as_echo_n "(cached) " >&6
 
7884
else
 
7885
      # Double quotes because CPP needs to be expanded
 
7886
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7887
    do
 
7888
      ac_preproc_ok=false
 
7889
for ac_c_preproc_warn_flag in '' yes
 
7890
do
 
7891
  # Use a header file that comes with gcc, so configuring glibc
 
7892
  # with a fresh cross-compiler works.
 
7893
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7894
  # <limits.h> exists even on freestanding compilers.
 
7895
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7896
  # not just through cpp. "Syntax error" is here to catch this case.
 
7897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7898
/* end confdefs.h.  */
 
7899
@%:@ifdef __STDC__
 
7900
@%:@ include <limits.h>
 
7901
@%:@else
 
7902
@%:@ include <assert.h>
 
7903
@%:@endif
 
7904
                     Syntax error
 
7905
_ACEOF
 
7906
if ac_fn_c_try_cpp "$LINENO"; then :
 
7907
  
 
7908
else
 
7909
  # Broken: fails on valid input.
 
7910
continue
 
7911
fi
 
7912
rm -f conftest.err conftest.i conftest.$ac_ext
 
7913
 
 
7914
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7915
  # can be detected and how.
 
7916
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7917
/* end confdefs.h.  */
 
7918
@%:@include <ac_nonexistent.h>
 
7919
_ACEOF
 
7920
if ac_fn_c_try_cpp "$LINENO"; then :
 
7921
  # Broken: success on invalid input.
 
7922
continue
 
7923
else
 
7924
  # Passes both tests.
 
7925
ac_preproc_ok=:
 
7926
break
 
7927
fi
 
7928
rm -f conftest.err conftest.i conftest.$ac_ext
 
7929
 
 
7930
done
 
7931
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7932
rm -f conftest.i conftest.err conftest.$ac_ext
 
7933
if $ac_preproc_ok; then :
 
7934
  break
 
7935
fi
 
7936
 
 
7937
    done
 
7938
    ac_cv_prog_CPP=$CPP
 
7939
  
 
7940
fi
 
7941
  CPP=$ac_cv_prog_CPP
 
7942
else
 
7943
  ac_cv_prog_CPP=$CPP
 
7944
fi
 
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7946
$as_echo "$CPP" >&6; }
 
7947
ac_preproc_ok=false
 
7948
for ac_c_preproc_warn_flag in '' yes
 
7949
do
 
7950
  # Use a header file that comes with gcc, so configuring glibc
 
7951
  # with a fresh cross-compiler works.
 
7952
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7953
  # <limits.h> exists even on freestanding compilers.
 
7954
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7955
  # not just through cpp. "Syntax error" is here to catch this case.
 
7956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7957
/* end confdefs.h.  */
 
7958
@%:@ifdef __STDC__
 
7959
@%:@ include <limits.h>
 
7960
@%:@else
 
7961
@%:@ include <assert.h>
 
7962
@%:@endif
 
7963
                     Syntax error
 
7964
_ACEOF
 
7965
if ac_fn_c_try_cpp "$LINENO"; then :
 
7966
  
 
7967
else
 
7968
  # Broken: fails on valid input.
 
7969
continue
 
7970
fi
 
7971
rm -f conftest.err conftest.i conftest.$ac_ext
 
7972
 
 
7973
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7974
  # can be detected and how.
 
7975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7976
/* end confdefs.h.  */
 
7977
@%:@include <ac_nonexistent.h>
 
7978
_ACEOF
 
7979
if ac_fn_c_try_cpp "$LINENO"; then :
 
7980
  # Broken: success on invalid input.
 
7981
continue
 
7982
else
 
7983
  # Passes both tests.
 
7984
ac_preproc_ok=:
 
7985
break
 
7986
fi
 
7987
rm -f conftest.err conftest.i conftest.$ac_ext
 
7988
 
 
7989
done
 
7990
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7991
rm -f conftest.i conftest.err conftest.$ac_ext
 
7992
if $ac_preproc_ok; then :
 
7993
  
 
7994
else
 
7995
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7996
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7997
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7998
See \`config.log' for more details" "$LINENO" 5; }
 
7999
fi
 
8000
 
 
8001
ac_ext=c
 
8002
ac_cpp='$CPP $CPPFLAGS'
 
8003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8006
 
 
8007
 
 
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8009
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8010
if ${ac_cv_header_stdc+:} false; then :
 
8011
  $as_echo_n "(cached) " >&6
 
8012
else
 
8013
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8014
/* end confdefs.h.  */
 
8015
#include <stdlib.h>
 
8016
#include <stdarg.h>
 
8017
#include <string.h>
 
8018
#include <float.h>
 
8019
 
 
8020
int
 
8021
main ()
 
8022
{
 
8023
 
 
8024
  ;
 
8025
  return 0;
 
8026
}
 
8027
_ACEOF
 
8028
if ac_fn_c_try_compile "$LINENO"; then :
 
8029
  ac_cv_header_stdc=yes
 
8030
else
 
8031
  ac_cv_header_stdc=no
 
8032
fi
 
8033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8034
 
 
8035
if test $ac_cv_header_stdc = yes; then
 
8036
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8038
/* end confdefs.h.  */
 
8039
#include <string.h>
 
8040
 
 
8041
_ACEOF
 
8042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8043
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8044
  
 
8045
else
 
8046
  ac_cv_header_stdc=no
 
8047
fi
 
8048
rm -f conftest*
 
8049
 
 
8050
fi
 
8051
 
 
8052
if test $ac_cv_header_stdc = yes; then
 
8053
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8055
/* end confdefs.h.  */
 
8056
#include <stdlib.h>
 
8057
 
 
8058
_ACEOF
 
8059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8060
  $EGREP "free" >/dev/null 2>&1; then :
 
8061
  
 
8062
else
 
8063
  ac_cv_header_stdc=no
 
8064
fi
 
8065
rm -f conftest*
 
8066
 
 
8067
fi
 
8068
 
 
8069
if test $ac_cv_header_stdc = yes; then
 
8070
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8071
  if test "$cross_compiling" = yes; then :
 
8072
  :
 
8073
else
 
8074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8075
/* end confdefs.h.  */
 
8076
#include <ctype.h>
 
8077
#include <stdlib.h>
 
8078
#if ((' ' & 0x0FF) == 0x020)
 
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8081
#else
 
8082
# define ISLOWER(c) \
 
8083
                   (('a' <= (c) && (c) <= 'i') \
 
8084
                     || ('j' <= (c) && (c) <= 'r') \
 
8085
                     || ('s' <= (c) && (c) <= 'z'))
 
8086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8087
#endif
 
8088
 
 
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8090
int
 
8091
main ()
 
8092
{
 
8093
  int i;
 
8094
  for (i = 0; i < 256; i++)
 
8095
    if (XOR (islower (i), ISLOWER (i))
 
8096
        || toupper (i) != TOUPPER (i))
 
8097
      return 2;
 
8098
  return 0;
 
8099
}
 
8100
_ACEOF
 
8101
if ac_fn_c_try_run "$LINENO"; then :
 
8102
  
 
8103
else
 
8104
  ac_cv_header_stdc=no
 
8105
fi
 
8106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8107
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8108
fi
 
8109
 
 
8110
fi
 
8111
fi
 
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8113
$as_echo "$ac_cv_header_stdc" >&6; }
 
8114
if test $ac_cv_header_stdc = yes; then
 
8115
  
 
8116
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
8117
 
 
8118
fi
 
8119
 
 
8120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8122
                  inttypes.h stdint.h unistd.h
 
8123
do :
 
8124
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8125
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8126
"
 
8127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8128
  cat >>confdefs.h <<_ACEOF
 
8129
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8130
_ACEOF
 
8131
 
 
8132
fi
 
8133
 
 
8134
done
 
8135
 
 
8136
 
 
8137
for ac_header in dlfcn.h
 
8138
do :
 
8139
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8140
"
 
8141
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8142
  cat >>confdefs.h <<_ACEOF
 
8143
@%:@define HAVE_DLFCN_H 1
 
8144
_ACEOF
 
8145
 
 
8146
fi
 
8147
 
 
8148
done
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
# Set options
 
8155
 
 
8156
 
 
8157
 
 
8158
        
 
8159
  enable_win32_dll=no
 
8160
  
 
8161
 
 
8162
            @%:@ Check whether --enable-shared was given.
 
8163
if test "${enable_shared+set}" = set; then :
 
8164
  enableval=$enable_shared; p=${PACKAGE-default}
 
8165
    case $enableval in
 
8166
    yes) enable_shared=yes ;;
 
8167
    no) enable_shared=no ;;
 
8168
    *)
 
8169
      enable_shared=no
 
8170
      # Look at the argument we got.  We use all the common list separators.
 
8171
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8172
      for pkg in $enableval; do
 
8173
        IFS="$lt_save_ifs"
 
8174
        if test "X$pkg" = "X$p"; then
 
8175
          enable_shared=yes
 
8176
        fi
 
8177
      done
 
8178
      IFS="$lt_save_ifs"
 
8179
      ;;
 
8180
    esac
 
8181
else
 
8182
  enable_shared=yes
 
8183
fi
 
8184
 
 
8185
 
 
8186
    
 
8187
    
 
8188
    
 
8189
    
 
8190
 
 
8191
 
 
8192
 
 
8193
  
 
8194
  
 
8195
@%:@ Check whether --with-pic was given.
 
8196
if test "${with_pic+set}" = set; then :
 
8197
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8198
    case $withval in
 
8199
    yes|no) pic_mode=$withval ;;
 
8200
    *)
 
8201
      pic_mode=default
 
8202
      # Look at the argument we got.  We use all the common list separators.
 
8203
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8204
      for lt_pkg in $withval; do
 
8205
        IFS="$lt_save_ifs"
 
8206
        if test "X$lt_pkg" = "X$lt_p"; then
 
8207
          pic_mode=yes
 
8208
        fi
 
8209
      done
 
8210
      IFS="$lt_save_ifs"
 
8211
      ;;
 
8212
    esac
 
8213
else
 
8214
  pic_mode=default
 
8215
fi
 
8216
 
 
8217
 
 
8218
test -z "$pic_mode" && pic_mode=default
 
8219
 
 
8220
 
 
8221
    
 
8222
    
 
8223
    
 
8224
 
 
8225
 
 
8226
  @%:@ Check whether --enable-fast-install was given.
 
8227
if test "${enable_fast_install+set}" = set; then :
 
8228
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8229
    case $enableval in
 
8230
    yes) enable_fast_install=yes ;;
 
8231
    no) enable_fast_install=no ;;
 
8232
    *)
 
8233
      enable_fast_install=no
 
8234
      # Look at the argument we got.  We use all the common list separators.
 
8235
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8236
      for pkg in $enableval; do
 
8237
        IFS="$lt_save_ifs"
 
8238
        if test "X$pkg" = "X$p"; then
 
8239
          enable_fast_install=yes
 
8240
        fi
 
8241
      done
 
8242
      IFS="$lt_save_ifs"
 
8243
      ;;
 
8244
    esac
 
8245
else
 
8246
  enable_fast_install=yes
 
8247
fi
 
8248
 
 
8249
 
 
8250
 
 
8251
    
 
8252
    
 
8253
    
 
8254
 
 
8255
 
 
8256
  
 
8257
 
 
8258
 
 
8259
# This can be used to rebuild libtool when needed
 
8260
LIBTOOL_DEPS="$ltmain"
 
8261
 
 
8262
# Always use our own libtool.
 
8263
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8264
 
 
8265
 
 
8266
 
 
8267
    
 
8268
    
 
8269
    
 
8270
 
 
8271
    
 
8272
    
 
8273
    
 
8274
 
 
8275
    
 
8276
    
 
8277
    
 
8278
 
 
8279
    
 
8280
    
 
8281
    
 
8282
 
 
8283
    
 
8284
    
 
8285
    
 
8286
 
 
8287
    
 
8288
    
 
8289
    
 
8290
 
 
8291
    
 
8292
    
 
8293
    
 
8294
test -z "$LN_S" && LN_S="ln -s"
 
8295
 
 
8296
    
 
8297
    
 
8298
    
 
8299
 
 
8300
    
 
8301
    
 
8302
    
 
8303
 
 
8304
    
 
8305
    
 
8306
    
 
8307
 
 
8308
 
 
8309
if test -n "${ZSH_VERSION+set}" ; then
 
8310
   setopt NO_GLOB_SUBST
 
8311
fi
 
8312
 
 
8313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8314
$as_echo_n "checking for objdir... " >&6; }
 
8315
if ${lt_cv_objdir+:} false; then :
 
8316
  $as_echo_n "(cached) " >&6
 
8317
else
 
8318
  rm -f .libs 2>/dev/null
 
8319
mkdir .libs 2>/dev/null
 
8320
if test -d .libs; then
 
8321
  lt_cv_objdir=.libs
 
8322
else
 
8323
  # MS-DOS does not allow filenames that begin with a dot.
 
8324
  lt_cv_objdir=_libs
 
8325
fi
 
8326
rmdir .libs 2>/dev/null
 
8327
fi
 
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8329
$as_echo "$lt_cv_objdir" >&6; }
 
8330
objdir=$lt_cv_objdir
 
8331
 
 
8332
    
 
8333
    
 
8334
    
 
8335
 
 
8336
cat >>confdefs.h <<_ACEOF
 
8337
@%:@define LT_OBJDIR "$lt_cv_objdir/"
 
8338
_ACEOF
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
case $host_os in
 
8344
aix3*)
 
8345
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8346
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8347
  # vanish in a puff of smoke.
 
8348
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8349
    COLLECT_NAMES=
 
8350
    export COLLECT_NAMES
 
8351
  fi
 
8352
  ;;
 
8353
esac
 
8354
 
 
8355
# Global variables:
 
8356
ofile=libtool
 
8357
can_build_shared=yes
 
8358
 
 
8359
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8360
# which needs '.lib').
 
8361
libext=a
 
8362
 
 
8363
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8364
 
 
8365
old_CC="$CC"
 
8366
old_CFLAGS="$CFLAGS"
 
8367
 
 
8368
# Set sane defaults for various variables
 
8369
test -z "$CC" && CC=cc
 
8370
test -z "$LTCC" && LTCC=$CC
 
8371
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8372
test -z "$LD" && LD=ld
 
8373
test -z "$ac_objext" && ac_objext=o
 
8374
 
 
8375
for cc_temp in $compiler""; do
 
8376
  case $cc_temp in
 
8377
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8378
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8379
    \-*) ;;
 
8380
    *) break;;
 
8381
  esac
 
8382
done
 
8383
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8384
 
 
8385
 
 
8386
# Only perform the check for file, if the check method requires it
 
8387
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8388
case $deplibs_check_method in
 
8389
file_magic*)
 
8390
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8391
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8392
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8393
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8394
  $as_echo_n "(cached) " >&6
 
8395
else
 
8396
  case $MAGIC_CMD in
 
8397
[\\/*] |  ?:[\\/]*)
 
8398
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8399
  ;;
 
8400
*)
 
8401
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8402
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8403
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8404
  for ac_dir in $ac_dummy; do
 
8405
    IFS="$lt_save_ifs"
 
8406
    test -z "$ac_dir" && ac_dir=.
 
8407
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8408
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8409
      if test -n "$file_magic_test_file"; then
 
8410
        case $deplibs_check_method in
 
8411
        "file_magic "*)
 
8412
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8413
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8414
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8415
            $EGREP "$file_magic_regex" > /dev/null; then
 
8416
            :
 
8417
          else
 
8418
            cat <<_LT_EOF 1>&2
 
8419
 
 
8420
*** Warning: the command libtool uses to detect shared libraries,
 
8421
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8422
*** The result is that libtool may fail to recognize shared libraries
 
8423
*** as such.  This will affect the creation of libtool libraries that
 
8424
*** depend on shared libraries, but programs linked with such libtool
 
8425
*** libraries will work regardless of this problem.  Nevertheless, you
 
8426
*** may want to report the problem to your system manager and/or to
 
8427
*** bug-libtool@gnu.org
 
8428
 
 
8429
_LT_EOF
 
8430
          fi ;;
 
8431
        esac
 
8432
      fi
 
8433
      break
 
8434
    fi
 
8435
  done
 
8436
  IFS="$lt_save_ifs"
 
8437
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8438
  ;;
 
8439
esac
 
8440
fi
 
8441
 
 
8442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8443
if test -n "$MAGIC_CMD"; then
 
8444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8445
$as_echo "$MAGIC_CMD" >&6; }
 
8446
else
 
8447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8448
$as_echo "no" >&6; }
 
8449
fi
 
8450
 
 
8451
    
 
8452
    
 
8453
    
 
8454
 
 
8455
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8456
  if test -n "$ac_tool_prefix"; then
 
8457
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8458
$as_echo_n "checking for file... " >&6; }
 
8459
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8460
  $as_echo_n "(cached) " >&6
 
8461
else
 
8462
  case $MAGIC_CMD in
 
8463
[\\/*] |  ?:[\\/]*)
 
8464
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8465
  ;;
 
8466
*)
 
8467
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8468
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8469
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8470
  for ac_dir in $ac_dummy; do
 
8471
    IFS="$lt_save_ifs"
 
8472
    test -z "$ac_dir" && ac_dir=.
 
8473
    if test -f $ac_dir/file; then
 
8474
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8475
      if test -n "$file_magic_test_file"; then
 
8476
        case $deplibs_check_method in
 
8477
        "file_magic "*)
 
8478
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8479
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8480
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8481
            $EGREP "$file_magic_regex" > /dev/null; then
 
8482
            :
 
8483
          else
 
8484
            cat <<_LT_EOF 1>&2
 
8485
 
 
8486
*** Warning: the command libtool uses to detect shared libraries,
 
8487
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8488
*** The result is that libtool may fail to recognize shared libraries
 
8489
*** as such.  This will affect the creation of libtool libraries that
 
8490
*** depend on shared libraries, but programs linked with such libtool
 
8491
*** libraries will work regardless of this problem.  Nevertheless, you
 
8492
*** may want to report the problem to your system manager and/or to
 
8493
*** bug-libtool@gnu.org
 
8494
 
 
8495
_LT_EOF
 
8496
          fi ;;
 
8497
        esac
 
8498
      fi
 
8499
      break
 
8500
    fi
 
8501
  done
 
8502
  IFS="$lt_save_ifs"
 
8503
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8504
  ;;
 
8505
esac
 
8506
fi
 
8507
 
 
8508
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8509
if test -n "$MAGIC_CMD"; then
 
8510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8511
$as_echo "$MAGIC_CMD" >&6; }
 
8512
else
 
8513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8514
$as_echo "no" >&6; }
 
8515
fi
 
8516
 
 
8517
 
 
8518
  else
 
8519
    MAGIC_CMD=:
 
8520
  fi
 
8521
fi
 
8522
 
 
8523
  fi
 
8524
  ;;
 
8525
esac
 
8526
 
 
8527
# Use C for the default configuration in the libtool script
 
8528
 
 
8529
lt_save_CC="$CC"
 
8530
ac_ext=c
 
8531
ac_cpp='$CPP $CPPFLAGS'
 
8532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8535
 
 
8536
 
 
8537
# Source file extension for C test sources.
 
8538
ac_ext=c
 
8539
 
 
8540
# Object file extension for compiled C test sources.
 
8541
objext=o
 
8542
objext=$objext
 
8543
 
 
8544
# Code to be used in simple compile tests
 
8545
lt_simple_compile_test_code="int some_variable = 0;"
 
8546
 
 
8547
# Code to be used in simple link tests
 
8548
lt_simple_link_test_code='int main(){return(0);}'
 
8549
 
 
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
 
8556
# If no C compiler was specified, use CC.
 
8557
LTCC=${LTCC-"$CC"}
 
8558
 
 
8559
# If no C compiler flags were specified, use CFLAGS.
 
8560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8561
 
 
8562
# Allow CC to be a program name with arguments.
 
8563
compiler=$CC
 
8564
 
 
8565
# Save the default compiler, since it gets overwritten when the other
 
8566
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8567
compiler_DEFAULT=$CC
 
8568
 
 
8569
# save warnings/boilerplate of simple test code
 
8570
ac_outfile=conftest.$ac_objext
 
8571
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8572
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8573
_lt_compiler_boilerplate=`cat conftest.err`
 
8574
$RM conftest*
 
8575
 
 
8576
ac_outfile=conftest.$ac_objext
 
8577
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8578
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8579
_lt_linker_boilerplate=`cat conftest.err`
 
8580
$RM -r conftest*
 
8581
 
 
8582
 
 
8583
if test -n "$compiler"; then
 
8584
  
 
8585
lt_prog_compiler_no_builtin_flag=
 
8586
 
 
8587
if test "$GCC" = yes; then
 
8588
  case $cc_basename in
 
8589
  nvcc*)
 
8590
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8591
  *)
 
8592
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8593
  esac
 
8594
 
 
8595
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8596
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8597
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8598
  $as_echo_n "(cached) " >&6
 
8599
else
 
8600
  lt_cv_prog_compiler_rtti_exceptions=no
 
8601
   ac_outfile=conftest.$ac_objext
 
8602
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8603
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8604
   # Insert the option either (1) after the last *FLAGS variable, or
 
8605
   # (2) before a word containing "conftest.", or (3) at the end.
 
8606
   # Note that $ac_compile itself does not contain backslashes and begins
 
8607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8608
   # The option is referenced via a variable to avoid confusing sed.
 
8609
   lt_compile=`echo "$ac_compile" | $SED \
 
8610
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8611
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8612
   -e 's:$: $lt_compiler_flag:'`
 
8613
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8614
   (eval "$lt_compile" 2>conftest.err)
 
8615
   ac_status=$?
 
8616
   cat conftest.err >&5
 
8617
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8618
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8619
     # The compiler can only warn and ignore the option if not recognized
 
8620
     # So say no if there are warnings other than the usual output.
 
8621
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8622
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8623
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8624
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8625
     fi
 
8626
   fi
 
8627
   $RM conftest*
 
8628
 
 
8629
fi
 
8630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8631
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8632
 
 
8633
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8634
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8635
else
 
8636
    :
 
8637
fi
 
8638
 
 
8639
fi
 
8640
 
 
8641
    
 
8642
    
 
8643
    
 
8644
 
 
8645
 
 
8646
  lt_prog_compiler_wl=
 
8647
lt_prog_compiler_pic=
 
8648
lt_prog_compiler_static=
 
8649
 
 
8650
 
 
8651
  if test "$GCC" = yes; then
 
8652
    lt_prog_compiler_wl='-Wl,'
 
8653
    lt_prog_compiler_static='-static'
 
8654
 
 
8655
    case $host_os in
 
8656
      aix*)
 
8657
      # All AIX code is PIC.
 
8658
      if test "$host_cpu" = ia64; then
 
8659
        # AIX 5 now supports IA64 processor
 
8660
        lt_prog_compiler_static='-Bstatic'
 
8661
      fi
 
8662
      ;;
 
8663
 
 
8664
    amigaos*)
 
8665
      case $host_cpu in
 
8666
      powerpc)
 
8667
            # see comment about AmigaOS4 .so support
 
8668
            lt_prog_compiler_pic='-fPIC'
 
8669
        ;;
 
8670
      m68k)
 
8671
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8672
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8673
            # like `-m68040'.
 
8674
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8675
        ;;
 
8676
      esac
 
8677
      ;;
 
8678
 
 
8679
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8680
      # PIC is the default for these OSes.
 
8681
      ;;
 
8682
 
 
8683
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8684
      # This hack is so that the source file can tell whether it is being
 
8685
      # built for inclusion in a dll (and should export symbols for example).
 
8686
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8687
      # (--disable-auto-import) libraries
 
8688
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8689
      ;;
 
8690
 
 
8691
    darwin* | rhapsody*)
 
8692
      # PIC is the default on this platform
 
8693
      # Common symbols not allowed in MH_DYLIB files
 
8694
      lt_prog_compiler_pic='-fno-common'
 
8695
      ;;
 
8696
 
 
8697
    haiku*)
 
8698
      # PIC is the default for Haiku.
 
8699
      # The "-static" flag exists, but is broken.
 
8700
      lt_prog_compiler_static=
 
8701
      ;;
 
8702
 
 
8703
    hpux*)
 
8704
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8705
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8706
      # sets the default TLS model and affects inlining.
 
8707
      case $host_cpu in
 
8708
      hppa*64*)
 
8709
        # +Z the default
 
8710
        ;;
 
8711
      *)
 
8712
        lt_prog_compiler_pic='-fPIC'
 
8713
        ;;
 
8714
      esac
 
8715
      ;;
 
8716
 
 
8717
    interix[3-9]*)
 
8718
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8719
      # Instead, we relocate shared libraries at runtime.
 
8720
      ;;
 
8721
 
 
8722
    msdosdjgpp*)
 
8723
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8724
      # on systems that don't support them.
 
8725
      lt_prog_compiler_can_build_shared=no
 
8726
      enable_shared=no
 
8727
      ;;
 
8728
 
 
8729
    *nto* | *qnx*)
 
8730
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8731
      # it will coredump.
 
8732
      lt_prog_compiler_pic='-fPIC -shared'
 
8733
      ;;
 
8734
 
 
8735
    sysv4*MP*)
 
8736
      if test -d /usr/nec; then
 
8737
        lt_prog_compiler_pic=-Kconform_pic
 
8738
      fi
 
8739
      ;;
 
8740
 
 
8741
    *)
 
8742
      lt_prog_compiler_pic='-fPIC'
 
8743
      ;;
 
8744
    esac
 
8745
 
 
8746
    case $cc_basename in
 
8747
    nvcc*) # Cuda Compiler Driver 2.2
 
8748
      lt_prog_compiler_wl='-Xlinker '
 
8749
      if test -n "$lt_prog_compiler_pic"; then
 
8750
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8751
      fi
 
8752
      ;;
 
8753
    esac
 
8754
  else
 
8755
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8756
    case $host_os in
 
8757
    aix*)
 
8758
      lt_prog_compiler_wl='-Wl,'
 
8759
      if test "$host_cpu" = ia64; then
 
8760
        # AIX 5 now supports IA64 processor
 
8761
        lt_prog_compiler_static='-Bstatic'
 
8762
      else
 
8763
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8764
      fi
 
8765
      ;;
 
8766
 
 
8767
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8768
      # This hack is so that the source file can tell whether it is being
 
8769
      # built for inclusion in a dll (and should export symbols for example).
 
8770
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8771
      ;;
 
8772
 
 
8773
    hpux9* | hpux10* | hpux11*)
 
8774
      lt_prog_compiler_wl='-Wl,'
 
8775
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8776
      # not for PA HP-UX.
 
8777
      case $host_cpu in
 
8778
      hppa*64*|ia64*)
 
8779
        # +Z the default
 
8780
        ;;
 
8781
      *)
 
8782
        lt_prog_compiler_pic='+Z'
 
8783
        ;;
 
8784
      esac
 
8785
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8786
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8787
      ;;
 
8788
 
 
8789
    irix5* | irix6* | nonstopux*)
 
8790
      lt_prog_compiler_wl='-Wl,'
 
8791
      # PIC (with -KPIC) is the default.
 
8792
      lt_prog_compiler_static='-non_shared'
 
8793
      ;;
 
8794
 
 
8795
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
8796
      case $cc_basename in
 
8797
      # old Intel for x86_64 which still supported -KPIC.
 
8798
      ecc*)
 
8799
        lt_prog_compiler_wl='-Wl,'
 
8800
        lt_prog_compiler_pic='-KPIC'
 
8801
        lt_prog_compiler_static='-static'
 
8802
        ;;
 
8803
      # icc used to be incompatible with GCC.
 
8804
      # ICC 10 doesn't accept -KPIC any more.
 
8805
      icc* | ifort*)
 
8806
        lt_prog_compiler_wl='-Wl,'
 
8807
        lt_prog_compiler_pic='-fPIC'
 
8808
        lt_prog_compiler_static='-static'
 
8809
        ;;
 
8810
      # Lahey Fortran 8.1.
 
8811
      lf95*)
 
8812
        lt_prog_compiler_wl='-Wl,'
 
8813
        lt_prog_compiler_pic='--shared'
 
8814
        lt_prog_compiler_static='--static'
 
8815
        ;;
 
8816
      nagfor*)
 
8817
        # NAG Fortran compiler
 
8818
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8819
        lt_prog_compiler_pic='-PIC'
 
8820
        lt_prog_compiler_static='-Bstatic'
 
8821
        ;;
 
8822
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8823
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8824
        # which looks to be a dead project)
 
8825
        lt_prog_compiler_wl='-Wl,'
 
8826
        lt_prog_compiler_pic='-fpic'
 
8827
        lt_prog_compiler_static='-Bstatic'
 
8828
        ;;
 
8829
      ccc*)
 
8830
        lt_prog_compiler_wl='-Wl,'
 
8831
        # All Alpha code is PIC.
 
8832
        lt_prog_compiler_static='-non_shared'
 
8833
        ;;
 
8834
      xl* | bgxl* | bgf* | mpixl*)
 
8835
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8836
        lt_prog_compiler_wl='-Wl,'
 
8837
        lt_prog_compiler_pic='-qpic'
 
8838
        lt_prog_compiler_static='-qstaticlink'
 
8839
        ;;
 
8840
      *)
 
8841
        case `$CC -V 2>&1 | sed 5q` in
 
8842
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8843
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8844
          lt_prog_compiler_pic='-KPIC'
 
8845
          lt_prog_compiler_static='-Bstatic'
 
8846
          lt_prog_compiler_wl=''
 
8847
          ;;
 
8848
        *Sun\ F* | *Sun*Fortran*)
 
8849
          lt_prog_compiler_pic='-KPIC'
 
8850
          lt_prog_compiler_static='-Bstatic'
 
8851
          lt_prog_compiler_wl='-Qoption ld '
 
8852
          ;;
 
8853
        *Sun\ C*)
 
8854
          # Sun C 5.9
 
8855
          lt_prog_compiler_pic='-KPIC'
 
8856
          lt_prog_compiler_static='-Bstatic'
 
8857
          lt_prog_compiler_wl='-Wl,'
 
8858
          ;;
 
8859
        *Intel*\ [CF]*Compiler*)
 
8860
          lt_prog_compiler_wl='-Wl,'
 
8861
          lt_prog_compiler_pic='-fPIC'
 
8862
          lt_prog_compiler_static='-static'
 
8863
          ;;
 
8864
        *Portland\ Group*)
 
8865
          lt_prog_compiler_wl='-Wl,'
 
8866
          lt_prog_compiler_pic='-fpic'
 
8867
          lt_prog_compiler_static='-Bstatic'
 
8868
          ;;
 
8869
        esac
 
8870
        ;;
 
8871
      esac
 
8872
      ;;
 
8873
 
 
8874
    newsos6)
 
8875
      lt_prog_compiler_pic='-KPIC'
 
8876
      lt_prog_compiler_static='-Bstatic'
 
8877
      ;;
 
8878
 
 
8879
    *nto* | *qnx*)
 
8880
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8881
      # it will coredump.
 
8882
      lt_prog_compiler_pic='-fPIC -shared'
 
8883
      ;;
 
8884
 
 
8885
    osf3* | osf4* | osf5*)
 
8886
      lt_prog_compiler_wl='-Wl,'
 
8887
      # All OSF/1 code is PIC.
 
8888
      lt_prog_compiler_static='-non_shared'
 
8889
      ;;
 
8890
 
 
8891
    rdos*)
 
8892
      lt_prog_compiler_static='-non_shared'
 
8893
      ;;
 
8894
 
 
8895
    solaris*)
 
8896
      lt_prog_compiler_pic='-KPIC'
 
8897
      lt_prog_compiler_static='-Bstatic'
 
8898
      case $cc_basename in
 
8899
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8900
        lt_prog_compiler_wl='-Qoption ld ';;
 
8901
      *)
 
8902
        lt_prog_compiler_wl='-Wl,';;
 
8903
      esac
 
8904
      ;;
 
8905
 
 
8906
    sunos4*)
 
8907
      lt_prog_compiler_wl='-Qoption ld '
 
8908
      lt_prog_compiler_pic='-PIC'
 
8909
      lt_prog_compiler_static='-Bstatic'
 
8910
      ;;
 
8911
 
 
8912
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8913
      lt_prog_compiler_wl='-Wl,'
 
8914
      lt_prog_compiler_pic='-KPIC'
 
8915
      lt_prog_compiler_static='-Bstatic'
 
8916
      ;;
 
8917
 
 
8918
    sysv4*MP*)
 
8919
      if test -d /usr/nec ;then
 
8920
        lt_prog_compiler_pic='-Kconform_pic'
 
8921
        lt_prog_compiler_static='-Bstatic'
 
8922
      fi
 
8923
      ;;
 
8924
 
 
8925
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8926
      lt_prog_compiler_wl='-Wl,'
 
8927
      lt_prog_compiler_pic='-KPIC'
 
8928
      lt_prog_compiler_static='-Bstatic'
 
8929
      ;;
 
8930
 
 
8931
    unicos*)
 
8932
      lt_prog_compiler_wl='-Wl,'
 
8933
      lt_prog_compiler_can_build_shared=no
 
8934
      ;;
 
8935
 
 
8936
    uts4*)
 
8937
      lt_prog_compiler_pic='-pic'
 
8938
      lt_prog_compiler_static='-Bstatic'
 
8939
      ;;
 
8940
 
 
8941
    *)
 
8942
      lt_prog_compiler_can_build_shared=no
 
8943
      ;;
 
8944
    esac
 
8945
  fi
 
8946
 
 
8947
case $host_os in
 
8948
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8949
  *djgpp*)
 
8950
    lt_prog_compiler_pic=
 
8951
    ;;
 
8952
  *)
 
8953
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
 
8954
    ;;
 
8955
esac
 
8956
 
 
8957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8958
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8959
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8960
  $as_echo_n "(cached) " >&6
 
8961
else
 
8962
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8963
fi
 
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8965
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8966
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8967
 
 
8968
#
 
8969
# Check to make sure the PIC flag actually works.
 
8970
#
 
8971
if test -n "$lt_prog_compiler_pic"; then
 
8972
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8973
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8974
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8975
  $as_echo_n "(cached) " >&6
 
8976
else
 
8977
  lt_cv_prog_compiler_pic_works=no
 
8978
   ac_outfile=conftest.$ac_objext
 
8979
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8980
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
 
8981
   # Insert the option either (1) after the last *FLAGS variable, or
 
8982
   # (2) before a word containing "conftest.", or (3) at the end.
 
8983
   # Note that $ac_compile itself does not contain backslashes and begins
 
8984
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8985
   # The option is referenced via a variable to avoid confusing sed.
 
8986
   lt_compile=`echo "$ac_compile" | $SED \
 
8987
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8988
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8989
   -e 's:$: $lt_compiler_flag:'`
 
8990
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8991
   (eval "$lt_compile" 2>conftest.err)
 
8992
   ac_status=$?
 
8993
   cat conftest.err >&5
 
8994
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8995
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8996
     # The compiler can only warn and ignore the option if not recognized
 
8997
     # So say no if there are warnings other than the usual output.
 
8998
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8999
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9000
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9001
       lt_cv_prog_compiler_pic_works=yes
 
9002
     fi
 
9003
   fi
 
9004
   $RM conftest*
 
9005
 
 
9006
fi
 
9007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9008
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9009
 
 
9010
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9011
    case $lt_prog_compiler_pic in
 
9012
     "" | " "*) ;;
 
9013
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9014
     esac
 
9015
else
 
9016
    lt_prog_compiler_pic=
 
9017
     lt_prog_compiler_can_build_shared=no
 
9018
fi
 
9019
 
 
9020
fi
 
9021
 
 
9022
    
 
9023
    
 
9024
    
 
9025
 
 
9026
 
 
9027
 
 
9028
    
 
9029
    
 
9030
    
 
9031
 
 
9032
#
 
9033
# Check to make sure the static flag actually works.
 
9034
#
 
9035
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9037
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9038
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9039
  $as_echo_n "(cached) " >&6
 
9040
else
 
9041
  lt_cv_prog_compiler_static_works=no
 
9042
   save_LDFLAGS="$LDFLAGS"
 
9043
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9044
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9045
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9046
     # The linker can only warn and ignore the option if not recognized
 
9047
     # So say no if there are warnings
 
9048
     if test -s conftest.err; then
 
9049
       # Append any errors to the config.log.
 
9050
       cat conftest.err 1>&5
 
9051
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9052
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9053
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9054
         lt_cv_prog_compiler_static_works=yes
 
9055
       fi
 
9056
     else
 
9057
       lt_cv_prog_compiler_static_works=yes
 
9058
     fi
 
9059
   fi
 
9060
   $RM -r conftest*
 
9061
   LDFLAGS="$save_LDFLAGS"
 
9062
 
 
9063
fi
 
9064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9065
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9066
 
 
9067
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9068
    :
 
9069
else
 
9070
    lt_prog_compiler_static=
 
9071
fi
 
9072
 
 
9073
 
 
9074
    
 
9075
    
 
9076
    
 
9077
 
 
9078
 
 
9079
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9080
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9081
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9082
  $as_echo_n "(cached) " >&6
 
9083
else
 
9084
  lt_cv_prog_compiler_c_o=no
 
9085
   $RM -r conftest 2>/dev/null
 
9086
   mkdir conftest
 
9087
   cd conftest
 
9088
   mkdir out
 
9089
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9090
 
 
9091
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9092
   # Insert the option either (1) after the last *FLAGS variable, or
 
9093
   # (2) before a word containing "conftest.", or (3) at the end.
 
9094
   # Note that $ac_compile itself does not contain backslashes and begins
 
9095
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9096
   lt_compile=`echo "$ac_compile" | $SED \
 
9097
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9098
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9099
   -e 's:$: $lt_compiler_flag:'`
 
9100
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9101
   (eval "$lt_compile" 2>out/conftest.err)
 
9102
   ac_status=$?
 
9103
   cat out/conftest.err >&5
 
9104
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9105
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9106
   then
 
9107
     # The compiler can only warn and ignore the option if not recognized
 
9108
     # So say no if there are warnings
 
9109
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9110
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9111
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9112
       lt_cv_prog_compiler_c_o=yes
 
9113
     fi
 
9114
   fi
 
9115
   chmod u+w . 2>&5
 
9116
   $RM conftest*
 
9117
   # SGI C++ compiler will create directory out/ii_files/ for
 
9118
   # template instantiation
 
9119
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9120
   $RM out/* && rmdir out
 
9121
   cd ..
 
9122
   $RM -r conftest
 
9123
   $RM conftest*
 
9124
 
 
9125
fi
 
9126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9127
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9128
 
 
9129
    
 
9130
    
 
9131
    
 
9132
 
 
9133
 
 
9134
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9135
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9136
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9137
  $as_echo_n "(cached) " >&6
 
9138
else
 
9139
  lt_cv_prog_compiler_c_o=no
 
9140
   $RM -r conftest 2>/dev/null
 
9141
   mkdir conftest
 
9142
   cd conftest
 
9143
   mkdir out
 
9144
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9145
 
 
9146
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9147
   # Insert the option either (1) after the last *FLAGS variable, or
 
9148
   # (2) before a word containing "conftest.", or (3) at the end.
 
9149
   # Note that $ac_compile itself does not contain backslashes and begins
 
9150
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9151
   lt_compile=`echo "$ac_compile" | $SED \
 
9152
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9153
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9154
   -e 's:$: $lt_compiler_flag:'`
 
9155
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9156
   (eval "$lt_compile" 2>out/conftest.err)
 
9157
   ac_status=$?
 
9158
   cat out/conftest.err >&5
 
9159
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9160
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9161
   then
 
9162
     # The compiler can only warn and ignore the option if not recognized
 
9163
     # So say no if there are warnings
 
9164
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9165
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9166
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9167
       lt_cv_prog_compiler_c_o=yes
 
9168
     fi
 
9169
   fi
 
9170
   chmod u+w . 2>&5
 
9171
   $RM conftest*
 
9172
   # SGI C++ compiler will create directory out/ii_files/ for
 
9173
   # template instantiation
 
9174
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9175
   $RM out/* && rmdir out
 
9176
   cd ..
 
9177
   $RM -r conftest
 
9178
   $RM conftest*
 
9179
 
 
9180
fi
 
9181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9182
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
hard_links="nottested"
 
9188
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9189
  # do not overwrite the value of need_locks provided by the user
 
9190
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9191
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9192
  hard_links=yes
 
9193
  $RM conftest*
 
9194
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9195
  touch conftest.a
 
9196
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9197
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9199
$as_echo "$hard_links" >&6; }
 
9200
  if test "$hard_links" = no; then
 
9201
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9202
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9203
    need_locks=warn
 
9204
  fi
 
9205
else
 
9206
  need_locks=no
 
9207
fi
 
9208
 
 
9209
    
 
9210
    
 
9211
    
 
9212
 
 
9213
 
 
9214
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9215
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9216
 
 
9217
  runpath_var=
 
9218
  allow_undefined_flag=
 
9219
  always_export_symbols=no
 
9220
  archive_cmds=
 
9221
  archive_expsym_cmds=
 
9222
  compiler_needs_object=no
 
9223
  enable_shared_with_static_runtimes=no
 
9224
  export_dynamic_flag_spec=
 
9225
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9226
  hardcode_automatic=no
 
9227
  hardcode_direct=no
 
9228
  hardcode_direct_absolute=no
 
9229
  hardcode_libdir_flag_spec=
 
9230
  hardcode_libdir_separator=
 
9231
  hardcode_minus_L=no
 
9232
  hardcode_shlibpath_var=unsupported
 
9233
  inherit_rpath=no
 
9234
  link_all_deplibs=unknown
 
9235
  module_cmds=
 
9236
  module_expsym_cmds=
 
9237
  old_archive_from_new_cmds=
 
9238
  old_archive_from_expsyms_cmds=
 
9239
  thread_safe_flag_spec=
 
9240
  whole_archive_flag_spec=
 
9241
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9242
  # included in the symbol list
 
9243
  include_expsyms=
 
9244
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9245
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9246
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9247
  # as well as any symbol that contains `d'.
 
9248
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9249
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9250
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9251
  # the symbol is explicitly referenced.  Since portable code cannot
 
9252
  # rely on this symbol name, it's probably fine to never include it in
 
9253
  # preloaded symbol tables.
 
9254
  # Exclude shared library initialization/finalization symbols.
 
9255
  extract_expsyms_cmds=
 
9256
 
 
9257
  case $host_os in
 
9258
  cygwin* | mingw* | pw32* | cegcc*)
 
9259
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9260
    # When not using gcc, we currently assume that we are using
 
9261
    # Microsoft Visual C++.
 
9262
    if test "$GCC" != yes; then
 
9263
      with_gnu_ld=no
 
9264
    fi
 
9265
    ;;
 
9266
  interix*)
 
9267
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9268
    with_gnu_ld=yes
 
9269
    ;;
 
9270
  openbsd*)
 
9271
    with_gnu_ld=no
 
9272
    ;;
 
9273
  linux* | k*bsd*-gnu | gnu*)
 
9274
    link_all_deplibs=no
 
9275
    ;;
 
9276
  esac
 
9277
 
 
9278
  ld_shlibs=yes
 
9279
 
 
9280
  # On some targets, GNU ld is compatible enough with the native linker
 
9281
  # that we're better off using the native interface for both.
 
9282
  lt_use_gnu_ld_interface=no
 
9283
  if test "$with_gnu_ld" = yes; then
 
9284
    case $host_os in
 
9285
      aix*)
 
9286
        # The AIX port of GNU ld has always aspired to compatibility
 
9287
        # with the native linker.  However, as the warning in the GNU ld
 
9288
        # block says, versions before 2.19.5* couldn't really create working
 
9289
        # shared libraries, regardless of the interface used.
 
9290
        case `$LD -v 2>&1` in
 
9291
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9292
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9293
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9294
          *)
 
9295
            lt_use_gnu_ld_interface=yes
 
9296
            ;;
 
9297
        esac
 
9298
        ;;
 
9299
      *)
 
9300
        lt_use_gnu_ld_interface=yes
 
9301
        ;;
 
9302
    esac
 
9303
  fi
 
9304
 
 
9305
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9306
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9307
    wlarc='${wl}'
 
9308
 
 
9309
    # Set some defaults for GNU ld with shared library support. These
 
9310
    # are reset later if shared libraries are not supported. Putting them
 
9311
    # here allows them to be overridden if necessary.
 
9312
    runpath_var=LD_RUN_PATH
 
9313
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9314
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9315
    # ancient GNU ld didn't support --whole-archive et. al.
 
9316
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9317
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9318
    else
 
9319
      whole_archive_flag_spec=
 
9320
    fi
 
9321
    supports_anon_versioning=no
 
9322
    case `$LD -v 2>&1` in
 
9323
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9324
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9325
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9326
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9327
      *\ 2.11.*) ;; # other 2.11 versions
 
9328
      *) supports_anon_versioning=yes ;;
 
9329
    esac
 
9330
 
 
9331
    # See if GNU ld supports shared libraries.
 
9332
    case $host_os in
 
9333
    aix[3-9]*)
 
9334
      # On AIX/PPC, the GNU linker is very broken
 
9335
      if test "$host_cpu" != ia64; then
 
9336
        ld_shlibs=no
 
9337
        cat <<_LT_EOF 1>&2
 
9338
 
 
9339
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9340
*** to be unable to reliably create shared libraries on AIX.
 
9341
*** Therefore, libtool is disabling shared libraries support.  If you
 
9342
*** really care for shared libraries, you may want to install binutils
 
9343
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9344
*** You will then need to restart the configuration process.
 
9345
 
 
9346
_LT_EOF
 
9347
      fi
 
9348
      ;;
 
9349
 
 
9350
    amigaos*)
 
9351
      case $host_cpu in
 
9352
      powerpc)
 
9353
            # see comment about AmigaOS4 .so support
 
9354
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9355
            archive_expsym_cmds=''
 
9356
        ;;
 
9357
      m68k)
 
9358
            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)'
 
9359
            hardcode_libdir_flag_spec='-L$libdir'
 
9360
            hardcode_minus_L=yes
 
9361
        ;;
 
9362
      esac
 
9363
      ;;
 
9364
 
 
9365
    beos*)
 
9366
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9367
        allow_undefined_flag=unsupported
 
9368
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9369
        # support --undefined.  This deserves some investigation.  FIXME
 
9370
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9371
      else
 
9372
        ld_shlibs=no
 
9373
      fi
 
9374
      ;;
 
9375
 
 
9376
    cygwin* | mingw* | pw32* | cegcc*)
 
9377
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9378
      # as there is no search path for DLLs.
 
9379
      hardcode_libdir_flag_spec='-L$libdir'
 
9380
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9381
      allow_undefined_flag=unsupported
 
9382
      always_export_symbols=no
 
9383
      enable_shared_with_static_runtimes=yes
 
9384
      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'
 
9385
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9386
 
 
9387
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9388
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9389
        # If the export-symbols file already is a .def file (1st line
 
9390
        # is EXPORTS), use it as is; otherwise, prepend...
 
9391
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9392
          cp $export_symbols $output_objdir/$soname.def;
 
9393
        else
 
9394
          echo EXPORTS > $output_objdir/$soname.def;
 
9395
          cat $export_symbols >> $output_objdir/$soname.def;
 
9396
        fi~
 
9397
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9398
      else
 
9399
        ld_shlibs=no
 
9400
      fi
 
9401
      ;;
 
9402
 
 
9403
    haiku*)
 
9404
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9405
      link_all_deplibs=yes
 
9406
      ;;
 
9407
 
 
9408
    interix[3-9]*)
 
9409
      hardcode_direct=no
 
9410
      hardcode_shlibpath_var=no
 
9411
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9412
      export_dynamic_flag_spec='${wl}-E'
 
9413
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9414
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9415
      # default) and relocated if they conflict, which is a slow very memory
 
9416
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9417
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9418
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9419
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9420
      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'
 
9421
      ;;
 
9422
 
 
9423
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9424
      tmp_diet=no
 
9425
      if test "$host_os" = linux-dietlibc; then
 
9426
        case $cc_basename in
 
9427
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9428
        esac
 
9429
      fi
 
9430
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9431
         && test "$tmp_diet" = no
 
9432
      then
 
9433
        tmp_addflag=' $pic_flag'
 
9434
        tmp_sharedflag='-shared'
 
9435
        case $cc_basename,$host_cpu in
 
9436
        pgcc*)                          # Portland Group C compiler
 
9437
          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'
 
9438
          tmp_addflag=' $pic_flag'
 
9439
          ;;
 
9440
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9441
                                        # Portland Group f77 and f90 compilers
 
9442
          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'
 
9443
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9444
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9445
          tmp_addflag=' -i_dynamic' ;;
 
9446
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9447
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9448
        ifc* | ifort*)                  # Intel Fortran compiler
 
9449
          tmp_addflag=' -nofor_main' ;;
 
9450
        lf95*)                          # Lahey Fortran 8.1
 
9451
          whole_archive_flag_spec=
 
9452
          tmp_sharedflag='--shared' ;;
 
9453
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9454
          tmp_sharedflag='-qmkshrobj'
 
9455
          tmp_addflag= ;;
 
9456
        nvcc*)  # Cuda Compiler Driver 2.2
 
9457
          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'
 
9458
          compiler_needs_object=yes
 
9459
          ;;
 
9460
        esac
 
9461
        case `$CC -V 2>&1 | sed 5q` in
 
9462
        *Sun\ C*)                       # Sun C 5.9
 
9463
          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'
 
9464
          compiler_needs_object=yes
 
9465
          tmp_sharedflag='-G' ;;
 
9466
        *Sun\ F*)                       # Sun Fortran 8.3
 
9467
          tmp_sharedflag='-G' ;;
 
9468
        esac
 
9469
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9470
 
 
9471
        if test "x$supports_anon_versioning" = xyes; then
 
9472
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9473
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9474
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9475
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9476
        fi
 
9477
 
 
9478
        case $cc_basename in
 
9479
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9480
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9481
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9482
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9483
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9484
          if test "x$supports_anon_versioning" = xyes; then
 
9485
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9486
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9487
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9488
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9489
          fi
 
9490
          ;;
 
9491
        esac
 
9492
      else
 
9493
        ld_shlibs=no
 
9494
      fi
 
9495
      ;;
 
9496
 
 
9497
    netbsd* | netbsdelf*-gnu)
 
9498
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9499
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9500
        wlarc=
 
9501
      else
 
9502
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9503
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9504
      fi
 
9505
      ;;
 
9506
 
 
9507
    solaris*)
 
9508
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9509
        ld_shlibs=no
 
9510
        cat <<_LT_EOF 1>&2
 
9511
 
 
9512
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9513
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9514
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9515
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9516
*** your PATH or compiler configuration so that the native linker is
 
9517
*** used, and then restart.
 
9518
 
 
9519
_LT_EOF
 
9520
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9521
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9522
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9523
      else
 
9524
        ld_shlibs=no
 
9525
      fi
 
9526
      ;;
 
9527
 
 
9528
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9529
      case `$LD -v 2>&1` in
 
9530
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9531
        ld_shlibs=no
 
9532
        cat <<_LT_EOF 1>&2
 
9533
 
 
9534
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9535
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9536
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9537
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9538
*** your PATH or compiler configuration so that the native linker is
 
9539
*** used, and then restart.
 
9540
 
 
9541
_LT_EOF
 
9542
        ;;
 
9543
        *)
 
9544
          # For security reasons, it is highly recommended that you always
 
9545
          # use absolute paths for naming shared libraries, and exclude the
 
9546
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9547
          # requires that you compile everything twice, which is a pain.
 
9548
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9549
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9550
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9551
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9552
          else
 
9553
            ld_shlibs=no
 
9554
          fi
 
9555
        ;;
 
9556
      esac
 
9557
      ;;
 
9558
 
 
9559
    sunos4*)
 
9560
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9561
      wlarc=
 
9562
      hardcode_direct=yes
 
9563
      hardcode_shlibpath_var=no
 
9564
      ;;
 
9565
 
 
9566
    *)
 
9567
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9568
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9569
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9570
      else
 
9571
        ld_shlibs=no
 
9572
      fi
 
9573
      ;;
 
9574
    esac
 
9575
 
 
9576
    if test "$ld_shlibs" = no; then
 
9577
      runpath_var=
 
9578
      hardcode_libdir_flag_spec=
 
9579
      export_dynamic_flag_spec=
 
9580
      whole_archive_flag_spec=
 
9581
    fi
 
9582
  else
 
9583
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9584
    case $host_os in
 
9585
    aix3*)
 
9586
      allow_undefined_flag=unsupported
 
9587
      always_export_symbols=yes
 
9588
      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'
 
9589
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9590
      # are no directories specified by -L.
 
9591
      hardcode_minus_L=yes
 
9592
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9593
        # Neither direct hardcoding nor static linking is supported with a
 
9594
        # broken collect2.
 
9595
        hardcode_direct=unsupported
 
9596
      fi
 
9597
      ;;
 
9598
 
 
9599
    aix[4-9]*)
 
9600
      if test "$host_cpu" = ia64; then
 
9601
        # On IA64, the linker does run time linking by default, so we don't
 
9602
        # have to do anything special.
 
9603
        aix_use_runtimelinking=no
 
9604
        exp_sym_flag='-Bexport'
 
9605
        no_entry_flag=""
 
9606
      else
 
9607
        # If we're using GNU nm, then we don't want the "-C" option.
 
9608
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9609
        # Also, AIX nm treats weak defined symbols like other global
 
9610
        # defined symbols, whereas GNU nm marks them as "W".
 
9611
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9612
          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'
 
9613
        else
 
9614
          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'
 
9615
        fi
 
9616
        aix_use_runtimelinking=no
 
9617
 
 
9618
        # Test if we are trying to use run time linking or normal
 
9619
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9620
        # need to do runtime linking.
 
9621
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9622
          for ld_flag in $LDFLAGS; do
 
9623
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9624
            aix_use_runtimelinking=yes
 
9625
            break
 
9626
          fi
 
9627
          done
 
9628
          ;;
 
9629
        esac
 
9630
 
 
9631
        exp_sym_flag='-bexport'
 
9632
        no_entry_flag='-bnoentry'
 
9633
      fi
 
9634
 
 
9635
      # When large executables or shared objects are built, AIX ld can
 
9636
      # have problems creating the table of contents.  If linking a library
 
9637
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9638
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9639
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9640
 
 
9641
      archive_cmds=''
 
9642
      hardcode_direct=yes
 
9643
      hardcode_direct_absolute=yes
 
9644
      hardcode_libdir_separator=':'
 
9645
      link_all_deplibs=yes
 
9646
      file_list_spec='${wl}-f,'
 
9647
 
 
9648
      if test "$GCC" = yes; then
 
9649
        case $host_os in aix4.[012]|aix4.[012].*)
 
9650
        # We only want to do this on AIX 4.2 and lower, the check
 
9651
        # below for broken collect2 doesn't work under 4.3+
 
9652
          collect2name=`${CC} -print-prog-name=collect2`
 
9653
          if test -f "$collect2name" &&
 
9654
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9655
          then
 
9656
          # We have reworked collect2
 
9657
          :
 
9658
          else
 
9659
          # We have old collect2
 
9660
          hardcode_direct=unsupported
 
9661
          # It fails to find uninstalled libraries when the uninstalled
 
9662
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9663
          # to unsupported forces relinking
 
9664
          hardcode_minus_L=yes
 
9665
          hardcode_libdir_flag_spec='-L$libdir'
 
9666
          hardcode_libdir_separator=
 
9667
          fi
 
9668
          ;;
 
9669
        esac
 
9670
        shared_flag='-shared'
 
9671
        if test "$aix_use_runtimelinking" = yes; then
 
9672
          shared_flag="$shared_flag "'${wl}-G'
 
9673
        fi
 
9674
        link_all_deplibs=no
 
9675
      else
 
9676
        # not using gcc
 
9677
        if test "$host_cpu" = ia64; then
 
9678
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9679
        # chokes on -Wl,-G. The following line is correct:
 
9680
          shared_flag='-G'
 
9681
        else
 
9682
          if test "$aix_use_runtimelinking" = yes; then
 
9683
            shared_flag='${wl}-G'
 
9684
          else
 
9685
            shared_flag='${wl}-bM:SRE'
 
9686
          fi
 
9687
        fi
 
9688
      fi
 
9689
 
 
9690
      export_dynamic_flag_spec='${wl}-bexpall'
 
9691
      # It seems that -bexpall does not export symbols beginning with
 
9692
      # underscore (_), so it is better to generate a list of symbols to export.
 
9693
      always_export_symbols=yes
 
9694
      if test "$aix_use_runtimelinking" = yes; then
 
9695
        # Warning - without using the other runtime loading flags (-brtl),
 
9696
        # -berok will link without error, but may produce a broken library.
 
9697
        allow_undefined_flag='-berok'
 
9698
        # Determine the default libpath from the value encoded in an
 
9699
        # empty executable.
 
9700
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9701
  aix_libpath=$lt_cv_aix_libpath
 
9702
else
 
9703
  if ${lt_cv_aix_libpath_+:} false; then :
 
9704
  $as_echo_n "(cached) " >&6
 
9705
else
 
9706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9707
/* end confdefs.h.  */
 
9708
 
 
9709
int
 
9710
main ()
 
9711
{
 
9712
 
 
9713
  ;
 
9714
  return 0;
 
9715
}
 
9716
_ACEOF
 
9717
if ac_fn_c_try_link "$LINENO"; then :
 
9718
  
 
9719
  lt_aix_libpath_sed='
 
9720
      /Import File Strings/,/^$/ {
 
9721
          /^0/ {
 
9722
              s/^0  *\([^ ]*\) *$/\1/
 
9723
              p
 
9724
          }
 
9725
      }'
 
9726
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9727
  # Check for a 64-bit object if we didn't find anything.
 
9728
  if test -z "$lt_cv_aix_libpath_"; then
 
9729
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9730
  fi
 
9731
fi
 
9732
rm -f core conftest.err conftest.$ac_objext \
 
9733
    conftest$ac_exeext conftest.$ac_ext
 
9734
  if test -z "$lt_cv_aix_libpath_"; then
 
9735
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9736
  fi
 
9737
  
 
9738
fi
 
9739
 
 
9740
  aix_libpath=$lt_cv_aix_libpath_
 
9741
fi
 
9742
 
 
9743
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9744
        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"
 
9745
      else
 
9746
        if test "$host_cpu" = ia64; then
 
9747
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9748
          allow_undefined_flag="-z nodefs"
 
9749
          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"
 
9750
        else
 
9751
         # Determine the default libpath from the value encoded in an
 
9752
         # empty executable.
 
9753
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9754
  aix_libpath=$lt_cv_aix_libpath
 
9755
else
 
9756
  if ${lt_cv_aix_libpath_+:} false; then :
 
9757
  $as_echo_n "(cached) " >&6
 
9758
else
 
9759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9760
/* end confdefs.h.  */
 
9761
 
 
9762
int
 
9763
main ()
 
9764
{
 
9765
 
 
9766
  ;
 
9767
  return 0;
 
9768
}
 
9769
_ACEOF
 
9770
if ac_fn_c_try_link "$LINENO"; then :
 
9771
  
 
9772
  lt_aix_libpath_sed='
 
9773
      /Import File Strings/,/^$/ {
 
9774
          /^0/ {
 
9775
              s/^0  *\([^ ]*\) *$/\1/
 
9776
              p
 
9777
          }
 
9778
      }'
 
9779
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9780
  # Check for a 64-bit object if we didn't find anything.
 
9781
  if test -z "$lt_cv_aix_libpath_"; then
 
9782
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9783
  fi
 
9784
fi
 
9785
rm -f core conftest.err conftest.$ac_objext \
 
9786
    conftest$ac_exeext conftest.$ac_ext
 
9787
  if test -z "$lt_cv_aix_libpath_"; then
 
9788
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9789
  fi
 
9790
  
 
9791
fi
 
9792
 
 
9793
  aix_libpath=$lt_cv_aix_libpath_
 
9794
fi
 
9795
 
 
9796
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9797
          # Warning - without using the other run time loading flags,
 
9798
          # -berok will link without error, but may produce a broken library.
 
9799
          no_undefined_flag=' ${wl}-bernotok'
 
9800
          allow_undefined_flag=' ${wl}-berok'
 
9801
          if test "$with_gnu_ld" = yes; then
 
9802
            # We only use this code for GNU lds that support --whole-archive.
 
9803
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9804
          else
 
9805
            # Exported symbols can be pulled into shared objects from archives
 
9806
            whole_archive_flag_spec='$convenience'
 
9807
          fi
 
9808
          archive_cmds_need_lc=yes
 
9809
          # This is similar to how AIX traditionally builds its shared libraries.
 
9810
          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'
 
9811
        fi
 
9812
      fi
 
9813
      ;;
 
9814
 
 
9815
    amigaos*)
 
9816
      case $host_cpu in
 
9817
      powerpc)
 
9818
            # see comment about AmigaOS4 .so support
 
9819
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9820
            archive_expsym_cmds=''
 
9821
        ;;
 
9822
      m68k)
 
9823
            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)'
 
9824
            hardcode_libdir_flag_spec='-L$libdir'
 
9825
            hardcode_minus_L=yes
 
9826
        ;;
 
9827
      esac
 
9828
      ;;
 
9829
 
 
9830
    bsdi[45]*)
 
9831
      export_dynamic_flag_spec=-rdynamic
 
9832
      ;;
 
9833
 
 
9834
    cygwin* | mingw* | pw32* | cegcc*)
 
9835
      # When not using gcc, we currently assume that we are using
 
9836
      # Microsoft Visual C++.
 
9837
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9838
      # no search path for DLLs.
 
9839
      case $cc_basename in
 
9840
      cl*)
 
9841
        # Native MSVC
 
9842
        hardcode_libdir_flag_spec=' '
 
9843
        allow_undefined_flag=unsupported
 
9844
        always_export_symbols=yes
 
9845
        file_list_spec='@'
 
9846
        # Tell ltmain to make .lib files, not .a files.
 
9847
        libext=lib
 
9848
        # Tell ltmain to make .dll files, not .so files.
 
9849
        shrext_cmds=".dll"
 
9850
        # FIXME: Setting linknames here is a bad hack.
 
9851
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9852
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9853
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9854
          else
 
9855
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9856
          fi~
 
9857
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9858
          linknames='
 
9859
        # The linker will not automatically build a static lib if we build a DLL.
 
9860
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9861
        enable_shared_with_static_runtimes=yes
 
9862
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9863
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9864
        # Don't use ranlib
 
9865
        old_postinstall_cmds='chmod 644 $oldlib'
 
9866
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9867
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9868
          case $lt_outputfile in
 
9869
            *.exe|*.EXE) ;;
 
9870
            *)
 
9871
              lt_outputfile="$lt_outputfile.exe"
 
9872
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9873
              ;;
 
9874
          esac~
 
9875
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9876
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9877
            $RM "$lt_outputfile.manifest";
 
9878
          fi'
 
9879
        ;;
 
9880
      *)
 
9881
        # Assume MSVC wrapper
 
9882
        hardcode_libdir_flag_spec=' '
 
9883
        allow_undefined_flag=unsupported
 
9884
        # Tell ltmain to make .lib files, not .a files.
 
9885
        libext=lib
 
9886
        # Tell ltmain to make .dll files, not .so files.
 
9887
        shrext_cmds=".dll"
 
9888
        # FIXME: Setting linknames here is a bad hack.
 
9889
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9890
        # The linker will automatically build a .lib file if we build a DLL.
 
9891
        old_archive_from_new_cmds='true'
 
9892
        # FIXME: Should let the user specify the lib program.
 
9893
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9894
        enable_shared_with_static_runtimes=yes
 
9895
        ;;
 
9896
      esac
 
9897
      ;;
 
9898
 
 
9899
    darwin* | rhapsody*)
 
9900
      
 
9901
  
 
9902
  archive_cmds_need_lc=no
 
9903
  hardcode_direct=no
 
9904
  hardcode_automatic=yes
 
9905
  hardcode_shlibpath_var=unsupported
 
9906
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9907
    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\"`'
 
9908
    
 
9909
  else
 
9910
    whole_archive_flag_spec=''
 
9911
  fi
 
9912
  link_all_deplibs=yes
 
9913
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9914
  case $cc_basename in
 
9915
     ifort*) _lt_dar_can_shared=yes ;;
 
9916
     *) _lt_dar_can_shared=$GCC ;;
 
9917
  esac
 
9918
  if test "$_lt_dar_can_shared" = "yes"; then
 
9919
    output_verbose_link_cmd=func_echo_all
 
9920
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9921
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9922
    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}"
 
9923
    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}"
 
9924
    
 
9925
  else
 
9926
  ld_shlibs=no
 
9927
  fi
 
9928
 
 
9929
      ;;
 
9930
 
 
9931
    dgux*)
 
9932
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9933
      hardcode_libdir_flag_spec='-L$libdir'
 
9934
      hardcode_shlibpath_var=no
 
9935
      ;;
 
9936
 
 
9937
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9938
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9939
    # does not break anything, and helps significantly (at the cost of a little
 
9940
    # extra space).
 
9941
    freebsd2.2*)
 
9942
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9943
      hardcode_libdir_flag_spec='-R$libdir'
 
9944
      hardcode_direct=yes
 
9945
      hardcode_shlibpath_var=no
 
9946
      ;;
 
9947
 
 
9948
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9949
    freebsd2.*)
 
9950
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9951
      hardcode_direct=yes
 
9952
      hardcode_minus_L=yes
 
9953
      hardcode_shlibpath_var=no
 
9954
      ;;
 
9955
 
 
9956
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9957
    freebsd* | dragonfly*)
 
9958
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9959
      hardcode_libdir_flag_spec='-R$libdir'
 
9960
      hardcode_direct=yes
 
9961
      hardcode_shlibpath_var=no
 
9962
      ;;
 
9963
 
 
9964
    hpux9*)
 
9965
      if test "$GCC" = yes; then
 
9966
        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'
 
9967
      else
 
9968
        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'
 
9969
      fi
 
9970
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9971
      hardcode_libdir_separator=:
 
9972
      hardcode_direct=yes
 
9973
 
 
9974
      # hardcode_minus_L: Not really in the search PATH,
 
9975
      # but as the default location of the library.
 
9976
      hardcode_minus_L=yes
 
9977
      export_dynamic_flag_spec='${wl}-E'
 
9978
      ;;
 
9979
 
 
9980
    hpux10*)
 
9981
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9982
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9983
      else
 
9984
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9985
      fi
 
9986
      if test "$with_gnu_ld" = no; then
 
9987
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9988
        hardcode_libdir_separator=:
 
9989
        hardcode_direct=yes
 
9990
        hardcode_direct_absolute=yes
 
9991
        export_dynamic_flag_spec='${wl}-E'
 
9992
        # hardcode_minus_L: Not really in the search PATH,
 
9993
        # but as the default location of the library.
 
9994
        hardcode_minus_L=yes
 
9995
      fi
 
9996
      ;;
 
9997
 
 
9998
    hpux11*)
 
9999
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10000
        case $host_cpu in
 
10001
        hppa*64*)
 
10002
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10003
          ;;
 
10004
        ia64*)
 
10005
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10006
          ;;
 
10007
        *)
 
10008
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10009
          ;;
 
10010
        esac
 
10011
      else
 
10012
        case $host_cpu in
 
10013
        hppa*64*)
 
10014
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10015
          ;;
 
10016
        ia64*)
 
10017
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10018
          ;;
 
10019
        *)
 
10020
        
 
10021
          # Older versions of the 11.00 compiler do not understand -b yet
 
10022
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10023
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10024
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10025
if ${lt_cv_prog_compiler__b+:} false; then :
 
10026
  $as_echo_n "(cached) " >&6
 
10027
else
 
10028
  lt_cv_prog_compiler__b=no
 
10029
   save_LDFLAGS="$LDFLAGS"
 
10030
   LDFLAGS="$LDFLAGS -b"
 
10031
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10032
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10033
     # The linker can only warn and ignore the option if not recognized
 
10034
     # So say no if there are warnings
 
10035
     if test -s conftest.err; then
 
10036
       # Append any errors to the config.log.
 
10037
       cat conftest.err 1>&5
 
10038
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10039
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10040
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10041
         lt_cv_prog_compiler__b=yes
 
10042
       fi
 
10043
     else
 
10044
       lt_cv_prog_compiler__b=yes
 
10045
     fi
 
10046
   fi
 
10047
   $RM -r conftest*
 
10048
   LDFLAGS="$save_LDFLAGS"
 
10049
 
 
10050
fi
 
10051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10052
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10053
 
 
10054
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10055
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10056
else
 
10057
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10058
fi
 
10059
 
 
10060
          ;;
 
10061
        esac
 
10062
      fi
 
10063
      if test "$with_gnu_ld" = no; then
 
10064
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10065
        hardcode_libdir_separator=:
 
10066
 
 
10067
        case $host_cpu in
 
10068
        hppa*64*|ia64*)
 
10069
          hardcode_direct=no
 
10070
          hardcode_shlibpath_var=no
 
10071
          ;;
 
10072
        *)
 
10073
          hardcode_direct=yes
 
10074
          hardcode_direct_absolute=yes
 
10075
          export_dynamic_flag_spec='${wl}-E'
 
10076
 
 
10077
          # hardcode_minus_L: Not really in the search PATH,
 
10078
          # but as the default location of the library.
 
10079
          hardcode_minus_L=yes
 
10080
          ;;
 
10081
        esac
 
10082
      fi
 
10083
      ;;
 
10084
 
 
10085
    irix5* | irix6* | nonstopux*)
 
10086
      if test "$GCC" = yes; then
 
10087
        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'
 
10088
        # Try to use the -exported_symbol ld option, if it does not
 
10089
        # work, assume that -exports_file does not work either and
 
10090
        # implicitly export all symbols.
 
10091
        # This should be the same for all languages, so no per-tag cache variable.
 
10092
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10093
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10094
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10095
  $as_echo_n "(cached) " >&6
 
10096
else
 
10097
  save_LDFLAGS="$LDFLAGS"
 
10098
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10099
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10100
/* end confdefs.h.  */
 
10101
int foo (void) { return 0; }
 
10102
_ACEOF
 
10103
if ac_fn_c_try_link "$LINENO"; then :
 
10104
  lt_cv_irix_exported_symbol=yes
 
10105
else
 
10106
  lt_cv_irix_exported_symbol=no
 
10107
fi
 
10108
rm -f core conftest.err conftest.$ac_objext \
 
10109
    conftest$ac_exeext conftest.$ac_ext
 
10110
           LDFLAGS="$save_LDFLAGS"
 
10111
fi
 
10112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10113
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10114
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10115
          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'
 
10116
        fi
 
10117
      else
 
10118
        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'
 
10119
        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'
 
10120
      fi
 
10121
      archive_cmds_need_lc='no'
 
10122
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10123
      hardcode_libdir_separator=:
 
10124
      inherit_rpath=yes
 
10125
      link_all_deplibs=yes
 
10126
      ;;
 
10127
 
 
10128
    netbsd* | netbsdelf*-gnu)
 
10129
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10130
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10131
      else
 
10132
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10133
      fi
 
10134
      hardcode_libdir_flag_spec='-R$libdir'
 
10135
      hardcode_direct=yes
 
10136
      hardcode_shlibpath_var=no
 
10137
      ;;
 
10138
 
 
10139
    newsos6)
 
10140
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10141
      hardcode_direct=yes
 
10142
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10143
      hardcode_libdir_separator=:
 
10144
      hardcode_shlibpath_var=no
 
10145
      ;;
 
10146
 
 
10147
    *nto* | *qnx*)
 
10148
      ;;
 
10149
 
 
10150
    openbsd*)
 
10151
      if test -f /usr/libexec/ld.so; then
 
10152
        hardcode_direct=yes
 
10153
        hardcode_shlibpath_var=no
 
10154
        hardcode_direct_absolute=yes
 
10155
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10156
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10157
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10158
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10159
          export_dynamic_flag_spec='${wl}-E'
 
10160
        else
 
10161
          case $host_os in
 
10162
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10163
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10164
             hardcode_libdir_flag_spec='-R$libdir'
 
10165
             ;;
 
10166
           *)
 
10167
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10168
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10169
             ;;
 
10170
          esac
 
10171
        fi
 
10172
      else
 
10173
        ld_shlibs=no
 
10174
      fi
 
10175
      ;;
 
10176
 
 
10177
    os2*)
 
10178
      hardcode_libdir_flag_spec='-L$libdir'
 
10179
      hardcode_minus_L=yes
 
10180
      allow_undefined_flag=unsupported
 
10181
      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'
 
10182
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10183
      ;;
 
10184
 
 
10185
    osf3*)
 
10186
      if test "$GCC" = yes; then
 
10187
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10188
        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'
 
10189
      else
 
10190
        allow_undefined_flag=' -expect_unresolved \*'
 
10191
        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'
 
10192
      fi
 
10193
      archive_cmds_need_lc='no'
 
10194
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10195
      hardcode_libdir_separator=:
 
10196
      ;;
 
10197
 
 
10198
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10199
      if test "$GCC" = yes; then
 
10200
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10201
        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'
 
10202
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10203
      else
 
10204
        allow_undefined_flag=' -expect_unresolved \*'
 
10205
        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'
 
10206
        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~
 
10207
        $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'
 
10208
 
 
10209
        # Both c and cxx compiler support -rpath directly
 
10210
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10211
      fi
 
10212
      archive_cmds_need_lc='no'
 
10213
      hardcode_libdir_separator=:
 
10214
      ;;
 
10215
 
 
10216
    solaris*)
 
10217
      no_undefined_flag=' -z defs'
 
10218
      if test "$GCC" = yes; then
 
10219
        wlarc='${wl}'
 
10220
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10221
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10222
          $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'
 
10223
      else
 
10224
        case `$CC -V 2>&1` in
 
10225
        *"Compilers 5.0"*)
 
10226
          wlarc=''
 
10227
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10228
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10229
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10230
          ;;
 
10231
        *)
 
10232
          wlarc='${wl}'
 
10233
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10234
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10235
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10236
          ;;
 
10237
        esac
 
10238
      fi
 
10239
      hardcode_libdir_flag_spec='-R$libdir'
 
10240
      hardcode_shlibpath_var=no
 
10241
      case $host_os in
 
10242
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10243
      *)
 
10244
        # The compiler driver will combine and reorder linker options,
 
10245
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10246
        # but is careful enough not to reorder.
 
10247
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10248
        if test "$GCC" = yes; then
 
10249
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10250
        else
 
10251
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10252
        fi
 
10253
        ;;
 
10254
      esac
 
10255
      link_all_deplibs=yes
 
10256
      ;;
 
10257
 
 
10258
    sunos4*)
 
10259
      if test "x$host_vendor" = xsequent; then
 
10260
        # Use $CC to link under sequent, because it throws in some extra .o
 
10261
        # files that make .init and .fini sections work.
 
10262
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10263
      else
 
10264
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10265
      fi
 
10266
      hardcode_libdir_flag_spec='-L$libdir'
 
10267
      hardcode_direct=yes
 
10268
      hardcode_minus_L=yes
 
10269
      hardcode_shlibpath_var=no
 
10270
      ;;
 
10271
 
 
10272
    sysv4)
 
10273
      case $host_vendor in
 
10274
        sni)
 
10275
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10276
          hardcode_direct=yes # is this really true???
 
10277
        ;;
 
10278
        siemens)
 
10279
          ## LD is ld it makes a PLAMLIB
 
10280
          ## CC just makes a GrossModule.
 
10281
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10282
          reload_cmds='$CC -r -o $output$reload_objs'
 
10283
          hardcode_direct=no
 
10284
        ;;
 
10285
        motorola)
 
10286
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10287
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10288
        ;;
 
10289
      esac
 
10290
      runpath_var='LD_RUN_PATH'
 
10291
      hardcode_shlibpath_var=no
 
10292
      ;;
 
10293
 
 
10294
    sysv4.3*)
 
10295
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10296
      hardcode_shlibpath_var=no
 
10297
      export_dynamic_flag_spec='-Bexport'
 
10298
      ;;
 
10299
 
 
10300
    sysv4*MP*)
 
10301
      if test -d /usr/nec; then
 
10302
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10303
        hardcode_shlibpath_var=no
 
10304
        runpath_var=LD_RUN_PATH
 
10305
        hardcode_runpath_var=yes
 
10306
        ld_shlibs=yes
 
10307
      fi
 
10308
      ;;
 
10309
 
 
10310
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10311
      no_undefined_flag='${wl}-z,text'
 
10312
      archive_cmds_need_lc=no
 
10313
      hardcode_shlibpath_var=no
 
10314
      runpath_var='LD_RUN_PATH'
 
10315
 
 
10316
      if test "$GCC" = yes; then
 
10317
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10318
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10319
      else
 
10320
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10321
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10322
      fi
 
10323
      ;;
 
10324
 
 
10325
    sysv5* | sco3.2v5* | sco5v6*)
 
10326
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10327
      # link with -lc, and that would cause any symbols used from libc to
 
10328
      # always be unresolved, which means just about no library would
 
10329
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10330
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10331
      # as -z defs.
 
10332
      no_undefined_flag='${wl}-z,text'
 
10333
      allow_undefined_flag='${wl}-z,nodefs'
 
10334
      archive_cmds_need_lc=no
 
10335
      hardcode_shlibpath_var=no
 
10336
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10337
      hardcode_libdir_separator=':'
 
10338
      link_all_deplibs=yes
 
10339
      export_dynamic_flag_spec='${wl}-Bexport'
 
10340
      runpath_var='LD_RUN_PATH'
 
10341
 
 
10342
      if test "$GCC" = yes; then
 
10343
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10344
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10345
      else
 
10346
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10347
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10348
      fi
 
10349
      ;;
 
10350
 
 
10351
    uts4*)
 
10352
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10353
      hardcode_libdir_flag_spec='-L$libdir'
 
10354
      hardcode_shlibpath_var=no
 
10355
      ;;
 
10356
 
 
10357
    *)
 
10358
      ld_shlibs=no
 
10359
      ;;
 
10360
    esac
 
10361
 
 
10362
    if test x$host_vendor = xsni; then
 
10363
      case $host in
 
10364
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10365
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10366
        ;;
 
10367
      esac
 
10368
    fi
 
10369
  fi
 
10370
 
 
10371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10372
$as_echo "$ld_shlibs" >&6; }
 
10373
test "$ld_shlibs" = no && can_build_shared=no
 
10374
 
 
10375
with_gnu_ld=$with_gnu_ld
 
10376
 
 
10377
 
 
10378
    
 
10379
    
 
10380
    
 
10381
 
 
10382
    
 
10383
    
 
10384
    
 
10385
 
 
10386
    
 
10387
    
 
10388
    
 
10389
 
 
10390
 
 
10391
#
 
10392
# Do we need to explicitly link libc?
 
10393
#
 
10394
case "x$archive_cmds_need_lc" in
 
10395
x|xyes)
 
10396
  # Assume -lc should be added
 
10397
  archive_cmds_need_lc=yes
 
10398
 
 
10399
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10400
    case $archive_cmds in
 
10401
    *'~'*)
 
10402
      # FIXME: we may have to deal with multi-command sequences.
 
10403
      ;;
 
10404
    '$CC '*)
 
10405
      # Test whether the compiler implicitly links with -lc since on some
 
10406
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10407
      # to ld, don't add -lc before -lgcc.
 
10408
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10409
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10410
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10411
  $as_echo_n "(cached) " >&6
 
10412
else
 
10413
  $RM conftest*
 
10414
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10415
 
 
10416
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10417
  (eval $ac_compile) 2>&5
 
10418
  ac_status=$?
 
10419
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10420
  test $ac_status = 0; } 2>conftest.err; then
 
10421
          soname=conftest
 
10422
          lib=conftest
 
10423
          libobjs=conftest.$ac_objext
 
10424
          deplibs=
 
10425
          wl=$lt_prog_compiler_wl
 
10426
          pic_flag=$lt_prog_compiler_pic
 
10427
          compiler_flags=-v
 
10428
          linker_flags=-v
 
10429
          verstring=
 
10430
          output_objdir=.
 
10431
          libname=conftest
 
10432
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10433
          allow_undefined_flag=
 
10434
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10435
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10436
  ac_status=$?
 
10437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10438
  test $ac_status = 0; }
 
10439
          then
 
10440
            lt_cv_archive_cmds_need_lc=no
 
10441
          else
 
10442
            lt_cv_archive_cmds_need_lc=yes
 
10443
          fi
 
10444
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10445
        else
 
10446
          cat conftest.err 1>&5
 
10447
        fi
 
10448
        $RM conftest*
 
10449
        
 
10450
fi
 
10451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10452
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10453
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10454
      ;;
 
10455
    esac
 
10456
  fi
 
10457
  ;;
 
10458
esac
 
10459
 
 
10460
 
 
10461
    
 
10462
    
 
10463
    
 
10464
 
 
10465
 
 
10466
    
 
10467
    
 
10468
    
 
10469
 
 
10470
 
 
10471
    
 
10472
    
 
10473
    
 
10474
 
 
10475
 
 
10476
    
 
10477
    
 
10478
    
 
10479
 
 
10480
 
 
10481
    
 
10482
    
 
10483
    
 
10484
 
 
10485
 
 
10486
    
 
10487
    
 
10488
    
 
10489
 
 
10490
 
 
10491
    
 
10492
    
 
10493
    
 
10494
 
 
10495
 
 
10496
    
 
10497
    
 
10498
    
 
10499
 
 
10500
 
 
10501
    
 
10502
    
 
10503
    
 
10504
 
 
10505
 
 
10506
    
 
10507
    
 
10508
    
 
10509
 
 
10510
 
 
10511
    
 
10512
    
 
10513
    
 
10514
 
 
10515
 
 
10516
    
 
10517
    
 
10518
    
 
10519
 
 
10520
 
 
10521
    
 
10522
    
 
10523
    
 
10524
 
 
10525
 
 
10526
    
 
10527
    
 
10528
    
 
10529
 
 
10530
 
 
10531
    
 
10532
    
 
10533
    
 
10534
 
 
10535
 
 
10536
    
 
10537
    
 
10538
    
 
10539
 
 
10540
 
 
10541
    
 
10542
    
 
10543
    
 
10544
 
 
10545
 
 
10546
    
 
10547
    
 
10548
    
 
10549
 
 
10550
 
 
10551
    
 
10552
    
 
10553
    
 
10554
 
 
10555
 
 
10556
    
 
10557
    
 
10558
    
 
10559
 
 
10560
 
 
10561
    
 
10562
    
 
10563
    
 
10564
 
 
10565
 
 
10566
    
 
10567
    
 
10568
    
 
10569
 
 
10570
 
 
10571
    
 
10572
    
 
10573
    
 
10574
 
 
10575
 
 
10576
    
 
10577
    
 
10578
    
 
10579
 
 
10580
 
 
10581
    
 
10582
    
 
10583
    
 
10584
 
 
10585
 
 
10586
    
 
10587
    
 
10588
    
 
10589
 
 
10590
 
 
10591
    
 
10592
    
 
10593
    
 
10594
 
 
10595
 
 
10596
    
 
10597
    
 
10598
    
 
10599
 
 
10600
 
 
10601
    
 
10602
    
 
10603
    
 
10604
 
 
10605
 
 
10606
    
 
10607
    
 
10608
    
 
10609
 
 
10610
 
 
10611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10612
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10613
 
 
10614
if test "$GCC" = yes; then
 
10615
  case $host_os in
 
10616
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10617
    *) lt_awk_arg="/^libraries:/" ;;
 
10618
  esac
 
10619
  case $host_os in
 
10620
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10621
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10622
  esac
 
10623
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10624
  case $lt_search_path_spec in
 
10625
  *\;*)
 
10626
    # if the path contains ";" then we assume it to be the separator
 
10627
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10628
    # assumed that no part of a normal pathname contains ";" but that should
 
10629
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10630
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10631
    ;;
 
10632
  *)
 
10633
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10634
    ;;
 
10635
  esac
 
10636
  # Ok, now we have the path, separated by spaces, we can step through it
 
10637
  # and add multilib dir if necessary.
 
10638
  lt_tmp_lt_search_path_spec=
 
10639
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10640
  for lt_sys_path in $lt_search_path_spec; do
 
10641
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10642
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10643
    else
 
10644
      test -d "$lt_sys_path" && \
 
10645
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10646
    fi
 
10647
  done
 
10648
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10649
BEGIN {RS=" "; FS="/|\n";} {
 
10650
  lt_foo="";
 
10651
  lt_count=0;
 
10652
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10653
    if ($lt_i != "" && $lt_i != ".") {
 
10654
      if ($lt_i == "..") {
 
10655
        lt_count++;
 
10656
      } else {
 
10657
        if (lt_count == 0) {
 
10658
          lt_foo="/" $lt_i lt_foo;
 
10659
        } else {
 
10660
          lt_count--;
 
10661
        }
 
10662
      }
 
10663
    }
 
10664
  }
 
10665
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10666
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10667
}'`
 
10668
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10669
  # for these hosts.
 
10670
  case $host_os in
 
10671
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10672
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10673
  esac
 
10674
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10675
else
 
10676
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10677
fi
 
10678
library_names_spec=
 
10679
libname_spec='lib$name'
 
10680
soname_spec=
 
10681
shrext_cmds=".so"
 
10682
postinstall_cmds=
 
10683
postuninstall_cmds=
 
10684
finish_cmds=
 
10685
finish_eval=
 
10686
shlibpath_var=
 
10687
shlibpath_overrides_runpath=unknown
 
10688
version_type=none
 
10689
dynamic_linker="$host_os ld.so"
 
10690
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10691
need_lib_prefix=unknown
 
10692
hardcode_into_libs=no
 
10693
 
 
10694
# when you set need_version to no, make sure it does not cause -set_version
 
10695
# flags to be left without arguments
 
10696
need_version=unknown
 
10697
 
 
10698
case $host_os in
 
10699
aix3*)
 
10700
  version_type=linux # correct to gnu/linux during the next big refactor
 
10701
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10702
  shlibpath_var=LIBPATH
 
10703
 
 
10704
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10705
  soname_spec='${libname}${release}${shared_ext}$major'
 
10706
  ;;
 
10707
 
 
10708
aix[4-9]*)
 
10709
  version_type=linux # correct to gnu/linux during the next big refactor
 
10710
  need_lib_prefix=no
 
10711
  need_version=no
 
10712
  hardcode_into_libs=yes
 
10713
  if test "$host_cpu" = ia64; then
 
10714
    # AIX 5 supports IA64
 
10715
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10716
    shlibpath_var=LD_LIBRARY_PATH
 
10717
  else
 
10718
    # With GCC up to 2.95.x, collect2 would create an import file
 
10719
    # for dependence libraries.  The import file would start with
 
10720
    # the line `#! .'.  This would cause the generated library to
 
10721
    # depend on `.', always an invalid library.  This was fixed in
 
10722
    # development snapshots of GCC prior to 3.0.
 
10723
    case $host_os in
 
10724
      aix4 | aix4.[01] | aix4.[01].*)
 
10725
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10726
           echo ' yes '
 
10727
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10728
        :
 
10729
      else
 
10730
        can_build_shared=no
 
10731
      fi
 
10732
      ;;
 
10733
    esac
 
10734
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10735
    # soname into executable. Probably we can add versioning support to
 
10736
    # collect2, so additional links can be useful in future.
 
10737
    if test "$aix_use_runtimelinking" = yes; then
 
10738
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10739
      # instead of lib<name>.a to let people know that these are not
 
10740
      # typical AIX shared libraries.
 
10741
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10742
    else
 
10743
      # We preserve .a as extension for shared libraries through AIX4.2
 
10744
      # and later when we are not doing run time linking.
 
10745
      library_names_spec='${libname}${release}.a $libname.a'
 
10746
      soname_spec='${libname}${release}${shared_ext}$major'
 
10747
    fi
 
10748
    shlibpath_var=LIBPATH
 
10749
  fi
 
10750
  ;;
 
10751
 
 
10752
amigaos*)
 
10753
  case $host_cpu in
 
10754
  powerpc)
 
10755
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10756
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10757
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10758
    ;;
 
10759
  m68k)
 
10760
    library_names_spec='$libname.ixlibrary $libname.a'
 
10761
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10762
    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'
 
10763
    ;;
 
10764
  esac
 
10765
  ;;
 
10766
 
 
10767
beos*)
 
10768
  library_names_spec='${libname}${shared_ext}'
 
10769
  dynamic_linker="$host_os ld.so"
 
10770
  shlibpath_var=LIBRARY_PATH
 
10771
  ;;
 
10772
 
 
10773
bsdi[45]*)
 
10774
  version_type=linux # correct to gnu/linux during the next big refactor
 
10775
  need_version=no
 
10776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10777
  soname_spec='${libname}${release}${shared_ext}$major'
 
10778
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10779
  shlibpath_var=LD_LIBRARY_PATH
 
10780
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10781
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10782
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10783
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10784
  # libtool to hard-code these into programs
 
10785
  ;;
 
10786
 
 
10787
cygwin* | mingw* | pw32* | cegcc*)
 
10788
  version_type=windows
 
10789
  shrext_cmds=".dll"
 
10790
  need_version=no
 
10791
  need_lib_prefix=no
 
10792
 
 
10793
  case $GCC,$cc_basename in
 
10794
  yes,*)
 
10795
    # gcc
 
10796
    library_names_spec='$libname.dll.a'
 
10797
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10798
    postinstall_cmds='base_file=`basename \${file}`~
 
10799
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10800
      dldir=$destdir/`dirname \$dlpath`~
 
10801
      test -d \$dldir || mkdir -p \$dldir~
 
10802
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10803
      chmod a+x \$dldir/$dlname~
 
10804
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10805
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10806
      fi'
 
10807
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10808
      dlpath=$dir/\$dldll~
 
10809
       $RM \$dlpath'
 
10810
    shlibpath_overrides_runpath=yes
 
10811
 
 
10812
    case $host_os in
 
10813
    cygwin*)
 
10814
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10815
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10816
 
 
10817
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10818
      ;;
 
10819
    mingw* | cegcc*)
 
10820
      # MinGW DLLs use traditional 'lib' prefix
 
10821
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10822
      ;;
 
10823
    pw32*)
 
10824
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10825
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10826
      ;;
 
10827
    esac
 
10828
    dynamic_linker='Win32 ld.exe'
 
10829
    ;;
 
10830
 
 
10831
  *,cl*)
 
10832
    # Native MSVC
 
10833
    libname_spec='$name'
 
10834
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10835
    library_names_spec='${libname}.dll.lib'
 
10836
 
 
10837
    case $build_os in
 
10838
    mingw*)
 
10839
      sys_lib_search_path_spec=
 
10840
      lt_save_ifs=$IFS
 
10841
      IFS=';'
 
10842
      for lt_path in $LIB
 
10843
      do
 
10844
        IFS=$lt_save_ifs
 
10845
        # Let DOS variable expansion print the short 8.3 style file name.
 
10846
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10847
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10848
      done
 
10849
      IFS=$lt_save_ifs
 
10850
      # Convert to MSYS style.
 
10851
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10852
      ;;
 
10853
    cygwin*)
 
10854
      # Convert to unix form, then to dos form, then back to unix form
 
10855
      # but this time dos style (no spaces!) so that the unix form looks
 
10856
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10857
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10858
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10859
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10860
      ;;
 
10861
    *)
 
10862
      sys_lib_search_path_spec="$LIB"
 
10863
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10864
        # It is most probably a Windows format PATH.
 
10865
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10866
      else
 
10867
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10868
      fi
 
10869
      # FIXME: find the short name or the path components, as spaces are
 
10870
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10871
      ;;
 
10872
    esac
 
10873
 
 
10874
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10875
    postinstall_cmds='base_file=`basename \${file}`~
 
10876
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10877
      dldir=$destdir/`dirname \$dlpath`~
 
10878
      test -d \$dldir || mkdir -p \$dldir~
 
10879
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10880
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10881
      dlpath=$dir/\$dldll~
 
10882
       $RM \$dlpath'
 
10883
    shlibpath_overrides_runpath=yes
 
10884
    dynamic_linker='Win32 link.exe'
 
10885
    ;;
 
10886
 
 
10887
  *)
 
10888
    # Assume MSVC wrapper
 
10889
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10890
    dynamic_linker='Win32 ld.exe'
 
10891
    ;;
 
10892
  esac
 
10893
  # FIXME: first we should search . and the directory the executable is in
 
10894
  shlibpath_var=PATH
 
10895
  ;;
 
10896
 
 
10897
darwin* | rhapsody*)
 
10898
  dynamic_linker="$host_os dyld"
 
10899
  version_type=darwin
 
10900
  need_lib_prefix=no
 
10901
  need_version=no
 
10902
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10903
  soname_spec='${libname}${release}${major}$shared_ext'
 
10904
  shlibpath_overrides_runpath=yes
 
10905
  shlibpath_var=DYLD_LIBRARY_PATH
 
10906
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10907
 
 
10908
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10909
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10910
  ;;
 
10911
 
 
10912
dgux*)
 
10913
  version_type=linux # correct to gnu/linux during the next big refactor
 
10914
  need_lib_prefix=no
 
10915
  need_version=no
 
10916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10917
  soname_spec='${libname}${release}${shared_ext}$major'
 
10918
  shlibpath_var=LD_LIBRARY_PATH
 
10919
  ;;
 
10920
 
 
10921
freebsd* | dragonfly*)
 
10922
  # DragonFly does not have aout.  When/if they implement a new
 
10923
  # versioning mechanism, adjust this.
 
10924
  if test -x /usr/bin/objformat; then
 
10925
    objformat=`/usr/bin/objformat`
 
10926
  else
 
10927
    case $host_os in
 
10928
    freebsd[23].*) objformat=aout ;;
 
10929
    *) objformat=elf ;;
 
10930
    esac
 
10931
  fi
 
10932
  version_type=freebsd-$objformat
 
10933
  case $version_type in
 
10934
    freebsd-elf*)
 
10935
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10936
      need_version=no
 
10937
      need_lib_prefix=no
 
10938
      ;;
 
10939
    freebsd-*)
 
10940
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10941
      need_version=yes
 
10942
      ;;
 
10943
  esac
 
10944
  shlibpath_var=LD_LIBRARY_PATH
 
10945
  case $host_os in
 
10946
  freebsd2.*)
 
10947
    shlibpath_overrides_runpath=yes
 
10948
    ;;
 
10949
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10950
    shlibpath_overrides_runpath=yes
 
10951
    hardcode_into_libs=yes
 
10952
    ;;
 
10953
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10954
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10955
    shlibpath_overrides_runpath=no
 
10956
    hardcode_into_libs=yes
 
10957
    ;;
 
10958
  *) # from 4.6 on, and DragonFly
 
10959
    shlibpath_overrides_runpath=yes
 
10960
    hardcode_into_libs=yes
 
10961
    ;;
 
10962
  esac
 
10963
  ;;
 
10964
 
 
10965
haiku*)
 
10966
  version_type=linux # correct to gnu/linux during the next big refactor
 
10967
  need_lib_prefix=no
 
10968
  need_version=no
 
10969
  dynamic_linker="$host_os runtime_loader"
 
10970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10971
  soname_spec='${libname}${release}${shared_ext}$major'
 
10972
  shlibpath_var=LIBRARY_PATH
 
10973
  shlibpath_overrides_runpath=yes
 
10974
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10975
  hardcode_into_libs=yes
 
10976
  ;;
 
10977
 
 
10978
hpux9* | hpux10* | hpux11*)
 
10979
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10980
  # link against other versions.
 
10981
  version_type=sunos
 
10982
  need_lib_prefix=no
 
10983
  need_version=no
 
10984
  case $host_cpu in
 
10985
  ia64*)
 
10986
    shrext_cmds='.so'
 
10987
    hardcode_into_libs=yes
 
10988
    dynamic_linker="$host_os dld.so"
 
10989
    shlibpath_var=LD_LIBRARY_PATH
 
10990
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10991
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10992
    soname_spec='${libname}${release}${shared_ext}$major'
 
10993
    if test "X$HPUX_IA64_MODE" = X32; then
 
10994
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10995
    else
 
10996
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10997
    fi
 
10998
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10999
    ;;
 
11000
  hppa*64*)
 
11001
    shrext_cmds='.sl'
 
11002
    hardcode_into_libs=yes
 
11003
    dynamic_linker="$host_os dld.sl"
 
11004
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11005
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11006
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11007
    soname_spec='${libname}${release}${shared_ext}$major'
 
11008
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11009
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11010
    ;;
 
11011
  *)
 
11012
    shrext_cmds='.sl'
 
11013
    dynamic_linker="$host_os dld.sl"
 
11014
    shlibpath_var=SHLIB_PATH
 
11015
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11016
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11017
    soname_spec='${libname}${release}${shared_ext}$major'
 
11018
    ;;
 
11019
  esac
 
11020
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11021
  postinstall_cmds='chmod 555 $lib'
 
11022
  # or fails outright, so override atomically:
 
11023
  install_override_mode=555
 
11024
  ;;
 
11025
 
 
11026
interix[3-9]*)
 
11027
  version_type=linux # correct to gnu/linux during the next big refactor
 
11028
  need_lib_prefix=no
 
11029
  need_version=no
 
11030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11031
  soname_spec='${libname}${release}${shared_ext}$major'
 
11032
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11033
  shlibpath_var=LD_LIBRARY_PATH
 
11034
  shlibpath_overrides_runpath=no
 
11035
  hardcode_into_libs=yes
 
11036
  ;;
 
11037
 
 
11038
irix5* | irix6* | nonstopux*)
 
11039
  case $host_os in
 
11040
    nonstopux*) version_type=nonstopux ;;
 
11041
    *)
 
11042
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11043
                version_type=linux # correct to gnu/linux during the next big refactor
 
11044
        else
 
11045
                version_type=irix
 
11046
        fi ;;
 
11047
  esac
 
11048
  need_lib_prefix=no
 
11049
  need_version=no
 
11050
  soname_spec='${libname}${release}${shared_ext}$major'
 
11051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11052
  case $host_os in
 
11053
  irix5* | nonstopux*)
 
11054
    libsuff= shlibsuff=
 
11055
    ;;
 
11056
  *)
 
11057
    case $LD in # libtool.m4 will add one of these switches to LD
 
11058
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11059
      libsuff= shlibsuff= libmagic=32-bit;;
 
11060
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11061
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11062
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11063
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11064
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11065
    esac
 
11066
    ;;
 
11067
  esac
 
11068
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11069
  shlibpath_overrides_runpath=no
 
11070
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11071
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11072
  hardcode_into_libs=yes
 
11073
  ;;
 
11074
 
 
11075
# No shared lib support for Linux oldld, aout, or coff.
 
11076
linux*oldld* | linux*aout* | linux*coff*)
 
11077
  dynamic_linker=no
 
11078
  ;;
 
11079
 
 
11080
# This must be glibc/ELF.
 
11081
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11082
  version_type=linux # correct to gnu/linux during the next big refactor
 
11083
  need_lib_prefix=no
 
11084
  need_version=no
 
11085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11086
  soname_spec='${libname}${release}${shared_ext}$major'
 
11087
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11088
  shlibpath_var=LD_LIBRARY_PATH
 
11089
  shlibpath_overrides_runpath=no
 
11090
 
 
11091
  # Some binutils ld are patched to set DT_RUNPATH
 
11092
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11093
  $as_echo_n "(cached) " >&6
 
11094
else
 
11095
  lt_cv_shlibpath_overrides_runpath=no
 
11096
    save_LDFLAGS=$LDFLAGS
 
11097
    save_libdir=$libdir
 
11098
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11099
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11100
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11101
/* end confdefs.h.  */
 
11102
 
 
11103
int
 
11104
main ()
 
11105
{
 
11106
 
 
11107
  ;
 
11108
  return 0;
 
11109
}
 
11110
_ACEOF
 
11111
if ac_fn_c_try_link "$LINENO"; then :
 
11112
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11113
  lt_cv_shlibpath_overrides_runpath=yes
 
11114
fi
 
11115
fi
 
11116
rm -f core conftest.err conftest.$ac_objext \
 
11117
    conftest$ac_exeext conftest.$ac_ext
 
11118
    LDFLAGS=$save_LDFLAGS
 
11119
    libdir=$save_libdir
 
11120
    
 
11121
fi
 
11122
 
 
11123
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11124
 
 
11125
  # This implies no fast_install, which is unacceptable.
 
11126
  # Some rework will be needed to allow for fast_install
 
11127
  # before this can be enabled.
 
11128
  hardcode_into_libs=yes
 
11129
 
 
11130
  # Append ld.so.conf contents to the search path
 
11131
  if test -f /etc/ld.so.conf; then
 
11132
    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' ' '`
 
11133
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11134
  fi
 
11135
 
 
11136
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11137
  # powerpc, because MkLinux only supported shared libraries with the
 
11138
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11139
  # most powerpc-linux boxes support dynamic linking these days and
 
11140
  # people can always --disable-shared, the test was removed, and we
 
11141
  # assume the GNU/Linux dynamic linker is in use.
 
11142
  dynamic_linker='GNU/Linux ld.so'
 
11143
  ;;
 
11144
 
 
11145
netbsdelf*-gnu)
 
11146
  version_type=linux
 
11147
  need_lib_prefix=no
 
11148
  need_version=no
 
11149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11150
  soname_spec='${libname}${release}${shared_ext}$major'
 
11151
  shlibpath_var=LD_LIBRARY_PATH
 
11152
  shlibpath_overrides_runpath=no
 
11153
  hardcode_into_libs=yes
 
11154
  dynamic_linker='NetBSD ld.elf_so'
 
11155
  ;;
 
11156
 
 
11157
netbsd*)
 
11158
  version_type=sunos
 
11159
  need_lib_prefix=no
 
11160
  need_version=no
 
11161
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11162
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11163
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11164
    dynamic_linker='NetBSD (a.out) ld.so'
 
11165
  else
 
11166
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11167
    soname_spec='${libname}${release}${shared_ext}$major'
 
11168
    dynamic_linker='NetBSD ld.elf_so'
 
11169
  fi
 
11170
  shlibpath_var=LD_LIBRARY_PATH
 
11171
  shlibpath_overrides_runpath=yes
 
11172
  hardcode_into_libs=yes
 
11173
  ;;
 
11174
 
 
11175
newsos6)
 
11176
  version_type=linux # correct to gnu/linux during the next big refactor
 
11177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11178
  shlibpath_var=LD_LIBRARY_PATH
 
11179
  shlibpath_overrides_runpath=yes
 
11180
  ;;
 
11181
 
 
11182
*nto* | *qnx*)
 
11183
  version_type=qnx
 
11184
  need_lib_prefix=no
 
11185
  need_version=no
 
11186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11187
  soname_spec='${libname}${release}${shared_ext}$major'
 
11188
  shlibpath_var=LD_LIBRARY_PATH
 
11189
  shlibpath_overrides_runpath=no
 
11190
  hardcode_into_libs=yes
 
11191
  dynamic_linker='ldqnx.so'
 
11192
  ;;
 
11193
 
 
11194
openbsd*)
 
11195
  version_type=sunos
 
11196
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11197
  need_lib_prefix=no
 
11198
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11199
  case $host_os in
 
11200
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11201
    *)                          need_version=no  ;;
 
11202
  esac
 
11203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11204
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11205
  shlibpath_var=LD_LIBRARY_PATH
 
11206
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11207
    case $host_os in
 
11208
      openbsd2.[89] | openbsd2.[89].*)
 
11209
        shlibpath_overrides_runpath=no
 
11210
        ;;
 
11211
      *)
 
11212
        shlibpath_overrides_runpath=yes
 
11213
        ;;
 
11214
      esac
 
11215
  else
 
11216
    shlibpath_overrides_runpath=yes
 
11217
  fi
 
11218
  ;;
 
11219
 
 
11220
os2*)
 
11221
  libname_spec='$name'
 
11222
  shrext_cmds=".dll"
 
11223
  need_lib_prefix=no
 
11224
  library_names_spec='$libname${shared_ext} $libname.a'
 
11225
  dynamic_linker='OS/2 ld.exe'
 
11226
  shlibpath_var=LIBPATH
 
11227
  ;;
 
11228
 
 
11229
osf3* | osf4* | osf5*)
 
11230
  version_type=osf
 
11231
  need_lib_prefix=no
 
11232
  need_version=no
 
11233
  soname_spec='${libname}${release}${shared_ext}$major'
 
11234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11235
  shlibpath_var=LD_LIBRARY_PATH
 
11236
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11237
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11238
  ;;
 
11239
 
 
11240
rdos*)
 
11241
  dynamic_linker=no
 
11242
  ;;
 
11243
 
 
11244
solaris*)
 
11245
  version_type=linux # correct to gnu/linux during the next big refactor
 
11246
  need_lib_prefix=no
 
11247
  need_version=no
 
11248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11249
  soname_spec='${libname}${release}${shared_ext}$major'
 
11250
  shlibpath_var=LD_LIBRARY_PATH
 
11251
  shlibpath_overrides_runpath=yes
 
11252
  hardcode_into_libs=yes
 
11253
  # ldd complains unless libraries are executable
 
11254
  postinstall_cmds='chmod +x $lib'
 
11255
  ;;
 
11256
 
 
11257
sunos4*)
 
11258
  version_type=sunos
 
11259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11260
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11261
  shlibpath_var=LD_LIBRARY_PATH
 
11262
  shlibpath_overrides_runpath=yes
 
11263
  if test "$with_gnu_ld" = yes; then
 
11264
    need_lib_prefix=no
 
11265
  fi
 
11266
  need_version=yes
 
11267
  ;;
 
11268
 
 
11269
sysv4 | sysv4.3*)
 
11270
  version_type=linux # correct to gnu/linux during the next big refactor
 
11271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11272
  soname_spec='${libname}${release}${shared_ext}$major'
 
11273
  shlibpath_var=LD_LIBRARY_PATH
 
11274
  case $host_vendor in
 
11275
    sni)
 
11276
      shlibpath_overrides_runpath=no
 
11277
      need_lib_prefix=no
 
11278
      runpath_var=LD_RUN_PATH
 
11279
      ;;
 
11280
    siemens)
 
11281
      need_lib_prefix=no
 
11282
      ;;
 
11283
    motorola)
 
11284
      need_lib_prefix=no
 
11285
      need_version=no
 
11286
      shlibpath_overrides_runpath=no
 
11287
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11288
      ;;
 
11289
  esac
 
11290
  ;;
 
11291
 
 
11292
sysv4*MP*)
 
11293
  if test -d /usr/nec ;then
 
11294
    version_type=linux # correct to gnu/linux during the next big refactor
 
11295
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11296
    soname_spec='$libname${shared_ext}.$major'
 
11297
    shlibpath_var=LD_LIBRARY_PATH
 
11298
  fi
 
11299
  ;;
 
11300
 
 
11301
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11302
  version_type=freebsd-elf
 
11303
  need_lib_prefix=no
 
11304
  need_version=no
 
11305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11306
  soname_spec='${libname}${release}${shared_ext}$major'
 
11307
  shlibpath_var=LD_LIBRARY_PATH
 
11308
  shlibpath_overrides_runpath=yes
 
11309
  hardcode_into_libs=yes
 
11310
  if test "$with_gnu_ld" = yes; then
 
11311
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11312
  else
 
11313
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11314
    case $host_os in
 
11315
      sco3.2v5*)
 
11316
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11317
        ;;
 
11318
    esac
 
11319
  fi
 
11320
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11321
  ;;
 
11322
 
 
11323
tpf*)
 
11324
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11325
  version_type=linux # correct to gnu/linux during the next big refactor
 
11326
  need_lib_prefix=no
 
11327
  need_version=no
 
11328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11329
  shlibpath_var=LD_LIBRARY_PATH
 
11330
  shlibpath_overrides_runpath=no
 
11331
  hardcode_into_libs=yes
 
11332
  ;;
 
11333
 
 
11334
uts4*)
 
11335
  version_type=linux # correct to gnu/linux during the next big refactor
 
11336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11337
  soname_spec='${libname}${release}${shared_ext}$major'
 
11338
  shlibpath_var=LD_LIBRARY_PATH
 
11339
  ;;
 
11340
 
 
11341
*)
 
11342
  dynamic_linker=no
 
11343
  ;;
 
11344
esac
 
11345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11346
$as_echo "$dynamic_linker" >&6; }
 
11347
test "$dynamic_linker" = no && can_build_shared=no
 
11348
 
 
11349
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11350
if test "$GCC" = yes; then
 
11351
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11352
fi
 
11353
 
 
11354
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11355
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11356
fi
 
11357
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11358
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11359
fi
 
11360
 
 
11361
 
 
11362
    
 
11363
    
 
11364
    
 
11365
 
 
11366
 
 
11367
    
 
11368
    
 
11369
    
 
11370
 
 
11371
 
 
11372
    
 
11373
    
 
11374
    
 
11375
 
 
11376
 
 
11377
    
 
11378
    
 
11379
    
 
11380
 
 
11381
 
 
11382
    
 
11383
    
 
11384
    
 
11385
 
 
11386
 
 
11387
    
 
11388
    
 
11389
    
 
11390
 
 
11391
 
 
11392
    
 
11393
    
 
11394
    
 
11395
 
 
11396
 
 
11397
    
 
11398
    
 
11399
    
 
11400
 
 
11401
 
 
11402
    
 
11403
    
 
11404
    
 
11405
 
 
11406
 
 
11407
    
 
11408
    
 
11409
    
 
11410
 
 
11411
 
 
11412
    
 
11413
    
 
11414
    
 
11415
 
 
11416
 
 
11417
    
 
11418
    
 
11419
    
 
11420
 
 
11421
 
 
11422
    
 
11423
    
 
11424
    
 
11425
 
 
11426
 
 
11427
    
 
11428
    
 
11429
    
 
11430
 
 
11431
 
 
11432
    
 
11433
    
 
11434
    
 
11435
 
 
11436
 
 
11437
    
 
11438
    
 
11439
    
 
11440
 
 
11441
 
 
11442
    
 
11443
    
 
11444
    
 
11445
 
 
11446
 
 
11447
    
 
11448
    
 
11449
    
 
11450
 
 
11451
 
 
11452
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11453
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11454
hardcode_action=
 
11455
if test -n "$hardcode_libdir_flag_spec" ||
 
11456
   test -n "$runpath_var" ||
 
11457
   test "X$hardcode_automatic" = "Xyes" ; then
 
11458
 
 
11459
  # We can hardcode non-existent directories.
 
11460
  if test "$hardcode_direct" != no &&
 
11461
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11462
     # have to relink, otherwise we might link with an installed library
 
11463
     # when we should be linking with a yet-to-be-installed one
 
11464
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11465
     test "$hardcode_minus_L" != no; then
 
11466
    # Linking always hardcodes the temporary library directory.
 
11467
    hardcode_action=relink
 
11468
  else
 
11469
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11470
    hardcode_action=immediate
 
11471
  fi
 
11472
else
 
11473
  # We cannot hardcode anything, or else we can only hardcode existing
 
11474
  # directories.
 
11475
  hardcode_action=unsupported
 
11476
fi
 
11477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11478
$as_echo "$hardcode_action" >&6; }
 
11479
 
 
11480
if test "$hardcode_action" = relink ||
 
11481
   test "$inherit_rpath" = yes; then
 
11482
  # Fast installation is not supported
 
11483
  enable_fast_install=no
 
11484
elif test "$shlibpath_overrides_runpath" = yes ||
 
11485
     test "$enable_shared" = no; then
 
11486
  # Fast installation is not necessary
 
11487
  enable_fast_install=needless
 
11488
fi
 
11489
 
 
11490
    
 
11491
    
 
11492
    
 
11493
 
 
11494
 
 
11495
  if test "x$enable_dlopen" != xyes; then
 
11496
  enable_dlopen=unknown
 
11497
  enable_dlopen_self=unknown
 
11498
  enable_dlopen_self_static=unknown
 
11499
else
 
11500
  lt_cv_dlopen=no
 
11501
  lt_cv_dlopen_libs=
 
11502
 
 
11503
  case $host_os in
 
11504
  beos*)
 
11505
    lt_cv_dlopen="load_add_on"
 
11506
    lt_cv_dlopen_libs=
 
11507
    lt_cv_dlopen_self=yes
 
11508
    ;;
 
11509
 
 
11510
  mingw* | pw32* | cegcc*)
 
11511
    lt_cv_dlopen="LoadLibrary"
 
11512
    lt_cv_dlopen_libs=
 
11513
    ;;
 
11514
 
 
11515
  cygwin*)
 
11516
    lt_cv_dlopen="dlopen"
 
11517
    lt_cv_dlopen_libs=
 
11518
    ;;
 
11519
 
 
11520
  darwin*)
 
11521
  # if libdl is installed we need to link against it
 
11522
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11523
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11524
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11525
  $as_echo_n "(cached) " >&6
 
11526
else
 
11527
  ac_check_lib_save_LIBS=$LIBS
 
11528
LIBS="-ldl  $LIBS"
 
11529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11530
/* end confdefs.h.  */
 
11531
 
 
11532
/* Override any GCC internal prototype to avoid an error.
 
11533
   Use char because int might match the return type of a GCC
 
11534
   builtin and then its argument prototype would still apply.  */
 
11535
#ifdef __cplusplus
 
11536
extern "C"
 
11537
#endif
 
11538
char dlopen ();
 
11539
int
 
11540
main ()
 
11541
{
 
11542
return dlopen ();
 
11543
  ;
 
11544
  return 0;
 
11545
}
 
11546
_ACEOF
 
11547
if ac_fn_c_try_link "$LINENO"; then :
 
11548
  ac_cv_lib_dl_dlopen=yes
 
11549
else
 
11550
  ac_cv_lib_dl_dlopen=no
 
11551
fi
 
11552
rm -f core conftest.err conftest.$ac_objext \
 
11553
    conftest$ac_exeext conftest.$ac_ext
 
11554
LIBS=$ac_check_lib_save_LIBS
 
11555
fi
 
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11557
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11558
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11559
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11560
else
 
11561
  
 
11562
    lt_cv_dlopen="dyld"
 
11563
    lt_cv_dlopen_libs=
 
11564
    lt_cv_dlopen_self=yes
 
11565
    
 
11566
fi
 
11567
 
 
11568
    ;;
 
11569
 
 
11570
  *)
 
11571
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11572
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11573
  lt_cv_dlopen="shl_load"
 
11574
else
 
11575
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11576
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11577
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11578
  $as_echo_n "(cached) " >&6
 
11579
else
 
11580
  ac_check_lib_save_LIBS=$LIBS
 
11581
LIBS="-ldld  $LIBS"
 
11582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11583
/* end confdefs.h.  */
 
11584
 
 
11585
/* Override any GCC internal prototype to avoid an error.
 
11586
   Use char because int might match the return type of a GCC
 
11587
   builtin and then its argument prototype would still apply.  */
 
11588
#ifdef __cplusplus
 
11589
extern "C"
 
11590
#endif
 
11591
char shl_load ();
 
11592
int
 
11593
main ()
 
11594
{
 
11595
return shl_load ();
 
11596
  ;
 
11597
  return 0;
 
11598
}
 
11599
_ACEOF
 
11600
if ac_fn_c_try_link "$LINENO"; then :
 
11601
  ac_cv_lib_dld_shl_load=yes
 
11602
else
 
11603
  ac_cv_lib_dld_shl_load=no
 
11604
fi
 
11605
rm -f core conftest.err conftest.$ac_objext \
 
11606
    conftest$ac_exeext conftest.$ac_ext
 
11607
LIBS=$ac_check_lib_save_LIBS
 
11608
fi
 
11609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11610
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11611
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11612
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11613
else
 
11614
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11615
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11616
  lt_cv_dlopen="dlopen"
 
11617
else
 
11618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11619
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11620
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11621
  $as_echo_n "(cached) " >&6
 
11622
else
 
11623
  ac_check_lib_save_LIBS=$LIBS
 
11624
LIBS="-ldl  $LIBS"
 
11625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11626
/* end confdefs.h.  */
 
11627
 
 
11628
/* Override any GCC internal prototype to avoid an error.
 
11629
   Use char because int might match the return type of a GCC
 
11630
   builtin and then its argument prototype would still apply.  */
 
11631
#ifdef __cplusplus
 
11632
extern "C"
 
11633
#endif
 
11634
char dlopen ();
 
11635
int
 
11636
main ()
 
11637
{
 
11638
return dlopen ();
 
11639
  ;
 
11640
  return 0;
 
11641
}
 
11642
_ACEOF
 
11643
if ac_fn_c_try_link "$LINENO"; then :
 
11644
  ac_cv_lib_dl_dlopen=yes
 
11645
else
 
11646
  ac_cv_lib_dl_dlopen=no
 
11647
fi
 
11648
rm -f core conftest.err conftest.$ac_objext \
 
11649
    conftest$ac_exeext conftest.$ac_ext
 
11650
LIBS=$ac_check_lib_save_LIBS
 
11651
fi
 
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11653
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11654
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11655
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11656
else
 
11657
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11658
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11659
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11660
  $as_echo_n "(cached) " >&6
 
11661
else
 
11662
  ac_check_lib_save_LIBS=$LIBS
 
11663
LIBS="-lsvld  $LIBS"
 
11664
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11665
/* end confdefs.h.  */
 
11666
 
 
11667
/* Override any GCC internal prototype to avoid an error.
 
11668
   Use char because int might match the return type of a GCC
 
11669
   builtin and then its argument prototype would still apply.  */
 
11670
#ifdef __cplusplus
 
11671
extern "C"
 
11672
#endif
 
11673
char dlopen ();
 
11674
int
 
11675
main ()
 
11676
{
 
11677
return dlopen ();
 
11678
  ;
 
11679
  return 0;
 
11680
}
 
11681
_ACEOF
 
11682
if ac_fn_c_try_link "$LINENO"; then :
 
11683
  ac_cv_lib_svld_dlopen=yes
 
11684
else
 
11685
  ac_cv_lib_svld_dlopen=no
 
11686
fi
 
11687
rm -f core conftest.err conftest.$ac_objext \
 
11688
    conftest$ac_exeext conftest.$ac_ext
 
11689
LIBS=$ac_check_lib_save_LIBS
 
11690
fi
 
11691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11692
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11693
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11694
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11695
else
 
11696
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11697
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11698
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11699
  $as_echo_n "(cached) " >&6
 
11700
else
 
11701
  ac_check_lib_save_LIBS=$LIBS
 
11702
LIBS="-ldld  $LIBS"
 
11703
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11704
/* end confdefs.h.  */
 
11705
 
 
11706
/* Override any GCC internal prototype to avoid an error.
 
11707
   Use char because int might match the return type of a GCC
 
11708
   builtin and then its argument prototype would still apply.  */
 
11709
#ifdef __cplusplus
 
11710
extern "C"
 
11711
#endif
 
11712
char dld_link ();
 
11713
int
 
11714
main ()
 
11715
{
 
11716
return dld_link ();
 
11717
  ;
 
11718
  return 0;
 
11719
}
 
11720
_ACEOF
 
11721
if ac_fn_c_try_link "$LINENO"; then :
 
11722
  ac_cv_lib_dld_dld_link=yes
 
11723
else
 
11724
  ac_cv_lib_dld_dld_link=no
 
11725
fi
 
11726
rm -f core conftest.err conftest.$ac_objext \
 
11727
    conftest$ac_exeext conftest.$ac_ext
 
11728
LIBS=$ac_check_lib_save_LIBS
 
11729
fi
 
11730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11731
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11732
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11733
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11734
fi
 
11735
 
 
11736
              
 
11737
fi
 
11738
 
 
11739
            
 
11740
fi
 
11741
 
 
11742
          
 
11743
fi
 
11744
 
 
11745
        
 
11746
fi
 
11747
 
 
11748
      
 
11749
fi
 
11750
 
 
11751
    ;;
 
11752
  esac
 
11753
 
 
11754
  if test "x$lt_cv_dlopen" != xno; then
 
11755
    enable_dlopen=yes
 
11756
  else
 
11757
    enable_dlopen=no
 
11758
  fi
 
11759
 
 
11760
  case $lt_cv_dlopen in
 
11761
  dlopen)
 
11762
    save_CPPFLAGS="$CPPFLAGS"
 
11763
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11764
 
 
11765
    save_LDFLAGS="$LDFLAGS"
 
11766
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11767
 
 
11768
    save_LIBS="$LIBS"
 
11769
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11770
 
 
11771
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11772
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11773
if ${lt_cv_dlopen_self+:} false; then :
 
11774
  $as_echo_n "(cached) " >&6
 
11775
else
 
11776
          if test "$cross_compiling" = yes; then :
 
11777
  lt_cv_dlopen_self=cross
 
11778
else
 
11779
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11780
  lt_status=$lt_dlunknown
 
11781
  cat > conftest.$ac_ext <<_LT_EOF
 
11782
#line $LINENO "configure"
 
11783
#include "confdefs.h"
 
11784
 
 
11785
#if HAVE_DLFCN_H
 
11786
#include <dlfcn.h>
 
11787
#endif
 
11788
 
 
11789
#include <stdio.h>
 
11790
 
 
11791
#ifdef RTLD_GLOBAL
 
11792
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11793
#else
 
11794
#  ifdef DL_GLOBAL
 
11795
#    define LT_DLGLOBAL         DL_GLOBAL
 
11796
#  else
 
11797
#    define LT_DLGLOBAL         0
 
11798
#  endif
 
11799
#endif
 
11800
 
 
11801
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11802
   find out it does not work in some platform. */
 
11803
#ifndef LT_DLLAZY_OR_NOW
 
11804
#  ifdef RTLD_LAZY
 
11805
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11806
#  else
 
11807
#    ifdef DL_LAZY
 
11808
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11809
#    else
 
11810
#      ifdef RTLD_NOW
 
11811
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11812
#      else
 
11813
#        ifdef DL_NOW
 
11814
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11815
#        else
 
11816
#          define LT_DLLAZY_OR_NOW      0
 
11817
#        endif
 
11818
#      endif
 
11819
#    endif
 
11820
#  endif
 
11821
#endif
 
11822
 
 
11823
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11824
   correspondingly for the symbols needed.  */
 
11825
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11826
int fnord () __attribute__((visibility("default")));
 
11827
#endif
 
11828
 
 
11829
int fnord () { return 42; }
 
11830
int main ()
 
11831
{
 
11832
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11833
  int status = $lt_dlunknown;
 
11834
 
 
11835
  if (self)
 
11836
    {
 
11837
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11838
      else
 
11839
        {
 
11840
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11841
          else puts (dlerror ());
 
11842
        }
 
11843
      /* dlclose (self); */
 
11844
    }
 
11845
  else
 
11846
    puts (dlerror ());
 
11847
 
 
11848
  return status;
 
11849
}
 
11850
_LT_EOF
 
11851
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11852
  (eval $ac_link) 2>&5
 
11853
  ac_status=$?
 
11854
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11855
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11856
    (./conftest; exit; ) >&5 2>/dev/null
 
11857
    lt_status=$?
 
11858
    case x$lt_status in
 
11859
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11860
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11861
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11862
    esac
 
11863
  else :
 
11864
    # compilation failed
 
11865
    lt_cv_dlopen_self=no
 
11866
  fi
 
11867
fi
 
11868
rm -fr conftest*
 
11869
 
 
11870
    
 
11871
fi
 
11872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11873
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11874
 
 
11875
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11876
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11877
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11878
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11879
if ${lt_cv_dlopen_self_static+:} false; then :
 
11880
  $as_echo_n "(cached) " >&6
 
11881
else
 
11882
          if test "$cross_compiling" = yes; then :
 
11883
  lt_cv_dlopen_self_static=cross
 
11884
else
 
11885
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11886
  lt_status=$lt_dlunknown
 
11887
  cat > conftest.$ac_ext <<_LT_EOF
 
11888
#line $LINENO "configure"
 
11889
#include "confdefs.h"
 
11890
 
 
11891
#if HAVE_DLFCN_H
 
11892
#include <dlfcn.h>
 
11893
#endif
 
11894
 
 
11895
#include <stdio.h>
 
11896
 
 
11897
#ifdef RTLD_GLOBAL
 
11898
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11899
#else
 
11900
#  ifdef DL_GLOBAL
 
11901
#    define LT_DLGLOBAL         DL_GLOBAL
 
11902
#  else
 
11903
#    define LT_DLGLOBAL         0
 
11904
#  endif
 
11905
#endif
 
11906
 
 
11907
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11908
   find out it does not work in some platform. */
 
11909
#ifndef LT_DLLAZY_OR_NOW
 
11910
#  ifdef RTLD_LAZY
 
11911
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11912
#  else
 
11913
#    ifdef DL_LAZY
 
11914
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11915
#    else
 
11916
#      ifdef RTLD_NOW
 
11917
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11918
#      else
 
11919
#        ifdef DL_NOW
 
11920
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11921
#        else
 
11922
#          define LT_DLLAZY_OR_NOW      0
 
11923
#        endif
 
11924
#      endif
 
11925
#    endif
 
11926
#  endif
 
11927
#endif
 
11928
 
 
11929
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11930
   correspondingly for the symbols needed.  */
 
11931
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11932
int fnord () __attribute__((visibility("default")));
 
11933
#endif
 
11934
 
 
11935
int fnord () { return 42; }
 
11936
int main ()
 
11937
{
 
11938
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11939
  int status = $lt_dlunknown;
 
11940
 
 
11941
  if (self)
 
11942
    {
 
11943
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11944
      else
 
11945
        {
 
11946
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11947
          else puts (dlerror ());
 
11948
        }
 
11949
      /* dlclose (self); */
 
11950
    }
 
11951
  else
 
11952
    puts (dlerror ());
 
11953
 
 
11954
  return status;
 
11955
}
 
11956
_LT_EOF
 
11957
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11958
  (eval $ac_link) 2>&5
 
11959
  ac_status=$?
 
11960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11961
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11962
    (./conftest; exit; ) >&5 2>/dev/null
 
11963
    lt_status=$?
 
11964
    case x$lt_status in
 
11965
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11966
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11967
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11968
    esac
 
11969
  else :
 
11970
    # compilation failed
 
11971
    lt_cv_dlopen_self_static=no
 
11972
  fi
 
11973
fi
 
11974
rm -fr conftest*
 
11975
 
 
11976
      
 
11977
fi
 
11978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11979
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11980
    fi
 
11981
 
 
11982
    CPPFLAGS="$save_CPPFLAGS"
 
11983
    LDFLAGS="$save_LDFLAGS"
 
11984
    LIBS="$save_LIBS"
 
11985
    ;;
 
11986
  esac
 
11987
 
 
11988
  case $lt_cv_dlopen_self in
 
11989
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11990
  *) enable_dlopen_self=unknown ;;
 
11991
  esac
 
11992
 
 
11993
  case $lt_cv_dlopen_self_static in
 
11994
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11995
  *) enable_dlopen_self_static=unknown ;;
 
11996
  esac
 
11997
fi
 
11998
 
 
11999
    
 
12000
    
 
12001
    
 
12002
 
 
12003
 
 
12004
    
 
12005
    
 
12006
    
 
12007
 
 
12008
 
 
12009
    
 
12010
    
 
12011
    
 
12012
 
 
12013
 
 
12014
  
 
12015
striplib=
 
12016
old_striplib=
 
12017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12018
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12019
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12020
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12021
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12023
$as_echo "yes" >&6; }
 
12024
else
 
12025
# FIXME - insert some real tests, host_os isn't really good enough
 
12026
  case $host_os in
 
12027
  darwin*)
 
12028
    if test -n "$STRIP" ; then
 
12029
      striplib="$STRIP -x"
 
12030
      old_striplib="$STRIP -S"
 
12031
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12032
$as_echo "yes" >&6; }
 
12033
    else
 
12034
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12035
$as_echo "no" >&6; }
 
12036
    fi
 
12037
    ;;
 
12038
  *)
 
12039
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12040
$as_echo "no" >&6; }
 
12041
    ;;
 
12042
  esac
 
12043
fi
 
12044
 
 
12045
    
 
12046
    
 
12047
    
 
12048
 
 
12049
 
 
12050
    
 
12051
    
 
12052
    
 
12053
 
 
12054
 
 
12055
 
 
12056
  # Report which library types will actually be built
 
12057
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12058
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12060
$as_echo "$can_build_shared" >&6; }
 
12061
 
 
12062
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12063
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12064
  test "$can_build_shared" = "no" && enable_shared=no
 
12065
 
 
12066
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12067
  # are all built from PIC.
 
12068
  case $host_os in
 
12069
  aix3*)
 
12070
    test "$enable_shared" = yes && enable_static=no
 
12071
    if test -n "$RANLIB"; then
 
12072
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12073
      postinstall_cmds='$RANLIB $lib'
 
12074
    fi
 
12075
    ;;
 
12076
 
 
12077
  aix[4-9]*)
 
12078
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12079
      test "$enable_shared" = yes && enable_static=no
 
12080
    fi
 
12081
    ;;
 
12082
  esac
 
12083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12084
$as_echo "$enable_shared" >&6; }
 
12085
 
 
12086
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12087
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12088
  # Make sure either enable_shared or enable_static is yes.
 
12089
  test "$enable_shared" = yes || enable_static=yes
 
12090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12091
$as_echo "$enable_static" >&6; }
 
12092
 
 
12093
  
 
12094
 
 
12095
 
 
12096
fi
 
12097
ac_ext=c
 
12098
ac_cpp='$CPP $CPPFLAGS'
 
12099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12102
 
 
12103
CC="$lt_save_CC"
 
12104
 
 
12105
 
 
12106
 
 
12107
 
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
       
 
12113
       
 
12114
 
 
12115
 
 
12116
 
 
12117
 
 
12118
 
 
12119
        ac_config_commands="$ac_config_commands libtool"
 
12120
 
 
12121
 
 
12122
 
 
12123
 
 
12124
# Only expand once:
 
12125
 
 
12126
 
 
12127
 
 
12128
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
 
12129
  STATIC="-static"
 
12130
else
 
12131
  STATIC=
 
12132
fi
 
12133
 
 
12134
 
 
12135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
12136
$as_echo_n "checking for ANSI C header files... " >&6; }
 
12137
if ${ac_cv_header_stdc+:} false; then :
 
12138
  $as_echo_n "(cached) " >&6
 
12139
else
 
12140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12141
/* end confdefs.h.  */
 
12142
#include <stdlib.h>
 
12143
#include <stdarg.h>
 
12144
#include <string.h>
 
12145
#include <float.h>
 
12146
 
 
12147
int
 
12148
main ()
 
12149
{
 
12150
 
 
12151
  ;
 
12152
  return 0;
 
12153
}
 
12154
_ACEOF
 
12155
if ac_fn_c_try_compile "$LINENO"; then :
 
12156
  ac_cv_header_stdc=yes
 
12157
else
 
12158
  ac_cv_header_stdc=no
 
12159
fi
 
12160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12161
 
 
12162
if test $ac_cv_header_stdc = yes; then
 
12163
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
12164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12165
/* end confdefs.h.  */
 
12166
#include <string.h>
 
12167
 
 
12168
_ACEOF
 
12169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12170
  $EGREP "memchr" >/dev/null 2>&1; then :
 
12171
  
 
12172
else
 
12173
  ac_cv_header_stdc=no
 
12174
fi
 
12175
rm -f conftest*
 
12176
 
 
12177
fi
 
12178
 
 
12179
if test $ac_cv_header_stdc = yes; then
 
12180
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
12181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12182
/* end confdefs.h.  */
 
12183
#include <stdlib.h>
 
12184
 
 
12185
_ACEOF
 
12186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12187
  $EGREP "free" >/dev/null 2>&1; then :
 
12188
  
 
12189
else
 
12190
  ac_cv_header_stdc=no
 
12191
fi
 
12192
rm -f conftest*
 
12193
 
 
12194
fi
 
12195
 
 
12196
if test $ac_cv_header_stdc = yes; then
 
12197
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
12198
  if test "$cross_compiling" = yes; then :
 
12199
  :
 
12200
else
 
12201
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12202
/* end confdefs.h.  */
 
12203
#include <ctype.h>
 
12204
#include <stdlib.h>
 
12205
#if ((' ' & 0x0FF) == 0x020)
 
12206
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
12207
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
12208
#else
 
12209
# define ISLOWER(c) \
 
12210
                   (('a' <= (c) && (c) <= 'i') \
 
12211
                     || ('j' <= (c) && (c) <= 'r') \
 
12212
                     || ('s' <= (c) && (c) <= 'z'))
 
12213
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
12214
#endif
 
12215
 
 
12216
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
12217
int
 
12218
main ()
 
12219
{
 
12220
  int i;
 
12221
  for (i = 0; i < 256; i++)
 
12222
    if (XOR (islower (i), ISLOWER (i))
 
12223
        || toupper (i) != TOUPPER (i))
 
12224
      return 2;
 
12225
  return 0;
 
12226
}
 
12227
_ACEOF
 
12228
if ac_fn_c_try_run "$LINENO"; then :
 
12229
  
 
12230
else
 
12231
  ac_cv_header_stdc=no
 
12232
fi
 
12233
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12234
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12235
fi
 
12236
 
 
12237
fi
 
12238
fi
 
12239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
12240
$as_echo "$ac_cv_header_stdc" >&6; }
 
12241
if test $ac_cv_header_stdc = yes; then
 
12242
  
 
12243
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
12244
 
 
12245
fi
 
12246
 
 
12247
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
 
12248
if test "x$ac_cv_header_unistd_h" = xyes; then :
 
12249
  
 
12250
fi
 
12251
 
 
12252
 
 
12253
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
12254
if test "x$ac_cv_header_string_h" = xyes; then :
 
12255
  
 
12256
fi
 
12257
 
 
12258
 
 
12259
 
 
12260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
12261
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
12262
if ${ac_cv_c_const+:} false; then :
 
12263
  $as_echo_n "(cached) " >&6
 
12264
else
 
12265
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12266
/* end confdefs.h.  */
 
12267
 
 
12268
int
 
12269
main ()
 
12270
{
 
12271
 
 
12272
#ifndef __cplusplus
 
12273
  /* Ultrix mips cc rejects this sort of thing.  */
 
12274
  typedef int charset[2];
 
12275
  const charset cs = { 0, 0 };
 
12276
  /* SunOS 4.1.1 cc rejects this.  */
 
12277
  char const *const *pcpcc;
 
12278
  char **ppc;
 
12279
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
12280
  struct point {int x, y;};
 
12281
  static struct point const zero = {0,0};
 
12282
  /* AIX XL C 1.02.0.0 rejects this.
 
12283
     It does not let you subtract one const X* pointer from another in
 
12284
     an arm of an if-expression whose if-part is not a constant
 
12285
     expression */
 
12286
  const char *g = "string";
 
12287
  pcpcc = &g + (g ? g-g : 0);
 
12288
  /* HPUX 7.0 cc rejects these. */
 
12289
  ++pcpcc;
 
12290
  ppc = (char**) pcpcc;
 
12291
  pcpcc = (char const *const *) ppc;
 
12292
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
 
12293
    char tx;
 
12294
    char *t = &tx;
 
12295
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
12296
 
 
12297
    *t++ = 0;
 
12298
    if (s) return 0;
 
12299
  }
 
12300
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
12301
    int x[] = {25, 17};
 
12302
    const int *foo = &x[0];
 
12303
    ++foo;
 
12304
  }
 
12305
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
12306
    typedef const int *iptr;
 
12307
    iptr p = 0;
 
12308
    ++p;
 
12309
  }
 
12310
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
 
12311
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
12312
    struct s { int j; const int *ap[3]; } bx;
 
12313
    struct s *b = &bx; b->j = 5;
 
12314
  }
 
12315
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
12316
    const int foo = 10;
 
12317
    if (!foo) return 0;
 
12318
  }
 
12319
  return !cs[0] && !zero.x;
 
12320
#endif
 
12321
 
 
12322
  ;
 
12323
  return 0;
 
12324
}
 
12325
_ACEOF
 
12326
if ac_fn_c_try_compile "$LINENO"; then :
 
12327
  ac_cv_c_const=yes
 
12328
else
 
12329
  ac_cv_c_const=no
 
12330
fi
 
12331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12332
fi
 
12333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
12334
$as_echo "$ac_cv_c_const" >&6; }
 
12335
if test $ac_cv_c_const = no; then
 
12336
  
 
12337
$as_echo "@%:@define const /**/" >>confdefs.h
 
12338
 
 
12339
fi
 
12340
 
 
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
12342
$as_echo_n "checking for inline... " >&6; }
 
12343
if ${ac_cv_c_inline+:} false; then :
 
12344
  $as_echo_n "(cached) " >&6
 
12345
else
 
12346
  ac_cv_c_inline=no
 
12347
for ac_kw in inline __inline__ __inline; do
 
12348
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12349
/* end confdefs.h.  */
 
12350
#ifndef __cplusplus
 
12351
typedef int foo_t;
 
12352
static $ac_kw foo_t static_foo () {return 0; }
 
12353
$ac_kw foo_t foo () {return 0; }
 
12354
#endif
 
12355
 
 
12356
_ACEOF
 
12357
if ac_fn_c_try_compile "$LINENO"; then :
 
12358
  ac_cv_c_inline=$ac_kw
 
12359
fi
 
12360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12361
  test "$ac_cv_c_inline" != no && break
 
12362
done
 
12363
 
 
12364
fi
 
12365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
12366
$as_echo "$ac_cv_c_inline" >&6; }
 
12367
 
 
12368
case $ac_cv_c_inline in
 
12369
  inline | yes) ;;
 
12370
  *)
 
12371
    case $ac_cv_c_inline in
 
12372
      no) ac_val=;;
 
12373
      *) ac_val=$ac_cv_c_inline;;
 
12374
    esac
 
12375
    cat >>confdefs.h <<_ACEOF
 
12376
#ifndef __cplusplus
 
12377
#define inline $ac_val
 
12378
#endif
 
12379
_ACEOF
 
12380
    ;;
 
12381
esac
 
12382
 
 
12383
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
12384
if test "x$ac_cv_type_off_t" = xyes; then :
 
12385
  
 
12386
else
 
12387
  
 
12388
cat >>confdefs.h <<_ACEOF
 
12389
@%:@define off_t long int
 
12390
_ACEOF
 
12391
 
 
12392
fi
 
12393
 
 
12394
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
12395
if test "x$ac_cv_type_size_t" = xyes; then :
 
12396
  
 
12397
else
 
12398
  
 
12399
cat >>confdefs.h <<_ACEOF
 
12400
@%:@define size_t unsigned int
 
12401
_ACEOF
 
12402
 
 
12403
fi
 
12404
 
 
12405
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
12406
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
12407
if ${ac_cv_c_bigendian+:} false; then :
 
12408
  $as_echo_n "(cached) " >&6
 
12409
else
 
12410
  ac_cv_c_bigendian=unknown
 
12411
    # See if we're dealing with a universal compiler.
 
12412
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12413
/* end confdefs.h.  */
 
12414
#ifndef __APPLE_CC__
 
12415
               not a universal capable compiler
 
12416
             #endif
 
12417
             typedef int dummy;
 
12418
            
 
12419
_ACEOF
 
12420
if ac_fn_c_try_compile "$LINENO"; then :
 
12421
  
 
12422
        # Check for potential -arch flags.  It is not universal unless
 
12423
        # there are at least two -arch flags with different values.
 
12424
        ac_arch=
 
12425
        ac_prev=
 
12426
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
12427
         if test -n "$ac_prev"; then
 
12428
           case $ac_word in
 
12429
             i?86 | x86_64 | ppc | ppc64)
 
12430
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
12431
                 ac_arch=$ac_word
 
12432
               else
 
12433
                 ac_cv_c_bigendian=universal
 
12434
                 break
 
12435
               fi
 
12436
               ;;
 
12437
           esac
 
12438
           ac_prev=
 
12439
         elif test "x$ac_word" = "x-arch"; then
 
12440
           ac_prev=arch
 
12441
         fi
 
12442
       done
 
12443
fi
 
12444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12445
    if test $ac_cv_c_bigendian = unknown; then
 
12446
      # See if sys/param.h defines the BYTE_ORDER macro.
 
12447
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12448
/* end confdefs.h.  */
 
12449
#include <sys/types.h>
 
12450
             #include <sys/param.h>
 
12451
           
 
12452
int
 
12453
main ()
 
12454
{
 
12455
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
12456
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
12457
                     && LITTLE_ENDIAN)
 
12458
              bogus endian macros
 
12459
             #endif
 
12460
           
 
12461
  ;
 
12462
  return 0;
 
12463
}
 
12464
_ACEOF
 
12465
if ac_fn_c_try_compile "$LINENO"; then :
 
12466
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
12467
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12468
/* end confdefs.h.  */
 
12469
#include <sys/types.h>
 
12470
                #include <sys/param.h>
 
12471
              
 
12472
int
 
12473
main ()
 
12474
{
 
12475
#if BYTE_ORDER != BIG_ENDIAN
 
12476
                 not big endian
 
12477
                #endif
 
12478
              
 
12479
  ;
 
12480
  return 0;
 
12481
}
 
12482
_ACEOF
 
12483
if ac_fn_c_try_compile "$LINENO"; then :
 
12484
  ac_cv_c_bigendian=yes
 
12485
else
 
12486
  ac_cv_c_bigendian=no
 
12487
fi
 
12488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12489
fi
 
12490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12491
    fi
 
12492
    if test $ac_cv_c_bigendian = unknown; then
 
12493
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
12494
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12495
/* end confdefs.h.  */
 
12496
#include <limits.h>
 
12497
           
 
12498
int
 
12499
main ()
 
12500
{
 
12501
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
12502
              bogus endian macros
 
12503
             #endif
 
12504
           
 
12505
  ;
 
12506
  return 0;
 
12507
}
 
12508
_ACEOF
 
12509
if ac_fn_c_try_compile "$LINENO"; then :
 
12510
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
12511
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12512
/* end confdefs.h.  */
 
12513
#include <limits.h>
 
12514
              
 
12515
int
 
12516
main ()
 
12517
{
 
12518
#ifndef _BIG_ENDIAN
 
12519
                 not big endian
 
12520
                #endif
 
12521
              
 
12522
  ;
 
12523
  return 0;
 
12524
}
 
12525
_ACEOF
 
12526
if ac_fn_c_try_compile "$LINENO"; then :
 
12527
  ac_cv_c_bigendian=yes
 
12528
else
 
12529
  ac_cv_c_bigendian=no
 
12530
fi
 
12531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12532
fi
 
12533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12534
    fi
 
12535
    if test $ac_cv_c_bigendian = unknown; then
 
12536
      # Compile a test program.
 
12537
      if test "$cross_compiling" = yes; then :
 
12538
  # Try to guess by grepping values from an object file.
 
12539
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12540
/* end confdefs.h.  */
 
12541
short int ascii_mm[] =
 
12542
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
12543
                short int ascii_ii[] =
 
12544
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
12545
                int use_ascii (int i) {
 
12546
                  return ascii_mm[i] + ascii_ii[i];
 
12547
                }
 
12548
                short int ebcdic_ii[] =
 
12549
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
12550
                short int ebcdic_mm[] =
 
12551
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
12552
                int use_ebcdic (int i) {
 
12553
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
12554
                }
 
12555
                extern int foo;
 
12556
              
 
12557
int
 
12558
main ()
 
12559
{
 
12560
return use_ascii (foo) == use_ebcdic (foo);
 
12561
  ;
 
12562
  return 0;
 
12563
}
 
12564
_ACEOF
 
12565
if ac_fn_c_try_compile "$LINENO"; then :
 
12566
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
12567
              ac_cv_c_bigendian=yes
 
12568
            fi
 
12569
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
12570
              if test "$ac_cv_c_bigendian" = unknown; then
 
12571
                ac_cv_c_bigendian=no
 
12572
              else
 
12573
                # finding both strings is unlikely to happen, but who knows?
 
12574
                ac_cv_c_bigendian=unknown
 
12575
              fi
 
12576
            fi
 
12577
fi
 
12578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12579
else
 
12580
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12581
/* end confdefs.h.  */
 
12582
$ac_includes_default
 
12583
int
 
12584
main ()
 
12585
{
 
12586
 
 
12587
             /* Are we little or big endian?  From Harbison&Steele.  */
 
12588
             union
 
12589
             {
 
12590
               long int l;
 
12591
               char c[sizeof (long int)];
 
12592
             } u;
 
12593
             u.l = 1;
 
12594
             return u.c[sizeof (long int) - 1] == 1;
 
12595
           
 
12596
  ;
 
12597
  return 0;
 
12598
}
 
12599
_ACEOF
 
12600
if ac_fn_c_try_run "$LINENO"; then :
 
12601
  ac_cv_c_bigendian=no
 
12602
else
 
12603
  ac_cv_c_bigendian=yes
 
12604
fi
 
12605
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12606
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12607
fi
 
12608
 
 
12609
    fi
 
12610
fi
 
12611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
12612
$as_echo "$ac_cv_c_bigendian" >&6; }
 
12613
 case $ac_cv_c_bigendian in #(
 
12614
   yes)
 
12615
     $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
 
12616
;; #(
 
12617
   no)
 
12618
      ;; #(
 
12619
   universal)
 
12620
        
 
12621
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12622
 
 
12623
     ;; #(
 
12624
   *)
 
12625
     as_fn_error $? "unknown endianness
 
12626
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
12627
 esac
 
12628
 
 
12629
 
 
12630
case $host in
 
12631
  *mingw32* | *cygwin*)
 
12632
    for ac_func in gettimeofday
 
12633
do :
 
12634
  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
 
12635
if test "x$ac_cv_func_gettimeofday" = xyes; then :
 
12636
  cat >>confdefs.h <<_ACEOF
 
12637
@%:@define HAVE_GETTIMEOFDAY 1
 
12638
_ACEOF
 
12639
 
 
12640
fi
 
12641
done
 
12642
 
 
12643
    ;;
 
12644
  *)
 
12645
    ;;
 
12646
esac
 
12647
 
 
12648
@%:@ Check whether --enable-libdvdcss was given.
 
12649
if test "${enable_libdvdcss+set}" = set; then :
 
12650
  enableval=$enable_libdvdcss; 
 
12651
fi
 
12652
 
 
12653
 
 
12654
@%:@ Check whether --enable-dlfcn was given.
 
12655
if test "${enable_dlfcn+set}" = set; then :
 
12656
  enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval
 
12657
else
 
12658
  use_builtin_dlfcn=no
 
12659
fi
 
12660
 
 
12661
 
 
12662
if [ $use_builtin_dlfcn = "yes" ]; then
 
12663
        
 
12664
$as_echo "@%:@define USING_BUILTIN_DLFCN 1" >>confdefs.h
 
12665
 
 
12666
fi
 
12667
 
 
12668
CSS_LIBS=""
 
12669
if test x"$enable_libdvdcss" != xyes; then
 
12670
case $host in
 
12671
  *mingw32*)
 
12672
    if [ $use_builtin_dlfcn = "no" ]; then
 
12673
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
 
12674
$as_echo_n "checking for dlopen in -lc... " >&6; }
 
12675
if ${ac_cv_lib_c_dlopen+:} false; then :
 
12676
  $as_echo_n "(cached) " >&6
 
12677
else
 
12678
  ac_check_lib_save_LIBS=$LIBS
 
12679
LIBS="-lc  $LIBS"
 
12680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12681
/* end confdefs.h.  */
 
12682
 
 
12683
/* Override any GCC internal prototype to avoid an error.
 
12684
   Use char because int might match the return type of a GCC
 
12685
   builtin and then its argument prototype would still apply.  */
 
12686
#ifdef __cplusplus
 
12687
extern "C"
 
12688
#endif
 
12689
char dlopen ();
 
12690
int
 
12691
main ()
 
12692
{
 
12693
return dlopen ();
 
12694
  ;
 
12695
  return 0;
 
12696
}
 
12697
_ACEOF
 
12698
if ac_fn_c_try_link "$LINENO"; then :
 
12699
  ac_cv_lib_c_dlopen=yes
 
12700
else
 
12701
  ac_cv_lib_c_dlopen=no
 
12702
fi
 
12703
rm -f core conftest.err conftest.$ac_objext \
 
12704
    conftest$ac_exeext conftest.$ac_ext
 
12705
LIBS=$ac_check_lib_save_LIBS
 
12706
fi
 
12707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
 
12708
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
 
12709
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
 
12710
  DYNAMIC_LD_LIBS=""
 
12711
else
 
12712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12713
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12714
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12715
  $as_echo_n "(cached) " >&6
 
12716
else
 
12717
  ac_check_lib_save_LIBS=$LIBS
 
12718
LIBS="-ldl  $LIBS"
 
12719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12720
/* end confdefs.h.  */
 
12721
 
 
12722
/* Override any GCC internal prototype to avoid an error.
 
12723
   Use char because int might match the return type of a GCC
 
12724
   builtin and then its argument prototype would still apply.  */
 
12725
#ifdef __cplusplus
 
12726
extern "C"
 
12727
#endif
 
12728
char dlopen ();
 
12729
int
 
12730
main ()
 
12731
{
 
12732
return dlopen ();
 
12733
  ;
 
12734
  return 0;
 
12735
}
 
12736
_ACEOF
 
12737
if ac_fn_c_try_link "$LINENO"; then :
 
12738
  ac_cv_lib_dl_dlopen=yes
 
12739
else
 
12740
  ac_cv_lib_dl_dlopen=no
 
12741
fi
 
12742
rm -f core conftest.err conftest.$ac_objext \
 
12743
    conftest$ac_exeext conftest.$ac_ext
 
12744
LIBS=$ac_check_lib_save_LIBS
 
12745
fi
 
12746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12747
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12748
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12749
  DYNAMIC_LD_LIBS="-ldl"
 
12750
else
 
12751
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using builtin dlopen" >&5
 
12752
$as_echo "$as_me: WARNING: Using builtin dlopen" >&2;}
 
12753
fi
 
12754
 
 
12755
fi
 
12756
 
 
12757
        
 
12758
    fi
 
12759
    LDFLAGS="-no-undefined $LDFLAGS"
 
12760
    ;;
 
12761
  *cygwin*)
 
12762
    LDFLAGS="-no-undefined $LDFLAGS"
 
12763
    ;;
 
12764
  *os2*)
 
12765
    LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
 
12766
    ;;
 
12767
  *)
 
12768
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
 
12769
$as_echo_n "checking for dlopen in -lc... " >&6; }
 
12770
if ${ac_cv_lib_c_dlopen+:} false; then :
 
12771
  $as_echo_n "(cached) " >&6
 
12772
else
 
12773
  ac_check_lib_save_LIBS=$LIBS
 
12774
LIBS="-lc  $LIBS"
 
12775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12776
/* end confdefs.h.  */
 
12777
 
 
12778
/* Override any GCC internal prototype to avoid an error.
 
12779
   Use char because int might match the return type of a GCC
 
12780
   builtin and then its argument prototype would still apply.  */
 
12781
#ifdef __cplusplus
 
12782
extern "C"
 
12783
#endif
 
12784
char dlopen ();
 
12785
int
 
12786
main ()
 
12787
{
 
12788
return dlopen ();
 
12789
  ;
 
12790
  return 0;
 
12791
}
 
12792
_ACEOF
 
12793
if ac_fn_c_try_link "$LINENO"; then :
 
12794
  ac_cv_lib_c_dlopen=yes
 
12795
else
 
12796
  ac_cv_lib_c_dlopen=no
 
12797
fi
 
12798
rm -f core conftest.err conftest.$ac_objext \
 
12799
    conftest$ac_exeext conftest.$ac_ext
 
12800
LIBS=$ac_check_lib_save_LIBS
 
12801
fi
 
12802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
 
12803
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
 
12804
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
 
12805
  DYNAMIC_LD_LIBS=""
 
12806
else
 
12807
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12808
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12809
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12810
  $as_echo_n "(cached) " >&6
 
12811
else
 
12812
  ac_check_lib_save_LIBS=$LIBS
 
12813
LIBS="-ldl  $LIBS"
 
12814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12815
/* end confdefs.h.  */
 
12816
 
 
12817
/* Override any GCC internal prototype to avoid an error.
 
12818
   Use char because int might match the return type of a GCC
 
12819
   builtin and then its argument prototype would still apply.  */
 
12820
#ifdef __cplusplus
 
12821
extern "C"
 
12822
#endif
 
12823
char dlopen ();
 
12824
int
 
12825
main ()
 
12826
{
 
12827
return dlopen ();
 
12828
  ;
 
12829
  return 0;
 
12830
}
 
12831
_ACEOF
 
12832
if ac_fn_c_try_link "$LINENO"; then :
 
12833
  ac_cv_lib_dl_dlopen=yes
 
12834
else
 
12835
  ac_cv_lib_dl_dlopen=no
 
12836
fi
 
12837
rm -f core conftest.err conftest.$ac_objext \
 
12838
    conftest$ac_exeext conftest.$ac_ext
 
12839
LIBS=$ac_check_lib_save_LIBS
 
12840
fi
 
12841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12842
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12843
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12844
  DYNAMIC_LD_LIBS="-ldl"
 
12845
else
 
12846
  as_fn_error $? "dynamic linker needed" "$LINENO" 5
 
12847
fi
 
12848
 
 
12849
fi
 
12850
 
 
12851
    
 
12852
    ;;
 
12853
esac
 
12854
else
 
12855
  CSS_LIBS=-ldvdcss
 
12856
  case "${host}" in
 
12857
    *darwin*) CSS_LIBS="${CSS_LIBS} -Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
 
12858
    ;;
 
12859
  esac
 
12860
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdcss_interface_2 in -ldvdcss" >&5
 
12861
$as_echo_n "checking for dvdcss_interface_2 in -ldvdcss... " >&6; }
 
12862
if ${ac_cv_lib_dvdcss_dvdcss_interface_2+:} false; then :
 
12863
  $as_echo_n "(cached) " >&6
 
12864
else
 
12865
  ac_check_lib_save_LIBS=$LIBS
 
12866
LIBS="-ldvdcss  $LIBS"
 
12867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12868
/* end confdefs.h.  */
 
12869
 
 
12870
/* Override any GCC internal prototype to avoid an error.
 
12871
   Use char because int might match the return type of a GCC
 
12872
   builtin and then its argument prototype would still apply.  */
 
12873
#ifdef __cplusplus
 
12874
extern "C"
 
12875
#endif
 
12876
char dvdcss_interface_2 ();
 
12877
int
 
12878
main ()
 
12879
{
 
12880
return dvdcss_interface_2 ();
 
12881
  ;
 
12882
  return 0;
 
12883
}
 
12884
_ACEOF
 
12885
if ac_fn_c_try_link "$LINENO"; then :
 
12886
  ac_cv_lib_dvdcss_dvdcss_interface_2=yes
 
12887
else
 
12888
  ac_cv_lib_dvdcss_dvdcss_interface_2=no
 
12889
fi
 
12890
rm -f core conftest.err conftest.$ac_objext \
 
12891
    conftest$ac_exeext conftest.$ac_ext
 
12892
LIBS=$ac_check_lib_save_LIBS
 
12893
fi
 
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvdcss_dvdcss_interface_2" >&5
 
12895
$as_echo "$ac_cv_lib_dvdcss_dvdcss_interface_2" >&6; }
 
12896
if test "x$ac_cv_lib_dvdcss_dvdcss_interface_2" = xyes; then :
 
12897
  cat >>confdefs.h <<_ACEOF
 
12898
@%:@define HAVE_LIBDVDCSS 1
 
12899
_ACEOF
 
12900
 
 
12901
  LIBS="-ldvdcss $LIBS"
 
12902
 
 
12903
else
 
12904
  as_fn_error $? "You need libdvdcss.so.2 or later" "$LINENO" 5
 
12905
fi
 
12906
 
 
12907
  for ac_header in dvdcss/dvdcss.h
 
12908
do :
 
12909
  ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default"
 
12910
if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then :
 
12911
  cat >>confdefs.h <<_ACEOF
 
12912
@%:@define HAVE_DVDCSS_DVDCSS_H 1
 
12913
_ACEOF
 
12914
 
 
12915
else
 
12916
  as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5
 
12917
fi
 
12918
 
 
12919
done
 
12920
 
 
12921
fi
 
12922
 
 
12923
 
 
12924
 
 
12925
 
 
12926
CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
 
12927
DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
 
12928
 
 
12929
 
 
12930
 
 
12931
# Extract the first word of "doxygen", so it can be a program name with args.
 
12932
set dummy doxygen; ac_word=$2
 
12933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12934
$as_echo_n "checking for $ac_word... " >&6; }
 
12935
if ${ac_cv_prog_DOXYGEN+:} false; then :
 
12936
  $as_echo_n "(cached) " >&6
 
12937
else
 
12938
  if test -n "$DOXYGEN"; then
 
12939
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
12940
else
 
12941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12942
for as_dir in $PATH
 
12943
do
 
12944
  IFS=$as_save_IFS
 
12945
  test -z "$as_dir" && as_dir=.
 
12946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12947
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12948
    ac_cv_prog_DOXYGEN="doxygen"
 
12949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12950
    break 2
 
12951
  fi
 
12952
done
 
12953
  done
 
12954
IFS=$as_save_IFS
 
12955
 
 
12956
  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
 
12957
fi
 
12958
fi
 
12959
DOXYGEN=$ac_cv_prog_DOXYGEN
 
12960
if test -n "$DOXYGEN"; then
 
12961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
12962
$as_echo "$DOXYGEN" >&6; }
 
12963
else
 
12964
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12965
$as_echo "no" >&6; }
 
12966
fi
 
12967
 
 
12968
 
 
12969
 
 
12970
INCLUDES='-I$(top_srcdir) $(DVDREAD_CFLAGS)'
 
12971
 
 
12972
 
 
12973
ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile misc/dvdread-config misc/dvdread.pc misc/libdvdread.spec misc/relchk.sh m4/Makefile"
 
12974
 
 
12975
cat >confcache <<\_ACEOF
 
12976
# This file is a shell script that caches the results of configure
 
12977
# tests run on this system so they can be shared between configure
 
12978
# scripts and configure runs, see configure's option --config-cache.
 
12979
# It is not useful on other systems.  If it contains results you don't
 
12980
# want to keep, you may remove or edit it.
 
12981
#
 
12982
# config.status only pays attention to the cache file if you give it
 
12983
# the --recheck option to rerun configure.
 
12984
#
 
12985
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12986
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12987
# following values.
 
12988
 
 
12989
_ACEOF
 
12990
 
 
12991
# The following way of writing the cache mishandles newlines in values,
 
12992
# but we know of no workaround that is simple, portable, and efficient.
 
12993
# So, we kill variables containing newlines.
 
12994
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12995
# and sets the high bit in the cache file unless we assign to the vars.
 
12996
(
 
12997
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
12998
    eval ac_val=\$$ac_var
 
12999
    case $ac_val in #(
 
13000
    *${as_nl}*)
 
13001
      case $ac_var in #(
 
13002
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13003
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13004
      esac
 
13005
      case $ac_var in #(
 
13006
      _ | IFS | as_nl) ;; #(
 
13007
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13008
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13009
      esac ;;
 
13010
    esac
 
13011
  done
 
13012
 
 
13013
  (set) 2>&1 |
 
13014
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13015
    *${as_nl}ac_space=\ *)
 
13016
      # `set' does not quote correctly, so add quotes: double-quote
 
13017
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13018
      sed -n \
 
13019
        "s/'/'\\\\''/g;
 
13020
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13021
      ;; #(
 
13022
    *)
 
13023
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13024
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13025
      ;;
 
13026
    esac |
 
13027
    sort
 
13028
) |
 
13029
  sed '
 
13030
     /^ac_cv_env_/b end
 
13031
     t clear
 
13032
     :clear
 
13033
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13034
     t end
 
13035
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13036
     :end' >>confcache
 
13037
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13038
  if test -w "$cache_file"; then
 
13039
    if test "x$cache_file" != "x/dev/null"; then
 
13040
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13041
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13042
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13043
        cat confcache >"$cache_file"
 
13044
      else
 
13045
        case $cache_file in #(
 
13046
        */* | ?:*)
 
13047
          mv -f confcache "$cache_file"$$ &&
 
13048
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13049
        *)
 
13050
          mv -f confcache "$cache_file" ;;
 
13051
        esac
 
13052
      fi
 
13053
    fi
 
13054
  else
 
13055
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13056
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13057
  fi
 
13058
fi
 
13059
rm -f confcache
 
13060
 
 
13061
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13062
# Let make expand exec_prefix.
 
13063
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13064
 
 
13065
DEFS=-DHAVE_CONFIG_H
 
13066
 
 
13067
ac_libobjs=
 
13068
ac_ltlibobjs=
 
13069
U=
 
13070
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
13071
  # 1. Remove the extension, and $U if already installed.
 
13072
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13073
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13074
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13075
  #    will be set to the directory where LIBOBJS objects are built.
 
13076
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13077
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13078
done
 
13079
LIB@&t@OBJS=$ac_libobjs
 
13080
 
 
13081
LTLIBOBJS=$ac_ltlibobjs
 
13082
 
 
13083
 
 
13084
 if test -n "$EXEEXT"; then
 
13085
  am__EXEEXT_TRUE=
 
13086
  am__EXEEXT_FALSE='#'
 
13087
else
 
13088
  am__EXEEXT_TRUE='#'
 
13089
  am__EXEEXT_FALSE=
 
13090
fi
 
13091
 
 
13092
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13093
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13094
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13095
fi
 
13096
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13097
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13099
fi
 
13100
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13101
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13103
fi
 
13104
 
 
13105
 
 
13106
: "${CONFIG_STATUS=./config.status}"
 
13107
ac_write_fail=0
 
13108
ac_clean_files_save=$ac_clean_files
 
13109
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13110
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13111
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13112
as_write_fail=0
 
13113
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13114
#! $SHELL
 
13115
# Generated by $as_me.
 
13116
# Run this file to recreate the current configuration.
 
13117
# Compiler output produced by configure, useful for debugging
 
13118
# configure, is in config.log if it exists.
 
13119
 
 
13120
debug=false
 
13121
ac_cs_recheck=false
 
13122
ac_cs_silent=false
 
13123
 
 
13124
SHELL=\${CONFIG_SHELL-$SHELL}
 
13125
export SHELL
 
13126
_ASEOF
 
13127
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13128
## -------------------- ##
 
13129
## M4sh Initialization. ##
 
13130
## -------------------- ##
 
13131
 
 
13132
# Be more Bourne compatible
 
13133
DUALCASE=1; export DUALCASE # for MKS sh
 
13134
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13135
  emulate sh
 
13136
  NULLCMD=:
 
13137
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13138
  # is contrary to our usage.  Disable this feature.
 
13139
  alias -g '${1+"$@"}'='"$@"'
 
13140
  setopt NO_GLOB_SUBST
 
13141
else
 
13142
  case `(set -o) 2>/dev/null` in @%:@(
 
13143
  *posix*) :
 
13144
    set -o posix ;; @%:@(
 
13145
  *) :
 
13146
     ;;
 
13147
esac
 
13148
fi
 
13149
 
 
13150
 
 
13151
as_nl='
 
13152
'
 
13153
export as_nl
 
13154
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13155
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13156
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13157
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13158
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13159
# but without wasting forks for bash or zsh.
 
13160
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13161
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13162
  as_echo='print -r --'
 
13163
  as_echo_n='print -rn --'
 
13164
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13165
  as_echo='printf %s\n'
 
13166
  as_echo_n='printf %s'
 
13167
else
 
13168
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13169
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13170
    as_echo_n='/usr/ucb/echo -n'
 
13171
  else
 
13172
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13173
    as_echo_n_body='eval
 
13174
      arg=$1;
 
13175
      case $arg in @%:@(
 
13176
      *"$as_nl"*)
 
13177
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13178
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13179
      esac;
 
13180
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13181
    '
 
13182
    export as_echo_n_body
 
13183
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13184
  fi
 
13185
  export as_echo_body
 
13186
  as_echo='sh -c $as_echo_body as_echo'
 
13187
fi
 
13188
 
 
13189
# The user is always right.
 
13190
if test "${PATH_SEPARATOR+set}" != set; then
 
13191
  PATH_SEPARATOR=:
 
13192
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13193
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13194
      PATH_SEPARATOR=';'
 
13195
  }
 
13196
fi
 
13197
 
 
13198
 
 
13199
# IFS
 
13200
# We need space, tab and new line, in precisely that order.  Quoting is
 
13201
# there to prevent editors from complaining about space-tab.
 
13202
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13203
# splitting by setting IFS to empty value.)
 
13204
IFS=" ""        $as_nl"
 
13205
 
 
13206
# Find who we are.  Look in the path if we contain no directory separator.
 
13207
as_myself=
 
13208
case $0 in @%:@((
 
13209
  *[\\/]* ) as_myself=$0 ;;
 
13210
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13211
for as_dir in $PATH
 
13212
do
 
13213
  IFS=$as_save_IFS
 
13214
  test -z "$as_dir" && as_dir=.
 
13215
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13216
  done
 
13217
IFS=$as_save_IFS
 
13218
 
 
13219
     ;;
 
13220
esac
 
13221
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13222
# in which case we are not to be found in the path.
 
13223
if test "x$as_myself" = x; then
 
13224
  as_myself=$0
 
13225
fi
 
13226
if test ! -f "$as_myself"; then
 
13227
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13228
  exit 1
 
13229
fi
 
13230
 
 
13231
# Unset variables that we do not need and which cause bugs (e.g. in
 
13232
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13233
# suppresses any "Segmentation fault" message there.  '((' could
 
13234
# trigger a bug in pdksh 5.2.14.
 
13235
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13236
do eval test x\${$as_var+set} = xset \
 
13237
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13238
done
 
13239
PS1='$ '
 
13240
PS2='> '
 
13241
PS4='+ '
 
13242
 
 
13243
# NLS nuisances.
 
13244
LC_ALL=C
 
13245
export LC_ALL
 
13246
LANGUAGE=C
 
13247
export LANGUAGE
 
13248
 
 
13249
# CDPATH.
 
13250
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13251
 
 
13252
 
 
13253
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13254
@%:@ ----------------------------------------
 
13255
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13256
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13257
@%:@ script with STATUS, using 1 if that was 0.
 
13258
as_fn_error ()
 
13259
{
 
13260
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13261
  if test "$4"; then
 
13262
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13263
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13264
  fi
 
13265
  $as_echo "$as_me: error: $2" >&2
 
13266
  as_fn_exit $as_status
 
13267
} @%:@ as_fn_error
 
13268
 
 
13269
 
 
13270
@%:@ as_fn_set_status STATUS
 
13271
@%:@ -----------------------
 
13272
@%:@ Set @S|@? to STATUS, without forking.
 
13273
as_fn_set_status ()
 
13274
{
 
13275
  return $1
 
13276
} @%:@ as_fn_set_status
 
13277
 
 
13278
@%:@ as_fn_exit STATUS
 
13279
@%:@ -----------------
 
13280
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13281
as_fn_exit ()
 
13282
{
 
13283
  set +e
 
13284
  as_fn_set_status $1
 
13285
  exit $1
 
13286
} @%:@ as_fn_exit
 
13287
 
 
13288
@%:@ as_fn_unset VAR
 
13289
@%:@ ---------------
 
13290
@%:@ Portably unset VAR.
 
13291
as_fn_unset ()
 
13292
{
 
13293
  { eval $1=; unset $1;}
 
13294
}
 
13295
as_unset=as_fn_unset
 
13296
@%:@ as_fn_append VAR VALUE
 
13297
@%:@ ----------------------
 
13298
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
13299
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
13300
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
13301
@%:@ implementations.
 
13302
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13303
  eval 'as_fn_append ()
 
13304
  {
 
13305
    eval $1+=\$2
 
13306
  }'
 
13307
else
 
13308
  as_fn_append ()
 
13309
  {
 
13310
    eval $1=\$$1\$2
 
13311
  }
 
13312
fi # as_fn_append
 
13313
 
 
13314
@%:@ as_fn_arith ARG...
 
13315
@%:@ ------------------
 
13316
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
13317
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
13318
@%:@ must be portable across @S|@(()) and expr.
 
13319
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13320
  eval 'as_fn_arith ()
 
13321
  {
 
13322
    as_val=$(( $* ))
 
13323
  }'
 
13324
else
 
13325
  as_fn_arith ()
 
13326
  {
 
13327
    as_val=`expr "$@" || test $? -eq 1`
 
13328
  }
 
13329
fi # as_fn_arith
 
13330
 
 
13331
 
 
13332
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13333
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13334
  as_expr=expr
 
13335
else
 
13336
  as_expr=false
 
13337
fi
 
13338
 
 
13339
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13340
  as_basename=basename
 
13341
else
 
13342
  as_basename=false
 
13343
fi
 
13344
 
 
13345
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13346
  as_dirname=dirname
 
13347
else
 
13348
  as_dirname=false
 
13349
fi
 
13350
 
 
13351
as_me=`$as_basename -- "$0" ||
 
13352
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13353
         X"$0" : 'X\(//\)$' \| \
 
13354
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13355
$as_echo X/"$0" |
 
13356
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13357
            s//\1/
 
13358
            q
 
13359
          }
 
13360
          /^X\/\(\/\/\)$/{
 
13361
            s//\1/
 
13362
            q
 
13363
          }
 
13364
          /^X\/\(\/\).*/{
 
13365
            s//\1/
 
13366
            q
 
13367
          }
 
13368
          s/.*/./; q'`
 
13369
 
 
13370
# Avoid depending upon Character Ranges.
 
13371
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13372
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13373
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13374
as_cr_digits='0123456789'
 
13375
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13376
 
 
13377
ECHO_C= ECHO_N= ECHO_T=
 
13378
case `echo -n x` in @%:@(((((
 
13379
-n*)
 
13380
  case `echo 'xy\c'` in
 
13381
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13382
  xy)  ECHO_C='\c';;
 
13383
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13384
       ECHO_T=' ';;
 
13385
  esac;;
 
13386
*)
 
13387
  ECHO_N='-n';;
 
13388
esac
 
13389
 
 
13390
rm -f conf$$ conf$$.exe conf$$.file
 
13391
if test -d conf$$.dir; then
 
13392
  rm -f conf$$.dir/conf$$.file
 
13393
else
 
13394
  rm -f conf$$.dir
 
13395
  mkdir conf$$.dir 2>/dev/null
 
13396
fi
 
13397
if (echo >conf$$.file) 2>/dev/null; then
 
13398
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13399
    as_ln_s='ln -s'
 
13400
    # ... but there are two gotchas:
 
13401
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13402
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13403
    # In both cases, we have to default to `cp -pR'.
 
13404
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13405
      as_ln_s='cp -pR'
 
13406
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13407
    as_ln_s=ln
 
13408
  else
 
13409
    as_ln_s='cp -pR'
 
13410
  fi
 
13411
else
 
13412
  as_ln_s='cp -pR'
 
13413
fi
 
13414
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13415
rmdir conf$$.dir 2>/dev/null
 
13416
 
 
13417
 
 
13418
@%:@ as_fn_mkdir_p
 
13419
@%:@ -------------
 
13420
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
13421
as_fn_mkdir_p ()
 
13422
{
 
13423
 
 
13424
  case $as_dir in #(
 
13425
  -*) as_dir=./$as_dir;;
 
13426
  esac
 
13427
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13428
    as_dirs=
 
13429
    while :; do
 
13430
      case $as_dir in #(
 
13431
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13432
      *) as_qdir=$as_dir;;
 
13433
      esac
 
13434
      as_dirs="'$as_qdir' $as_dirs"
 
13435
      as_dir=`$as_dirname -- "$as_dir" ||
 
13436
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13437
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13438
         X"$as_dir" : 'X\(//\)$' \| \
 
13439
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13440
$as_echo X"$as_dir" |
 
13441
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13442
            s//\1/
 
13443
            q
 
13444
          }
 
13445
          /^X\(\/\/\)[^/].*/{
 
13446
            s//\1/
 
13447
            q
 
13448
          }
 
13449
          /^X\(\/\/\)$/{
 
13450
            s//\1/
 
13451
            q
 
13452
          }
 
13453
          /^X\(\/\).*/{
 
13454
            s//\1/
 
13455
            q
 
13456
          }
 
13457
          s/.*/./; q'`
 
13458
      test -d "$as_dir" && break
 
13459
    done
 
13460
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13461
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13462
 
 
13463
 
 
13464
} @%:@ as_fn_mkdir_p
 
13465
if mkdir -p . 2>/dev/null; then
 
13466
  as_mkdir_p='mkdir -p "$as_dir"'
 
13467
else
 
13468
  test -d ./-p && rmdir ./-p
 
13469
  as_mkdir_p=false
 
13470
fi
 
13471
 
 
13472
 
 
13473
@%:@ as_fn_executable_p FILE
 
13474
@%:@ -----------------------
 
13475
@%:@ Test if FILE is an executable regular file.
 
13476
as_fn_executable_p ()
 
13477
{
 
13478
  test -f "$1" && test -x "$1"
 
13479
} @%:@ as_fn_executable_p
 
13480
as_test_x='test -x'
 
13481
as_executable_p=as_fn_executable_p
 
13482
 
 
13483
# Sed expression to map a string onto a valid CPP name.
 
13484
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13485
 
 
13486
# Sed expression to map a string onto a valid variable name.
 
13487
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13488
 
 
13489
 
 
13490
exec 6>&1
 
13491
## ----------------------------------- ##
 
13492
## Main body of $CONFIG_STATUS script. ##
 
13493
## ----------------------------------- ##
 
13494
_ASEOF
 
13495
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13496
 
 
13497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13498
# Save the log message, to keep $0 and so on meaningful, and to
 
13499
# report actual input values of CONFIG_FILES etc. instead of their
 
13500
# values after options handling.
 
13501
ac_log="
 
13502
This file was extended by libdvdread $as_me 4.2.0, which was
 
13503
generated by GNU Autoconf 2.69.  Invocation command line was
 
13504
 
 
13505
  CONFIG_FILES    = $CONFIG_FILES
 
13506
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13507
  CONFIG_LINKS    = $CONFIG_LINKS
 
13508
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13509
  $ $0 $@
 
13510
 
 
13511
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13512
"
 
13513
 
 
13514
_ACEOF
 
13515
 
 
13516
case $ac_config_files in *"
 
13517
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13518
esac
 
13519
 
 
13520
case $ac_config_headers in *"
 
13521
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13522
esac
 
13523
 
 
13524
 
 
13525
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13526
# Files that config.status was made for.
 
13527
config_files="$ac_config_files"
 
13528
config_headers="$ac_config_headers"
 
13529
config_commands="$ac_config_commands"
 
13530
 
 
13531
_ACEOF
 
13532
 
 
13533
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13534
ac_cs_usage="\
 
13535
\`$as_me' instantiates files and other configuration actions
 
13536
from templates according to the current configuration.  Unless the files
 
13537
and actions are specified as TAGs, all are instantiated by default.
 
13538
 
 
13539
Usage: $0 [OPTION]... [TAG]...
 
13540
 
 
13541
  -h, --help       print this help, then exit
 
13542
  -V, --version    print version number and configuration settings, then exit
 
13543
      --config     print configuration, then exit
 
13544
  -q, --quiet, --silent
 
13545
                   do not print progress messages
 
13546
  -d, --debug      don't remove temporary files
 
13547
      --recheck    update $as_me by reconfiguring in the same conditions
 
13548
      --file=FILE[:TEMPLATE] 
 
13549
                   instantiate the configuration file FILE
 
13550
      --header=FILE[:TEMPLATE] 
 
13551
                   instantiate the configuration header FILE
 
13552
 
 
13553
Configuration files:
 
13554
$config_files
 
13555
 
 
13556
Configuration headers:
 
13557
$config_headers
 
13558
 
 
13559
Configuration commands:
 
13560
$config_commands
 
13561
 
 
13562
Report bugs to the package provider."
 
13563
 
 
13564
_ACEOF
 
13565
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13566
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13567
ac_cs_version="\\
 
13568
libdvdread config.status 4.2.0
 
13569
configured by $0, generated by GNU Autoconf 2.69,
 
13570
  with options \\"\$ac_cs_config\\"
 
13571
 
 
13572
Copyright (C) 2012 Free Software Foundation, Inc.
 
13573
This config.status script is free software; the Free Software Foundation
 
13574
gives unlimited permission to copy, distribute and modify it."
 
13575
 
 
13576
ac_pwd='$ac_pwd'
 
13577
srcdir='$srcdir'
 
13578
INSTALL='$INSTALL'
 
13579
MKDIR_P='$MKDIR_P'
 
13580
AWK='$AWK'
 
13581
test -n "\$AWK" || AWK=awk
 
13582
_ACEOF
 
13583
 
 
13584
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13585
# The default lists apply if the user does not specify any file.
 
13586
ac_need_defaults=:
 
13587
while test $# != 0
 
13588
do
 
13589
  case $1 in
 
13590
  --*=?*)
 
13591
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13592
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13593
    ac_shift=:
 
13594
    ;;
 
13595
  --*=)
 
13596
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13597
    ac_optarg=
 
13598
    ac_shift=:
 
13599
    ;;
 
13600
  *)
 
13601
    ac_option=$1
 
13602
    ac_optarg=$2
 
13603
    ac_shift=shift
 
13604
    ;;
 
13605
  esac
 
13606
 
 
13607
  case $ac_option in
 
13608
  # Handling of the options.
 
13609
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13610
    ac_cs_recheck=: ;;
 
13611
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13612
    $as_echo "$ac_cs_version"; exit ;;
 
13613
  --config | --confi | --conf | --con | --co | --c )
 
13614
    $as_echo "$ac_cs_config"; exit ;;
 
13615
  --debug | --debu | --deb | --de | --d | -d )
 
13616
    debug=: ;;
 
13617
  --file | --fil | --fi | --f )
 
13618
    $ac_shift
 
13619
    case $ac_optarg in
 
13620
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13621
    '') as_fn_error $? "missing file argument" ;;
 
13622
    esac
 
13623
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13624
    ac_need_defaults=false;;
 
13625
  --header | --heade | --head | --hea )
 
13626
    $ac_shift
 
13627
    case $ac_optarg in
 
13628
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13629
    esac
 
13630
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13631
    ac_need_defaults=false;;
 
13632
  --he | --h)
 
13633
    # Conflict between --help and --header
 
13634
    as_fn_error $? "ambiguous option: \`$1'
 
13635
Try \`$0 --help' for more information.";;
 
13636
  --help | --hel | -h )
 
13637
    $as_echo "$ac_cs_usage"; exit ;;
 
13638
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13639
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13640
    ac_cs_silent=: ;;
 
13641
 
 
13642
  # This is an error.
 
13643
  -*) as_fn_error $? "unrecognized option: \`$1'
 
13644
Try \`$0 --help' for more information." ;;
 
13645
 
 
13646
  *) as_fn_append ac_config_targets " $1"
 
13647
     ac_need_defaults=false ;;
 
13648
 
 
13649
  esac
 
13650
  shift
 
13651
done
 
13652
 
 
13653
ac_configure_extra_args=
 
13654
 
 
13655
if $ac_cs_silent; then
 
13656
  exec 6>/dev/null
 
13657
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13658
fi
 
13659
 
 
13660
_ACEOF
 
13661
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13662
if \$ac_cs_recheck; then
 
13663
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13664
  shift
 
13665
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13666
  CONFIG_SHELL='$SHELL'
 
13667
  export CONFIG_SHELL
 
13668
  exec "\$@"
 
13669
fi
 
13670
 
 
13671
_ACEOF
 
13672
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13673
exec 5>>config.log
 
13674
{
 
13675
  echo
 
13676
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
13677
@%:@@%:@ Running $as_me. @%:@@%:@
 
13678
_ASBOX
 
13679
  $as_echo "$ac_log"
 
13680
} >&5
 
13681
 
 
13682
_ACEOF
 
13683
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13684
#
 
13685
# INIT-COMMANDS
 
13686
#
 
13687
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13688
 
 
13689
 
 
13690
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13691
# if CDPATH is set.
 
13692
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13693
 
 
13694
sed_quote_subst='$sed_quote_subst'
 
13695
double_quote_subst='$double_quote_subst'
 
13696
delay_variable_subst='$delay_variable_subst'
 
13697
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
13698
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
13699
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
13700
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
13701
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
13702
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
13703
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
13704
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
13705
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
13706
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
13707
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
13708
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
13709
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
13710
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
13711
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
13712
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
13713
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
13714
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
13715
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
13716
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
13717
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
13718
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
13719
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
13720
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
13721
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
13722
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
13723
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
13724
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
13725
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
13726
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13727
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13728
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
13729
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
13730
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
13731
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
13732
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
13733
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
13734
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
13735
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
13736
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
13737
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
13738
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
13739
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
13740
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
13741
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
13742
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13743
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13744
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13745
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
13746
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
13747
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
13748
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
13749
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
13750
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
13751
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
13752
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
13753
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"`'
 
13754
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13755
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
13756
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
13757
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
13758
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
13759
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
13760
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
13761
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
13762
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
13763
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
13764
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
13765
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
13766
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
13767
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
13768
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
13769
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
13770
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
13771
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
13772
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13773
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
13774
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
13775
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13776
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13777
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
13778
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
13779
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13780
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13781
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13782
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
13783
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13784
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
13785
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13786
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13787
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13788
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
13789
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
13790
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
13791
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
13792
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13793
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
13794
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
13795
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
13796
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
13797
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
13798
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
13799
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
13800
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
13801
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
13802
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13803
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
13804
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13805
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
13806
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
13807
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
13808
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13809
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
13810
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
13811
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
13812
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
13813
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
13814
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13815
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13816
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
13817
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
13818
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
13819
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
13820
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
13821
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
13822
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
13823
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
13824
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
13825
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
13826
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
13827
 
 
13828
LTCC='$LTCC'
 
13829
LTCFLAGS='$LTCFLAGS'
 
13830
compiler='$compiler_DEFAULT'
 
13831
 
 
13832
# A function that is used when there is no print builtin or printf.
 
13833
func_fallback_echo ()
 
13834
{
 
13835
  eval 'cat <<_LTECHO_EOF
 
13836
\$1
 
13837
_LTECHO_EOF'
 
13838
}
 
13839
 
 
13840
# Quote evaled strings.
 
13841
for var in SHELL \
 
13842
ECHO \
 
13843
PATH_SEPARATOR \
 
13844
SED \
 
13845
GREP \
 
13846
EGREP \
 
13847
FGREP \
 
13848
LD \
 
13849
NM \
 
13850
LN_S \
 
13851
lt_SP2NL \
 
13852
lt_NL2SP \
 
13853
reload_flag \
 
13854
OBJDUMP \
 
13855
deplibs_check_method \
 
13856
file_magic_cmd \
 
13857
file_magic_glob \
 
13858
want_nocaseglob \
 
13859
DLLTOOL \
 
13860
sharedlib_from_linklib_cmd \
 
13861
AR \
 
13862
AR_FLAGS \
 
13863
archiver_list_spec \
 
13864
STRIP \
 
13865
RANLIB \
 
13866
CC \
 
13867
CFLAGS \
 
13868
compiler \
 
13869
lt_cv_sys_global_symbol_pipe \
 
13870
lt_cv_sys_global_symbol_to_cdecl \
 
13871
lt_cv_sys_global_symbol_to_c_name_address \
 
13872
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13873
nm_file_list_spec \
 
13874
lt_prog_compiler_no_builtin_flag \
 
13875
lt_prog_compiler_pic \
 
13876
lt_prog_compiler_wl \
 
13877
lt_prog_compiler_static \
 
13878
lt_cv_prog_compiler_c_o \
 
13879
need_locks \
 
13880
MANIFEST_TOOL \
 
13881
DSYMUTIL \
 
13882
NMEDIT \
 
13883
LIPO \
 
13884
OTOOL \
 
13885
OTOOL64 \
 
13886
shrext_cmds \
 
13887
export_dynamic_flag_spec \
 
13888
whole_archive_flag_spec \
 
13889
compiler_needs_object \
 
13890
with_gnu_ld \
 
13891
allow_undefined_flag \
 
13892
no_undefined_flag \
 
13893
hardcode_libdir_flag_spec \
 
13894
hardcode_libdir_separator \
 
13895
exclude_expsyms \
 
13896
include_expsyms \
 
13897
file_list_spec \
 
13898
variables_saved_for_relink \
 
13899
libname_spec \
 
13900
library_names_spec \
 
13901
soname_spec \
 
13902
install_override_mode \
 
13903
finish_eval \
 
13904
old_striplib \
 
13905
striplib; do
 
13906
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13907
    *[\\\\\\\`\\"\\\$]*)
 
13908
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13909
      ;;
 
13910
    *)
 
13911
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13912
      ;;
 
13913
    esac
 
13914
done
 
13915
 
 
13916
# Double-quote double-evaled strings.
 
13917
for var in reload_cmds \
 
13918
old_postinstall_cmds \
 
13919
old_postuninstall_cmds \
 
13920
old_archive_cmds \
 
13921
extract_expsyms_cmds \
 
13922
old_archive_from_new_cmds \
 
13923
old_archive_from_expsyms_cmds \
 
13924
archive_cmds \
 
13925
archive_expsym_cmds \
 
13926
module_cmds \
 
13927
module_expsym_cmds \
 
13928
export_symbols_cmds \
 
13929
prelink_cmds \
 
13930
postlink_cmds \
 
13931
postinstall_cmds \
 
13932
postuninstall_cmds \
 
13933
finish_cmds \
 
13934
sys_lib_search_path_spec \
 
13935
sys_lib_dlsearch_path_spec; do
 
13936
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13937
    *[\\\\\\\`\\"\\\$]*)
 
13938
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13939
      ;;
 
13940
    *)
 
13941
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13942
      ;;
 
13943
    esac
 
13944
done
 
13945
 
 
13946
ac_aux_dir='$ac_aux_dir'
 
13947
xsi_shell='$xsi_shell'
 
13948
lt_shell_append='$lt_shell_append'
 
13949
 
 
13950
# See if we are running on zsh, and set the options which allow our
 
13951
# commands through without removal of \ escapes INIT.
 
13952
if test -n "\${ZSH_VERSION+set}" ; then
 
13953
   setopt NO_GLOB_SUBST
 
13954
fi
 
13955
 
 
13956
 
 
13957
    PACKAGE='$PACKAGE'
 
13958
    VERSION='$VERSION'
 
13959
    TIMESTAMP='$TIMESTAMP'
 
13960
    RM='$RM'
 
13961
    ofile='$ofile'
 
13962
 
 
13963
 
 
13964
 
 
13965
 
 
13966
_ACEOF
 
13967
 
 
13968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13969
 
 
13970
# Handling of arguments.
 
13971
for ac_config_target in $ac_config_targets
 
13972
do
 
13973
  case $ac_config_target in
 
13974
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
13975
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13976
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
13977
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
13978
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
13979
    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
 
13980
    "misc/dvdread-config") CONFIG_FILES="$CONFIG_FILES misc/dvdread-config" ;;
 
13981
    "misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;;
 
13982
    "misc/libdvdread.spec") CONFIG_FILES="$CONFIG_FILES misc/libdvdread.spec" ;;
 
13983
    "misc/relchk.sh") CONFIG_FILES="$CONFIG_FILES misc/relchk.sh" ;;
 
13984
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
13985
 
 
13986
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13987
  esac
 
13988
done
 
13989
 
 
13990
 
 
13991
# If the user did not use the arguments to specify the items to instantiate,
 
13992
# then the envvar interface is used.  Set only those that are not.
 
13993
# We use the long form for the default assignment because of an extremely
 
13994
# bizarre bug on SunOS 4.1.3.
 
13995
if $ac_need_defaults; then
 
13996
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13997
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13998
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
13999
fi
 
14000
 
 
14001
# Have a temporary directory for convenience.  Make it in the build tree
 
14002
# simply because there is no reason against having it here, and in addition,
 
14003
# creating and moving files from /tmp can sometimes cause problems.
 
14004
# Hook for its removal unless debugging.
 
14005
# Note that there is a small window in which the directory will not be cleaned:
 
14006
# after its creation but before its name has been assigned to `$tmp'.
 
14007
$debug ||
 
14008
{
 
14009
  tmp= ac_tmp=
 
14010
  trap 'exit_status=$?
 
14011
  : "${ac_tmp:=$tmp}"
 
14012
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
14013
' 0
 
14014
  trap 'as_fn_exit 1' 1 2 13 15
 
14015
}
 
14016
# Create a (secure) tmp directory for tmp files.
 
14017
 
 
14018
{
 
14019
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14020
  test -d "$tmp"
 
14021
}  ||
 
14022
{
 
14023
  tmp=./conf$$-$RANDOM
 
14024
  (umask 077 && mkdir "$tmp")
 
14025
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14026
ac_tmp=$tmp
 
14027
 
 
14028
# Set up the scripts for CONFIG_FILES section.
 
14029
# No need to generate them if there are no CONFIG_FILES.
 
14030
# This happens for instance with `./config.status config.h'.
 
14031
if test -n "$CONFIG_FILES"; then
 
14032
 
 
14033
 
 
14034
ac_cr=`echo X | tr X '\015'`
 
14035
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14036
# But we know of no other shell where ac_cr would be empty at this
 
14037
# point, so we can use a bashism as a fallback.
 
14038
if test "x$ac_cr" = x; then
 
14039
  eval ac_cr=\$\'\\r\'
 
14040
fi
 
14041
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14042
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14043
  ac_cs_awk_cr='\\r'
 
14044
else
 
14045
  ac_cs_awk_cr=$ac_cr
 
14046
fi
 
14047
 
 
14048
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14049
_ACEOF
 
14050
 
 
14051
 
 
14052
{
 
14053
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14054
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14055
  echo "_ACEOF"
 
14056
} >conf$$subs.sh ||
 
14057
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14058
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14059
ac_delim='%!_!# '
 
14060
for ac_last_try in false false false false false :; do
 
14061
  . ./conf$$subs.sh ||
 
14062
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14063
 
 
14064
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14065
  if test $ac_delim_n = $ac_delim_num; then
 
14066
    break
 
14067
  elif $ac_last_try; then
 
14068
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14069
  else
 
14070
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14071
  fi
 
14072
done
 
14073
rm -f conf$$subs.sh
 
14074
 
 
14075
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14076
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14077
_ACEOF
 
14078
sed -n '
 
14079
h
 
14080
s/^/S["/; s/!.*/"]=/
 
14081
p
 
14082
g
 
14083
s/^[^!]*!//
 
14084
:repl
 
14085
t repl
 
14086
s/'"$ac_delim"'$//
 
14087
t delim
 
14088
:nl
 
14089
h
 
14090
s/\(.\{148\}\)..*/\1/
 
14091
t more1
 
14092
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14093
p
 
14094
n
 
14095
b repl
 
14096
:more1
 
14097
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14098
p
 
14099
g
 
14100
s/.\{148\}//
 
14101
t nl
 
14102
:delim
 
14103
h
 
14104
s/\(.\{148\}\)..*/\1/
 
14105
t more2
 
14106
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14107
p
 
14108
b
 
14109
:more2
 
14110
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14111
p
 
14112
g
 
14113
s/.\{148\}//
 
14114
t delim
 
14115
' <conf$$subs.awk | sed '
 
14116
/^[^""]/{
 
14117
  N
 
14118
  s/\n//
 
14119
}
 
14120
' >>$CONFIG_STATUS || ac_write_fail=1
 
14121
rm -f conf$$subs.awk
 
14122
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14123
_ACAWK
 
14124
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14125
  for (key in S) S_is_set[key] = 1
 
14126
  FS = ""
 
14127
 
 
14128
}
 
14129
{
 
14130
  line = $ 0
 
14131
  nfields = split(line, field, "@")
 
14132
  substed = 0
 
14133
  len = length(field[1])
 
14134
  for (i = 2; i < nfields; i++) {
 
14135
    key = field[i]
 
14136
    keylen = length(key)
 
14137
    if (S_is_set[key]) {
 
14138
      value = S[key]
 
14139
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14140
      len += length(value) + length(field[++i])
 
14141
      substed = 1
 
14142
    } else
 
14143
      len += 1 + keylen
 
14144
  }
 
14145
 
 
14146
  print line
 
14147
}
 
14148
 
 
14149
_ACAWK
 
14150
_ACEOF
 
14151
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14152
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14153
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14154
else
 
14155
  cat
 
14156
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14157
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14158
_ACEOF
 
14159
 
 
14160
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14161
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14162
# trailing colons and then remove the whole line if VPATH becomes empty
 
14163
# (actually we leave an empty line to preserve line numbers).
 
14164
if test "x$srcdir" = x.; then
 
14165
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14166
h
 
14167
s///
 
14168
s/^/:/
 
14169
s/[      ]*$/:/
 
14170
s/:\$(srcdir):/:/g
 
14171
s/:\${srcdir}:/:/g
 
14172
s/:@srcdir@:/:/g
 
14173
s/^:*//
 
14174
s/:*$//
 
14175
x
 
14176
s/\(=[   ]*\).*/\1/
 
14177
G
 
14178
s/\n//
 
14179
s/^[^=]*=[       ]*$//
 
14180
}'
 
14181
fi
 
14182
 
 
14183
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14184
fi # test -n "$CONFIG_FILES"
 
14185
 
 
14186
# Set up the scripts for CONFIG_HEADERS section.
 
14187
# No need to generate them if there are no CONFIG_HEADERS.
 
14188
# This happens for instance with `./config.status Makefile'.
 
14189
if test -n "$CONFIG_HEADERS"; then
 
14190
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14191
BEGIN {
 
14192
_ACEOF
 
14193
 
 
14194
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14195
# here-document in config.status, that substitutes the proper values into
 
14196
# config.h.in to produce config.h.
 
14197
 
 
14198
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14199
# handling of long lines.
 
14200
ac_delim='%!_!# '
 
14201
for ac_last_try in false false :; do
 
14202
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14203
  if test -z "$ac_tt"; then
 
14204
    break
 
14205
  elif $ac_last_try; then
 
14206
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14207
  else
 
14208
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14209
  fi
 
14210
done
 
14211
 
 
14212
# For the awk script, D is an array of macro values keyed by name,
 
14213
# likewise P contains macro parameters if any.  Preserve backslash
 
14214
# newline sequences.
 
14215
 
 
14216
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14217
sed -n '
 
14218
s/.\{148\}/&'"$ac_delim"'/g
 
14219
t rset
 
14220
:rset
 
14221
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14222
t def
 
14223
d
 
14224
:def
 
14225
s/\\$//
 
14226
t bsnl
 
14227
s/["\\]/\\&/g
 
14228
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14229
D["\1"]=" \3"/p
 
14230
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14231
d
 
14232
:bsnl
 
14233
s/["\\]/\\&/g
 
14234
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14235
D["\1"]=" \3\\\\\\n"\\/p
 
14236
t cont
 
14237
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14238
t cont
 
14239
d
 
14240
:cont
 
14241
n
 
14242
s/.\{148\}/&'"$ac_delim"'/g
 
14243
t clear
 
14244
:clear
 
14245
s/\\$//
 
14246
t bsnlc
 
14247
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14248
d
 
14249
:bsnlc
 
14250
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14251
b cont
 
14252
' <confdefs.h | sed '
 
14253
s/'"$ac_delim"'/"\\\
 
14254
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14255
 
 
14256
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14257
  for (key in D) D_is_set[key] = 1
 
14258
  FS = ""
 
14259
}
 
14260
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14261
  line = \$ 0
 
14262
  split(line, arg, " ")
 
14263
  if (arg[1] == "#") {
 
14264
    defundef = arg[2]
 
14265
    mac1 = arg[3]
 
14266
  } else {
 
14267
    defundef = substr(arg[1], 2)
 
14268
    mac1 = arg[2]
 
14269
  }
 
14270
  split(mac1, mac2, "(") #)
 
14271
  macro = mac2[1]
 
14272
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14273
  if (D_is_set[macro]) {
 
14274
    # Preserve the white space surrounding the "#".
 
14275
    print prefix "define", macro P[macro] D[macro]
 
14276
    next
 
14277
  } else {
 
14278
    # Replace #undef with comments.  This is necessary, for example,
 
14279
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14280
    # on some systems where configure will not decide to define it.
 
14281
    if (defundef == "undef") {
 
14282
      print "/*", prefix defundef, macro, "*/"
 
14283
      next
 
14284
    }
 
14285
  }
 
14286
}
 
14287
{ print }
 
14288
_ACAWK
 
14289
_ACEOF
 
14290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14291
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14292
fi # test -n "$CONFIG_HEADERS"
 
14293
 
 
14294
 
 
14295
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14296
shift
 
14297
for ac_tag
 
14298
do
 
14299
  case $ac_tag in
 
14300
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14301
  esac
 
14302
  case $ac_mode$ac_tag in
 
14303
  :[FHL]*:*);;
 
14304
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14305
  :[FH]-) ac_tag=-:-;;
 
14306
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14307
  esac
 
14308
  ac_save_IFS=$IFS
 
14309
  IFS=:
 
14310
  set x $ac_tag
 
14311
  IFS=$ac_save_IFS
 
14312
  shift
 
14313
  ac_file=$1
 
14314
  shift
 
14315
 
 
14316
  case $ac_mode in
 
14317
  :L) ac_source=$1;;
 
14318
  :[FH])
 
14319
    ac_file_inputs=
 
14320
    for ac_f
 
14321
    do
 
14322
      case $ac_f in
 
14323
      -) ac_f="$ac_tmp/stdin";;
 
14324
      *) # Look for the file first in the build tree, then in the source tree
 
14325
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14326
         # because $ac_f cannot contain `:'.
 
14327
         test -f "$ac_f" ||
 
14328
           case $ac_f in
 
14329
           [\\/$]*) false;;
 
14330
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14331
           esac ||
 
14332
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14333
      esac
 
14334
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14335
      as_fn_append ac_file_inputs " '$ac_f'"
 
14336
    done
 
14337
 
 
14338
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14339
    # use $as_me), people would be surprised to read:
 
14340
    #    /* config.h.  Generated by config.status.  */
 
14341
    configure_input='Generated from '`
 
14342
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14343
        `' by configure.'
 
14344
    if test x"$ac_file" != x-; then
 
14345
      configure_input="$ac_file.  $configure_input"
 
14346
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14347
$as_echo "$as_me: creating $ac_file" >&6;}
 
14348
    fi
 
14349
    # Neutralize special characters interpreted by sed in replacement strings.
 
14350
    case $configure_input in #(
 
14351
    *\&* | *\|* | *\\* )
 
14352
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14353
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14354
    *) ac_sed_conf_input=$configure_input;;
 
14355
    esac
 
14356
 
 
14357
    case $ac_tag in
 
14358
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14359
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14360
    esac
 
14361
    ;;
 
14362
  esac
 
14363
 
 
14364
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14365
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14366
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14367
         X"$ac_file" : 'X\(//\)$' \| \
 
14368
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14369
$as_echo X"$ac_file" |
 
14370
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14371
            s//\1/
 
14372
            q
 
14373
          }
 
14374
          /^X\(\/\/\)[^/].*/{
 
14375
            s//\1/
 
14376
            q
 
14377
          }
 
14378
          /^X\(\/\/\)$/{
 
14379
            s//\1/
 
14380
            q
 
14381
          }
 
14382
          /^X\(\/\).*/{
 
14383
            s//\1/
 
14384
            q
 
14385
          }
 
14386
          s/.*/./; q'`
 
14387
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14388
  ac_builddir=.
 
14389
 
 
14390
case "$ac_dir" in
 
14391
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14392
*)
 
14393
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14394
  # A ".." for each directory in $ac_dir_suffix.
 
14395
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14396
  case $ac_top_builddir_sub in
 
14397
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14398
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14399
  esac ;;
 
14400
esac
 
14401
ac_abs_top_builddir=$ac_pwd
 
14402
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14403
# for backward compatibility:
 
14404
ac_top_builddir=$ac_top_build_prefix
 
14405
 
 
14406
case $srcdir in
 
14407
  .)  # We are building in place.
 
14408
    ac_srcdir=.
 
14409
    ac_top_srcdir=$ac_top_builddir_sub
 
14410
    ac_abs_top_srcdir=$ac_pwd ;;
 
14411
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14412
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14413
    ac_top_srcdir=$srcdir
 
14414
    ac_abs_top_srcdir=$srcdir ;;
 
14415
  *) # Relative name.
 
14416
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14417
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14418
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14419
esac
 
14420
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14421
 
 
14422
 
 
14423
  case $ac_mode in
 
14424
  :F)
 
14425
  #
 
14426
  # CONFIG_FILE
 
14427
  #
 
14428
 
 
14429
  case $INSTALL in
 
14430
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14431
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14432
  esac
 
14433
  ac_MKDIR_P=$MKDIR_P
 
14434
  case $MKDIR_P in
 
14435
  [\\/$]* | ?:[\\/]* ) ;;
 
14436
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14437
  esac
 
14438
_ACEOF
 
14439
 
 
14440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14441
# If the template does not know about datarootdir, expand it.
 
14442
# FIXME: This hack should be removed a few years after 2.60.
 
14443
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14444
ac_sed_dataroot='
 
14445
/datarootdir/ {
 
14446
  p
 
14447
  q
 
14448
}
 
14449
/@datadir@/p
 
14450
/@docdir@/p
 
14451
/@infodir@/p
 
14452
/@localedir@/p
 
14453
/@mandir@/p'
 
14454
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14455
*datarootdir*) ac_datarootdir_seen=yes;;
 
14456
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14457
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14458
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14459
_ACEOF
 
14460
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14461
  ac_datarootdir_hack='
 
14462
  s&@datadir@&$datadir&g
 
14463
  s&@docdir@&$docdir&g
 
14464
  s&@infodir@&$infodir&g
 
14465
  s&@localedir@&$localedir&g
 
14466
  s&@mandir@&$mandir&g
 
14467
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14468
esac
 
14469
_ACEOF
 
14470
 
 
14471
# Neutralize VPATH when `$srcdir' = `.'.
 
14472
# Shell code in configure.ac might set extrasub.
 
14473
# FIXME: do we really want to maintain this feature?
 
14474
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14475
ac_sed_extra="$ac_vpsub
 
14476
$extrasub
 
14477
_ACEOF
 
14478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14479
:t
 
14480
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14481
s|@configure_input@|$ac_sed_conf_input|;t t
 
14482
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14483
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14484
s&@srcdir@&$ac_srcdir&;t t
 
14485
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14486
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14487
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14488
s&@builddir@&$ac_builddir&;t t
 
14489
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14490
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14491
s&@INSTALL@&$ac_INSTALL&;t t
 
14492
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14493
$ac_datarootdir_hack
 
14494
"
 
14495
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14496
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14497
 
 
14498
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14499
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14500
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14501
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14502
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14503
which seems to be undefined.  Please make sure it is defined" >&5
 
14504
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14505
which seems to be undefined.  Please make sure it is defined" >&2;}
 
14506
 
 
14507
  rm -f "$ac_tmp/stdin"
 
14508
  case $ac_file in
 
14509
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14510
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14511
  esac \
 
14512
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14513
 ;;
 
14514
  :H)
 
14515
  #
 
14516
  # CONFIG_HEADER
 
14517
  #
 
14518
  if test x"$ac_file" != x-; then
 
14519
    {
 
14520
      $as_echo "/* $configure_input  */" \
 
14521
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
14522
    } >"$ac_tmp/config.h" \
 
14523
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14524
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
14525
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14526
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14527
    else
 
14528
      rm -f "$ac_file"
 
14529
      mv "$ac_tmp/config.h" "$ac_file" \
 
14530
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14531
    fi
 
14532
  else
 
14533
    $as_echo "/* $configure_input  */" \
 
14534
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
14535
      || as_fn_error $? "could not create -" "$LINENO" 5
 
14536
  fi
 
14537
# Compute "$ac_file"'s index in $config_headers.
 
14538
_am_arg="$ac_file"
 
14539
_am_stamp_count=1
 
14540
for _am_header in $config_headers :; do
 
14541
  case $_am_header in
 
14542
    $_am_arg | $_am_arg:* )
 
14543
      break ;;
 
14544
    * )
 
14545
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14546
  esac
 
14547
done
 
14548
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14549
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14550
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14551
         X"$_am_arg" : 'X\(//\)$' \| \
 
14552
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14553
$as_echo X"$_am_arg" |
 
14554
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14555
            s//\1/
 
14556
            q
 
14557
          }
 
14558
          /^X\(\/\/\)[^/].*/{
 
14559
            s//\1/
 
14560
            q
 
14561
          }
 
14562
          /^X\(\/\/\)$/{
 
14563
            s//\1/
 
14564
            q
 
14565
          }
 
14566
          /^X\(\/\).*/{
 
14567
            s//\1/
 
14568
            q
 
14569
          }
 
14570
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14571
 ;;
 
14572
  
 
14573
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14574
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14575
 ;;
 
14576
  esac
 
14577
 
 
14578
 
 
14579
  case $ac_file$ac_mode in
 
14580
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14581
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
14582
  # are listed without --file.  Let's play safe and only enable the eval
 
14583
  # if we detect the quoting.
 
14584
  case $CONFIG_FILES in
 
14585
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14586
  *)   set x $CONFIG_FILES ;;
 
14587
  esac
 
14588
  shift
 
14589
  for mf
 
14590
  do
 
14591
    # Strip MF so we end up with the name of the file.
 
14592
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14593
    # Check whether this is an Automake generated Makefile or not.
 
14594
    # We used to match only the files named `Makefile.in', but
 
14595
    # some people rename them; so instead we look at the file content.
 
14596
    # Grep'ing the first line is not enough: some people post-process
 
14597
    # each Makefile.in and add a new line on top of each file to say so.
 
14598
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14599
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14600
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14601
      dirpart=`$as_dirname -- "$mf" ||
 
14602
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14603
         X"$mf" : 'X\(//\)[^/]' \| \
 
14604
         X"$mf" : 'X\(//\)$' \| \
 
14605
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14606
$as_echo X"$mf" |
 
14607
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14608
            s//\1/
 
14609
            q
 
14610
          }
 
14611
          /^X\(\/\/\)[^/].*/{
 
14612
            s//\1/
 
14613
            q
 
14614
          }
 
14615
          /^X\(\/\/\)$/{
 
14616
            s//\1/
 
14617
            q
 
14618
          }
 
14619
          /^X\(\/\).*/{
 
14620
            s//\1/
 
14621
            q
 
14622
          }
 
14623
          s/.*/./; q'`
 
14624
    else
 
14625
      continue
 
14626
    fi
 
14627
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14628
    # from the Makefile without running `make'.
 
14629
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14630
    test -z "$DEPDIR" && continue
 
14631
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14632
    test -z "am__include" && continue
 
14633
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14634
    # When using ansi2knr, U may be empty or an underscore; expand it
 
14635
    U=`sed -n 's/^U = //p' < "$mf"`
 
14636
    # Find all dependency output files, they are included files with
 
14637
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14638
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14639
    # expansion.
 
14640
    for file in `sed -n "
 
14641
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14642
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
14643
      # Make sure the directory exists.
 
14644
      test -f "$dirpart/$file" && continue
 
14645
      fdir=`$as_dirname -- "$file" ||
 
14646
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14647
         X"$file" : 'X\(//\)[^/]' \| \
 
14648
         X"$file" : 'X\(//\)$' \| \
 
14649
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14650
$as_echo X"$file" |
 
14651
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14652
            s//\1/
 
14653
            q
 
14654
          }
 
14655
          /^X\(\/\/\)[^/].*/{
 
14656
            s//\1/
 
14657
            q
 
14658
          }
 
14659
          /^X\(\/\/\)$/{
 
14660
            s//\1/
 
14661
            q
 
14662
          }
 
14663
          /^X\(\/\).*/{
 
14664
            s//\1/
 
14665
            q
 
14666
          }
 
14667
          s/.*/./; q'`
 
14668
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14669
      # echo "creating $dirpart/$file"
 
14670
      echo '# dummy' > "$dirpart/$file"
 
14671
    done
 
14672
  done
 
14673
}
 
14674
 ;;
 
14675
    "libtool":C) 
 
14676
    
 
14677
    # See if we are running on zsh, and set the options which allow our
 
14678
    # commands through without removal of \ escapes.
 
14679
    if test -n "${ZSH_VERSION+set}" ; then
 
14680
      setopt NO_GLOB_SUBST
 
14681
    fi
 
14682
 
 
14683
    cfgfile="${ofile}T"
 
14684
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14685
    $RM "$cfgfile"
 
14686
 
 
14687
    cat <<_LT_EOF >> "$cfgfile"
 
14688
#! $SHELL
 
14689
 
 
14690
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14691
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14692
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14693
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14694
#
 
14695
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14696
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
14697
#                 Foundation, Inc.
 
14698
#   Written by Gordon Matzigkeit, 1996
 
14699
#
 
14700
#   This file is part of GNU Libtool.
 
14701
#
 
14702
# GNU Libtool is free software; you can redistribute it and/or
 
14703
# modify it under the terms of the GNU General Public License as
 
14704
# published by the Free Software Foundation; either version 2 of
 
14705
# the License, or (at your option) any later version.
 
14706
#
 
14707
# As a special exception to the GNU General Public License,
 
14708
# if you distribute this file as part of a program or library that
 
14709
# is built using GNU Libtool, you may include this file under the
 
14710
# same distribution terms that you use for the rest of that program.
 
14711
#
 
14712
# GNU Libtool is distributed in the hope that it will be useful,
 
14713
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14714
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14715
# GNU General Public License for more details.
 
14716
#
 
14717
# You should have received a copy of the GNU General Public License
 
14718
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14719
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14720
# obtained by writing to the Free Software Foundation, Inc.,
 
14721
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14722
 
 
14723
 
 
14724
# The names of the tagged configurations supported by this script.
 
14725
available_tags=""
 
14726
 
 
14727
# ### BEGIN LIBTOOL CONFIG
 
14728
 
 
14729
# Whether or not to build static libraries.
 
14730
build_old_libs=$enable_static
 
14731
 
 
14732
# Which release of libtool.m4 was used?
 
14733
macro_version=$macro_version
 
14734
macro_revision=$macro_revision
 
14735
 
 
14736
# Whether or not to build shared libraries.
 
14737
build_libtool_libs=$enable_shared
 
14738
 
 
14739
# What type of objects to build.
 
14740
pic_mode=$pic_mode
 
14741
 
 
14742
# Whether or not to optimize for fast installation.
 
14743
fast_install=$enable_fast_install
 
14744
 
 
14745
# Shell to use when invoking shell scripts.
 
14746
SHELL=$lt_SHELL
 
14747
 
 
14748
# An echo program that protects backslashes.
 
14749
ECHO=$lt_ECHO
 
14750
 
 
14751
# The PATH separator for the build system.
 
14752
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
14753
 
 
14754
# The host system.
 
14755
host_alias=$host_alias
 
14756
host=$host
 
14757
host_os=$host_os
 
14758
 
 
14759
# The build system.
 
14760
build_alias=$build_alias
 
14761
build=$build
 
14762
build_os=$build_os
 
14763
 
 
14764
# A sed program that does not truncate output.
 
14765
SED=$lt_SED
 
14766
 
 
14767
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14768
Xsed="\$SED -e 1s/^X//"
 
14769
 
 
14770
# A grep program that handles long lines.
 
14771
GREP=$lt_GREP
 
14772
 
 
14773
# An ERE matcher.
 
14774
EGREP=$lt_EGREP
 
14775
 
 
14776
# A literal string matcher.
 
14777
FGREP=$lt_FGREP
 
14778
 
 
14779
# A BSD- or MS-compatible name lister.
 
14780
NM=$lt_NM
 
14781
 
 
14782
# Whether we need soft or hard links.
 
14783
LN_S=$lt_LN_S
 
14784
 
 
14785
# What is the maximum length of a command?
 
14786
max_cmd_len=$max_cmd_len
 
14787
 
 
14788
# Object file suffix (normally "o").
 
14789
objext=$ac_objext
 
14790
 
 
14791
# Executable file suffix (normally "").
 
14792
exeext=$exeext
 
14793
 
 
14794
# whether the shell understands "unset".
 
14795
lt_unset=$lt_unset
 
14796
 
 
14797
# turn spaces into newlines.
 
14798
SP2NL=$lt_lt_SP2NL
 
14799
 
 
14800
# turn newlines into spaces.
 
14801
NL2SP=$lt_lt_NL2SP
 
14802
 
 
14803
# convert \$build file names to \$host format.
 
14804
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
14805
 
 
14806
# convert \$build files to toolchain format.
 
14807
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
14808
 
 
14809
# An object symbol dumper.
 
14810
OBJDUMP=$lt_OBJDUMP
 
14811
 
 
14812
# Method to check whether dependent libraries are shared objects.
 
14813
deplibs_check_method=$lt_deplibs_check_method
 
14814
 
 
14815
# Command to use when deplibs_check_method = "file_magic".
 
14816
file_magic_cmd=$lt_file_magic_cmd
 
14817
 
 
14818
# How to find potential files when deplibs_check_method = "file_magic".
 
14819
file_magic_glob=$lt_file_magic_glob
 
14820
 
 
14821
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
14822
want_nocaseglob=$lt_want_nocaseglob
 
14823
 
 
14824
# DLL creation program.
 
14825
DLLTOOL=$lt_DLLTOOL
 
14826
 
 
14827
# Command to associate shared and link libraries.
 
14828
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
14829
 
 
14830
# The archiver.
 
14831
AR=$lt_AR
 
14832
 
 
14833
# Flags to create an archive.
 
14834
AR_FLAGS=$lt_AR_FLAGS
 
14835
 
 
14836
# How to feed a file listing to the archiver.
 
14837
archiver_list_spec=$lt_archiver_list_spec
 
14838
 
 
14839
# A symbol stripping program.
 
14840
STRIP=$lt_STRIP
 
14841
 
 
14842
# Commands used to install an old-style archive.
 
14843
RANLIB=$lt_RANLIB
 
14844
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14845
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14846
 
 
14847
# Whether to use a lock for old archive extraction.
 
14848
lock_old_archive_extraction=$lock_old_archive_extraction
 
14849
 
 
14850
# A C compiler.
 
14851
LTCC=$lt_CC
 
14852
 
 
14853
# LTCC compiler flags.
 
14854
LTCFLAGS=$lt_CFLAGS
 
14855
 
 
14856
# Take the output of nm and produce a listing of raw symbols and C names.
 
14857
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14858
 
 
14859
# Transform the output of nm in a proper C declaration.
 
14860
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14861
 
 
14862
# Transform the output of nm in a C name address pair.
 
14863
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14864
 
 
14865
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14866
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14867
 
 
14868
# Specify filename containing input files for \$NM.
 
14869
nm_file_list_spec=$lt_nm_file_list_spec
 
14870
 
 
14871
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
14872
lt_sysroot=$lt_sysroot
 
14873
 
 
14874
# The name of the directory that contains temporary libtool files.
 
14875
objdir=$objdir
 
14876
 
 
14877
# Used to examine libraries when file_magic_cmd begins with "file".
 
14878
MAGIC_CMD=$MAGIC_CMD
 
14879
 
 
14880
# Must we lock files when doing compilation?
 
14881
need_locks=$lt_need_locks
 
14882
 
 
14883
# Manifest tool.
 
14884
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
14885
 
 
14886
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14887
DSYMUTIL=$lt_DSYMUTIL
 
14888
 
 
14889
# Tool to change global to local symbols on Mac OS X.
 
14890
NMEDIT=$lt_NMEDIT
 
14891
 
 
14892
# Tool to manipulate fat objects and archives on Mac OS X.
 
14893
LIPO=$lt_LIPO
 
14894
 
 
14895
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14896
OTOOL=$lt_OTOOL
 
14897
 
 
14898
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14899
OTOOL64=$lt_OTOOL64
 
14900
 
 
14901
# Old archive suffix (normally "a").
 
14902
libext=$libext
 
14903
 
 
14904
# Shared library suffix (normally ".so").
 
14905
shrext_cmds=$lt_shrext_cmds
 
14906
 
 
14907
# The commands to extract the exported symbol list from a shared archive.
 
14908
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14909
 
 
14910
# Variables whose values should be saved in libtool wrapper scripts and
 
14911
# restored at link time.
 
14912
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14913
 
 
14914
# Do we need the "lib" prefix for modules?
 
14915
need_lib_prefix=$need_lib_prefix
 
14916
 
 
14917
# Do we need a version for libraries?
 
14918
need_version=$need_version
 
14919
 
 
14920
# Library versioning type.
 
14921
version_type=$version_type
 
14922
 
 
14923
# Shared library runtime path variable.
 
14924
runpath_var=$runpath_var
 
14925
 
 
14926
# Shared library path variable.
 
14927
shlibpath_var=$shlibpath_var
 
14928
 
 
14929
# Is shlibpath searched before the hard-coded library search path?
 
14930
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14931
 
 
14932
# Format of library name prefix.
 
14933
libname_spec=$lt_libname_spec
 
14934
 
 
14935
# List of archive names.  First name is the real one, the rest are links.
 
14936
# The last name is the one that the linker finds with -lNAME
 
14937
library_names_spec=$lt_library_names_spec
 
14938
 
 
14939
# The coded name of the library, if different from the real name.
 
14940
soname_spec=$lt_soname_spec
 
14941
 
 
14942
# Permission mode override for installation of shared libraries.
 
14943
install_override_mode=$lt_install_override_mode
 
14944
 
 
14945
# Command to use after installation of a shared archive.
 
14946
postinstall_cmds=$lt_postinstall_cmds
 
14947
 
 
14948
# Command to use after uninstallation of a shared archive.
 
14949
postuninstall_cmds=$lt_postuninstall_cmds
 
14950
 
 
14951
# Commands used to finish a libtool library installation in a directory.
 
14952
finish_cmds=$lt_finish_cmds
 
14953
 
 
14954
# As "finish_cmds", except a single script fragment to be evaled but
 
14955
# not shown.
 
14956
finish_eval=$lt_finish_eval
 
14957
 
 
14958
# Whether we should hardcode library paths into libraries.
 
14959
hardcode_into_libs=$hardcode_into_libs
 
14960
 
 
14961
# Compile-time system search path for libraries.
 
14962
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14963
 
 
14964
# Run-time system search path for libraries.
 
14965
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14966
 
 
14967
# Whether dlopen is supported.
 
14968
dlopen_support=$enable_dlopen
 
14969
 
 
14970
# Whether dlopen of programs is supported.
 
14971
dlopen_self=$enable_dlopen_self
 
14972
 
 
14973
# Whether dlopen of statically linked programs is supported.
 
14974
dlopen_self_static=$enable_dlopen_self_static
 
14975
 
 
14976
# Commands to strip libraries.
 
14977
old_striplib=$lt_old_striplib
 
14978
striplib=$lt_striplib
 
14979
 
 
14980
 
 
14981
# The linker used to build libraries.
 
14982
LD=$lt_LD
 
14983
 
 
14984
# How to create reloadable object files.
 
14985
reload_flag=$lt_reload_flag
 
14986
reload_cmds=$lt_reload_cmds
 
14987
 
 
14988
# Commands used to build an old-style archive.
 
14989
old_archive_cmds=$lt_old_archive_cmds
 
14990
 
 
14991
# A language specific compiler.
 
14992
CC=$lt_compiler
 
14993
 
 
14994
# Is the compiler the GNU compiler?
 
14995
with_gcc=$GCC
 
14996
 
 
14997
# Compiler flag to turn off builtin functions.
 
14998
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
14999
 
 
15000
# Additional compiler flags for building library objects.
 
15001
pic_flag=$lt_lt_prog_compiler_pic
 
15002
 
 
15003
# How to pass a linker flag through the compiler.
 
15004
wl=$lt_lt_prog_compiler_wl
 
15005
 
 
15006
# Compiler flag to prevent dynamic linking.
 
15007
link_static_flag=$lt_lt_prog_compiler_static
 
15008
 
 
15009
# Does compiler simultaneously support -c and -o options?
 
15010
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15011
 
 
15012
# Whether or not to add -lc for building shared libraries.
 
15013
build_libtool_need_lc=$archive_cmds_need_lc
 
15014
 
 
15015
# Whether or not to disallow shared libs when runtime libs are static.
 
15016
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15017
 
 
15018
# Compiler flag to allow reflexive dlopens.
 
15019
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15020
 
 
15021
# Compiler flag to generate shared objects directly from archives.
 
15022
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15023
 
 
15024
# Whether the compiler copes with passing no objects directly.
 
15025
compiler_needs_object=$lt_compiler_needs_object
 
15026
 
 
15027
# Create an old-style archive from a shared archive.
 
15028
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15029
 
 
15030
# Create a temporary old-style archive to link instead of a shared archive.
 
15031
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15032
 
 
15033
# Commands used to build a shared archive.
 
15034
archive_cmds=$lt_archive_cmds
 
15035
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15036
 
 
15037
# Commands used to build a loadable module if different from building
 
15038
# a shared archive.
 
15039
module_cmds=$lt_module_cmds
 
15040
module_expsym_cmds=$lt_module_expsym_cmds
 
15041
 
 
15042
# Whether we are building with GNU ld or not.
 
15043
with_gnu_ld=$lt_with_gnu_ld
 
15044
 
 
15045
# Flag that allows shared libraries with undefined symbols to be built.
 
15046
allow_undefined_flag=$lt_allow_undefined_flag
 
15047
 
 
15048
# Flag that enforces no undefined symbols.
 
15049
no_undefined_flag=$lt_no_undefined_flag
 
15050
 
 
15051
# Flag to hardcode \$libdir into a binary during linking.
 
15052
# This must work even if \$libdir does not exist
 
15053
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15054
 
 
15055
# Whether we need a single "-rpath" flag with a separated argument.
 
15056
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15057
 
 
15058
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15059
# DIR into the resulting binary.
 
15060
hardcode_direct=$hardcode_direct
 
15061
 
 
15062
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15063
# DIR into the resulting binary and the resulting library dependency is
 
15064
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15065
# library is relocated.
 
15066
hardcode_direct_absolute=$hardcode_direct_absolute
 
15067
 
 
15068
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15069
# into the resulting binary.
 
15070
hardcode_minus_L=$hardcode_minus_L
 
15071
 
 
15072
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15073
# into the resulting binary.
 
15074
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15075
 
 
15076
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15077
# into the library and all subsequent libraries and executables linked
 
15078
# against it.
 
15079
hardcode_automatic=$hardcode_automatic
 
15080
 
 
15081
# Set to yes if linker adds runtime paths of dependent libraries
 
15082
# to runtime path list.
 
15083
inherit_rpath=$inherit_rpath
 
15084
 
 
15085
# Whether libtool must link a program against all its dependency libraries.
 
15086
link_all_deplibs=$link_all_deplibs
 
15087
 
 
15088
# Set to "yes" if exported symbols are required.
 
15089
always_export_symbols=$always_export_symbols
 
15090
 
 
15091
# The commands to list exported symbols.
 
15092
export_symbols_cmds=$lt_export_symbols_cmds
 
15093
 
 
15094
# Symbols that should not be listed in the preloaded symbols.
 
15095
exclude_expsyms=$lt_exclude_expsyms
 
15096
 
 
15097
# Symbols that must always be exported.
 
15098
include_expsyms=$lt_include_expsyms
 
15099
 
 
15100
# Commands necessary for linking programs (against libraries) with templates.
 
15101
prelink_cmds=$lt_prelink_cmds
 
15102
 
 
15103
# Commands necessary for finishing linking programs.
 
15104
postlink_cmds=$lt_postlink_cmds
 
15105
 
 
15106
# Specify filename containing input files.
 
15107
file_list_spec=$lt_file_list_spec
 
15108
 
 
15109
# How to hardcode a shared library path into an executable.
 
15110
hardcode_action=$hardcode_action
 
15111
 
 
15112
# ### END LIBTOOL CONFIG
 
15113
 
 
15114
_LT_EOF
 
15115
 
 
15116
  case $host_os in
 
15117
  aix3*)
 
15118
    cat <<\_LT_EOF >> "$cfgfile"
 
15119
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15120
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15121
# vanish in a puff of smoke.
 
15122
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15123
  COLLECT_NAMES=
 
15124
  export COLLECT_NAMES
 
15125
fi
 
15126
_LT_EOF
 
15127
    ;;
 
15128
  esac
 
15129
 
 
15130
  
 
15131
ltmain="$ac_aux_dir/ltmain.sh"
 
15132
 
 
15133
 
 
15134
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15135
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15136
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15137
  # is reportedly fixed, but why not run on old versions too?
 
15138
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15139
     || (rm -f "$cfgfile"; exit 1)
 
15140
 
 
15141
  if test x"$xsi_shell" = xyes; then
 
15142
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15143
func_dirname ()\
 
15144
{\
 
15145
\    case ${1} in\
 
15146
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15147
\      *  ) func_dirname_result="${3}" ;;\
 
15148
\    esac\
 
15149
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15150
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15151
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15152
test 0 -eq $? || _lt_function_replace_fail=:
 
15153
 
 
15154
 
 
15155
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15156
func_basename ()\
 
15157
{\
 
15158
\    func_basename_result="${1##*/}"\
 
15159
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15160
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15161
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15162
test 0 -eq $? || _lt_function_replace_fail=:
 
15163
 
 
15164
 
 
15165
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15166
func_dirname_and_basename ()\
 
15167
{\
 
15168
\    case ${1} in\
 
15169
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15170
\      *  ) func_dirname_result="${3}" ;;\
 
15171
\    esac\
 
15172
\    func_basename_result="${1##*/}"\
 
15173
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15174
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15175
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15176
test 0 -eq $? || _lt_function_replace_fail=:
 
15177
 
 
15178
 
 
15179
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15180
func_stripname ()\
 
15181
{\
 
15182
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15183
\    # positional parameters, so assign one to ordinary parameter first.\
 
15184
\    func_stripname_result=${3}\
 
15185
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15186
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15187
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15188
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15189
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15190
test 0 -eq $? || _lt_function_replace_fail=:
 
15191
 
 
15192
 
 
15193
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15194
func_split_long_opt ()\
 
15195
{\
 
15196
\    func_split_long_opt_name=${1%%=*}\
 
15197
\    func_split_long_opt_arg=${1#*=}\
 
15198
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15199
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15200
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15201
test 0 -eq $? || _lt_function_replace_fail=:
 
15202
 
 
15203
 
 
15204
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15205
func_split_short_opt ()\
 
15206
{\
 
15207
\    func_split_short_opt_arg=${1#??}\
 
15208
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15209
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15210
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15211
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15212
test 0 -eq $? || _lt_function_replace_fail=:
 
15213
 
 
15214
 
 
15215
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15216
func_lo2o ()\
 
15217
{\
 
15218
\    case ${1} in\
 
15219
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15220
\      *)    func_lo2o_result=${1} ;;\
 
15221
\    esac\
 
15222
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15223
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15224
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15225
test 0 -eq $? || _lt_function_replace_fail=:
 
15226
 
 
15227
 
 
15228
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15229
func_xform ()\
 
15230
{\
 
15231
    func_xform_result=${1%.*}.lo\
 
15232
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15233
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15234
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15235
test 0 -eq $? || _lt_function_replace_fail=:
 
15236
 
 
15237
 
 
15238
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15239
func_arith ()\
 
15240
{\
 
15241
    func_arith_result=$(( $* ))\
 
15242
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15243
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15244
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15245
test 0 -eq $? || _lt_function_replace_fail=:
 
15246
 
 
15247
 
 
15248
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15249
func_len ()\
 
15250
{\
 
15251
    func_len_result=${#1}\
 
15252
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15253
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15254
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15255
test 0 -eq $? || _lt_function_replace_fail=:
 
15256
 
 
15257
fi
 
15258
 
 
15259
if test x"$lt_shell_append" = xyes; then
 
15260
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15261
func_append ()\
 
15262
{\
 
15263
    eval "${1}+=\\${2}"\
 
15264
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15265
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15266
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15267
test 0 -eq $? || _lt_function_replace_fail=:
 
15268
 
 
15269
 
 
15270
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15271
func_append_quoted ()\
 
15272
{\
 
15273
\    func_quote_for_eval "${2}"\
 
15274
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15275
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15276
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15277
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15278
test 0 -eq $? || _lt_function_replace_fail=:
 
15279
 
 
15280
 
 
15281
  # Save a `func_append' function call where possible by direct use of '+='
 
15282
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15283
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15284
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15285
  test 0 -eq $? || _lt_function_replace_fail=:
 
15286
else
 
15287
  # Save a `func_append' function call even when '+=' is not available
 
15288
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15289
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15290
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15291
  test 0 -eq $? || _lt_function_replace_fail=:
 
15292
fi
 
15293
 
 
15294
if test x"$_lt_function_replace_fail" = x":"; then
 
15295
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15296
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15297
fi
 
15298
 
 
15299
 
 
15300
   mv -f "$cfgfile" "$ofile" ||
 
15301
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15302
  chmod +x "$ofile"
 
15303
 
 
15304
 ;;
 
15305
 
 
15306
  esac
 
15307
done # for ac_tag
 
15308
 
 
15309
 
 
15310
as_fn_exit 0
 
15311
_ACEOF
 
15312
ac_clean_files=$ac_clean_files_save
 
15313
 
 
15314
test $ac_write_fail = 0 ||
 
15315
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15316
 
 
15317
 
 
15318
# configure is writing to config.log, and then calls config.status.
 
15319
# config.status does its own redirection, appending to config.log.
 
15320
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15321
# by configure, so config.status won't be able to write to it; its
 
15322
# output is simply discarded.  So we exec the FD to /dev/null,
 
15323
# effectively closing config.log, so it can be properly (re)opened and
 
15324
# appended to by config.status.  When coming back to configure, we
 
15325
# need to make the FD available again.
 
15326
if test "$no_create" != yes; then
 
15327
  ac_cs_success=:
 
15328
  ac_config_status_args=
 
15329
  test "$silent" = yes &&
 
15330
    ac_config_status_args="$ac_config_status_args --quiet"
 
15331
  exec 5>/dev/null
 
15332
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15333
  exec 5>>config.log
 
15334
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15335
  # would make configure fail if this is the last instruction.
 
15336
  $ac_cs_success || as_fn_exit 1
 
15337
fi
 
15338
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15339
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15340
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15341
fi
 
15342