~ubuntu-branches/ubuntu/trusty/libdebian-installer/trusty

1 by Joey Hess
* Joey Hess
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
3
# Generated by GNU Autoconf 2.68 for libdebian-installer 0.79ubuntu2.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
4
#
1 by Joey Hess
* Joey Hess
5
#
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
27 by Colin Watson
Reupload with the right autotools bits.
8
# Foundation, Inc.
9
#
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10
#
1 by Joey Hess
* Joey Hess
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
1 by Joey Hess
* Joey Hess
16
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Joey Hess
* Joey Hess
20
  emulate sh
21
  NULLCMD=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Joey Hess
* Joey Hess
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
25
  setopt NO_GLOB_SUBST
26
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
32
esac
1 by Joey Hess
* Joey Hess
33
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
34
35
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
60
      case $arg in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
81
fi
82
1 by Joey Hess
* Joey Hess
83
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
92
as_myself=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
93
case $0 in #((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
102
IFS=$as_save_IFS
103
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
113
  exit 1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
114
fi
115
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
123
done
1 by Joey Hess
* Joey Hess
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
128
# NLS nuisances.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
1 by Joey Hess
* Joey Hess
133
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
134
# CDPATH.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
136
137
if test "x$CONFIG_SHELL" = x; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
138
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139
  emulate sh
140
  NULLCMD=:
141
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142
  # is contrary to our usage.  Disable this feature.
143
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144
  setopt NO_GLOB_SUBST
145
else
146
  case \`(set -o) 2>/dev/null\` in #(
147
  *posix*) :
148
    set -o posix ;; #(
149
  *) :
150
     ;;
151
esac
152
fi
153
"
154
  as_required="as_fn_return () { (exit \$1); }
155
as_fn_success () { as_fn_return 0; }
156
as_fn_failure () { as_fn_return 1; }
157
as_fn_ret_success () { return 0; }
158
as_fn_ret_failure () { return 1; }
159
160
exitcode=0
161
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167
else
168
  exitcode=1; echo positional parameters were not saved.
169
fi
170
test x\$exitcode = x0 || exit 1"
171
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
175
176
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180
    PATH=/empty FPATH=/empty; export PATH FPATH
181
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
183
test \$(( 1 + 1 )) = 2 || exit 1"
184
  if (eval "$as_required") 2>/dev/null; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
185
  as_have_required=yes
186
else
187
  as_have_required=no
188
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
189
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191
else
192
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193
as_found=false
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
194
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1 by Joey Hess
* Joey Hess
195
do
196
  IFS=$as_save_IFS
197
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
198
  as_found=:
199
  case $as_dir in #(
1 by Joey Hess
* Joey Hess
200
	 /*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
201
	   for as_base in sh bash ksh sh5; do
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
202
	     # Try only shells that exist, to save several forks.
203
	     as_shell=$as_dir/$as_base
204
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$as_shell as_have_required=yes
207
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
  break 2
209
fi
210
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
211
	   done;;
212
       esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
213
  as_found=false
1 by Joey Hess
* Joey Hess
214
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
215
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217
  CONFIG_SHELL=$SHELL as_have_required=yes
218
fi; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
219
IFS=$as_save_IFS
220
221
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
222
      if test "x$CONFIG_SHELL" != x; then :
223
  # We cannot yet assume a decent shell, so we have to provide a
224
	# neutralization value for shells without unset; and this also
225
	# works around shells that cannot unset nonexistent variables.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
226
	# Preserve -v and -x to the replacement shell.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
227
	BASH_ENV=/dev/null
228
	ENV=/dev/null
229
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
230
	export CONFIG_SHELL
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
231
	case $- in # ((((
232
	  *v*x* | *x*v* ) as_opts=-vx ;;
233
	  *v* ) as_opts=-v ;;
234
	  *x* ) as_opts=-x ;;
235
	  * ) as_opts= ;;
236
	esac
237
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
238
fi
239
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
240
    if test x$as_have_required = xno; then :
241
  $as_echo "$0: This script requires a shell more modern than all"
242
  $as_echo "$0: the shells that I found on your system."
243
  if test x${ZSH_VERSION+set} = xset ; then
244
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246
  else
247
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248
$0: including any error possibly output before this
249
$0: message. Then install a modern shell, or manually run
250
$0: the script under such a shell if you do have one."
251
  fi
252
  exit 1
253
fi
254
fi
255
fi
256
SHELL=${CONFIG_SHELL-/bin/sh}
257
export SHELL
258
# Unset more variables known to interfere with behavior of common tools.
259
CLICOLOR_FORCE= GREP_OPTIONS=
260
unset CLICOLOR_FORCE GREP_OPTIONS
261
262
## --------------------- ##
263
## M4sh Shell Functions. ##
264
## --------------------- ##
265
# as_fn_unset VAR
266
# ---------------
267
# Portably unset VAR.
268
as_fn_unset ()
269
{
270
  { eval $1=; unset $1;}
271
}
272
as_unset=as_fn_unset
273
274
# as_fn_set_status STATUS
275
# -----------------------
276
# Set $? to STATUS, without forking.
277
as_fn_set_status ()
278
{
279
  return $1
280
} # as_fn_set_status
281
282
# as_fn_exit STATUS
283
# -----------------
284
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285
as_fn_exit ()
286
{
287
  set +e
288
  as_fn_set_status $1
289
  exit $1
290
} # as_fn_exit
291
292
# as_fn_mkdir_p
293
# -------------
294
# Create "$as_dir" as a directory, including parents if necessary.
295
as_fn_mkdir_p ()
296
{
297
298
  case $as_dir in #(
299
  -*) as_dir=./$as_dir;;
300
  esac
301
  test -d "$as_dir" || eval $as_mkdir_p || {
302
    as_dirs=
303
    while :; do
304
      case $as_dir in #(
305
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306
      *) as_qdir=$as_dir;;
307
      esac
308
      as_dirs="'$as_qdir' $as_dirs"
309
      as_dir=`$as_dirname -- "$as_dir" ||
310
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311
	 X"$as_dir" : 'X\(//\)[^/]' \| \
312
	 X"$as_dir" : 'X\(//\)$' \| \
313
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314
$as_echo X"$as_dir" |
315
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
	    s//\1/
317
	    q
318
	  }
319
	  /^X\(\/\/\)[^/].*/{
320
	    s//\1/
321
	    q
322
	  }
323
	  /^X\(\/\/\)$/{
324
	    s//\1/
325
	    q
326
	  }
327
	  /^X\(\/\).*/{
328
	    s//\1/
329
	    q
330
	  }
331
	  s/.*/./; q'`
332
      test -d "$as_dir" && break
333
    done
334
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
335
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
336
337
338
} # as_fn_mkdir_p
339
# as_fn_append VAR VALUE
340
# ----------------------
341
# Append the text in VALUE to the end of the definition contained in VAR. Take
342
# advantage of any shell optimizations that allow amortized linear growth over
343
# repeated appends, instead of the typical quadratic growth present in naive
344
# implementations.
345
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346
  eval 'as_fn_append ()
347
  {
348
    eval $1+=\$2
349
  }'
350
else
351
  as_fn_append ()
352
  {
353
    eval $1=\$$1\$2
354
  }
355
fi # as_fn_append
356
357
# as_fn_arith ARG...
358
# ------------------
359
# Perform arithmetic evaluation on the ARGs, and store the result in the
360
# global $as_val. Take advantage of shells that can avoid forks. The arguments
361
# must be portable across $(()) and expr.
362
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363
  eval 'as_fn_arith ()
364
  {
365
    as_val=$(( $* ))
366
  }'
367
else
368
  as_fn_arith ()
369
  {
370
    as_val=`expr "$@" || test $? -eq 1`
371
  }
372
fi # as_fn_arith
373
374
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
375
# as_fn_error STATUS ERROR [LINENO LOG_FD]
376
# ----------------------------------------
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
377
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
379
# script with STATUS, using 1 if that was 0.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
380
as_fn_error ()
381
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
382
  as_status=$1; test $as_status -eq 0 && as_status=1
383
  if test "$4"; then
384
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
386
  fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
387
  $as_echo "$as_me: error: $2" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
388
  as_fn_exit $as_status
389
} # as_fn_error
390
391
if expr a : '\(a\)' >/dev/null 2>&1 &&
392
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393
  as_expr=expr
394
else
395
  as_expr=false
396
fi
397
398
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399
  as_basename=basename
400
else
401
  as_basename=false
402
fi
403
404
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405
  as_dirname=dirname
406
else
407
  as_dirname=false
408
fi
409
410
as_me=`$as_basename -- "$0" ||
411
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412
	 X"$0" : 'X\(//\)$' \| \
413
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414
$as_echo X/"$0" |
415
    sed '/^.*\/\([^/][^/]*\)\/*$/{
416
	    s//\1/
417
	    q
418
	  }
419
	  /^X\/\(\/\/\)$/{
420
	    s//\1/
421
	    q
422
	  }
423
	  /^X\/\(\/\).*/{
424
	    s//\1/
425
	    q
426
	  }
427
	  s/.*/./; q'`
428
429
# Avoid depending upon Character Ranges.
430
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433
as_cr_digits='0123456789'
434
as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
442
  sed -n '
443
    p
444
    /[$]LINENO/=
445
  ' <$as_myself |
1 by Joey Hess
* Joey Hess
446
    sed '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
447
      s/[$]LINENO.*/&-/
448
      t lineno
449
      b
450
      :lineno
1 by Joey Hess
* Joey Hess
451
      N
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
452
      :loop
453
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1 by Joey Hess
* Joey Hess
454
      t loop
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
455
      s/-\n.*//
1 by Joey Hess
* Joey Hess
456
    ' >$as_me.lineno &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
457
  chmod +x "$as_me.lineno" ||
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
458
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1 by Joey Hess
* Joey Hess
459
460
  # Don't try to exec as it changes $[0], causing all sort of problems
461
  # (the dirname of $[0] is not the place where we might find the
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
462
  # original and so on.  Autoconf is especially sensitive to this).
463
  . "./$as_me.lineno"
1 by Joey Hess
* Joey Hess
464
  # Exit status is that of the last command.
465
  exit
466
}
467
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
468
ECHO_C= ECHO_N= ECHO_T=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
469
case `echo -n x` in #(((((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
470
-n*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
471
  case `echo 'xy\c'` in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
472
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
473
  xy)  ECHO_C='\c';;
474
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475
       ECHO_T='	';;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
476
  esac;;
477
*)
478
  ECHO_N='-n';;
1 by Joey Hess
* Joey Hess
479
esac
480
481
rm -f conf$$ conf$$.exe conf$$.file
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
482
if test -d conf$$.dir; then
483
  rm -f conf$$.dir/conf$$.file
484
else
485
  rm -f conf$$.dir
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
486
  mkdir conf$$.dir 2>/dev/null
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
487
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
488
if (echo >conf$$.file) 2>/dev/null; then
489
  if ln -s conf$$.file conf$$ 2>/dev/null; then
490
    as_ln_s='ln -s'
491
    # ... but there are two gotchas:
492
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494
    # In both cases, we have to default to `cp -p'.
495
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496
      as_ln_s='cp -p'
497
  elif ln conf$$.file conf$$ 2>/dev/null; then
498
    as_ln_s=ln
499
  else
1 by Joey Hess
* Joey Hess
500
    as_ln_s='cp -p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
501
  fi
1 by Joey Hess
* Joey Hess
502
else
503
  as_ln_s='cp -p'
504
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
1 by Joey Hess
* Joey Hess
507
508
if mkdir -p . 2>/dev/null; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
509
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Joey Hess
* Joey Hess
510
else
511
  test -d ./-p && rmdir ./-p
512
  as_mkdir_p=false
513
fi
514
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
515
if test -x / >/dev/null 2>&1; then
516
  as_test_x='test -x'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
517
else
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
518
  if ls -dL / >/dev/null 2>&1; then
519
    as_ls_L_option=L
520
  else
521
    as_ls_L_option=
522
  fi
523
  as_test_x='
524
    eval sh -c '\''
525
      if test -d "$1"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
526
	test -d "$1/.";
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
527
      else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
528
	case $1 in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
529
	-*)set "./$1";;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
530
	esac;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
531
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
532
	???[sx]*):;;*)false;;esac;fi
533
    '\'' sh
534
  '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
535
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
536
as_executable_p=$as_test_x
1 by Joey Hess
* Joey Hess
537
538
# Sed expression to map a string onto a valid CPP name.
539
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541
# Sed expression to map a string onto a valid variable name.
542
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544
SHELL=${CONFIG_SHELL-/bin/sh}
545
546
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
547
test -n "$DJDIR" || exec 7<&0 </dev/null
548
exec 6>&1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
549
1 by Joey Hess
* Joey Hess
550
# Name of the host.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
551
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1 by Joey Hess
* Joey Hess
552
# so uname gets run too.
553
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555
#
556
# Initializations.
557
#
558
ac_default_prefix=/usr/local
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
559
ac_clean_files=
1 by Joey Hess
* Joey Hess
560
ac_config_libobj_dir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
561
LIBOBJS=
1 by Joey Hess
* Joey Hess
562
cross_compiling=no
563
subdirs=
564
MFLAGS=
565
MAKEFLAGS=
566
567
# Identity of this package.
568
PACKAGE_NAME='libdebian-installer'
569
PACKAGE_TARNAME='libdebian-installer'
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
570
PACKAGE_VERSION='0.79ubuntu2'
571
PACKAGE_STRING='libdebian-installer 0.79ubuntu2'
1 by Joey Hess
* Joey Hess
572
PACKAGE_BUGREPORT=''
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
573
PACKAGE_URL=''
1 by Joey Hess
* Joey Hess
574
575
# Factoring default headers for most tests.
576
ac_includes_default="\
577
#include <stdio.h>
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
578
#ifdef HAVE_SYS_TYPES_H
1 by Joey Hess
* Joey Hess
579
# include <sys/types.h>
580
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
581
#ifdef HAVE_SYS_STAT_H
1 by Joey Hess
* Joey Hess
582
# include <sys/stat.h>
583
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
584
#ifdef STDC_HEADERS
1 by Joey Hess
* Joey Hess
585
# include <stdlib.h>
586
# include <stddef.h>
587
#else
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
588
# ifdef HAVE_STDLIB_H
1 by Joey Hess
* Joey Hess
589
#  include <stdlib.h>
590
# endif
591
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
592
#ifdef HAVE_STRING_H
593
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1 by Joey Hess
* Joey Hess
594
#  include <memory.h>
595
# endif
596
# include <string.h>
597
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
598
#ifdef HAVE_STRINGS_H
1 by Joey Hess
* Joey Hess
599
# include <strings.h>
600
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
601
#ifdef HAVE_INTTYPES_H
1 by Joey Hess
* Joey Hess
602
# include <inttypes.h>
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
603
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
604
#ifdef HAVE_STDINT_H
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
605
# include <stdint.h>
1 by Joey Hess
* Joey Hess
606
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
607
#ifdef HAVE_UNISTD_H
1 by Joey Hess
* Joey Hess
608
# include <unistd.h>
609
#endif"
610
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
611
ac_subst_vars='am__EXEEXT_FALSE
612
am__EXEEXT_TRUE
613
LTLIBOBJS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
614
LIBOBJS
615
SUBARCH_SYSTEM
616
LIBRARY_VERSION_MAJOR
617
LIBRARY_VERSION_LIBTOOL
618
DOXYGEN
619
CPP
620
OTOOL64
621
OTOOL
622
LIPO
623
NMEDIT
624
DSYMUTIL
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
625
MANIFEST_TOOL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
626
RANLIB
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
627
ac_ct_AR
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
628
AR
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
629
DLLTOOL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
630
OBJDUMP
631
LN_S
632
NM
633
ac_ct_DUMPBIN
634
DUMPBIN
635
LD
636
FGREP
637
EGREP
638
GREP
639
SED
640
host_os
641
host_vendor
642
host_cpu
643
host
644
build_os
645
build_vendor
646
build_cpu
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
647
build
648
LIBTOOL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
649
am__fastdepCC_FALSE
650
am__fastdepCC_TRUE
651
CCDEPMODE
652
AMDEPBACKSLASH
653
AMDEP_FALSE
654
AMDEP_TRUE
655
am__quote
656
am__include
657
DEPDIR
658
OBJEXT
659
EXEEXT
660
ac_ct_CC
661
CPPFLAGS
662
LDFLAGS
663
CFLAGS
664
CC
665
MAINT
666
MAINTAINER_MODE_FALSE
667
MAINTAINER_MODE_TRUE
668
am__untar
669
am__tar
670
AMTAR
671
am__leading_dot
672
SET_MAKE
673
AWK
674
mkdir_p
675
MKDIR_P
676
INSTALL_STRIP_PROGRAM
677
STRIP
678
install_sh
679
MAKEINFO
680
AUTOHEADER
681
AUTOMAKE
682
AUTOCONF
683
ACLOCAL
684
VERSION
685
PACKAGE
686
CYGPATH_W
687
am__isrc
688
INSTALL_DATA
689
INSTALL_SCRIPT
690
INSTALL_PROGRAM
691
target_alias
692
host_alias
693
build_alias
694
LIBS
695
ECHO_T
696
ECHO_N
697
ECHO_C
698
DEFS
699
mandir
700
localedir
701
libdir
702
psdir
703
pdfdir
704
dvidir
705
htmldir
706
infodir
707
docdir
708
oldincludedir
709
includedir
710
localstatedir
711
sharedstatedir
712
sysconfdir
713
datadir
714
datarootdir
715
libexecdir
716
sbindir
717
bindir
718
program_transform_name
719
prefix
720
exec_prefix
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
721
PACKAGE_URL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
722
PACKAGE_BUGREPORT
723
PACKAGE_STRING
724
PACKAGE_VERSION
725
PACKAGE_TARNAME
726
PACKAGE_NAME
727
PATH_SEPARATOR
728
SHELL'
1 by Joey Hess
* Joey Hess
729
ac_subst_files=''
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
730
ac_user_opts='
731
enable_option_checking
732
enable_maintainer_mode
733
enable_dependency_tracking
734
enable_shared
735
enable_static
736
with_pic
737
enable_fast_install
738
with_gnu_ld
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
739
with_sysroot
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
740
enable_libtool_lock
741
enable_extensive_debug
742
'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
743
      ac_precious_vars='build_alias
744
host_alias
745
target_alias
746
CC
747
CFLAGS
748
LDFLAGS
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
749
LIBS
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
750
CPPFLAGS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
751
CPP'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
752
1 by Joey Hess
* Joey Hess
753
754
# Initialize some variables set by options.
755
ac_init_help=
756
ac_init_version=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
757
ac_unrecognized_opts=
758
ac_unrecognized_sep=
1 by Joey Hess
* Joey Hess
759
# The variables have the same names as the options, with
760
# dashes changed to underlines.
761
cache_file=/dev/null
762
exec_prefix=NONE
763
no_create=
764
no_recursion=
765
prefix=NONE
766
program_prefix=NONE
767
program_suffix=NONE
768
program_transform_name=s,x,x,
769
silent=
770
site=
771
srcdir=
772
verbose=
773
x_includes=NONE
774
x_libraries=NONE
775
776
# Installation directory options.
777
# These are left unexpanded so users can "make install exec_prefix=/foo"
778
# and all the variables that are supposed to be based on exec_prefix
779
# by default will actually change.
780
# Use braces instead of parens because sh, perl, etc. also accept them.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
781
# (The list follows the same order as the GNU Coding Standards.)
1 by Joey Hess
* Joey Hess
782
bindir='${exec_prefix}/bin'
783
sbindir='${exec_prefix}/sbin'
784
libexecdir='${exec_prefix}/libexec'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
785
datarootdir='${prefix}/share'
786
datadir='${datarootdir}'
1 by Joey Hess
* Joey Hess
787
sysconfdir='${prefix}/etc'
788
sharedstatedir='${prefix}/com'
789
localstatedir='${prefix}/var'
790
includedir='${prefix}/include'
791
oldincludedir='/usr/include'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
792
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793
infodir='${datarootdir}/info'
794
htmldir='${docdir}'
795
dvidir='${docdir}'
796
pdfdir='${docdir}'
797
psdir='${docdir}'
798
libdir='${exec_prefix}/lib'
799
localedir='${datarootdir}/locale'
800
mandir='${datarootdir}/man'
1 by Joey Hess
* Joey Hess
801
802
ac_prev=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
803
ac_dashdash=
1 by Joey Hess
* Joey Hess
804
for ac_option
805
do
806
  # If the previous option needs an argument, assign it.
807
  if test -n "$ac_prev"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
808
    eval $ac_prev=\$ac_option
1 by Joey Hess
* Joey Hess
809
    ac_prev=
810
    continue
811
  fi
812
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
813
  case $ac_option in
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
814
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815
  *=)   ac_optarg= ;;
816
  *)    ac_optarg=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
817
  esac
1 by Joey Hess
* Joey Hess
818
819
  # Accept the important Cygnus configure options, so we can diagnose typos.
820
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
821
  case $ac_dashdash$ac_option in
822
  --)
823
    ac_dashdash=yes ;;
1 by Joey Hess
* Joey Hess
824
825
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
826
    ac_prev=bindir ;;
827
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828
    bindir=$ac_optarg ;;
829
830
  -build | --build | --buil | --bui | --bu)
831
    ac_prev=build_alias ;;
832
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833
    build_alias=$ac_optarg ;;
834
835
  -cache-file | --cache-file | --cache-fil | --cache-fi \
836
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837
    ac_prev=cache_file ;;
838
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840
    cache_file=$ac_optarg ;;
841
842
  --config-cache | -C)
843
    cache_file=config.cache ;;
844
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
845
  -datadir | --datadir | --datadi | --datad)
1 by Joey Hess
* Joey Hess
846
    ac_prev=datadir ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
847
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1 by Joey Hess
* Joey Hess
848
    datadir=$ac_optarg ;;
849
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
850
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851
  | --dataroo | --dataro | --datar)
852
    ac_prev=datarootdir ;;
853
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855
    datarootdir=$ac_optarg ;;
856
1 by Joey Hess
* Joey Hess
857
  -disable-* | --disable-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
858
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1 by Joey Hess
* Joey Hess
859
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
860
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
861
      as_fn_error $? "invalid feature name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
862
    ac_useropt_orig=$ac_useropt
863
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864
    case $ac_user_opts in
865
      *"
866
"enable_$ac_useropt"
867
"*) ;;
868
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869
	 ac_unrecognized_sep=', ';;
870
    esac
871
    eval enable_$ac_useropt=no ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
872
873
  -docdir | --docdir | --docdi | --doc | --do)
874
    ac_prev=docdir ;;
875
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876
    docdir=$ac_optarg ;;
877
878
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879
    ac_prev=dvidir ;;
880
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881
    dvidir=$ac_optarg ;;
1 by Joey Hess
* Joey Hess
882
883
  -enable-* | --enable-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
884
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1 by Joey Hess
* Joey Hess
885
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
886
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
887
      as_fn_error $? "invalid feature name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
888
    ac_useropt_orig=$ac_useropt
889
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890
    case $ac_user_opts in
891
      *"
892
"enable_$ac_useropt"
893
"*) ;;
894
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895
	 ac_unrecognized_sep=', ';;
896
    esac
897
    eval enable_$ac_useropt=\$ac_optarg ;;
1 by Joey Hess
* Joey Hess
898
899
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901
  | --exec | --exe | --ex)
902
    ac_prev=exec_prefix ;;
903
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905
  | --exec=* | --exe=* | --ex=*)
906
    exec_prefix=$ac_optarg ;;
907
908
  -gas | --gas | --ga | --g)
909
    # Obsolete; use --with-gas.
910
    with_gas=yes ;;
911
912
  -help | --help | --hel | --he | -h)
913
    ac_init_help=long ;;
914
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915
    ac_init_help=recursive ;;
916
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917
    ac_init_help=short ;;
918
919
  -host | --host | --hos | --ho)
920
    ac_prev=host_alias ;;
921
  -host=* | --host=* | --hos=* | --ho=*)
922
    host_alias=$ac_optarg ;;
923
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
924
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925
    ac_prev=htmldir ;;
926
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927
  | --ht=*)
928
    htmldir=$ac_optarg ;;
929
1 by Joey Hess
* Joey Hess
930
  -includedir | --includedir | --includedi | --included | --include \
931
  | --includ | --inclu | --incl | --inc)
932
    ac_prev=includedir ;;
933
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934
  | --includ=* | --inclu=* | --incl=* | --inc=*)
935
    includedir=$ac_optarg ;;
936
937
  -infodir | --infodir | --infodi | --infod | --info | --inf)
938
    ac_prev=infodir ;;
939
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940
    infodir=$ac_optarg ;;
941
942
  -libdir | --libdir | --libdi | --libd)
943
    ac_prev=libdir ;;
944
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
945
    libdir=$ac_optarg ;;
946
947
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948
  | --libexe | --libex | --libe)
949
    ac_prev=libexecdir ;;
950
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951
  | --libexe=* | --libex=* | --libe=*)
952
    libexecdir=$ac_optarg ;;
953
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
954
  -localedir | --localedir | --localedi | --localed | --locale)
955
    ac_prev=localedir ;;
956
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957
    localedir=$ac_optarg ;;
958
1 by Joey Hess
* Joey Hess
959
  -localstatedir | --localstatedir | --localstatedi | --localstated \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
960
  | --localstate | --localstat | --localsta | --localst | --locals)
1 by Joey Hess
* Joey Hess
961
    ac_prev=localstatedir ;;
962
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
963
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1 by Joey Hess
* Joey Hess
964
    localstatedir=$ac_optarg ;;
965
966
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967
    ac_prev=mandir ;;
968
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969
    mandir=$ac_optarg ;;
970
971
  -nfp | --nfp | --nf)
972
    # Obsolete; use --without-fp.
973
    with_fp=no ;;
974
975
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976
  | --no-cr | --no-c | -n)
977
    no_create=yes ;;
978
979
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981
    no_recursion=yes ;;
982
983
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985
  | --oldin | --oldi | --old | --ol | --o)
986
    ac_prev=oldincludedir ;;
987
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990
    oldincludedir=$ac_optarg ;;
991
992
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993
    ac_prev=prefix ;;
994
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995
    prefix=$ac_optarg ;;
996
997
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
998
  | --program-pre | --program-pr | --program-p)
999
    ac_prev=program_prefix ;;
1000
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002
    program_prefix=$ac_optarg ;;
1003
1004
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005
  | --program-suf | --program-su | --program-s)
1006
    ac_prev=program_suffix ;;
1007
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009
    program_suffix=$ac_optarg ;;
1010
1011
  -program-transform-name | --program-transform-name \
1012
  | --program-transform-nam | --program-transform-na \
1013
  | --program-transform-n | --program-transform- \
1014
  | --program-transform | --program-transfor \
1015
  | --program-transfo | --program-transf \
1016
  | --program-trans | --program-tran \
1017
  | --progr-tra | --program-tr | --program-t)
1018
    ac_prev=program_transform_name ;;
1019
  -program-transform-name=* | --program-transform-name=* \
1020
  | --program-transform-nam=* | --program-transform-na=* \
1021
  | --program-transform-n=* | --program-transform-=* \
1022
  | --program-transform=* | --program-transfor=* \
1023
  | --program-transfo=* | --program-transf=* \
1024
  | --program-trans=* | --program-tran=* \
1025
  | --progr-tra=* | --program-tr=* | --program-t=*)
1026
    program_transform_name=$ac_optarg ;;
1027
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1028
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029
    ac_prev=pdfdir ;;
1030
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031
    pdfdir=$ac_optarg ;;
1032
1033
  -psdir | --psdir | --psdi | --psd | --ps)
1034
    ac_prev=psdir ;;
1035
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036
    psdir=$ac_optarg ;;
1037
1 by Joey Hess
* Joey Hess
1038
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039
  | -silent | --silent | --silen | --sile | --sil)
1040
    silent=yes ;;
1041
1042
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043
    ac_prev=sbindir ;;
1044
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045
  | --sbi=* | --sb=*)
1046
    sbindir=$ac_optarg ;;
1047
1048
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050
  | --sharedst | --shareds | --shared | --share | --shar \
1051
  | --sha | --sh)
1052
    ac_prev=sharedstatedir ;;
1053
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056
  | --sha=* | --sh=*)
1057
    sharedstatedir=$ac_optarg ;;
1058
1059
  -site | --site | --sit)
1060
    ac_prev=site ;;
1061
  -site=* | --site=* | --sit=*)
1062
    site=$ac_optarg ;;
1063
1064
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065
    ac_prev=srcdir ;;
1066
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067
    srcdir=$ac_optarg ;;
1068
1069
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070
  | --syscon | --sysco | --sysc | --sys | --sy)
1071
    ac_prev=sysconfdir ;;
1072
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074
    sysconfdir=$ac_optarg ;;
1075
1076
  -target | --target | --targe | --targ | --tar | --ta | --t)
1077
    ac_prev=target_alias ;;
1078
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079
    target_alias=$ac_optarg ;;
1080
1081
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082
    verbose=yes ;;
1083
1084
  -version | --version | --versio | --versi | --vers | -V)
1085
    ac_init_version=: ;;
1086
1087
  -with-* | --with-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1088
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1 by Joey Hess
* Joey Hess
1089
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1090
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1091
      as_fn_error $? "invalid package name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1092
    ac_useropt_orig=$ac_useropt
1093
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094
    case $ac_user_opts in
1095
      *"
1096
"with_$ac_useropt"
1097
"*) ;;
1098
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099
	 ac_unrecognized_sep=', ';;
1100
    esac
1101
    eval with_$ac_useropt=\$ac_optarg ;;
1 by Joey Hess
* Joey Hess
1102
1103
  -without-* | --without-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1104
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1 by Joey Hess
* Joey Hess
1105
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1106
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1107
      as_fn_error $? "invalid package name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1108
    ac_useropt_orig=$ac_useropt
1109
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110
    case $ac_user_opts in
1111
      *"
1112
"with_$ac_useropt"
1113
"*) ;;
1114
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115
	 ac_unrecognized_sep=', ';;
1116
    esac
1117
    eval with_$ac_useropt=no ;;
1 by Joey Hess
* Joey Hess
1118
1119
  --x)
1120
    # Obsolete; use --with-x.
1121
    with_x=yes ;;
1122
1123
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124
  | --x-incl | --x-inc | --x-in | --x-i)
1125
    ac_prev=x_includes ;;
1126
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128
    x_includes=$ac_optarg ;;
1129
1130
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132
    ac_prev=x_libraries ;;
1133
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135
    x_libraries=$ac_optarg ;;
1136
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1137
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138
Try \`$0 --help' for more information"
1 by Joey Hess
* Joey Hess
1139
    ;;
1140
1141
  *=*)
1142
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143
    # Reject names that are not valid shell variable names.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1144
    case $ac_envvar in #(
1145
      '' | [0-9]* | *[!_$as_cr_alnum]* )
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1146
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1147
    esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1148
    eval $ac_envvar=\$ac_optarg
1 by Joey Hess
* Joey Hess
1149
    export $ac_envvar ;;
1150
1151
  *)
1152
    # FIXME: should be removed in autoconf 3.0.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1153
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1 by Joey Hess
* Joey Hess
1154
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1155
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1156
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1 by Joey Hess
* Joey Hess
1157
    ;;
1158
1159
  esac
1160
done
1161
1162
if test -n "$ac_prev"; then
1163
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1164
  as_fn_error $? "missing argument to $ac_option"
1 by Joey Hess
* Joey Hess
1165
fi
1166
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1167
if test -n "$ac_unrecognized_opts"; then
1168
  case $enable_option_checking in
1169
    no) ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1170
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1171
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172
  esac
1173
fi
1174
1175
# Check all directory arguments for consistency.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1176
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177
		datadir sysconfdir sharedstatedir localstatedir includedir \
1178
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179
		libdir localedir mandir
1180
do
1181
  eval ac_val=\$$ac_var
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1182
  # Remove trailing slashes.
1183
  case $ac_val in
1184
    */ )
1185
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186
      eval $ac_var=\$ac_val;;
1187
  esac
1188
  # Be sure to have absolute directory names.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1189
  case $ac_val in
1190
    [\\/$]* | ?:[\\/]* )  continue;;
1191
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192
  esac
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1193
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1 by Joey Hess
* Joey Hess
1194
done
1195
1196
# There might be people who depend on the old broken behavior: `$host'
1197
# used to hold the argument of --host etc.
1198
# FIXME: To remove some day.
1199
build=$build_alias
1200
host=$host_alias
1201
target=$target_alias
1202
1203
# FIXME: To remove some day.
1204
if test "x$host_alias" != x; then
1205
  if test "x$build_alias" = x; then
1206
    cross_compiling=maybe
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1207
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208
    If a cross compiler is detected then cross compile mode will be used" >&2
1 by Joey Hess
* Joey Hess
1209
  elif test "x$build_alias" != "x$host_alias"; then
1210
    cross_compiling=yes
1211
  fi
1212
fi
1213
1214
ac_tool_prefix=
1215
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217
test "$silent" = yes && exec 6>/dev/null
1218
1219
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1220
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221
ac_ls_di=`ls -di .` &&
1222
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1223
  as_fn_error $? "working directory cannot be determined"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1224
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1225
  as_fn_error $? "pwd does not report name of working directory"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1226
1227
1 by Joey Hess
* Joey Hess
1228
# Find the source files, if location was not specified.
1229
if test -z "$srcdir"; then
1230
  ac_srcdir_defaulted=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1231
  # Try the directory containing this script, then the parent directory.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1232
  ac_confdir=`$as_dirname -- "$as_myself" ||
1233
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1235
	 X"$as_myself" : 'X\(//\)$' \| \
1236
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237
$as_echo X"$as_myself" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1238
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239
	    s//\1/
1240
	    q
1241
	  }
1242
	  /^X\(\/\/\)[^/].*/{
1243
	    s//\1/
1244
	    q
1245
	  }
1246
	  /^X\(\/\/\)$/{
1247
	    s//\1/
1248
	    q
1249
	  }
1250
	  /^X\(\/\).*/{
1251
	    s//\1/
1252
	    q
1253
	  }
1254
	  s/.*/./; q'`
1 by Joey Hess
* Joey Hess
1255
  srcdir=$ac_confdir
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1256
  if test ! -r "$srcdir/$ac_unique_file"; then
1 by Joey Hess
* Joey Hess
1257
    srcdir=..
1258
  fi
1259
else
1260
  ac_srcdir_defaulted=no
1261
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1262
if test ! -r "$srcdir/$ac_unique_file"; then
1263
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1264
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1265
fi
1266
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267
ac_abs_confdir=`(
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1268
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1269
	pwd)`
1270
# When building in place, set srcdir=.
1271
if test "$ac_abs_confdir" = "$ac_pwd"; then
1272
  srcdir=.
1273
fi
1274
# Remove unnecessary trailing slashes from srcdir.
1275
# Double slashes in file names in object file debugging info
1276
# mess up M-x gdb in Emacs.
1277
case $srcdir in
1278
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279
esac
1280
for ac_var in $ac_precious_vars; do
1281
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282
  eval ac_env_${ac_var}_value=\$${ac_var}
1283
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285
done
1 by Joey Hess
* Joey Hess
1286
1287
#
1288
# Report the --help message.
1289
#
1290
if test "$ac_init_help" = "long"; then
1291
  # Omit some internal or obsolete options to make the list less imposing.
1292
  # This message is too long to be a string in the A/UX 3.1 sh.
1293
  cat <<_ACEOF
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
1294
\`configure' configures libdebian-installer 0.79ubuntu2 to adapt to many kinds of systems.
1 by Joey Hess
* Joey Hess
1295
1296
Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299
VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301
Defaults for the options are specified in brackets.
1302
1303
Configuration:
1304
  -h, --help              display this help and exit
1305
      --help=short        display options specific to this package
1306
      --help=recursive    display the short help of all the included packages
1307
  -V, --version           display version information and exit
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1308
  -q, --quiet, --silent   do not print \`checking ...' messages
1 by Joey Hess
* Joey Hess
1309
      --cache-file=FILE   cache test results in FILE [disabled]
1310
  -C, --config-cache      alias for \`--cache-file=config.cache'
1311
  -n, --no-create         do not create output files
1312
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314
Installation directories:
1315
  --prefix=PREFIX         install architecture-independent files in PREFIX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1316
                          [$ac_default_prefix]
1 by Joey Hess
* Joey Hess
1317
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1318
                          [PREFIX]
1 by Joey Hess
* Joey Hess
1319
1320
By default, \`make install' will install all the files in
1321
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323
for instance \`--prefix=\$HOME'.
1324
1325
For better control, use the options below.
1326
1327
Fine tuning of the installation directories:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1328
  --bindir=DIR            user executables [EPREFIX/bin]
1329
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1330
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1331
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1332
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1333
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1334
  --libdir=DIR            object code libraries [EPREFIX/lib]
1335
  --includedir=DIR        C header files [PREFIX/include]
1336
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1337
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1338
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1339
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1340
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1342
  --docdir=DIR            documentation root
1343
                          [DATAROOTDIR/doc/libdebian-installer]
1344
  --htmldir=DIR           html documentation [DOCDIR]
1345
  --dvidir=DIR            dvi documentation [DOCDIR]
1346
  --pdfdir=DIR            pdf documentation [DOCDIR]
1347
  --psdir=DIR             ps documentation [DOCDIR]
1 by Joey Hess
* Joey Hess
1348
_ACEOF
1349
1350
  cat <<\_ACEOF
1351
1352
Program names:
1353
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1354
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1355
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356
1357
System types:
1358
  --build=BUILD     configure for building on BUILD [guessed]
1359
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360
_ACEOF
1361
fi
1362
1363
if test -n "$ac_init_help"; then
1364
  case $ac_init_help in
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
1365
     short | recursive ) echo "Configuration of libdebian-installer 0.79ubuntu2:";;
1 by Joey Hess
* Joey Hess
1366
   esac
1367
  cat <<\_ACEOF
1368
1369
Optional Features:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1370
  --disable-option-checking  ignore unrecognized --enable/--with options
1 by Joey Hess
* Joey Hess
1371
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373
  --enable-maintainer-mode  enable make rules and dependencies not useful
1374
			  (and sometimes confusing) to the casual installer
1375
  --disable-dependency-tracking  speeds up one-time build
1376
  --enable-dependency-tracking   do not reject slow dependency extractors
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1377
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1378
  --enable-static[=PKGS]  build static libraries [default=yes]
1 by Joey Hess
* Joey Hess
1379
  --enable-fast-install[=PKGS]
1380
                          optimize for fast installation [default=yes]
1381
  --disable-libtool-lock  avoid locking (might break parallel builds)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
1382
  --enable-extensive-debug
1383
                          Enable extensive debugging output
1 by Joey Hess
* Joey Hess
1384
1385
Optional Packages:
1386
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388
  --with-pic              try to use only PIC/non-PIC objects [default=use
1389
                          both]
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1390
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1391
  --with-sysroot=DIR Search for dependent libraries within DIR
1392
                        (or the compiler's sysroot if not specified).
1 by Joey Hess
* Joey Hess
1393
1394
Some influential environment variables:
1395
  CC          C compiler command
1396
  CFLAGS      C compiler flags
1397
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398
              nonstandard directory <lib dir>
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
1399
  LIBS        libraries to pass to the linker, e.g. -l<library>
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1400
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1401
              you have headers in a nonstandard directory <include dir>
1 by Joey Hess
* Joey Hess
1402
  CPP         C preprocessor
1403
1404
Use these variables to override the choices made by `configure' or to help
1405
it to find libraries and programs with nonstandard names/locations.
1406
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1407
Report bugs to the package provider.
1 by Joey Hess
* Joey Hess
1408
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1409
ac_status=$?
1 by Joey Hess
* Joey Hess
1410
fi
1411
1412
if test "$ac_init_help" = "recursive"; then
1413
  # If there are subdirs, report their specific --help.
1414
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1415
    test -d "$ac_dir" ||
1416
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417
      continue
1 by Joey Hess
* Joey Hess
1418
    ac_builddir=.
1419
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1420
case "$ac_dir" in
1421
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422
*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1423
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1424
  # A ".." for each directory in $ac_dir_suffix.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1425
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1426
  case $ac_top_builddir_sub in
1427
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429
  esac ;;
1430
esac
1431
ac_abs_top_builddir=$ac_pwd
1432
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433
# for backward compatibility:
1434
ac_top_builddir=$ac_top_build_prefix
1 by Joey Hess
* Joey Hess
1435
1436
case $srcdir in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1437
  .)  # We are building in place.
1 by Joey Hess
* Joey Hess
1438
    ac_srcdir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1439
    ac_top_srcdir=$ac_top_builddir_sub
1440
    ac_abs_top_srcdir=$ac_pwd ;;
1441
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Joey Hess
* Joey Hess
1442
    ac_srcdir=$srcdir$ac_dir_suffix;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1443
    ac_top_srcdir=$srcdir
1444
    ac_abs_top_srcdir=$srcdir ;;
1445
  *) # Relative name.
1446
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1448
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449
esac
1450
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452
    cd "$ac_dir" || { ac_status=$?; continue; }
1453
    # Check for guested configure.
1454
    if test -f "$ac_srcdir/configure.gnu"; then
1455
      echo &&
1456
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457
    elif test -f "$ac_srcdir/configure"; then
1458
      echo &&
1459
      $SHELL "$ac_srcdir/configure" --help=recursive
1 by Joey Hess
* Joey Hess
1460
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1461
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1462
    fi || ac_status=$?
1463
    cd "$ac_pwd" || { ac_status=$?; break; }
1 by Joey Hess
* Joey Hess
1464
  done
1465
fi
1466
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1467
test -n "$ac_init_help" && exit $ac_status
1 by Joey Hess
* Joey Hess
1468
if $ac_init_version; then
1469
  cat <<\_ACEOF
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
1470
libdebian-installer configure 0.79ubuntu2
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1471
generated by GNU Autoconf 2.68
1 by Joey Hess
* Joey Hess
1472
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1473
Copyright (C) 2010 Free Software Foundation, Inc.
1 by Joey Hess
* Joey Hess
1474
This configure script is free software; the Free Software Foundation
1475
gives unlimited permission to copy, distribute and modify it.
1476
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1477
  exit
1 by Joey Hess
* Joey Hess
1478
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1479
1480
## ------------------------ ##
1481
## Autoconf initialization. ##
1482
## ------------------------ ##
1483
1484
# ac_fn_c_try_compile LINENO
1485
# --------------------------
1486
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1487
ac_fn_c_try_compile ()
1488
{
1489
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490
  rm -f conftest.$ac_objext
1491
  if { { ac_try="$ac_compile"
1492
case "(($ac_try" in
1493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494
  *) ac_try_echo=$ac_try;;
1495
esac
1496
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497
$as_echo "$ac_try_echo"; } >&5
1498
  (eval "$ac_compile") 2>conftest.err
1499
  ac_status=$?
1500
  if test -s conftest.err; then
1501
    grep -v '^ *+' conftest.err >conftest.er1
1502
    cat conftest.er1 >&5
1503
    mv -f conftest.er1 conftest.err
1504
  fi
1505
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506
  test $ac_status = 0; } && {
1507
	 test -z "$ac_c_werror_flag" ||
1508
	 test ! -s conftest.err
1509
       } && test -s conftest.$ac_objext; then :
1510
  ac_retval=0
1511
else
1512
  $as_echo "$as_me: failed program was:" >&5
1513
sed 's/^/| /' conftest.$ac_ext >&5
1514
1515
	ac_retval=1
1516
fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1517
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1518
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1519
1520
} # ac_fn_c_try_compile
1521
1522
# ac_fn_c_try_link LINENO
1523
# -----------------------
1524
# Try to link conftest.$ac_ext, and return whether this succeeded.
1525
ac_fn_c_try_link ()
1526
{
1527
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528
  rm -f conftest.$ac_objext conftest$ac_exeext
1529
  if { { ac_try="$ac_link"
1530
case "(($ac_try" in
1531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532
  *) ac_try_echo=$ac_try;;
1533
esac
1534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535
$as_echo "$ac_try_echo"; } >&5
1536
  (eval "$ac_link") 2>conftest.err
1537
  ac_status=$?
1538
  if test -s conftest.err; then
1539
    grep -v '^ *+' conftest.err >conftest.er1
1540
    cat conftest.er1 >&5
1541
    mv -f conftest.er1 conftest.err
1542
  fi
1543
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544
  test $ac_status = 0; } && {
1545
	 test -z "$ac_c_werror_flag" ||
1546
	 test ! -s conftest.err
1547
       } && test -s conftest$ac_exeext && {
1548
	 test "$cross_compiling" = yes ||
1549
	 $as_test_x conftest$ac_exeext
1550
       }; then :
1551
  ac_retval=0
1552
else
1553
  $as_echo "$as_me: failed program was:" >&5
1554
sed 's/^/| /' conftest.$ac_ext >&5
1555
1556
	ac_retval=1
1557
fi
1558
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1559
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1560
  # interfere with the next link command; also delete a directory that is
1561
  # left behind by Apple's compiler.  We do this before executing the actions.
1562
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1563
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1564
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1565
1566
} # ac_fn_c_try_link
1567
1568
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1569
# -------------------------------------------------------
1570
# Tests whether HEADER exists and can be compiled using the include files in
1571
# INCLUDES, setting the cache variable VAR accordingly.
1572
ac_fn_c_check_header_compile ()
1573
{
1574
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576
$as_echo_n "checking for $2... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1577
if eval \${$3+:} false; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1578
  $as_echo_n "(cached) " >&6
1579
else
1580
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581
/* end confdefs.h.  */
1582
$4
1583
#include <$2>
1584
_ACEOF
1585
if ac_fn_c_try_compile "$LINENO"; then :
1586
  eval "$3=yes"
1587
else
1588
  eval "$3=no"
1589
fi
1590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591
fi
1592
eval ac_res=\$$3
1593
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594
$as_echo "$ac_res" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1595
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1596
1597
} # ac_fn_c_check_header_compile
1598
1599
# ac_fn_c_try_cpp LINENO
1600
# ----------------------
1601
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602
ac_fn_c_try_cpp ()
1603
{
1604
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1606
case "(($ac_try" in
1607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608
  *) ac_try_echo=$ac_try;;
1609
esac
1610
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611
$as_echo "$ac_try_echo"; } >&5
1612
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613
  ac_status=$?
1614
  if test -s conftest.err; then
1615
    grep -v '^ *+' conftest.err >conftest.er1
1616
    cat conftest.er1 >&5
1617
    mv -f conftest.er1 conftest.err
1618
  fi
1619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1620
  test $ac_status = 0; } > conftest.i && {
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1621
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622
	 test ! -s conftest.err
1623
       }; then :
1624
  ac_retval=0
1625
else
1626
  $as_echo "$as_me: failed program was:" >&5
1627
sed 's/^/| /' conftest.$ac_ext >&5
1628
1629
    ac_retval=1
1630
fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1631
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1632
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1633
1634
} # ac_fn_c_try_cpp
1635
1636
# ac_fn_c_try_run LINENO
1637
# ----------------------
1638
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639
# that executables *can* be run.
1640
ac_fn_c_try_run ()
1641
{
1642
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643
  if { { ac_try="$ac_link"
1644
case "(($ac_try" in
1645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646
  *) ac_try_echo=$ac_try;;
1647
esac
1648
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649
$as_echo "$ac_try_echo"; } >&5
1650
  (eval "$ac_link") 2>&5
1651
  ac_status=$?
1652
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654
  { { case "(($ac_try" in
1655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656
  *) ac_try_echo=$ac_try;;
1657
esac
1658
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659
$as_echo "$ac_try_echo"; } >&5
1660
  (eval "$ac_try") 2>&5
1661
  ac_status=$?
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663
  test $ac_status = 0; }; }; then :
1664
  ac_retval=0
1665
else
1666
  $as_echo "$as_me: program exited with status $ac_status" >&5
1667
       $as_echo "$as_me: failed program was:" >&5
1668
sed 's/^/| /' conftest.$ac_ext >&5
1669
1670
       ac_retval=$ac_status
1671
fi
1672
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1673
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1674
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1675
1676
} # ac_fn_c_try_run
1677
1678
# ac_fn_c_check_func LINENO FUNC VAR
1679
# ----------------------------------
1680
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1681
ac_fn_c_check_func ()
1682
{
1683
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685
$as_echo_n "checking for $2... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1686
if eval \${$3+:} false; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1687
  $as_echo_n "(cached) " >&6
1688
else
1689
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690
/* end confdefs.h.  */
1691
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1693
#define $2 innocuous_$2
1694
1695
/* System header to define __stub macros and hopefully few prototypes,
1696
    which can conflict with char $2 (); below.
1697
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698
    <limits.h> exists even on freestanding compilers.  */
1699
1700
#ifdef __STDC__
1701
# include <limits.h>
1702
#else
1703
# include <assert.h>
1704
#endif
1705
1706
#undef $2
1707
1708
/* Override any GCC internal prototype to avoid an error.
1709
   Use char because int might match the return type of a GCC
1710
   builtin and then its argument prototype would still apply.  */
1711
#ifdef __cplusplus
1712
extern "C"
1713
#endif
1714
char $2 ();
1715
/* The GNU C library defines this for functions which it implements
1716
    to always fail with ENOSYS.  Some functions are actually named
1717
    something starting with __ and the normal name is an alias.  */
1718
#if defined __stub_$2 || defined __stub___$2
1719
choke me
1720
#endif
1721
1722
int
1723
main ()
1724
{
1725
return $2 ();
1726
  ;
1727
  return 0;
1728
}
1729
_ACEOF
1730
if ac_fn_c_try_link "$LINENO"; then :
1731
  eval "$3=yes"
1732
else
1733
  eval "$3=no"
1734
fi
1735
rm -f core conftest.err conftest.$ac_objext \
1736
    conftest$ac_exeext conftest.$ac_ext
1737
fi
1738
eval ac_res=\$$3
1739
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740
$as_echo "$ac_res" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1741
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1742
1743
} # ac_fn_c_check_func
1744
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1745
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1746
# ---------------------------------------------
1747
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1748
# accordingly.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1749
ac_fn_c_check_decl ()
1750
{
1751
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1752
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1753
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1754
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1755
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1756
if eval \${$3+:} false; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1757
  $as_echo_n "(cached) " >&6
1758
else
1759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760
/* end confdefs.h.  */
1761
$4
1762
int
1763
main ()
1764
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1765
#ifndef $as_decl_name
1766
#ifdef __cplusplus
1767
  (void) $as_decl_use;
1768
#else
1769
  (void) $as_decl_name;
1770
#endif
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1771
#endif
1772
1773
  ;
1774
  return 0;
1775
}
1776
_ACEOF
1777
if ac_fn_c_try_compile "$LINENO"; then :
1778
  eval "$3=yes"
1779
else
1780
  eval "$3=no"
1781
fi
1782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783
fi
1784
eval ac_res=\$$3
1785
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786
$as_echo "$ac_res" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1787
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1788
1789
} # ac_fn_c_check_decl
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1790
cat >config.log <<_ACEOF
1 by Joey Hess
* Joey Hess
1791
This file contains any messages produced by compilers while
1792
running configure, to aid debugging if configure makes a mistake.
1793
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
1794
It was created by libdebian-installer $as_me 0.79ubuntu2, which was
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
1795
generated by GNU Autoconf 2.68.  Invocation command line was
1 by Joey Hess
* Joey Hess
1796
1797
  $ $0 $@
1798
1799
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1800
exec 5>>config.log
1 by Joey Hess
* Joey Hess
1801
{
1802
cat <<_ASUNAME
1803
## --------- ##
1804
## Platform. ##
1805
## --------- ##
1806
1807
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812
1813
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1815
1816
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1817
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1818
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1819
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1 by Joey Hess
* Joey Hess
1820
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1821
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1822
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1823
1824
_ASUNAME
1825
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827
for as_dir in $PATH
1828
do
1829
  IFS=$as_save_IFS
1830
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1831
    $as_echo "PATH: $as_dir"
1832
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1833
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
1834
1835
} >&5
1836
1837
cat >&5 <<_ACEOF
1838
1839
1840
## ----------- ##
1841
## Core tests. ##
1842
## ----------- ##
1843
1844
_ACEOF
1845
1846
1847
# Keep a trace of the command line.
1848
# Strip out --no-create and --no-recursion so they do not pile up.
1849
# Strip out --silent because we don't want to record it for future runs.
1850
# Also quote any args containing shell meta-characters.
1851
# Make two passes to allow for proper duplicate-argument suppression.
1852
ac_configure_args=
1853
ac_configure_args0=
1854
ac_configure_args1=
1855
ac_must_keep_next=false
1856
for ac_pass in 1 2
1857
do
1858
  for ac_arg
1859
  do
1860
    case $ac_arg in
1861
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863
    | -silent | --silent | --silen | --sile | --sil)
1864
      continue ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1865
    *\'*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1866
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Joey Hess
* Joey Hess
1867
    esac
1868
    case $ac_pass in
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1869
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1 by Joey Hess
* Joey Hess
1870
    2)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1871
      as_fn_append ac_configure_args1 " '$ac_arg'"
1 by Joey Hess
* Joey Hess
1872
      if test $ac_must_keep_next = true; then
1873
	ac_must_keep_next=false # Got value, back to normal.
1874
      else
1875
	case $ac_arg in
1876
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1877
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879
	  | -with-* | --with-* | -without-* | --without-* | --x)
1880
	    case "$ac_configure_args0 " in
1881
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882
	    esac
1883
	    ;;
1884
	  -* ) ac_must_keep_next=true ;;
1885
	esac
1886
      fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1887
      as_fn_append ac_configure_args " '$ac_arg'"
1 by Joey Hess
* Joey Hess
1888
      ;;
1889
    esac
1890
  done
1891
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1892
{ ac_configure_args0=; unset ac_configure_args0;}
1893
{ ac_configure_args1=; unset ac_configure_args1;}
1 by Joey Hess
* Joey Hess
1894
1895
# When interrupted or exit'd, cleanup temporary files, and complete
1896
# config.log.  We remove comments because anyway the quotes in there
1897
# would cause problems or look ugly.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1898
# WARNING: Use '\'' to represent an apostrophe within the trap.
1899
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1 by Joey Hess
* Joey Hess
1900
trap 'exit_status=$?
1901
  # Save into config.log some information that might help in debugging.
1902
  {
1903
    echo
1904
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1905
    $as_echo "## ---------------- ##
1 by Joey Hess
* Joey Hess
1906
## Cache variables. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1907
## ---------------- ##"
1 by Joey Hess
* Joey Hess
1908
    echo
1909
    # The following way of writing the cache mishandles newlines in values,
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1910
(
1911
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912
    eval ac_val=\$$ac_var
1913
    case $ac_val in #(
1914
    *${as_nl}*)
1915
      case $ac_var in #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1916
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1917
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1918
      esac
1919
      case $ac_var in #(
1920
      _ | IFS | as_nl) ;; #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1921
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1922
      *) { eval $ac_var=; unset $ac_var;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1923
      esac ;;
1924
    esac
1925
  done
1 by Joey Hess
* Joey Hess
1926
  (set) 2>&1 |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1927
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928
    *${as_nl}ac_space=\ *)
1 by Joey Hess
* Joey Hess
1929
      sed -n \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1930
	"s/'\''/'\''\\\\'\'''\''/g;
1931
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932
      ;; #(
1 by Joey Hess
* Joey Hess
1933
    *)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1934
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Joey Hess
* Joey Hess
1935
      ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1936
    esac |
1937
    sort
1938
)
1 by Joey Hess
* Joey Hess
1939
    echo
1940
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1941
    $as_echo "## ----------------- ##
1 by Joey Hess
* Joey Hess
1942
## Output variables. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1943
## ----------------- ##"
1 by Joey Hess
* Joey Hess
1944
    echo
1945
    for ac_var in $ac_subst_vars
1946
    do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1947
      eval ac_val=\$$ac_var
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
1948
      case $ac_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1949
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
1950
      esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1951
      $as_echo "$ac_var='\''$ac_val'\''"
1 by Joey Hess
* Joey Hess
1952
    done | sort
1953
    echo
1954
1955
    if test -n "$ac_subst_files"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1956
      $as_echo "## ------------------- ##
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1957
## File substitutions. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1958
## ------------------- ##"
1 by Joey Hess
* Joey Hess
1959
      echo
1960
      for ac_var in $ac_subst_files
1961
      do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1962
	eval ac_val=\$$ac_var
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
1963
	case $ac_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1964
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
1965
	esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1966
	$as_echo "$ac_var='\''$ac_val'\''"
1 by Joey Hess
* Joey Hess
1967
      done | sort
1968
      echo
1969
    fi
1970
1971
    if test -s confdefs.h; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1972
      $as_echo "## ----------- ##
1 by Joey Hess
* Joey Hess
1973
## confdefs.h. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1974
## ----------- ##"
1 by Joey Hess
* Joey Hess
1975
      echo
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1976
      cat confdefs.h
1 by Joey Hess
* Joey Hess
1977
      echo
1978
    fi
1979
    test "$ac_signal" != 0 &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1980
      $as_echo "$as_me: caught signal $ac_signal"
1981
    $as_echo "$as_me: exit $exit_status"
1 by Joey Hess
* Joey Hess
1982
  } >&5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1983
  rm -f core *.core core.conftest.* &&
1984
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1 by Joey Hess
* Joey Hess
1985
    exit $exit_status
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1986
' 0
1 by Joey Hess
* Joey Hess
1987
for ac_signal in 1 2 13 15; do
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1988
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1 by Joey Hess
* Joey Hess
1989
done
1990
ac_signal=0
1991
1992
# confdefs.h avoids OS command line length limits that DEFS can exceed.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1993
rm -f -r conftest* confdefs.h
1 by Joey Hess
* Joey Hess
1994
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1995
$as_echo "/* confdefs.h */" > confdefs.h
1996
1 by Joey Hess
* Joey Hess
1997
# Predefined preprocessor variables.
1998
1999
cat >>confdefs.h <<_ACEOF
2000
#define PACKAGE_NAME "$PACKAGE_NAME"
2001
_ACEOF
2002
2003
cat >>confdefs.h <<_ACEOF
2004
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005
_ACEOF
2006
2007
cat >>confdefs.h <<_ACEOF
2008
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2009
_ACEOF
2010
2011
cat >>confdefs.h <<_ACEOF
2012
#define PACKAGE_STRING "$PACKAGE_STRING"
2013
_ACEOF
2014
2015
cat >>confdefs.h <<_ACEOF
2016
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2017
_ACEOF
2018
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2019
cat >>confdefs.h <<_ACEOF
2020
#define PACKAGE_URL "$PACKAGE_URL"
2021
_ACEOF
2022
1 by Joey Hess
* Joey Hess
2023
2024
# Let the site file select an alternate cache file if it wants to.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2025
# Prefer an explicitly selected file to automatically selected ones.
2026
ac_site_file1=NONE
2027
ac_site_file2=NONE
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2028
if test -n "$CONFIG_SITE"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2029
  # We do not want a PATH search for config.site.
2030
  case $CONFIG_SITE in #((
2031
    -*)  ac_site_file1=./$CONFIG_SITE;;
2032
    */*) ac_site_file1=$CONFIG_SITE;;
2033
    *)   ac_site_file1=./$CONFIG_SITE;;
2034
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2035
elif test "x$prefix" != xNONE; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2036
  ac_site_file1=$prefix/share/config.site
2037
  ac_site_file2=$prefix/etc/config.site
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2038
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2039
  ac_site_file1=$ac_default_prefix/share/config.site
2040
  ac_site_file2=$ac_default_prefix/etc/config.site
1 by Joey Hess
* Joey Hess
2041
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2042
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2043
do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2044
  test "x$ac_site_file" = xNONE && continue
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2045
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2046
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2047
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1 by Joey Hess
* Joey Hess
2048
    sed 's/^/| /' "$ac_site_file" >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2049
    . "$ac_site_file" \
2050
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2051
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2052
as_fn_error $? "failed to load site script $ac_site_file
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2053
See \`config.log' for more details" "$LINENO" 5; }
1 by Joey Hess
* Joey Hess
2054
  fi
2055
done
2056
2057
if test -r "$cache_file"; then
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2058
  # Some versions of bash will fail to source /dev/null (special files
2059
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2060
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2061
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2062
$as_echo "$as_me: loading cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
2063
    case $cache_file in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2064
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065
      *)                      . "./$cache_file";;
1 by Joey Hess
* Joey Hess
2066
    esac
2067
  fi
2068
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2069
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2070
$as_echo "$as_me: creating cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
2071
  >$cache_file
2072
fi
2073
2074
# Check that the precious variables saved in the cache have kept the same
2075
# value.
2076
ac_cache_corrupted=false
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2077
for ac_var in $ac_precious_vars; do
1 by Joey Hess
* Joey Hess
2078
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2079
  eval ac_new_set=\$ac_env_${ac_var}_set
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2080
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2081
  eval ac_new_val=\$ac_env_${ac_var}_value
1 by Joey Hess
* Joey Hess
2082
  case $ac_old_set,$ac_new_set in
2083
    set,)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2084
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2085
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1 by Joey Hess
* Joey Hess
2086
      ac_cache_corrupted=: ;;
2087
    ,set)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2088
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2089
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1 by Joey Hess
* Joey Hess
2090
      ac_cache_corrupted=: ;;
2091
    ,);;
2092
    *)
2093
      if test "x$ac_old_val" != "x$ac_new_val"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2094
	# differences in whitespace do not lead to failure.
2095
	ac_old_val_w=`echo x $ac_old_val`
2096
	ac_new_val_w=`echo x $ac_new_val`
2097
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2098
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2099
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2100
	  ac_cache_corrupted=:
2101
	else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2102
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2103
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2104
	  eval $ac_var=\$ac_old_val
2105
	fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2106
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2107
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2108
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2109
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1 by Joey Hess
* Joey Hess
2110
      fi;;
2111
  esac
2112
  # Pass precious variables to config.status.
2113
  if test "$ac_new_set" = set; then
2114
    case $ac_new_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2115
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Joey Hess
* Joey Hess
2116
    *) ac_arg=$ac_var=$ac_new_val ;;
2117
    esac
2118
    case " $ac_configure_args " in
2119
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2120
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1 by Joey Hess
* Joey Hess
2121
    esac
2122
  fi
2123
done
2124
if $ac_cache_corrupted; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2125
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2126
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2127
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2128
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2129
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2130
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2131
## -------------------- ##
2132
## Main body of script. ##
2133
## -------------------- ##
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2134
1 by Joey Hess
* Joey Hess
2135
ac_ext=c
2136
ac_cpp='$CPP $CPPFLAGS'
2137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140
2141
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2142
am__api_version='1.11'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2143
1 by Joey Hess
* Joey Hess
2144
ac_aux_dir=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2145
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2146
  if test -f "$ac_dir/install-sh"; then
2147
    ac_aux_dir=$ac_dir
2148
    ac_install_sh="$ac_aux_dir/install-sh -c"
2149
    break
2150
  elif test -f "$ac_dir/install.sh"; then
2151
    ac_aux_dir=$ac_dir
2152
    ac_install_sh="$ac_aux_dir/install.sh -c"
2153
    break
2154
  elif test -f "$ac_dir/shtool"; then
2155
    ac_aux_dir=$ac_dir
2156
    ac_install_sh="$ac_aux_dir/shtool install -c"
2157
    break
2158
  fi
1 by Joey Hess
* Joey Hess
2159
done
2160
if test -z "$ac_aux_dir"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2161
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2162
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2163
2164
# These three variables are undocumented and unsupported,
2165
# and are intended to be withdrawn in a future Autoconf release.
2166
# They can cause serious problems if a builder's source tree is in a directory
2167
# whose full name contains unusual characters.
2168
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2169
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2170
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2171
1 by Joey Hess
* Joey Hess
2172
2173
# Find a good install program.  We prefer a C program (faster),
2174
# so one script is as good as another.  But avoid the broken or
2175
# incompatible versions:
2176
# SysV /etc/install, /usr/sbin/install
2177
# SunOS /usr/etc/install
2178
# IRIX /sbin/install
2179
# AIX /bin/install
2180
# AmigaOS /C/install, which installs bootblocks on floppy discs
2181
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184
# OS/2's system install, which has a completely different semantic
2185
# ./install, which can be erroneously created by make from ./install.sh.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2186
# Reject install programs that cannot install multiple files.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2188
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1 by Joey Hess
* Joey Hess
2189
if test -z "$INSTALL"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2190
if ${ac_cv_path_install+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2191
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2192
else
2193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194
for as_dir in $PATH
2195
do
2196
  IFS=$as_save_IFS
2197
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2198
    # Account for people who put trailing slashes in PATH elements.
2199
case $as_dir/ in #((
2200
  ./ | .// | /[cC]/* | \
1 by Joey Hess
* Joey Hess
2201
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2202
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1 by Joey Hess
* Joey Hess
2203
  /usr/ucb/* ) ;;
2204
  *)
2205
    # OSF1 and SCO ODT 3.0 have their own names for install.
2206
    # Don't use installbsd from OSF since it installs stuff as root
2207
    # by default.
2208
    for ac_prog in ginstall scoinst install; do
2209
      for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2210
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2211
	  if test $ac_prog = install &&
2212
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2213
	    # AIX install.  It has an incompatible calling convention.
2214
	    :
2215
	  elif test $ac_prog = install &&
2216
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217
	    # program-specific install script used by HP pwplus--don't use.
2218
	    :
2219
	  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2220
	    rm -rf conftest.one conftest.two conftest.dir
2221
	    echo one > conftest.one
2222
	    echo two > conftest.two
2223
	    mkdir conftest.dir
2224
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2225
	      test -s conftest.one && test -s conftest.two &&
2226
	      test -s conftest.dir/conftest.one &&
2227
	      test -s conftest.dir/conftest.two
2228
	    then
2229
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2230
	      break 3
2231
	    fi
1 by Joey Hess
* Joey Hess
2232
	  fi
2233
	fi
2234
      done
2235
    done
2236
    ;;
2237
esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2238
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2239
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2240
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2241
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2242
rm -rf conftest.one conftest.two conftest.dir
1 by Joey Hess
* Joey Hess
2243
2244
fi
2245
  if test "${ac_cv_path_install+set}" = set; then
2246
    INSTALL=$ac_cv_path_install
2247
  else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2248
    # As a last resort, use the slow shell script.  Don't cache a
2249
    # value for INSTALL within a source directory, because that will
1 by Joey Hess
* Joey Hess
2250
    # break other packages using the cache if that directory is
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2251
    # removed, or if the value is a relative name.
1 by Joey Hess
* Joey Hess
2252
    INSTALL=$ac_install_sh
2253
  fi
2254
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2256
$as_echo "$INSTALL" >&6; }
1 by Joey Hess
* Joey Hess
2257
2258
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2259
# It thinks the first close brace ends the variable substitution.
2260
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2261
2262
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2263
2264
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2265
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2267
$as_echo_n "checking whether build environment is sane... " >&6; }
1 by Joey Hess
* Joey Hess
2268
# Just in case
2269
sleep 1
2270
echo timestamp > conftest.file
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2271
# Reject unsafe characters in $srcdir or the absolute working directory
2272
# name.  Accept space and tab only in the latter.
2273
am_lf='
2274
'
2275
case `pwd` in
2276
  *[\\\"\#\$\&\'\`$am_lf]*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2277
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2278
esac
2279
case $srcdir in
2280
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2281
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2282
esac
2283
1 by Joey Hess
* Joey Hess
2284
# Do `set' in a subshell so we don't clobber the current shell's
2285
# arguments.  Must try -L first in case configure is actually a
2286
# symlink; some systems play weird games with the mod time of symlinks
2287
# (eg FreeBSD returns the mod time of the symlink's containing
2288
# directory).
2289
if (
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2290
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Joey Hess
* Joey Hess
2291
   if test "$*" = "X"; then
2292
      # -L didn't work.
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2293
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Joey Hess
* Joey Hess
2294
   fi
2295
   rm -f conftest.file
2296
   if test "$*" != "X $srcdir/configure conftest.file" \
2297
      && test "$*" != "X conftest.file $srcdir/configure"; then
2298
2299
      # If neither matched, then we have a broken ls.  This can happen
2300
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2301
      # broken ls alias from the environment.  This has actually
2302
      # happened.  Such a system could not be considered "sane".
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2303
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2304
alias in your environment" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2305
   fi
2306
2307
   test "$2" = conftest.file
2308
   )
2309
then
2310
   # Ok.
2311
   :
2312
else
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2313
   as_fn_error $? "newly created file is older than distributed files!
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2314
Check your system clock" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2315
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2317
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
2318
test "$program_prefix" != NONE &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2319
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1 by Joey Hess
* Joey Hess
2320
# Use a double $ so make ignores it.
2321
test "$program_suffix" != NONE &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2322
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2323
# Double any \ or $.
1 by Joey Hess
* Joey Hess
2324
# By default was `s,x,x', remove it if useless.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2325
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2326
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1 by Joey Hess
* Joey Hess
2327
2328
# expand $ac_aux_dir to an absolute path
2329
am_aux_dir=`cd $ac_aux_dir && pwd`
2330
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2331
if test x"${MISSING+set}" != xset; then
2332
  case $am_aux_dir in
2333
  *\ * | *\	*)
2334
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2335
  *)
2336
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2337
  esac
2338
fi
1 by Joey Hess
* Joey Hess
2339
# Use eval to expand $SHELL
2340
if eval "$MISSING --run true"; then
2341
  am_missing_run="$MISSING --run "
2342
else
2343
  am_missing_run=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2344
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2345
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1 by Joey Hess
* Joey Hess
2346
fi
2347
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2348
if test x"${install_sh}" != xset; then
2349
  case $am_aux_dir in
2350
  *\ * | *\	*)
2351
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2352
  *)
2353
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2354
  esac
2355
fi
2356
2357
# Installed binaries are usually stripped using `strip' when the user
2358
# run `make install-strip'.  However `strip' might not be the right
2359
# tool to use in cross-compilation environments, therefore Automake
2360
# will honor the `STRIP' environment variable to overrule this program.
2361
if test "$cross_compiling" != no; then
2362
  if test -n "$ac_tool_prefix"; then
2363
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364
set dummy ${ac_tool_prefix}strip; ac_word=$2
2365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2367
if ${ac_cv_prog_STRIP+:} false; then :
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2368
  $as_echo_n "(cached) " >&6
2369
else
2370
  if test -n "$STRIP"; then
2371
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372
else
2373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374
for as_dir in $PATH
2375
do
2376
  IFS=$as_save_IFS
2377
  test -z "$as_dir" && as_dir=.
2378
    for ac_exec_ext in '' $ac_executable_extensions; do
2379
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2381
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382
    break 2
2383
  fi
2384
done
2385
  done
2386
IFS=$as_save_IFS
2387
2388
fi
2389
fi
2390
STRIP=$ac_cv_prog_STRIP
2391
if test -n "$STRIP"; then
2392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2393
$as_echo "$STRIP" >&6; }
2394
else
2395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396
$as_echo "no" >&6; }
2397
fi
2398
2399
2400
fi
2401
if test -z "$ac_cv_prog_STRIP"; then
2402
  ac_ct_STRIP=$STRIP
2403
  # Extract the first word of "strip", so it can be a program name with args.
2404
set dummy strip; ac_word=$2
2405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2407
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2408
  $as_echo_n "(cached) " >&6
2409
else
2410
  if test -n "$ac_ct_STRIP"; then
2411
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2412
else
2413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414
for as_dir in $PATH
2415
do
2416
  IFS=$as_save_IFS
2417
  test -z "$as_dir" && as_dir=.
2418
    for ac_exec_ext in '' $ac_executable_extensions; do
2419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420
    ac_cv_prog_ac_ct_STRIP="strip"
2421
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422
    break 2
2423
  fi
2424
done
2425
  done
2426
IFS=$as_save_IFS
2427
2428
fi
2429
fi
2430
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2431
if test -n "$ac_ct_STRIP"; then
2432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2433
$as_echo "$ac_ct_STRIP" >&6; }
2434
else
2435
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436
$as_echo "no" >&6; }
2437
fi
2438
2439
  if test "x$ac_ct_STRIP" = x; then
2440
    STRIP=":"
2441
  else
2442
    case $cross_compiling:$ac_tool_warned in
2443
yes:)
2444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2445
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2446
ac_tool_warned=yes ;;
2447
esac
2448
    STRIP=$ac_ct_STRIP
2449
  fi
2450
else
2451
  STRIP="$ac_cv_prog_STRIP"
2452
fi
2453
2454
fi
2455
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2458
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2459
if test -z "$MKDIR_P"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2460
  if ${ac_cv_path_mkdir+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2461
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2462
else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2463
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2465
do
2466
  IFS=$as_save_IFS
2467
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2468
    for ac_prog in mkdir gmkdir; do
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2469
	 for ac_exec_ext in '' $ac_executable_extensions; do
2470
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2471
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2472
	     'mkdir (GNU coreutils) '* | \
2473
	     'mkdir (coreutils) '* | \
2474
	     'mkdir (fileutils) '4.1*)
2475
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2476
	       break 3;;
2477
	   esac
2478
	 done
2479
       done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2480
  done
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2481
IFS=$as_save_IFS
2482
2483
fi
2484
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2485
  test -d ./--version && rmdir ./--version
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2486
  if test "${ac_cv_path_mkdir+set}" = set; then
2487
    MKDIR_P="$ac_cv_path_mkdir -p"
1 by Joey Hess
* Joey Hess
2488
  else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2489
    # As a last resort, use the slow shell script.  Don't cache a
2490
    # value for MKDIR_P within a source directory, because that will
2491
    # break other packages using the cache if that directory is
2492
    # removed, or if the value is a relative name.
2493
    MKDIR_P="$ac_install_sh -d"
1 by Joey Hess
* Joey Hess
2494
  fi
2495
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2497
$as_echo "$MKDIR_P" >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2498
2499
mkdir_p="$MKDIR_P"
2500
case $mkdir_p in
2501
  [\\/$]* | ?:[\\/]*) ;;
2502
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2503
esac
1 by Joey Hess
* Joey Hess
2504
2505
for ac_prog in gawk mawk nawk awk
2506
do
2507
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2508
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2510
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2511
if ${ac_cv_prog_AWK+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2512
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2513
else
2514
  if test -n "$AWK"; then
2515
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2516
else
2517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518
for as_dir in $PATH
2519
do
2520
  IFS=$as_save_IFS
2521
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2522
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2523
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2524
    ac_cv_prog_AWK="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2525
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2526
    break 2
2527
  fi
2528
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2529
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2530
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2531
2532
fi
2533
fi
2534
AWK=$ac_cv_prog_AWK
2535
if test -n "$AWK"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2537
$as_echo "$AWK" >&6; }
1 by Joey Hess
* Joey Hess
2538
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2540
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2541
fi
2542
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2543
1 by Joey Hess
* Joey Hess
2544
  test -n "$AWK" && break
2545
done
2546
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2548
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2549
set x ${MAKE-make}
2550
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2551
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2552
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2553
else
2554
  cat >conftest.make <<\_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2555
SHELL = /bin/sh
1 by Joey Hess
* Joey Hess
2556
all:
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2557
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1 by Joey Hess
* Joey Hess
2558
_ACEOF
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2559
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2560
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2561
  *@@@%%%=?*=@@@%%%*)
2562
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2563
  *)
2564
    eval ac_cv_prog_make_${ac_make}_set=no;;
2565
esac
1 by Joey Hess
* Joey Hess
2566
rm -f conftest.make
2567
fi
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2568
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2570
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
2571
  SET_MAKE=
2572
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2574
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2575
  SET_MAKE="MAKE=${MAKE-make}"
2576
fi
2577
2578
rm -rf .tst 2>/dev/null
2579
mkdir .tst 2>/dev/null
2580
if test -d .tst; then
2581
  am__leading_dot=.
2582
else
2583
  am__leading_dot=_
2584
fi
2585
rmdir .tst 2>/dev/null
2586
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2587
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2588
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2589
  # is not polluted with repeated "-I."
2590
  am__isrc=' -I$(srcdir)'
2591
  # test to see if srcdir already configured
2592
  if test -f $srcdir/config.status; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2593
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2594
  fi
1 by Joey Hess
* Joey Hess
2595
fi
2596
2597
# test whether we have cygpath
2598
if test -z "$CYGPATH_W"; then
2599
  if (cygpath --version) >/dev/null 2>/dev/null; then
2600
    CYGPATH_W='cygpath -w'
2601
  else
2602
    CYGPATH_W=echo
2603
  fi
2604
fi
2605
2606
2607
# Define the identity of the package.
2608
 PACKAGE='libdebian-installer'
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
2609
 VERSION='0.79ubuntu2'
1 by Joey Hess
* Joey Hess
2610
2611
2612
cat >>confdefs.h <<_ACEOF
2613
#define PACKAGE "$PACKAGE"
2614
_ACEOF
2615
2616
2617
cat >>confdefs.h <<_ACEOF
2618
#define VERSION "$VERSION"
2619
_ACEOF
2620
2621
# Some tools Automake needs.
2622
2623
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2624
2625
2626
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2627
2628
2629
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2630
2631
2632
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2633
2634
2635
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2636
2637
# We need awk for the "check" target.  The system "awk" is bad on
2638
# some platforms.
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2639
# Always define AMTAR for backward compatibility.
2640
2641
AMTAR=${AMTAR-"${am_missing_run}tar"}
2642
2643
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2644
2645
1 by Joey Hess
* Joey Hess
2646
2647
2648
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2649
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2651
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2652
    # Check whether --enable-maintainer-mode was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2653
if test "${enable_maintainer_mode+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2654
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1 by Joey Hess
* Joey Hess
2655
else
2656
  USE_MAINTAINER_MODE=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2657
fi
2658
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2660
$as_echo "$USE_MAINTAINER_MODE" >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2661
   if test $USE_MAINTAINER_MODE = yes; then
1 by Joey Hess
* Joey Hess
2662
  MAINTAINER_MODE_TRUE=
2663
  MAINTAINER_MODE_FALSE='#'
2664
else
2665
  MAINTAINER_MODE_TRUE='#'
2666
  MAINTAINER_MODE_FALSE=
2667
fi
2668
2669
  MAINT=$MAINTAINER_MODE_TRUE
2670
2671
2672
2673
ac_ext=c
2674
ac_cpp='$CPP $CPPFLAGS'
2675
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
if test -n "$ac_tool_prefix"; then
2679
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680
set dummy ${ac_tool_prefix}gcc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2682
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2683
if ${ac_cv_prog_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2684
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2685
else
2686
  if test -n "$CC"; then
2687
  ac_cv_prog_CC="$CC" # Let the user override the test.
2688
else
2689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
for as_dir in $PATH
2691
do
2692
  IFS=$as_save_IFS
2693
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2694
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2695
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2696
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2697
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2698
    break 2
2699
  fi
2700
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2701
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2702
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2703
2704
fi
2705
fi
2706
CC=$ac_cv_prog_CC
2707
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2709
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
2710
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2712
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2713
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2714
1 by Joey Hess
* Joey Hess
2715
2716
fi
2717
if test -z "$ac_cv_prog_CC"; then
2718
  ac_ct_CC=$CC
2719
  # Extract the first word of "gcc", so it can be a program name with args.
2720
set dummy gcc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2722
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2723
if ${ac_cv_prog_ac_ct_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2724
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2725
else
2726
  if test -n "$ac_ct_CC"; then
2727
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728
else
2729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730
for as_dir in $PATH
2731
do
2732
  IFS=$as_save_IFS
2733
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2734
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2736
    ac_cv_prog_ac_ct_CC="gcc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2737
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2738
    break 2
2739
  fi
2740
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2741
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2742
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2743
2744
fi
2745
fi
2746
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747
if test -n "$ac_ct_CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2748
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2749
$as_echo "$ac_ct_CC" >&6; }
1 by Joey Hess
* Joey Hess
2750
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2752
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2753
fi
2754
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2755
  if test "x$ac_ct_CC" = x; then
2756
    CC=""
2757
  else
2758
    case $cross_compiling:$ac_tool_warned in
2759
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2760
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2761
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2762
ac_tool_warned=yes ;;
2763
esac
2764
    CC=$ac_ct_CC
2765
  fi
1 by Joey Hess
* Joey Hess
2766
else
2767
  CC="$ac_cv_prog_CC"
2768
fi
2769
2770
if test -z "$CC"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2771
          if test -n "$ac_tool_prefix"; then
2772
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1 by Joey Hess
* Joey Hess
2773
set dummy ${ac_tool_prefix}cc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2775
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2776
if ${ac_cv_prog_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2777
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2778
else
2779
  if test -n "$CC"; then
2780
  ac_cv_prog_CC="$CC" # Let the user override the test.
2781
else
2782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783
for as_dir in $PATH
2784
do
2785
  IFS=$as_save_IFS
2786
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2787
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2789
    ac_cv_prog_CC="${ac_tool_prefix}cc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2790
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2791
    break 2
2792
  fi
2793
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2794
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2795
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2796
2797
fi
2798
fi
2799
CC=$ac_cv_prog_CC
2800
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2802
$as_echo "$CC" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2803
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2805
$as_echo "no" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2806
fi
2807
2808
1 by Joey Hess
* Joey Hess
2809
  fi
2810
fi
2811
if test -z "$CC"; then
2812
  # Extract the first word of "cc", so it can be a program name with args.
2813
set dummy cc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2815
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2816
if ${ac_cv_prog_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2817
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2818
else
2819
  if test -n "$CC"; then
2820
  ac_cv_prog_CC="$CC" # Let the user override the test.
2821
else
2822
  ac_prog_rejected=no
2823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824
for as_dir in $PATH
2825
do
2826
  IFS=$as_save_IFS
2827
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2828
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2829
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2830
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2831
       ac_prog_rejected=yes
2832
       continue
2833
     fi
2834
    ac_cv_prog_CC="cc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2835
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2836
    break 2
2837
  fi
2838
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2839
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2840
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2841
2842
if test $ac_prog_rejected = yes; then
2843
  # We found a bogon in the path, so make sure we never use it.
2844
  set dummy $ac_cv_prog_CC
2845
  shift
2846
  if test $# != 0; then
2847
    # We chose a different compiler from the bogus one.
2848
    # However, it has the same basename, so the bogon will be chosen
2849
    # first if we set CC to just the basename; use the full file name.
2850
    shift
2851
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852
  fi
2853
fi
2854
fi
2855
fi
2856
CC=$ac_cv_prog_CC
2857
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2859
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
2860
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2862
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2863
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2864
1 by Joey Hess
* Joey Hess
2865
2866
fi
2867
if test -z "$CC"; then
2868
  if test -n "$ac_tool_prefix"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2869
  for ac_prog in cl.exe
1 by Joey Hess
* Joey Hess
2870
  do
2871
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2872
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2874
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2875
if ${ac_cv_prog_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2876
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2877
else
2878
  if test -n "$CC"; then
2879
  ac_cv_prog_CC="$CC" # Let the user override the test.
2880
else
2881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882
for as_dir in $PATH
2883
do
2884
  IFS=$as_save_IFS
2885
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2886
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2888
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2889
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2890
    break 2
2891
  fi
2892
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2893
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2894
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2895
2896
fi
2897
fi
2898
CC=$ac_cv_prog_CC
2899
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2901
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
2902
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2904
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2905
fi
2906
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2907
1 by Joey Hess
* Joey Hess
2908
    test -n "$CC" && break
2909
  done
2910
fi
2911
if test -z "$CC"; then
2912
  ac_ct_CC=$CC
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2913
  for ac_prog in cl.exe
1 by Joey Hess
* Joey Hess
2914
do
2915
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2916
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2918
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2919
if ${ac_cv_prog_ac_ct_CC+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2920
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2921
else
2922
  if test -n "$ac_ct_CC"; then
2923
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924
else
2925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926
for as_dir in $PATH
2927
do
2928
  IFS=$as_save_IFS
2929
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2930
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2931
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2932
    ac_cv_prog_ac_ct_CC="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2934
    break 2
2935
  fi
2936
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2937
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2938
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2939
2940
fi
2941
fi
2942
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943
if test -n "$ac_ct_CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2945
$as_echo "$ac_ct_CC" >&6; }
1 by Joey Hess
* Joey Hess
2946
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2948
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2949
fi
2950
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2951
1 by Joey Hess
* Joey Hess
2952
  test -n "$ac_ct_CC" && break
2953
done
2954
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2955
  if test "x$ac_ct_CC" = x; then
2956
    CC=""
2957
  else
2958
    case $cross_compiling:$ac_tool_warned in
2959
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2960
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2961
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2962
ac_tool_warned=yes ;;
2963
esac
2964
    CC=$ac_ct_CC
2965
  fi
1 by Joey Hess
* Joey Hess
2966
fi
2967
2968
fi
2969
2970
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2971
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2972
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2973
as_fn_error $? "no acceptable C compiler found in \$PATH
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
2974
See \`config.log' for more details" "$LINENO" 5; }
1 by Joey Hess
* Joey Hess
2975
2976
# Provide some information about the compiler.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2977
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2978
set X $ac_compile
2979
ac_compiler=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2980
for ac_option in --version -v -V -qversion; do
2981
  { { ac_try="$ac_compiler $ac_option >&5"
2982
case "(($ac_try" in
2983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984
  *) ac_try_echo=$ac_try;;
2985
esac
2986
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987
$as_echo "$ac_try_echo"; } >&5
2988
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2989
  ac_status=$?
2990
  if test -s conftest.err; then
2991
    sed '10a\
2992
... rest of stderr output deleted ...
2993
         10q' conftest.err >conftest.er1
2994
    cat conftest.er1 >&5
2995
  fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2996
  rm -f conftest.er1 conftest.err
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998
  test $ac_status = 0; }
2999
done
1 by Joey Hess
* Joey Hess
3000
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3002
/* end confdefs.h.  */
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3003
1 by Joey Hess
* Joey Hess
3004
int
3005
main ()
3006
{
3007
3008
  ;
3009
  return 0;
3010
}
3011
_ACEOF
3012
ac_clean_files_save=$ac_clean_files
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3013
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1 by Joey Hess
* Joey Hess
3014
# Try to create an executable without -o first, disregard a.out.
3015
# It will help us diagnose broken compilers, and finding out an intuition
3016
# of exeext.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3018
$as_echo_n "checking whether the C compiler works... " >&6; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3019
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3020
3021
# The possible output files:
3022
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3023
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3024
ac_rmfiles=
3025
for ac_file in $ac_files
3026
do
3027
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3028
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3029
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3030
  esac
3031
done
3032
rm -f $ac_rmfiles
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3033
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3034
if { { ac_try="$ac_link_default"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3035
case "(($ac_try" in
3036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
  *) ac_try_echo=$ac_try;;
3038
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3039
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3041
  (eval "$ac_link_default") 2>&5
1 by Joey Hess
* Joey Hess
3042
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3043
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044
  test $ac_status = 0; }; then :
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3045
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3046
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3047
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3048
# so that the user can short-circuit this test for compilers unknown to
3049
# Autoconf.
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3050
for ac_file in $ac_files ''
1 by Joey Hess
* Joey Hess
3051
do
3052
  test -f "$ac_file" || continue
3053
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3054
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3055
	;;
3056
    [ab].out )
3057
	# We found the default executable, but exeext='' is most
3058
	# certainly right.
3059
	break;;
3060
    *.* )
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3061
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3062
	then :; else
3063
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064
	fi
3065
	# We set ac_cv_exeext here because the later test for it is not
3066
	# safe: cross compilers may not add the suffix if given an `-o'
3067
	# argument, so we may need to know it at that point already.
3068
	# Even if this section looks crufty: it has the advantage of
3069
	# actually working.
3070
	break;;
3071
    * )
3072
	break;;
1 by Joey Hess
* Joey Hess
3073
  esac
3074
done
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3075
test "$ac_cv_exeext" = no && ac_cv_exeext=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3076
1 by Joey Hess
* Joey Hess
3077
else
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3078
  ac_file=''
3079
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3080
if test -z "$ac_file"; then :
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082
$as_echo "no" >&6; }
3083
$as_echo "$as_me: failed program was:" >&5
1 by Joey Hess
* Joey Hess
3084
sed 's/^/| /' conftest.$ac_ext >&5
3085
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3086
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3087
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3088
as_fn_error 77 "C compiler cannot create executables
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3089
See \`config.log' for more details" "$LINENO" 5; }
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3090
else
3091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
3093
fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3095
$as_echo_n "checking for C compiler default output file name... " >&6; }
27 by Colin Watson
Reupload with the right autotools bits.
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3097
$as_echo "$ac_file" >&6; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3098
ac_exeext=$ac_cv_exeext
3099
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3100
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3101
ac_clean_files=$ac_clean_files_save
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3103
$as_echo_n "checking for suffix of executables... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3104
if { { ac_try="$ac_link"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3105
case "(($ac_try" in
3106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107
  *) ac_try_echo=$ac_try;;
3108
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3109
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3111
  (eval "$ac_link") 2>&5
1 by Joey Hess
* Joey Hess
3112
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3113
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114
  test $ac_status = 0; }; then :
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3115
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3116
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3117
# work properly (i.e., refer to `conftest.exe'), while it won't with
3118
# `rm'.
3119
for ac_file in conftest.exe conftest conftest.*; do
3120
  test -f "$ac_file" || continue
3121
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3122
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3123
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124
	  break;;
3125
    * ) break;;
3126
  esac
3127
done
1 by Joey Hess
* Joey Hess
3128
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3129
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3130
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3131
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3132
See \`config.log' for more details" "$LINENO" 5; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3133
fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3134
rm -f conftest conftest$ac_cv_exeext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3136
$as_echo "$ac_cv_exeext" >&6; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3137
3138
rm -f conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3139
EXEEXT=$ac_cv_exeext
3140
ac_exeext=$EXEEXT
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142
/* end confdefs.h.  */
3143
#include <stdio.h>
3144
int
3145
main ()
3146
{
3147
FILE *f = fopen ("conftest.out", "w");
3148
 return ferror (f) || fclose (f) != 0;
3149
3150
  ;
3151
  return 0;
3152
}
3153
_ACEOF
3154
ac_clean_files="$ac_clean_files conftest.out"
3155
# Check that the compiler produces executables we can run.  If not, either
3156
# the compiler is broken, or we cross compile.
3157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3158
$as_echo_n "checking whether we are cross compiling... " >&6; }
3159
if test "$cross_compiling" != yes; then
3160
  { { ac_try="$ac_link"
3161
case "(($ac_try" in
3162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163
  *) ac_try_echo=$ac_try;;
3164
esac
3165
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166
$as_echo "$ac_try_echo"; } >&5
3167
  (eval "$ac_link") 2>&5
3168
  ac_status=$?
3169
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170
  test $ac_status = 0; }
3171
  if { ac_try='./conftest$ac_cv_exeext'
3172
  { { case "(($ac_try" in
3173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174
  *) ac_try_echo=$ac_try;;
3175
esac
3176
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177
$as_echo "$ac_try_echo"; } >&5
3178
  (eval "$ac_try") 2>&5
3179
  ac_status=$?
3180
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181
  test $ac_status = 0; }; }; then
3182
    cross_compiling=no
3183
  else
3184
    if test "$cross_compiling" = maybe; then
3185
	cross_compiling=yes
3186
    else
3187
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3189
as_fn_error $? "cannot run C compiled programs.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3190
If you meant to cross compile, use \`--host'.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3191
See \`config.log' for more details" "$LINENO" 5; }
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3192
    fi
3193
  fi
3194
fi
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3196
$as_echo "$cross_compiling" >&6; }
3197
3198
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3199
ac_clean_files=$ac_clean_files_save
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3201
$as_echo_n "checking for suffix of object files... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3202
if ${ac_cv_objext+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3203
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3204
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3205
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3206
/* end confdefs.h.  */
3207
3208
int
3209
main ()
3210
{
3211
3212
  ;
3213
  return 0;
3214
}
3215
_ACEOF
3216
rm -f conftest.o conftest.obj
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3217
if { { ac_try="$ac_compile"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3218
case "(($ac_try" in
3219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220
  *) ac_try_echo=$ac_try;;
3221
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3224
  (eval "$ac_compile") 2>&5
1 by Joey Hess
* Joey Hess
3225
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3226
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227
  test $ac_status = 0; }; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3228
  for ac_file in conftest.o conftest.obj conftest.*; do
3229
  test -f "$ac_file" || continue;
1 by Joey Hess
* Joey Hess
3230
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3231
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1 by Joey Hess
* Joey Hess
3232
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233
       break;;
3234
  esac
3235
done
3236
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3237
  $as_echo "$as_me: failed program was:" >&5
1 by Joey Hess
* Joey Hess
3238
sed 's/^/| /' conftest.$ac_ext >&5
3239
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3242
as_fn_error $? "cannot compute suffix of object files: cannot compile
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3243
See \`config.log' for more details" "$LINENO" 5; }
1 by Joey Hess
* Joey Hess
3244
fi
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3245
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3246
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3248
$as_echo "$ac_cv_objext" >&6; }
1 by Joey Hess
* Joey Hess
3249
OBJEXT=$ac_cv_objext
3250
ac_objext=$OBJEXT
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3252
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3253
if ${ac_cv_c_compiler_gnu+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3254
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3255
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3256
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3257
/* end confdefs.h.  */
3258
3259
int
3260
main ()
3261
{
3262
#ifndef __GNUC__
3263
       choke me
3264
#endif
3265
3266
  ;
3267
  return 0;
3268
}
3269
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3270
if ac_fn_c_try_compile "$LINENO"; then :
1 by Joey Hess
* Joey Hess
3271
  ac_compiler_gnu=yes
3272
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3273
  ac_compiler_gnu=no
1 by Joey Hess
* Joey Hess
3274
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3276
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277
3278
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3280
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3281
if test $ac_compiler_gnu = yes; then
3282
  GCC=yes
3283
else
3284
  GCC=
3285
fi
1 by Joey Hess
* Joey Hess
3286
ac_test_CFLAGS=${CFLAGS+set}
3287
ac_save_CFLAGS=$CFLAGS
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3289
$as_echo_n "checking whether $CC accepts -g... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3290
if ${ac_cv_prog_cc_g+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3291
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3292
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3293
  ac_save_c_werror_flag=$ac_c_werror_flag
3294
   ac_c_werror_flag=yes
3295
   ac_cv_prog_cc_g=no
3296
   CFLAGS="-g"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3297
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3298
/* end confdefs.h.  */
3299
3300
int
3301
main ()
3302
{
3303
3304
  ;
3305
  return 0;
3306
}
3307
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3308
if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3309
  ac_cv_prog_cc_g=yes
3310
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3311
  CFLAGS=""
3312
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3313
/* end confdefs.h.  */
3314
3315
int
3316
main ()
3317
{
3318
3319
  ;
3320
  return 0;
3321
}
3322
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3323
if ac_fn_c_try_compile "$LINENO"; then :
3324
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3325
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3326
  ac_c_werror_flag=$ac_save_c_werror_flag
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3327
	 CFLAGS="-g"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3328
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3329
/* end confdefs.h.  */
3330
3331
int
3332
main ()
3333
{
3334
3335
  ;
3336
  return 0;
3337
}
3338
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3339
if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3340
  ac_cv_prog_cc_g=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3341
fi
3342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343
fi
3344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3347
   ac_c_werror_flag=$ac_save_c_werror_flag
3348
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3350
$as_echo "$ac_cv_prog_cc_g" >&6; }
1 by Joey Hess
* Joey Hess
3351
if test "$ac_test_CFLAGS" = set; then
3352
  CFLAGS=$ac_save_CFLAGS
3353
elif test $ac_cv_prog_cc_g = yes; then
3354
  if test "$GCC" = yes; then
3355
    CFLAGS="-g -O2"
3356
  else
3357
    CFLAGS="-g"
3358
  fi
3359
else
3360
  if test "$GCC" = yes; then
3361
    CFLAGS="-O2"
3362
  else
3363
    CFLAGS=
3364
  fi
3365
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3367
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3368
if ${ac_cv_prog_cc_c89+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3369
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3370
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3371
  ac_cv_prog_cc_c89=no
1 by Joey Hess
* Joey Hess
3372
ac_save_CC=$CC
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3374
/* end confdefs.h.  */
3375
#include <stdarg.h>
3376
#include <stdio.h>
3377
#include <sys/types.h>
3378
#include <sys/stat.h>
3379
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380
struct buf { int x; };
3381
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382
static char *e (p, i)
3383
     char **p;
3384
     int i;
3385
{
3386
  return p[i];
3387
}
3388
static char *f (char * (*g) (char **, int), char **p, ...)
3389
{
3390
  char *s;
3391
  va_list v;
3392
  va_start (v,p);
3393
  s = g (p, va_arg (v,int));
3394
  va_end (v);
3395
  return s;
3396
}
3397
3398
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399
   function prototypes and stuff, but not '\xHH' hex character constants.
3400
   These don't provoke an error unfortunately, instead are silently treated
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3401
   as 'x'.  The following induces an error, until -std is added to get
1 by Joey Hess
* Joey Hess
3402
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403
   array size at least.  It's necessary to write '\x00'==0 to get something
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3404
   that's true only with -std.  */
1 by Joey Hess
* Joey Hess
3405
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3407
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408
   inside strings and character constants.  */
3409
#define FOO(x) 'x'
3410
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
1 by Joey Hess
* Joey Hess
3412
int test (int i, double x);
3413
struct s1 {int (*f) (int a);};
3414
struct s2 {int (*f) (double a);};
3415
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416
int argc;
3417
char **argv;
3418
int
3419
main ()
3420
{
3421
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422
  ;
3423
  return 0;
3424
}
3425
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3426
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1 by Joey Hess
* Joey Hess
3428
do
3429
  CC="$ac_save_CC $ac_arg"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3430
  if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3431
  ac_cv_prog_cc_c89=$ac_arg
1 by Joey Hess
* Joey Hess
3432
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3433
rm -f core conftest.err conftest.$ac_objext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3434
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1 by Joey Hess
* Joey Hess
3435
done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3436
rm -f conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3437
CC=$ac_save_CC
3438
3439
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3440
# AC_CACHE_VAL
3441
case "x$ac_cv_prog_cc_c89" in
3442
  x)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3443
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3444
$as_echo "none needed" >&6; } ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3445
  xno)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3446
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3447
$as_echo "unsupported" >&6; } ;;
1 by Joey Hess
* Joey Hess
3448
  *)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3449
    CC="$CC $ac_cv_prog_cc_c89"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3450
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3451
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1 by Joey Hess
* Joey Hess
3452
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3453
if test "x$ac_cv_prog_cc_c89" != xno; then :
1 by Joey Hess
* Joey Hess
3454
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3455
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3456
1 by Joey Hess
* Joey Hess
3457
ac_ext=c
3458
ac_cpp='$CPP $CPPFLAGS'
3459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
DEPDIR="${am__leading_dot}deps"
3463
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3464
ac_config_commands="$ac_config_commands depfiles"
1 by Joey Hess
* Joey Hess
3465
3466
3467
am_make=${MAKE-make}
3468
cat > confinc << 'END'
3469
am__doit:
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3470
	@echo this is the am__doit target
1 by Joey Hess
* Joey Hess
3471
.PHONY: am__doit
3472
END
3473
# If we don't find an include directive, just comment out the code.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3475
$as_echo_n "checking for style of include used by $am_make... " >&6; }
1 by Joey Hess
* Joey Hess
3476
am__include="#"
3477
am__quote=
3478
_am_result=none
3479
# First try GNU make style include.
3480
echo "include confinc" > confmf
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3481
# Ignore all kinds of additional output from `make'.
3482
case `$am_make -s -f confmf 2> /dev/null` in #(
3483
*the\ am__doit\ target*)
3484
  am__include=include
3485
  am__quote=
3486
  _am_result=GNU
3487
  ;;
3488
esac
1 by Joey Hess
* Joey Hess
3489
# Now try BSD make style include.
3490
if test "$am__include" = "#"; then
3491
   echo '.include "confinc"' > confmf
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3492
   case `$am_make -s -f confmf 2> /dev/null` in #(
3493
   *the\ am__doit\ target*)
3494
     am__include=.include
3495
     am__quote="\""
3496
     _am_result=BSD
3497
     ;;
3498
   esac
1 by Joey Hess
* Joey Hess
3499
fi
3500
3501
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3503
$as_echo "$_am_result" >&6; }
1 by Joey Hess
* Joey Hess
3504
rm -f confinc confmf
3505
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3506
# Check whether --enable-dependency-tracking was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3507
if test "${enable_dependency_tracking+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3508
  enableval=$enable_dependency_tracking;
3509
fi
1 by Joey Hess
* Joey Hess
3510
3511
if test "x$enable_dependency_tracking" != xno; then
3512
  am_depcomp="$ac_aux_dir/depcomp"
3513
  AMDEPBACKSLASH='\'
3514
fi
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3515
 if test "x$enable_dependency_tracking" != xno; then
1 by Joey Hess
* Joey Hess
3516
  AMDEP_TRUE=
3517
  AMDEP_FALSE='#'
3518
else
3519
  AMDEP_TRUE='#'
3520
  AMDEP_FALSE=
3521
fi
3522
3523
3524
3525
depcc="$CC"   am_compiler_list=
3526
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3528
$as_echo_n "checking dependency style of $depcc... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3529
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3530
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3531
else
3532
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3533
  # We make a subdir and do the tests there.  Otherwise we can end up
3534
  # making bogus files that we don't know about and never remove.  For
3535
  # instance it was reported that on HP-UX the gcc test will end up
3536
  # making a dummy file named `D' -- because `-MD' means `put the output
3537
  # in D'.
3538
  mkdir conftest.dir
3539
  # Copy depcomp to subdir because otherwise we won't find it if we're
3540
  # using a relative directory.
3541
  cp "$am_depcomp" conftest.dir
3542
  cd conftest.dir
3543
  # We will build objects and dependencies in a subdirectory because
3544
  # it helps to detect inapplicable dependency modes.  For instance
3545
  # both Tru64's cc and ICC support -MD to output dependencies as a
3546
  # side effect of compilation, but ICC will put the dependencies in
3547
  # the current directory while Tru64 will put them in the object
3548
  # directory.
3549
  mkdir sub
3550
3551
  am_cv_CC_dependencies_compiler_type=none
3552
  if test "$am_compiler_list" = ""; then
3553
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3554
  fi
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3555
  am__universal=false
3556
  case " $depcc " in #(
3557
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3558
     esac
3559
1 by Joey Hess
* Joey Hess
3560
  for depmode in $am_compiler_list; do
3561
    # Setup a source with many dependencies, because some compilers
3562
    # like to wrap large dependency lists on column 80 (with \), and
3563
    # we should not choose a depcomp mode which is confused by this.
3564
    #
3565
    # We need to recreate these files for each test, as the compiler may
3566
    # overwrite some of them when testing with obscure command lines.
3567
    # This happens at least with the AIX C compiler.
3568
    : > sub/conftest.c
3569
    for i in 1 2 3 4 5 6; do
3570
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3571
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3572
      # Solaris 8's {/usr,}/bin/sh.
3573
      touch sub/conftst$i.h
3574
    done
3575
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3576
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3577
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578
    # mode.  It turns out that the SunPro C++ compiler does not properly
3579
    # handle `-M -o', and we need to detect this.  Also, some Intel
3580
    # versions had trouble with output in subdirs
3581
    am__obj=sub/conftest.${OBJEXT-o}
3582
    am__minus_obj="-o $am__obj"
1 by Joey Hess
* Joey Hess
3583
    case $depmode in
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3584
    gcc)
3585
      # This depmode causes a compiler race in universal mode.
3586
      test "$am__universal" = false || continue
3587
      ;;
1 by Joey Hess
* Joey Hess
3588
    nosideeffect)
3589
      # after this tag, mechanisms are not by side-effect, so they'll
3590
      # only be used when explicitly requested
3591
      if test "x$enable_dependency_tracking" = xyes; then
3592
	continue
3593
      else
3594
	break
3595
      fi
3596
      ;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3597
    msvisualcpp | msvcmsys)
3598
      # This compiler won't grok `-c -o', but also, the minuso test has
3599
      # not run yet.  These depmodes are late enough in the game, and
3600
      # so weak that their functioning should not be impacted.
3601
      am__obj=conftest.${OBJEXT-o}
3602
      am__minus_obj=
3603
      ;;
1 by Joey Hess
* Joey Hess
3604
    none) break ;;
3605
    esac
3606
    if depmode=$depmode \
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3607
       source=sub/conftest.c object=$am__obj \
1 by Joey Hess
* Joey Hess
3608
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3609
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1 by Joey Hess
* Joey Hess
3610
         >/dev/null 2>conftest.err &&
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3611
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Joey Hess
* Joey Hess
3612
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3613
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1 by Joey Hess
* Joey Hess
3614
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615
      # icc doesn't choke on unknown options, it will just issue warnings
2 by Colin Watson
* Update GPL notices with the FSF's new address.
3616
      # or remarks (even with -Werror).  So we grep stderr for any message
3617
      # that says an option was ignored or not supported.
3618
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3619
      #   icc: Command line warning: ignoring option '-M'; no argument required
3620
      # The diagnosis changed in icc 8.0:
3621
      #   icc: Command line remark: option '-MP' not supported
3622
      if (grep 'ignoring option' conftest.err ||
3623
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1 by Joey Hess
* Joey Hess
3624
        am_cv_CC_dependencies_compiler_type=$depmode
3625
        break
3626
      fi
3627
    fi
3628
  done
3629
3630
  cd ..
3631
  rm -rf conftest.dir
3632
else
3633
  am_cv_CC_dependencies_compiler_type=none
3634
fi
3635
3636
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3638
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1 by Joey Hess
* Joey Hess
3639
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3640
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3641
 if
1 by Joey Hess
* Joey Hess
3642
  test "x$enable_dependency_tracking" != xno \
3643
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3644
  am__fastdepCC_TRUE=
3645
  am__fastdepCC_FALSE='#'
3646
else
3647
  am__fastdepCC_TRUE='#'
3648
  am__fastdepCC_FALSE=
3649
fi
3650
3651
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3652
case `pwd` in
3653
  *\ * | *\	*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3654
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3655
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3656
esac
3657
3658
3659
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3660
macro_version='2.4'
3661
macro_revision='1.3293'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
ltmain="$ac_aux_dir/ltmain.sh"
1 by Joey Hess
* Joey Hess
3676
3677
# Make sure we can run config.sub.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3678
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3679
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3680
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3682
$as_echo_n "checking build system type... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3683
if ${ac_cv_build+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3684
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3685
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3686
  ac_build_alias=$build_alias
3687
test "x$ac_build_alias" = x &&
3688
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3689
test "x$ac_build_alias" = x &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3690
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3691
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3692
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3693
3694
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3696
$as_echo "$ac_cv_build" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3697
case $ac_cv_build in
3698
*-*-*) ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3699
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3700
esac
1 by Joey Hess
* Joey Hess
3701
build=$ac_cv_build
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3702
ac_save_IFS=$IFS; IFS='-'
3703
set x $ac_cv_build
3704
shift
3705
build_cpu=$1
3706
build_vendor=$2
3707
shift; shift
3708
# Remember, the first character of IFS is used to create $*,
3709
# except with old shells:
3710
build_os=$*
3711
IFS=$ac_save_IFS
3712
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3716
$as_echo_n "checking host system type... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3717
if ${ac_cv_host+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3718
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3719
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3720
  if test "x$host_alias" = x; then
3721
  ac_cv_host=$ac_cv_build
3722
else
3723
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3724
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3725
fi
1 by Joey Hess
* Joey Hess
3726
3727
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3729
$as_echo "$ac_cv_host" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3730
case $ac_cv_host in
3731
*-*-*) ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3732
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3733
esac
1 by Joey Hess
* Joey Hess
3734
host=$ac_cv_host
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3735
ac_save_IFS=$IFS; IFS='-'
3736
set x $ac_cv_host
3737
shift
3738
host_cpu=$1
3739
host_vendor=$2
3740
shift; shift
3741
# Remember, the first character of IFS is used to create $*,
3742
# except with old shells:
3743
host_os=$*
3744
IFS=$ac_save_IFS
3745
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3746
3747
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3748
# Backslashify metacharacters that are still active within
3749
# double-quoted strings.
3750
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3751
3752
# Same as above, but do not quote variable references.
3753
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3754
3755
# Sed substitution to delay expansion of an escaped shell variable in a
3756
# double_quote_subst'ed string.
3757
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3758
3759
# Sed substitution to delay expansion of an escaped single quote.
3760
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3761
3762
# Sed substitution to avoid accidental globbing in evaled expressions
3763
no_glob_subst='s/\*/\\\*/g'
3764
3765
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3766
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3767
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3768
3769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3770
$as_echo_n "checking how to print strings... " >&6; }
3771
# Test print first, because it will be a builtin if present.
3772
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3773
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3774
  ECHO='print -r --'
3775
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3776
  ECHO='printf %s\n'
3777
else
3778
  # Use this function as a fallback that always works.
3779
  func_fallback_echo ()
3780
  {
3781
    eval 'cat <<_LTECHO_EOF
3782
$1
3783
_LTECHO_EOF'
3784
  }
3785
  ECHO='func_fallback_echo'
3786
fi
3787
3788
# func_echo_all arg...
3789
# Invoke $ECHO with all args, space-separated.
3790
func_echo_all ()
3791
{
3792
    $ECHO ""
3793
}
3794
3795
case "$ECHO" in
3796
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3797
$as_echo "printf" >&6; } ;;
3798
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3799
$as_echo "print -r" >&6; } ;;
3800
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3801
$as_echo "cat" >&6; } ;;
3802
esac
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3818
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3819
if ${ac_cv_path_SED+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3820
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3821
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3822
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3823
     for ac_i in 1 2 3 4 5 6 7; do
3824
       ac_script="$ac_script$as_nl$ac_script"
3825
     done
3826
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3827
     { ac_script=; unset ac_script;}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3828
     if test -z "$SED"; then
3829
  ac_path_SED_found=false
3830
  # Loop through the user's path and test for each of PROGNAME-LIST
3831
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1 by Joey Hess
* Joey Hess
3832
for as_dir in $PATH
3833
do
3834
  IFS=$as_save_IFS
3835
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3836
    for ac_prog in sed gsed; do
1 by Joey Hess
* Joey Hess
3837
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3838
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3839
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3840
# Check for GNU ac_path_SED and select it if it is found.
3841
  # Check for GNU $ac_path_SED
3842
case `"$ac_path_SED" --version 2>&1` in
3843
*GNU*)
3844
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3845
*)
3846
  ac_count=0
3847
  $as_echo_n 0123456789 >"conftest.in"
3848
  while :
3849
  do
3850
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3851
    mv "conftest.tmp" "conftest.in"
3852
    cp "conftest.in" "conftest.nl"
3853
    $as_echo '' >> "conftest.nl"
3854
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3855
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3856
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3857
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3858
      # Best one so far, save it but keep looking for a better one
3859
      ac_cv_path_SED="$ac_path_SED"
3860
      ac_path_SED_max=$ac_count
3861
    fi
3862
    # 10*(2^10) chars as input seems more than enough
3863
    test $ac_count -gt 10 && break
3864
  done
3865
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866
esac
3867
3868
      $ac_path_SED_found && break 3
1 by Joey Hess
* Joey Hess
3869
    done
3870
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3871
  done
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3872
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3873
  if test -z "$ac_cv_path_SED"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3874
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3875
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3876
else
3877
  ac_cv_path_SED=$SED
3878
fi
3879
3880
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3882
$as_echo "$ac_cv_path_SED" >&6; }
3883
 SED="$ac_cv_path_SED"
3884
  rm -f conftest.sed
3885
3886
test -z "$SED" && SED=sed
3887
Xsed="$SED -e 1s/^X//"
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3900
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3901
if ${ac_cv_path_GREP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3902
  $as_echo_n "(cached) " >&6
3903
else
3904
  if test -z "$GREP"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3905
  ac_path_GREP_found=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3906
  # Loop through the user's path and test for each of PROGNAME-LIST
3907
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3908
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909
do
3910
  IFS=$as_save_IFS
3911
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3912
    for ac_prog in grep ggrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3913
    for ac_exec_ext in '' $ac_executable_extensions; do
3914
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3916
# Check for GNU ac_path_GREP and select it if it is found.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3917
  # Check for GNU $ac_path_GREP
3918
case `"$ac_path_GREP" --version 2>&1` in
3919
*GNU*)
3920
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921
*)
3922
  ac_count=0
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3923
  $as_echo_n 0123456789 >"conftest.in"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3924
  while :
3925
  do
3926
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3927
    mv "conftest.tmp" "conftest.in"
3928
    cp "conftest.in" "conftest.nl"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3929
    $as_echo 'GREP' >> "conftest.nl"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3930
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3932
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3933
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934
      # Best one so far, save it but keep looking for a better one
3935
      ac_cv_path_GREP="$ac_path_GREP"
3936
      ac_path_GREP_max=$ac_count
3937
    fi
3938
    # 10*(2^10) chars as input seems more than enough
3939
    test $ac_count -gt 10 && break
3940
  done
3941
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942
esac
3943
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3944
      $ac_path_GREP_found && break 3
3945
    done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3946
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3947
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3948
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3949
  if test -z "$ac_cv_path_GREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3950
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3951
  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3952
else
3953
  ac_cv_path_GREP=$GREP
3954
fi
3955
3956
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3958
$as_echo "$ac_cv_path_GREP" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3959
 GREP="$ac_cv_path_GREP"
3960
3961
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3963
$as_echo_n "checking for egrep... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
3964
if ${ac_cv_path_EGREP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3965
  $as_echo_n "(cached) " >&6
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3966
else
3967
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968
   then ac_cv_path_EGREP="$GREP -E"
3969
   else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3970
     if test -z "$EGREP"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3971
  ac_path_EGREP_found=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3972
  # Loop through the user's path and test for each of PROGNAME-LIST
3973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3974
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975
do
3976
  IFS=$as_save_IFS
3977
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3978
    for ac_prog in egrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3979
    for ac_exec_ext in '' $ac_executable_extensions; do
3980
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982
# Check for GNU ac_path_EGREP and select it if it is found.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3983
  # Check for GNU $ac_path_EGREP
3984
case `"$ac_path_EGREP" --version 2>&1` in
3985
*GNU*)
3986
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987
*)
3988
  ac_count=0
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3989
  $as_echo_n 0123456789 >"conftest.in"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3990
  while :
3991
  do
3992
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3993
    mv "conftest.tmp" "conftest.in"
3994
    cp "conftest.in" "conftest.nl"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3995
    $as_echo 'EGREP' >> "conftest.nl"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3996
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3998
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3999
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000
      # Best one so far, save it but keep looking for a better one
4001
      ac_cv_path_EGREP="$ac_path_EGREP"
4002
      ac_path_EGREP_max=$ac_count
4003
    fi
4004
    # 10*(2^10) chars as input seems more than enough
4005
    test $ac_count -gt 10 && break
4006
  done
4007
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008
esac
4009
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4010
      $ac_path_EGREP_found && break 3
4011
    done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4012
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4013
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4014
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4015
  if test -z "$ac_cv_path_EGREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4016
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4017
  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4018
else
4019
  ac_cv_path_EGREP=$EGREP
4020
fi
4021
4022
   fi
4023
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4025
$as_echo "$ac_cv_path_EGREP" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4026
 EGREP="$ac_cv_path_EGREP"
4027
4028
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4030
$as_echo_n "checking for fgrep... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4031
if ${ac_cv_path_FGREP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4032
  $as_echo_n "(cached) " >&6
4033
else
4034
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4035
   then ac_cv_path_FGREP="$GREP -F"
4036
   else
4037
     if test -z "$FGREP"; then
4038
  ac_path_FGREP_found=false
4039
  # Loop through the user's path and test for each of PROGNAME-LIST
4040
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4042
do
4043
  IFS=$as_save_IFS
4044
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4045
    for ac_prog in fgrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4046
    for ac_exec_ext in '' $ac_executable_extensions; do
4047
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4048
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4049
# Check for GNU ac_path_FGREP and select it if it is found.
4050
  # Check for GNU $ac_path_FGREP
4051
case `"$ac_path_FGREP" --version 2>&1` in
4052
*GNU*)
4053
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4054
*)
4055
  ac_count=0
4056
  $as_echo_n 0123456789 >"conftest.in"
4057
  while :
4058
  do
4059
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4060
    mv "conftest.tmp" "conftest.in"
4061
    cp "conftest.in" "conftest.nl"
4062
    $as_echo 'FGREP' >> "conftest.nl"
4063
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4065
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4066
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4067
      # Best one so far, save it but keep looking for a better one
4068
      ac_cv_path_FGREP="$ac_path_FGREP"
4069
      ac_path_FGREP_max=$ac_count
4070
    fi
4071
    # 10*(2^10) chars as input seems more than enough
4072
    test $ac_count -gt 10 && break
4073
  done
4074
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4075
esac
4076
4077
      $ac_path_FGREP_found && break 3
4078
    done
4079
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4080
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4081
IFS=$as_save_IFS
4082
  if test -z "$ac_cv_path_FGREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4083
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4084
  fi
4085
else
4086
  ac_cv_path_FGREP=$FGREP
4087
fi
4088
4089
   fi
4090
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4092
$as_echo "$ac_cv_path_FGREP" >&6; }
4093
 FGREP="$ac_cv_path_FGREP"
4094
4095
4096
test -z "$GREP" && GREP=grep
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4115
4116
# Check whether --with-gnu-ld was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4117
if test "${with_gnu_ld+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4118
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1 by Joey Hess
* Joey Hess
4119
else
4120
  with_gnu_ld=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4121
fi
4122
1 by Joey Hess
* Joey Hess
4123
ac_prog=ld
4124
if test "$GCC" = yes; then
4125
  # Check if gcc -print-prog-name=ld gives a path.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4126
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4127
$as_echo_n "checking for ld used by $CC... " >&6; }
1 by Joey Hess
* Joey Hess
4128
  case $host in
4129
  *-*-mingw*)
4130
    # gcc leaves a trailing carriage return which upsets mingw
4131
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4132
  *)
4133
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4134
  esac
4135
  case $ac_prog in
4136
    # Accept absolute paths.
4137
    [\\/]* | ?:[\\/]*)
4138
      re_direlt='/[^/][^/]*/\.\./'
4139
      # Canonicalize the pathname of ld
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4140
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4141
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4142
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Joey Hess
* Joey Hess
4143
      done
4144
      test -z "$LD" && LD="$ac_prog"
4145
      ;;
4146
  "")
4147
    # If it fails, then pretend we aren't using GCC.
4148
    ac_prog=ld
4149
    ;;
4150
  *)
4151
    # If it is relative, then search for the first ld in PATH.
4152
    with_gnu_ld=unknown
4153
    ;;
4154
  esac
4155
elif test "$with_gnu_ld" = yes; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4156
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4157
$as_echo_n "checking for GNU ld... " >&6; }
1 by Joey Hess
* Joey Hess
4158
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4159
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4160
$as_echo_n "checking for non-GNU ld... " >&6; }
1 by Joey Hess
* Joey Hess
4161
fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4162
if ${lt_cv_path_LD+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4163
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4164
else
4165
  if test -z "$LD"; then
4166
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4167
  for ac_dir in $PATH; do
4168
    IFS="$lt_save_ifs"
4169
    test -z "$ac_dir" && ac_dir=.
4170
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4171
      lt_cv_path_LD="$ac_dir/$ac_prog"
4172
      # Check to see if the program is GNU ld.  I'd rather use --version,
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4173
      # but apparently some variants of GNU ld only accept -v.
1 by Joey Hess
* Joey Hess
4174
      # Break only if it was the GNU/non-GNU ld that we prefer.
4175
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4176
      *GNU* | *'with BFD'*)
4177
	test "$with_gnu_ld" != no && break
4178
	;;
4179
      *)
4180
	test "$with_gnu_ld" != yes && break
4181
	;;
4182
      esac
4183
    fi
4184
  done
4185
  IFS="$lt_save_ifs"
4186
else
4187
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4188
fi
4189
fi
4190
4191
LD="$lt_cv_path_LD"
4192
if test -n "$LD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4193
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4194
$as_echo "$LD" >&6; }
1 by Joey Hess
* Joey Hess
4195
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4197
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
4198
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4199
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4201
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4202
if ${lt_cv_prog_gnu_ld+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4203
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4204
else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4205
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
1 by Joey Hess
* Joey Hess
4206
case `$LD -v 2>&1 </dev/null` in
4207
*GNU* | *'with BFD'*)
4208
  lt_cv_prog_gnu_ld=yes
4209
  ;;
4210
*)
4211
  lt_cv_prog_gnu_ld=no
4212
  ;;
4213
esac
4214
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4216
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1 by Joey Hess
* Joey Hess
4217
with_gnu_ld=$lt_cv_prog_gnu_ld
4218
4219
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4220
4221
4222
4223
4224
4225
4226
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4228
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4229
if ${lt_cv_path_NM+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4230
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4231
else
4232
  if test -n "$NM"; then
4233
  # Let the user override the test.
4234
  lt_cv_path_NM="$NM"
4235
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4236
  lt_nm_to_check="${ac_tool_prefix}nm"
4237
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4238
    lt_nm_to_check="$lt_nm_to_check nm"
4239
  fi
4240
  for lt_tmp_nm in $lt_nm_to_check; do
4241
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4242
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4243
      IFS="$lt_save_ifs"
4244
      test -z "$ac_dir" && ac_dir=.
4245
      tmp_nm="$ac_dir/$lt_tmp_nm"
4246
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4247
	# Check to see if the nm accepts a BSD-compat flag.
4248
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4249
	#   nm: unknown option "B" ignored
4250
	# Tru64's nm complains that /dev/null is an invalid object file
4251
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4252
	*/dev/null* | *'Invalid file or object type'*)
4253
	  lt_cv_path_NM="$tmp_nm -B"
1 by Joey Hess
* Joey Hess
4254
	  break
4255
	  ;;
4256
	*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4257
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4258
	  */dev/null*)
4259
	    lt_cv_path_NM="$tmp_nm -p"
4260
	    break
4261
	    ;;
4262
	  *)
4263
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4264
	    continue # so that we can try to find one that supports BSD flags
4265
	    ;;
4266
	  esac
1 by Joey Hess
* Joey Hess
4267
	  ;;
4268
	esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4269
      fi
4270
    done
4271
    IFS="$lt_save_ifs"
1 by Joey Hess
* Joey Hess
4272
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4273
  : ${lt_cv_path_NM=no}
4274
fi
4275
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4277
$as_echo "$lt_cv_path_NM" >&6; }
4278
if test "$lt_cv_path_NM" != "no"; then
4279
  NM="$lt_cv_path_NM"
4280
else
4281
  # Didn't find any BSD compatible name lister, look for dumpbin.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4282
  if test -n "$DUMPBIN"; then :
4283
    # Let the user override the test.
4284
  else
4285
    if test -n "$ac_tool_prefix"; then
4286
  for ac_prog in dumpbin "link -dump"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4287
  do
4288
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4291
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4292
if ${ac_cv_prog_DUMPBIN+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4293
  $as_echo_n "(cached) " >&6
4294
else
4295
  if test -n "$DUMPBIN"; then
4296
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4297
else
4298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299
for as_dir in $PATH
4300
do
4301
  IFS=$as_save_IFS
4302
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4303
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4304
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4306
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4307
    break 2
4308
  fi
4309
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4310
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4311
IFS=$as_save_IFS
4312
4313
fi
4314
fi
4315
DUMPBIN=$ac_cv_prog_DUMPBIN
4316
if test -n "$DUMPBIN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4318
$as_echo "$DUMPBIN" >&6; }
4319
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4321
$as_echo "no" >&6; }
4322
fi
4323
4324
4325
    test -n "$DUMPBIN" && break
4326
  done
4327
fi
4328
if test -z "$DUMPBIN"; then
4329
  ac_ct_DUMPBIN=$DUMPBIN
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4330
  for ac_prog in dumpbin "link -dump"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4331
do
4332
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4333
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4335
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4336
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4337
  $as_echo_n "(cached) " >&6
4338
else
4339
  if test -n "$ac_ct_DUMPBIN"; then
4340
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4341
else
4342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343
for as_dir in $PATH
4344
do
4345
  IFS=$as_save_IFS
4346
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4347
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4351
    break 2
4352
  fi
4353
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4354
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4355
IFS=$as_save_IFS
4356
4357
fi
4358
fi
4359
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4360
if test -n "$ac_ct_DUMPBIN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4362
$as_echo "$ac_ct_DUMPBIN" >&6; }
4363
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4365
$as_echo "no" >&6; }
4366
fi
4367
4368
4369
  test -n "$ac_ct_DUMPBIN" && break
4370
done
4371
4372
  if test "x$ac_ct_DUMPBIN" = x; then
4373
    DUMPBIN=":"
4374
  else
4375
    case $cross_compiling:$ac_tool_warned in
4376
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4378
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379
ac_tool_warned=yes ;;
4380
esac
4381
    DUMPBIN=$ac_ct_DUMPBIN
4382
  fi
4383
fi
4384
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4385
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4386
    *COFF*)
4387
      DUMPBIN="$DUMPBIN -symbols"
4388
      ;;
4389
    *)
4390
      DUMPBIN=:
4391
      ;;
4392
    esac
4393
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4394
4395
  if test "$DUMPBIN" != ":"; then
4396
    NM="$DUMPBIN"
4397
  fi
4398
fi
4399
test -z "$NM" && NM=nm
4400
4401
4402
4403
4404
4405
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4407
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4408
if ${lt_cv_nm_interface+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4409
  $as_echo_n "(cached) " >&6
4410
else
4411
  lt_cv_nm_interface="BSD nm"
4412
  echo "int some_variable = 0;" > conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4413
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4414
  (eval "$ac_compile" 2>conftest.err)
4415
  cat conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4416
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4417
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4418
  cat conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4419
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4420
  cat conftest.out >&5
4421
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4422
    lt_cv_nm_interface="MS dumpbin"
4423
  fi
4424
  rm -f conftest*
4425
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4427
$as_echo "$lt_cv_nm_interface" >&6; }
4428
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4430
$as_echo_n "checking whether ln -s works... " >&6; }
1 by Joey Hess
* Joey Hess
4431
LN_S=$as_ln_s
4432
if test "$LN_S" = "ln -s"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4434
$as_echo "yes" >&6; }
4435
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4437
$as_echo "no, using $LN_S" >&6; }
4438
fi
4439
4440
# find the maximum length of command line arguments
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4442
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4443
if ${lt_cv_sys_max_cmd_len+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4444
  $as_echo_n "(cached) " >&6
4445
else
4446
    i=0
4447
  teststring="ABCD"
4448
4449
  case $build_os in
4450
  msdosdjgpp*)
4451
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4452
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4453
    # during glob expansion).  Even if it were fixed, the result of this
4454
    # check would be larger than it should be.
4455
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4456
    ;;
4457
4458
  gnu*)
4459
    # Under GNU Hurd, this test is not required because there is
4460
    # no limit to the length of command line arguments.
4461
    # Libtool will interpret -1 as no limit whatsoever
4462
    lt_cv_sys_max_cmd_len=-1;
4463
    ;;
4464
4465
  cygwin* | mingw* | cegcc*)
4466
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4467
    # about 5 minutes as the teststring grows exponentially.
4468
    # Worse, since 9x/ME are not pre-emptively multitasking,
4469
    # you end up with a "frozen" computer, even though with patience
4470
    # the test eventually succeeds (with a max line length of 256k).
4471
    # Instead, let's just punt: use the minimum linelength reported by
4472
    # all of the supported platforms: 8192 (on NT/2K/XP).
4473
    lt_cv_sys_max_cmd_len=8192;
4474
    ;;
4475
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4476
  mint*)
4477
    # On MiNT this can take a long time and run out of memory.
4478
    lt_cv_sys_max_cmd_len=8192;
4479
    ;;
4480
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4481
  amigaos*)
4482
    # On AmigaOS with pdksh, this test takes hours, literally.
4483
    # So we just punt and use a minimum line length of 8192.
4484
    lt_cv_sys_max_cmd_len=8192;
4485
    ;;
4486
4487
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4488
    # This has been around since 386BSD, at least.  Likely further.
4489
    if test -x /sbin/sysctl; then
4490
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4491
    elif test -x /usr/sbin/sysctl; then
4492
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4493
    else
4494
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4495
    fi
4496
    # And add a safety zone
4497
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4498
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4499
    ;;
4500
4501
  interix*)
4502
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4503
    lt_cv_sys_max_cmd_len=196608
4504
    ;;
4505
4506
  osf*)
4507
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4508
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4509
    # nice to cause kernel panics so lets avoid the loop below.
4510
    # First set a reasonable default.
4511
    lt_cv_sys_max_cmd_len=16384
4512
    #
4513
    if test -x /sbin/sysconfig; then
4514
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4515
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4516
      esac
4517
    fi
4518
    ;;
4519
  sco3.2v5*)
4520
    lt_cv_sys_max_cmd_len=102400
4521
    ;;
4522
  sysv5* | sco5v6* | sysv4.2uw2*)
4523
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4524
    if test -n "$kargmax"; then
4525
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4526
    else
4527
      lt_cv_sys_max_cmd_len=32768
4528
    fi
4529
    ;;
4530
  *)
4531
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4532
    if test -n "$lt_cv_sys_max_cmd_len"; then
4533
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4534
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4535
    else
4536
      # Make teststring a little bigger before we do anything with it.
4537
      # a 1K string should be a reasonable start.
4538
      for i in 1 2 3 4 5 6 7 8 ; do
4539
        teststring=$teststring$teststring
4540
      done
4541
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4542
      # If test is not a shell built-in, we'll probably end up computing a
4543
      # maximum length that is only half of the actual maximum length, but
4544
      # we can't tell.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4545
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4546
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4547
	      test $i != 17 # 1/2 MB should be enough
4548
      do
4549
        i=`expr $i + 1`
4550
        teststring=$teststring$teststring
4551
      done
4552
      # Only check the string length outside the loop.
4553
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4554
      teststring=
4555
      # Add a significant safety factor because C++ compilers can tack on
4556
      # massive amounts of additional arguments before passing them to the
4557
      # linker.  It appears as though 1/2 is a usable value.
4558
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4559
    fi
4560
    ;;
4561
  esac
4562
4563
fi
4564
4565
if test -n $lt_cv_sys_max_cmd_len ; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4566
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4567
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4568
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4570
$as_echo "none" >&6; }
4571
fi
4572
max_cmd_len=$lt_cv_sys_max_cmd_len
4573
4574
4575
4576
4577
4578
4579
: ${CP="cp -f"}
4580
: ${MV="mv -f"}
4581
: ${RM="rm -f"}
4582
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4584
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4585
# Try some XSI features
4586
xsi_shell=no
4587
( _lt_dummy="a/b/c"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4588
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4589
      = c,a/b,b/c, \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4590
    && eval 'test $(( 1 + 1 )) -eq 2 \
4591
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4592
  && xsi_shell=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4594
$as_echo "$xsi_shell" >&6; }
4595
4596
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4598
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4599
lt_shell_append=no
4600
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4601
    >/dev/null 2>&1 \
4602
  && lt_shell_append=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4604
$as_echo "$lt_shell_append" >&6; }
4605
4606
4607
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4608
  lt_unset=unset
4609
else
4610
  lt_unset=false
4611
fi
4612
4613
4614
4615
4616
4617
# test EBCDIC or ASCII
4618
case `echo X|tr X '\101'` in
4619
 A) # ASCII based system
4620
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4621
  lt_SP2NL='tr \040 \012'
4622
  lt_NL2SP='tr \015\012 \040\040'
4623
  ;;
4624
 *) # EBCDIC based system
4625
  lt_SP2NL='tr \100 \n'
4626
  lt_NL2SP='tr \r\n \100\100'
4627
  ;;
4628
esac
4629
4630
4631
4632
4633
4634
4635
4636
4637
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4639
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4640
if ${lt_cv_to_host_file_cmd+:} false; then :
4641
  $as_echo_n "(cached) " >&6
4642
else
4643
  case $host in
4644
  *-*-mingw* )
4645
    case $build in
4646
      *-*-mingw* ) # actually msys
4647
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4648
        ;;
4649
      *-*-cygwin* )
4650
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4651
        ;;
4652
      * ) # otherwise, assume *nix
4653
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4654
        ;;
4655
    esac
4656
    ;;
4657
  *-*-cygwin* )
4658
    case $build in
4659
      *-*-mingw* ) # actually msys
4660
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4661
        ;;
4662
      *-*-cygwin* )
4663
        lt_cv_to_host_file_cmd=func_convert_file_noop
4664
        ;;
4665
      * ) # otherwise, assume *nix
4666
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4667
        ;;
4668
    esac
4669
    ;;
4670
  * ) # unhandled hosts (and "normal" native builds)
4671
    lt_cv_to_host_file_cmd=func_convert_file_noop
4672
    ;;
4673
esac
4674
4675
fi
4676
4677
to_host_file_cmd=$lt_cv_to_host_file_cmd
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4679
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4680
4681
4682
4683
4684
4685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4686
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4687
if ${lt_cv_to_tool_file_cmd+:} false; then :
4688
  $as_echo_n "(cached) " >&6
4689
else
4690
  #assume ordinary cross tools, or native build.
4691
lt_cv_to_tool_file_cmd=func_convert_file_noop
4692
case $host in
4693
  *-*-mingw* )
4694
    case $build in
4695
      *-*-mingw* ) # actually msys
4696
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4697
        ;;
4698
    esac
4699
    ;;
4700
esac
4701
4702
fi
4703
4704
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4706
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4707
4708
4709
4710
4711
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4713
$as_echo_n "checking for $LD option to reload object files... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4714
if ${lt_cv_ld_reload_flag+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4715
  $as_echo_n "(cached) " >&6
4716
else
4717
  lt_cv_ld_reload_flag='-r'
4718
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4720
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4721
reload_flag=$lt_cv_ld_reload_flag
4722
case $reload_flag in
4723
"" | " "*) ;;
4724
*) reload_flag=" $reload_flag" ;;
4725
esac
4726
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4727
case $host_os in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4728
  cygwin* | mingw* | pw32* | cegcc*)
4729
    if test "$GCC" != yes; then
4730
      reload_cmds=false
4731
    fi
4732
    ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4733
  darwin*)
4734
    if test "$GCC" = yes; then
4735
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4736
    else
4737
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4738
    fi
4739
    ;;
4740
esac
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
if test -n "$ac_tool_prefix"; then
4751
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4752
set dummy ${ac_tool_prefix}objdump; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4754
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4755
if ${ac_cv_prog_OBJDUMP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4756
  $as_echo_n "(cached) " >&6
4757
else
4758
  if test -n "$OBJDUMP"; then
4759
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4760
else
4761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762
for as_dir in $PATH
4763
do
4764
  IFS=$as_save_IFS
4765
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4766
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4767
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4769
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4770
    break 2
4771
  fi
4772
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4773
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4774
IFS=$as_save_IFS
4775
4776
fi
4777
fi
4778
OBJDUMP=$ac_cv_prog_OBJDUMP
4779
if test -n "$OBJDUMP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4781
$as_echo "$OBJDUMP" >&6; }
4782
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4784
$as_echo "no" >&6; }
4785
fi
4786
4787
4788
fi
4789
if test -z "$ac_cv_prog_OBJDUMP"; then
4790
  ac_ct_OBJDUMP=$OBJDUMP
4791
  # Extract the first word of "objdump", so it can be a program name with args.
4792
set dummy objdump; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4794
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4795
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4796
  $as_echo_n "(cached) " >&6
4797
else
4798
  if test -n "$ac_ct_OBJDUMP"; then
4799
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4800
else
4801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802
for as_dir in $PATH
4803
do
4804
  IFS=$as_save_IFS
4805
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4806
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4809
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4810
    break 2
4811
  fi
4812
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4813
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4814
IFS=$as_save_IFS
4815
4816
fi
4817
fi
4818
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4819
if test -n "$ac_ct_OBJDUMP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4821
$as_echo "$ac_ct_OBJDUMP" >&6; }
4822
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4823
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4824
$as_echo "no" >&6; }
4825
fi
4826
4827
  if test "x$ac_ct_OBJDUMP" = x; then
4828
    OBJDUMP="false"
4829
  else
4830
    case $cross_compiling:$ac_tool_warned in
4831
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4833
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834
ac_tool_warned=yes ;;
4835
esac
4836
    OBJDUMP=$ac_ct_OBJDUMP
4837
  fi
4838
else
4839
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4840
fi
4841
4842
test -z "$OBJDUMP" && OBJDUMP=objdump
4843
4844
4845
4846
4847
4848
4849
4850
4851
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4853
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4854
if ${lt_cv_deplibs_check_method+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4855
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4856
else
4857
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4858
lt_cv_file_magic_test_file=
4859
lt_cv_deplibs_check_method='unknown'
4860
# Need to set the preceding variable on all platforms that support
4861
# interlibrary dependencies.
4862
# 'none' -- dependencies not supported.
4863
# `unknown' -- same as none, but documents that we really don't know.
4864
# 'pass_all' -- all dependencies passed with no checks.
4865
# 'test_compile' -- check by making test program.
4866
# 'file_magic [[regex]]' -- check by looking for files in library path
4867
# which responds to the $file_magic_cmd with a given extended regex.
4868
# If you have `file' or equivalent on your system and you're not sure
4869
# whether `pass_all' will *always* work, you probably want this one.
4870
4871
case $host_os in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
4872
aix[4-9]*)
1 by Joey Hess
* Joey Hess
4873
  lt_cv_deplibs_check_method=pass_all
4874
  ;;
4875
4876
beos*)
4877
  lt_cv_deplibs_check_method=pass_all
4878
  ;;
4879
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4880
bsdi[45]*)
1 by Joey Hess
* Joey Hess
4881
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4882
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4883
  lt_cv_file_magic_test_file=/shlib/libc.so
4884
  ;;
4885
4886
cygwin*)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
4887
  # func_win32_libid is a shell function defined in ltmain.sh
1 by Joey Hess
* Joey Hess
4888
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2 by Colin Watson
* Update GPL notices with the FSF's new address.
4889
  lt_cv_file_magic_cmd='func_win32_libid'
1 by Joey Hess
* Joey Hess
4890
  ;;
4891
4892
mingw* | pw32*)
4893
  # Base MSYS/MinGW do not provide the 'file' command needed by
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4894
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4895
  # unless we find 'file', for example because we are cross-compiling.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4896
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4897
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4898
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4899
    lt_cv_file_magic_cmd='func_win32_libid'
4900
  else
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4901
    # Keep this pattern in sync with the one in func_win32_libid.
4902
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4903
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4904
  fi
1 by Joey Hess
* Joey Hess
4905
  ;;
4906
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4907
cegcc*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4908
  # use the weaker test based on 'objdump'. See mingw*.
4909
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4910
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4911
  ;;
4912
1 by Joey Hess
* Joey Hess
4913
darwin* | rhapsody*)
4914
  lt_cv_deplibs_check_method=pass_all
4915
  ;;
4916
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4917
freebsd* | dragonfly*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4918
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Joey Hess
* Joey Hess
4919
    case $host_cpu in
4920
    i*86 )
4921
      # Not sure whether the presence of OpenBSD here was a mistake.
4922
      # Let's accept both of them until this is cleared up.
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4923
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1 by Joey Hess
* Joey Hess
4924
      lt_cv_file_magic_cmd=/usr/bin/file
4925
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4926
      ;;
4927
    esac
4928
  else
4929
    lt_cv_deplibs_check_method=pass_all
4930
  fi
4931
  ;;
4932
4933
gnu*)
4934
  lt_cv_deplibs_check_method=pass_all
4935
  ;;
4936
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4937
haiku*)
4938
  lt_cv_deplibs_check_method=pass_all
4939
  ;;
4940
1 by Joey Hess
* Joey Hess
4941
hpux10.20* | hpux11*)
4942
  lt_cv_file_magic_cmd=/usr/bin/file
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4943
  case $host_cpu in
1 by Joey Hess
* Joey Hess
4944
  ia64*)
4945
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4946
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4947
    ;;
4948
  hppa*64*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4949
    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]'
1 by Joey Hess
* Joey Hess
4950
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4951
    ;;
4952
  *)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
4953
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1 by Joey Hess
* Joey Hess
4954
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4955
    ;;
4956
  esac
4957
  ;;
4958
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4959
interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4960
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4961
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4962
  ;;
4963
1 by Joey Hess
* Joey Hess
4964
irix5* | irix6* | nonstopux*)
4965
  case $LD in
4966
  *-32|*"-32 ") libmagic=32-bit;;
4967
  *-n32|*"-n32 ") libmagic=N32;;
4968
  *-64|*"-64 ") libmagic=64-bit;;
4969
  *) libmagic=never-match;;
4970
  esac
4971
  lt_cv_deplibs_check_method=pass_all
4972
  ;;
4973
4974
# This must be Linux ELF.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
4975
linux* | k*bsd*-gnu | kopensolaris*-gnu)
1 by Joey Hess
* Joey Hess
4976
  lt_cv_deplibs_check_method=pass_all
4977
  ;;
4978
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4979
netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4980
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Joey Hess
* Joey Hess
4981
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4982
  else
4983
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4984
  fi
4985
  ;;
4986
4987
newos6*)
4988
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4989
  lt_cv_file_magic_cmd=/usr/bin/file
4990
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4991
  ;;
4992
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4993
*nto* | *qnx*)
4994
  lt_cv_deplibs_check_method=pass_all
1 by Joey Hess
* Joey Hess
4995
  ;;
4996
4997
openbsd*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4998
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4999
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1 by Joey Hess
* Joey Hess
5000
  else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
5001
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1 by Joey Hess
* Joey Hess
5002
  fi
5003
  ;;
5004
5005
osf3* | osf4* | osf5*)
5006
  lt_cv_deplibs_check_method=pass_all
5007
  ;;
5008
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
5009
rdos*)
5010
  lt_cv_deplibs_check_method=pass_all
5011
  ;;
5012
1 by Joey Hess
* Joey Hess
5013
solaris*)
5014
  lt_cv_deplibs_check_method=pass_all
5015
  ;;
5016
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5017
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5018
  lt_cv_deplibs_check_method=pass_all
5019
  ;;
5020
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5021
sysv4 | sysv4.3*)
1 by Joey Hess
* Joey Hess
5022
  case $host_vendor in
5023
  motorola)
5024
    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]'
5025
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5026
    ;;
5027
  ncr)
5028
    lt_cv_deplibs_check_method=pass_all
5029
    ;;
5030
  sequent)
5031
    lt_cv_file_magic_cmd='/bin/file'
5032
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5033
    ;;
5034
  sni)
5035
    lt_cv_file_magic_cmd='/bin/file'
5036
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5037
    lt_cv_file_magic_test_file=/lib/libc.so
5038
    ;;
5039
  siemens)
5040
    lt_cv_deplibs_check_method=pass_all
5041
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5042
  pc)
5043
    lt_cv_deplibs_check_method=pass_all
5044
    ;;
1 by Joey Hess
* Joey Hess
5045
  esac
5046
  ;;
5047
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5048
tpf*)
1 by Joey Hess
* Joey Hess
5049
  lt_cv_deplibs_check_method=pass_all
5050
  ;;
5051
esac
5052
5053
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5055
$as_echo "$lt_cv_deplibs_check_method" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5056
5057
file_magic_glob=
5058
want_nocaseglob=no
5059
if test "$build" = "$host"; then
5060
  case $host_os in
5061
  mingw* | pw32*)
5062
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5063
      want_nocaseglob=yes
5064
    else
5065
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5066
    fi
5067
    ;;
5068
  esac
5069
fi
5070
1 by Joey Hess
* Joey Hess
5071
file_magic_cmd=$lt_cv_file_magic_cmd
5072
deplibs_check_method=$lt_cv_deplibs_check_method
5073
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5074
5075
5076
5077
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5078
5079
5080
5081
5082
5083
5084
5085
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
if test -n "$ac_tool_prefix"; then
5097
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5098
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100
$as_echo_n "checking for $ac_word... " >&6; }
5101
if ${ac_cv_prog_DLLTOOL+:} false; then :
5102
  $as_echo_n "(cached) " >&6
5103
else
5104
  if test -n "$DLLTOOL"; then
5105
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5106
else
5107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108
for as_dir in $PATH
5109
do
5110
  IFS=$as_save_IFS
5111
  test -z "$as_dir" && as_dir=.
5112
    for ac_exec_ext in '' $ac_executable_extensions; do
5113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5115
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116
    break 2
5117
  fi
5118
done
5119
  done
5120
IFS=$as_save_IFS
5121
5122
fi
5123
fi
5124
DLLTOOL=$ac_cv_prog_DLLTOOL
5125
if test -n "$DLLTOOL"; then
5126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5127
$as_echo "$DLLTOOL" >&6; }
5128
else
5129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130
$as_echo "no" >&6; }
5131
fi
5132
5133
5134
fi
5135
if test -z "$ac_cv_prog_DLLTOOL"; then
5136
  ac_ct_DLLTOOL=$DLLTOOL
5137
  # Extract the first word of "dlltool", so it can be a program name with args.
5138
set dummy dlltool; ac_word=$2
5139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140
$as_echo_n "checking for $ac_word... " >&6; }
5141
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5142
  $as_echo_n "(cached) " >&6
5143
else
5144
  if test -n "$ac_ct_DLLTOOL"; then
5145
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5146
else
5147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148
for as_dir in $PATH
5149
do
5150
  IFS=$as_save_IFS
5151
  test -z "$as_dir" && as_dir=.
5152
    for ac_exec_ext in '' $ac_executable_extensions; do
5153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156
    break 2
5157
  fi
5158
done
5159
  done
5160
IFS=$as_save_IFS
5161
5162
fi
5163
fi
5164
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5165
if test -n "$ac_ct_DLLTOOL"; then
5166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5167
$as_echo "$ac_ct_DLLTOOL" >&6; }
5168
else
5169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170
$as_echo "no" >&6; }
5171
fi
5172
5173
  if test "x$ac_ct_DLLTOOL" = x; then
5174
    DLLTOOL="false"
5175
  else
5176
    case $cross_compiling:$ac_tool_warned in
5177
yes:)
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180
ac_tool_warned=yes ;;
5181
esac
5182
    DLLTOOL=$ac_ct_DLLTOOL
5183
  fi
5184
else
5185
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5186
fi
5187
5188
test -z "$DLLTOOL" && DLLTOOL=dlltool
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5200
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5201
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5202
  $as_echo_n "(cached) " >&6
5203
else
5204
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5205
5206
case $host_os in
5207
cygwin* | mingw* | pw32* | cegcc*)
5208
  # two different shell functions defined in ltmain.sh
5209
  # decide which to use based on capabilities of $DLLTOOL
5210
  case `$DLLTOOL --help 2>&1` in
5211
  *--identify-strict*)
5212
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5213
    ;;
5214
  *)
5215
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5216
    ;;
5217
  esac
5218
  ;;
5219
*)
5220
  # fallback: assume linklib IS sharedlib
5221
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5222
  ;;
5223
esac
5224
5225
fi
5226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5227
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5228
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5229
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5230
5231
5232
5233
5234
5235
5236
5237
5238
if test -n "$ac_tool_prefix"; then
5239
  for ac_prog in ar
5240
  do
5241
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5242
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244
$as_echo_n "checking for $ac_word... " >&6; }
5245
if ${ac_cv_prog_AR+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5246
  $as_echo_n "(cached) " >&6
5247
else
5248
  if test -n "$AR"; then
5249
  ac_cv_prog_AR="$AR" # Let the user override the test.
5250
else
5251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252
for as_dir in $PATH
5253
do
5254
  IFS=$as_save_IFS
5255
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5256
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5258
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5260
    break 2
5261
  fi
5262
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5263
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5264
IFS=$as_save_IFS
5265
5266
fi
5267
fi
5268
AR=$ac_cv_prog_AR
5269
if test -n "$AR"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5271
$as_echo "$AR" >&6; }
5272
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5274
$as_echo "no" >&6; }
5275
fi
5276
5277
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5278
    test -n "$AR" && break
5279
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5280
fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5281
if test -z "$AR"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5282
  ac_ct_AR=$AR
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5283
  for ac_prog in ar
5284
do
5285
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5286
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5288
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5289
if ${ac_cv_prog_ac_ct_AR+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5290
  $as_echo_n "(cached) " >&6
5291
else
5292
  if test -n "$ac_ct_AR"; then
5293
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5294
else
5295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296
for as_dir in $PATH
5297
do
5298
  IFS=$as_save_IFS
5299
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5300
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5301
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5302
    ac_cv_prog_ac_ct_AR="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5303
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5304
    break 2
5305
  fi
5306
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5307
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5308
IFS=$as_save_IFS
5309
5310
fi
5311
fi
5312
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5313
if test -n "$ac_ct_AR"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5314
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5315
$as_echo "$ac_ct_AR" >&6; }
5316
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5318
$as_echo "no" >&6; }
5319
fi
5320
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5321
5322
  test -n "$ac_ct_AR" && break
5323
done
5324
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5325
  if test "x$ac_ct_AR" = x; then
5326
    AR="false"
5327
  else
5328
    case $cross_compiling:$ac_tool_warned in
5329
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332
ac_tool_warned=yes ;;
5333
esac
5334
    AR=$ac_ct_AR
5335
  fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5336
fi
5337
5338
: ${AR=ar}
5339
: ${AR_FLAGS=cru}
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5352
$as_echo_n "checking for archiver @FILE support... " >&6; }
5353
if ${lt_cv_ar_at_file+:} false; then :
5354
  $as_echo_n "(cached) " >&6
5355
else
5356
  lt_cv_ar_at_file=no
5357
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358
/* end confdefs.h.  */
5359
5360
int
5361
main ()
5362
{
5363
5364
  ;
5365
  return 0;
5366
}
5367
_ACEOF
5368
if ac_fn_c_try_compile "$LINENO"; then :
5369
  echo conftest.$ac_objext > conftest.lst
5370
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5371
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5372
  (eval $lt_ar_try) 2>&5
5373
  ac_status=$?
5374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375
  test $ac_status = 0; }
5376
      if test "$ac_status" -eq 0; then
5377
	# Ensure the archiver fails upon bogus file names.
5378
	rm -f conftest.$ac_objext libconftest.a
5379
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5380
  (eval $lt_ar_try) 2>&5
5381
  ac_status=$?
5382
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383
  test $ac_status = 0; }
5384
	if test "$ac_status" -ne 0; then
5385
          lt_cv_ar_at_file=@
5386
        fi
5387
      fi
5388
      rm -f conftest.* libconftest.a
5389
5390
fi
5391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392
5393
fi
5394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5395
$as_echo "$lt_cv_ar_at_file" >&6; }
5396
5397
if test "x$lt_cv_ar_at_file" = xno; then
5398
  archiver_list_spec=
5399
else
5400
  archiver_list_spec=$lt_cv_ar_at_file
5401
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5402
5403
5404
5405
5406
5407
5408
5409
if test -n "$ac_tool_prefix"; then
5410
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5411
set dummy ${ac_tool_prefix}strip; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5413
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5414
if ${ac_cv_prog_STRIP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5415
  $as_echo_n "(cached) " >&6
5416
else
5417
  if test -n "$STRIP"; then
5418
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5419
else
5420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421
for as_dir in $PATH
5422
do
5423
  IFS=$as_save_IFS
5424
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5425
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5426
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5428
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5429
    break 2
5430
  fi
5431
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5432
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5433
IFS=$as_save_IFS
5434
5435
fi
5436
fi
5437
STRIP=$ac_cv_prog_STRIP
5438
if test -n "$STRIP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5440
$as_echo "$STRIP" >&6; }
5441
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5443
$as_echo "no" >&6; }
5444
fi
5445
5446
5447
fi
5448
if test -z "$ac_cv_prog_STRIP"; then
5449
  ac_ct_STRIP=$STRIP
5450
  # Extract the first word of "strip", so it can be a program name with args.
5451
set dummy strip; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5453
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5454
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5455
  $as_echo_n "(cached) " >&6
5456
else
5457
  if test -n "$ac_ct_STRIP"; then
5458
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5459
else
5460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461
for as_dir in $PATH
5462
do
5463
  IFS=$as_save_IFS
5464
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5465
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467
    ac_cv_prog_ac_ct_STRIP="strip"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5468
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5469
    break 2
5470
  fi
5471
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5472
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5473
IFS=$as_save_IFS
5474
5475
fi
5476
fi
5477
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5478
if test -n "$ac_ct_STRIP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5480
$as_echo "$ac_ct_STRIP" >&6; }
5481
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5483
$as_echo "no" >&6; }
5484
fi
5485
5486
  if test "x$ac_ct_STRIP" = x; then
5487
    STRIP=":"
5488
  else
5489
    case $cross_compiling:$ac_tool_warned in
5490
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5492
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493
ac_tool_warned=yes ;;
5494
esac
5495
    STRIP=$ac_ct_STRIP
5496
  fi
5497
else
5498
  STRIP="$ac_cv_prog_STRIP"
5499
fi
5500
5501
test -z "$STRIP" && STRIP=:
5502
5503
5504
5505
5506
5507
5508
if test -n "$ac_tool_prefix"; then
5509
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5510
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5512
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5513
if ${ac_cv_prog_RANLIB+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5514
  $as_echo_n "(cached) " >&6
5515
else
5516
  if test -n "$RANLIB"; then
5517
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5518
else
5519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520
for as_dir in $PATH
5521
do
5522
  IFS=$as_save_IFS
5523
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5524
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5525
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5527
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5528
    break 2
5529
  fi
5530
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5531
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5532
IFS=$as_save_IFS
5533
5534
fi
5535
fi
5536
RANLIB=$ac_cv_prog_RANLIB
5537
if test -n "$RANLIB"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5539
$as_echo "$RANLIB" >&6; }
5540
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5542
$as_echo "no" >&6; }
5543
fi
5544
5545
5546
fi
5547
if test -z "$ac_cv_prog_RANLIB"; then
5548
  ac_ct_RANLIB=$RANLIB
5549
  # Extract the first word of "ranlib", so it can be a program name with args.
5550
set dummy ranlib; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5552
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5553
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5554
  $as_echo_n "(cached) " >&6
5555
else
5556
  if test -n "$ac_ct_RANLIB"; then
5557
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5558
else
5559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560
for as_dir in $PATH
5561
do
5562
  IFS=$as_save_IFS
5563
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5564
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5567
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5568
    break 2
5569
  fi
5570
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5571
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5572
IFS=$as_save_IFS
5573
5574
fi
5575
fi
5576
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5577
if test -n "$ac_ct_RANLIB"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5579
$as_echo "$ac_ct_RANLIB" >&6; }
5580
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5582
$as_echo "no" >&6; }
5583
fi
5584
5585
  if test "x$ac_ct_RANLIB" = x; then
5586
    RANLIB=":"
5587
  else
5588
    case $cross_compiling:$ac_tool_warned in
5589
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5590
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5591
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592
ac_tool_warned=yes ;;
5593
esac
5594
    RANLIB=$ac_ct_RANLIB
5595
  fi
5596
else
5597
  RANLIB="$ac_cv_prog_RANLIB"
5598
fi
5599
5600
test -z "$RANLIB" && RANLIB=:
5601
5602
5603
5604
5605
5606
5607
# Determine commands to create old-style static archives.
5608
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5609
old_postinstall_cmds='chmod 644 $oldlib'
5610
old_postuninstall_cmds=
5611
5612
if test -n "$RANLIB"; then
5613
  case $host_os in
5614
  openbsd*)
5615
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5616
    ;;
5617
  *)
5618
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5619
    ;;
5620
  esac
5621
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5622
fi
5623
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5624
case $host_os in
5625
  darwin*)
5626
    lock_old_archive_extraction=yes ;;
5627
  *)
5628
    lock_old_archive_extraction=no ;;
5629
esac
5630
5631
5632
5633
5634
5635
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
1 by Joey Hess
* Joey Hess
5669
# If no C compiler was specified, use CC.
5670
LTCC=${LTCC-"$CC"}
5671
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5672
# If no C compiler flags were specified, use CFLAGS.
5673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5674
1 by Joey Hess
* Joey Hess
5675
# Allow CC to be a program name with arguments.
5676
compiler=$CC
5677
5678
5679
# Check for command to grab the raw symbol name followed by C symbol from nm.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5681
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5682
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5683
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
5684
else
5685
5686
# These are sane defaults that work on at least a few old systems.
5687
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5688
5689
# Character class describing NM global symbol codes.
5690
symcode='[BCDEGRST]'
5691
5692
# Regexp to match symbols that can be accessed directly from C.
5693
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5694
5695
# Define system-specific variables.
5696
case $host_os in
5697
aix*)
5698
  symcode='[BCDT]'
5699
  ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5700
cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
5701
  symcode='[ABCDGISTW]'
5702
  ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5703
hpux*)
1 by Joey Hess
* Joey Hess
5704
  if test "$host_cpu" = ia64; then
5705
    symcode='[ABCDEGRST]'
5706
  fi
3 by Colin Watson, Sven Luther
[ Sven Luther ]
5707
  ;;
1 by Joey Hess
* Joey Hess
5708
irix* | nonstopux*)
5709
  symcode='[BCDEGRST]'
5710
  ;;
5711
osf*)
5712
  symcode='[BCDEGQRST]'
5713
  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5714
solaris*)
1 by Joey Hess
* Joey Hess
5715
  symcode='[BDRT]'
5716
  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5717
sco3.2v5*)
5718
  symcode='[DT]'
5719
  ;;
5720
sysv4.2uw2*)
5721
  symcode='[DT]'
5722
  ;;
5723
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5724
  symcode='[ABDT]'
5725
  ;;
1 by Joey Hess
* Joey Hess
5726
sysv4)
5727
  symcode='[DFNSTU]'
5728
  ;;
5729
esac
5730
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5731
# If we're using GNU nm, then use its standard symbol codes.
5732
case `$NM -V 2>&1` in
5733
*GNU* | *'with BFD'*)
5734
  symcode='[ABCDGIRSTW]' ;;
5735
esac
5736
5737
# Transform an extracted symbol line into a proper C declaration.
5738
# Some systems (esp. on ia64) link data and code symbols differently,
5739
# so use this general approach.
5740
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5741
5742
# Transform an extracted symbol line into symbol name and symbol address
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5743
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5744
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'"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5745
1 by Joey Hess
* Joey Hess
5746
# Handle CRLF in mingw tool chain
5747
opt_cr=
5748
case $build_os in
5749
mingw*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5750
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1 by Joey Hess
* Joey Hess
5751
  ;;
5752
esac
5753
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5754
# Try without a prefix underscore, then with it.
1 by Joey Hess
* Joey Hess
5755
for ac_symprfx in "" "_"; do
5756
3 by Colin Watson, Sven Luther
[ Sven Luther ]
5757
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5759
1 by Joey Hess
* Joey Hess
5760
  # Write the raw and C identifiers.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5761
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762
    # Fake it for dumpbin and say T for any non-static function
5763
    # and D for any global variable.
5764
    # Also find C++ and __fastcall symbols from MSVC++,
5765
    # which start with @ or ?.
5766
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5767
"     {last_section=section; section=\$ 3};"\
5768
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5769
"     \$ 0!~/External *\|/{next};"\
5770
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5771
"     {if(hide[section]) next};"\
5772
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5773
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5774
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5775
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5776
"     ' prfx=^$ac_symprfx"
5777
  else
5778
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779
  fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5780
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1 by Joey Hess
* Joey Hess
5781
5782
  # Check to see that the pipe works correctly.
5783
  pipe_works=no
5784
5785
  rm -f conftest*
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5786
  cat > conftest.$ac_ext <<_LT_EOF
1 by Joey Hess
* Joey Hess
5787
#ifdef __cplusplus
5788
extern "C" {
5789
#endif
5790
char nm_test_var;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5791
void nm_test_func(void);
5792
void nm_test_func(void){}
1 by Joey Hess
* Joey Hess
5793
#ifdef __cplusplus
5794
}
5795
#endif
5796
int main(){nm_test_var='a';nm_test_func();return(0);}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5797
_LT_EOF
1 by Joey Hess
* Joey Hess
5798
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5799
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Joey Hess
* Joey Hess
5800
  (eval $ac_compile) 2>&5
5801
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5802
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803
  test $ac_status = 0; }; then
1 by Joey Hess
* Joey Hess
5804
    # Now try to grab the symbols.
5805
    nlist=conftest.nm
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5806
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5807
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1 by Joey Hess
* Joey Hess
5808
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5809
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810
  test $ac_status = 0; } && test -s "$nlist"; then
1 by Joey Hess
* Joey Hess
5811
      # Try sorting and uniquifying the output.
5812
      if sort "$nlist" | uniq > "$nlist"T; then
5813
	mv -f "$nlist"T "$nlist"
5814
      else
5815
	rm -f "$nlist"T
5816
      fi
5817
5818
      # Make sure that we snagged all the symbols we need.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5819
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5820
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5821
	  cat <<_LT_EOF > conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5822
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5823
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5824
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5825
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5826
# define LT_DLSYM_CONST
5827
#elif defined(__osf__)
5828
/* This system does not cope well with relocations in const data.  */
5829
# define LT_DLSYM_CONST
5830
#else
5831
# define LT_DLSYM_CONST const
5832
#endif
5833
1 by Joey Hess
* Joey Hess
5834
#ifdef __cplusplus
5835
extern "C" {
5836
#endif
5837
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5838
_LT_EOF
1 by Joey Hess
* Joey Hess
5839
	  # Now generate the symbol file.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5840
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5841
5842
	  cat <<_LT_EOF >> conftest.$ac_ext
5843
5844
/* The mapping between symbol names and symbols.  */
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5845
LT_DLSYM_CONST struct {
1 by Joey Hess
* Joey Hess
5846
  const char *name;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5847
  void       *address;
1 by Joey Hess
* Joey Hess
5848
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5849
lt__PROGRAM__LTX_preloaded_symbols[] =
1 by Joey Hess
* Joey Hess
5850
{
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5851
  { "@PROGRAM@", (void *) 0 },
5852
_LT_EOF
5853
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5854
	  cat <<\_LT_EOF >> conftest.$ac_ext
5855
  {0, (void *) 0}
1 by Joey Hess
* Joey Hess
5856
};
5857
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5858
/* This works around a problem in FreeBSD linker */
5859
#ifdef FREEBSD_WORKAROUND
5860
static const void *lt_preloaded_setup() {
5861
  return lt__PROGRAM__LTX_preloaded_symbols;
5862
}
5863
#endif
5864
1 by Joey Hess
* Joey Hess
5865
#ifdef __cplusplus
5866
}
5867
#endif
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5868
_LT_EOF
1 by Joey Hess
* Joey Hess
5869
	  # Now try linking the two files.
5870
	  mv conftest.$ac_objext conftstm.$ac_objext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5871
	  lt_globsym_save_LIBS=$LIBS
5872
	  lt_globsym_save_CFLAGS=$CFLAGS
1 by Joey Hess
* Joey Hess
5873
	  LIBS="conftstm.$ac_objext"
5874
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5875
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
5876
  (eval $ac_link) 2>&5
5877
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5878
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1 by Joey Hess
* Joey Hess
5880
	    pipe_works=yes
5881
	  fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5882
	  LIBS=$lt_globsym_save_LIBS
5883
	  CFLAGS=$lt_globsym_save_CFLAGS
1 by Joey Hess
* Joey Hess
5884
	else
5885
	  echo "cannot find nm_test_func in $nlist" >&5
5886
	fi
5887
      else
5888
	echo "cannot find nm_test_var in $nlist" >&5
5889
      fi
5890
    else
5891
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5892
    fi
5893
  else
5894
    echo "$progname: failed program was:" >&5
5895
    cat conftest.$ac_ext >&5
5896
  fi
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5897
  rm -rf conftest* conftst*
1 by Joey Hess
* Joey Hess
5898
5899
  # Do not use the global_symbol_pipe unless it works.
5900
  if test "$pipe_works" = yes; then
5901
    break
5902
  else
5903
    lt_cv_sys_global_symbol_pipe=
5904
  fi
5905
done
5906
5907
fi
5908
5909
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5910
  lt_cv_sys_global_symbol_to_cdecl=
5911
fi
5912
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5914
$as_echo "failed" >&6; }
5915
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5917
$as_echo "ok" >&6; }
5918
fi
5919
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
5920
# Response file support.
5921
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5922
  nm_file_list_spec='@'
5923
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5924
  nm_file_list_spec='@'
5925
fi
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5954
$as_echo_n "checking for sysroot... " >&6; }
5955
5956
# Check whether --with-sysroot was given.
5957
if test "${with_sysroot+set}" = set; then :
5958
  withval=$with_sysroot;
5959
else
5960
  with_sysroot=no
5961
fi
5962
5963
5964
lt_sysroot=
5965
case ${with_sysroot} in #(
5966
 yes)
5967
   if test "$GCC" = yes; then
5968
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5969
   fi
5970
   ;; #(
5971
 /*)
5972
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5973
   ;; #(
5974
 no|'')
5975
   ;; #(
5976
 *)
5977
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5978
$as_echo "${with_sysroot}" >&6; }
5979
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5980
   ;;
5981
esac
5982
5983
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5984
$as_echo "${lt_sysroot:-no}" >&6; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5985
5986
5987
5988
5989
5990
# Check whether --enable-libtool-lock was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5991
if test "${enable_libtool_lock+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5992
  enableval=$enable_libtool_lock;
5993
fi
5994
5995
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5996
5997
# Some flags need to be propagated to the compiler or linker for good
5998
# libtool support.
5999
case $host in
6000
ia64-*-hpux*)
6001
  # Find out which ABI we are using.
6002
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6003
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6004
  (eval $ac_compile) 2>&5
6005
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6008
    case `/usr/bin/file conftest.$ac_objext` in
6009
      *ELF-32*)
6010
	HPUX_IA64_MODE="32"
6011
	;;
6012
      *ELF-64*)
6013
	HPUX_IA64_MODE="64"
6014
	;;
6015
    esac
6016
  fi
6017
  rm -rf conftest*
6018
  ;;
6019
*-*-irix6*)
6020
  # Find out which ABI we are using.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6021
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6022
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6023
  (eval $ac_compile) 2>&5
6024
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6025
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6027
    if test "$lt_cv_prog_gnu_ld" = yes; then
6028
      case `/usr/bin/file conftest.$ac_objext` in
6029
	*32-bit*)
6030
	  LD="${LD-ld} -melf32bsmip"
6031
	  ;;
6032
	*N32*)
6033
	  LD="${LD-ld} -melf32bmipn32"
6034
	  ;;
6035
	*64-bit*)
6036
	  LD="${LD-ld} -melf64bmip"
6037
	;;
6038
      esac
6039
    else
6040
      case `/usr/bin/file conftest.$ac_objext` in
6041
	*32-bit*)
6042
	  LD="${LD-ld} -32"
6043
	  ;;
6044
	*N32*)
6045
	  LD="${LD-ld} -n32"
6046
	  ;;
6047
	*64-bit*)
6048
	  LD="${LD-ld} -64"
6049
	  ;;
6050
      esac
6051
    fi
6052
  fi
6053
  rm -rf conftest*
6054
  ;;
6055
6056
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6057
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6058
  # Find out which ABI we are using.
6059
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6060
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6061
  (eval $ac_compile) 2>&5
6062
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6063
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6065
    case `/usr/bin/file conftest.o` in
6066
      *32-bit*)
6067
	case $host in
6068
	  x86_64-*kfreebsd*-gnu)
6069
	    LD="${LD-ld} -m elf_i386_fbsd"
6070
	    ;;
6071
	  x86_64-*linux*)
6072
	    LD="${LD-ld} -m elf_i386"
6073
	    ;;
6074
	  ppc64-*linux*|powerpc64-*linux*)
6075
	    LD="${LD-ld} -m elf32ppclinux"
6076
	    ;;
6077
	  s390x-*linux*)
6078
	    LD="${LD-ld} -m elf_s390"
6079
	    ;;
6080
	  sparc64-*linux*)
6081
	    LD="${LD-ld} -m elf32_sparc"
6082
	    ;;
6083
	esac
6084
	;;
6085
      *64-bit*)
6086
	case $host in
6087
	  x86_64-*kfreebsd*-gnu)
6088
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6089
	    ;;
6090
	  x86_64-*linux*)
6091
	    LD="${LD-ld} -m elf_x86_64"
6092
	    ;;
6093
	  ppc*-*linux*|powerpc*-*linux*)
6094
	    LD="${LD-ld} -m elf64ppc"
6095
	    ;;
6096
	  s390*-*linux*|s390*-*tpf*)
6097
	    LD="${LD-ld} -m elf64_s390"
6098
	    ;;
6099
	  sparc*-*linux*)
6100
	    LD="${LD-ld} -m elf64_sparc"
6101
	    ;;
6102
	esac
6103
	;;
6104
    esac
6105
  fi
6106
  rm -rf conftest*
6107
  ;;
6108
6109
*-*-sco3.2v5*)
6110
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6111
  SAVE_CFLAGS="$CFLAGS"
6112
  CFLAGS="$CFLAGS -belf"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6113
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6114
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6115
if ${lt_cv_cc_needs_belf+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6116
  $as_echo_n "(cached) " >&6
6117
else
6118
  ac_ext=c
6119
ac_cpp='$CPP $CPPFLAGS'
6120
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6124
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6125
/* end confdefs.h.  */
6126
6127
int
6128
main ()
6129
{
6130
6131
  ;
6132
  return 0;
6133
}
6134
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6135
if ac_fn_c_try_link "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6136
  lt_cv_cc_needs_belf=yes
6137
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6138
  lt_cv_cc_needs_belf=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6139
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6140
rm -f core conftest.err conftest.$ac_objext \
6141
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6142
     ac_ext=c
6143
ac_cpp='$CPP $CPPFLAGS'
6144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6150
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6151
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6152
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6153
    CFLAGS="$SAVE_CFLAGS"
6154
  fi
6155
  ;;
6156
sparc*-*solaris*)
6157
  # Find out which ABI we are using.
6158
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6159
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6160
  (eval $ac_compile) 2>&5
6161
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6162
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6164
    case `/usr/bin/file conftest.o` in
6165
    *64-bit*)
6166
      case $lt_cv_prog_gnu_ld in
6167
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6168
      *)
6169
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6170
	  LD="${LD-ld} -64"
6171
	fi
6172
	;;
6173
      esac
6174
      ;;
6175
    esac
6176
  fi
6177
  rm -rf conftest*
6178
  ;;
6179
esac
6180
6181
need_locks="$enable_libtool_lock"
1 by Joey Hess
* Joey Hess
6182
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6183
if test -n "$ac_tool_prefix"; then
6184
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6185
set dummy ${ac_tool_prefix}mt; ac_word=$2
6186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187
$as_echo_n "checking for $ac_word... " >&6; }
6188
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6189
  $as_echo_n "(cached) " >&6
6190
else
6191
  if test -n "$MANIFEST_TOOL"; then
6192
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6193
else
6194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195
for as_dir in $PATH
6196
do
6197
  IFS=$as_save_IFS
6198
  test -z "$as_dir" && as_dir=.
6199
    for ac_exec_ext in '' $ac_executable_extensions; do
6200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6202
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203
    break 2
6204
  fi
6205
done
6206
  done
6207
IFS=$as_save_IFS
6208
6209
fi
6210
fi
6211
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6212
if test -n "$MANIFEST_TOOL"; then
6213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6214
$as_echo "$MANIFEST_TOOL" >&6; }
6215
else
6216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217
$as_echo "no" >&6; }
6218
fi
6219
6220
6221
fi
6222
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6223
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6224
  # Extract the first word of "mt", so it can be a program name with args.
6225
set dummy mt; ac_word=$2
6226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227
$as_echo_n "checking for $ac_word... " >&6; }
6228
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6229
  $as_echo_n "(cached) " >&6
6230
else
6231
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6232
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6233
else
6234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235
for as_dir in $PATH
6236
do
6237
  IFS=$as_save_IFS
6238
  test -z "$as_dir" && as_dir=.
6239
    for ac_exec_ext in '' $ac_executable_extensions; do
6240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6242
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243
    break 2
6244
  fi
6245
done
6246
  done
6247
IFS=$as_save_IFS
6248
6249
fi
6250
fi
6251
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6252
if test -n "$ac_ct_MANIFEST_TOOL"; then
6253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6254
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6255
else
6256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257
$as_echo "no" >&6; }
6258
fi
6259
6260
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6261
    MANIFEST_TOOL=":"
6262
  else
6263
    case $cross_compiling:$ac_tool_warned in
6264
yes:)
6265
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267
ac_tool_warned=yes ;;
6268
esac
6269
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6270
  fi
6271
else
6272
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6273
fi
6274
6275
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6277
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6278
if ${lt_cv_path_mainfest_tool+:} false; then :
6279
  $as_echo_n "(cached) " >&6
6280
else
6281
  lt_cv_path_mainfest_tool=no
6282
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6283
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6284
  cat conftest.err >&5
6285
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6286
    lt_cv_path_mainfest_tool=yes
6287
  fi
6288
  rm -f conftest*
6289
fi
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6291
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6292
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6293
  MANIFEST_TOOL=:
6294
fi
6295
6296
6297
6298
6299
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6300
6301
  case $host_os in
6302
    rhapsody* | darwin*)
6303
    if test -n "$ac_tool_prefix"; then
6304
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6305
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6307
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6308
if ${ac_cv_prog_DSYMUTIL+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6309
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6310
else
6311
  if test -n "$DSYMUTIL"; then
6312
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6313
else
6314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315
for as_dir in $PATH
6316
do
6317
  IFS=$as_save_IFS
6318
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6319
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6320
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6322
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6323
    break 2
6324
  fi
6325
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6326
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6327
IFS=$as_save_IFS
6328
6329
fi
6330
fi
6331
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6332
if test -n "$DSYMUTIL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6334
$as_echo "$DSYMUTIL" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6335
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6337
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6338
fi
6339
6340
6341
fi
6342
if test -z "$ac_cv_prog_DSYMUTIL"; then
6343
  ac_ct_DSYMUTIL=$DSYMUTIL
6344
  # Extract the first word of "dsymutil", so it can be a program name with args.
6345
set dummy dsymutil; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6347
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6348
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6349
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6350
else
6351
  if test -n "$ac_ct_DSYMUTIL"; then
6352
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6353
else
6354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355
for as_dir in $PATH
6356
do
6357
  IFS=$as_save_IFS
6358
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6359
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6363
    break 2
6364
  fi
6365
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6366
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6367
IFS=$as_save_IFS
6368
6369
fi
6370
fi
6371
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6372
if test -n "$ac_ct_DSYMUTIL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6374
$as_echo "$ac_ct_DSYMUTIL" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6375
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6377
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6378
fi
6379
6380
  if test "x$ac_ct_DSYMUTIL" = x; then
6381
    DSYMUTIL=":"
6382
  else
6383
    case $cross_compiling:$ac_tool_warned in
6384
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6385
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6386
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6387
ac_tool_warned=yes ;;
6388
esac
6389
    DSYMUTIL=$ac_ct_DSYMUTIL
6390
  fi
6391
else
6392
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6393
fi
6394
6395
    if test -n "$ac_tool_prefix"; then
6396
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6397
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6399
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6400
if ${ac_cv_prog_NMEDIT+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6401
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6402
else
6403
  if test -n "$NMEDIT"; then
6404
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6405
else
6406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407
for as_dir in $PATH
6408
do
6409
  IFS=$as_save_IFS
6410
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6411
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6412
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6414
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6415
    break 2
6416
  fi
6417
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6418
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6419
IFS=$as_save_IFS
6420
6421
fi
6422
fi
6423
NMEDIT=$ac_cv_prog_NMEDIT
6424
if test -n "$NMEDIT"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6425
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6426
$as_echo "$NMEDIT" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6427
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6429
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6430
fi
6431
6432
6433
fi
6434
if test -z "$ac_cv_prog_NMEDIT"; then
6435
  ac_ct_NMEDIT=$NMEDIT
6436
  # Extract the first word of "nmedit", so it can be a program name with args.
6437
set dummy nmedit; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6439
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6440
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6441
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6442
else
6443
  if test -n "$ac_ct_NMEDIT"; then
6444
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6445
else
6446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447
for as_dir in $PATH
6448
do
6449
  IFS=$as_save_IFS
6450
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6451
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6454
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6455
    break 2
6456
  fi
6457
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6458
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6459
IFS=$as_save_IFS
6460
6461
fi
6462
fi
6463
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6464
if test -n "$ac_ct_NMEDIT"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6466
$as_echo "$ac_ct_NMEDIT" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6467
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6469
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6470
fi
6471
6472
  if test "x$ac_ct_NMEDIT" = x; then
6473
    NMEDIT=":"
6474
  else
6475
    case $cross_compiling:$ac_tool_warned in
6476
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6477
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6478
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6479
ac_tool_warned=yes ;;
6480
esac
6481
    NMEDIT=$ac_ct_NMEDIT
6482
  fi
6483
else
6484
  NMEDIT="$ac_cv_prog_NMEDIT"
6485
fi
6486
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6487
    if test -n "$ac_tool_prefix"; then
6488
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6489
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6491
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6492
if ${ac_cv_prog_LIPO+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6493
  $as_echo_n "(cached) " >&6
6494
else
6495
  if test -n "$LIPO"; then
6496
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6497
else
6498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499
for as_dir in $PATH
6500
do
6501
  IFS=$as_save_IFS
6502
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6503
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6504
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6506
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6507
    break 2
6508
  fi
6509
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6510
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6511
IFS=$as_save_IFS
6512
6513
fi
6514
fi
6515
LIPO=$ac_cv_prog_LIPO
6516
if test -n "$LIPO"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6518
$as_echo "$LIPO" >&6; }
6519
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6520
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6521
$as_echo "no" >&6; }
6522
fi
6523
6524
6525
fi
6526
if test -z "$ac_cv_prog_LIPO"; then
6527
  ac_ct_LIPO=$LIPO
6528
  # Extract the first word of "lipo", so it can be a program name with args.
6529
set dummy lipo; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6531
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6532
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6533
  $as_echo_n "(cached) " >&6
6534
else
6535
  if test -n "$ac_ct_LIPO"; then
6536
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6537
else
6538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539
for as_dir in $PATH
6540
do
6541
  IFS=$as_save_IFS
6542
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6543
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6544
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545
    ac_cv_prog_ac_ct_LIPO="lipo"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6546
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6547
    break 2
6548
  fi
6549
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6550
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6551
IFS=$as_save_IFS
6552
6553
fi
6554
fi
6555
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6556
if test -n "$ac_ct_LIPO"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6558
$as_echo "$ac_ct_LIPO" >&6; }
6559
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6561
$as_echo "no" >&6; }
6562
fi
6563
6564
  if test "x$ac_ct_LIPO" = x; then
6565
    LIPO=":"
6566
  else
6567
    case $cross_compiling:$ac_tool_warned in
6568
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6569
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6570
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571
ac_tool_warned=yes ;;
6572
esac
6573
    LIPO=$ac_ct_LIPO
6574
  fi
6575
else
6576
  LIPO="$ac_cv_prog_LIPO"
6577
fi
6578
6579
    if test -n "$ac_tool_prefix"; then
6580
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6581
set dummy ${ac_tool_prefix}otool; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6583
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6584
if ${ac_cv_prog_OTOOL+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6585
  $as_echo_n "(cached) " >&6
6586
else
6587
  if test -n "$OTOOL"; then
6588
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6589
else
6590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591
for as_dir in $PATH
6592
do
6593
  IFS=$as_save_IFS
6594
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6595
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6598
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6599
    break 2
6600
  fi
6601
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6602
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6603
IFS=$as_save_IFS
6604
6605
fi
6606
fi
6607
OTOOL=$ac_cv_prog_OTOOL
6608
if test -n "$OTOOL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6610
$as_echo "$OTOOL" >&6; }
6611
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6613
$as_echo "no" >&6; }
6614
fi
6615
6616
6617
fi
6618
if test -z "$ac_cv_prog_OTOOL"; then
6619
  ac_ct_OTOOL=$OTOOL
6620
  # Extract the first word of "otool", so it can be a program name with args.
6621
set dummy otool; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6623
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6624
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6625
  $as_echo_n "(cached) " >&6
6626
else
6627
  if test -n "$ac_ct_OTOOL"; then
6628
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6629
else
6630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631
for as_dir in $PATH
6632
do
6633
  IFS=$as_save_IFS
6634
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6635
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637
    ac_cv_prog_ac_ct_OTOOL="otool"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6638
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6639
    break 2
6640
  fi
6641
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6642
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6643
IFS=$as_save_IFS
6644
6645
fi
6646
fi
6647
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6648
if test -n "$ac_ct_OTOOL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6650
$as_echo "$ac_ct_OTOOL" >&6; }
6651
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6653
$as_echo "no" >&6; }
6654
fi
6655
6656
  if test "x$ac_ct_OTOOL" = x; then
6657
    OTOOL=":"
6658
  else
6659
    case $cross_compiling:$ac_tool_warned in
6660
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6662
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663
ac_tool_warned=yes ;;
6664
esac
6665
    OTOOL=$ac_ct_OTOOL
6666
  fi
6667
else
6668
  OTOOL="$ac_cv_prog_OTOOL"
6669
fi
6670
6671
    if test -n "$ac_tool_prefix"; then
6672
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6673
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6675
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6676
if ${ac_cv_prog_OTOOL64+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6677
  $as_echo_n "(cached) " >&6
6678
else
6679
  if test -n "$OTOOL64"; then
6680
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6681
else
6682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683
for as_dir in $PATH
6684
do
6685
  IFS=$as_save_IFS
6686
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6687
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6691
    break 2
6692
  fi
6693
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6694
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6695
IFS=$as_save_IFS
6696
6697
fi
6698
fi
6699
OTOOL64=$ac_cv_prog_OTOOL64
6700
if test -n "$OTOOL64"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6702
$as_echo "$OTOOL64" >&6; }
6703
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6705
$as_echo "no" >&6; }
6706
fi
6707
6708
6709
fi
6710
if test -z "$ac_cv_prog_OTOOL64"; then
6711
  ac_ct_OTOOL64=$OTOOL64
6712
  # Extract the first word of "otool64", so it can be a program name with args.
6713
set dummy otool64; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6715
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6716
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6717
  $as_echo_n "(cached) " >&6
6718
else
6719
  if test -n "$ac_ct_OTOOL64"; then
6720
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6721
else
6722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723
for as_dir in $PATH
6724
do
6725
  IFS=$as_save_IFS
6726
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6727
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6731
    break 2
6732
  fi
6733
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6734
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6735
IFS=$as_save_IFS
6736
6737
fi
6738
fi
6739
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6740
if test -n "$ac_ct_OTOOL64"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6742
$as_echo "$ac_ct_OTOOL64" >&6; }
6743
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6745
$as_echo "no" >&6; }
6746
fi
6747
6748
  if test "x$ac_ct_OTOOL64" = x; then
6749
    OTOOL64=":"
6750
  else
6751
    case $cross_compiling:$ac_tool_warned in
6752
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755
ac_tool_warned=yes ;;
6756
esac
6757
    OTOOL64=$ac_ct_OTOOL64
6758
  fi
6759
else
6760
  OTOOL64="$ac_cv_prog_OTOOL64"
6761
fi
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6789
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6790
$as_echo_n "checking for -single_module linker flag... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6791
if ${lt_cv_apple_cc_single_mod+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6792
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6793
else
6794
  lt_cv_apple_cc_single_mod=no
6795
      if test -z "${LT_MULTI_MODULE}"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6796
	# By default we will add the -single_module flag. You can override
6797
	# by either setting the environment variable LT_MULTI_MODULE
6798
	# non-empty at configure time, or by adding -multi_module to the
6799
	# link flags.
6800
	rm -rf libconftest.dylib*
6801
	echo "int foo(void){return 1;}" > conftest.c
6802
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6803
-dynamiclib -Wl,-single_module conftest.c" >&5
6804
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6805
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6806
        _lt_result=$?
6807
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6808
	  lt_cv_apple_cc_single_mod=yes
6809
	else
6810
	  cat conftest.err >&5
6811
	fi
6812
	rm -rf libconftest.dylib*
6813
	rm -f conftest.*
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6814
      fi
6815
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6817
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6818
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6819
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6820
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6821
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6822
else
6823
  lt_cv_ld_exported_symbols_list=no
6824
      save_LDFLAGS=$LDFLAGS
6825
      echo "_main" > conftest.sym
6826
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6827
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6828
/* end confdefs.h.  */
6829
6830
int
6831
main ()
6832
{
6833
6834
  ;
6835
  return 0;
6836
}
6837
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6838
if ac_fn_c_try_link "$LINENO"; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6839
  lt_cv_ld_exported_symbols_list=yes
6840
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6841
  lt_cv_ld_exported_symbols_list=no
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6842
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6843
rm -f core conftest.err conftest.$ac_objext \
6844
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6845
	LDFLAGS="$save_LDFLAGS"
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6846
6847
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6849
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6850
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6851
$as_echo_n "checking for -force_load linker flag... " >&6; }
6852
if ${lt_cv_ld_force_load+:} false; then :
6853
  $as_echo_n "(cached) " >&6
6854
else
6855
  lt_cv_ld_force_load=no
6856
      cat > conftest.c << _LT_EOF
6857
int forced_loaded() { return 2;}
6858
_LT_EOF
6859
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6860
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6861
      echo "$AR cru libconftest.a conftest.o" >&5
6862
      $AR cru libconftest.a conftest.o 2>&5
6863
      echo "$RANLIB libconftest.a" >&5
6864
      $RANLIB libconftest.a 2>&5
6865
      cat > conftest.c << _LT_EOF
6866
int main() { return 0;}
6867
_LT_EOF
6868
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6869
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6870
      _lt_result=$?
6871
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6872
	lt_cv_ld_force_load=yes
6873
      else
6874
	cat conftest.err >&5
6875
      fi
6876
        rm -f conftest.err libconftest.a conftest conftest.c
6877
        rm -rf conftest.dSYM
6878
6879
fi
6880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6881
$as_echo "$lt_cv_ld_force_load" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6882
    case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6883
    rhapsody* | darwin1.[012])
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6884
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6885
    darwin1.*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6886
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6887
    darwin*) # darwin 5.x on
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6888
      # if running on 10.5 or later, the deployment target defaults
6889
      # to the OS version, if on x86, and 10.4, the deployment
6890
      # target defaults to 10.4. Don't you love it?
6891
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6892
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6893
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6894
	10.[012]*)
6895
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6896
	10.*)
6897
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6898
      esac
6899
    ;;
6900
  esac
6901
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6902
      _lt_dar_single_mod='$single_module'
6903
    fi
6904
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6905
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6906
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6907
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6908
    fi
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6909
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6910
      _lt_dsymutil='~$DSYMUTIL $lib || :'
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6911
    else
6912
      _lt_dsymutil=
6913
    fi
6914
    ;;
6915
  esac
6916
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6917
ac_ext=c
6918
ac_cpp='$CPP $CPPFLAGS'
6919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6923
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6924
# On Suns, sometimes $CPP names a directory.
6925
if test -n "$CPP" && test -d "$CPP"; then
6926
  CPP=
6927
fi
6928
if test -z "$CPP"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
6929
  if ${ac_cv_prog_CPP+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6930
  $as_echo_n "(cached) " >&6
6931
else
6932
      # Double quotes because CPP needs to be expanded
6933
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6934
    do
6935
      ac_preproc_ok=false
6936
for ac_c_preproc_warn_flag in '' yes
6937
do
6938
  # Use a header file that comes with gcc, so configuring glibc
6939
  # with a fresh cross-compiler works.
6940
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6941
  # <limits.h> exists even on freestanding compilers.
6942
  # On the NeXT, cc -E runs the code through the compiler's parser,
6943
  # not just through cpp. "Syntax error" is here to catch this case.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6944
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6945
/* end confdefs.h.  */
6946
#ifdef __STDC__
6947
# include <limits.h>
6948
#else
6949
# include <assert.h>
6950
#endif
6951
		     Syntax error
6952
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6953
if ac_fn_c_try_cpp "$LINENO"; then :
6954
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6955
else
6956
  # Broken: fails on valid input.
6957
continue
6958
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6959
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6960
6961
  # OK, works on sane cases.  Now check whether nonexistent headers
6962
  # can be detected and how.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6963
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6964
/* end confdefs.h.  */
6965
#include <ac_nonexistent.h>
6966
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6967
if ac_fn_c_try_cpp "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6968
  # Broken: success on invalid input.
6969
continue
6970
else
6971
  # Passes both tests.
6972
ac_preproc_ok=:
6973
break
6974
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6975
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6976
6977
done
6978
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6979
rm -f conftest.i conftest.err conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6980
if $ac_preproc_ok; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6981
  break
6982
fi
6983
6984
    done
6985
    ac_cv_prog_CPP=$CPP
6986
6987
fi
6988
  CPP=$ac_cv_prog_CPP
6989
else
6990
  ac_cv_prog_CPP=$CPP
6991
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6993
$as_echo "$CPP" >&6; }
6994
ac_preproc_ok=false
6995
for ac_c_preproc_warn_flag in '' yes
6996
do
6997
  # Use a header file that comes with gcc, so configuring glibc
6998
  # with a fresh cross-compiler works.
6999
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000
  # <limits.h> exists even on freestanding compilers.
7001
  # On the NeXT, cc -E runs the code through the compiler's parser,
7002
  # not just through cpp. "Syntax error" is here to catch this case.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7004
/* end confdefs.h.  */
7005
#ifdef __STDC__
7006
# include <limits.h>
7007
#else
7008
# include <assert.h>
7009
#endif
7010
		     Syntax error
7011
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7012
if ac_fn_c_try_cpp "$LINENO"; then :
7013
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7014
else
7015
  # Broken: fails on valid input.
7016
continue
7017
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7018
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7019
7020
  # OK, works on sane cases.  Now check whether nonexistent headers
7021
  # can be detected and how.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7022
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7023
/* end confdefs.h.  */
7024
#include <ac_nonexistent.h>
7025
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7026
if ac_fn_c_try_cpp "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7027
  # Broken: success on invalid input.
7028
continue
7029
else
7030
  # Passes both tests.
7031
ac_preproc_ok=:
7032
break
7033
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7034
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7035
7036
done
7037
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7038
rm -f conftest.i conftest.err conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7039
if $ac_preproc_ok; then :
7040
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7041
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7042
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7043
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7044
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7045
See \`config.log' for more details" "$LINENO" 5; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7046
fi
7047
7048
ac_ext=c
7049
ac_cpp='$CPP $CPPFLAGS'
7050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7053
7054
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7056
$as_echo_n "checking for ANSI C header files... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7057
if ${ac_cv_header_stdc+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7058
  $as_echo_n "(cached) " >&6
7059
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7060
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7061
/* end confdefs.h.  */
7062
#include <stdlib.h>
7063
#include <stdarg.h>
7064
#include <string.h>
7065
#include <float.h>
7066
7067
int
7068
main ()
7069
{
7070
7071
  ;
7072
  return 0;
7073
}
7074
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7075
if ac_fn_c_try_compile "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7076
  ac_cv_header_stdc=yes
7077
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7078
  ac_cv_header_stdc=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7079
fi
7080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081
7082
if test $ac_cv_header_stdc = yes; then
7083
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7084
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7085
/* end confdefs.h.  */
7086
#include <string.h>
7087
7088
_ACEOF
7089
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7090
  $EGREP "memchr" >/dev/null 2>&1; then :
7091
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7092
else
7093
  ac_cv_header_stdc=no
7094
fi
7095
rm -f conftest*
7096
7097
fi
7098
7099
if test $ac_cv_header_stdc = yes; then
7100
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7102
/* end confdefs.h.  */
7103
#include <stdlib.h>
7104
7105
_ACEOF
7106
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7107
  $EGREP "free" >/dev/null 2>&1; then :
7108
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7109
else
7110
  ac_cv_header_stdc=no
7111
fi
7112
rm -f conftest*
7113
7114
fi
7115
7116
if test $ac_cv_header_stdc = yes; then
7117
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7118
  if test "$cross_compiling" = yes; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7119
  :
7120
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7121
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7122
/* end confdefs.h.  */
7123
#include <ctype.h>
7124
#include <stdlib.h>
7125
#if ((' ' & 0x0FF) == 0x020)
7126
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7127
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7128
#else
7129
# define ISLOWER(c) \
7130
		   (('a' <= (c) && (c) <= 'i') \
7131
		     || ('j' <= (c) && (c) <= 'r') \
7132
		     || ('s' <= (c) && (c) <= 'z'))
7133
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7134
#endif
7135
7136
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7137
int
7138
main ()
7139
{
7140
  int i;
7141
  for (i = 0; i < 256; i++)
7142
    if (XOR (islower (i), ISLOWER (i))
7143
	|| toupper (i) != TOUPPER (i))
7144
      return 2;
7145
  return 0;
7146
}
7147
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7148
if ac_fn_c_try_run "$LINENO"; then :
7149
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7150
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7151
  ac_cv_header_stdc=no
7152
fi
7153
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7154
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7155
fi
7156
7157
fi
7158
fi
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7160
$as_echo "$ac_cv_header_stdc" >&6; }
7161
if test $ac_cv_header_stdc = yes; then
7162
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7163
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7164
7165
fi
7166
7167
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7168
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7169
		  inttypes.h stdint.h unistd.h
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7170
do :
7171
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7172
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7173
"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7174
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7175
  cat >>confdefs.h <<_ACEOF
7176
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177
_ACEOF
7178
7179
fi
7180
7181
done
7182
7183
7184
for ac_header in dlfcn.h
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7185
do :
7186
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7187
"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7188
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7189
  cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7190
#define HAVE_DLFCN_H 1
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7191
_ACEOF
7192
7193
fi
7194
7195
done
7196
7197
7198
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7199
7200
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7201
# Set options
7202
7203
7204
7205
        enable_dlopen=no
7206
7207
7208
  enable_win32_dll=no
7209
7210
7211
            # Check whether --enable-shared was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7212
if test "${enable_shared+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7213
  enableval=$enable_shared; p=${PACKAGE-default}
7214
    case $enableval in
7215
    yes) enable_shared=yes ;;
7216
    no) enable_shared=no ;;
7217
    *)
7218
      enable_shared=no
7219
      # Look at the argument we got.  We use all the common list separators.
7220
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7221
      for pkg in $enableval; do
7222
	IFS="$lt_save_ifs"
7223
	if test "X$pkg" = "X$p"; then
7224
	  enable_shared=yes
7225
	fi
7226
      done
7227
      IFS="$lt_save_ifs"
7228
      ;;
7229
    esac
7230
else
7231
  enable_shared=yes
7232
fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
  # Check whether --enable-static was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7243
if test "${enable_static+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7244
  enableval=$enable_static; p=${PACKAGE-default}
7245
    case $enableval in
7246
    yes) enable_static=yes ;;
7247
    no) enable_static=no ;;
7248
    *)
7249
     enable_static=no
7250
      # Look at the argument we got.  We use all the common list separators.
7251
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7252
      for pkg in $enableval; do
7253
	IFS="$lt_save_ifs"
7254
	if test "X$pkg" = "X$p"; then
7255
	  enable_static=yes
7256
	fi
7257
      done
7258
      IFS="$lt_save_ifs"
7259
      ;;
7260
    esac
7261
else
7262
  enable_static=yes
7263
fi
7264
7265
7266
7267
7268
7269
7270
7271
1 by Joey Hess
* Joey Hess
7272
7273
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7274
# Check whether --with-pic was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7275
if test "${with_pic+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7276
  withval=$with_pic; pic_mode="$withval"
1 by Joey Hess
* Joey Hess
7277
else
7278
  pic_mode=default
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7279
fi
7280
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7281
1 by Joey Hess
* Joey Hess
7282
test -z "$pic_mode" && pic_mode=default
7283
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7284
7285
7286
7287
7288
7289
7290
  # Check whether --enable-fast-install was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7291
if test "${enable_fast_install+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7292
  enableval=$enable_fast_install; p=${PACKAGE-default}
7293
    case $enableval in
7294
    yes) enable_fast_install=yes ;;
7295
    no) enable_fast_install=no ;;
7296
    *)
7297
      enable_fast_install=no
7298
      # Look at the argument we got.  We use all the common list separators.
7299
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7300
      for pkg in $enableval; do
7301
	IFS="$lt_save_ifs"
7302
	if test "X$pkg" = "X$p"; then
7303
	  enable_fast_install=yes
7304
	fi
7305
      done
7306
      IFS="$lt_save_ifs"
7307
      ;;
7308
    esac
7309
else
7310
  enable_fast_install=yes
7311
fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
# This can be used to rebuild libtool when needed
7324
LIBTOOL_DEPS="$ltmain"
7325
7326
# Always use our own libtool.
7327
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7353
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7354
test -z "$LN_S" && LN_S="ln -s"
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
if test -n "${ZSH_VERSION+set}" ; then
7370
   setopt NO_GLOB_SUBST
7371
fi
7372
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7374
$as_echo_n "checking for objdir... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7375
if ${lt_cv_objdir+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7376
  $as_echo_n "(cached) " >&6
7377
else
7378
  rm -f .libs 2>/dev/null
7379
mkdir .libs 2>/dev/null
7380
if test -d .libs; then
7381
  lt_cv_objdir=.libs
7382
else
7383
  # MS-DOS does not allow filenames that begin with a dot.
7384
  lt_cv_objdir=_libs
7385
fi
7386
rmdir .libs 2>/dev/null
7387
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7389
$as_echo "$lt_cv_objdir" >&6; }
7390
objdir=$lt_cv_objdir
7391
7392
7393
7394
7395
7396
cat >>confdefs.h <<_ACEOF
7397
#define LT_OBJDIR "$lt_cv_objdir/"
7398
_ACEOF
7399
7400
7401
7402
7403
case $host_os in
7404
aix3*)
7405
  # AIX sometimes has problems with the GCC collect2 program.  For some
7406
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7407
  # vanish in a puff of smoke.
7408
  if test "X${COLLECT_NAMES+set}" != Xset; then
7409
    COLLECT_NAMES=
7410
    export COLLECT_NAMES
7411
  fi
7412
  ;;
7413
esac
7414
7415
# Global variables:
7416
ofile=libtool
7417
can_build_shared=yes
7418
7419
# All known linkers require a `.a' archive for static linking (except MSVC,
7420
# which needs '.lib').
7421
libext=a
7422
7423
with_gnu_ld="$lt_cv_prog_gnu_ld"
7424
7425
old_CC="$CC"
7426
old_CFLAGS="$CFLAGS"
7427
7428
# Set sane defaults for various variables
7429
test -z "$CC" && CC=cc
7430
test -z "$LTCC" && LTCC=$CC
7431
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7432
test -z "$LD" && LD=ld
7433
test -z "$ac_objext" && ac_objext=o
7434
7435
for cc_temp in $compiler""; do
7436
  case $cc_temp in
7437
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7438
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7439
    \-*) ;;
7440
    *) break;;
7441
  esac
7442
done
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7443
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7444
7445
7446
# Only perform the check for file, if the check method requires it
7447
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7448
case $deplibs_check_method in
7449
file_magic*)
7450
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7451
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7452
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7453
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7454
  $as_echo_n "(cached) " >&6
7455
else
7456
  case $MAGIC_CMD in
7457
[\\/*] |  ?:[\\/]*)
7458
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7459
  ;;
7460
*)
7461
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7462
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7464
  for ac_dir in $ac_dummy; do
7465
    IFS="$lt_save_ifs"
7466
    test -z "$ac_dir" && ac_dir=.
7467
    if test -f $ac_dir/${ac_tool_prefix}file; then
7468
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7469
      if test -n "$file_magic_test_file"; then
7470
	case $deplibs_check_method in
7471
	"file_magic "*)
7472
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7473
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7475
	    $EGREP "$file_magic_regex" > /dev/null; then
7476
	    :
7477
	  else
7478
	    cat <<_LT_EOF 1>&2
7479
7480
*** Warning: the command libtool uses to detect shared libraries,
7481
*** $file_magic_cmd, produces output that libtool cannot recognize.
7482
*** The result is that libtool may fail to recognize shared libraries
7483
*** as such.  This will affect the creation of libtool libraries that
7484
*** depend on shared libraries, but programs linked with such libtool
7485
*** libraries will work regardless of this problem.  Nevertheless, you
7486
*** may want to report the problem to your system manager and/or to
7487
*** bug-libtool@gnu.org
7488
7489
_LT_EOF
7490
	  fi ;;
7491
	esac
7492
      fi
7493
      break
7494
    fi
7495
  done
7496
  IFS="$lt_save_ifs"
7497
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7498
  ;;
7499
esac
7500
fi
7501
7502
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503
if test -n "$MAGIC_CMD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7505
$as_echo "$MAGIC_CMD" >&6; }
7506
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7508
$as_echo "no" >&6; }
7509
fi
7510
7511
7512
7513
7514
7515
if test -z "$lt_cv_path_MAGIC_CMD"; then
7516
  if test -n "$ac_tool_prefix"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7517
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7518
$as_echo_n "checking for file... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7519
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7520
  $as_echo_n "(cached) " >&6
7521
else
7522
  case $MAGIC_CMD in
7523
[\\/*] |  ?:[\\/]*)
7524
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7525
  ;;
7526
*)
7527
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7528
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7529
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7530
  for ac_dir in $ac_dummy; do
7531
    IFS="$lt_save_ifs"
7532
    test -z "$ac_dir" && ac_dir=.
7533
    if test -f $ac_dir/file; then
7534
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7535
      if test -n "$file_magic_test_file"; then
7536
	case $deplibs_check_method in
7537
	"file_magic "*)
7538
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7539
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7541
	    $EGREP "$file_magic_regex" > /dev/null; then
7542
	    :
7543
	  else
7544
	    cat <<_LT_EOF 1>&2
7545
7546
*** Warning: the command libtool uses to detect shared libraries,
7547
*** $file_magic_cmd, produces output that libtool cannot recognize.
7548
*** The result is that libtool may fail to recognize shared libraries
7549
*** as such.  This will affect the creation of libtool libraries that
7550
*** depend on shared libraries, but programs linked with such libtool
7551
*** libraries will work regardless of this problem.  Nevertheless, you
7552
*** may want to report the problem to your system manager and/or to
7553
*** bug-libtool@gnu.org
7554
7555
_LT_EOF
7556
	  fi ;;
7557
	esac
7558
      fi
7559
      break
7560
    fi
7561
  done
7562
  IFS="$lt_save_ifs"
7563
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7564
  ;;
7565
esac
7566
fi
7567
7568
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569
if test -n "$MAGIC_CMD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7571
$as_echo "$MAGIC_CMD" >&6; }
7572
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7574
$as_echo "no" >&6; }
7575
fi
7576
7577
7578
  else
7579
    MAGIC_CMD=:
7580
  fi
7581
fi
7582
7583
  fi
7584
  ;;
7585
esac
7586
1 by Joey Hess
* Joey Hess
7587
# Use C for the default configuration in the libtool script
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7588
1 by Joey Hess
* Joey Hess
7589
lt_save_CC="$CC"
7590
ac_ext=c
7591
ac_cpp='$CPP $CPPFLAGS'
7592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596
7597
# Source file extension for C test sources.
7598
ac_ext=c
7599
7600
# Object file extension for compiled C test sources.
7601
objext=o
7602
objext=$objext
7603
7604
# Code to be used in simple compile tests
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7605
lt_simple_compile_test_code="int some_variable = 0;"
1 by Joey Hess
* Joey Hess
7606
7607
# Code to be used in simple link tests
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7608
lt_simple_link_test_code='int main(){return(0);}'
1 by Joey Hess
* Joey Hess
7609
7610
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7611
7612
7613
7614
7615
1 by Joey Hess
* Joey Hess
7616
# If no C compiler was specified, use CC.
7617
LTCC=${LTCC-"$CC"}
7618
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7619
# If no C compiler flags were specified, use CFLAGS.
7620
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7621
1 by Joey Hess
* Joey Hess
7622
# Allow CC to be a program name with arguments.
7623
compiler=$CC
7624
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7625
# Save the default compiler, since it gets overwritten when the other
7626
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7627
compiler_DEFAULT=$CC
1 by Joey Hess
* Joey Hess
7628
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7629
# save warnings/boilerplate of simple test code
7630
ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7631
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7632
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7633
_lt_compiler_boilerplate=`cat conftest.err`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7634
$RM conftest*
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7635
7636
ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7637
echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7638
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7639
_lt_linker_boilerplate=`cat conftest.err`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7640
$RM -r conftest*
7641
7642
7643
if test -n "$compiler"; then
1 by Joey Hess
* Joey Hess
7644
7645
lt_prog_compiler_no_builtin_flag=
7646
7647
if test "$GCC" = yes; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7648
  case $cc_basename in
7649
  nvcc*)
7650
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7651
  *)
7652
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7653
  esac
1 by Joey Hess
* Joey Hess
7654
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7655
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7656
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7657
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7658
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
7659
else
7660
  lt_cv_prog_compiler_rtti_exceptions=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7661
   ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7662
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
7663
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7664
   # Insert the option either (1) after the last *FLAGS variable, or
7665
   # (2) before a word containing "conftest.", or (3) at the end.
7666
   # Note that $ac_compile itself does not contain backslashes and begins
7667
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7668
   # The option is referenced via a variable to avoid confusing sed.
7669
   lt_compile=`echo "$ac_compile" | $SED \
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7670
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Joey Hess
* Joey Hess
7671
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7672
   -e 's:$: $lt_compiler_flag:'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7673
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1 by Joey Hess
* Joey Hess
7674
   (eval "$lt_compile" 2>conftest.err)
7675
   ac_status=$?
7676
   cat conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7677
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1 by Joey Hess
* Joey Hess
7678
   if (exit $ac_status) && test -s "$ac_outfile"; then
7679
     # The compiler can only warn and ignore the option if not recognized
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7680
     # So say no if there are warnings other than the usual output.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7681
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7682
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7683
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1 by Joey Hess
* Joey Hess
7684
       lt_cv_prog_compiler_rtti_exceptions=yes
7685
     fi
7686
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7687
   $RM conftest*
1 by Joey Hess
* Joey Hess
7688
7689
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7691
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1 by Joey Hess
* Joey Hess
7692
7693
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7694
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7695
else
7696
    :
7697
fi
7698
7699
fi
7700
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7701
7702
7703
7704
7705
7706
  lt_prog_compiler_wl=
1 by Joey Hess
* Joey Hess
7707
lt_prog_compiler_pic=
7708
lt_prog_compiler_static=
7709
7710
7711
  if test "$GCC" = yes; then
7712
    lt_prog_compiler_wl='-Wl,'
7713
    lt_prog_compiler_static='-static'
7714
7715
    case $host_os in
7716
      aix*)
7717
      # All AIX code is PIC.
7718
      if test "$host_cpu" = ia64; then
7719
	# AIX 5 now supports IA64 processor
7720
	lt_prog_compiler_static='-Bstatic'
7721
      fi
7722
      ;;
7723
7724
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7725
      case $host_cpu in
7726
      powerpc)
7727
            # see comment about AmigaOS4 .so support
7728
            lt_prog_compiler_pic='-fPIC'
7729
        ;;
7730
      m68k)
7731
            # FIXME: we need at least 68020 code to build shared libraries, but
7732
            # adding the `-m68020' flag to GCC prevents building anything better,
7733
            # like `-m68040'.
7734
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7735
        ;;
7736
      esac
1 by Joey Hess
* Joey Hess
7737
      ;;
7738
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7739
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Joey Hess
* Joey Hess
7740
      # PIC is the default for these OSes.
7741
      ;;
7742
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7743
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Joey Hess
* Joey Hess
7744
      # This hack is so that the source file can tell whether it is being
7745
      # built for inclusion in a dll (and should export symbols for example).
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7746
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7747
      # (--disable-auto-import) libraries
1 by Joey Hess
* Joey Hess
7748
      lt_prog_compiler_pic='-DDLL_EXPORT'
7749
      ;;
7750
7751
    darwin* | rhapsody*)
7752
      # PIC is the default on this platform
7753
      # Common symbols not allowed in MH_DYLIB files
7754
      lt_prog_compiler_pic='-fno-common'
7755
      ;;
7756
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7757
    haiku*)
7758
      # PIC is the default for Haiku.
7759
      # The "-static" flag exists, but is broken.
7760
      lt_prog_compiler_static=
7761
      ;;
7762
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7763
    hpux*)
7764
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7765
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7766
      # sets the default TLS model and affects inlining.
7767
      case $host_cpu in
7768
      hppa*64*)
7769
	# +Z the default
7770
	;;
7771
      *)
7772
	lt_prog_compiler_pic='-fPIC'
7773
	;;
7774
      esac
7775
      ;;
7776
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7777
    interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7778
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7779
      # Instead, we relocate shared libraries at runtime.
7780
      ;;
7781
1 by Joey Hess
* Joey Hess
7782
    msdosdjgpp*)
7783
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7784
      # on systems that don't support them.
7785
      lt_prog_compiler_can_build_shared=no
7786
      enable_shared=no
7787
      ;;
7788
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7789
    *nto* | *qnx*)
7790
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7791
      # it will coredump.
7792
      lt_prog_compiler_pic='-fPIC -shared'
7793
      ;;
7794
1 by Joey Hess
* Joey Hess
7795
    sysv4*MP*)
7796
      if test -d /usr/nec; then
7797
	lt_prog_compiler_pic=-Kconform_pic
7798
      fi
7799
      ;;
7800
7801
    *)
7802
      lt_prog_compiler_pic='-fPIC'
7803
      ;;
7804
    esac
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7805
7806
    case $cc_basename in
7807
    nvcc*) # Cuda Compiler Driver 2.2
7808
      lt_prog_compiler_wl='-Xlinker '
7809
      lt_prog_compiler_pic='-Xcompiler -fPIC'
7810
      ;;
7811
    esac
1 by Joey Hess
* Joey Hess
7812
  else
7813
    # PORTME Check for flag to pass linker flags through the system compiler.
7814
    case $host_os in
7815
    aix*)
7816
      lt_prog_compiler_wl='-Wl,'
7817
      if test "$host_cpu" = ia64; then
7818
	# AIX 5 now supports IA64 processor
7819
	lt_prog_compiler_static='-Bstatic'
7820
      else
7821
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7822
      fi
7823
      ;;
7824
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7825
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Joey Hess
* Joey Hess
7826
      # This hack is so that the source file can tell whether it is being
7827
      # built for inclusion in a dll (and should export symbols for example).
7828
      lt_prog_compiler_pic='-DDLL_EXPORT'
7829
      ;;
7830
7831
    hpux9* | hpux10* | hpux11*)
7832
      lt_prog_compiler_wl='-Wl,'
7833
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7834
      # not for PA HP-UX.
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7835
      case $host_cpu in
1 by Joey Hess
* Joey Hess
7836
      hppa*64*|ia64*)
7837
	# +Z the default
7838
	;;
7839
      *)
7840
	lt_prog_compiler_pic='+Z'
7841
	;;
7842
      esac
7843
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7844
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7845
      ;;
7846
7847
    irix5* | irix6* | nonstopux*)
7848
      lt_prog_compiler_wl='-Wl,'
7849
      # PIC (with -KPIC) is the default.
7850
      lt_prog_compiler_static='-non_shared'
7851
      ;;
7852
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
7853
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7854
      case $cc_basename in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7855
      # old Intel for x86_64 which still supported -KPIC.
7856
      ecc*)
1 by Joey Hess
* Joey Hess
7857
	lt_prog_compiler_wl='-Wl,'
7858
	lt_prog_compiler_pic='-KPIC'
7859
	lt_prog_compiler_static='-static'
7860
        ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7861
      # icc used to be incompatible with GCC.
7862
      # ICC 10 doesn't accept -KPIC any more.
7863
      icc* | ifort*)
7864
	lt_prog_compiler_wl='-Wl,'
7865
	lt_prog_compiler_pic='-fPIC'
7866
	lt_prog_compiler_static='-static'
7867
        ;;
7868
      # Lahey Fortran 8.1.
7869
      lf95*)
7870
	lt_prog_compiler_wl='-Wl,'
7871
	lt_prog_compiler_pic='--shared'
7872
	lt_prog_compiler_static='--static'
7873
	;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7874
      nagfor*)
7875
	# NAG Fortran compiler
7876
	lt_prog_compiler_wl='-Wl,-Wl,,'
7877
	lt_prog_compiler_pic='-PIC'
7878
	lt_prog_compiler_static='-Bstatic'
7879
	;;
7880
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7881
        # Portland Group compilers (*not* the Pentium gcc compiler,
7882
	# which looks to be a dead project)
7883
	lt_prog_compiler_wl='-Wl,'
7884
	lt_prog_compiler_pic='-fpic'
7885
	lt_prog_compiler_static='-Bstatic'
7886
        ;;
1 by Joey Hess
* Joey Hess
7887
      ccc*)
7888
        lt_prog_compiler_wl='-Wl,'
7889
        # All Alpha code is PIC.
7890
        lt_prog_compiler_static='-non_shared'
7891
        ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7892
      xl* | bgxl* | bgf* | mpixl*)
7893
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7894
	lt_prog_compiler_wl='-Wl,'
7895
	lt_prog_compiler_pic='-qpic'
7896
	lt_prog_compiler_static='-qstaticlink'
7897
	;;
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7898
      *)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7899
	case `$CC -V 2>&1 | sed 5q` in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7900
	*Sun\ F* | *Sun*Fortran*)
7901
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7902
	  lt_prog_compiler_pic='-KPIC'
7903
	  lt_prog_compiler_static='-Bstatic'
7904
	  lt_prog_compiler_wl=''
7905
	  ;;
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7906
	*Sun\ C*)
7907
	  # Sun C 5.9
7908
	  lt_prog_compiler_pic='-KPIC'
7909
	  lt_prog_compiler_static='-Bstatic'
7910
	  lt_prog_compiler_wl='-Wl,'
7911
	  ;;
7912
	esac
7913
	;;
1 by Joey Hess
* Joey Hess
7914
      esac
7915
      ;;
7916
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7917
    newsos6)
7918
      lt_prog_compiler_pic='-KPIC'
7919
      lt_prog_compiler_static='-Bstatic'
7920
      ;;
7921
7922
    *nto* | *qnx*)
7923
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7924
      # it will coredump.
7925
      lt_prog_compiler_pic='-fPIC -shared'
7926
      ;;
7927
1 by Joey Hess
* Joey Hess
7928
    osf3* | osf4* | osf5*)
7929
      lt_prog_compiler_wl='-Wl,'
7930
      # All OSF/1 code is PIC.
7931
      lt_prog_compiler_static='-non_shared'
7932
      ;;
7933
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7934
    rdos*)
7935
      lt_prog_compiler_static='-non_shared'
7936
      ;;
7937
1 by Joey Hess
* Joey Hess
7938
    solaris*)
7939
      lt_prog_compiler_pic='-KPIC'
7940
      lt_prog_compiler_static='-Bstatic'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7941
      case $cc_basename in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7942
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7943
	lt_prog_compiler_wl='-Qoption ld ';;
7944
      *)
7945
	lt_prog_compiler_wl='-Wl,';;
7946
      esac
1 by Joey Hess
* Joey Hess
7947
      ;;
7948
7949
    sunos4*)
7950
      lt_prog_compiler_wl='-Qoption ld '
7951
      lt_prog_compiler_pic='-PIC'
7952
      lt_prog_compiler_static='-Bstatic'
7953
      ;;
7954
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7955
    sysv4 | sysv4.2uw2* | sysv4.3*)
1 by Joey Hess
* Joey Hess
7956
      lt_prog_compiler_wl='-Wl,'
7957
      lt_prog_compiler_pic='-KPIC'
7958
      lt_prog_compiler_static='-Bstatic'
7959
      ;;
7960
7961
    sysv4*MP*)
7962
      if test -d /usr/nec ;then
7963
	lt_prog_compiler_pic='-Kconform_pic'
7964
	lt_prog_compiler_static='-Bstatic'
7965
      fi
7966
      ;;
7967
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7968
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7969
      lt_prog_compiler_wl='-Wl,'
7970
      lt_prog_compiler_pic='-KPIC'
7971
      lt_prog_compiler_static='-Bstatic'
7972
      ;;
7973
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7974
    unicos*)
7975
      lt_prog_compiler_wl='-Wl,'
7976
      lt_prog_compiler_can_build_shared=no
7977
      ;;
7978
1 by Joey Hess
* Joey Hess
7979
    uts4*)
7980
      lt_prog_compiler_pic='-pic'
7981
      lt_prog_compiler_static='-Bstatic'
7982
      ;;
7983
7984
    *)
7985
      lt_prog_compiler_can_build_shared=no
7986
      ;;
7987
    esac
7988
  fi
7989
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7990
case $host_os in
7991
  # For platforms which do not support PIC, -DPIC is meaningless:
7992
  *djgpp*)
7993
    lt_prog_compiler_pic=
7994
    ;;
7995
  *)
7996
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7997
    ;;
7998
esac
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
7999
8000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8001
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8002
if ${lt_cv_prog_compiler_pic+:} false; then :
8003
  $as_echo_n "(cached) " >&6
8004
else
8005
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8006
fi
8007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8008
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8009
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1 by Joey Hess
* Joey Hess
8010
8011
#
8012
# Check to make sure the PIC flag actually works.
8013
#
8014
if test -n "$lt_prog_compiler_pic"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8015
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8016
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8017
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8018
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
8019
else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8020
  lt_cv_prog_compiler_pic_works=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8021
   ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8022
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8023
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8024
   # Insert the option either (1) after the last *FLAGS variable, or
8025
   # (2) before a word containing "conftest.", or (3) at the end.
8026
   # Note that $ac_compile itself does not contain backslashes and begins
8027
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8028
   # The option is referenced via a variable to avoid confusing sed.
8029
   lt_compile=`echo "$ac_compile" | $SED \
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8030
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Joey Hess
* Joey Hess
8031
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032
   -e 's:$: $lt_compiler_flag:'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8033
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1 by Joey Hess
* Joey Hess
8034
   (eval "$lt_compile" 2>conftest.err)
8035
   ac_status=$?
8036
   cat conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8037
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1 by Joey Hess
* Joey Hess
8038
   if (exit $ac_status) && test -s "$ac_outfile"; then
8039
     # The compiler can only warn and ignore the option if not recognized
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8040
     # So say no if there are warnings other than the usual output.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8041
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8042
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8043
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8044
       lt_cv_prog_compiler_pic_works=yes
1 by Joey Hess
* Joey Hess
8045
     fi
8046
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8047
   $RM conftest*
1 by Joey Hess
* Joey Hess
8048
8049
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8051
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1 by Joey Hess
* Joey Hess
8052
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8053
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1 by Joey Hess
* Joey Hess
8054
    case $lt_prog_compiler_pic in
8055
     "" | " "*) ;;
8056
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8057
     esac
8058
else
8059
    lt_prog_compiler_pic=
8060
     lt_prog_compiler_can_build_shared=no
8061
fi
8062
8063
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8064
8065
8066
8067
8068
1 by Joey Hess
* Joey Hess
8069
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8070
8071
8072
8073
8074
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8075
#
8076
# Check to make sure the static flag actually works.
8077
#
8078
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8080
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8081
if ${lt_cv_prog_compiler_static_works+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8082
  $as_echo_n "(cached) " >&6
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8083
else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8084
  lt_cv_prog_compiler_static_works=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8085
   save_LDFLAGS="$LDFLAGS"
8086
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8087
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8088
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8089
     # The linker can only warn and ignore the option if not recognized
8090
     # So say no if there are warnings
8091
     if test -s conftest.err; then
8092
       # Append any errors to the config.log.
8093
       cat conftest.err 1>&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8094
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8095
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096
       if diff conftest.exp conftest.er2 >/dev/null; then
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8097
         lt_cv_prog_compiler_static_works=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8098
       fi
8099
     else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8100
       lt_cv_prog_compiler_static_works=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8101
     fi
8102
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8103
   $RM -r conftest*
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8104
   LDFLAGS="$save_LDFLAGS"
8105
8106
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8108
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8109
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8110
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8111
    :
8112
else
8113
    lt_prog_compiler_static=
8114
fi
8115
8116
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8117
8118
8119
8120
8121
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8122
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8123
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8124
if ${lt_cv_prog_compiler_c_o+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8125
  $as_echo_n "(cached) " >&6
8126
else
8127
  lt_cv_prog_compiler_c_o=no
8128
   $RM -r conftest 2>/dev/null
8129
   mkdir conftest
8130
   cd conftest
8131
   mkdir out
8132
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8133
8134
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8135
   # Insert the option either (1) after the last *FLAGS variable, or
8136
   # (2) before a word containing "conftest.", or (3) at the end.
8137
   # Note that $ac_compile itself does not contain backslashes and begins
8138
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8139
   lt_compile=`echo "$ac_compile" | $SED \
8140
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142
   -e 's:$: $lt_compiler_flag:'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8143
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8144
   (eval "$lt_compile" 2>out/conftest.err)
8145
   ac_status=$?
8146
   cat out/conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8147
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8148
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8149
   then
8150
     # The compiler can only warn and ignore the option if not recognized
8151
     # So say no if there are warnings
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8152
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8153
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8154
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8155
       lt_cv_prog_compiler_c_o=yes
8156
     fi
8157
   fi
8158
   chmod u+w . 2>&5
8159
   $RM conftest*
8160
   # SGI C++ compiler will create directory out/ii_files/ for
8161
   # template instantiation
8162
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8163
   $RM out/* && rmdir out
8164
   cd ..
8165
   $RM -r conftest
8166
   $RM conftest*
8167
8168
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8170
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8171
8172
8173
8174
8175
8176
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8177
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8178
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8179
if ${lt_cv_prog_compiler_c_o+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8180
  $as_echo_n "(cached) " >&6
8181
else
8182
  lt_cv_prog_compiler_c_o=no
8183
   $RM -r conftest 2>/dev/null
8184
   mkdir conftest
8185
   cd conftest
8186
   mkdir out
8187
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188
8189
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8190
   # Insert the option either (1) after the last *FLAGS variable, or
8191
   # (2) before a word containing "conftest.", or (3) at the end.
8192
   # Note that $ac_compile itself does not contain backslashes and begins
8193
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8194
   lt_compile=`echo "$ac_compile" | $SED \
8195
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197
   -e 's:$: $lt_compiler_flag:'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8198
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8199
   (eval "$lt_compile" 2>out/conftest.err)
8200
   ac_status=$?
8201
   cat out/conftest.err >&5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8202
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8203
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8204
   then
8205
     # The compiler can only warn and ignore the option if not recognized
8206
     # So say no if there are warnings
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8207
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8208
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8209
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8210
       lt_cv_prog_compiler_c_o=yes
8211
     fi
8212
   fi
8213
   chmod u+w . 2>&5
8214
   $RM conftest*
8215
   # SGI C++ compiler will create directory out/ii_files/ for
8216
   # template instantiation
8217
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8218
   $RM out/* && rmdir out
8219
   cd ..
8220
   $RM -r conftest
8221
   $RM conftest*
8222
8223
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8225
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8226
8227
1 by Joey Hess
* Joey Hess
8228
8229
8230
hard_links="nottested"
8231
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8232
  # do not overwrite the value of need_locks provided by the user
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8233
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8234
$as_echo_n "checking if we can lock with hard links... " >&6; }
1 by Joey Hess
* Joey Hess
8235
  hard_links=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8236
  $RM conftest*
1 by Joey Hess
* Joey Hess
8237
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8238
  touch conftest.a
8239
  ln conftest.a conftest.b 2>&5 || hard_links=no
8240
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8242
$as_echo "$hard_links" >&6; }
1 by Joey Hess
* Joey Hess
8243
  if test "$hard_links" = no; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8244
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8245
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1 by Joey Hess
* Joey Hess
8246
    need_locks=warn
8247
  fi
8248
else
8249
  need_locks=no
8250
fi
8251
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8252
8253
8254
8255
8256
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8258
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1 by Joey Hess
* Joey Hess
8259
8260
  runpath_var=
8261
  allow_undefined_flag=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8262
  always_export_symbols=no
1 by Joey Hess
* Joey Hess
8263
  archive_cmds=
8264
  archive_expsym_cmds=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8265
  compiler_needs_object=no
8266
  enable_shared_with_static_runtimes=no
1 by Joey Hess
* Joey Hess
8267
  export_dynamic_flag_spec=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8268
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8269
  hardcode_automatic=no
8270
  hardcode_direct=no
8271
  hardcode_direct_absolute=no
1 by Joey Hess
* Joey Hess
8272
  hardcode_libdir_flag_spec=
8273
  hardcode_libdir_flag_spec_ld=
8274
  hardcode_libdir_separator=
8275
  hardcode_minus_L=no
8276
  hardcode_shlibpath_var=unsupported
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8277
  inherit_rpath=no
1 by Joey Hess
* Joey Hess
8278
  link_all_deplibs=unknown
8279
  module_cmds=
8280
  module_expsym_cmds=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8281
  old_archive_from_new_cmds=
8282
  old_archive_from_expsyms_cmds=
8283
  thread_safe_flag_spec=
8284
  whole_archive_flag_spec=
1 by Joey Hess
* Joey Hess
8285
  # include_expsyms should be a list of space-separated symbols to be *always*
8286
  # included in the symbol list
8287
  include_expsyms=
8288
  # exclude_expsyms can be an extended regexp of symbols to exclude
8289
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8290
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8291
  # as well as any symbol that contains `d'.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8292
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1 by Joey Hess
* Joey Hess
8293
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8294
  # platforms (ab)use it in PIC code, but their linkers get confused if
8295
  # the symbol is explicitly referenced.  Since portable code cannot
8296
  # rely on this symbol name, it's probably fine to never include it in
8297
  # preloaded symbol tables.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8298
  # Exclude shared library initialization/finalization symbols.
1 by Joey Hess
* Joey Hess
8299
  extract_expsyms_cmds=
8300
8301
  case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8302
  cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
8303
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8304
    # When not using gcc, we currently assume that we are using
8305
    # Microsoft Visual C++.
8306
    if test "$GCC" != yes; then
8307
      with_gnu_ld=no
8308
    fi
8309
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8310
  interix*)
8311
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8312
    with_gnu_ld=yes
8313
    ;;
1 by Joey Hess
* Joey Hess
8314
  openbsd*)
8315
    with_gnu_ld=no
8316
    ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8317
  linux* | k*bsd*-gnu | gnu*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8318
    link_all_deplibs=no
8319
    ;;
1 by Joey Hess
* Joey Hess
8320
  esac
8321
8322
  ld_shlibs=yes
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8323
8324
  # On some targets, GNU ld is compatible enough with the native linker
8325
  # that we're better off using the native interface for both.
8326
  lt_use_gnu_ld_interface=no
1 by Joey Hess
* Joey Hess
8327
  if test "$with_gnu_ld" = yes; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8328
    case $host_os in
8329
      aix*)
8330
	# The AIX port of GNU ld has always aspired to compatibility
8331
	# with the native linker.  However, as the warning in the GNU ld
8332
	# block says, versions before 2.19.5* couldn't really create working
8333
	# shared libraries, regardless of the interface used.
8334
	case `$LD -v 2>&1` in
8335
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8336
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8337
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8338
	  *)
8339
	    lt_use_gnu_ld_interface=yes
8340
	    ;;
8341
	esac
8342
	;;
8343
      *)
8344
	lt_use_gnu_ld_interface=yes
8345
	;;
8346
    esac
8347
  fi
8348
8349
  if test "$lt_use_gnu_ld_interface" = yes; then
1 by Joey Hess
* Joey Hess
8350
    # If archive_cmds runs LD, not CC, wlarc should be empty
8351
    wlarc='${wl}'
8352
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8353
    # Set some defaults for GNU ld with shared library support. These
8354
    # are reset later if shared libraries are not supported. Putting them
8355
    # here allows them to be overridden if necessary.
8356
    runpath_var=LD_RUN_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8357
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8358
    export_dynamic_flag_spec='${wl}--export-dynamic'
8359
    # ancient GNU ld didn't support --whole-archive et. al.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8360
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8361
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8362
    else
8363
      whole_archive_flag_spec=
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8364
    fi
8365
    supports_anon_versioning=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8366
    case `$LD -v 2>&1` in
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
8367
      *GNU\ gold*) supports_anon_versioning=yes ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8368
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8369
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8370
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8371
      *\ 2.11.*) ;; # other 2.11 versions
8372
      *) supports_anon_versioning=yes ;;
8373
    esac
8374
1 by Joey Hess
* Joey Hess
8375
    # See if GNU ld supports shared libraries.
8376
    case $host_os in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8377
    aix[3-9]*)
1 by Joey Hess
* Joey Hess
8378
      # On AIX/PPC, the GNU linker is very broken
8379
      if test "$host_cpu" != ia64; then
8380
	ld_shlibs=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8381
	cat <<_LT_EOF 1>&2
1 by Joey Hess
* Joey Hess
8382
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8383
*** Warning: the GNU linker, at least up to release 2.19, is reported
1 by Joey Hess
* Joey Hess
8384
*** to be unable to reliably create shared libraries on AIX.
8385
*** Therefore, libtool is disabling shared libraries support.  If you
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8386
*** really care for shared libraries, you may want to install binutils
8387
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8388
*** You will then need to restart the configuration process.
1 by Joey Hess
* Joey Hess
8389
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8390
_LT_EOF
1 by Joey Hess
* Joey Hess
8391
      fi
8392
      ;;
8393
8394
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8395
      case $host_cpu in
8396
      powerpc)
8397
            # see comment about AmigaOS4 .so support
8398
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399
            archive_expsym_cmds=''
8400
        ;;
8401
      m68k)
8402
            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)'
8403
            hardcode_libdir_flag_spec='-L$libdir'
8404
            hardcode_minus_L=yes
8405
        ;;
8406
      esac
1 by Joey Hess
* Joey Hess
8407
      ;;
8408
8409
    beos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8410
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Joey Hess
* Joey Hess
8411
	allow_undefined_flag=unsupported
8412
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8413
	# support --undefined.  This deserves some investigation.  FIXME
8414
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415
      else
8416
	ld_shlibs=no
8417
      fi
8418
      ;;
8419
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8420
    cygwin* | mingw* | pw32* | cegcc*)
8421
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
1 by Joey Hess
* Joey Hess
8422
      # as there is no search path for DLLs.
8423
      hardcode_libdir_flag_spec='-L$libdir'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8424
      export_dynamic_flag_spec='${wl}--export-all-symbols'
1 by Joey Hess
* Joey Hess
8425
      allow_undefined_flag=unsupported
8426
      always_export_symbols=no
8427
      enable_shared_with_static_runtimes=yes
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8428
      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'
8429
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1 by Joey Hess
* Joey Hess
8430
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8431
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8432
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1 by Joey Hess
* Joey Hess
8433
	# If the export-symbols file already is a .def file (1st line
8434
	# is EXPORTS), use it as is; otherwise, prepend...
8435
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8436
	  cp $export_symbols $output_objdir/$soname.def;
8437
	else
8438
	  echo EXPORTS > $output_objdir/$soname.def;
8439
	  cat $export_symbols >> $output_objdir/$soname.def;
8440
	fi~
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8441
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1 by Joey Hess
* Joey Hess
8442
      else
8443
	ld_shlibs=no
8444
      fi
8445
      ;;
8446
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8447
    haiku*)
8448
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8449
      link_all_deplibs=yes
8450
      ;;
8451
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8452
    interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8453
      hardcode_direct=no
8454
      hardcode_shlibpath_var=no
8455
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8456
      export_dynamic_flag_spec='${wl}-E'
8457
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8458
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8459
      # default) and relocated if they conflict, which is a slow very memory
8460
      # consuming and fragmenting process.  To avoid this, we pick a random,
8461
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8462
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8463
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8464
      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'
8465
      ;;
8466
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
8467
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8468
      tmp_diet=no
8469
      if test "$host_os" = linux-dietlibc; then
8470
	case $cc_basename in
8471
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8472
	esac
8473
      fi
8474
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8475
	 && test "$tmp_diet" = no
8476
      then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8477
	tmp_addflag=' $pic_flag'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8478
	tmp_sharedflag='-shared'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8479
	case $cc_basename,$host_cpu in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8480
        pgcc*)				# Portland Group C compiler
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8481
	  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'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8482
	  tmp_addflag=' $pic_flag'
8483
	  ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8484
	pgf77* | pgf90* | pgf95* | pgfortran*)
8485
					# Portland Group f77 and f90 compilers
8486
	  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'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8487
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8488
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8489
	  tmp_addflag=' -i_dynamic' ;;
8490
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8491
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8492
	ifc* | ifort*)			# Intel Fortran compiler
8493
	  tmp_addflag=' -nofor_main' ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8494
	lf95*)				# Lahey Fortran 8.1
8495
	  whole_archive_flag_spec=
8496
	  tmp_sharedflag='--shared' ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8497
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8498
	  tmp_sharedflag='-qmkshrobj'
8499
	  tmp_addflag= ;;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8500
	nvcc*)	# Cuda Compiler Driver 2.2
8501
	  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'
8502
	  compiler_needs_object=yes
8503
	  ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8504
	esac
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8505
	case `$CC -V 2>&1 | sed 5q` in
8506
	*Sun\ C*)			# Sun C 5.9
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8507
	  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'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8508
	  compiler_needs_object=yes
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8509
	  tmp_sharedflag='-G' ;;
8510
	*Sun\ F*)			# Sun Fortran 8.3
8511
	  tmp_sharedflag='-G' ;;
8512
	esac
8513
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8514
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8515
        if test "x$supports_anon_versioning" = xyes; then
8516
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8517
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8518
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8519
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8520
        fi
8521
8522
	case $cc_basename in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8523
	xlf* | bgf* | bgxlf* | mpixlf*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8524
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8525
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8526
	  hardcode_libdir_flag_spec=
8527
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8528
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8529
	  if test "x$supports_anon_versioning" = xyes; then
8530
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8533
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8534
	  fi
8535
	  ;;
8536
	esac
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8537
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8538
        ld_shlibs=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8539
      fi
8540
      ;;
8541
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8542
    netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8543
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
8544
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545
	wlarc=
8546
      else
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8547
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Joey Hess
* Joey Hess
8549
      fi
8550
      ;;
8551
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8552
    solaris*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8553
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1 by Joey Hess
* Joey Hess
8554
	ld_shlibs=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8555
	cat <<_LT_EOF 1>&2
1 by Joey Hess
* Joey Hess
8556
8557
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558
*** create shared libraries on Solaris systems.  Therefore, libtool
8559
*** is disabling shared libraries support.  We urge you to upgrade GNU
8560
*** binutils to release 2.9.1 or newer.  Another option is to modify
8561
*** your PATH or compiler configuration so that the native linker is
8562
*** used, and then restart.
8563
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8564
_LT_EOF
8565
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8566
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Joey Hess
* Joey Hess
8568
      else
8569
	ld_shlibs=no
8570
      fi
8571
      ;;
8572
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8573
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574
      case `$LD -v 2>&1` in
8575
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8576
	ld_shlibs=no
8577
	cat <<_LT_EOF 1>&2
8578
8579
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8581
*** is disabling shared libraries support.  We urge you to upgrade GNU
8582
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8583
*** your PATH or compiler configuration so that the native linker is
8584
*** used, and then restart.
8585
8586
_LT_EOF
8587
	;;
8588
	*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8589
	  # For security reasons, it is highly recommended that you always
8590
	  # use absolute paths for naming shared libraries, and exclude the
8591
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8592
	  # requires that you compile everything twice, which is a pain.
8593
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8597
	  else
8598
	    ld_shlibs=no
8599
	  fi
8600
	;;
8601
      esac
8602
      ;;
8603
1 by Joey Hess
* Joey Hess
8604
    sunos4*)
8605
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606
      wlarc=
8607
      hardcode_direct=yes
8608
      hardcode_shlibpath_var=no
8609
      ;;
8610
8611
    *)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8612
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8613
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Joey Hess
* Joey Hess
8615
      else
8616
	ld_shlibs=no
8617
      fi
8618
      ;;
8619
    esac
8620
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8621
    if test "$ld_shlibs" = no; then
8622
      runpath_var=
8623
      hardcode_libdir_flag_spec=
8624
      export_dynamic_flag_spec=
8625
      whole_archive_flag_spec=
1 by Joey Hess
* Joey Hess
8626
    fi
8627
  else
8628
    # PORTME fill in a description of your system's linker (not GNU ld)
8629
    case $host_os in
8630
    aix3*)
8631
      allow_undefined_flag=unsupported
8632
      always_export_symbols=yes
8633
      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'
8634
      # Note: this linker hardcodes the directories in LIBPATH if there
8635
      # are no directories specified by -L.
8636
      hardcode_minus_L=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8637
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1 by Joey Hess
* Joey Hess
8638
	# Neither direct hardcoding nor static linking is supported with a
8639
	# broken collect2.
8640
	hardcode_direct=unsupported
8641
      fi
8642
      ;;
8643
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8644
    aix[4-9]*)
1 by Joey Hess
* Joey Hess
8645
      if test "$host_cpu" = ia64; then
8646
	# On IA64, the linker does run time linking by default, so we don't
8647
	# have to do anything special.
8648
	aix_use_runtimelinking=no
8649
	exp_sym_flag='-Bexport'
8650
	no_entry_flag=""
8651
      else
8652
	# If we're using GNU nm, then we don't want the "-C" option.
8653
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8654
	# Also, AIX nm treats weak defined symbols like other global
8655
	# defined symbols, whereas GNU nm marks them as "W".
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8656
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8657
	  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'
1 by Joey Hess
* Joey Hess
8658
	else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8659
	  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'
1 by Joey Hess
* Joey Hess
8660
	fi
8661
	aix_use_runtimelinking=no
8662
8663
	# Test if we are trying to use run time linking or normal
8664
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8665
	# need to do runtime linking.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8666
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1 by Joey Hess
* Joey Hess
8667
	  for ld_flag in $LDFLAGS; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8668
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8669
	    aix_use_runtimelinking=yes
8670
	    break
8671
	  fi
1 by Joey Hess
* Joey Hess
8672
	  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8673
	  ;;
1 by Joey Hess
* Joey Hess
8674
	esac
8675
8676
	exp_sym_flag='-bexport'
8677
	no_entry_flag='-bnoentry'
8678
      fi
8679
8680
      # When large executables or shared objects are built, AIX ld can
8681
      # have problems creating the table of contents.  If linking a library
8682
      # or program results in "error TOC overflow" add -mminimal-toc to
8683
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8684
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8685
8686
      archive_cmds=''
8687
      hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8688
      hardcode_direct_absolute=yes
1 by Joey Hess
* Joey Hess
8689
      hardcode_libdir_separator=':'
8690
      link_all_deplibs=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8691
      file_list_spec='${wl}-f,'
1 by Joey Hess
* Joey Hess
8692
8693
      if test "$GCC" = yes; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8694
	case $host_os in aix4.[012]|aix4.[012].*)
1 by Joey Hess
* Joey Hess
8695
	# We only want to do this on AIX 4.2 and lower, the check
8696
	# below for broken collect2 doesn't work under 4.3+
8697
	  collect2name=`${CC} -print-prog-name=collect2`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8698
	  if test -f "$collect2name" &&
8699
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1 by Joey Hess
* Joey Hess
8700
	  then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8701
	  # We have reworked collect2
8702
	  :
1 by Joey Hess
* Joey Hess
8703
	  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8704
	  # We have old collect2
8705
	  hardcode_direct=unsupported
8706
	  # It fails to find uninstalled libraries when the uninstalled
8707
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8708
	  # to unsupported forces relinking
8709
	  hardcode_minus_L=yes
8710
	  hardcode_libdir_flag_spec='-L$libdir'
8711
	  hardcode_libdir_separator=
1 by Joey Hess
* Joey Hess
8712
	  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8713
	  ;;
1 by Joey Hess
* Joey Hess
8714
	esac
8715
	shared_flag='-shared'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8716
	if test "$aix_use_runtimelinking" = yes; then
8717
	  shared_flag="$shared_flag "'${wl}-G'
8718
	fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8719
	link_all_deplibs=no
1 by Joey Hess
* Joey Hess
8720
      else
8721
	# not using gcc
8722
	if test "$host_cpu" = ia64; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8723
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8724
	# chokes on -Wl,-G. The following line is correct:
1 by Joey Hess
* Joey Hess
8725
	  shared_flag='-G'
8726
	else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8727
	  if test "$aix_use_runtimelinking" = yes; then
1 by Joey Hess
* Joey Hess
8728
	    shared_flag='${wl}-G'
8729
	  else
8730
	    shared_flag='${wl}-bM:SRE'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8731
	  fi
1 by Joey Hess
* Joey Hess
8732
	fi
8733
      fi
8734
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8735
      export_dynamic_flag_spec='${wl}-bexpall'
1 by Joey Hess
* Joey Hess
8736
      # It seems that -bexpall does not export symbols beginning with
8737
      # underscore (_), so it is better to generate a list of symbols to export.
8738
      always_export_symbols=yes
8739
      if test "$aix_use_runtimelinking" = yes; then
8740
	# Warning - without using the other runtime loading flags (-brtl),
8741
	# -berok will link without error, but may produce a broken library.
8742
	allow_undefined_flag='-berok'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8743
        # Determine the default libpath from the value encoded in an
8744
        # empty executable.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8745
        if test "${lt_cv_aix_libpath+set}" = set; then
8746
  aix_libpath=$lt_cv_aix_libpath
8747
else
8748
  if ${lt_cv_aix_libpath_+:} false; then :
8749
  $as_echo_n "(cached) " >&6
8750
else
8751
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8752
/* end confdefs.h.  */
8753
8754
int
8755
main ()
8756
{
8757
8758
  ;
8759
  return 0;
8760
}
8761
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8762
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
8763
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8764
  lt_aix_libpath_sed='
8765
      /Import File Strings/,/^$/ {
8766
	  /^0/ {
8767
	      s/^0  *\([^ ]*\) *$/\1/
8768
	      p
8769
	  }
8770
      }'
8771
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772
  # Check for a 64-bit object if we didn't find anything.
8773
  if test -z "$lt_cv_aix_libpath_"; then
8774
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775
  fi
1 by Joey Hess
* Joey Hess
8776
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8777
rm -f core conftest.err conftest.$ac_objext \
8778
    conftest$ac_exeext conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8779
  if test -z "$lt_cv_aix_libpath_"; then
8780
    lt_cv_aix_libpath_="/usr/lib:/lib"
8781
  fi
8782
8783
fi
8784
8785
  aix_libpath=$lt_cv_aix_libpath_
8786
fi
1 by Joey Hess
* Joey Hess
8787
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8788
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8789
        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"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8790
      else
1 by Joey Hess
* Joey Hess
8791
	if test "$host_cpu" = ia64; then
8792
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793
	  allow_undefined_flag="-z nodefs"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8794
	  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"
1 by Joey Hess
* Joey Hess
8795
	else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8796
	 # Determine the default libpath from the value encoded in an
8797
	 # empty executable.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8798
	 if test "${lt_cv_aix_libpath+set}" = set; then
8799
  aix_libpath=$lt_cv_aix_libpath
8800
else
8801
  if ${lt_cv_aix_libpath_+:} false; then :
8802
  $as_echo_n "(cached) " >&6
8803
else
8804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8805
/* end confdefs.h.  */
8806
8807
int
8808
main ()
8809
{
8810
8811
  ;
8812
  return 0;
8813
}
8814
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8815
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
8816
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8817
  lt_aix_libpath_sed='
8818
      /Import File Strings/,/^$/ {
8819
	  /^0/ {
8820
	      s/^0  *\([^ ]*\) *$/\1/
8821
	      p
8822
	  }
8823
      }'
8824
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825
  # Check for a 64-bit object if we didn't find anything.
8826
  if test -z "$lt_cv_aix_libpath_"; then
8827
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828
  fi
1 by Joey Hess
* Joey Hess
8829
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8830
rm -f core conftest.err conftest.$ac_objext \
8831
    conftest$ac_exeext conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8832
  if test -z "$lt_cv_aix_libpath_"; then
8833
    lt_cv_aix_libpath_="/usr/lib:/lib"
8834
  fi
8835
8836
fi
8837
8838
  aix_libpath=$lt_cv_aix_libpath_
8839
fi
1 by Joey Hess
* Joey Hess
8840
8841
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842
	  # Warning - without using the other run time loading flags,
8843
	  # -berok will link without error, but may produce a broken library.
8844
	  no_undefined_flag=' ${wl}-bernotok'
8845
	  allow_undefined_flag=' ${wl}-berok'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8846
	  if test "$with_gnu_ld" = yes; then
8847
	    # We only use this code for GNU lds that support --whole-archive.
8848
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8849
	  else
8850
	    # Exported symbols can be pulled into shared objects from archives
8851
	    whole_archive_flag_spec='$convenience'
8852
	  fi
1 by Joey Hess
* Joey Hess
8853
	  archive_cmds_need_lc=yes
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8854
	  # This is similar to how AIX traditionally builds its shared libraries.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8855
	  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'
1 by Joey Hess
* Joey Hess
8856
	fi
8857
      fi
8858
      ;;
8859
8860
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8861
      case $host_cpu in
8862
      powerpc)
8863
            # see comment about AmigaOS4 .so support
8864
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865
            archive_expsym_cmds=''
8866
        ;;
8867
      m68k)
8868
            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)'
8869
            hardcode_libdir_flag_spec='-L$libdir'
8870
            hardcode_minus_L=yes
8871
        ;;
8872
      esac
1 by Joey Hess
* Joey Hess
8873
      ;;
8874
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8875
    bsdi[45]*)
1 by Joey Hess
* Joey Hess
8876
      export_dynamic_flag_spec=-rdynamic
8877
      ;;
8878
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8879
    cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
8880
      # When not using gcc, we currently assume that we are using
8881
      # Microsoft Visual C++.
8882
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8883
      # no search path for DLLs.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8884
      case $cc_basename in
8885
      cl*)
8886
	# Native MSVC
8887
	hardcode_libdir_flag_spec=' '
8888
	allow_undefined_flag=unsupported
8889
	always_export_symbols=yes
8890
	file_list_spec='@'
8891
	# Tell ltmain to make .lib files, not .a files.
8892
	libext=lib
8893
	# Tell ltmain to make .dll files, not .so files.
8894
	shrext_cmds=".dll"
8895
	# FIXME: Setting linknames here is a bad hack.
8896
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8897
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8899
	  else
8900
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8901
	  fi~
8902
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8903
	  linknames='
8904
	# The linker will not automatically build a static lib if we build a DLL.
8905
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8906
	enable_shared_with_static_runtimes=yes
8907
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8908
	# Don't use ranlib
8909
	old_postinstall_cmds='chmod 644 $oldlib'
8910
	postlink_cmds='lt_outputfile="@OUTPUT@"~
8911
	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8912
	  case $lt_outputfile in
8913
	    *.exe|*.EXE) ;;
8914
	    *)
8915
	      lt_outputfile="$lt_outputfile.exe"
8916
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8917
	      ;;
8918
	  esac~
8919
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8920
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8921
	    $RM "$lt_outputfile.manifest";
8922
	  fi'
8923
	;;
8924
      *)
8925
	# Assume MSVC wrapper
8926
	hardcode_libdir_flag_spec=' '
8927
	allow_undefined_flag=unsupported
8928
	# Tell ltmain to make .lib files, not .a files.
8929
	libext=lib
8930
	# Tell ltmain to make .dll files, not .so files.
8931
	shrext_cmds=".dll"
8932
	# FIXME: Setting linknames here is a bad hack.
8933
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8934
	# The linker will automatically build a .lib file if we build a DLL.
8935
	old_archive_from_new_cmds='true'
8936
	# FIXME: Should let the user specify the lib program.
8937
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8938
	enable_shared_with_static_runtimes=yes
8939
	;;
8940
      esac
1 by Joey Hess
* Joey Hess
8941
      ;;
8942
8943
    darwin* | rhapsody*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8944
8945
8946
  archive_cmds_need_lc=no
8947
  hardcode_direct=no
8948
  hardcode_automatic=yes
8949
  hardcode_shlibpath_var=unsupported
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8950
  if test "$lt_cv_ld_force_load" = "yes"; then
8951
    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\"`'
8952
  else
8953
    whole_archive_flag_spec=''
8954
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8955
  link_all_deplibs=yes
8956
  allow_undefined_flag="$_lt_dar_allow_undefined"
8957
  case $cc_basename in
8958
     ifort*) _lt_dar_can_shared=yes ;;
8959
     *) _lt_dar_can_shared=$GCC ;;
8960
  esac
8961
  if test "$_lt_dar_can_shared" = "yes"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
8962
    output_verbose_link_cmd=func_echo_all
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8963
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8964
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8965
    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}"
8966
    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}"
8967
8968
  else
8969
  ld_shlibs=no
8970
  fi
8971
1 by Joey Hess
* Joey Hess
8972
      ;;
8973
8974
    dgux*)
8975
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976
      hardcode_libdir_flag_spec='-L$libdir'
8977
      hardcode_shlibpath_var=no
8978
      ;;
8979
8980
    freebsd1*)
8981
      ld_shlibs=no
8982
      ;;
8983
8984
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8985
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8986
    # does not break anything, and helps significantly (at the cost of a little
8987
    # extra space).
8988
    freebsd2.2*)
8989
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8990
      hardcode_libdir_flag_spec='-R$libdir'
8991
      hardcode_direct=yes
8992
      hardcode_shlibpath_var=no
8993
      ;;
8994
8995
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8996
    freebsd2*)
8997
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998
      hardcode_direct=yes
8999
      hardcode_minus_L=yes
9000
      hardcode_shlibpath_var=no
9001
      ;;
9002
9003
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9004
    freebsd* | dragonfly*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9005
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1 by Joey Hess
* Joey Hess
9006
      hardcode_libdir_flag_spec='-R$libdir'
9007
      hardcode_direct=yes
9008
      hardcode_shlibpath_var=no
9009
      ;;
9010
9011
    hpux9*)
9012
      if test "$GCC" = yes; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9013
	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'
1 by Joey Hess
* Joey Hess
9014
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9015
	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'
1 by Joey Hess
* Joey Hess
9016
      fi
9017
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9018
      hardcode_libdir_separator=:
9019
      hardcode_direct=yes
9020
9021
      # hardcode_minus_L: Not really in the search PATH,
9022
      # but as the default location of the library.
9023
      hardcode_minus_L=yes
9024
      export_dynamic_flag_spec='${wl}-E'
9025
      ;;
9026
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9027
    hpux10*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9028
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9029
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9030
      else
9031
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9032
      fi
9033
      if test "$with_gnu_ld" = no; then
9034
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9035
	hardcode_libdir_flag_spec_ld='+b $libdir'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9036
	hardcode_libdir_separator=:
9037
	hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9038
	hardcode_direct_absolute=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9039
	export_dynamic_flag_spec='${wl}-E'
9040
	# hardcode_minus_L: Not really in the search PATH,
9041
	# but as the default location of the library.
9042
	hardcode_minus_L=yes
9043
      fi
9044
      ;;
9045
9046
    hpux11*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9047
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9048
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9049
	hppa*64*)
1 by Joey Hess
* Joey Hess
9050
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051
	  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9052
	ia64*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9053
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9054
	  ;;
1 by Joey Hess
* Joey Hess
9055
	*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9056
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1 by Joey Hess
* Joey Hess
9057
	  ;;
9058
	esac
9059
      else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9060
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9061
	hppa*64*)
9062
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063
	  ;;
9064
	ia64*)
9065
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1 by Joey Hess
* Joey Hess
9066
	  ;;
9067
	*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9068
9069
	  # Older versions of the 11.00 compiler do not understand -b yet
9070
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9071
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9072
$as_echo_n "checking if $CC understands -b... " >&6; }
9073
if ${lt_cv_prog_compiler__b+:} false; then :
9074
  $as_echo_n "(cached) " >&6
9075
else
9076
  lt_cv_prog_compiler__b=no
9077
   save_LDFLAGS="$LDFLAGS"
9078
   LDFLAGS="$LDFLAGS -b"
9079
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081
     # The linker can only warn and ignore the option if not recognized
9082
     # So say no if there are warnings
9083
     if test -s conftest.err; then
9084
       # Append any errors to the config.log.
9085
       cat conftest.err 1>&5
9086
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088
       if diff conftest.exp conftest.er2 >/dev/null; then
9089
         lt_cv_prog_compiler__b=yes
9090
       fi
9091
     else
9092
       lt_cv_prog_compiler__b=yes
9093
     fi
9094
   fi
9095
   $RM -r conftest*
9096
   LDFLAGS="$save_LDFLAGS"
9097
9098
fi
9099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9100
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9101
9102
if test x"$lt_cv_prog_compiler__b" = xyes; then
9103
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104
else
9105
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9106
fi
9107
1 by Joey Hess
* Joey Hess
9108
	  ;;
9109
	esac
9110
      fi
9111
      if test "$with_gnu_ld" = no; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9112
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9113
	hardcode_libdir_separator=:
9114
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9115
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9116
	hppa*64*|ia64*)
9117
	  hardcode_direct=no
9118
	  hardcode_shlibpath_var=no
1 by Joey Hess
* Joey Hess
9119
	  ;;
9120
	*)
9121
	  hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9122
	  hardcode_direct_absolute=yes
1 by Joey Hess
* Joey Hess
9123
	  export_dynamic_flag_spec='${wl}-E'
9124
9125
	  # hardcode_minus_L: Not really in the search PATH,
9126
	  # but as the default location of the library.
9127
	  hardcode_minus_L=yes
9128
	  ;;
9129
	esac
9130
      fi
9131
      ;;
9132
9133
    irix5* | irix6* | nonstopux*)
9134
      if test "$GCC" = yes; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9135
	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'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9136
	# Try to use the -exported_symbol ld option, if it does not
9137
	# work, assume that -exports_file does not work either and
9138
	# implicitly export all symbols.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9139
	# This should be the same for all languages, so no per-tag cache variable.
9140
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9141
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9142
if ${lt_cv_irix_exported_symbol+:} false; then :
9143
  $as_echo_n "(cached) " >&6
9144
else
9145
  save_LDFLAGS="$LDFLAGS"
9146
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9147
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9148
/* end confdefs.h.  */
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9149
int foo (void) { return 0; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9150
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9151
if ac_fn_c_try_link "$LINENO"; then :
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9152
  lt_cv_irix_exported_symbol=yes
9153
else
9154
  lt_cv_irix_exported_symbol=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9155
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9156
rm -f core conftest.err conftest.$ac_objext \
9157
    conftest$ac_exeext conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9158
           LDFLAGS="$save_LDFLAGS"
9159
fi
9160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9161
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9162
	if test "$lt_cv_irix_exported_symbol" = yes; then
9163
          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'
9164
	fi
1 by Joey Hess
* Joey Hess
9165
      else
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9166
	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'
9167
	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'
1 by Joey Hess
* Joey Hess
9168
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9169
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
9170
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171
      hardcode_libdir_separator=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9172
      inherit_rpath=yes
1 by Joey Hess
* Joey Hess
9173
      link_all_deplibs=yes
9174
      ;;
9175
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9176
    netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9177
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
9178
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9179
      else
9180
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9181
      fi
9182
      hardcode_libdir_flag_spec='-R$libdir'
9183
      hardcode_direct=yes
9184
      hardcode_shlibpath_var=no
9185
      ;;
9186
9187
    newsos6)
9188
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189
      hardcode_direct=yes
9190
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191
      hardcode_libdir_separator=:
9192
      hardcode_shlibpath_var=no
9193
      ;;
9194
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9195
    *nto* | *qnx*)
9196
      ;;
9197
1 by Joey Hess
* Joey Hess
9198
    openbsd*)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9199
      if test -f /usr/libexec/ld.so; then
9200
	hardcode_direct=yes
9201
	hardcode_shlibpath_var=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9202
	hardcode_direct_absolute=yes
9203
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9204
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207
	  export_dynamic_flag_spec='${wl}-E'
9208
	else
9209
	  case $host_os in
9210
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212
	     hardcode_libdir_flag_spec='-R$libdir'
9213
	     ;;
9214
	   *)
9215
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9217
	     ;;
9218
	  esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9219
	fi
1 by Joey Hess
* Joey Hess
9220
      else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9221
	ld_shlibs=no
1 by Joey Hess
* Joey Hess
9222
      fi
9223
      ;;
9224
9225
    os2*)
9226
      hardcode_libdir_flag_spec='-L$libdir'
9227
      hardcode_minus_L=yes
9228
      allow_undefined_flag=unsupported
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9229
      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'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9230
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1 by Joey Hess
* Joey Hess
9231
      ;;
9232
9233
    osf3*)
9234
      if test "$GCC" = yes; then
9235
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9236
	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'
1 by Joey Hess
* Joey Hess
9237
      else
9238
	allow_undefined_flag=' -expect_unresolved \*'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9239
	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'
1 by Joey Hess
* Joey Hess
9240
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9241
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
9242
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243
      hardcode_libdir_separator=:
9244
      ;;
9245
9246
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9247
      if test "$GCC" = yes; then
9248
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9249
	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'
1 by Joey Hess
* Joey Hess
9250
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251
      else
9252
	allow_undefined_flag=' -expect_unresolved \*'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9253
	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'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9254
	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~
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9255
	$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'
1 by Joey Hess
* Joey Hess
9256
9257
	# Both c and cxx compiler support -rpath directly
9258
	hardcode_libdir_flag_spec='-rpath $libdir'
9259
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9260
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
9261
      hardcode_libdir_separator=:
9262
      ;;
9263
9264
    solaris*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9265
      no_undefined_flag=' -z defs'
1 by Joey Hess
* Joey Hess
9266
      if test "$GCC" = yes; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9267
	wlarc='${wl}'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9268
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9269
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9270
	  $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'
1 by Joey Hess
* Joey Hess
9271
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9272
	case `$CC -V 2>&1` in
9273
	*"Compilers 5.0"*)
9274
	  wlarc=''
9275
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278
	  ;;
9279
	*)
9280
	  wlarc='${wl}'
9281
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284
	  ;;
9285
	esac
1 by Joey Hess
* Joey Hess
9286
      fi
9287
      hardcode_libdir_flag_spec='-R$libdir'
9288
      hardcode_shlibpath_var=no
9289
      case $host_os in
9290
      solaris2.[0-5] | solaris2.[0-5].*) ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9291
      *)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9292
	# The compiler driver will combine and reorder linker options,
9293
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9294
	# but is careful enough not to reorder.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9295
	# Supported since Solaris 2.6 (maybe 2.5.1?)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9296
	if test "$GCC" = yes; then
9297
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9298
	else
9299
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300
	fi
9301
	;;
1 by Joey Hess
* Joey Hess
9302
      esac
9303
      link_all_deplibs=yes
9304
      ;;
9305
9306
    sunos4*)
9307
      if test "x$host_vendor" = xsequent; then
9308
	# Use $CC to link under sequent, because it throws in some extra .o
9309
	# files that make .init and .fini sections work.
9310
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9311
      else
9312
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9313
      fi
9314
      hardcode_libdir_flag_spec='-L$libdir'
9315
      hardcode_direct=yes
9316
      hardcode_minus_L=yes
9317
      hardcode_shlibpath_var=no
9318
      ;;
9319
9320
    sysv4)
9321
      case $host_vendor in
9322
	sni)
9323
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324
	  hardcode_direct=yes # is this really true???
9325
	;;
9326
	siemens)
9327
	  ## LD is ld it makes a PLAMLIB
9328
	  ## CC just makes a GrossModule.
9329
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9330
	  reload_cmds='$CC -r -o $output$reload_objs'
9331
	  hardcode_direct=no
9332
        ;;
9333
	motorola)
9334
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9336
	;;
9337
      esac
9338
      runpath_var='LD_RUN_PATH'
9339
      hardcode_shlibpath_var=no
9340
      ;;
9341
9342
    sysv4.3*)
9343
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344
      hardcode_shlibpath_var=no
9345
      export_dynamic_flag_spec='-Bexport'
9346
      ;;
9347
9348
    sysv4*MP*)
9349
      if test -d /usr/nec; then
9350
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351
	hardcode_shlibpath_var=no
9352
	runpath_var=LD_RUN_PATH
9353
	hardcode_runpath_var=yes
9354
	ld_shlibs=yes
9355
      fi
9356
      ;;
9357
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9358
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9359
      no_undefined_flag='${wl}-z,text'
9360
      archive_cmds_need_lc=no
9361
      hardcode_shlibpath_var=no
9362
      runpath_var='LD_RUN_PATH'
9363
9364
      if test "$GCC" = yes; then
9365
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367
      else
9368
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370
      fi
9371
      ;;
9372
9373
    sysv5* | sco3.2v5* | sco5v6*)
9374
      # Note: We can NOT use -z defs as we might desire, because we do not
9375
      # link with -lc, and that would cause any symbols used from libc to
9376
      # always be unresolved, which means just about no library would
9377
      # ever link correctly.  If we're not using GNU ld we use -z text
9378
      # though, which does catch some bad symbols but isn't as heavy-handed
9379
      # as -z defs.
9380
      no_undefined_flag='${wl}-z,text'
9381
      allow_undefined_flag='${wl}-z,nodefs'
9382
      archive_cmds_need_lc=no
9383
      hardcode_shlibpath_var=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9384
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9385
      hardcode_libdir_separator=':'
9386
      link_all_deplibs=yes
9387
      export_dynamic_flag_spec='${wl}-Bexport'
9388
      runpath_var='LD_RUN_PATH'
9389
9390
      if test "$GCC" = yes; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9391
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9393
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9394
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9396
      fi
1 by Joey Hess
* Joey Hess
9397
      ;;
9398
9399
    uts4*)
9400
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401
      hardcode_libdir_flag_spec='-L$libdir'
9402
      hardcode_shlibpath_var=no
9403
      ;;
9404
9405
    *)
9406
      ld_shlibs=no
9407
      ;;
9408
    esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9409
9410
    if test x$host_vendor = xsni; then
9411
      case $host in
9412
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9413
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9414
	;;
9415
      esac
9416
    fi
1 by Joey Hess
* Joey Hess
9417
  fi
9418
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9420
$as_echo "$ld_shlibs" >&6; }
1 by Joey Hess
* Joey Hess
9421
test "$ld_shlibs" = no && can_build_shared=no
9422
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9423
with_gnu_ld=$with_gnu_ld
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
1 by Joey Hess
* Joey Hess
9439
#
9440
# Do we need to explicitly link libc?
9441
#
9442
case "x$archive_cmds_need_lc" in
9443
x|xyes)
9444
  # Assume -lc should be added
9445
  archive_cmds_need_lc=yes
9446
9447
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9448
    case $archive_cmds in
9449
    *'~'*)
9450
      # FIXME: we may have to deal with multi-command sequences.
9451
      ;;
9452
    '$CC '*)
9453
      # Test whether the compiler implicitly links with -lc since on some
9454
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9455
      # to ld, don't add -lc before -lgcc.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9456
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9457
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9458
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9459
  $as_echo_n "(cached) " >&6
9460
else
9461
  $RM conftest*
9462
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9463
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9464
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Joey Hess
* Joey Hess
9465
  (eval $ac_compile) 2>&5
9466
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9467
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468
  test $ac_status = 0; } 2>conftest.err; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9469
	  soname=conftest
9470
	  lib=conftest
9471
	  libobjs=conftest.$ac_objext
9472
	  deplibs=
9473
	  wl=$lt_prog_compiler_wl
9474
	  pic_flag=$lt_prog_compiler_pic
9475
	  compiler_flags=-v
9476
	  linker_flags=-v
9477
	  verstring=
9478
	  output_objdir=.
9479
	  libname=conftest
9480
	  lt_save_allow_undefined_flag=$allow_undefined_flag
9481
	  allow_undefined_flag=
9482
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9483
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1 by Joey Hess
* Joey Hess
9484
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9485
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486
  test $ac_status = 0; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9487
	  then
9488
	    lt_cv_archive_cmds_need_lc=no
9489
	  else
9490
	    lt_cv_archive_cmds_need_lc=yes
9491
	  fi
9492
	  allow_undefined_flag=$lt_save_allow_undefined_flag
9493
	else
9494
	  cat conftest.err 1>&5
9495
	fi
9496
	$RM conftest*
9497
9498
fi
9499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9500
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9501
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1 by Joey Hess
* Joey Hess
9502
      ;;
9503
    esac
9504
  fi
9505
  ;;
9506
esac
9507
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9664
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9665
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9666
1 by Joey Hess
* Joey Hess
9667
if test "$GCC" = yes; then
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9668
  case $host_os in
9669
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9670
    *) lt_awk_arg="/^libraries:/" ;;
9671
  esac
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9672
  case $host_os in
9673
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9674
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9675
  esac
9676
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9677
  case $lt_search_path_spec in
9678
  *\;*)
1 by Joey Hess
* Joey Hess
9679
    # if the path contains ";" then we assume it to be the separator
9680
    # otherwise default to the standard path separator (i.e. ":") - it is
9681
    # assumed that no part of a normal pathname contains ";" but that should
9682
    # okay in the real world where ";" in dirpaths is itself problematic.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9683
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9684
    ;;
9685
  *)
9686
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9687
    ;;
9688
  esac
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9689
  # Ok, now we have the path, separated by spaces, we can step through it
9690
  # and add multilib dir if necessary.
9691
  lt_tmp_lt_search_path_spec=
9692
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9693
  for lt_sys_path in $lt_search_path_spec; do
9694
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9695
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9696
    else
9697
      test -d "$lt_sys_path" && \
9698
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9699
    fi
9700
  done
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9701
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9702
BEGIN {RS=" "; FS="/|\n";} {
9703
  lt_foo="";
9704
  lt_count=0;
9705
  for (lt_i = NF; lt_i > 0; lt_i--) {
9706
    if ($lt_i != "" && $lt_i != ".") {
9707
      if ($lt_i == "..") {
9708
        lt_count++;
9709
      } else {
9710
        if (lt_count == 0) {
9711
          lt_foo="/" $lt_i lt_foo;
9712
        } else {
9713
          lt_count--;
9714
        }
9715
      }
9716
    }
9717
  }
9718
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9719
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9720
}'`
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9721
  # AWK program above erroneously prepends '/' to C:/dos/paths
9722
  # for these hosts.
9723
  case $host_os in
9724
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9725
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9726
  esac
9727
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1 by Joey Hess
* Joey Hess
9728
else
9729
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9730
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9731
library_names_spec=
9732
libname_spec='lib$name'
9733
soname_spec=
9734
shrext_cmds=".so"
9735
postinstall_cmds=
9736
postuninstall_cmds=
9737
finish_cmds=
9738
finish_eval=
9739
shlibpath_var=
9740
shlibpath_overrides_runpath=unknown
9741
version_type=none
9742
dynamic_linker="$host_os ld.so"
9743
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1 by Joey Hess
* Joey Hess
9744
need_lib_prefix=unknown
9745
hardcode_into_libs=no
9746
9747
# when you set need_version to no, make sure it does not cause -set_version
9748
# flags to be left without arguments
9749
need_version=unknown
9750
9751
case $host_os in
9752
aix3*)
9753
  version_type=linux
9754
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9755
  shlibpath_var=LIBPATH
9756
9757
  # AIX 3 has no versioning support, so we append a major version to the name.
9758
  soname_spec='${libname}${release}${shared_ext}$major'
9759
  ;;
9760
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
9761
aix[4-9]*)
1 by Joey Hess
* Joey Hess
9762
  version_type=linux
9763
  need_lib_prefix=no
9764
  need_version=no
9765
  hardcode_into_libs=yes
9766
  if test "$host_cpu" = ia64; then
9767
    # AIX 5 supports IA64
9768
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9769
    shlibpath_var=LD_LIBRARY_PATH
9770
  else
9771
    # With GCC up to 2.95.x, collect2 would create an import file
9772
    # for dependence libraries.  The import file would start with
9773
    # the line `#! .'.  This would cause the generated library to
9774
    # depend on `.', always an invalid library.  This was fixed in
9775
    # development snapshots of GCC prior to 3.0.
9776
    case $host_os in
9777
      aix4 | aix4.[01] | aix4.[01].*)
9778
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9779
	   echo ' yes '
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9780
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1 by Joey Hess
* Joey Hess
9781
	:
9782
      else
9783
	can_build_shared=no
9784
      fi
9785
      ;;
9786
    esac
9787
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9788
    # soname into executable. Probably we can add versioning support to
9789
    # collect2, so additional links can be useful in future.
9790
    if test "$aix_use_runtimelinking" = yes; then
9791
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9792
      # instead of lib<name>.a to let people know that these are not
9793
      # typical AIX shared libraries.
9794
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795
    else
9796
      # We preserve .a as extension for shared libraries through AIX4.2
9797
      # and later when we are not doing run time linking.
9798
      library_names_spec='${libname}${release}.a $libname.a'
9799
      soname_spec='${libname}${release}${shared_ext}$major'
9800
    fi
9801
    shlibpath_var=LIBPATH
9802
  fi
9803
  ;;
9804
9805
amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9806
  case $host_cpu in
9807
  powerpc)
9808
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9809
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9810
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811
    ;;
9812
  m68k)
9813
    library_names_spec='$libname.ixlibrary $libname.a'
9814
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9815
    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'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9816
    ;;
9817
  esac
1 by Joey Hess
* Joey Hess
9818
  ;;
9819
9820
beos*)
9821
  library_names_spec='${libname}${shared_ext}'
9822
  dynamic_linker="$host_os ld.so"
9823
  shlibpath_var=LIBRARY_PATH
9824
  ;;
9825
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9826
bsdi[45]*)
1 by Joey Hess
* Joey Hess
9827
  version_type=linux
9828
  need_version=no
9829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830
  soname_spec='${libname}${release}${shared_ext}$major'
9831
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9832
  shlibpath_var=LD_LIBRARY_PATH
9833
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9834
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9835
  # the default ld.so.conf also contains /usr/contrib/lib and
9836
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9837
  # libtool to hard-code these into programs
9838
  ;;
9839
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9840
cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
9841
  version_type=windows
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9842
  shrext_cmds=".dll"
1 by Joey Hess
* Joey Hess
9843
  need_version=no
9844
  need_lib_prefix=no
9845
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9846
  case $GCC,$cc_basename in
9847
  yes,*)
9848
    # gcc
1 by Joey Hess
* Joey Hess
9849
    library_names_spec='$libname.dll.a'
9850
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9851
    postinstall_cmds='base_file=`basename \${file}`~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9852
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1 by Joey Hess
* Joey Hess
9853
      dldir=$destdir/`dirname \$dlpath`~
9854
      test -d \$dldir || mkdir -p \$dldir~
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9855
      $install_prog $dir/$dlname \$dldir/$dlname~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9856
      chmod a+x \$dldir/$dlname~
9857
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9858
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9859
      fi'
1 by Joey Hess
* Joey Hess
9860
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9861
      dlpath=$dir/\$dldll~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9862
       $RM \$dlpath'
1 by Joey Hess
* Joey Hess
9863
    shlibpath_overrides_runpath=yes
9864
9865
    case $host_os in
9866
    cygwin*)
9867
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9868
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9869
9870
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1 by Joey Hess
* Joey Hess
9871
      ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9872
    mingw* | cegcc*)
1 by Joey Hess
* Joey Hess
9873
      # MinGW DLLs use traditional 'lib' prefix
9874
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875
      ;;
9876
    pw32*)
9877
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9878
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1 by Joey Hess
* Joey Hess
9879
      ;;
9880
    esac
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9881
    dynamic_linker='Win32 ld.exe'
9882
    ;;
9883
9884
  *,cl*)
9885
    # Native MSVC
9886
    libname_spec='$name'
9887
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888
    library_names_spec='${libname}.dll.lib'
9889
9890
    case $build_os in
9891
    mingw*)
9892
      sys_lib_search_path_spec=
9893
      lt_save_ifs=$IFS
9894
      IFS=';'
9895
      for lt_path in $LIB
9896
      do
9897
        IFS=$lt_save_ifs
9898
        # Let DOS variable expansion print the short 8.3 style file name.
9899
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9900
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9901
      done
9902
      IFS=$lt_save_ifs
9903
      # Convert to MSYS style.
9904
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9905
      ;;
9906
    cygwin*)
9907
      # Convert to unix form, then to dos form, then back to unix form
9908
      # but this time dos style (no spaces!) so that the unix form looks
9909
      # like /cygdrive/c/PROGRA~1:/cygdr...
9910
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9911
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9912
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9913
      ;;
9914
    *)
9915
      sys_lib_search_path_spec="$LIB"
9916
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9917
        # It is most probably a Windows format PATH.
9918
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9919
      else
9920
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9921
      fi
9922
      # FIXME: find the short name or the path components, as spaces are
9923
      # common. (e.g. "Program Files" -> "PROGRA~1")
9924
      ;;
9925
    esac
9926
9927
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9928
    postinstall_cmds='base_file=`basename \${file}`~
9929
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9930
      dldir=$destdir/`dirname \$dlpath`~
9931
      test -d \$dldir || mkdir -p \$dldir~
9932
      $install_prog $dir/$dlname \$dldir/$dlname'
9933
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9934
      dlpath=$dir/\$dldll~
9935
       $RM \$dlpath'
9936
    shlibpath_overrides_runpath=yes
9937
    dynamic_linker='Win32 link.exe'
1 by Joey Hess
* Joey Hess
9938
    ;;
9939
9940
  *)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9941
    # Assume MSVC wrapper
1 by Joey Hess
* Joey Hess
9942
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
9943
    dynamic_linker='Win32 ld.exe'
1 by Joey Hess
* Joey Hess
9944
    ;;
9945
  esac
9946
  # FIXME: first we should search . and the directory the executable is in
9947
  shlibpath_var=PATH
9948
  ;;
9949
9950
darwin* | rhapsody*)
9951
  dynamic_linker="$host_os dyld"
9952
  version_type=darwin
9953
  need_lib_prefix=no
9954
  need_version=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9955
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1 by Joey Hess
* Joey Hess
9956
  soname_spec='${libname}${release}${major}$shared_ext'
9957
  shlibpath_overrides_runpath=yes
9958
  shlibpath_var=DYLD_LIBRARY_PATH
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9959
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9960
9961
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1 by Joey Hess
* Joey Hess
9962
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9963
  ;;
9964
9965
dgux*)
9966
  version_type=linux
9967
  need_lib_prefix=no
9968
  need_version=no
9969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9970
  soname_spec='${libname}${release}${shared_ext}$major'
9971
  shlibpath_var=LD_LIBRARY_PATH
9972
  ;;
9973
9974
freebsd1*)
9975
  dynamic_linker=no
9976
  ;;
9977
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9978
freebsd* | dragonfly*)
9979
  # DragonFly does not have aout.  When/if they implement a new
9980
  # versioning mechanism, adjust this.
9981
  if test -x /usr/bin/objformat; then
9982
    objformat=`/usr/bin/objformat`
9983
  else
9984
    case $host_os in
9985
    freebsd[123]*) objformat=aout ;;
9986
    *) objformat=elf ;;
9987
    esac
9988
  fi
1 by Joey Hess
* Joey Hess
9989
  version_type=freebsd-$objformat
9990
  case $version_type in
9991
    freebsd-elf*)
9992
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9993
      need_version=no
9994
      need_lib_prefix=no
9995
      ;;
9996
    freebsd-*)
9997
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9998
      need_version=yes
9999
      ;;
10000
  esac
10001
  shlibpath_var=LD_LIBRARY_PATH
10002
  case $host_os in
10003
  freebsd2*)
10004
    shlibpath_overrides_runpath=yes
10005
    ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10006
  freebsd3.[01]* | freebsdelf3.[01]*)
1 by Joey Hess
* Joey Hess
10007
    shlibpath_overrides_runpath=yes
10008
    hardcode_into_libs=yes
10009
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10010
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10011
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1 by Joey Hess
* Joey Hess
10012
    shlibpath_overrides_runpath=no
10013
    hardcode_into_libs=yes
10014
    ;;
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
10015
  *) # from 4.6 on, and DragonFly
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10016
    shlibpath_overrides_runpath=yes
10017
    hardcode_into_libs=yes
10018
    ;;
1 by Joey Hess
* Joey Hess
10019
  esac
10020
  ;;
10021
10022
gnu*)
10023
  version_type=linux
10024
  need_lib_prefix=no
10025
  need_version=no
10026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027
  soname_spec='${libname}${release}${shared_ext}$major'
10028
  shlibpath_var=LD_LIBRARY_PATH
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10029
  shlibpath_overrides_runpath=no
10030
  hardcode_into_libs=yes
10031
  ;;
10032
10033
haiku*)
10034
  version_type=linux
10035
  need_lib_prefix=no
10036
  need_version=no
10037
  dynamic_linker="$host_os runtime_loader"
10038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10039
  soname_spec='${libname}${release}${shared_ext}$major'
10040
  shlibpath_var=LIBRARY_PATH
10041
  shlibpath_overrides_runpath=yes
10042
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1 by Joey Hess
* Joey Hess
10043
  hardcode_into_libs=yes
10044
  ;;
10045
10046
hpux9* | hpux10* | hpux11*)
10047
  # Give a soname corresponding to the major version so that dld.sl refuses to
10048
  # link against other versions.
10049
  version_type=sunos
10050
  need_lib_prefix=no
10051
  need_version=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10052
  case $host_cpu in
1 by Joey Hess
* Joey Hess
10053
  ia64*)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10054
    shrext_cmds='.so'
1 by Joey Hess
* Joey Hess
10055
    hardcode_into_libs=yes
10056
    dynamic_linker="$host_os dld.so"
10057
    shlibpath_var=LD_LIBRARY_PATH
10058
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10059
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060
    soname_spec='${libname}${release}${shared_ext}$major'
10061
    if test "X$HPUX_IA64_MODE" = X32; then
10062
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10063
    else
10064
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10065
    fi
10066
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067
    ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10068
  hppa*64*)
10069
    shrext_cmds='.sl'
10070
    hardcode_into_libs=yes
10071
    dynamic_linker="$host_os dld.sl"
10072
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10073
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10074
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075
    soname_spec='${libname}${release}${shared_ext}$major'
10076
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10077
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10078
    ;;
10079
  *)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10080
    shrext_cmds='.sl'
1 by Joey Hess
* Joey Hess
10081
    dynamic_linker="$host_os dld.sl"
10082
    shlibpath_var=SHLIB_PATH
10083
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10084
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085
    soname_spec='${libname}${release}${shared_ext}$major'
10086
    ;;
10087
  esac
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10088
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1 by Joey Hess
* Joey Hess
10089
  postinstall_cmds='chmod 555 $lib'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10090
  # or fails outright, so override atomically:
10091
  install_override_mode=555
1 by Joey Hess
* Joey Hess
10092
  ;;
10093
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
10094
interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10095
  version_type=linux
10096
  need_lib_prefix=no
10097
  need_version=no
10098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099
  soname_spec='${libname}${release}${shared_ext}$major'
10100
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10101
  shlibpath_var=LD_LIBRARY_PATH
10102
  shlibpath_overrides_runpath=no
10103
  hardcode_into_libs=yes
10104
  ;;
10105
1 by Joey Hess
* Joey Hess
10106
irix5* | irix6* | nonstopux*)
10107
  case $host_os in
10108
    nonstopux*) version_type=nonstopux ;;
10109
    *)
10110
	if test "$lt_cv_prog_gnu_ld" = yes; then
10111
		version_type=linux
10112
	else
10113
		version_type=irix
10114
	fi ;;
10115
  esac
10116
  need_lib_prefix=no
10117
  need_version=no
10118
  soname_spec='${libname}${release}${shared_ext}$major'
10119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10120
  case $host_os in
10121
  irix5* | nonstopux*)
10122
    libsuff= shlibsuff=
10123
    ;;
10124
  *)
10125
    case $LD in # libtool.m4 will add one of these switches to LD
10126
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10127
      libsuff= shlibsuff= libmagic=32-bit;;
10128
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10129
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10130
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10131
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10132
    *) libsuff= shlibsuff= libmagic=never-match;;
10133
    esac
10134
    ;;
10135
  esac
10136
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10137
  shlibpath_overrides_runpath=no
10138
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10139
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10140
  hardcode_into_libs=yes
10141
  ;;
10142
10143
# No shared lib support for Linux oldld, aout, or coff.
10144
linux*oldld* | linux*aout* | linux*coff*)
10145
  dynamic_linker=no
10146
  ;;
10147
10148
# This must be Linux ELF.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
10149
linux* | k*bsd*-gnu | kopensolaris*-gnu)
1 by Joey Hess
* Joey Hess
10150
  version_type=linux
10151
  need_lib_prefix=no
10152
  need_version=no
10153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154
  soname_spec='${libname}${release}${shared_ext}$major'
10155
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10156
  shlibpath_var=LD_LIBRARY_PATH
10157
  shlibpath_overrides_runpath=no
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10158
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10159
  # Some binutils ld are patched to set DT_RUNPATH
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10160
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10161
  $as_echo_n "(cached) " >&6
10162
else
10163
  lt_cv_shlibpath_overrides_runpath=no
10164
    save_LDFLAGS=$LDFLAGS
10165
    save_libdir=$libdir
10166
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10167
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10168
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10169
/* end confdefs.h.  */
10170
10171
int
10172
main ()
10173
{
10174
10175
  ;
10176
  return 0;
10177
}
10178
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10179
if ac_fn_c_try_link "$LINENO"; then :
10180
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10181
  lt_cv_shlibpath_overrides_runpath=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10182
fi
10183
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10184
rm -f core conftest.err conftest.$ac_objext \
10185
    conftest$ac_exeext conftest.$ac_ext
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10186
    LDFLAGS=$save_LDFLAGS
10187
    libdir=$save_libdir
10188
10189
fi
10190
10191
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10192
1 by Joey Hess
* Joey Hess
10193
  # This implies no fast_install, which is unacceptable.
10194
  # Some rework will be needed to allow for fast_install
10195
  # before this can be enabled.
10196
  hardcode_into_libs=yes
10197
10198
  # Append ld.so.conf contents to the search path
10199
  if test -f /etc/ld.so.conf; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10200
    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' ' '`
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10201
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1 by Joey Hess
* Joey Hess
10202
  fi
10203
10204
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10205
  # powerpc, because MkLinux only supported shared libraries with the
10206
  # GNU dynamic linker.  Since this was broken with cross compilers,
10207
  # most powerpc-linux boxes support dynamic linking these days and
10208
  # people can always --disable-shared, the test was removed, and we
10209
  # assume the GNU/Linux dynamic linker is in use.
10210
  dynamic_linker='GNU/Linux ld.so'
10211
  ;;
10212
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10213
netbsdelf*-gnu)
10214
  version_type=linux
10215
  need_lib_prefix=no
10216
  need_version=no
10217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218
  soname_spec='${libname}${release}${shared_ext}$major'
10219
  shlibpath_var=LD_LIBRARY_PATH
10220
  shlibpath_overrides_runpath=no
10221
  hardcode_into_libs=yes
10222
  dynamic_linker='NetBSD ld.elf_so'
10223
  ;;
10224
1 by Joey Hess
* Joey Hess
10225
netbsd*)
10226
  version_type=sunos
10227
  need_lib_prefix=no
10228
  need_version=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10229
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
10230
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232
    dynamic_linker='NetBSD (a.out) ld.so'
10233
  else
10234
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235
    soname_spec='${libname}${release}${shared_ext}$major'
10236
    dynamic_linker='NetBSD ld.elf_so'
10237
  fi
10238
  shlibpath_var=LD_LIBRARY_PATH
10239
  shlibpath_overrides_runpath=yes
10240
  hardcode_into_libs=yes
10241
  ;;
10242
10243
newsos6)
10244
  version_type=linux
10245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246
  shlibpath_var=LD_LIBRARY_PATH
10247
  shlibpath_overrides_runpath=yes
10248
  ;;
10249
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10250
*nto* | *qnx*)
10251
  version_type=qnx
1 by Joey Hess
* Joey Hess
10252
  need_lib_prefix=no
10253
  need_version=no
10254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255
  soname_spec='${libname}${release}${shared_ext}$major'
10256
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10257
  shlibpath_overrides_runpath=no
10258
  hardcode_into_libs=yes
10259
  dynamic_linker='ldqnx.so'
1 by Joey Hess
* Joey Hess
10260
  ;;
10261
10262
openbsd*)
10263
  version_type=sunos
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10264
  sys_lib_dlsearch_path_spec="/usr/lib"
1 by Joey Hess
* Joey Hess
10265
  need_lib_prefix=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10266
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10267
  case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10268
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10269
    *)				need_version=no  ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10270
  esac
1 by Joey Hess
* Joey Hess
10271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10274
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Joey Hess
* Joey Hess
10275
    case $host_os in
10276
      openbsd2.[89] | openbsd2.[89].*)
10277
	shlibpath_overrides_runpath=no
10278
	;;
10279
      *)
10280
	shlibpath_overrides_runpath=yes
10281
	;;
10282
      esac
10283
  else
10284
    shlibpath_overrides_runpath=yes
10285
  fi
10286
  ;;
10287
10288
os2*)
10289
  libname_spec='$name'
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10290
  shrext_cmds=".dll"
1 by Joey Hess
* Joey Hess
10291
  need_lib_prefix=no
10292
  library_names_spec='$libname${shared_ext} $libname.a'
10293
  dynamic_linker='OS/2 ld.exe'
10294
  shlibpath_var=LIBPATH
10295
  ;;
10296
10297
osf3* | osf4* | osf5*)
10298
  version_type=osf
10299
  need_lib_prefix=no
10300
  need_version=no
10301
  soname_spec='${libname}${release}${shared_ext}$major'
10302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303
  shlibpath_var=LD_LIBRARY_PATH
10304
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306
  ;;
10307
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
10308
rdos*)
10309
  dynamic_linker=no
10310
  ;;
10311
1 by Joey Hess
* Joey Hess
10312
solaris*)
10313
  version_type=linux
10314
  need_lib_prefix=no
10315
  need_version=no
10316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317
  soname_spec='${libname}${release}${shared_ext}$major'
10318
  shlibpath_var=LD_LIBRARY_PATH
10319
  shlibpath_overrides_runpath=yes
10320
  hardcode_into_libs=yes
10321
  # ldd complains unless libraries are executable
10322
  postinstall_cmds='chmod +x $lib'
10323
  ;;
10324
10325
sunos4*)
10326
  version_type=sunos
10327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329
  shlibpath_var=LD_LIBRARY_PATH
10330
  shlibpath_overrides_runpath=yes
10331
  if test "$with_gnu_ld" = yes; then
10332
    need_lib_prefix=no
10333
  fi
10334
  need_version=yes
10335
  ;;
10336
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10337
sysv4 | sysv4.3*)
1 by Joey Hess
* Joey Hess
10338
  version_type=linux
10339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340
  soname_spec='${libname}${release}${shared_ext}$major'
10341
  shlibpath_var=LD_LIBRARY_PATH
10342
  case $host_vendor in
10343
    sni)
10344
      shlibpath_overrides_runpath=no
10345
      need_lib_prefix=no
10346
      runpath_var=LD_RUN_PATH
10347
      ;;
10348
    siemens)
10349
      need_lib_prefix=no
10350
      ;;
10351
    motorola)
10352
      need_lib_prefix=no
10353
      need_version=no
10354
      shlibpath_overrides_runpath=no
10355
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10356
      ;;
10357
  esac
10358
  ;;
10359
10360
sysv4*MP*)
10361
  if test -d /usr/nec ;then
10362
    version_type=linux
10363
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364
    soname_spec='$libname${shared_ext}.$major'
10365
    shlibpath_var=LD_LIBRARY_PATH
10366
  fi
10367
  ;;
10368
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10369
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10370
  version_type=freebsd-elf
10371
  need_lib_prefix=no
10372
  need_version=no
10373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374
  soname_spec='${libname}${release}${shared_ext}$major'
10375
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10376
  shlibpath_overrides_runpath=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10377
  hardcode_into_libs=yes
10378
  if test "$with_gnu_ld" = yes; then
10379
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10380
  else
10381
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10382
    case $host_os in
10383
      sco3.2v5*)
10384
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10385
	;;
10386
    esac
10387
  fi
10388
  sys_lib_dlsearch_path_spec='/usr/lib'
10389
  ;;
10390
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10391
tpf*)
10392
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10393
  version_type=linux
10394
  need_lib_prefix=no
10395
  need_version=no
10396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397
  shlibpath_var=LD_LIBRARY_PATH
10398
  shlibpath_overrides_runpath=no
10399
  hardcode_into_libs=yes
10400
  ;;
10401
1 by Joey Hess
* Joey Hess
10402
uts4*)
10403
  version_type=linux
10404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405
  soname_spec='${libname}${release}${shared_ext}$major'
10406
  shlibpath_var=LD_LIBRARY_PATH
10407
  ;;
10408
10409
*)
10410
  dynamic_linker=no
10411
  ;;
10412
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10414
$as_echo "$dynamic_linker" >&6; }
1 by Joey Hess
* Joey Hess
10415
test "$dynamic_linker" = no && can_build_shared=no
10416
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10417
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10418
if test "$GCC" = yes; then
10419
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10420
fi
10421
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10422
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10423
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10424
fi
10425
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10426
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10427
fi
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10515
10516
10517
10518
10519
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10520
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10521
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1 by Joey Hess
* Joey Hess
10522
hardcode_action=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10523
if test -n "$hardcode_libdir_flag_spec" ||
10524
   test -n "$runpath_var" ||
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10525
   test "X$hardcode_automatic" = "Xyes" ; then
1 by Joey Hess
* Joey Hess
10526
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10527
  # We can hardcode non-existent directories.
1 by Joey Hess
* Joey Hess
10528
  if test "$hardcode_direct" != no &&
10529
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10530
     # have to relink, otherwise we might link with an installed library
10531
     # when we should be linking with a yet-to-be-installed one
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10532
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1 by Joey Hess
* Joey Hess
10533
     test "$hardcode_minus_L" != no; then
10534
    # Linking always hardcodes the temporary library directory.
10535
    hardcode_action=relink
10536
  else
10537
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10538
    hardcode_action=immediate
10539
  fi
10540
else
10541
  # We cannot hardcode anything, or else we can only hardcode existing
10542
  # directories.
10543
  hardcode_action=unsupported
10544
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10546
$as_echo "$hardcode_action" >&6; }
1 by Joey Hess
* Joey Hess
10547
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10548
if test "$hardcode_action" = relink ||
10549
   test "$inherit_rpath" = yes; then
1 by Joey Hess
* Joey Hess
10550
  # Fast installation is not supported
10551
  enable_fast_install=no
10552
elif test "$shlibpath_overrides_runpath" = yes ||
10553
     test "$enable_shared" = no; then
10554
  # Fast installation is not necessary
10555
  enable_fast_install=needless
10556
fi
10557
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10558
10559
10560
10561
10562
10563
  if test "x$enable_dlopen" != xyes; then
1 by Joey Hess
* Joey Hess
10564
  enable_dlopen=unknown
10565
  enable_dlopen_self=unknown
10566
  enable_dlopen_self_static=unknown
10567
else
10568
  lt_cv_dlopen=no
10569
  lt_cv_dlopen_libs=
10570
10571
  case $host_os in
10572
  beos*)
10573
    lt_cv_dlopen="load_add_on"
10574
    lt_cv_dlopen_libs=
10575
    lt_cv_dlopen_self=yes
10576
    ;;
10577
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10578
  mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
10579
    lt_cv_dlopen="LoadLibrary"
10580
    lt_cv_dlopen_libs=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10581
    ;;
1 by Joey Hess
* Joey Hess
10582
10583
  cygwin*)
10584
    lt_cv_dlopen="dlopen"
10585
    lt_cv_dlopen_libs=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10586
    ;;
1 by Joey Hess
* Joey Hess
10587
10588
  darwin*)
10589
  # if libdl is installed we need to link against it
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10590
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10591
$as_echo_n "checking for dlopen in -ldl... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10592
if ${ac_cv_lib_dl_dlopen+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10593
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10594
else
10595
  ac_check_lib_save_LIBS=$LIBS
10596
LIBS="-ldl  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10598
/* end confdefs.h.  */
10599
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10600
/* Override any GCC internal prototype to avoid an error.
10601
   Use char because int might match the return type of a GCC
10602
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10603
#ifdef __cplusplus
10604
extern "C"
10605
#endif
10606
char dlopen ();
10607
int
10608
main ()
10609
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10610
return dlopen ();
1 by Joey Hess
* Joey Hess
10611
  ;
10612
  return 0;
10613
}
10614
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10615
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10616
  ac_cv_lib_dl_dlopen=yes
10617
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10618
  ac_cv_lib_dl_dlopen=no
1 by Joey Hess
* Joey Hess
10619
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10620
rm -f core conftest.err conftest.$ac_objext \
10621
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10622
LIBS=$ac_check_lib_save_LIBS
10623
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10625
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10626
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1 by Joey Hess
* Joey Hess
10627
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628
else
10629
10630
    lt_cv_dlopen="dyld"
10631
    lt_cv_dlopen_libs=
10632
    lt_cv_dlopen_self=yes
10633
10634
fi
10635
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10636
    ;;
1 by Joey Hess
* Joey Hess
10637
10638
  *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10639
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10640
if test "x$ac_cv_func_shl_load" = xyes; then :
1 by Joey Hess
* Joey Hess
10641
  lt_cv_dlopen="shl_load"
10642
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10643
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10644
$as_echo_n "checking for shl_load in -ldld... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10645
if ${ac_cv_lib_dld_shl_load+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10646
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10647
else
10648
  ac_check_lib_save_LIBS=$LIBS
10649
LIBS="-ldld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10651
/* end confdefs.h.  */
10652
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10653
/* Override any GCC internal prototype to avoid an error.
10654
   Use char because int might match the return type of a GCC
10655
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10656
#ifdef __cplusplus
10657
extern "C"
10658
#endif
10659
char shl_load ();
10660
int
10661
main ()
10662
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10663
return shl_load ();
1 by Joey Hess
* Joey Hess
10664
  ;
10665
  return 0;
10666
}
10667
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10668
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10669
  ac_cv_lib_dld_shl_load=yes
10670
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10671
  ac_cv_lib_dld_shl_load=no
1 by Joey Hess
* Joey Hess
10672
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10673
rm -f core conftest.err conftest.$ac_objext \
10674
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10675
LIBS=$ac_check_lib_save_LIBS
10676
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10678
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10679
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
10680
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1 by Joey Hess
* Joey Hess
10681
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10682
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10683
if test "x$ac_cv_func_dlopen" = xyes; then :
1 by Joey Hess
* Joey Hess
10684
  lt_cv_dlopen="dlopen"
10685
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10686
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10687
$as_echo_n "checking for dlopen in -ldl... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10688
if ${ac_cv_lib_dl_dlopen+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10689
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10690
else
10691
  ac_check_lib_save_LIBS=$LIBS
10692
LIBS="-ldl  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10693
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10694
/* end confdefs.h.  */
10695
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10696
/* Override any GCC internal prototype to avoid an error.
10697
   Use char because int might match the return type of a GCC
10698
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10699
#ifdef __cplusplus
10700
extern "C"
10701
#endif
10702
char dlopen ();
10703
int
10704
main ()
10705
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10706
return dlopen ();
1 by Joey Hess
* Joey Hess
10707
  ;
10708
  return 0;
10709
}
10710
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10711
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10712
  ac_cv_lib_dl_dlopen=yes
10713
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10714
  ac_cv_lib_dl_dlopen=no
1 by Joey Hess
* Joey Hess
10715
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10716
rm -f core conftest.err conftest.$ac_objext \
10717
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10718
LIBS=$ac_check_lib_save_LIBS
10719
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10721
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10722
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1 by Joey Hess
* Joey Hess
10723
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10724
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10725
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10726
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10727
if ${ac_cv_lib_svld_dlopen+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10728
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10729
else
10730
  ac_check_lib_save_LIBS=$LIBS
10731
LIBS="-lsvld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10733
/* end confdefs.h.  */
10734
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10735
/* Override any GCC internal prototype to avoid an error.
10736
   Use char because int might match the return type of a GCC
10737
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10738
#ifdef __cplusplus
10739
extern "C"
10740
#endif
10741
char dlopen ();
10742
int
10743
main ()
10744
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10745
return dlopen ();
1 by Joey Hess
* Joey Hess
10746
  ;
10747
  return 0;
10748
}
10749
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10750
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10751
  ac_cv_lib_svld_dlopen=yes
10752
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10753
  ac_cv_lib_svld_dlopen=no
1 by Joey Hess
* Joey Hess
10754
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10755
rm -f core conftest.err conftest.$ac_objext \
10756
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10757
LIBS=$ac_check_lib_save_LIBS
10758
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10760
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10761
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1 by Joey Hess
* Joey Hess
10762
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10763
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10764
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10765
$as_echo_n "checking for dld_link in -ldld... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10766
if ${ac_cv_lib_dld_dld_link+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10767
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10768
else
10769
  ac_check_lib_save_LIBS=$LIBS
10770
LIBS="-ldld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10772
/* end confdefs.h.  */
10773
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10774
/* Override any GCC internal prototype to avoid an error.
10775
   Use char because int might match the return type of a GCC
10776
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10777
#ifdef __cplusplus
10778
extern "C"
10779
#endif
10780
char dld_link ();
10781
int
10782
main ()
10783
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10784
return dld_link ();
1 by Joey Hess
* Joey Hess
10785
  ;
10786
  return 0;
10787
}
10788
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10789
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10790
  ac_cv_lib_dld_dld_link=yes
10791
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10792
  ac_cv_lib_dld_dld_link=no
1 by Joey Hess
* Joey Hess
10793
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10794
rm -f core conftest.err conftest.$ac_objext \
10795
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10796
LIBS=$ac_check_lib_save_LIBS
10797
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10799
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10800
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
10801
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1 by Joey Hess
* Joey Hess
10802
fi
10803
10804
10805
fi
10806
10807
10808
fi
10809
10810
10811
fi
10812
10813
10814
fi
10815
10816
10817
fi
10818
10819
    ;;
10820
  esac
10821
10822
  if test "x$lt_cv_dlopen" != xno; then
10823
    enable_dlopen=yes
10824
  else
10825
    enable_dlopen=no
10826
  fi
10827
10828
  case $lt_cv_dlopen in
10829
  dlopen)
10830
    save_CPPFLAGS="$CPPFLAGS"
10831
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10832
10833
    save_LDFLAGS="$LDFLAGS"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10834
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1 by Joey Hess
* Joey Hess
10835
10836
    save_LIBS="$LIBS"
10837
    LIBS="$lt_cv_dlopen_libs $LIBS"
10838
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10839
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10840
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10841
if ${lt_cv_dlopen_self+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10842
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10843
else
10844
  	  if test "$cross_compiling" = yes; then :
10845
  lt_cv_dlopen_self=cross
10846
else
10847
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848
  lt_status=$lt_dlunknown
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10849
  cat > conftest.$ac_ext <<_LT_EOF
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10850
#line $LINENO "configure"
1 by Joey Hess
* Joey Hess
10851
#include "confdefs.h"
10852
10853
#if HAVE_DLFCN_H
10854
#include <dlfcn.h>
10855
#endif
10856
10857
#include <stdio.h>
10858
10859
#ifdef RTLD_GLOBAL
10860
#  define LT_DLGLOBAL		RTLD_GLOBAL
10861
#else
10862
#  ifdef DL_GLOBAL
10863
#    define LT_DLGLOBAL		DL_GLOBAL
10864
#  else
10865
#    define LT_DLGLOBAL		0
10866
#  endif
10867
#endif
10868
10869
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870
   find out it does not work in some platform. */
10871
#ifndef LT_DLLAZY_OR_NOW
10872
#  ifdef RTLD_LAZY
10873
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10874
#  else
10875
#    ifdef DL_LAZY
10876
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10877
#    else
10878
#      ifdef RTLD_NOW
10879
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10880
#      else
10881
#        ifdef DL_NOW
10882
#          define LT_DLLAZY_OR_NOW	DL_NOW
10883
#        else
10884
#          define LT_DLLAZY_OR_NOW	0
10885
#        endif
10886
#      endif
10887
#    endif
10888
#  endif
10889
#endif
10890
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10891
/* When -fvisbility=hidden is used, assume the code has been annotated
10892
   correspondingly for the symbols needed.  */
10893
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894
int fnord () __attribute__((visibility("default")));
10895
#endif
10896
10897
int fnord () { return 42; }
1 by Joey Hess
* Joey Hess
10898
int main ()
10899
{
10900
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901
  int status = $lt_dlunknown;
10902
10903
  if (self)
10904
    {
10905
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10906
      else
10907
        {
10908
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10909
          else puts (dlerror ());
10910
	}
1 by Joey Hess
* Joey Hess
10911
      /* dlclose (self); */
10912
    }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10913
  else
10914
    puts (dlerror ());
1 by Joey Hess
* Joey Hess
10915
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10916
  return status;
1 by Joey Hess
* Joey Hess
10917
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10918
_LT_EOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10919
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
10920
  (eval $ac_link) 2>&5
10921
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10922
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10924
    (./conftest; exit; ) >&5 2>/dev/null
1 by Joey Hess
* Joey Hess
10925
    lt_status=$?
10926
    case x$lt_status in
10927
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10928
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10929
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1 by Joey Hess
* Joey Hess
10930
    esac
10931
  else :
10932
    # compilation failed
10933
    lt_cv_dlopen_self=no
10934
  fi
10935
fi
10936
rm -fr conftest*
10937
10938
10939
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10941
$as_echo "$lt_cv_dlopen_self" >&6; }
1 by Joey Hess
* Joey Hess
10942
10943
    if test "x$lt_cv_dlopen_self" = xyes; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10944
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10945
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10946
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10947
if ${lt_cv_dlopen_self_static+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10948
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10949
else
10950
  	  if test "$cross_compiling" = yes; then :
10951
  lt_cv_dlopen_self_static=cross
10952
else
10953
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10954
  lt_status=$lt_dlunknown
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10955
  cat > conftest.$ac_ext <<_LT_EOF
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10956
#line $LINENO "configure"
1 by Joey Hess
* Joey Hess
10957
#include "confdefs.h"
10958
10959
#if HAVE_DLFCN_H
10960
#include <dlfcn.h>
10961
#endif
10962
10963
#include <stdio.h>
10964
10965
#ifdef RTLD_GLOBAL
10966
#  define LT_DLGLOBAL		RTLD_GLOBAL
10967
#else
10968
#  ifdef DL_GLOBAL
10969
#    define LT_DLGLOBAL		DL_GLOBAL
10970
#  else
10971
#    define LT_DLGLOBAL		0
10972
#  endif
10973
#endif
10974
10975
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10976
   find out it does not work in some platform. */
10977
#ifndef LT_DLLAZY_OR_NOW
10978
#  ifdef RTLD_LAZY
10979
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10980
#  else
10981
#    ifdef DL_LAZY
10982
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10983
#    else
10984
#      ifdef RTLD_NOW
10985
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10986
#      else
10987
#        ifdef DL_NOW
10988
#          define LT_DLLAZY_OR_NOW	DL_NOW
10989
#        else
10990
#          define LT_DLLAZY_OR_NOW	0
10991
#        endif
10992
#      endif
10993
#    endif
10994
#  endif
10995
#endif
10996
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
10997
/* When -fvisbility=hidden is used, assume the code has been annotated
10998
   correspondingly for the symbols needed.  */
10999
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11000
int fnord () __attribute__((visibility("default")));
11001
#endif
11002
11003
int fnord () { return 42; }
1 by Joey Hess
* Joey Hess
11004
int main ()
11005
{
11006
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007
  int status = $lt_dlunknown;
11008
11009
  if (self)
11010
    {
11011
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11012
      else
11013
        {
11014
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11015
          else puts (dlerror ());
11016
	}
1 by Joey Hess
* Joey Hess
11017
      /* dlclose (self); */
11018
    }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11019
  else
11020
    puts (dlerror ());
1 by Joey Hess
* Joey Hess
11021
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11022
  return status;
1 by Joey Hess
* Joey Hess
11023
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11024
_LT_EOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11025
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
11026
  (eval $ac_link) 2>&5
11027
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11028
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
11030
    (./conftest; exit; ) >&5 2>/dev/null
1 by Joey Hess
* Joey Hess
11031
    lt_status=$?
11032
    case x$lt_status in
11033
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11035
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1 by Joey Hess
* Joey Hess
11036
    esac
11037
  else :
11038
    # compilation failed
11039
    lt_cv_dlopen_self_static=no
11040
  fi
11041
fi
11042
rm -fr conftest*
11043
11044
11045
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11047
$as_echo "$lt_cv_dlopen_self_static" >&6; }
1 by Joey Hess
* Joey Hess
11048
    fi
11049
11050
    CPPFLAGS="$save_CPPFLAGS"
11051
    LDFLAGS="$save_LDFLAGS"
11052
    LIBS="$save_LIBS"
11053
    ;;
11054
  esac
11055
11056
  case $lt_cv_dlopen_self in
11057
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058
  *) enable_dlopen_self=unknown ;;
11059
  esac
11060
11061
  case $lt_cv_dlopen_self_static in
11062
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063
  *) enable_dlopen_self_static=unknown ;;
11064
  esac
11065
fi
11066
11067
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
striplib=
11084
old_striplib=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11091
$as_echo "yes" >&6; }
11092
else
11093
# FIXME - insert some real tests, host_os isn't really good enough
11094
  case $host_os in
11095
  darwin*)
11096
    if test -n "$STRIP" ; then
11097
      striplib="$STRIP -x"
11098
      old_striplib="$STRIP -S"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11099
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11100
$as_echo "yes" >&6; }
11101
    else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11102
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11103
$as_echo "no" >&6; }
11104
    fi
11105
    ;;
11106
  *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11107
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11108
$as_echo "no" >&6; }
11109
    ;;
11110
  esac
11111
fi
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
  # Report which library types will actually be built
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11125
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11126
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11128
$as_echo "$can_build_shared" >&6; }
11129
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11130
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11131
$as_echo_n "checking whether to build shared libraries... " >&6; }
11132
  test "$can_build_shared" = "no" && enable_shared=no
11133
11134
  # On AIX, shared libraries and static libraries use the same namespace, and
11135
  # are all built from PIC.
11136
  case $host_os in
11137
  aix3*)
11138
    test "$enable_shared" = yes && enable_static=no
11139
    if test -n "$RANLIB"; then
11140
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141
      postinstall_cmds='$RANLIB $lib'
11142
    fi
11143
    ;;
11144
11145
  aix[4-9]*)
11146
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147
      test "$enable_shared" = yes && enable_static=no
11148
    fi
11149
    ;;
11150
  esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11152
$as_echo "$enable_shared" >&6; }
11153
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11154
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11155
$as_echo_n "checking whether to build static libraries... " >&6; }
11156
  # Make sure either enable_shared or enable_static is yes.
11157
  test "$enable_shared" = yes || enable_static=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11159
$as_echo "$enable_static" >&6; }
11160
11161
11162
11163
11164
fi
11165
ac_ext=c
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11170
11171
CC="$lt_save_CC"
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
        ac_config_commands="$ac_config_commands libtool"
11186
11187
11188
11189
11190
# Only expand once:
1 by Joey Hess
* Joey Hess
11191
11192
11193
11194
for ac_func in memrchr
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11195
do :
11196
  ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11197
if test "x$ac_cv_func_memrchr" = xyes; then :
1 by Joey Hess
* Joey Hess
11198
  cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11199
#define HAVE_MEMRCHR 1
1 by Joey Hess
* Joey Hess
11200
_ACEOF
11201
11202
fi
11203
done
11204
11205
11206
for ac_prog in doxygen
11207
do
11208
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11209
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11211
$as_echo_n "checking for $ac_word... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11212
if ${ac_cv_prog_DOXYGEN+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11213
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
11214
else
11215
  if test -n "$DOXYGEN"; then
11216
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11217
else
11218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219
for as_dir in $PATH
11220
do
11221
  IFS=$as_save_IFS
11222
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11223
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
11225
    ac_cv_prog_DOXYGEN="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11226
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
11227
    break 2
11228
  fi
11229
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11230
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11231
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
11232
11233
fi
11234
fi
11235
DOXYGEN=$ac_cv_prog_DOXYGEN
11236
if test -n "$DOXYGEN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11238
$as_echo "$DOXYGEN" >&6; }
1 by Joey Hess
* Joey Hess
11239
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11241
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
11242
fi
11243
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11244
1 by Joey Hess
* Joey Hess
11245
  test -n "$DOXYGEN" && break
11246
done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
11247
test -n "$DOXYGEN" || DOXYGEN="true"
1 by Joey Hess
* Joey Hess
11248
11249
11250
LIBRARY_VERSION_MAJOR=4
11251
LIBRARY_VERSION_MINOR=0
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11252
LIBRARY_VERSION_REVISION=7
1 by Joey Hess
* Joey Hess
11253
LIBRARY_VERSION="$LIBRARY_VERSION_MAJOR.$LIBRARY_VERSION_MINOR.$LIBRARY_VERSION_REVISION"
11254
LIBRARY_VERSION_LIBTOOL="$LIBRARY_VERSION_MAJOR:$LIBRARY_VERSION_MINOR:$LIBRARY_VERSION_REVISION"
11255
11256
11257
11258
11259
11260
cat >>confdefs.h <<_ACEOF
11261
#define LIBDI_VERSION_MAJOR $LIBRARY_VERSION_MAJOR
11262
_ACEOF
11263
11264
11265
cat >>confdefs.h <<_ACEOF
11266
#define LIBDI_VERSION_MINOR $LIBRARY_VERSION_MINOR
11267
_ACEOF
11268
11269
11270
cat >>confdefs.h <<_ACEOF
11271
#define LIBDI_VERSION_REVISION $LIBRARY_VERSION_REVISION
11272
_ACEOF
11273
11274
11275
cat >>confdefs.h <<_ACEOF
11276
#define LIBDI_VERSION $LIBRARY_VERSION
11277
_ACEOF
11278
11279
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __attribute__((alias))" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11281
$as_echo_n "checking whether $CC supports __attribute__((alias))... " >&6; }
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11282
if ${di_cv_support_cc_attribute_alias+:} false; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11283
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
11284
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11285
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
11286
/* end confdefs.h.  */
11287
11288
int
11289
main ()
11290
{
11291
11292
		void test_alias() __attribute__ ((alias("test")));
11293
11294
  ;
11295
  return 0;
11296
}
11297
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11298
if ac_fn_c_try_compile "$LINENO"; then :
1 by Joey Hess
* Joey Hess
11299
  di_cv_support_cc_attribute_alias=yes
11300
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11301
  di_cv_support_cc_attribute_alias=no
1 by Joey Hess
* Joey Hess
11302
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
11303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
11304
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $di_cv_support_cc_attribute_alias" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11306
$as_echo "$di_cv_support_cc_attribute_alias" >&6; }
1 by Joey Hess
* Joey Hess
11307
if test $di_cv_support_cc_attribute_alias = yes; then
11308
	HAVE_ATTRIBUTE_ALIAS=1
11309
11310
cat >>confdefs.h <<_ACEOF
11311
#define HAVE_ATTRIBUTE_ALIAS 1
11312
_ACEOF
11313
11314
fi
11315
11316
11317
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11318
ac_fn_c_check_decl "$LINENO" "PATH_MAX" "ac_cv_have_decl_PATH_MAX" "
1 by Joey Hess
* Joey Hess
11319
#include <limits.h>
11320
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11321
"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11322
if test "x$ac_cv_have_decl_PATH_MAX" = xyes; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11323
  ac_have_decl=1
1 by Joey Hess
* Joey Hess
11324
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11325
  ac_have_decl=0
11326
fi
1 by Joey Hess
* Joey Hess
11327
11328
cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11329
#define HAVE_DECL_PATH_MAX $ac_have_decl
1 by Joey Hess
* Joey Hess
11330
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11331
if test $ac_have_decl = 1; then :
1 by Joey Hess
* Joey Hess
11332
11333
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11334
  $as_echo "#define PATH_MAX 4096" >>confdefs.h
1 by Joey Hess
* Joey Hess
11335
11336
fi
11337
11338
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11339
# Check whether --enable-extensive-debug was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11340
if test "${enable_extensive_debug+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11341
  enableval=$enable_extensive_debug;
11342
fi
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11343
11344
if test "$enable_extensive_debug" = yes; then
11345
11346
cat >>confdefs.h <<_ACEOF
11347
#define ENABLE_EXTENSIVE_DEBUG 1
11348
_ACEOF
11349
11350
fi
11351
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Debian CPU name" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11353
$as_echo_n "checking Debian CPU name... " >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11354
DEB_HOST_ARCH_CPU="`dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null`"
11355
# Take account of old dpkg-architecture output.
11356
if test -z "$DEB_HOST_ARCH_CPU"; then
11357
	DEB_HOST_ARCH_CPU="`dpkg-architecture -qDEB_HOST_GNU_CPU`"
11358
	if test "$DEB_HOST_ARCH_CPU" = x86_64; then
11359
		DEB_HOST_ARCH_CPU=amd64
11360
	fi
11361
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEB_HOST_ARCH_CPU" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11363
$as_echo "$DEB_HOST_ARCH_CPU" >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11364
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Debian system name" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11366
$as_echo_n "checking Debian system name... " >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11367
DEB_HOST_ARCH_OS="`dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null`"
11368
# Take account of old dpkg-architecture output.
11369
if test -z "$DEB_HOST_ARCH_OS"; then
11370
	DEB_HOST_ARCH_OS="`dpkg-architecture -qDEB_HOST_GNU_SYSTEM | sed 's/-gnu//g'`"
11371
	if test "$DEB_HOST_ARCH_OS" = gnu; then
11372
		DEB_HOST_ARCH_OS=hurd
11373
	fi
11374
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEB_HOST_ARCH_OS" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11376
$as_echo "$DEB_HOST_ARCH_OS" >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11377
11378
if test -f "$srcdir/src/system/subarch-$DEB_HOST_ARCH_CPU-$DEB_HOST_ARCH_OS.c"; then
11379
	SUBARCH_SYSTEM="subarch-$DEB_HOST_ARCH_CPU-$DEB_HOST_ARCH_OS.lo"
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
11380
elif (test "$DEB_HOST_ARCH_CPU" = i386 || test "$DEB_HOST_ARCH_CPU" = amd64) && test -f "$srcdir/src/system/subarch-x86-$DEB_HOST_ARCH_OS.c"; then
11381
	SUBARCH_SYSTEM="subarch-x86-$DEB_HOST_ARCH_OS.lo"
2 by Colin Watson
* Update GPL notices with the FSF's new address.
11382
else
11383
	SUBARCH_SYSTEM="subarch-generic.lo"
11384
fi
11385
11386
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11387
ac_config_headers="$ac_config_headers config.h include/debian-installer/config.h"
11388
11389
11390
ac_config_files="$ac_config_files Makefile doc/Doxyfile doc/Makefile include/Makefile include/debian-installer/Makefile include/debian-installer/system/Makefile src/Makefile src/system/Makefile libdebian-installer.pc libdebian-installer-extra.pc"
1 by Joey Hess
* Joey Hess
11391
11392
11393
cat >confcache <<\_ACEOF
11394
# This file is a shell script that caches the results of configure
11395
# tests run on this system so they can be shared between configure
11396
# scripts and configure runs, see configure's option --config-cache.
11397
# It is not useful on other systems.  If it contains results you don't
11398
# want to keep, you may remove or edit it.
11399
#
11400
# config.status only pays attention to the cache file if you give it
11401
# the --recheck option to rerun configure.
11402
#
11403
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11404
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11405
# following values.
11406
11407
_ACEOF
11408
11409
# The following way of writing the cache mishandles newlines in values,
11410
# but we know of no workaround that is simple, portable, and efficient.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11411
# So, we kill variables containing newlines.
1 by Joey Hess
* Joey Hess
11412
# Ultrix sh set writes to stderr and can't be redirected directly,
11413
# and sets the high bit in the cache file unless we assign to the vars.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11414
(
11415
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11416
    eval ac_val=\$$ac_var
11417
    case $ac_val in #(
11418
    *${as_nl}*)
11419
      case $ac_var in #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11420
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11421
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11422
      esac
11423
      case $ac_var in #(
11424
      _ | IFS | as_nl) ;; #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11425
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11426
      *) { eval $ac_var=; unset $ac_var;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11427
      esac ;;
11428
    esac
11429
  done
11430
1 by Joey Hess
* Joey Hess
11431
  (set) 2>&1 |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11432
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11433
    *${as_nl}ac_space=\ *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11434
      # `set' does not quote correctly, so add quotes: double-quote
11435
      # substitution turns \\\\ into \\, and sed turns \\ into \.
1 by Joey Hess
* Joey Hess
11436
      sed -n \
11437
	"s/'/'\\\\''/g;
11438
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11439
      ;; #(
1 by Joey Hess
* Joey Hess
11440
    *)
11441
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11442
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Joey Hess
* Joey Hess
11443
      ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11444
    esac |
11445
    sort
11446
) |
1 by Joey Hess
* Joey Hess
11447
  sed '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11448
     /^ac_cv_env_/b end
1 by Joey Hess
* Joey Hess
11449
     t clear
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11450
     :clear
1 by Joey Hess
* Joey Hess
11451
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11452
     t end
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11453
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11454
     :end' >>confcache
11455
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11456
  if test -w "$cache_file"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11457
    if test "x$cache_file" != "x/dev/null"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11458
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11459
$as_echo "$as_me: updating cache $cache_file" >&6;}
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11460
      if test ! -f "$cache_file" || test -h "$cache_file"; then
11461
	cat confcache >"$cache_file"
11462
      else
11463
        case $cache_file in #(
11464
        */* | ?:*)
11465
	  mv -f confcache "$cache_file"$$ &&
11466
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11467
        *)
11468
	  mv -f confcache "$cache_file" ;;
11469
	esac
11470
      fi
11471
    fi
1 by Joey Hess
* Joey Hess
11472
  else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11473
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11474
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
11475
  fi
11476
fi
11477
rm -f confcache
11478
11479
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11480
# Let make expand exec_prefix.
11481
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11482
11483
DEFS=-DHAVE_CONFIG_H
11484
11485
ac_libobjs=
11486
ac_ltlibobjs=
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11487
U=
1 by Joey Hess
* Joey Hess
11488
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11489
  # 1. Remove the extension, and $U if already installed.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11490
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11491
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11492
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11493
  #    will be set to the directory where LIBOBJS objects are built.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11494
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11495
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1 by Joey Hess
* Joey Hess
11496
done
11497
LIBOBJS=$ac_libobjs
11498
11499
LTLIBOBJS=$ac_ltlibobjs
11500
11501
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
11502
 if test -n "$EXEEXT"; then
11503
  am__EXEEXT_TRUE=
11504
  am__EXEEXT_FALSE='#'
11505
else
11506
  am__EXEEXT_TRUE='#'
11507
  am__EXEEXT_FALSE=
11508
fi
11509
1 by Joey Hess
* Joey Hess
11510
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11511
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11512
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
11513
fi
11514
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11515
  as_fn_error $? "conditional \"AMDEP\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11516
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
11517
fi
11518
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11519
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11520
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
11521
fi
11522
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11523
: "${CONFIG_STATUS=./config.status}"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11524
ac_write_fail=0
1 by Joey Hess
* Joey Hess
11525
ac_clean_files_save=$ac_clean_files
11526
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11527
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11528
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11529
as_write_fail=0
11530
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1 by Joey Hess
* Joey Hess
11531
#! $SHELL
11532
# Generated by $as_me.
11533
# Run this file to recreate the current configuration.
11534
# Compiler output produced by configure, useful for debugging
11535
# configure, is in config.log if it exists.
11536
11537
debug=false
11538
ac_cs_recheck=false
11539
ac_cs_silent=false
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11540
1 by Joey Hess
* Joey Hess
11541
SHELL=\${CONFIG_SHELL-$SHELL}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11542
export SHELL
11543
_ASEOF
11544
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11545
## -------------------- ##
11546
## M4sh Initialization. ##
11547
## -------------------- ##
1 by Joey Hess
* Joey Hess
11548
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11549
# Be more Bourne compatible
11550
DUALCASE=1; export DUALCASE # for MKS sh
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11551
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Joey Hess
* Joey Hess
11552
  emulate sh
11553
  NULLCMD=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11554
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Joey Hess
* Joey Hess
11555
  # is contrary to our usage.  Disable this feature.
11556
  alias -g '${1+"$@"}'='"$@"'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11557
  setopt NO_GLOB_SUBST
11558
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11559
  case `(set -o) 2>/dev/null` in #(
11560
  *posix*) :
11561
    set -o posix ;; #(
11562
  *) :
11563
     ;;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11564
esac
1 by Joey Hess
* Joey Hess
11565
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11566
11567
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11568
as_nl='
11569
'
11570
export as_nl
11571
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11572
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11573
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11574
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11575
# Prefer a ksh shell builtin over an external printf program on Solaris,
11576
# but without wasting forks for bash or zsh.
11577
if test -z "$BASH_VERSION$ZSH_VERSION" \
11578
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11579
  as_echo='print -r --'
11580
  as_echo_n='print -rn --'
11581
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11582
  as_echo='printf %s\n'
11583
  as_echo_n='printf %s'
11584
else
11585
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11586
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11587
    as_echo_n='/usr/ucb/echo -n'
11588
  else
11589
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11590
    as_echo_n_body='eval
11591
      arg=$1;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11592
      case $arg in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11593
      *"$as_nl"*)
11594
	expr "X$arg" : "X\\(.*\\)$as_nl";
11595
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11596
      esac;
11597
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11598
    '
11599
    export as_echo_n_body
11600
    as_echo_n='sh -c $as_echo_n_body as_echo'
11601
  fi
11602
  export as_echo_body
11603
  as_echo='sh -c $as_echo_body as_echo'
11604
fi
11605
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11606
# The user is always right.
11607
if test "${PATH_SEPARATOR+set}" != set; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11608
  PATH_SEPARATOR=:
11609
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11610
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11611
      PATH_SEPARATOR=';'
11612
  }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11613
fi
11614
1 by Joey Hess
* Joey Hess
11615
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11616
# IFS
11617
# We need space, tab and new line, in precisely that order.  Quoting is
11618
# there to prevent editors from complaining about space-tab.
11619
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11620
# splitting by setting IFS to empty value.)
11621
IFS=" ""	$as_nl"
11622
11623
# Find who we are.  Look in the path if we contain no directory separator.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11624
as_myself=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11625
case $0 in #((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11626
  *[\\/]* ) as_myself=$0 ;;
11627
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628
for as_dir in $PATH
11629
do
11630
  IFS=$as_save_IFS
11631
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11632
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11633
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11634
IFS=$as_save_IFS
11635
11636
     ;;
11637
esac
11638
# We did not find ourselves, most probably we were run as `sh COMMAND'
11639
# in which case we are not to be found in the path.
11640
if test "x$as_myself" = x; then
11641
  as_myself=$0
11642
fi
11643
if test ! -f "$as_myself"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11644
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11645
  exit 1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11646
fi
11647
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11648
# Unset variables that we do not need and which cause bugs (e.g. in
11649
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11650
# suppresses any "Segmentation fault" message there.  '((' could
11651
# trigger a bug in pdksh 5.2.14.
11652
for as_var in BASH_ENV ENV MAIL MAILPATH
11653
do eval test x\${$as_var+set} = xset \
11654
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11655
done
1 by Joey Hess
* Joey Hess
11656
PS1='$ '
11657
PS2='> '
11658
PS4='+ '
11659
11660
# NLS nuisances.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11661
LC_ALL=C
11662
export LC_ALL
11663
LANGUAGE=C
11664
export LANGUAGE
1 by Joey Hess
* Joey Hess
11665
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11666
# CDPATH.
11667
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11668
11669
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11670
# as_fn_error STATUS ERROR [LINENO LOG_FD]
11671
# ----------------------------------------
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11672
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11673
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11674
# script with STATUS, using 1 if that was 0.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11675
as_fn_error ()
11676
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11677
  as_status=$1; test $as_status -eq 0 && as_status=1
11678
  if test "$4"; then
11679
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11680
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11681
  fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11682
  $as_echo "$as_me: error: $2" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11683
  as_fn_exit $as_status
11684
} # as_fn_error
11685
11686
11687
# as_fn_set_status STATUS
11688
# -----------------------
11689
# Set $? to STATUS, without forking.
11690
as_fn_set_status ()
11691
{
11692
  return $1
11693
} # as_fn_set_status
11694
11695
# as_fn_exit STATUS
11696
# -----------------
11697
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11698
as_fn_exit ()
11699
{
11700
  set +e
11701
  as_fn_set_status $1
11702
  exit $1
11703
} # as_fn_exit
11704
11705
# as_fn_unset VAR
11706
# ---------------
11707
# Portably unset VAR.
11708
as_fn_unset ()
11709
{
11710
  { eval $1=; unset $1;}
11711
}
11712
as_unset=as_fn_unset
11713
# as_fn_append VAR VALUE
11714
# ----------------------
11715
# Append the text in VALUE to the end of the definition contained in VAR. Take
11716
# advantage of any shell optimizations that allow amortized linear growth over
11717
# repeated appends, instead of the typical quadratic growth present in naive
11718
# implementations.
11719
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11720
  eval 'as_fn_append ()
11721
  {
11722
    eval $1+=\$2
11723
  }'
11724
else
11725
  as_fn_append ()
11726
  {
11727
    eval $1=\$$1\$2
11728
  }
11729
fi # as_fn_append
11730
11731
# as_fn_arith ARG...
11732
# ------------------
11733
# Perform arithmetic evaluation on the ARGs, and store the result in the
11734
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11735
# must be portable across $(()) and expr.
11736
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11737
  eval 'as_fn_arith ()
11738
  {
11739
    as_val=$(( $* ))
11740
  }'
11741
else
11742
  as_fn_arith ()
11743
  {
11744
    as_val=`expr "$@" || test $? -eq 1`
11745
  }
11746
fi # as_fn_arith
11747
11748
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11749
if expr a : '\(a\)' >/dev/null 2>&1 &&
11750
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1 by Joey Hess
* Joey Hess
11751
  as_expr=expr
11752
else
11753
  as_expr=false
11754
fi
11755
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11756
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1 by Joey Hess
* Joey Hess
11757
  as_basename=basename
11758
else
11759
  as_basename=false
11760
fi
11761
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11762
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11763
  as_dirname=dirname
11764
else
11765
  as_dirname=false
11766
fi
1 by Joey Hess
* Joey Hess
11767
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11768
as_me=`$as_basename -- "$0" ||
1 by Joey Hess
* Joey Hess
11769
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11770
	 X"$0" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11771
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11772
$as_echo X/"$0" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11773
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11774
	    s//\1/
11775
	    q
11776
	  }
11777
	  /^X\/\(\/\/\)$/{
11778
	    s//\1/
11779
	    q
11780
	  }
11781
	  /^X\/\(\/\).*/{
11782
	    s//\1/
11783
	    q
11784
	  }
11785
	  s/.*/./; q'`
11786
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11787
# Avoid depending upon Character Ranges.
11788
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11789
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11790
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11791
as_cr_digits='0123456789'
11792
as_cr_alnum=$as_cr_Letters$as_cr_digits
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11793
11794
ECHO_C= ECHO_N= ECHO_T=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11795
case `echo -n x` in #(((((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11796
-n*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11797
  case `echo 'xy\c'` in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11798
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11799
  xy)  ECHO_C='\c';;
11800
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11801
       ECHO_T='	';;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11802
  esac;;
11803
*)
11804
  ECHO_N='-n';;
1 by Joey Hess
* Joey Hess
11805
esac
11806
11807
rm -f conf$$ conf$$.exe conf$$.file
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11808
if test -d conf$$.dir; then
11809
  rm -f conf$$.dir/conf$$.file
11810
else
11811
  rm -f conf$$.dir
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11812
  mkdir conf$$.dir 2>/dev/null
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11813
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11814
if (echo >conf$$.file) 2>/dev/null; then
11815
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11816
    as_ln_s='ln -s'
11817
    # ... but there are two gotchas:
11818
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11819
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11820
    # In both cases, we have to default to `cp -p'.
11821
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11822
      as_ln_s='cp -p'
11823
  elif ln conf$$.file conf$$ 2>/dev/null; then
11824
    as_ln_s=ln
11825
  else
1 by Joey Hess
* Joey Hess
11826
    as_ln_s='cp -p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11827
  fi
1 by Joey Hess
* Joey Hess
11828
else
11829
  as_ln_s='cp -p'
11830
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11831
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11832
rmdir conf$$.dir 2>/dev/null
1 by Joey Hess
* Joey Hess
11833
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11834
11835
# as_fn_mkdir_p
11836
# -------------
11837
# Create "$as_dir" as a directory, including parents if necessary.
11838
as_fn_mkdir_p ()
11839
{
11840
11841
  case $as_dir in #(
11842
  -*) as_dir=./$as_dir;;
11843
  esac
11844
  test -d "$as_dir" || eval $as_mkdir_p || {
11845
    as_dirs=
11846
    while :; do
11847
      case $as_dir in #(
11848
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11849
      *) as_qdir=$as_dir;;
11850
      esac
11851
      as_dirs="'$as_qdir' $as_dirs"
11852
      as_dir=`$as_dirname -- "$as_dir" ||
11853
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11854
	 X"$as_dir" : 'X\(//\)[^/]' \| \
11855
	 X"$as_dir" : 'X\(//\)$' \| \
11856
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11857
$as_echo X"$as_dir" |
11858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11859
	    s//\1/
11860
	    q
11861
	  }
11862
	  /^X\(\/\/\)[^/].*/{
11863
	    s//\1/
11864
	    q
11865
	  }
11866
	  /^X\(\/\/\)$/{
11867
	    s//\1/
11868
	    q
11869
	  }
11870
	  /^X\(\/\).*/{
11871
	    s//\1/
11872
	    q
11873
	  }
11874
	  s/.*/./; q'`
11875
      test -d "$as_dir" && break
11876
    done
11877
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11878
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11879
11880
11881
} # as_fn_mkdir_p
1 by Joey Hess
* Joey Hess
11882
if mkdir -p . 2>/dev/null; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11883
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Joey Hess
* Joey Hess
11884
else
11885
  test -d ./-p && rmdir ./-p
11886
  as_mkdir_p=false
11887
fi
11888
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11889
if test -x / >/dev/null 2>&1; then
11890
  as_test_x='test -x'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11891
else
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11892
  if ls -dL / >/dev/null 2>&1; then
11893
    as_ls_L_option=L
11894
  else
11895
    as_ls_L_option=
11896
  fi
11897
  as_test_x='
11898
    eval sh -c '\''
11899
      if test -d "$1"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11900
	test -d "$1/.";
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11901
      else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11902
	case $1 in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11903
	-*)set "./$1";;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11904
	esac;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11905
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11906
	???[sx]*):;;*)false;;esac;fi
11907
    '\'' sh
11908
  '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11909
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11910
as_executable_p=$as_test_x
1 by Joey Hess
* Joey Hess
11911
11912
# Sed expression to map a string onto a valid CPP name.
11913
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11914
11915
# Sed expression to map a string onto a valid variable name.
11916
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11917
11918
11919
exec 6>&1
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11920
## ----------------------------------- ##
11921
## Main body of $CONFIG_STATUS script. ##
11922
## ----------------------------------- ##
11923
_ASEOF
11924
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11925
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11926
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11927
# Save the log message, to keep $0 and so on meaningful, and to
1 by Joey Hess
* Joey Hess
11928
# report actual input values of CONFIG_FILES etc. instead of their
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11929
# values after options handling.
11930
ac_log="
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
11931
This file was extended by libdebian-installer $as_me 0.79ubuntu2, which was
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11932
generated by GNU Autoconf 2.68.  Invocation command line was
1 by Joey Hess
* Joey Hess
11933
11934
  CONFIG_FILES    = $CONFIG_FILES
11935
  CONFIG_HEADERS  = $CONFIG_HEADERS
11936
  CONFIG_LINKS    = $CONFIG_LINKS
11937
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11938
  $ $0 $@
11939
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11940
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11941
"
11942
1 by Joey Hess
* Joey Hess
11943
_ACEOF
11944
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11945
case $ac_config_files in *"
11946
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11947
esac
11948
11949
case $ac_config_headers in *"
11950
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11951
esac
11952
11953
11954
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11955
# Files that config.status was made for.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11956
config_files="$ac_config_files"
11957
config_headers="$ac_config_headers"
11958
config_commands="$ac_config_commands"
11959
11960
_ACEOF
1 by Joey Hess
* Joey Hess
11961
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11962
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11963
ac_cs_usage="\
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11964
\`$as_me' instantiates files and other configuration actions
11965
from templates according to the current configuration.  Unless the files
11966
and actions are specified as TAGs, all are instantiated by default.
1 by Joey Hess
* Joey Hess
11967
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11968
Usage: $0 [OPTION]... [TAG]...
1 by Joey Hess
* Joey Hess
11969
11970
  -h, --help       print this help, then exit
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
11971
  -V, --version    print version number and configuration settings, then exit
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11972
      --config     print configuration, then exit
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11973
  -q, --quiet, --silent
11974
                   do not print progress messages
1 by Joey Hess
* Joey Hess
11975
  -d, --debug      don't remove temporary files
11976
      --recheck    update $as_me by reconfiguring in the same conditions
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11977
      --file=FILE[:TEMPLATE]
11978
                   instantiate the configuration file FILE
11979
      --header=FILE[:TEMPLATE]
11980
                   instantiate the configuration header FILE
1 by Joey Hess
* Joey Hess
11981
11982
Configuration files:
11983
$config_files
11984
11985
Configuration headers:
11986
$config_headers
11987
11988
Configuration commands:
11989
$config_commands
11990
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11991
Report bugs to the package provider."
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11992
1 by Joey Hess
* Joey Hess
11993
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11994
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11995
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1 by Joey Hess
* Joey Hess
11996
ac_cs_version="\\
36 by Michael Casadevall
Add support for ArmadaXP (LP: #934451)
11997
libdebian-installer config.status 0.79ubuntu2
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
11998
configured by $0, generated by GNU Autoconf 2.68,
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11999
  with options \\"\$ac_cs_config\\"
1 by Joey Hess
* Joey Hess
12000
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12001
Copyright (C) 2010 Free Software Foundation, Inc.
1 by Joey Hess
* Joey Hess
12002
This config.status script is free software; the Free Software Foundation
12003
gives unlimited permission to copy, distribute and modify it."
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12004
12005
ac_pwd='$ac_pwd'
12006
srcdir='$srcdir'
12007
INSTALL='$INSTALL'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
12008
MKDIR_P='$MKDIR_P'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12009
AWK='$AWK'
12010
test -n "\$AWK" || AWK=awk
1 by Joey Hess
* Joey Hess
12011
_ACEOF
12012
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12013
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12014
# The default lists apply if the user does not specify any file.
1 by Joey Hess
* Joey Hess
12015
ac_need_defaults=:
12016
while test $# != 0
12017
do
12018
  case $1 in
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12019
  --*=?*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12020
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12021
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1 by Joey Hess
* Joey Hess
12022
    ac_shift=:
12023
    ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12024
  --*=)
12025
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12026
    ac_optarg=
12027
    ac_shift=:
12028
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12029
  *)
1 by Joey Hess
* Joey Hess
12030
    ac_option=$1
12031
    ac_optarg=$2
12032
    ac_shift=shift
12033
    ;;
12034
  esac
12035
12036
  case $ac_option in
12037
  # Handling of the options.
12038
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12039
    ac_cs_recheck=: ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12040
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12041
    $as_echo "$ac_cs_version"; exit ;;
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
12042
  --config | --confi | --conf | --con | --co | --c )
12043
    $as_echo "$ac_cs_config"; exit ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12044
  --debug | --debu | --deb | --de | --d | -d )
1 by Joey Hess
* Joey Hess
12045
    debug=: ;;
12046
  --file | --fil | --fi | --f )
12047
    $ac_shift
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12048
    case $ac_optarg in
12049
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12050
    '') as_fn_error $? "missing file argument" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12051
    esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12052
    as_fn_append CONFIG_FILES " '$ac_optarg'"
1 by Joey Hess
* Joey Hess
12053
    ac_need_defaults=false;;
12054
  --header | --heade | --head | --hea )
12055
    $ac_shift
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12056
    case $ac_optarg in
12057
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12058
    esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12059
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1 by Joey Hess
* Joey Hess
12060
    ac_need_defaults=false;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12061
  --he | --h)
12062
    # Conflict between --help and --header
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12063
    as_fn_error $? "ambiguous option: \`$1'
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12064
Try \`$0 --help' for more information.";;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12065
  --help | --hel | -h )
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12066
    $as_echo "$ac_cs_usage"; exit ;;
1 by Joey Hess
* Joey Hess
12067
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12068
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12069
    ac_cs_silent=: ;;
12070
12071
  # This is an error.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12072
  -*) as_fn_error $? "unrecognized option: \`$1'
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12073
Try \`$0 --help' for more information." ;;
1 by Joey Hess
* Joey Hess
12074
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12075
  *) as_fn_append ac_config_targets " $1"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12076
     ac_need_defaults=false ;;
1 by Joey Hess
* Joey Hess
12077
12078
  esac
12079
  shift
12080
done
12081
12082
ac_configure_extra_args=
12083
12084
if $ac_cs_silent; then
12085
  exec 6>/dev/null
12086
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12087
fi
12088
12089
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12090
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
12091
if \$ac_cs_recheck; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12092
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12093
  shift
12094
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12095
  CONFIG_SHELL='$SHELL'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12096
  export CONFIG_SHELL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12097
  exec "\$@"
1 by Joey Hess
* Joey Hess
12098
fi
12099
12100
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12101
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12102
exec 5>>config.log
12103
{
12104
  echo
12105
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12106
## Running $as_me. ##
12107
_ASBOX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12108
  $as_echo "$ac_log"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12109
} >&5
1 by Joey Hess
* Joey Hess
12110
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12111
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12112
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
12113
#
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12114
# INIT-COMMANDS
1 by Joey Hess
* Joey Hess
12115
#
12116
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12117
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12118
12119
# The HP-UX ksh and POSIX shell print the target directory to stdout
12120
# if CDPATH is set.
12121
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12122
12123
sed_quote_subst='$sed_quote_subst'
12124
double_quote_subst='$double_quote_subst'
12125
delay_variable_subst='$delay_variable_subst'
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12126
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12127
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12128
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12129
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12130
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12131
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12132
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12133
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12134
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12135
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12136
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12137
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12138
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12139
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12140
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12141
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12142
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12143
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12144
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12145
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12146
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12147
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12148
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12149
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12150
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12151
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12152
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12153
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12154
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12155
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12156
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12157
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12158
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12159
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12160
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12161
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12162
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12163
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12164
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12165
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12166
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12167
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12168
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12169
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12170
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12171
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12172
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12173
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12174
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12175
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12176
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12177
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12178
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12179
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12180
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12181
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"`'
12182
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12183
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12184
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12185
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12186
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12187
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12188
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12189
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12190
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12191
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12192
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12193
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12194
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12195
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12196
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12197
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12198
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12199
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12200
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12201
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12202
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12203
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12204
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12205
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12206
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12207
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12208
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12209
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12210
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12211
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12212
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12213
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12214
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12215
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12216
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12217
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12218
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12219
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12220
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12221
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12222
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12223
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12224
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12225
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12226
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12227
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12228
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12229
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12230
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12231
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12232
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12233
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12234
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12235
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12236
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12237
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12238
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12239
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12240
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12241
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12242
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12243
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12244
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12245
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12246
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12247
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12248
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12249
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12250
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12251
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12252
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12253
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12254
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12255
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12256
12257
LTCC='$LTCC'
12258
LTCFLAGS='$LTCFLAGS'
12259
compiler='$compiler_DEFAULT'
12260
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12261
# A function that is used when there is no print builtin or printf.
12262
func_fallback_echo ()
12263
{
12264
  eval 'cat <<_LTECHO_EOF
12265
\$1
12266
_LTECHO_EOF'
12267
}
12268
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12269
# Quote evaled strings.
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12270
for var in SHELL \
12271
ECHO \
12272
SED \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12273
GREP \
12274
EGREP \
12275
FGREP \
12276
LD \
12277
NM \
12278
LN_S \
12279
lt_SP2NL \
12280
lt_NL2SP \
12281
reload_flag \
12282
OBJDUMP \
12283
deplibs_check_method \
12284
file_magic_cmd \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12285
file_magic_glob \
12286
want_nocaseglob \
12287
DLLTOOL \
12288
sharedlib_from_linklib_cmd \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12289
AR \
12290
AR_FLAGS \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12291
archiver_list_spec \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12292
STRIP \
12293
RANLIB \
12294
CC \
12295
CFLAGS \
12296
compiler \
12297
lt_cv_sys_global_symbol_pipe \
12298
lt_cv_sys_global_symbol_to_cdecl \
12299
lt_cv_sys_global_symbol_to_c_name_address \
12300
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12301
nm_file_list_spec \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12302
lt_prog_compiler_no_builtin_flag \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12303
lt_prog_compiler_pic \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12304
lt_prog_compiler_wl \
12305
lt_prog_compiler_static \
12306
lt_cv_prog_compiler_c_o \
12307
need_locks \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12308
MANIFEST_TOOL \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12309
DSYMUTIL \
12310
NMEDIT \
12311
LIPO \
12312
OTOOL \
12313
OTOOL64 \
12314
shrext_cmds \
12315
export_dynamic_flag_spec \
12316
whole_archive_flag_spec \
12317
compiler_needs_object \
12318
with_gnu_ld \
12319
allow_undefined_flag \
12320
no_undefined_flag \
12321
hardcode_libdir_flag_spec \
12322
hardcode_libdir_flag_spec_ld \
12323
hardcode_libdir_separator \
12324
exclude_expsyms \
12325
include_expsyms \
12326
file_list_spec \
12327
variables_saved_for_relink \
12328
libname_spec \
12329
library_names_spec \
12330
soname_spec \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12331
install_override_mode \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12332
finish_eval \
12333
old_striplib \
12334
striplib; do
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12335
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12336
    *[\\\\\\\`\\"\\\$]*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12337
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12338
      ;;
12339
    *)
12340
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12341
      ;;
12342
    esac
12343
done
12344
12345
# Double-quote double-evaled strings.
12346
for var in reload_cmds \
12347
old_postinstall_cmds \
12348
old_postuninstall_cmds \
12349
old_archive_cmds \
12350
extract_expsyms_cmds \
12351
old_archive_from_new_cmds \
12352
old_archive_from_expsyms_cmds \
12353
archive_cmds \
12354
archive_expsym_cmds \
12355
module_cmds \
12356
module_expsym_cmds \
12357
export_symbols_cmds \
12358
prelink_cmds \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12359
postlink_cmds \
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12360
postinstall_cmds \
12361
postuninstall_cmds \
12362
finish_cmds \
12363
sys_lib_search_path_spec \
12364
sys_lib_dlsearch_path_spec; do
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12365
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12366
    *[\\\\\\\`\\"\\\$]*)
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12367
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12368
      ;;
12369
    *)
12370
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12371
      ;;
12372
    esac
12373
done
12374
12375
ac_aux_dir='$ac_aux_dir'
12376
xsi_shell='$xsi_shell'
12377
lt_shell_append='$lt_shell_append'
12378
12379
# See if we are running on zsh, and set the options which allow our
12380
# commands through without removal of \ escapes INIT.
12381
if test -n "\${ZSH_VERSION+set}" ; then
12382
   setopt NO_GLOB_SUBST
12383
fi
12384
12385
12386
    PACKAGE='$PACKAGE'
12387
    VERSION='$VERSION'
12388
    TIMESTAMP='$TIMESTAMP'
12389
    RM='$RM'
12390
    ofile='$ofile'
12391
12392
12393
12394
1 by Joey Hess
* Joey Hess
12395
_ACEOF
12396
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12397
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12398
12399
# Handling of arguments.
1 by Joey Hess
* Joey Hess
12400
for ac_config_target in $ac_config_targets
12401
do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12402
  case $ac_config_target in
12403
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12404
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12405
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12406
    "include/debian-installer/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/debian-installer/config.h" ;;
12407
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12408
    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
12409
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12410
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12411
    "include/debian-installer/Makefile") CONFIG_FILES="$CONFIG_FILES include/debian-installer/Makefile" ;;
12412
    "include/debian-installer/system/Makefile") CONFIG_FILES="$CONFIG_FILES include/debian-installer/system/Makefile" ;;
12413
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12414
    "src/system/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/Makefile" ;;
12415
    "libdebian-installer.pc") CONFIG_FILES="$CONFIG_FILES libdebian-installer.pc" ;;
12416
    "libdebian-installer-extra.pc") CONFIG_FILES="$CONFIG_FILES libdebian-installer-extra.pc" ;;
12417
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12418
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1 by Joey Hess
* Joey Hess
12419
  esac
12420
done
12421
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12422
1 by Joey Hess
* Joey Hess
12423
# If the user did not use the arguments to specify the items to instantiate,
12424
# then the envvar interface is used.  Set only those that are not.
12425
# We use the long form for the default assignment because of an extremely
12426
# bizarre bug on SunOS 4.1.3.
12427
if $ac_need_defaults; then
12428
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12429
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12430
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12431
fi
12432
12433
# Have a temporary directory for convenience.  Make it in the build tree
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12434
# simply because there is no reason against having it here, and in addition,
1 by Joey Hess
* Joey Hess
12435
# creating and moving files from /tmp can sometimes cause problems.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12436
# Hook for its removal unless debugging.
12437
# Note that there is a small window in which the directory will not be cleaned:
12438
# after its creation but before its name has been assigned to `$tmp'.
1 by Joey Hess
* Joey Hess
12439
$debug ||
12440
{
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12441
  tmp= ac_tmp=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12442
  trap 'exit_status=$?
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12443
  : "${ac_tmp:=$tmp}"
12444
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12445
' 0
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12446
  trap 'as_fn_exit 1' 1 2 13 15
1 by Joey Hess
* Joey Hess
12447
}
12448
# Create a (secure) tmp directory for tmp files.
12449
12450
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12451
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12452
  test -d "$tmp"
1 by Joey Hess
* Joey Hess
12453
}  ||
12454
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12455
  tmp=./conf$$-$RANDOM
12456
  (umask 077 && mkdir "$tmp")
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12457
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12458
ac_tmp=$tmp
1 by Joey Hess
* Joey Hess
12459
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12460
# Set up the scripts for CONFIG_FILES section.
12461
# No need to generate them if there are no CONFIG_FILES.
12462
# This happens for instance with `./config.status config.h'.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12463
if test -n "$CONFIG_FILES"; then
12464
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12465
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12466
ac_cr=`echo X | tr X '\015'`
12467
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12468
# But we know of no other shell where ac_cr would be empty at this
12469
# point, so we can use a bashism as a fallback.
12470
if test "x$ac_cr" = x; then
12471
  eval ac_cr=\$\'\\r\'
12472
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12473
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12474
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12475
  ac_cs_awk_cr='\\r'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12476
else
12477
  ac_cs_awk_cr=$ac_cr
12478
fi
12479
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12480
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12481
_ACEOF
12482
12483
12484
{
12485
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12486
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12487
  echo "_ACEOF"
12488
} >conf$$subs.sh ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12489
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12490
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12491
ac_delim='%!_!# '
12492
for ac_last_try in false false false false false :; do
12493
  . ./conf$$subs.sh ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12494
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12495
12496
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12497
  if test $ac_delim_n = $ac_delim_num; then
12498
    break
12499
  elif $ac_last_try; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12500
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12501
  else
12502
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503
  fi
12504
done
12505
rm -f conf$$subs.sh
12506
12507
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12508
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12509
_ACEOF
12510
sed -n '
12511
h
12512
s/^/S["/; s/!.*/"]=/
12513
p
12514
g
12515
s/^[^!]*!//
12516
:repl
12517
t repl
12518
s/'"$ac_delim"'$//
12519
t delim
12520
:nl
12521
h
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
12522
s/\(.\{148\}\)..*/\1/
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12523
t more1
12524
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12525
p
12526
n
12527
b repl
12528
:more1
12529
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12530
p
12531
g
12532
s/.\{148\}//
12533
t nl
12534
:delim
12535
h
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
12536
s/\(.\{148\}\)..*/\1/
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12537
t more2
12538
s/["\\]/\\&/g; s/^/"/; s/$/"/
12539
p
12540
b
12541
:more2
12542
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12543
p
12544
g
12545
s/.\{148\}//
12546
t delim
12547
' <conf$$subs.awk | sed '
12548
/^[^""]/{
12549
  N
12550
  s/\n//
12551
}
12552
' >>$CONFIG_STATUS || ac_write_fail=1
12553
rm -f conf$$subs.awk
12554
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555
_ACAWK
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12556
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12557
  for (key in S) S_is_set[key] = 1
12558
  FS = ""
12559
12560
}
12561
{
12562
  line = $ 0
12563
  nfields = split(line, field, "@")
12564
  substed = 0
12565
  len = length(field[1])
12566
  for (i = 2; i < nfields; i++) {
12567
    key = field[i]
12568
    keylen = length(key)
12569
    if (S_is_set[key]) {
12570
      value = S[key]
12571
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12572
      len += length(value) + length(field[++i])
12573
      substed = 1
12574
    } else
12575
      len += 1 + keylen
12576
  }
12577
12578
  print line
12579
}
12580
12581
_ACAWK
12582
_ACEOF
12583
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12585
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12586
else
12587
  cat
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12588
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12589
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12590
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12591
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12592
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12593
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12594
# trailing colons and then remove the whole line if VPATH becomes empty
12595
# (actually we leave an empty line to preserve line numbers).
12596
if test "x$srcdir" = x.; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12597
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12598
h
12599
s///
12600
s/^/:/
12601
s/[	 ]*$/:/
12602
s/:\$(srcdir):/:/g
12603
s/:\${srcdir}:/:/g
12604
s/:@srcdir@:/:/g
12605
s/^:*//
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12606
s/:*$//
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12607
x
12608
s/\(=[	 ]*\).*/\1/
12609
G
12610
s/\n//
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12611
s/^[^=]*=[	 ]*$//
12612
}'
12613
fi
12614
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12615
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
12616
fi # test -n "$CONFIG_FILES"
12617
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12618
# Set up the scripts for CONFIG_HEADERS section.
12619
# No need to generate them if there are no CONFIG_HEADERS.
12620
# This happens for instance with `./config.status Makefile'.
12621
if test -n "$CONFIG_HEADERS"; then
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12622
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12623
BEGIN {
12624
_ACEOF
12625
12626
# Transform confdefs.h into an awk script `defines.awk', embedded as
12627
# here-document in config.status, that substitutes the proper values into
12628
# config.h.in to produce config.h.
12629
12630
# Create a delimiter string that does not exist in confdefs.h, to ease
12631
# handling of long lines.
12632
ac_delim='%!_!# '
12633
for ac_last_try in false false :; do
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12634
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12635
  if test -z "$ac_tt"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12636
    break
12637
  elif $ac_last_try; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12638
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12639
  else
12640
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12641
  fi
12642
done
12643
12644
# For the awk script, D is an array of macro values keyed by name,
12645
# likewise P contains macro parameters if any.  Preserve backslash
12646
# newline sequences.
12647
12648
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12649
sed -n '
12650
s/.\{148\}/&'"$ac_delim"'/g
12651
t rset
12652
:rset
12653
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12654
t def
12655
d
12656
:def
12657
s/\\$//
12658
t bsnl
12659
s/["\\]/\\&/g
12660
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12661
D["\1"]=" \3"/p
12662
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12663
d
12664
:bsnl
12665
s/["\\]/\\&/g
12666
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12667
D["\1"]=" \3\\\\\\n"\\/p
12668
t cont
12669
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12670
t cont
12671
d
12672
:cont
12673
n
12674
s/.\{148\}/&'"$ac_delim"'/g
12675
t clear
12676
:clear
12677
s/\\$//
12678
t bsnlc
12679
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12680
d
12681
:bsnlc
12682
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12683
b cont
12684
' <confdefs.h | sed '
12685
s/'"$ac_delim"'/"\\\
12686
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12687
12688
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689
  for (key in D) D_is_set[key] = 1
12690
  FS = ""
12691
}
12692
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12693
  line = \$ 0
12694
  split(line, arg, " ")
12695
  if (arg[1] == "#") {
12696
    defundef = arg[2]
12697
    mac1 = arg[3]
12698
  } else {
12699
    defundef = substr(arg[1], 2)
12700
    mac1 = arg[2]
12701
  }
12702
  split(mac1, mac2, "(") #)
12703
  macro = mac2[1]
12704
  prefix = substr(line, 1, index(line, defundef) - 1)
12705
  if (D_is_set[macro]) {
12706
    # Preserve the white space surrounding the "#".
12707
    print prefix "define", macro P[macro] D[macro]
12708
    next
12709
  } else {
12710
    # Replace #undef with comments.  This is necessary, for example,
12711
    # in the case of _POSIX_SOURCE, which is predefined and required
12712
    # on some systems where configure will not decide to define it.
12713
    if (defundef == "undef") {
12714
      print "/*", prefix defundef, macro, "*/"
12715
      next
12716
    }
12717
  }
12718
}
12719
{ print }
12720
_ACAWK
12721
_ACEOF
12722
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12723
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12724
fi # test -n "$CONFIG_HEADERS"
12725
12726
12727
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12728
shift
12729
for ac_tag
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12730
do
12731
  case $ac_tag in
12732
  :[FHLC]) ac_mode=$ac_tag; continue;;
12733
  esac
12734
  case $ac_mode$ac_tag in
12735
  :[FHL]*:*);;
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12736
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12737
  :[FH]-) ac_tag=-:-;;
12738
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12739
  esac
12740
  ac_save_IFS=$IFS
12741
  IFS=:
12742
  set x $ac_tag
12743
  IFS=$ac_save_IFS
12744
  shift
12745
  ac_file=$1
12746
  shift
12747
12748
  case $ac_mode in
12749
  :L) ac_source=$1;;
12750
  :[FH])
12751
    ac_file_inputs=
12752
    for ac_f
12753
    do
12754
      case $ac_f in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12755
      -) ac_f="$ac_tmp/stdin";;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12756
      *) # Look for the file first in the build tree, then in the source tree
12757
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12758
	 # because $ac_f cannot contain `:'.
12759
	 test -f "$ac_f" ||
12760
	   case $ac_f in
12761
	   [\\/$]*) false;;
12762
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12763
	   esac ||
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12764
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12765
      esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12766
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12767
      as_fn_append ac_file_inputs " '$ac_f'"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12768
    done
12769
12770
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12771
    # use $as_me), people would be surprised to read:
12772
    #    /* config.h.  Generated by config.status.  */
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12773
    configure_input='Generated from '`
12774
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12775
	`' by configure.'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12776
    if test x"$ac_file" != x-; then
12777
      configure_input="$ac_file.  $configure_input"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12778
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12779
$as_echo "$as_me: creating $ac_file" >&6;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12780
    fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12781
    # Neutralize special characters interpreted by sed in replacement strings.
12782
    case $configure_input in #(
12783
    *\&* | *\|* | *\\* )
12784
       ac_sed_conf_input=`$as_echo "$configure_input" |
12785
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12786
    *) ac_sed_conf_input=$configure_input;;
12787
    esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12788
12789
    case $ac_tag in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12790
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12791
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12792
    esac
12793
    ;;
12794
  esac
12795
12796
  ac_dir=`$as_dirname -- "$ac_file" ||
1 by Joey Hess
* Joey Hess
12797
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798
	 X"$ac_file" : 'X\(//\)[^/]' \| \
12799
	 X"$ac_file" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12800
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12801
$as_echo X"$ac_file" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12802
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803
	    s//\1/
12804
	    q
12805
	  }
12806
	  /^X\(\/\/\)[^/].*/{
12807
	    s//\1/
12808
	    q
12809
	  }
12810
	  /^X\(\/\/\)$/{
12811
	    s//\1/
12812
	    q
12813
	  }
12814
	  /^X\(\/\).*/{
12815
	    s//\1/
12816
	    q
12817
	  }
12818
	  s/.*/./; q'`
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12819
  as_dir="$ac_dir"; as_fn_mkdir_p
1 by Joey Hess
* Joey Hess
12820
  ac_builddir=.
12821
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12822
case "$ac_dir" in
12823
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12824
*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12825
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12826
  # A ".." for each directory in $ac_dir_suffix.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12827
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12828
  case $ac_top_builddir_sub in
12829
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12830
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12831
  esac ;;
12832
esac
12833
ac_abs_top_builddir=$ac_pwd
12834
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12835
# for backward compatibility:
12836
ac_top_builddir=$ac_top_build_prefix
1 by Joey Hess
* Joey Hess
12837
12838
case $srcdir in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12839
  .)  # We are building in place.
1 by Joey Hess
* Joey Hess
12840
    ac_srcdir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12841
    ac_top_srcdir=$ac_top_builddir_sub
12842
    ac_abs_top_srcdir=$ac_pwd ;;
12843
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Joey Hess
* Joey Hess
12844
    ac_srcdir=$srcdir$ac_dir_suffix;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12845
    ac_top_srcdir=$srcdir
12846
    ac_abs_top_srcdir=$srcdir ;;
12847
  *) # Relative name.
12848
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12849
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12850
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12851
esac
12852
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12853
12854
12855
  case $ac_mode in
12856
  :F)
12857
  #
12858
  # CONFIG_FILE
12859
  #
1 by Joey Hess
* Joey Hess
12860
12861
  case $INSTALL in
12862
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12863
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1 by Joey Hess
* Joey Hess
12864
  esac
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
12865
  ac_MKDIR_P=$MKDIR_P
12866
  case $MKDIR_P in
12867
  [\\/$]* | ?:[\\/]* ) ;;
12868
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12869
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12870
_ACEOF
12871
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12872
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12873
# If the template does not know about datarootdir, expand it.
12874
# FIXME: This hack should be removed a few years after 2.60.
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12875
ac_datarootdir_hack=; ac_datarootdir_seen=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12876
ac_sed_dataroot='
12877
/datarootdir/ {
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12878
  p
12879
  q
12880
}
12881
/@datadir@/p
12882
/@docdir@/p
12883
/@infodir@/p
12884
/@localedir@/p
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12885
/@mandir@/p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12886
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12887
*datarootdir*) ac_datarootdir_seen=yes;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12888
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12889
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12890
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12891
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12892
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12893
  ac_datarootdir_hack='
12894
  s&@datadir@&$datadir&g
12895
  s&@docdir@&$docdir&g
12896
  s&@infodir@&$infodir&g
12897
  s&@localedir@&$localedir&g
12898
  s&@mandir@&$mandir&g
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12899
  s&\\\${datarootdir}&$datarootdir&g' ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12900
esac
12901
_ACEOF
12902
12903
# Neutralize VPATH when `$srcdir' = `.'.
12904
# Shell code in configure.ac might set extrasub.
12905
# FIXME: do we really want to maintain this feature?
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12906
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907
ac_sed_extra="$ac_vpsub
1 by Joey Hess
* Joey Hess
12908
$extrasub
12909
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12910
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
12911
:t
12912
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12913
s|@configure_input@|$ac_sed_conf_input|;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12914
s&@top_builddir@&$ac_top_builddir_sub&;t t
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12915
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12916
s&@srcdir@&$ac_srcdir&;t t
12917
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12918
s&@top_srcdir@&$ac_top_srcdir&;t t
12919
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12920
s&@builddir@&$ac_builddir&;t t
12921
s&@abs_builddir@&$ac_abs_builddir&;t t
12922
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12923
s&@INSTALL@&$ac_INSTALL&;t t
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
12924
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12925
$ac_datarootdir_hack
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12926
"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12927
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12928
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12929
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12930
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12931
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12932
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12933
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12934
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12935
which seems to be undefined.  Please make sure it is defined" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12936
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12937
which seems to be undefined.  Please make sure it is defined" >&2;}
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12938
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12939
  rm -f "$ac_tmp/stdin"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12940
  case $ac_file in
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12941
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12942
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12943
  esac \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12944
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12945
 ;;
12946
  :H)
12947
  #
12948
  # CONFIG_HEADER
12949
  #
1 by Joey Hess
* Joey Hess
12950
  if test x"$ac_file" != x-; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12951
    {
12952
      $as_echo "/* $configure_input  */" \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12953
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12954
    } >"$ac_tmp/config.h" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12955
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12956
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12957
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12958
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1 by Joey Hess
* Joey Hess
12959
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12960
      rm -f "$ac_file"
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12961
      mv "$ac_tmp/config.h" "$ac_file" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12962
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12963
    fi
12964
  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12965
    $as_echo "/* $configure_input  */" \
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
12966
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12967
      || as_fn_error $? "could not create -" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12968
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12969
# Compute "$ac_file"'s index in $config_headers.
12970
_am_arg="$ac_file"
1 by Joey Hess
* Joey Hess
12971
_am_stamp_count=1
12972
for _am_header in $config_headers :; do
12973
  case $_am_header in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
12974
    $_am_arg | $_am_arg:* )
1 by Joey Hess
* Joey Hess
12975
      break ;;
12976
    * )
12977
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12978
  esac
12979
done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
12980
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12981
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12982
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12983
	 X"$_am_arg" : 'X\(//\)$' \| \
12984
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12985
$as_echo X"$_am_arg" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12986
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12987
	    s//\1/
12988
	    q
12989
	  }
12990
	  /^X\(\/\/\)[^/].*/{
12991
	    s//\1/
12992
	    q
12993
	  }
12994
	  /^X\(\/\/\)$/{
12995
	    s//\1/
12996
	    q
12997
	  }
12998
	  /^X\(\/\).*/{
12999
	    s//\1/
13000
	    q
13001
	  }
13002
	  s/.*/./; q'`/stamp-h$_am_stamp_count
13003
 ;;
13004
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
13005
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13006
$as_echo "$as_me: executing $ac_file commands" >&6;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13007
 ;;
13008
  esac
13009
13010
13011
  case $ac_file$ac_mode in
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
13012
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13013
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13014
  # are listed without --file.  Let's play safe and only enable the eval
13015
  # if we detect the quoting.
13016
  case $CONFIG_FILES in
13017
  *\'*) eval set x "$CONFIG_FILES" ;;
13018
  *)   set x $CONFIG_FILES ;;
13019
  esac
13020
  shift
13021
  for mf
13022
  do
13023
    # Strip MF so we end up with the name of the file.
13024
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13025
    # Check whether this is an Automake generated Makefile or not.
13026
    # We used to match only the files named `Makefile.in', but
13027
    # some people rename them; so instead we look at the file content.
13028
    # Grep'ing the first line is not enough: some people post-process
13029
    # each Makefile.in and add a new line on top of each file to say so.
13030
    # Grep'ing the whole file is not good either: AIX grep has a line
13031
    # limit of 2048, but all sed's we know have understand at least 4000.
13032
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13033
      dirpart=`$as_dirname -- "$mf" ||
1 by Joey Hess
* Joey Hess
13034
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13035
	 X"$mf" : 'X\(//\)[^/]' \| \
13036
	 X"$mf" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13037
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13038
$as_echo X"$mf" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13039
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13040
	    s//\1/
13041
	    q
13042
	  }
13043
	  /^X\(\/\/\)[^/].*/{
13044
	    s//\1/
13045
	    q
13046
	  }
13047
	  /^X\(\/\/\)$/{
13048
	    s//\1/
13049
	    q
13050
	  }
13051
	  /^X\(\/\).*/{
13052
	    s//\1/
13053
	    q
13054
	  }
13055
	  s/.*/./; q'`
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
13056
    else
13057
      continue
13058
    fi
13059
    # Extract the definition of DEPDIR, am__include, and am__quote
13060
    # from the Makefile without running `make'.
13061
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13062
    test -z "$DEPDIR" && continue
13063
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13064
    test -z "am__include" && continue
13065
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13066
    # When using ansi2knr, U may be empty or an underscore; expand it
13067
    U=`sed -n 's/^U = //p' < "$mf"`
13068
    # Find all dependency output files, they are included files with
13069
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13070
    # simplest approach to changing $(DEPDIR) to its actual value in the
13071
    # expansion.
13072
    for file in `sed -n "
13073
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13074
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13075
      # Make sure the directory exists.
13076
      test -f "$dirpart/$file" && continue
13077
      fdir=`$as_dirname -- "$file" ||
1 by Joey Hess
* Joey Hess
13078
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13079
	 X"$file" : 'X\(//\)[^/]' \| \
13080
	 X"$file" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13081
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13082
$as_echo X"$file" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13083
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13084
	    s//\1/
13085
	    q
13086
	  }
13087
	  /^X\(\/\/\)[^/].*/{
13088
	    s//\1/
13089
	    q
13090
	  }
13091
	  /^X\(\/\/\)$/{
13092
	    s//\1/
13093
	    q
13094
	  }
13095
	  /^X\(\/\).*/{
13096
	    s//\1/
13097
	    q
13098
	  }
13099
	  s/.*/./; q'`
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
13100
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13101
      # echo "creating $dirpart/$file"
13102
      echo '# dummy' > "$dirpart/$file"
13103
    done
1 by Joey Hess
* Joey Hess
13104
  done
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
13105
}
1 by Joey Hess
* Joey Hess
13106
 ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13107
    "libtool":C)
13108
13109
    # See if we are running on zsh, and set the options which allow our
13110
    # commands through without removal of \ escapes.
13111
    if test -n "${ZSH_VERSION+set}" ; then
13112
      setopt NO_GLOB_SUBST
13113
    fi
13114
13115
    cfgfile="${ofile}T"
13116
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13117
    $RM "$cfgfile"
13118
13119
    cat <<_LT_EOF >> "$cfgfile"
13120
#! $SHELL
13121
13122
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13123
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13124
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13125
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13126
#
13127
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13128
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13129
#                 Inc.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13130
#   Written by Gordon Matzigkeit, 1996
13131
#
13132
#   This file is part of GNU Libtool.
13133
#
13134
# GNU Libtool is free software; you can redistribute it and/or
13135
# modify it under the terms of the GNU General Public License as
13136
# published by the Free Software Foundation; either version 2 of
13137
# the License, or (at your option) any later version.
13138
#
13139
# As a special exception to the GNU General Public License,
13140
# if you distribute this file as part of a program or library that
13141
# is built using GNU Libtool, you may include this file under the
13142
# same distribution terms that you use for the rest of that program.
13143
#
13144
# GNU Libtool is distributed in the hope that it will be useful,
13145
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13146
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13147
# GNU General Public License for more details.
13148
#
13149
# You should have received a copy of the GNU General Public License
13150
# along with GNU Libtool; see the file COPYING.  If not, a copy
13151
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13152
# obtained by writing to the Free Software Foundation, Inc.,
13153
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13154
13155
13156
# The names of the tagged configurations supported by this script.
13157
available_tags=""
13158
13159
# ### BEGIN LIBTOOL CONFIG
13160
13161
# Which release of libtool.m4 was used?
13162
macro_version=$macro_version
13163
macro_revision=$macro_revision
13164
13165
# Whether or not to build shared libraries.
13166
build_libtool_libs=$enable_shared
13167
13168
# Whether or not to build static libraries.
13169
build_old_libs=$enable_static
13170
13171
# What type of objects to build.
13172
pic_mode=$pic_mode
13173
13174
# Whether or not to optimize for fast installation.
13175
fast_install=$enable_fast_install
13176
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13177
# Shell to use when invoking shell scripts.
13178
SHELL=$lt_SHELL
13179
13180
# An echo program that protects backslashes.
13181
ECHO=$lt_ECHO
13182
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13183
# The host system.
13184
host_alias=$host_alias
13185
host=$host
13186
host_os=$host_os
13187
13188
# The build system.
13189
build_alias=$build_alias
13190
build=$build
13191
build_os=$build_os
13192
13193
# A sed program that does not truncate output.
13194
SED=$lt_SED
13195
13196
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13197
Xsed="\$SED -e 1s/^X//"
13198
13199
# A grep program that handles long lines.
13200
GREP=$lt_GREP
13201
13202
# An ERE matcher.
13203
EGREP=$lt_EGREP
13204
13205
# A literal string matcher.
13206
FGREP=$lt_FGREP
13207
13208
# A BSD- or MS-compatible name lister.
13209
NM=$lt_NM
13210
13211
# Whether we need soft or hard links.
13212
LN_S=$lt_LN_S
13213
13214
# What is the maximum length of a command?
13215
max_cmd_len=$max_cmd_len
13216
13217
# Object file suffix (normally "o").
13218
objext=$ac_objext
13219
13220
# Executable file suffix (normally "").
13221
exeext=$exeext
13222
13223
# whether the shell understands "unset".
13224
lt_unset=$lt_unset
13225
13226
# turn spaces into newlines.
13227
SP2NL=$lt_lt_SP2NL
13228
13229
# turn newlines into spaces.
13230
NL2SP=$lt_lt_NL2SP
13231
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13232
# convert \$build file names to \$host format.
13233
to_host_file_cmd=$lt_cv_to_host_file_cmd
13234
13235
# convert \$build files to toolchain format.
13236
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13237
13238
# An object symbol dumper.
13239
OBJDUMP=$lt_OBJDUMP
13240
13241
# Method to check whether dependent libraries are shared objects.
13242
deplibs_check_method=$lt_deplibs_check_method
13243
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13244
# Command to use when deplibs_check_method = "file_magic".
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13245
file_magic_cmd=$lt_file_magic_cmd
13246
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13247
# How to find potential files when deplibs_check_method = "file_magic".
13248
file_magic_glob=$lt_file_magic_glob
13249
13250
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13251
want_nocaseglob=$lt_want_nocaseglob
13252
13253
# DLL creation program.
13254
DLLTOOL=$lt_DLLTOOL
13255
13256
# Command to associate shared and link libraries.
13257
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13258
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13259
# The archiver.
13260
AR=$lt_AR
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13261
13262
# Flags to create an archive.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13263
AR_FLAGS=$lt_AR_FLAGS
13264
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13265
# How to feed a file listing to the archiver.
13266
archiver_list_spec=$lt_archiver_list_spec
13267
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13268
# A symbol stripping program.
13269
STRIP=$lt_STRIP
13270
13271
# Commands used to install an old-style archive.
13272
RANLIB=$lt_RANLIB
13273
old_postinstall_cmds=$lt_old_postinstall_cmds
13274
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13275
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13276
# Whether to use a lock for old archive extraction.
13277
lock_old_archive_extraction=$lock_old_archive_extraction
13278
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13279
# A C compiler.
13280
LTCC=$lt_CC
13281
13282
# LTCC compiler flags.
13283
LTCFLAGS=$lt_CFLAGS
13284
13285
# Take the output of nm and produce a listing of raw symbols and C names.
13286
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13287
13288
# Transform the output of nm in a proper C declaration.
13289
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13290
13291
# Transform the output of nm in a C name address pair.
13292
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13293
13294
# Transform the output of nm in a C name address pair when lib prefix is needed.
13295
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13296
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13297
# Specify filename containing input files for \$NM.
13298
nm_file_list_spec=$lt_nm_file_list_spec
13299
13300
# The root where to search for dependent libraries,and in which our libraries should be installed.
13301
lt_sysroot=$lt_sysroot
13302
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13303
# The name of the directory that contains temporary libtool files.
13304
objdir=$objdir
13305
13306
# Used to examine libraries when file_magic_cmd begins with "file".
13307
MAGIC_CMD=$MAGIC_CMD
13308
13309
# Must we lock files when doing compilation?
13310
need_locks=$lt_need_locks
13311
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13312
# Manifest tool.
13313
MANIFEST_TOOL=$lt_MANIFEST_TOOL
13314
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13315
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13316
DSYMUTIL=$lt_DSYMUTIL
13317
13318
# Tool to change global to local symbols on Mac OS X.
13319
NMEDIT=$lt_NMEDIT
13320
13321
# Tool to manipulate fat objects and archives on Mac OS X.
13322
LIPO=$lt_LIPO
13323
13324
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13325
OTOOL=$lt_OTOOL
13326
13327
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13328
OTOOL64=$lt_OTOOL64
13329
13330
# Old archive suffix (normally "a").
13331
libext=$libext
13332
13333
# Shared library suffix (normally ".so").
13334
shrext_cmds=$lt_shrext_cmds
13335
13336
# The commands to extract the exported symbol list from a shared archive.
13337
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13338
13339
# Variables whose values should be saved in libtool wrapper scripts and
13340
# restored at link time.
13341
variables_saved_for_relink=$lt_variables_saved_for_relink
13342
13343
# Do we need the "lib" prefix for modules?
13344
need_lib_prefix=$need_lib_prefix
13345
13346
# Do we need a version for libraries?
13347
need_version=$need_version
13348
13349
# Library versioning type.
13350
version_type=$version_type
13351
13352
# Shared library runtime path variable.
13353
runpath_var=$runpath_var
13354
13355
# Shared library path variable.
13356
shlibpath_var=$shlibpath_var
13357
13358
# Is shlibpath searched before the hard-coded library search path?
13359
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13360
13361
# Format of library name prefix.
13362
libname_spec=$lt_libname_spec
13363
13364
# List of archive names.  First name is the real one, the rest are links.
13365
# The last name is the one that the linker finds with -lNAME
13366
library_names_spec=$lt_library_names_spec
13367
13368
# The coded name of the library, if different from the real name.
13369
soname_spec=$lt_soname_spec
13370
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13371
# Permission mode override for installation of shared libraries.
13372
install_override_mode=$lt_install_override_mode
13373
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13374
# Command to use after installation of a shared archive.
13375
postinstall_cmds=$lt_postinstall_cmds
13376
13377
# Command to use after uninstallation of a shared archive.
13378
postuninstall_cmds=$lt_postuninstall_cmds
13379
13380
# Commands used to finish a libtool library installation in a directory.
13381
finish_cmds=$lt_finish_cmds
13382
13383
# As "finish_cmds", except a single script fragment to be evaled but
13384
# not shown.
13385
finish_eval=$lt_finish_eval
13386
13387
# Whether we should hardcode library paths into libraries.
13388
hardcode_into_libs=$hardcode_into_libs
13389
13390
# Compile-time system search path for libraries.
13391
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13392
13393
# Run-time system search path for libraries.
13394
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13395
13396
# Whether dlopen is supported.
13397
dlopen_support=$enable_dlopen
13398
13399
# Whether dlopen of programs is supported.
13400
dlopen_self=$enable_dlopen_self
13401
13402
# Whether dlopen of statically linked programs is supported.
13403
dlopen_self_static=$enable_dlopen_self_static
13404
13405
# Commands to strip libraries.
13406
old_striplib=$lt_old_striplib
13407
striplib=$lt_striplib
13408
13409
13410
# The linker used to build libraries.
13411
LD=$lt_LD
13412
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13413
# How to create reloadable object files.
13414
reload_flag=$lt_reload_flag
13415
reload_cmds=$lt_reload_cmds
13416
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13417
# Commands used to build an old-style archive.
13418
old_archive_cmds=$lt_old_archive_cmds
13419
13420
# A language specific compiler.
13421
CC=$lt_compiler
13422
13423
# Is the compiler the GNU compiler?
13424
with_gcc=$GCC
13425
13426
# Compiler flag to turn off builtin functions.
13427
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13428
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13429
# Additional compiler flags for building library objects.
13430
pic_flag=$lt_lt_prog_compiler_pic
13431
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13432
# How to pass a linker flag through the compiler.
13433
wl=$lt_lt_prog_compiler_wl
13434
13435
# Compiler flag to prevent dynamic linking.
13436
link_static_flag=$lt_lt_prog_compiler_static
13437
13438
# Does compiler simultaneously support -c and -o options?
13439
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13440
13441
# Whether or not to add -lc for building shared libraries.
13442
build_libtool_need_lc=$archive_cmds_need_lc
13443
13444
# Whether or not to disallow shared libs when runtime libs are static.
13445
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13446
13447
# Compiler flag to allow reflexive dlopens.
13448
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13449
13450
# Compiler flag to generate shared objects directly from archives.
13451
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13452
13453
# Whether the compiler copes with passing no objects directly.
13454
compiler_needs_object=$lt_compiler_needs_object
13455
13456
# Create an old-style archive from a shared archive.
13457
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13458
13459
# Create a temporary old-style archive to link instead of a shared archive.
13460
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13461
13462
# Commands used to build a shared archive.
13463
archive_cmds=$lt_archive_cmds
13464
archive_expsym_cmds=$lt_archive_expsym_cmds
13465
13466
# Commands used to build a loadable module if different from building
13467
# a shared archive.
13468
module_cmds=$lt_module_cmds
13469
module_expsym_cmds=$lt_module_expsym_cmds
13470
13471
# Whether we are building with GNU ld or not.
13472
with_gnu_ld=$lt_with_gnu_ld
13473
13474
# Flag that allows shared libraries with undefined symbols to be built.
13475
allow_undefined_flag=$lt_allow_undefined_flag
13476
13477
# Flag that enforces no undefined symbols.
13478
no_undefined_flag=$lt_no_undefined_flag
13479
13480
# Flag to hardcode \$libdir into a binary during linking.
13481
# This must work even if \$libdir does not exist
13482
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13483
13484
# If ld is used when linking, flag to hardcode \$libdir into a binary
13485
# during linking.  This must work even if \$libdir does not exist.
13486
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13487
13488
# Whether we need a single "-rpath" flag with a separated argument.
13489
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13490
13491
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13492
# DIR into the resulting binary.
13493
hardcode_direct=$hardcode_direct
13494
13495
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13496
# DIR into the resulting binary and the resulting library dependency is
13497
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13498
# library is relocated.
13499
hardcode_direct_absolute=$hardcode_direct_absolute
13500
13501
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13502
# into the resulting binary.
13503
hardcode_minus_L=$hardcode_minus_L
13504
13505
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13506
# into the resulting binary.
13507
hardcode_shlibpath_var=$hardcode_shlibpath_var
13508
13509
# Set to "yes" if building a shared library automatically hardcodes DIR
13510
# into the library and all subsequent libraries and executables linked
13511
# against it.
13512
hardcode_automatic=$hardcode_automatic
13513
13514
# Set to yes if linker adds runtime paths of dependent libraries
13515
# to runtime path list.
13516
inherit_rpath=$inherit_rpath
13517
13518
# Whether libtool must link a program against all its dependency libraries.
13519
link_all_deplibs=$link_all_deplibs
13520
13521
# Set to "yes" if exported symbols are required.
13522
always_export_symbols=$always_export_symbols
13523
13524
# The commands to list exported symbols.
13525
export_symbols_cmds=$lt_export_symbols_cmds
13526
13527
# Symbols that should not be listed in the preloaded symbols.
13528
exclude_expsyms=$lt_exclude_expsyms
13529
13530
# Symbols that must always be exported.
13531
include_expsyms=$lt_include_expsyms
13532
13533
# Commands necessary for linking programs (against libraries) with templates.
13534
prelink_cmds=$lt_prelink_cmds
13535
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13536
# Commands necessary for finishing linking programs.
13537
postlink_cmds=$lt_postlink_cmds
13538
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13539
# Specify filename containing input files.
13540
file_list_spec=$lt_file_list_spec
13541
13542
# How to hardcode a shared library path into an executable.
13543
hardcode_action=$hardcode_action
13544
13545
# ### END LIBTOOL CONFIG
13546
13547
_LT_EOF
13548
13549
  case $host_os in
13550
  aix3*)
13551
    cat <<\_LT_EOF >> "$cfgfile"
13552
# AIX sometimes has problems with the GCC collect2 program.  For some
13553
# reason, if we set the COLLECT_NAMES environment variable, the problems
13554
# vanish in a puff of smoke.
13555
if test "X${COLLECT_NAMES+set}" != Xset; then
13556
  COLLECT_NAMES=
13557
  export COLLECT_NAMES
13558
fi
13559
_LT_EOF
13560
    ;;
13561
  esac
13562
13563
13564
ltmain="$ac_aux_dir/ltmain.sh"
13565
13566
13567
  # We use sed instead of cat because bash on DJGPP gets confused if
13568
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13569
  # text mode, it properly converts lines to CR/LF.  This bash problem
13570
  # is reportedly fixed, but why not run on old versions too?
8.2.13 by Otavio Salvador, Hector Oron, Sebastian Reichel, Luk Claes, Otavio Salvador
[ Hector Oron ]
13571
  sed '$q' "$ltmain" >> "$cfgfile" \
13572
     || (rm -f "$cfgfile"; exit 1)
13573
13574
  if test x"$xsi_shell" = xyes; then
13575
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13576
func_dirname ()\
13577
{\
13578
\    case ${1} in\
13579
\      */*) func_dirname_result="${1%/*}${2}" ;;\
13580
\      *  ) func_dirname_result="${3}" ;;\
13581
\    esac\
13582
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13583
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13584
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13585
test 0 -eq $? || _lt_function_replace_fail=:
13586
13587
13588
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
13589
func_basename ()\
13590
{\
13591
\    func_basename_result="${1##*/}"\
13592
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13593
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13594
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13595
test 0 -eq $? || _lt_function_replace_fail=:
13596
13597
13598
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13599
func_dirname_and_basename ()\
13600
{\
13601
\    case ${1} in\
13602
\      */*) func_dirname_result="${1%/*}${2}" ;;\
13603
\      *  ) func_dirname_result="${3}" ;;\
13604
\    esac\
13605
\    func_basename_result="${1##*/}"\
13606
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13607
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13608
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13609
test 0 -eq $? || _lt_function_replace_fail=:
13610
13611
13612
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13613
func_stripname ()\
13614
{\
13615
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13616
\    # positional parameters, so assign one to ordinary parameter first.\
13617
\    func_stripname_result=${3}\
13618
\    func_stripname_result=${func_stripname_result#"${1}"}\
13619
\    func_stripname_result=${func_stripname_result%"${2}"}\
13620
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13621
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13622
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13623
test 0 -eq $? || _lt_function_replace_fail=:
13624
13625
13626
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13627
func_split_long_opt ()\
13628
{\
13629
\    func_split_long_opt_name=${1%%=*}\
13630
\    func_split_long_opt_arg=${1#*=}\
13631
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13632
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13633
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13634
test 0 -eq $? || _lt_function_replace_fail=:
13635
13636
13637
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13638
func_split_short_opt ()\
13639
{\
13640
\    func_split_short_opt_arg=${1#??}\
13641
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13642
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13643
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13644
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13645
test 0 -eq $? || _lt_function_replace_fail=:
13646
13647
13648
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13649
func_lo2o ()\
13650
{\
13651
\    case ${1} in\
13652
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13653
\      *)    func_lo2o_result=${1} ;;\
13654
\    esac\
13655
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13656
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13657
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13658
test 0 -eq $? || _lt_function_replace_fail=:
13659
13660
13661
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
13662
func_xform ()\
13663
{\
13664
    func_xform_result=${1%.*}.lo\
13665
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13666
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13667
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13668
test 0 -eq $? || _lt_function_replace_fail=:
13669
13670
13671
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
13672
func_arith ()\
13673
{\
13674
    func_arith_result=$(( $* ))\
13675
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13676
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13677
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13678
test 0 -eq $? || _lt_function_replace_fail=:
13679
13680
13681
  sed -e '/^func_len ()$/,/^} # func_len /c\
13682
func_len ()\
13683
{\
13684
    func_len_result=${#1}\
13685
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13686
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13687
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13688
test 0 -eq $? || _lt_function_replace_fail=:
13689
13690
fi
13691
13692
if test x"$lt_shell_append" = xyes; then
13693
  sed -e '/^func_append ()$/,/^} # func_append /c\
13694
func_append ()\
13695
{\
13696
    eval "${1}+=\\${2}"\
13697
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13698
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13699
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13700
test 0 -eq $? || _lt_function_replace_fail=:
13701
13702
13703
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13704
func_append_quoted ()\
13705
{\
13706
\    func_quote_for_eval "${2}"\
13707
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13708
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13709
  && mv -f "$cfgfile.tmp" "$cfgfile" \
13710
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13711
test 0 -eq $? || _lt_function_replace_fail=:
13712
13713
13714
  # Save a `func_append' function call where possible by direct use of '+='
13715
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13716
    && mv -f "$cfgfile.tmp" "$cfgfile" \
13717
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13718
  test 0 -eq $? || _lt_function_replace_fail=:
13719
else
13720
  # Save a `func_append' function call even when '+=' is not available
13721
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13722
    && mv -f "$cfgfile.tmp" "$cfgfile" \
13723
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13724
  test 0 -eq $? || _lt_function_replace_fail=:
13725
fi
13726
13727
if test x"$_lt_function_replace_fail" = x":"; then
13728
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13729
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13730
fi
13731
13732
13733
   mv -f "$cfgfile" "$ofile" ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13734
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13735
  chmod +x "$ofile"
13736
13737
 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13738
1 by Joey Hess
* Joey Hess
13739
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
13740
done # for ac_tag
1 by Joey Hess
* Joey Hess
13741
13742
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
13743
as_fn_exit 0
1 by Joey Hess
* Joey Hess
13744
_ACEOF
13745
ac_clean_files=$ac_clean_files_save
13746
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13747
test $ac_write_fail = 0 ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
13748
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13749
1 by Joey Hess
* Joey Hess
13750
13751
# configure is writing to config.log, and then calls config.status.
13752
# config.status does its own redirection, appending to config.log.
13753
# Unfortunately, on DOS this fails, as config.log is still kept open
13754
# by configure, so config.status won't be able to write to it; its
13755
# output is simply discarded.  So we exec the FD to /dev/null,
13756
# effectively closing config.log, so it can be properly (re)opened and
13757
# appended to by config.status.  When coming back to configure, we
13758
# need to make the FD available again.
13759
if test "$no_create" != yes; then
13760
  ac_cs_success=:
13761
  ac_config_status_args=
13762
  test "$silent" = yes &&
13763
    ac_config_status_args="$ac_config_status_args --quiet"
13764
  exec 5>/dev/null
13765
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13766
  exec 5>>config.log
13767
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13768
  # would make configure fail if this is the last instruction.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
13769
  $ac_cs_success || as_fn_exit 1
1 by Joey Hess
* Joey Hess
13770
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13771
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
13772
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
13773
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13774
fi
1 by Joey Hess
* Joey Hess
13775