~ubuntu-branches/ubuntu/raring/procps/raring-proposed

1.1.6 by Craig Small
Import upstream version 3.3.0
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
1.1.9 by Craig Small
Import upstream version 3.3.3
3
# Generated by GNU Autoconf 2.68 for procps-ng 3.3.3.
1.1.6 by Craig Small
Import upstream version 3.3.0
4
#
5
# Report bugs to <procps@freelists.org>.
6
#
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
# Foundation, Inc.
11
#
12
#
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
18
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
  emulate sh
23
  NULLCMD=:
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
27
  setopt NO_GLOB_SUBST
28
else
29
  case `(set -o) 2>/dev/null` in #(
30
  *posix*) :
31
    set -o posix ;; #(
32
  *) :
33
     ;;
34
esac
35
fi
36
37
38
as_nl='
39
'
40
export as_nl
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
  as_echo='print -r --'
50
  as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
  as_echo='printf %s\n'
53
  as_echo_n='printf %s'
54
else
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
    as_echo_n='/usr/ucb/echo -n'
58
  else
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
    as_echo_n_body='eval
61
      arg=$1;
62
      case $arg in #(
63
      *"$as_nl"*)
64
	expr "X$arg" : "X\\(.*\\)$as_nl";
65
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
      esac;
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
    '
69
    export as_echo_n_body
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
  fi
72
  export as_echo_body
73
  as_echo='sh -c $as_echo_body as_echo'
74
fi
75
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
78
  PATH_SEPARATOR=:
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
      PATH_SEPARATOR=';'
82
  }
83
fi
84
85
86
# IFS
87
# We need space, tab and new line, in precisely that order.  Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
91
IFS=" ""	$as_nl"
92
93
# Find who we are.  Look in the path if we contain no directory separator.
94
as_myself=
95
case $0 in #((
96
  *[\\/]* ) as_myself=$0 ;;
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
for as_dir in $PATH
99
do
100
  IFS=$as_save_IFS
101
  test -z "$as_dir" && as_dir=.
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103
  done
104
IFS=$as_save_IFS
105
106
     ;;
107
esac
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
111
  as_myself=$0
112
fi
113
if test ! -f "$as_myself"; then
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
  exit 1
116
fi
117
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there.  '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
done
126
PS1='$ '
127
PS2='> '
128
PS4='+ '
129
130
# NLS nuisances.
131
LC_ALL=C
132
export LC_ALL
133
LANGUAGE=C
134
export LANGUAGE
135
136
# CDPATH.
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139
if test "x$CONFIG_SHELL" = x; then
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
  emulate sh
142
  NULLCMD=:
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
  # is contrary to our usage.  Disable this feature.
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
  setopt NO_GLOB_SUBST
147
else
148
  case \`(set -o) 2>/dev/null\` in #(
149
  *posix*) :
150
    set -o posix ;; #(
151
  *) :
152
     ;;
153
esac
154
fi
155
"
156
  as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
161
162
exitcode=0
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169
else
170
  exitcode=1; echo positional parameters were not saved.
171
fi
172
test x\$exitcode = x0 || exit 1"
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1
178
179
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
    PATH=/empty FPATH=/empty; export PATH FPATH
184
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
  if (eval "$as_required") 2>/dev/null; then :
187
  as_have_required=yes
188
else
189
  as_have_required=no
190
fi
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193
else
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195
as_found=false
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197
do
198
  IFS=$as_save_IFS
199
  test -z "$as_dir" && as_dir=.
200
  as_found=:
201
  case $as_dir in #(
202
	 /*)
203
	   for as_base in sh bash ksh sh5; do
204
	     # Try only shells that exist, to save several forks.
205
	     as_shell=$as_dir/$as_base
206
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$as_shell as_have_required=yes
209
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
  break 2
211
fi
212
fi
213
	   done;;
214
       esac
215
  as_found=false
216
done
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
  CONFIG_SHELL=$SHELL as_have_required=yes
220
fi; }
221
IFS=$as_save_IFS
222
223
224
      if test "x$CONFIG_SHELL" != x; then :
225
  # We cannot yet assume a decent shell, so we have to provide a
226
	# neutralization value for shells without unset; and this also
227
	# works around shells that cannot unset nonexistent variables.
228
	# Preserve -v and -x to the replacement shell.
229
	BASH_ENV=/dev/null
230
	ENV=/dev/null
231
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
	export CONFIG_SHELL
233
	case $- in # ((((
234
	  *v*x* | *x*v* ) as_opts=-vx ;;
235
	  *v* ) as_opts=-v ;;
236
	  *x* ) as_opts=-x ;;
237
	  * ) as_opts= ;;
238
	esac
239
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240
fi
241
242
    if test x$as_have_required = xno; then :
243
  $as_echo "$0: This script requires a shell more modern than all"
244
  $as_echo "$0: the shells that I found on your system."
245
  if test x${ZSH_VERSION+set} = xset ; then
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
  else
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: procps@freelists.org about your system, including any
251
$0: error possibly output before this message. Then install
252
$0: a modern shell, or manually run the script under such a
253
$0: shell if you do have one."
254
  fi
255
  exit 1
256
fi
257
fi
258
fi
259
SHELL=${CONFIG_SHELL-/bin/sh}
260
export SHELL
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
264
265
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
268
# as_fn_unset VAR
269
# ---------------
270
# Portably unset VAR.
271
as_fn_unset ()
272
{
273
  { eval $1=; unset $1;}
274
}
275
as_unset=as_fn_unset
276
277
# as_fn_set_status STATUS
278
# -----------------------
279
# Set $? to STATUS, without forking.
280
as_fn_set_status ()
281
{
282
  return $1
283
} # as_fn_set_status
284
285
# as_fn_exit STATUS
286
# -----------------
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288
as_fn_exit ()
289
{
290
  set +e
291
  as_fn_set_status $1
292
  exit $1
293
} # as_fn_exit
294
295
# as_fn_mkdir_p
296
# -------------
297
# Create "$as_dir" as a directory, including parents if necessary.
298
as_fn_mkdir_p ()
299
{
300
301
  case $as_dir in #(
302
  -*) as_dir=./$as_dir;;
303
  esac
304
  test -d "$as_dir" || eval $as_mkdir_p || {
305
    as_dirs=
306
    while :; do
307
      case $as_dir in #(
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309
      *) as_qdir=$as_dir;;
310
      esac
311
      as_dirs="'$as_qdir' $as_dirs"
312
      as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
	 X"$as_dir" : 'X\(//\)[^/]' \| \
315
	 X"$as_dir" : 'X\(//\)$' \| \
316
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
	    s//\1/
320
	    q
321
	  }
322
	  /^X\(\/\/\)[^/].*/{
323
	    s//\1/
324
	    q
325
	  }
326
	  /^X\(\/\/\)$/{
327
	    s//\1/
328
	    q
329
	  }
330
	  /^X\(\/\).*/{
331
	    s//\1/
332
	    q
333
	  }
334
	  s/.*/./; q'`
335
      test -d "$as_dir" && break
336
    done
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
338
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341
} # as_fn_mkdir_p
342
# as_fn_append VAR VALUE
343
# ----------------------
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
# advantage of any shell optimizations that allow amortized linear growth over
346
# repeated appends, instead of the typical quadratic growth present in naive
347
# implementations.
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
  eval 'as_fn_append ()
350
  {
351
    eval $1+=\$2
352
  }'
353
else
354
  as_fn_append ()
355
  {
356
    eval $1=\$$1\$2
357
  }
358
fi # as_fn_append
359
360
# as_fn_arith ARG...
361
# ------------------
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
# must be portable across $(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
  eval 'as_fn_arith ()
367
  {
368
    as_val=$(( $* ))
369
  }'
370
else
371
  as_fn_arith ()
372
  {
373
    as_val=`expr "$@" || test $? -eq 1`
374
  }
375
fi # as_fn_arith
376
377
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
# ----------------------------------------
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
# script with STATUS, using 1 if that was 0.
383
as_fn_error ()
384
{
385
  as_status=$1; test $as_status -eq 0 && as_status=1
386
  if test "$4"; then
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389
  fi
390
  $as_echo "$as_me: error: $2" >&2
391
  as_fn_exit $as_status
392
} # as_fn_error
393
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396
  as_expr=expr
397
else
398
  as_expr=false
399
fi
400
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402
  as_basename=basename
403
else
404
  as_basename=false
405
fi
406
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408
  as_dirname=dirname
409
else
410
  as_dirname=false
411
fi
412
413
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
	 X"$0" : 'X\(//\)$' \| \
416
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417
$as_echo X/"$0" |
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
419
	    s//\1/
420
	    q
421
	  }
422
	  /^X\/\(\/\/\)$/{
423
	    s//\1/
424
	    q
425
	  }
426
	  /^X\/\(\/\).*/{
427
	    s//\1/
428
	    q
429
	  }
430
	  s/.*/./; q'`
431
432
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445
  sed -n '
446
    p
447
    /[$]LINENO/=
448
  ' <$as_myself |
449
    sed '
450
      s/[$]LINENO.*/&-/
451
      t lineno
452
      b
453
      :lineno
454
      N
455
      :loop
456
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457
      t loop
458
      s/-\n.*//
459
    ' >$as_me.lineno &&
460
  chmod +x "$as_me.lineno" ||
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463
  # Don't try to exec as it changes $[0], causing all sort of problems
464
  # (the dirname of $[0] is not the place where we might find the
465
  # original and so on.  Autoconf is especially sensitive to this).
466
  . "./$as_me.lineno"
467
  # Exit status is that of the last command.
468
  exit
469
}
470
471
ECHO_C= ECHO_N= ECHO_T=
472
case `echo -n x` in #(((((
473
-n*)
474
  case `echo 'xy\c'` in
475
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476
  xy)  ECHO_C='\c';;
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478
       ECHO_T='	';;
479
  esac;;
480
*)
481
  ECHO_N='-n';;
482
esac
483
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
  rm -f conf$$.dir/conf$$.file
487
else
488
  rm -f conf$$.dir
489
  mkdir conf$$.dir 2>/dev/null
490
fi
491
if (echo >conf$$.file) 2>/dev/null; then
492
  if ln -s conf$$.file conf$$ 2>/dev/null; then
493
    as_ln_s='ln -s'
494
    # ... but there are two gotchas:
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
    # In both cases, we have to default to `cp -p'.
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
      as_ln_s='cp -p'
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
    as_ln_s=ln
502
  else
503
    as_ln_s='cp -p'
504
  fi
505
else
506
  as_ln_s='cp -p'
507
fi
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
510
511
if mkdir -p . 2>/dev/null; then
512
  as_mkdir_p='mkdir -p "$as_dir"'
513
else
514
  test -d ./-p && rmdir ./-p
515
  as_mkdir_p=false
516
fi
517
518
if test -x / >/dev/null 2>&1; then
519
  as_test_x='test -x'
520
else
521
  if ls -dL / >/dev/null 2>&1; then
522
    as_ls_L_option=L
523
  else
524
    as_ls_L_option=
525
  fi
526
  as_test_x='
527
    eval sh -c '\''
528
      if test -d "$1"; then
529
	test -d "$1/.";
530
      else
531
	case $1 in #(
532
	-*)set "./$1";;
533
	esac;
534
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
	???[sx]*):;;*)false;;esac;fi
536
    '\'' sh
537
  '
538
fi
539
as_executable_p=$as_test_x
540
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547
SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550
test -n "$DJDIR" || exec 7<&0 </dev/null
551
exec 6>&1
552
553
# Name of the host.
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558
#
559
# Initializations.
560
#
561
ac_default_prefix=/usr/local
562
ac_clean_files=
563
ac_config_libobj_dir=.
564
LIBOBJS=
565
cross_compiling=no
566
subdirs=
567
MFLAGS=
568
MAKEFLAGS=
569
570
# Identity of this package.
571
PACKAGE_NAME='procps-ng'
572
PACKAGE_TARNAME='procps-ng'
1.1.9 by Craig Small
Import upstream version 3.3.3
573
PACKAGE_VERSION='3.3.3'
574
PACKAGE_STRING='procps-ng 3.3.3'
1.1.6 by Craig Small
Import upstream version 3.3.0
575
PACKAGE_BUGREPORT='procps@freelists.org'
576
PACKAGE_URL='http://gitorious.org/procps'
577
1.1.8 by Craig Small
Import upstream version 3.3.2
578
ac_unique_file="free.c"
1.1.6 by Craig Small
Import upstream version 3.3.0
579
# Factoring default headers for most tests.
580
ac_includes_default="\
581
#include <stdio.h>
582
#ifdef HAVE_SYS_TYPES_H
583
# include <sys/types.h>
584
#endif
585
#ifdef HAVE_SYS_STAT_H
586
# include <sys/stat.h>
587
#endif
588
#ifdef STDC_HEADERS
589
# include <stdlib.h>
590
# include <stddef.h>
591
#else
592
# ifdef HAVE_STDLIB_H
593
#  include <stdlib.h>
594
# endif
595
#endif
596
#ifdef HAVE_STRING_H
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598
#  include <memory.h>
599
# endif
600
# include <string.h>
601
#endif
602
#ifdef HAVE_STRINGS_H
603
# include <strings.h>
604
#endif
605
#ifdef HAVE_INTTYPES_H
606
# include <inttypes.h>
607
#endif
608
#ifdef HAVE_STDINT_H
609
# include <stdint.h>
610
#endif
611
#ifdef HAVE_UNISTD_H
612
# include <unistd.h>
613
#endif"
614
615
ac_header_list=
616
ac_subst_vars='am__EXEEXT_FALSE
617
am__EXEEXT_TRUE
618
LTLIBOBJS
1.1.7 by Craig Small
Import upstream version 3.3.1
619
DEJAGNU
1.1.9 by Craig Small
Import upstream version 3.3.3
620
EXAMPLE_FILES_FALSE
621
EXAMPLE_FILES_TRUE
622
BUILD_SKILL_FALSE
623
BUILD_SKILL_TRUE
1.1.7 by Craig Small
Import upstream version 3.3.1
624
LINUX_FALSE
625
LINUX_TRUE
1.1.6 by Craig Small
Import upstream version 3.3.0
626
BUILD_KILL_FALSE
627
BUILD_KILL_TRUE
1.1.8 by Craig Small
Import upstream version 3.3.2
628
WATCH_NCURSES_LIBS
1.1.9 by Craig Small
Import upstream version 3.3.3
629
NCURSESW_LIBS
630
NCURSESW_CFLAGS
1.1.6 by Craig Small
Import upstream version 3.3.0
631
NCURSES_LIBS
1.1.9 by Craig Small
Import upstream version 3.3.3
632
NCURSES_CFLAGS
1.1.6 by Craig Small
Import upstream version 3.3.0
633
WITH_NCURSES_FALSE
634
WITH_NCURSES_TRUE
1.1.8 by Craig Small
Import upstream version 3.3.2
635
POSUB
636
LTLIBINTL
637
LIBINTL
638
INTLLIBS
639
LTLIBICONV
640
LIBICONV
641
MSGMERGE
642
XGETTEXT
643
GMSGFMT
644
MSGFMT
645
USE_NLS
646
MKINSTALLDIRS
647
usrbin_execdir
1.1.6 by Craig Small
Import upstream version 3.3.0
648
POW_LIB
649
LIBOBJS
650
OTOOL64
651
OTOOL
652
LIPO
653
NMEDIT
654
DSYMUTIL
655
MANIFEST_TOOL
656
RANLIB
657
ac_ct_AR
658
AR
659
DLLTOOL
660
OBJDUMP
661
NM
662
ac_ct_DUMPBIN
663
DUMPBIN
664
LD
665
FGREP
666
SED
667
host_os
668
host_vendor
669
host_cpu
670
host
671
build_os
672
build_vendor
673
build_cpu
674
build
675
LIBTOOL
1.1.8 by Craig Small
Import upstream version 3.3.2
676
WITH_WATCH8BIT
1.1.9 by Craig Small
Import upstream version 3.3.3
677
PKG_CONFIG_LIBDIR
678
PKG_CONFIG_PATH
679
PKG_CONFIG
1.1.6 by Craig Small
Import upstream version 3.3.0
680
LN_S
681
EGREP
682
GREP
683
CPP
684
am__fastdepCC_FALSE
685
am__fastdepCC_TRUE
686
CCDEPMODE
1.1.9 by Craig Small
Import upstream version 3.3.3
687
am__nodep
1.1.6 by Craig Small
Import upstream version 3.3.0
688
AMDEPBACKSLASH
689
AMDEP_FALSE
690
AMDEP_TRUE
691
am__quote
692
am__include
693
DEPDIR
694
OBJEXT
695
EXEEXT
696
ac_ct_CC
697
CPPFLAGS
698
LDFLAGS
699
CFLAGS
700
CC
701
am__untar
702
am__tar
703
AMTAR
704
am__leading_dot
705
SET_MAKE
706
AWK
707
mkdir_p
708
MKDIR_P
709
INSTALL_STRIP_PROGRAM
710
STRIP
711
install_sh
712
MAKEINFO
713
AUTOHEADER
714
AUTOMAKE
715
AUTOCONF
716
ACLOCAL
717
VERSION
718
PACKAGE
719
CYGPATH_W
720
am__isrc
721
INSTALL_DATA
722
INSTALL_SCRIPT
723
INSTALL_PROGRAM
724
target_alias
725
host_alias
726
build_alias
727
LIBS
728
ECHO_T
729
ECHO_N
730
ECHO_C
731
DEFS
732
mandir
733
localedir
734
libdir
735
psdir
736
pdfdir
737
dvidir
738
htmldir
739
infodir
740
docdir
741
oldincludedir
742
includedir
743
localstatedir
744
sharedstatedir
745
sysconfdir
746
datadir
747
datarootdir
748
libexecdir
749
sbindir
750
bindir
751
program_transform_name
752
prefix
753
exec_prefix
754
PACKAGE_URL
755
PACKAGE_BUGREPORT
756
PACKAGE_STRING
757
PACKAGE_VERSION
758
PACKAGE_TARNAME
759
PACKAGE_NAME
760
PATH_SEPARATOR
761
SHELL'
762
ac_subst_files=''
763
ac_user_opts='
764
enable_option_checking
765
enable_dependency_tracking
1.1.8 by Craig Small
Import upstream version 3.3.2
766
enable_watch8bit
1.1.6 by Craig Small
Import upstream version 3.3.0
767
enable_shared
768
enable_static
769
with_pic
770
enable_fast_install
771
with_gnu_ld
772
with_sysroot
773
enable_libtool_lock
1.1.8 by Craig Small
Import upstream version 3.3.2
774
enable_nls
775
enable_rpath
776
with_libiconv_prefix
777
with_libintl_prefix
1.1.6 by Craig Small
Import upstream version 3.3.0
778
with_ncurses
779
enable_kill
1.1.9 by Craig Small
Import upstream version 3.3.3
780
enable_skill
781
enable_examples
1.1.6 by Craig Small
Import upstream version 3.3.0
782
enable_oomem
783
enable_w_from
1.1.8 by Craig Small
Import upstream version 3.3.2
784
enable_whining
1.1.6 by Craig Small
Import upstream version 3.3.0
785
'
786
      ac_precious_vars='build_alias
787
host_alias
788
target_alias
789
CC
790
CFLAGS
791
LDFLAGS
792
LIBS
793
CPPFLAGS
1.1.9 by Craig Small
Import upstream version 3.3.3
794
CPP
795
PKG_CONFIG
796
PKG_CONFIG_PATH
797
PKG_CONFIG_LIBDIR
798
NCURSES_CFLAGS
799
NCURSES_LIBS
800
NCURSESW_CFLAGS
801
NCURSESW_LIBS'
1.1.6 by Craig Small
Import upstream version 3.3.0
802
803
804
# Initialize some variables set by options.
805
ac_init_help=
806
ac_init_version=false
807
ac_unrecognized_opts=
808
ac_unrecognized_sep=
809
# The variables have the same names as the options, with
810
# dashes changed to underlines.
811
cache_file=/dev/null
812
exec_prefix=NONE
813
no_create=
814
no_recursion=
815
prefix=NONE
816
program_prefix=NONE
817
program_suffix=NONE
818
program_transform_name=s,x,x,
819
silent=
820
site=
821
srcdir=
822
verbose=
823
x_includes=NONE
824
x_libraries=NONE
825
826
# Installation directory options.
827
# These are left unexpanded so users can "make install exec_prefix=/foo"
828
# and all the variables that are supposed to be based on exec_prefix
829
# by default will actually change.
830
# Use braces instead of parens because sh, perl, etc. also accept them.
831
# (The list follows the same order as the GNU Coding Standards.)
832
bindir='${exec_prefix}/bin'
833
sbindir='${exec_prefix}/sbin'
834
libexecdir='${exec_prefix}/libexec'
835
datarootdir='${prefix}/share'
836
datadir='${datarootdir}'
837
sysconfdir='${prefix}/etc'
838
sharedstatedir='${prefix}/com'
839
localstatedir='${prefix}/var'
840
includedir='${prefix}/include'
841
oldincludedir='/usr/include'
842
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843
infodir='${datarootdir}/info'
844
htmldir='${docdir}'
845
dvidir='${docdir}'
846
pdfdir='${docdir}'
847
psdir='${docdir}'
848
libdir='${exec_prefix}/lib'
849
localedir='${datarootdir}/locale'
850
mandir='${datarootdir}/man'
851
852
ac_prev=
853
ac_dashdash=
854
for ac_option
855
do
856
  # If the previous option needs an argument, assign it.
857
  if test -n "$ac_prev"; then
858
    eval $ac_prev=\$ac_option
859
    ac_prev=
860
    continue
861
  fi
862
863
  case $ac_option in
864
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865
  *=)   ac_optarg= ;;
866
  *)    ac_optarg=yes ;;
867
  esac
868
869
  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871
  case $ac_dashdash$ac_option in
872
  --)
873
    ac_dashdash=yes ;;
874
875
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876
    ac_prev=bindir ;;
877
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878
    bindir=$ac_optarg ;;
879
880
  -build | --build | --buil | --bui | --bu)
881
    ac_prev=build_alias ;;
882
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883
    build_alias=$ac_optarg ;;
884
885
  -cache-file | --cache-file | --cache-fil | --cache-fi \
886
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887
    ac_prev=cache_file ;;
888
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890
    cache_file=$ac_optarg ;;
891
892
  --config-cache | -C)
893
    cache_file=config.cache ;;
894
895
  -datadir | --datadir | --datadi | --datad)
896
    ac_prev=datadir ;;
897
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898
    datadir=$ac_optarg ;;
899
900
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901
  | --dataroo | --dataro | --datar)
902
    ac_prev=datarootdir ;;
903
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905
    datarootdir=$ac_optarg ;;
906
907
  -disable-* | --disable-*)
908
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909
    # Reject names that are not valid shell variable names.
910
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911
      as_fn_error $? "invalid feature name: $ac_useropt"
912
    ac_useropt_orig=$ac_useropt
913
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914
    case $ac_user_opts in
915
      *"
916
"enable_$ac_useropt"
917
"*) ;;
918
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919
	 ac_unrecognized_sep=', ';;
920
    esac
921
    eval enable_$ac_useropt=no ;;
922
923
  -docdir | --docdir | --docdi | --doc | --do)
924
    ac_prev=docdir ;;
925
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926
    docdir=$ac_optarg ;;
927
928
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929
    ac_prev=dvidir ;;
930
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931
    dvidir=$ac_optarg ;;
932
933
  -enable-* | --enable-*)
934
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935
    # Reject names that are not valid shell variable names.
936
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937
      as_fn_error $? "invalid feature name: $ac_useropt"
938
    ac_useropt_orig=$ac_useropt
939
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940
    case $ac_user_opts in
941
      *"
942
"enable_$ac_useropt"
943
"*) ;;
944
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945
	 ac_unrecognized_sep=', ';;
946
    esac
947
    eval enable_$ac_useropt=\$ac_optarg ;;
948
949
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951
  | --exec | --exe | --ex)
952
    ac_prev=exec_prefix ;;
953
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955
  | --exec=* | --exe=* | --ex=*)
956
    exec_prefix=$ac_optarg ;;
957
958
  -gas | --gas | --ga | --g)
959
    # Obsolete; use --with-gas.
960
    with_gas=yes ;;
961
962
  -help | --help | --hel | --he | -h)
963
    ac_init_help=long ;;
964
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965
    ac_init_help=recursive ;;
966
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967
    ac_init_help=short ;;
968
969
  -host | --host | --hos | --ho)
970
    ac_prev=host_alias ;;
971
  -host=* | --host=* | --hos=* | --ho=*)
972
    host_alias=$ac_optarg ;;
973
974
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975
    ac_prev=htmldir ;;
976
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977
  | --ht=*)
978
    htmldir=$ac_optarg ;;
979
980
  -includedir | --includedir | --includedi | --included | --include \
981
  | --includ | --inclu | --incl | --inc)
982
    ac_prev=includedir ;;
983
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984
  | --includ=* | --inclu=* | --incl=* | --inc=*)
985
    includedir=$ac_optarg ;;
986
987
  -infodir | --infodir | --infodi | --infod | --info | --inf)
988
    ac_prev=infodir ;;
989
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990
    infodir=$ac_optarg ;;
991
992
  -libdir | --libdir | --libdi | --libd)
993
    ac_prev=libdir ;;
994
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995
    libdir=$ac_optarg ;;
996
997
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998
  | --libexe | --libex | --libe)
999
    ac_prev=libexecdir ;;
1000
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001
  | --libexe=* | --libex=* | --libe=*)
1002
    libexecdir=$ac_optarg ;;
1003
1004
  -localedir | --localedir | --localedi | --localed | --locale)
1005
    ac_prev=localedir ;;
1006
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007
    localedir=$ac_optarg ;;
1008
1009
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010
  | --localstate | --localstat | --localsta | --localst | --locals)
1011
    ac_prev=localstatedir ;;
1012
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014
    localstatedir=$ac_optarg ;;
1015
1016
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017
    ac_prev=mandir ;;
1018
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019
    mandir=$ac_optarg ;;
1020
1021
  -nfp | --nfp | --nf)
1022
    # Obsolete; use --without-fp.
1023
    with_fp=no ;;
1024
1025
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026
  | --no-cr | --no-c | -n)
1027
    no_create=yes ;;
1028
1029
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031
    no_recursion=yes ;;
1032
1033
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035
  | --oldin | --oldi | --old | --ol | --o)
1036
    ac_prev=oldincludedir ;;
1037
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040
    oldincludedir=$ac_optarg ;;
1041
1042
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043
    ac_prev=prefix ;;
1044
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045
    prefix=$ac_optarg ;;
1046
1047
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048
  | --program-pre | --program-pr | --program-p)
1049
    ac_prev=program_prefix ;;
1050
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052
    program_prefix=$ac_optarg ;;
1053
1054
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055
  | --program-suf | --program-su | --program-s)
1056
    ac_prev=program_suffix ;;
1057
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059
    program_suffix=$ac_optarg ;;
1060
1061
  -program-transform-name | --program-transform-name \
1062
  | --program-transform-nam | --program-transform-na \
1063
  | --program-transform-n | --program-transform- \
1064
  | --program-transform | --program-transfor \
1065
  | --program-transfo | --program-transf \
1066
  | --program-trans | --program-tran \
1067
  | --progr-tra | --program-tr | --program-t)
1068
    ac_prev=program_transform_name ;;
1069
  -program-transform-name=* | --program-transform-name=* \
1070
  | --program-transform-nam=* | --program-transform-na=* \
1071
  | --program-transform-n=* | --program-transform-=* \
1072
  | --program-transform=* | --program-transfor=* \
1073
  | --program-transfo=* | --program-transf=* \
1074
  | --program-trans=* | --program-tran=* \
1075
  | --progr-tra=* | --program-tr=* | --program-t=*)
1076
    program_transform_name=$ac_optarg ;;
1077
1078
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079
    ac_prev=pdfdir ;;
1080
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081
    pdfdir=$ac_optarg ;;
1082
1083
  -psdir | --psdir | --psdi | --psd | --ps)
1084
    ac_prev=psdir ;;
1085
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086
    psdir=$ac_optarg ;;
1087
1088
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089
  | -silent | --silent | --silen | --sile | --sil)
1090
    silent=yes ;;
1091
1092
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093
    ac_prev=sbindir ;;
1094
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095
  | --sbi=* | --sb=*)
1096
    sbindir=$ac_optarg ;;
1097
1098
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100
  | --sharedst | --shareds | --shared | --share | --shar \
1101
  | --sha | --sh)
1102
    ac_prev=sharedstatedir ;;
1103
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106
  | --sha=* | --sh=*)
1107
    sharedstatedir=$ac_optarg ;;
1108
1109
  -site | --site | --sit)
1110
    ac_prev=site ;;
1111
  -site=* | --site=* | --sit=*)
1112
    site=$ac_optarg ;;
1113
1114
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115
    ac_prev=srcdir ;;
1116
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117
    srcdir=$ac_optarg ;;
1118
1119
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120
  | --syscon | --sysco | --sysc | --sys | --sy)
1121
    ac_prev=sysconfdir ;;
1122
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124
    sysconfdir=$ac_optarg ;;
1125
1126
  -target | --target | --targe | --targ | --tar | --ta | --t)
1127
    ac_prev=target_alias ;;
1128
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129
    target_alias=$ac_optarg ;;
1130
1131
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132
    verbose=yes ;;
1133
1134
  -version | --version | --versio | --versi | --vers | -V)
1135
    ac_init_version=: ;;
1136
1137
  -with-* | --with-*)
1138
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139
    # Reject names that are not valid shell variable names.
1140
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141
      as_fn_error $? "invalid package name: $ac_useropt"
1142
    ac_useropt_orig=$ac_useropt
1143
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144
    case $ac_user_opts in
1145
      *"
1146
"with_$ac_useropt"
1147
"*) ;;
1148
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149
	 ac_unrecognized_sep=', ';;
1150
    esac
1151
    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153
  -without-* | --without-*)
1154
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155
    # Reject names that are not valid shell variable names.
1156
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157
      as_fn_error $? "invalid package name: $ac_useropt"
1158
    ac_useropt_orig=$ac_useropt
1159
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160
    case $ac_user_opts in
1161
      *"
1162
"with_$ac_useropt"
1163
"*) ;;
1164
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165
	 ac_unrecognized_sep=', ';;
1166
    esac
1167
    eval with_$ac_useropt=no ;;
1168
1169
  --x)
1170
    # Obsolete; use --with-x.
1171
    with_x=yes ;;
1172
1173
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174
  | --x-incl | --x-inc | --x-in | --x-i)
1175
    ac_prev=x_includes ;;
1176
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178
    x_includes=$ac_optarg ;;
1179
1180
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182
    ac_prev=x_libraries ;;
1183
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185
    x_libraries=$ac_optarg ;;
1186
1187
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188
Try \`$0 --help' for more information"
1189
    ;;
1190
1191
  *=*)
1192
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193
    # Reject names that are not valid shell variable names.
1194
    case $ac_envvar in #(
1195
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197
    esac
1198
    eval $ac_envvar=\$ac_optarg
1199
    export $ac_envvar ;;
1200
1201
  *)
1202
    # FIXME: should be removed in autoconf 3.0.
1203
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207
    ;;
1208
1209
  esac
1210
done
1211
1212
if test -n "$ac_prev"; then
1213
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214
  as_fn_error $? "missing argument to $ac_option"
1215
fi
1216
1217
if test -n "$ac_unrecognized_opts"; then
1218
  case $enable_option_checking in
1219
    no) ;;
1220
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222
  esac
1223
fi
1224
1225
# Check all directory arguments for consistency.
1226
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227
		datadir sysconfdir sharedstatedir localstatedir includedir \
1228
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229
		libdir localedir mandir
1230
do
1231
  eval ac_val=\$$ac_var
1232
  # Remove trailing slashes.
1233
  case $ac_val in
1234
    */ )
1235
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236
      eval $ac_var=\$ac_val;;
1237
  esac
1238
  # Be sure to have absolute directory names.
1239
  case $ac_val in
1240
    [\\/$]* | ?:[\\/]* )  continue;;
1241
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242
  esac
1243
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244
done
1245
1246
# There might be people who depend on the old broken behavior: `$host'
1247
# used to hold the argument of --host etc.
1248
# FIXME: To remove some day.
1249
build=$build_alias
1250
host=$host_alias
1251
target=$target_alias
1252
1253
# FIXME: To remove some day.
1254
if test "x$host_alias" != x; then
1255
  if test "x$build_alias" = x; then
1256
    cross_compiling=maybe
1257
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1258
    If a cross compiler is detected then cross compile mode will be used" >&2
1259
  elif test "x$build_alias" != "x$host_alias"; then
1260
    cross_compiling=yes
1261
  fi
1262
fi
1263
1264
ac_tool_prefix=
1265
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267
test "$silent" = yes && exec 6>/dev/null
1268
1269
1270
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271
ac_ls_di=`ls -di .` &&
1272
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273
  as_fn_error $? "working directory cannot be determined"
1274
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275
  as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278
# Find the source files, if location was not specified.
1279
if test -z "$srcdir"; then
1280
  ac_srcdir_defaulted=yes
1281
  # Try the directory containing this script, then the parent directory.
1282
  ac_confdir=`$as_dirname -- "$as_myself" ||
1283
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1285
	 X"$as_myself" : 'X\(//\)$' \| \
1286
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287
$as_echo X"$as_myself" |
1288
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289
	    s//\1/
1290
	    q
1291
	  }
1292
	  /^X\(\/\/\)[^/].*/{
1293
	    s//\1/
1294
	    q
1295
	  }
1296
	  /^X\(\/\/\)$/{
1297
	    s//\1/
1298
	    q
1299
	  }
1300
	  /^X\(\/\).*/{
1301
	    s//\1/
1302
	    q
1303
	  }
1304
	  s/.*/./; q'`
1305
  srcdir=$ac_confdir
1306
  if test ! -r "$srcdir/$ac_unique_file"; then
1307
    srcdir=..
1308
  fi
1309
else
1310
  ac_srcdir_defaulted=no
1311
fi
1312
if test ! -r "$srcdir/$ac_unique_file"; then
1313
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315
fi
1316
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317
ac_abs_confdir=`(
1318
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319
	pwd)`
1320
# When building in place, set srcdir=.
1321
if test "$ac_abs_confdir" = "$ac_pwd"; then
1322
  srcdir=.
1323
fi
1324
# Remove unnecessary trailing slashes from srcdir.
1325
# Double slashes in file names in object file debugging info
1326
# mess up M-x gdb in Emacs.
1327
case $srcdir in
1328
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329
esac
1330
for ac_var in $ac_precious_vars; do
1331
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332
  eval ac_env_${ac_var}_value=\$${ac_var}
1333
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335
done
1336
1337
#
1338
# Report the --help message.
1339
#
1340
if test "$ac_init_help" = "long"; then
1341
  # Omit some internal or obsolete options to make the list less imposing.
1342
  # This message is too long to be a string in the A/UX 3.1 sh.
1343
  cat <<_ACEOF
1.1.9 by Craig Small
Import upstream version 3.3.3
1344
\`configure' configures procps-ng 3.3.3 to adapt to many kinds of systems.
1.1.6 by Craig Small
Import upstream version 3.3.0
1345
1346
Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349
VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351
Defaults for the options are specified in brackets.
1352
1353
Configuration:
1354
  -h, --help              display this help and exit
1355
      --help=short        display options specific to this package
1356
      --help=recursive    display the short help of all the included packages
1357
  -V, --version           display version information and exit
1358
  -q, --quiet, --silent   do not print \`checking ...' messages
1359
      --cache-file=FILE   cache test results in FILE [disabled]
1360
  -C, --config-cache      alias for \`--cache-file=config.cache'
1361
  -n, --no-create         do not create output files
1362
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364
Installation directories:
1365
  --prefix=PREFIX         install architecture-independent files in PREFIX
1366
                          [$ac_default_prefix]
1367
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368
                          [PREFIX]
1369
1370
By default, \`make install' will install all the files in
1371
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373
for instance \`--prefix=\$HOME'.
1374
1375
For better control, use the options below.
1376
1377
Fine tuning of the installation directories:
1378
  --bindir=DIR            user executables [EPREFIX/bin]
1379
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1381
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384
  --libdir=DIR            object code libraries [EPREFIX/lib]
1385
  --includedir=DIR        C header files [PREFIX/include]
1386
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1390
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1392
  --docdir=DIR            documentation root [DATAROOTDIR/doc/procps-ng]
1393
  --htmldir=DIR           html documentation [DOCDIR]
1394
  --dvidir=DIR            dvi documentation [DOCDIR]
1395
  --pdfdir=DIR            pdf documentation [DOCDIR]
1396
  --psdir=DIR             ps documentation [DOCDIR]
1397
_ACEOF
1398
1399
  cat <<\_ACEOF
1400
1401
Program names:
1402
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1403
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1404
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406
System types:
1407
  --build=BUILD     configure for building on BUILD [guessed]
1408
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409
_ACEOF
1410
fi
1411
1412
if test -n "$ac_init_help"; then
1413
  case $ac_init_help in
1.1.9 by Craig Small
Import upstream version 3.3.3
1414
     short | recursive ) echo "Configuration of procps-ng 3.3.3:";;
1.1.6 by Craig Small
Import upstream version 3.3.0
1415
   esac
1416
  cat <<\_ACEOF
1417
1418
Optional Features:
1419
  --disable-option-checking  ignore unrecognized --enable/--with options
1420
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422
  --disable-dependency-tracking  speeds up one-time build
1423
  --enable-dependency-tracking   do not reject slow dependency extractors
1.1.8 by Craig Small
Import upstream version 3.3.2
1424
  --enable-watch8bit      enable watch to be 8bit clean (requires ncursesw)
1.1.6 by Craig Small
Import upstream version 3.3.0
1425
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1426
  --enable-static[=PKGS]  build static libraries [default=yes]
1427
  --enable-fast-install[=PKGS]
1428
                          optimize for fast installation [default=yes]
1429
  --disable-libtool-lock  avoid locking (might break parallel builds)
1.1.8 by Craig Small
Import upstream version 3.3.2
1430
  --disable-nls           do not use Native Language Support
1431
  --disable-rpath         do not hardcode runtime library paths
1.1.6 by Craig Small
Import upstream version 3.3.0
1432
  --disable-kill          do not build kill
1.1.9 by Craig Small
Import upstream version 3.3.3
1433
  --enable-skill          build skill and snice
1434
  --enable-examples       add example files to installation
1.1.6 by Craig Small
Import upstream version 3.3.0
1435
  --enable-oomem          add out-of-memory fields to the library and top
1436
  --enable-w-from         enable w from field by default
1.1.9 by Craig Small
Import upstream version 3.3.3
1437
  --disable-whining       do not print unnecessary warnings (slackware-ism)
1.1.6 by Craig Small
Import upstream version 3.3.0
1438
1439
Optional Packages:
1440
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443
                          both]
1444
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445
  --with-sysroot=DIR Search for dependent libraries within DIR
1446
                        (or the compiler's sysroot if not specified).
1.1.8 by Craig Small
Import upstream version 3.3.2
1447
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1448
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1449
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1450
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1451
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1.1.6 by Craig Small
Import upstream version 3.3.0
1452
  --without-ncurses       build only applications not needing ncurses
1453
1454
Some influential environment variables:
1455
  CC          C compiler command
1456
  CFLAGS      C compiler flags
1457
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458
              nonstandard directory <lib dir>
1459
  LIBS        libraries to pass to the linker, e.g. -l<library>
1460
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461
              you have headers in a nonstandard directory <include dir>
1462
  CPP         C preprocessor
1.1.9 by Craig Small
Import upstream version 3.3.3
1463
  PKG_CONFIG  path to pkg-config utility
1464
  PKG_CONFIG_PATH
1465
              directories to add to pkg-config's search path
1466
  PKG_CONFIG_LIBDIR
1467
              path overriding pkg-config's built-in search path
1468
  NCURSES_CFLAGS
1469
              C compiler flags for NCURSES, overriding pkg-config
1470
  NCURSES_LIBS
1471
              linker flags for NCURSES, overriding pkg-config
1472
  NCURSESW_CFLAGS
1473
              C compiler flags for NCURSESW, overriding pkg-config
1474
  NCURSESW_LIBS
1475
              linker flags for NCURSESW, overriding pkg-config
1.1.6 by Craig Small
Import upstream version 3.3.0
1476
1477
Use these variables to override the choices made by `configure' or to help
1478
it to find libraries and programs with nonstandard names/locations.
1479
1480
Report bugs to <procps@freelists.org>.
1481
procps-ng home page: <http://gitorious.org/procps>.
1482
_ACEOF
1483
ac_status=$?
1484
fi
1485
1486
if test "$ac_init_help" = "recursive"; then
1487
  # If there are subdirs, report their specific --help.
1488
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489
    test -d "$ac_dir" ||
1490
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491
      continue
1492
    ac_builddir=.
1493
1494
case "$ac_dir" in
1495
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496
*)
1497
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498
  # A ".." for each directory in $ac_dir_suffix.
1499
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500
  case $ac_top_builddir_sub in
1501
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503
  esac ;;
1504
esac
1505
ac_abs_top_builddir=$ac_pwd
1506
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507
# for backward compatibility:
1508
ac_top_builddir=$ac_top_build_prefix
1509
1510
case $srcdir in
1511
  .)  # We are building in place.
1512
    ac_srcdir=.
1513
    ac_top_srcdir=$ac_top_builddir_sub
1514
    ac_abs_top_srcdir=$ac_pwd ;;
1515
  [\\/]* | ?:[\\/]* )  # Absolute name.
1516
    ac_srcdir=$srcdir$ac_dir_suffix;
1517
    ac_top_srcdir=$srcdir
1518
    ac_abs_top_srcdir=$srcdir ;;
1519
  *) # Relative name.
1520
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1522
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523
esac
1524
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526
    cd "$ac_dir" || { ac_status=$?; continue; }
1527
    # Check for guested configure.
1528
    if test -f "$ac_srcdir/configure.gnu"; then
1529
      echo &&
1530
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531
    elif test -f "$ac_srcdir/configure"; then
1532
      echo &&
1533
      $SHELL "$ac_srcdir/configure" --help=recursive
1534
    else
1535
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536
    fi || ac_status=$?
1537
    cd "$ac_pwd" || { ac_status=$?; break; }
1538
  done
1539
fi
1540
1541
test -n "$ac_init_help" && exit $ac_status
1542
if $ac_init_version; then
1543
  cat <<\_ACEOF
1.1.9 by Craig Small
Import upstream version 3.3.3
1544
procps-ng configure 3.3.3
1.1.6 by Craig Small
Import upstream version 3.3.0
1545
generated by GNU Autoconf 2.68
1546
1547
Copyright (C) 2010 Free Software Foundation, Inc.
1548
This configure script is free software; the Free Software Foundation
1549
gives unlimited permission to copy, distribute and modify it.
1550
_ACEOF
1551
  exit
1552
fi
1553
1554
## ------------------------ ##
1555
## Autoconf initialization. ##
1556
## ------------------------ ##
1557
1558
# ac_fn_c_try_compile LINENO
1559
# --------------------------
1560
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561
ac_fn_c_try_compile ()
1562
{
1563
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564
  rm -f conftest.$ac_objext
1565
  if { { ac_try="$ac_compile"
1566
case "(($ac_try" in
1567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568
  *) ac_try_echo=$ac_try;;
1569
esac
1570
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571
$as_echo "$ac_try_echo"; } >&5
1572
  (eval "$ac_compile") 2>conftest.err
1573
  ac_status=$?
1574
  if test -s conftest.err; then
1575
    grep -v '^ *+' conftest.err >conftest.er1
1576
    cat conftest.er1 >&5
1577
    mv -f conftest.er1 conftest.err
1578
  fi
1579
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580
  test $ac_status = 0; } && {
1581
	 test -z "$ac_c_werror_flag" ||
1582
	 test ! -s conftest.err
1583
       } && test -s conftest.$ac_objext; then :
1584
  ac_retval=0
1585
else
1586
  $as_echo "$as_me: failed program was:" >&5
1587
sed 's/^/| /' conftest.$ac_ext >&5
1588
1589
	ac_retval=1
1590
fi
1591
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592
  as_fn_set_status $ac_retval
1593
1594
} # ac_fn_c_try_compile
1595
1596
# ac_fn_c_try_cpp LINENO
1597
# ----------------------
1598
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599
ac_fn_c_try_cpp ()
1600
{
1601
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1603
case "(($ac_try" in
1604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605
  *) ac_try_echo=$ac_try;;
1606
esac
1607
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608
$as_echo "$ac_try_echo"; } >&5
1609
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610
  ac_status=$?
1611
  if test -s conftest.err; then
1612
    grep -v '^ *+' conftest.err >conftest.er1
1613
    cat conftest.er1 >&5
1614
    mv -f conftest.er1 conftest.err
1615
  fi
1616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617
  test $ac_status = 0; } > conftest.i && {
1618
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619
	 test ! -s conftest.err
1620
       }; then :
1621
  ac_retval=0
1622
else
1623
  $as_echo "$as_me: failed program was:" >&5
1624
sed 's/^/| /' conftest.$ac_ext >&5
1625
1626
    ac_retval=1
1627
fi
1628
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
  as_fn_set_status $ac_retval
1630
1631
} # ac_fn_c_try_cpp
1632
1633
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634
# -------------------------------------------------------
1635
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636
# the include files in INCLUDES and setting the cache variable VAR
1637
# accordingly.
1638
ac_fn_c_check_header_mongrel ()
1639
{
1640
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641
  if eval \${$3+:} false; then :
1642
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643
$as_echo_n "checking for $2... " >&6; }
1644
if eval \${$3+:} false; then :
1645
  $as_echo_n "(cached) " >&6
1646
fi
1647
eval ac_res=\$$3
1648
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649
$as_echo "$ac_res" >&6; }
1650
else
1651
  # Is the header compilable?
1652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653
$as_echo_n "checking $2 usability... " >&6; }
1654
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655
/* end confdefs.h.  */
1656
$4
1657
#include <$2>
1658
_ACEOF
1659
if ac_fn_c_try_compile "$LINENO"; then :
1660
  ac_header_compiler=yes
1661
else
1662
  ac_header_compiler=no
1663
fi
1664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666
$as_echo "$ac_header_compiler" >&6; }
1667
1668
# Is the header present?
1669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670
$as_echo_n "checking $2 presence... " >&6; }
1671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672
/* end confdefs.h.  */
1673
#include <$2>
1674
_ACEOF
1675
if ac_fn_c_try_cpp "$LINENO"; then :
1676
  ac_header_preproc=yes
1677
else
1678
  ac_header_preproc=no
1679
fi
1680
rm -f conftest.err conftest.i conftest.$ac_ext
1681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682
$as_echo "$ac_header_preproc" >&6; }
1683
1684
# So?  What about this header?
1685
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686
  yes:no: )
1687
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691
    ;;
1692
  no:yes:* )
1693
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1696
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1697
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1700
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1701
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703
( $as_echo "## ----------------------------------- ##
1704
## Report this to procps@freelists.org ##
1705
## ----------------------------------- ##"
1706
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1707
    ;;
1708
esac
1709
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710
$as_echo_n "checking for $2... " >&6; }
1711
if eval \${$3+:} false; then :
1712
  $as_echo_n "(cached) " >&6
1713
else
1714
  eval "$3=\$ac_header_compiler"
1715
fi
1716
eval ac_res=\$$3
1717
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718
$as_echo "$ac_res" >&6; }
1719
fi
1720
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722
} # ac_fn_c_check_header_mongrel
1723
1724
# ac_fn_c_try_run LINENO
1725
# ----------------------
1726
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727
# that executables *can* be run.
1728
ac_fn_c_try_run ()
1729
{
1730
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
  if { { ac_try="$ac_link"
1732
case "(($ac_try" in
1733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734
  *) ac_try_echo=$ac_try;;
1735
esac
1736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737
$as_echo "$ac_try_echo"; } >&5
1738
  (eval "$ac_link") 2>&5
1739
  ac_status=$?
1740
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742
  { { case "(($ac_try" in
1743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744
  *) ac_try_echo=$ac_try;;
1745
esac
1746
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747
$as_echo "$ac_try_echo"; } >&5
1748
  (eval "$ac_try") 2>&5
1749
  ac_status=$?
1750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751
  test $ac_status = 0; }; }; then :
1752
  ac_retval=0
1753
else
1754
  $as_echo "$as_me: program exited with status $ac_status" >&5
1755
       $as_echo "$as_me: failed program was:" >&5
1756
sed 's/^/| /' conftest.$ac_ext >&5
1757
1758
       ac_retval=$ac_status
1759
fi
1760
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
  as_fn_set_status $ac_retval
1763
1764
} # ac_fn_c_try_run
1765
1766
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767
# -------------------------------------------------------
1768
# Tests whether HEADER exists and can be compiled using the include files in
1769
# INCLUDES, setting the cache variable VAR accordingly.
1770
ac_fn_c_check_header_compile ()
1771
{
1772
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774
$as_echo_n "checking for $2... " >&6; }
1775
if eval \${$3+:} false; then :
1776
  $as_echo_n "(cached) " >&6
1777
else
1778
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779
/* end confdefs.h.  */
1780
$4
1781
#include <$2>
1782
_ACEOF
1783
if ac_fn_c_try_compile "$LINENO"; then :
1784
  eval "$3=yes"
1785
else
1786
  eval "$3=no"
1787
fi
1788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789
fi
1790
eval ac_res=\$$3
1791
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792
$as_echo "$ac_res" >&6; }
1793
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795
} # ac_fn_c_check_header_compile
1796
1797
# ac_fn_c_try_link LINENO
1798
# -----------------------
1799
# Try to link conftest.$ac_ext, and return whether this succeeded.
1800
ac_fn_c_try_link ()
1801
{
1802
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
  rm -f conftest.$ac_objext conftest$ac_exeext
1804
  if { { ac_try="$ac_link"
1805
case "(($ac_try" in
1806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807
  *) ac_try_echo=$ac_try;;
1808
esac
1809
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810
$as_echo "$ac_try_echo"; } >&5
1811
  (eval "$ac_link") 2>conftest.err
1812
  ac_status=$?
1813
  if test -s conftest.err; then
1814
    grep -v '^ *+' conftest.err >conftest.er1
1815
    cat conftest.er1 >&5
1816
    mv -f conftest.er1 conftest.err
1817
  fi
1818
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819
  test $ac_status = 0; } && {
1820
	 test -z "$ac_c_werror_flag" ||
1821
	 test ! -s conftest.err
1822
       } && test -s conftest$ac_exeext && {
1823
	 test "$cross_compiling" = yes ||
1824
	 $as_test_x conftest$ac_exeext
1825
       }; then :
1826
  ac_retval=0
1827
else
1828
  $as_echo "$as_me: failed program was:" >&5
1829
sed 's/^/| /' conftest.$ac_ext >&5
1830
1831
	ac_retval=1
1832
fi
1833
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835
  # interfere with the next link command; also delete a directory that is
1836
  # left behind by Apple's compiler.  We do this before executing the actions.
1837
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
  as_fn_set_status $ac_retval
1840
1841
} # ac_fn_c_try_link
1842
1843
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1844
# -------------------------------------------
1845
# Tests whether TYPE exists after having included INCLUDES, setting cache
1846
# variable VAR accordingly.
1847
ac_fn_c_check_type ()
1848
{
1849
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851
$as_echo_n "checking for $2... " >&6; }
1852
if eval \${$3+:} false; then :
1853
  $as_echo_n "(cached) " >&6
1854
else
1855
  eval "$3=no"
1856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857
/* end confdefs.h.  */
1858
$4
1859
int
1860
main ()
1861
{
1862
if (sizeof ($2))
1863
	 return 0;
1864
  ;
1865
  return 0;
1866
}
1867
_ACEOF
1868
if ac_fn_c_try_compile "$LINENO"; then :
1869
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870
/* end confdefs.h.  */
1871
$4
1872
int
1873
main ()
1874
{
1875
if (sizeof (($2)))
1876
	    return 0;
1877
  ;
1878
  return 0;
1879
}
1880
_ACEOF
1881
if ac_fn_c_try_compile "$LINENO"; then :
1882
1883
else
1884
  eval "$3=yes"
1885
fi
1886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887
fi
1888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889
fi
1890
eval ac_res=\$$3
1891
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892
$as_echo "$ac_res" >&6; }
1893
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895
} # ac_fn_c_check_type
1896
1897
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1898
# ----------------------------------------------------
1899
# Tries to find if the field MEMBER exists in type AGGR, after including
1900
# INCLUDES, setting cache variable VAR accordingly.
1901
ac_fn_c_check_member ()
1902
{
1903
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1905
$as_echo_n "checking for $2.$3... " >&6; }
1906
if eval \${$4+:} false; then :
1907
  $as_echo_n "(cached) " >&6
1908
else
1909
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910
/* end confdefs.h.  */
1911
$5
1912
int
1913
main ()
1914
{
1915
static $2 ac_aggr;
1916
if (ac_aggr.$3)
1917
return 0;
1918
  ;
1919
  return 0;
1920
}
1921
_ACEOF
1922
if ac_fn_c_try_compile "$LINENO"; then :
1923
  eval "$4=yes"
1924
else
1925
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926
/* end confdefs.h.  */
1927
$5
1928
int
1929
main ()
1930
{
1931
static $2 ac_aggr;
1932
if (sizeof ac_aggr.$3)
1933
return 0;
1934
  ;
1935
  return 0;
1936
}
1937
_ACEOF
1938
if ac_fn_c_try_compile "$LINENO"; then :
1939
  eval "$4=yes"
1940
else
1941
  eval "$4=no"
1942
fi
1943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944
fi
1945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946
fi
1947
eval ac_res=\$$4
1948
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949
$as_echo "$ac_res" >&6; }
1950
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952
} # ac_fn_c_check_member
1953
1954
# ac_fn_c_check_func LINENO FUNC VAR
1955
# ----------------------------------
1956
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1957
ac_fn_c_check_func ()
1958
{
1959
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961
$as_echo_n "checking for $2... " >&6; }
1962
if eval \${$3+:} false; then :
1963
  $as_echo_n "(cached) " >&6
1964
else
1965
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966
/* end confdefs.h.  */
1967
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969
#define $2 innocuous_$2
1970
1971
/* System header to define __stub macros and hopefully few prototypes,
1972
    which can conflict with char $2 (); below.
1973
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974
    <limits.h> exists even on freestanding compilers.  */
1975
1976
#ifdef __STDC__
1977
# include <limits.h>
1978
#else
1979
# include <assert.h>
1980
#endif
1981
1982
#undef $2
1983
1984
/* Override any GCC internal prototype to avoid an error.
1985
   Use char because int might match the return type of a GCC
1986
   builtin and then its argument prototype would still apply.  */
1987
#ifdef __cplusplus
1988
extern "C"
1989
#endif
1990
char $2 ();
1991
/* The GNU C library defines this for functions which it implements
1992
    to always fail with ENOSYS.  Some functions are actually named
1993
    something starting with __ and the normal name is an alias.  */
1994
#if defined __stub_$2 || defined __stub___$2
1995
choke me
1996
#endif
1997
1998
int
1999
main ()
2000
{
2001
return $2 ();
2002
  ;
2003
  return 0;
2004
}
2005
_ACEOF
2006
if ac_fn_c_try_link "$LINENO"; then :
2007
  eval "$3=yes"
2008
else
2009
  eval "$3=no"
2010
fi
2011
rm -f core conftest.err conftest.$ac_objext \
2012
    conftest$ac_exeext conftest.$ac_ext
2013
fi
2014
eval ac_res=\$$3
2015
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016
$as_echo "$ac_res" >&6; }
2017
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019
} # ac_fn_c_check_func
2020
cat >config.log <<_ACEOF
2021
This file contains any messages produced by compilers while
2022
running configure, to aid debugging if configure makes a mistake.
2023
1.1.9 by Craig Small
Import upstream version 3.3.3
2024
It was created by procps-ng $as_me 3.3.3, which was
1.1.6 by Craig Small
Import upstream version 3.3.0
2025
generated by GNU Autoconf 2.68.  Invocation command line was
2026
2027
  $ $0 $@
2028
2029
_ACEOF
2030
exec 5>>config.log
2031
{
2032
cat <<_ASUNAME
2033
## --------- ##
2034
## Platform. ##
2035
## --------- ##
2036
2037
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2045
2046
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2047
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2048
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2050
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2051
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2052
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2053
2054
_ASUNAME
2055
2056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057
for as_dir in $PATH
2058
do
2059
  IFS=$as_save_IFS
2060
  test -z "$as_dir" && as_dir=.
2061
    $as_echo "PATH: $as_dir"
2062
  done
2063
IFS=$as_save_IFS
2064
2065
} >&5
2066
2067
cat >&5 <<_ACEOF
2068
2069
2070
## ----------- ##
2071
## Core tests. ##
2072
## ----------- ##
2073
2074
_ACEOF
2075
2076
2077
# Keep a trace of the command line.
2078
# Strip out --no-create and --no-recursion so they do not pile up.
2079
# Strip out --silent because we don't want to record it for future runs.
2080
# Also quote any args containing shell meta-characters.
2081
# Make two passes to allow for proper duplicate-argument suppression.
2082
ac_configure_args=
2083
ac_configure_args0=
2084
ac_configure_args1=
2085
ac_must_keep_next=false
2086
for ac_pass in 1 2
2087
do
2088
  for ac_arg
2089
  do
2090
    case $ac_arg in
2091
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093
    | -silent | --silent | --silen | --sile | --sil)
2094
      continue ;;
2095
    *\'*)
2096
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097
    esac
2098
    case $ac_pass in
2099
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100
    2)
2101
      as_fn_append ac_configure_args1 " '$ac_arg'"
2102
      if test $ac_must_keep_next = true; then
2103
	ac_must_keep_next=false # Got value, back to normal.
2104
      else
2105
	case $ac_arg in
2106
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2107
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109
	  | -with-* | --with-* | -without-* | --without-* | --x)
2110
	    case "$ac_configure_args0 " in
2111
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112
	    esac
2113
	    ;;
2114
	  -* ) ac_must_keep_next=true ;;
2115
	esac
2116
      fi
2117
      as_fn_append ac_configure_args " '$ac_arg'"
2118
      ;;
2119
    esac
2120
  done
2121
done
2122
{ ac_configure_args0=; unset ac_configure_args0;}
2123
{ ac_configure_args1=; unset ac_configure_args1;}
2124
2125
# When interrupted or exit'd, cleanup temporary files, and complete
2126
# config.log.  We remove comments because anyway the quotes in there
2127
# would cause problems or look ugly.
2128
# WARNING: Use '\'' to represent an apostrophe within the trap.
2129
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130
trap 'exit_status=$?
2131
  # Save into config.log some information that might help in debugging.
2132
  {
2133
    echo
2134
2135
    $as_echo "## ---------------- ##
2136
## Cache variables. ##
2137
## ---------------- ##"
2138
    echo
2139
    # The following way of writing the cache mishandles newlines in values,
2140
(
2141
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142
    eval ac_val=\$$ac_var
2143
    case $ac_val in #(
2144
    *${as_nl}*)
2145
      case $ac_var in #(
2146
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148
      esac
2149
      case $ac_var in #(
2150
      _ | IFS | as_nl) ;; #(
2151
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152
      *) { eval $ac_var=; unset $ac_var;} ;;
2153
      esac ;;
2154
    esac
2155
  done
2156
  (set) 2>&1 |
2157
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158
    *${as_nl}ac_space=\ *)
2159
      sed -n \
2160
	"s/'\''/'\''\\\\'\'''\''/g;
2161
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162
      ;; #(
2163
    *)
2164
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165
      ;;
2166
    esac |
2167
    sort
2168
)
2169
    echo
2170
2171
    $as_echo "## ----------------- ##
2172
## Output variables. ##
2173
## ----------------- ##"
2174
    echo
2175
    for ac_var in $ac_subst_vars
2176
    do
2177
      eval ac_val=\$$ac_var
2178
      case $ac_val in
2179
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180
      esac
2181
      $as_echo "$ac_var='\''$ac_val'\''"
2182
    done | sort
2183
    echo
2184
2185
    if test -n "$ac_subst_files"; then
2186
      $as_echo "## ------------------- ##
2187
## File substitutions. ##
2188
## ------------------- ##"
2189
      echo
2190
      for ac_var in $ac_subst_files
2191
      do
2192
	eval ac_val=\$$ac_var
2193
	case $ac_val in
2194
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195
	esac
2196
	$as_echo "$ac_var='\''$ac_val'\''"
2197
      done | sort
2198
      echo
2199
    fi
2200
2201
    if test -s confdefs.h; then
2202
      $as_echo "## ----------- ##
2203
## confdefs.h. ##
2204
## ----------- ##"
2205
      echo
2206
      cat confdefs.h
2207
      echo
2208
    fi
2209
    test "$ac_signal" != 0 &&
2210
      $as_echo "$as_me: caught signal $ac_signal"
2211
    $as_echo "$as_me: exit $exit_status"
2212
  } >&5
2213
  rm -f core *.core core.conftest.* &&
2214
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215
    exit $exit_status
2216
' 0
2217
for ac_signal in 1 2 13 15; do
2218
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219
done
2220
ac_signal=0
2221
2222
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2223
rm -f -r conftest* confdefs.h
2224
2225
$as_echo "/* confdefs.h */" > confdefs.h
2226
2227
# Predefined preprocessor variables.
2228
2229
cat >>confdefs.h <<_ACEOF
2230
#define PACKAGE_NAME "$PACKAGE_NAME"
2231
_ACEOF
2232
2233
cat >>confdefs.h <<_ACEOF
2234
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235
_ACEOF
2236
2237
cat >>confdefs.h <<_ACEOF
2238
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2239
_ACEOF
2240
2241
cat >>confdefs.h <<_ACEOF
2242
#define PACKAGE_STRING "$PACKAGE_STRING"
2243
_ACEOF
2244
2245
cat >>confdefs.h <<_ACEOF
2246
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247
_ACEOF
2248
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_URL "$PACKAGE_URL"
2251
_ACEOF
2252
2253
2254
# Let the site file select an alternate cache file if it wants to.
2255
# Prefer an explicitly selected file to automatically selected ones.
2256
ac_site_file1=NONE
2257
ac_site_file2=NONE
2258
if test -n "$CONFIG_SITE"; then
2259
  # We do not want a PATH search for config.site.
2260
  case $CONFIG_SITE in #((
2261
    -*)  ac_site_file1=./$CONFIG_SITE;;
2262
    */*) ac_site_file1=$CONFIG_SITE;;
2263
    *)   ac_site_file1=./$CONFIG_SITE;;
2264
  esac
2265
elif test "x$prefix" != xNONE; then
2266
  ac_site_file1=$prefix/share/config.site
2267
  ac_site_file2=$prefix/etc/config.site
2268
else
2269
  ac_site_file1=$ac_default_prefix/share/config.site
2270
  ac_site_file2=$ac_default_prefix/etc/config.site
2271
fi
2272
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2273
do
2274
  test "x$ac_site_file" = xNONE && continue
2275
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2276
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2277
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2278
    sed 's/^/| /' "$ac_site_file" >&5
2279
    . "$ac_site_file" \
2280
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282
as_fn_error $? "failed to load site script $ac_site_file
2283
See \`config.log' for more details" "$LINENO" 5; }
2284
  fi
2285
done
2286
2287
if test -r "$cache_file"; then
2288
  # Some versions of bash will fail to source /dev/null (special files
2289
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2290
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2291
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292
$as_echo "$as_me: loading cache $cache_file" >&6;}
2293
    case $cache_file in
2294
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295
      *)                      . "./$cache_file";;
2296
    esac
2297
  fi
2298
else
2299
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300
$as_echo "$as_me: creating cache $cache_file" >&6;}
2301
  >$cache_file
2302
fi
2303
2304
as_fn_append ac_header_list " stdlib.h"
2305
as_fn_append ac_header_list " unistd.h"
2306
as_fn_append ac_header_list " sys/param.h"
2307
# Check that the precious variables saved in the cache have kept the same
2308
# value.
2309
ac_cache_corrupted=false
2310
for ac_var in $ac_precious_vars; do
2311
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312
  eval ac_new_set=\$ac_env_${ac_var}_set
2313
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314
  eval ac_new_val=\$ac_env_${ac_var}_value
2315
  case $ac_old_set,$ac_new_set in
2316
    set,)
2317
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319
      ac_cache_corrupted=: ;;
2320
    ,set)
2321
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323
      ac_cache_corrupted=: ;;
2324
    ,);;
2325
    *)
2326
      if test "x$ac_old_val" != "x$ac_new_val"; then
2327
	# differences in whitespace do not lead to failure.
2328
	ac_old_val_w=`echo x $ac_old_val`
2329
	ac_new_val_w=`echo x $ac_new_val`
2330
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333
	  ac_cache_corrupted=:
2334
	else
2335
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337
	  eval $ac_var=\$ac_old_val
2338
	fi
2339
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2340
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2341
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2342
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2343
      fi;;
2344
  esac
2345
  # Pass precious variables to config.status.
2346
  if test "$ac_new_set" = set; then
2347
    case $ac_new_val in
2348
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349
    *) ac_arg=$ac_var=$ac_new_val ;;
2350
    esac
2351
    case " $ac_configure_args " in
2352
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2353
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354
    esac
2355
  fi
2356
done
2357
if $ac_cache_corrupted; then
2358
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363
fi
2364
## -------------------- ##
2365
## Main body of script. ##
2366
## -------------------- ##
2367
2368
ac_ext=c
2369
ac_cpp='$CPP $CPPFLAGS'
2370
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
am__api_version='1.11'
2376
2377
ac_aux_dir=
2378
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2379
  if test -f "$ac_dir/install-sh"; then
2380
    ac_aux_dir=$ac_dir
2381
    ac_install_sh="$ac_aux_dir/install-sh -c"
2382
    break
2383
  elif test -f "$ac_dir/install.sh"; then
2384
    ac_aux_dir=$ac_dir
2385
    ac_install_sh="$ac_aux_dir/install.sh -c"
2386
    break
2387
  elif test -f "$ac_dir/shtool"; then
2388
    ac_aux_dir=$ac_dir
2389
    ac_install_sh="$ac_aux_dir/shtool install -c"
2390
    break
2391
  fi
2392
done
2393
if test -z "$ac_aux_dir"; then
2394
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395
fi
2396
2397
# These three variables are undocumented and unsupported,
2398
# and are intended to be withdrawn in a future Autoconf release.
2399
# They can cause serious problems if a builder's source tree is in a directory
2400
# whose full name contains unusual characters.
2401
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2402
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2403
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2404
2405
2406
# Find a good install program.  We prefer a C program (faster),
2407
# so one script is as good as another.  But avoid the broken or
2408
# incompatible versions:
2409
# SysV /etc/install, /usr/sbin/install
2410
# SunOS /usr/etc/install
2411
# IRIX /sbin/install
2412
# AIX /bin/install
2413
# AmigaOS /C/install, which installs bootblocks on floppy discs
2414
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417
# OS/2's system install, which has a completely different semantic
2418
# ./install, which can be erroneously created by make from ./install.sh.
2419
# Reject install programs that cannot install multiple files.
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2422
if test -z "$INSTALL"; then
2423
if ${ac_cv_path_install+:} false; then :
2424
  $as_echo_n "(cached) " >&6
2425
else
2426
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427
for as_dir in $PATH
2428
do
2429
  IFS=$as_save_IFS
2430
  test -z "$as_dir" && as_dir=.
2431
    # Account for people who put trailing slashes in PATH elements.
2432
case $as_dir/ in #((
2433
  ./ | .// | /[cC]/* | \
2434
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436
  /usr/ucb/* ) ;;
2437
  *)
2438
    # OSF1 and SCO ODT 3.0 have their own names for install.
2439
    # Don't use installbsd from OSF since it installs stuff as root
2440
    # by default.
2441
    for ac_prog in ginstall scoinst install; do
2442
      for ac_exec_ext in '' $ac_executable_extensions; do
2443
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444
	  if test $ac_prog = install &&
2445
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446
	    # AIX install.  It has an incompatible calling convention.
2447
	    :
2448
	  elif test $ac_prog = install &&
2449
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450
	    # program-specific install script used by HP pwplus--don't use.
2451
	    :
2452
	  else
2453
	    rm -rf conftest.one conftest.two conftest.dir
2454
	    echo one > conftest.one
2455
	    echo two > conftest.two
2456
	    mkdir conftest.dir
2457
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2458
	      test -s conftest.one && test -s conftest.two &&
2459
	      test -s conftest.dir/conftest.one &&
2460
	      test -s conftest.dir/conftest.two
2461
	    then
2462
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463
	      break 3
2464
	    fi
2465
	  fi
2466
	fi
2467
      done
2468
    done
2469
    ;;
2470
esac
2471
2472
  done
2473
IFS=$as_save_IFS
2474
2475
rm -rf conftest.one conftest.two conftest.dir
2476
2477
fi
2478
  if test "${ac_cv_path_install+set}" = set; then
2479
    INSTALL=$ac_cv_path_install
2480
  else
2481
    # As a last resort, use the slow shell script.  Don't cache a
2482
    # value for INSTALL within a source directory, because that will
2483
    # break other packages using the cache if that directory is
2484
    # removed, or if the value is a relative name.
2485
    INSTALL=$ac_install_sh
2486
  fi
2487
fi
2488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489
$as_echo "$INSTALL" >&6; }
2490
2491
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492
# It thinks the first close brace ends the variable substitution.
2493
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2494
2495
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2496
2497
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2498
2499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2500
$as_echo_n "checking whether build environment is sane... " >&6; }
2501
# Just in case
2502
sleep 1
2503
echo timestamp > conftest.file
2504
# Reject unsafe characters in $srcdir or the absolute working directory
2505
# name.  Accept space and tab only in the latter.
2506
am_lf='
2507
'
2508
case `pwd` in
2509
  *[\\\"\#\$\&\'\`$am_lf]*)
2510
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2511
esac
2512
case $srcdir in
2513
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2514
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2515
esac
2516
2517
# Do `set' in a subshell so we don't clobber the current shell's
2518
# arguments.  Must try -L first in case configure is actually a
2519
# symlink; some systems play weird games with the mod time of symlinks
2520
# (eg FreeBSD returns the mod time of the symlink's containing
2521
# directory).
2522
if (
2523
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2524
   if test "$*" = "X"; then
2525
      # -L didn't work.
2526
      set X `ls -t "$srcdir/configure" conftest.file`
2527
   fi
2528
   rm -f conftest.file
2529
   if test "$*" != "X $srcdir/configure conftest.file" \
2530
      && test "$*" != "X conftest.file $srcdir/configure"; then
2531
2532
      # If neither matched, then we have a broken ls.  This can happen
2533
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2534
      # broken ls alias from the environment.  This has actually
2535
      # happened.  Such a system could not be considered "sane".
2536
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2537
alias in your environment" "$LINENO" 5
2538
   fi
2539
2540
   test "$2" = conftest.file
2541
   )
2542
then
2543
   # Ok.
2544
   :
2545
else
2546
   as_fn_error $? "newly created file is older than distributed files!
2547
Check your system clock" "$LINENO" 5
2548
fi
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2550
$as_echo "yes" >&6; }
2551
test "$program_prefix" != NONE &&
2552
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2553
# Use a double $ so make ignores it.
2554
test "$program_suffix" != NONE &&
2555
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2556
# Double any \ or $.
2557
# By default was `s,x,x', remove it if useless.
2558
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2559
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2560
2561
# expand $ac_aux_dir to an absolute path
2562
am_aux_dir=`cd $ac_aux_dir && pwd`
2563
2564
if test x"${MISSING+set}" != xset; then
2565
  case $am_aux_dir in
2566
  *\ * | *\	*)
2567
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2568
  *)
2569
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2570
  esac
2571
fi
2572
# Use eval to expand $SHELL
2573
if eval "$MISSING --run true"; then
2574
  am_missing_run="$MISSING --run "
2575
else
2576
  am_missing_run=
2577
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2578
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2579
fi
2580
2581
if test x"${install_sh}" != xset; then
2582
  case $am_aux_dir in
2583
  *\ * | *\	*)
2584
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2585
  *)
2586
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2587
  esac
2588
fi
2589
2590
# Installed binaries are usually stripped using `strip' when the user
2591
# run `make install-strip'.  However `strip' might not be the right
2592
# tool to use in cross-compilation environments, therefore Automake
2593
# will honor the `STRIP' environment variable to overrule this program.
2594
if test "$cross_compiling" != no; then
2595
  if test -n "$ac_tool_prefix"; then
2596
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2597
set dummy ${ac_tool_prefix}strip; ac_word=$2
2598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599
$as_echo_n "checking for $ac_word... " >&6; }
2600
if ${ac_cv_prog_STRIP+:} false; then :
2601
  $as_echo_n "(cached) " >&6
2602
else
2603
  if test -n "$STRIP"; then
2604
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2605
else
2606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607
for as_dir in $PATH
2608
do
2609
  IFS=$as_save_IFS
2610
  test -z "$as_dir" && as_dir=.
2611
    for ac_exec_ext in '' $ac_executable_extensions; do
2612
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2614
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615
    break 2
2616
  fi
2617
done
2618
  done
2619
IFS=$as_save_IFS
2620
2621
fi
2622
fi
2623
STRIP=$ac_cv_prog_STRIP
2624
if test -n "$STRIP"; then
2625
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2626
$as_echo "$STRIP" >&6; }
2627
else
2628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629
$as_echo "no" >&6; }
2630
fi
2631
2632
2633
fi
2634
if test -z "$ac_cv_prog_STRIP"; then
2635
  ac_ct_STRIP=$STRIP
2636
  # Extract the first word of "strip", so it can be a program name with args.
2637
set dummy strip; ac_word=$2
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639
$as_echo_n "checking for $ac_word... " >&6; }
2640
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2641
  $as_echo_n "(cached) " >&6
2642
else
2643
  if test -n "$ac_ct_STRIP"; then
2644
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2645
else
2646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647
for as_dir in $PATH
2648
do
2649
  IFS=$as_save_IFS
2650
  test -z "$as_dir" && as_dir=.
2651
    for ac_exec_ext in '' $ac_executable_extensions; do
2652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653
    ac_cv_prog_ac_ct_STRIP="strip"
2654
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655
    break 2
2656
  fi
2657
done
2658
  done
2659
IFS=$as_save_IFS
2660
2661
fi
2662
fi
2663
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2664
if test -n "$ac_ct_STRIP"; then
2665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2666
$as_echo "$ac_ct_STRIP" >&6; }
2667
else
2668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669
$as_echo "no" >&6; }
2670
fi
2671
2672
  if test "x$ac_ct_STRIP" = x; then
2673
    STRIP=":"
2674
  else
2675
    case $cross_compiling:$ac_tool_warned in
2676
yes:)
2677
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679
ac_tool_warned=yes ;;
2680
esac
2681
    STRIP=$ac_ct_STRIP
2682
  fi
2683
else
2684
  STRIP="$ac_cv_prog_STRIP"
2685
fi
2686
2687
fi
2688
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2689
2690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2691
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2692
if test -z "$MKDIR_P"; then
2693
  if ${ac_cv_path_mkdir+:} false; then :
2694
  $as_echo_n "(cached) " >&6
2695
else
2696
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2698
do
2699
  IFS=$as_save_IFS
2700
  test -z "$as_dir" && as_dir=.
2701
    for ac_prog in mkdir gmkdir; do
2702
	 for ac_exec_ext in '' $ac_executable_extensions; do
2703
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2704
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2705
	     'mkdir (GNU coreutils) '* | \
2706
	     'mkdir (coreutils) '* | \
2707
	     'mkdir (fileutils) '4.1*)
2708
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2709
	       break 3;;
2710
	   esac
2711
	 done
2712
       done
2713
  done
2714
IFS=$as_save_IFS
2715
2716
fi
2717
2718
  test -d ./--version && rmdir ./--version
2719
  if test "${ac_cv_path_mkdir+set}" = set; then
2720
    MKDIR_P="$ac_cv_path_mkdir -p"
2721
  else
2722
    # As a last resort, use the slow shell script.  Don't cache a
2723
    # value for MKDIR_P within a source directory, because that will
2724
    # break other packages using the cache if that directory is
2725
    # removed, or if the value is a relative name.
2726
    MKDIR_P="$ac_install_sh -d"
2727
  fi
2728
fi
2729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2730
$as_echo "$MKDIR_P" >&6; }
2731
2732
mkdir_p="$MKDIR_P"
2733
case $mkdir_p in
2734
  [\\/$]* | ?:[\\/]*) ;;
2735
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2736
esac
2737
2738
for ac_prog in gawk mawk nawk awk
2739
do
2740
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2741
set dummy $ac_prog; ac_word=$2
2742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743
$as_echo_n "checking for $ac_word... " >&6; }
2744
if ${ac_cv_prog_AWK+:} false; then :
2745
  $as_echo_n "(cached) " >&6
2746
else
2747
  if test -n "$AWK"; then
2748
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749
else
2750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751
for as_dir in $PATH
2752
do
2753
  IFS=$as_save_IFS
2754
  test -z "$as_dir" && as_dir=.
2755
    for ac_exec_ext in '' $ac_executable_extensions; do
2756
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757
    ac_cv_prog_AWK="$ac_prog"
2758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759
    break 2
2760
  fi
2761
done
2762
  done
2763
IFS=$as_save_IFS
2764
2765
fi
2766
fi
2767
AWK=$ac_cv_prog_AWK
2768
if test -n "$AWK"; then
2769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770
$as_echo "$AWK" >&6; }
2771
else
2772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773
$as_echo "no" >&6; }
2774
fi
2775
2776
2777
  test -n "$AWK" && break
2778
done
2779
2780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2781
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2782
set x ${MAKE-make}
2783
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2784
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2785
  $as_echo_n "(cached) " >&6
2786
else
2787
  cat >conftest.make <<\_ACEOF
2788
SHELL = /bin/sh
2789
all:
2790
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2791
_ACEOF
2792
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2793
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2794
  *@@@%%%=?*=@@@%%%*)
2795
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2796
  *)
2797
    eval ac_cv_prog_make_${ac_make}_set=no;;
2798
esac
2799
rm -f conftest.make
2800
fi
2801
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803
$as_echo "yes" >&6; }
2804
  SET_MAKE=
2805
else
2806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807
$as_echo "no" >&6; }
2808
  SET_MAKE="MAKE=${MAKE-make}"
2809
fi
2810
2811
rm -rf .tst 2>/dev/null
2812
mkdir .tst 2>/dev/null
2813
if test -d .tst; then
2814
  am__leading_dot=.
2815
else
2816
  am__leading_dot=_
2817
fi
2818
rmdir .tst 2>/dev/null
2819
2820
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2821
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2822
  # is not polluted with repeated "-I."
2823
  am__isrc=' -I$(srcdir)'
2824
  # test to see if srcdir already configured
2825
  if test -f $srcdir/config.status; then
2826
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2827
  fi
2828
fi
2829
2830
# test whether we have cygpath
2831
if test -z "$CYGPATH_W"; then
2832
  if (cygpath --version) >/dev/null 2>/dev/null; then
2833
    CYGPATH_W='cygpath -w'
2834
  else
2835
    CYGPATH_W=echo
2836
  fi
2837
fi
2838
2839
2840
# Define the identity of the package.
2841
 PACKAGE='procps-ng'
1.1.9 by Craig Small
Import upstream version 3.3.3
2842
 VERSION='3.3.3'
1.1.6 by Craig Small
Import upstream version 3.3.0
2843
2844
2845
cat >>confdefs.h <<_ACEOF
2846
#define PACKAGE "$PACKAGE"
2847
_ACEOF
2848
2849
2850
cat >>confdefs.h <<_ACEOF
2851
#define VERSION "$VERSION"
2852
_ACEOF
2853
2854
# Some tools Automake needs.
2855
2856
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857
2858
2859
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870
# We need awk for the "check" target.  The system "awk" is bad on
2871
# some platforms.
1.1.9 by Craig Small
Import upstream version 3.3.3
2872
# Always define AMTAR for backward compatibility.  Yes, it's still used
2873
# in the wild :-(  We should find a proper way to deprecate it ...
2874
AMTAR='$${TAR-tar}'
2875
2876
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2878
$as_echo_n "checking how to create a pax tar archive... " >&6; }
2879
# Loop over all known methods to create a tar archive until one works.
2880
_am_tools='gnutar  pax cpio none'
2881
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
2882
# Do not fold the above two line into one, because Tru64 sh and
2883
# Solaris sh will not grok spaces in the rhs of `-'.
2884
for _am_tool in $_am_tools
2885
do
2886
  case $_am_tool in
2887
  gnutar)
2888
    for _am_tar in tar gnutar gtar;
2889
    do
2890
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
2891
   ($_am_tar --version) >&5 2>&5
2892
   ac_status=$?
2893
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894
   (exit $ac_status); } && break
2895
    done
2896
    am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2897
    am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2898
    am__untar="$_am_tar -xf -"
2899
    ;;
2900
  plaintar)
2901
    # Must skip GNU tar: if it does not support --format= it doesn't create
2902
    # ustar tarball either.
2903
    (tar --version) >/dev/null 2>&1 && continue
2904
    am__tar='tar chf - "$$tardir"'
2905
    am__tar_='tar chf - "$tardir"'
2906
    am__untar='tar xf -'
2907
    ;;
2908
  pax)
2909
    am__tar='pax -L -x pax -w "$$tardir"'
2910
    am__tar_='pax -L -x pax -w "$tardir"'
2911
    am__untar='pax -r'
2912
    ;;
2913
  cpio)
2914
    am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2915
    am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2916
    am__untar='cpio -i -H pax -d'
2917
    ;;
2918
  none)
2919
    am__tar=false
2920
    am__tar_=false
2921
    am__untar=false
2922
    ;;
2923
  esac
2924
2925
  # If the value was cached, stop now.  We just wanted to have am__tar
2926
  # and am__untar set.
2927
  test -n "${am_cv_prog_tar_pax}" && break
2928
2929
  # tar/untar a dummy directory, and stop if the command works
2930
  rm -rf conftest.dir
2931
  mkdir conftest.dir
2932
  echo GrepMe > conftest.dir/file
2933
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2934
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2935
   ac_status=$?
2936
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937
   (exit $ac_status); }
2938
  rm -rf conftest.dir
2939
  if test -s conftest.tar; then
2940
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2941
   ($am__untar <conftest.tar) >&5 2>&5
2942
   ac_status=$?
2943
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944
   (exit $ac_status); }
2945
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2946
  fi
2947
done
2948
rm -rf conftest.dir
2949
2950
if ${am_cv_prog_tar_pax+:} false; then :
2951
  $as_echo_n "(cached) " >&6
2952
else
2953
  am_cv_prog_tar_pax=$_am_tool
2954
fi
2955
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2957
$as_echo "$am_cv_prog_tar_pax" >&6; }
1.1.6 by Craig Small
Import upstream version 3.3.0
2958
2959
2960
2961
2962
2963
2964
ac_config_headers="$ac_config_headers config.h"
2965
2966
2967
# Checks for programs.
2968
DEPDIR="${am__leading_dot}deps"
2969
2970
ac_config_commands="$ac_config_commands depfiles"
2971
2972
2973
am_make=${MAKE-make}
2974
cat > confinc << 'END'
2975
am__doit:
2976
	@echo this is the am__doit target
2977
.PHONY: am__doit
2978
END
2979
# If we don't find an include directive, just comment out the code.
2980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2981
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2982
am__include="#"
2983
am__quote=
2984
_am_result=none
2985
# First try GNU make style include.
2986
echo "include confinc" > confmf
2987
# Ignore all kinds of additional output from `make'.
2988
case `$am_make -s -f confmf 2> /dev/null` in #(
2989
*the\ am__doit\ target*)
2990
  am__include=include
2991
  am__quote=
2992
  _am_result=GNU
2993
  ;;
2994
esac
2995
# Now try BSD make style include.
2996
if test "$am__include" = "#"; then
2997
   echo '.include "confinc"' > confmf
2998
   case `$am_make -s -f confmf 2> /dev/null` in #(
2999
   *the\ am__doit\ target*)
3000
     am__include=.include
3001
     am__quote="\""
3002
     _am_result=BSD
3003
     ;;
3004
   esac
3005
fi
3006
3007
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3009
$as_echo "$_am_result" >&6; }
3010
rm -f confinc confmf
3011
3012
# Check whether --enable-dependency-tracking was given.
3013
if test "${enable_dependency_tracking+set}" = set; then :
3014
  enableval=$enable_dependency_tracking;
3015
fi
3016
3017
if test "x$enable_dependency_tracking" != xno; then
3018
  am_depcomp="$ac_aux_dir/depcomp"
3019
  AMDEPBACKSLASH='\'
1.1.9 by Craig Small
Import upstream version 3.3.3
3020
  am__nodep='_no'
1.1.6 by Craig Small
Import upstream version 3.3.0
3021
fi
3022
 if test "x$enable_dependency_tracking" != xno; then
3023
  AMDEP_TRUE=
3024
  AMDEP_FALSE='#'
3025
else
3026
  AMDEP_TRUE='#'
3027
  AMDEP_FALSE=
3028
fi
3029
3030
3031
ac_ext=c
3032
ac_cpp='$CPP $CPPFLAGS'
3033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
if test -n "$ac_tool_prefix"; then
3037
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040
$as_echo_n "checking for $ac_word... " >&6; }
3041
if ${ac_cv_prog_CC+:} false; then :
3042
  $as_echo_n "(cached) " >&6
3043
else
3044
  if test -n "$CC"; then
3045
  ac_cv_prog_CC="$CC" # Let the user override the test.
3046
else
3047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048
for as_dir in $PATH
3049
do
3050
  IFS=$as_save_IFS
3051
  test -z "$as_dir" && as_dir=.
3052
    for ac_exec_ext in '' $ac_executable_extensions; do
3053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056
    break 2
3057
  fi
3058
done
3059
  done
3060
IFS=$as_save_IFS
3061
3062
fi
3063
fi
3064
CC=$ac_cv_prog_CC
3065
if test -n "$CC"; then
3066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067
$as_echo "$CC" >&6; }
3068
else
3069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070
$as_echo "no" >&6; }
3071
fi
3072
3073
3074
fi
3075
if test -z "$ac_cv_prog_CC"; then
3076
  ac_ct_CC=$CC
3077
  # Extract the first word of "gcc", so it can be a program name with args.
3078
set dummy gcc; ac_word=$2
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080
$as_echo_n "checking for $ac_word... " >&6; }
3081
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3082
  $as_echo_n "(cached) " >&6
3083
else
3084
  if test -n "$ac_ct_CC"; then
3085
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086
else
3087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088
for as_dir in $PATH
3089
do
3090
  IFS=$as_save_IFS
3091
  test -z "$as_dir" && as_dir=.
3092
    for ac_exec_ext in '' $ac_executable_extensions; do
3093
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094
    ac_cv_prog_ac_ct_CC="gcc"
3095
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096
    break 2
3097
  fi
3098
done
3099
  done
3100
IFS=$as_save_IFS
3101
3102
fi
3103
fi
3104
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105
if test -n "$ac_ct_CC"; then
3106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107
$as_echo "$ac_ct_CC" >&6; }
3108
else
3109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110
$as_echo "no" >&6; }
3111
fi
3112
3113
  if test "x$ac_ct_CC" = x; then
3114
    CC=""
3115
  else
3116
    case $cross_compiling:$ac_tool_warned in
3117
yes:)
3118
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120
ac_tool_warned=yes ;;
3121
esac
3122
    CC=$ac_ct_CC
3123
  fi
3124
else
3125
  CC="$ac_cv_prog_CC"
3126
fi
3127
3128
if test -z "$CC"; then
3129
          if test -n "$ac_tool_prefix"; then
3130
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131
set dummy ${ac_tool_prefix}cc; ac_word=$2
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133
$as_echo_n "checking for $ac_word... " >&6; }
3134
if ${ac_cv_prog_CC+:} false; then :
3135
  $as_echo_n "(cached) " >&6
3136
else
3137
  if test -n "$CC"; then
3138
  ac_cv_prog_CC="$CC" # Let the user override the test.
3139
else
3140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141
for as_dir in $PATH
3142
do
3143
  IFS=$as_save_IFS
3144
  test -z "$as_dir" && as_dir=.
3145
    for ac_exec_ext in '' $ac_executable_extensions; do
3146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3148
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149
    break 2
3150
  fi
3151
done
3152
  done
3153
IFS=$as_save_IFS
3154
3155
fi
3156
fi
3157
CC=$ac_cv_prog_CC
3158
if test -n "$CC"; then
3159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160
$as_echo "$CC" >&6; }
3161
else
3162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163
$as_echo "no" >&6; }
3164
fi
3165
3166
3167
  fi
3168
fi
3169
if test -z "$CC"; then
3170
  # Extract the first word of "cc", so it can be a program name with args.
3171
set dummy cc; ac_word=$2
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173
$as_echo_n "checking for $ac_word... " >&6; }
3174
if ${ac_cv_prog_CC+:} false; then :
3175
  $as_echo_n "(cached) " >&6
3176
else
3177
  if test -n "$CC"; then
3178
  ac_cv_prog_CC="$CC" # Let the user override the test.
3179
else
3180
  ac_prog_rejected=no
3181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182
for as_dir in $PATH
3183
do
3184
  IFS=$as_save_IFS
3185
  test -z "$as_dir" && as_dir=.
3186
    for ac_exec_ext in '' $ac_executable_extensions; do
3187
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189
       ac_prog_rejected=yes
3190
       continue
3191
     fi
3192
    ac_cv_prog_CC="cc"
3193
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194
    break 2
3195
  fi
3196
done
3197
  done
3198
IFS=$as_save_IFS
3199
3200
if test $ac_prog_rejected = yes; then
3201
  # We found a bogon in the path, so make sure we never use it.
3202
  set dummy $ac_cv_prog_CC
3203
  shift
3204
  if test $# != 0; then
3205
    # We chose a different compiler from the bogus one.
3206
    # However, it has the same basename, so the bogon will be chosen
3207
    # first if we set CC to just the basename; use the full file name.
3208
    shift
3209
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3210
  fi
3211
fi
3212
fi
3213
fi
3214
CC=$ac_cv_prog_CC
3215
if test -n "$CC"; then
3216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217
$as_echo "$CC" >&6; }
3218
else
3219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220
$as_echo "no" >&6; }
3221
fi
3222
3223
3224
fi
3225
if test -z "$CC"; then
3226
  if test -n "$ac_tool_prefix"; then
3227
  for ac_prog in cl.exe
3228
  do
3229
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232
$as_echo_n "checking for $ac_word... " >&6; }
3233
if ${ac_cv_prog_CC+:} false; then :
3234
  $as_echo_n "(cached) " >&6
3235
else
3236
  if test -n "$CC"; then
3237
  ac_cv_prog_CC="$CC" # Let the user override the test.
3238
else
3239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240
for as_dir in $PATH
3241
do
3242
  IFS=$as_save_IFS
3243
  test -z "$as_dir" && as_dir=.
3244
    for ac_exec_ext in '' $ac_executable_extensions; do
3245
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248
    break 2
3249
  fi
3250
done
3251
  done
3252
IFS=$as_save_IFS
3253
3254
fi
3255
fi
3256
CC=$ac_cv_prog_CC
3257
if test -n "$CC"; then
3258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259
$as_echo "$CC" >&6; }
3260
else
3261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262
$as_echo "no" >&6; }
3263
fi
3264
3265
3266
    test -n "$CC" && break
3267
  done
3268
fi
3269
if test -z "$CC"; then
3270
  ac_ct_CC=$CC
3271
  for ac_prog in cl.exe
3272
do
3273
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3274
set dummy $ac_prog; ac_word=$2
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276
$as_echo_n "checking for $ac_word... " >&6; }
3277
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278
  $as_echo_n "(cached) " >&6
3279
else
3280
  if test -n "$ac_ct_CC"; then
3281
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282
else
3283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284
for as_dir in $PATH
3285
do
3286
  IFS=$as_save_IFS
3287
  test -z "$as_dir" && as_dir=.
3288
    for ac_exec_ext in '' $ac_executable_extensions; do
3289
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290
    ac_cv_prog_ac_ct_CC="$ac_prog"
3291
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292
    break 2
3293
  fi
3294
done
3295
  done
3296
IFS=$as_save_IFS
3297
3298
fi
3299
fi
3300
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301
if test -n "$ac_ct_CC"; then
3302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303
$as_echo "$ac_ct_CC" >&6; }
3304
else
3305
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306
$as_echo "no" >&6; }
3307
fi
3308
3309
3310
  test -n "$ac_ct_CC" && break
3311
done
3312
3313
  if test "x$ac_ct_CC" = x; then
3314
    CC=""
3315
  else
3316
    case $cross_compiling:$ac_tool_warned in
3317
yes:)
3318
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320
ac_tool_warned=yes ;;
3321
esac
3322
    CC=$ac_ct_CC
3323
  fi
3324
fi
3325
3326
fi
3327
3328
3329
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331
as_fn_error $? "no acceptable C compiler found in \$PATH
3332
See \`config.log' for more details" "$LINENO" 5; }
3333
3334
# Provide some information about the compiler.
3335
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3336
set X $ac_compile
3337
ac_compiler=$2
3338
for ac_option in --version -v -V -qversion; do
3339
  { { ac_try="$ac_compiler $ac_option >&5"
3340
case "(($ac_try" in
3341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342
  *) ac_try_echo=$ac_try;;
3343
esac
3344
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345
$as_echo "$ac_try_echo"; } >&5
3346
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3347
  ac_status=$?
3348
  if test -s conftest.err; then
3349
    sed '10a\
3350
... rest of stderr output deleted ...
3351
         10q' conftest.err >conftest.er1
3352
    cat conftest.er1 >&5
3353
  fi
3354
  rm -f conftest.er1 conftest.err
3355
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356
  test $ac_status = 0; }
3357
done
3358
3359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360
/* end confdefs.h.  */
3361
3362
int
3363
main ()
3364
{
3365
3366
  ;
3367
  return 0;
3368
}
3369
_ACEOF
3370
ac_clean_files_save=$ac_clean_files
3371
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3372
# Try to create an executable without -o first, disregard a.out.
3373
# It will help us diagnose broken compilers, and finding out an intuition
3374
# of exeext.
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3376
$as_echo_n "checking whether the C compiler works... " >&6; }
3377
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3378
3379
# The possible output files:
3380
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3381
3382
ac_rmfiles=
3383
for ac_file in $ac_files
3384
do
3385
  case $ac_file in
3386
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388
  esac
3389
done
3390
rm -f $ac_rmfiles
3391
3392
if { { ac_try="$ac_link_default"
3393
case "(($ac_try" in
3394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395
  *) ac_try_echo=$ac_try;;
3396
esac
3397
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398
$as_echo "$ac_try_echo"; } >&5
3399
  (eval "$ac_link_default") 2>&5
3400
  ac_status=$?
3401
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402
  test $ac_status = 0; }; then :
3403
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3404
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3405
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3406
# so that the user can short-circuit this test for compilers unknown to
3407
# Autoconf.
3408
for ac_file in $ac_files ''
3409
do
3410
  test -f "$ac_file" || continue
3411
  case $ac_file in
3412
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3413
	;;
3414
    [ab].out )
3415
	# We found the default executable, but exeext='' is most
3416
	# certainly right.
3417
	break;;
3418
    *.* )
3419
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3420
	then :; else
3421
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422
	fi
3423
	# We set ac_cv_exeext here because the later test for it is not
3424
	# safe: cross compilers may not add the suffix if given an `-o'
3425
	# argument, so we may need to know it at that point already.
3426
	# Even if this section looks crufty: it has the advantage of
3427
	# actually working.
3428
	break;;
3429
    * )
3430
	break;;
3431
  esac
3432
done
3433
test "$ac_cv_exeext" = no && ac_cv_exeext=
3434
3435
else
3436
  ac_file=''
3437
fi
3438
if test -z "$ac_file"; then :
3439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440
$as_echo "no" >&6; }
3441
$as_echo "$as_me: failed program was:" >&5
3442
sed 's/^/| /' conftest.$ac_ext >&5
3443
3444
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446
as_fn_error 77 "C compiler cannot create executables
3447
See \`config.log' for more details" "$LINENO" 5; }
3448
else
3449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450
$as_echo "yes" >&6; }
3451
fi
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3453
$as_echo_n "checking for C compiler default output file name... " >&6; }
3454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3455
$as_echo "$ac_file" >&6; }
3456
ac_exeext=$ac_cv_exeext
3457
3458
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3459
ac_clean_files=$ac_clean_files_save
3460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461
$as_echo_n "checking for suffix of executables... " >&6; }
3462
if { { ac_try="$ac_link"
3463
case "(($ac_try" in
3464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465
  *) ac_try_echo=$ac_try;;
3466
esac
3467
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468
$as_echo "$ac_try_echo"; } >&5
3469
  (eval "$ac_link") 2>&5
3470
  ac_status=$?
3471
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472
  test $ac_status = 0; }; then :
3473
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3475
# work properly (i.e., refer to `conftest.exe'), while it won't with
3476
# `rm'.
3477
for ac_file in conftest.exe conftest conftest.*; do
3478
  test -f "$ac_file" || continue
3479
  case $ac_file in
3480
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482
	  break;;
3483
    * ) break;;
3484
  esac
3485
done
3486
else
3487
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3490
See \`config.log' for more details" "$LINENO" 5; }
3491
fi
3492
rm -f conftest conftest$ac_cv_exeext
3493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494
$as_echo "$ac_cv_exeext" >&6; }
3495
3496
rm -f conftest.$ac_ext
3497
EXEEXT=$ac_cv_exeext
3498
ac_exeext=$EXEEXT
3499
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500
/* end confdefs.h.  */
3501
#include <stdio.h>
3502
int
3503
main ()
3504
{
3505
FILE *f = fopen ("conftest.out", "w");
3506
 return ferror (f) || fclose (f) != 0;
3507
3508
  ;
3509
  return 0;
3510
}
3511
_ACEOF
3512
ac_clean_files="$ac_clean_files conftest.out"
3513
# Check that the compiler produces executables we can run.  If not, either
3514
# the compiler is broken, or we cross compile.
3515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3516
$as_echo_n "checking whether we are cross compiling... " >&6; }
3517
if test "$cross_compiling" != yes; then
3518
  { { ac_try="$ac_link"
3519
case "(($ac_try" in
3520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521
  *) ac_try_echo=$ac_try;;
3522
esac
3523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524
$as_echo "$ac_try_echo"; } >&5
3525
  (eval "$ac_link") 2>&5
3526
  ac_status=$?
3527
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528
  test $ac_status = 0; }
3529
  if { ac_try='./conftest$ac_cv_exeext'
3530
  { { case "(($ac_try" in
3531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532
  *) ac_try_echo=$ac_try;;
3533
esac
3534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535
$as_echo "$ac_try_echo"; } >&5
3536
  (eval "$ac_try") 2>&5
3537
  ac_status=$?
3538
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539
  test $ac_status = 0; }; }; then
3540
    cross_compiling=no
3541
  else
3542
    if test "$cross_compiling" = maybe; then
3543
	cross_compiling=yes
3544
    else
3545
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547
as_fn_error $? "cannot run C compiled programs.
3548
If you meant to cross compile, use \`--host'.
3549
See \`config.log' for more details" "$LINENO" 5; }
3550
    fi
3551
  fi
3552
fi
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554
$as_echo "$cross_compiling" >&6; }
3555
3556
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3557
ac_clean_files=$ac_clean_files_save
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3559
$as_echo_n "checking for suffix of object files... " >&6; }
3560
if ${ac_cv_objext+:} false; then :
3561
  $as_echo_n "(cached) " >&6
3562
else
3563
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564
/* end confdefs.h.  */
3565
3566
int
3567
main ()
3568
{
3569
3570
  ;
3571
  return 0;
3572
}
3573
_ACEOF
3574
rm -f conftest.o conftest.obj
3575
if { { ac_try="$ac_compile"
3576
case "(($ac_try" in
3577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578
  *) ac_try_echo=$ac_try;;
3579
esac
3580
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581
$as_echo "$ac_try_echo"; } >&5
3582
  (eval "$ac_compile") 2>&5
3583
  ac_status=$?
3584
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585
  test $ac_status = 0; }; then :
3586
  for ac_file in conftest.o conftest.obj conftest.*; do
3587
  test -f "$ac_file" || continue;
3588
  case $ac_file in
3589
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591
       break;;
3592
  esac
3593
done
3594
else
3595
  $as_echo "$as_me: failed program was:" >&5
3596
sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600
as_fn_error $? "cannot compute suffix of object files: cannot compile
3601
See \`config.log' for more details" "$LINENO" 5; }
3602
fi
3603
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3604
fi
3605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3606
$as_echo "$ac_cv_objext" >&6; }
3607
OBJEXT=$ac_cv_objext
3608
ac_objext=$OBJEXT
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611
if ${ac_cv_c_compiler_gnu+:} false; then :
3612
  $as_echo_n "(cached) " >&6
3613
else
3614
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615
/* end confdefs.h.  */
3616
3617
int
3618
main ()
3619
{
3620
#ifndef __GNUC__
3621
       choke me
3622
#endif
3623
3624
  ;
3625
  return 0;
3626
}
3627
_ACEOF
3628
if ac_fn_c_try_compile "$LINENO"; then :
3629
  ac_compiler_gnu=yes
3630
else
3631
  ac_compiler_gnu=no
3632
fi
3633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
3636
fi
3637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639
if test $ac_compiler_gnu = yes; then
3640
  GCC=yes
3641
else
3642
  GCC=
3643
fi
3644
ac_test_CFLAGS=${CFLAGS+set}
3645
ac_save_CFLAGS=$CFLAGS
3646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3648
if ${ac_cv_prog_cc_g+:} false; then :
3649
  $as_echo_n "(cached) " >&6
3650
else
3651
  ac_save_c_werror_flag=$ac_c_werror_flag
3652
   ac_c_werror_flag=yes
3653
   ac_cv_prog_cc_g=no
3654
   CFLAGS="-g"
3655
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656
/* end confdefs.h.  */
3657
3658
int
3659
main ()
3660
{
3661
3662
  ;
3663
  return 0;
3664
}
3665
_ACEOF
3666
if ac_fn_c_try_compile "$LINENO"; then :
3667
  ac_cv_prog_cc_g=yes
3668
else
3669
  CFLAGS=""
3670
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671
/* end confdefs.h.  */
3672
3673
int
3674
main ()
3675
{
3676
3677
  ;
3678
  return 0;
3679
}
3680
_ACEOF
3681
if ac_fn_c_try_compile "$LINENO"; then :
3682
3683
else
3684
  ac_c_werror_flag=$ac_save_c_werror_flag
3685
	 CFLAGS="-g"
3686
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687
/* end confdefs.h.  */
3688
3689
int
3690
main ()
3691
{
3692
3693
  ;
3694
  return 0;
3695
}
3696
_ACEOF
3697
if ac_fn_c_try_compile "$LINENO"; then :
3698
  ac_cv_prog_cc_g=yes
3699
fi
3700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701
fi
3702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703
fi
3704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705
   ac_c_werror_flag=$ac_save_c_werror_flag
3706
fi
3707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708
$as_echo "$ac_cv_prog_cc_g" >&6; }
3709
if test "$ac_test_CFLAGS" = set; then
3710
  CFLAGS=$ac_save_CFLAGS
3711
elif test $ac_cv_prog_cc_g = yes; then
3712
  if test "$GCC" = yes; then
3713
    CFLAGS="-g -O2"
3714
  else
3715
    CFLAGS="-g"
3716
  fi
3717
else
3718
  if test "$GCC" = yes; then
3719
    CFLAGS="-O2"
3720
  else
3721
    CFLAGS=
3722
  fi
3723
fi
3724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726
if ${ac_cv_prog_cc_c89+:} false; then :
3727
  $as_echo_n "(cached) " >&6
3728
else
3729
  ac_cv_prog_cc_c89=no
3730
ac_save_CC=$CC
3731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732
/* end confdefs.h.  */
3733
#include <stdarg.h>
3734
#include <stdio.h>
3735
#include <sys/types.h>
3736
#include <sys/stat.h>
3737
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3738
struct buf { int x; };
3739
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740
static char *e (p, i)
3741
     char **p;
3742
     int i;
3743
{
3744
  return p[i];
3745
}
3746
static char *f (char * (*g) (char **, int), char **p, ...)
3747
{
3748
  char *s;
3749
  va_list v;
3750
  va_start (v,p);
3751
  s = g (p, va_arg (v,int));
3752
  va_end (v);
3753
  return s;
3754
}
3755
3756
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3757
   function prototypes and stuff, but not '\xHH' hex character constants.
3758
   These don't provoke an error unfortunately, instead are silently treated
3759
   as 'x'.  The following induces an error, until -std is added to get
3760
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3761
   array size at least.  It's necessary to write '\x00'==0 to get something
3762
   that's true only with -std.  */
3763
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764
3765
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766
   inside strings and character constants.  */
3767
#define FOO(x) 'x'
3768
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769
3770
int test (int i, double x);
3771
struct s1 {int (*f) (int a);};
3772
struct s2 {int (*f) (double a);};
3773
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774
int argc;
3775
char **argv;
3776
int
3777
main ()
3778
{
3779
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3780
  ;
3781
  return 0;
3782
}
3783
_ACEOF
3784
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786
do
3787
  CC="$ac_save_CC $ac_arg"
3788
  if ac_fn_c_try_compile "$LINENO"; then :
3789
  ac_cv_prog_cc_c89=$ac_arg
3790
fi
3791
rm -f core conftest.err conftest.$ac_objext
3792
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3793
done
3794
rm -f conftest.$ac_ext
3795
CC=$ac_save_CC
3796
3797
fi
3798
# AC_CACHE_VAL
3799
case "x$ac_cv_prog_cc_c89" in
3800
  x)
3801
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802
$as_echo "none needed" >&6; } ;;
3803
  xno)
3804
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805
$as_echo "unsupported" >&6; } ;;
3806
  *)
3807
    CC="$CC $ac_cv_prog_cc_c89"
3808
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810
esac
3811
if test "x$ac_cv_prog_cc_c89" != xno; then :
3812
3813
fi
3814
3815
ac_ext=c
3816
ac_cpp='$CPP $CPPFLAGS'
3817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821
depcc="$CC"   am_compiler_list=
3822
3823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3824
$as_echo_n "checking dependency style of $depcc... " >&6; }
3825
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3826
  $as_echo_n "(cached) " >&6
3827
else
3828
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829
  # We make a subdir and do the tests there.  Otherwise we can end up
3830
  # making bogus files that we don't know about and never remove.  For
3831
  # instance it was reported that on HP-UX the gcc test will end up
3832
  # making a dummy file named `D' -- because `-MD' means `put the output
3833
  # in D'.
1.1.9 by Craig Small
Import upstream version 3.3.3
3834
  rm -rf conftest.dir
1.1.6 by Craig Small
Import upstream version 3.3.0
3835
  mkdir conftest.dir
3836
  # Copy depcomp to subdir because otherwise we won't find it if we're
3837
  # using a relative directory.
3838
  cp "$am_depcomp" conftest.dir
3839
  cd conftest.dir
3840
  # We will build objects and dependencies in a subdirectory because
3841
  # it helps to detect inapplicable dependency modes.  For instance
3842
  # both Tru64's cc and ICC support -MD to output dependencies as a
3843
  # side effect of compilation, but ICC will put the dependencies in
3844
  # the current directory while Tru64 will put them in the object
3845
  # directory.
3846
  mkdir sub
3847
3848
  am_cv_CC_dependencies_compiler_type=none
3849
  if test "$am_compiler_list" = ""; then
3850
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851
  fi
3852
  am__universal=false
3853
  case " $depcc " in #(
3854
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3855
     esac
3856
3857
  for depmode in $am_compiler_list; do
3858
    # Setup a source with many dependencies, because some compilers
3859
    # like to wrap large dependency lists on column 80 (with \), and
3860
    # we should not choose a depcomp mode which is confused by this.
3861
    #
3862
    # We need to recreate these files for each test, as the compiler may
3863
    # overwrite some of them when testing with obscure command lines.
3864
    # This happens at least with the AIX C compiler.
3865
    : > sub/conftest.c
3866
    for i in 1 2 3 4 5 6; do
3867
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3868
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3869
      # Solaris 8's {/usr,}/bin/sh.
3870
      touch sub/conftst$i.h
3871
    done
3872
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3873
3874
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3875
    # mode.  It turns out that the SunPro C++ compiler does not properly
3876
    # handle `-M -o', and we need to detect this.  Also, some Intel
3877
    # versions had trouble with output in subdirs
3878
    am__obj=sub/conftest.${OBJEXT-o}
3879
    am__minus_obj="-o $am__obj"
3880
    case $depmode in
3881
    gcc)
3882
      # This depmode causes a compiler race in universal mode.
3883
      test "$am__universal" = false || continue
3884
      ;;
3885
    nosideeffect)
3886
      # after this tag, mechanisms are not by side-effect, so they'll
3887
      # only be used when explicitly requested
3888
      if test "x$enable_dependency_tracking" = xyes; then
3889
	continue
3890
      else
3891
	break
3892
      fi
3893
      ;;
1.1.9 by Craig Small
Import upstream version 3.3.3
3894
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.6 by Craig Small
Import upstream version 3.3.0
3895
      # This compiler won't grok `-c -o', but also, the minuso test has
3896
      # not run yet.  These depmodes are late enough in the game, and
3897
      # so weak that their functioning should not be impacted.
3898
      am__obj=conftest.${OBJEXT-o}
3899
      am__minus_obj=
3900
      ;;
3901
    none) break ;;
3902
    esac
3903
    if depmode=$depmode \
3904
       source=sub/conftest.c object=$am__obj \
3905
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3906
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3907
         >/dev/null 2>conftest.err &&
3908
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3909
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3910
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3911
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3912
      # icc doesn't choke on unknown options, it will just issue warnings
3913
      # or remarks (even with -Werror).  So we grep stderr for any message
3914
      # that says an option was ignored or not supported.
3915
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3916
      #   icc: Command line warning: ignoring option '-M'; no argument required
3917
      # The diagnosis changed in icc 8.0:
3918
      #   icc: Command line remark: option '-MP' not supported
3919
      if (grep 'ignoring option' conftest.err ||
3920
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3921
        am_cv_CC_dependencies_compiler_type=$depmode
3922
        break
3923
      fi
3924
    fi
3925
  done
3926
3927
  cd ..
3928
  rm -rf conftest.dir
3929
else
3930
  am_cv_CC_dependencies_compiler_type=none
3931
fi
3932
3933
fi
3934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3935
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3936
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3937
3938
 if
3939
  test "x$enable_dependency_tracking" != xno \
3940
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941
  am__fastdepCC_TRUE=
3942
  am__fastdepCC_FALSE='#'
3943
else
3944
  am__fastdepCC_TRUE='#'
3945
  am__fastdepCC_FALSE=
3946
fi
3947
3948
3949
3950
ac_ext=c
3951
ac_cpp='$CPP $CPPFLAGS'
3952
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3956
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3957
# On Suns, sometimes $CPP names a directory.
3958
if test -n "$CPP" && test -d "$CPP"; then
3959
  CPP=
3960
fi
3961
if test -z "$CPP"; then
3962
  if ${ac_cv_prog_CPP+:} false; then :
3963
  $as_echo_n "(cached) " >&6
3964
else
3965
      # Double quotes because CPP needs to be expanded
3966
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967
    do
3968
      ac_preproc_ok=false
3969
for ac_c_preproc_warn_flag in '' yes
3970
do
3971
  # Use a header file that comes with gcc, so configuring glibc
3972
  # with a fresh cross-compiler works.
3973
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974
  # <limits.h> exists even on freestanding compilers.
3975
  # On the NeXT, cc -E runs the code through the compiler's parser,
3976
  # not just through cpp. "Syntax error" is here to catch this case.
3977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978
/* end confdefs.h.  */
3979
#ifdef __STDC__
3980
# include <limits.h>
3981
#else
3982
# include <assert.h>
3983
#endif
3984
		     Syntax error
3985
_ACEOF
3986
if ac_fn_c_try_cpp "$LINENO"; then :
3987
3988
else
3989
  # Broken: fails on valid input.
3990
continue
3991
fi
3992
rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994
  # OK, works on sane cases.  Now check whether nonexistent headers
3995
  # can be detected and how.
3996
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997
/* end confdefs.h.  */
3998
#include <ac_nonexistent.h>
3999
_ACEOF
4000
if ac_fn_c_try_cpp "$LINENO"; then :
4001
  # Broken: success on invalid input.
4002
continue
4003
else
4004
  # Passes both tests.
4005
ac_preproc_ok=:
4006
break
4007
fi
4008
rm -f conftest.err conftest.i conftest.$ac_ext
4009
4010
done
4011
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012
rm -f conftest.i conftest.err conftest.$ac_ext
4013
if $ac_preproc_ok; then :
4014
  break
4015
fi
4016
4017
    done
4018
    ac_cv_prog_CPP=$CPP
4019
4020
fi
4021
  CPP=$ac_cv_prog_CPP
4022
else
4023
  ac_cv_prog_CPP=$CPP
4024
fi
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4026
$as_echo "$CPP" >&6; }
4027
ac_preproc_ok=false
4028
for ac_c_preproc_warn_flag in '' yes
4029
do
4030
  # Use a header file that comes with gcc, so configuring glibc
4031
  # with a fresh cross-compiler works.
4032
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033
  # <limits.h> exists even on freestanding compilers.
4034
  # On the NeXT, cc -E runs the code through the compiler's parser,
4035
  # not just through cpp. "Syntax error" is here to catch this case.
4036
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037
/* end confdefs.h.  */
4038
#ifdef __STDC__
4039
# include <limits.h>
4040
#else
4041
# include <assert.h>
4042
#endif
4043
		     Syntax error
4044
_ACEOF
4045
if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047
else
4048
  # Broken: fails on valid input.
4049
continue
4050
fi
4051
rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053
  # OK, works on sane cases.  Now check whether nonexistent headers
4054
  # can be detected and how.
4055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056
/* end confdefs.h.  */
4057
#include <ac_nonexistent.h>
4058
_ACEOF
4059
if ac_fn_c_try_cpp "$LINENO"; then :
4060
  # Broken: success on invalid input.
4061
continue
4062
else
4063
  # Passes both tests.
4064
ac_preproc_ok=:
4065
break
4066
fi
4067
rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069
done
4070
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071
rm -f conftest.i conftest.err conftest.$ac_ext
4072
if $ac_preproc_ok; then :
4073
4074
else
4075
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4078
See \`config.log' for more details" "$LINENO" 5; }
4079
fi
4080
4081
ac_ext=c
4082
ac_cpp='$CPP $CPPFLAGS'
4083
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4089
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4090
if ${ac_cv_path_GREP+:} false; then :
4091
  $as_echo_n "(cached) " >&6
4092
else
4093
  if test -z "$GREP"; then
4094
  ac_path_GREP_found=false
4095
  # Loop through the user's path and test for each of PROGNAME-LIST
4096
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098
do
4099
  IFS=$as_save_IFS
4100
  test -z "$as_dir" && as_dir=.
4101
    for ac_prog in grep ggrep; do
4102
    for ac_exec_ext in '' $ac_executable_extensions; do
4103
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4105
# Check for GNU ac_path_GREP and select it if it is found.
4106
  # Check for GNU $ac_path_GREP
4107
case `"$ac_path_GREP" --version 2>&1` in
4108
*GNU*)
4109
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4110
*)
4111
  ac_count=0
4112
  $as_echo_n 0123456789 >"conftest.in"
4113
  while :
4114
  do
4115
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4116
    mv "conftest.tmp" "conftest.in"
4117
    cp "conftest.in" "conftest.nl"
4118
    $as_echo 'GREP' >> "conftest.nl"
4119
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4122
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123
      # Best one so far, save it but keep looking for a better one
4124
      ac_cv_path_GREP="$ac_path_GREP"
4125
      ac_path_GREP_max=$ac_count
4126
    fi
4127
    # 10*(2^10) chars as input seems more than enough
4128
    test $ac_count -gt 10 && break
4129
  done
4130
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131
esac
4132
4133
      $ac_path_GREP_found && break 3
4134
    done
4135
  done
4136
  done
4137
IFS=$as_save_IFS
4138
  if test -z "$ac_cv_path_GREP"; then
4139
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140
  fi
4141
else
4142
  ac_cv_path_GREP=$GREP
4143
fi
4144
4145
fi
4146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4147
$as_echo "$ac_cv_path_GREP" >&6; }
4148
 GREP="$ac_cv_path_GREP"
4149
4150
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4152
$as_echo_n "checking for egrep... " >&6; }
4153
if ${ac_cv_path_EGREP+:} false; then :
4154
  $as_echo_n "(cached) " >&6
4155
else
4156
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157
   then ac_cv_path_EGREP="$GREP -E"
4158
   else
4159
     if test -z "$EGREP"; then
4160
  ac_path_EGREP_found=false
4161
  # Loop through the user's path and test for each of PROGNAME-LIST
4162
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164
do
4165
  IFS=$as_save_IFS
4166
  test -z "$as_dir" && as_dir=.
4167
    for ac_prog in egrep; do
4168
    for ac_exec_ext in '' $ac_executable_extensions; do
4169
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4170
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4171
# Check for GNU ac_path_EGREP and select it if it is found.
4172
  # Check for GNU $ac_path_EGREP
4173
case `"$ac_path_EGREP" --version 2>&1` in
4174
*GNU*)
4175
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4176
*)
4177
  ac_count=0
4178
  $as_echo_n 0123456789 >"conftest.in"
4179
  while :
4180
  do
4181
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4182
    mv "conftest.tmp" "conftest.in"
4183
    cp "conftest.in" "conftest.nl"
4184
    $as_echo 'EGREP' >> "conftest.nl"
4185
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4188
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4189
      # Best one so far, save it but keep looking for a better one
4190
      ac_cv_path_EGREP="$ac_path_EGREP"
4191
      ac_path_EGREP_max=$ac_count
4192
    fi
4193
    # 10*(2^10) chars as input seems more than enough
4194
    test $ac_count -gt 10 && break
4195
  done
4196
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197
esac
4198
4199
      $ac_path_EGREP_found && break 3
4200
    done
4201
  done
4202
  done
4203
IFS=$as_save_IFS
4204
  if test -z "$ac_cv_path_EGREP"; then
4205
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206
  fi
4207
else
4208
  ac_cv_path_EGREP=$EGREP
4209
fi
4210
4211
   fi
4212
fi
4213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4214
$as_echo "$ac_cv_path_EGREP" >&6; }
4215
 EGREP="$ac_cv_path_EGREP"
4216
4217
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4219
$as_echo_n "checking for ANSI C header files... " >&6; }
4220
if ${ac_cv_header_stdc+:} false; then :
4221
  $as_echo_n "(cached) " >&6
4222
else
4223
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224
/* end confdefs.h.  */
4225
#include <stdlib.h>
4226
#include <stdarg.h>
4227
#include <string.h>
4228
#include <float.h>
4229
4230
int
4231
main ()
4232
{
4233
4234
  ;
4235
  return 0;
4236
}
4237
_ACEOF
4238
if ac_fn_c_try_compile "$LINENO"; then :
4239
  ac_cv_header_stdc=yes
4240
else
4241
  ac_cv_header_stdc=no
4242
fi
4243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244
4245
if test $ac_cv_header_stdc = yes; then
4246
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4247
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248
/* end confdefs.h.  */
4249
#include <string.h>
4250
4251
_ACEOF
4252
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253
  $EGREP "memchr" >/dev/null 2>&1; then :
4254
4255
else
4256
  ac_cv_header_stdc=no
4257
fi
4258
rm -f conftest*
4259
4260
fi
4261
4262
if test $ac_cv_header_stdc = yes; then
4263
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4264
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265
/* end confdefs.h.  */
4266
#include <stdlib.h>
4267
4268
_ACEOF
4269
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270
  $EGREP "free" >/dev/null 2>&1; then :
4271
4272
else
4273
  ac_cv_header_stdc=no
4274
fi
4275
rm -f conftest*
4276
4277
fi
4278
4279
if test $ac_cv_header_stdc = yes; then
4280
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281
  if test "$cross_compiling" = yes; then :
4282
  :
4283
else
4284
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285
/* end confdefs.h.  */
4286
#include <ctype.h>
4287
#include <stdlib.h>
4288
#if ((' ' & 0x0FF) == 0x020)
4289
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291
#else
4292
# define ISLOWER(c) \
4293
		   (('a' <= (c) && (c) <= 'i') \
4294
		     || ('j' <= (c) && (c) <= 'r') \
4295
		     || ('s' <= (c) && (c) <= 'z'))
4296
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297
#endif
4298
4299
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300
int
4301
main ()
4302
{
4303
  int i;
4304
  for (i = 0; i < 256; i++)
4305
    if (XOR (islower (i), ISLOWER (i))
4306
	|| toupper (i) != TOUPPER (i))
4307
      return 2;
4308
  return 0;
4309
}
4310
_ACEOF
4311
if ac_fn_c_try_run "$LINENO"; then :
4312
4313
else
4314
  ac_cv_header_stdc=no
4315
fi
4316
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4317
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4318
fi
4319
4320
fi
4321
fi
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4323
$as_echo "$ac_cv_header_stdc" >&6; }
4324
if test $ac_cv_header_stdc = yes; then
4325
4326
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4327
4328
fi
4329
4330
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332
		  inttypes.h stdint.h unistd.h
4333
do :
4334
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4336
"
4337
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4338
  cat >>confdefs.h <<_ACEOF
4339
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340
_ACEOF
4341
4342
fi
4343
4344
done
4345
4346
4347
4348
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4349
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4350
  MINIX=yes
4351
else
4352
  MINIX=
4353
fi
4354
4355
4356
  if test "$MINIX" = yes; then
4357
4358
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4359
4360
4361
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4362
4363
4364
$as_echo "#define _MINIX 1" >>confdefs.h
4365
4366
  fi
4367
4368
4369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4370
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4371
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4372
  $as_echo_n "(cached) " >&6
4373
else
4374
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375
/* end confdefs.h.  */
4376
4377
#	  define __EXTENSIONS__ 1
4378
	  $ac_includes_default
4379
int
4380
main ()
4381
{
4382
4383
  ;
4384
  return 0;
4385
}
4386
_ACEOF
4387
if ac_fn_c_try_compile "$LINENO"; then :
4388
  ac_cv_safe_to_define___extensions__=yes
4389
else
4390
  ac_cv_safe_to_define___extensions__=no
4391
fi
4392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393
fi
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4395
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4396
  test $ac_cv_safe_to_define___extensions__ = yes &&
4397
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4398
4399
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4400
4401
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4402
4403
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4404
4405
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4406
4407
4408
4409
ac_ext=c
4410
ac_cpp='$CPP $CPPFLAGS'
4411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
if test -n "$ac_tool_prefix"; then
4415
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4416
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418
$as_echo_n "checking for $ac_word... " >&6; }
4419
if ${ac_cv_prog_CC+:} false; then :
4420
  $as_echo_n "(cached) " >&6
4421
else
4422
  if test -n "$CC"; then
4423
  ac_cv_prog_CC="$CC" # Let the user override the test.
4424
else
4425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426
for as_dir in $PATH
4427
do
4428
  IFS=$as_save_IFS
4429
  test -z "$as_dir" && as_dir=.
4430
    for ac_exec_ext in '' $ac_executable_extensions; do
4431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4433
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434
    break 2
4435
  fi
4436
done
4437
  done
4438
IFS=$as_save_IFS
4439
4440
fi
4441
fi
4442
CC=$ac_cv_prog_CC
4443
if test -n "$CC"; then
4444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445
$as_echo "$CC" >&6; }
4446
else
4447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448
$as_echo "no" >&6; }
4449
fi
4450
4451
4452
fi
4453
if test -z "$ac_cv_prog_CC"; then
4454
  ac_ct_CC=$CC
4455
  # Extract the first word of "gcc", so it can be a program name with args.
4456
set dummy gcc; ac_word=$2
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458
$as_echo_n "checking for $ac_word... " >&6; }
4459
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4460
  $as_echo_n "(cached) " >&6
4461
else
4462
  if test -n "$ac_ct_CC"; then
4463
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464
else
4465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466
for as_dir in $PATH
4467
do
4468
  IFS=$as_save_IFS
4469
  test -z "$as_dir" && as_dir=.
4470
    for ac_exec_ext in '' $ac_executable_extensions; do
4471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472
    ac_cv_prog_ac_ct_CC="gcc"
4473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474
    break 2
4475
  fi
4476
done
4477
  done
4478
IFS=$as_save_IFS
4479
4480
fi
4481
fi
4482
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4483
if test -n "$ac_ct_CC"; then
4484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4485
$as_echo "$ac_ct_CC" >&6; }
4486
else
4487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488
$as_echo "no" >&6; }
4489
fi
4490
4491
  if test "x$ac_ct_CC" = x; then
4492
    CC=""
4493
  else
4494
    case $cross_compiling:$ac_tool_warned in
4495
yes:)
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498
ac_tool_warned=yes ;;
4499
esac
4500
    CC=$ac_ct_CC
4501
  fi
4502
else
4503
  CC="$ac_cv_prog_CC"
4504
fi
4505
4506
if test -z "$CC"; then
4507
          if test -n "$ac_tool_prefix"; then
4508
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4509
set dummy ${ac_tool_prefix}cc; ac_word=$2
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if ${ac_cv_prog_CC+:} false; then :
4513
  $as_echo_n "(cached) " >&6
4514
else
4515
  if test -n "$CC"; then
4516
  ac_cv_prog_CC="$CC" # Let the user override the test.
4517
else
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519
for as_dir in $PATH
4520
do
4521
  IFS=$as_save_IFS
4522
  test -z "$as_dir" && as_dir=.
4523
    for ac_exec_ext in '' $ac_executable_extensions; do
4524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527
    break 2
4528
  fi
4529
done
4530
  done
4531
IFS=$as_save_IFS
4532
4533
fi
4534
fi
4535
CC=$ac_cv_prog_CC
4536
if test -n "$CC"; then
4537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4538
$as_echo "$CC" >&6; }
4539
else
4540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4542
fi
4543
4544
4545
  fi
4546
fi
4547
if test -z "$CC"; then
4548
  # Extract the first word of "cc", so it can be a program name with args.
4549
set dummy cc; ac_word=$2
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551
$as_echo_n "checking for $ac_word... " >&6; }
4552
if ${ac_cv_prog_CC+:} false; then :
4553
  $as_echo_n "(cached) " >&6
4554
else
4555
  if test -n "$CC"; then
4556
  ac_cv_prog_CC="$CC" # Let the user override the test.
4557
else
4558
  ac_prog_rejected=no
4559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560
for as_dir in $PATH
4561
do
4562
  IFS=$as_save_IFS
4563
  test -z "$as_dir" && as_dir=.
4564
    for ac_exec_ext in '' $ac_executable_extensions; do
4565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4567
       ac_prog_rejected=yes
4568
       continue
4569
     fi
4570
    ac_cv_prog_CC="cc"
4571
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572
    break 2
4573
  fi
4574
done
4575
  done
4576
IFS=$as_save_IFS
4577
4578
if test $ac_prog_rejected = yes; then
4579
  # We found a bogon in the path, so make sure we never use it.
4580
  set dummy $ac_cv_prog_CC
4581
  shift
4582
  if test $# != 0; then
4583
    # We chose a different compiler from the bogus one.
4584
    # However, it has the same basename, so the bogon will be chosen
4585
    # first if we set CC to just the basename; use the full file name.
4586
    shift
4587
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4588
  fi
4589
fi
4590
fi
4591
fi
4592
CC=$ac_cv_prog_CC
4593
if test -n "$CC"; then
4594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4595
$as_echo "$CC" >&6; }
4596
else
4597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598
$as_echo "no" >&6; }
4599
fi
4600
4601
4602
fi
4603
if test -z "$CC"; then
4604
  if test -n "$ac_tool_prefix"; then
4605
  for ac_prog in cl.exe
4606
  do
4607
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610
$as_echo_n "checking for $ac_word... " >&6; }
4611
if ${ac_cv_prog_CC+:} false; then :
4612
  $as_echo_n "(cached) " >&6
4613
else
4614
  if test -n "$CC"; then
4615
  ac_cv_prog_CC="$CC" # Let the user override the test.
4616
else
4617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618
for as_dir in $PATH
4619
do
4620
  IFS=$as_save_IFS
4621
  test -z "$as_dir" && as_dir=.
4622
    for ac_exec_ext in '' $ac_executable_extensions; do
4623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4625
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626
    break 2
4627
  fi
4628
done
4629
  done
4630
IFS=$as_save_IFS
4631
4632
fi
4633
fi
4634
CC=$ac_cv_prog_CC
4635
if test -n "$CC"; then
4636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4637
$as_echo "$CC" >&6; }
4638
else
4639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640
$as_echo "no" >&6; }
4641
fi
4642
4643
4644
    test -n "$CC" && break
4645
  done
4646
fi
4647
if test -z "$CC"; then
4648
  ac_ct_CC=$CC
4649
  for ac_prog in cl.exe
4650
do
4651
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4652
set dummy $ac_prog; ac_word=$2
4653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654
$as_echo_n "checking for $ac_word... " >&6; }
4655
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4656
  $as_echo_n "(cached) " >&6
4657
else
4658
  if test -n "$ac_ct_CC"; then
4659
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660
else
4661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662
for as_dir in $PATH
4663
do
4664
  IFS=$as_save_IFS
4665
  test -z "$as_dir" && as_dir=.
4666
    for ac_exec_ext in '' $ac_executable_extensions; do
4667
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668
    ac_cv_prog_ac_ct_CC="$ac_prog"
4669
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670
    break 2
4671
  fi
4672
done
4673
  done
4674
IFS=$as_save_IFS
4675
4676
fi
4677
fi
4678
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679
if test -n "$ac_ct_CC"; then
4680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4681
$as_echo "$ac_ct_CC" >&6; }
4682
else
4683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684
$as_echo "no" >&6; }
4685
fi
4686
4687
4688
  test -n "$ac_ct_CC" && break
4689
done
4690
4691
  if test "x$ac_ct_CC" = x; then
4692
    CC=""
4693
  else
4694
    case $cross_compiling:$ac_tool_warned in
4695
yes:)
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698
ac_tool_warned=yes ;;
4699
esac
4700
    CC=$ac_ct_CC
4701
  fi
4702
fi
4703
4704
fi
4705
4706
4707
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709
as_fn_error $? "no acceptable C compiler found in \$PATH
4710
See \`config.log' for more details" "$LINENO" 5; }
4711
4712
# Provide some information about the compiler.
4713
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4714
set X $ac_compile
4715
ac_compiler=$2
4716
for ac_option in --version -v -V -qversion; do
4717
  { { ac_try="$ac_compiler $ac_option >&5"
4718
case "(($ac_try" in
4719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720
  *) ac_try_echo=$ac_try;;
4721
esac
4722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723
$as_echo "$ac_try_echo"; } >&5
4724
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4725
  ac_status=$?
4726
  if test -s conftest.err; then
4727
    sed '10a\
4728
... rest of stderr output deleted ...
4729
         10q' conftest.err >conftest.er1
4730
    cat conftest.er1 >&5
4731
  fi
4732
  rm -f conftest.er1 conftest.err
4733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734
  test $ac_status = 0; }
4735
done
4736
4737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4738
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4739
if ${ac_cv_c_compiler_gnu+:} false; then :
4740
  $as_echo_n "(cached) " >&6
4741
else
4742
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743
/* end confdefs.h.  */
4744
4745
int
4746
main ()
4747
{
4748
#ifndef __GNUC__
4749
       choke me
4750
#endif
4751
4752
  ;
4753
  return 0;
4754
}
4755
_ACEOF
4756
if ac_fn_c_try_compile "$LINENO"; then :
4757
  ac_compiler_gnu=yes
4758
else
4759
  ac_compiler_gnu=no
4760
fi
4761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763
4764
fi
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4766
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4767
if test $ac_compiler_gnu = yes; then
4768
  GCC=yes
4769
else
4770
  GCC=
4771
fi
4772
ac_test_CFLAGS=${CFLAGS+set}
4773
ac_save_CFLAGS=$CFLAGS
4774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4775
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4776
if ${ac_cv_prog_cc_g+:} false; then :
4777
  $as_echo_n "(cached) " >&6
4778
else
4779
  ac_save_c_werror_flag=$ac_c_werror_flag
4780
   ac_c_werror_flag=yes
4781
   ac_cv_prog_cc_g=no
4782
   CFLAGS="-g"
4783
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784
/* end confdefs.h.  */
4785
4786
int
4787
main ()
4788
{
4789
4790
  ;
4791
  return 0;
4792
}
4793
_ACEOF
4794
if ac_fn_c_try_compile "$LINENO"; then :
4795
  ac_cv_prog_cc_g=yes
4796
else
4797
  CFLAGS=""
4798
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799
/* end confdefs.h.  */
4800
4801
int
4802
main ()
4803
{
4804
4805
  ;
4806
  return 0;
4807
}
4808
_ACEOF
4809
if ac_fn_c_try_compile "$LINENO"; then :
4810
4811
else
4812
  ac_c_werror_flag=$ac_save_c_werror_flag
4813
	 CFLAGS="-g"
4814
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815
/* end confdefs.h.  */
4816
4817
int
4818
main ()
4819
{
4820
4821
  ;
4822
  return 0;
4823
}
4824
_ACEOF
4825
if ac_fn_c_try_compile "$LINENO"; then :
4826
  ac_cv_prog_cc_g=yes
4827
fi
4828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829
fi
4830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831
fi
4832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833
   ac_c_werror_flag=$ac_save_c_werror_flag
4834
fi
4835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4836
$as_echo "$ac_cv_prog_cc_g" >&6; }
4837
if test "$ac_test_CFLAGS" = set; then
4838
  CFLAGS=$ac_save_CFLAGS
4839
elif test $ac_cv_prog_cc_g = yes; then
4840
  if test "$GCC" = yes; then
4841
    CFLAGS="-g -O2"
4842
  else
4843
    CFLAGS="-g"
4844
  fi
4845
else
4846
  if test "$GCC" = yes; then
4847
    CFLAGS="-O2"
4848
  else
4849
    CFLAGS=
4850
  fi
4851
fi
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4853
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4854
if ${ac_cv_prog_cc_c89+:} false; then :
4855
  $as_echo_n "(cached) " >&6
4856
else
4857
  ac_cv_prog_cc_c89=no
4858
ac_save_CC=$CC
4859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860
/* end confdefs.h.  */
4861
#include <stdarg.h>
4862
#include <stdio.h>
4863
#include <sys/types.h>
4864
#include <sys/stat.h>
4865
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4866
struct buf { int x; };
4867
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4868
static char *e (p, i)
4869
     char **p;
4870
     int i;
4871
{
4872
  return p[i];
4873
}
4874
static char *f (char * (*g) (char **, int), char **p, ...)
4875
{
4876
  char *s;
4877
  va_list v;
4878
  va_start (v,p);
4879
  s = g (p, va_arg (v,int));
4880
  va_end (v);
4881
  return s;
4882
}
4883
4884
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4885
   function prototypes and stuff, but not '\xHH' hex character constants.
4886
   These don't provoke an error unfortunately, instead are silently treated
4887
   as 'x'.  The following induces an error, until -std is added to get
4888
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4889
   array size at least.  It's necessary to write '\x00'==0 to get something
4890
   that's true only with -std.  */
4891
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4892
4893
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4894
   inside strings and character constants.  */
4895
#define FOO(x) 'x'
4896
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4897
4898
int test (int i, double x);
4899
struct s1 {int (*f) (int a);};
4900
struct s2 {int (*f) (double a);};
4901
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4902
int argc;
4903
char **argv;
4904
int
4905
main ()
4906
{
4907
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4908
  ;
4909
  return 0;
4910
}
4911
_ACEOF
4912
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4913
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4914
do
4915
  CC="$ac_save_CC $ac_arg"
4916
  if ac_fn_c_try_compile "$LINENO"; then :
4917
  ac_cv_prog_cc_c89=$ac_arg
4918
fi
4919
rm -f core conftest.err conftest.$ac_objext
4920
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4921
done
4922
rm -f conftest.$ac_ext
4923
CC=$ac_save_CC
4924
4925
fi
4926
# AC_CACHE_VAL
4927
case "x$ac_cv_prog_cc_c89" in
4928
  x)
4929
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4930
$as_echo "none needed" >&6; } ;;
4931
  xno)
4932
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4933
$as_echo "unsupported" >&6; } ;;
4934
  *)
4935
    CC="$CC $ac_cv_prog_cc_c89"
4936
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4937
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4938
esac
4939
if test "x$ac_cv_prog_cc_c89" != xno; then :
4940
4941
fi
4942
4943
ac_ext=c
4944
ac_cpp='$CPP $CPPFLAGS'
4945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
4949
depcc="$CC"   am_compiler_list=
4950
4951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952
$as_echo_n "checking dependency style of $depcc... " >&6; }
4953
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4954
  $as_echo_n "(cached) " >&6
4955
else
4956
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957
  # We make a subdir and do the tests there.  Otherwise we can end up
4958
  # making bogus files that we don't know about and never remove.  For
4959
  # instance it was reported that on HP-UX the gcc test will end up
4960
  # making a dummy file named `D' -- because `-MD' means `put the output
4961
  # in D'.
1.1.9 by Craig Small
Import upstream version 3.3.3
4962
  rm -rf conftest.dir
1.1.6 by Craig Small
Import upstream version 3.3.0
4963
  mkdir conftest.dir
4964
  # Copy depcomp to subdir because otherwise we won't find it if we're
4965
  # using a relative directory.
4966
  cp "$am_depcomp" conftest.dir
4967
  cd conftest.dir
4968
  # We will build objects and dependencies in a subdirectory because
4969
  # it helps to detect inapplicable dependency modes.  For instance
4970
  # both Tru64's cc and ICC support -MD to output dependencies as a
4971
  # side effect of compilation, but ICC will put the dependencies in
4972
  # the current directory while Tru64 will put them in the object
4973
  # directory.
4974
  mkdir sub
4975
4976
  am_cv_CC_dependencies_compiler_type=none
4977
  if test "$am_compiler_list" = ""; then
4978
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4979
  fi
4980
  am__universal=false
4981
  case " $depcc " in #(
4982
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4983
     esac
4984
4985
  for depmode in $am_compiler_list; do
4986
    # Setup a source with many dependencies, because some compilers
4987
    # like to wrap large dependency lists on column 80 (with \), and
4988
    # we should not choose a depcomp mode which is confused by this.
4989
    #
4990
    # We need to recreate these files for each test, as the compiler may
4991
    # overwrite some of them when testing with obscure command lines.
4992
    # This happens at least with the AIX C compiler.
4993
    : > sub/conftest.c
4994
    for i in 1 2 3 4 5 6; do
4995
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997
      # Solaris 8's {/usr,}/bin/sh.
4998
      touch sub/conftst$i.h
4999
    done
5000
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001
5002
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5003
    # mode.  It turns out that the SunPro C++ compiler does not properly
5004
    # handle `-M -o', and we need to detect this.  Also, some Intel
5005
    # versions had trouble with output in subdirs
5006
    am__obj=sub/conftest.${OBJEXT-o}
5007
    am__minus_obj="-o $am__obj"
5008
    case $depmode in
5009
    gcc)
5010
      # This depmode causes a compiler race in universal mode.
5011
      test "$am__universal" = false || continue
5012
      ;;
5013
    nosideeffect)
5014
      # after this tag, mechanisms are not by side-effect, so they'll
5015
      # only be used when explicitly requested
5016
      if test "x$enable_dependency_tracking" = xyes; then
5017
	continue
5018
      else
5019
	break
5020
      fi
5021
      ;;
1.1.9 by Craig Small
Import upstream version 3.3.3
5022
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.6 by Craig Small
Import upstream version 3.3.0
5023
      # This compiler won't grok `-c -o', but also, the minuso test has
5024
      # not run yet.  These depmodes are late enough in the game, and
5025
      # so weak that their functioning should not be impacted.
5026
      am__obj=conftest.${OBJEXT-o}
5027
      am__minus_obj=
5028
      ;;
5029
    none) break ;;
5030
    esac
5031
    if depmode=$depmode \
5032
       source=sub/conftest.c object=$am__obj \
5033
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5034
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5035
         >/dev/null 2>conftest.err &&
5036
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5037
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5038
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5039
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5040
      # icc doesn't choke on unknown options, it will just issue warnings
5041
      # or remarks (even with -Werror).  So we grep stderr for any message
5042
      # that says an option was ignored or not supported.
5043
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5044
      #   icc: Command line warning: ignoring option '-M'; no argument required
5045
      # The diagnosis changed in icc 8.0:
5046
      #   icc: Command line remark: option '-MP' not supported
5047
      if (grep 'ignoring option' conftest.err ||
5048
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5049
        am_cv_CC_dependencies_compiler_type=$depmode
5050
        break
5051
      fi
5052
    fi
5053
  done
5054
5055
  cd ..
5056
  rm -rf conftest.dir
5057
else
5058
  am_cv_CC_dependencies_compiler_type=none
5059
fi
5060
5061
fi
5062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5063
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5064
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5065
5066
 if
5067
  test "x$enable_dependency_tracking" != xno \
5068
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5069
  am__fastdepCC_TRUE=
5070
  am__fastdepCC_FALSE='#'
5071
else
5072
  am__fastdepCC_TRUE='#'
5073
  am__fastdepCC_FALSE=
5074
fi
5075
5076
1.1.9 by Craig Small
Import upstream version 3.3.3
5077
   case $ac_cv_prog_cc_stdc in #(
5078
  no) :
5079
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5080
  *) :
5081
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5082
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5083
if ${ac_cv_prog_cc_c99+:} false; then :
5084
  $as_echo_n "(cached) " >&6
5085
else
5086
  ac_cv_prog_cc_c99=no
5087
ac_save_CC=$CC
5088
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089
/* end confdefs.h.  */
5090
#include <stdarg.h>
5091
#include <stdbool.h>
5092
#include <stdlib.h>
5093
#include <wchar.h>
5094
#include <stdio.h>
5095
5096
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5097
#define debug(...) fprintf (stderr, __VA_ARGS__)
5098
#define showlist(...) puts (#__VA_ARGS__)
5099
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5100
static void
5101
test_varargs_macros (void)
5102
{
5103
  int x = 1234;
5104
  int y = 5678;
5105
  debug ("Flag");
5106
  debug ("X = %d\n", x);
5107
  showlist (The first, second, and third items.);
5108
  report (x>y, "x is %d but y is %d", x, y);
5109
}
5110
5111
// Check long long types.
5112
#define BIG64 18446744073709551615ull
5113
#define BIG32 4294967295ul
5114
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5115
#if !BIG_OK
5116
  your preprocessor is broken;
5117
#endif
5118
#if BIG_OK
5119
#else
5120
  your preprocessor is broken;
5121
#endif
5122
static long long int bignum = -9223372036854775807LL;
5123
static unsigned long long int ubignum = BIG64;
5124
5125
struct incomplete_array
5126
{
5127
  int datasize;
5128
  double data[];
5129
};
5130
5131
struct named_init {
5132
  int number;
5133
  const wchar_t *name;
5134
  double average;
5135
};
5136
5137
typedef const char *ccp;
5138
5139
static inline int
5140
test_restrict (ccp restrict text)
5141
{
5142
  // See if C++-style comments work.
5143
  // Iterate through items via the restricted pointer.
5144
  // Also check for declarations in for loops.
5145
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5146
    continue;
5147
  return 0;
5148
}
5149
5150
// Check varargs and va_copy.
5151
static void
5152
test_varargs (const char *format, ...)
5153
{
5154
  va_list args;
5155
  va_start (args, format);
5156
  va_list args_copy;
5157
  va_copy (args_copy, args);
5158
5159
  const char *str;
5160
  int number;
5161
  float fnumber;
5162
5163
  while (*format)
5164
    {
5165
      switch (*format++)
5166
	{
5167
	case 's': // string
5168
	  str = va_arg (args_copy, const char *);
5169
	  break;
5170
	case 'd': // int
5171
	  number = va_arg (args_copy, int);
5172
	  break;
5173
	case 'f': // float
5174
	  fnumber = va_arg (args_copy, double);
5175
	  break;
5176
	default:
5177
	  break;
5178
	}
5179
    }
5180
  va_end (args_copy);
5181
  va_end (args);
5182
}
5183
5184
int
5185
main ()
5186
{
5187
5188
  // Check bool.
5189
  _Bool success = false;
5190
5191
  // Check restrict.
5192
  if (test_restrict ("String literal") == 0)
5193
    success = true;
5194
  char *restrict newvar = "Another string";
5195
5196
  // Check varargs.
5197
  test_varargs ("s, d' f .", "string", 65, 34.234);
5198
  test_varargs_macros ();
5199
5200
  // Check flexible array members.
5201
  struct incomplete_array *ia =
5202
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5203
  ia->datasize = 10;
5204
  for (int i = 0; i < ia->datasize; ++i)
5205
    ia->data[i] = i * 1.234;
5206
5207
  // Check named initializers.
5208
  struct named_init ni = {
5209
    .number = 34,
5210
    .name = L"Test wide string",
5211
    .average = 543.34343,
5212
  };
5213
5214
  ni.number = 58;
5215
5216
  int dynamic_array[ni.number];
5217
  dynamic_array[ni.number - 1] = 543;
5218
5219
  // work around unused variable warnings
5220
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5221
	  || dynamic_array[ni.number - 1] != 543);
5222
5223
  ;
5224
  return 0;
5225
}
5226
_ACEOF
5227
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5228
do
5229
  CC="$ac_save_CC $ac_arg"
5230
  if ac_fn_c_try_compile "$LINENO"; then :
5231
  ac_cv_prog_cc_c99=$ac_arg
5232
fi
5233
rm -f core conftest.err conftest.$ac_objext
5234
  test "x$ac_cv_prog_cc_c99" != "xno" && break
5235
done
5236
rm -f conftest.$ac_ext
5237
CC=$ac_save_CC
5238
5239
fi
5240
# AC_CACHE_VAL
5241
case "x$ac_cv_prog_cc_c99" in
5242
  x)
5243
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5244
$as_echo "none needed" >&6; } ;;
5245
  xno)
5246
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5247
$as_echo "unsupported" >&6; } ;;
5248
  *)
5249
    CC="$CC $ac_cv_prog_cc_c99"
5250
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5251
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5252
esac
5253
if test "x$ac_cv_prog_cc_c99" != xno; then :
5254
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5255
else
5256
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5257
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5258
if ${ac_cv_prog_cc_c89+:} false; then :
5259
  $as_echo_n "(cached) " >&6
5260
else
5261
  ac_cv_prog_cc_c89=no
5262
ac_save_CC=$CC
5263
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264
/* end confdefs.h.  */
5265
#include <stdarg.h>
5266
#include <stdio.h>
5267
#include <sys/types.h>
5268
#include <sys/stat.h>
5269
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5270
struct buf { int x; };
5271
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5272
static char *e (p, i)
5273
     char **p;
5274
     int i;
5275
{
5276
  return p[i];
5277
}
5278
static char *f (char * (*g) (char **, int), char **p, ...)
5279
{
5280
  char *s;
5281
  va_list v;
5282
  va_start (v,p);
5283
  s = g (p, va_arg (v,int));
5284
  va_end (v);
5285
  return s;
5286
}
5287
5288
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5289
   function prototypes and stuff, but not '\xHH' hex character constants.
5290
   These don't provoke an error unfortunately, instead are silently treated
5291
   as 'x'.  The following induces an error, until -std is added to get
5292
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5293
   array size at least.  It's necessary to write '\x00'==0 to get something
5294
   that's true only with -std.  */
5295
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5296
5297
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5298
   inside strings and character constants.  */
5299
#define FOO(x) 'x'
5300
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5301
5302
int test (int i, double x);
5303
struct s1 {int (*f) (int a);};
5304
struct s2 {int (*f) (double a);};
5305
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5306
int argc;
5307
char **argv;
5308
int
5309
main ()
5310
{
5311
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5312
  ;
5313
  return 0;
5314
}
5315
_ACEOF
5316
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5317
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5318
do
5319
  CC="$ac_save_CC $ac_arg"
5320
  if ac_fn_c_try_compile "$LINENO"; then :
5321
  ac_cv_prog_cc_c89=$ac_arg
5322
fi
5323
rm -f core conftest.err conftest.$ac_objext
5324
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5325
done
5326
rm -f conftest.$ac_ext
5327
CC=$ac_save_CC
5328
5329
fi
5330
# AC_CACHE_VAL
5331
case "x$ac_cv_prog_cc_c89" in
5332
  x)
5333
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5334
$as_echo "none needed" >&6; } ;;
5335
  xno)
5336
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5337
$as_echo "unsupported" >&6; } ;;
5338
  *)
5339
    CC="$CC $ac_cv_prog_cc_c89"
5340
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5341
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5342
esac
5343
if test "x$ac_cv_prog_cc_c89" != xno; then :
5344
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5345
else
5346
  ac_cv_prog_cc_stdc=no
5347
fi
5348
5349
fi
5350
 ;;
5351
esac
5352
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5353
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5354
  if ${ac_cv_prog_cc_stdc+:} false; then :
5355
  $as_echo_n "(cached) " >&6
5356
fi
5357
5358
  case $ac_cv_prog_cc_stdc in #(
5359
  no) :
5360
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5361
$as_echo "unsupported" >&6; } ;; #(
5362
  '') :
5363
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5364
$as_echo "none needed" >&6; } ;; #(
5365
  *) :
5366
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5367
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5368
esac
5369
5370
if test "$cross_compiling" = no; then
5371
  if test "x$ac_cv_prog_cc_c99" = "xno" || test "x$ac_cv_prog_cc_c99" = "x"; then
5372
  # We might be on RHEL5 with a git checkout and so broken
5373
  # autoconf. Check if CC is gcc and if it bails when given -std=gnu99.
5374
  # If not, use that.  Yuck.
5375
    if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
5376
       CC="$CC -std=gnu99"
5377
       if test "$cross_compiling" = yes; then :
5378
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5379
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5380
as_fn_error $? "cannot run test program while cross compiling
5381
See \`config.log' for more details" "$LINENO" 5; }
5382
else
5383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384
/* end confdefs.h.  */
5385
5386
int
5387
main ()
5388
{
5389
5390
  return 0;
5391
5392
  ;
5393
  return 0;
5394
}
5395
_ACEOF
5396
if ac_fn_c_try_run "$LINENO"; then :
5397
5398
else
5399
  as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5
5400
fi
5401
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5402
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5403
fi
5404
5405
    else
5406
      as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5
5407
    fi
5408
  fi
5409
fi
1.1.6 by Craig Small
Import upstream version 3.3.0
5410
if test "x$CC" != xcc; then
5411
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5412
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5413
else
5414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5415
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5416
fi
5417
set dummy $CC; ac_cc=`$as_echo "$2" |
5418
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5419
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5420
  $as_echo_n "(cached) " >&6
5421
else
5422
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423
/* end confdefs.h.  */
5424
5425
int
5426
main ()
5427
{
5428
5429
  ;
5430
  return 0;
5431
}
5432
_ACEOF
5433
# Make sure it works both with $CC and with simple cc.
5434
# We do the test twice because some compilers refuse to overwrite an
5435
# existing .o file with -o, though they will create one.
5436
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5437
rm -f conftest2.*
5438
if { { case "(($ac_try" in
5439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440
  *) ac_try_echo=$ac_try;;
5441
esac
5442
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5443
$as_echo "$ac_try_echo"; } >&5
5444
  (eval "$ac_try") 2>&5
5445
  ac_status=$?
5446
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5447
  test $ac_status = 0; } &&
5448
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450
  *) ac_try_echo=$ac_try;;
5451
esac
5452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5453
$as_echo "$ac_try_echo"; } >&5
5454
  (eval "$ac_try") 2>&5
5455
  ac_status=$?
5456
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457
  test $ac_status = 0; };
5458
then
5459
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5460
  if test "x$CC" != xcc; then
5461
    # Test first that cc exists at all.
5462
    if { ac_try='cc -c conftest.$ac_ext >&5'
5463
  { { case "(($ac_try" in
5464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465
  *) ac_try_echo=$ac_try;;
5466
esac
5467
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5468
$as_echo "$ac_try_echo"; } >&5
5469
  (eval "$ac_try") 2>&5
5470
  ac_status=$?
5471
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472
  test $ac_status = 0; }; }; then
5473
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5474
      rm -f conftest2.*
5475
      if { { case "(($ac_try" in
5476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477
  *) ac_try_echo=$ac_try;;
5478
esac
5479
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5480
$as_echo "$ac_try_echo"; } >&5
5481
  (eval "$ac_try") 2>&5
5482
  ac_status=$?
5483
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484
  test $ac_status = 0; } &&
5485
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487
  *) ac_try_echo=$ac_try;;
5488
esac
5489
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5490
$as_echo "$ac_try_echo"; } >&5
5491
  (eval "$ac_try") 2>&5
5492
  ac_status=$?
5493
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494
  test $ac_status = 0; };
5495
      then
5496
	# cc works too.
5497
	:
5498
      else
5499
	# cc exists but doesn't like -o.
5500
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5501
      fi
5502
    fi
5503
  fi
5504
else
5505
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5506
fi
5507
rm -f core conftest*
5508
5509
fi
5510
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512
$as_echo "yes" >&6; }
5513
else
5514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515
$as_echo "no" >&6; }
5516
5517
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5518
5519
fi
5520
5521
# FIXME: we rely on the cache variable name because
5522
# there is no other way.
5523
set dummy $CC
5524
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5525
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5526
if test "$am_t" != yes; then
5527
   # Losing compiler, so override with the script.
5528
   # FIXME: It is wrong to rewrite CC.
5529
   # But if we don't then we get into trouble of one sort or another.
5530
   # A longer-term fix would be to have automake use am__CC in this case,
5531
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5532
   CC="$am_aux_dir/compile $CC"
5533
fi
5534
5535
5536
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5538
$as_echo_n "checking whether ln -s works... " >&6; }
5539
LN_S=$as_ln_s
5540
if test "$LN_S" = "ln -s"; then
5541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542
$as_echo "yes" >&6; }
5543
else
5544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5545
$as_echo "no, using $LN_S" >&6; }
5546
fi
5547
5548
1.1.8 by Craig Small
Import upstream version 3.3.2
5549
1.1.9 by Craig Small
Import upstream version 3.3.3
5550
5551
5552
5553
5554
5555
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5556
	if test -n "$ac_tool_prefix"; then
5557
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5558
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560
$as_echo_n "checking for $ac_word... " >&6; }
5561
if ${ac_cv_path_PKG_CONFIG+:} false; then :
5562
  $as_echo_n "(cached) " >&6
5563
else
5564
  case $PKG_CONFIG in
5565
  [\\/]* | ?:[\\/]*)
5566
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5567
  ;;
5568
  *)
5569
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570
for as_dir in $PATH
5571
do
5572
  IFS=$as_save_IFS
5573
  test -z "$as_dir" && as_dir=.
5574
    for ac_exec_ext in '' $ac_executable_extensions; do
5575
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5577
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578
    break 2
5579
  fi
5580
done
5581
  done
5582
IFS=$as_save_IFS
5583
5584
  ;;
5585
esac
5586
fi
5587
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5588
if test -n "$PKG_CONFIG"; then
5589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5590
$as_echo "$PKG_CONFIG" >&6; }
5591
else
5592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593
$as_echo "no" >&6; }
5594
fi
5595
5596
5597
fi
5598
if test -z "$ac_cv_path_PKG_CONFIG"; then
5599
  ac_pt_PKG_CONFIG=$PKG_CONFIG
5600
  # Extract the first word of "pkg-config", so it can be a program name with args.
5601
set dummy pkg-config; ac_word=$2
5602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603
$as_echo_n "checking for $ac_word... " >&6; }
5604
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5605
  $as_echo_n "(cached) " >&6
5606
else
5607
  case $ac_pt_PKG_CONFIG in
5608
  [\\/]* | ?:[\\/]*)
5609
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5610
  ;;
5611
  *)
5612
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613
for as_dir in $PATH
5614
do
5615
  IFS=$as_save_IFS
5616
  test -z "$as_dir" && as_dir=.
5617
    for ac_exec_ext in '' $ac_executable_extensions; do
5618
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5620
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621
    break 2
5622
  fi
5623
done
5624
  done
5625
IFS=$as_save_IFS
5626
5627
  ;;
5628
esac
5629
fi
5630
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5631
if test -n "$ac_pt_PKG_CONFIG"; then
5632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5633
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5634
else
5635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636
$as_echo "no" >&6; }
5637
fi
5638
5639
  if test "x$ac_pt_PKG_CONFIG" = x; then
5640
    PKG_CONFIG=""
5641
  else
5642
    case $cross_compiling:$ac_tool_warned in
5643
yes:)
5644
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646
ac_tool_warned=yes ;;
5647
esac
5648
    PKG_CONFIG=$ac_pt_PKG_CONFIG
5649
  fi
5650
else
5651
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5652
fi
5653
5654
fi
5655
if test -n "$PKG_CONFIG"; then
5656
	_pkg_min_version=0.9.0
5657
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5658
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5659
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5660
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661
$as_echo "yes" >&6; }
5662
	else
5663
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664
$as_echo "no" >&6; }
5665
		PKG_CONFIG=""
5666
	fi
5667
fi
5668
5669
1.1.8 by Craig Small
Import upstream version 3.3.2
5670
# Check whether --enable-watch8bit was given.
5671
if test "${enable_watch8bit+set}" = set; then :
5672
  enableval=$enable_watch8bit; enable_watch8bit=$enableval
5673
else
5674
  enable_watch8bit="no"
5675
fi
5676
5677
if test "$enable_watch8bit" = "yes"; then
5678
5679
$as_echo "#define WITH_WATCH8BIT 1" >>confdefs.h
5680
5681
fi
5682
1.1.6 by Craig Small
Import upstream version 3.3.0
5683
# Checks for header files.
5684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
5685
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
5686
if ${ac_cv_header_sys_types_h_makedev+:} false; then :
5687
  $as_echo_n "(cached) " >&6
5688
else
5689
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690
/* end confdefs.h.  */
5691
#include <sys/types.h>
5692
int
5693
main ()
5694
{
5695
return makedev(0, 0);
5696
  ;
5697
  return 0;
5698
}
5699
_ACEOF
5700
if ac_fn_c_try_link "$LINENO"; then :
5701
  ac_cv_header_sys_types_h_makedev=yes
5702
else
5703
  ac_cv_header_sys_types_h_makedev=no
5704
fi
5705
rm -f core conftest.err conftest.$ac_objext \
5706
    conftest$ac_exeext conftest.$ac_ext
5707
5708
fi
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
5710
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
5711
5712
if test $ac_cv_header_sys_types_h_makedev = no; then
5713
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
5714
if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
5715
5716
$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
5717
5718
fi
5719
5720
5721
5722
  if test $ac_cv_header_sys_mkdev_h = no; then
5723
    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
5724
if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
5725
5726
$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
5727
5728
fi
5729
5730
5731
  fi
5732
fi
5733
5734
for ac_header in \
5735
	fcntl.h \
5736
	langinfo.h \
1.1.8 by Craig Small
Import upstream version 3.3.2
5737
	libintl.h \
1.1.6 by Craig Small
Import upstream version 3.3.0
5738
	limits.h \
5739
	locale.h \
5740
	netinet/in.h \
1.1.8 by Craig Small
Import upstream version 3.3.2
5741
	stdint.h \
1.1.6 by Craig Small
Import upstream version 3.3.0
5742
	stdlib.h \
5743
	string.h \
5744
	sys/file.h \
5745
	sys/ioctl.h \
5746
	sys/param.h \
5747
	sys/time.h \
5748
	termios.h \
5749
	unistd.h \
5750
	utmp.h \
5751
	values.h \
5752
	wchar.h \
5753
	wctype.h
5754
5755
do :
5756
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5758
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5759
  cat >>confdefs.h <<_ACEOF
5760
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761
_ACEOF
5762
5763
fi
5764
5765
done
5766
5767
5768
# Checks for typedefs, structures, and compiler characteristics.
5769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5770
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5771
if ${ac_cv_header_stdbool_h+:} false; then :
5772
  $as_echo_n "(cached) " >&6
5773
else
5774
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775
/* end confdefs.h.  */
5776
5777
#include <stdbool.h>
5778
#ifndef bool
5779
 "error: bool is not defined"
5780
#endif
5781
#ifndef false
5782
 "error: false is not defined"
5783
#endif
5784
#if false
5785
 "error: false is not 0"
5786
#endif
5787
#ifndef true
5788
 "error: true is not defined"
5789
#endif
5790
#if true != 1
5791
 "error: true is not 1"
5792
#endif
5793
#ifndef __bool_true_false_are_defined
5794
 "error: __bool_true_false_are_defined is not defined"
5795
#endif
5796
5797
	struct s { _Bool s: 1; _Bool t; } s;
5798
5799
	char a[true == 1 ? 1 : -1];
5800
	char b[false == 0 ? 1 : -1];
5801
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5802
	char d[(bool) 0.5 == true ? 1 : -1];
5803
	/* See body of main program for 'e'.  */
5804
	char f[(_Bool) 0.0 == false ? 1 : -1];
5805
	char g[true];
5806
	char h[sizeof (_Bool)];
5807
	char i[sizeof s.t];
5808
	enum { j = false, k = true, l = false * true, m = true * 256 };
5809
	/* The following fails for
5810
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5811
	_Bool n[m];
5812
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5813
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5814
	/* Catch a bug in an HP-UX C compiler.  See
5815
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5816
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5817
	 */
5818
	_Bool q = true;
5819
	_Bool *pq = &q;
5820
5821
int
5822
main ()
5823
{
5824
5825
	bool e = &s;
5826
	*pq |= q;
5827
	*pq |= ! q;
5828
	/* Refer to every declared value, to avoid compiler optimizations.  */
5829
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5830
		+ !m + !n + !o + !p + !q + !pq);
5831
5832
  ;
5833
  return 0;
5834
}
5835
_ACEOF
5836
if ac_fn_c_try_compile "$LINENO"; then :
5837
  ac_cv_header_stdbool_h=yes
5838
else
5839
  ac_cv_header_stdbool_h=no
5840
fi
5841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842
fi
5843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5844
$as_echo "$ac_cv_header_stdbool_h" >&6; }
5845
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5846
if test "x$ac_cv_type__Bool" = xyes; then :
5847
5848
cat >>confdefs.h <<_ACEOF
5849
#define HAVE__BOOL 1
5850
_ACEOF
5851
5852
5853
fi
5854
5855
if test $ac_cv_header_stdbool_h = yes; then
5856
5857
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5858
5859
fi
5860
5861
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5862
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5863
5864
cat >>confdefs.h <<_ACEOF
5865
#define HAVE_STRUCT_STAT_ST_RDEV 1
5866
_ACEOF
5867
5868
5869
fi
5870
5871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5872
$as_echo_n "checking for inline... " >&6; }
5873
if ${ac_cv_c_inline+:} false; then :
5874
  $as_echo_n "(cached) " >&6
5875
else
5876
  ac_cv_c_inline=no
5877
for ac_kw in inline __inline__ __inline; do
5878
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879
/* end confdefs.h.  */
5880
#ifndef __cplusplus
5881
typedef int foo_t;
5882
static $ac_kw foo_t static_foo () {return 0; }
5883
$ac_kw foo_t foo () {return 0; }
5884
#endif
5885
5886
_ACEOF
5887
if ac_fn_c_try_compile "$LINENO"; then :
5888
  ac_cv_c_inline=$ac_kw
5889
fi
5890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891
  test "$ac_cv_c_inline" != no && break
5892
done
5893
5894
fi
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5896
$as_echo "$ac_cv_c_inline" >&6; }
5897
5898
case $ac_cv_c_inline in
5899
  inline | yes) ;;
5900
  *)
5901
    case $ac_cv_c_inline in
5902
      no) ac_val=;;
5903
      *) ac_val=$ac_cv_c_inline;;
5904
    esac
5905
    cat >>confdefs.h <<_ACEOF
5906
#ifndef __cplusplus
5907
#define inline $ac_val
5908
#endif
5909
_ACEOF
5910
    ;;
5911
esac
5912
5913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5914
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5915
if ${ac_cv_c_restrict+:} false; then :
5916
  $as_echo_n "(cached) " >&6
5917
else
5918
  ac_cv_c_restrict=no
5919
   # The order here caters to the fact that C++ does not require restrict.
5920
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
5921
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922
/* end confdefs.h.  */
5923
typedef int * int_ptr;
5924
	int foo (int_ptr $ac_kw ip) {
5925
	return ip[0];
5926
       }
5927
int
5928
main ()
5929
{
5930
int s[1];
5931
	int * $ac_kw t = s;
5932
	t[0] = 0;
5933
	return foo(t)
5934
  ;
5935
  return 0;
5936
}
5937
_ACEOF
5938
if ac_fn_c_try_compile "$LINENO"; then :
5939
  ac_cv_c_restrict=$ac_kw
5940
fi
5941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942
     test "$ac_cv_c_restrict" != no && break
5943
   done
5944
5945
fi
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5947
$as_echo "$ac_cv_c_restrict" >&6; }
5948
5949
 case $ac_cv_c_restrict in
5950
   restrict) ;;
5951
   no) $as_echo "#define restrict /**/" >>confdefs.h
5952
 ;;
5953
   *)  cat >>confdefs.h <<_ACEOF
5954
#define restrict $ac_cv_c_restrict
5955
_ACEOF
5956
 ;;
5957
 esac
5958
5959
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5960
if test "x$ac_cv_type_pid_t" = xyes; then :
5961
5962
else
5963
5964
cat >>confdefs.h <<_ACEOF
5965
#define pid_t int
5966
_ACEOF
5967
5968
fi
5969
5970
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5971
if test "x$ac_cv_type_size_t" = xyes; then :
5972
5973
else
5974
5975
cat >>confdefs.h <<_ACEOF
5976
#define size_t unsigned int
5977
_ACEOF
5978
5979
fi
5980
5981
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5982
if test "x$ac_cv_type_ssize_t" = xyes; then :
5983
5984
else
5985
5986
cat >>confdefs.h <<_ACEOF
5987
#define ssize_t int
5988
_ACEOF
5989
5990
fi
5991
5992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5993
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5994
if ${ac_cv_type_uid_t+:} false; then :
5995
  $as_echo_n "(cached) " >&6
5996
else
5997
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998
/* end confdefs.h.  */
5999
#include <sys/types.h>
6000
6001
_ACEOF
6002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003
  $EGREP "uid_t" >/dev/null 2>&1; then :
6004
  ac_cv_type_uid_t=yes
6005
else
6006
  ac_cv_type_uid_t=no
6007
fi
6008
rm -f conftest*
6009
6010
fi
6011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6012
$as_echo "$ac_cv_type_uid_t" >&6; }
6013
if test $ac_cv_type_uid_t = no; then
6014
6015
$as_echo "#define uid_t int" >>confdefs.h
6016
6017
6018
$as_echo "#define gid_t int" >>confdefs.h
6019
6020
fi
6021
6022
6023
case `pwd` in
6024
  *\ * | *\	*)
6025
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6026
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6027
esac
6028
6029
6030
6031
macro_version='2.4.2'
6032
macro_revision='1.3337'
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
ltmain="$ac_aux_dir/ltmain.sh"
6047
6048
# Make sure we can run config.sub.
6049
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6050
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6051
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6053
$as_echo_n "checking build system type... " >&6; }
6054
if ${ac_cv_build+:} false; then :
6055
  $as_echo_n "(cached) " >&6
6056
else
6057
  ac_build_alias=$build_alias
6058
test "x$ac_build_alias" = x &&
6059
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6060
test "x$ac_build_alias" = x &&
6061
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6062
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6063
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6064
6065
fi
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6067
$as_echo "$ac_cv_build" >&6; }
6068
case $ac_cv_build in
6069
*-*-*) ;;
6070
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6071
esac
6072
build=$ac_cv_build
6073
ac_save_IFS=$IFS; IFS='-'
6074
set x $ac_cv_build
6075
shift
6076
build_cpu=$1
6077
build_vendor=$2
6078
shift; shift
6079
# Remember, the first character of IFS is used to create $*,
6080
# except with old shells:
6081
build_os=$*
6082
IFS=$ac_save_IFS
6083
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6084
6085
6086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6087
$as_echo_n "checking host system type... " >&6; }
6088
if ${ac_cv_host+:} false; then :
6089
  $as_echo_n "(cached) " >&6
6090
else
6091
  if test "x$host_alias" = x; then
6092
  ac_cv_host=$ac_cv_build
6093
else
6094
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6095
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6096
fi
6097
6098
fi
6099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6100
$as_echo "$ac_cv_host" >&6; }
6101
case $ac_cv_host in
6102
*-*-*) ;;
6103
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6104
esac
6105
host=$ac_cv_host
6106
ac_save_IFS=$IFS; IFS='-'
6107
set x $ac_cv_host
6108
shift
6109
host_cpu=$1
6110
host_vendor=$2
6111
shift; shift
6112
# Remember, the first character of IFS is used to create $*,
6113
# except with old shells:
6114
host_os=$*
6115
IFS=$ac_save_IFS
6116
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6117
6118
6119
# Backslashify metacharacters that are still active within
6120
# double-quoted strings.
6121
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6122
6123
# Same as above, but do not quote variable references.
6124
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6125
6126
# Sed substitution to delay expansion of an escaped shell variable in a
6127
# double_quote_subst'ed string.
6128
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6129
6130
# Sed substitution to delay expansion of an escaped single quote.
6131
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6132
6133
# Sed substitution to avoid accidental globbing in evaled expressions
6134
no_glob_subst='s/\*/\\\*/g'
6135
6136
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6137
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6138
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6139
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6141
$as_echo_n "checking how to print strings... " >&6; }
6142
# Test print first, because it will be a builtin if present.
6143
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6144
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6145
  ECHO='print -r --'
6146
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6147
  ECHO='printf %s\n'
6148
else
6149
  # Use this function as a fallback that always works.
6150
  func_fallback_echo ()
6151
  {
6152
    eval 'cat <<_LTECHO_EOF
6153
$1
6154
_LTECHO_EOF'
6155
  }
6156
  ECHO='func_fallback_echo'
6157
fi
6158
6159
# func_echo_all arg...
6160
# Invoke $ECHO with all args, space-separated.
6161
func_echo_all ()
6162
{
6163
    $ECHO ""
6164
}
6165
6166
case "$ECHO" in
6167
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6168
$as_echo "printf" >&6; } ;;
6169
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6170
$as_echo "print -r" >&6; } ;;
6171
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6172
$as_echo "cat" >&6; } ;;
6173
esac
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6189
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6190
if ${ac_cv_path_SED+:} false; then :
6191
  $as_echo_n "(cached) " >&6
6192
else
6193
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6194
     for ac_i in 1 2 3 4 5 6 7; do
6195
       ac_script="$ac_script$as_nl$ac_script"
6196
     done
6197
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6198
     { ac_script=; unset ac_script;}
6199
     if test -z "$SED"; then
6200
  ac_path_SED_found=false
6201
  # Loop through the user's path and test for each of PROGNAME-LIST
6202
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203
for as_dir in $PATH
6204
do
6205
  IFS=$as_save_IFS
6206
  test -z "$as_dir" && as_dir=.
6207
    for ac_prog in sed gsed; do
6208
    for ac_exec_ext in '' $ac_executable_extensions; do
6209
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6210
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6211
# Check for GNU ac_path_SED and select it if it is found.
6212
  # Check for GNU $ac_path_SED
6213
case `"$ac_path_SED" --version 2>&1` in
6214
*GNU*)
6215
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6216
*)
6217
  ac_count=0
6218
  $as_echo_n 0123456789 >"conftest.in"
6219
  while :
6220
  do
6221
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6222
    mv "conftest.tmp" "conftest.in"
6223
    cp "conftest.in" "conftest.nl"
6224
    $as_echo '' >> "conftest.nl"
6225
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6228
    if test $ac_count -gt ${ac_path_SED_max-0}; then
6229
      # Best one so far, save it but keep looking for a better one
6230
      ac_cv_path_SED="$ac_path_SED"
6231
      ac_path_SED_max=$ac_count
6232
    fi
6233
    # 10*(2^10) chars as input seems more than enough
6234
    test $ac_count -gt 10 && break
6235
  done
6236
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237
esac
6238
6239
      $ac_path_SED_found && break 3
6240
    done
6241
  done
6242
  done
6243
IFS=$as_save_IFS
6244
  if test -z "$ac_cv_path_SED"; then
6245
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6246
  fi
6247
else
6248
  ac_cv_path_SED=$SED
6249
fi
6250
6251
fi
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6253
$as_echo "$ac_cv_path_SED" >&6; }
6254
 SED="$ac_cv_path_SED"
6255
  rm -f conftest.sed
6256
6257
test -z "$SED" && SED=sed
6258
Xsed="$SED -e 1s/^X//"
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6271
$as_echo_n "checking for fgrep... " >&6; }
6272
if ${ac_cv_path_FGREP+:} false; then :
6273
  $as_echo_n "(cached) " >&6
6274
else
6275
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6276
   then ac_cv_path_FGREP="$GREP -F"
6277
   else
6278
     if test -z "$FGREP"; then
6279
  ac_path_FGREP_found=false
6280
  # Loop through the user's path and test for each of PROGNAME-LIST
6281
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6283
do
6284
  IFS=$as_save_IFS
6285
  test -z "$as_dir" && as_dir=.
6286
    for ac_prog in fgrep; do
6287
    for ac_exec_ext in '' $ac_executable_extensions; do
6288
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6289
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6290
# Check for GNU ac_path_FGREP and select it if it is found.
6291
  # Check for GNU $ac_path_FGREP
6292
case `"$ac_path_FGREP" --version 2>&1` in
6293
*GNU*)
6294
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6295
*)
6296
  ac_count=0
6297
  $as_echo_n 0123456789 >"conftest.in"
6298
  while :
6299
  do
6300
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6301
    mv "conftest.tmp" "conftest.in"
6302
    cp "conftest.in" "conftest.nl"
6303
    $as_echo 'FGREP' >> "conftest.nl"
6304
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6305
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6306
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6307
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6308
      # Best one so far, save it but keep looking for a better one
6309
      ac_cv_path_FGREP="$ac_path_FGREP"
6310
      ac_path_FGREP_max=$ac_count
6311
    fi
6312
    # 10*(2^10) chars as input seems more than enough
6313
    test $ac_count -gt 10 && break
6314
  done
6315
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6316
esac
6317
6318
      $ac_path_FGREP_found && break 3
6319
    done
6320
  done
6321
  done
6322
IFS=$as_save_IFS
6323
  if test -z "$ac_cv_path_FGREP"; then
6324
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6325
  fi
6326
else
6327
  ac_cv_path_FGREP=$FGREP
6328
fi
6329
6330
   fi
6331
fi
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6333
$as_echo "$ac_cv_path_FGREP" >&6; }
6334
 FGREP="$ac_cv_path_FGREP"
6335
6336
6337
test -z "$GREP" && GREP=grep
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
# Check whether --with-gnu-ld was given.
6358
if test "${with_gnu_ld+set}" = set; then :
6359
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6360
else
6361
  with_gnu_ld=no
6362
fi
6363
6364
ac_prog=ld
6365
if test "$GCC" = yes; then
6366
  # Check if gcc -print-prog-name=ld gives a path.
6367
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6368
$as_echo_n "checking for ld used by $CC... " >&6; }
6369
  case $host in
6370
  *-*-mingw*)
6371
    # gcc leaves a trailing carriage return which upsets mingw
6372
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6373
  *)
6374
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6375
  esac
6376
  case $ac_prog in
6377
    # Accept absolute paths.
6378
    [\\/]* | ?:[\\/]*)
6379
      re_direlt='/[^/][^/]*/\.\./'
6380
      # Canonicalize the pathname of ld
6381
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6382
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6383
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6384
      done
6385
      test -z "$LD" && LD="$ac_prog"
6386
      ;;
6387
  "")
6388
    # If it fails, then pretend we aren't using GCC.
6389
    ac_prog=ld
6390
    ;;
6391
  *)
6392
    # If it is relative, then search for the first ld in PATH.
6393
    with_gnu_ld=unknown
6394
    ;;
6395
  esac
6396
elif test "$with_gnu_ld" = yes; then
6397
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6398
$as_echo_n "checking for GNU ld... " >&6; }
6399
else
6400
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6401
$as_echo_n "checking for non-GNU ld... " >&6; }
6402
fi
6403
if ${lt_cv_path_LD+:} false; then :
6404
  $as_echo_n "(cached) " >&6
6405
else
6406
  if test -z "$LD"; then
6407
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6408
  for ac_dir in $PATH; do
6409
    IFS="$lt_save_ifs"
6410
    test -z "$ac_dir" && ac_dir=.
6411
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6412
      lt_cv_path_LD="$ac_dir/$ac_prog"
6413
      # Check to see if the program is GNU ld.  I'd rather use --version,
6414
      # but apparently some variants of GNU ld only accept -v.
6415
      # Break only if it was the GNU/non-GNU ld that we prefer.
6416
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6417
      *GNU* | *'with BFD'*)
6418
	test "$with_gnu_ld" != no && break
6419
	;;
6420
      *)
6421
	test "$with_gnu_ld" != yes && break
6422
	;;
6423
      esac
6424
    fi
6425
  done
6426
  IFS="$lt_save_ifs"
6427
else
6428
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6429
fi
6430
fi
6431
6432
LD="$lt_cv_path_LD"
6433
if test -n "$LD"; then
6434
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6435
$as_echo "$LD" >&6; }
6436
else
6437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438
$as_echo "no" >&6; }
6439
fi
6440
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6442
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6443
if ${lt_cv_prog_gnu_ld+:} false; then :
6444
  $as_echo_n "(cached) " >&6
6445
else
6446
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6447
case `$LD -v 2>&1 </dev/null` in
6448
*GNU* | *'with BFD'*)
6449
  lt_cv_prog_gnu_ld=yes
6450
  ;;
6451
*)
6452
  lt_cv_prog_gnu_ld=no
6453
  ;;
6454
esac
6455
fi
6456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6457
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6458
with_gnu_ld=$lt_cv_prog_gnu_ld
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6469
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6470
if ${lt_cv_path_NM+:} false; then :
6471
  $as_echo_n "(cached) " >&6
6472
else
6473
  if test -n "$NM"; then
6474
  # Let the user override the test.
6475
  lt_cv_path_NM="$NM"
6476
else
6477
  lt_nm_to_check="${ac_tool_prefix}nm"
6478
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6479
    lt_nm_to_check="$lt_nm_to_check nm"
6480
  fi
6481
  for lt_tmp_nm in $lt_nm_to_check; do
6482
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6483
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6484
      IFS="$lt_save_ifs"
6485
      test -z "$ac_dir" && ac_dir=.
6486
      tmp_nm="$ac_dir/$lt_tmp_nm"
6487
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6488
	# Check to see if the nm accepts a BSD-compat flag.
6489
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6490
	#   nm: unknown option "B" ignored
6491
	# Tru64's nm complains that /dev/null is an invalid object file
6492
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6493
	*/dev/null* | *'Invalid file or object type'*)
6494
	  lt_cv_path_NM="$tmp_nm -B"
6495
	  break
6496
	  ;;
6497
	*)
6498
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6499
	  */dev/null*)
6500
	    lt_cv_path_NM="$tmp_nm -p"
6501
	    break
6502
	    ;;
6503
	  *)
6504
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6505
	    continue # so that we can try to find one that supports BSD flags
6506
	    ;;
6507
	  esac
6508
	  ;;
6509
	esac
6510
      fi
6511
    done
6512
    IFS="$lt_save_ifs"
6513
  done
6514
  : ${lt_cv_path_NM=no}
6515
fi
6516
fi
6517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6518
$as_echo "$lt_cv_path_NM" >&6; }
6519
if test "$lt_cv_path_NM" != "no"; then
6520
  NM="$lt_cv_path_NM"
6521
else
6522
  # Didn't find any BSD compatible name lister, look for dumpbin.
6523
  if test -n "$DUMPBIN"; then :
6524
    # Let the user override the test.
6525
  else
6526
    if test -n "$ac_tool_prefix"; then
6527
  for ac_prog in dumpbin "link -dump"
6528
  do
6529
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6530
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532
$as_echo_n "checking for $ac_word... " >&6; }
6533
if ${ac_cv_prog_DUMPBIN+:} false; then :
6534
  $as_echo_n "(cached) " >&6
6535
else
6536
  if test -n "$DUMPBIN"; then
6537
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6538
else
6539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540
for as_dir in $PATH
6541
do
6542
  IFS=$as_save_IFS
6543
  test -z "$as_dir" && as_dir=.
6544
    for ac_exec_ext in '' $ac_executable_extensions; do
6545
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6547
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548
    break 2
6549
  fi
6550
done
6551
  done
6552
IFS=$as_save_IFS
6553
6554
fi
6555
fi
6556
DUMPBIN=$ac_cv_prog_DUMPBIN
6557
if test -n "$DUMPBIN"; then
6558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6559
$as_echo "$DUMPBIN" >&6; }
6560
else
6561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562
$as_echo "no" >&6; }
6563
fi
6564
6565
6566
    test -n "$DUMPBIN" && break
6567
  done
6568
fi
6569
if test -z "$DUMPBIN"; then
6570
  ac_ct_DUMPBIN=$DUMPBIN
6571
  for ac_prog in dumpbin "link -dump"
6572
do
6573
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6574
set dummy $ac_prog; ac_word=$2
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576
$as_echo_n "checking for $ac_word... " >&6; }
6577
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6578
  $as_echo_n "(cached) " >&6
6579
else
6580
  if test -n "$ac_ct_DUMPBIN"; then
6581
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6582
else
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584
for as_dir in $PATH
6585
do
6586
  IFS=$as_save_IFS
6587
  test -z "$as_dir" && as_dir=.
6588
    for ac_exec_ext in '' $ac_executable_extensions; do
6589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592
    break 2
6593
  fi
6594
done
6595
  done
6596
IFS=$as_save_IFS
6597
6598
fi
6599
fi
6600
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6601
if test -n "$ac_ct_DUMPBIN"; then
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6603
$as_echo "$ac_ct_DUMPBIN" >&6; }
6604
else
6605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606
$as_echo "no" >&6; }
6607
fi
6608
6609
6610
  test -n "$ac_ct_DUMPBIN" && break
6611
done
6612
6613
  if test "x$ac_ct_DUMPBIN" = x; then
6614
    DUMPBIN=":"
6615
  else
6616
    case $cross_compiling:$ac_tool_warned in
6617
yes:)
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620
ac_tool_warned=yes ;;
6621
esac
6622
    DUMPBIN=$ac_ct_DUMPBIN
6623
  fi
6624
fi
6625
6626
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6627
    *COFF*)
6628
      DUMPBIN="$DUMPBIN -symbols"
6629
      ;;
6630
    *)
6631
      DUMPBIN=:
6632
      ;;
6633
    esac
6634
  fi
6635
6636
  if test "$DUMPBIN" != ":"; then
6637
    NM="$DUMPBIN"
6638
  fi
6639
fi
6640
test -z "$NM" && NM=nm
6641
6642
6643
6644
6645
6646
6647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6648
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6649
if ${lt_cv_nm_interface+:} false; then :
6650
  $as_echo_n "(cached) " >&6
6651
else
6652
  lt_cv_nm_interface="BSD nm"
6653
  echo "int some_variable = 0;" > conftest.$ac_ext
6654
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6655
  (eval "$ac_compile" 2>conftest.err)
6656
  cat conftest.err >&5
6657
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6658
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6659
  cat conftest.err >&5
6660
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6661
  cat conftest.out >&5
6662
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6663
    lt_cv_nm_interface="MS dumpbin"
6664
  fi
6665
  rm -f conftest*
6666
fi
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6668
$as_echo "$lt_cv_nm_interface" >&6; }
6669
6670
# find the maximum length of command line arguments
6671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6672
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6673
if ${lt_cv_sys_max_cmd_len+:} false; then :
6674
  $as_echo_n "(cached) " >&6
6675
else
6676
    i=0
6677
  teststring="ABCD"
6678
6679
  case $build_os in
6680
  msdosdjgpp*)
6681
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6682
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6683
    # during glob expansion).  Even if it were fixed, the result of this
6684
    # check would be larger than it should be.
6685
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6686
    ;;
6687
6688
  gnu*)
6689
    # Under GNU Hurd, this test is not required because there is
6690
    # no limit to the length of command line arguments.
6691
    # Libtool will interpret -1 as no limit whatsoever
6692
    lt_cv_sys_max_cmd_len=-1;
6693
    ;;
6694
6695
  cygwin* | mingw* | cegcc*)
6696
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6697
    # about 5 minutes as the teststring grows exponentially.
6698
    # Worse, since 9x/ME are not pre-emptively multitasking,
6699
    # you end up with a "frozen" computer, even though with patience
6700
    # the test eventually succeeds (with a max line length of 256k).
6701
    # Instead, let's just punt: use the minimum linelength reported by
6702
    # all of the supported platforms: 8192 (on NT/2K/XP).
6703
    lt_cv_sys_max_cmd_len=8192;
6704
    ;;
6705
6706
  mint*)
6707
    # On MiNT this can take a long time and run out of memory.
6708
    lt_cv_sys_max_cmd_len=8192;
6709
    ;;
6710
6711
  amigaos*)
6712
    # On AmigaOS with pdksh, this test takes hours, literally.
6713
    # So we just punt and use a minimum line length of 8192.
6714
    lt_cv_sys_max_cmd_len=8192;
6715
    ;;
6716
6717
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6718
    # This has been around since 386BSD, at least.  Likely further.
6719
    if test -x /sbin/sysctl; then
6720
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6721
    elif test -x /usr/sbin/sysctl; then
6722
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6723
    else
6724
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6725
    fi
6726
    # And add a safety zone
6727
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6728
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6729
    ;;
6730
6731
  interix*)
6732
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6733
    lt_cv_sys_max_cmd_len=196608
6734
    ;;
6735
6736
  os2*)
6737
    # The test takes a long time on OS/2.
6738
    lt_cv_sys_max_cmd_len=8192
6739
    ;;
6740
6741
  osf*)
6742
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6743
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6744
    # nice to cause kernel panics so lets avoid the loop below.
6745
    # First set a reasonable default.
6746
    lt_cv_sys_max_cmd_len=16384
6747
    #
6748
    if test -x /sbin/sysconfig; then
6749
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6750
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6751
      esac
6752
    fi
6753
    ;;
6754
  sco3.2v5*)
6755
    lt_cv_sys_max_cmd_len=102400
6756
    ;;
6757
  sysv5* | sco5v6* | sysv4.2uw2*)
6758
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6759
    if test -n "$kargmax"; then
6760
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6761
    else
6762
      lt_cv_sys_max_cmd_len=32768
6763
    fi
6764
    ;;
6765
  *)
6766
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6767
    if test -n "$lt_cv_sys_max_cmd_len"; then
6768
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6769
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6770
    else
6771
      # Make teststring a little bigger before we do anything with it.
6772
      # a 1K string should be a reasonable start.
6773
      for i in 1 2 3 4 5 6 7 8 ; do
6774
        teststring=$teststring$teststring
6775
      done
6776
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6777
      # If test is not a shell built-in, we'll probably end up computing a
6778
      # maximum length that is only half of the actual maximum length, but
6779
      # we can't tell.
6780
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6781
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6782
	      test $i != 17 # 1/2 MB should be enough
6783
      do
6784
        i=`expr $i + 1`
6785
        teststring=$teststring$teststring
6786
      done
6787
      # Only check the string length outside the loop.
6788
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6789
      teststring=
6790
      # Add a significant safety factor because C++ compilers can tack on
6791
      # massive amounts of additional arguments before passing them to the
6792
      # linker.  It appears as though 1/2 is a usable value.
6793
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6794
    fi
6795
    ;;
6796
  esac
6797
6798
fi
6799
6800
if test -n $lt_cv_sys_max_cmd_len ; then
6801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6802
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6803
else
6804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6805
$as_echo "none" >&6; }
6806
fi
6807
max_cmd_len=$lt_cv_sys_max_cmd_len
6808
6809
6810
6811
6812
6813
6814
: ${CP="cp -f"}
6815
: ${MV="mv -f"}
6816
: ${RM="rm -f"}
6817
6818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6819
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6820
# Try some XSI features
6821
xsi_shell=no
6822
( _lt_dummy="a/b/c"
6823
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6824
      = c,a/b,b/c, \
6825
    && eval 'test $(( 1 + 1 )) -eq 2 \
6826
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6827
  && xsi_shell=yes
6828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6829
$as_echo "$xsi_shell" >&6; }
6830
6831
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6833
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6834
lt_shell_append=no
6835
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6836
    >/dev/null 2>&1 \
6837
  && lt_shell_append=yes
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6839
$as_echo "$lt_shell_append" >&6; }
6840
6841
6842
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6843
  lt_unset=unset
6844
else
6845
  lt_unset=false
6846
fi
6847
6848
6849
6850
6851
6852
# test EBCDIC or ASCII
6853
case `echo X|tr X '\101'` in
6854
 A) # ASCII based system
6855
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6856
  lt_SP2NL='tr \040 \012'
6857
  lt_NL2SP='tr \015\012 \040\040'
6858
  ;;
6859
 *) # EBCDIC based system
6860
  lt_SP2NL='tr \100 \n'
6861
  lt_NL2SP='tr \r\n \100\100'
6862
  ;;
6863
esac
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6874
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6875
if ${lt_cv_to_host_file_cmd+:} false; then :
6876
  $as_echo_n "(cached) " >&6
6877
else
6878
  case $host in
6879
  *-*-mingw* )
6880
    case $build in
6881
      *-*-mingw* ) # actually msys
6882
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6883
        ;;
6884
      *-*-cygwin* )
6885
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6886
        ;;
6887
      * ) # otherwise, assume *nix
6888
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6889
        ;;
6890
    esac
6891
    ;;
6892
  *-*-cygwin* )
6893
    case $build in
6894
      *-*-mingw* ) # actually msys
6895
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6896
        ;;
6897
      *-*-cygwin* )
6898
        lt_cv_to_host_file_cmd=func_convert_file_noop
6899
        ;;
6900
      * ) # otherwise, assume *nix
6901
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6902
        ;;
6903
    esac
6904
    ;;
6905
  * ) # unhandled hosts (and "normal" native builds)
6906
    lt_cv_to_host_file_cmd=func_convert_file_noop
6907
    ;;
6908
esac
6909
6910
fi
6911
6912
to_host_file_cmd=$lt_cv_to_host_file_cmd
6913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6914
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6915
6916
6917
6918
6919
6920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6921
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6922
if ${lt_cv_to_tool_file_cmd+:} false; then :
6923
  $as_echo_n "(cached) " >&6
6924
else
6925
  #assume ordinary cross tools, or native build.
6926
lt_cv_to_tool_file_cmd=func_convert_file_noop
6927
case $host in
6928
  *-*-mingw* )
6929
    case $build in
6930
      *-*-mingw* ) # actually msys
6931
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6932
        ;;
6933
    esac
6934
    ;;
6935
esac
6936
6937
fi
6938
6939
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6941
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6942
6943
6944
6945
6946
6947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6948
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6949
if ${lt_cv_ld_reload_flag+:} false; then :
6950
  $as_echo_n "(cached) " >&6
6951
else
6952
  lt_cv_ld_reload_flag='-r'
6953
fi
6954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6955
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6956
reload_flag=$lt_cv_ld_reload_flag
6957
case $reload_flag in
6958
"" | " "*) ;;
6959
*) reload_flag=" $reload_flag" ;;
6960
esac
6961
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6962
case $host_os in
6963
  cygwin* | mingw* | pw32* | cegcc*)
6964
    if test "$GCC" != yes; then
6965
      reload_cmds=false
6966
    fi
6967
    ;;
6968
  darwin*)
6969
    if test "$GCC" = yes; then
6970
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6971
    else
6972
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6973
    fi
6974
    ;;
6975
esac
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
if test -n "$ac_tool_prefix"; then
6986
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6987
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989
$as_echo_n "checking for $ac_word... " >&6; }
6990
if ${ac_cv_prog_OBJDUMP+:} false; then :
6991
  $as_echo_n "(cached) " >&6
6992
else
6993
  if test -n "$OBJDUMP"; then
6994
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6995
else
6996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997
for as_dir in $PATH
6998
do
6999
  IFS=$as_save_IFS
7000
  test -z "$as_dir" && as_dir=.
7001
    for ac_exec_ext in '' $ac_executable_extensions; do
7002
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7004
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005
    break 2
7006
  fi
7007
done
7008
  done
7009
IFS=$as_save_IFS
7010
7011
fi
7012
fi
7013
OBJDUMP=$ac_cv_prog_OBJDUMP
7014
if test -n "$OBJDUMP"; then
7015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7016
$as_echo "$OBJDUMP" >&6; }
7017
else
7018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019
$as_echo "no" >&6; }
7020
fi
7021
7022
7023
fi
7024
if test -z "$ac_cv_prog_OBJDUMP"; then
7025
  ac_ct_OBJDUMP=$OBJDUMP
7026
  # Extract the first word of "objdump", so it can be a program name with args.
7027
set dummy objdump; ac_word=$2
7028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029
$as_echo_n "checking for $ac_word... " >&6; }
7030
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7031
  $as_echo_n "(cached) " >&6
7032
else
7033
  if test -n "$ac_ct_OBJDUMP"; then
7034
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7035
else
7036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037
for as_dir in $PATH
7038
do
7039
  IFS=$as_save_IFS
7040
  test -z "$as_dir" && as_dir=.
7041
    for ac_exec_ext in '' $ac_executable_extensions; do
7042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045
    break 2
7046
  fi
7047
done
7048
  done
7049
IFS=$as_save_IFS
7050
7051
fi
7052
fi
7053
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7054
if test -n "$ac_ct_OBJDUMP"; then
7055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7056
$as_echo "$ac_ct_OBJDUMP" >&6; }
7057
else
7058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059
$as_echo "no" >&6; }
7060
fi
7061
7062
  if test "x$ac_ct_OBJDUMP" = x; then
7063
    OBJDUMP="false"
7064
  else
7065
    case $cross_compiling:$ac_tool_warned in
7066
yes:)
7067
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069
ac_tool_warned=yes ;;
7070
esac
7071
    OBJDUMP=$ac_ct_OBJDUMP
7072
  fi
7073
else
7074
  OBJDUMP="$ac_cv_prog_OBJDUMP"
7075
fi
7076
7077
test -z "$OBJDUMP" && OBJDUMP=objdump
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7088
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7089
if ${lt_cv_deplibs_check_method+:} false; then :
7090
  $as_echo_n "(cached) " >&6
7091
else
7092
  lt_cv_file_magic_cmd='$MAGIC_CMD'
7093
lt_cv_file_magic_test_file=
7094
lt_cv_deplibs_check_method='unknown'
7095
# Need to set the preceding variable on all platforms that support
7096
# interlibrary dependencies.
7097
# 'none' -- dependencies not supported.
7098
# `unknown' -- same as none, but documents that we really don't know.
7099
# 'pass_all' -- all dependencies passed with no checks.
7100
# 'test_compile' -- check by making test program.
7101
# 'file_magic [[regex]]' -- check by looking for files in library path
7102
# which responds to the $file_magic_cmd with a given extended regex.
7103
# If you have `file' or equivalent on your system and you're not sure
7104
# whether `pass_all' will *always* work, you probably want this one.
7105
7106
case $host_os in
7107
aix[4-9]*)
7108
  lt_cv_deplibs_check_method=pass_all
7109
  ;;
7110
7111
beos*)
7112
  lt_cv_deplibs_check_method=pass_all
7113
  ;;
7114
7115
bsdi[45]*)
7116
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7117
  lt_cv_file_magic_cmd='/usr/bin/file -L'
7118
  lt_cv_file_magic_test_file=/shlib/libc.so
7119
  ;;
7120
7121
cygwin*)
7122
  # func_win32_libid is a shell function defined in ltmain.sh
7123
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7124
  lt_cv_file_magic_cmd='func_win32_libid'
7125
  ;;
7126
7127
mingw* | pw32*)
7128
  # Base MSYS/MinGW do not provide the 'file' command needed by
7129
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7130
  # unless we find 'file', for example because we are cross-compiling.
7131
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7132
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7133
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7134
    lt_cv_file_magic_cmd='func_win32_libid'
7135
  else
7136
    # Keep this pattern in sync with the one in func_win32_libid.
7137
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7138
    lt_cv_file_magic_cmd='$OBJDUMP -f'
7139
  fi
7140
  ;;
7141
7142
cegcc*)
7143
  # use the weaker test based on 'objdump'. See mingw*.
7144
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7145
  lt_cv_file_magic_cmd='$OBJDUMP -f'
7146
  ;;
7147
7148
darwin* | rhapsody*)
7149
  lt_cv_deplibs_check_method=pass_all
7150
  ;;
7151
7152
freebsd* | dragonfly*)
7153
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7154
    case $host_cpu in
7155
    i*86 )
7156
      # Not sure whether the presence of OpenBSD here was a mistake.
7157
      # Let's accept both of them until this is cleared up.
7158
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7159
      lt_cv_file_magic_cmd=/usr/bin/file
7160
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7161
      ;;
7162
    esac
7163
  else
7164
    lt_cv_deplibs_check_method=pass_all
7165
  fi
7166
  ;;
7167
7168
gnu*)
7169
  lt_cv_deplibs_check_method=pass_all
7170
  ;;
7171
7172
haiku*)
7173
  lt_cv_deplibs_check_method=pass_all
7174
  ;;
7175
7176
hpux10.20* | hpux11*)
7177
  lt_cv_file_magic_cmd=/usr/bin/file
7178
  case $host_cpu in
7179
  ia64*)
7180
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7181
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7182
    ;;
7183
  hppa*64*)
7184
    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]'
7185
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7186
    ;;
7187
  *)
7188
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7189
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7190
    ;;
7191
  esac
7192
  ;;
7193
7194
interix[3-9]*)
7195
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7196
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7197
  ;;
7198
7199
irix5* | irix6* | nonstopux*)
7200
  case $LD in
7201
  *-32|*"-32 ") libmagic=32-bit;;
7202
  *-n32|*"-n32 ") libmagic=N32;;
7203
  *-64|*"-64 ") libmagic=64-bit;;
7204
  *) libmagic=never-match;;
7205
  esac
7206
  lt_cv_deplibs_check_method=pass_all
7207
  ;;
7208
7209
# This must be glibc/ELF.
7210
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7211
  lt_cv_deplibs_check_method=pass_all
7212
  ;;
7213
7214
netbsd* | netbsdelf*-gnu)
7215
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7216
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7217
  else
7218
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7219
  fi
7220
  ;;
7221
7222
newos6*)
7223
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7224
  lt_cv_file_magic_cmd=/usr/bin/file
7225
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7226
  ;;
7227
7228
*nto* | *qnx*)
7229
  lt_cv_deplibs_check_method=pass_all
7230
  ;;
7231
7232
openbsd*)
7233
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7235
  else
7236
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7237
  fi
7238
  ;;
7239
7240
osf3* | osf4* | osf5*)
7241
  lt_cv_deplibs_check_method=pass_all
7242
  ;;
7243
7244
rdos*)
7245
  lt_cv_deplibs_check_method=pass_all
7246
  ;;
7247
7248
solaris*)
7249
  lt_cv_deplibs_check_method=pass_all
7250
  ;;
7251
7252
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7253
  lt_cv_deplibs_check_method=pass_all
7254
  ;;
7255
7256
sysv4 | sysv4.3*)
7257
  case $host_vendor in
7258
  motorola)
7259
    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]'
7260
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7261
    ;;
7262
  ncr)
7263
    lt_cv_deplibs_check_method=pass_all
7264
    ;;
7265
  sequent)
7266
    lt_cv_file_magic_cmd='/bin/file'
7267
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7268
    ;;
7269
  sni)
7270
    lt_cv_file_magic_cmd='/bin/file'
7271
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7272
    lt_cv_file_magic_test_file=/lib/libc.so
7273
    ;;
7274
  siemens)
7275
    lt_cv_deplibs_check_method=pass_all
7276
    ;;
7277
  pc)
7278
    lt_cv_deplibs_check_method=pass_all
7279
    ;;
7280
  esac
7281
  ;;
7282
7283
tpf*)
7284
  lt_cv_deplibs_check_method=pass_all
7285
  ;;
7286
esac
7287
7288
fi
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7290
$as_echo "$lt_cv_deplibs_check_method" >&6; }
7291
7292
file_magic_glob=
7293
want_nocaseglob=no
7294
if test "$build" = "$host"; then
7295
  case $host_os in
7296
  mingw* | pw32*)
7297
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7298
      want_nocaseglob=yes
7299
    else
7300
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7301
    fi
7302
    ;;
7303
  esac
7304
fi
7305
7306
file_magic_cmd=$lt_cv_file_magic_cmd
7307
deplibs_check_method=$lt_cv_deplibs_check_method
7308
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
if test -n "$ac_tool_prefix"; then
7332
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7333
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335
$as_echo_n "checking for $ac_word... " >&6; }
7336
if ${ac_cv_prog_DLLTOOL+:} false; then :
7337
  $as_echo_n "(cached) " >&6
7338
else
7339
  if test -n "$DLLTOOL"; then
7340
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7341
else
7342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343
for as_dir in $PATH
7344
do
7345
  IFS=$as_save_IFS
7346
  test -z "$as_dir" && as_dir=.
7347
    for ac_exec_ext in '' $ac_executable_extensions; do
7348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351
    break 2
7352
  fi
7353
done
7354
  done
7355
IFS=$as_save_IFS
7356
7357
fi
7358
fi
7359
DLLTOOL=$ac_cv_prog_DLLTOOL
7360
if test -n "$DLLTOOL"; then
7361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7362
$as_echo "$DLLTOOL" >&6; }
7363
else
7364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365
$as_echo "no" >&6; }
7366
fi
7367
7368
7369
fi
7370
if test -z "$ac_cv_prog_DLLTOOL"; then
7371
  ac_ct_DLLTOOL=$DLLTOOL
7372
  # Extract the first word of "dlltool", so it can be a program name with args.
7373
set dummy dlltool; ac_word=$2
7374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375
$as_echo_n "checking for $ac_word... " >&6; }
7376
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7377
  $as_echo_n "(cached) " >&6
7378
else
7379
  if test -n "$ac_ct_DLLTOOL"; then
7380
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7381
else
7382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383
for as_dir in $PATH
7384
do
7385
  IFS=$as_save_IFS
7386
  test -z "$as_dir" && as_dir=.
7387
    for ac_exec_ext in '' $ac_executable_extensions; do
7388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7390
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391
    break 2
7392
  fi
7393
done
7394
  done
7395
IFS=$as_save_IFS
7396
7397
fi
7398
fi
7399
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7400
if test -n "$ac_ct_DLLTOOL"; then
7401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7402
$as_echo "$ac_ct_DLLTOOL" >&6; }
7403
else
7404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405
$as_echo "no" >&6; }
7406
fi
7407
7408
  if test "x$ac_ct_DLLTOOL" = x; then
7409
    DLLTOOL="false"
7410
  else
7411
    case $cross_compiling:$ac_tool_warned in
7412
yes:)
7413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415
ac_tool_warned=yes ;;
7416
esac
7417
    DLLTOOL=$ac_ct_DLLTOOL
7418
  fi
7419
else
7420
  DLLTOOL="$ac_cv_prog_DLLTOOL"
7421
fi
7422
7423
test -z "$DLLTOOL" && DLLTOOL=dlltool
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7435
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7436
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7437
  $as_echo_n "(cached) " >&6
7438
else
7439
  lt_cv_sharedlib_from_linklib_cmd='unknown'
7440
7441
case $host_os in
7442
cygwin* | mingw* | pw32* | cegcc*)
7443
  # two different shell functions defined in ltmain.sh
7444
  # decide which to use based on capabilities of $DLLTOOL
7445
  case `$DLLTOOL --help 2>&1` in
7446
  *--identify-strict*)
7447
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7448
    ;;
7449
  *)
7450
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7451
    ;;
7452
  esac
7453
  ;;
7454
*)
7455
  # fallback: assume linklib IS sharedlib
7456
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7457
  ;;
7458
esac
7459
7460
fi
7461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7462
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7463
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7464
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7465
7466
7467
7468
7469
7470
7471
7472
if test -n "$ac_tool_prefix"; then
7473
  for ac_prog in ar
7474
  do
7475
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7476
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478
$as_echo_n "checking for $ac_word... " >&6; }
7479
if ${ac_cv_prog_AR+:} false; then :
7480
  $as_echo_n "(cached) " >&6
7481
else
7482
  if test -n "$AR"; then
7483
  ac_cv_prog_AR="$AR" # Let the user override the test.
7484
else
7485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486
for as_dir in $PATH
7487
do
7488
  IFS=$as_save_IFS
7489
  test -z "$as_dir" && as_dir=.
7490
    for ac_exec_ext in '' $ac_executable_extensions; do
7491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7493
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494
    break 2
7495
  fi
7496
done
7497
  done
7498
IFS=$as_save_IFS
7499
7500
fi
7501
fi
7502
AR=$ac_cv_prog_AR
7503
if test -n "$AR"; then
7504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7505
$as_echo "$AR" >&6; }
7506
else
7507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508
$as_echo "no" >&6; }
7509
fi
7510
7511
7512
    test -n "$AR" && break
7513
  done
7514
fi
7515
if test -z "$AR"; then
7516
  ac_ct_AR=$AR
7517
  for ac_prog in ar
7518
do
7519
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7520
set dummy $ac_prog; ac_word=$2
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522
$as_echo_n "checking for $ac_word... " >&6; }
7523
if ${ac_cv_prog_ac_ct_AR+:} false; then :
7524
  $as_echo_n "(cached) " >&6
7525
else
7526
  if test -n "$ac_ct_AR"; then
7527
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7528
else
7529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530
for as_dir in $PATH
7531
do
7532
  IFS=$as_save_IFS
7533
  test -z "$as_dir" && as_dir=.
7534
    for ac_exec_ext in '' $ac_executable_extensions; do
7535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536
    ac_cv_prog_ac_ct_AR="$ac_prog"
7537
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538
    break 2
7539
  fi
7540
done
7541
  done
7542
IFS=$as_save_IFS
7543
7544
fi
7545
fi
7546
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7547
if test -n "$ac_ct_AR"; then
7548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7549
$as_echo "$ac_ct_AR" >&6; }
7550
else
7551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552
$as_echo "no" >&6; }
7553
fi
7554
7555
7556
  test -n "$ac_ct_AR" && break
7557
done
7558
7559
  if test "x$ac_ct_AR" = x; then
7560
    AR="false"
7561
  else
7562
    case $cross_compiling:$ac_tool_warned in
7563
yes:)
7564
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566
ac_tool_warned=yes ;;
7567
esac
7568
    AR=$ac_ct_AR
7569
  fi
7570
fi
7571
7572
: ${AR=ar}
7573
: ${AR_FLAGS=cru}
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7586
$as_echo_n "checking for archiver @FILE support... " >&6; }
7587
if ${lt_cv_ar_at_file+:} false; then :
7588
  $as_echo_n "(cached) " >&6
7589
else
7590
  lt_cv_ar_at_file=no
7591
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592
/* end confdefs.h.  */
7593
7594
int
7595
main ()
7596
{
7597
7598
  ;
7599
  return 0;
7600
}
7601
_ACEOF
7602
if ac_fn_c_try_compile "$LINENO"; then :
7603
  echo conftest.$ac_objext > conftest.lst
7604
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7605
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7606
  (eval $lt_ar_try) 2>&5
7607
  ac_status=$?
7608
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609
  test $ac_status = 0; }
7610
      if test "$ac_status" -eq 0; then
7611
	# Ensure the archiver fails upon bogus file names.
7612
	rm -f conftest.$ac_objext libconftest.a
7613
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7614
  (eval $lt_ar_try) 2>&5
7615
  ac_status=$?
7616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617
  test $ac_status = 0; }
7618
	if test "$ac_status" -ne 0; then
7619
          lt_cv_ar_at_file=@
7620
        fi
7621
      fi
7622
      rm -f conftest.* libconftest.a
7623
7624
fi
7625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626
7627
fi
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7629
$as_echo "$lt_cv_ar_at_file" >&6; }
7630
7631
if test "x$lt_cv_ar_at_file" = xno; then
7632
  archiver_list_spec=
7633
else
7634
  archiver_list_spec=$lt_cv_ar_at_file
7635
fi
7636
7637
7638
7639
7640
7641
7642
7643
if test -n "$ac_tool_prefix"; then
7644
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7645
set dummy ${ac_tool_prefix}strip; ac_word=$2
7646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647
$as_echo_n "checking for $ac_word... " >&6; }
7648
if ${ac_cv_prog_STRIP+:} false; then :
7649
  $as_echo_n "(cached) " >&6
7650
else
7651
  if test -n "$STRIP"; then
7652
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7653
else
7654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655
for as_dir in $PATH
7656
do
7657
  IFS=$as_save_IFS
7658
  test -z "$as_dir" && as_dir=.
7659
    for ac_exec_ext in '' $ac_executable_extensions; do
7660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7662
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663
    break 2
7664
  fi
7665
done
7666
  done
7667
IFS=$as_save_IFS
7668
7669
fi
7670
fi
7671
STRIP=$ac_cv_prog_STRIP
7672
if test -n "$STRIP"; then
7673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7674
$as_echo "$STRIP" >&6; }
7675
else
7676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677
$as_echo "no" >&6; }
7678
fi
7679
7680
7681
fi
7682
if test -z "$ac_cv_prog_STRIP"; then
7683
  ac_ct_STRIP=$STRIP
7684
  # Extract the first word of "strip", so it can be a program name with args.
7685
set dummy strip; ac_word=$2
7686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687
$as_echo_n "checking for $ac_word... " >&6; }
7688
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7689
  $as_echo_n "(cached) " >&6
7690
else
7691
  if test -n "$ac_ct_STRIP"; then
7692
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7693
else
7694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695
for as_dir in $PATH
7696
do
7697
  IFS=$as_save_IFS
7698
  test -z "$as_dir" && as_dir=.
7699
    for ac_exec_ext in '' $ac_executable_extensions; do
7700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701
    ac_cv_prog_ac_ct_STRIP="strip"
7702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703
    break 2
7704
  fi
7705
done
7706
  done
7707
IFS=$as_save_IFS
7708
7709
fi
7710
fi
7711
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7712
if test -n "$ac_ct_STRIP"; then
7713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7714
$as_echo "$ac_ct_STRIP" >&6; }
7715
else
7716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717
$as_echo "no" >&6; }
7718
fi
7719
7720
  if test "x$ac_ct_STRIP" = x; then
7721
    STRIP=":"
7722
  else
7723
    case $cross_compiling:$ac_tool_warned in
7724
yes:)
7725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727
ac_tool_warned=yes ;;
7728
esac
7729
    STRIP=$ac_ct_STRIP
7730
  fi
7731
else
7732
  STRIP="$ac_cv_prog_STRIP"
7733
fi
7734
7735
test -z "$STRIP" && STRIP=:
7736
7737
7738
7739
7740
7741
7742
if test -n "$ac_tool_prefix"; then
7743
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7744
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746
$as_echo_n "checking for $ac_word... " >&6; }
7747
if ${ac_cv_prog_RANLIB+:} false; then :
7748
  $as_echo_n "(cached) " >&6
7749
else
7750
  if test -n "$RANLIB"; then
7751
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7752
else
7753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754
for as_dir in $PATH
7755
do
7756
  IFS=$as_save_IFS
7757
  test -z "$as_dir" && as_dir=.
7758
    for ac_exec_ext in '' $ac_executable_extensions; do
7759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7761
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762
    break 2
7763
  fi
7764
done
7765
  done
7766
IFS=$as_save_IFS
7767
7768
fi
7769
fi
7770
RANLIB=$ac_cv_prog_RANLIB
7771
if test -n "$RANLIB"; then
7772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7773
$as_echo "$RANLIB" >&6; }
7774
else
7775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776
$as_echo "no" >&6; }
7777
fi
7778
7779
7780
fi
7781
if test -z "$ac_cv_prog_RANLIB"; then
7782
  ac_ct_RANLIB=$RANLIB
7783
  # Extract the first word of "ranlib", so it can be a program name with args.
7784
set dummy ranlib; ac_word=$2
7785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786
$as_echo_n "checking for $ac_word... " >&6; }
7787
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7788
  $as_echo_n "(cached) " >&6
7789
else
7790
  if test -n "$ac_ct_RANLIB"; then
7791
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7792
else
7793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794
for as_dir in $PATH
7795
do
7796
  IFS=$as_save_IFS
7797
  test -z "$as_dir" && as_dir=.
7798
    for ac_exec_ext in '' $ac_executable_extensions; do
7799
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7801
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802
    break 2
7803
  fi
7804
done
7805
  done
7806
IFS=$as_save_IFS
7807
7808
fi
7809
fi
7810
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7811
if test -n "$ac_ct_RANLIB"; then
7812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7813
$as_echo "$ac_ct_RANLIB" >&6; }
7814
else
7815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816
$as_echo "no" >&6; }
7817
fi
7818
7819
  if test "x$ac_ct_RANLIB" = x; then
7820
    RANLIB=":"
7821
  else
7822
    case $cross_compiling:$ac_tool_warned in
7823
yes:)
7824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826
ac_tool_warned=yes ;;
7827
esac
7828
    RANLIB=$ac_ct_RANLIB
7829
  fi
7830
else
7831
  RANLIB="$ac_cv_prog_RANLIB"
7832
fi
7833
7834
test -z "$RANLIB" && RANLIB=:
7835
7836
7837
7838
7839
7840
7841
# Determine commands to create old-style static archives.
7842
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7843
old_postinstall_cmds='chmod 644 $oldlib'
7844
old_postuninstall_cmds=
7845
7846
if test -n "$RANLIB"; then
7847
  case $host_os in
7848
  openbsd*)
7849
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7850
    ;;
7851
  *)
7852
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7853
    ;;
7854
  esac
7855
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7856
fi
7857
7858
case $host_os in
7859
  darwin*)
7860
    lock_old_archive_extraction=yes ;;
7861
  *)
7862
    lock_old_archive_extraction=no ;;
7863
esac
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
# If no C compiler was specified, use CC.
7904
LTCC=${LTCC-"$CC"}
7905
7906
# If no C compiler flags were specified, use CFLAGS.
7907
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7908
7909
# Allow CC to be a program name with arguments.
7910
compiler=$CC
7911
7912
7913
# Check for command to grab the raw symbol name followed by C symbol from nm.
7914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7915
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7916
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7917
  $as_echo_n "(cached) " >&6
7918
else
7919
7920
# These are sane defaults that work on at least a few old systems.
7921
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7922
7923
# Character class describing NM global symbol codes.
7924
symcode='[BCDEGRST]'
7925
7926
# Regexp to match symbols that can be accessed directly from C.
7927
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7928
7929
# Define system-specific variables.
7930
case $host_os in
7931
aix*)
7932
  symcode='[BCDT]'
7933
  ;;
7934
cygwin* | mingw* | pw32* | cegcc*)
7935
  symcode='[ABCDGISTW]'
7936
  ;;
7937
hpux*)
7938
  if test "$host_cpu" = ia64; then
7939
    symcode='[ABCDEGRST]'
7940
  fi
7941
  ;;
7942
irix* | nonstopux*)
7943
  symcode='[BCDEGRST]'
7944
  ;;
7945
osf*)
7946
  symcode='[BCDEGQRST]'
7947
  ;;
7948
solaris*)
7949
  symcode='[BDRT]'
7950
  ;;
7951
sco3.2v5*)
7952
  symcode='[DT]'
7953
  ;;
7954
sysv4.2uw2*)
7955
  symcode='[DT]'
7956
  ;;
7957
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7958
  symcode='[ABDT]'
7959
  ;;
7960
sysv4)
7961
  symcode='[DFNSTU]'
7962
  ;;
7963
esac
7964
7965
# If we're using GNU nm, then use its standard symbol codes.
7966
case `$NM -V 2>&1` in
7967
*GNU* | *'with BFD'*)
7968
  symcode='[ABCDGIRSTW]' ;;
7969
esac
7970
7971
# Transform an extracted symbol line into a proper C declaration.
7972
# Some systems (esp. on ia64) link data and code symbols differently,
7973
# so use this general approach.
7974
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7975
7976
# Transform an extracted symbol line into symbol name and symbol address
7977
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7978
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'"
7979
7980
# Handle CRLF in mingw tool chain
7981
opt_cr=
7982
case $build_os in
7983
mingw*)
7984
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7985
  ;;
7986
esac
7987
7988
# Try without a prefix underscore, then with it.
7989
for ac_symprfx in "" "_"; do
7990
7991
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7992
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7993
7994
  # Write the raw and C identifiers.
7995
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7996
    # Fake it for dumpbin and say T for any non-static function
7997
    # and D for any global variable.
7998
    # Also find C++ and __fastcall symbols from MSVC++,
7999
    # which start with @ or ?.
8000
    lt_cv_sys_global_symbol_pipe="$AWK '"\
8001
"     {last_section=section; section=\$ 3};"\
8002
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8003
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8004
"     \$ 0!~/External *\|/{next};"\
8005
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8006
"     {if(hide[section]) next};"\
8007
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8008
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8009
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8010
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8011
"     ' prfx=^$ac_symprfx"
8012
  else
8013
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8014
  fi
8015
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8016
8017
  # Check to see that the pipe works correctly.
8018
  pipe_works=no
8019
8020
  rm -f conftest*
8021
  cat > conftest.$ac_ext <<_LT_EOF
8022
#ifdef __cplusplus
8023
extern "C" {
8024
#endif
8025
char nm_test_var;
8026
void nm_test_func(void);
8027
void nm_test_func(void){}
8028
#ifdef __cplusplus
8029
}
8030
#endif
8031
int main(){nm_test_var='a';nm_test_func();return(0);}
8032
_LT_EOF
8033
8034
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035
  (eval $ac_compile) 2>&5
8036
  ac_status=$?
8037
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038
  test $ac_status = 0; }; then
8039
    # Now try to grab the symbols.
8040
    nlist=conftest.nm
8041
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8042
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8043
  ac_status=$?
8044
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045
  test $ac_status = 0; } && test -s "$nlist"; then
8046
      # Try sorting and uniquifying the output.
8047
      if sort "$nlist" | uniq > "$nlist"T; then
8048
	mv -f "$nlist"T "$nlist"
8049
      else
8050
	rm -f "$nlist"T
8051
      fi
8052
8053
      # Make sure that we snagged all the symbols we need.
8054
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8055
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8056
	  cat <<_LT_EOF > conftest.$ac_ext
8057
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8058
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8059
/* DATA imports from DLLs on WIN32 con't be const, because runtime
8060
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8061
# define LT_DLSYM_CONST
8062
#elif defined(__osf__)
8063
/* This system does not cope well with relocations in const data.  */
8064
# define LT_DLSYM_CONST
8065
#else
8066
# define LT_DLSYM_CONST const
8067
#endif
8068
8069
#ifdef __cplusplus
8070
extern "C" {
8071
#endif
8072
8073
_LT_EOF
8074
	  # Now generate the symbol file.
8075
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8076
8077
	  cat <<_LT_EOF >> conftest.$ac_ext
8078
8079
/* The mapping between symbol names and symbols.  */
8080
LT_DLSYM_CONST struct {
8081
  const char *name;
8082
  void       *address;
8083
}
8084
lt__PROGRAM__LTX_preloaded_symbols[] =
8085
{
8086
  { "@PROGRAM@", (void *) 0 },
8087
_LT_EOF
8088
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8089
	  cat <<\_LT_EOF >> conftest.$ac_ext
8090
  {0, (void *) 0}
8091
};
8092
8093
/* This works around a problem in FreeBSD linker */
8094
#ifdef FREEBSD_WORKAROUND
8095
static const void *lt_preloaded_setup() {
8096
  return lt__PROGRAM__LTX_preloaded_symbols;
8097
}
8098
#endif
8099
8100
#ifdef __cplusplus
8101
}
8102
#endif
8103
_LT_EOF
8104
	  # Now try linking the two files.
8105
	  mv conftest.$ac_objext conftstm.$ac_objext
8106
	  lt_globsym_save_LIBS=$LIBS
8107
	  lt_globsym_save_CFLAGS=$CFLAGS
8108
	  LIBS="conftstm.$ac_objext"
8109
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8110
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8111
  (eval $ac_link) 2>&5
8112
  ac_status=$?
8113
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8115
	    pipe_works=yes
8116
	  fi
8117
	  LIBS=$lt_globsym_save_LIBS
8118
	  CFLAGS=$lt_globsym_save_CFLAGS
8119
	else
8120
	  echo "cannot find nm_test_func in $nlist" >&5
8121
	fi
8122
      else
8123
	echo "cannot find nm_test_var in $nlist" >&5
8124
      fi
8125
    else
8126
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8127
    fi
8128
  else
8129
    echo "$progname: failed program was:" >&5
8130
    cat conftest.$ac_ext >&5
8131
  fi
8132
  rm -rf conftest* conftst*
8133
8134
  # Do not use the global_symbol_pipe unless it works.
8135
  if test "$pipe_works" = yes; then
8136
    break
8137
  else
8138
    lt_cv_sys_global_symbol_pipe=
8139
  fi
8140
done
8141
8142
fi
8143
8144
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8145
  lt_cv_sys_global_symbol_to_cdecl=
8146
fi
8147
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8149
$as_echo "failed" >&6; }
8150
else
8151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8152
$as_echo "ok" >&6; }
8153
fi
8154
8155
# Response file support.
8156
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8157
  nm_file_list_spec='@'
8158
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8159
  nm_file_list_spec='@'
8160
fi
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8189
$as_echo_n "checking for sysroot... " >&6; }
8190
8191
# Check whether --with-sysroot was given.
8192
if test "${with_sysroot+set}" = set; then :
8193
  withval=$with_sysroot;
8194
else
8195
  with_sysroot=no
8196
fi
8197
8198
8199
lt_sysroot=
8200
case ${with_sysroot} in #(
8201
 yes)
8202
   if test "$GCC" = yes; then
8203
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8204
   fi
8205
   ;; #(
8206
 /*)
8207
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8208
   ;; #(
8209
 no|'')
8210
   ;; #(
8211
 *)
8212
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8213
$as_echo "${with_sysroot}" >&6; }
8214
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8215
   ;;
8216
esac
8217
8218
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8219
$as_echo "${lt_sysroot:-no}" >&6; }
8220
8221
8222
8223
8224
8225
# Check whether --enable-libtool-lock was given.
8226
if test "${enable_libtool_lock+set}" = set; then :
8227
  enableval=$enable_libtool_lock;
8228
fi
8229
8230
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8231
8232
# Some flags need to be propagated to the compiler or linker for good
8233
# libtool support.
8234
case $host in
8235
ia64-*-hpux*)
8236
  # Find out which ABI we are using.
8237
  echo 'int i;' > conftest.$ac_ext
8238
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8239
  (eval $ac_compile) 2>&5
8240
  ac_status=$?
8241
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242
  test $ac_status = 0; }; then
8243
    case `/usr/bin/file conftest.$ac_objext` in
8244
      *ELF-32*)
8245
	HPUX_IA64_MODE="32"
8246
	;;
8247
      *ELF-64*)
8248
	HPUX_IA64_MODE="64"
8249
	;;
8250
    esac
8251
  fi
8252
  rm -rf conftest*
8253
  ;;
8254
*-*-irix6*)
8255
  # Find out which ABI we are using.
8256
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8257
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8258
  (eval $ac_compile) 2>&5
8259
  ac_status=$?
8260
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261
  test $ac_status = 0; }; then
8262
    if test "$lt_cv_prog_gnu_ld" = yes; then
8263
      case `/usr/bin/file conftest.$ac_objext` in
8264
	*32-bit*)
8265
	  LD="${LD-ld} -melf32bsmip"
8266
	  ;;
8267
	*N32*)
8268
	  LD="${LD-ld} -melf32bmipn32"
8269
	  ;;
8270
	*64-bit*)
8271
	  LD="${LD-ld} -melf64bmip"
8272
	;;
8273
      esac
8274
    else
8275
      case `/usr/bin/file conftest.$ac_objext` in
8276
	*32-bit*)
8277
	  LD="${LD-ld} -32"
8278
	  ;;
8279
	*N32*)
8280
	  LD="${LD-ld} -n32"
8281
	  ;;
8282
	*64-bit*)
8283
	  LD="${LD-ld} -64"
8284
	  ;;
8285
      esac
8286
    fi
8287
  fi
8288
  rm -rf conftest*
8289
  ;;
8290
8291
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8292
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8293
  # Find out which ABI we are using.
8294
  echo 'int i;' > conftest.$ac_ext
8295
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8296
  (eval $ac_compile) 2>&5
8297
  ac_status=$?
8298
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8299
  test $ac_status = 0; }; then
8300
    case `/usr/bin/file conftest.o` in
8301
      *32-bit*)
8302
	case $host in
8303
	  x86_64-*kfreebsd*-gnu)
8304
	    LD="${LD-ld} -m elf_i386_fbsd"
8305
	    ;;
8306
	  x86_64-*linux*)
8307
	    LD="${LD-ld} -m elf_i386"
8308
	    ;;
8309
	  ppc64-*linux*|powerpc64-*linux*)
8310
	    LD="${LD-ld} -m elf32ppclinux"
8311
	    ;;
8312
	  s390x-*linux*)
8313
	    LD="${LD-ld} -m elf_s390"
8314
	    ;;
8315
	  sparc64-*linux*)
8316
	    LD="${LD-ld} -m elf32_sparc"
8317
	    ;;
8318
	esac
8319
	;;
8320
      *64-bit*)
8321
	case $host in
8322
	  x86_64-*kfreebsd*-gnu)
8323
	    LD="${LD-ld} -m elf_x86_64_fbsd"
8324
	    ;;
8325
	  x86_64-*linux*)
8326
	    LD="${LD-ld} -m elf_x86_64"
8327
	    ;;
8328
	  ppc*-*linux*|powerpc*-*linux*)
8329
	    LD="${LD-ld} -m elf64ppc"
8330
	    ;;
8331
	  s390*-*linux*|s390*-*tpf*)
8332
	    LD="${LD-ld} -m elf64_s390"
8333
	    ;;
8334
	  sparc*-*linux*)
8335
	    LD="${LD-ld} -m elf64_sparc"
8336
	    ;;
8337
	esac
8338
	;;
8339
    esac
8340
  fi
8341
  rm -rf conftest*
8342
  ;;
8343
8344
*-*-sco3.2v5*)
8345
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8346
  SAVE_CFLAGS="$CFLAGS"
8347
  CFLAGS="$CFLAGS -belf"
8348
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8349
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8350
if ${lt_cv_cc_needs_belf+:} false; then :
8351
  $as_echo_n "(cached) " >&6
8352
else
8353
  ac_ext=c
8354
ac_cpp='$CPP $CPPFLAGS'
8355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360
/* end confdefs.h.  */
8361
8362
int
8363
main ()
8364
{
8365
8366
  ;
8367
  return 0;
8368
}
8369
_ACEOF
8370
if ac_fn_c_try_link "$LINENO"; then :
8371
  lt_cv_cc_needs_belf=yes
8372
else
8373
  lt_cv_cc_needs_belf=no
8374
fi
8375
rm -f core conftest.err conftest.$ac_objext \
8376
    conftest$ac_exeext conftest.$ac_ext
8377
     ac_ext=c
8378
ac_cpp='$CPP $CPPFLAGS'
8379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8382
8383
fi
8384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8385
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8386
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8387
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8388
    CFLAGS="$SAVE_CFLAGS"
8389
  fi
8390
  ;;
8391
*-*solaris*)
8392
  # Find out which ABI we are using.
8393
  echo 'int i;' > conftest.$ac_ext
8394
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8395
  (eval $ac_compile) 2>&5
8396
  ac_status=$?
8397
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8398
  test $ac_status = 0; }; then
8399
    case `/usr/bin/file conftest.o` in
8400
    *64-bit*)
8401
      case $lt_cv_prog_gnu_ld in
8402
      yes*)
8403
        case $host in
8404
        i?86-*-solaris*)
8405
          LD="${LD-ld} -m elf_x86_64"
8406
          ;;
8407
        sparc*-*-solaris*)
8408
          LD="${LD-ld} -m elf64_sparc"
8409
          ;;
8410
        esac
8411
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8412
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8413
          LD="${LD-ld}_sol2"
8414
        fi
8415
        ;;
8416
      *)
8417
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8418
	  LD="${LD-ld} -64"
8419
	fi
8420
	;;
8421
      esac
8422
      ;;
8423
    esac
8424
  fi
8425
  rm -rf conftest*
8426
  ;;
8427
esac
8428
8429
need_locks="$enable_libtool_lock"
8430
8431
if test -n "$ac_tool_prefix"; then
8432
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8433
set dummy ${ac_tool_prefix}mt; ac_word=$2
8434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435
$as_echo_n "checking for $ac_word... " >&6; }
8436
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8437
  $as_echo_n "(cached) " >&6
8438
else
8439
  if test -n "$MANIFEST_TOOL"; then
8440
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8441
else
8442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443
for as_dir in $PATH
8444
do
8445
  IFS=$as_save_IFS
8446
  test -z "$as_dir" && as_dir=.
8447
    for ac_exec_ext in '' $ac_executable_extensions; do
8448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451
    break 2
8452
  fi
8453
done
8454
  done
8455
IFS=$as_save_IFS
8456
8457
fi
8458
fi
8459
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8460
if test -n "$MANIFEST_TOOL"; then
8461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8462
$as_echo "$MANIFEST_TOOL" >&6; }
8463
else
8464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465
$as_echo "no" >&6; }
8466
fi
8467
8468
8469
fi
8470
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8471
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8472
  # Extract the first word of "mt", so it can be a program name with args.
8473
set dummy mt; ac_word=$2
8474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475
$as_echo_n "checking for $ac_word... " >&6; }
8476
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8477
  $as_echo_n "(cached) " >&6
8478
else
8479
  if test -n "$ac_ct_MANIFEST_TOOL"; then
8480
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8481
else
8482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483
for as_dir in $PATH
8484
do
8485
  IFS=$as_save_IFS
8486
  test -z "$as_dir" && as_dir=.
8487
    for ac_exec_ext in '' $ac_executable_extensions; do
8488
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8490
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491
    break 2
8492
  fi
8493
done
8494
  done
8495
IFS=$as_save_IFS
8496
8497
fi
8498
fi
8499
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8500
if test -n "$ac_ct_MANIFEST_TOOL"; then
8501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8502
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8503
else
8504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505
$as_echo "no" >&6; }
8506
fi
8507
8508
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8509
    MANIFEST_TOOL=":"
8510
  else
8511
    case $cross_compiling:$ac_tool_warned in
8512
yes:)
8513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8515
ac_tool_warned=yes ;;
8516
esac
8517
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8518
  fi
8519
else
8520
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8521
fi
8522
8523
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8525
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8526
if ${lt_cv_path_mainfest_tool+:} false; then :
8527
  $as_echo_n "(cached) " >&6
8528
else
8529
  lt_cv_path_mainfest_tool=no
8530
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8531
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8532
  cat conftest.err >&5
8533
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8534
    lt_cv_path_mainfest_tool=yes
8535
  fi
8536
  rm -f conftest*
8537
fi
8538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8539
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8540
if test "x$lt_cv_path_mainfest_tool" != xyes; then
8541
  MANIFEST_TOOL=:
8542
fi
8543
8544
8545
8546
8547
8548
8549
  case $host_os in
8550
    rhapsody* | darwin*)
8551
    if test -n "$ac_tool_prefix"; then
8552
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8553
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555
$as_echo_n "checking for $ac_word... " >&6; }
8556
if ${ac_cv_prog_DSYMUTIL+:} false; then :
8557
  $as_echo_n "(cached) " >&6
8558
else
8559
  if test -n "$DSYMUTIL"; then
8560
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8561
else
8562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563
for as_dir in $PATH
8564
do
8565
  IFS=$as_save_IFS
8566
  test -z "$as_dir" && as_dir=.
8567
    for ac_exec_ext in '' $ac_executable_extensions; do
8568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8570
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571
    break 2
8572
  fi
8573
done
8574
  done
8575
IFS=$as_save_IFS
8576
8577
fi
8578
fi
8579
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8580
if test -n "$DSYMUTIL"; then
8581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8582
$as_echo "$DSYMUTIL" >&6; }
8583
else
8584
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585
$as_echo "no" >&6; }
8586
fi
8587
8588
8589
fi
8590
if test -z "$ac_cv_prog_DSYMUTIL"; then
8591
  ac_ct_DSYMUTIL=$DSYMUTIL
8592
  # Extract the first word of "dsymutil", so it can be a program name with args.
8593
set dummy dsymutil; ac_word=$2
8594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595
$as_echo_n "checking for $ac_word... " >&6; }
8596
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8597
  $as_echo_n "(cached) " >&6
8598
else
8599
  if test -n "$ac_ct_DSYMUTIL"; then
8600
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8601
else
8602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603
for as_dir in $PATH
8604
do
8605
  IFS=$as_save_IFS
8606
  test -z "$as_dir" && as_dir=.
8607
    for ac_exec_ext in '' $ac_executable_extensions; do
8608
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8610
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611
    break 2
8612
  fi
8613
done
8614
  done
8615
IFS=$as_save_IFS
8616
8617
fi
8618
fi
8619
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8620
if test -n "$ac_ct_DSYMUTIL"; then
8621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8622
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8623
else
8624
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625
$as_echo "no" >&6; }
8626
fi
8627
8628
  if test "x$ac_ct_DSYMUTIL" = x; then
8629
    DSYMUTIL=":"
8630
  else
8631
    case $cross_compiling:$ac_tool_warned in
8632
yes:)
8633
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635
ac_tool_warned=yes ;;
8636
esac
8637
    DSYMUTIL=$ac_ct_DSYMUTIL
8638
  fi
8639
else
8640
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8641
fi
8642
8643
    if test -n "$ac_tool_prefix"; then
8644
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8645
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647
$as_echo_n "checking for $ac_word... " >&6; }
8648
if ${ac_cv_prog_NMEDIT+:} false; then :
8649
  $as_echo_n "(cached) " >&6
8650
else
8651
  if test -n "$NMEDIT"; then
8652
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8653
else
8654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655
for as_dir in $PATH
8656
do
8657
  IFS=$as_save_IFS
8658
  test -z "$as_dir" && as_dir=.
8659
    for ac_exec_ext in '' $ac_executable_extensions; do
8660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8662
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663
    break 2
8664
  fi
8665
done
8666
  done
8667
IFS=$as_save_IFS
8668
8669
fi
8670
fi
8671
NMEDIT=$ac_cv_prog_NMEDIT
8672
if test -n "$NMEDIT"; then
8673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8674
$as_echo "$NMEDIT" >&6; }
8675
else
8676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677
$as_echo "no" >&6; }
8678
fi
8679
8680
8681
fi
8682
if test -z "$ac_cv_prog_NMEDIT"; then
8683
  ac_ct_NMEDIT=$NMEDIT
8684
  # Extract the first word of "nmedit", so it can be a program name with args.
8685
set dummy nmedit; ac_word=$2
8686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687
$as_echo_n "checking for $ac_word... " >&6; }
8688
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8689
  $as_echo_n "(cached) " >&6
8690
else
8691
  if test -n "$ac_ct_NMEDIT"; then
8692
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8693
else
8694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695
for as_dir in $PATH
8696
do
8697
  IFS=$as_save_IFS
8698
  test -z "$as_dir" && as_dir=.
8699
    for ac_exec_ext in '' $ac_executable_extensions; do
8700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703
    break 2
8704
  fi
8705
done
8706
  done
8707
IFS=$as_save_IFS
8708
8709
fi
8710
fi
8711
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8712
if test -n "$ac_ct_NMEDIT"; then
8713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8714
$as_echo "$ac_ct_NMEDIT" >&6; }
8715
else
8716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717
$as_echo "no" >&6; }
8718
fi
8719
8720
  if test "x$ac_ct_NMEDIT" = x; then
8721
    NMEDIT=":"
8722
  else
8723
    case $cross_compiling:$ac_tool_warned in
8724
yes:)
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8727
ac_tool_warned=yes ;;
8728
esac
8729
    NMEDIT=$ac_ct_NMEDIT
8730
  fi
8731
else
8732
  NMEDIT="$ac_cv_prog_NMEDIT"
8733
fi
8734
8735
    if test -n "$ac_tool_prefix"; then
8736
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8737
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739
$as_echo_n "checking for $ac_word... " >&6; }
8740
if ${ac_cv_prog_LIPO+:} false; then :
8741
  $as_echo_n "(cached) " >&6
8742
else
8743
  if test -n "$LIPO"; then
8744
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8745
else
8746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747
for as_dir in $PATH
8748
do
8749
  IFS=$as_save_IFS
8750
  test -z "$as_dir" && as_dir=.
8751
    for ac_exec_ext in '' $ac_executable_extensions; do
8752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755
    break 2
8756
  fi
8757
done
8758
  done
8759
IFS=$as_save_IFS
8760
8761
fi
8762
fi
8763
LIPO=$ac_cv_prog_LIPO
8764
if test -n "$LIPO"; then
8765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766
$as_echo "$LIPO" >&6; }
8767
else
8768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769
$as_echo "no" >&6; }
8770
fi
8771
8772
8773
fi
8774
if test -z "$ac_cv_prog_LIPO"; then
8775
  ac_ct_LIPO=$LIPO
8776
  # Extract the first word of "lipo", so it can be a program name with args.
8777
set dummy lipo; ac_word=$2
8778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779
$as_echo_n "checking for $ac_word... " >&6; }
8780
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8781
  $as_echo_n "(cached) " >&6
8782
else
8783
  if test -n "$ac_ct_LIPO"; then
8784
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8785
else
8786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787
for as_dir in $PATH
8788
do
8789
  IFS=$as_save_IFS
8790
  test -z "$as_dir" && as_dir=.
8791
    for ac_exec_ext in '' $ac_executable_extensions; do
8792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793
    ac_cv_prog_ac_ct_LIPO="lipo"
8794
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795
    break 2
8796
  fi
8797
done
8798
  done
8799
IFS=$as_save_IFS
8800
8801
fi
8802
fi
8803
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8804
if test -n "$ac_ct_LIPO"; then
8805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8806
$as_echo "$ac_ct_LIPO" >&6; }
8807
else
8808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809
$as_echo "no" >&6; }
8810
fi
8811
8812
  if test "x$ac_ct_LIPO" = x; then
8813
    LIPO=":"
8814
  else
8815
    case $cross_compiling:$ac_tool_warned in
8816
yes:)
8817
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8818
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819
ac_tool_warned=yes ;;
8820
esac
8821
    LIPO=$ac_ct_LIPO
8822
  fi
8823
else
8824
  LIPO="$ac_cv_prog_LIPO"
8825
fi
8826
8827
    if test -n "$ac_tool_prefix"; then
8828
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8829
set dummy ${ac_tool_prefix}otool; ac_word=$2
8830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831
$as_echo_n "checking for $ac_word... " >&6; }
8832
if ${ac_cv_prog_OTOOL+:} false; then :
8833
  $as_echo_n "(cached) " >&6
8834
else
8835
  if test -n "$OTOOL"; then
8836
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8837
else
8838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839
for as_dir in $PATH
8840
do
8841
  IFS=$as_save_IFS
8842
  test -z "$as_dir" && as_dir=.
8843
    for ac_exec_ext in '' $ac_executable_extensions; do
8844
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8846
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847
    break 2
8848
  fi
8849
done
8850
  done
8851
IFS=$as_save_IFS
8852
8853
fi
8854
fi
8855
OTOOL=$ac_cv_prog_OTOOL
8856
if test -n "$OTOOL"; then
8857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8858
$as_echo "$OTOOL" >&6; }
8859
else
8860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861
$as_echo "no" >&6; }
8862
fi
8863
8864
8865
fi
8866
if test -z "$ac_cv_prog_OTOOL"; then
8867
  ac_ct_OTOOL=$OTOOL
8868
  # Extract the first word of "otool", so it can be a program name with args.
8869
set dummy otool; ac_word=$2
8870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871
$as_echo_n "checking for $ac_word... " >&6; }
8872
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8873
  $as_echo_n "(cached) " >&6
8874
else
8875
  if test -n "$ac_ct_OTOOL"; then
8876
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8877
else
8878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879
for as_dir in $PATH
8880
do
8881
  IFS=$as_save_IFS
8882
  test -z "$as_dir" && as_dir=.
8883
    for ac_exec_ext in '' $ac_executable_extensions; do
8884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885
    ac_cv_prog_ac_ct_OTOOL="otool"
8886
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887
    break 2
8888
  fi
8889
done
8890
  done
8891
IFS=$as_save_IFS
8892
8893
fi
8894
fi
8895
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8896
if test -n "$ac_ct_OTOOL"; then
8897
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8898
$as_echo "$ac_ct_OTOOL" >&6; }
8899
else
8900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901
$as_echo "no" >&6; }
8902
fi
8903
8904
  if test "x$ac_ct_OTOOL" = x; then
8905
    OTOOL=":"
8906
  else
8907
    case $cross_compiling:$ac_tool_warned in
8908
yes:)
8909
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8910
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8911
ac_tool_warned=yes ;;
8912
esac
8913
    OTOOL=$ac_ct_OTOOL
8914
  fi
8915
else
8916
  OTOOL="$ac_cv_prog_OTOOL"
8917
fi
8918
8919
    if test -n "$ac_tool_prefix"; then
8920
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8921
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923
$as_echo_n "checking for $ac_word... " >&6; }
8924
if ${ac_cv_prog_OTOOL64+:} false; then :
8925
  $as_echo_n "(cached) " >&6
8926
else
8927
  if test -n "$OTOOL64"; then
8928
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8929
else
8930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931
for as_dir in $PATH
8932
do
8933
  IFS=$as_save_IFS
8934
  test -z "$as_dir" && as_dir=.
8935
    for ac_exec_ext in '' $ac_executable_extensions; do
8936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8938
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939
    break 2
8940
  fi
8941
done
8942
  done
8943
IFS=$as_save_IFS
8944
8945
fi
8946
fi
8947
OTOOL64=$ac_cv_prog_OTOOL64
8948
if test -n "$OTOOL64"; then
8949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8950
$as_echo "$OTOOL64" >&6; }
8951
else
8952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953
$as_echo "no" >&6; }
8954
fi
8955
8956
8957
fi
8958
if test -z "$ac_cv_prog_OTOOL64"; then
8959
  ac_ct_OTOOL64=$OTOOL64
8960
  # Extract the first word of "otool64", so it can be a program name with args.
8961
set dummy otool64; ac_word=$2
8962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963
$as_echo_n "checking for $ac_word... " >&6; }
8964
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8965
  $as_echo_n "(cached) " >&6
8966
else
8967
  if test -n "$ac_ct_OTOOL64"; then
8968
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8969
else
8970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971
for as_dir in $PATH
8972
do
8973
  IFS=$as_save_IFS
8974
  test -z "$as_dir" && as_dir=.
8975
    for ac_exec_ext in '' $ac_executable_extensions; do
8976
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8978
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979
    break 2
8980
  fi
8981
done
8982
  done
8983
IFS=$as_save_IFS
8984
8985
fi
8986
fi
8987
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8988
if test -n "$ac_ct_OTOOL64"; then
8989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8990
$as_echo "$ac_ct_OTOOL64" >&6; }
8991
else
8992
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993
$as_echo "no" >&6; }
8994
fi
8995
8996
  if test "x$ac_ct_OTOOL64" = x; then
8997
    OTOOL64=":"
8998
  else
8999
    case $cross_compiling:$ac_tool_warned in
9000
yes:)
9001
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9002
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9003
ac_tool_warned=yes ;;
9004
esac
9005
    OTOOL64=$ac_ct_OTOOL64
9006
  fi
9007
else
9008
  OTOOL64="$ac_cv_prog_OTOOL64"
9009
fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9038
$as_echo_n "checking for -single_module linker flag... " >&6; }
9039
if ${lt_cv_apple_cc_single_mod+:} false; then :
9040
  $as_echo_n "(cached) " >&6
9041
else
9042
  lt_cv_apple_cc_single_mod=no
9043
      if test -z "${LT_MULTI_MODULE}"; then
9044
	# By default we will add the -single_module flag. You can override
9045
	# by either setting the environment variable LT_MULTI_MODULE
9046
	# non-empty at configure time, or by adding -multi_module to the
9047
	# link flags.
9048
	rm -rf libconftest.dylib*
9049
	echo "int foo(void){return 1;}" > conftest.c
9050
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9051
-dynamiclib -Wl,-single_module conftest.c" >&5
9052
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9053
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9054
        _lt_result=$?
9055
	# If there is a non-empty error log, and "single_module"
9056
	# appears in it, assume the flag caused a linker warning
9057
        if test -s conftest.err && $GREP single_module conftest.err; then
9058
	  cat conftest.err >&5
9059
	# Otherwise, if the output was created with a 0 exit code from
9060
	# the compiler, it worked.
9061
	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9062
	  lt_cv_apple_cc_single_mod=yes
9063
	else
9064
	  cat conftest.err >&5
9065
	fi
9066
	rm -rf libconftest.dylib*
9067
	rm -f conftest.*
9068
      fi
9069
fi
9070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9071
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9072
9073
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9074
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9075
if ${lt_cv_ld_exported_symbols_list+:} false; then :
9076
  $as_echo_n "(cached) " >&6
9077
else
9078
  lt_cv_ld_exported_symbols_list=no
9079
      save_LDFLAGS=$LDFLAGS
9080
      echo "_main" > conftest.sym
9081
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9082
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083
/* end confdefs.h.  */
9084
9085
int
9086
main ()
9087
{
9088
9089
  ;
9090
  return 0;
9091
}
9092
_ACEOF
9093
if ac_fn_c_try_link "$LINENO"; then :
9094
  lt_cv_ld_exported_symbols_list=yes
9095
else
9096
  lt_cv_ld_exported_symbols_list=no
9097
fi
9098
rm -f core conftest.err conftest.$ac_objext \
9099
    conftest$ac_exeext conftest.$ac_ext
9100
	LDFLAGS="$save_LDFLAGS"
9101
9102
fi
9103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9104
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9105
9106
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9107
$as_echo_n "checking for -force_load linker flag... " >&6; }
9108
if ${lt_cv_ld_force_load+:} false; then :
9109
  $as_echo_n "(cached) " >&6
9110
else
9111
  lt_cv_ld_force_load=no
9112
      cat > conftest.c << _LT_EOF
9113
int forced_loaded() { return 2;}
9114
_LT_EOF
9115
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9116
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9117
      echo "$AR cru libconftest.a conftest.o" >&5
9118
      $AR cru libconftest.a conftest.o 2>&5
9119
      echo "$RANLIB libconftest.a" >&5
9120
      $RANLIB libconftest.a 2>&5
9121
      cat > conftest.c << _LT_EOF
9122
int main() { return 0;}
9123
_LT_EOF
9124
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9125
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9126
      _lt_result=$?
9127
      if test -s conftest.err && $GREP force_load conftest.err; then
9128
	cat conftest.err >&5
9129
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9130
	lt_cv_ld_force_load=yes
9131
      else
9132
	cat conftest.err >&5
9133
      fi
9134
        rm -f conftest.err libconftest.a conftest conftest.c
9135
        rm -rf conftest.dSYM
9136
9137
fi
9138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9139
$as_echo "$lt_cv_ld_force_load" >&6; }
9140
    case $host_os in
9141
    rhapsody* | darwin1.[012])
9142
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9143
    darwin1.*)
9144
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9145
    darwin*) # darwin 5.x on
9146
      # if running on 10.5 or later, the deployment target defaults
9147
      # to the OS version, if on x86, and 10.4, the deployment
9148
      # target defaults to 10.4. Don't you love it?
9149
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9150
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9151
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9152
	10.[012]*)
9153
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9154
	10.*)
9155
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9156
      esac
9157
    ;;
9158
  esac
9159
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9160
      _lt_dar_single_mod='$single_module'
9161
    fi
9162
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9163
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9164
    else
9165
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9166
    fi
9167
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9168
      _lt_dsymutil='~$DSYMUTIL $lib || :'
9169
    else
9170
      _lt_dsymutil=
9171
    fi
9172
    ;;
9173
  esac
9174
9175
for ac_header in dlfcn.h
9176
do :
9177
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9178
"
9179
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9180
  cat >>confdefs.h <<_ACEOF
9181
#define HAVE_DLFCN_H 1
9182
_ACEOF
9183
9184
fi
9185
9186
done
9187
9188
9189
9190
9191
9192
# Set options
9193
9194
9195
9196
        enable_dlopen=no
9197
9198
9199
  enable_win32_dll=no
9200
9201
9202
            # Check whether --enable-shared was given.
9203
if test "${enable_shared+set}" = set; then :
9204
  enableval=$enable_shared; p=${PACKAGE-default}
9205
    case $enableval in
9206
    yes) enable_shared=yes ;;
9207
    no) enable_shared=no ;;
9208
    *)
9209
      enable_shared=no
9210
      # Look at the argument we got.  We use all the common list separators.
9211
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9212
      for pkg in $enableval; do
9213
	IFS="$lt_save_ifs"
9214
	if test "X$pkg" = "X$p"; then
9215
	  enable_shared=yes
9216
	fi
9217
      done
9218
      IFS="$lt_save_ifs"
9219
      ;;
9220
    esac
9221
else
9222
  enable_shared=yes
9223
fi
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
  # Check whether --enable-static was given.
9234
if test "${enable_static+set}" = set; then :
9235
  enableval=$enable_static; p=${PACKAGE-default}
9236
    case $enableval in
9237
    yes) enable_static=yes ;;
9238
    no) enable_static=no ;;
9239
    *)
9240
     enable_static=no
9241
      # Look at the argument we got.  We use all the common list separators.
9242
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9243
      for pkg in $enableval; do
9244
	IFS="$lt_save_ifs"
9245
	if test "X$pkg" = "X$p"; then
9246
	  enable_static=yes
9247
	fi
9248
      done
9249
      IFS="$lt_save_ifs"
9250
      ;;
9251
    esac
9252
else
9253
  enable_static=yes
9254
fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
# Check whether --with-pic was given.
9266
if test "${with_pic+set}" = set; then :
9267
  withval=$with_pic; lt_p=${PACKAGE-default}
9268
    case $withval in
9269
    yes|no) pic_mode=$withval ;;
9270
    *)
9271
      pic_mode=default
9272
      # Look at the argument we got.  We use all the common list separators.
9273
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9274
      for lt_pkg in $withval; do
9275
	IFS="$lt_save_ifs"
9276
	if test "X$lt_pkg" = "X$lt_p"; then
9277
	  pic_mode=yes
9278
	fi
9279
      done
9280
      IFS="$lt_save_ifs"
9281
      ;;
9282
    esac
9283
else
9284
  pic_mode=default
9285
fi
9286
9287
9288
test -z "$pic_mode" && pic_mode=default
9289
9290
9291
9292
9293
9294
9295
9296
  # Check whether --enable-fast-install was given.
9297
if test "${enable_fast_install+set}" = set; then :
9298
  enableval=$enable_fast_install; p=${PACKAGE-default}
9299
    case $enableval in
9300
    yes) enable_fast_install=yes ;;
9301
    no) enable_fast_install=no ;;
9302
    *)
9303
      enable_fast_install=no
9304
      # Look at the argument we got.  We use all the common list separators.
9305
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9306
      for pkg in $enableval; do
9307
	IFS="$lt_save_ifs"
9308
	if test "X$pkg" = "X$p"; then
9309
	  enable_fast_install=yes
9310
	fi
9311
      done
9312
      IFS="$lt_save_ifs"
9313
      ;;
9314
    esac
9315
else
9316
  enable_fast_install=yes
9317
fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
# This can be used to rebuild libtool when needed
9330
LIBTOOL_DEPS="$ltmain"
9331
9332
# Always use our own libtool.
9333
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
test -z "$LN_S" && LN_S="ln -s"
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
if test -n "${ZSH_VERSION+set}" ; then
9380
   setopt NO_GLOB_SUBST
9381
fi
9382
9383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9384
$as_echo_n "checking for objdir... " >&6; }
9385
if ${lt_cv_objdir+:} false; then :
9386
  $as_echo_n "(cached) " >&6
9387
else
9388
  rm -f .libs 2>/dev/null
9389
mkdir .libs 2>/dev/null
9390
if test -d .libs; then
9391
  lt_cv_objdir=.libs
9392
else
9393
  # MS-DOS does not allow filenames that begin with a dot.
9394
  lt_cv_objdir=_libs
9395
fi
9396
rmdir .libs 2>/dev/null
9397
fi
9398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9399
$as_echo "$lt_cv_objdir" >&6; }
9400
objdir=$lt_cv_objdir
9401
9402
9403
9404
9405
9406
cat >>confdefs.h <<_ACEOF
9407
#define LT_OBJDIR "$lt_cv_objdir/"
9408
_ACEOF
9409
9410
9411
9412
9413
case $host_os in
9414
aix3*)
9415
  # AIX sometimes has problems with the GCC collect2 program.  For some
9416
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9417
  # vanish in a puff of smoke.
9418
  if test "X${COLLECT_NAMES+set}" != Xset; then
9419
    COLLECT_NAMES=
9420
    export COLLECT_NAMES
9421
  fi
9422
  ;;
9423
esac
9424
9425
# Global variables:
9426
ofile=libtool
9427
can_build_shared=yes
9428
9429
# All known linkers require a `.a' archive for static linking (except MSVC,
9430
# which needs '.lib').
9431
libext=a
9432
9433
with_gnu_ld="$lt_cv_prog_gnu_ld"
9434
9435
old_CC="$CC"
9436
old_CFLAGS="$CFLAGS"
9437
9438
# Set sane defaults for various variables
9439
test -z "$CC" && CC=cc
9440
test -z "$LTCC" && LTCC=$CC
9441
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9442
test -z "$LD" && LD=ld
9443
test -z "$ac_objext" && ac_objext=o
9444
9445
for cc_temp in $compiler""; do
9446
  case $cc_temp in
9447
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9448
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9449
    \-*) ;;
9450
    *) break;;
9451
  esac
9452
done
9453
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9454
9455
9456
# Only perform the check for file, if the check method requires it
9457
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9458
case $deplibs_check_method in
9459
file_magic*)
9460
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9461
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9462
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9463
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464
  $as_echo_n "(cached) " >&6
9465
else
9466
  case $MAGIC_CMD in
9467
[\\/*] |  ?:[\\/]*)
9468
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9469
  ;;
9470
*)
9471
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9472
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474
  for ac_dir in $ac_dummy; do
9475
    IFS="$lt_save_ifs"
9476
    test -z "$ac_dir" && ac_dir=.
9477
    if test -f $ac_dir/${ac_tool_prefix}file; then
9478
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9479
      if test -n "$file_magic_test_file"; then
9480
	case $deplibs_check_method in
9481
	"file_magic "*)
9482
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485
	    $EGREP "$file_magic_regex" > /dev/null; then
9486
	    :
9487
	  else
9488
	    cat <<_LT_EOF 1>&2
9489
9490
*** Warning: the command libtool uses to detect shared libraries,
9491
*** $file_magic_cmd, produces output that libtool cannot recognize.
9492
*** The result is that libtool may fail to recognize shared libraries
9493
*** as such.  This will affect the creation of libtool libraries that
9494
*** depend on shared libraries, but programs linked with such libtool
9495
*** libraries will work regardless of this problem.  Nevertheless, you
9496
*** may want to report the problem to your system manager and/or to
9497
*** bug-libtool@gnu.org
9498
9499
_LT_EOF
9500
	  fi ;;
9501
	esac
9502
      fi
9503
      break
9504
    fi
9505
  done
9506
  IFS="$lt_save_ifs"
9507
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9508
  ;;
9509
esac
9510
fi
9511
9512
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513
if test -n "$MAGIC_CMD"; then
9514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515
$as_echo "$MAGIC_CMD" >&6; }
9516
else
9517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518
$as_echo "no" >&6; }
9519
fi
9520
9521
9522
9523
9524
9525
if test -z "$lt_cv_path_MAGIC_CMD"; then
9526
  if test -n "$ac_tool_prefix"; then
9527
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9528
$as_echo_n "checking for file... " >&6; }
9529
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9530
  $as_echo_n "(cached) " >&6
9531
else
9532
  case $MAGIC_CMD in
9533
[\\/*] |  ?:[\\/]*)
9534
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9535
  ;;
9536
*)
9537
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9538
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9539
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9540
  for ac_dir in $ac_dummy; do
9541
    IFS="$lt_save_ifs"
9542
    test -z "$ac_dir" && ac_dir=.
9543
    if test -f $ac_dir/file; then
9544
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9545
      if test -n "$file_magic_test_file"; then
9546
	case $deplibs_check_method in
9547
	"file_magic "*)
9548
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9549
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9550
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9551
	    $EGREP "$file_magic_regex" > /dev/null; then
9552
	    :
9553
	  else
9554
	    cat <<_LT_EOF 1>&2
9555
9556
*** Warning: the command libtool uses to detect shared libraries,
9557
*** $file_magic_cmd, produces output that libtool cannot recognize.
9558
*** The result is that libtool may fail to recognize shared libraries
9559
*** as such.  This will affect the creation of libtool libraries that
9560
*** depend on shared libraries, but programs linked with such libtool
9561
*** libraries will work regardless of this problem.  Nevertheless, you
9562
*** may want to report the problem to your system manager and/or to
9563
*** bug-libtool@gnu.org
9564
9565
_LT_EOF
9566
	  fi ;;
9567
	esac
9568
      fi
9569
      break
9570
    fi
9571
  done
9572
  IFS="$lt_save_ifs"
9573
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9574
  ;;
9575
esac
9576
fi
9577
9578
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9579
if test -n "$MAGIC_CMD"; then
9580
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9581
$as_echo "$MAGIC_CMD" >&6; }
9582
else
9583
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584
$as_echo "no" >&6; }
9585
fi
9586
9587
9588
  else
9589
    MAGIC_CMD=:
9590
  fi
9591
fi
9592
9593
  fi
9594
  ;;
9595
esac
9596
9597
# Use C for the default configuration in the libtool script
9598
9599
lt_save_CC="$CC"
9600
ac_ext=c
9601
ac_cpp='$CPP $CPPFLAGS'
9602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605
9606
9607
# Source file extension for C test sources.
9608
ac_ext=c
9609
9610
# Object file extension for compiled C test sources.
9611
objext=o
9612
objext=$objext
9613
9614
# Code to be used in simple compile tests
9615
lt_simple_compile_test_code="int some_variable = 0;"
9616
9617
# Code to be used in simple link tests
9618
lt_simple_link_test_code='int main(){return(0);}'
9619
9620
9621
9622
9623
9624
9625
9626
# If no C compiler was specified, use CC.
9627
LTCC=${LTCC-"$CC"}
9628
9629
# If no C compiler flags were specified, use CFLAGS.
9630
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9631
9632
# Allow CC to be a program name with arguments.
9633
compiler=$CC
9634
9635
# Save the default compiler, since it gets overwritten when the other
9636
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9637
compiler_DEFAULT=$CC
9638
9639
# save warnings/boilerplate of simple test code
9640
ac_outfile=conftest.$ac_objext
9641
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9642
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9643
_lt_compiler_boilerplate=`cat conftest.err`
9644
$RM conftest*
9645
9646
ac_outfile=conftest.$ac_objext
9647
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9648
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649
_lt_linker_boilerplate=`cat conftest.err`
9650
$RM -r conftest*
9651
9652
9653
## CAVEAT EMPTOR:
9654
## There is no encapsulation within the following macros, do not change
9655
## the running order or otherwise move them around unless you know exactly
9656
## what you are doing...
9657
if test -n "$compiler"; then
9658
9659
lt_prog_compiler_no_builtin_flag=
9660
9661
if test "$GCC" = yes; then
9662
  case $cc_basename in
9663
  nvcc*)
9664
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9665
  *)
9666
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9667
  esac
9668
9669
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9670
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9671
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9672
  $as_echo_n "(cached) " >&6
9673
else
9674
  lt_cv_prog_compiler_rtti_exceptions=no
9675
   ac_outfile=conftest.$ac_objext
9676
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677
   lt_compiler_flag="-fno-rtti -fno-exceptions"
9678
   # Insert the option either (1) after the last *FLAGS variable, or
9679
   # (2) before a word containing "conftest.", or (3) at the end.
9680
   # Note that $ac_compile itself does not contain backslashes and begins
9681
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9682
   # The option is referenced via a variable to avoid confusing sed.
9683
   lt_compile=`echo "$ac_compile" | $SED \
9684
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686
   -e 's:$: $lt_compiler_flag:'`
9687
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688
   (eval "$lt_compile" 2>conftest.err)
9689
   ac_status=$?
9690
   cat conftest.err >&5
9691
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692
   if (exit $ac_status) && test -s "$ac_outfile"; then
9693
     # The compiler can only warn and ignore the option if not recognized
9694
     # So say no if there are warnings other than the usual output.
9695
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698
       lt_cv_prog_compiler_rtti_exceptions=yes
9699
     fi
9700
   fi
9701
   $RM conftest*
9702
9703
fi
9704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9705
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9706
9707
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9708
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9709
else
9710
    :
9711
fi
9712
9713
fi
9714
9715
9716
9717
9718
9719
9720
  lt_prog_compiler_wl=
9721
lt_prog_compiler_pic=
9722
lt_prog_compiler_static=
9723
9724
9725
  if test "$GCC" = yes; then
9726
    lt_prog_compiler_wl='-Wl,'
9727
    lt_prog_compiler_static='-static'
9728
9729
    case $host_os in
9730
      aix*)
9731
      # All AIX code is PIC.
9732
      if test "$host_cpu" = ia64; then
9733
	# AIX 5 now supports IA64 processor
9734
	lt_prog_compiler_static='-Bstatic'
9735
      fi
9736
      ;;
9737
9738
    amigaos*)
9739
      case $host_cpu in
9740
      powerpc)
9741
            # see comment about AmigaOS4 .so support
9742
            lt_prog_compiler_pic='-fPIC'
9743
        ;;
9744
      m68k)
9745
            # FIXME: we need at least 68020 code to build shared libraries, but
9746
            # adding the `-m68020' flag to GCC prevents building anything better,
9747
            # like `-m68040'.
9748
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9749
        ;;
9750
      esac
9751
      ;;
9752
9753
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9754
      # PIC is the default for these OSes.
9755
      ;;
9756
9757
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9758
      # This hack is so that the source file can tell whether it is being
9759
      # built for inclusion in a dll (and should export symbols for example).
9760
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9761
      # (--disable-auto-import) libraries
9762
      lt_prog_compiler_pic='-DDLL_EXPORT'
9763
      ;;
9764
9765
    darwin* | rhapsody*)
9766
      # PIC is the default on this platform
9767
      # Common symbols not allowed in MH_DYLIB files
9768
      lt_prog_compiler_pic='-fno-common'
9769
      ;;
9770
9771
    haiku*)
9772
      # PIC is the default for Haiku.
9773
      # The "-static" flag exists, but is broken.
9774
      lt_prog_compiler_static=
9775
      ;;
9776
9777
    hpux*)
9778
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9779
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9780
      # sets the default TLS model and affects inlining.
9781
      case $host_cpu in
9782
      hppa*64*)
9783
	# +Z the default
9784
	;;
9785
      *)
9786
	lt_prog_compiler_pic='-fPIC'
9787
	;;
9788
      esac
9789
      ;;
9790
9791
    interix[3-9]*)
9792
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9793
      # Instead, we relocate shared libraries at runtime.
9794
      ;;
9795
9796
    msdosdjgpp*)
9797
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9798
      # on systems that don't support them.
9799
      lt_prog_compiler_can_build_shared=no
9800
      enable_shared=no
9801
      ;;
9802
9803
    *nto* | *qnx*)
9804
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9805
      # it will coredump.
9806
      lt_prog_compiler_pic='-fPIC -shared'
9807
      ;;
9808
9809
    sysv4*MP*)
9810
      if test -d /usr/nec; then
9811
	lt_prog_compiler_pic=-Kconform_pic
9812
      fi
9813
      ;;
9814
9815
    *)
9816
      lt_prog_compiler_pic='-fPIC'
9817
      ;;
9818
    esac
9819
9820
    case $cc_basename in
9821
    nvcc*) # Cuda Compiler Driver 2.2
9822
      lt_prog_compiler_wl='-Xlinker '
9823
      if test -n "$lt_prog_compiler_pic"; then
9824
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9825
      fi
9826
      ;;
9827
    esac
9828
  else
9829
    # PORTME Check for flag to pass linker flags through the system compiler.
9830
    case $host_os in
9831
    aix*)
9832
      lt_prog_compiler_wl='-Wl,'
9833
      if test "$host_cpu" = ia64; then
9834
	# AIX 5 now supports IA64 processor
9835
	lt_prog_compiler_static='-Bstatic'
9836
      else
9837
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9838
      fi
9839
      ;;
9840
9841
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9842
      # This hack is so that the source file can tell whether it is being
9843
      # built for inclusion in a dll (and should export symbols for example).
9844
      lt_prog_compiler_pic='-DDLL_EXPORT'
9845
      ;;
9846
9847
    hpux9* | hpux10* | hpux11*)
9848
      lt_prog_compiler_wl='-Wl,'
9849
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9850
      # not for PA HP-UX.
9851
      case $host_cpu in
9852
      hppa*64*|ia64*)
9853
	# +Z the default
9854
	;;
9855
      *)
9856
	lt_prog_compiler_pic='+Z'
9857
	;;
9858
      esac
9859
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9860
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9861
      ;;
9862
9863
    irix5* | irix6* | nonstopux*)
9864
      lt_prog_compiler_wl='-Wl,'
9865
      # PIC (with -KPIC) is the default.
9866
      lt_prog_compiler_static='-non_shared'
9867
      ;;
9868
9869
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9870
      case $cc_basename in
9871
      # old Intel for x86_64 which still supported -KPIC.
9872
      ecc*)
9873
	lt_prog_compiler_wl='-Wl,'
9874
	lt_prog_compiler_pic='-KPIC'
9875
	lt_prog_compiler_static='-static'
9876
        ;;
9877
      # icc used to be incompatible with GCC.
9878
      # ICC 10 doesn't accept -KPIC any more.
9879
      icc* | ifort*)
9880
	lt_prog_compiler_wl='-Wl,'
9881
	lt_prog_compiler_pic='-fPIC'
9882
	lt_prog_compiler_static='-static'
9883
        ;;
9884
      # Lahey Fortran 8.1.
9885
      lf95*)
9886
	lt_prog_compiler_wl='-Wl,'
9887
	lt_prog_compiler_pic='--shared'
9888
	lt_prog_compiler_static='--static'
9889
	;;
9890
      nagfor*)
9891
	# NAG Fortran compiler
9892
	lt_prog_compiler_wl='-Wl,-Wl,,'
9893
	lt_prog_compiler_pic='-PIC'
9894
	lt_prog_compiler_static='-Bstatic'
9895
	;;
9896
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897
        # Portland Group compilers (*not* the Pentium gcc compiler,
9898
	# which looks to be a dead project)
9899
	lt_prog_compiler_wl='-Wl,'
9900
	lt_prog_compiler_pic='-fpic'
9901
	lt_prog_compiler_static='-Bstatic'
9902
        ;;
9903
      ccc*)
9904
        lt_prog_compiler_wl='-Wl,'
9905
        # All Alpha code is PIC.
9906
        lt_prog_compiler_static='-non_shared'
9907
        ;;
9908
      xl* | bgxl* | bgf* | mpixl*)
9909
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910
	lt_prog_compiler_wl='-Wl,'
9911
	lt_prog_compiler_pic='-qpic'
9912
	lt_prog_compiler_static='-qstaticlink'
9913
	;;
9914
      *)
9915
	case `$CC -V 2>&1 | sed 5q` in
9916
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9917
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918
	  lt_prog_compiler_pic='-KPIC'
9919
	  lt_prog_compiler_static='-Bstatic'
9920
	  lt_prog_compiler_wl=''
9921
	  ;;
9922
	*Sun\ F* | *Sun*Fortran*)
9923
	  lt_prog_compiler_pic='-KPIC'
9924
	  lt_prog_compiler_static='-Bstatic'
9925
	  lt_prog_compiler_wl='-Qoption ld '
9926
	  ;;
9927
	*Sun\ C*)
9928
	  # Sun C 5.9
9929
	  lt_prog_compiler_pic='-KPIC'
9930
	  lt_prog_compiler_static='-Bstatic'
9931
	  lt_prog_compiler_wl='-Wl,'
9932
	  ;;
9933
        *Intel*\ [CF]*Compiler*)
9934
	  lt_prog_compiler_wl='-Wl,'
9935
	  lt_prog_compiler_pic='-fPIC'
9936
	  lt_prog_compiler_static='-static'
9937
	  ;;
9938
	*Portland\ Group*)
9939
	  lt_prog_compiler_wl='-Wl,'
9940
	  lt_prog_compiler_pic='-fpic'
9941
	  lt_prog_compiler_static='-Bstatic'
9942
	  ;;
9943
	esac
9944
	;;
9945
      esac
9946
      ;;
9947
9948
    newsos6)
9949
      lt_prog_compiler_pic='-KPIC'
9950
      lt_prog_compiler_static='-Bstatic'
9951
      ;;
9952
9953
    *nto* | *qnx*)
9954
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9955
      # it will coredump.
9956
      lt_prog_compiler_pic='-fPIC -shared'
9957
      ;;
9958
9959
    osf3* | osf4* | osf5*)
9960
      lt_prog_compiler_wl='-Wl,'
9961
      # All OSF/1 code is PIC.
9962
      lt_prog_compiler_static='-non_shared'
9963
      ;;
9964
9965
    rdos*)
9966
      lt_prog_compiler_static='-non_shared'
9967
      ;;
9968
9969
    solaris*)
9970
      lt_prog_compiler_pic='-KPIC'
9971
      lt_prog_compiler_static='-Bstatic'
9972
      case $cc_basename in
9973
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9974
	lt_prog_compiler_wl='-Qoption ld ';;
9975
      *)
9976
	lt_prog_compiler_wl='-Wl,';;
9977
      esac
9978
      ;;
9979
9980
    sunos4*)
9981
      lt_prog_compiler_wl='-Qoption ld '
9982
      lt_prog_compiler_pic='-PIC'
9983
      lt_prog_compiler_static='-Bstatic'
9984
      ;;
9985
9986
    sysv4 | sysv4.2uw2* | sysv4.3*)
9987
      lt_prog_compiler_wl='-Wl,'
9988
      lt_prog_compiler_pic='-KPIC'
9989
      lt_prog_compiler_static='-Bstatic'
9990
      ;;
9991
9992
    sysv4*MP*)
9993
      if test -d /usr/nec ;then
9994
	lt_prog_compiler_pic='-Kconform_pic'
9995
	lt_prog_compiler_static='-Bstatic'
9996
      fi
9997
      ;;
9998
9999
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10000
      lt_prog_compiler_wl='-Wl,'
10001
      lt_prog_compiler_pic='-KPIC'
10002
      lt_prog_compiler_static='-Bstatic'
10003
      ;;
10004
10005
    unicos*)
10006
      lt_prog_compiler_wl='-Wl,'
10007
      lt_prog_compiler_can_build_shared=no
10008
      ;;
10009
10010
    uts4*)
10011
      lt_prog_compiler_pic='-pic'
10012
      lt_prog_compiler_static='-Bstatic'
10013
      ;;
10014
10015
    *)
10016
      lt_prog_compiler_can_build_shared=no
10017
      ;;
10018
    esac
10019
  fi
10020
10021
case $host_os in
10022
  # For platforms which do not support PIC, -DPIC is meaningless:
10023
  *djgpp*)
10024
    lt_prog_compiler_pic=
10025
    ;;
10026
  *)
10027
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10028
    ;;
10029
esac
10030
10031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10032
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10033
if ${lt_cv_prog_compiler_pic+:} false; then :
10034
  $as_echo_n "(cached) " >&6
10035
else
10036
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10037
fi
10038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10039
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10040
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10041
10042
#
10043
# Check to make sure the PIC flag actually works.
10044
#
10045
if test -n "$lt_prog_compiler_pic"; then
10046
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10047
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10048
if ${lt_cv_prog_compiler_pic_works+:} false; then :
10049
  $as_echo_n "(cached) " >&6
10050
else
10051
  lt_cv_prog_compiler_pic_works=no
10052
   ac_outfile=conftest.$ac_objext
10053
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10055
   # Insert the option either (1) after the last *FLAGS variable, or
10056
   # (2) before a word containing "conftest.", or (3) at the end.
10057
   # Note that $ac_compile itself does not contain backslashes and begins
10058
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10059
   # The option is referenced via a variable to avoid confusing sed.
10060
   lt_compile=`echo "$ac_compile" | $SED \
10061
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10062
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10063
   -e 's:$: $lt_compiler_flag:'`
10064
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10065
   (eval "$lt_compile" 2>conftest.err)
10066
   ac_status=$?
10067
   cat conftest.err >&5
10068
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069
   if (exit $ac_status) && test -s "$ac_outfile"; then
10070
     # The compiler can only warn and ignore the option if not recognized
10071
     # So say no if there are warnings other than the usual output.
10072
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10073
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10075
       lt_cv_prog_compiler_pic_works=yes
10076
     fi
10077
   fi
10078
   $RM conftest*
10079
10080
fi
10081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10082
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10083
10084
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10085
    case $lt_prog_compiler_pic in
10086
     "" | " "*) ;;
10087
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10088
     esac
10089
else
10090
    lt_prog_compiler_pic=
10091
     lt_prog_compiler_can_build_shared=no
10092
fi
10093
10094
fi
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
#
10107
# Check to make sure the static flag actually works.
10108
#
10109
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10111
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10112
if ${lt_cv_prog_compiler_static_works+:} false; then :
10113
  $as_echo_n "(cached) " >&6
10114
else
10115
  lt_cv_prog_compiler_static_works=no
10116
   save_LDFLAGS="$LDFLAGS"
10117
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10118
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120
     # The linker can only warn and ignore the option if not recognized
10121
     # So say no if there are warnings
10122
     if test -s conftest.err; then
10123
       # Append any errors to the config.log.
10124
       cat conftest.err 1>&5
10125
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127
       if diff conftest.exp conftest.er2 >/dev/null; then
10128
         lt_cv_prog_compiler_static_works=yes
10129
       fi
10130
     else
10131
       lt_cv_prog_compiler_static_works=yes
10132
     fi
10133
   fi
10134
   $RM -r conftest*
10135
   LDFLAGS="$save_LDFLAGS"
10136
10137
fi
10138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10139
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10140
10141
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10142
    :
10143
else
10144
    lt_prog_compiler_static=
10145
fi
10146
10147
10148
10149
10150
10151
10152
10153
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10154
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10155
if ${lt_cv_prog_compiler_c_o+:} false; then :
10156
  $as_echo_n "(cached) " >&6
10157
else
10158
  lt_cv_prog_compiler_c_o=no
10159
   $RM -r conftest 2>/dev/null
10160
   mkdir conftest
10161
   cd conftest
10162
   mkdir out
10163
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10164
10165
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10166
   # Insert the option either (1) after the last *FLAGS variable, or
10167
   # (2) before a word containing "conftest.", or (3) at the end.
10168
   # Note that $ac_compile itself does not contain backslashes and begins
10169
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10170
   lt_compile=`echo "$ac_compile" | $SED \
10171
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10172
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10173
   -e 's:$: $lt_compiler_flag:'`
10174
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10175
   (eval "$lt_compile" 2>out/conftest.err)
10176
   ac_status=$?
10177
   cat out/conftest.err >&5
10178
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10180
   then
10181
     # The compiler can only warn and ignore the option if not recognized
10182
     # So say no if there are warnings
10183
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10184
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10185
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10186
       lt_cv_prog_compiler_c_o=yes
10187
     fi
10188
   fi
10189
   chmod u+w . 2>&5
10190
   $RM conftest*
10191
   # SGI C++ compiler will create directory out/ii_files/ for
10192
   # template instantiation
10193
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10194
   $RM out/* && rmdir out
10195
   cd ..
10196
   $RM -r conftest
10197
   $RM conftest*
10198
10199
fi
10200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10201
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10202
10203
10204
10205
10206
10207
10208
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210
if ${lt_cv_prog_compiler_c_o+:} false; then :
10211
  $as_echo_n "(cached) " >&6
10212
else
10213
  lt_cv_prog_compiler_c_o=no
10214
   $RM -r conftest 2>/dev/null
10215
   mkdir conftest
10216
   cd conftest
10217
   mkdir out
10218
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219
10220
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10221
   # Insert the option either (1) after the last *FLAGS variable, or
10222
   # (2) before a word containing "conftest.", or (3) at the end.
10223
   # Note that $ac_compile itself does not contain backslashes and begins
10224
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10225
   lt_compile=`echo "$ac_compile" | $SED \
10226
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228
   -e 's:$: $lt_compiler_flag:'`
10229
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10230
   (eval "$lt_compile" 2>out/conftest.err)
10231
   ac_status=$?
10232
   cat out/conftest.err >&5
10233
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10235
   then
10236
     # The compiler can only warn and ignore the option if not recognized
10237
     # So say no if there are warnings
10238
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10239
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241
       lt_cv_prog_compiler_c_o=yes
10242
     fi
10243
   fi
10244
   chmod u+w . 2>&5
10245
   $RM conftest*
10246
   # SGI C++ compiler will create directory out/ii_files/ for
10247
   # template instantiation
10248
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249
   $RM out/* && rmdir out
10250
   cd ..
10251
   $RM -r conftest
10252
   $RM conftest*
10253
10254
fi
10255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10256
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10257
10258
10259
10260
10261
hard_links="nottested"
10262
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10263
  # do not overwrite the value of need_locks provided by the user
10264
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10265
$as_echo_n "checking if we can lock with hard links... " >&6; }
10266
  hard_links=yes
10267
  $RM conftest*
10268
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10269
  touch conftest.a
10270
  ln conftest.a conftest.b 2>&5 || hard_links=no
10271
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10273
$as_echo "$hard_links" >&6; }
10274
  if test "$hard_links" = no; then
10275
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10276
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10277
    need_locks=warn
10278
  fi
10279
else
10280
  need_locks=no
10281
fi
10282
10283
10284
10285
10286
10287
10288
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10289
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10290
10291
  runpath_var=
10292
  allow_undefined_flag=
10293
  always_export_symbols=no
10294
  archive_cmds=
10295
  archive_expsym_cmds=
10296
  compiler_needs_object=no
10297
  enable_shared_with_static_runtimes=no
10298
  export_dynamic_flag_spec=
10299
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10300
  hardcode_automatic=no
10301
  hardcode_direct=no
10302
  hardcode_direct_absolute=no
10303
  hardcode_libdir_flag_spec=
10304
  hardcode_libdir_separator=
10305
  hardcode_minus_L=no
10306
  hardcode_shlibpath_var=unsupported
10307
  inherit_rpath=no
10308
  link_all_deplibs=unknown
10309
  module_cmds=
10310
  module_expsym_cmds=
10311
  old_archive_from_new_cmds=
10312
  old_archive_from_expsyms_cmds=
10313
  thread_safe_flag_spec=
10314
  whole_archive_flag_spec=
10315
  # include_expsyms should be a list of space-separated symbols to be *always*
10316
  # included in the symbol list
10317
  include_expsyms=
10318
  # exclude_expsyms can be an extended regexp of symbols to exclude
10319
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10320
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10321
  # as well as any symbol that contains `d'.
10322
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10323
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10324
  # platforms (ab)use it in PIC code, but their linkers get confused if
10325
  # the symbol is explicitly referenced.  Since portable code cannot
10326
  # rely on this symbol name, it's probably fine to never include it in
10327
  # preloaded symbol tables.
10328
  # Exclude shared library initialization/finalization symbols.
10329
  extract_expsyms_cmds=
10330
10331
  case $host_os in
10332
  cygwin* | mingw* | pw32* | cegcc*)
10333
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10334
    # When not using gcc, we currently assume that we are using
10335
    # Microsoft Visual C++.
10336
    if test "$GCC" != yes; then
10337
      with_gnu_ld=no
10338
    fi
10339
    ;;
10340
  interix*)
10341
    # we just hope/assume this is gcc and not c89 (= MSVC++)
10342
    with_gnu_ld=yes
10343
    ;;
10344
  openbsd*)
10345
    with_gnu_ld=no
10346
    ;;
10347
  linux* | k*bsd*-gnu | gnu*)
10348
    link_all_deplibs=no
10349
    ;;
10350
  esac
10351
10352
  ld_shlibs=yes
10353
10354
  # On some targets, GNU ld is compatible enough with the native linker
10355
  # that we're better off using the native interface for both.
10356
  lt_use_gnu_ld_interface=no
10357
  if test "$with_gnu_ld" = yes; then
10358
    case $host_os in
10359
      aix*)
10360
	# The AIX port of GNU ld has always aspired to compatibility
10361
	# with the native linker.  However, as the warning in the GNU ld
10362
	# block says, versions before 2.19.5* couldn't really create working
10363
	# shared libraries, regardless of the interface used.
10364
	case `$LD -v 2>&1` in
10365
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10366
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10367
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10368
	  *)
10369
	    lt_use_gnu_ld_interface=yes
10370
	    ;;
10371
	esac
10372
	;;
10373
      *)
10374
	lt_use_gnu_ld_interface=yes
10375
	;;
10376
    esac
10377
  fi
10378
10379
  if test "$lt_use_gnu_ld_interface" = yes; then
10380
    # If archive_cmds runs LD, not CC, wlarc should be empty
10381
    wlarc='${wl}'
10382
10383
    # Set some defaults for GNU ld with shared library support. These
10384
    # are reset later if shared libraries are not supported. Putting them
10385
    # here allows them to be overridden if necessary.
10386
    runpath_var=LD_RUN_PATH
10387
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388
    export_dynamic_flag_spec='${wl}--export-dynamic'
10389
    # ancient GNU ld didn't support --whole-archive et. al.
10390
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10391
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10392
    else
10393
      whole_archive_flag_spec=
10394
    fi
10395
    supports_anon_versioning=no
10396
    case `$LD -v 2>&1` in
10397
      *GNU\ gold*) supports_anon_versioning=yes ;;
10398
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10399
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10400
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10401
      *\ 2.11.*) ;; # other 2.11 versions
10402
      *) supports_anon_versioning=yes ;;
10403
    esac
10404
10405
    # See if GNU ld supports shared libraries.
10406
    case $host_os in
10407
    aix[3-9]*)
10408
      # On AIX/PPC, the GNU linker is very broken
10409
      if test "$host_cpu" != ia64; then
10410
	ld_shlibs=no
10411
	cat <<_LT_EOF 1>&2
10412
10413
*** Warning: the GNU linker, at least up to release 2.19, is reported
10414
*** to be unable to reliably create shared libraries on AIX.
10415
*** Therefore, libtool is disabling shared libraries support.  If you
10416
*** really care for shared libraries, you may want to install binutils
10417
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10418
*** You will then need to restart the configuration process.
10419
10420
_LT_EOF
10421
      fi
10422
      ;;
10423
10424
    amigaos*)
10425
      case $host_cpu in
10426
      powerpc)
10427
            # see comment about AmigaOS4 .so support
10428
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429
            archive_expsym_cmds=''
10430
        ;;
10431
      m68k)
10432
            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)'
10433
            hardcode_libdir_flag_spec='-L$libdir'
10434
            hardcode_minus_L=yes
10435
        ;;
10436
      esac
10437
      ;;
10438
10439
    beos*)
10440
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10441
	allow_undefined_flag=unsupported
10442
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10443
	# support --undefined.  This deserves some investigation.  FIXME
10444
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10445
      else
10446
	ld_shlibs=no
10447
      fi
10448
      ;;
10449
10450
    cygwin* | mingw* | pw32* | cegcc*)
10451
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10452
      # as there is no search path for DLLs.
10453
      hardcode_libdir_flag_spec='-L$libdir'
10454
      export_dynamic_flag_spec='${wl}--export-all-symbols'
10455
      allow_undefined_flag=unsupported
10456
      always_export_symbols=no
10457
      enable_shared_with_static_runtimes=yes
10458
      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'
10459
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10460
10461
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10462
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463
	# If the export-symbols file already is a .def file (1st line
10464
	# is EXPORTS), use it as is; otherwise, prepend...
10465
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10466
	  cp $export_symbols $output_objdir/$soname.def;
10467
	else
10468
	  echo EXPORTS > $output_objdir/$soname.def;
10469
	  cat $export_symbols >> $output_objdir/$soname.def;
10470
	fi~
10471
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10472
      else
10473
	ld_shlibs=no
10474
      fi
10475
      ;;
10476
10477
    haiku*)
10478
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479
      link_all_deplibs=yes
10480
      ;;
10481
10482
    interix[3-9]*)
10483
      hardcode_direct=no
10484
      hardcode_shlibpath_var=no
10485
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486
      export_dynamic_flag_spec='${wl}-E'
10487
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10488
      # Instead, shared libraries are loaded at an image base (0x10000000 by
10489
      # default) and relocated if they conflict, which is a slow very memory
10490
      # consuming and fragmenting process.  To avoid this, we pick a random,
10491
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10492
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10493
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10494
      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'
10495
      ;;
10496
10497
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10498
      tmp_diet=no
10499
      if test "$host_os" = linux-dietlibc; then
10500
	case $cc_basename in
10501
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10502
	esac
10503
      fi
10504
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10505
	 && test "$tmp_diet" = no
10506
      then
10507
	tmp_addflag=' $pic_flag'
10508
	tmp_sharedflag='-shared'
10509
	case $cc_basename,$host_cpu in
10510
        pgcc*)				# Portland Group C compiler
10511
	  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'
10512
	  tmp_addflag=' $pic_flag'
10513
	  ;;
10514
	pgf77* | pgf90* | pgf95* | pgfortran*)
10515
					# Portland Group f77 and f90 compilers
10516
	  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'
10517
	  tmp_addflag=' $pic_flag -Mnomain' ;;
10518
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10519
	  tmp_addflag=' -i_dynamic' ;;
10520
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10521
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10522
	ifc* | ifort*)			# Intel Fortran compiler
10523
	  tmp_addflag=' -nofor_main' ;;
10524
	lf95*)				# Lahey Fortran 8.1
10525
	  whole_archive_flag_spec=
10526
	  tmp_sharedflag='--shared' ;;
10527
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10528
	  tmp_sharedflag='-qmkshrobj'
10529
	  tmp_addflag= ;;
10530
	nvcc*)	# Cuda Compiler Driver 2.2
10531
	  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'
10532
	  compiler_needs_object=yes
10533
	  ;;
10534
	esac
10535
	case `$CC -V 2>&1 | sed 5q` in
10536
	*Sun\ C*)			# Sun C 5.9
10537
	  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'
10538
	  compiler_needs_object=yes
10539
	  tmp_sharedflag='-G' ;;
10540
	*Sun\ F*)			# Sun Fortran 8.3
10541
	  tmp_sharedflag='-G' ;;
10542
	esac
10543
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544
10545
        if test "x$supports_anon_versioning" = xyes; then
10546
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10547
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10548
	    echo "local: *; };" >> $output_objdir/$libname.ver~
10549
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10550
        fi
10551
10552
	case $cc_basename in
10553
	xlf* | bgf* | bgxlf* | mpixlf*)
10554
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10555
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10556
	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10557
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10558
	  if test "x$supports_anon_versioning" = xyes; then
10559
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10560
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10561
	      echo "local: *; };" >> $output_objdir/$libname.ver~
10562
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10563
	  fi
10564
	  ;;
10565
	esac
10566
      else
10567
        ld_shlibs=no
10568
      fi
10569
      ;;
10570
10571
    netbsd* | netbsdelf*-gnu)
10572
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10573
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10574
	wlarc=
10575
      else
10576
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10578
      fi
10579
      ;;
10580
10581
    solaris*)
10582
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10583
	ld_shlibs=no
10584
	cat <<_LT_EOF 1>&2
10585
10586
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10587
*** create shared libraries on Solaris systems.  Therefore, libtool
10588
*** is disabling shared libraries support.  We urge you to upgrade GNU
10589
*** binutils to release 2.9.1 or newer.  Another option is to modify
10590
*** your PATH or compiler configuration so that the native linker is
10591
*** used, and then restart.
10592
10593
_LT_EOF
10594
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10595
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10597
      else
10598
	ld_shlibs=no
10599
      fi
10600
      ;;
10601
10602
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10603
      case `$LD -v 2>&1` in
10604
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10605
	ld_shlibs=no
10606
	cat <<_LT_EOF 1>&2
10607
10608
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10609
*** reliably create shared libraries on SCO systems.  Therefore, libtool
10610
*** is disabling shared libraries support.  We urge you to upgrade GNU
10611
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10612
*** your PATH or compiler configuration so that the native linker is
10613
*** used, and then restart.
10614
10615
_LT_EOF
10616
	;;
10617
	*)
10618
	  # For security reasons, it is highly recommended that you always
10619
	  # use absolute paths for naming shared libraries, and exclude the
10620
	  # DT_RUNPATH tag from executables and libraries.  But doing so
10621
	  # requires that you compile everything twice, which is a pain.
10622
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10623
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626
	  else
10627
	    ld_shlibs=no
10628
	  fi
10629
	;;
10630
      esac
10631
      ;;
10632
10633
    sunos4*)
10634
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10635
      wlarc=
10636
      hardcode_direct=yes
10637
      hardcode_shlibpath_var=no
10638
      ;;
10639
10640
    *)
10641
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10642
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10643
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10644
      else
10645
	ld_shlibs=no
10646
      fi
10647
      ;;
10648
    esac
10649
10650
    if test "$ld_shlibs" = no; then
10651
      runpath_var=
10652
      hardcode_libdir_flag_spec=
10653
      export_dynamic_flag_spec=
10654
      whole_archive_flag_spec=
10655
    fi
10656
  else
10657
    # PORTME fill in a description of your system's linker (not GNU ld)
10658
    case $host_os in
10659
    aix3*)
10660
      allow_undefined_flag=unsupported
10661
      always_export_symbols=yes
10662
      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'
10663
      # Note: this linker hardcodes the directories in LIBPATH if there
10664
      # are no directories specified by -L.
10665
      hardcode_minus_L=yes
10666
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10667
	# Neither direct hardcoding nor static linking is supported with a
10668
	# broken collect2.
10669
	hardcode_direct=unsupported
10670
      fi
10671
      ;;
10672
10673
    aix[4-9]*)
10674
      if test "$host_cpu" = ia64; then
10675
	# On IA64, the linker does run time linking by default, so we don't
10676
	# have to do anything special.
10677
	aix_use_runtimelinking=no
10678
	exp_sym_flag='-Bexport'
10679
	no_entry_flag=""
10680
      else
10681
	# If we're using GNU nm, then we don't want the "-C" option.
10682
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10683
	# Also, AIX nm treats weak defined symbols like other global
10684
	# defined symbols, whereas GNU nm marks them as "W".
10685
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10686
	  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'
10687
	else
10688
	  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'
10689
	fi
10690
	aix_use_runtimelinking=no
10691
10692
	# Test if we are trying to use run time linking or normal
10693
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10694
	# need to do runtime linking.
10695
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10696
	  for ld_flag in $LDFLAGS; do
10697
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10698
	    aix_use_runtimelinking=yes
10699
	    break
10700
	  fi
10701
	  done
10702
	  ;;
10703
	esac
10704
10705
	exp_sym_flag='-bexport'
10706
	no_entry_flag='-bnoentry'
10707
      fi
10708
10709
      # When large executables or shared objects are built, AIX ld can
10710
      # have problems creating the table of contents.  If linking a library
10711
      # or program results in "error TOC overflow" add -mminimal-toc to
10712
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10713
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10714
10715
      archive_cmds=''
10716
      hardcode_direct=yes
10717
      hardcode_direct_absolute=yes
10718
      hardcode_libdir_separator=':'
10719
      link_all_deplibs=yes
10720
      file_list_spec='${wl}-f,'
10721
10722
      if test "$GCC" = yes; then
10723
	case $host_os in aix4.[012]|aix4.[012].*)
10724
	# We only want to do this on AIX 4.2 and lower, the check
10725
	# below for broken collect2 doesn't work under 4.3+
10726
	  collect2name=`${CC} -print-prog-name=collect2`
10727
	  if test -f "$collect2name" &&
10728
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10729
	  then
10730
	  # We have reworked collect2
10731
	  :
10732
	  else
10733
	  # We have old collect2
10734
	  hardcode_direct=unsupported
10735
	  # It fails to find uninstalled libraries when the uninstalled
10736
	  # path is not listed in the libpath.  Setting hardcode_minus_L
10737
	  # to unsupported forces relinking
10738
	  hardcode_minus_L=yes
10739
	  hardcode_libdir_flag_spec='-L$libdir'
10740
	  hardcode_libdir_separator=
10741
	  fi
10742
	  ;;
10743
	esac
10744
	shared_flag='-shared'
10745
	if test "$aix_use_runtimelinking" = yes; then
10746
	  shared_flag="$shared_flag "'${wl}-G'
10747
	fi
10748
	link_all_deplibs=no
10749
      else
10750
	# not using gcc
10751
	if test "$host_cpu" = ia64; then
10752
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10753
	# chokes on -Wl,-G. The following line is correct:
10754
	  shared_flag='-G'
10755
	else
10756
	  if test "$aix_use_runtimelinking" = yes; then
10757
	    shared_flag='${wl}-G'
10758
	  else
10759
	    shared_flag='${wl}-bM:SRE'
10760
	  fi
10761
	fi
10762
      fi
10763
10764
      export_dynamic_flag_spec='${wl}-bexpall'
10765
      # It seems that -bexpall does not export symbols beginning with
10766
      # underscore (_), so it is better to generate a list of symbols to export.
10767
      always_export_symbols=yes
10768
      if test "$aix_use_runtimelinking" = yes; then
10769
	# Warning - without using the other runtime loading flags (-brtl),
10770
	# -berok will link without error, but may produce a broken library.
10771
	allow_undefined_flag='-berok'
10772
        # Determine the default libpath from the value encoded in an
10773
        # empty executable.
10774
        if test "${lt_cv_aix_libpath+set}" = set; then
10775
  aix_libpath=$lt_cv_aix_libpath
10776
else
10777
  if ${lt_cv_aix_libpath_+:} false; then :
10778
  $as_echo_n "(cached) " >&6
10779
else
10780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781
/* end confdefs.h.  */
10782
10783
int
10784
main ()
10785
{
10786
10787
  ;
10788
  return 0;
10789
}
10790
_ACEOF
10791
if ac_fn_c_try_link "$LINENO"; then :
10792
10793
  lt_aix_libpath_sed='
10794
      /Import File Strings/,/^$/ {
10795
	  /^0/ {
10796
	      s/^0  *\([^ ]*\) *$/\1/
10797
	      p
10798
	  }
10799
      }'
10800
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801
  # Check for a 64-bit object if we didn't find anything.
10802
  if test -z "$lt_cv_aix_libpath_"; then
10803
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804
  fi
10805
fi
10806
rm -f core conftest.err conftest.$ac_objext \
10807
    conftest$ac_exeext conftest.$ac_ext
10808
  if test -z "$lt_cv_aix_libpath_"; then
10809
    lt_cv_aix_libpath_="/usr/lib:/lib"
10810
  fi
10811
10812
fi
10813
10814
  aix_libpath=$lt_cv_aix_libpath_
10815
fi
10816
10817
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10818
        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"
10819
      else
10820
	if test "$host_cpu" = ia64; then
10821
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10822
	  allow_undefined_flag="-z nodefs"
10823
	  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"
10824
	else
10825
	 # Determine the default libpath from the value encoded in an
10826
	 # empty executable.
10827
	 if test "${lt_cv_aix_libpath+set}" = set; then
10828
  aix_libpath=$lt_cv_aix_libpath
10829
else
10830
  if ${lt_cv_aix_libpath_+:} false; then :
10831
  $as_echo_n "(cached) " >&6
10832
else
10833
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834
/* end confdefs.h.  */
10835
10836
int
10837
main ()
10838
{
10839
10840
  ;
10841
  return 0;
10842
}
10843
_ACEOF
10844
if ac_fn_c_try_link "$LINENO"; then :
10845
10846
  lt_aix_libpath_sed='
10847
      /Import File Strings/,/^$/ {
10848
	  /^0/ {
10849
	      s/^0  *\([^ ]*\) *$/\1/
10850
	      p
10851
	  }
10852
      }'
10853
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854
  # Check for a 64-bit object if we didn't find anything.
10855
  if test -z "$lt_cv_aix_libpath_"; then
10856
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857
  fi
10858
fi
10859
rm -f core conftest.err conftest.$ac_objext \
10860
    conftest$ac_exeext conftest.$ac_ext
10861
  if test -z "$lt_cv_aix_libpath_"; then
10862
    lt_cv_aix_libpath_="/usr/lib:/lib"
10863
  fi
10864
10865
fi
10866
10867
  aix_libpath=$lt_cv_aix_libpath_
10868
fi
10869
10870
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10871
	  # Warning - without using the other run time loading flags,
10872
	  # -berok will link without error, but may produce a broken library.
10873
	  no_undefined_flag=' ${wl}-bernotok'
10874
	  allow_undefined_flag=' ${wl}-berok'
10875
	  if test "$with_gnu_ld" = yes; then
10876
	    # We only use this code for GNU lds that support --whole-archive.
10877
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10878
	  else
10879
	    # Exported symbols can be pulled into shared objects from archives
10880
	    whole_archive_flag_spec='$convenience'
10881
	  fi
10882
	  archive_cmds_need_lc=yes
10883
	  # This is similar to how AIX traditionally builds its shared libraries.
10884
	  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'
10885
	fi
10886
      fi
10887
      ;;
10888
10889
    amigaos*)
10890
      case $host_cpu in
10891
      powerpc)
10892
            # see comment about AmigaOS4 .so support
10893
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10894
            archive_expsym_cmds=''
10895
        ;;
10896
      m68k)
10897
            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)'
10898
            hardcode_libdir_flag_spec='-L$libdir'
10899
            hardcode_minus_L=yes
10900
        ;;
10901
      esac
10902
      ;;
10903
10904
    bsdi[45]*)
10905
      export_dynamic_flag_spec=-rdynamic
10906
      ;;
10907
10908
    cygwin* | mingw* | pw32* | cegcc*)
10909
      # When not using gcc, we currently assume that we are using
10910
      # Microsoft Visual C++.
10911
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10912
      # no search path for DLLs.
10913
      case $cc_basename in
10914
      cl*)
10915
	# Native MSVC
10916
	hardcode_libdir_flag_spec=' '
10917
	allow_undefined_flag=unsupported
10918
	always_export_symbols=yes
10919
	file_list_spec='@'
10920
	# Tell ltmain to make .lib files, not .a files.
10921
	libext=lib
10922
	# Tell ltmain to make .dll files, not .so files.
10923
	shrext_cmds=".dll"
10924
	# FIXME: Setting linknames here is a bad hack.
10925
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10926
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10927
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10928
	  else
10929
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10930
	  fi~
10931
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10932
	  linknames='
10933
	# The linker will not automatically build a static lib if we build a DLL.
10934
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10935
	enable_shared_with_static_runtimes=yes
10936
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10937
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10938
	# Don't use ranlib
10939
	old_postinstall_cmds='chmod 644 $oldlib'
10940
	postlink_cmds='lt_outputfile="@OUTPUT@"~
10941
	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10942
	  case $lt_outputfile in
10943
	    *.exe|*.EXE) ;;
10944
	    *)
10945
	      lt_outputfile="$lt_outputfile.exe"
10946
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10947
	      ;;
10948
	  esac~
10949
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10950
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10951
	    $RM "$lt_outputfile.manifest";
10952
	  fi'
10953
	;;
10954
      *)
10955
	# Assume MSVC wrapper
10956
	hardcode_libdir_flag_spec=' '
10957
	allow_undefined_flag=unsupported
10958
	# Tell ltmain to make .lib files, not .a files.
10959
	libext=lib
10960
	# Tell ltmain to make .dll files, not .so files.
10961
	shrext_cmds=".dll"
10962
	# FIXME: Setting linknames here is a bad hack.
10963
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10964
	# The linker will automatically build a .lib file if we build a DLL.
10965
	old_archive_from_new_cmds='true'
10966
	# FIXME: Should let the user specify the lib program.
10967
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10968
	enable_shared_with_static_runtimes=yes
10969
	;;
10970
      esac
10971
      ;;
10972
10973
    darwin* | rhapsody*)
10974
10975
10976
  archive_cmds_need_lc=no
10977
  hardcode_direct=no
10978
  hardcode_automatic=yes
10979
  hardcode_shlibpath_var=unsupported
10980
  if test "$lt_cv_ld_force_load" = "yes"; then
10981
    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\"`'
10982
10983
  else
10984
    whole_archive_flag_spec=''
10985
  fi
10986
  link_all_deplibs=yes
10987
  allow_undefined_flag="$_lt_dar_allow_undefined"
10988
  case $cc_basename in
10989
     ifort*) _lt_dar_can_shared=yes ;;
10990
     *) _lt_dar_can_shared=$GCC ;;
10991
  esac
10992
  if test "$_lt_dar_can_shared" = "yes"; then
10993
    output_verbose_link_cmd=func_echo_all
10994
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996
    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}"
10997
    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}"
10998
10999
  else
11000
  ld_shlibs=no
11001
  fi
11002
11003
      ;;
11004
11005
    dgux*)
11006
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007
      hardcode_libdir_flag_spec='-L$libdir'
11008
      hardcode_shlibpath_var=no
11009
      ;;
11010
11011
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012
    # support.  Future versions do this automatically, but an explicit c++rt0.o
11013
    # does not break anything, and helps significantly (at the cost of a little
11014
    # extra space).
11015
    freebsd2.2*)
11016
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017
      hardcode_libdir_flag_spec='-R$libdir'
11018
      hardcode_direct=yes
11019
      hardcode_shlibpath_var=no
11020
      ;;
11021
11022
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11023
    freebsd2.*)
11024
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025
      hardcode_direct=yes
11026
      hardcode_minus_L=yes
11027
      hardcode_shlibpath_var=no
11028
      ;;
11029
11030
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031
    freebsd* | dragonfly*)
11032
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033
      hardcode_libdir_flag_spec='-R$libdir'
11034
      hardcode_direct=yes
11035
      hardcode_shlibpath_var=no
11036
      ;;
11037
11038
    hpux9*)
11039
      if test "$GCC" = yes; then
11040
	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'
11041
      else
11042
	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'
11043
      fi
11044
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045
      hardcode_libdir_separator=:
11046
      hardcode_direct=yes
11047
11048
      # hardcode_minus_L: Not really in the search PATH,
11049
      # but as the default location of the library.
11050
      hardcode_minus_L=yes
11051
      export_dynamic_flag_spec='${wl}-E'
11052
      ;;
11053
11054
    hpux10*)
11055
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057
      else
11058
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059
      fi
11060
      if test "$with_gnu_ld" = no; then
11061
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11062
	hardcode_libdir_separator=:
11063
	hardcode_direct=yes
11064
	hardcode_direct_absolute=yes
11065
	export_dynamic_flag_spec='${wl}-E'
11066
	# hardcode_minus_L: Not really in the search PATH,
11067
	# but as the default location of the library.
11068
	hardcode_minus_L=yes
11069
      fi
11070
      ;;
11071
11072
    hpux11*)
11073
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11074
	case $host_cpu in
11075
	hppa*64*)
11076
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11077
	  ;;
11078
	ia64*)
11079
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11080
	  ;;
11081
	*)
11082
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11083
	  ;;
11084
	esac
11085
      else
11086
	case $host_cpu in
11087
	hppa*64*)
11088
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11089
	  ;;
11090
	ia64*)
11091
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11092
	  ;;
11093
	*)
11094
11095
	  # Older versions of the 11.00 compiler do not understand -b yet
11096
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11097
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11098
$as_echo_n "checking if $CC understands -b... " >&6; }
11099
if ${lt_cv_prog_compiler__b+:} false; then :
11100
  $as_echo_n "(cached) " >&6
11101
else
11102
  lt_cv_prog_compiler__b=no
11103
   save_LDFLAGS="$LDFLAGS"
11104
   LDFLAGS="$LDFLAGS -b"
11105
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11106
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11107
     # The linker can only warn and ignore the option if not recognized
11108
     # So say no if there are warnings
11109
     if test -s conftest.err; then
11110
       # Append any errors to the config.log.
11111
       cat conftest.err 1>&5
11112
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11113
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114
       if diff conftest.exp conftest.er2 >/dev/null; then
11115
         lt_cv_prog_compiler__b=yes
11116
       fi
11117
     else
11118
       lt_cv_prog_compiler__b=yes
11119
     fi
11120
   fi
11121
   $RM -r conftest*
11122
   LDFLAGS="$save_LDFLAGS"
11123
11124
fi
11125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11126
$as_echo "$lt_cv_prog_compiler__b" >&6; }
11127
11128
if test x"$lt_cv_prog_compiler__b" = xyes; then
11129
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130
else
11131
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11132
fi
11133
11134
	  ;;
11135
	esac
11136
      fi
11137
      if test "$with_gnu_ld" = no; then
11138
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11139
	hardcode_libdir_separator=:
11140
11141
	case $host_cpu in
11142
	hppa*64*|ia64*)
11143
	  hardcode_direct=no
11144
	  hardcode_shlibpath_var=no
11145
	  ;;
11146
	*)
11147
	  hardcode_direct=yes
11148
	  hardcode_direct_absolute=yes
11149
	  export_dynamic_flag_spec='${wl}-E'
11150
11151
	  # hardcode_minus_L: Not really in the search PATH,
11152
	  # but as the default location of the library.
11153
	  hardcode_minus_L=yes
11154
	  ;;
11155
	esac
11156
      fi
11157
      ;;
11158
11159
    irix5* | irix6* | nonstopux*)
11160
      if test "$GCC" = yes; then
11161
	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'
11162
	# Try to use the -exported_symbol ld option, if it does not
11163
	# work, assume that -exports_file does not work either and
11164
	# implicitly export all symbols.
11165
	# This should be the same for all languages, so no per-tag cache variable.
11166
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11167
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11168
if ${lt_cv_irix_exported_symbol+:} false; then :
11169
  $as_echo_n "(cached) " >&6
11170
else
11171
  save_LDFLAGS="$LDFLAGS"
11172
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11173
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174
/* end confdefs.h.  */
11175
int foo (void) { return 0; }
11176
_ACEOF
11177
if ac_fn_c_try_link "$LINENO"; then :
11178
  lt_cv_irix_exported_symbol=yes
11179
else
11180
  lt_cv_irix_exported_symbol=no
11181
fi
11182
rm -f core conftest.err conftest.$ac_objext \
11183
    conftest$ac_exeext conftest.$ac_ext
11184
           LDFLAGS="$save_LDFLAGS"
11185
fi
11186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11187
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11188
	if test "$lt_cv_irix_exported_symbol" = yes; then
11189
          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'
11190
	fi
11191
      else
11192
	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'
11193
	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'
11194
      fi
11195
      archive_cmds_need_lc='no'
11196
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197
      hardcode_libdir_separator=:
11198
      inherit_rpath=yes
11199
      link_all_deplibs=yes
11200
      ;;
11201
11202
    netbsd* | netbsdelf*-gnu)
11203
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11205
      else
11206
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11207
      fi
11208
      hardcode_libdir_flag_spec='-R$libdir'
11209
      hardcode_direct=yes
11210
      hardcode_shlibpath_var=no
11211
      ;;
11212
11213
    newsos6)
11214
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215
      hardcode_direct=yes
11216
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11217
      hardcode_libdir_separator=:
11218
      hardcode_shlibpath_var=no
11219
      ;;
11220
11221
    *nto* | *qnx*)
11222
      ;;
11223
11224
    openbsd*)
11225
      if test -f /usr/libexec/ld.so; then
11226
	hardcode_direct=yes
11227
	hardcode_shlibpath_var=no
11228
	hardcode_direct_absolute=yes
11229
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11230
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11232
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11233
	  export_dynamic_flag_spec='${wl}-E'
11234
	else
11235
	  case $host_os in
11236
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11237
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11238
	     hardcode_libdir_flag_spec='-R$libdir'
11239
	     ;;
11240
	   *)
11241
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11242
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11243
	     ;;
11244
	  esac
11245
	fi
11246
      else
11247
	ld_shlibs=no
11248
      fi
11249
      ;;
11250
11251
    os2*)
11252
      hardcode_libdir_flag_spec='-L$libdir'
11253
      hardcode_minus_L=yes
11254
      allow_undefined_flag=unsupported
11255
      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'
11256
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11257
      ;;
11258
11259
    osf3*)
11260
      if test "$GCC" = yes; then
11261
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11262
	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'
11263
      else
11264
	allow_undefined_flag=' -expect_unresolved \*'
11265
	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'
11266
      fi
11267
      archive_cmds_need_lc='no'
11268
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269
      hardcode_libdir_separator=:
11270
      ;;
11271
11272
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11273
      if test "$GCC" = yes; then
11274
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275
	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'
11276
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11277
      else
11278
	allow_undefined_flag=' -expect_unresolved \*'
11279
	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'
11280
	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~
11281
	$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'
11282
11283
	# Both c and cxx compiler support -rpath directly
11284
	hardcode_libdir_flag_spec='-rpath $libdir'
11285
      fi
11286
      archive_cmds_need_lc='no'
11287
      hardcode_libdir_separator=:
11288
      ;;
11289
11290
    solaris*)
11291
      no_undefined_flag=' -z defs'
11292
      if test "$GCC" = yes; then
11293
	wlarc='${wl}'
11294
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11295
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11296
	  $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'
11297
      else
11298
	case `$CC -V 2>&1` in
11299
	*"Compilers 5.0"*)
11300
	  wlarc=''
11301
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11304
	  ;;
11305
	*)
11306
	  wlarc='${wl}'
11307
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11308
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11310
	  ;;
11311
	esac
11312
      fi
11313
      hardcode_libdir_flag_spec='-R$libdir'
11314
      hardcode_shlibpath_var=no
11315
      case $host_os in
11316
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11317
      *)
11318
	# The compiler driver will combine and reorder linker options,
11319
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11320
	# but is careful enough not to reorder.
11321
	# Supported since Solaris 2.6 (maybe 2.5.1?)
11322
	if test "$GCC" = yes; then
11323
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11324
	else
11325
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11326
	fi
11327
	;;
11328
      esac
11329
      link_all_deplibs=yes
11330
      ;;
11331
11332
    sunos4*)
11333
      if test "x$host_vendor" = xsequent; then
11334
	# Use $CC to link under sequent, because it throws in some extra .o
11335
	# files that make .init and .fini sections work.
11336
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11337
      else
11338
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11339
      fi
11340
      hardcode_libdir_flag_spec='-L$libdir'
11341
      hardcode_direct=yes
11342
      hardcode_minus_L=yes
11343
      hardcode_shlibpath_var=no
11344
      ;;
11345
11346
    sysv4)
11347
      case $host_vendor in
11348
	sni)
11349
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350
	  hardcode_direct=yes # is this really true???
11351
	;;
11352
	siemens)
11353
	  ## LD is ld it makes a PLAMLIB
11354
	  ## CC just makes a GrossModule.
11355
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11356
	  reload_cmds='$CC -r -o $output$reload_objs'
11357
	  hardcode_direct=no
11358
        ;;
11359
	motorola)
11360
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11362
	;;
11363
      esac
11364
      runpath_var='LD_RUN_PATH'
11365
      hardcode_shlibpath_var=no
11366
      ;;
11367
11368
    sysv4.3*)
11369
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370
      hardcode_shlibpath_var=no
11371
      export_dynamic_flag_spec='-Bexport'
11372
      ;;
11373
11374
    sysv4*MP*)
11375
      if test -d /usr/nec; then
11376
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377
	hardcode_shlibpath_var=no
11378
	runpath_var=LD_RUN_PATH
11379
	hardcode_runpath_var=yes
11380
	ld_shlibs=yes
11381
      fi
11382
      ;;
11383
11384
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11385
      no_undefined_flag='${wl}-z,text'
11386
      archive_cmds_need_lc=no
11387
      hardcode_shlibpath_var=no
11388
      runpath_var='LD_RUN_PATH'
11389
11390
      if test "$GCC" = yes; then
11391
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393
      else
11394
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396
      fi
11397
      ;;
11398
11399
    sysv5* | sco3.2v5* | sco5v6*)
11400
      # Note: We can NOT use -z defs as we might desire, because we do not
11401
      # link with -lc, and that would cause any symbols used from libc to
11402
      # always be unresolved, which means just about no library would
11403
      # ever link correctly.  If we're not using GNU ld we use -z text
11404
      # though, which does catch some bad symbols but isn't as heavy-handed
11405
      # as -z defs.
11406
      no_undefined_flag='${wl}-z,text'
11407
      allow_undefined_flag='${wl}-z,nodefs'
11408
      archive_cmds_need_lc=no
11409
      hardcode_shlibpath_var=no
11410
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11411
      hardcode_libdir_separator=':'
11412
      link_all_deplibs=yes
11413
      export_dynamic_flag_spec='${wl}-Bexport'
11414
      runpath_var='LD_RUN_PATH'
11415
11416
      if test "$GCC" = yes; then
11417
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11419
      else
11420
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11422
      fi
11423
      ;;
11424
11425
    uts4*)
11426
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427
      hardcode_libdir_flag_spec='-L$libdir'
11428
      hardcode_shlibpath_var=no
11429
      ;;
11430
11431
    *)
11432
      ld_shlibs=no
11433
      ;;
11434
    esac
11435
11436
    if test x$host_vendor = xsni; then
11437
      case $host in
11438
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11439
	export_dynamic_flag_spec='${wl}-Blargedynsym'
11440
	;;
11441
      esac
11442
    fi
11443
  fi
11444
11445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11446
$as_echo "$ld_shlibs" >&6; }
11447
test "$ld_shlibs" = no && can_build_shared=no
11448
11449
with_gnu_ld=$with_gnu_ld
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
#
11466
# Do we need to explicitly link libc?
11467
#
11468
case "x$archive_cmds_need_lc" in
11469
x|xyes)
11470
  # Assume -lc should be added
11471
  archive_cmds_need_lc=yes
11472
11473
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11474
    case $archive_cmds in
11475
    *'~'*)
11476
      # FIXME: we may have to deal with multi-command sequences.
11477
      ;;
11478
    '$CC '*)
11479
      # Test whether the compiler implicitly links with -lc since on some
11480
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481
      # to ld, don't add -lc before -lgcc.
11482
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11483
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11484
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11485
  $as_echo_n "(cached) " >&6
11486
else
11487
  $RM conftest*
11488
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11489
11490
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11491
  (eval $ac_compile) 2>&5
11492
  ac_status=$?
11493
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494
  test $ac_status = 0; } 2>conftest.err; then
11495
	  soname=conftest
11496
	  lib=conftest
11497
	  libobjs=conftest.$ac_objext
11498
	  deplibs=
11499
	  wl=$lt_prog_compiler_wl
11500
	  pic_flag=$lt_prog_compiler_pic
11501
	  compiler_flags=-v
11502
	  linker_flags=-v
11503
	  verstring=
11504
	  output_objdir=.
11505
	  libname=conftest
11506
	  lt_save_allow_undefined_flag=$allow_undefined_flag
11507
	  allow_undefined_flag=
11508
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11509
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11510
  ac_status=$?
11511
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512
  test $ac_status = 0; }
11513
	  then
11514
	    lt_cv_archive_cmds_need_lc=no
11515
	  else
11516
	    lt_cv_archive_cmds_need_lc=yes
11517
	  fi
11518
	  allow_undefined_flag=$lt_save_allow_undefined_flag
11519
	else
11520
	  cat conftest.err 1>&5
11521
	fi
11522
	$RM conftest*
11523
11524
fi
11525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11526
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11527
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11528
      ;;
11529
    esac
11530
  fi
11531
  ;;
11532
esac
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11686
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11687
11688
if test "$GCC" = yes; then
11689
  case $host_os in
11690
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11691
    *) lt_awk_arg="/^libraries:/" ;;
11692
  esac
11693
  case $host_os in
11694
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11695
    *) lt_sed_strip_eq="s,=/,/,g" ;;
11696
  esac
11697
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11698
  case $lt_search_path_spec in
11699
  *\;*)
11700
    # if the path contains ";" then we assume it to be the separator
11701
    # otherwise default to the standard path separator (i.e. ":") - it is
11702
    # assumed that no part of a normal pathname contains ";" but that should
11703
    # okay in the real world where ";" in dirpaths is itself problematic.
11704
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11705
    ;;
11706
  *)
11707
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11708
    ;;
11709
  esac
11710
  # Ok, now we have the path, separated by spaces, we can step through it
11711
  # and add multilib dir if necessary.
11712
  lt_tmp_lt_search_path_spec=
11713
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11714
  for lt_sys_path in $lt_search_path_spec; do
11715
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11716
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11717
    else
11718
      test -d "$lt_sys_path" && \
11719
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11720
    fi
11721
  done
11722
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11723
BEGIN {RS=" "; FS="/|\n";} {
11724
  lt_foo="";
11725
  lt_count=0;
11726
  for (lt_i = NF; lt_i > 0; lt_i--) {
11727
    if ($lt_i != "" && $lt_i != ".") {
11728
      if ($lt_i == "..") {
11729
        lt_count++;
11730
      } else {
11731
        if (lt_count == 0) {
11732
          lt_foo="/" $lt_i lt_foo;
11733
        } else {
11734
          lt_count--;
11735
        }
11736
      }
11737
    }
11738
  }
11739
  if (lt_foo != "") { lt_freq[lt_foo]++; }
11740
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11741
}'`
11742
  # AWK program above erroneously prepends '/' to C:/dos/paths
11743
  # for these hosts.
11744
  case $host_os in
11745
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11746
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11747
  esac
11748
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11749
else
11750
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11751
fi
11752
library_names_spec=
11753
libname_spec='lib$name'
11754
soname_spec=
11755
shrext_cmds=".so"
11756
postinstall_cmds=
11757
postuninstall_cmds=
11758
finish_cmds=
11759
finish_eval=
11760
shlibpath_var=
11761
shlibpath_overrides_runpath=unknown
11762
version_type=none
11763
dynamic_linker="$host_os ld.so"
11764
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11765
need_lib_prefix=unknown
11766
hardcode_into_libs=no
11767
11768
# when you set need_version to no, make sure it does not cause -set_version
11769
# flags to be left without arguments
11770
need_version=unknown
11771
11772
case $host_os in
11773
aix3*)
11774
  version_type=linux # correct to gnu/linux during the next big refactor
11775
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11776
  shlibpath_var=LIBPATH
11777
11778
  # AIX 3 has no versioning support, so we append a major version to the name.
11779
  soname_spec='${libname}${release}${shared_ext}$major'
11780
  ;;
11781
11782
aix[4-9]*)
11783
  version_type=linux # correct to gnu/linux during the next big refactor
11784
  need_lib_prefix=no
11785
  need_version=no
11786
  hardcode_into_libs=yes
11787
  if test "$host_cpu" = ia64; then
11788
    # AIX 5 supports IA64
11789
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11790
    shlibpath_var=LD_LIBRARY_PATH
11791
  else
11792
    # With GCC up to 2.95.x, collect2 would create an import file
11793
    # for dependence libraries.  The import file would start with
11794
    # the line `#! .'.  This would cause the generated library to
11795
    # depend on `.', always an invalid library.  This was fixed in
11796
    # development snapshots of GCC prior to 3.0.
11797
    case $host_os in
11798
      aix4 | aix4.[01] | aix4.[01].*)
11799
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11800
	   echo ' yes '
11801
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11802
	:
11803
      else
11804
	can_build_shared=no
11805
      fi
11806
      ;;
11807
    esac
11808
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11809
    # soname into executable. Probably we can add versioning support to
11810
    # collect2, so additional links can be useful in future.
11811
    if test "$aix_use_runtimelinking" = yes; then
11812
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11813
      # instead of lib<name>.a to let people know that these are not
11814
      # typical AIX shared libraries.
11815
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816
    else
11817
      # We preserve .a as extension for shared libraries through AIX4.2
11818
      # and later when we are not doing run time linking.
11819
      library_names_spec='${libname}${release}.a $libname.a'
11820
      soname_spec='${libname}${release}${shared_ext}$major'
11821
    fi
11822
    shlibpath_var=LIBPATH
11823
  fi
11824
  ;;
11825
11826
amigaos*)
11827
  case $host_cpu in
11828
  powerpc)
11829
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11830
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11831
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832
    ;;
11833
  m68k)
11834
    library_names_spec='$libname.ixlibrary $libname.a'
11835
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11836
    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'
11837
    ;;
11838
  esac
11839
  ;;
11840
11841
beos*)
11842
  library_names_spec='${libname}${shared_ext}'
11843
  dynamic_linker="$host_os ld.so"
11844
  shlibpath_var=LIBRARY_PATH
11845
  ;;
11846
11847
bsdi[45]*)
11848
  version_type=linux # correct to gnu/linux during the next big refactor
11849
  need_version=no
11850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851
  soname_spec='${libname}${release}${shared_ext}$major'
11852
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11853
  shlibpath_var=LD_LIBRARY_PATH
11854
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11855
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11856
  # the default ld.so.conf also contains /usr/contrib/lib and
11857
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11858
  # libtool to hard-code these into programs
11859
  ;;
11860
11861
cygwin* | mingw* | pw32* | cegcc*)
11862
  version_type=windows
11863
  shrext_cmds=".dll"
11864
  need_version=no
11865
  need_lib_prefix=no
11866
11867
  case $GCC,$cc_basename in
11868
  yes,*)
11869
    # gcc
11870
    library_names_spec='$libname.dll.a'
11871
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872
    postinstall_cmds='base_file=`basename \${file}`~
11873
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874
      dldir=$destdir/`dirname \$dlpath`~
11875
      test -d \$dldir || mkdir -p \$dldir~
11876
      $install_prog $dir/$dlname \$dldir/$dlname~
11877
      chmod a+x \$dldir/$dlname~
11878
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11879
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880
      fi'
11881
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11882
      dlpath=$dir/\$dldll~
11883
       $RM \$dlpath'
11884
    shlibpath_overrides_runpath=yes
11885
11886
    case $host_os in
11887
    cygwin*)
11888
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11889
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890
11891
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11892
      ;;
11893
    mingw* | cegcc*)
11894
      # MinGW DLLs use traditional 'lib' prefix
11895
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11896
      ;;
11897
    pw32*)
11898
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11899
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900
      ;;
11901
    esac
11902
    dynamic_linker='Win32 ld.exe'
11903
    ;;
11904
11905
  *,cl*)
11906
    # Native MSVC
11907
    libname_spec='$name'
11908
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909
    library_names_spec='${libname}.dll.lib'
11910
11911
    case $build_os in
11912
    mingw*)
11913
      sys_lib_search_path_spec=
11914
      lt_save_ifs=$IFS
11915
      IFS=';'
11916
      for lt_path in $LIB
11917
      do
11918
        IFS=$lt_save_ifs
11919
        # Let DOS variable expansion print the short 8.3 style file name.
11920
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11921
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11922
      done
11923
      IFS=$lt_save_ifs
11924
      # Convert to MSYS style.
11925
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11926
      ;;
11927
    cygwin*)
11928
      # Convert to unix form, then to dos form, then back to unix form
11929
      # but this time dos style (no spaces!) so that the unix form looks
11930
      # like /cygdrive/c/PROGRA~1:/cygdr...
11931
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11932
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11933
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11934
      ;;
11935
    *)
11936
      sys_lib_search_path_spec="$LIB"
11937
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11938
        # It is most probably a Windows format PATH.
11939
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940
      else
11941
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942
      fi
11943
      # FIXME: find the short name or the path components, as spaces are
11944
      # common. (e.g. "Program Files" -> "PROGRA~1")
11945
      ;;
11946
    esac
11947
11948
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11949
    postinstall_cmds='base_file=`basename \${file}`~
11950
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11951
      dldir=$destdir/`dirname \$dlpath`~
11952
      test -d \$dldir || mkdir -p \$dldir~
11953
      $install_prog $dir/$dlname \$dldir/$dlname'
11954
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11955
      dlpath=$dir/\$dldll~
11956
       $RM \$dlpath'
11957
    shlibpath_overrides_runpath=yes
11958
    dynamic_linker='Win32 link.exe'
11959
    ;;
11960
11961
  *)
11962
    # Assume MSVC wrapper
11963
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11964
    dynamic_linker='Win32 ld.exe'
11965
    ;;
11966
  esac
11967
  # FIXME: first we should search . and the directory the executable is in
11968
  shlibpath_var=PATH
11969
  ;;
11970
11971
darwin* | rhapsody*)
11972
  dynamic_linker="$host_os dyld"
11973
  version_type=darwin
11974
  need_lib_prefix=no
11975
  need_version=no
11976
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11977
  soname_spec='${libname}${release}${major}$shared_ext'
11978
  shlibpath_overrides_runpath=yes
11979
  shlibpath_var=DYLD_LIBRARY_PATH
11980
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11981
11982
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11983
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11984
  ;;
11985
11986
dgux*)
11987
  version_type=linux # correct to gnu/linux during the next big refactor
11988
  need_lib_prefix=no
11989
  need_version=no
11990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11991
  soname_spec='${libname}${release}${shared_ext}$major'
11992
  shlibpath_var=LD_LIBRARY_PATH
11993
  ;;
11994
11995
freebsd* | dragonfly*)
11996
  # DragonFly does not have aout.  When/if they implement a new
11997
  # versioning mechanism, adjust this.
11998
  if test -x /usr/bin/objformat; then
11999
    objformat=`/usr/bin/objformat`
12000
  else
12001
    case $host_os in
12002
    freebsd[23].*) objformat=aout ;;
12003
    *) objformat=elf ;;
12004
    esac
12005
  fi
12006
  version_type=freebsd-$objformat
12007
  case $version_type in
12008
    freebsd-elf*)
12009
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010
      need_version=no
12011
      need_lib_prefix=no
12012
      ;;
12013
    freebsd-*)
12014
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12015
      need_version=yes
12016
      ;;
12017
  esac
12018
  shlibpath_var=LD_LIBRARY_PATH
12019
  case $host_os in
12020
  freebsd2.*)
12021
    shlibpath_overrides_runpath=yes
12022
    ;;
12023
  freebsd3.[01]* | freebsdelf3.[01]*)
12024
    shlibpath_overrides_runpath=yes
12025
    hardcode_into_libs=yes
12026
    ;;
12027
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12028
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12029
    shlibpath_overrides_runpath=no
12030
    hardcode_into_libs=yes
12031
    ;;
12032
  *) # from 4.6 on, and DragonFly
12033
    shlibpath_overrides_runpath=yes
12034
    hardcode_into_libs=yes
12035
    ;;
12036
  esac
12037
  ;;
12038
12039
gnu*)
12040
  version_type=linux # correct to gnu/linux during the next big refactor
12041
  need_lib_prefix=no
12042
  need_version=no
12043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12044
  soname_spec='${libname}${release}${shared_ext}$major'
12045
  shlibpath_var=LD_LIBRARY_PATH
12046
  shlibpath_overrides_runpath=no
12047
  hardcode_into_libs=yes
12048
  ;;
12049
12050
haiku*)
12051
  version_type=linux # correct to gnu/linux during the next big refactor
12052
  need_lib_prefix=no
12053
  need_version=no
12054
  dynamic_linker="$host_os runtime_loader"
12055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12056
  soname_spec='${libname}${release}${shared_ext}$major'
12057
  shlibpath_var=LIBRARY_PATH
12058
  shlibpath_overrides_runpath=yes
12059
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12060
  hardcode_into_libs=yes
12061
  ;;
12062
12063
hpux9* | hpux10* | hpux11*)
12064
  # Give a soname corresponding to the major version so that dld.sl refuses to
12065
  # link against other versions.
12066
  version_type=sunos
12067
  need_lib_prefix=no
12068
  need_version=no
12069
  case $host_cpu in
12070
  ia64*)
12071
    shrext_cmds='.so'
12072
    hardcode_into_libs=yes
12073
    dynamic_linker="$host_os dld.so"
12074
    shlibpath_var=LD_LIBRARY_PATH
12075
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12076
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077
    soname_spec='${libname}${release}${shared_ext}$major'
12078
    if test "X$HPUX_IA64_MODE" = X32; then
12079
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12080
    else
12081
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12082
    fi
12083
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12084
    ;;
12085
  hppa*64*)
12086
    shrext_cmds='.sl'
12087
    hardcode_into_libs=yes
12088
    dynamic_linker="$host_os dld.sl"
12089
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12090
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12091
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092
    soname_spec='${libname}${release}${shared_ext}$major'
12093
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12094
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12095
    ;;
12096
  *)
12097
    shrext_cmds='.sl'
12098
    dynamic_linker="$host_os dld.sl"
12099
    shlibpath_var=SHLIB_PATH
12100
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12101
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102
    soname_spec='${libname}${release}${shared_ext}$major'
12103
    ;;
12104
  esac
12105
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12106
  postinstall_cmds='chmod 555 $lib'
12107
  # or fails outright, so override atomically:
12108
  install_override_mode=555
12109
  ;;
12110
12111
interix[3-9]*)
12112
  version_type=linux # correct to gnu/linux during the next big refactor
12113
  need_lib_prefix=no
12114
  need_version=no
12115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12116
  soname_spec='${libname}${release}${shared_ext}$major'
12117
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12118
  shlibpath_var=LD_LIBRARY_PATH
12119
  shlibpath_overrides_runpath=no
12120
  hardcode_into_libs=yes
12121
  ;;
12122
12123
irix5* | irix6* | nonstopux*)
12124
  case $host_os in
12125
    nonstopux*) version_type=nonstopux ;;
12126
    *)
12127
	if test "$lt_cv_prog_gnu_ld" = yes; then
12128
		version_type=linux # correct to gnu/linux during the next big refactor
12129
	else
12130
		version_type=irix
12131
	fi ;;
12132
  esac
12133
  need_lib_prefix=no
12134
  need_version=no
12135
  soname_spec='${libname}${release}${shared_ext}$major'
12136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12137
  case $host_os in
12138
  irix5* | nonstopux*)
12139
    libsuff= shlibsuff=
12140
    ;;
12141
  *)
12142
    case $LD in # libtool.m4 will add one of these switches to LD
12143
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12144
      libsuff= shlibsuff= libmagic=32-bit;;
12145
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12146
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12147
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12148
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12149
    *) libsuff= shlibsuff= libmagic=never-match;;
12150
    esac
12151
    ;;
12152
  esac
12153
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12154
  shlibpath_overrides_runpath=no
12155
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12156
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12157
  hardcode_into_libs=yes
12158
  ;;
12159
12160
# No shared lib support for Linux oldld, aout, or coff.
12161
linux*oldld* | linux*aout* | linux*coff*)
12162
  dynamic_linker=no
12163
  ;;
12164
12165
# This must be glibc/ELF.
12166
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12167
  version_type=linux # correct to gnu/linux during the next big refactor
12168
  need_lib_prefix=no
12169
  need_version=no
12170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171
  soname_spec='${libname}${release}${shared_ext}$major'
12172
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12173
  shlibpath_var=LD_LIBRARY_PATH
12174
  shlibpath_overrides_runpath=no
12175
12176
  # Some binutils ld are patched to set DT_RUNPATH
12177
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12178
  $as_echo_n "(cached) " >&6
12179
else
12180
  lt_cv_shlibpath_overrides_runpath=no
12181
    save_LDFLAGS=$LDFLAGS
12182
    save_libdir=$libdir
12183
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12184
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12185
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186
/* end confdefs.h.  */
12187
12188
int
12189
main ()
12190
{
12191
12192
  ;
12193
  return 0;
12194
}
12195
_ACEOF
12196
if ac_fn_c_try_link "$LINENO"; then :
12197
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12198
  lt_cv_shlibpath_overrides_runpath=yes
12199
fi
12200
fi
12201
rm -f core conftest.err conftest.$ac_objext \
12202
    conftest$ac_exeext conftest.$ac_ext
12203
    LDFLAGS=$save_LDFLAGS
12204
    libdir=$save_libdir
12205
12206
fi
12207
12208
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12209
12210
  # This implies no fast_install, which is unacceptable.
12211
  # Some rework will be needed to allow for fast_install
12212
  # before this can be enabled.
12213
  hardcode_into_libs=yes
12214
12215
  # Append ld.so.conf contents to the search path
12216
  if test -f /etc/ld.so.conf; then
12217
    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' ' '`
12218
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219
  fi
12220
12221
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12222
  # powerpc, because MkLinux only supported shared libraries with the
12223
  # GNU dynamic linker.  Since this was broken with cross compilers,
12224
  # most powerpc-linux boxes support dynamic linking these days and
12225
  # people can always --disable-shared, the test was removed, and we
12226
  # assume the GNU/Linux dynamic linker is in use.
12227
  dynamic_linker='GNU/Linux ld.so'
12228
  ;;
12229
12230
netbsdelf*-gnu)
12231
  version_type=linux
12232
  need_lib_prefix=no
12233
  need_version=no
12234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12235
  soname_spec='${libname}${release}${shared_ext}$major'
12236
  shlibpath_var=LD_LIBRARY_PATH
12237
  shlibpath_overrides_runpath=no
12238
  hardcode_into_libs=yes
12239
  dynamic_linker='NetBSD ld.elf_so'
12240
  ;;
12241
12242
netbsd*)
12243
  version_type=sunos
12244
  need_lib_prefix=no
12245
  need_version=no
12246
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12247
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12248
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12249
    dynamic_linker='NetBSD (a.out) ld.so'
12250
  else
12251
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12252
    soname_spec='${libname}${release}${shared_ext}$major'
12253
    dynamic_linker='NetBSD ld.elf_so'
12254
  fi
12255
  shlibpath_var=LD_LIBRARY_PATH
12256
  shlibpath_overrides_runpath=yes
12257
  hardcode_into_libs=yes
12258
  ;;
12259
12260
newsos6)
12261
  version_type=linux # correct to gnu/linux during the next big refactor
12262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263
  shlibpath_var=LD_LIBRARY_PATH
12264
  shlibpath_overrides_runpath=yes
12265
  ;;
12266
12267
*nto* | *qnx*)
12268
  version_type=qnx
12269
  need_lib_prefix=no
12270
  need_version=no
12271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12272
  soname_spec='${libname}${release}${shared_ext}$major'
12273
  shlibpath_var=LD_LIBRARY_PATH
12274
  shlibpath_overrides_runpath=no
12275
  hardcode_into_libs=yes
12276
  dynamic_linker='ldqnx.so'
12277
  ;;
12278
12279
openbsd*)
12280
  version_type=sunos
12281
  sys_lib_dlsearch_path_spec="/usr/lib"
12282
  need_lib_prefix=no
12283
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12284
  case $host_os in
12285
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12286
    *)				need_version=no  ;;
12287
  esac
12288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12289
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12290
  shlibpath_var=LD_LIBRARY_PATH
12291
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12292
    case $host_os in
12293
      openbsd2.[89] | openbsd2.[89].*)
12294
	shlibpath_overrides_runpath=no
12295
	;;
12296
      *)
12297
	shlibpath_overrides_runpath=yes
12298
	;;
12299
      esac
12300
  else
12301
    shlibpath_overrides_runpath=yes
12302
  fi
12303
  ;;
12304
12305
os2*)
12306
  libname_spec='$name'
12307
  shrext_cmds=".dll"
12308
  need_lib_prefix=no
12309
  library_names_spec='$libname${shared_ext} $libname.a'
12310
  dynamic_linker='OS/2 ld.exe'
12311
  shlibpath_var=LIBPATH
12312
  ;;
12313
12314
osf3* | osf4* | osf5*)
12315
  version_type=osf
12316
  need_lib_prefix=no
12317
  need_version=no
12318
  soname_spec='${libname}${release}${shared_ext}$major'
12319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320
  shlibpath_var=LD_LIBRARY_PATH
12321
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12322
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12323
  ;;
12324
12325
rdos*)
12326
  dynamic_linker=no
12327
  ;;
12328
12329
solaris*)
12330
  version_type=linux # correct to gnu/linux during the next big refactor
12331
  need_lib_prefix=no
12332
  need_version=no
12333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334
  soname_spec='${libname}${release}${shared_ext}$major'
12335
  shlibpath_var=LD_LIBRARY_PATH
12336
  shlibpath_overrides_runpath=yes
12337
  hardcode_into_libs=yes
12338
  # ldd complains unless libraries are executable
12339
  postinstall_cmds='chmod +x $lib'
12340
  ;;
12341
12342
sunos4*)
12343
  version_type=sunos
12344
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12345
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12346
  shlibpath_var=LD_LIBRARY_PATH
12347
  shlibpath_overrides_runpath=yes
12348
  if test "$with_gnu_ld" = yes; then
12349
    need_lib_prefix=no
12350
  fi
12351
  need_version=yes
12352
  ;;
12353
12354
sysv4 | sysv4.3*)
12355
  version_type=linux # correct to gnu/linux during the next big refactor
12356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357
  soname_spec='${libname}${release}${shared_ext}$major'
12358
  shlibpath_var=LD_LIBRARY_PATH
12359
  case $host_vendor in
12360
    sni)
12361
      shlibpath_overrides_runpath=no
12362
      need_lib_prefix=no
12363
      runpath_var=LD_RUN_PATH
12364
      ;;
12365
    siemens)
12366
      need_lib_prefix=no
12367
      ;;
12368
    motorola)
12369
      need_lib_prefix=no
12370
      need_version=no
12371
      shlibpath_overrides_runpath=no
12372
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12373
      ;;
12374
  esac
12375
  ;;
12376
12377
sysv4*MP*)
12378
  if test -d /usr/nec ;then
12379
    version_type=linux # correct to gnu/linux during the next big refactor
12380
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12381
    soname_spec='$libname${shared_ext}.$major'
12382
    shlibpath_var=LD_LIBRARY_PATH
12383
  fi
12384
  ;;
12385
12386
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12387
  version_type=freebsd-elf
12388
  need_lib_prefix=no
12389
  need_version=no
12390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12391
  soname_spec='${libname}${release}${shared_ext}$major'
12392
  shlibpath_var=LD_LIBRARY_PATH
12393
  shlibpath_overrides_runpath=yes
12394
  hardcode_into_libs=yes
12395
  if test "$with_gnu_ld" = yes; then
12396
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12397
  else
12398
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12399
    case $host_os in
12400
      sco3.2v5*)
12401
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12402
	;;
12403
    esac
12404
  fi
12405
  sys_lib_dlsearch_path_spec='/usr/lib'
12406
  ;;
12407
12408
tpf*)
12409
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12410
  version_type=linux # correct to gnu/linux during the next big refactor
12411
  need_lib_prefix=no
12412
  need_version=no
12413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12414
  shlibpath_var=LD_LIBRARY_PATH
12415
  shlibpath_overrides_runpath=no
12416
  hardcode_into_libs=yes
12417
  ;;
12418
12419
uts4*)
12420
  version_type=linux # correct to gnu/linux during the next big refactor
12421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12422
  soname_spec='${libname}${release}${shared_ext}$major'
12423
  shlibpath_var=LD_LIBRARY_PATH
12424
  ;;
12425
12426
*)
12427
  dynamic_linker=no
12428
  ;;
12429
esac
12430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12431
$as_echo "$dynamic_linker" >&6; }
12432
test "$dynamic_linker" = no && can_build_shared=no
12433
12434
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435
if test "$GCC" = yes; then
12436
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12437
fi
12438
12439
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12440
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12441
fi
12442
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12443
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12444
fi
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12538
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12539
hardcode_action=
12540
if test -n "$hardcode_libdir_flag_spec" ||
12541
   test -n "$runpath_var" ||
12542
   test "X$hardcode_automatic" = "Xyes" ; then
12543
12544
  # We can hardcode non-existent directories.
12545
  if test "$hardcode_direct" != no &&
12546
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12547
     # have to relink, otherwise we might link with an installed library
12548
     # when we should be linking with a yet-to-be-installed one
12549
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12550
     test "$hardcode_minus_L" != no; then
12551
    # Linking always hardcodes the temporary library directory.
12552
    hardcode_action=relink
12553
  else
12554
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12555
    hardcode_action=immediate
12556
  fi
12557
else
12558
  # We cannot hardcode anything, or else we can only hardcode existing
12559
  # directories.
12560
  hardcode_action=unsupported
12561
fi
12562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12563
$as_echo "$hardcode_action" >&6; }
12564
12565
if test "$hardcode_action" = relink ||
12566
   test "$inherit_rpath" = yes; then
12567
  # Fast installation is not supported
12568
  enable_fast_install=no
12569
elif test "$shlibpath_overrides_runpath" = yes ||
12570
     test "$enable_shared" = no; then
12571
  # Fast installation is not necessary
12572
  enable_fast_install=needless
12573
fi
12574
12575
12576
12577
12578
12579
12580
  if test "x$enable_dlopen" != xyes; then
12581
  enable_dlopen=unknown
12582
  enable_dlopen_self=unknown
12583
  enable_dlopen_self_static=unknown
12584
else
12585
  lt_cv_dlopen=no
12586
  lt_cv_dlopen_libs=
12587
12588
  case $host_os in
12589
  beos*)
12590
    lt_cv_dlopen="load_add_on"
12591
    lt_cv_dlopen_libs=
12592
    lt_cv_dlopen_self=yes
12593
    ;;
12594
12595
  mingw* | pw32* | cegcc*)
12596
    lt_cv_dlopen="LoadLibrary"
12597
    lt_cv_dlopen_libs=
12598
    ;;
12599
12600
  cygwin*)
12601
    lt_cv_dlopen="dlopen"
12602
    lt_cv_dlopen_libs=
12603
    ;;
12604
12605
  darwin*)
12606
  # if libdl is installed we need to link against it
12607
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12608
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12609
if ${ac_cv_lib_dl_dlopen+:} false; then :
12610
  $as_echo_n "(cached) " >&6
12611
else
12612
  ac_check_lib_save_LIBS=$LIBS
12613
LIBS="-ldl  $LIBS"
12614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615
/* end confdefs.h.  */
12616
12617
/* Override any GCC internal prototype to avoid an error.
12618
   Use char because int might match the return type of a GCC
12619
   builtin and then its argument prototype would still apply.  */
12620
#ifdef __cplusplus
12621
extern "C"
12622
#endif
12623
char dlopen ();
12624
int
12625
main ()
12626
{
12627
return dlopen ();
12628
  ;
12629
  return 0;
12630
}
12631
_ACEOF
12632
if ac_fn_c_try_link "$LINENO"; then :
12633
  ac_cv_lib_dl_dlopen=yes
12634
else
12635
  ac_cv_lib_dl_dlopen=no
12636
fi
12637
rm -f core conftest.err conftest.$ac_objext \
12638
    conftest$ac_exeext conftest.$ac_ext
12639
LIBS=$ac_check_lib_save_LIBS
12640
fi
12641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12642
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12643
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12644
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12645
else
12646
12647
    lt_cv_dlopen="dyld"
12648
    lt_cv_dlopen_libs=
12649
    lt_cv_dlopen_self=yes
12650
12651
fi
12652
12653
    ;;
12654
12655
  *)
12656
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12657
if test "x$ac_cv_func_shl_load" = xyes; then :
12658
  lt_cv_dlopen="shl_load"
12659
else
12660
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12661
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12662
if ${ac_cv_lib_dld_shl_load+:} false; then :
12663
  $as_echo_n "(cached) " >&6
12664
else
12665
  ac_check_lib_save_LIBS=$LIBS
12666
LIBS="-ldld  $LIBS"
12667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668
/* end confdefs.h.  */
12669
12670
/* Override any GCC internal prototype to avoid an error.
12671
   Use char because int might match the return type of a GCC
12672
   builtin and then its argument prototype would still apply.  */
12673
#ifdef __cplusplus
12674
extern "C"
12675
#endif
12676
char shl_load ();
12677
int
12678
main ()
12679
{
12680
return shl_load ();
12681
  ;
12682
  return 0;
12683
}
12684
_ACEOF
12685
if ac_fn_c_try_link "$LINENO"; then :
12686
  ac_cv_lib_dld_shl_load=yes
12687
else
12688
  ac_cv_lib_dld_shl_load=no
12689
fi
12690
rm -f core conftest.err conftest.$ac_objext \
12691
    conftest$ac_exeext conftest.$ac_ext
12692
LIBS=$ac_check_lib_save_LIBS
12693
fi
12694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12695
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12696
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12697
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12698
else
12699
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12700
if test "x$ac_cv_func_dlopen" = xyes; then :
12701
  lt_cv_dlopen="dlopen"
12702
else
12703
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12704
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12705
if ${ac_cv_lib_dl_dlopen+:} false; then :
12706
  $as_echo_n "(cached) " >&6
12707
else
12708
  ac_check_lib_save_LIBS=$LIBS
12709
LIBS="-ldl  $LIBS"
12710
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711
/* end confdefs.h.  */
12712
12713
/* Override any GCC internal prototype to avoid an error.
12714
   Use char because int might match the return type of a GCC
12715
   builtin and then its argument prototype would still apply.  */
12716
#ifdef __cplusplus
12717
extern "C"
12718
#endif
12719
char dlopen ();
12720
int
12721
main ()
12722
{
12723
return dlopen ();
12724
  ;
12725
  return 0;
12726
}
12727
_ACEOF
12728
if ac_fn_c_try_link "$LINENO"; then :
12729
  ac_cv_lib_dl_dlopen=yes
12730
else
12731
  ac_cv_lib_dl_dlopen=no
12732
fi
12733
rm -f core conftest.err conftest.$ac_objext \
12734
    conftest$ac_exeext conftest.$ac_ext
12735
LIBS=$ac_check_lib_save_LIBS
12736
fi
12737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12738
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12739
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12740
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12741
else
12742
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12743
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12744
if ${ac_cv_lib_svld_dlopen+:} false; then :
12745
  $as_echo_n "(cached) " >&6
12746
else
12747
  ac_check_lib_save_LIBS=$LIBS
12748
LIBS="-lsvld  $LIBS"
12749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750
/* end confdefs.h.  */
12751
12752
/* Override any GCC internal prototype to avoid an error.
12753
   Use char because int might match the return type of a GCC
12754
   builtin and then its argument prototype would still apply.  */
12755
#ifdef __cplusplus
12756
extern "C"
12757
#endif
12758
char dlopen ();
12759
int
12760
main ()
12761
{
12762
return dlopen ();
12763
  ;
12764
  return 0;
12765
}
12766
_ACEOF
12767
if ac_fn_c_try_link "$LINENO"; then :
12768
  ac_cv_lib_svld_dlopen=yes
12769
else
12770
  ac_cv_lib_svld_dlopen=no
12771
fi
12772
rm -f core conftest.err conftest.$ac_objext \
12773
    conftest$ac_exeext conftest.$ac_ext
12774
LIBS=$ac_check_lib_save_LIBS
12775
fi
12776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12777
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12778
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12779
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12780
else
12781
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12782
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12783
if ${ac_cv_lib_dld_dld_link+:} false; then :
12784
  $as_echo_n "(cached) " >&6
12785
else
12786
  ac_check_lib_save_LIBS=$LIBS
12787
LIBS="-ldld  $LIBS"
12788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789
/* end confdefs.h.  */
12790
12791
/* Override any GCC internal prototype to avoid an error.
12792
   Use char because int might match the return type of a GCC
12793
   builtin and then its argument prototype would still apply.  */
12794
#ifdef __cplusplus
12795
extern "C"
12796
#endif
12797
char dld_link ();
12798
int
12799
main ()
12800
{
12801
return dld_link ();
12802
  ;
12803
  return 0;
12804
}
12805
_ACEOF
12806
if ac_fn_c_try_link "$LINENO"; then :
12807
  ac_cv_lib_dld_dld_link=yes
12808
else
12809
  ac_cv_lib_dld_dld_link=no
12810
fi
12811
rm -f core conftest.err conftest.$ac_objext \
12812
    conftest$ac_exeext conftest.$ac_ext
12813
LIBS=$ac_check_lib_save_LIBS
12814
fi
12815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12816
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12817
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12818
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12819
fi
12820
12821
12822
fi
12823
12824
12825
fi
12826
12827
12828
fi
12829
12830
12831
fi
12832
12833
12834
fi
12835
12836
    ;;
12837
  esac
12838
12839
  if test "x$lt_cv_dlopen" != xno; then
12840
    enable_dlopen=yes
12841
  else
12842
    enable_dlopen=no
12843
  fi
12844
12845
  case $lt_cv_dlopen in
12846
  dlopen)
12847
    save_CPPFLAGS="$CPPFLAGS"
12848
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12849
12850
    save_LDFLAGS="$LDFLAGS"
12851
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12852
12853
    save_LIBS="$LIBS"
12854
    LIBS="$lt_cv_dlopen_libs $LIBS"
12855
12856
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12857
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12858
if ${lt_cv_dlopen_self+:} false; then :
12859
  $as_echo_n "(cached) " >&6
12860
else
12861
  	  if test "$cross_compiling" = yes; then :
12862
  lt_cv_dlopen_self=cross
12863
else
12864
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12865
  lt_status=$lt_dlunknown
12866
  cat > conftest.$ac_ext <<_LT_EOF
12867
#line $LINENO "configure"
12868
#include "confdefs.h"
12869
12870
#if HAVE_DLFCN_H
12871
#include <dlfcn.h>
12872
#endif
12873
12874
#include <stdio.h>
12875
12876
#ifdef RTLD_GLOBAL
12877
#  define LT_DLGLOBAL		RTLD_GLOBAL
12878
#else
12879
#  ifdef DL_GLOBAL
12880
#    define LT_DLGLOBAL		DL_GLOBAL
12881
#  else
12882
#    define LT_DLGLOBAL		0
12883
#  endif
12884
#endif
12885
12886
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12887
   find out it does not work in some platform. */
12888
#ifndef LT_DLLAZY_OR_NOW
12889
#  ifdef RTLD_LAZY
12890
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12891
#  else
12892
#    ifdef DL_LAZY
12893
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12894
#    else
12895
#      ifdef RTLD_NOW
12896
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12897
#      else
12898
#        ifdef DL_NOW
12899
#          define LT_DLLAZY_OR_NOW	DL_NOW
12900
#        else
12901
#          define LT_DLLAZY_OR_NOW	0
12902
#        endif
12903
#      endif
12904
#    endif
12905
#  endif
12906
#endif
12907
12908
/* When -fvisbility=hidden is used, assume the code has been annotated
12909
   correspondingly for the symbols needed.  */
12910
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12911
int fnord () __attribute__((visibility("default")));
12912
#endif
12913
12914
int fnord () { return 42; }
12915
int main ()
12916
{
12917
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12918
  int status = $lt_dlunknown;
12919
12920
  if (self)
12921
    {
12922
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12923
      else
12924
        {
12925
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12926
          else puts (dlerror ());
12927
	}
12928
      /* dlclose (self); */
12929
    }
12930
  else
12931
    puts (dlerror ());
12932
12933
  return status;
12934
}
12935
_LT_EOF
12936
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12937
  (eval $ac_link) 2>&5
12938
  ac_status=$?
12939
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12941
    (./conftest; exit; ) >&5 2>/dev/null
12942
    lt_status=$?
12943
    case x$lt_status in
12944
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12945
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12946
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12947
    esac
12948
  else :
12949
    # compilation failed
12950
    lt_cv_dlopen_self=no
12951
  fi
12952
fi
12953
rm -fr conftest*
12954
12955
12956
fi
12957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12958
$as_echo "$lt_cv_dlopen_self" >&6; }
12959
12960
    if test "x$lt_cv_dlopen_self" = xyes; then
12961
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12962
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12963
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12964
if ${lt_cv_dlopen_self_static+:} false; then :
12965
  $as_echo_n "(cached) " >&6
12966
else
12967
  	  if test "$cross_compiling" = yes; then :
12968
  lt_cv_dlopen_self_static=cross
12969
else
12970
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12971
  lt_status=$lt_dlunknown
12972
  cat > conftest.$ac_ext <<_LT_EOF
12973
#line $LINENO "configure"
12974
#include "confdefs.h"
12975
12976
#if HAVE_DLFCN_H
12977
#include <dlfcn.h>
12978
#endif
12979
12980
#include <stdio.h>
12981
12982
#ifdef RTLD_GLOBAL
12983
#  define LT_DLGLOBAL		RTLD_GLOBAL
12984
#else
12985
#  ifdef DL_GLOBAL
12986
#    define LT_DLGLOBAL		DL_GLOBAL
12987
#  else
12988
#    define LT_DLGLOBAL		0
12989
#  endif
12990
#endif
12991
12992
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12993
   find out it does not work in some platform. */
12994
#ifndef LT_DLLAZY_OR_NOW
12995
#  ifdef RTLD_LAZY
12996
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12997
#  else
12998
#    ifdef DL_LAZY
12999
#      define LT_DLLAZY_OR_NOW		DL_LAZY
13000
#    else
13001
#      ifdef RTLD_NOW
13002
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13003
#      else
13004
#        ifdef DL_NOW
13005
#          define LT_DLLAZY_OR_NOW	DL_NOW
13006
#        else
13007
#          define LT_DLLAZY_OR_NOW	0
13008
#        endif
13009
#      endif
13010
#    endif
13011
#  endif
13012
#endif
13013
13014
/* When -fvisbility=hidden is used, assume the code has been annotated
13015
   correspondingly for the symbols needed.  */
13016
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13017
int fnord () __attribute__((visibility("default")));
13018
#endif
13019
13020
int fnord () { return 42; }
13021
int main ()
13022
{
13023
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13024
  int status = $lt_dlunknown;
13025
13026
  if (self)
13027
    {
13028
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13029
      else
13030
        {
13031
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13032
          else puts (dlerror ());
13033
	}
13034
      /* dlclose (self); */
13035
    }
13036
  else
13037
    puts (dlerror ());
13038
13039
  return status;
13040
}
13041
_LT_EOF
13042
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13043
  (eval $ac_link) 2>&5
13044
  ac_status=$?
13045
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13046
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13047
    (./conftest; exit; ) >&5 2>/dev/null
13048
    lt_status=$?
13049
    case x$lt_status in
13050
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13051
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13052
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13053
    esac
13054
  else :
13055
    # compilation failed
13056
    lt_cv_dlopen_self_static=no
13057
  fi
13058
fi
13059
rm -fr conftest*
13060
13061
13062
fi
13063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13064
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13065
    fi
13066
13067
    CPPFLAGS="$save_CPPFLAGS"
13068
    LDFLAGS="$save_LDFLAGS"
13069
    LIBS="$save_LIBS"
13070
    ;;
13071
  esac
13072
13073
  case $lt_cv_dlopen_self in
13074
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13075
  *) enable_dlopen_self=unknown ;;
13076
  esac
13077
13078
  case $lt_cv_dlopen_self_static in
13079
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13080
  *) enable_dlopen_self_static=unknown ;;
13081
  esac
13082
fi
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
striplib=
13101
old_striplib=
13102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13103
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13104
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13105
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13106
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108
$as_echo "yes" >&6; }
13109
else
13110
# FIXME - insert some real tests, host_os isn't really good enough
13111
  case $host_os in
13112
  darwin*)
13113
    if test -n "$STRIP" ; then
13114
      striplib="$STRIP -x"
13115
      old_striplib="$STRIP -S"
13116
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117
$as_echo "yes" >&6; }
13118
    else
13119
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120
$as_echo "no" >&6; }
13121
    fi
13122
    ;;
13123
  *)
13124
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125
$as_echo "no" >&6; }
13126
    ;;
13127
  esac
13128
fi
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
  # Report which library types will actually be built
13142
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13143
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13145
$as_echo "$can_build_shared" >&6; }
13146
13147
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13148
$as_echo_n "checking whether to build shared libraries... " >&6; }
13149
  test "$can_build_shared" = "no" && enable_shared=no
13150
13151
  # On AIX, shared libraries and static libraries use the same namespace, and
13152
  # are all built from PIC.
13153
  case $host_os in
13154
  aix3*)
13155
    test "$enable_shared" = yes && enable_static=no
13156
    if test -n "$RANLIB"; then
13157
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13158
      postinstall_cmds='$RANLIB $lib'
13159
    fi
13160
    ;;
13161
13162
  aix[4-9]*)
13163
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13164
      test "$enable_shared" = yes && enable_static=no
13165
    fi
13166
    ;;
13167
  esac
13168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13169
$as_echo "$enable_shared" >&6; }
13170
13171
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13172
$as_echo_n "checking whether to build static libraries... " >&6; }
13173
  # Make sure either enable_shared or enable_static is yes.
13174
  test "$enable_shared" = yes || enable_static=yes
13175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13176
$as_echo "$enable_static" >&6; }
13177
13178
13179
13180
13181
fi
13182
ac_ext=c
13183
ac_cpp='$CPP $CPPFLAGS'
13184
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13187
13188
CC="$lt_save_CC"
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
        ac_config_commands="$ac_config_commands libtool"
13205
13206
13207
13208
13209
# Only expand once:
13210
13211
13212
13213
# Checks for library functions.
13214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
13215
$as_echo_n "checking for error_at_line... " >&6; }
13216
if ${ac_cv_lib_error_at_line+:} false; then :
13217
  $as_echo_n "(cached) " >&6
13218
else
13219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220
/* end confdefs.h.  */
13221
#include <error.h>
13222
int
13223
main ()
13224
{
13225
error_at_line (0, 0, "", 0, "an error occurred");
13226
  ;
13227
  return 0;
13228
}
13229
_ACEOF
13230
if ac_fn_c_try_link "$LINENO"; then :
13231
  ac_cv_lib_error_at_line=yes
13232
else
13233
  ac_cv_lib_error_at_line=no
13234
fi
13235
rm -f core conftest.err conftest.$ac_objext \
13236
    conftest$ac_exeext conftest.$ac_ext
13237
fi
13238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
13239
$as_echo "$ac_cv_lib_error_at_line" >&6; }
13240
if test $ac_cv_lib_error_at_line = no; then
13241
  case " $LIBOBJS " in
13242
  *" error.$ac_objext "* ) ;;
13243
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
13244
 ;;
13245
esac
13246
13247
fi
13248
13249
for ac_header in vfork.h
13250
do :
13251
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13252
if test "x$ac_cv_header_vfork_h" = xyes; then :
13253
  cat >>confdefs.h <<_ACEOF
13254
#define HAVE_VFORK_H 1
13255
_ACEOF
13256
13257
fi
13258
13259
done
13260
13261
for ac_func in fork vfork
13262
do :
13263
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13264
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13265
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13266
  cat >>confdefs.h <<_ACEOF
13267
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13268
_ACEOF
13269
13270
fi
13271
done
13272
13273
if test "x$ac_cv_func_fork" = xyes; then
13274
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13275
$as_echo_n "checking for working fork... " >&6; }
13276
if ${ac_cv_func_fork_works+:} false; then :
13277
  $as_echo_n "(cached) " >&6
13278
else
13279
  if test "$cross_compiling" = yes; then :
13280
  ac_cv_func_fork_works=cross
13281
else
13282
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283
/* end confdefs.h.  */
13284
$ac_includes_default
13285
int
13286
main ()
13287
{
13288
13289
	  /* By Ruediger Kuhlmann. */
13290
	  return fork () < 0;
13291
13292
  ;
13293
  return 0;
13294
}
13295
_ACEOF
13296
if ac_fn_c_try_run "$LINENO"; then :
13297
  ac_cv_func_fork_works=yes
13298
else
13299
  ac_cv_func_fork_works=no
13300
fi
13301
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13302
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13303
fi
13304
13305
fi
13306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13307
$as_echo "$ac_cv_func_fork_works" >&6; }
13308
13309
else
13310
  ac_cv_func_fork_works=$ac_cv_func_fork
13311
fi
13312
if test "x$ac_cv_func_fork_works" = xcross; then
13313
  case $host in
13314
    *-*-amigaos* | *-*-msdosdjgpp*)
13315
      # Override, as these systems have only a dummy fork() stub
13316
      ac_cv_func_fork_works=no
13317
      ;;
13318
    *)
13319
      ac_cv_func_fork_works=yes
13320
      ;;
13321
  esac
13322
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13323
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13324
fi
13325
ac_cv_func_vfork_works=$ac_cv_func_vfork
13326
if test "x$ac_cv_func_vfork" = xyes; then
13327
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13328
$as_echo_n "checking for working vfork... " >&6; }
13329
if ${ac_cv_func_vfork_works+:} false; then :
13330
  $as_echo_n "(cached) " >&6
13331
else
13332
  if test "$cross_compiling" = yes; then :
13333
  ac_cv_func_vfork_works=cross
13334
else
13335
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336
/* end confdefs.h.  */
13337
/* Thanks to Paul Eggert for this test.  */
13338
$ac_includes_default
13339
#include <sys/wait.h>
13340
#ifdef HAVE_VFORK_H
13341
# include <vfork.h>
13342
#endif
13343
/* On some sparc systems, changes by the child to local and incoming
13344
   argument registers are propagated back to the parent.  The compiler
13345
   is told about this with #include <vfork.h>, but some compilers
13346
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13347
   static variable whose address is put into a register that is
13348
   clobbered by the vfork.  */
13349
static void
13350
#ifdef __cplusplus
13351
sparc_address_test (int arg)
13352
# else
13353
sparc_address_test (arg) int arg;
13354
#endif
13355
{
13356
  static pid_t child;
13357
  if (!child) {
13358
    child = vfork ();
13359
    if (child < 0) {
13360
      perror ("vfork");
13361
      _exit(2);
13362
    }
13363
    if (!child) {
13364
      arg = getpid();
13365
      write(-1, "", 0);
13366
      _exit (arg);
13367
    }
13368
  }
13369
}
13370
13371
int
13372
main ()
13373
{
13374
  pid_t parent = getpid ();
13375
  pid_t child;
13376
13377
  sparc_address_test (0);
13378
13379
  child = vfork ();
13380
13381
  if (child == 0) {
13382
    /* Here is another test for sparc vfork register problems.  This
13383
       test uses lots of local variables, at least as many local
13384
       variables as main has allocated so far including compiler
13385
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13386
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13387
       reuse the register of parent for one of the local variables,
13388
       since it will think that parent can't possibly be used any more
13389
       in this routine.  Assigning to the local variable will thus
13390
       munge parent in the parent process.  */
13391
    pid_t
13392
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13393
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13394
    /* Convince the compiler that p..p7 are live; otherwise, it might
13395
       use the same hardware register for all 8 local variables.  */
13396
    if (p != p1 || p != p2 || p != p3 || p != p4
13397
	|| p != p5 || p != p6 || p != p7)
13398
      _exit(1);
13399
13400
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13401
       from child file descriptors.  If the child closes a descriptor
13402
       before it execs or exits, this munges the parent's descriptor
13403
       as well.  Test for this by closing stdout in the child.  */
13404
    _exit(close(fileno(stdout)) != 0);
13405
  } else {
13406
    int status;
13407
    struct stat st;
13408
13409
    while (wait(&status) != child)
13410
      ;
13411
    return (
13412
	 /* Was there some problem with vforking?  */
13413
	 child < 0
13414
13415
	 /* Did the child fail?  (This shouldn't happen.)  */
13416
	 || status
13417
13418
	 /* Did the vfork/compiler bug occur?  */
13419
	 || parent != getpid()
13420
13421
	 /* Did the file descriptor bug occur?  */
13422
	 || fstat(fileno(stdout), &st) != 0
13423
	 );
13424
  }
13425
}
13426
_ACEOF
13427
if ac_fn_c_try_run "$LINENO"; then :
13428
  ac_cv_func_vfork_works=yes
13429
else
13430
  ac_cv_func_vfork_works=no
13431
fi
13432
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13433
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13434
fi
13435
13436
fi
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13438
$as_echo "$ac_cv_func_vfork_works" >&6; }
13439
13440
fi;
13441
if test "x$ac_cv_func_fork_works" = xcross; then
13442
  ac_cv_func_vfork_works=$ac_cv_func_vfork
13443
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13444
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13445
fi
13446
13447
if test "x$ac_cv_func_vfork_works" = xyes; then
13448
13449
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13450
13451
else
13452
13453
$as_echo "#define vfork fork" >>confdefs.h
13454
13455
fi
13456
if test "x$ac_cv_func_fork_works" = xyes; then
13457
13458
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13459
13460
fi
13461
13462
for ac_header in stdlib.h
13463
do :
13464
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13465
if test "x$ac_cv_header_stdlib_h" = xyes; then :
13466
  cat >>confdefs.h <<_ACEOF
13467
#define HAVE_STDLIB_H 1
13468
_ACEOF
13469
13470
fi
13471
13472
done
13473
13474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13475
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13476
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13477
  $as_echo_n "(cached) " >&6
13478
else
13479
  if test "$cross_compiling" = yes; then :
13480
  ac_cv_func_malloc_0_nonnull=no
13481
else
13482
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483
/* end confdefs.h.  */
13484
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13485
# include <stdlib.h>
13486
#else
13487
char *malloc ();
13488
#endif
13489
13490
int
13491
main ()
13492
{
13493
return ! malloc (0);
13494
  ;
13495
  return 0;
13496
}
13497
_ACEOF
13498
if ac_fn_c_try_run "$LINENO"; then :
13499
  ac_cv_func_malloc_0_nonnull=yes
13500
else
13501
  ac_cv_func_malloc_0_nonnull=no
13502
fi
13503
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13504
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13505
fi
13506
13507
fi
13508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13509
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13510
if test $ac_cv_func_malloc_0_nonnull = yes; then :
13511
13512
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13513
13514
else
13515
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13516
13517
   case " $LIBOBJS " in
13518
  *" malloc.$ac_objext "* ) ;;
13519
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13520
 ;;
13521
esac
13522
13523
13524
$as_echo "#define malloc rpl_malloc" >>confdefs.h
13525
13526
fi
13527
13528
13529
13530
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
13531
$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
13532
if ${ac_cv_func_mbrtowc+:} false; then :
13533
  $as_echo_n "(cached) " >&6
13534
else
13535
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536
/* end confdefs.h.  */
13537
#include <wchar.h>
13538
int
13539
main ()
13540
{
13541
wchar_t wc;
13542
	      char const s[] = "";
13543
	      size_t n = 1;
13544
	      mbstate_t state;
13545
	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13546
  ;
13547
  return 0;
13548
}
13549
_ACEOF
13550
if ac_fn_c_try_link "$LINENO"; then :
13551
  ac_cv_func_mbrtowc=yes
13552
else
13553
  ac_cv_func_mbrtowc=no
13554
fi
13555
rm -f core conftest.err conftest.$ac_objext \
13556
    conftest$ac_exeext conftest.$ac_ext
13557
fi
13558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
13559
$as_echo "$ac_cv_func_mbrtowc" >&6; }
13560
  if test $ac_cv_func_mbrtowc = yes; then
13561
13562
$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
13563
13564
  fi
13565
13566
13567
13568
13569
  for ac_header in $ac_header_list
13570
do :
13571
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13572
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13573
"
13574
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13575
  cat >>confdefs.h <<_ACEOF
13576
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13577
_ACEOF
13578
13579
fi
13580
13581
done
13582
13583
13584
13585
13586
13587
13588
13589
13590
for ac_func in getpagesize
13591
do :
13592
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13593
if test "x$ac_cv_func_getpagesize" = xyes; then :
13594
  cat >>confdefs.h <<_ACEOF
13595
#define HAVE_GETPAGESIZE 1
13596
_ACEOF
13597
13598
fi
13599
done
13600
13601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13602
$as_echo_n "checking for working mmap... " >&6; }
13603
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13604
  $as_echo_n "(cached) " >&6
13605
else
13606
  if test "$cross_compiling" = yes; then :
13607
  ac_cv_func_mmap_fixed_mapped=no
13608
else
13609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610
/* end confdefs.h.  */
13611
$ac_includes_default
13612
/* malloc might have been renamed as rpl_malloc. */
13613
#undef malloc
13614
13615
/* Thanks to Mike Haertel and Jim Avera for this test.
13616
   Here is a matrix of mmap possibilities:
13617
	mmap private not fixed
13618
	mmap private fixed at somewhere currently unmapped
13619
	mmap private fixed at somewhere already mapped
13620
	mmap shared not fixed
13621
	mmap shared fixed at somewhere currently unmapped
13622
	mmap shared fixed at somewhere already mapped
13623
   For private mappings, we should verify that changes cannot be read()
13624
   back from the file, nor mmap's back from the file at a different
13625
   address.  (There have been systems where private was not correctly
13626
   implemented like the infamous i386 svr4.0, and systems where the
13627
   VM page cache was not coherent with the file system buffer cache
13628
   like early versions of FreeBSD and possibly contemporary NetBSD.)
13629
   For shared mappings, we should conversely verify that changes get
13630
   propagated back to all the places they're supposed to be.
13631
13632
   Grep wants private fixed already mapped.
13633
   The main things grep needs to know about mmap are:
13634
   * does it exist and is it safe to write into the mmap'd area
13635
   * how to use it (BSD variants)  */
13636
13637
#include <fcntl.h>
13638
#include <sys/mman.h>
13639
13640
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13641
char *malloc ();
13642
#endif
13643
13644
/* This mess was copied from the GNU getpagesize.h.  */
13645
#ifndef HAVE_GETPAGESIZE
13646
# ifdef _SC_PAGESIZE
13647
#  define getpagesize() sysconf(_SC_PAGESIZE)
13648
# else /* no _SC_PAGESIZE */
13649
#  ifdef HAVE_SYS_PARAM_H
13650
#   include <sys/param.h>
13651
#   ifdef EXEC_PAGESIZE
13652
#    define getpagesize() EXEC_PAGESIZE
13653
#   else /* no EXEC_PAGESIZE */
13654
#    ifdef NBPG
13655
#     define getpagesize() NBPG * CLSIZE
13656
#     ifndef CLSIZE
13657
#      define CLSIZE 1
13658
#     endif /* no CLSIZE */
13659
#    else /* no NBPG */
13660
#     ifdef NBPC
13661
#      define getpagesize() NBPC
13662
#     else /* no NBPC */
13663
#      ifdef PAGESIZE
13664
#       define getpagesize() PAGESIZE
13665
#      endif /* PAGESIZE */
13666
#     endif /* no NBPC */
13667
#    endif /* no NBPG */
13668
#   endif /* no EXEC_PAGESIZE */
13669
#  else /* no HAVE_SYS_PARAM_H */
13670
#   define getpagesize() 8192	/* punt totally */
13671
#  endif /* no HAVE_SYS_PARAM_H */
13672
# endif /* no _SC_PAGESIZE */
13673
13674
#endif /* no HAVE_GETPAGESIZE */
13675
13676
int
13677
main ()
13678
{
13679
  char *data, *data2, *data3;
13680
  const char *cdata2;
13681
  int i, pagesize;
13682
  int fd, fd2;
13683
13684
  pagesize = getpagesize ();
13685
13686
  /* First, make a file with some known garbage in it. */
13687
  data = (char *) malloc (pagesize);
13688
  if (!data)
13689
    return 1;
13690
  for (i = 0; i < pagesize; ++i)
13691
    *(data + i) = rand ();
13692
  umask (0);
13693
  fd = creat ("conftest.mmap", 0600);
13694
  if (fd < 0)
13695
    return 2;
13696
  if (write (fd, data, pagesize) != pagesize)
13697
    return 3;
13698
  close (fd);
13699
13700
  /* Next, check that the tail of a page is zero-filled.  File must have
13701
     non-zero length, otherwise we risk SIGBUS for entire page.  */
13702
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13703
  if (fd2 < 0)
13704
    return 4;
13705
  cdata2 = "";
13706
  if (write (fd2, cdata2, 1) != 1)
13707
    return 5;
13708
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13709
  if (data2 == MAP_FAILED)
13710
    return 6;
13711
  for (i = 0; i < pagesize; ++i)
13712
    if (*(data2 + i))
13713
      return 7;
13714
  close (fd2);
13715
  if (munmap (data2, pagesize))
13716
    return 8;
13717
13718
  /* Next, try to mmap the file at a fixed address which already has
13719
     something else allocated at it.  If we can, also make sure that
13720
     we see the same garbage.  */
13721
  fd = open ("conftest.mmap", O_RDWR);
13722
  if (fd < 0)
13723
    return 9;
13724
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13725
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13726
    return 10;
13727
  for (i = 0; i < pagesize; ++i)
13728
    if (*(data + i) != *(data2 + i))
13729
      return 11;
13730
13731
  /* Finally, make sure that changes to the mapped area do not
13732
     percolate back to the file as seen by read().  (This is a bug on
13733
     some variants of i386 svr4.0.)  */
13734
  for (i = 0; i < pagesize; ++i)
13735
    *(data2 + i) = *(data2 + i) + 1;
13736
  data3 = (char *) malloc (pagesize);
13737
  if (!data3)
13738
    return 12;
13739
  if (read (fd, data3, pagesize) != pagesize)
13740
    return 13;
13741
  for (i = 0; i < pagesize; ++i)
13742
    if (*(data + i) != *(data3 + i))
13743
      return 14;
13744
  close (fd);
13745
  return 0;
13746
}
13747
_ACEOF
13748
if ac_fn_c_try_run "$LINENO"; then :
13749
  ac_cv_func_mmap_fixed_mapped=yes
13750
else
13751
  ac_cv_func_mmap_fixed_mapped=no
13752
fi
13753
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13754
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13755
fi
13756
13757
fi
13758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13759
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13760
if test $ac_cv_func_mmap_fixed_mapped = yes; then
13761
13762
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13763
13764
fi
13765
rm -f conftest.mmap conftest.txt
13766
13767
for ac_header in stdlib.h
13768
do :
13769
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13770
if test "x$ac_cv_header_stdlib_h" = xyes; then :
13771
  cat >>confdefs.h <<_ACEOF
13772
#define HAVE_STDLIB_H 1
13773
_ACEOF
13774
13775
fi
13776
13777
done
13778
13779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13780
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13781
if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13782
  $as_echo_n "(cached) " >&6
13783
else
13784
  if test "$cross_compiling" = yes; then :
13785
  ac_cv_func_realloc_0_nonnull=no
13786
else
13787
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788
/* end confdefs.h.  */
13789
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13790
# include <stdlib.h>
13791
#else
13792
char *realloc ();
13793
#endif
13794
13795
int
13796
main ()
13797
{
13798
return ! realloc (0, 0);
13799
  ;
13800
  return 0;
13801
}
13802
_ACEOF
13803
if ac_fn_c_try_run "$LINENO"; then :
13804
  ac_cv_func_realloc_0_nonnull=yes
13805
else
13806
  ac_cv_func_realloc_0_nonnull=no
13807
fi
13808
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13809
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13810
fi
13811
13812
fi
13813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13814
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13815
if test $ac_cv_func_realloc_0_nonnull = yes; then :
13816
13817
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13818
13819
else
13820
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13821
13822
   case " $LIBOBJS " in
13823
  *" realloc.$ac_objext "* ) ;;
13824
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13825
 ;;
13826
esac
13827
13828
13829
$as_echo "#define realloc rpl_realloc" >>confdefs.h
13830
13831
fi
13832
13833
13834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
13835
$as_echo_n "checking for working strtod... " >&6; }
13836
if ${ac_cv_func_strtod+:} false; then :
13837
  $as_echo_n "(cached) " >&6
13838
else
13839
  if test "$cross_compiling" = yes; then :
13840
  ac_cv_func_strtod=no
13841
else
13842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843
/* end confdefs.h.  */
13844
13845
$ac_includes_default
13846
#ifndef strtod
13847
double strtod ();
13848
#endif
13849
int
13850
main()
13851
{
13852
  {
13853
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
13854
    char *string = " +69";
13855
    char *term;
13856
    double value;
13857
    value = strtod (string, &term);
13858
    if (value != 69 || term != (string + 4))
13859
      return 1;
13860
  }
13861
13862
  {
13863
    /* Under Solaris 2.4, strtod returns the wrong value for the
13864
       terminating character under some conditions.  */
13865
    char *string = "NaN";
13866
    char *term;
13867
    strtod (string, &term);
13868
    if (term != string && *(term - 1) == 0)
13869
      return 1;
13870
  }
13871
  return 0;
13872
}
13873
13874
_ACEOF
13875
if ac_fn_c_try_run "$LINENO"; then :
13876
  ac_cv_func_strtod=yes
13877
else
13878
  ac_cv_func_strtod=no
13879
fi
13880
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13881
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13882
fi
13883
13884
fi
13885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
13886
$as_echo "$ac_cv_func_strtod" >&6; }
13887
if test $ac_cv_func_strtod = no; then
13888
  case " $LIBOBJS " in
13889
  *" strtod.$ac_objext "* ) ;;
13890
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13891
 ;;
13892
esac
13893
13894
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13895
if test "x$ac_cv_func_pow" = xyes; then :
13896
13897
fi
13898
13899
if test $ac_cv_func_pow = no; then
13900
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13901
$as_echo_n "checking for pow in -lm... " >&6; }
13902
if ${ac_cv_lib_m_pow+:} false; then :
13903
  $as_echo_n "(cached) " >&6
13904
else
13905
  ac_check_lib_save_LIBS=$LIBS
13906
LIBS="-lm  $LIBS"
13907
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908
/* end confdefs.h.  */
13909
13910
/* Override any GCC internal prototype to avoid an error.
13911
   Use char because int might match the return type of a GCC
13912
   builtin and then its argument prototype would still apply.  */
13913
#ifdef __cplusplus
13914
extern "C"
13915
#endif
13916
char pow ();
13917
int
13918
main ()
13919
{
13920
return pow ();
13921
  ;
13922
  return 0;
13923
}
13924
_ACEOF
13925
if ac_fn_c_try_link "$LINENO"; then :
13926
  ac_cv_lib_m_pow=yes
13927
else
13928
  ac_cv_lib_m_pow=no
13929
fi
13930
rm -f core conftest.err conftest.$ac_objext \
13931
    conftest$ac_exeext conftest.$ac_ext
13932
LIBS=$ac_check_lib_save_LIBS
13933
fi
13934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13935
$as_echo "$ac_cv_lib_m_pow" >&6; }
13936
if test "x$ac_cv_lib_m_pow" = xyes; then :
13937
  POW_LIB=-lm
13938
else
13939
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
13940
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13941
fi
13942
13943
fi
13944
13945
fi
13946
13947
for ac_func in \
13948
	alarm \
1.1.8 by Craig Small
Import upstream version 3.3.2
13949
	getline \
1.1.6 by Craig Small
Import upstream version 3.3.0
13950
	getpagesize \
13951
	gettimeofday \
13952
	iswprint \
13953
	memchr \
13954
	memmove \
13955
	memset \
13956
	munmap \
13957
	nl_langinfo \
13958
	putenv \
13959
	regcomp \
1.1.8 by Craig Small
Import upstream version 3.3.2
13960
	rpmatch \
1.1.6 by Craig Small
Import upstream version 3.3.0
13961
	select \
13962
	setlocale \
13963
	strcasecmp \
13964
	strchr \
13965
	strcspn \
13966
	strdup \
13967
	strerror \
13968
	strncasecmp \
13969
	strpbrk \
13970
	strrchr \
13971
	strspn \
13972
	strstr \
13973
	strtol \
13974
	strtoul \
1.1.8 by Craig Small
Import upstream version 3.3.2
13975
	strverscmp \
1.1.6 by Craig Small
Import upstream version 3.3.0
13976
	uname \
13977
	utmpname \
13978
	wcwidth
13979
13980
do :
13981
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13982
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13983
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13984
  cat >>confdefs.h <<_ACEOF
13985
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13986
_ACEOF
13987
13988
fi
13989
done
13990
13991
1.1.8 by Craig Small
Import upstream version 3.3.2
13992
usrbin_execdir='${exec_prefix}/usr/bin'
13993
13994
13995
13996
13997
        MKINSTALLDIRS=
13998
  if test -n "$ac_aux_dir"; then
13999
    case "$ac_aux_dir" in
14000
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14001
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14002
    esac
14003
  fi
14004
  if test -z "$MKINSTALLDIRS"; then
14005
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14006
  fi
14007
14008
14009
14010
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14011
$as_echo_n "checking whether NLS is requested... " >&6; }
14012
    # Check whether --enable-nls was given.
14013
if test "${enable_nls+set}" = set; then :
14014
  enableval=$enable_nls; USE_NLS=$enableval
14015
else
14016
  USE_NLS=yes
14017
fi
14018
14019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14020
$as_echo "$USE_NLS" >&6; }
14021
14022
14023
14024
14025
14026
14027
# Prepare PATH_SEPARATOR.
14028
# The user is always right.
14029
if test "${PATH_SEPARATOR+set}" != set; then
14030
  echo "#! /bin/sh" >conf$$.sh
14031
  echo  "exit 0"   >>conf$$.sh
14032
  chmod +x conf$$.sh
14033
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14034
    PATH_SEPARATOR=';'
14035
  else
14036
    PATH_SEPARATOR=:
14037
  fi
14038
  rm -f conf$$.sh
14039
fi
14040
14041
# Find out how to test for executable files. Don't use a zero-byte file,
14042
# as systems may use methods other than mode bits to determine executability.
14043
cat >conf$$.file <<_ASEOF
14044
#! /bin/sh
14045
exit 0
14046
_ASEOF
14047
chmod +x conf$$.file
14048
if test -x conf$$.file >/dev/null 2>&1; then
14049
  ac_executable_p="test -x"
14050
else
14051
  ac_executable_p="test -f"
14052
fi
14053
rm -f conf$$.file
14054
14055
# Extract the first word of "msgfmt", so it can be a program name with args.
14056
set dummy msgfmt; ac_word=$2
14057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058
$as_echo_n "checking for $ac_word... " >&6; }
14059
if ${ac_cv_path_MSGFMT+:} false; then :
14060
  $as_echo_n "(cached) " >&6
14061
else
14062
  case "$MSGFMT" in
14063
  [\\/]* | ?:[\\/]*)
14064
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14065
    ;;
14066
  *)
14067
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14068
    for ac_dir in $PATH; do
14069
      IFS="$ac_save_IFS"
14070
      test -z "$ac_dir" && ac_dir=.
14071
      for ac_exec_ext in '' $ac_executable_extensions; do
14072
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14073
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14074
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14075
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14076
            break 2
14077
          fi
14078
        fi
14079
      done
14080
    done
14081
    IFS="$ac_save_IFS"
14082
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14083
    ;;
14084
esac
14085
fi
14086
MSGFMT="$ac_cv_path_MSGFMT"
14087
if test "$MSGFMT" != ":"; then
14088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14089
$as_echo "$MSGFMT" >&6; }
14090
else
14091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092
$as_echo "no" >&6; }
14093
fi
14094
14095
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14096
set dummy gmsgfmt; ac_word=$2
14097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098
$as_echo_n "checking for $ac_word... " >&6; }
14099
if ${ac_cv_path_GMSGFMT+:} false; then :
14100
  $as_echo_n "(cached) " >&6
14101
else
14102
  case $GMSGFMT in
14103
  [\\/]* | ?:[\\/]*)
14104
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14105
  ;;
14106
  *)
14107
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108
for as_dir in $PATH
14109
do
14110
  IFS=$as_save_IFS
14111
  test -z "$as_dir" && as_dir=.
14112
    for ac_exec_ext in '' $ac_executable_extensions; do
14113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14114
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14115
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14116
    break 2
14117
  fi
14118
done
14119
  done
14120
IFS=$as_save_IFS
14121
14122
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14123
  ;;
14124
esac
14125
fi
14126
GMSGFMT=$ac_cv_path_GMSGFMT
14127
if test -n "$GMSGFMT"; then
14128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14129
$as_echo "$GMSGFMT" >&6; }
14130
else
14131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132
$as_echo "no" >&6; }
14133
fi
14134
14135
14136
14137
14138
# Prepare PATH_SEPARATOR.
14139
# The user is always right.
14140
if test "${PATH_SEPARATOR+set}" != set; then
14141
  echo "#! /bin/sh" >conf$$.sh
14142
  echo  "exit 0"   >>conf$$.sh
14143
  chmod +x conf$$.sh
14144
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14145
    PATH_SEPARATOR=';'
14146
  else
14147
    PATH_SEPARATOR=:
14148
  fi
14149
  rm -f conf$$.sh
14150
fi
14151
14152
# Find out how to test for executable files. Don't use a zero-byte file,
14153
# as systems may use methods other than mode bits to determine executability.
14154
cat >conf$$.file <<_ASEOF
14155
#! /bin/sh
14156
exit 0
14157
_ASEOF
14158
chmod +x conf$$.file
14159
if test -x conf$$.file >/dev/null 2>&1; then
14160
  ac_executable_p="test -x"
14161
else
14162
  ac_executable_p="test -f"
14163
fi
14164
rm -f conf$$.file
14165
14166
# Extract the first word of "xgettext", so it can be a program name with args.
14167
set dummy xgettext; ac_word=$2
14168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169
$as_echo_n "checking for $ac_word... " >&6; }
14170
if ${ac_cv_path_XGETTEXT+:} false; then :
14171
  $as_echo_n "(cached) " >&6
14172
else
14173
  case "$XGETTEXT" in
14174
  [\\/]* | ?:[\\/]*)
14175
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14176
    ;;
14177
  *)
14178
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14179
    for ac_dir in $PATH; do
14180
      IFS="$ac_save_IFS"
14181
      test -z "$ac_dir" && ac_dir=.
14182
      for ac_exec_ext in '' $ac_executable_extensions; do
14183
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14184
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14185
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14186
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14187
            break 2
14188
          fi
14189
        fi
14190
      done
14191
    done
14192
    IFS="$ac_save_IFS"
14193
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14194
    ;;
14195
esac
14196
fi
14197
XGETTEXT="$ac_cv_path_XGETTEXT"
14198
if test "$XGETTEXT" != ":"; then
14199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14200
$as_echo "$XGETTEXT" >&6; }
14201
else
14202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203
$as_echo "no" >&6; }
14204
fi
14205
14206
    rm -f messages.po
14207
14208
14209
# Prepare PATH_SEPARATOR.
14210
# The user is always right.
14211
if test "${PATH_SEPARATOR+set}" != set; then
14212
  echo "#! /bin/sh" >conf$$.sh
14213
  echo  "exit 0"   >>conf$$.sh
14214
  chmod +x conf$$.sh
14215
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14216
    PATH_SEPARATOR=';'
14217
  else
14218
    PATH_SEPARATOR=:
14219
  fi
14220
  rm -f conf$$.sh
14221
fi
14222
14223
# Find out how to test for executable files. Don't use a zero-byte file,
14224
# as systems may use methods other than mode bits to determine executability.
14225
cat >conf$$.file <<_ASEOF
14226
#! /bin/sh
14227
exit 0
14228
_ASEOF
14229
chmod +x conf$$.file
14230
if test -x conf$$.file >/dev/null 2>&1; then
14231
  ac_executable_p="test -x"
14232
else
14233
  ac_executable_p="test -f"
14234
fi
14235
rm -f conf$$.file
14236
14237
# Extract the first word of "msgmerge", so it can be a program name with args.
14238
set dummy msgmerge; ac_word=$2
14239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240
$as_echo_n "checking for $ac_word... " >&6; }
14241
if ${ac_cv_path_MSGMERGE+:} false; then :
14242
  $as_echo_n "(cached) " >&6
14243
else
14244
  case "$MSGMERGE" in
14245
  [\\/]* | ?:[\\/]*)
14246
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14247
    ;;
14248
  *)
14249
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14250
    for ac_dir in $PATH; do
14251
      IFS="$ac_save_IFS"
14252
      test -z "$ac_dir" && ac_dir=.
14253
      for ac_exec_ext in '' $ac_executable_extensions; do
14254
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14255
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14256
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14257
            break 2
14258
          fi
14259
        fi
14260
      done
14261
    done
14262
    IFS="$ac_save_IFS"
14263
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14264
    ;;
14265
esac
14266
fi
14267
MSGMERGE="$ac_cv_path_MSGMERGE"
14268
if test "$MSGMERGE" != ":"; then
14269
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14270
$as_echo "$MSGMERGE" >&6; }
14271
else
14272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273
$as_echo "no" >&6; }
14274
fi
14275
14276
14277
      if test "$GMSGFMT" != ":"; then
14278
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14279
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14280
      : ;
14281
    else
14282
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14283
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14284
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14285
      GMSGFMT=":"
14286
    fi
14287
  fi
14288
14289
      if test "$XGETTEXT" != ":"; then
14290
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14291
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14292
      : ;
14293
    else
14294
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14295
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14296
      XGETTEXT=":"
14297
    fi
14298
        rm -f messages.po
14299
  fi
14300
14301
  ac_config_commands="$ac_config_commands default-1"
14302
14303
14304
14305
      if test "X$prefix" = "XNONE"; then
14306
    acl_final_prefix="$ac_default_prefix"
14307
  else
14308
    acl_final_prefix="$prefix"
14309
  fi
14310
  if test "X$exec_prefix" = "XNONE"; then
14311
    acl_final_exec_prefix='${prefix}'
14312
  else
14313
    acl_final_exec_prefix="$exec_prefix"
14314
  fi
14315
  acl_save_prefix="$prefix"
14316
  prefix="$acl_final_prefix"
14317
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14318
  prefix="$acl_save_prefix"
14319
14320
14321
# Check whether --with-gnu-ld was given.
14322
if test "${with_gnu_ld+set}" = set; then :
14323
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14324
else
14325
  with_gnu_ld=no
14326
fi
14327
14328
# Prepare PATH_SEPARATOR.
14329
# The user is always right.
14330
if test "${PATH_SEPARATOR+set}" != set; then
14331
  echo "#! /bin/sh" >conf$$.sh
14332
  echo  "exit 0"   >>conf$$.sh
14333
  chmod +x conf$$.sh
14334
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14335
    PATH_SEPARATOR=';'
14336
  else
14337
    PATH_SEPARATOR=:
14338
  fi
14339
  rm -f conf$$.sh
14340
fi
14341
ac_prog=ld
14342
if test "$GCC" = yes; then
14343
  # Check if gcc -print-prog-name=ld gives a path.
14344
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14345
$as_echo_n "checking for ld used by GCC... " >&6; }
14346
  case $host in
14347
  *-*-mingw*)
14348
    # gcc leaves a trailing carriage return which upsets mingw
14349
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14350
  *)
14351
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14352
  esac
14353
  case $ac_prog in
14354
    # Accept absolute paths.
14355
    [\\/]* | [A-Za-z]:[\\/]*)
14356
      re_direlt='/[^/][^/]*/\.\./'
14357
      # Canonicalize the path of ld
14358
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14359
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14360
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14361
      done
14362
      test -z "$LD" && LD="$ac_prog"
14363
      ;;
14364
  "")
14365
    # If it fails, then pretend we aren't using GCC.
14366
    ac_prog=ld
14367
    ;;
14368
  *)
14369
    # If it is relative, then search for the first ld in PATH.
14370
    with_gnu_ld=unknown
14371
    ;;
14372
  esac
14373
elif test "$with_gnu_ld" = yes; then
14374
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14375
$as_echo_n "checking for GNU ld... " >&6; }
14376
else
14377
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14378
$as_echo_n "checking for non-GNU ld... " >&6; }
14379
fi
14380
if ${acl_cv_path_LD+:} false; then :
14381
  $as_echo_n "(cached) " >&6
14382
else
14383
  if test -z "$LD"; then
14384
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14385
  for ac_dir in $PATH; do
14386
    test -z "$ac_dir" && ac_dir=.
14387
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14388
      acl_cv_path_LD="$ac_dir/$ac_prog"
14389
      # Check to see if the program is GNU ld.  I'd rather use --version,
14390
      # but apparently some GNU ld's only accept -v.
14391
      # Break only if it was the GNU/non-GNU ld that we prefer.
14392
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14393
      *GNU* | *'with BFD'*)
14394
	test "$with_gnu_ld" != no && break ;;
14395
      *)
14396
	test "$with_gnu_ld" != yes && break ;;
14397
      esac
14398
    fi
14399
  done
14400
  IFS="$ac_save_ifs"
14401
else
14402
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14403
fi
14404
fi
14405
14406
LD="$acl_cv_path_LD"
14407
if test -n "$LD"; then
14408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14409
$as_echo "$LD" >&6; }
14410
else
14411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412
$as_echo "no" >&6; }
14413
fi
14414
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14416
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14417
if ${acl_cv_prog_gnu_ld+:} false; then :
14418
  $as_echo_n "(cached) " >&6
14419
else
14420
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14421
case `$LD -v 2>&1 </dev/null` in
14422
*GNU* | *'with BFD'*)
14423
  acl_cv_prog_gnu_ld=yes ;;
14424
*)
14425
  acl_cv_prog_gnu_ld=no ;;
14426
esac
14427
fi
14428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14429
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14430
with_gnu_ld=$acl_cv_prog_gnu_ld
14431
14432
14433
14434
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14435
$as_echo_n "checking for shared library run path origin... " >&6; }
14436
if ${acl_cv_rpath+:} false; then :
14437
  $as_echo_n "(cached) " >&6
14438
else
14439
14440
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14441
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14442
    . ./conftest.sh
14443
    rm -f ./conftest.sh
14444
    acl_cv_rpath=done
14445
14446
fi
14447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14448
$as_echo "$acl_cv_rpath" >&6; }
14449
  wl="$acl_cv_wl"
14450
  libext="$acl_cv_libext"
14451
  shlibext="$acl_cv_shlibext"
14452
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14453
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14454
  hardcode_direct="$acl_cv_hardcode_direct"
14455
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
14456
    # Check whether --enable-rpath was given.
14457
if test "${enable_rpath+set}" = set; then :
14458
  enableval=$enable_rpath; :
14459
else
14460
  enable_rpath=yes
14461
fi
14462
14463
14464
14465
14466
14467
14468
14469
14470
    use_additional=yes
14471
14472
  acl_save_prefix="$prefix"
14473
  prefix="$acl_final_prefix"
14474
  acl_save_exec_prefix="$exec_prefix"
14475
  exec_prefix="$acl_final_exec_prefix"
14476
14477
    eval additional_includedir=\"$includedir\"
14478
    eval additional_libdir=\"$libdir\"
14479
14480
  exec_prefix="$acl_save_exec_prefix"
14481
  prefix="$acl_save_prefix"
14482
14483
14484
# Check whether --with-libiconv-prefix was given.
14485
if test "${with_libiconv_prefix+set}" = set; then :
14486
  withval=$with_libiconv_prefix;
14487
    if test "X$withval" = "Xno"; then
14488
      use_additional=no
14489
    else
14490
      if test "X$withval" = "X"; then
14491
14492
  acl_save_prefix="$prefix"
14493
  prefix="$acl_final_prefix"
14494
  acl_save_exec_prefix="$exec_prefix"
14495
  exec_prefix="$acl_final_exec_prefix"
14496
14497
          eval additional_includedir=\"$includedir\"
14498
          eval additional_libdir=\"$libdir\"
14499
14500
  exec_prefix="$acl_save_exec_prefix"
14501
  prefix="$acl_save_prefix"
14502
14503
      else
14504
        additional_includedir="$withval/include"
14505
        additional_libdir="$withval/lib"
14506
      fi
14507
    fi
14508
14509
fi
14510
14511
      LIBICONV=
14512
  LTLIBICONV=
14513
  INCICONV=
14514
  rpathdirs=
14515
  ltrpathdirs=
14516
  names_already_handled=
14517
  names_next_round='iconv '
14518
  while test -n "$names_next_round"; do
14519
    names_this_round="$names_next_round"
14520
    names_next_round=
14521
    for name in $names_this_round; do
14522
      already_handled=
14523
      for n in $names_already_handled; do
14524
        if test "$n" = "$name"; then
14525
          already_handled=yes
14526
          break
14527
        fi
14528
      done
14529
      if test -z "$already_handled"; then
14530
        names_already_handled="$names_already_handled $name"
14531
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14532
        eval value=\"\$HAVE_LIB$uppername\"
14533
        if test -n "$value"; then
14534
          if test "$value" = yes; then
14535
            eval value=\"\$LIB$uppername\"
14536
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14537
            eval value=\"\$LTLIB$uppername\"
14538
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14539
          else
14540
                                    :
14541
          fi
14542
        else
14543
                              found_dir=
14544
          found_la=
14545
          found_so=
14546
          found_a=
14547
          if test $use_additional = yes; then
14548
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14549
              found_dir="$additional_libdir"
14550
              found_so="$additional_libdir/lib$name.$shlibext"
14551
              if test -f "$additional_libdir/lib$name.la"; then
14552
                found_la="$additional_libdir/lib$name.la"
14553
              fi
14554
            else
14555
              if test -f "$additional_libdir/lib$name.$libext"; then
14556
                found_dir="$additional_libdir"
14557
                found_a="$additional_libdir/lib$name.$libext"
14558
                if test -f "$additional_libdir/lib$name.la"; then
14559
                  found_la="$additional_libdir/lib$name.la"
14560
                fi
14561
              fi
14562
            fi
14563
          fi
14564
          if test "X$found_dir" = "X"; then
14565
            for x in $LDFLAGS $LTLIBICONV; do
14566
14567
  acl_save_prefix="$prefix"
14568
  prefix="$acl_final_prefix"
14569
  acl_save_exec_prefix="$exec_prefix"
14570
  exec_prefix="$acl_final_exec_prefix"
14571
  eval x=\"$x\"
14572
  exec_prefix="$acl_save_exec_prefix"
14573
  prefix="$acl_save_prefix"
14574
14575
              case "$x" in
14576
                -L*)
14577
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14578
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14579
                    found_dir="$dir"
14580
                    found_so="$dir/lib$name.$shlibext"
14581
                    if test -f "$dir/lib$name.la"; then
14582
                      found_la="$dir/lib$name.la"
14583
                    fi
14584
                  else
14585
                    if test -f "$dir/lib$name.$libext"; then
14586
                      found_dir="$dir"
14587
                      found_a="$dir/lib$name.$libext"
14588
                      if test -f "$dir/lib$name.la"; then
14589
                        found_la="$dir/lib$name.la"
14590
                      fi
14591
                    fi
14592
                  fi
14593
                  ;;
14594
              esac
14595
              if test "X$found_dir" != "X"; then
14596
                break
14597
              fi
14598
            done
14599
          fi
14600
          if test "X$found_dir" != "X"; then
14601
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14602
            if test "X$found_so" != "X"; then
14603
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14604
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14605
              else
14606
                                                                                haveit=
14607
                for x in $ltrpathdirs; do
14608
                  if test "X$x" = "X$found_dir"; then
14609
                    haveit=yes
14610
                    break
14611
                  fi
14612
                done
14613
                if test -z "$haveit"; then
14614
                  ltrpathdirs="$ltrpathdirs $found_dir"
14615
                fi
14616
                                if test "$hardcode_direct" = yes; then
14617
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14618
                else
14619
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14620
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14621
                                                            haveit=
14622
                    for x in $rpathdirs; do
14623
                      if test "X$x" = "X$found_dir"; then
14624
                        haveit=yes
14625
                        break
14626
                      fi
14627
                    done
14628
                    if test -z "$haveit"; then
14629
                      rpathdirs="$rpathdirs $found_dir"
14630
                    fi
14631
                  else
14632
                                                                                haveit=
14633
                    for x in $LDFLAGS $LIBICONV; do
14634
14635
  acl_save_prefix="$prefix"
14636
  prefix="$acl_final_prefix"
14637
  acl_save_exec_prefix="$exec_prefix"
14638
  exec_prefix="$acl_final_exec_prefix"
14639
  eval x=\"$x\"
14640
  exec_prefix="$acl_save_exec_prefix"
14641
  prefix="$acl_save_prefix"
14642
14643
                      if test "X$x" = "X-L$found_dir"; then
14644
                        haveit=yes
14645
                        break
14646
                      fi
14647
                    done
14648
                    if test -z "$haveit"; then
14649
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14650
                    fi
14651
                    if test "$hardcode_minus_L" != no; then
14652
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14653
                    else
14654
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14655
                    fi
14656
                  fi
14657
                fi
14658
              fi
14659
            else
14660
              if test "X$found_a" != "X"; then
14661
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14662
              else
14663
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14664
              fi
14665
            fi
14666
                        additional_includedir=
14667
            case "$found_dir" in
14668
              */lib | */lib/)
14669
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14670
                additional_includedir="$basedir/include"
14671
                ;;
14672
            esac
14673
            if test "X$additional_includedir" != "X"; then
14674
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14675
                haveit=
14676
                if test "X$additional_includedir" = "X/usr/local/include"; then
14677
                  if test -n "$GCC"; then
14678
                    case $host_os in
14679
                      linux*) haveit=yes;;
14680
                    esac
14681
                  fi
14682
                fi
14683
                if test -z "$haveit"; then
14684
                  for x in $CPPFLAGS $INCICONV; do
14685
14686
  acl_save_prefix="$prefix"
14687
  prefix="$acl_final_prefix"
14688
  acl_save_exec_prefix="$exec_prefix"
14689
  exec_prefix="$acl_final_exec_prefix"
14690
  eval x=\"$x\"
14691
  exec_prefix="$acl_save_exec_prefix"
14692
  prefix="$acl_save_prefix"
14693
14694
                    if test "X$x" = "X-I$additional_includedir"; then
14695
                      haveit=yes
14696
                      break
14697
                    fi
14698
                  done
14699
                  if test -z "$haveit"; then
14700
                    if test -d "$additional_includedir"; then
14701
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14702
                    fi
14703
                  fi
14704
                fi
14705
              fi
14706
            fi
14707
                        if test -n "$found_la"; then
14708
                                                        save_libdir="$libdir"
14709
              case "$found_la" in
14710
                */* | *\\*) . "$found_la" ;;
14711
                *) . "./$found_la" ;;
14712
              esac
14713
              libdir="$save_libdir"
14714
                            for dep in $dependency_libs; do
14715
                case "$dep" in
14716
                  -L*)
14717
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14718
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14719
                      haveit=
14720
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14721
                        if test -n "$GCC"; then
14722
                          case $host_os in
14723
                            linux*) haveit=yes;;
14724
                          esac
14725
                        fi
14726
                      fi
14727
                      if test -z "$haveit"; then
14728
                        haveit=
14729
                        for x in $LDFLAGS $LIBICONV; do
14730
14731
  acl_save_prefix="$prefix"
14732
  prefix="$acl_final_prefix"
14733
  acl_save_exec_prefix="$exec_prefix"
14734
  exec_prefix="$acl_final_exec_prefix"
14735
  eval x=\"$x\"
14736
  exec_prefix="$acl_save_exec_prefix"
14737
  prefix="$acl_save_prefix"
14738
14739
                          if test "X$x" = "X-L$additional_libdir"; then
14740
                            haveit=yes
14741
                            break
14742
                          fi
14743
                        done
14744
                        if test -z "$haveit"; then
14745
                          if test -d "$additional_libdir"; then
14746
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14747
                          fi
14748
                        fi
14749
                        haveit=
14750
                        for x in $LDFLAGS $LTLIBICONV; do
14751
14752
  acl_save_prefix="$prefix"
14753
  prefix="$acl_final_prefix"
14754
  acl_save_exec_prefix="$exec_prefix"
14755
  exec_prefix="$acl_final_exec_prefix"
14756
  eval x=\"$x\"
14757
  exec_prefix="$acl_save_exec_prefix"
14758
  prefix="$acl_save_prefix"
14759
14760
                          if test "X$x" = "X-L$additional_libdir"; then
14761
                            haveit=yes
14762
                            break
14763
                          fi
14764
                        done
14765
                        if test -z "$haveit"; then
14766
                          if test -d "$additional_libdir"; then
14767
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14768
                          fi
14769
                        fi
14770
                      fi
14771
                    fi
14772
                    ;;
14773
                  -R*)
14774
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14775
                    if test "$enable_rpath" != no; then
14776
                                                                  haveit=
14777
                      for x in $rpathdirs; do
14778
                        if test "X$x" = "X$dir"; then
14779
                          haveit=yes
14780
                          break
14781
                        fi
14782
                      done
14783
                      if test -z "$haveit"; then
14784
                        rpathdirs="$rpathdirs $dir"
14785
                      fi
14786
                                                                  haveit=
14787
                      for x in $ltrpathdirs; do
14788
                        if test "X$x" = "X$dir"; then
14789
                          haveit=yes
14790
                          break
14791
                        fi
14792
                      done
14793
                      if test -z "$haveit"; then
14794
                        ltrpathdirs="$ltrpathdirs $dir"
14795
                      fi
14796
                    fi
14797
                    ;;
14798
                  -l*)
14799
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14800
                    ;;
14801
                  *.la)
14802
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14803
                    ;;
14804
                  *)
14805
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14806
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14807
                    ;;
14808
                esac
14809
              done
14810
            fi
14811
          else
14812
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14813
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14814
          fi
14815
        fi
14816
      fi
14817
    done
14818
  done
14819
  if test "X$rpathdirs" != "X"; then
14820
    if test -n "$hardcode_libdir_separator"; then
14821
                        alldirs=
14822
      for found_dir in $rpathdirs; do
14823
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14824
      done
14825
            acl_save_libdir="$libdir"
14826
      libdir="$alldirs"
14827
      eval flag=\"$hardcode_libdir_flag_spec\"
14828
      libdir="$acl_save_libdir"
14829
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14830
    else
14831
            for found_dir in $rpathdirs; do
14832
        acl_save_libdir="$libdir"
14833
        libdir="$found_dir"
14834
        eval flag=\"$hardcode_libdir_flag_spec\"
14835
        libdir="$acl_save_libdir"
14836
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14837
      done
14838
    fi
14839
  fi
14840
  if test "X$ltrpathdirs" != "X"; then
14841
            for found_dir in $ltrpathdirs; do
14842
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14843
    done
14844
  fi
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14864
$as_echo_n "checking whether NLS is requested... " >&6; }
14865
    # Check whether --enable-nls was given.
14866
if test "${enable_nls+set}" = set; then :
14867
  enableval=$enable_nls; USE_NLS=$enableval
14868
else
14869
  USE_NLS=yes
14870
fi
14871
14872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14873
$as_echo "$USE_NLS" >&6; }
14874
14875
14876
14877
14878
  LIBINTL=
14879
  LTLIBINTL=
14880
  POSUB=
14881
14882
    if test "$USE_NLS" = "yes"; then
14883
    gt_use_preinstalled_gnugettext=no
14884
14885
14886
14887
14888
14889
14890
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14891
$as_echo_n "checking for GNU gettext in libc... " >&6; }
14892
if ${gt_cv_func_gnugettext1_libc+:} false; then :
14893
  $as_echo_n "(cached) " >&6
14894
else
14895
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896
/* end confdefs.h.  */
14897
#include <libintl.h>
14898
extern int _nl_msg_cat_cntr;
14899
extern int *_nl_domain_bindings;
14900
int
14901
main ()
14902
{
14903
bindtextdomain ("", "");
14904
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
14905
  ;
14906
  return 0;
14907
}
14908
_ACEOF
14909
if ac_fn_c_try_link "$LINENO"; then :
14910
  gt_cv_func_gnugettext1_libc=yes
14911
else
14912
  gt_cv_func_gnugettext1_libc=no
14913
fi
14914
rm -f core conftest.err conftest.$ac_objext \
14915
    conftest$ac_exeext conftest.$ac_ext
14916
fi
14917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
14918
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
14919
14920
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14921
14922
14923
14924
14925
14926
          am_save_CPPFLAGS="$CPPFLAGS"
14927
14928
  for element in $INCICONV; do
14929
    haveit=
14930
    for x in $CPPFLAGS; do
14931
14932
  acl_save_prefix="$prefix"
14933
  prefix="$acl_final_prefix"
14934
  acl_save_exec_prefix="$exec_prefix"
14935
  exec_prefix="$acl_final_exec_prefix"
14936
  eval x=\"$x\"
14937
  exec_prefix="$acl_save_exec_prefix"
14938
  prefix="$acl_save_prefix"
14939
14940
      if test "X$x" = "X$element"; then
14941
        haveit=yes
14942
        break
14943
      fi
14944
    done
14945
    if test -z "$haveit"; then
14946
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14947
    fi
14948
  done
14949
14950
14951
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14952
$as_echo_n "checking for iconv... " >&6; }
14953
if ${am_cv_func_iconv+:} false; then :
14954
  $as_echo_n "(cached) " >&6
14955
else
14956
14957
    am_cv_func_iconv="no, consider installing GNU libiconv"
14958
    am_cv_lib_iconv=no
14959
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960
/* end confdefs.h.  */
14961
#include <stdlib.h>
14962
#include <iconv.h>
14963
int
14964
main ()
14965
{
14966
iconv_t cd = iconv_open("","");
14967
       iconv(cd,NULL,NULL,NULL,NULL);
14968
       iconv_close(cd);
14969
  ;
14970
  return 0;
14971
}
14972
_ACEOF
14973
if ac_fn_c_try_link "$LINENO"; then :
14974
  am_cv_func_iconv=yes
14975
fi
14976
rm -f core conftest.err conftest.$ac_objext \
14977
    conftest$ac_exeext conftest.$ac_ext
14978
    if test "$am_cv_func_iconv" != yes; then
14979
      am_save_LIBS="$LIBS"
14980
      LIBS="$LIBS $LIBICONV"
14981
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982
/* end confdefs.h.  */
14983
#include <stdlib.h>
14984
#include <iconv.h>
14985
int
14986
main ()
14987
{
14988
iconv_t cd = iconv_open("","");
14989
         iconv(cd,NULL,NULL,NULL,NULL);
14990
         iconv_close(cd);
14991
  ;
14992
  return 0;
14993
}
14994
_ACEOF
14995
if ac_fn_c_try_link "$LINENO"; then :
14996
  am_cv_lib_iconv=yes
14997
        am_cv_func_iconv=yes
14998
fi
14999
rm -f core conftest.err conftest.$ac_objext \
15000
    conftest$ac_exeext conftest.$ac_ext
15001
      LIBS="$am_save_LIBS"
15002
    fi
15003
15004
fi
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15006
$as_echo "$am_cv_func_iconv" >&6; }
15007
  if test "$am_cv_func_iconv" = yes; then
15008
15009
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15010
15011
  fi
15012
  if test "$am_cv_lib_iconv" = yes; then
15013
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15014
$as_echo_n "checking how to link with libiconv... " >&6; }
15015
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15016
$as_echo "$LIBICONV" >&6; }
15017
  else
15018
            CPPFLAGS="$am_save_CPPFLAGS"
15019
    LIBICONV=
15020
    LTLIBICONV=
15021
  fi
15022
15023
15024
15025
15026
15027
15028
    use_additional=yes
15029
15030
  acl_save_prefix="$prefix"
15031
  prefix="$acl_final_prefix"
15032
  acl_save_exec_prefix="$exec_prefix"
15033
  exec_prefix="$acl_final_exec_prefix"
15034
15035
    eval additional_includedir=\"$includedir\"
15036
    eval additional_libdir=\"$libdir\"
15037
15038
  exec_prefix="$acl_save_exec_prefix"
15039
  prefix="$acl_save_prefix"
15040
15041
15042
# Check whether --with-libintl-prefix was given.
15043
if test "${with_libintl_prefix+set}" = set; then :
15044
  withval=$with_libintl_prefix;
15045
    if test "X$withval" = "Xno"; then
15046
      use_additional=no
15047
    else
15048
      if test "X$withval" = "X"; then
15049
15050
  acl_save_prefix="$prefix"
15051
  prefix="$acl_final_prefix"
15052
  acl_save_exec_prefix="$exec_prefix"
15053
  exec_prefix="$acl_final_exec_prefix"
15054
15055
          eval additional_includedir=\"$includedir\"
15056
          eval additional_libdir=\"$libdir\"
15057
15058
  exec_prefix="$acl_save_exec_prefix"
15059
  prefix="$acl_save_prefix"
15060
15061
      else
15062
        additional_includedir="$withval/include"
15063
        additional_libdir="$withval/lib"
15064
      fi
15065
    fi
15066
15067
fi
15068
15069
      LIBINTL=
15070
  LTLIBINTL=
15071
  INCINTL=
15072
  rpathdirs=
15073
  ltrpathdirs=
15074
  names_already_handled=
15075
  names_next_round='intl '
15076
  while test -n "$names_next_round"; do
15077
    names_this_round="$names_next_round"
15078
    names_next_round=
15079
    for name in $names_this_round; do
15080
      already_handled=
15081
      for n in $names_already_handled; do
15082
        if test "$n" = "$name"; then
15083
          already_handled=yes
15084
          break
15085
        fi
15086
      done
15087
      if test -z "$already_handled"; then
15088
        names_already_handled="$names_already_handled $name"
15089
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15090
        eval value=\"\$HAVE_LIB$uppername\"
15091
        if test -n "$value"; then
15092
          if test "$value" = yes; then
15093
            eval value=\"\$LIB$uppername\"
15094
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15095
            eval value=\"\$LTLIB$uppername\"
15096
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15097
          else
15098
                                    :
15099
          fi
15100
        else
15101
                              found_dir=
15102
          found_la=
15103
          found_so=
15104
          found_a=
15105
          if test $use_additional = yes; then
15106
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15107
              found_dir="$additional_libdir"
15108
              found_so="$additional_libdir/lib$name.$shlibext"
15109
              if test -f "$additional_libdir/lib$name.la"; then
15110
                found_la="$additional_libdir/lib$name.la"
15111
              fi
15112
            else
15113
              if test -f "$additional_libdir/lib$name.$libext"; then
15114
                found_dir="$additional_libdir"
15115
                found_a="$additional_libdir/lib$name.$libext"
15116
                if test -f "$additional_libdir/lib$name.la"; then
15117
                  found_la="$additional_libdir/lib$name.la"
15118
                fi
15119
              fi
15120
            fi
15121
          fi
15122
          if test "X$found_dir" = "X"; then
15123
            for x in $LDFLAGS $LTLIBINTL; do
15124
15125
  acl_save_prefix="$prefix"
15126
  prefix="$acl_final_prefix"
15127
  acl_save_exec_prefix="$exec_prefix"
15128
  exec_prefix="$acl_final_exec_prefix"
15129
  eval x=\"$x\"
15130
  exec_prefix="$acl_save_exec_prefix"
15131
  prefix="$acl_save_prefix"
15132
15133
              case "$x" in
15134
                -L*)
15135
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15136
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15137
                    found_dir="$dir"
15138
                    found_so="$dir/lib$name.$shlibext"
15139
                    if test -f "$dir/lib$name.la"; then
15140
                      found_la="$dir/lib$name.la"
15141
                    fi
15142
                  else
15143
                    if test -f "$dir/lib$name.$libext"; then
15144
                      found_dir="$dir"
15145
                      found_a="$dir/lib$name.$libext"
15146
                      if test -f "$dir/lib$name.la"; then
15147
                        found_la="$dir/lib$name.la"
15148
                      fi
15149
                    fi
15150
                  fi
15151
                  ;;
15152
              esac
15153
              if test "X$found_dir" != "X"; then
15154
                break
15155
              fi
15156
            done
15157
          fi
15158
          if test "X$found_dir" != "X"; then
15159
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15160
            if test "X$found_so" != "X"; then
15161
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15162
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15163
              else
15164
                                                                                haveit=
15165
                for x in $ltrpathdirs; do
15166
                  if test "X$x" = "X$found_dir"; then
15167
                    haveit=yes
15168
                    break
15169
                  fi
15170
                done
15171
                if test -z "$haveit"; then
15172
                  ltrpathdirs="$ltrpathdirs $found_dir"
15173
                fi
15174
                                if test "$hardcode_direct" = yes; then
15175
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15176
                else
15177
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15178
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15179
                                                            haveit=
15180
                    for x in $rpathdirs; do
15181
                      if test "X$x" = "X$found_dir"; then
15182
                        haveit=yes
15183
                        break
15184
                      fi
15185
                    done
15186
                    if test -z "$haveit"; then
15187
                      rpathdirs="$rpathdirs $found_dir"
15188
                    fi
15189
                  else
15190
                                                                                haveit=
15191
                    for x in $LDFLAGS $LIBINTL; do
15192
15193
  acl_save_prefix="$prefix"
15194
  prefix="$acl_final_prefix"
15195
  acl_save_exec_prefix="$exec_prefix"
15196
  exec_prefix="$acl_final_exec_prefix"
15197
  eval x=\"$x\"
15198
  exec_prefix="$acl_save_exec_prefix"
15199
  prefix="$acl_save_prefix"
15200
15201
                      if test "X$x" = "X-L$found_dir"; then
15202
                        haveit=yes
15203
                        break
15204
                      fi
15205
                    done
15206
                    if test -z "$haveit"; then
15207
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15208
                    fi
15209
                    if test "$hardcode_minus_L" != no; then
15210
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15211
                    else
15212
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15213
                    fi
15214
                  fi
15215
                fi
15216
              fi
15217
            else
15218
              if test "X$found_a" != "X"; then
15219
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15220
              else
15221
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15222
              fi
15223
            fi
15224
                        additional_includedir=
15225
            case "$found_dir" in
15226
              */lib | */lib/)
15227
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15228
                additional_includedir="$basedir/include"
15229
                ;;
15230
            esac
15231
            if test "X$additional_includedir" != "X"; then
15232
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15233
                haveit=
15234
                if test "X$additional_includedir" = "X/usr/local/include"; then
15235
                  if test -n "$GCC"; then
15236
                    case $host_os in
15237
                      linux*) haveit=yes;;
15238
                    esac
15239
                  fi
15240
                fi
15241
                if test -z "$haveit"; then
15242
                  for x in $CPPFLAGS $INCINTL; do
15243
15244
  acl_save_prefix="$prefix"
15245
  prefix="$acl_final_prefix"
15246
  acl_save_exec_prefix="$exec_prefix"
15247
  exec_prefix="$acl_final_exec_prefix"
15248
  eval x=\"$x\"
15249
  exec_prefix="$acl_save_exec_prefix"
15250
  prefix="$acl_save_prefix"
15251
15252
                    if test "X$x" = "X-I$additional_includedir"; then
15253
                      haveit=yes
15254
                      break
15255
                    fi
15256
                  done
15257
                  if test -z "$haveit"; then
15258
                    if test -d "$additional_includedir"; then
15259
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15260
                    fi
15261
                  fi
15262
                fi
15263
              fi
15264
            fi
15265
                        if test -n "$found_la"; then
15266
                                                        save_libdir="$libdir"
15267
              case "$found_la" in
15268
                */* | *\\*) . "$found_la" ;;
15269
                *) . "./$found_la" ;;
15270
              esac
15271
              libdir="$save_libdir"
15272
                            for dep in $dependency_libs; do
15273
                case "$dep" in
15274
                  -L*)
15275
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15276
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
15277
                      haveit=
15278
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
15279
                        if test -n "$GCC"; then
15280
                          case $host_os in
15281
                            linux*) haveit=yes;;
15282
                          esac
15283
                        fi
15284
                      fi
15285
                      if test -z "$haveit"; then
15286
                        haveit=
15287
                        for x in $LDFLAGS $LIBINTL; do
15288
15289
  acl_save_prefix="$prefix"
15290
  prefix="$acl_final_prefix"
15291
  acl_save_exec_prefix="$exec_prefix"
15292
  exec_prefix="$acl_final_exec_prefix"
15293
  eval x=\"$x\"
15294
  exec_prefix="$acl_save_exec_prefix"
15295
  prefix="$acl_save_prefix"
15296
15297
                          if test "X$x" = "X-L$additional_libdir"; then
15298
                            haveit=yes
15299
                            break
15300
                          fi
15301
                        done
15302
                        if test -z "$haveit"; then
15303
                          if test -d "$additional_libdir"; then
15304
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15305
                          fi
15306
                        fi
15307
                        haveit=
15308
                        for x in $LDFLAGS $LTLIBINTL; do
15309
15310
  acl_save_prefix="$prefix"
15311
  prefix="$acl_final_prefix"
15312
  acl_save_exec_prefix="$exec_prefix"
15313
  exec_prefix="$acl_final_exec_prefix"
15314
  eval x=\"$x\"
15315
  exec_prefix="$acl_save_exec_prefix"
15316
  prefix="$acl_save_prefix"
15317
15318
                          if test "X$x" = "X-L$additional_libdir"; then
15319
                            haveit=yes
15320
                            break
15321
                          fi
15322
                        done
15323
                        if test -z "$haveit"; then
15324
                          if test -d "$additional_libdir"; then
15325
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15326
                          fi
15327
                        fi
15328
                      fi
15329
                    fi
15330
                    ;;
15331
                  -R*)
15332
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15333
                    if test "$enable_rpath" != no; then
15334
                                                                  haveit=
15335
                      for x in $rpathdirs; do
15336
                        if test "X$x" = "X$dir"; then
15337
                          haveit=yes
15338
                          break
15339
                        fi
15340
                      done
15341
                      if test -z "$haveit"; then
15342
                        rpathdirs="$rpathdirs $dir"
15343
                      fi
15344
                                                                  haveit=
15345
                      for x in $ltrpathdirs; do
15346
                        if test "X$x" = "X$dir"; then
15347
                          haveit=yes
15348
                          break
15349
                        fi
15350
                      done
15351
                      if test -z "$haveit"; then
15352
                        ltrpathdirs="$ltrpathdirs $dir"
15353
                      fi
15354
                    fi
15355
                    ;;
15356
                  -l*)
15357
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15358
                    ;;
15359
                  *.la)
15360
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15361
                    ;;
15362
                  *)
15363
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15364
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15365
                    ;;
15366
                esac
15367
              done
15368
            fi
15369
          else
15370
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15371
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15372
          fi
15373
        fi
15374
      fi
15375
    done
15376
  done
15377
  if test "X$rpathdirs" != "X"; then
15378
    if test -n "$hardcode_libdir_separator"; then
15379
                        alldirs=
15380
      for found_dir in $rpathdirs; do
15381
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15382
      done
15383
            acl_save_libdir="$libdir"
15384
      libdir="$alldirs"
15385
      eval flag=\"$hardcode_libdir_flag_spec\"
15386
      libdir="$acl_save_libdir"
15387
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15388
    else
15389
            for found_dir in $rpathdirs; do
15390
        acl_save_libdir="$libdir"
15391
        libdir="$found_dir"
15392
        eval flag=\"$hardcode_libdir_flag_spec\"
15393
        libdir="$acl_save_libdir"
15394
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15395
      done
15396
    fi
15397
  fi
15398
  if test "X$ltrpathdirs" != "X"; then
15399
            for found_dir in $ltrpathdirs; do
15400
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15401
    done
15402
  fi
15403
15404
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15405
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15406
if ${gt_cv_func_gnugettext1_libintl+:} false; then :
15407
  $as_echo_n "(cached) " >&6
15408
else
15409
  gt_save_CPPFLAGS="$CPPFLAGS"
15410
            CPPFLAGS="$CPPFLAGS $INCINTL"
15411
            gt_save_LIBS="$LIBS"
15412
            LIBS="$LIBS $LIBINTL"
15413
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414
/* end confdefs.h.  */
15415
#include <libintl.h>
15416
extern int _nl_msg_cat_cntr;
15417
extern
15418
#ifdef __cplusplus
15419
"C"
15420
#endif
15421
const char *_nl_expand_alias ();
15422
int
15423
main ()
15424
{
15425
bindtextdomain ("", "");
15426
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15427
  ;
15428
  return 0;
15429
}
15430
_ACEOF
15431
if ac_fn_c_try_link "$LINENO"; then :
15432
  gt_cv_func_gnugettext1_libintl=yes
15433
else
15434
  gt_cv_func_gnugettext1_libintl=no
15435
fi
15436
rm -f core conftest.err conftest.$ac_objext \
15437
    conftest$ac_exeext conftest.$ac_ext
15438
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
15439
              LIBS="$LIBS $LIBICONV"
15440
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441
/* end confdefs.h.  */
15442
#include <libintl.h>
15443
extern int _nl_msg_cat_cntr;
15444
extern
15445
#ifdef __cplusplus
15446
"C"
15447
#endif
15448
const char *_nl_expand_alias ();
15449
int
15450
main ()
15451
{
15452
bindtextdomain ("", "");
15453
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15454
  ;
15455
  return 0;
15456
}
15457
_ACEOF
15458
if ac_fn_c_try_link "$LINENO"; then :
15459
  LIBINTL="$LIBINTL $LIBICONV"
15460
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15461
                gt_cv_func_gnugettext1_libintl=yes
15462
15463
fi
15464
rm -f core conftest.err conftest.$ac_objext \
15465
    conftest$ac_exeext conftest.$ac_ext
15466
            fi
15467
            CPPFLAGS="$gt_save_CPPFLAGS"
15468
            LIBS="$gt_save_LIBS"
15469
fi
15470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
15471
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
15472
        fi
15473
15474
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
15475
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
15476
                && test "$PACKAGE" != gettext-runtime \
15477
                && test "$PACKAGE" != gettext-tools; }; then
15478
          gt_use_preinstalled_gnugettext=yes
15479
        else
15480
                    LIBINTL=
15481
          LTLIBINTL=
15482
          INCINTL=
15483
        fi
15484
15485
15486
15487
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
15488
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
15489
15490
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15491
15492
    else
15493
      USE_NLS=no
15494
    fi
15495
  fi
15496
15497
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15498
$as_echo_n "checking whether to use NLS... " >&6; }
15499
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15500
$as_echo "$USE_NLS" >&6; }
15501
  if test "$USE_NLS" = "yes"; then
15502
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15503
$as_echo_n "checking where the gettext function comes from... " >&6; }
15504
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15505
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15506
        gt_source="external libintl"
15507
      else
15508
        gt_source="libc"
15509
      fi
15510
    else
15511
      gt_source="included intl directory"
15512
    fi
15513
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15514
$as_echo "$gt_source" >&6; }
15515
  fi
15516
15517
  if test "$USE_NLS" = "yes"; then
15518
15519
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15520
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15521
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15522
$as_echo_n "checking how to link with libintl... " >&6; }
15523
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15524
$as_echo "$LIBINTL" >&6; }
15525
15526
  for element in $INCINTL; do
15527
    haveit=
15528
    for x in $CPPFLAGS; do
15529
15530
  acl_save_prefix="$prefix"
15531
  prefix="$acl_final_prefix"
15532
  acl_save_exec_prefix="$exec_prefix"
15533
  exec_prefix="$acl_final_exec_prefix"
15534
  eval x=\"$x\"
15535
  exec_prefix="$acl_save_exec_prefix"
15536
  prefix="$acl_save_prefix"
15537
15538
      if test "X$x" = "X$element"; then
15539
        haveit=yes
15540
        break
15541
      fi
15542
    done
15543
    if test -z "$haveit"; then
15544
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15545
    fi
15546
  done
15547
15548
      fi
15549
15550
15551
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15552
15553
15554
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15555
15556
    fi
15557
15558
        POSUB=po
15559
  fi
15560
15561
15562
15563
    INTLLIBS="$LIBINTL"
15564
15565
15566
15567
15568
15569
15570
15571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
15572
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
15573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574
/* end confdefs.h.  */
1.1.9 by Craig Small
Import upstream version 3.3.3
15575
#include <errno.h>
1.1.8 by Craig Small
Import upstream version 3.3.2
15576
int
15577
main ()
15578
{
15579
program_invocation_short_name = "test";
15580
  ;
15581
  return 0;
15582
}
15583
_ACEOF
15584
if ac_fn_c_try_compile "$LINENO"; then :
15585
15586
$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
15587
15588
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15589
$as_echo "yes" >&6; }
15590
else
15591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592
$as_echo "no" >&6; }
15593
fi
15594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595
1.1.6 by Craig Small
Import upstream version 3.3.0
15596
15597
# Check whether --with-ncurses was given.
15598
if test "${with_ncurses+set}" = set; then :
1.1.9 by Craig Small
Import upstream version 3.3.3
15599
  withval=$with_ncurses; with_ncurses=$withval
1.1.6 by Craig Small
Import upstream version 3.3.0
15600
else
15601
  with_ncurses=yes
15602
15603
fi
15604
15605
15606
if test "x$with_ncurses" = xno; then
15607
   if false; then
15608
  WITH_NCURSES_TRUE=
15609
  WITH_NCURSES_FALSE='#'
15610
else
15611
  WITH_NCURSES_TRUE='#'
15612
  WITH_NCURSES_FALSE=
15613
fi
15614
15615
else
1.1.9 by Craig Small
Import upstream version 3.3.3
15616
15617
pkg_failed=no
15618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSES" >&5
15619
$as_echo_n "checking for NCURSES... " >&6; }
15620
15621
if test -n "$NCURSES_CFLAGS"; then
15622
    pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
15623
 elif test -n "$PKG_CONFIG"; then
15624
    if test -n "$PKG_CONFIG" && \
15625
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
15626
  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
15627
  ac_status=$?
15628
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629
  test $ac_status = 0; }; then
15630
  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
15631
		      test "x$?" != "x0" && pkg_failed=yes
15632
else
15633
  pkg_failed=yes
15634
fi
15635
 else
15636
    pkg_failed=untried
15637
fi
15638
if test -n "$NCURSES_LIBS"; then
15639
    pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
15640
 elif test -n "$PKG_CONFIG"; then
15641
    if test -n "$PKG_CONFIG" && \
15642
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
15643
  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
15644
  ac_status=$?
15645
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15646
  test $ac_status = 0; }; then
15647
  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
15648
		      test "x$?" != "x0" && pkg_failed=yes
15649
else
15650
  pkg_failed=yes
15651
fi
15652
 else
15653
    pkg_failed=untried
15654
fi
15655
15656
15657
15658
if test $pkg_failed = yes; then
15659
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660
$as_echo "no" >&6; }
15661
15662
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15663
        _pkg_short_errors_supported=yes
15664
else
15665
        _pkg_short_errors_supported=no
15666
fi
15667
        if test $_pkg_short_errors_supported = yes; then
15668
	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
15669
        else
15670
	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
15671
        fi
15672
	# Put the nasty error message in config.log where it belongs
15673
	echo "$NCURSES_PKG_ERRORS" >&5
15674
15675
15676
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
15677
$as_echo_n "checking for initscr in -lncurses... " >&6; }
15678
if ${ac_cv_lib_ncurses_initscr+:} false; then :
15679
  $as_echo_n "(cached) " >&6
15680
else
15681
  ac_check_lib_save_LIBS=$LIBS
15682
LIBS="-lncurses  $LIBS"
15683
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684
/* end confdefs.h.  */
15685
15686
/* Override any GCC internal prototype to avoid an error.
15687
   Use char because int might match the return type of a GCC
15688
   builtin and then its argument prototype would still apply.  */
15689
#ifdef __cplusplus
15690
extern "C"
15691
#endif
15692
char initscr ();
15693
int
15694
main ()
15695
{
15696
return initscr ();
15697
  ;
15698
  return 0;
15699
}
15700
_ACEOF
15701
if ac_fn_c_try_link "$LINENO"; then :
15702
  ac_cv_lib_ncurses_initscr=yes
15703
else
15704
  ac_cv_lib_ncurses_initscr=no
15705
fi
15706
rm -f core conftest.err conftest.$ac_objext \
15707
    conftest$ac_exeext conftest.$ac_ext
15708
LIBS=$ac_check_lib_save_LIBS
15709
fi
15710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
15711
$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
15712
if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
15713
  have_ncurses=yes
15714
else
15715
  have_ncurses=no
15716
fi
15717
15718
    for ac_header in curses.h ncurses.h term.h
15719
do :
15720
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15722
"
15723
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15724
  cat >>confdefs.h <<_ACEOF
15725
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15726
_ACEOF
15727
15728
else
15729
  have_ncurses=no
15730
fi
15731
15732
done
15733
15734
    if test "x$have_ncurses" = xno; then
15735
      as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
15736
    fi
15737
    NCURSES_LIBS="-lncurses"
15738
15739
elif test $pkg_failed = untried; then
15740
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741
$as_echo "no" >&6; }
15742
15743
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
15744
$as_echo_n "checking for initscr in -lncurses... " >&6; }
15745
if ${ac_cv_lib_ncurses_initscr+:} false; then :
15746
  $as_echo_n "(cached) " >&6
15747
else
15748
  ac_check_lib_save_LIBS=$LIBS
15749
LIBS="-lncurses  $LIBS"
15750
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751
/* end confdefs.h.  */
15752
15753
/* Override any GCC internal prototype to avoid an error.
15754
   Use char because int might match the return type of a GCC
15755
   builtin and then its argument prototype would still apply.  */
15756
#ifdef __cplusplus
15757
extern "C"
15758
#endif
15759
char initscr ();
15760
int
15761
main ()
15762
{
15763
return initscr ();
15764
  ;
15765
  return 0;
15766
}
15767
_ACEOF
15768
if ac_fn_c_try_link "$LINENO"; then :
15769
  ac_cv_lib_ncurses_initscr=yes
15770
else
15771
  ac_cv_lib_ncurses_initscr=no
15772
fi
15773
rm -f core conftest.err conftest.$ac_objext \
15774
    conftest$ac_exeext conftest.$ac_ext
15775
LIBS=$ac_check_lib_save_LIBS
15776
fi
15777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
15778
$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
15779
if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
15780
  have_ncurses=yes
15781
else
15782
  have_ncurses=no
15783
fi
15784
15785
    for ac_header in curses.h ncurses.h term.h
15786
do :
15787
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15789
"
15790
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15791
  cat >>confdefs.h <<_ACEOF
15792
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15793
_ACEOF
15794
15795
else
15796
  have_ncurses=no
15797
fi
15798
15799
done
15800
15801
    if test "x$have_ncurses" = xno; then
15802
      as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
15803
    fi
15804
    NCURSES_LIBS="-lncurses"
15805
15806
else
15807
	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
15808
	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
15809
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15810
$as_echo "yes" >&6; }
15811
15812
fi
1.1.6 by Craig Small
Import upstream version 3.3.0
15813
   if true; then
15814
  WITH_NCURSES_TRUE=
15815
  WITH_NCURSES_FALSE='#'
15816
else
15817
  WITH_NCURSES_TRUE='#'
15818
  WITH_NCURSES_FALSE=
15819
fi
15820
1.1.8 by Craig Small
Import upstream version 3.3.2
15821
  if test "$enable_watch8bit" = yes; then
1.1.9 by Craig Small
Import upstream version 3.3.3
15822
15823
pkg_failed=no
15824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSESW" >&5
15825
$as_echo_n "checking for NCURSESW... " >&6; }
15826
15827
if test -n "$NCURSESW_CFLAGS"; then
15828
    pkg_cv_NCURSESW_CFLAGS="$NCURSESW_CFLAGS"
15829
 elif test -n "$PKG_CONFIG"; then
15830
    if test -n "$PKG_CONFIG" && \
15831
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
15832
  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
15833
  ac_status=$?
15834
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15835
  test $ac_status = 0; }; then
15836
  pkg_cv_NCURSESW_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
15837
		      test "x$?" != "x0" && pkg_failed=yes
15838
else
15839
  pkg_failed=yes
15840
fi
15841
 else
15842
    pkg_failed=untried
15843
fi
15844
if test -n "$NCURSESW_LIBS"; then
15845
    pkg_cv_NCURSESW_LIBS="$NCURSESW_LIBS"
15846
 elif test -n "$PKG_CONFIG"; then
15847
    if test -n "$PKG_CONFIG" && \
15848
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
15849
  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
15850
  ac_status=$?
15851
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15852
  test $ac_status = 0; }; then
15853
  pkg_cv_NCURSESW_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
15854
		      test "x$?" != "x0" && pkg_failed=yes
15855
else
15856
  pkg_failed=yes
15857
fi
15858
 else
15859
    pkg_failed=untried
15860
fi
15861
15862
15863
15864
if test $pkg_failed = yes; then
15865
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866
$as_echo "no" >&6; }
15867
15868
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15869
        _pkg_short_errors_supported=yes
15870
else
15871
        _pkg_short_errors_supported=no
15872
fi
15873
        if test $_pkg_short_errors_supported = yes; then
15874
	        NCURSESW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
15875
        else
15876
	        NCURSESW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
15877
        fi
15878
	# Put the nasty error message in config.log where it belongs
15879
	echo "$NCURSESW_PKG_ERRORS" >&5
15880
15881
15882
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addwstr in -lncursesw" >&5
15883
$as_echo_n "checking for addwstr in -lncursesw... " >&6; }
15884
if ${ac_cv_lib_ncursesw_addwstr+:} false; then :
15885
  $as_echo_n "(cached) " >&6
15886
else
15887
  ac_check_lib_save_LIBS=$LIBS
15888
LIBS="-lncursesw  $LIBS"
15889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890
/* end confdefs.h.  */
15891
15892
/* Override any GCC internal prototype to avoid an error.
15893
   Use char because int might match the return type of a GCC
15894
   builtin and then its argument prototype would still apply.  */
15895
#ifdef __cplusplus
15896
extern "C"
15897
#endif
15898
char addwstr ();
15899
int
15900
main ()
15901
{
15902
return addwstr ();
15903
  ;
15904
  return 0;
15905
}
15906
_ACEOF
15907
if ac_fn_c_try_link "$LINENO"; then :
15908
  ac_cv_lib_ncursesw_addwstr=yes
15909
else
15910
  ac_cv_lib_ncursesw_addwstr=no
15911
fi
15912
rm -f core conftest.err conftest.$ac_objext \
15913
    conftest$ac_exeext conftest.$ac_ext
15914
LIBS=$ac_check_lib_save_LIBS
15915
fi
15916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_addwstr" >&5
15917
$as_echo "$ac_cv_lib_ncursesw_addwstr" >&6; }
15918
if test "x$ac_cv_lib_ncursesw_addwstr" = xyes; then :
15919
  WATCH_NCURSES_LIBS=-lncursesw
15920
else
15921
  as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
15922
fi
15923
15924
15925
elif test $pkg_failed = untried; then
15926
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927
$as_echo "no" >&6; }
15928
15929
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addwstr in -lncursesw" >&5
15930
$as_echo_n "checking for addwstr in -lncursesw... " >&6; }
15931
if ${ac_cv_lib_ncursesw_addwstr+:} false; then :
15932
  $as_echo_n "(cached) " >&6
15933
else
15934
  ac_check_lib_save_LIBS=$LIBS
15935
LIBS="-lncursesw  $LIBS"
15936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937
/* end confdefs.h.  */
15938
15939
/* Override any GCC internal prototype to avoid an error.
15940
   Use char because int might match the return type of a GCC
15941
   builtin and then its argument prototype would still apply.  */
15942
#ifdef __cplusplus
15943
extern "C"
15944
#endif
15945
char addwstr ();
15946
int
15947
main ()
15948
{
15949
return addwstr ();
15950
  ;
15951
  return 0;
15952
}
15953
_ACEOF
15954
if ac_fn_c_try_link "$LINENO"; then :
15955
  ac_cv_lib_ncursesw_addwstr=yes
15956
else
15957
  ac_cv_lib_ncursesw_addwstr=no
15958
fi
15959
rm -f core conftest.err conftest.$ac_objext \
15960
    conftest$ac_exeext conftest.$ac_ext
15961
LIBS=$ac_check_lib_save_LIBS
15962
fi
15963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_addwstr" >&5
15964
$as_echo "$ac_cv_lib_ncursesw_addwstr" >&6; }
15965
if test "x$ac_cv_lib_ncursesw_addwstr" = xyes; then :
15966
  WATCH_NCURSES_LIBS=-lncursesw
15967
else
15968
  as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
15969
fi
15970
15971
15972
else
15973
	NCURSESW_CFLAGS=$pkg_cv_NCURSESW_CFLAGS
15974
	NCURSESW_LIBS=$pkg_cv_NCURSESW_LIBS
15975
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15976
$as_echo "yes" >&6; }
15977
	WATCH_NCURSES_LIBS="$NCURSESW_LIBS"
15978
fi
1.1.8 by Craig Small
Import upstream version 3.3.2
15979
  else
1.1.9 by Craig Small
Import upstream version 3.3.3
15980
    WATCH_NCURSES_LIBS="$NCURSES_LIBS"
1.1.8 by Craig Small
Import upstream version 3.3.2
15981
  fi
1.1.6 by Craig Small
Import upstream version 3.3.0
15982
fi
15983
15984
15985
15986
# Check whether --enable-kill was given.
15987
if test "${enable_kill+set}" = set; then :
15988
  enableval=$enable_kill;
15989
else
15990
  enable_kill=yes
15991
15992
fi
15993
15994
 if test "x$enable_kill" = xyes; then
15995
  BUILD_KILL_TRUE=
15996
  BUILD_KILL_FALSE='#'
15997
else
15998
  BUILD_KILL_TRUE='#'
15999
  BUILD_KILL_FALSE=
16000
fi
16001
1.1.7 by Craig Small
Import upstream version 3.3.1
16002
 if test "x$host_os" = xlinux-gnu; then
16003
  LINUX_TRUE=
16004
  LINUX_FALSE='#'
16005
else
16006
  LINUX_TRUE='#'
16007
  LINUX_FALSE=
16008
fi
16009
1.1.6 by Craig Small
Import upstream version 3.3.0
16010
1.1.9 by Craig Small
Import upstream version 3.3.3
16011
# Check whether --enable-skill was given.
16012
if test "${enable_skill+set}" = set; then :
16013
  enableval=$enable_skill;
16014
else
16015
  enable_skill=no
16016
16017
fi
16018
16019
 if test "x$enable_skill" = xyes; then
16020
  BUILD_SKILL_TRUE=
16021
  BUILD_SKILL_FALSE='#'
16022
else
16023
  BUILD_SKILL_TRUE='#'
16024
  BUILD_SKILL_FALSE=
16025
fi
16026
16027
16028
# Check whether --enable-examples was given.
16029
if test "${enable_examples+set}" = set; then :
16030
  enableval=$enable_examples;
16031
else
16032
  enable_examples=no
16033
16034
fi
16035
16036
 if test "x$enable_examples" = xyes; then
16037
  EXAMPLE_FILES_TRUE=
16038
  EXAMPLE_FILES_FALSE='#'
16039
else
16040
  EXAMPLE_FILES_TRUE='#'
16041
  EXAMPLE_FILES_FALSE=
16042
fi
16043
16044
1.1.6 by Craig Small
Import upstream version 3.3.0
16045
# Check whether --enable-oomem was given.
16046
if test "${enable_oomem+set}" = set; then :
16047
  enableval=$enable_oomem;
16048
else
16049
  enable_oomem=no
16050
16051
fi
16052
16053
if test "x$enable_oomem" = xyes; then
16054
16055
$as_echo "#define OOMEM_ENABLE 1" >>confdefs.h
16056
16057
fi
16058
16059
# Check whether --enable-w-from was given.
16060
if test "${enable_w_from+set}" = set; then :
16061
  enableval=$enable_w_from;
16062
else
16063
  enable_w_from=no
16064
16065
fi
16066
16067
if test "x$enable_w_from" = xyes; then
16068
16069
$as_echo "#define W_SHOWFROM 1" >>confdefs.h
16070
16071
fi
16072
1.1.8 by Craig Small
Import upstream version 3.3.2
16073
# Check whether --enable-whining was given.
16074
if test "${enable_whining+set}" = set; then :
16075
  enableval=$enable_whining;
16076
else
16077
  enable_whining=yes
16078
16079
fi
16080
16081
if test "x$enable_whining" = xyes; then
16082
16083
$as_echo "#define BUILD_WITH_WHINE 1" >>confdefs.h
16084
16085
fi
16086
1.1.7 by Craig Small
Import upstream version 3.3.1
16087
if test x"$DEJAGNU" = x
16088
then
16089
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
16090
fi
16091
16092
1.1.8 by Craig Small
Import upstream version 3.3.2
16093
ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile po/Makefile.in proc/Makefile proc/libprocps.pc ps/Makefile testsuite/Makefile top/Makefile"
16094
1.1.6 by Craig Small
Import upstream version 3.3.0
16095
16096
cat >confcache <<\_ACEOF
16097
# This file is a shell script that caches the results of configure
16098
# tests run on this system so they can be shared between configure
16099
# scripts and configure runs, see configure's option --config-cache.
16100
# It is not useful on other systems.  If it contains results you don't
16101
# want to keep, you may remove or edit it.
16102
#
16103
# config.status only pays attention to the cache file if you give it
16104
# the --recheck option to rerun configure.
16105
#
16106
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16107
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16108
# following values.
16109
16110
_ACEOF
16111
16112
# The following way of writing the cache mishandles newlines in values,
16113
# but we know of no workaround that is simple, portable, and efficient.
16114
# So, we kill variables containing newlines.
16115
# Ultrix sh set writes to stderr and can't be redirected directly,
16116
# and sets the high bit in the cache file unless we assign to the vars.
16117
(
16118
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16119
    eval ac_val=\$$ac_var
16120
    case $ac_val in #(
16121
    *${as_nl}*)
16122
      case $ac_var in #(
16123
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16124
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16125
      esac
16126
      case $ac_var in #(
16127
      _ | IFS | as_nl) ;; #(
16128
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16129
      *) { eval $ac_var=; unset $ac_var;} ;;
16130
      esac ;;
16131
    esac
16132
  done
16133
16134
  (set) 2>&1 |
16135
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16136
    *${as_nl}ac_space=\ *)
16137
      # `set' does not quote correctly, so add quotes: double-quote
16138
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16139
      sed -n \
16140
	"s/'/'\\\\''/g;
16141
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16142
      ;; #(
16143
    *)
16144
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16145
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16146
      ;;
16147
    esac |
16148
    sort
16149
) |
16150
  sed '
16151
     /^ac_cv_env_/b end
16152
     t clear
16153
     :clear
16154
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16155
     t end
16156
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16157
     :end' >>confcache
16158
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16159
  if test -w "$cache_file"; then
16160
    if test "x$cache_file" != "x/dev/null"; then
16161
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16162
$as_echo "$as_me: updating cache $cache_file" >&6;}
16163
      if test ! -f "$cache_file" || test -h "$cache_file"; then
16164
	cat confcache >"$cache_file"
16165
      else
16166
        case $cache_file in #(
16167
        */* | ?:*)
16168
	  mv -f confcache "$cache_file"$$ &&
16169
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16170
        *)
16171
	  mv -f confcache "$cache_file" ;;
16172
	esac
16173
      fi
16174
    fi
16175
  else
16176
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16177
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16178
  fi
16179
fi
16180
rm -f confcache
16181
16182
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16183
# Let make expand exec_prefix.
16184
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16185
16186
DEFS=-DHAVE_CONFIG_H
16187
16188
ac_libobjs=
16189
ac_ltlibobjs=
16190
U=
16191
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16192
  # 1. Remove the extension, and $U if already installed.
16193
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16194
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16195
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16196
  #    will be set to the directory where LIBOBJS objects are built.
16197
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16198
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16199
done
16200
LIBOBJS=$ac_libobjs
16201
16202
LTLIBOBJS=$ac_ltlibobjs
16203
16204
16205
 if test -n "$EXEEXT"; then
16206
  am__EXEEXT_TRUE=
16207
  am__EXEEXT_FALSE='#'
16208
else
16209
  am__EXEEXT_TRUE='#'
16210
  am__EXEEXT_FALSE=
16211
fi
16212
16213
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16214
  as_fn_error $? "conditional \"AMDEP\" was never defined.
16215
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16216
fi
16217
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16218
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16219
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16220
fi
16221
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16222
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16223
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16224
fi
16225
if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
16226
  as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
16227
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16228
fi
16229
if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
16230
  as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
16231
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16232
fi
16233
if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
16234
  as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
16235
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16236
fi
1.1.7 by Craig Small
Import upstream version 3.3.1
16237
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
16238
  as_fn_error $? "conditional \"LINUX\" was never defined.
16239
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16240
fi
1.1.9 by Craig Small
Import upstream version 3.3.3
16241
if test -z "${BUILD_SKILL_TRUE}" && test -z "${BUILD_SKILL_FALSE}"; then
16242
  as_fn_error $? "conditional \"BUILD_SKILL\" was never defined.
16243
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16244
fi
16245
if test -z "${EXAMPLE_FILES_TRUE}" && test -z "${EXAMPLE_FILES_FALSE}"; then
16246
  as_fn_error $? "conditional \"EXAMPLE_FILES\" was never defined.
16247
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16248
fi
1.1.6 by Craig Small
Import upstream version 3.3.0
16249
16250
: "${CONFIG_STATUS=./config.status}"
16251
ac_write_fail=0
16252
ac_clean_files_save=$ac_clean_files
16253
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16254
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16255
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16256
as_write_fail=0
16257
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16258
#! $SHELL
16259
# Generated by $as_me.
16260
# Run this file to recreate the current configuration.
16261
# Compiler output produced by configure, useful for debugging
16262
# configure, is in config.log if it exists.
16263
16264
debug=false
16265
ac_cs_recheck=false
16266
ac_cs_silent=false
16267
16268
SHELL=\${CONFIG_SHELL-$SHELL}
16269
export SHELL
16270
_ASEOF
16271
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16272
## -------------------- ##
16273
## M4sh Initialization. ##
16274
## -------------------- ##
16275
16276
# Be more Bourne compatible
16277
DUALCASE=1; export DUALCASE # for MKS sh
16278
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16279
  emulate sh
16280
  NULLCMD=:
16281
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16282
  # is contrary to our usage.  Disable this feature.
16283
  alias -g '${1+"$@"}'='"$@"'
16284
  setopt NO_GLOB_SUBST
16285
else
16286
  case `(set -o) 2>/dev/null` in #(
16287
  *posix*) :
16288
    set -o posix ;; #(
16289
  *) :
16290
     ;;
16291
esac
16292
fi
16293
16294
16295
as_nl='
16296
'
16297
export as_nl
16298
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16299
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16300
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16301
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16302
# Prefer a ksh shell builtin over an external printf program on Solaris,
16303
# but without wasting forks for bash or zsh.
16304
if test -z "$BASH_VERSION$ZSH_VERSION" \
16305
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16306
  as_echo='print -r --'
16307
  as_echo_n='print -rn --'
16308
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16309
  as_echo='printf %s\n'
16310
  as_echo_n='printf %s'
16311
else
16312
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16313
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16314
    as_echo_n='/usr/ucb/echo -n'
16315
  else
16316
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16317
    as_echo_n_body='eval
16318
      arg=$1;
16319
      case $arg in #(
16320
      *"$as_nl"*)
16321
	expr "X$arg" : "X\\(.*\\)$as_nl";
16322
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16323
      esac;
16324
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16325
    '
16326
    export as_echo_n_body
16327
    as_echo_n='sh -c $as_echo_n_body as_echo'
16328
  fi
16329
  export as_echo_body
16330
  as_echo='sh -c $as_echo_body as_echo'
16331
fi
16332
16333
# The user is always right.
16334
if test "${PATH_SEPARATOR+set}" != set; then
16335
  PATH_SEPARATOR=:
16336
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16337
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16338
      PATH_SEPARATOR=';'
16339
  }
16340
fi
16341
16342
16343
# IFS
16344
# We need space, tab and new line, in precisely that order.  Quoting is
16345
# there to prevent editors from complaining about space-tab.
16346
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16347
# splitting by setting IFS to empty value.)
16348
IFS=" ""	$as_nl"
16349
16350
# Find who we are.  Look in the path if we contain no directory separator.
16351
as_myself=
16352
case $0 in #((
16353
  *[\\/]* ) as_myself=$0 ;;
16354
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16355
for as_dir in $PATH
16356
do
16357
  IFS=$as_save_IFS
16358
  test -z "$as_dir" && as_dir=.
16359
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16360
  done
16361
IFS=$as_save_IFS
16362
16363
     ;;
16364
esac
16365
# We did not find ourselves, most probably we were run as `sh COMMAND'
16366
# in which case we are not to be found in the path.
16367
if test "x$as_myself" = x; then
16368
  as_myself=$0
16369
fi
16370
if test ! -f "$as_myself"; then
16371
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16372
  exit 1
16373
fi
16374
16375
# Unset variables that we do not need and which cause bugs (e.g. in
16376
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16377
# suppresses any "Segmentation fault" message there.  '((' could
16378
# trigger a bug in pdksh 5.2.14.
16379
for as_var in BASH_ENV ENV MAIL MAILPATH
16380
do eval test x\${$as_var+set} = xset \
16381
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16382
done
16383
PS1='$ '
16384
PS2='> '
16385
PS4='+ '
16386
16387
# NLS nuisances.
16388
LC_ALL=C
16389
export LC_ALL
16390
LANGUAGE=C
16391
export LANGUAGE
16392
16393
# CDPATH.
16394
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16395
16396
16397
# as_fn_error STATUS ERROR [LINENO LOG_FD]
16398
# ----------------------------------------
16399
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16400
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16401
# script with STATUS, using 1 if that was 0.
16402
as_fn_error ()
16403
{
16404
  as_status=$1; test $as_status -eq 0 && as_status=1
16405
  if test "$4"; then
16406
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16407
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16408
  fi
16409
  $as_echo "$as_me: error: $2" >&2
16410
  as_fn_exit $as_status
16411
} # as_fn_error
16412
16413
16414
# as_fn_set_status STATUS
16415
# -----------------------
16416
# Set $? to STATUS, without forking.
16417
as_fn_set_status ()
16418
{
16419
  return $1
16420
} # as_fn_set_status
16421
16422
# as_fn_exit STATUS
16423
# -----------------
16424
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16425
as_fn_exit ()
16426
{
16427
  set +e
16428
  as_fn_set_status $1
16429
  exit $1
16430
} # as_fn_exit
16431
16432
# as_fn_unset VAR
16433
# ---------------
16434
# Portably unset VAR.
16435
as_fn_unset ()
16436
{
16437
  { eval $1=; unset $1;}
16438
}
16439
as_unset=as_fn_unset
16440
# as_fn_append VAR VALUE
16441
# ----------------------
16442
# Append the text in VALUE to the end of the definition contained in VAR. Take
16443
# advantage of any shell optimizations that allow amortized linear growth over
16444
# repeated appends, instead of the typical quadratic growth present in naive
16445
# implementations.
16446
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16447
  eval 'as_fn_append ()
16448
  {
16449
    eval $1+=\$2
16450
  }'
16451
else
16452
  as_fn_append ()
16453
  {
16454
    eval $1=\$$1\$2
16455
  }
16456
fi # as_fn_append
16457
16458
# as_fn_arith ARG...
16459
# ------------------
16460
# Perform arithmetic evaluation on the ARGs, and store the result in the
16461
# global $as_val. Take advantage of shells that can avoid forks. The arguments
16462
# must be portable across $(()) and expr.
16463
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16464
  eval 'as_fn_arith ()
16465
  {
16466
    as_val=$(( $* ))
16467
  }'
16468
else
16469
  as_fn_arith ()
16470
  {
16471
    as_val=`expr "$@" || test $? -eq 1`
16472
  }
16473
fi # as_fn_arith
16474
16475
16476
if expr a : '\(a\)' >/dev/null 2>&1 &&
16477
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16478
  as_expr=expr
16479
else
16480
  as_expr=false
16481
fi
16482
16483
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16484
  as_basename=basename
16485
else
16486
  as_basename=false
16487
fi
16488
16489
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16490
  as_dirname=dirname
16491
else
16492
  as_dirname=false
16493
fi
16494
16495
as_me=`$as_basename -- "$0" ||
16496
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16497
	 X"$0" : 'X\(//\)$' \| \
16498
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16499
$as_echo X/"$0" |
16500
    sed '/^.*\/\([^/][^/]*\)\/*$/{
16501
	    s//\1/
16502
	    q
16503
	  }
16504
	  /^X\/\(\/\/\)$/{
16505
	    s//\1/
16506
	    q
16507
	  }
16508
	  /^X\/\(\/\).*/{
16509
	    s//\1/
16510
	    q
16511
	  }
16512
	  s/.*/./; q'`
16513
16514
# Avoid depending upon Character Ranges.
16515
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16516
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16517
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16518
as_cr_digits='0123456789'
16519
as_cr_alnum=$as_cr_Letters$as_cr_digits
16520
16521
ECHO_C= ECHO_N= ECHO_T=
16522
case `echo -n x` in #(((((
16523
-n*)
16524
  case `echo 'xy\c'` in
16525
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16526
  xy)  ECHO_C='\c';;
16527
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16528
       ECHO_T='	';;
16529
  esac;;
16530
*)
16531
  ECHO_N='-n';;
16532
esac
16533
16534
rm -f conf$$ conf$$.exe conf$$.file
16535
if test -d conf$$.dir; then
16536
  rm -f conf$$.dir/conf$$.file
16537
else
16538
  rm -f conf$$.dir
16539
  mkdir conf$$.dir 2>/dev/null
16540
fi
16541
if (echo >conf$$.file) 2>/dev/null; then
16542
  if ln -s conf$$.file conf$$ 2>/dev/null; then
16543
    as_ln_s='ln -s'
16544
    # ... but there are two gotchas:
16545
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16546
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16547
    # In both cases, we have to default to `cp -p'.
16548
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16549
      as_ln_s='cp -p'
16550
  elif ln conf$$.file conf$$ 2>/dev/null; then
16551
    as_ln_s=ln
16552
  else
16553
    as_ln_s='cp -p'
16554
  fi
16555
else
16556
  as_ln_s='cp -p'
16557
fi
16558
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16559
rmdir conf$$.dir 2>/dev/null
16560
16561
16562
# as_fn_mkdir_p
16563
# -------------
16564
# Create "$as_dir" as a directory, including parents if necessary.
16565
as_fn_mkdir_p ()
16566
{
16567
16568
  case $as_dir in #(
16569
  -*) as_dir=./$as_dir;;
16570
  esac
16571
  test -d "$as_dir" || eval $as_mkdir_p || {
16572
    as_dirs=
16573
    while :; do
16574
      case $as_dir in #(
16575
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16576
      *) as_qdir=$as_dir;;
16577
      esac
16578
      as_dirs="'$as_qdir' $as_dirs"
16579
      as_dir=`$as_dirname -- "$as_dir" ||
16580
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16581
	 X"$as_dir" : 'X\(//\)[^/]' \| \
16582
	 X"$as_dir" : 'X\(//\)$' \| \
16583
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16584
$as_echo X"$as_dir" |
16585
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16586
	    s//\1/
16587
	    q
16588
	  }
16589
	  /^X\(\/\/\)[^/].*/{
16590
	    s//\1/
16591
	    q
16592
	  }
16593
	  /^X\(\/\/\)$/{
16594
	    s//\1/
16595
	    q
16596
	  }
16597
	  /^X\(\/\).*/{
16598
	    s//\1/
16599
	    q
16600
	  }
16601
	  s/.*/./; q'`
16602
      test -d "$as_dir" && break
16603
    done
16604
    test -z "$as_dirs" || eval "mkdir $as_dirs"
16605
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16606
16607
16608
} # as_fn_mkdir_p
16609
if mkdir -p . 2>/dev/null; then
16610
  as_mkdir_p='mkdir -p "$as_dir"'
16611
else
16612
  test -d ./-p && rmdir ./-p
16613
  as_mkdir_p=false
16614
fi
16615
16616
if test -x / >/dev/null 2>&1; then
16617
  as_test_x='test -x'
16618
else
16619
  if ls -dL / >/dev/null 2>&1; then
16620
    as_ls_L_option=L
16621
  else
16622
    as_ls_L_option=
16623
  fi
16624
  as_test_x='
16625
    eval sh -c '\''
16626
      if test -d "$1"; then
16627
	test -d "$1/.";
16628
      else
16629
	case $1 in #(
16630
	-*)set "./$1";;
16631
	esac;
16632
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16633
	???[sx]*):;;*)false;;esac;fi
16634
    '\'' sh
16635
  '
16636
fi
16637
as_executable_p=$as_test_x
16638
16639
# Sed expression to map a string onto a valid CPP name.
16640
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16641
16642
# Sed expression to map a string onto a valid variable name.
16643
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16644
16645
16646
exec 6>&1
16647
## ----------------------------------- ##
16648
## Main body of $CONFIG_STATUS script. ##
16649
## ----------------------------------- ##
16650
_ASEOF
16651
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16652
16653
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654
# Save the log message, to keep $0 and so on meaningful, and to
16655
# report actual input values of CONFIG_FILES etc. instead of their
16656
# values after options handling.
16657
ac_log="
1.1.9 by Craig Small
Import upstream version 3.3.3
16658
This file was extended by procps-ng $as_me 3.3.3, which was
1.1.6 by Craig Small
Import upstream version 3.3.0
16659
generated by GNU Autoconf 2.68.  Invocation command line was
16660
16661
  CONFIG_FILES    = $CONFIG_FILES
16662
  CONFIG_HEADERS  = $CONFIG_HEADERS
16663
  CONFIG_LINKS    = $CONFIG_LINKS
16664
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16665
  $ $0 $@
16666
16667
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16668
"
16669
16670
_ACEOF
16671
16672
case $ac_config_files in *"
16673
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16674
esac
16675
16676
case $ac_config_headers in *"
16677
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16678
esac
16679
16680
16681
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16682
# Files that config.status was made for.
16683
config_files="$ac_config_files"
16684
config_headers="$ac_config_headers"
16685
config_commands="$ac_config_commands"
16686
16687
_ACEOF
16688
16689
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690
ac_cs_usage="\
16691
\`$as_me' instantiates files and other configuration actions
16692
from templates according to the current configuration.  Unless the files
16693
and actions are specified as TAGs, all are instantiated by default.
16694
16695
Usage: $0 [OPTION]... [TAG]...
16696
16697
  -h, --help       print this help, then exit
16698
  -V, --version    print version number and configuration settings, then exit
16699
      --config     print configuration, then exit
16700
  -q, --quiet, --silent
16701
                   do not print progress messages
16702
  -d, --debug      don't remove temporary files
16703
      --recheck    update $as_me by reconfiguring in the same conditions
16704
      --file=FILE[:TEMPLATE]
16705
                   instantiate the configuration file FILE
16706
      --header=FILE[:TEMPLATE]
16707
                   instantiate the configuration header FILE
16708
16709
Configuration files:
16710
$config_files
16711
16712
Configuration headers:
16713
$config_headers
16714
16715
Configuration commands:
16716
$config_commands
16717
16718
Report bugs to <procps@freelists.org>.
16719
procps-ng home page: <http://gitorious.org/procps>."
16720
16721
_ACEOF
16722
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16724
ac_cs_version="\\
1.1.9 by Craig Small
Import upstream version 3.3.3
16725
procps-ng config.status 3.3.3
1.1.6 by Craig Small
Import upstream version 3.3.0
16726
configured by $0, generated by GNU Autoconf 2.68,
16727
  with options \\"\$ac_cs_config\\"
16728
16729
Copyright (C) 2010 Free Software Foundation, Inc.
16730
This config.status script is free software; the Free Software Foundation
16731
gives unlimited permission to copy, distribute and modify it."
16732
16733
ac_pwd='$ac_pwd'
16734
srcdir='$srcdir'
16735
INSTALL='$INSTALL'
16736
MKDIR_P='$MKDIR_P'
16737
AWK='$AWK'
16738
test -n "\$AWK" || AWK=awk
16739
_ACEOF
16740
16741
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742
# The default lists apply if the user does not specify any file.
16743
ac_need_defaults=:
16744
while test $# != 0
16745
do
16746
  case $1 in
16747
  --*=?*)
16748
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16749
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16750
    ac_shift=:
16751
    ;;
16752
  --*=)
16753
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16754
    ac_optarg=
16755
    ac_shift=:
16756
    ;;
16757
  *)
16758
    ac_option=$1
16759
    ac_optarg=$2
16760
    ac_shift=shift
16761
    ;;
16762
  esac
16763
16764
  case $ac_option in
16765
  # Handling of the options.
16766
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16767
    ac_cs_recheck=: ;;
16768
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16769
    $as_echo "$ac_cs_version"; exit ;;
16770
  --config | --confi | --conf | --con | --co | --c )
16771
    $as_echo "$ac_cs_config"; exit ;;
16772
  --debug | --debu | --deb | --de | --d | -d )
16773
    debug=: ;;
16774
  --file | --fil | --fi | --f )
16775
    $ac_shift
16776
    case $ac_optarg in
16777
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16778
    '') as_fn_error $? "missing file argument" ;;
16779
    esac
16780
    as_fn_append CONFIG_FILES " '$ac_optarg'"
16781
    ac_need_defaults=false;;
16782
  --header | --heade | --head | --hea )
16783
    $ac_shift
16784
    case $ac_optarg in
16785
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16786
    esac
16787
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16788
    ac_need_defaults=false;;
16789
  --he | --h)
16790
    # Conflict between --help and --header
16791
    as_fn_error $? "ambiguous option: \`$1'
16792
Try \`$0 --help' for more information.";;
16793
  --help | --hel | -h )
16794
    $as_echo "$ac_cs_usage"; exit ;;
16795
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16796
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16797
    ac_cs_silent=: ;;
16798
16799
  # This is an error.
16800
  -*) as_fn_error $? "unrecognized option: \`$1'
16801
Try \`$0 --help' for more information." ;;
16802
16803
  *) as_fn_append ac_config_targets " $1"
16804
     ac_need_defaults=false ;;
16805
16806
  esac
16807
  shift
16808
done
16809
16810
ac_configure_extra_args=
16811
16812
if $ac_cs_silent; then
16813
  exec 6>/dev/null
16814
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16815
fi
16816
16817
_ACEOF
16818
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819
if \$ac_cs_recheck; then
16820
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16821
  shift
16822
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16823
  CONFIG_SHELL='$SHELL'
16824
  export CONFIG_SHELL
16825
  exec "\$@"
16826
fi
16827
16828
_ACEOF
16829
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830
exec 5>>config.log
16831
{
16832
  echo
16833
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16834
## Running $as_me. ##
16835
_ASBOX
16836
  $as_echo "$ac_log"
16837
} >&5
16838
16839
_ACEOF
16840
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841
#
16842
# INIT-COMMANDS
16843
#
16844
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16845
16846
16847
# The HP-UX ksh and POSIX shell print the target directory to stdout
16848
# if CDPATH is set.
16849
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16850
16851
sed_quote_subst='$sed_quote_subst'
16852
double_quote_subst='$double_quote_subst'
16853
delay_variable_subst='$delay_variable_subst'
16854
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16855
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16856
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16857
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16858
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16859
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16860
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16861
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16862
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16863
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16864
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16865
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16866
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16867
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16868
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16869
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16870
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16871
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16872
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16873
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16874
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16875
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16876
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16877
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16878
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16879
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16880
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16881
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16882
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16883
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16884
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16885
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16886
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16887
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16888
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16889
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16890
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16891
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16892
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16893
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16894
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16895
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16896
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16897
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16898
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16899
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16900
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16901
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16902
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16903
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16904
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16905
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16906
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16907
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16908
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16909
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16910
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"`'
16911
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16912
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16913
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16914
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16915
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16916
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16917
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16918
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16919
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16920
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16921
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16922
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16923
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16924
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16925
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16926
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16927
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16928
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16929
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16930
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16931
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16932
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16933
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16934
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16935
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16936
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16937
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16938
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16939
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16940
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16941
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16942
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16943
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16944
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16945
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16946
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16947
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16948
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16949
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16950
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16951
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16952
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16953
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16954
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16955
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16956
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16957
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16958
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16959
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16960
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16961
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16962
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16963
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16964
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16965
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16966
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16967
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16968
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16969
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16970
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16971
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16972
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16973
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16974
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16975
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16976
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16977
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16978
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16979
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16980
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16981
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16982
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16983
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16984
16985
LTCC='$LTCC'
16986
LTCFLAGS='$LTCFLAGS'
16987
compiler='$compiler_DEFAULT'
16988
16989
# A function that is used when there is no print builtin or printf.
16990
func_fallback_echo ()
16991
{
16992
  eval 'cat <<_LTECHO_EOF
16993
\$1
16994
_LTECHO_EOF'
16995
}
16996
16997
# Quote evaled strings.
16998
for var in SHELL \
16999
ECHO \
17000
PATH_SEPARATOR \
17001
SED \
17002
GREP \
17003
EGREP \
17004
FGREP \
17005
LD \
17006
NM \
17007
LN_S \
17008
lt_SP2NL \
17009
lt_NL2SP \
17010
reload_flag \
17011
OBJDUMP \
17012
deplibs_check_method \
17013
file_magic_cmd \
17014
file_magic_glob \
17015
want_nocaseglob \
17016
DLLTOOL \
17017
sharedlib_from_linklib_cmd \
17018
AR \
17019
AR_FLAGS \
17020
archiver_list_spec \
17021
STRIP \
17022
RANLIB \
17023
CC \
17024
CFLAGS \
17025
compiler \
17026
lt_cv_sys_global_symbol_pipe \
17027
lt_cv_sys_global_symbol_to_cdecl \
17028
lt_cv_sys_global_symbol_to_c_name_address \
17029
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17030
nm_file_list_spec \
17031
lt_prog_compiler_no_builtin_flag \
17032
lt_prog_compiler_pic \
17033
lt_prog_compiler_wl \
17034
lt_prog_compiler_static \
17035
lt_cv_prog_compiler_c_o \
17036
need_locks \
17037
MANIFEST_TOOL \
17038
DSYMUTIL \
17039
NMEDIT \
17040
LIPO \
17041
OTOOL \
17042
OTOOL64 \
17043
shrext_cmds \
17044
export_dynamic_flag_spec \
17045
whole_archive_flag_spec \
17046
compiler_needs_object \
17047
with_gnu_ld \
17048
allow_undefined_flag \
17049
no_undefined_flag \
17050
hardcode_libdir_flag_spec \
17051
hardcode_libdir_separator \
17052
exclude_expsyms \
17053
include_expsyms \
17054
file_list_spec \
17055
variables_saved_for_relink \
17056
libname_spec \
17057
library_names_spec \
17058
soname_spec \
17059
install_override_mode \
17060
finish_eval \
17061
old_striplib \
17062
striplib; do
17063
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17064
    *[\\\\\\\`\\"\\\$]*)
17065
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17066
      ;;
17067
    *)
17068
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17069
      ;;
17070
    esac
17071
done
17072
17073
# Double-quote double-evaled strings.
17074
for var in reload_cmds \
17075
old_postinstall_cmds \
17076
old_postuninstall_cmds \
17077
old_archive_cmds \
17078
extract_expsyms_cmds \
17079
old_archive_from_new_cmds \
17080
old_archive_from_expsyms_cmds \
17081
archive_cmds \
17082
archive_expsym_cmds \
17083
module_cmds \
17084
module_expsym_cmds \
17085
export_symbols_cmds \
17086
prelink_cmds \
17087
postlink_cmds \
17088
postinstall_cmds \
17089
postuninstall_cmds \
17090
finish_cmds \
17091
sys_lib_search_path_spec \
17092
sys_lib_dlsearch_path_spec; do
17093
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17094
    *[\\\\\\\`\\"\\\$]*)
17095
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17096
      ;;
17097
    *)
17098
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17099
      ;;
17100
    esac
17101
done
17102
17103
ac_aux_dir='$ac_aux_dir'
17104
xsi_shell='$xsi_shell'
17105
lt_shell_append='$lt_shell_append'
17106
17107
# See if we are running on zsh, and set the options which allow our
17108
# commands through without removal of \ escapes INIT.
17109
if test -n "\${ZSH_VERSION+set}" ; then
17110
   setopt NO_GLOB_SUBST
17111
fi
17112
17113
17114
    PACKAGE='$PACKAGE'
17115
    VERSION='$VERSION'
17116
    TIMESTAMP='$TIMESTAMP'
17117
    RM='$RM'
17118
    ofile='$ofile'
17119
17120
17121
1.1.8 by Craig Small
Import upstream version 3.3.2
17122
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17123
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17124
    # from automake.
17125
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17126
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17127
    LINGUAS="${LINGUAS-%UNSET%}"
17128
1.1.6 by Craig Small
Import upstream version 3.3.0
17129
17130
_ACEOF
17131
17132
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133
17134
# Handling of arguments.
17135
for ac_config_target in $ac_config_targets
17136
do
17137
  case $ac_config_target in
17138
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17139
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17140
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.1.8 by Craig Small
Import upstream version 3.3.2
17141
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1.1.6 by Craig Small
Import upstream version 3.3.0
17142
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.1.8 by Craig Small
Import upstream version 3.3.2
17143
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17144
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17145
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1.1.6 by Craig Small
Import upstream version 3.3.0
17146
    "proc/Makefile") CONFIG_FILES="$CONFIG_FILES proc/Makefile" ;;
1.1.8 by Craig Small
Import upstream version 3.3.2
17147
    "proc/libprocps.pc") CONFIG_FILES="$CONFIG_FILES proc/libprocps.pc" ;;
1.1.6 by Craig Small
Import upstream version 3.3.0
17148
    "ps/Makefile") CONFIG_FILES="$CONFIG_FILES ps/Makefile" ;;
1.1.7 by Craig Small
Import upstream version 3.3.1
17149
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
1.1.8 by Craig Small
Import upstream version 3.3.2
17150
    "top/Makefile") CONFIG_FILES="$CONFIG_FILES top/Makefile" ;;
1.1.6 by Craig Small
Import upstream version 3.3.0
17151
17152
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17153
  esac
17154
done
17155
17156
17157
# If the user did not use the arguments to specify the items to instantiate,
17158
# then the envvar interface is used.  Set only those that are not.
17159
# We use the long form for the default assignment because of an extremely
17160
# bizarre bug on SunOS 4.1.3.
17161
if $ac_need_defaults; then
17162
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17163
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17164
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17165
fi
17166
17167
# Have a temporary directory for convenience.  Make it in the build tree
17168
# simply because there is no reason against having it here, and in addition,
17169
# creating and moving files from /tmp can sometimes cause problems.
17170
# Hook for its removal unless debugging.
17171
# Note that there is a small window in which the directory will not be cleaned:
17172
# after its creation but before its name has been assigned to `$tmp'.
17173
$debug ||
17174
{
17175
  tmp= ac_tmp=
17176
  trap 'exit_status=$?
17177
  : "${ac_tmp:=$tmp}"
17178
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17179
' 0
17180
  trap 'as_fn_exit 1' 1 2 13 15
17181
}
17182
# Create a (secure) tmp directory for tmp files.
17183
17184
{
17185
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17186
  test -d "$tmp"
17187
}  ||
17188
{
17189
  tmp=./conf$$-$RANDOM
17190
  (umask 077 && mkdir "$tmp")
17191
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17192
ac_tmp=$tmp
17193
17194
# Set up the scripts for CONFIG_FILES section.
17195
# No need to generate them if there are no CONFIG_FILES.
17196
# This happens for instance with `./config.status config.h'.
17197
if test -n "$CONFIG_FILES"; then
17198
17199
17200
ac_cr=`echo X | tr X '\015'`
17201
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17202
# But we know of no other shell where ac_cr would be empty at this
17203
# point, so we can use a bashism as a fallback.
17204
if test "x$ac_cr" = x; then
17205
  eval ac_cr=\$\'\\r\'
17206
fi
17207
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17208
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17209
  ac_cs_awk_cr='\\r'
17210
else
17211
  ac_cs_awk_cr=$ac_cr
17212
fi
17213
17214
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17215
_ACEOF
17216
17217
17218
{
17219
  echo "cat >conf$$subs.awk <<_ACEOF" &&
17220
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17221
  echo "_ACEOF"
17222
} >conf$$subs.sh ||
17223
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17224
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17225
ac_delim='%!_!# '
17226
for ac_last_try in false false false false false :; do
17227
  . ./conf$$subs.sh ||
17228
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17229
17230
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17231
  if test $ac_delim_n = $ac_delim_num; then
17232
    break
17233
  elif $ac_last_try; then
17234
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17235
  else
17236
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17237
  fi
17238
done
17239
rm -f conf$$subs.sh
17240
17241
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17243
_ACEOF
17244
sed -n '
17245
h
17246
s/^/S["/; s/!.*/"]=/
17247
p
17248
g
17249
s/^[^!]*!//
17250
:repl
17251
t repl
17252
s/'"$ac_delim"'$//
17253
t delim
17254
:nl
17255
h
17256
s/\(.\{148\}\)..*/\1/
17257
t more1
17258
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17259
p
17260
n
17261
b repl
17262
:more1
17263
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17264
p
17265
g
17266
s/.\{148\}//
17267
t nl
17268
:delim
17269
h
17270
s/\(.\{148\}\)..*/\1/
17271
t more2
17272
s/["\\]/\\&/g; s/^/"/; s/$/"/
17273
p
17274
b
17275
:more2
17276
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17277
p
17278
g
17279
s/.\{148\}//
17280
t delim
17281
' <conf$$subs.awk | sed '
17282
/^[^""]/{
17283
  N
17284
  s/\n//
17285
}
17286
' >>$CONFIG_STATUS || ac_write_fail=1
17287
rm -f conf$$subs.awk
17288
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289
_ACAWK
17290
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17291
  for (key in S) S_is_set[key] = 1
17292
  FS = ""
17293
17294
}
17295
{
17296
  line = $ 0
17297
  nfields = split(line, field, "@")
17298
  substed = 0
17299
  len = length(field[1])
17300
  for (i = 2; i < nfields; i++) {
17301
    key = field[i]
17302
    keylen = length(key)
17303
    if (S_is_set[key]) {
17304
      value = S[key]
17305
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17306
      len += length(value) + length(field[++i])
17307
      substed = 1
17308
    } else
17309
      len += 1 + keylen
17310
  }
17311
17312
  print line
17313
}
17314
17315
_ACAWK
17316
_ACEOF
17317
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17318
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17319
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17320
else
17321
  cat
17322
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17323
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17324
_ACEOF
17325
17326
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17327
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17328
# trailing colons and then remove the whole line if VPATH becomes empty
17329
# (actually we leave an empty line to preserve line numbers).
17330
if test "x$srcdir" = x.; then
17331
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17332
h
17333
s///
17334
s/^/:/
17335
s/[	 ]*$/:/
17336
s/:\$(srcdir):/:/g
17337
s/:\${srcdir}:/:/g
17338
s/:@srcdir@:/:/g
17339
s/^:*//
17340
s/:*$//
17341
x
17342
s/\(=[	 ]*\).*/\1/
17343
G
17344
s/\n//
17345
s/^[^=]*=[	 ]*$//
17346
}'
17347
fi
17348
17349
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17350
fi # test -n "$CONFIG_FILES"
17351
17352
# Set up the scripts for CONFIG_HEADERS section.
17353
# No need to generate them if there are no CONFIG_HEADERS.
17354
# This happens for instance with `./config.status Makefile'.
17355
if test -n "$CONFIG_HEADERS"; then
17356
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17357
BEGIN {
17358
_ACEOF
17359
17360
# Transform confdefs.h into an awk script `defines.awk', embedded as
17361
# here-document in config.status, that substitutes the proper values into
17362
# config.h.in to produce config.h.
17363
17364
# Create a delimiter string that does not exist in confdefs.h, to ease
17365
# handling of long lines.
17366
ac_delim='%!_!# '
17367
for ac_last_try in false false :; do
17368
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17369
  if test -z "$ac_tt"; then
17370
    break
17371
  elif $ac_last_try; then
17372
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17373
  else
17374
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17375
  fi
17376
done
17377
17378
# For the awk script, D is an array of macro values keyed by name,
17379
# likewise P contains macro parameters if any.  Preserve backslash
17380
# newline sequences.
17381
17382
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17383
sed -n '
17384
s/.\{148\}/&'"$ac_delim"'/g
17385
t rset
17386
:rset
17387
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17388
t def
17389
d
17390
:def
17391
s/\\$//
17392
t bsnl
17393
s/["\\]/\\&/g
17394
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17395
D["\1"]=" \3"/p
17396
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17397
d
17398
:bsnl
17399
s/["\\]/\\&/g
17400
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17401
D["\1"]=" \3\\\\\\n"\\/p
17402
t cont
17403
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17404
t cont
17405
d
17406
:cont
17407
n
17408
s/.\{148\}/&'"$ac_delim"'/g
17409
t clear
17410
:clear
17411
s/\\$//
17412
t bsnlc
17413
s/["\\]/\\&/g; s/^/"/; s/$/"/p
17414
d
17415
:bsnlc
17416
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17417
b cont
17418
' <confdefs.h | sed '
17419
s/'"$ac_delim"'/"\\\
17420
"/g' >>$CONFIG_STATUS || ac_write_fail=1
17421
17422
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17423
  for (key in D) D_is_set[key] = 1
17424
  FS = ""
17425
}
17426
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17427
  line = \$ 0
17428
  split(line, arg, " ")
17429
  if (arg[1] == "#") {
17430
    defundef = arg[2]
17431
    mac1 = arg[3]
17432
  } else {
17433
    defundef = substr(arg[1], 2)
17434
    mac1 = arg[2]
17435
  }
17436
  split(mac1, mac2, "(") #)
17437
  macro = mac2[1]
17438
  prefix = substr(line, 1, index(line, defundef) - 1)
17439
  if (D_is_set[macro]) {
17440
    # Preserve the white space surrounding the "#".
17441
    print prefix "define", macro P[macro] D[macro]
17442
    next
17443
  } else {
17444
    # Replace #undef with comments.  This is necessary, for example,
17445
    # in the case of _POSIX_SOURCE, which is predefined and required
17446
    # on some systems where configure will not decide to define it.
17447
    if (defundef == "undef") {
17448
      print "/*", prefix defundef, macro, "*/"
17449
      next
17450
    }
17451
  }
17452
}
17453
{ print }
17454
_ACAWK
17455
_ACEOF
17456
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17457
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17458
fi # test -n "$CONFIG_HEADERS"
17459
17460
17461
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17462
shift
17463
for ac_tag
17464
do
17465
  case $ac_tag in
17466
  :[FHLC]) ac_mode=$ac_tag; continue;;
17467
  esac
17468
  case $ac_mode$ac_tag in
17469
  :[FHL]*:*);;
17470
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17471
  :[FH]-) ac_tag=-:-;;
17472
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17473
  esac
17474
  ac_save_IFS=$IFS
17475
  IFS=:
17476
  set x $ac_tag
17477
  IFS=$ac_save_IFS
17478
  shift
17479
  ac_file=$1
17480
  shift
17481
17482
  case $ac_mode in
17483
  :L) ac_source=$1;;
17484
  :[FH])
17485
    ac_file_inputs=
17486
    for ac_f
17487
    do
17488
      case $ac_f in
17489
      -) ac_f="$ac_tmp/stdin";;
17490
      *) # Look for the file first in the build tree, then in the source tree
17491
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17492
	 # because $ac_f cannot contain `:'.
17493
	 test -f "$ac_f" ||
17494
	   case $ac_f in
17495
	   [\\/$]*) false;;
17496
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17497
	   esac ||
17498
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17499
      esac
17500
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17501
      as_fn_append ac_file_inputs " '$ac_f'"
17502
    done
17503
17504
    # Let's still pretend it is `configure' which instantiates (i.e., don't
17505
    # use $as_me), people would be surprised to read:
17506
    #    /* config.h.  Generated by config.status.  */
17507
    configure_input='Generated from '`
17508
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17509
	`' by configure.'
17510
    if test x"$ac_file" != x-; then
17511
      configure_input="$ac_file.  $configure_input"
17512
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17513
$as_echo "$as_me: creating $ac_file" >&6;}
17514
    fi
17515
    # Neutralize special characters interpreted by sed in replacement strings.
17516
    case $configure_input in #(
17517
    *\&* | *\|* | *\\* )
17518
       ac_sed_conf_input=`$as_echo "$configure_input" |
17519
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17520
    *) ac_sed_conf_input=$configure_input;;
17521
    esac
17522
17523
    case $ac_tag in
17524
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17525
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17526
    esac
17527
    ;;
17528
  esac
17529
17530
  ac_dir=`$as_dirname -- "$ac_file" ||
17531
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17532
	 X"$ac_file" : 'X\(//\)[^/]' \| \
17533
	 X"$ac_file" : 'X\(//\)$' \| \
17534
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17535
$as_echo X"$ac_file" |
17536
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17537
	    s//\1/
17538
	    q
17539
	  }
17540
	  /^X\(\/\/\)[^/].*/{
17541
	    s//\1/
17542
	    q
17543
	  }
17544
	  /^X\(\/\/\)$/{
17545
	    s//\1/
17546
	    q
17547
	  }
17548
	  /^X\(\/\).*/{
17549
	    s//\1/
17550
	    q
17551
	  }
17552
	  s/.*/./; q'`
17553
  as_dir="$ac_dir"; as_fn_mkdir_p
17554
  ac_builddir=.
17555
17556
case "$ac_dir" in
17557
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17558
*)
17559
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17560
  # A ".." for each directory in $ac_dir_suffix.
17561
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17562
  case $ac_top_builddir_sub in
17563
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17564
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17565
  esac ;;
17566
esac
17567
ac_abs_top_builddir=$ac_pwd
17568
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17569
# for backward compatibility:
17570
ac_top_builddir=$ac_top_build_prefix
17571
17572
case $srcdir in
17573
  .)  # We are building in place.
17574
    ac_srcdir=.
17575
    ac_top_srcdir=$ac_top_builddir_sub
17576
    ac_abs_top_srcdir=$ac_pwd ;;
17577
  [\\/]* | ?:[\\/]* )  # Absolute name.
17578
    ac_srcdir=$srcdir$ac_dir_suffix;
17579
    ac_top_srcdir=$srcdir
17580
    ac_abs_top_srcdir=$srcdir ;;
17581
  *) # Relative name.
17582
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17583
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17584
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17585
esac
17586
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17587
17588
17589
  case $ac_mode in
17590
  :F)
17591
  #
17592
  # CONFIG_FILE
17593
  #
17594
17595
  case $INSTALL in
17596
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17597
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17598
  esac
17599
  ac_MKDIR_P=$MKDIR_P
17600
  case $MKDIR_P in
17601
  [\\/$]* | ?:[\\/]* ) ;;
17602
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17603
  esac
17604
_ACEOF
17605
17606
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17607
# If the template does not know about datarootdir, expand it.
17608
# FIXME: This hack should be removed a few years after 2.60.
17609
ac_datarootdir_hack=; ac_datarootdir_seen=
17610
ac_sed_dataroot='
17611
/datarootdir/ {
17612
  p
17613
  q
17614
}
17615
/@datadir@/p
17616
/@docdir@/p
17617
/@infodir@/p
17618
/@localedir@/p
17619
/@mandir@/p'
17620
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17621
*datarootdir*) ac_datarootdir_seen=yes;;
17622
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17623
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17624
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17625
_ACEOF
17626
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627
  ac_datarootdir_hack='
17628
  s&@datadir@&$datadir&g
17629
  s&@docdir@&$docdir&g
17630
  s&@infodir@&$infodir&g
17631
  s&@localedir@&$localedir&g
17632
  s&@mandir@&$mandir&g
17633
  s&\\\${datarootdir}&$datarootdir&g' ;;
17634
esac
17635
_ACEOF
17636
17637
# Neutralize VPATH when `$srcdir' = `.'.
17638
# Shell code in configure.ac might set extrasub.
17639
# FIXME: do we really want to maintain this feature?
17640
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641
ac_sed_extra="$ac_vpsub
17642
$extrasub
17643
_ACEOF
17644
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645
:t
17646
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17647
s|@configure_input@|$ac_sed_conf_input|;t t
17648
s&@top_builddir@&$ac_top_builddir_sub&;t t
17649
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17650
s&@srcdir@&$ac_srcdir&;t t
17651
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17652
s&@top_srcdir@&$ac_top_srcdir&;t t
17653
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17654
s&@builddir@&$ac_builddir&;t t
17655
s&@abs_builddir@&$ac_abs_builddir&;t t
17656
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17657
s&@INSTALL@&$ac_INSTALL&;t t
17658
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17659
$ac_datarootdir_hack
17660
"
17661
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17662
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17663
17664
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17665
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17666
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17667
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17668
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17669
which seems to be undefined.  Please make sure it is defined" >&5
17670
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17671
which seems to be undefined.  Please make sure it is defined" >&2;}
17672
17673
  rm -f "$ac_tmp/stdin"
17674
  case $ac_file in
17675
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17676
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17677
  esac \
17678
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17679
 ;;
17680
  :H)
17681
  #
17682
  # CONFIG_HEADER
17683
  #
17684
  if test x"$ac_file" != x-; then
17685
    {
17686
      $as_echo "/* $configure_input  */" \
17687
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17688
    } >"$ac_tmp/config.h" \
17689
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17690
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17691
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17692
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17693
    else
17694
      rm -f "$ac_file"
17695
      mv "$ac_tmp/config.h" "$ac_file" \
17696
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17697
    fi
17698
  else
17699
    $as_echo "/* $configure_input  */" \
17700
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17701
      || as_fn_error $? "could not create -" "$LINENO" 5
17702
  fi
17703
# Compute "$ac_file"'s index in $config_headers.
17704
_am_arg="$ac_file"
17705
_am_stamp_count=1
17706
for _am_header in $config_headers :; do
17707
  case $_am_header in
17708
    $_am_arg | $_am_arg:* )
17709
      break ;;
17710
    * )
17711
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17712
  esac
17713
done
17714
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17715
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17716
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17717
	 X"$_am_arg" : 'X\(//\)$' \| \
17718
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17719
$as_echo X"$_am_arg" |
17720
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17721
	    s//\1/
17722
	    q
17723
	  }
17724
	  /^X\(\/\/\)[^/].*/{
17725
	    s//\1/
17726
	    q
17727
	  }
17728
	  /^X\(\/\/\)$/{
17729
	    s//\1/
17730
	    q
17731
	  }
17732
	  /^X\(\/\).*/{
17733
	    s//\1/
17734
	    q
17735
	  }
17736
	  s/.*/./; q'`/stamp-h$_am_stamp_count
17737
 ;;
17738
17739
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17740
$as_echo "$as_me: executing $ac_file commands" >&6;}
17741
 ;;
17742
  esac
17743
17744
17745
  case $ac_file$ac_mode in
17746
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17747
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17748
  # are listed without --file.  Let's play safe and only enable the eval
17749
  # if we detect the quoting.
17750
  case $CONFIG_FILES in
17751
  *\'*) eval set x "$CONFIG_FILES" ;;
17752
  *)   set x $CONFIG_FILES ;;
17753
  esac
17754
  shift
17755
  for mf
17756
  do
17757
    # Strip MF so we end up with the name of the file.
17758
    mf=`echo "$mf" | sed -e 's/:.*$//'`
17759
    # Check whether this is an Automake generated Makefile or not.
17760
    # We used to match only the files named `Makefile.in', but
17761
    # some people rename them; so instead we look at the file content.
17762
    # Grep'ing the first line is not enough: some people post-process
17763
    # each Makefile.in and add a new line on top of each file to say so.
17764
    # Grep'ing the whole file is not good either: AIX grep has a line
17765
    # limit of 2048, but all sed's we know have understand at least 4000.
17766
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17767
      dirpart=`$as_dirname -- "$mf" ||
17768
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17769
	 X"$mf" : 'X\(//\)[^/]' \| \
17770
	 X"$mf" : 'X\(//\)$' \| \
17771
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17772
$as_echo X"$mf" |
17773
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17774
	    s//\1/
17775
	    q
17776
	  }
17777
	  /^X\(\/\/\)[^/].*/{
17778
	    s//\1/
17779
	    q
17780
	  }
17781
	  /^X\(\/\/\)$/{
17782
	    s//\1/
17783
	    q
17784
	  }
17785
	  /^X\(\/\).*/{
17786
	    s//\1/
17787
	    q
17788
	  }
17789
	  s/.*/./; q'`
17790
    else
17791
      continue
17792
    fi
17793
    # Extract the definition of DEPDIR, am__include, and am__quote
17794
    # from the Makefile without running `make'.
17795
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17796
    test -z "$DEPDIR" && continue
17797
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17798
    test -z "am__include" && continue
17799
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17800
    # When using ansi2knr, U may be empty or an underscore; expand it
17801
    U=`sed -n 's/^U = //p' < "$mf"`
17802
    # Find all dependency output files, they are included files with
17803
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17804
    # simplest approach to changing $(DEPDIR) to its actual value in the
17805
    # expansion.
17806
    for file in `sed -n "
17807
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17808
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17809
      # Make sure the directory exists.
17810
      test -f "$dirpart/$file" && continue
17811
      fdir=`$as_dirname -- "$file" ||
17812
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17813
	 X"$file" : 'X\(//\)[^/]' \| \
17814
	 X"$file" : 'X\(//\)$' \| \
17815
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17816
$as_echo X"$file" |
17817
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17818
	    s//\1/
17819
	    q
17820
	  }
17821
	  /^X\(\/\/\)[^/].*/{
17822
	    s//\1/
17823
	    q
17824
	  }
17825
	  /^X\(\/\/\)$/{
17826
	    s//\1/
17827
	    q
17828
	  }
17829
	  /^X\(\/\).*/{
17830
	    s//\1/
17831
	    q
17832
	  }
17833
	  s/.*/./; q'`
17834
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17835
      # echo "creating $dirpart/$file"
17836
      echo '# dummy' > "$dirpart/$file"
17837
    done
17838
  done
17839
}
17840
 ;;
17841
    "libtool":C)
17842
17843
    # See if we are running on zsh, and set the options which allow our
17844
    # commands through without removal of \ escapes.
17845
    if test -n "${ZSH_VERSION+set}" ; then
17846
      setopt NO_GLOB_SUBST
17847
    fi
17848
17849
    cfgfile="${ofile}T"
17850
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17851
    $RM "$cfgfile"
17852
17853
    cat <<_LT_EOF >> "$cfgfile"
17854
#! $SHELL
17855
17856
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17857
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17858
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17859
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17860
#
17861
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17862
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17863
#                 Foundation, Inc.
17864
#   Written by Gordon Matzigkeit, 1996
17865
#
17866
#   This file is part of GNU Libtool.
17867
#
17868
# GNU Libtool is free software; you can redistribute it and/or
17869
# modify it under the terms of the GNU General Public License as
17870
# published by the Free Software Foundation; either version 2 of
17871
# the License, or (at your option) any later version.
17872
#
17873
# As a special exception to the GNU General Public License,
17874
# if you distribute this file as part of a program or library that
17875
# is built using GNU Libtool, you may include this file under the
17876
# same distribution terms that you use for the rest of that program.
17877
#
17878
# GNU Libtool is distributed in the hope that it will be useful,
17879
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17880
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17881
# GNU General Public License for more details.
17882
#
17883
# You should have received a copy of the GNU General Public License
17884
# along with GNU Libtool; see the file COPYING.  If not, a copy
17885
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17886
# obtained by writing to the Free Software Foundation, Inc.,
17887
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17888
17889
17890
# The names of the tagged configurations supported by this script.
17891
available_tags=""
17892
17893
# ### BEGIN LIBTOOL CONFIG
17894
17895
# Which release of libtool.m4 was used?
17896
macro_version=$macro_version
17897
macro_revision=$macro_revision
17898
17899
# Whether or not to build shared libraries.
17900
build_libtool_libs=$enable_shared
17901
17902
# Whether or not to build static libraries.
17903
build_old_libs=$enable_static
17904
17905
# What type of objects to build.
17906
pic_mode=$pic_mode
17907
17908
# Whether or not to optimize for fast installation.
17909
fast_install=$enable_fast_install
17910
17911
# Shell to use when invoking shell scripts.
17912
SHELL=$lt_SHELL
17913
17914
# An echo program that protects backslashes.
17915
ECHO=$lt_ECHO
17916
17917
# The PATH separator for the build system.
17918
PATH_SEPARATOR=$lt_PATH_SEPARATOR
17919
17920
# The host system.
17921
host_alias=$host_alias
17922
host=$host
17923
host_os=$host_os
17924
17925
# The build system.
17926
build_alias=$build_alias
17927
build=$build
17928
build_os=$build_os
17929
17930
# A sed program that does not truncate output.
17931
SED=$lt_SED
17932
17933
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17934
Xsed="\$SED -e 1s/^X//"
17935
17936
# A grep program that handles long lines.
17937
GREP=$lt_GREP
17938
17939
# An ERE matcher.
17940
EGREP=$lt_EGREP
17941
17942
# A literal string matcher.
17943
FGREP=$lt_FGREP
17944
17945
# A BSD- or MS-compatible name lister.
17946
NM=$lt_NM
17947
17948
# Whether we need soft or hard links.
17949
LN_S=$lt_LN_S
17950
17951
# What is the maximum length of a command?
17952
max_cmd_len=$max_cmd_len
17953
17954
# Object file suffix (normally "o").
17955
objext=$ac_objext
17956
17957
# Executable file suffix (normally "").
17958
exeext=$exeext
17959
17960
# whether the shell understands "unset".
17961
lt_unset=$lt_unset
17962
17963
# turn spaces into newlines.
17964
SP2NL=$lt_lt_SP2NL
17965
17966
# turn newlines into spaces.
17967
NL2SP=$lt_lt_NL2SP
17968
17969
# convert \$build file names to \$host format.
17970
to_host_file_cmd=$lt_cv_to_host_file_cmd
17971
17972
# convert \$build files to toolchain format.
17973
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17974
17975
# An object symbol dumper.
17976
OBJDUMP=$lt_OBJDUMP
17977
17978
# Method to check whether dependent libraries are shared objects.
17979
deplibs_check_method=$lt_deplibs_check_method
17980
17981
# Command to use when deplibs_check_method = "file_magic".
17982
file_magic_cmd=$lt_file_magic_cmd
17983
17984
# How to find potential files when deplibs_check_method = "file_magic".
17985
file_magic_glob=$lt_file_magic_glob
17986
17987
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17988
want_nocaseglob=$lt_want_nocaseglob
17989
17990
# DLL creation program.
17991
DLLTOOL=$lt_DLLTOOL
17992
17993
# Command to associate shared and link libraries.
17994
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17995
17996
# The archiver.
17997
AR=$lt_AR
17998
17999
# Flags to create an archive.
18000
AR_FLAGS=$lt_AR_FLAGS
18001
18002
# How to feed a file listing to the archiver.
18003
archiver_list_spec=$lt_archiver_list_spec
18004
18005
# A symbol stripping program.
18006
STRIP=$lt_STRIP
18007
18008
# Commands used to install an old-style archive.
18009
RANLIB=$lt_RANLIB
18010
old_postinstall_cmds=$lt_old_postinstall_cmds
18011
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18012
18013
# Whether to use a lock for old archive extraction.
18014
lock_old_archive_extraction=$lock_old_archive_extraction
18015
18016
# A C compiler.
18017
LTCC=$lt_CC
18018
18019
# LTCC compiler flags.
18020
LTCFLAGS=$lt_CFLAGS
18021
18022
# Take the output of nm and produce a listing of raw symbols and C names.
18023
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18024
18025
# Transform the output of nm in a proper C declaration.
18026
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18027
18028
# Transform the output of nm in a C name address pair.
18029
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18030
18031
# Transform the output of nm in a C name address pair when lib prefix is needed.
18032
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18033
18034
# Specify filename containing input files for \$NM.
18035
nm_file_list_spec=$lt_nm_file_list_spec
18036
18037
# The root where to search for dependent libraries,and in which our libraries should be installed.
18038
lt_sysroot=$lt_sysroot
18039
18040
# The name of the directory that contains temporary libtool files.
18041
objdir=$objdir
18042
18043
# Used to examine libraries when file_magic_cmd begins with "file".
18044
MAGIC_CMD=$MAGIC_CMD
18045
18046
# Must we lock files when doing compilation?
18047
need_locks=$lt_need_locks
18048
18049
# Manifest tool.
18050
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18051
18052
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18053
DSYMUTIL=$lt_DSYMUTIL
18054
18055
# Tool to change global to local symbols on Mac OS X.
18056
NMEDIT=$lt_NMEDIT
18057
18058
# Tool to manipulate fat objects and archives on Mac OS X.
18059
LIPO=$lt_LIPO
18060
18061
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18062
OTOOL=$lt_OTOOL
18063
18064
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18065
OTOOL64=$lt_OTOOL64
18066
18067
# Old archive suffix (normally "a").
18068
libext=$libext
18069
18070
# Shared library suffix (normally ".so").
18071
shrext_cmds=$lt_shrext_cmds
18072
18073
# The commands to extract the exported symbol list from a shared archive.
18074
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18075
18076
# Variables whose values should be saved in libtool wrapper scripts and
18077
# restored at link time.
18078
variables_saved_for_relink=$lt_variables_saved_for_relink
18079
18080
# Do we need the "lib" prefix for modules?
18081
need_lib_prefix=$need_lib_prefix
18082
18083
# Do we need a version for libraries?
18084
need_version=$need_version
18085
18086
# Library versioning type.
18087
version_type=$version_type
18088
18089
# Shared library runtime path variable.
18090
runpath_var=$runpath_var
18091
18092
# Shared library path variable.
18093
shlibpath_var=$shlibpath_var
18094
18095
# Is shlibpath searched before the hard-coded library search path?
18096
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18097
18098
# Format of library name prefix.
18099
libname_spec=$lt_libname_spec
18100
18101
# List of archive names.  First name is the real one, the rest are links.
18102
# The last name is the one that the linker finds with -lNAME
18103
library_names_spec=$lt_library_names_spec
18104
18105
# The coded name of the library, if different from the real name.
18106
soname_spec=$lt_soname_spec
18107
18108
# Permission mode override for installation of shared libraries.
18109
install_override_mode=$lt_install_override_mode
18110
18111
# Command to use after installation of a shared archive.
18112
postinstall_cmds=$lt_postinstall_cmds
18113
18114
# Command to use after uninstallation of a shared archive.
18115
postuninstall_cmds=$lt_postuninstall_cmds
18116
18117
# Commands used to finish a libtool library installation in a directory.
18118
finish_cmds=$lt_finish_cmds
18119
18120
# As "finish_cmds", except a single script fragment to be evaled but
18121
# not shown.
18122
finish_eval=$lt_finish_eval
18123
18124
# Whether we should hardcode library paths into libraries.
18125
hardcode_into_libs=$hardcode_into_libs
18126
18127
# Compile-time system search path for libraries.
18128
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
18130
# Run-time system search path for libraries.
18131
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
18133
# Whether dlopen is supported.
18134
dlopen_support=$enable_dlopen
18135
18136
# Whether dlopen of programs is supported.
18137
dlopen_self=$enable_dlopen_self
18138
18139
# Whether dlopen of statically linked programs is supported.
18140
dlopen_self_static=$enable_dlopen_self_static
18141
18142
# Commands to strip libraries.
18143
old_striplib=$lt_old_striplib
18144
striplib=$lt_striplib
18145
18146
18147
# The linker used to build libraries.
18148
LD=$lt_LD
18149
18150
# How to create reloadable object files.
18151
reload_flag=$lt_reload_flag
18152
reload_cmds=$lt_reload_cmds
18153
18154
# Commands used to build an old-style archive.
18155
old_archive_cmds=$lt_old_archive_cmds
18156
18157
# A language specific compiler.
18158
CC=$lt_compiler
18159
18160
# Is the compiler the GNU compiler?
18161
with_gcc=$GCC
18162
18163
# Compiler flag to turn off builtin functions.
18164
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18165
18166
# Additional compiler flags for building library objects.
18167
pic_flag=$lt_lt_prog_compiler_pic
18168
18169
# How to pass a linker flag through the compiler.
18170
wl=$lt_lt_prog_compiler_wl
18171
18172
# Compiler flag to prevent dynamic linking.
18173
link_static_flag=$lt_lt_prog_compiler_static
18174
18175
# Does compiler simultaneously support -c and -o options?
18176
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18177
18178
# Whether or not to add -lc for building shared libraries.
18179
build_libtool_need_lc=$archive_cmds_need_lc
18180
18181
# Whether or not to disallow shared libs when runtime libs are static.
18182
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18183
18184
# Compiler flag to allow reflexive dlopens.
18185
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18186
18187
# Compiler flag to generate shared objects directly from archives.
18188
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18189
18190
# Whether the compiler copes with passing no objects directly.
18191
compiler_needs_object=$lt_compiler_needs_object
18192
18193
# Create an old-style archive from a shared archive.
18194
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18195
18196
# Create a temporary old-style archive to link instead of a shared archive.
18197
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18198
18199
# Commands used to build a shared archive.
18200
archive_cmds=$lt_archive_cmds
18201
archive_expsym_cmds=$lt_archive_expsym_cmds
18202
18203
# Commands used to build a loadable module if different from building
18204
# a shared archive.
18205
module_cmds=$lt_module_cmds
18206
module_expsym_cmds=$lt_module_expsym_cmds
18207
18208
# Whether we are building with GNU ld or not.
18209
with_gnu_ld=$lt_with_gnu_ld
18210
18211
# Flag that allows shared libraries with undefined symbols to be built.
18212
allow_undefined_flag=$lt_allow_undefined_flag
18213
18214
# Flag that enforces no undefined symbols.
18215
no_undefined_flag=$lt_no_undefined_flag
18216
18217
# Flag to hardcode \$libdir into a binary during linking.
18218
# This must work even if \$libdir does not exist
18219
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18220
18221
# Whether we need a single "-rpath" flag with a separated argument.
18222
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18223
18224
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18225
# DIR into the resulting binary.
18226
hardcode_direct=$hardcode_direct
18227
18228
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18229
# DIR into the resulting binary and the resulting library dependency is
18230
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18231
# library is relocated.
18232
hardcode_direct_absolute=$hardcode_direct_absolute
18233
18234
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18235
# into the resulting binary.
18236
hardcode_minus_L=$hardcode_minus_L
18237
18238
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18239
# into the resulting binary.
18240
hardcode_shlibpath_var=$hardcode_shlibpath_var
18241
18242
# Set to "yes" if building a shared library automatically hardcodes DIR
18243
# into the library and all subsequent libraries and executables linked
18244
# against it.
18245
hardcode_automatic=$hardcode_automatic
18246
18247
# Set to yes if linker adds runtime paths of dependent libraries
18248
# to runtime path list.
18249
inherit_rpath=$inherit_rpath
18250
18251
# Whether libtool must link a program against all its dependency libraries.
18252
link_all_deplibs=$link_all_deplibs
18253
18254
# Set to "yes" if exported symbols are required.
18255
always_export_symbols=$always_export_symbols
18256
18257
# The commands to list exported symbols.
18258
export_symbols_cmds=$lt_export_symbols_cmds
18259
18260
# Symbols that should not be listed in the preloaded symbols.
18261
exclude_expsyms=$lt_exclude_expsyms
18262
18263
# Symbols that must always be exported.
18264
include_expsyms=$lt_include_expsyms
18265
18266
# Commands necessary for linking programs (against libraries) with templates.
18267
prelink_cmds=$lt_prelink_cmds
18268
18269
# Commands necessary for finishing linking programs.
18270
postlink_cmds=$lt_postlink_cmds
18271
18272
# Specify filename containing input files.
18273
file_list_spec=$lt_file_list_spec
18274
18275
# How to hardcode a shared library path into an executable.
18276
hardcode_action=$hardcode_action
18277
18278
# ### END LIBTOOL CONFIG
18279
18280
_LT_EOF
18281
18282
  case $host_os in
18283
  aix3*)
18284
    cat <<\_LT_EOF >> "$cfgfile"
18285
# AIX sometimes has problems with the GCC collect2 program.  For some
18286
# reason, if we set the COLLECT_NAMES environment variable, the problems
18287
# vanish in a puff of smoke.
18288
if test "X${COLLECT_NAMES+set}" != Xset; then
18289
  COLLECT_NAMES=
18290
  export COLLECT_NAMES
18291
fi
18292
_LT_EOF
18293
    ;;
18294
  esac
18295
18296
18297
ltmain="$ac_aux_dir/ltmain.sh"
18298
18299
18300
  # We use sed instead of cat because bash on DJGPP gets confused if
18301
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18302
  # text mode, it properly converts lines to CR/LF.  This bash problem
18303
  # is reportedly fixed, but why not run on old versions too?
18304
  sed '$q' "$ltmain" >> "$cfgfile" \
18305
     || (rm -f "$cfgfile"; exit 1)
18306
18307
  if test x"$xsi_shell" = xyes; then
18308
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18309
func_dirname ()\
18310
{\
18311
\    case ${1} in\
18312
\      */*) func_dirname_result="${1%/*}${2}" ;;\
18313
\      *  ) func_dirname_result="${3}" ;;\
18314
\    esac\
18315
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18316
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18317
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18318
test 0 -eq $? || _lt_function_replace_fail=:
18319
18320
18321
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18322
func_basename ()\
18323
{\
18324
\    func_basename_result="${1##*/}"\
18325
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18326
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18327
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18328
test 0 -eq $? || _lt_function_replace_fail=:
18329
18330
18331
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18332
func_dirname_and_basename ()\
18333
{\
18334
\    case ${1} in\
18335
\      */*) func_dirname_result="${1%/*}${2}" ;;\
18336
\      *  ) func_dirname_result="${3}" ;;\
18337
\    esac\
18338
\    func_basename_result="${1##*/}"\
18339
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18340
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18341
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18342
test 0 -eq $? || _lt_function_replace_fail=:
18343
18344
18345
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18346
func_stripname ()\
18347
{\
18348
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18349
\    # positional parameters, so assign one to ordinary parameter first.\
18350
\    func_stripname_result=${3}\
18351
\    func_stripname_result=${func_stripname_result#"${1}"}\
18352
\    func_stripname_result=${func_stripname_result%"${2}"}\
18353
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18354
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18355
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18356
test 0 -eq $? || _lt_function_replace_fail=:
18357
18358
18359
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18360
func_split_long_opt ()\
18361
{\
18362
\    func_split_long_opt_name=${1%%=*}\
18363
\    func_split_long_opt_arg=${1#*=}\
18364
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18365
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18366
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18367
test 0 -eq $? || _lt_function_replace_fail=:
18368
18369
18370
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18371
func_split_short_opt ()\
18372
{\
18373
\    func_split_short_opt_arg=${1#??}\
18374
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18375
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18376
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18377
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18378
test 0 -eq $? || _lt_function_replace_fail=:
18379
18380
18381
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18382
func_lo2o ()\
18383
{\
18384
\    case ${1} in\
18385
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18386
\      *)    func_lo2o_result=${1} ;;\
18387
\    esac\
18388
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18389
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18390
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18391
test 0 -eq $? || _lt_function_replace_fail=:
18392
18393
18394
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18395
func_xform ()\
18396
{\
18397
    func_xform_result=${1%.*}.lo\
18398
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18399
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18400
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18401
test 0 -eq $? || _lt_function_replace_fail=:
18402
18403
18404
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18405
func_arith ()\
18406
{\
18407
    func_arith_result=$(( $* ))\
18408
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18409
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18410
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18411
test 0 -eq $? || _lt_function_replace_fail=:
18412
18413
18414
  sed -e '/^func_len ()$/,/^} # func_len /c\
18415
func_len ()\
18416
{\
18417
    func_len_result=${#1}\
18418
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18419
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18420
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18421
test 0 -eq $? || _lt_function_replace_fail=:
18422
18423
fi
18424
18425
if test x"$lt_shell_append" = xyes; then
18426
  sed -e '/^func_append ()$/,/^} # func_append /c\
18427
func_append ()\
18428
{\
18429
    eval "${1}+=\\${2}"\
18430
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18431
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18432
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18433
test 0 -eq $? || _lt_function_replace_fail=:
18434
18435
18436
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18437
func_append_quoted ()\
18438
{\
18439
\    func_quote_for_eval "${2}"\
18440
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18441
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18442
  && mv -f "$cfgfile.tmp" "$cfgfile" \
18443
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18444
test 0 -eq $? || _lt_function_replace_fail=:
18445
18446
18447
  # Save a `func_append' function call where possible by direct use of '+='
18448
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18449
    && mv -f "$cfgfile.tmp" "$cfgfile" \
18450
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18451
  test 0 -eq $? || _lt_function_replace_fail=:
18452
else
18453
  # Save a `func_append' function call even when '+=' is not available
18454
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18455
    && mv -f "$cfgfile.tmp" "$cfgfile" \
18456
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18457
  test 0 -eq $? || _lt_function_replace_fail=:
18458
fi
18459
18460
if test x"$_lt_function_replace_fail" = x":"; then
18461
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18462
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18463
fi
18464
18465
18466
   mv -f "$cfgfile" "$ofile" ||
18467
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18468
  chmod +x "$ofile"
18469
18470
 ;;
1.1.8 by Craig Small
Import upstream version 3.3.2
18471
    "default-1":C)
18472
    for ac_file in $CONFIG_FILES; do
18473
      # Support "outfile[:infile[:infile...]]"
18474
      case "$ac_file" in
18475
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18476
      esac
18477
      # PO directories have a Makefile.in generated from Makefile.in.in.
18478
      case "$ac_file" in */Makefile.in)
18479
        # Adjust a relative srcdir.
18480
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18481
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18482
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18483
        # In autoconf-2.13 it is called $ac_given_srcdir.
18484
        # In autoconf-2.50 it is called $srcdir.
18485
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18486
        case "$ac_given_srcdir" in
18487
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18488
          /*) top_srcdir="$ac_given_srcdir" ;;
18489
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18490
        esac
18491
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18492
          rm -f "$ac_dir/POTFILES"
18493
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18494
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18495
          POMAKEFILEDEPS="POTFILES.in"
18496
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18497
          # on $ac_dir but don't depend on user-specified configuration
18498
          # parameters.
18499
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18500
            # The LINGUAS file contains the set of available languages.
18501
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
18502
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18503
            fi
18504
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18505
            # Hide the ALL_LINGUAS assigment from automake.
18506
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18507
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18508
          else
18509
            # The set of available languages was given in configure.in.
18510
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18511
          fi
18512
          # Compute POFILES
18513
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18514
          # Compute UPDATEPOFILES
18515
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18516
          # Compute DUMMYPOFILES
18517
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18518
          # Compute GMOFILES
18519
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18520
          case "$ac_given_srcdir" in
18521
            .) srcdirpre= ;;
18522
            *) srcdirpre='$(srcdir)/' ;;
18523
          esac
18524
          POFILES=
18525
          UPDATEPOFILES=
18526
          DUMMYPOFILES=
18527
          GMOFILES=
18528
          for lang in $ALL_LINGUAS; do
18529
            POFILES="$POFILES $srcdirpre$lang.po"
18530
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18531
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18532
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18533
          done
18534
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
18535
          # environment variable.
18536
          INST_LINGUAS=
18537
          if test -n "$ALL_LINGUAS"; then
18538
            for presentlang in $ALL_LINGUAS; do
18539
              useit=no
18540
              if test "%UNSET%" != "$LINGUAS"; then
18541
                desiredlanguages="$LINGUAS"
18542
              else
18543
                desiredlanguages="$ALL_LINGUAS"
18544
              fi
18545
              for desiredlang in $desiredlanguages; do
18546
                # Use the presentlang catalog if desiredlang is
18547
                #   a. equal to presentlang, or
18548
                #   b. a variant of presentlang (because in this case,
18549
                #      presentlang can be used as a fallback for messages
18550
                #      which are not translated in the desiredlang catalog).
18551
                case "$desiredlang" in
18552
                  "$presentlang"*) useit=yes;;
18553
                esac
18554
              done
18555
              if test $useit = yes; then
18556
                INST_LINGUAS="$INST_LINGUAS $presentlang"
18557
              fi
18558
            done
18559
          fi
18560
          CATALOGS=
18561
          if test -n "$INST_LINGUAS"; then
18562
            for lang in $INST_LINGUAS; do
18563
              CATALOGS="$CATALOGS $lang.gmo"
18564
            done
18565
          fi
18566
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18567
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18568
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18569
            if test -f "$f"; then
18570
              case "$f" in
18571
                *.orig | *.bak | *~) ;;
18572
                *) cat "$f" >> "$ac_dir/Makefile" ;;
18573
              esac
18574
            fi
18575
          done
18576
        fi
18577
        ;;
18578
      esac
18579
    done ;;
1.1.6 by Craig Small
Import upstream version 3.3.0
18580
18581
  esac
18582
done # for ac_tag
18583
18584
18585
as_fn_exit 0
18586
_ACEOF
18587
ac_clean_files=$ac_clean_files_save
18588
18589
test $ac_write_fail = 0 ||
18590
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18591
18592
18593
# configure is writing to config.log, and then calls config.status.
18594
# config.status does its own redirection, appending to config.log.
18595
# Unfortunately, on DOS this fails, as config.log is still kept open
18596
# by configure, so config.status won't be able to write to it; its
18597
# output is simply discarded.  So we exec the FD to /dev/null,
18598
# effectively closing config.log, so it can be properly (re)opened and
18599
# appended to by config.status.  When coming back to configure, we
18600
# need to make the FD available again.
18601
if test "$no_create" != yes; then
18602
  ac_cs_success=:
18603
  ac_config_status_args=
18604
  test "$silent" = yes &&
18605
    ac_config_status_args="$ac_config_status_args --quiet"
18606
  exec 5>/dev/null
18607
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18608
  exec 5>>config.log
18609
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18610
  # would make configure fail if this is the last instruction.
18611
  $ac_cs_success || as_fn_exit 1
18612
fi
18613
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18614
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18615
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18616
fi
18617