~gilir/+junk/ubiquity-lxdm-autologin

1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
3
# Generated by GNU Autoconf 2.65 for ubiquity 2.4.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
4
#
82 by Colin Watson, Colin Watson, Jonathan Riddell
[ Colin Watson ]
5
# Report bugs to <https://launchpad.net/ubuntu/+source/ubiquity/+filebug>.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
6
#
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7
#
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
# Inc.
11
#
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12
#
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
18
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
22
  emulate sh
23
  NULLCMD=:
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
27
  setopt NO_GLOB_SUBST
28
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
29
  case `(set -o) 2>/dev/null` in #(
30
  *posix*) :
31
    set -o posix ;; #(
32
  *) :
33
     ;;
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
34
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
35
fi
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
36
37
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
38
as_nl='
39
'
40
export as_nl
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
  as_echo='print -r --'
50
  as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
52
  as_echo='printf %s\n'
53
  as_echo_n='printf %s'
54
else
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
    as_echo_n='/usr/ucb/echo -n'
58
  else
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
    as_echo_n_body='eval
61
      arg=$1;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
62
      case $arg in #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
63
      *"$as_nl"*)
64
	expr "X$arg" : "X\\(.*\\)$as_nl";
65
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
      esac;
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
    '
69
    export as_echo_n_body
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
  fi
72
  export as_echo_body
73
  as_echo='sh -c $as_echo_body as_echo'
74
fi
75
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
78
  PATH_SEPARATOR=:
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
      PATH_SEPARATOR=';'
82
  }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
83
fi
84
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
85
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
86
# IFS
87
# We need space, tab and new line, in precisely that order.  Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
91
IFS=" ""	$as_nl"
92
93
# Find who we are.  Look in the path if we contain no directory separator.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
94
case $0 in #((
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
95
  *[\\/]* ) as_myself=$0 ;;
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
for as_dir in $PATH
98
do
99
  IFS=$as_save_IFS
100
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
103
IFS=$as_save_IFS
104
105
     ;;
106
esac
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
110
  as_myself=$0
111
fi
112
if test ! -f "$as_myself"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
114
  exit 1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
115
fi
116
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there.  '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
124
done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
125
PS1='$ '
126
PS2='> '
127
PS4='+ '
128
129
# NLS nuisances.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
130
LC_ALL=C
131
export LC_ALL
132
LANGUAGE=C
133
export LANGUAGE
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
134
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
135
# CDPATH.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
137
138
if test "x$CONFIG_SHELL" = x; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
  emulate sh
141
  NULLCMD=:
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
  # is contrary to our usage.  Disable this feature.
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
  setopt NO_GLOB_SUBST
146
else
147
  case \`(set -o) 2>/dev/null\` in #(
148
  *posix*) :
149
    set -o posix ;; #(
150
  *) :
151
     ;;
152
esac
153
fi
154
"
155
  as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
160
161
exitcode=0
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168
else
169
  exitcode=1; echo positional parameters were not saved.
170
fi
171
test x\$exitcode = x0 || exit 1"
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
177
  if (eval "$as_required") 2>/dev/null; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
178
  as_have_required=yes
179
else
180
  as_have_required=no
181
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184
else
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
as_found=false
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
188
do
189
  IFS=$as_save_IFS
190
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
191
  as_found=:
192
  case $as_dir in #(
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
193
	 /*)
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
194
	   for as_base in sh bash ksh sh5; do
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
195
	     # Try only shells that exist, to save several forks.
196
	     as_shell=$as_dir/$as_base
197
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  CONFIG_SHELL=$as_shell as_have_required=yes
200
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
  break 2
202
fi
203
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
204
	   done;;
205
       esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
206
  as_found=false
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
207
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
  CONFIG_SHELL=$SHELL as_have_required=yes
211
fi; }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
212
IFS=$as_save_IFS
213
214
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
215
      if test "x$CONFIG_SHELL" != x; then :
216
  # We cannot yet assume a decent shell, so we have to provide a
217
	# neutralization value for shells without unset; and this also
218
	# works around shells that cannot unset nonexistent variables.
219
	BASH_ENV=/dev/null
220
	ENV=/dev/null
221
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
222
	export CONFIG_SHELL
223
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
224
fi
225
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
226
    if test x$as_have_required = xno; then :
227
  $as_echo "$0: This script requires a shell more modern than all"
228
  $as_echo "$0: the shells that I found on your system."
229
  if test x${ZSH_VERSION+set} = xset ; then
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
  else
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: https://launchpad.net/ubuntu/+source/ubiquity/+filebug
235
$0: about your system, including any error possibly output
236
$0: before this message. Then install a modern shell, or
237
$0: manually run the script under such a shell if you do
238
$0: have one."
239
  fi
240
  exit 1
241
fi
242
fi
243
fi
244
SHELL=${CONFIG_SHELL-/bin/sh}
245
export SHELL
246
# Unset more variables known to interfere with behavior of common tools.
247
CLICOLOR_FORCE= GREP_OPTIONS=
248
unset CLICOLOR_FORCE GREP_OPTIONS
249
250
## --------------------- ##
251
## M4sh Shell Functions. ##
252
## --------------------- ##
253
# as_fn_unset VAR
254
# ---------------
255
# Portably unset VAR.
256
as_fn_unset ()
257
{
258
  { eval $1=; unset $1;}
259
}
260
as_unset=as_fn_unset
261
262
# as_fn_set_status STATUS
263
# -----------------------
264
# Set $? to STATUS, without forking.
265
as_fn_set_status ()
266
{
267
  return $1
268
} # as_fn_set_status
269
270
# as_fn_exit STATUS
271
# -----------------
272
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273
as_fn_exit ()
274
{
275
  set +e
276
  as_fn_set_status $1
277
  exit $1
278
} # as_fn_exit
279
280
# as_fn_mkdir_p
281
# -------------
282
# Create "$as_dir" as a directory, including parents if necessary.
283
as_fn_mkdir_p ()
284
{
285
286
  case $as_dir in #(
287
  -*) as_dir=./$as_dir;;
288
  esac
289
  test -d "$as_dir" || eval $as_mkdir_p || {
290
    as_dirs=
291
    while :; do
292
      case $as_dir in #(
293
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294
      *) as_qdir=$as_dir;;
295
      esac
296
      as_dirs="'$as_qdir' $as_dirs"
297
      as_dir=`$as_dirname -- "$as_dir" ||
298
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299
	 X"$as_dir" : 'X\(//\)[^/]' \| \
300
	 X"$as_dir" : 'X\(//\)$' \| \
301
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302
$as_echo X"$as_dir" |
303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304
	    s//\1/
305
	    q
306
	  }
307
	  /^X\(\/\/\)[^/].*/{
308
	    s//\1/
309
	    q
310
	  }
311
	  /^X\(\/\/\)$/{
312
	    s//\1/
313
	    q
314
	  }
315
	  /^X\(\/\).*/{
316
	    s//\1/
317
	    q
318
	  }
319
	  s/.*/./; q'`
320
      test -d "$as_dir" && break
321
    done
322
    test -z "$as_dirs" || eval "mkdir $as_dirs"
323
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326
} # as_fn_mkdir_p
327
# as_fn_append VAR VALUE
328
# ----------------------
329
# Append the text in VALUE to the end of the definition contained in VAR. Take
330
# advantage of any shell optimizations that allow amortized linear growth over
331
# repeated appends, instead of the typical quadratic growth present in naive
332
# implementations.
333
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334
  eval 'as_fn_append ()
335
  {
336
    eval $1+=\$2
337
  }'
338
else
339
  as_fn_append ()
340
  {
341
    eval $1=\$$1\$2
342
  }
343
fi # as_fn_append
344
345
# as_fn_arith ARG...
346
# ------------------
347
# Perform arithmetic evaluation on the ARGs, and store the result in the
348
# global $as_val. Take advantage of shells that can avoid forks. The arguments
349
# must be portable across $(()) and expr.
350
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351
  eval 'as_fn_arith ()
352
  {
353
    as_val=$(( $* ))
354
  }'
355
else
356
  as_fn_arith ()
357
  {
358
    as_val=`expr "$@" || test $? -eq 1`
359
  }
360
fi # as_fn_arith
361
362
363
# as_fn_error ERROR [LINENO LOG_FD]
364
# ---------------------------------
365
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367
# script with status $?, using 1 if that was 0.
368
as_fn_error ()
369
{
370
  as_status=$?; test $as_status -eq 0 && as_status=1
371
  if test "$3"; then
372
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
  fi
375
  $as_echo "$as_me: error: $1" >&2
376
  as_fn_exit $as_status
377
} # as_fn_error
378
379
if expr a : '\(a\)' >/dev/null 2>&1 &&
380
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381
  as_expr=expr
382
else
383
  as_expr=false
384
fi
385
386
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387
  as_basename=basename
388
else
389
  as_basename=false
390
fi
391
392
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393
  as_dirname=dirname
394
else
395
  as_dirname=false
396
fi
397
398
as_me=`$as_basename -- "$0" ||
399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400
	 X"$0" : 'X\(//\)$' \| \
401
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
$as_echo X/"$0" |
403
    sed '/^.*\/\([^/][^/]*\)\/*$/{
404
	    s//\1/
405
	    q
406
	  }
407
	  /^X\/\(\/\/\)$/{
408
	    s//\1/
409
	    q
410
	  }
411
	  /^X\/\(\/\).*/{
412
	    s//\1/
413
	    q
414
	  }
415
	  s/.*/./; q'`
416
417
# Avoid depending upon Character Ranges.
418
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421
as_cr_digits='0123456789'
422
as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
430
  sed -n '
431
    p
432
    /[$]LINENO/=
433
  ' <$as_myself |
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
434
    sed '
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
435
      s/[$]LINENO.*/&-/
436
      t lineno
437
      b
438
      :lineno
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
439
      N
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
440
      :loop
441
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
442
      t loop
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
443
      s/-\n.*//
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
444
    ' >$as_me.lineno &&
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
445
  chmod +x "$as_me.lineno" ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
446
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
447
448
  # Don't try to exec as it changes $[0], causing all sort of problems
449
  # (the dirname of $[0] is not the place where we might find the
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
450
  # original and so on.  Autoconf is especially sensitive to this).
451
  . "./$as_me.lineno"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
452
  # Exit status is that of the last command.
453
  exit
454
}
455
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
456
ECHO_C= ECHO_N= ECHO_T=
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
457
case `echo -n x` in #(((((
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
458
-n*)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
459
  case `echo 'xy\c'` in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
460
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
461
  xy)  ECHO_C='\c';;
462
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463
       ECHO_T='	';;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
464
  esac;;
465
*)
466
  ECHO_N='-n';;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
467
esac
468
469
rm -f conf$$ conf$$.exe conf$$.file
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
470
if test -d conf$$.dir; then
471
  rm -f conf$$.dir/conf$$.file
472
else
473
  rm -f conf$$.dir
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
474
  mkdir conf$$.dir 2>/dev/null
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
475
fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
476
if (echo >conf$$.file) 2>/dev/null; then
477
  if ln -s conf$$.file conf$$ 2>/dev/null; then
478
    as_ln_s='ln -s'
479
    # ... but there are two gotchas:
480
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482
    # In both cases, we have to default to `cp -p'.
483
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
      as_ln_s='cp -p'
485
  elif ln conf$$.file conf$$ 2>/dev/null; then
486
    as_ln_s=ln
487
  else
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
488
    as_ln_s='cp -p'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
489
  fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
490
else
491
  as_ln_s='cp -p'
492
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
493
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494
rmdir conf$$.dir 2>/dev/null
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
495
496
if mkdir -p . 2>/dev/null; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
497
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
498
else
499
  test -d ./-p && rmdir ./-p
500
  as_mkdir_p=false
501
fi
502
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
503
if test -x / >/dev/null 2>&1; then
504
  as_test_x='test -x'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
505
else
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
506
  if ls -dL / >/dev/null 2>&1; then
507
    as_ls_L_option=L
508
  else
509
    as_ls_L_option=
510
  fi
511
  as_test_x='
512
    eval sh -c '\''
513
      if test -d "$1"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
514
	test -d "$1/.";
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
515
      else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
516
	case $1 in #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
517
	-*)set "./$1";;
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
518
	esac;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
519
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
520
	???[sx]*):;;*)false;;esac;fi
521
    '\'' sh
522
  '
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
523
fi
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
524
as_executable_p=$as_test_x
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
525
526
# Sed expression to map a string onto a valid CPP name.
527
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529
# Sed expression to map a string onto a valid variable name.
530
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
533
534
# Check that we are running under the correct shell.
535
SHELL=${CONFIG_SHELL-/bin/sh}
536
537
case X$lt_ECHO in
538
X*--fallback-echo)
539
  # Remove one level of quotation (which was required for Make).
540
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541
  ;;
542
esac
543
544
ECHO=${lt_ECHO-echo}
545
if test "X$1" = X--no-reexec; then
546
  # Discard the --no-reexec flag, and continue.
547
  shift
548
elif test "X$1" = X--fallback-echo; then
549
  # Avoid inline document here, it may be left over
550
  :
551
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552
  # Yippee, $ECHO works!
553
  :
554
else
555
  # Restart under the correct shell.
556
  exec $SHELL "$0" --no-reexec ${1+"$@"}
557
fi
558
559
if test "X$1" = X--fallback-echo; then
560
  # used as fallback echo
561
  shift
562
  cat <<_LT_EOF
563
$*
564
_LT_EOF
565
  exit 0
566
fi
567
568
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
# if CDPATH is set.
570
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572
if test -z "$lt_ECHO"; then
573
  if test "X${echo_test_string+set}" != Xset; then
574
    # find a string as large as possible, as long as the shell can cope with it
575
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579
      then
580
        break
581
      fi
582
    done
583
  fi
584
585
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587
     test "X$echo_testing_string" = "X$echo_test_string"; then
588
    :
589
  else
590
    # The Solaris, AIX, and Digital Unix default echo programs unquote
591
    # backslashes.  This makes it impossible to quote backslashes using
592
    #   echo "$something" | sed 's/\\/\\\\/g'
593
    #
594
    # So, first we look for a working echo in the user's PATH.
595
596
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597
    for dir in $PATH /usr/ucb; do
598
      IFS="$lt_save_ifs"
599
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602
         test "X$echo_testing_string" = "X$echo_test_string"; then
603
        ECHO="$dir/echo"
604
        break
605
      fi
606
    done
607
    IFS="$lt_save_ifs"
608
609
    if test "X$ECHO" = Xecho; then
610
      # We didn't find a better echo, so look for alternatives.
611
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613
         test "X$echo_testing_string" = "X$echo_test_string"; then
614
        # This shell has a builtin print -r that does the trick.
615
        ECHO='print -r'
616
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618
        # If we have ksh, try running configure again with it.
619
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620
        export ORIGINAL_CONFIG_SHELL
621
        CONFIG_SHELL=/bin/ksh
622
        export CONFIG_SHELL
623
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624
      else
625
        # Try using printf.
626
        ECHO='printf %s\n'
627
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629
	   test "X$echo_testing_string" = "X$echo_test_string"; then
630
	  # Cool, printf works
631
	  :
632
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633
	     test "X$echo_testing_string" = 'X\t' &&
634
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635
	     test "X$echo_testing_string" = "X$echo_test_string"; then
636
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
	  export CONFIG_SHELL
638
	  SHELL="$CONFIG_SHELL"
639
	  export SHELL
640
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642
	     test "X$echo_testing_string" = 'X\t' &&
643
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644
	     test "X$echo_testing_string" = "X$echo_test_string"; then
645
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
        else
647
	  # maybe with a smaller string...
648
	  prev=:
649
650
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652
	    then
653
	      break
654
	    fi
655
	    prev="$cmd"
656
	  done
657
658
	  if test "$prev" != 'sed 50q "$0"'; then
659
	    echo_test_string=`eval $prev`
660
	    export echo_test_string
661
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
	  else
663
	    # Oops.  We lost completely, so just stick with echo.
664
	    ECHO=echo
665
	  fi
666
        fi
667
      fi
668
    fi
669
  fi
670
fi
671
672
# Copy echo and quote the copy suitably for passing to libtool from
673
# the Makefile, instead of quoting the original, which is used later.
674
lt_ECHO=$ECHO
675
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677
fi
678
679
680
681
682
test -n "$DJDIR" || exec 7<&0 </dev/null
683
exec 6>&1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
684
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
685
# Name of the host.
686
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687
# so uname gets run too.
688
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690
#
691
# Initializations.
692
#
693
ac_default_prefix=/usr/local
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
694
ac_clean_files=
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
695
ac_config_libobj_dir=.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
696
LIBOBJS=
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
697
cross_compiling=no
698
subdirs=
699
MFLAGS=
700
MAKEFLAGS=
701
702
# Identity of this package.
703
PACKAGE_NAME='ubiquity'
704
PACKAGE_TARNAME='ubiquity'
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
705
PACKAGE_VERSION='2.4'
706
PACKAGE_STRING='ubiquity 2.4'
82 by Colin Watson, Colin Watson, Jonathan Riddell
[ Colin Watson ]
707
PACKAGE_BUGREPORT='https://launchpad.net/ubuntu/+source/ubiquity/+filebug'
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
708
PACKAGE_URL=''
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
709
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
710
ac_unique_file="src/panel/panel.c"
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
711
# Factoring default headers for most tests.
712
ac_includes_default="\
713
#include <stdio.h>
714
#ifdef HAVE_SYS_TYPES_H
715
# include <sys/types.h>
716
#endif
717
#ifdef HAVE_SYS_STAT_H
718
# include <sys/stat.h>
719
#endif
720
#ifdef STDC_HEADERS
721
# include <stdlib.h>
722
# include <stddef.h>
723
#else
724
# ifdef HAVE_STDLIB_H
725
#  include <stdlib.h>
726
# endif
727
#endif
728
#ifdef HAVE_STRING_H
729
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730
#  include <memory.h>
731
# endif
732
# include <string.h>
733
#endif
734
#ifdef HAVE_STRINGS_H
735
# include <strings.h>
736
#endif
737
#ifdef HAVE_INTTYPES_H
738
# include <inttypes.h>
739
#endif
740
#ifdef HAVE_STDINT_H
741
# include <stdint.h>
742
#endif
743
#ifdef HAVE_UNISTD_H
744
# include <unistd.h>
745
#endif"
746
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
747
gt_needs=
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
748
ac_subst_vars='am__EXEEXT_FALSE
749
am__EXEEXT_TRUE
750
LTLIBOBJS
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
751
LIBOBJS
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
752
PYGTK_DEFS_DIR
753
PYGOBJECT_H2DEF
754
PYGOBJECT_CODEGEN
755
PYGOBJECT_DEFSDIR
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
756
pixmapsdir
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
757
PYTHON_INCLUDES
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
758
BASE_LIBS
759
BASE_CFLAGS
760
GTK_LIBS
761
GTK_CFLAGS
762
CHEESE_LIBS
763
CHEESE_CFLAGS
764
PANEL_LIBS
765
PANEL_CFLAGS
766
PKG_CONFIG
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
767
pkgpyexecdir
768
pyexecdir
769
pkgpythondir
770
pythondir
771
PYTHON_PLATFORM
772
PYTHON_EXEC_PREFIX
773
PYTHON_PREFIX
774
PYTHON_VERSION
775
PYTHON
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
776
DATADIRNAME
777
ALL_LINGUAS
778
INTLTOOL_PERL
779
INTLTOOL_POLICY_RULE
780
INTLTOOL_SERVICE_RULE
781
INTLTOOL_THEME_RULE
782
INTLTOOL_SCHEMAS_RULE
783
INTLTOOL_CAVES_RULE
784
INTLTOOL_XML_NOMERGE_RULE
785
INTLTOOL_XML_RULE
786
INTLTOOL_KBD_RULE
787
INTLTOOL_XAM_RULE
788
INTLTOOL_UI_RULE
789
INTLTOOL_SOUNDLIST_RULE
790
INTLTOOL_SHEET_RULE
791
INTLTOOL_SERVER_RULE
792
INTLTOOL_PONG_RULE
793
INTLTOOL_OAF_RULE
794
INTLTOOL_PROP_RULE
795
INTLTOOL_KEYS_RULE
796
INTLTOOL_DIRECTORY_RULE
797
INTLTOOL_DESKTOP_RULE
798
INTLTOOL_EXTRACT
799
INTLTOOL_MERGE
800
INTLTOOL_UPDATE
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
801
GETTEXT_PACKAGE
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
802
POSUB
803
LTLIBINTL
804
LIBINTL
805
INTLLIBS
806
LTLIBICONV
807
LIBICONV
808
INTL_MACOSX_LIBS
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
809
XGETTEXT_EXTRA_OPTIONS
810
MSGMERGE
811
XGETTEXT_015
812
XGETTEXT
813
GMSGFMT_015
814
MSGFMT_015
815
GMSGFMT
816
MSGFMT
817
GETTEXT_MACRO_VERSION
818
USE_NLS
819
CPP
820
OTOOL64
821
OTOOL
822
LIPO
823
NMEDIT
824
DSYMUTIL
825
lt_ECHO
826
RANLIB
827
AR
828
OBJDUMP
829
LN_S
830
NM
831
ac_ct_DUMPBIN
832
DUMPBIN
833
LD
834
FGREP
835
EGREP
836
GREP
837
SED
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
838
am__fastdepCC_FALSE
839
am__fastdepCC_TRUE
840
CCDEPMODE
841
AMDEPBACKSLASH
842
AMDEP_FALSE
843
AMDEP_TRUE
844
am__quote
845
am__include
846
DEPDIR
847
OBJEXT
848
EXEEXT
849
ac_ct_CC
850
CPPFLAGS
851
LDFLAGS
852
CFLAGS
853
CC
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
854
host_os
855
host_vendor
856
host_cpu
857
host
858
build_os
859
build_vendor
860
build_cpu
861
build
862
LIBTOOL
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
863
MAINT
864
MAINTAINER_MODE_FALSE
865
MAINTAINER_MODE_TRUE
866
am__untar
867
am__tar
868
AMTAR
869
am__leading_dot
870
SET_MAKE
871
AWK
872
mkdir_p
873
MKDIR_P
874
INSTALL_STRIP_PROGRAM
875
STRIP
876
install_sh
877
MAKEINFO
878
AUTOHEADER
879
AUTOMAKE
880
AUTOCONF
881
ACLOCAL
882
VERSION
883
PACKAGE
884
CYGPATH_W
885
am__isrc
886
INSTALL_DATA
887
INSTALL_SCRIPT
888
INSTALL_PROGRAM
889
target_alias
890
host_alias
891
build_alias
892
LIBS
893
ECHO_T
894
ECHO_N
895
ECHO_C
896
DEFS
897
mandir
898
localedir
899
libdir
900
psdir
901
pdfdir
902
dvidir
903
htmldir
904
infodir
905
docdir
906
oldincludedir
907
includedir
908
localstatedir
909
sharedstatedir
910
sysconfdir
911
datadir
912
datarootdir
913
libexecdir
914
sbindir
915
bindir
916
program_transform_name
917
prefix
918
exec_prefix
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
919
PACKAGE_URL
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
920
PACKAGE_BUGREPORT
921
PACKAGE_STRING
922
PACKAGE_VERSION
923
PACKAGE_TARNAME
924
PACKAGE_NAME
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
925
PATH_SEPARATOR
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
926
SHELL'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
927
ac_subst_files=''
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
928
ac_user_opts='
929
enable_option_checking
930
enable_maintainer_mode
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
931
enable_shared
932
enable_static
933
with_pic
934
enable_fast_install
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
935
enable_dependency_tracking
936
with_gnu_ld
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
937
enable_libtool_lock
938
enable_nls
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
939
enable_rpath
940
with_libiconv_prefix
941
with_libintl_prefix
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
942
enable_gtktest
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
943
'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
944
      ac_precious_vars='build_alias
945
host_alias
946
target_alias
947
CC
948
CFLAGS
949
LDFLAGS
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
950
LIBS
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
951
CPPFLAGS
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
952
CPP
953
PKG_CONFIG
954
PANEL_CFLAGS
955
PANEL_LIBS
956
CHEESE_CFLAGS
957
CHEESE_LIBS'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
958
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
959
960
# Initialize some variables set by options.
961
ac_init_help=
962
ac_init_version=false
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
963
ac_unrecognized_opts=
964
ac_unrecognized_sep=
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
965
# The variables have the same names as the options, with
966
# dashes changed to underlines.
967
cache_file=/dev/null
968
exec_prefix=NONE
969
no_create=
970
no_recursion=
971
prefix=NONE
972
program_prefix=NONE
973
program_suffix=NONE
974
program_transform_name=s,x,x,
975
silent=
976
site=
977
srcdir=
978
verbose=
979
x_includes=NONE
980
x_libraries=NONE
981
982
# Installation directory options.
983
# These are left unexpanded so users can "make install exec_prefix=/foo"
984
# and all the variables that are supposed to be based on exec_prefix
985
# by default will actually change.
986
# Use braces instead of parens because sh, perl, etc. also accept them.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
987
# (The list follows the same order as the GNU Coding Standards.)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
988
bindir='${exec_prefix}/bin'
989
sbindir='${exec_prefix}/sbin'
990
libexecdir='${exec_prefix}/libexec'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
991
datarootdir='${prefix}/share'
992
datadir='${datarootdir}'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
993
sysconfdir='${prefix}/etc'
994
sharedstatedir='${prefix}/com'
995
localstatedir='${prefix}/var'
996
includedir='${prefix}/include'
997
oldincludedir='/usr/include'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
998
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999
infodir='${datarootdir}/info'
1000
htmldir='${docdir}'
1001
dvidir='${docdir}'
1002
pdfdir='${docdir}'
1003
psdir='${docdir}'
1004
libdir='${exec_prefix}/lib'
1005
localedir='${datarootdir}/locale'
1006
mandir='${datarootdir}/man'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1007
1008
ac_prev=
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1009
ac_dashdash=
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1010
for ac_option
1011
do
1012
  # If the previous option needs an argument, assign it.
1013
  if test -n "$ac_prev"; then
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1014
    eval $ac_prev=\$ac_option
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1015
    ac_prev=
1016
    continue
1017
  fi
1018
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1019
  case $ac_option in
1020
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021
  *)	ac_optarg=yes ;;
1022
  esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1023
1024
  # Accept the important Cygnus configure options, so we can diagnose typos.
1025
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1026
  case $ac_dashdash$ac_option in
1027
  --)
1028
    ac_dashdash=yes ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1029
1030
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031
    ac_prev=bindir ;;
1032
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033
    bindir=$ac_optarg ;;
1034
1035
  -build | --build | --buil | --bui | --bu)
1036
    ac_prev=build_alias ;;
1037
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038
    build_alias=$ac_optarg ;;
1039
1040
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1041
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042
    ac_prev=cache_file ;;
1043
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045
    cache_file=$ac_optarg ;;
1046
1047
  --config-cache | -C)
1048
    cache_file=config.cache ;;
1049
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1050
  -datadir | --datadir | --datadi | --datad)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1051
    ac_prev=datadir ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1052
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1053
    datadir=$ac_optarg ;;
1054
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1055
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056
  | --dataroo | --dataro | --datar)
1057
    ac_prev=datarootdir ;;
1058
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060
    datarootdir=$ac_optarg ;;
1061
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1062
  -disable-* | --disable-*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1063
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1064
    # Reject names that are not valid shell variable names.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1065
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1066
      as_fn_error "invalid feature name: $ac_useropt"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1067
    ac_useropt_orig=$ac_useropt
1068
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069
    case $ac_user_opts in
1070
      *"
1071
"enable_$ac_useropt"
1072
"*) ;;
1073
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074
	 ac_unrecognized_sep=', ';;
1075
    esac
1076
    eval enable_$ac_useropt=no ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1077
1078
  -docdir | --docdir | --docdi | --doc | --do)
1079
    ac_prev=docdir ;;
1080
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081
    docdir=$ac_optarg ;;
1082
1083
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084
    ac_prev=dvidir ;;
1085
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086
    dvidir=$ac_optarg ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1087
1088
  -enable-* | --enable-*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1089
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1090
    # Reject names that are not valid shell variable names.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1091
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1092
      as_fn_error "invalid feature name: $ac_useropt"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1093
    ac_useropt_orig=$ac_useropt
1094
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095
    case $ac_user_opts in
1096
      *"
1097
"enable_$ac_useropt"
1098
"*) ;;
1099
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100
	 ac_unrecognized_sep=', ';;
1101
    esac
1102
    eval enable_$ac_useropt=\$ac_optarg ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1103
1104
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106
  | --exec | --exe | --ex)
1107
    ac_prev=exec_prefix ;;
1108
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110
  | --exec=* | --exe=* | --ex=*)
1111
    exec_prefix=$ac_optarg ;;
1112
1113
  -gas | --gas | --ga | --g)
1114
    # Obsolete; use --with-gas.
1115
    with_gas=yes ;;
1116
1117
  -help | --help | --hel | --he | -h)
1118
    ac_init_help=long ;;
1119
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120
    ac_init_help=recursive ;;
1121
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122
    ac_init_help=short ;;
1123
1124
  -host | --host | --hos | --ho)
1125
    ac_prev=host_alias ;;
1126
  -host=* | --host=* | --hos=* | --ho=*)
1127
    host_alias=$ac_optarg ;;
1128
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1129
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130
    ac_prev=htmldir ;;
1131
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132
  | --ht=*)
1133
    htmldir=$ac_optarg ;;
1134
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1135
  -includedir | --includedir | --includedi | --included | --include \
1136
  | --includ | --inclu | --incl | --inc)
1137
    ac_prev=includedir ;;
1138
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1140
    includedir=$ac_optarg ;;
1141
1142
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1143
    ac_prev=infodir ;;
1144
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145
    infodir=$ac_optarg ;;
1146
1147
  -libdir | --libdir | --libdi | --libd)
1148
    ac_prev=libdir ;;
1149
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150
    libdir=$ac_optarg ;;
1151
1152
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153
  | --libexe | --libex | --libe)
1154
    ac_prev=libexecdir ;;
1155
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156
  | --libexe=* | --libex=* | --libe=*)
1157
    libexecdir=$ac_optarg ;;
1158
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1159
  -localedir | --localedir | --localedi | --localed | --locale)
1160
    ac_prev=localedir ;;
1161
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162
    localedir=$ac_optarg ;;
1163
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1164
  -localstatedir | --localstatedir | --localstatedi | --localstated \
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1165
  | --localstate | --localstat | --localsta | --localst | --locals)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1166
    ac_prev=localstatedir ;;
1167
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1168
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1169
    localstatedir=$ac_optarg ;;
1170
1171
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172
    ac_prev=mandir ;;
1173
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174
    mandir=$ac_optarg ;;
1175
1176
  -nfp | --nfp | --nf)
1177
    # Obsolete; use --without-fp.
1178
    with_fp=no ;;
1179
1180
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181
  | --no-cr | --no-c | -n)
1182
    no_create=yes ;;
1183
1184
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186
    no_recursion=yes ;;
1187
1188
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190
  | --oldin | --oldi | --old | --ol | --o)
1191
    ac_prev=oldincludedir ;;
1192
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195
    oldincludedir=$ac_optarg ;;
1196
1197
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198
    ac_prev=prefix ;;
1199
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200
    prefix=$ac_optarg ;;
1201
1202
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203
  | --program-pre | --program-pr | --program-p)
1204
    ac_prev=program_prefix ;;
1205
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207
    program_prefix=$ac_optarg ;;
1208
1209
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210
  | --program-suf | --program-su | --program-s)
1211
    ac_prev=program_suffix ;;
1212
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214
    program_suffix=$ac_optarg ;;
1215
1216
  -program-transform-name | --program-transform-name \
1217
  | --program-transform-nam | --program-transform-na \
1218
  | --program-transform-n | --program-transform- \
1219
  | --program-transform | --program-transfor \
1220
  | --program-transfo | --program-transf \
1221
  | --program-trans | --program-tran \
1222
  | --progr-tra | --program-tr | --program-t)
1223
    ac_prev=program_transform_name ;;
1224
  -program-transform-name=* | --program-transform-name=* \
1225
  | --program-transform-nam=* | --program-transform-na=* \
1226
  | --program-transform-n=* | --program-transform-=* \
1227
  | --program-transform=* | --program-transfor=* \
1228
  | --program-transfo=* | --program-transf=* \
1229
  | --program-trans=* | --program-tran=* \
1230
  | --progr-tra=* | --program-tr=* | --program-t=*)
1231
    program_transform_name=$ac_optarg ;;
1232
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1233
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234
    ac_prev=pdfdir ;;
1235
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236
    pdfdir=$ac_optarg ;;
1237
1238
  -psdir | --psdir | --psdi | --psd | --ps)
1239
    ac_prev=psdir ;;
1240
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241
    psdir=$ac_optarg ;;
1242
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1243
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244
  | -silent | --silent | --silen | --sile | --sil)
1245
    silent=yes ;;
1246
1247
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248
    ac_prev=sbindir ;;
1249
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250
  | --sbi=* | --sb=*)
1251
    sbindir=$ac_optarg ;;
1252
1253
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255
  | --sharedst | --shareds | --shared | --share | --shar \
1256
  | --sha | --sh)
1257
    ac_prev=sharedstatedir ;;
1258
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261
  | --sha=* | --sh=*)
1262
    sharedstatedir=$ac_optarg ;;
1263
1264
  -site | --site | --sit)
1265
    ac_prev=site ;;
1266
  -site=* | --site=* | --sit=*)
1267
    site=$ac_optarg ;;
1268
1269
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270
    ac_prev=srcdir ;;
1271
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272
    srcdir=$ac_optarg ;;
1273
1274
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275
  | --syscon | --sysco | --sysc | --sys | --sy)
1276
    ac_prev=sysconfdir ;;
1277
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279
    sysconfdir=$ac_optarg ;;
1280
1281
  -target | --target | --targe | --targ | --tar | --ta | --t)
1282
    ac_prev=target_alias ;;
1283
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284
    target_alias=$ac_optarg ;;
1285
1286
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287
    verbose=yes ;;
1288
1289
  -version | --version | --versio | --versi | --vers | -V)
1290
    ac_init_version=: ;;
1291
1292
  -with-* | --with-*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1293
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1294
    # Reject names that are not valid shell variable names.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1295
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1296
      as_fn_error "invalid package name: $ac_useropt"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1297
    ac_useropt_orig=$ac_useropt
1298
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299
    case $ac_user_opts in
1300
      *"
1301
"with_$ac_useropt"
1302
"*) ;;
1303
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304
	 ac_unrecognized_sep=', ';;
1305
    esac
1306
    eval with_$ac_useropt=\$ac_optarg ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1307
1308
  -without-* | --without-*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1309
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1310
    # Reject names that are not valid shell variable names.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1311
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1312
      as_fn_error "invalid package name: $ac_useropt"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1313
    ac_useropt_orig=$ac_useropt
1314
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315
    case $ac_user_opts in
1316
      *"
1317
"with_$ac_useropt"
1318
"*) ;;
1319
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320
	 ac_unrecognized_sep=', ';;
1321
    esac
1322
    eval with_$ac_useropt=no ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1323
1324
  --x)
1325
    # Obsolete; use --with-x.
1326
    with_x=yes ;;
1327
1328
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329
  | --x-incl | --x-inc | --x-in | --x-i)
1330
    ac_prev=x_includes ;;
1331
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333
    x_includes=$ac_optarg ;;
1334
1335
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337
    ac_prev=x_libraries ;;
1338
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340
    x_libraries=$ac_optarg ;;
1341
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1342
  -*) as_fn_error "unrecognized option: \`$ac_option'
1343
Try \`$0 --help' for more information."
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1344
    ;;
1345
1346
  *=*)
1347
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348
    # Reject names that are not valid shell variable names.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1349
    case $ac_envvar in #(
1350
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1351
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352
    esac
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1353
    eval $ac_envvar=\$ac_optarg
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1354
    export $ac_envvar ;;
1355
1356
  *)
1357
    # FIXME: should be removed in autoconf 3.0.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1358
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1359
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1360
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1361
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362
    ;;
1363
1364
  esac
1365
done
1366
1367
if test -n "$ac_prev"; then
1368
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1369
  as_fn_error "missing argument to $ac_option"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1370
fi
1371
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1372
if test -n "$ac_unrecognized_opts"; then
1373
  case $enable_option_checking in
1374
    no) ;;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1375
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1376
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377
  esac
1378
fi
1379
1380
# Check all directory arguments for consistency.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1381
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382
		datadir sysconfdir sharedstatedir localstatedir includedir \
1383
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384
		libdir localedir mandir
1385
do
1386
  eval ac_val=\$$ac_var
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1387
  # Remove trailing slashes.
1388
  case $ac_val in
1389
    */ )
1390
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391
      eval $ac_var=\$ac_val;;
1392
  esac
1393
  # Be sure to have absolute directory names.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1394
  case $ac_val in
1395
    [\\/$]* | ?:[\\/]* )  continue;;
1396
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397
  esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1398
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1399
done
1400
1401
# There might be people who depend on the old broken behavior: `$host'
1402
# used to hold the argument of --host etc.
1403
# FIXME: To remove some day.
1404
build=$build_alias
1405
host=$host_alias
1406
target=$target_alias
1407
1408
# FIXME: To remove some day.
1409
if test "x$host_alias" != x; then
1410
  if test "x$build_alias" = x; then
1411
    cross_compiling=maybe
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1412
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1413
    If a cross compiler is detected then cross compile mode will be used." >&2
1414
  elif test "x$build_alias" != "x$host_alias"; then
1415
    cross_compiling=yes
1416
  fi
1417
fi
1418
1419
ac_tool_prefix=
1420
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422
test "$silent" = yes && exec 6>/dev/null
1423
1424
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1425
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426
ac_ls_di=`ls -di .` &&
1427
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1428
  as_fn_error "working directory cannot be determined"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1429
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1430
  as_fn_error "pwd does not report name of working directory"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1431
1432
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1433
# Find the source files, if location was not specified.
1434
if test -z "$srcdir"; then
1435
  ac_srcdir_defaulted=yes
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1436
  # Try the directory containing this script, then the parent directory.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1437
  ac_confdir=`$as_dirname -- "$as_myself" ||
1438
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1440
	 X"$as_myself" : 'X\(//\)$' \| \
1441
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442
$as_echo X"$as_myself" |
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1443
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444
	    s//\1/
1445
	    q
1446
	  }
1447
	  /^X\(\/\/\)[^/].*/{
1448
	    s//\1/
1449
	    q
1450
	  }
1451
	  /^X\(\/\/\)$/{
1452
	    s//\1/
1453
	    q
1454
	  }
1455
	  /^X\(\/\).*/{
1456
	    s//\1/
1457
	    q
1458
	  }
1459
	  s/.*/./; q'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1460
  srcdir=$ac_confdir
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1461
  if test ! -r "$srcdir/$ac_unique_file"; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1462
    srcdir=..
1463
  fi
1464
else
1465
  ac_srcdir_defaulted=no
1466
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1467
if test ! -r "$srcdir/$ac_unique_file"; then
1468
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1469
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1470
fi
1471
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472
ac_abs_confdir=`(
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1473
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1474
	pwd)`
1475
# When building in place, set srcdir=.
1476
if test "$ac_abs_confdir" = "$ac_pwd"; then
1477
  srcdir=.
1478
fi
1479
# Remove unnecessary trailing slashes from srcdir.
1480
# Double slashes in file names in object file debugging info
1481
# mess up M-x gdb in Emacs.
1482
case $srcdir in
1483
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484
esac
1485
for ac_var in $ac_precious_vars; do
1486
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487
  eval ac_env_${ac_var}_value=\$${ac_var}
1488
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490
done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1491
1492
#
1493
# Report the --help message.
1494
#
1495
if test "$ac_init_help" = "long"; then
1496
  # Omit some internal or obsolete options to make the list less imposing.
1497
  # This message is too long to be a string in the A/UX 3.1 sh.
1498
  cat <<_ACEOF
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
1499
\`configure' configures ubiquity 2.4 to adapt to many kinds of systems.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1500
1501
Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504
VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506
Defaults for the options are specified in brackets.
1507
1508
Configuration:
1509
  -h, --help              display this help and exit
1510
      --help=short        display options specific to this package
1511
      --help=recursive    display the short help of all the included packages
1512
  -V, --version           display version information and exit
1513
  -q, --quiet, --silent   do not print \`checking...' messages
1514
      --cache-file=FILE   cache test results in FILE [disabled]
1515
  -C, --config-cache      alias for \`--cache-file=config.cache'
1516
  -n, --no-create         do not create output files
1517
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519
Installation directories:
1520
  --prefix=PREFIX         install architecture-independent files in PREFIX
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1521
                          [$ac_default_prefix]
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1522
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1523
                          [PREFIX]
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1524
1525
By default, \`make install' will install all the files in
1526
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528
for instance \`--prefix=\$HOME'.
1529
1530
For better control, use the options below.
1531
1532
Fine tuning of the installation directories:
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1533
  --bindir=DIR            user executables [EPREFIX/bin]
1534
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1535
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1536
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1537
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1538
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1539
  --libdir=DIR            object code libraries [EPREFIX/lib]
1540
  --includedir=DIR        C header files [PREFIX/include]
1541
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1542
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1543
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1544
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1545
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1546
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1547
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ubiquity]
1548
  --htmldir=DIR           html documentation [DOCDIR]
1549
  --dvidir=DIR            dvi documentation [DOCDIR]
1550
  --pdfdir=DIR            pdf documentation [DOCDIR]
1551
  --psdir=DIR             ps documentation [DOCDIR]
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1552
_ACEOF
1553
1554
  cat <<\_ACEOF
1555
1556
Program names:
1557
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1558
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1559
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1560
1561
System types:
1562
  --build=BUILD     configure for building on BUILD [guessed]
1563
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1564
_ACEOF
1565
fi
1566
1567
if test -n "$ac_init_help"; then
1568
  case $ac_init_help in
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
1569
     short | recursive ) echo "Configuration of ubiquity 2.4:";;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1570
   esac
1571
  cat <<\_ACEOF
1572
1573
Optional Features:
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1574
  --disable-option-checking  ignore unrecognized --enable/--with options
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1575
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1576
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1577
  --enable-maintainer-mode  enable make rules and dependencies not useful
1578
			  (and sometimes confusing) to the casual installer
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1579
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1580
  --enable-static[=PKGS]  build static libraries [default=yes]
1581
  --enable-fast-install[=PKGS]
1582
                          optimize for fast installation [default=yes]
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1583
  --disable-dependency-tracking  speeds up one-time build
1584
  --enable-dependency-tracking   do not reject slow dependency extractors
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1585
  --disable-libtool-lock  avoid locking (might break parallel builds)
1586
  --disable-nls           do not use Native Language Support
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
1587
  --disable-rpath         do not hardcode runtime library paths
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
1588
  --disable-gtktest       do not try to compile and run a test GTK+ program
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1589
1590
Optional Packages:
1591
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1592
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1593
  --with-pic              try to use only PIC/non-PIC objects [default=use
1594
                          both]
1595
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
1596
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1597
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1598
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1599
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1600
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1601
1602
Some influential environment variables:
1603
  CC          C compiler command
1604
  CFLAGS      C compiler flags
1605
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1606
              nonstandard directory <lib dir>
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
1607
  LIBS        libraries to pass to the linker, e.g. -l<library>
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1608
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1609
              you have headers in a nonstandard directory <include dir>
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1610
  CPP         C preprocessor
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
1611
  PKG_CONFIG  path to pkg-config utility
1612
  PANEL_CFLAGS
1613
              C compiler flags for PANEL, overriding pkg-config
1614
  PANEL_LIBS  linker flags for PANEL, overriding pkg-config
1615
  CHEESE_CFLAGS
1616
              C compiler flags for CHEESE, overriding pkg-config
1617
  CHEESE_LIBS linker flags for CHEESE, overriding pkg-config
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1618
1619
Use these variables to override the choices made by `configure' or to help
1620
it to find libraries and programs with nonstandard names/locations.
1621
82 by Colin Watson, Colin Watson, Jonathan Riddell
[ Colin Watson ]
1622
Report bugs to <https://launchpad.net/ubuntu/+source/ubiquity/+filebug>.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1623
_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1624
ac_status=$?
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1625
fi
1626
1627
if test "$ac_init_help" = "recursive"; then
1628
  # If there are subdirs, report their specific --help.
1629
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1630
    test -d "$ac_dir" ||
1631
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632
      continue
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1633
    ac_builddir=.
1634
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1635
case "$ac_dir" in
1636
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637
*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1638
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1639
  # A ".." for each directory in $ac_dir_suffix.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1640
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1641
  case $ac_top_builddir_sub in
1642
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644
  esac ;;
1645
esac
1646
ac_abs_top_builddir=$ac_pwd
1647
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648
# for backward compatibility:
1649
ac_top_builddir=$ac_top_build_prefix
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1650
1651
case $srcdir in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1652
  .)  # We are building in place.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1653
    ac_srcdir=.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1654
    ac_top_srcdir=$ac_top_builddir_sub
1655
    ac_abs_top_srcdir=$ac_pwd ;;
1656
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1657
    ac_srcdir=$srcdir$ac_dir_suffix;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1658
    ac_top_srcdir=$srcdir
1659
    ac_abs_top_srcdir=$srcdir ;;
1660
  *) # Relative name.
1661
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1663
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664
esac
1665
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667
    cd "$ac_dir" || { ac_status=$?; continue; }
1668
    # Check for guested configure.
1669
    if test -f "$ac_srcdir/configure.gnu"; then
1670
      echo &&
1671
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672
    elif test -f "$ac_srcdir/configure"; then
1673
      echo &&
1674
      $SHELL "$ac_srcdir/configure" --help=recursive
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1675
    else
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
1676
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1677
    fi || ac_status=$?
1678
    cd "$ac_pwd" || { ac_status=$?; break; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1679
  done
1680
fi
1681
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1682
test -n "$ac_init_help" && exit $ac_status
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1683
if $ac_init_version; then
1684
  cat <<\_ACEOF
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
1685
ubiquity configure 2.4
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1686
generated by GNU Autoconf 2.65
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1687
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1688
Copyright (C) 2009 Free Software Foundation, Inc.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1689
This configure script is free software; the Free Software Foundation
1690
gives unlimited permission to copy, distribute and modify it.
1691
_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1692
  exit
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1693
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1694
1695
## ------------------------ ##
1696
## Autoconf initialization. ##
1697
## ------------------------ ##
1698
1699
# ac_fn_c_try_compile LINENO
1700
# --------------------------
1701
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1702
ac_fn_c_try_compile ()
1703
{
1704
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705
  rm -f conftest.$ac_objext
1706
  if { { ac_try="$ac_compile"
1707
case "(($ac_try" in
1708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709
  *) ac_try_echo=$ac_try;;
1710
esac
1711
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712
$as_echo "$ac_try_echo"; } >&5
1713
  (eval "$ac_compile") 2>conftest.err
1714
  ac_status=$?
1715
  if test -s conftest.err; then
1716
    grep -v '^ *+' conftest.err >conftest.er1
1717
    cat conftest.er1 >&5
1718
    mv -f conftest.er1 conftest.err
1719
  fi
1720
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721
  test $ac_status = 0; } && {
1722
	 test -z "$ac_c_werror_flag" ||
1723
	 test ! -s conftest.err
1724
       } && test -s conftest.$ac_objext; then :
1725
  ac_retval=0
1726
else
1727
  $as_echo "$as_me: failed program was:" >&5
1728
sed 's/^/| /' conftest.$ac_ext >&5
1729
1730
	ac_retval=1
1731
fi
1732
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1733
  as_fn_set_status $ac_retval
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1734
1735
} # ac_fn_c_try_compile
1736
1737
# ac_fn_c_try_link LINENO
1738
# -----------------------
1739
# Try to link conftest.$ac_ext, and return whether this succeeded.
1740
ac_fn_c_try_link ()
1741
{
1742
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743
  rm -f conftest.$ac_objext conftest$ac_exeext
1744
  if { { ac_try="$ac_link"
1745
case "(($ac_try" in
1746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747
  *) ac_try_echo=$ac_try;;
1748
esac
1749
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750
$as_echo "$ac_try_echo"; } >&5
1751
  (eval "$ac_link") 2>conftest.err
1752
  ac_status=$?
1753
  if test -s conftest.err; then
1754
    grep -v '^ *+' conftest.err >conftest.er1
1755
    cat conftest.er1 >&5
1756
    mv -f conftest.er1 conftest.err
1757
  fi
1758
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759
  test $ac_status = 0; } && {
1760
	 test -z "$ac_c_werror_flag" ||
1761
	 test ! -s conftest.err
1762
       } && test -s conftest$ac_exeext && {
1763
	 test "$cross_compiling" = yes ||
1764
	 $as_test_x conftest$ac_exeext
1765
       }; then :
1766
  ac_retval=0
1767
else
1768
  $as_echo "$as_me: failed program was:" >&5
1769
sed 's/^/| /' conftest.$ac_ext >&5
1770
1771
	ac_retval=1
1772
fi
1773
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775
  # interfere with the next link command; also delete a directory that is
1776
  # left behind by Apple's compiler.  We do this before executing the actions.
1777
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1779
  as_fn_set_status $ac_retval
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1780
1781
} # ac_fn_c_try_link
1782
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1783
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784
# -------------------------------------------------------
1785
# Tests whether HEADER exists and can be compiled using the include files in
1786
# INCLUDES, setting the cache variable VAR accordingly.
1787
ac_fn_c_check_header_compile ()
1788
{
1789
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791
$as_echo_n "checking for $2... " >&6; }
1792
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793
  $as_echo_n "(cached) " >&6
1794
else
1795
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796
/* end confdefs.h.  */
1797
$4
1798
#include <$2>
1799
_ACEOF
1800
if ac_fn_c_try_compile "$LINENO"; then :
1801
  eval "$3=yes"
1802
else
1803
  eval "$3=no"
1804
fi
1805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806
fi
1807
eval ac_res=\$$3
1808
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809
$as_echo "$ac_res" >&6; }
1810
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812
} # ac_fn_c_check_header_compile
1813
1814
# ac_fn_c_try_cpp LINENO
1815
# ----------------------
1816
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817
ac_fn_c_try_cpp ()
1818
{
1819
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1821
case "(($ac_try" in
1822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823
  *) ac_try_echo=$ac_try;;
1824
esac
1825
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826
$as_echo "$ac_try_echo"; } >&5
1827
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828
  ac_status=$?
1829
  if test -s conftest.err; then
1830
    grep -v '^ *+' conftest.err >conftest.er1
1831
    cat conftest.er1 >&5
1832
    mv -f conftest.er1 conftest.err
1833
  fi
1834
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835
  test $ac_status = 0; } >/dev/null && {
1836
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837
	 test ! -s conftest.err
1838
       }; then :
1839
  ac_retval=0
1840
else
1841
  $as_echo "$as_me: failed program was:" >&5
1842
sed 's/^/| /' conftest.$ac_ext >&5
1843
1844
    ac_retval=1
1845
fi
1846
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
  as_fn_set_status $ac_retval
1848
1849
} # ac_fn_c_try_cpp
1850
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1851
# ac_fn_c_try_run LINENO
1852
# ----------------------
1853
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854
# that executables *can* be run.
1855
ac_fn_c_try_run ()
1856
{
1857
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858
  if { { ac_try="$ac_link"
1859
case "(($ac_try" in
1860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861
  *) ac_try_echo=$ac_try;;
1862
esac
1863
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864
$as_echo "$ac_try_echo"; } >&5
1865
  (eval "$ac_link") 2>&5
1866
  ac_status=$?
1867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869
  { { case "(($ac_try" in
1870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871
  *) ac_try_echo=$ac_try;;
1872
esac
1873
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874
$as_echo "$ac_try_echo"; } >&5
1875
  (eval "$ac_try") 2>&5
1876
  ac_status=$?
1877
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878
  test $ac_status = 0; }; }; then :
1879
  ac_retval=0
1880
else
1881
  $as_echo "$as_me: program exited with status $ac_status" >&5
1882
       $as_echo "$as_me: failed program was:" >&5
1883
sed 's/^/| /' conftest.$ac_ext >&5
1884
1885
       ac_retval=$ac_status
1886
fi
1887
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1889
  as_fn_set_status $ac_retval
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
1890
1891
} # ac_fn_c_try_run
1892
1893
# ac_fn_c_check_func LINENO FUNC VAR
1894
# ----------------------------------
1895
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896
ac_fn_c_check_func ()
1897
{
1898
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900
$as_echo_n "checking for $2... " >&6; }
1901
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902
  $as_echo_n "(cached) " >&6
1903
else
1904
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905
/* end confdefs.h.  */
1906
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908
#define $2 innocuous_$2
1909
1910
/* System header to define __stub macros and hopefully few prototypes,
1911
    which can conflict with char $2 (); below.
1912
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913
    <limits.h> exists even on freestanding compilers.  */
1914
1915
#ifdef __STDC__
1916
# include <limits.h>
1917
#else
1918
# include <assert.h>
1919
#endif
1920
1921
#undef $2
1922
1923
/* Override any GCC internal prototype to avoid an error.
1924
   Use char because int might match the return type of a GCC
1925
   builtin and then its argument prototype would still apply.  */
1926
#ifdef __cplusplus
1927
extern "C"
1928
#endif
1929
char $2 ();
1930
/* The GNU C library defines this for functions which it implements
1931
    to always fail with ENOSYS.  Some functions are actually named
1932
    something starting with __ and the normal name is an alias.  */
1933
#if defined __stub_$2 || defined __stub___$2
1934
choke me
1935
#endif
1936
1937
int
1938
main ()
1939
{
1940
return $2 ();
1941
  ;
1942
  return 0;
1943
}
1944
_ACEOF
1945
if ac_fn_c_try_link "$LINENO"; then :
1946
  eval "$3=yes"
1947
else
1948
  eval "$3=no"
1949
fi
1950
rm -f core conftest.err conftest.$ac_objext \
1951
    conftest$ac_exeext conftest.$ac_ext
1952
fi
1953
eval ac_res=\$$3
1954
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955
$as_echo "$ac_res" >&6; }
1956
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958
} # ac_fn_c_check_func
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1959
cat >config.log <<_ACEOF
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1960
This file contains any messages produced by compilers while
1961
running configure, to aid debugging if configure makes a mistake.
1962
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
1963
It was created by ubiquity $as_me 2.4, which was
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
1964
generated by GNU Autoconf 2.65.  Invocation command line was
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1965
1966
  $ $0 $@
1967
1968
_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1969
exec 5>>config.log
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1970
{
1971
cat <<_ASUNAME
1972
## --------- ##
1973
## Platform. ##
1974
## --------- ##
1975
1976
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981
1982
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1984
1985
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1986
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1987
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
1988
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
1989
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1990
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1991
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1992
1993
_ASUNAME
1994
1995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996
for as_dir in $PATH
1997
do
1998
  IFS=$as_save_IFS
1999
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2000
    $as_echo "PATH: $as_dir"
2001
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2002
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2003
2004
} >&5
2005
2006
cat >&5 <<_ACEOF
2007
2008
2009
## ----------- ##
2010
## Core tests. ##
2011
## ----------- ##
2012
2013
_ACEOF
2014
2015
2016
# Keep a trace of the command line.
2017
# Strip out --no-create and --no-recursion so they do not pile up.
2018
# Strip out --silent because we don't want to record it for future runs.
2019
# Also quote any args containing shell meta-characters.
2020
# Make two passes to allow for proper duplicate-argument suppression.
2021
ac_configure_args=
2022
ac_configure_args0=
2023
ac_configure_args1=
2024
ac_must_keep_next=false
2025
for ac_pass in 1 2
2026
do
2027
  for ac_arg
2028
  do
2029
    case $ac_arg in
2030
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032
    | -silent | --silent | --silen | --sile | --sil)
2033
      continue ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2034
    *\'*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2035
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2036
    esac
2037
    case $ac_pass in
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2038
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2039
    2)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2040
      as_fn_append ac_configure_args1 " '$ac_arg'"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2041
      if test $ac_must_keep_next = true; then
2042
	ac_must_keep_next=false # Got value, back to normal.
2043
      else
2044
	case $ac_arg in
2045
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2046
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048
	  | -with-* | --with-* | -without-* | --without-* | --x)
2049
	    case "$ac_configure_args0 " in
2050
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051
	    esac
2052
	    ;;
2053
	  -* ) ac_must_keep_next=true ;;
2054
	esac
2055
      fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2056
      as_fn_append ac_configure_args " '$ac_arg'"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2057
      ;;
2058
    esac
2059
  done
2060
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2061
{ ac_configure_args0=; unset ac_configure_args0;}
2062
{ ac_configure_args1=; unset ac_configure_args1;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2063
2064
# When interrupted or exit'd, cleanup temporary files, and complete
2065
# config.log.  We remove comments because anyway the quotes in there
2066
# would cause problems or look ugly.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2067
# WARNING: Use '\'' to represent an apostrophe within the trap.
2068
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2069
trap 'exit_status=$?
2070
  # Save into config.log some information that might help in debugging.
2071
  {
2072
    echo
2073
2074
    cat <<\_ASBOX
2075
## ---------------- ##
2076
## Cache variables. ##
2077
## ---------------- ##
2078
_ASBOX
2079
    echo
2080
    # The following way of writing the cache mishandles newlines in values,
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2081
(
2082
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083
    eval ac_val=\$$ac_var
2084
    case $ac_val in #(
2085
    *${as_nl}*)
2086
      case $ac_var in #(
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2087
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2088
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2089
      esac
2090
      case $ac_var in #(
2091
      _ | IFS | as_nl) ;; #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2092
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2093
      *) { eval $ac_var=; unset $ac_var;} ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2094
      esac ;;
2095
    esac
2096
  done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2097
  (set) 2>&1 |
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2098
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099
    *${as_nl}ac_space=\ *)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2100
      sed -n \
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2101
	"s/'\''/'\''\\\\'\'''\''/g;
2102
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103
      ;; #(
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2104
    *)
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2105
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2106
      ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2107
    esac |
2108
    sort
2109
)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2110
    echo
2111
2112
    cat <<\_ASBOX
2113
## ----------------- ##
2114
## Output variables. ##
2115
## ----------------- ##
2116
_ASBOX
2117
    echo
2118
    for ac_var in $ac_subst_vars
2119
    do
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2120
      eval ac_val=\$$ac_var
2121
      case $ac_val in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2122
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2123
      esac
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2124
      $as_echo "$ac_var='\''$ac_val'\''"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2125
    done | sort
2126
    echo
2127
2128
    if test -n "$ac_subst_files"; then
2129
      cat <<\_ASBOX
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2130
## ------------------- ##
2131
## File substitutions. ##
2132
## ------------------- ##
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2133
_ASBOX
2134
      echo
2135
      for ac_var in $ac_subst_files
2136
      do
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2137
	eval ac_val=\$$ac_var
2138
	case $ac_val in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2139
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2140
	esac
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2141
	$as_echo "$ac_var='\''$ac_val'\''"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2142
      done | sort
2143
      echo
2144
    fi
2145
2146
    if test -s confdefs.h; then
2147
      cat <<\_ASBOX
2148
## ----------- ##
2149
## confdefs.h. ##
2150
## ----------- ##
2151
_ASBOX
2152
      echo
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2153
      cat confdefs.h
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2154
      echo
2155
    fi
2156
    test "$ac_signal" != 0 &&
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2157
      $as_echo "$as_me: caught signal $ac_signal"
2158
    $as_echo "$as_me: exit $exit_status"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2159
  } >&5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2160
  rm -f core *.core core.conftest.* &&
2161
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2162
    exit $exit_status
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2163
' 0
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2164
for ac_signal in 1 2 13 15; do
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2165
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2166
done
2167
ac_signal=0
2168
2169
# confdefs.h avoids OS command line length limits that DEFS can exceed.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2170
rm -f -r conftest* confdefs.h
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2171
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2172
$as_echo "/* confdefs.h */" > confdefs.h
2173
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2174
# Predefined preprocessor variables.
2175
2176
cat >>confdefs.h <<_ACEOF
2177
#define PACKAGE_NAME "$PACKAGE_NAME"
2178
_ACEOF
2179
2180
cat >>confdefs.h <<_ACEOF
2181
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182
_ACEOF
2183
2184
cat >>confdefs.h <<_ACEOF
2185
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186
_ACEOF
2187
2188
cat >>confdefs.h <<_ACEOF
2189
#define PACKAGE_STRING "$PACKAGE_STRING"
2190
_ACEOF
2191
2192
cat >>confdefs.h <<_ACEOF
2193
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194
_ACEOF
2195
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2196
cat >>confdefs.h <<_ACEOF
2197
#define PACKAGE_URL "$PACKAGE_URL"
2198
_ACEOF
2199
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2200
2201
# Let the site file select an alternate cache file if it wants to.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2202
# Prefer an explicitly selected file to automatically selected ones.
2203
ac_site_file1=NONE
2204
ac_site_file2=NONE
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2205
if test -n "$CONFIG_SITE"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2206
  ac_site_file1=$CONFIG_SITE
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2207
elif test "x$prefix" != xNONE; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2208
  ac_site_file1=$prefix/share/config.site
2209
  ac_site_file2=$prefix/etc/config.site
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2210
else
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2211
  ac_site_file1=$ac_default_prefix/share/config.site
2212
  ac_site_file2=$ac_default_prefix/etc/config.site
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2213
fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2214
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2215
do
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2216
  test "x$ac_site_file" = xNONE && continue
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
2217
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2218
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2219
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2220
    sed 's/^/| /' "$ac_site_file" >&5
2221
    . "$ac_site_file"
2222
  fi
2223
done
2224
2225
if test -r "$cache_file"; then
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
2226
  # Some versions of bash will fail to source /dev/null (special files
2227
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2228
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2229
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2230
$as_echo "$as_me: loading cache $cache_file" >&6;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2231
    case $cache_file in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2232
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233
      *)                      . "./$cache_file";;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2234
    esac
2235
  fi
2236
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2237
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2238
$as_echo "$as_me: creating cache $cache_file" >&6;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2239
  >$cache_file
2240
fi
2241
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
2242
gt_needs="$gt_needs "
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2243
# Check that the precious variables saved in the cache have kept the same
2244
# value.
2245
ac_cache_corrupted=false
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2246
for ac_var in $ac_precious_vars; do
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2247
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2248
  eval ac_new_set=\$ac_env_${ac_var}_set
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2249
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2250
  eval ac_new_val=\$ac_env_${ac_var}_value
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2251
  case $ac_old_set,$ac_new_set in
2252
    set,)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2253
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2254
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2255
      ac_cache_corrupted=: ;;
2256
    ,set)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2257
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2258
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2259
      ac_cache_corrupted=: ;;
2260
    ,);;
2261
    *)
2262
      if test "x$ac_old_val" != "x$ac_new_val"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2263
	# differences in whitespace do not lead to failure.
2264
	ac_old_val_w=`echo x $ac_old_val`
2265
	ac_new_val_w=`echo x $ac_new_val`
2266
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2267
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2268
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2269
	  ac_cache_corrupted=:
2270
	else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2271
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2272
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2273
	  eval $ac_var=\$ac_old_val
2274
	fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2275
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2276
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2277
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2278
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2279
      fi;;
2280
  esac
2281
  # Pass precious variables to config.status.
2282
  if test "$ac_new_set" = set; then
2283
    case $ac_new_val in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2284
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2285
    *) ac_arg=$ac_var=$ac_new_val ;;
2286
    esac
2287
    case " $ac_configure_args " in
2288
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2289
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2290
    esac
2291
  fi
2292
done
2293
if $ac_cache_corrupted; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2294
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2296
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2297
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2298
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2299
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2300
## -------------------- ##
2301
## Main body of script. ##
2302
## -------------------- ##
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2303
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2304
ac_ext=c
2305
ac_cpp='$CPP $CPPFLAGS'
2306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311
2312
ac_aux_dir=
64 by Colin Watson, Colin Watson, Jonathan Riddell
[ Colin Watson ]
2313
for ac_dir in build "$srcdir"/build; do
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2314
  for ac_t in install-sh install.sh shtool; do
2315
    if test -f "$ac_dir/$ac_t"; then
2316
      ac_aux_dir=$ac_dir
2317
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2318
      break 2
2319
    fi
2320
  done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2321
done
2322
if test -z "$ac_aux_dir"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2323
  as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2324
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2325
2326
# These three variables are undocumented and unsupported,
2327
# and are intended to be withdrawn in a future Autoconf release.
2328
# They can cause serious problems if a builder's source tree is in a directory
2329
# whose full name contains unusual characters.
2330
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2331
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2332
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2333
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2334
178 by Colin Watson, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
2335
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2336
am__api_version='1.11'
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2337
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2338
# Find a good install program.  We prefer a C program (faster),
2339
# so one script is as good as another.  But avoid the broken or
2340
# incompatible versions:
2341
# SysV /etc/install, /usr/sbin/install
2342
# SunOS /usr/etc/install
2343
# IRIX /sbin/install
2344
# AIX /bin/install
2345
# AmigaOS /C/install, which installs bootblocks on floppy discs
2346
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2347
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2348
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2349
# OS/2's system install, which has a completely different semantic
2350
# ./install, which can be erroneously created by make from ./install.sh.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2351
# Reject install programs that cannot install multiple files.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2353
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2354
if test -z "$INSTALL"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2355
if test "${ac_cv_path_install+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2356
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2357
else
2358
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359
for as_dir in $PATH
2360
do
2361
  IFS=$as_save_IFS
2362
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2363
    # Account for people who put trailing slashes in PATH elements.
2364
case $as_dir/ in #((
2365
  ./ | .// | /[cC]/* | \
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2366
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2367
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2368
  /usr/ucb/* ) ;;
2369
  *)
2370
    # OSF1 and SCO ODT 3.0 have their own names for install.
2371
    # Don't use installbsd from OSF since it installs stuff as root
2372
    # by default.
2373
    for ac_prog in ginstall scoinst install; do
2374
      for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
2375
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2376
	  if test $ac_prog = install &&
2377
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2378
	    # AIX install.  It has an incompatible calling convention.
2379
	    :
2380
	  elif test $ac_prog = install &&
2381
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382
	    # program-specific install script used by HP pwplus--don't use.
2383
	    :
2384
	  else
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2385
	    rm -rf conftest.one conftest.two conftest.dir
2386
	    echo one > conftest.one
2387
	    echo two > conftest.two
2388
	    mkdir conftest.dir
2389
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2390
	      test -s conftest.one && test -s conftest.two &&
2391
	      test -s conftest.dir/conftest.one &&
2392
	      test -s conftest.dir/conftest.two
2393
	    then
2394
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395
	      break 3
2396
	    fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2397
	  fi
2398
	fi
2399
      done
2400
    done
2401
    ;;
2402
esac
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2403
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2404
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2405
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2406
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2407
rm -rf conftest.one conftest.two conftest.dir
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2408
2409
fi
2410
  if test "${ac_cv_path_install+set}" = set; then
2411
    INSTALL=$ac_cv_path_install
2412
  else
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2413
    # As a last resort, use the slow shell script.  Don't cache a
2414
    # value for INSTALL within a source directory, because that will
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2415
    # break other packages using the cache if that directory is
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2416
    # removed, or if the value is a relative name.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2417
    INSTALL=$ac_install_sh
2418
  fi
2419
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2421
$as_echo "$INSTALL" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2422
2423
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2424
# It thinks the first close brace ends the variable substitution.
2425
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2426
2427
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2428
2429
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2430
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2432
$as_echo_n "checking whether build environment is sane... " >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2433
# Just in case
2434
sleep 1
2435
echo timestamp > conftest.file
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2436
# Reject unsafe characters in $srcdir or the absolute working directory
2437
# name.  Accept space and tab only in the latter.
2438
am_lf='
2439
'
2440
case `pwd` in
2441
  *[\\\"\#\$\&\'\`$am_lf]*)
2442
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2443
esac
2444
case $srcdir in
2445
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2446
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2447
esac
2448
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2449
# Do `set' in a subshell so we don't clobber the current shell's
2450
# arguments.  Must try -L first in case configure is actually a
2451
# symlink; some systems play weird games with the mod time of symlinks
2452
# (eg FreeBSD returns the mod time of the symlink's containing
2453
# directory).
2454
if (
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2455
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2456
   if test "$*" = "X"; then
2457
      # -L didn't work.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2458
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2459
   fi
2460
   rm -f conftest.file
2461
   if test "$*" != "X $srcdir/configure conftest.file" \
2462
      && test "$*" != "X conftest.file $srcdir/configure"; then
2463
2464
      # If neither matched, then we have a broken ls.  This can happen
2465
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2466
      # broken ls alias from the environment.  This has actually
2467
      # happened.  Such a system could not be considered "sane".
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2468
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2469
alias in your environment" "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2470
   fi
2471
2472
   test "$2" = conftest.file
2473
   )
2474
then
2475
   # Ok.
2476
   :
2477
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2478
   as_fn_error "newly created file is older than distributed files!
2479
Check your system clock" "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2480
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2482
$as_echo "yes" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2483
test "$program_prefix" != NONE &&
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2484
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2485
# Use a double $ so make ignores it.
2486
test "$program_suffix" != NONE &&
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2487
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2488
# Double any \ or $.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2489
# By default was `s,x,x', remove it if useless.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2490
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2491
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2492
2493
# expand $ac_aux_dir to an absolute path
2494
am_aux_dir=`cd $ac_aux_dir && pwd`
2495
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2496
if test x"${MISSING+set}" != xset; then
2497
  case $am_aux_dir in
2498
  *\ * | *\	*)
2499
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2500
  *)
2501
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2502
  esac
2503
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2504
# Use eval to expand $SHELL
2505
if eval "$MISSING --run true"; then
2506
  am_missing_run="$MISSING --run "
2507
else
2508
  am_missing_run=
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2509
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2510
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2511
fi
2512
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2513
if test x"${install_sh}" != xset; then
2514
  case $am_aux_dir in
2515
  *\ * | *\	*)
2516
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2517
  *)
2518
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2519
  esac
2520
fi
2521
2522
# Installed binaries are usually stripped using `strip' when the user
2523
# run `make install-strip'.  However `strip' might not be the right
2524
# tool to use in cross-compilation environments, therefore Automake
2525
# will honor the `STRIP' environment variable to overrule this program.
2526
if test "$cross_compiling" != no; then
2527
  if test -n "$ac_tool_prefix"; then
2528
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2529
set dummy ${ac_tool_prefix}strip; ac_word=$2
2530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531
$as_echo_n "checking for $ac_word... " >&6; }
2532
if test "${ac_cv_prog_STRIP+set}" = set; then :
2533
  $as_echo_n "(cached) " >&6
2534
else
2535
  if test -n "$STRIP"; then
2536
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537
else
2538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539
for as_dir in $PATH
2540
do
2541
  IFS=$as_save_IFS
2542
  test -z "$as_dir" && as_dir=.
2543
    for ac_exec_ext in '' $ac_executable_extensions; do
2544
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2546
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547
    break 2
2548
  fi
2549
done
2550
  done
2551
IFS=$as_save_IFS
2552
2553
fi
2554
fi
2555
STRIP=$ac_cv_prog_STRIP
2556
if test -n "$STRIP"; then
2557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2558
$as_echo "$STRIP" >&6; }
2559
else
2560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561
$as_echo "no" >&6; }
2562
fi
2563
2564
2565
fi
2566
if test -z "$ac_cv_prog_STRIP"; then
2567
  ac_ct_STRIP=$STRIP
2568
  # Extract the first word of "strip", so it can be a program name with args.
2569
set dummy strip; ac_word=$2
2570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571
$as_echo_n "checking for $ac_word... " >&6; }
2572
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2573
  $as_echo_n "(cached) " >&6
2574
else
2575
  if test -n "$ac_ct_STRIP"; then
2576
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577
else
2578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579
for as_dir in $PATH
2580
do
2581
  IFS=$as_save_IFS
2582
  test -z "$as_dir" && as_dir=.
2583
    for ac_exec_ext in '' $ac_executable_extensions; do
2584
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585
    ac_cv_prog_ac_ct_STRIP="strip"
2586
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587
    break 2
2588
  fi
2589
done
2590
  done
2591
IFS=$as_save_IFS
2592
2593
fi
2594
fi
2595
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2596
if test -n "$ac_ct_STRIP"; then
2597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2598
$as_echo "$ac_ct_STRIP" >&6; }
2599
else
2600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601
$as_echo "no" >&6; }
2602
fi
2603
2604
  if test "x$ac_ct_STRIP" = x; then
2605
    STRIP=":"
2606
  else
2607
    case $cross_compiling:$ac_tool_warned in
2608
yes:)
2609
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2610
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2611
ac_tool_warned=yes ;;
2612
esac
2613
    STRIP=$ac_ct_STRIP
2614
  fi
2615
else
2616
  STRIP="$ac_cv_prog_STRIP"
2617
fi
2618
2619
fi
2620
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2621
2622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2623
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2624
if test -z "$MKDIR_P"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2625
  if test "${ac_cv_path_mkdir+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2626
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2627
else
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2628
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2630
do
2631
  IFS=$as_save_IFS
2632
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2633
    for ac_prog in mkdir gmkdir; do
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2634
	 for ac_exec_ext in '' $ac_executable_extensions; do
2635
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2636
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2637
	     'mkdir (GNU coreutils) '* | \
2638
	     'mkdir (coreutils) '* | \
2639
	     'mkdir (fileutils) '4.1*)
2640
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2641
	       break 3;;
2642
	   esac
2643
	 done
2644
       done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2645
  done
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2646
IFS=$as_save_IFS
2647
2648
fi
2649
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
2650
  test -d ./--version && rmdir ./--version
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2651
  if test "${ac_cv_path_mkdir+set}" = set; then
2652
    MKDIR_P="$ac_cv_path_mkdir -p"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2653
  else
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2654
    # As a last resort, use the slow shell script.  Don't cache a
2655
    # value for MKDIR_P within a source directory, because that will
2656
    # break other packages using the cache if that directory is
2657
    # removed, or if the value is a relative name.
2658
    MKDIR_P="$ac_install_sh -d"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2659
  fi
2660
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2662
$as_echo "$MKDIR_P" >&6; }
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2663
2664
mkdir_p="$MKDIR_P"
2665
case $mkdir_p in
2666
  [\\/$]* | ?:[\\/]*) ;;
2667
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2668
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2669
2670
for ac_prog in gawk mawk nawk awk
2671
do
2672
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2673
set dummy $ac_prog; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2675
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2676
if test "${ac_cv_prog_AWK+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2677
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2678
else
2679
  if test -n "$AWK"; then
2680
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2687
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
2688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2689
    ac_cv_prog_AWK="$ac_prog"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2691
    break 2
2692
  fi
2693
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2694
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2695
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2696
2697
fi
2698
fi
2699
AWK=$ac_cv_prog_AWK
2700
if test -n "$AWK"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2702
$as_echo "$AWK" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2703
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2705
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2706
fi
2707
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2708
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2709
  test -n "$AWK" && break
2710
done
2711
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2713
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2714
set x ${MAKE-make}
2715
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2716
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2717
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2718
else
2719
  cat >conftest.make <<\_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2720
SHELL = /bin/sh
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2721
all:
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2722
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2723
_ACEOF
2724
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2725
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2726
  *@@@%%%=?*=@@@%%%*)
2727
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2728
  *)
2729
    eval ac_cv_prog_make_${ac_make}_set=no;;
2730
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2731
rm -f conftest.make
2732
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2733
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2735
$as_echo "yes" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2736
  SET_MAKE=
2737
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2739
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2740
  SET_MAKE="MAKE=${MAKE-make}"
2741
fi
2742
2743
rm -rf .tst 2>/dev/null
2744
mkdir .tst 2>/dev/null
2745
if test -d .tst; then
2746
  am__leading_dot=.
2747
else
2748
  am__leading_dot=_
2749
fi
2750
rmdir .tst 2>/dev/null
2751
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2752
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2753
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2754
  # is not polluted with repeated "-I."
2755
  am__isrc=' -I$(srcdir)'
2756
  # test to see if srcdir already configured
2757
  if test -f $srcdir/config.status; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2758
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2759
  fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2760
fi
2761
2762
# test whether we have cygpath
2763
if test -z "$CYGPATH_W"; then
2764
  if (cygpath --version) >/dev/null 2>/dev/null; then
2765
    CYGPATH_W='cygpath -w'
2766
  else
2767
    CYGPATH_W=echo
2768
  fi
2769
fi
2770
2771
2772
# Define the identity of the package.
2773
 PACKAGE='ubiquity'
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
2774
 VERSION='2.4'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2775
2776
2777
cat >>confdefs.h <<_ACEOF
2778
#define PACKAGE "$PACKAGE"
2779
_ACEOF
2780
2781
2782
cat >>confdefs.h <<_ACEOF
2783
#define VERSION "$VERSION"
2784
_ACEOF
2785
2786
# Some tools Automake needs.
2787
2788
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2789
2790
2791
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2792
2793
2794
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2795
2796
2797
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2798
2799
2800
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2801
2802
# We need awk for the "check" target.  The system "awk" is bad on
2803
# some platforms.
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2804
# Always define AMTAR for backward compatibility.
2805
2806
AMTAR=${AMTAR-"${am_missing_run}tar"}
2807
2808
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2809
2810
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2811
2812
2813
2814
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
2815
ac_config_headers="$ac_config_headers config.h"
2816
2817
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2818
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2820
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2821
    # Check whether --enable-maintainer-mode was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2822
if test "${enable_maintainer_mode+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2823
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2824
else
2825
  USE_MAINTAINER_MODE=no
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2826
fi
2827
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2829
$as_echo "$USE_MAINTAINER_MODE" >&6; }
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2830
   if test $USE_MAINTAINER_MODE = yes; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2831
  MAINTAINER_MODE_TRUE=
2832
  MAINTAINER_MODE_FALSE='#'
2833
else
2834
  MAINTAINER_MODE_TRUE='#'
2835
  MAINTAINER_MODE_FALSE=
2836
fi
2837
2838
  MAINT=$MAINTAINER_MODE_TRUE
2839
2840
2841
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
2842
case `pwd` in
2843
  *\ * | *\	*)
2844
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2845
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2846
esac
2847
2848
2849
2850
macro_version='2.2.6b'
2851
macro_revision='1.3017'
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
ltmain="$ac_aux_dir/ltmain.sh"
2866
2867
# Make sure we can run config.sub.
2868
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2869
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2870
2871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2872
$as_echo_n "checking build system type... " >&6; }
2873
if test "${ac_cv_build+set}" = set; then :
2874
  $as_echo_n "(cached) " >&6
2875
else
2876
  ac_build_alias=$build_alias
2877
test "x$ac_build_alias" = x &&
2878
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2879
test "x$ac_build_alias" = x &&
2880
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2881
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2882
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2883
2884
fi
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2886
$as_echo "$ac_cv_build" >&6; }
2887
case $ac_cv_build in
2888
*-*-*) ;;
2889
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2890
esac
2891
build=$ac_cv_build
2892
ac_save_IFS=$IFS; IFS='-'
2893
set x $ac_cv_build
2894
shift
2895
build_cpu=$1
2896
build_vendor=$2
2897
shift; shift
2898
# Remember, the first character of IFS is used to create $*,
2899
# except with old shells:
2900
build_os=$*
2901
IFS=$ac_save_IFS
2902
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2903
2904
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2906
$as_echo_n "checking host system type... " >&6; }
2907
if test "${ac_cv_host+set}" = set; then :
2908
  $as_echo_n "(cached) " >&6
2909
else
2910
  if test "x$host_alias" = x; then
2911
  ac_cv_host=$ac_cv_build
2912
else
2913
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2914
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2915
fi
2916
2917
fi
2918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2919
$as_echo "$ac_cv_host" >&6; }
2920
case $ac_cv_host in
2921
*-*-*) ;;
2922
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2923
esac
2924
host=$ac_cv_host
2925
ac_save_IFS=$IFS; IFS='-'
2926
set x $ac_cv_host
2927
shift
2928
host_cpu=$1
2929
host_vendor=$2
2930
shift; shift
2931
# Remember, the first character of IFS is used to create $*,
2932
# except with old shells:
2933
host_os=$*
2934
IFS=$ac_save_IFS
2935
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2937
2938
DEPDIR="${am__leading_dot}deps"
2939
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2940
ac_config_commands="$ac_config_commands depfiles"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2941
2942
2943
am_make=${MAKE-make}
2944
cat > confinc << 'END'
2945
am__doit:
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2946
	@echo this is the am__doit target
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2947
.PHONY: am__doit
2948
END
2949
# If we don't find an include directive, just comment out the code.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2951
$as_echo_n "checking for style of include used by $am_make... " >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2952
am__include="#"
2953
am__quote=
2954
_am_result=none
2955
# First try GNU make style include.
2956
echo "include confinc" > confmf
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2957
# Ignore all kinds of additional output from `make'.
2958
case `$am_make -s -f confmf 2> /dev/null` in #(
2959
*the\ am__doit\ target*)
2960
  am__include=include
2961
  am__quote=
2962
  _am_result=GNU
2963
  ;;
2964
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2965
# Now try BSD make style include.
2966
if test "$am__include" = "#"; then
2967
   echo '.include "confinc"' > confmf
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2968
   case `$am_make -s -f confmf 2> /dev/null` in #(
2969
   *the\ am__doit\ target*)
2970
     am__include=.include
2971
     am__quote="\""
2972
     _am_result=BSD
2973
     ;;
2974
   esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2975
fi
2976
2977
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
2979
$as_echo "$_am_result" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2980
rm -f confinc confmf
2981
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2982
# Check whether --enable-dependency-tracking was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
2983
if test "${enable_dependency_tracking+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
2984
  enableval=$enable_dependency_tracking;
2985
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2986
2987
if test "x$enable_dependency_tracking" != xno; then
2988
  am_depcomp="$ac_aux_dir/depcomp"
2989
  AMDEPBACKSLASH='\'
2990
fi
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
2991
 if test "x$enable_dependency_tracking" != xno; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
2992
  AMDEP_TRUE=
2993
  AMDEP_FALSE='#'
2994
else
2995
  AMDEP_TRUE='#'
2996
  AMDEP_FALSE=
2997
fi
2998
2999
3000
ac_ext=c
3001
ac_cpp='$CPP $CPPFLAGS'
3002
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
if test -n "$ac_tool_prefix"; then
3006
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3007
set dummy ${ac_tool_prefix}gcc; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3009
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3010
if test "${ac_cv_prog_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3011
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3012
else
3013
  if test -n "$CC"; then
3014
  ac_cv_prog_CC="$CC" # Let the user override the test.
3015
else
3016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017
for as_dir in $PATH
3018
do
3019
  IFS=$as_save_IFS
3020
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3021
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3022
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3023
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3024
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3025
    break 2
3026
  fi
3027
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3028
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3029
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3030
3031
fi
3032
fi
3033
CC=$ac_cv_prog_CC
3034
if test -n "$CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3035
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3036
$as_echo "$CC" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3037
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3039
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3040
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3041
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3042
3043
fi
3044
if test -z "$ac_cv_prog_CC"; then
3045
  ac_ct_CC=$CC
3046
  # Extract the first word of "gcc", so it can be a program name with args.
3047
set dummy gcc; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3049
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3050
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3051
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3052
else
3053
  if test -n "$ac_ct_CC"; then
3054
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055
else
3056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057
for as_dir in $PATH
3058
do
3059
  IFS=$as_save_IFS
3060
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3061
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3062
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3063
    ac_cv_prog_ac_ct_CC="gcc"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3064
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3065
    break 2
3066
  fi
3067
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3068
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3069
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3070
3071
fi
3072
fi
3073
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074
if test -n "$ac_ct_CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3076
$as_echo "$ac_ct_CC" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3077
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3079
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3080
fi
3081
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3082
  if test "x$ac_ct_CC" = x; then
3083
    CC=""
3084
  else
3085
    case $cross_compiling:$ac_tool_warned in
3086
yes:)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3088
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3089
ac_tool_warned=yes ;;
3090
esac
3091
    CC=$ac_ct_CC
3092
  fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3093
else
3094
  CC="$ac_cv_prog_CC"
3095
fi
3096
3097
if test -z "$CC"; then
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3098
          if test -n "$ac_tool_prefix"; then
3099
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3100
set dummy ${ac_tool_prefix}cc; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3102
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3103
if test "${ac_cv_prog_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3104
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3105
else
3106
  if test -n "$CC"; then
3107
  ac_cv_prog_CC="$CC" # Let the user override the test.
3108
else
3109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110
for as_dir in $PATH
3111
do
3112
  IFS=$as_save_IFS
3113
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3114
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3115
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3116
    ac_cv_prog_CC="${ac_tool_prefix}cc"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3117
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3118
    break 2
3119
  fi
3120
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3121
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3122
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3123
3124
fi
3125
fi
3126
CC=$ac_cv_prog_CC
3127
if test -n "$CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3129
$as_echo "$CC" >&6; }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3130
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3132
$as_echo "no" >&6; }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3133
fi
3134
3135
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3136
  fi
3137
fi
3138
if test -z "$CC"; then
3139
  # Extract the first word of "cc", so it can be a program name with args.
3140
set dummy cc; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3142
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3143
if test "${ac_cv_prog_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3144
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3145
else
3146
  if test -n "$CC"; then
3147
  ac_cv_prog_CC="$CC" # Let the user override the test.
3148
else
3149
  ac_prog_rejected=no
3150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151
for as_dir in $PATH
3152
do
3153
  IFS=$as_save_IFS
3154
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3155
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3156
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3157
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158
       ac_prog_rejected=yes
3159
       continue
3160
     fi
3161
    ac_cv_prog_CC="cc"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3163
    break 2
3164
  fi
3165
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3166
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3167
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3168
3169
if test $ac_prog_rejected = yes; then
3170
  # We found a bogon in the path, so make sure we never use it.
3171
  set dummy $ac_cv_prog_CC
3172
  shift
3173
  if test $# != 0; then
3174
    # We chose a different compiler from the bogus one.
3175
    # However, it has the same basename, so the bogon will be chosen
3176
    # first if we set CC to just the basename; use the full file name.
3177
    shift
3178
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179
  fi
3180
fi
3181
fi
3182
fi
3183
CC=$ac_cv_prog_CC
3184
if test -n "$CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3186
$as_echo "$CC" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3187
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3189
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3190
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3191
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3192
3193
fi
3194
if test -z "$CC"; then
3195
  if test -n "$ac_tool_prefix"; then
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3196
  for ac_prog in cl.exe
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3197
  do
3198
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3201
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3202
if test "${ac_cv_prog_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3203
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3204
else
3205
  if test -n "$CC"; then
3206
  ac_cv_prog_CC="$CC" # Let the user override the test.
3207
else
3208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209
for as_dir in $PATH
3210
do
3211
  IFS=$as_save_IFS
3212
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3213
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3214
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3215
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3216
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3217
    break 2
3218
  fi
3219
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3220
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3221
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3222
3223
fi
3224
fi
3225
CC=$ac_cv_prog_CC
3226
if test -n "$CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3228
$as_echo "$CC" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3229
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3231
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3232
fi
3233
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3234
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3235
    test -n "$CC" && break
3236
  done
3237
fi
3238
if test -z "$CC"; then
3239
  ac_ct_CC=$CC
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3240
  for ac_prog in cl.exe
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3241
do
3242
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243
set dummy $ac_prog; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3245
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3246
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3247
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3248
else
3249
  if test -n "$ac_ct_CC"; then
3250
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251
else
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253
for as_dir in $PATH
3254
do
3255
  IFS=$as_save_IFS
3256
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3257
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3259
    ac_cv_prog_ac_ct_CC="$ac_prog"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3260
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3261
    break 2
3262
  fi
3263
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3264
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3265
IFS=$as_save_IFS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3266
3267
fi
3268
fi
3269
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270
if test -n "$ac_ct_CC"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3272
$as_echo "$ac_ct_CC" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3273
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3274
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3275
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3276
fi
3277
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3278
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3279
  test -n "$ac_ct_CC" && break
3280
done
3281
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3282
  if test "x$ac_ct_CC" = x; then
3283
    CC=""
3284
  else
3285
    case $cross_compiling:$ac_tool_warned in
3286
yes:)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3287
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3288
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3289
ac_tool_warned=yes ;;
3290
esac
3291
    CC=$ac_ct_CC
3292
  fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3293
fi
3294
3295
fi
3296
3297
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3298
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3299
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3300
as_fn_error "no acceptable C compiler found in \$PATH
3301
See \`config.log' for more details." "$LINENO" 5; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3302
3303
# Provide some information about the compiler.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3304
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3305
set X $ac_compile
3306
ac_compiler=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3307
for ac_option in --version -v -V -qversion; do
3308
  { { ac_try="$ac_compiler $ac_option >&5"
3309
case "(($ac_try" in
3310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311
  *) ac_try_echo=$ac_try;;
3312
esac
3313
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314
$as_echo "$ac_try_echo"; } >&5
3315
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3316
  ac_status=$?
3317
  if test -s conftest.err; then
3318
    sed '10a\
3319
... rest of stderr output deleted ...
3320
         10q' conftest.err >conftest.er1
3321
    cat conftest.er1 >&5
3322
  fi
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3323
  rm -f conftest.er1 conftest.err
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3324
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325
  test $ac_status = 0; }
3326
done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3327
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3329
/* end confdefs.h.  */
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3330
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3331
int
3332
main ()
3333
{
3334
3335
  ;
3336
  return 0;
3337
}
3338
_ACEOF
3339
ac_clean_files_save=$ac_clean_files
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3340
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3341
# Try to create an executable without -o first, disregard a.out.
3342
# It will help us diagnose broken compilers, and finding out an intuition
3343
# of exeext.
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3345
$as_echo_n "checking whether the C compiler works... " >&6; }
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3346
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3347
3348
# The possible output files:
3349
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3350
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3351
ac_rmfiles=
3352
for ac_file in $ac_files
3353
do
3354
  case $ac_file in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3355
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3356
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3357
  esac
3358
done
3359
rm -f $ac_rmfiles
3360
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3361
if { { ac_try="$ac_link_default"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3362
case "(($ac_try" in
3363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364
  *) ac_try_echo=$ac_try;;
3365
esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3366
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367
$as_echo "$ac_try_echo"; } >&5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3368
  (eval "$ac_link_default") 2>&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3369
  ac_status=$?
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3370
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371
  test $ac_status = 0; }; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3372
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3373
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3374
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3375
# so that the user can short-circuit this test for compilers unknown to
3376
# Autoconf.
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3377
for ac_file in $ac_files ''
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3378
do
3379
  test -f "$ac_file" || continue
3380
  case $ac_file in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3381
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3382
	;;
3383
    [ab].out )
3384
	# We found the default executable, but exeext='' is most
3385
	# certainly right.
3386
	break;;
3387
    *.* )
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3388
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3389
	then :; else
3390
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391
	fi
3392
	# We set ac_cv_exeext here because the later test for it is not
3393
	# safe: cross compilers may not add the suffix if given an `-o'
3394
	# argument, so we may need to know it at that point already.
3395
	# Even if this section looks crufty: it has the advantage of
3396
	# actually working.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3397
	break;;
3398
    * )
3399
	break;;
3400
  esac
3401
done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3402
test "$ac_cv_exeext" = no && ac_cv_exeext=
3403
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3404
else
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
3405
  ac_file=''
3406
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3407
if test -z "$ac_file"; then :
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409
$as_echo "no" >&6; }
3410
$as_echo "$as_me: failed program was:" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3411
sed 's/^/| /' conftest.$ac_ext >&5
3412
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3413
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3414
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3415
{ as_fn_set_status 77
3416
as_fn_error "C compiler cannot create executables
3417
See \`config.log' for more details." "$LINENO" 5; }; }
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3418
else
3419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3420
$as_echo "yes" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3421
fi
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3423
$as_echo_n "checking for C compiler default output file name... " >&6; }
3424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3425
$as_echo "$ac_file" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3426
ac_exeext=$ac_cv_exeext
3427
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3428
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3429
ac_clean_files=$ac_clean_files_save
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3431
$as_echo_n "checking for suffix of executables... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3432
if { { ac_try="$ac_link"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3433
case "(($ac_try" in
3434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435
  *) ac_try_echo=$ac_try;;
3436
esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438
$as_echo "$ac_try_echo"; } >&5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3439
  (eval "$ac_link") 2>&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3440
  ac_status=$?
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3441
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442
  test $ac_status = 0; }; then :
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3443
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445
# work properly (i.e., refer to `conftest.exe'), while it won't with
3446
# `rm'.
3447
for ac_file in conftest.exe conftest conftest.*; do
3448
  test -f "$ac_file" || continue
3449
  case $ac_file in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3450
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3451
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452
	  break;;
3453
    * ) break;;
3454
  esac
3455
done
3456
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3457
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3458
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3459
as_fn_error "cannot compute suffix of executables: cannot compile and link
3460
See \`config.log' for more details." "$LINENO" 5; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3461
fi
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3462
rm -f conftest conftest$ac_cv_exeext
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3464
$as_echo "$ac_cv_exeext" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3465
3466
rm -f conftest.$ac_ext
3467
EXEEXT=$ac_cv_exeext
3468
ac_exeext=$EXEEXT
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3469
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470
/* end confdefs.h.  */
3471
#include <stdio.h>
3472
int
3473
main ()
3474
{
3475
FILE *f = fopen ("conftest.out", "w");
3476
 return ferror (f) || fclose (f) != 0;
3477
3478
  ;
3479
  return 0;
3480
}
3481
_ACEOF
3482
ac_clean_files="$ac_clean_files conftest.out"
3483
# Check that the compiler produces executables we can run.  If not, either
3484
# the compiler is broken, or we cross compile.
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486
$as_echo_n "checking whether we are cross compiling... " >&6; }
3487
if test "$cross_compiling" != yes; then
3488
  { { ac_try="$ac_link"
3489
case "(($ac_try" in
3490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491
  *) ac_try_echo=$ac_try;;
3492
esac
3493
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494
$as_echo "$ac_try_echo"; } >&5
3495
  (eval "$ac_link") 2>&5
3496
  ac_status=$?
3497
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498
  test $ac_status = 0; }
3499
  if { ac_try='./conftest$ac_cv_exeext'
3500
  { { case "(($ac_try" in
3501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502
  *) ac_try_echo=$ac_try;;
3503
esac
3504
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505
$as_echo "$ac_try_echo"; } >&5
3506
  (eval "$ac_try") 2>&5
3507
  ac_status=$?
3508
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509
  test $ac_status = 0; }; }; then
3510
    cross_compiling=no
3511
  else
3512
    if test "$cross_compiling" = maybe; then
3513
	cross_compiling=yes
3514
    else
3515
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517
as_fn_error "cannot run C compiled programs.
3518
If you meant to cross compile, use \`--host'.
3519
See \`config.log' for more details." "$LINENO" 5; }
3520
    fi
3521
  fi
3522
fi
3523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3524
$as_echo "$cross_compiling" >&6; }
3525
3526
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3527
ac_clean_files=$ac_clean_files_save
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3529
$as_echo_n "checking for suffix of object files... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3530
if test "${ac_cv_objext+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3531
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3532
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3533
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3534
/* end confdefs.h.  */
3535
3536
int
3537
main ()
3538
{
3539
3540
  ;
3541
  return 0;
3542
}
3543
_ACEOF
3544
rm -f conftest.o conftest.obj
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3545
if { { ac_try="$ac_compile"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3546
case "(($ac_try" in
3547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548
  *) ac_try_echo=$ac_try;;
3549
esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3550
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551
$as_echo "$ac_try_echo"; } >&5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3552
  (eval "$ac_compile") 2>&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3553
  ac_status=$?
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3554
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555
  test $ac_status = 0; }; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3556
  for ac_file in conftest.o conftest.obj conftest.*; do
3557
  test -f "$ac_file" || continue;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3558
  case $ac_file in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3559
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3560
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3561
       break;;
3562
  esac
3563
done
3564
else
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3565
  $as_echo "$as_me: failed program was:" >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3566
sed 's/^/| /' conftest.$ac_ext >&5
3567
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3568
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3569
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3570
as_fn_error "cannot compute suffix of object files: cannot compile
3571
See \`config.log' for more details." "$LINENO" 5; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3572
fi
3573
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3574
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3576
$as_echo "$ac_cv_objext" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3577
OBJEXT=$ac_cv_objext
3578
ac_objext=$OBJEXT
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3580
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3581
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3582
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3583
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3584
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3585
/* end confdefs.h.  */
3586
3587
int
3588
main ()
3589
{
3590
#ifndef __GNUC__
3591
       choke me
3592
#endif
3593
3594
  ;
3595
  return 0;
3596
}
3597
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3598
if ac_fn_c_try_compile "$LINENO"; then :
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3599
  ac_compiler_gnu=yes
3600
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3601
  ac_compiler_gnu=no
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3602
fi
51 by Colin Watson
* Rename configure.in to configure.ac.
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3604
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605
3606
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3608
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3609
if test $ac_compiler_gnu = yes; then
3610
  GCC=yes
3611
else
3612
  GCC=
3613
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3614
ac_test_CFLAGS=${CFLAGS+set}
3615
ac_save_CFLAGS=$CFLAGS
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3617
$as_echo_n "checking whether $CC accepts -g... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3618
if test "${ac_cv_prog_cc_g+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3619
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3620
else
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3621
  ac_save_c_werror_flag=$ac_c_werror_flag
3622
   ac_c_werror_flag=yes
3623
   ac_cv_prog_cc_g=no
3624
   CFLAGS="-g"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3625
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3626
/* end confdefs.h.  */
3627
3628
int
3629
main ()
3630
{
3631
3632
  ;
3633
  return 0;
3634
}
3635
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3636
if ac_fn_c_try_compile "$LINENO"; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3637
  ac_cv_prog_cc_g=yes
3638
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3639
  CFLAGS=""
3640
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3641
/* end confdefs.h.  */
3642
3643
int
3644
main ()
3645
{
3646
3647
  ;
3648
  return 0;
3649
}
3650
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3651
if ac_fn_c_try_compile "$LINENO"; then :
3652
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3653
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3654
  ac_c_werror_flag=$ac_save_c_werror_flag
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3655
	 CFLAGS="-g"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3656
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3657
/* end confdefs.h.  */
3658
3659
int
3660
main ()
3661
{
3662
3663
  ;
3664
  return 0;
3665
}
3666
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3667
if ac_fn_c_try_compile "$LINENO"; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3668
  ac_cv_prog_cc_g=yes
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3669
fi
3670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671
fi
3672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673
fi
51 by Colin Watson
* Rename configure.in to configure.ac.
3674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3675
   ac_c_werror_flag=$ac_save_c_werror_flag
3676
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3678
$as_echo "$ac_cv_prog_cc_g" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3679
if test "$ac_test_CFLAGS" = set; then
3680
  CFLAGS=$ac_save_CFLAGS
3681
elif test $ac_cv_prog_cc_g = yes; then
3682
  if test "$GCC" = yes; then
3683
    CFLAGS="-g -O2"
3684
  else
3685
    CFLAGS="-g"
3686
  fi
3687
else
3688
  if test "$GCC" = yes; then
3689
    CFLAGS="-O2"
3690
  else
3691
    CFLAGS=
3692
  fi
3693
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3695
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3696
if test "${ac_cv_prog_cc_c89+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3697
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3698
else
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3699
  ac_cv_prog_cc_c89=no
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3700
ac_save_CC=$CC
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3702
/* end confdefs.h.  */
3703
#include <stdarg.h>
3704
#include <stdio.h>
3705
#include <sys/types.h>
3706
#include <sys/stat.h>
3707
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3708
struct buf { int x; };
3709
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710
static char *e (p, i)
3711
     char **p;
3712
     int i;
3713
{
3714
  return p[i];
3715
}
3716
static char *f (char * (*g) (char **, int), char **p, ...)
3717
{
3718
  char *s;
3719
  va_list v;
3720
  va_start (v,p);
3721
  s = g (p, va_arg (v,int));
3722
  va_end (v);
3723
  return s;
3724
}
3725
3726
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3727
   function prototypes and stuff, but not '\xHH' hex character constants.
3728
   These don't provoke an error unfortunately, instead are silently treated
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3729
   as 'x'.  The following induces an error, until -std is added to get
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3730
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3731
   array size at least.  It's necessary to write '\x00'==0 to get something
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3732
   that's true only with -std.  */
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3733
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734
51 by Colin Watson
* Rename configure.in to configure.ac.
3735
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736
   inside strings and character constants.  */
3737
#define FOO(x) 'x'
3738
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3740
int test (int i, double x);
3741
struct s1 {int (*f) (int a);};
3742
struct s2 {int (*f) (double a);};
3743
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744
int argc;
3745
char **argv;
3746
int
3747
main ()
3748
{
3749
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3750
  ;
3751
  return 0;
3752
}
3753
_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3754
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3756
do
3757
  CC="$ac_save_CC $ac_arg"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3758
  if ac_fn_c_try_compile "$LINENO"; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3759
  ac_cv_prog_cc_c89=$ac_arg
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3760
fi
51 by Colin Watson
* Rename configure.in to configure.ac.
3761
rm -f core conftest.err conftest.$ac_objext
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3762
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3763
done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3764
rm -f conftest.$ac_ext
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3765
CC=$ac_save_CC
3766
3767
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3768
# AC_CACHE_VAL
3769
case "x$ac_cv_prog_cc_c89" in
3770
  x)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3771
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3772
$as_echo "none needed" >&6; } ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3773
  xno)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3774
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3775
$as_echo "unsupported" >&6; } ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3776
  *)
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3777
    CC="$CC $ac_cv_prog_cc_c89"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3778
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3779
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3780
esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3781
if test "x$ac_cv_prog_cc_c89" != xno; then :
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3782
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3783
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
3784
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3785
ac_ext=c
3786
ac_cpp='$CPP $CPPFLAGS'
3787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791
depcc="$CC"   am_compiler_list=
3792
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3794
$as_echo_n "checking dependency style of $depcc... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3795
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3796
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3797
else
3798
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799
  # We make a subdir and do the tests there.  Otherwise we can end up
3800
  # making bogus files that we don't know about and never remove.  For
3801
  # instance it was reported that on HP-UX the gcc test will end up
3802
  # making a dummy file named `D' -- because `-MD' means `put the output
3803
  # in D'.
3804
  mkdir conftest.dir
3805
  # Copy depcomp to subdir because otherwise we won't find it if we're
3806
  # using a relative directory.
3807
  cp "$am_depcomp" conftest.dir
3808
  cd conftest.dir
3809
  # We will build objects and dependencies in a subdirectory because
3810
  # it helps to detect inapplicable dependency modes.  For instance
3811
  # both Tru64's cc and ICC support -MD to output dependencies as a
3812
  # side effect of compilation, but ICC will put the dependencies in
3813
  # the current directory while Tru64 will put them in the object
3814
  # directory.
3815
  mkdir sub
3816
3817
  am_cv_CC_dependencies_compiler_type=none
3818
  if test "$am_compiler_list" = ""; then
3819
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820
  fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3821
  am__universal=false
3822
  case " $depcc " in #(
3823
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3824
     esac
3825
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3826
  for depmode in $am_compiler_list; do
3827
    # Setup a source with many dependencies, because some compilers
3828
    # like to wrap large dependency lists on column 80 (with \), and
3829
    # we should not choose a depcomp mode which is confused by this.
3830
    #
3831
    # We need to recreate these files for each test, as the compiler may
3832
    # overwrite some of them when testing with obscure command lines.
3833
    # This happens at least with the AIX C compiler.
3834
    : > sub/conftest.c
3835
    for i in 1 2 3 4 5 6; do
3836
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838
      # Solaris 8's {/usr,}/bin/sh.
3839
      touch sub/conftst$i.h
3840
    done
3841
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3843
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844
    # mode.  It turns out that the SunPro C++ compiler does not properly
3845
    # handle `-M -o', and we need to detect this.  Also, some Intel
3846
    # versions had trouble with output in subdirs
3847
    am__obj=sub/conftest.${OBJEXT-o}
3848
    am__minus_obj="-o $am__obj"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3849
    case $depmode in
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3850
    gcc)
3851
      # This depmode causes a compiler race in universal mode.
3852
      test "$am__universal" = false || continue
3853
      ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3854
    nosideeffect)
3855
      # after this tag, mechanisms are not by side-effect, so they'll
3856
      # only be used when explicitly requested
3857
      if test "x$enable_dependency_tracking" = xyes; then
3858
	continue
3859
      else
3860
	break
3861
      fi
3862
      ;;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3863
    msvisualcpp | msvcmsys)
3864
      # This compiler won't grok `-c -o', but also, the minuso test has
3865
      # not run yet.  These depmodes are late enough in the game, and
3866
      # so weak that their functioning should not be impacted.
3867
      am__obj=conftest.${OBJEXT-o}
3868
      am__minus_obj=
3869
      ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3870
    none) break ;;
3871
    esac
3872
    if depmode=$depmode \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3873
       source=sub/conftest.c object=$am__obj \
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3874
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3875
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3876
         >/dev/null 2>conftest.err &&
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
3877
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3878
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3879
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3880
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3881
      # icc doesn't choke on unknown options, it will just issue warnings
3882
      # or remarks (even with -Werror).  So we grep stderr for any message
3883
      # that says an option was ignored or not supported.
3884
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3885
      #   icc: Command line warning: ignoring option '-M'; no argument required
3886
      # The diagnosis changed in icc 8.0:
3887
      #   icc: Command line remark: option '-MP' not supported
3888
      if (grep 'ignoring option' conftest.err ||
3889
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3890
        am_cv_CC_dependencies_compiler_type=$depmode
3891
        break
3892
      fi
3893
    fi
3894
  done
3895
3896
  cd ..
3897
  rm -rf conftest.dir
3898
else
3899
  am_cv_CC_dependencies_compiler_type=none
3900
fi
3901
3902
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
3904
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3905
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3906
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
3907
 if
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
3908
  test "x$enable_dependency_tracking" != xno \
3909
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910
  am__fastdepCC_TRUE=
3911
  am__fastdepCC_FALSE='#'
3912
else
3913
  am__fastdepCC_TRUE='#'
3914
  am__fastdepCC_FALSE=
3915
fi
3916
3917
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
3918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3919
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3920
if test "${ac_cv_path_SED+set}" = set; then :
3921
  $as_echo_n "(cached) " >&6
3922
else
3923
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3924
     for ac_i in 1 2 3 4 5 6 7; do
3925
       ac_script="$ac_script$as_nl$ac_script"
3926
     done
3927
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3928
     { ac_script=; unset ac_script;}
3929
     if test -z "$SED"; then
3930
  ac_path_SED_found=false
3931
  # Loop through the user's path and test for each of PROGNAME-LIST
3932
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933
for as_dir in $PATH
3934
do
3935
  IFS=$as_save_IFS
3936
  test -z "$as_dir" && as_dir=.
3937
    for ac_prog in sed gsed; do
3938
    for ac_exec_ext in '' $ac_executable_extensions; do
3939
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3940
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3941
# Check for GNU ac_path_SED and select it if it is found.
3942
  # Check for GNU $ac_path_SED
3943
case `"$ac_path_SED" --version 2>&1` in
3944
*GNU*)
3945
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3946
*)
3947
  ac_count=0
3948
  $as_echo_n 0123456789 >"conftest.in"
3949
  while :
3950
  do
3951
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3952
    mv "conftest.tmp" "conftest.in"
3953
    cp "conftest.in" "conftest.nl"
3954
    $as_echo '' >> "conftest.nl"
3955
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3958
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3959
      # Best one so far, save it but keep looking for a better one
3960
      ac_cv_path_SED="$ac_path_SED"
3961
      ac_path_SED_max=$ac_count
3962
    fi
3963
    # 10*(2^10) chars as input seems more than enough
3964
    test $ac_count -gt 10 && break
3965
  done
3966
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967
esac
3968
3969
      $ac_path_SED_found && break 3
3970
    done
3971
  done
3972
  done
3973
IFS=$as_save_IFS
3974
  if test -z "$ac_cv_path_SED"; then
3975
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3976
  fi
3977
else
3978
  ac_cv_path_SED=$SED
3979
fi
3980
3981
fi
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3983
$as_echo "$ac_cv_path_SED" >&6; }
3984
 SED="$ac_cv_path_SED"
3985
  rm -f conftest.sed
3986
3987
test -z "$SED" && SED=sed
3988
Xsed="$SED -e 1s/^X//"
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4001
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4002
if test "${ac_cv_path_GREP+set}" = set; then :
4003
  $as_echo_n "(cached) " >&6
4004
else
4005
  if test -z "$GREP"; then
4006
  ac_path_GREP_found=false
4007
  # Loop through the user's path and test for each of PROGNAME-LIST
4008
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010
do
4011
  IFS=$as_save_IFS
4012
  test -z "$as_dir" && as_dir=.
4013
    for ac_prog in grep ggrep; do
4014
    for ac_exec_ext in '' $ac_executable_extensions; do
4015
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4016
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4017
# Check for GNU ac_path_GREP and select it if it is found.
4018
  # Check for GNU $ac_path_GREP
4019
case `"$ac_path_GREP" --version 2>&1` in
4020
*GNU*)
4021
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4022
*)
4023
  ac_count=0
4024
  $as_echo_n 0123456789 >"conftest.in"
4025
  while :
4026
  do
4027
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4028
    mv "conftest.tmp" "conftest.in"
4029
    cp "conftest.in" "conftest.nl"
4030
    $as_echo 'GREP' >> "conftest.nl"
4031
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4034
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035
      # Best one so far, save it but keep looking for a better one
4036
      ac_cv_path_GREP="$ac_path_GREP"
4037
      ac_path_GREP_max=$ac_count
4038
    fi
4039
    # 10*(2^10) chars as input seems more than enough
4040
    test $ac_count -gt 10 && break
4041
  done
4042
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043
esac
4044
4045
      $ac_path_GREP_found && break 3
4046
    done
4047
  done
4048
  done
4049
IFS=$as_save_IFS
4050
  if test -z "$ac_cv_path_GREP"; then
4051
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4052
  fi
4053
else
4054
  ac_cv_path_GREP=$GREP
4055
fi
4056
4057
fi
4058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4059
$as_echo "$ac_cv_path_GREP" >&6; }
4060
 GREP="$ac_cv_path_GREP"
4061
4062
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4064
$as_echo_n "checking for egrep... " >&6; }
4065
if test "${ac_cv_path_EGREP+set}" = set; then :
4066
  $as_echo_n "(cached) " >&6
4067
else
4068
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4069
   then ac_cv_path_EGREP="$GREP -E"
4070
   else
4071
     if test -z "$EGREP"; then
4072
  ac_path_EGREP_found=false
4073
  # Loop through the user's path and test for each of PROGNAME-LIST
4074
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076
do
4077
  IFS=$as_save_IFS
4078
  test -z "$as_dir" && as_dir=.
4079
    for ac_prog in egrep; do
4080
    for ac_exec_ext in '' $ac_executable_extensions; do
4081
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083
# Check for GNU ac_path_EGREP and select it if it is found.
4084
  # Check for GNU $ac_path_EGREP
4085
case `"$ac_path_EGREP" --version 2>&1` in
4086
*GNU*)
4087
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088
*)
4089
  ac_count=0
4090
  $as_echo_n 0123456789 >"conftest.in"
4091
  while :
4092
  do
4093
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4094
    mv "conftest.tmp" "conftest.in"
4095
    cp "conftest.in" "conftest.nl"
4096
    $as_echo 'EGREP' >> "conftest.nl"
4097
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4100
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101
      # Best one so far, save it but keep looking for a better one
4102
      ac_cv_path_EGREP="$ac_path_EGREP"
4103
      ac_path_EGREP_max=$ac_count
4104
    fi
4105
    # 10*(2^10) chars as input seems more than enough
4106
    test $ac_count -gt 10 && break
4107
  done
4108
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109
esac
4110
4111
      $ac_path_EGREP_found && break 3
4112
    done
4113
  done
4114
  done
4115
IFS=$as_save_IFS
4116
  if test -z "$ac_cv_path_EGREP"; then
4117
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118
  fi
4119
else
4120
  ac_cv_path_EGREP=$EGREP
4121
fi
4122
4123
   fi
4124
fi
4125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4126
$as_echo "$ac_cv_path_EGREP" >&6; }
4127
 EGREP="$ac_cv_path_EGREP"
4128
4129
4130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4131
$as_echo_n "checking for fgrep... " >&6; }
4132
if test "${ac_cv_path_FGREP+set}" = set; then :
4133
  $as_echo_n "(cached) " >&6
4134
else
4135
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4136
   then ac_cv_path_FGREP="$GREP -F"
4137
   else
4138
     if test -z "$FGREP"; then
4139
  ac_path_FGREP_found=false
4140
  # Loop through the user's path and test for each of PROGNAME-LIST
4141
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143
do
4144
  IFS=$as_save_IFS
4145
  test -z "$as_dir" && as_dir=.
4146
    for ac_prog in fgrep; do
4147
    for ac_exec_ext in '' $ac_executable_extensions; do
4148
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4149
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4150
# Check for GNU ac_path_FGREP and select it if it is found.
4151
  # Check for GNU $ac_path_FGREP
4152
case `"$ac_path_FGREP" --version 2>&1` in
4153
*GNU*)
4154
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4155
*)
4156
  ac_count=0
4157
  $as_echo_n 0123456789 >"conftest.in"
4158
  while :
4159
  do
4160
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4161
    mv "conftest.tmp" "conftest.in"
4162
    cp "conftest.in" "conftest.nl"
4163
    $as_echo 'FGREP' >> "conftest.nl"
4164
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4167
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4168
      # Best one so far, save it but keep looking for a better one
4169
      ac_cv_path_FGREP="$ac_path_FGREP"
4170
      ac_path_FGREP_max=$ac_count
4171
    fi
4172
    # 10*(2^10) chars as input seems more than enough
4173
    test $ac_count -gt 10 && break
4174
  done
4175
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176
esac
4177
4178
      $ac_path_FGREP_found && break 3
4179
    done
4180
  done
4181
  done
4182
IFS=$as_save_IFS
4183
  if test -z "$ac_cv_path_FGREP"; then
4184
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185
  fi
4186
else
4187
  ac_cv_path_FGREP=$FGREP
4188
fi
4189
4190
   fi
4191
fi
4192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4193
$as_echo "$ac_cv_path_FGREP" >&6; }
4194
 FGREP="$ac_cv_path_FGREP"
4195
4196
4197
test -z "$GREP" && GREP=grep
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
# Check whether --with-gnu-ld was given.
4218
if test "${with_gnu_ld+set}" = set; then :
4219
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4220
else
4221
  with_gnu_ld=no
4222
fi
4223
4224
ac_prog=ld
4225
if test "$GCC" = yes; then
4226
  # Check if gcc -print-prog-name=ld gives a path.
4227
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4228
$as_echo_n "checking for ld used by $CC... " >&6; }
4229
  case $host in
4230
  *-*-mingw*)
4231
    # gcc leaves a trailing carriage return which upsets mingw
4232
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4233
  *)
4234
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4235
  esac
4236
  case $ac_prog in
4237
    # Accept absolute paths.
4238
    [\\/]* | ?:[\\/]*)
4239
      re_direlt='/[^/][^/]*/\.\./'
4240
      # Canonicalize the pathname of ld
4241
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4242
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4243
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4244
      done
4245
      test -z "$LD" && LD="$ac_prog"
4246
      ;;
4247
  "")
4248
    # If it fails, then pretend we aren't using GCC.
4249
    ac_prog=ld
4250
    ;;
4251
  *)
4252
    # If it is relative, then search for the first ld in PATH.
4253
    with_gnu_ld=unknown
4254
    ;;
4255
  esac
4256
elif test "$with_gnu_ld" = yes; then
4257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4258
$as_echo_n "checking for GNU ld... " >&6; }
4259
else
4260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4261
$as_echo_n "checking for non-GNU ld... " >&6; }
4262
fi
4263
if test "${lt_cv_path_LD+set}" = set; then :
4264
  $as_echo_n "(cached) " >&6
4265
else
4266
  if test -z "$LD"; then
4267
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4268
  for ac_dir in $PATH; do
4269
    IFS="$lt_save_ifs"
4270
    test -z "$ac_dir" && ac_dir=.
4271
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4272
      lt_cv_path_LD="$ac_dir/$ac_prog"
4273
      # Check to see if the program is GNU ld.  I'd rather use --version,
4274
      # but apparently some variants of GNU ld only accept -v.
4275
      # Break only if it was the GNU/non-GNU ld that we prefer.
4276
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4277
      *GNU* | *'with BFD'*)
4278
	test "$with_gnu_ld" != no && break
4279
	;;
4280
      *)
4281
	test "$with_gnu_ld" != yes && break
4282
	;;
4283
      esac
4284
    fi
4285
  done
4286
  IFS="$lt_save_ifs"
4287
else
4288
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4289
fi
4290
fi
4291
4292
LD="$lt_cv_path_LD"
4293
if test -n "$LD"; then
4294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4295
$as_echo "$LD" >&6; }
4296
else
4297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298
$as_echo "no" >&6; }
4299
fi
4300
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4302
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4303
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4304
  $as_echo_n "(cached) " >&6
4305
else
4306
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4307
case `$LD -v 2>&1 </dev/null` in
4308
*GNU* | *'with BFD'*)
4309
  lt_cv_prog_gnu_ld=yes
4310
  ;;
4311
*)
4312
  lt_cv_prog_gnu_ld=no
4313
  ;;
4314
esac
4315
fi
4316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4317
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4318
with_gnu_ld=$lt_cv_prog_gnu_ld
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4329
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4330
if test "${lt_cv_path_NM+set}" = set; then :
4331
  $as_echo_n "(cached) " >&6
4332
else
4333
  if test -n "$NM"; then
4334
  # Let the user override the test.
4335
  lt_cv_path_NM="$NM"
4336
else
4337
  lt_nm_to_check="${ac_tool_prefix}nm"
4338
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4339
    lt_nm_to_check="$lt_nm_to_check nm"
4340
  fi
4341
  for lt_tmp_nm in $lt_nm_to_check; do
4342
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4343
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4344
      IFS="$lt_save_ifs"
4345
      test -z "$ac_dir" && ac_dir=.
4346
      tmp_nm="$ac_dir/$lt_tmp_nm"
4347
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4348
	# Check to see if the nm accepts a BSD-compat flag.
4349
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4350
	#   nm: unknown option "B" ignored
4351
	# Tru64's nm complains that /dev/null is an invalid object file
4352
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4353
	*/dev/null* | *'Invalid file or object type'*)
4354
	  lt_cv_path_NM="$tmp_nm -B"
4355
	  break
4356
	  ;;
4357
	*)
4358
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4359
	  */dev/null*)
4360
	    lt_cv_path_NM="$tmp_nm -p"
4361
	    break
4362
	    ;;
4363
	  *)
4364
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4365
	    continue # so that we can try to find one that supports BSD flags
4366
	    ;;
4367
	  esac
4368
	  ;;
4369
	esac
4370
      fi
4371
    done
4372
    IFS="$lt_save_ifs"
4373
  done
4374
  : ${lt_cv_path_NM=no}
4375
fi
4376
fi
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4378
$as_echo "$lt_cv_path_NM" >&6; }
4379
if test "$lt_cv_path_NM" != "no"; then
4380
  NM="$lt_cv_path_NM"
4381
else
4382
  # Didn't find any BSD compatible name lister, look for dumpbin.
4383
  if test -n "$ac_tool_prefix"; then
4384
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4385
  do
4386
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389
$as_echo_n "checking for $ac_word... " >&6; }
4390
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4391
  $as_echo_n "(cached) " >&6
4392
else
4393
  if test -n "$DUMPBIN"; then
4394
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4395
else
4396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397
for as_dir in $PATH
4398
do
4399
  IFS=$as_save_IFS
4400
  test -z "$as_dir" && as_dir=.
4401
    for ac_exec_ext in '' $ac_executable_extensions; do
4402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4404
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405
    break 2
4406
  fi
4407
done
4408
  done
4409
IFS=$as_save_IFS
4410
4411
fi
4412
fi
4413
DUMPBIN=$ac_cv_prog_DUMPBIN
4414
if test -n "$DUMPBIN"; then
4415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4416
$as_echo "$DUMPBIN" >&6; }
4417
else
4418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419
$as_echo "no" >&6; }
4420
fi
4421
4422
4423
    test -n "$DUMPBIN" && break
4424
  done
4425
fi
4426
if test -z "$DUMPBIN"; then
4427
  ac_ct_DUMPBIN=$DUMPBIN
4428
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4429
do
4430
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4431
set dummy $ac_prog; ac_word=$2
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433
$as_echo_n "checking for $ac_word... " >&6; }
4434
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4435
  $as_echo_n "(cached) " >&6
4436
else
4437
  if test -n "$ac_ct_DUMPBIN"; then
4438
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4439
else
4440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441
for as_dir in $PATH
4442
do
4443
  IFS=$as_save_IFS
4444
  test -z "$as_dir" && as_dir=.
4445
    for ac_exec_ext in '' $ac_executable_extensions; do
4446
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4448
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449
    break 2
4450
  fi
4451
done
4452
  done
4453
IFS=$as_save_IFS
4454
4455
fi
4456
fi
4457
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4458
if test -n "$ac_ct_DUMPBIN"; then
4459
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4460
$as_echo "$ac_ct_DUMPBIN" >&6; }
4461
else
4462
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463
$as_echo "no" >&6; }
4464
fi
4465
4466
4467
  test -n "$ac_ct_DUMPBIN" && break
4468
done
4469
4470
  if test "x$ac_ct_DUMPBIN" = x; then
4471
    DUMPBIN=":"
4472
  else
4473
    case $cross_compiling:$ac_tool_warned in
4474
yes:)
4475
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477
ac_tool_warned=yes ;;
4478
esac
4479
    DUMPBIN=$ac_ct_DUMPBIN
4480
  fi
4481
fi
4482
4483
4484
  if test "$DUMPBIN" != ":"; then
4485
    NM="$DUMPBIN"
4486
  fi
4487
fi
4488
test -z "$NM" && NM=nm
4489
4490
4491
4492
4493
4494
4495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4496
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4497
if test "${lt_cv_nm_interface+set}" = set; then :
4498
  $as_echo_n "(cached) " >&6
4499
else
4500
  lt_cv_nm_interface="BSD nm"
4501
  echo "int some_variable = 0;" > conftest.$ac_ext
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
4502
  (eval echo "\"\$as_me:4502: $ac_compile\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
4503
  (eval "$ac_compile" 2>conftest.err)
4504
  cat conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
4505
  (eval echo "\"\$as_me:4505: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
4506
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4507
  cat conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
4508
  (eval echo "\"\$as_me:4508: output\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
4509
  cat conftest.out >&5
4510
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4511
    lt_cv_nm_interface="MS dumpbin"
4512
  fi
4513
  rm -f conftest*
4514
fi
4515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4516
$as_echo "$lt_cv_nm_interface" >&6; }
4517
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519
$as_echo_n "checking whether ln -s works... " >&6; }
4520
LN_S=$as_ln_s
4521
if test "$LN_S" = "ln -s"; then
4522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523
$as_echo "yes" >&6; }
4524
else
4525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526
$as_echo "no, using $LN_S" >&6; }
4527
fi
4528
4529
# find the maximum length of command line arguments
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4531
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4533
  $as_echo_n "(cached) " >&6
4534
else
4535
    i=0
4536
  teststring="ABCD"
4537
4538
  case $build_os in
4539
  msdosdjgpp*)
4540
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4541
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4542
    # during glob expansion).  Even if it were fixed, the result of this
4543
    # check would be larger than it should be.
4544
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4545
    ;;
4546
4547
  gnu*)
4548
    # Under GNU Hurd, this test is not required because there is
4549
    # no limit to the length of command line arguments.
4550
    # Libtool will interpret -1 as no limit whatsoever
4551
    lt_cv_sys_max_cmd_len=-1;
4552
    ;;
4553
4554
  cygwin* | mingw* | cegcc*)
4555
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4556
    # about 5 minutes as the teststring grows exponentially.
4557
    # Worse, since 9x/ME are not pre-emptively multitasking,
4558
    # you end up with a "frozen" computer, even though with patience
4559
    # the test eventually succeeds (with a max line length of 256k).
4560
    # Instead, let's just punt: use the minimum linelength reported by
4561
    # all of the supported platforms: 8192 (on NT/2K/XP).
4562
    lt_cv_sys_max_cmd_len=8192;
4563
    ;;
4564
4565
  amigaos*)
4566
    # On AmigaOS with pdksh, this test takes hours, literally.
4567
    # So we just punt and use a minimum line length of 8192.
4568
    lt_cv_sys_max_cmd_len=8192;
4569
    ;;
4570
4571
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4572
    # This has been around since 386BSD, at least.  Likely further.
4573
    if test -x /sbin/sysctl; then
4574
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4575
    elif test -x /usr/sbin/sysctl; then
4576
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4577
    else
4578
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4579
    fi
4580
    # And add a safety zone
4581
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4582
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4583
    ;;
4584
4585
  interix*)
4586
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4587
    lt_cv_sys_max_cmd_len=196608
4588
    ;;
4589
4590
  osf*)
4591
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4592
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4593
    # nice to cause kernel panics so lets avoid the loop below.
4594
    # First set a reasonable default.
4595
    lt_cv_sys_max_cmd_len=16384
4596
    #
4597
    if test -x /sbin/sysconfig; then
4598
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4599
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4600
      esac
4601
    fi
4602
    ;;
4603
  sco3.2v5*)
4604
    lt_cv_sys_max_cmd_len=102400
4605
    ;;
4606
  sysv5* | sco5v6* | sysv4.2uw2*)
4607
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4608
    if test -n "$kargmax"; then
4609
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4610
    else
4611
      lt_cv_sys_max_cmd_len=32768
4612
    fi
4613
    ;;
4614
  *)
4615
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4616
    if test -n "$lt_cv_sys_max_cmd_len"; then
4617
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4618
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4619
    else
4620
      # Make teststring a little bigger before we do anything with it.
4621
      # a 1K string should be a reasonable start.
4622
      for i in 1 2 3 4 5 6 7 8 ; do
4623
        teststring=$teststring$teststring
4624
      done
4625
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4626
      # If test is not a shell built-in, we'll probably end up computing a
4627
      # maximum length that is only half of the actual maximum length, but
4628
      # we can't tell.
4629
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4630
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4631
	      test $i != 17 # 1/2 MB should be enough
4632
      do
4633
        i=`expr $i + 1`
4634
        teststring=$teststring$teststring
4635
      done
4636
      # Only check the string length outside the loop.
4637
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4638
      teststring=
4639
      # Add a significant safety factor because C++ compilers can tack on
4640
      # massive amounts of additional arguments before passing them to the
4641
      # linker.  It appears as though 1/2 is a usable value.
4642
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4643
    fi
4644
    ;;
4645
  esac
4646
4647
fi
4648
4649
if test -n $lt_cv_sys_max_cmd_len ; then
4650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4651
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4652
else
4653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4654
$as_echo "none" >&6; }
4655
fi
4656
max_cmd_len=$lt_cv_sys_max_cmd_len
4657
4658
4659
4660
4661
4662
4663
: ${CP="cp -f"}
4664
: ${MV="mv -f"}
4665
: ${RM="rm -f"}
4666
4667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4668
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4669
# Try some XSI features
4670
xsi_shell=no
4671
( _lt_dummy="a/b/c"
4672
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4673
      = c,a/b,, \
4674
    && eval 'test $(( 1 + 1 )) -eq 2 \
4675
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4676
  && xsi_shell=yes
4677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4678
$as_echo "$xsi_shell" >&6; }
4679
4680
4681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4682
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4683
lt_shell_append=no
4684
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4685
    >/dev/null 2>&1 \
4686
  && lt_shell_append=yes
4687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4688
$as_echo "$lt_shell_append" >&6; }
4689
4690
4691
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4692
  lt_unset=unset
4693
else
4694
  lt_unset=false
4695
fi
4696
4697
4698
4699
4700
4701
# test EBCDIC or ASCII
4702
case `echo X|tr X '\101'` in
4703
 A) # ASCII based system
4704
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4705
  lt_SP2NL='tr \040 \012'
4706
  lt_NL2SP='tr \015\012 \040\040'
4707
  ;;
4708
 *) # EBCDIC based system
4709
  lt_SP2NL='tr \100 \n'
4710
  lt_NL2SP='tr \r\n \100\100'
4711
  ;;
4712
esac
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4723
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4724
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4725
  $as_echo_n "(cached) " >&6
4726
else
4727
  lt_cv_ld_reload_flag='-r'
4728
fi
4729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4730
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4731
reload_flag=$lt_cv_ld_reload_flag
4732
case $reload_flag in
4733
"" | " "*) ;;
4734
*) reload_flag=" $reload_flag" ;;
4735
esac
4736
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737
case $host_os in
4738
  darwin*)
4739
    if test "$GCC" = yes; then
4740
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4741
    else
4742
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4743
    fi
4744
    ;;
4745
esac
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
if test -n "$ac_tool_prefix"; then
4756
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4757
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759
$as_echo_n "checking for $ac_word... " >&6; }
4760
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4761
  $as_echo_n "(cached) " >&6
4762
else
4763
  if test -n "$OBJDUMP"; then
4764
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4765
else
4766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767
for as_dir in $PATH
4768
do
4769
  IFS=$as_save_IFS
4770
  test -z "$as_dir" && as_dir=.
4771
    for ac_exec_ext in '' $ac_executable_extensions; do
4772
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4774
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775
    break 2
4776
  fi
4777
done
4778
  done
4779
IFS=$as_save_IFS
4780
4781
fi
4782
fi
4783
OBJDUMP=$ac_cv_prog_OBJDUMP
4784
if test -n "$OBJDUMP"; then
4785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4786
$as_echo "$OBJDUMP" >&6; }
4787
else
4788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789
$as_echo "no" >&6; }
4790
fi
4791
4792
4793
fi
4794
if test -z "$ac_cv_prog_OBJDUMP"; then
4795
  ac_ct_OBJDUMP=$OBJDUMP
4796
  # Extract the first word of "objdump", so it can be a program name with args.
4797
set dummy objdump; ac_word=$2
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799
$as_echo_n "checking for $ac_word... " >&6; }
4800
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4801
  $as_echo_n "(cached) " >&6
4802
else
4803
  if test -n "$ac_ct_OBJDUMP"; then
4804
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4805
else
4806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807
for as_dir in $PATH
4808
do
4809
  IFS=$as_save_IFS
4810
  test -z "$as_dir" && as_dir=.
4811
    for ac_exec_ext in '' $ac_executable_extensions; do
4812
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4814
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815
    break 2
4816
  fi
4817
done
4818
  done
4819
IFS=$as_save_IFS
4820
4821
fi
4822
fi
4823
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4824
if test -n "$ac_ct_OBJDUMP"; then
4825
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4826
$as_echo "$ac_ct_OBJDUMP" >&6; }
4827
else
4828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829
$as_echo "no" >&6; }
4830
fi
4831
4832
  if test "x$ac_ct_OBJDUMP" = x; then
4833
    OBJDUMP="false"
4834
  else
4835
    case $cross_compiling:$ac_tool_warned in
4836
yes:)
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839
ac_tool_warned=yes ;;
4840
esac
4841
    OBJDUMP=$ac_ct_OBJDUMP
4842
  fi
4843
else
4844
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4845
fi
4846
4847
test -z "$OBJDUMP" && OBJDUMP=objdump
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4858
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4859
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4860
  $as_echo_n "(cached) " >&6
4861
else
4862
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4863
lt_cv_file_magic_test_file=
4864
lt_cv_deplibs_check_method='unknown'
4865
# Need to set the preceding variable on all platforms that support
4866
# interlibrary dependencies.
4867
# 'none' -- dependencies not supported.
4868
# `unknown' -- same as none, but documents that we really don't know.
4869
# 'pass_all' -- all dependencies passed with no checks.
4870
# 'test_compile' -- check by making test program.
4871
# 'file_magic [[regex]]' -- check by looking for files in library path
4872
# which responds to the $file_magic_cmd with a given extended regex.
4873
# If you have `file' or equivalent on your system and you're not sure
4874
# whether `pass_all' will *always* work, you probably want this one.
4875
4876
case $host_os in
4877
aix[4-9]*)
4878
  lt_cv_deplibs_check_method=pass_all
4879
  ;;
4880
4881
beos*)
4882
  lt_cv_deplibs_check_method=pass_all
4883
  ;;
4884
4885
bsdi[45]*)
4886
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4887
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4888
  lt_cv_file_magic_test_file=/shlib/libc.so
4889
  ;;
4890
4891
cygwin*)
4892
  # func_win32_libid is a shell function defined in ltmain.sh
4893
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4894
  lt_cv_file_magic_cmd='func_win32_libid'
4895
  ;;
4896
4897
mingw* | pw32*)
4898
  # Base MSYS/MinGW do not provide the 'file' command needed by
4899
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4900
  # unless we find 'file', for example because we are cross-compiling.
4901
  if ( file / ) >/dev/null 2>&1; then
4902
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4903
    lt_cv_file_magic_cmd='func_win32_libid'
4904
  else
4905
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4906
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4907
  fi
4908
  ;;
4909
4910
cegcc)
4911
  # use the weaker test based on 'objdump'. See mingw*.
4912
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4913
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4914
  ;;
4915
4916
darwin* | rhapsody*)
4917
  lt_cv_deplibs_check_method=pass_all
4918
  ;;
4919
4920
freebsd* | dragonfly*)
4921
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922
    case $host_cpu in
4923
    i*86 )
4924
      # Not sure whether the presence of OpenBSD here was a mistake.
4925
      # Let's accept both of them until this is cleared up.
4926
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4927
      lt_cv_file_magic_cmd=/usr/bin/file
4928
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4929
      ;;
4930
    esac
4931
  else
4932
    lt_cv_deplibs_check_method=pass_all
4933
  fi
4934
  ;;
4935
4936
gnu*)
4937
  lt_cv_deplibs_check_method=pass_all
4938
  ;;
4939
4940
hpux10.20* | hpux11*)
4941
  lt_cv_file_magic_cmd=/usr/bin/file
4942
  case $host_cpu in
4943
  ia64*)
4944
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4945
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4946
    ;;
4947
  hppa*64*)
4948
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4949
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4950
    ;;
4951
  *)
4952
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4953
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4954
    ;;
4955
  esac
4956
  ;;
4957
4958
interix[3-9]*)
4959
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4960
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4961
  ;;
4962
4963
irix5* | irix6* | nonstopux*)
4964
  case $LD in
4965
  *-32|*"-32 ") libmagic=32-bit;;
4966
  *-n32|*"-n32 ") libmagic=N32;;
4967
  *-64|*"-64 ") libmagic=64-bit;;
4968
  *) libmagic=never-match;;
4969
  esac
4970
  lt_cv_deplibs_check_method=pass_all
4971
  ;;
4972
4973
# This must be Linux ELF.
4974
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4975
  lt_cv_deplibs_check_method=pass_all
4976
  ;;
4977
4978
netbsd* | netbsdelf*-gnu)
4979
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981
  else
4982
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4983
  fi
4984
  ;;
4985
4986
newos6*)
4987
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4988
  lt_cv_file_magic_cmd=/usr/bin/file
4989
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4990
  ;;
4991
4992
*nto* | *qnx*)
4993
  lt_cv_deplibs_check_method=pass_all
4994
  ;;
4995
4996
openbsd*)
4997
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4998
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4999
  else
5000
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001
  fi
5002
  ;;
5003
5004
osf3* | osf4* | osf5*)
5005
  lt_cv_deplibs_check_method=pass_all
5006
  ;;
5007
5008
rdos*)
5009
  lt_cv_deplibs_check_method=pass_all
5010
  ;;
5011
5012
solaris*)
5013
  lt_cv_deplibs_check_method=pass_all
5014
  ;;
5015
5016
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5017
  lt_cv_deplibs_check_method=pass_all
5018
  ;;
5019
5020
sysv4 | sysv4.3*)
5021
  case $host_vendor in
5022
  motorola)
5023
    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]'
5024
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5025
    ;;
5026
  ncr)
5027
    lt_cv_deplibs_check_method=pass_all
5028
    ;;
5029
  sequent)
5030
    lt_cv_file_magic_cmd='/bin/file'
5031
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5032
    ;;
5033
  sni)
5034
    lt_cv_file_magic_cmd='/bin/file'
5035
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5036
    lt_cv_file_magic_test_file=/lib/libc.so
5037
    ;;
5038
  siemens)
5039
    lt_cv_deplibs_check_method=pass_all
5040
    ;;
5041
  pc)
5042
    lt_cv_deplibs_check_method=pass_all
5043
    ;;
5044
  esac
5045
  ;;
5046
5047
tpf*)
5048
  lt_cv_deplibs_check_method=pass_all
5049
  ;;
5050
esac
5051
5052
fi
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5054
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5055
file_magic_cmd=$lt_cv_file_magic_cmd
5056
deplibs_check_method=$lt_cv_deplibs_check_method
5057
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
if test -n "$ac_tool_prefix"; then
5071
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072
set dummy ${ac_tool_prefix}ar; ac_word=$2
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074
$as_echo_n "checking for $ac_word... " >&6; }
5075
if test "${ac_cv_prog_AR+set}" = set; then :
5076
  $as_echo_n "(cached) " >&6
5077
else
5078
  if test -n "$AR"; then
5079
  ac_cv_prog_AR="$AR" # Let the user override the test.
5080
else
5081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082
for as_dir in $PATH
5083
do
5084
  IFS=$as_save_IFS
5085
  test -z "$as_dir" && as_dir=.
5086
    for ac_exec_ext in '' $ac_executable_extensions; do
5087
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5089
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090
    break 2
5091
  fi
5092
done
5093
  done
5094
IFS=$as_save_IFS
5095
5096
fi
5097
fi
5098
AR=$ac_cv_prog_AR
5099
if test -n "$AR"; then
5100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5101
$as_echo "$AR" >&6; }
5102
else
5103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104
$as_echo "no" >&6; }
5105
fi
5106
5107
5108
fi
5109
if test -z "$ac_cv_prog_AR"; then
5110
  ac_ct_AR=$AR
5111
  # Extract the first word of "ar", so it can be a program name with args.
5112
set dummy ar; ac_word=$2
5113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114
$as_echo_n "checking for $ac_word... " >&6; }
5115
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5116
  $as_echo_n "(cached) " >&6
5117
else
5118
  if test -n "$ac_ct_AR"; then
5119
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5120
else
5121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122
for as_dir in $PATH
5123
do
5124
  IFS=$as_save_IFS
5125
  test -z "$as_dir" && as_dir=.
5126
    for ac_exec_ext in '' $ac_executable_extensions; do
5127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128
    ac_cv_prog_ac_ct_AR="ar"
5129
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130
    break 2
5131
  fi
5132
done
5133
  done
5134
IFS=$as_save_IFS
5135
5136
fi
5137
fi
5138
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139
if test -n "$ac_ct_AR"; then
5140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141
$as_echo "$ac_ct_AR" >&6; }
5142
else
5143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144
$as_echo "no" >&6; }
5145
fi
5146
5147
  if test "x$ac_ct_AR" = x; then
5148
    AR="false"
5149
  else
5150
    case $cross_compiling:$ac_tool_warned in
5151
yes:)
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154
ac_tool_warned=yes ;;
5155
esac
5156
    AR=$ac_ct_AR
5157
  fi
5158
else
5159
  AR="$ac_cv_prog_AR"
5160
fi
5161
5162
test -z "$AR" && AR=ar
5163
test -z "$AR_FLAGS" && AR_FLAGS=cru
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
if test -n "$ac_tool_prefix"; then
5176
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5177
set dummy ${ac_tool_prefix}strip; ac_word=$2
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179
$as_echo_n "checking for $ac_word... " >&6; }
5180
if test "${ac_cv_prog_STRIP+set}" = set; then :
5181
  $as_echo_n "(cached) " >&6
5182
else
5183
  if test -n "$STRIP"; then
5184
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5185
else
5186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187
for as_dir in $PATH
5188
do
5189
  IFS=$as_save_IFS
5190
  test -z "$as_dir" && as_dir=.
5191
    for ac_exec_ext in '' $ac_executable_extensions; do
5192
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5194
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195
    break 2
5196
  fi
5197
done
5198
  done
5199
IFS=$as_save_IFS
5200
5201
fi
5202
fi
5203
STRIP=$ac_cv_prog_STRIP
5204
if test -n "$STRIP"; then
5205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5206
$as_echo "$STRIP" >&6; }
5207
else
5208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209
$as_echo "no" >&6; }
5210
fi
5211
5212
5213
fi
5214
if test -z "$ac_cv_prog_STRIP"; then
5215
  ac_ct_STRIP=$STRIP
5216
  # Extract the first word of "strip", so it can be a program name with args.
5217
set dummy strip; ac_word=$2
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219
$as_echo_n "checking for $ac_word... " >&6; }
5220
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5221
  $as_echo_n "(cached) " >&6
5222
else
5223
  if test -n "$ac_ct_STRIP"; then
5224
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5225
else
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227
for as_dir in $PATH
5228
do
5229
  IFS=$as_save_IFS
5230
  test -z "$as_dir" && as_dir=.
5231
    for ac_exec_ext in '' $ac_executable_extensions; do
5232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
    ac_cv_prog_ac_ct_STRIP="strip"
5234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235
    break 2
5236
  fi
5237
done
5238
  done
5239
IFS=$as_save_IFS
5240
5241
fi
5242
fi
5243
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5244
if test -n "$ac_ct_STRIP"; then
5245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5246
$as_echo "$ac_ct_STRIP" >&6; }
5247
else
5248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249
$as_echo "no" >&6; }
5250
fi
5251
5252
  if test "x$ac_ct_STRIP" = x; then
5253
    STRIP=":"
5254
  else
5255
    case $cross_compiling:$ac_tool_warned in
5256
yes:)
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259
ac_tool_warned=yes ;;
5260
esac
5261
    STRIP=$ac_ct_STRIP
5262
  fi
5263
else
5264
  STRIP="$ac_cv_prog_STRIP"
5265
fi
5266
5267
test -z "$STRIP" && STRIP=:
5268
5269
5270
5271
5272
5273
5274
if test -n "$ac_tool_prefix"; then
5275
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5276
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278
$as_echo_n "checking for $ac_word... " >&6; }
5279
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5280
  $as_echo_n "(cached) " >&6
5281
else
5282
  if test -n "$RANLIB"; then
5283
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5284
else
5285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286
for as_dir in $PATH
5287
do
5288
  IFS=$as_save_IFS
5289
  test -z "$as_dir" && as_dir=.
5290
    for ac_exec_ext in '' $ac_executable_extensions; do
5291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5293
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294
    break 2
5295
  fi
5296
done
5297
  done
5298
IFS=$as_save_IFS
5299
5300
fi
5301
fi
5302
RANLIB=$ac_cv_prog_RANLIB
5303
if test -n "$RANLIB"; then
5304
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5305
$as_echo "$RANLIB" >&6; }
5306
else
5307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308
$as_echo "no" >&6; }
5309
fi
5310
5311
5312
fi
5313
if test -z "$ac_cv_prog_RANLIB"; then
5314
  ac_ct_RANLIB=$RANLIB
5315
  # Extract the first word of "ranlib", so it can be a program name with args.
5316
set dummy ranlib; ac_word=$2
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318
$as_echo_n "checking for $ac_word... " >&6; }
5319
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5320
  $as_echo_n "(cached) " >&6
5321
else
5322
  if test -n "$ac_ct_RANLIB"; then
5323
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5324
else
5325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326
for as_dir in $PATH
5327
do
5328
  IFS=$as_save_IFS
5329
  test -z "$as_dir" && as_dir=.
5330
    for ac_exec_ext in '' $ac_executable_extensions; do
5331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5333
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334
    break 2
5335
  fi
5336
done
5337
  done
5338
IFS=$as_save_IFS
5339
5340
fi
5341
fi
5342
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5343
if test -n "$ac_ct_RANLIB"; then
5344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5345
$as_echo "$ac_ct_RANLIB" >&6; }
5346
else
5347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348
$as_echo "no" >&6; }
5349
fi
5350
5351
  if test "x$ac_ct_RANLIB" = x; then
5352
    RANLIB=":"
5353
  else
5354
    case $cross_compiling:$ac_tool_warned in
5355
yes:)
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358
ac_tool_warned=yes ;;
5359
esac
5360
    RANLIB=$ac_ct_RANLIB
5361
  fi
5362
else
5363
  RANLIB="$ac_cv_prog_RANLIB"
5364
fi
5365
5366
test -z "$RANLIB" && RANLIB=:
5367
5368
5369
5370
5371
5372
5373
# Determine commands to create old-style static archives.
5374
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5375
old_postinstall_cmds='chmod 644 $oldlib'
5376
old_postuninstall_cmds=
5377
5378
if test -n "$RANLIB"; then
5379
  case $host_os in
5380
  openbsd*)
5381
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5382
    ;;
5383
  *)
5384
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5385
    ;;
5386
  esac
5387
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5388
fi
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
# If no C compiler was specified, use CC.
5424
LTCC=${LTCC-"$CC"}
5425
5426
# If no C compiler flags were specified, use CFLAGS.
5427
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5428
5429
# Allow CC to be a program name with arguments.
5430
compiler=$CC
5431
5432
5433
# Check for command to grab the raw symbol name followed by C symbol from nm.
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5435
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5436
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5437
  $as_echo_n "(cached) " >&6
5438
else
5439
5440
# These are sane defaults that work on at least a few old systems.
5441
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5442
5443
# Character class describing NM global symbol codes.
5444
symcode='[BCDEGRST]'
5445
5446
# Regexp to match symbols that can be accessed directly from C.
5447
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5448
5449
# Define system-specific variables.
5450
case $host_os in
5451
aix*)
5452
  symcode='[BCDT]'
5453
  ;;
5454
cygwin* | mingw* | pw32* | cegcc*)
5455
  symcode='[ABCDGISTW]'
5456
  ;;
5457
hpux*)
5458
  if test "$host_cpu" = ia64; then
5459
    symcode='[ABCDEGRST]'
5460
  fi
5461
  ;;
5462
irix* | nonstopux*)
5463
  symcode='[BCDEGRST]'
5464
  ;;
5465
osf*)
5466
  symcode='[BCDEGQRST]'
5467
  ;;
5468
solaris*)
5469
  symcode='[BDRT]'
5470
  ;;
5471
sco3.2v5*)
5472
  symcode='[DT]'
5473
  ;;
5474
sysv4.2uw2*)
5475
  symcode='[DT]'
5476
  ;;
5477
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5478
  symcode='[ABDT]'
5479
  ;;
5480
sysv4)
5481
  symcode='[DFNSTU]'
5482
  ;;
5483
esac
5484
5485
# If we're using GNU nm, then use its standard symbol codes.
5486
case `$NM -V 2>&1` in
5487
*GNU* | *'with BFD'*)
5488
  symcode='[ABCDGIRSTW]' ;;
5489
esac
5490
5491
# Transform an extracted symbol line into a proper C declaration.
5492
# Some systems (esp. on ia64) link data and code symbols differently,
5493
# so use this general approach.
5494
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5495
5496
# Transform an extracted symbol line into symbol name and symbol address
5497
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5498
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'"
5499
5500
# Handle CRLF in mingw tool chain
5501
opt_cr=
5502
case $build_os in
5503
mingw*)
5504
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5505
  ;;
5506
esac
5507
5508
# Try without a prefix underscore, then with it.
5509
for ac_symprfx in "" "_"; do
5510
5511
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5512
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5513
5514
  # Write the raw and C identifiers.
5515
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5516
    # Fake it for dumpbin and say T for any non-static function
5517
    # and D for any global variable.
5518
    # Also find C++ and __fastcall symbols from MSVC++,
5519
    # which start with @ or ?.
5520
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5521
"     {last_section=section; section=\$ 3};"\
5522
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5523
"     \$ 0!~/External *\|/{next};"\
5524
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5525
"     {if(hide[section]) next};"\
5526
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5527
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5528
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5529
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5530
"     ' prfx=^$ac_symprfx"
5531
  else
5532
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5533
  fi
5534
5535
  # Check to see that the pipe works correctly.
5536
  pipe_works=no
5537
5538
  rm -f conftest*
5539
  cat > conftest.$ac_ext <<_LT_EOF
5540
#ifdef __cplusplus
5541
extern "C" {
5542
#endif
5543
char nm_test_var;
5544
void nm_test_func(void);
5545
void nm_test_func(void){}
5546
#ifdef __cplusplus
5547
}
5548
#endif
5549
int main(){nm_test_var='a';nm_test_func();return(0);}
5550
_LT_EOF
5551
5552
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5553
  (eval $ac_compile) 2>&5
5554
  ac_status=$?
5555
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556
  test $ac_status = 0; }; then
5557
    # Now try to grab the symbols.
5558
    nlist=conftest.nm
5559
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5560
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5561
  ac_status=$?
5562
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563
  test $ac_status = 0; } && test -s "$nlist"; then
5564
      # Try sorting and uniquifying the output.
5565
      if sort "$nlist" | uniq > "$nlist"T; then
5566
	mv -f "$nlist"T "$nlist"
5567
      else
5568
	rm -f "$nlist"T
5569
      fi
5570
5571
      # Make sure that we snagged all the symbols we need.
5572
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5573
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5574
	  cat <<_LT_EOF > conftest.$ac_ext
5575
#ifdef __cplusplus
5576
extern "C" {
5577
#endif
5578
5579
_LT_EOF
5580
	  # Now generate the symbol file.
5581
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5582
5583
	  cat <<_LT_EOF >> conftest.$ac_ext
5584
5585
/* The mapping between symbol names and symbols.  */
5586
const struct {
5587
  const char *name;
5588
  void       *address;
5589
}
5590
lt__PROGRAM__LTX_preloaded_symbols[] =
5591
{
5592
  { "@PROGRAM@", (void *) 0 },
5593
_LT_EOF
5594
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5595
	  cat <<\_LT_EOF >> conftest.$ac_ext
5596
  {0, (void *) 0}
5597
};
5598
5599
/* This works around a problem in FreeBSD linker */
5600
#ifdef FREEBSD_WORKAROUND
5601
static const void *lt_preloaded_setup() {
5602
  return lt__PROGRAM__LTX_preloaded_symbols;
5603
}
5604
#endif
5605
5606
#ifdef __cplusplus
5607
}
5608
#endif
5609
_LT_EOF
5610
	  # Now try linking the two files.
5611
	  mv conftest.$ac_objext conftstm.$ac_objext
5612
	  lt_save_LIBS="$LIBS"
5613
	  lt_save_CFLAGS="$CFLAGS"
5614
	  LIBS="conftstm.$ac_objext"
5615
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5616
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5617
  (eval $ac_link) 2>&5
5618
  ac_status=$?
5619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5620
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5621
	    pipe_works=yes
5622
	  fi
5623
	  LIBS="$lt_save_LIBS"
5624
	  CFLAGS="$lt_save_CFLAGS"
5625
	else
5626
	  echo "cannot find nm_test_func in $nlist" >&5
5627
	fi
5628
      else
5629
	echo "cannot find nm_test_var in $nlist" >&5
5630
      fi
5631
    else
5632
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5633
    fi
5634
  else
5635
    echo "$progname: failed program was:" >&5
5636
    cat conftest.$ac_ext >&5
5637
  fi
5638
  rm -rf conftest* conftst*
5639
5640
  # Do not use the global_symbol_pipe unless it works.
5641
  if test "$pipe_works" = yes; then
5642
    break
5643
  else
5644
    lt_cv_sys_global_symbol_pipe=
5645
  fi
5646
done
5647
5648
fi
5649
5650
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5651
  lt_cv_sys_global_symbol_to_cdecl=
5652
fi
5653
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5655
$as_echo "failed" >&6; }
5656
else
5657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5658
$as_echo "ok" >&6; }
5659
fi
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
# Check whether --enable-libtool-lock was given.
5684
if test "${enable_libtool_lock+set}" = set; then :
5685
  enableval=$enable_libtool_lock;
5686
fi
5687
5688
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5689
5690
# Some flags need to be propagated to the compiler or linker for good
5691
# libtool support.
5692
case $host in
5693
ia64-*-hpux*)
5694
  # Find out which ABI we are using.
5695
  echo 'int i;' > conftest.$ac_ext
5696
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5697
  (eval $ac_compile) 2>&5
5698
  ac_status=$?
5699
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700
  test $ac_status = 0; }; then
5701
    case `/usr/bin/file conftest.$ac_objext` in
5702
      *ELF-32*)
5703
	HPUX_IA64_MODE="32"
5704
	;;
5705
      *ELF-64*)
5706
	HPUX_IA64_MODE="64"
5707
	;;
5708
    esac
5709
  fi
5710
  rm -rf conftest*
5711
  ;;
5712
*-*-irix6*)
5713
  # Find out which ABI we are using.
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
5714
  echo '#line 5714 "configure"' > conftest.$ac_ext
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
5715
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5716
  (eval $ac_compile) 2>&5
5717
  ac_status=$?
5718
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719
  test $ac_status = 0; }; then
5720
    if test "$lt_cv_prog_gnu_ld" = yes; then
5721
      case `/usr/bin/file conftest.$ac_objext` in
5722
	*32-bit*)
5723
	  LD="${LD-ld} -melf32bsmip"
5724
	  ;;
5725
	*N32*)
5726
	  LD="${LD-ld} -melf32bmipn32"
5727
	  ;;
5728
	*64-bit*)
5729
	  LD="${LD-ld} -melf64bmip"
5730
	;;
5731
      esac
5732
    else
5733
      case `/usr/bin/file conftest.$ac_objext` in
5734
	*32-bit*)
5735
	  LD="${LD-ld} -32"
5736
	  ;;
5737
	*N32*)
5738
	  LD="${LD-ld} -n32"
5739
	  ;;
5740
	*64-bit*)
5741
	  LD="${LD-ld} -64"
5742
	  ;;
5743
      esac
5744
    fi
5745
  fi
5746
  rm -rf conftest*
5747
  ;;
5748
5749
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5750
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5751
  # Find out which ABI we are using.
5752
  echo 'int i;' > conftest.$ac_ext
5753
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5754
  (eval $ac_compile) 2>&5
5755
  ac_status=$?
5756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757
  test $ac_status = 0; }; then
5758
    case `/usr/bin/file conftest.o` in
5759
      *32-bit*)
5760
	case $host in
5761
	  x86_64-*kfreebsd*-gnu)
5762
	    LD="${LD-ld} -m elf_i386_fbsd"
5763
	    ;;
5764
	  x86_64-*linux*)
5765
	    LD="${LD-ld} -m elf_i386"
5766
	    ;;
5767
	  ppc64-*linux*|powerpc64-*linux*)
5768
	    LD="${LD-ld} -m elf32ppclinux"
5769
	    ;;
5770
	  s390x-*linux*)
5771
	    LD="${LD-ld} -m elf_s390"
5772
	    ;;
5773
	  sparc64-*linux*)
5774
	    LD="${LD-ld} -m elf32_sparc"
5775
	    ;;
5776
	esac
5777
	;;
5778
      *64-bit*)
5779
	case $host in
5780
	  x86_64-*kfreebsd*-gnu)
5781
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5782
	    ;;
5783
	  x86_64-*linux*)
5784
	    LD="${LD-ld} -m elf_x86_64"
5785
	    ;;
5786
	  ppc*-*linux*|powerpc*-*linux*)
5787
	    LD="${LD-ld} -m elf64ppc"
5788
	    ;;
5789
	  s390*-*linux*|s390*-*tpf*)
5790
	    LD="${LD-ld} -m elf64_s390"
5791
	    ;;
5792
	  sparc*-*linux*)
5793
	    LD="${LD-ld} -m elf64_sparc"
5794
	    ;;
5795
	esac
5796
	;;
5797
    esac
5798
  fi
5799
  rm -rf conftest*
5800
  ;;
5801
5802
*-*-sco3.2v5*)
5803
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5804
  SAVE_CFLAGS="$CFLAGS"
5805
  CFLAGS="$CFLAGS -belf"
5806
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5807
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5808
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5809
  $as_echo_n "(cached) " >&6
5810
else
5811
  ac_ext=c
5812
ac_cpp='$CPP $CPPFLAGS'
5813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816
5817
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818
/* end confdefs.h.  */
5819
5820
int
5821
main ()
5822
{
5823
5824
  ;
5825
  return 0;
5826
}
5827
_ACEOF
5828
if ac_fn_c_try_link "$LINENO"; then :
5829
  lt_cv_cc_needs_belf=yes
5830
else
5831
  lt_cv_cc_needs_belf=no
5832
fi
5833
rm -f core conftest.err conftest.$ac_objext \
5834
    conftest$ac_exeext conftest.$ac_ext
5835
     ac_ext=c
5836
ac_cpp='$CPP $CPPFLAGS'
5837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841
fi
5842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5843
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5844
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5845
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5846
    CFLAGS="$SAVE_CFLAGS"
5847
  fi
5848
  ;;
5849
sparc*-*solaris*)
5850
  # Find out which ABI we are using.
5851
  echo 'int i;' > conftest.$ac_ext
5852
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5853
  (eval $ac_compile) 2>&5
5854
  ac_status=$?
5855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856
  test $ac_status = 0; }; then
5857
    case `/usr/bin/file conftest.o` in
5858
    *64-bit*)
5859
      case $lt_cv_prog_gnu_ld in
5860
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5861
      *)
5862
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5863
	  LD="${LD-ld} -64"
5864
	fi
5865
	;;
5866
      esac
5867
      ;;
5868
    esac
5869
  fi
5870
  rm -rf conftest*
5871
  ;;
5872
esac
5873
5874
need_locks="$enable_libtool_lock"
5875
5876
5877
  case $host_os in
5878
    rhapsody* | darwin*)
5879
    if test -n "$ac_tool_prefix"; then
5880
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5881
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883
$as_echo_n "checking for $ac_word... " >&6; }
5884
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5885
  $as_echo_n "(cached) " >&6
5886
else
5887
  if test -n "$DSYMUTIL"; then
5888
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5889
else
5890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891
for as_dir in $PATH
5892
do
5893
  IFS=$as_save_IFS
5894
  test -z "$as_dir" && as_dir=.
5895
    for ac_exec_ext in '' $ac_executable_extensions; do
5896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899
    break 2
5900
  fi
5901
done
5902
  done
5903
IFS=$as_save_IFS
5904
5905
fi
5906
fi
5907
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5908
if test -n "$DSYMUTIL"; then
5909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5910
$as_echo "$DSYMUTIL" >&6; }
5911
else
5912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913
$as_echo "no" >&6; }
5914
fi
5915
5916
5917
fi
5918
if test -z "$ac_cv_prog_DSYMUTIL"; then
5919
  ac_ct_DSYMUTIL=$DSYMUTIL
5920
  # Extract the first word of "dsymutil", so it can be a program name with args.
5921
set dummy dsymutil; ac_word=$2
5922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923
$as_echo_n "checking for $ac_word... " >&6; }
5924
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5925
  $as_echo_n "(cached) " >&6
5926
else
5927
  if test -n "$ac_ct_DSYMUTIL"; then
5928
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5929
else
5930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931
for as_dir in $PATH
5932
do
5933
  IFS=$as_save_IFS
5934
  test -z "$as_dir" && as_dir=.
5935
    for ac_exec_ext in '' $ac_executable_extensions; do
5936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5938
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939
    break 2
5940
  fi
5941
done
5942
  done
5943
IFS=$as_save_IFS
5944
5945
fi
5946
fi
5947
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5948
if test -n "$ac_ct_DSYMUTIL"; then
5949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5950
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5951
else
5952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953
$as_echo "no" >&6; }
5954
fi
5955
5956
  if test "x$ac_ct_DSYMUTIL" = x; then
5957
    DSYMUTIL=":"
5958
  else
5959
    case $cross_compiling:$ac_tool_warned in
5960
yes:)
5961
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963
ac_tool_warned=yes ;;
5964
esac
5965
    DSYMUTIL=$ac_ct_DSYMUTIL
5966
  fi
5967
else
5968
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5969
fi
5970
5971
    if test -n "$ac_tool_prefix"; then
5972
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5973
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975
$as_echo_n "checking for $ac_word... " >&6; }
5976
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5977
  $as_echo_n "(cached) " >&6
5978
else
5979
  if test -n "$NMEDIT"; then
5980
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5981
else
5982
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983
for as_dir in $PATH
5984
do
5985
  IFS=$as_save_IFS
5986
  test -z "$as_dir" && as_dir=.
5987
    for ac_exec_ext in '' $ac_executable_extensions; do
5988
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5990
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991
    break 2
5992
  fi
5993
done
5994
  done
5995
IFS=$as_save_IFS
5996
5997
fi
5998
fi
5999
NMEDIT=$ac_cv_prog_NMEDIT
6000
if test -n "$NMEDIT"; then
6001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6002
$as_echo "$NMEDIT" >&6; }
6003
else
6004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005
$as_echo "no" >&6; }
6006
fi
6007
6008
6009
fi
6010
if test -z "$ac_cv_prog_NMEDIT"; then
6011
  ac_ct_NMEDIT=$NMEDIT
6012
  # Extract the first word of "nmedit", so it can be a program name with args.
6013
set dummy nmedit; ac_word=$2
6014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015
$as_echo_n "checking for $ac_word... " >&6; }
6016
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6017
  $as_echo_n "(cached) " >&6
6018
else
6019
  if test -n "$ac_ct_NMEDIT"; then
6020
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6021
else
6022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023
for as_dir in $PATH
6024
do
6025
  IFS=$as_save_IFS
6026
  test -z "$as_dir" && as_dir=.
6027
    for ac_exec_ext in '' $ac_executable_extensions; do
6028
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6030
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031
    break 2
6032
  fi
6033
done
6034
  done
6035
IFS=$as_save_IFS
6036
6037
fi
6038
fi
6039
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6040
if test -n "$ac_ct_NMEDIT"; then
6041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6042
$as_echo "$ac_ct_NMEDIT" >&6; }
6043
else
6044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045
$as_echo "no" >&6; }
6046
fi
6047
6048
  if test "x$ac_ct_NMEDIT" = x; then
6049
    NMEDIT=":"
6050
  else
6051
    case $cross_compiling:$ac_tool_warned in
6052
yes:)
6053
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055
ac_tool_warned=yes ;;
6056
esac
6057
    NMEDIT=$ac_ct_NMEDIT
6058
  fi
6059
else
6060
  NMEDIT="$ac_cv_prog_NMEDIT"
6061
fi
6062
6063
    if test -n "$ac_tool_prefix"; then
6064
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6065
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067
$as_echo_n "checking for $ac_word... " >&6; }
6068
if test "${ac_cv_prog_LIPO+set}" = set; then :
6069
  $as_echo_n "(cached) " >&6
6070
else
6071
  if test -n "$LIPO"; then
6072
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6073
else
6074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075
for as_dir in $PATH
6076
do
6077
  IFS=$as_save_IFS
6078
  test -z "$as_dir" && as_dir=.
6079
    for ac_exec_ext in '' $ac_executable_extensions; do
6080
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083
    break 2
6084
  fi
6085
done
6086
  done
6087
IFS=$as_save_IFS
6088
6089
fi
6090
fi
6091
LIPO=$ac_cv_prog_LIPO
6092
if test -n "$LIPO"; then
6093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6094
$as_echo "$LIPO" >&6; }
6095
else
6096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097
$as_echo "no" >&6; }
6098
fi
6099
6100
6101
fi
6102
if test -z "$ac_cv_prog_LIPO"; then
6103
  ac_ct_LIPO=$LIPO
6104
  # Extract the first word of "lipo", so it can be a program name with args.
6105
set dummy lipo; ac_word=$2
6106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107
$as_echo_n "checking for $ac_word... " >&6; }
6108
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6109
  $as_echo_n "(cached) " >&6
6110
else
6111
  if test -n "$ac_ct_LIPO"; then
6112
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6113
else
6114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115
for as_dir in $PATH
6116
do
6117
  IFS=$as_save_IFS
6118
  test -z "$as_dir" && as_dir=.
6119
    for ac_exec_ext in '' $ac_executable_extensions; do
6120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121
    ac_cv_prog_ac_ct_LIPO="lipo"
6122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123
    break 2
6124
  fi
6125
done
6126
  done
6127
IFS=$as_save_IFS
6128
6129
fi
6130
fi
6131
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6132
if test -n "$ac_ct_LIPO"; then
6133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6134
$as_echo "$ac_ct_LIPO" >&6; }
6135
else
6136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137
$as_echo "no" >&6; }
6138
fi
6139
6140
  if test "x$ac_ct_LIPO" = x; then
6141
    LIPO=":"
6142
  else
6143
    case $cross_compiling:$ac_tool_warned in
6144
yes:)
6145
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147
ac_tool_warned=yes ;;
6148
esac
6149
    LIPO=$ac_ct_LIPO
6150
  fi
6151
else
6152
  LIPO="$ac_cv_prog_LIPO"
6153
fi
6154
6155
    if test -n "$ac_tool_prefix"; then
6156
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6157
set dummy ${ac_tool_prefix}otool; ac_word=$2
6158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159
$as_echo_n "checking for $ac_word... " >&6; }
6160
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6161
  $as_echo_n "(cached) " >&6
6162
else
6163
  if test -n "$OTOOL"; then
6164
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6165
else
6166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167
for as_dir in $PATH
6168
do
6169
  IFS=$as_save_IFS
6170
  test -z "$as_dir" && as_dir=.
6171
    for ac_exec_ext in '' $ac_executable_extensions; do
6172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6174
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175
    break 2
6176
  fi
6177
done
6178
  done
6179
IFS=$as_save_IFS
6180
6181
fi
6182
fi
6183
OTOOL=$ac_cv_prog_OTOOL
6184
if test -n "$OTOOL"; then
6185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6186
$as_echo "$OTOOL" >&6; }
6187
else
6188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189
$as_echo "no" >&6; }
6190
fi
6191
6192
6193
fi
6194
if test -z "$ac_cv_prog_OTOOL"; then
6195
  ac_ct_OTOOL=$OTOOL
6196
  # Extract the first word of "otool", so it can be a program name with args.
6197
set dummy otool; ac_word=$2
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199
$as_echo_n "checking for $ac_word... " >&6; }
6200
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6201
  $as_echo_n "(cached) " >&6
6202
else
6203
  if test -n "$ac_ct_OTOOL"; then
6204
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6205
else
6206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207
for as_dir in $PATH
6208
do
6209
  IFS=$as_save_IFS
6210
  test -z "$as_dir" && as_dir=.
6211
    for ac_exec_ext in '' $ac_executable_extensions; do
6212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213
    ac_cv_prog_ac_ct_OTOOL="otool"
6214
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215
    break 2
6216
  fi
6217
done
6218
  done
6219
IFS=$as_save_IFS
6220
6221
fi
6222
fi
6223
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6224
if test -n "$ac_ct_OTOOL"; then
6225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6226
$as_echo "$ac_ct_OTOOL" >&6; }
6227
else
6228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229
$as_echo "no" >&6; }
6230
fi
6231
6232
  if test "x$ac_ct_OTOOL" = x; then
6233
    OTOOL=":"
6234
  else
6235
    case $cross_compiling:$ac_tool_warned in
6236
yes:)
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239
ac_tool_warned=yes ;;
6240
esac
6241
    OTOOL=$ac_ct_OTOOL
6242
  fi
6243
else
6244
  OTOOL="$ac_cv_prog_OTOOL"
6245
fi
6246
6247
    if test -n "$ac_tool_prefix"; then
6248
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6249
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251
$as_echo_n "checking for $ac_word... " >&6; }
6252
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6253
  $as_echo_n "(cached) " >&6
6254
else
6255
  if test -n "$OTOOL64"; then
6256
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6257
else
6258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259
for as_dir in $PATH
6260
do
6261
  IFS=$as_save_IFS
6262
  test -z "$as_dir" && as_dir=.
6263
    for ac_exec_ext in '' $ac_executable_extensions; do
6264
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6266
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267
    break 2
6268
  fi
6269
done
6270
  done
6271
IFS=$as_save_IFS
6272
6273
fi
6274
fi
6275
OTOOL64=$ac_cv_prog_OTOOL64
6276
if test -n "$OTOOL64"; then
6277
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6278
$as_echo "$OTOOL64" >&6; }
6279
else
6280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281
$as_echo "no" >&6; }
6282
fi
6283
6284
6285
fi
6286
if test -z "$ac_cv_prog_OTOOL64"; then
6287
  ac_ct_OTOOL64=$OTOOL64
6288
  # Extract the first word of "otool64", so it can be a program name with args.
6289
set dummy otool64; ac_word=$2
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291
$as_echo_n "checking for $ac_word... " >&6; }
6292
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6293
  $as_echo_n "(cached) " >&6
6294
else
6295
  if test -n "$ac_ct_OTOOL64"; then
6296
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6297
else
6298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299
for as_dir in $PATH
6300
do
6301
  IFS=$as_save_IFS
6302
  test -z "$as_dir" && as_dir=.
6303
    for ac_exec_ext in '' $ac_executable_extensions; do
6304
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6306
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307
    break 2
6308
  fi
6309
done
6310
  done
6311
IFS=$as_save_IFS
6312
6313
fi
6314
fi
6315
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6316
if test -n "$ac_ct_OTOOL64"; then
6317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6318
$as_echo "$ac_ct_OTOOL64" >&6; }
6319
else
6320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321
$as_echo "no" >&6; }
6322
fi
6323
6324
  if test "x$ac_ct_OTOOL64" = x; then
6325
    OTOOL64=":"
6326
  else
6327
    case $cross_compiling:$ac_tool_warned in
6328
yes:)
6329
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331
ac_tool_warned=yes ;;
6332
esac
6333
    OTOOL64=$ac_ct_OTOOL64
6334
  fi
6335
else
6336
  OTOOL64="$ac_cv_prog_OTOOL64"
6337
fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6366
$as_echo_n "checking for -single_module linker flag... " >&6; }
6367
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6368
  $as_echo_n "(cached) " >&6
6369
else
6370
  lt_cv_apple_cc_single_mod=no
6371
      if test -z "${LT_MULTI_MODULE}"; then
6372
	# By default we will add the -single_module flag. You can override
6373
	# by either setting the environment variable LT_MULTI_MODULE
6374
	# non-empty at configure time, or by adding -multi_module to the
6375
	# link flags.
6376
	rm -rf libconftest.dylib*
6377
	echo "int foo(void){return 1;}" > conftest.c
6378
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6379
-dynamiclib -Wl,-single_module conftest.c" >&5
6380
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6381
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6382
        _lt_result=$?
6383
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6384
	  lt_cv_apple_cc_single_mod=yes
6385
	else
6386
	  cat conftest.err >&5
6387
	fi
6388
	rm -rf libconftest.dylib*
6389
	rm -f conftest.*
6390
      fi
6391
fi
6392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6393
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6394
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6395
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6396
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6397
  $as_echo_n "(cached) " >&6
6398
else
6399
  lt_cv_ld_exported_symbols_list=no
6400
      save_LDFLAGS=$LDFLAGS
6401
      echo "_main" > conftest.sym
6402
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6403
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404
/* end confdefs.h.  */
6405
6406
int
6407
main ()
6408
{
6409
6410
  ;
6411
  return 0;
6412
}
6413
_ACEOF
6414
if ac_fn_c_try_link "$LINENO"; then :
6415
  lt_cv_ld_exported_symbols_list=yes
6416
else
6417
  lt_cv_ld_exported_symbols_list=no
6418
fi
6419
rm -f core conftest.err conftest.$ac_objext \
6420
    conftest$ac_exeext conftest.$ac_ext
6421
	LDFLAGS="$save_LDFLAGS"
6422
6423
fi
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6425
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6426
    case $host_os in
6427
    rhapsody* | darwin1.[012])
6428
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6429
    darwin1.*)
6430
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6431
    darwin*) # darwin 5.x on
6432
      # if running on 10.5 or later, the deployment target defaults
6433
      # to the OS version, if on x86, and 10.4, the deployment
6434
      # target defaults to 10.4. Don't you love it?
6435
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6436
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6437
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6438
	10.[012]*)
6439
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6440
	10.*)
6441
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6442
      esac
6443
    ;;
6444
  esac
6445
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6446
      _lt_dar_single_mod='$single_module'
6447
    fi
6448
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6449
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6450
    else
6451
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6452
    fi
6453
    if test "$DSYMUTIL" != ":"; then
6454
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6455
    else
6456
      _lt_dsymutil=
6457
    fi
6458
    ;;
6459
  esac
6460
6461
ac_ext=c
6462
ac_cpp='$CPP $CPPFLAGS'
6463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6467
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6468
# On Suns, sometimes $CPP names a directory.
6469
if test -n "$CPP" && test -d "$CPP"; then
6470
  CPP=
6471
fi
6472
if test -z "$CPP"; then
6473
  if test "${ac_cv_prog_CPP+set}" = set; then :
6474
  $as_echo_n "(cached) " >&6
6475
else
6476
      # Double quotes because CPP needs to be expanded
6477
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6478
    do
6479
      ac_preproc_ok=false
6480
for ac_c_preproc_warn_flag in '' yes
6481
do
6482
  # Use a header file that comes with gcc, so configuring glibc
6483
  # with a fresh cross-compiler works.
6484
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6485
  # <limits.h> exists even on freestanding compilers.
6486
  # On the NeXT, cc -E runs the code through the compiler's parser,
6487
  # not just through cpp. "Syntax error" is here to catch this case.
6488
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489
/* end confdefs.h.  */
6490
#ifdef __STDC__
6491
# include <limits.h>
6492
#else
6493
# include <assert.h>
6494
#endif
6495
		     Syntax error
6496
_ACEOF
6497
if ac_fn_c_try_cpp "$LINENO"; then :
6498
6499
else
6500
  # Broken: fails on valid input.
6501
continue
6502
fi
6503
rm -f conftest.err conftest.$ac_ext
6504
6505
  # OK, works on sane cases.  Now check whether nonexistent headers
6506
  # can be detected and how.
6507
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508
/* end confdefs.h.  */
6509
#include <ac_nonexistent.h>
6510
_ACEOF
6511
if ac_fn_c_try_cpp "$LINENO"; then :
6512
  # Broken: success on invalid input.
6513
continue
6514
else
6515
  # Passes both tests.
6516
ac_preproc_ok=:
6517
break
6518
fi
6519
rm -f conftest.err conftest.$ac_ext
6520
6521
done
6522
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523
rm -f conftest.err conftest.$ac_ext
6524
if $ac_preproc_ok; then :
6525
  break
6526
fi
6527
6528
    done
6529
    ac_cv_prog_CPP=$CPP
6530
6531
fi
6532
  CPP=$ac_cv_prog_CPP
6533
else
6534
  ac_cv_prog_CPP=$CPP
6535
fi
6536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6537
$as_echo "$CPP" >&6; }
6538
ac_preproc_ok=false
6539
for ac_c_preproc_warn_flag in '' yes
6540
do
6541
  # Use a header file that comes with gcc, so configuring glibc
6542
  # with a fresh cross-compiler works.
6543
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6544
  # <limits.h> exists even on freestanding compilers.
6545
  # On the NeXT, cc -E runs the code through the compiler's parser,
6546
  # not just through cpp. "Syntax error" is here to catch this case.
6547
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548
/* end confdefs.h.  */
6549
#ifdef __STDC__
6550
# include <limits.h>
6551
#else
6552
# include <assert.h>
6553
#endif
6554
		     Syntax error
6555
_ACEOF
6556
if ac_fn_c_try_cpp "$LINENO"; then :
6557
6558
else
6559
  # Broken: fails on valid input.
6560
continue
6561
fi
6562
rm -f conftest.err conftest.$ac_ext
6563
6564
  # OK, works on sane cases.  Now check whether nonexistent headers
6565
  # can be detected and how.
6566
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
/* end confdefs.h.  */
6568
#include <ac_nonexistent.h>
6569
_ACEOF
6570
if ac_fn_c_try_cpp "$LINENO"; then :
6571
  # Broken: success on invalid input.
6572
continue
6573
else
6574
  # Passes both tests.
6575
ac_preproc_ok=:
6576
break
6577
fi
6578
rm -f conftest.err conftest.$ac_ext
6579
6580
done
6581
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6582
rm -f conftest.err conftest.$ac_ext
6583
if $ac_preproc_ok; then :
6584
6585
else
6586
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6587
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6588
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6589
See \`config.log' for more details." "$LINENO" 5; }
6590
fi
6591
6592
ac_ext=c
6593
ac_cpp='$CPP $CPPFLAGS'
6594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598
6599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6600
$as_echo_n "checking for ANSI C header files... " >&6; }
6601
if test "${ac_cv_header_stdc+set}" = set; then :
6602
  $as_echo_n "(cached) " >&6
6603
else
6604
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605
/* end confdefs.h.  */
6606
#include <stdlib.h>
6607
#include <stdarg.h>
6608
#include <string.h>
6609
#include <float.h>
6610
6611
int
6612
main ()
6613
{
6614
6615
  ;
6616
  return 0;
6617
}
6618
_ACEOF
6619
if ac_fn_c_try_compile "$LINENO"; then :
6620
  ac_cv_header_stdc=yes
6621
else
6622
  ac_cv_header_stdc=no
6623
fi
6624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625
6626
if test $ac_cv_header_stdc = yes; then
6627
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6628
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629
/* end confdefs.h.  */
6630
#include <string.h>
6631
6632
_ACEOF
6633
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634
  $EGREP "memchr" >/dev/null 2>&1; then :
6635
6636
else
6637
  ac_cv_header_stdc=no
6638
fi
6639
rm -f conftest*
6640
6641
fi
6642
6643
if test $ac_cv_header_stdc = yes; then
6644
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646
/* end confdefs.h.  */
6647
#include <stdlib.h>
6648
6649
_ACEOF
6650
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651
  $EGREP "free" >/dev/null 2>&1; then :
6652
6653
else
6654
  ac_cv_header_stdc=no
6655
fi
6656
rm -f conftest*
6657
6658
fi
6659
6660
if test $ac_cv_header_stdc = yes; then
6661
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662
  if test "$cross_compiling" = yes; then :
6663
  :
6664
else
6665
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666
/* end confdefs.h.  */
6667
#include <ctype.h>
6668
#include <stdlib.h>
6669
#if ((' ' & 0x0FF) == 0x020)
6670
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6671
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672
#else
6673
# define ISLOWER(c) \
6674
		   (('a' <= (c) && (c) <= 'i') \
6675
		     || ('j' <= (c) && (c) <= 'r') \
6676
		     || ('s' <= (c) && (c) <= 'z'))
6677
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6678
#endif
6679
6680
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6681
int
6682
main ()
6683
{
6684
  int i;
6685
  for (i = 0; i < 256; i++)
6686
    if (XOR (islower (i), ISLOWER (i))
6687
	|| toupper (i) != TOUPPER (i))
6688
      return 2;
6689
  return 0;
6690
}
6691
_ACEOF
6692
if ac_fn_c_try_run "$LINENO"; then :
6693
6694
else
6695
  ac_cv_header_stdc=no
6696
fi
6697
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6698
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6699
fi
6700
6701
fi
6702
fi
6703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6704
$as_echo "$ac_cv_header_stdc" >&6; }
6705
if test $ac_cv_header_stdc = yes; then
6706
6707
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6708
6709
fi
6710
6711
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6712
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6713
		  inttypes.h stdint.h unistd.h
6714
do :
6715
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6717
"
6718
eval as_val=\$$as_ac_Header
6719
   if test "x$as_val" = x""yes; then :
6720
  cat >>confdefs.h <<_ACEOF
6721
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722
_ACEOF
6723
6724
fi
6725
6726
done
6727
6728
6729
for ac_header in dlfcn.h
6730
do :
6731
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6732
"
6733
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6734
  cat >>confdefs.h <<_ACEOF
6735
#define HAVE_DLFCN_H 1
6736
_ACEOF
6737
6738
fi
6739
6740
done
6741
6742
6743
6744
# Set options
6745
6746
6747
6748
        enable_dlopen=no
6749
6750
6751
  enable_win32_dll=no
6752
6753
6754
            # Check whether --enable-shared was given.
6755
if test "${enable_shared+set}" = set; then :
6756
  enableval=$enable_shared; p=${PACKAGE-default}
6757
    case $enableval in
6758
    yes) enable_shared=yes ;;
6759
    no) enable_shared=no ;;
6760
    *)
6761
      enable_shared=no
6762
      # Look at the argument we got.  We use all the common list separators.
6763
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6764
      for pkg in $enableval; do
6765
	IFS="$lt_save_ifs"
6766
	if test "X$pkg" = "X$p"; then
6767
	  enable_shared=yes
6768
	fi
6769
      done
6770
      IFS="$lt_save_ifs"
6771
      ;;
6772
    esac
6773
else
6774
  enable_shared=yes
6775
fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
  # Check whether --enable-static was given.
6786
if test "${enable_static+set}" = set; then :
6787
  enableval=$enable_static; p=${PACKAGE-default}
6788
    case $enableval in
6789
    yes) enable_static=yes ;;
6790
    no) enable_static=no ;;
6791
    *)
6792
     enable_static=no
6793
      # Look at the argument we got.  We use all the common list separators.
6794
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6795
      for pkg in $enableval; do
6796
	IFS="$lt_save_ifs"
6797
	if test "X$pkg" = "X$p"; then
6798
	  enable_static=yes
6799
	fi
6800
      done
6801
      IFS="$lt_save_ifs"
6802
      ;;
6803
    esac
6804
else
6805
  enable_static=yes
6806
fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
# Check whether --with-pic was given.
6818
if test "${with_pic+set}" = set; then :
6819
  withval=$with_pic; pic_mode="$withval"
6820
else
6821
  pic_mode=default
6822
fi
6823
6824
6825
test -z "$pic_mode" && pic_mode=default
6826
6827
6828
6829
6830
6831
6832
6833
  # Check whether --enable-fast-install was given.
6834
if test "${enable_fast_install+set}" = set; then :
6835
  enableval=$enable_fast_install; p=${PACKAGE-default}
6836
    case $enableval in
6837
    yes) enable_fast_install=yes ;;
6838
    no) enable_fast_install=no ;;
6839
    *)
6840
      enable_fast_install=no
6841
      # Look at the argument we got.  We use all the common list separators.
6842
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6843
      for pkg in $enableval; do
6844
	IFS="$lt_save_ifs"
6845
	if test "X$pkg" = "X$p"; then
6846
	  enable_fast_install=yes
6847
	fi
6848
      done
6849
      IFS="$lt_save_ifs"
6850
      ;;
6851
    esac
6852
else
6853
  enable_fast_install=yes
6854
fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
# This can be used to rebuild libtool when needed
6867
LIBTOOL_DEPS="$ltmain"
6868
6869
# Always use our own libtool.
6870
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
test -z "$LN_S" && LN_S="ln -s"
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
if test -n "${ZSH_VERSION+set}" ; then
6912
   setopt NO_GLOB_SUBST
6913
fi
6914
6915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6916
$as_echo_n "checking for objdir... " >&6; }
6917
if test "${lt_cv_objdir+set}" = set; then :
6918
  $as_echo_n "(cached) " >&6
6919
else
6920
  rm -f .libs 2>/dev/null
6921
mkdir .libs 2>/dev/null
6922
if test -d .libs; then
6923
  lt_cv_objdir=.libs
6924
else
6925
  # MS-DOS does not allow filenames that begin with a dot.
6926
  lt_cv_objdir=_libs
6927
fi
6928
rmdir .libs 2>/dev/null
6929
fi
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6931
$as_echo "$lt_cv_objdir" >&6; }
6932
objdir=$lt_cv_objdir
6933
6934
6935
6936
6937
6938
cat >>confdefs.h <<_ACEOF
6939
#define LT_OBJDIR "$lt_cv_objdir/"
6940
_ACEOF
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
case $host_os in
6959
aix3*)
6960
  # AIX sometimes has problems with the GCC collect2 program.  For some
6961
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6962
  # vanish in a puff of smoke.
6963
  if test "X${COLLECT_NAMES+set}" != Xset; then
6964
    COLLECT_NAMES=
6965
    export COLLECT_NAMES
6966
  fi
6967
  ;;
6968
esac
6969
6970
# Sed substitution that helps us do robust quoting.  It backslashifies
6971
# metacharacters that are still active within double-quoted strings.
6972
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6973
6974
# Same as above, but do not quote variable references.
6975
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6976
6977
# Sed substitution to delay expansion of an escaped shell variable in a
6978
# double_quote_subst'ed string.
6979
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980
6981
# Sed substitution to delay expansion of an escaped single quote.
6982
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6983
6984
# Sed substitution to avoid accidental globbing in evaled expressions
6985
no_glob_subst='s/\*/\\\*/g'
6986
6987
# Global variables:
6988
ofile=libtool
6989
can_build_shared=yes
6990
6991
# All known linkers require a `.a' archive for static linking (except MSVC,
6992
# which needs '.lib').
6993
libext=a
6994
6995
with_gnu_ld="$lt_cv_prog_gnu_ld"
6996
6997
old_CC="$CC"
6998
old_CFLAGS="$CFLAGS"
6999
7000
# Set sane defaults for various variables
7001
test -z "$CC" && CC=cc
7002
test -z "$LTCC" && LTCC=$CC
7003
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7004
test -z "$LD" && LD=ld
7005
test -z "$ac_objext" && ac_objext=o
7006
7007
for cc_temp in $compiler""; do
7008
  case $cc_temp in
7009
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011
    \-*) ;;
7012
    *) break;;
7013
  esac
7014
done
7015
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7016
7017
7018
# Only perform the check for file, if the check method requires it
7019
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7020
case $deplibs_check_method in
7021
file_magic*)
7022
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7023
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7024
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7025
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7026
  $as_echo_n "(cached) " >&6
7027
else
7028
  case $MAGIC_CMD in
7029
[\\/*] |  ?:[\\/]*)
7030
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7031
  ;;
7032
*)
7033
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7034
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7036
  for ac_dir in $ac_dummy; do
7037
    IFS="$lt_save_ifs"
7038
    test -z "$ac_dir" && ac_dir=.
7039
    if test -f $ac_dir/${ac_tool_prefix}file; then
7040
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7041
      if test -n "$file_magic_test_file"; then
7042
	case $deplibs_check_method in
7043
	"file_magic "*)
7044
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7045
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7047
	    $EGREP "$file_magic_regex" > /dev/null; then
7048
	    :
7049
	  else
7050
	    cat <<_LT_EOF 1>&2
7051
7052
*** Warning: the command libtool uses to detect shared libraries,
7053
*** $file_magic_cmd, produces output that libtool cannot recognize.
7054
*** The result is that libtool may fail to recognize shared libraries
7055
*** as such.  This will affect the creation of libtool libraries that
7056
*** depend on shared libraries, but programs linked with such libtool
7057
*** libraries will work regardless of this problem.  Nevertheless, you
7058
*** may want to report the problem to your system manager and/or to
7059
*** bug-libtool@gnu.org
7060
7061
_LT_EOF
7062
	  fi ;;
7063
	esac
7064
      fi
7065
      break
7066
    fi
7067
  done
7068
  IFS="$lt_save_ifs"
7069
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7070
  ;;
7071
esac
7072
fi
7073
7074
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7075
if test -n "$MAGIC_CMD"; then
7076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7077
$as_echo "$MAGIC_CMD" >&6; }
7078
else
7079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080
$as_echo "no" >&6; }
7081
fi
7082
7083
7084
7085
7086
7087
if test -z "$lt_cv_path_MAGIC_CMD"; then
7088
  if test -n "$ac_tool_prefix"; then
7089
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7090
$as_echo_n "checking for file... " >&6; }
7091
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7092
  $as_echo_n "(cached) " >&6
7093
else
7094
  case $MAGIC_CMD in
7095
[\\/*] |  ?:[\\/]*)
7096
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7097
  ;;
7098
*)
7099
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7100
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7101
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7102
  for ac_dir in $ac_dummy; do
7103
    IFS="$lt_save_ifs"
7104
    test -z "$ac_dir" && ac_dir=.
7105
    if test -f $ac_dir/file; then
7106
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7107
      if test -n "$file_magic_test_file"; then
7108
	case $deplibs_check_method in
7109
	"file_magic "*)
7110
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7111
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7113
	    $EGREP "$file_magic_regex" > /dev/null; then
7114
	    :
7115
	  else
7116
	    cat <<_LT_EOF 1>&2
7117
7118
*** Warning: the command libtool uses to detect shared libraries,
7119
*** $file_magic_cmd, produces output that libtool cannot recognize.
7120
*** The result is that libtool may fail to recognize shared libraries
7121
*** as such.  This will affect the creation of libtool libraries that
7122
*** depend on shared libraries, but programs linked with such libtool
7123
*** libraries will work regardless of this problem.  Nevertheless, you
7124
*** may want to report the problem to your system manager and/or to
7125
*** bug-libtool@gnu.org
7126
7127
_LT_EOF
7128
	  fi ;;
7129
	esac
7130
      fi
7131
      break
7132
    fi
7133
  done
7134
  IFS="$lt_save_ifs"
7135
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7136
  ;;
7137
esac
7138
fi
7139
7140
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7141
if test -n "$MAGIC_CMD"; then
7142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7143
$as_echo "$MAGIC_CMD" >&6; }
7144
else
7145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146
$as_echo "no" >&6; }
7147
fi
7148
7149
7150
  else
7151
    MAGIC_CMD=:
7152
  fi
7153
fi
7154
7155
  fi
7156
  ;;
7157
esac
7158
7159
# Use C for the default configuration in the libtool script
7160
7161
lt_save_CC="$CC"
7162
ac_ext=c
7163
ac_cpp='$CPP $CPPFLAGS'
7164
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7167
7168
7169
# Source file extension for C test sources.
7170
ac_ext=c
7171
7172
# Object file extension for compiled C test sources.
7173
objext=o
7174
objext=$objext
7175
7176
# Code to be used in simple compile tests
7177
lt_simple_compile_test_code="int some_variable = 0;"
7178
7179
# Code to be used in simple link tests
7180
lt_simple_link_test_code='int main(){return(0);}'
7181
7182
7183
7184
7185
7186
7187
7188
# If no C compiler was specified, use CC.
7189
LTCC=${LTCC-"$CC"}
7190
7191
# If no C compiler flags were specified, use CFLAGS.
7192
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7193
7194
# Allow CC to be a program name with arguments.
7195
compiler=$CC
7196
7197
# Save the default compiler, since it gets overwritten when the other
7198
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7199
compiler_DEFAULT=$CC
7200
7201
# save warnings/boilerplate of simple test code
7202
ac_outfile=conftest.$ac_objext
7203
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7204
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7205
_lt_compiler_boilerplate=`cat conftest.err`
7206
$RM conftest*
7207
7208
ac_outfile=conftest.$ac_objext
7209
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7210
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7211
_lt_linker_boilerplate=`cat conftest.err`
7212
$RM -r conftest*
7213
7214
7215
## CAVEAT EMPTOR:
7216
## There is no encapsulation within the following macros, do not change
7217
## the running order or otherwise move them around unless you know exactly
7218
## what you are doing...
7219
if test -n "$compiler"; then
7220
7221
lt_prog_compiler_no_builtin_flag=
7222
7223
if test "$GCC" = yes; then
7224
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7225
7226
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7227
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7228
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7229
  $as_echo_n "(cached) " >&6
7230
else
7231
  lt_cv_prog_compiler_rtti_exceptions=no
7232
   ac_outfile=conftest.$ac_objext
7233
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7234
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7235
   # Insert the option either (1) after the last *FLAGS variable, or
7236
   # (2) before a word containing "conftest.", or (3) at the end.
7237
   # Note that $ac_compile itself does not contain backslashes and begins
7238
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7239
   # The option is referenced via a variable to avoid confusing sed.
7240
   lt_compile=`echo "$ac_compile" | $SED \
7241
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7242
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243
   -e 's:$: $lt_compiler_flag:'`
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7244
   (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7245
   (eval "$lt_compile" 2>conftest.err)
7246
   ac_status=$?
7247
   cat conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7248
   echo "$as_me:7248: \$? = $ac_status" >&5
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7249
   if (exit $ac_status) && test -s "$ac_outfile"; then
7250
     # The compiler can only warn and ignore the option if not recognized
7251
     # So say no if there are warnings other than the usual output.
7252
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7253
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7254
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7255
       lt_cv_prog_compiler_rtti_exceptions=yes
7256
     fi
7257
   fi
7258
   $RM conftest*
7259
7260
fi
7261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7262
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7263
7264
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7265
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7266
else
7267
    :
7268
fi
7269
7270
fi
7271
7272
7273
7274
7275
7276
7277
  lt_prog_compiler_wl=
7278
lt_prog_compiler_pic=
7279
lt_prog_compiler_static=
7280
7281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7282
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7283
7284
  if test "$GCC" = yes; then
7285
    lt_prog_compiler_wl='-Wl,'
7286
    lt_prog_compiler_static='-static'
7287
7288
    case $host_os in
7289
      aix*)
7290
      # All AIX code is PIC.
7291
      if test "$host_cpu" = ia64; then
7292
	# AIX 5 now supports IA64 processor
7293
	lt_prog_compiler_static='-Bstatic'
7294
      fi
7295
      ;;
7296
7297
    amigaos*)
7298
      case $host_cpu in
7299
      powerpc)
7300
            # see comment about AmigaOS4 .so support
7301
            lt_prog_compiler_pic='-fPIC'
7302
        ;;
7303
      m68k)
7304
            # FIXME: we need at least 68020 code to build shared libraries, but
7305
            # adding the `-m68020' flag to GCC prevents building anything better,
7306
            # like `-m68040'.
7307
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7308
        ;;
7309
      esac
7310
      ;;
7311
7312
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7313
      # PIC is the default for these OSes.
7314
      ;;
7315
7316
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7317
      # This hack is so that the source file can tell whether it is being
7318
      # built for inclusion in a dll (and should export symbols for example).
7319
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7320
      # (--disable-auto-import) libraries
7321
      lt_prog_compiler_pic='-DDLL_EXPORT'
7322
      ;;
7323
7324
    darwin* | rhapsody*)
7325
      # PIC is the default on this platform
7326
      # Common symbols not allowed in MH_DYLIB files
7327
      lt_prog_compiler_pic='-fno-common'
7328
      ;;
7329
7330
    hpux*)
7331
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7332
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7333
      # sets the default TLS model and affects inlining.
7334
      case $host_cpu in
7335
      hppa*64*)
7336
	# +Z the default
7337
	;;
7338
      *)
7339
	lt_prog_compiler_pic='-fPIC'
7340
	;;
7341
      esac
7342
      ;;
7343
7344
    interix[3-9]*)
7345
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7346
      # Instead, we relocate shared libraries at runtime.
7347
      ;;
7348
7349
    msdosdjgpp*)
7350
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7351
      # on systems that don't support them.
7352
      lt_prog_compiler_can_build_shared=no
7353
      enable_shared=no
7354
      ;;
7355
7356
    *nto* | *qnx*)
7357
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7358
      # it will coredump.
7359
      lt_prog_compiler_pic='-fPIC -shared'
7360
      ;;
7361
7362
    sysv4*MP*)
7363
      if test -d /usr/nec; then
7364
	lt_prog_compiler_pic=-Kconform_pic
7365
      fi
7366
      ;;
7367
7368
    *)
7369
      lt_prog_compiler_pic='-fPIC'
7370
      ;;
7371
    esac
7372
  else
7373
    # PORTME Check for flag to pass linker flags through the system compiler.
7374
    case $host_os in
7375
    aix*)
7376
      lt_prog_compiler_wl='-Wl,'
7377
      if test "$host_cpu" = ia64; then
7378
	# AIX 5 now supports IA64 processor
7379
	lt_prog_compiler_static='-Bstatic'
7380
      else
7381
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7382
      fi
7383
      ;;
7384
7385
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7386
      # This hack is so that the source file can tell whether it is being
7387
      # built for inclusion in a dll (and should export symbols for example).
7388
      lt_prog_compiler_pic='-DDLL_EXPORT'
7389
      ;;
7390
7391
    hpux9* | hpux10* | hpux11*)
7392
      lt_prog_compiler_wl='-Wl,'
7393
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7394
      # not for PA HP-UX.
7395
      case $host_cpu in
7396
      hppa*64*|ia64*)
7397
	# +Z the default
7398
	;;
7399
      *)
7400
	lt_prog_compiler_pic='+Z'
7401
	;;
7402
      esac
7403
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7404
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7405
      ;;
7406
7407
    irix5* | irix6* | nonstopux*)
7408
      lt_prog_compiler_wl='-Wl,'
7409
      # PIC (with -KPIC) is the default.
7410
      lt_prog_compiler_static='-non_shared'
7411
      ;;
7412
7413
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7414
      case $cc_basename in
7415
      # old Intel for x86_64 which still supported -KPIC.
7416
      ecc*)
7417
	lt_prog_compiler_wl='-Wl,'
7418
	lt_prog_compiler_pic='-KPIC'
7419
	lt_prog_compiler_static='-static'
7420
        ;;
7421
      # icc used to be incompatible with GCC.
7422
      # ICC 10 doesn't accept -KPIC any more.
7423
      icc* | ifort*)
7424
	lt_prog_compiler_wl='-Wl,'
7425
	lt_prog_compiler_pic='-fPIC'
7426
	lt_prog_compiler_static='-static'
7427
        ;;
7428
      # Lahey Fortran 8.1.
7429
      lf95*)
7430
	lt_prog_compiler_wl='-Wl,'
7431
	lt_prog_compiler_pic='--shared'
7432
	lt_prog_compiler_static='--static'
7433
	;;
7434
      pgcc* | pgf77* | pgf90* | pgf95*)
7435
        # Portland Group compilers (*not* the Pentium gcc compiler,
7436
	# which looks to be a dead project)
7437
	lt_prog_compiler_wl='-Wl,'
7438
	lt_prog_compiler_pic='-fpic'
7439
	lt_prog_compiler_static='-Bstatic'
7440
        ;;
7441
      ccc*)
7442
        lt_prog_compiler_wl='-Wl,'
7443
        # All Alpha code is PIC.
7444
        lt_prog_compiler_static='-non_shared'
7445
        ;;
7446
      xl*)
7447
	# IBM XL C 8.0/Fortran 10.1 on PPC
7448
	lt_prog_compiler_wl='-Wl,'
7449
	lt_prog_compiler_pic='-qpic'
7450
	lt_prog_compiler_static='-qstaticlink'
7451
	;;
7452
      *)
7453
	case `$CC -V 2>&1 | sed 5q` in
7454
	*Sun\ C*)
7455
	  # Sun C 5.9
7456
	  lt_prog_compiler_pic='-KPIC'
7457
	  lt_prog_compiler_static='-Bstatic'
7458
	  lt_prog_compiler_wl='-Wl,'
7459
	  ;;
7460
	*Sun\ F*)
7461
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7462
	  lt_prog_compiler_pic='-KPIC'
7463
	  lt_prog_compiler_static='-Bstatic'
7464
	  lt_prog_compiler_wl=''
7465
	  ;;
7466
	esac
7467
	;;
7468
      esac
7469
      ;;
7470
7471
    newsos6)
7472
      lt_prog_compiler_pic='-KPIC'
7473
      lt_prog_compiler_static='-Bstatic'
7474
      ;;
7475
7476
    *nto* | *qnx*)
7477
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7478
      # it will coredump.
7479
      lt_prog_compiler_pic='-fPIC -shared'
7480
      ;;
7481
7482
    osf3* | osf4* | osf5*)
7483
      lt_prog_compiler_wl='-Wl,'
7484
      # All OSF/1 code is PIC.
7485
      lt_prog_compiler_static='-non_shared'
7486
      ;;
7487
7488
    rdos*)
7489
      lt_prog_compiler_static='-non_shared'
7490
      ;;
7491
7492
    solaris*)
7493
      lt_prog_compiler_pic='-KPIC'
7494
      lt_prog_compiler_static='-Bstatic'
7495
      case $cc_basename in
7496
      f77* | f90* | f95*)
7497
	lt_prog_compiler_wl='-Qoption ld ';;
7498
      *)
7499
	lt_prog_compiler_wl='-Wl,';;
7500
      esac
7501
      ;;
7502
7503
    sunos4*)
7504
      lt_prog_compiler_wl='-Qoption ld '
7505
      lt_prog_compiler_pic='-PIC'
7506
      lt_prog_compiler_static='-Bstatic'
7507
      ;;
7508
7509
    sysv4 | sysv4.2uw2* | sysv4.3*)
7510
      lt_prog_compiler_wl='-Wl,'
7511
      lt_prog_compiler_pic='-KPIC'
7512
      lt_prog_compiler_static='-Bstatic'
7513
      ;;
7514
7515
    sysv4*MP*)
7516
      if test -d /usr/nec ;then
7517
	lt_prog_compiler_pic='-Kconform_pic'
7518
	lt_prog_compiler_static='-Bstatic'
7519
      fi
7520
      ;;
7521
7522
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7523
      lt_prog_compiler_wl='-Wl,'
7524
      lt_prog_compiler_pic='-KPIC'
7525
      lt_prog_compiler_static='-Bstatic'
7526
      ;;
7527
7528
    unicos*)
7529
      lt_prog_compiler_wl='-Wl,'
7530
      lt_prog_compiler_can_build_shared=no
7531
      ;;
7532
7533
    uts4*)
7534
      lt_prog_compiler_pic='-pic'
7535
      lt_prog_compiler_static='-Bstatic'
7536
      ;;
7537
7538
    *)
7539
      lt_prog_compiler_can_build_shared=no
7540
      ;;
7541
    esac
7542
  fi
7543
7544
case $host_os in
7545
  # For platforms which do not support PIC, -DPIC is meaningless:
7546
  *djgpp*)
7547
    lt_prog_compiler_pic=
7548
    ;;
7549
  *)
7550
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7551
    ;;
7552
esac
7553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7554
$as_echo "$lt_prog_compiler_pic" >&6; }
7555
7556
7557
7558
7559
7560
7561
#
7562
# Check to make sure the PIC flag actually works.
7563
#
7564
if test -n "$lt_prog_compiler_pic"; then
7565
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7566
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7567
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7568
  $as_echo_n "(cached) " >&6
7569
else
7570
  lt_cv_prog_compiler_pic_works=no
7571
   ac_outfile=conftest.$ac_objext
7572
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7574
   # Insert the option either (1) after the last *FLAGS variable, or
7575
   # (2) before a word containing "conftest.", or (3) at the end.
7576
   # Note that $ac_compile itself does not contain backslashes and begins
7577
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7578
   # The option is referenced via a variable to avoid confusing sed.
7579
   lt_compile=`echo "$ac_compile" | $SED \
7580
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582
   -e 's:$: $lt_compiler_flag:'`
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7583
   (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7584
   (eval "$lt_compile" 2>conftest.err)
7585
   ac_status=$?
7586
   cat conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7587
   echo "$as_me:7587: \$? = $ac_status" >&5
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7588
   if (exit $ac_status) && test -s "$ac_outfile"; then
7589
     # The compiler can only warn and ignore the option if not recognized
7590
     # So say no if there are warnings other than the usual output.
7591
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7592
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594
       lt_cv_prog_compiler_pic_works=yes
7595
     fi
7596
   fi
7597
   $RM conftest*
7598
7599
fi
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7601
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7602
7603
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7604
    case $lt_prog_compiler_pic in
7605
     "" | " "*) ;;
7606
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7607
     esac
7608
else
7609
    lt_prog_compiler_pic=
7610
     lt_prog_compiler_can_build_shared=no
7611
fi
7612
7613
fi
7614
7615
7616
7617
7618
7619
7620
#
7621
# Check to make sure the static flag actually works.
7622
#
7623
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7625
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7626
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7627
  $as_echo_n "(cached) " >&6
7628
else
7629
  lt_cv_prog_compiler_static_works=no
7630
   save_LDFLAGS="$LDFLAGS"
7631
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7632
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7633
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7634
     # The linker can only warn and ignore the option if not recognized
7635
     # So say no if there are warnings
7636
     if test -s conftest.err; then
7637
       # Append any errors to the config.log.
7638
       cat conftest.err 1>&5
7639
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7640
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641
       if diff conftest.exp conftest.er2 >/dev/null; then
7642
         lt_cv_prog_compiler_static_works=yes
7643
       fi
7644
     else
7645
       lt_cv_prog_compiler_static_works=yes
7646
     fi
7647
   fi
7648
   $RM -r conftest*
7649
   LDFLAGS="$save_LDFLAGS"
7650
7651
fi
7652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7653
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7654
7655
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7656
    :
7657
else
7658
    lt_prog_compiler_static=
7659
fi
7660
7661
7662
7663
7664
7665
7666
7667
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7668
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7669
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7670
  $as_echo_n "(cached) " >&6
7671
else
7672
  lt_cv_prog_compiler_c_o=no
7673
   $RM -r conftest 2>/dev/null
7674
   mkdir conftest
7675
   cd conftest
7676
   mkdir out
7677
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7678
7679
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7680
   # Insert the option either (1) after the last *FLAGS variable, or
7681
   # (2) before a word containing "conftest.", or (3) at the end.
7682
   # Note that $ac_compile itself does not contain backslashes and begins
7683
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7684
   lt_compile=`echo "$ac_compile" | $SED \
7685
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687
   -e 's:$: $lt_compiler_flag:'`
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7688
   (eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7689
   (eval "$lt_compile" 2>out/conftest.err)
7690
   ac_status=$?
7691
   cat out/conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7692
   echo "$as_me:7692: \$? = $ac_status" >&5
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7693
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7694
   then
7695
     # The compiler can only warn and ignore the option if not recognized
7696
     # So say no if there are warnings
7697
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7698
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7699
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7700
       lt_cv_prog_compiler_c_o=yes
7701
     fi
7702
   fi
7703
   chmod u+w . 2>&5
7704
   $RM conftest*
7705
   # SGI C++ compiler will create directory out/ii_files/ for
7706
   # template instantiation
7707
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7708
   $RM out/* && rmdir out
7709
   cd ..
7710
   $RM -r conftest
7711
   $RM conftest*
7712
7713
fi
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7715
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7716
7717
7718
7719
7720
7721
7722
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7723
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7724
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7725
  $as_echo_n "(cached) " >&6
7726
else
7727
  lt_cv_prog_compiler_c_o=no
7728
   $RM -r conftest 2>/dev/null
7729
   mkdir conftest
7730
   cd conftest
7731
   mkdir out
7732
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733
7734
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7735
   # Insert the option either (1) after the last *FLAGS variable, or
7736
   # (2) before a word containing "conftest.", or (3) at the end.
7737
   # Note that $ac_compile itself does not contain backslashes and begins
7738
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7739
   lt_compile=`echo "$ac_compile" | $SED \
7740
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742
   -e 's:$: $lt_compiler_flag:'`
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7743
   (eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7744
   (eval "$lt_compile" 2>out/conftest.err)
7745
   ac_status=$?
7746
   cat out/conftest.err >&5
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
7747
   echo "$as_me:7747: \$? = $ac_status" >&5
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
7748
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7749
   then
7750
     # The compiler can only warn and ignore the option if not recognized
7751
     # So say no if there are warnings
7752
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7753
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7754
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7755
       lt_cv_prog_compiler_c_o=yes
7756
     fi
7757
   fi
7758
   chmod u+w . 2>&5
7759
   $RM conftest*
7760
   # SGI C++ compiler will create directory out/ii_files/ for
7761
   # template instantiation
7762
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7763
   $RM out/* && rmdir out
7764
   cd ..
7765
   $RM -r conftest
7766
   $RM conftest*
7767
7768
fi
7769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7770
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7771
7772
7773
7774
7775
hard_links="nottested"
7776
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7777
  # do not overwrite the value of need_locks provided by the user
7778
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7779
$as_echo_n "checking if we can lock with hard links... " >&6; }
7780
  hard_links=yes
7781
  $RM conftest*
7782
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7783
  touch conftest.a
7784
  ln conftest.a conftest.b 2>&5 || hard_links=no
7785
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7787
$as_echo "$hard_links" >&6; }
7788
  if test "$hard_links" = no; then
7789
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7790
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7791
    need_locks=warn
7792
  fi
7793
else
7794
  need_locks=no
7795
fi
7796
7797
7798
7799
7800
7801
7802
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7803
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7804
7805
  runpath_var=
7806
  allow_undefined_flag=
7807
  always_export_symbols=no
7808
  archive_cmds=
7809
  archive_expsym_cmds=
7810
  compiler_needs_object=no
7811
  enable_shared_with_static_runtimes=no
7812
  export_dynamic_flag_spec=
7813
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7814
  hardcode_automatic=no
7815
  hardcode_direct=no
7816
  hardcode_direct_absolute=no
7817
  hardcode_libdir_flag_spec=
7818
  hardcode_libdir_flag_spec_ld=
7819
  hardcode_libdir_separator=
7820
  hardcode_minus_L=no
7821
  hardcode_shlibpath_var=unsupported
7822
  inherit_rpath=no
7823
  link_all_deplibs=unknown
7824
  module_cmds=
7825
  module_expsym_cmds=
7826
  old_archive_from_new_cmds=
7827
  old_archive_from_expsyms_cmds=
7828
  thread_safe_flag_spec=
7829
  whole_archive_flag_spec=
7830
  # include_expsyms should be a list of space-separated symbols to be *always*
7831
  # included in the symbol list
7832
  include_expsyms=
7833
  # exclude_expsyms can be an extended regexp of symbols to exclude
7834
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7835
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7836
  # as well as any symbol that contains `d'.
7837
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7838
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7839
  # platforms (ab)use it in PIC code, but their linkers get confused if
7840
  # the symbol is explicitly referenced.  Since portable code cannot
7841
  # rely on this symbol name, it's probably fine to never include it in
7842
  # preloaded symbol tables.
7843
  # Exclude shared library initialization/finalization symbols.
7844
  extract_expsyms_cmds=
7845
7846
  case $host_os in
7847
  cygwin* | mingw* | pw32* | cegcc*)
7848
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7849
    # When not using gcc, we currently assume that we are using
7850
    # Microsoft Visual C++.
7851
    if test "$GCC" != yes; then
7852
      with_gnu_ld=no
7853
    fi
7854
    ;;
7855
  interix*)
7856
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7857
    with_gnu_ld=yes
7858
    ;;
7859
  openbsd*)
7860
    with_gnu_ld=no
7861
    ;;
7862
  linux* | k*bsd*-gnu)
7863
    link_all_deplibs=no
7864
    ;;
7865
  esac
7866
7867
  ld_shlibs=yes
7868
  if test "$with_gnu_ld" = yes; then
7869
    # If archive_cmds runs LD, not CC, wlarc should be empty
7870
    wlarc='${wl}'
7871
7872
    # Set some defaults for GNU ld with shared library support. These
7873
    # are reset later if shared libraries are not supported. Putting them
7874
    # here allows them to be overridden if necessary.
7875
    runpath_var=LD_RUN_PATH
7876
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877
    export_dynamic_flag_spec='${wl}--export-dynamic'
7878
    # ancient GNU ld didn't support --whole-archive et. al.
7879
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7880
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7881
    else
7882
      whole_archive_flag_spec=
7883
    fi
7884
    supports_anon_versioning=no
7885
    case `$LD -v 2>&1` in
7886
      *GNU\ gold*) supports_anon_versioning=yes ;;
7887
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7888
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7889
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7890
      *\ 2.11.*) ;; # other 2.11 versions
7891
      *) supports_anon_versioning=yes ;;
7892
    esac
7893
7894
    # See if GNU ld supports shared libraries.
7895
    case $host_os in
7896
    aix[3-9]*)
7897
      # On AIX/PPC, the GNU linker is very broken
7898
      if test "$host_cpu" != ia64; then
7899
	ld_shlibs=no
7900
	cat <<_LT_EOF 1>&2
7901
7902
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7903
*** to be unable to reliably create shared libraries on AIX.
7904
*** Therefore, libtool is disabling shared libraries support.  If you
7905
*** really care for shared libraries, you may want to modify your PATH
7906
*** so that a non-GNU linker is found, and then restart.
7907
7908
_LT_EOF
7909
      fi
7910
      ;;
7911
7912
    amigaos*)
7913
      case $host_cpu in
7914
      powerpc)
7915
            # see comment about AmigaOS4 .so support
7916
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7917
            archive_expsym_cmds=''
7918
        ;;
7919
      m68k)
7920
            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)'
7921
            hardcode_libdir_flag_spec='-L$libdir'
7922
            hardcode_minus_L=yes
7923
        ;;
7924
      esac
7925
      ;;
7926
7927
    beos*)
7928
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7929
	allow_undefined_flag=unsupported
7930
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7931
	# support --undefined.  This deserves some investigation.  FIXME
7932
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7933
      else
7934
	ld_shlibs=no
7935
      fi
7936
      ;;
7937
7938
    cygwin* | mingw* | pw32* | cegcc*)
7939
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7940
      # as there is no search path for DLLs.
7941
      hardcode_libdir_flag_spec='-L$libdir'
7942
      allow_undefined_flag=unsupported
7943
      always_export_symbols=no
7944
      enable_shared_with_static_runtimes=yes
7945
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7946
7947
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7948
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7949
	# If the export-symbols file already is a .def file (1st line
7950
	# is EXPORTS), use it as is; otherwise, prepend...
7951
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7952
	  cp $export_symbols $output_objdir/$soname.def;
7953
	else
7954
	  echo EXPORTS > $output_objdir/$soname.def;
7955
	  cat $export_symbols >> $output_objdir/$soname.def;
7956
	fi~
7957
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7958
      else
7959
	ld_shlibs=no
7960
      fi
7961
      ;;
7962
7963
    interix[3-9]*)
7964
      hardcode_direct=no
7965
      hardcode_shlibpath_var=no
7966
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7967
      export_dynamic_flag_spec='${wl}-E'
7968
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7969
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7970
      # default) and relocated if they conflict, which is a slow very memory
7971
      # consuming and fragmenting process.  To avoid this, we pick a random,
7972
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7973
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7974
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7975
      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'
7976
      ;;
7977
7978
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7979
      tmp_diet=no
7980
      if test "$host_os" = linux-dietlibc; then
7981
	case $cc_basename in
7982
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7983
	esac
7984
      fi
7985
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7986
	 && test "$tmp_diet" = no
7987
      then
7988
	tmp_addflag=
7989
	tmp_sharedflag='-shared'
7990
	case $cc_basename,$host_cpu in
7991
        pgcc*)				# Portland Group C compiler
7992
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7993
	  tmp_addflag=' $pic_flag'
7994
	  ;;
7995
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7996
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7997
	  tmp_addflag=' $pic_flag -Mnomain' ;;
7998
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7999
	  tmp_addflag=' -i_dynamic' ;;
8000
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8001
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8002
	ifc* | ifort*)			# Intel Fortran compiler
8003
	  tmp_addflag=' -nofor_main' ;;
8004
	lf95*)				# Lahey Fortran 8.1
8005
	  whole_archive_flag_spec=
8006
	  tmp_sharedflag='--shared' ;;
8007
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8008
	  tmp_sharedflag='-qmkshrobj'
8009
	  tmp_addflag= ;;
8010
	esac
8011
	case `$CC -V 2>&1 | sed 5q` in
8012
	*Sun\ C*)			# Sun C 5.9
8013
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8014
	  compiler_needs_object=yes
8015
	  tmp_sharedflag='-G' ;;
8016
	*Sun\ F*)			# Sun Fortran 8.3
8017
	  tmp_sharedflag='-G' ;;
8018
	esac
8019
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8020
8021
        if test "x$supports_anon_versioning" = xyes; then
8022
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8023
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8024
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8025
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8026
        fi
8027
8028
	case $cc_basename in
8029
	xlf*)
8030
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8031
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8032
	  hardcode_libdir_flag_spec=
8033
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8034
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8035
	  if test "x$supports_anon_versioning" = xyes; then
8036
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8037
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8038
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8039
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8040
	  fi
8041
	  ;;
8042
	esac
8043
      else
8044
        ld_shlibs=no
8045
      fi
8046
      ;;
8047
8048
    netbsd* | netbsdelf*-gnu)
8049
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8050
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8051
	wlarc=
8052
      else
8053
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055
      fi
8056
      ;;
8057
8058
    solaris*)
8059
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8060
	ld_shlibs=no
8061
	cat <<_LT_EOF 1>&2
8062
8063
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8064
*** create shared libraries on Solaris systems.  Therefore, libtool
8065
*** is disabling shared libraries support.  We urge you to upgrade GNU
8066
*** binutils to release 2.9.1 or newer.  Another option is to modify
8067
*** your PATH or compiler configuration so that the native linker is
8068
*** used, and then restart.
8069
8070
_LT_EOF
8071
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8072
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8074
      else
8075
	ld_shlibs=no
8076
      fi
8077
      ;;
8078
8079
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8080
      case `$LD -v 2>&1` in
8081
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8082
	ld_shlibs=no
8083
	cat <<_LT_EOF 1>&2
8084
8085
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8086
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8087
*** is disabling shared libraries support.  We urge you to upgrade GNU
8088
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8089
*** your PATH or compiler configuration so that the native linker is
8090
*** used, and then restart.
8091
8092
_LT_EOF
8093
	;;
8094
	*)
8095
	  # For security reasons, it is highly recommended that you always
8096
	  # use absolute paths for naming shared libraries, and exclude the
8097
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8098
	  # requires that you compile everything twice, which is a pain.
8099
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8100
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8101
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8102
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8103
	  else
8104
	    ld_shlibs=no
8105
	  fi
8106
	;;
8107
      esac
8108
      ;;
8109
8110
    sunos4*)
8111
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112
      wlarc=
8113
      hardcode_direct=yes
8114
      hardcode_shlibpath_var=no
8115
      ;;
8116
8117
    *)
8118
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8119
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8121
      else
8122
	ld_shlibs=no
8123
      fi
8124
      ;;
8125
    esac
8126
8127
    if test "$ld_shlibs" = no; then
8128
      runpath_var=
8129
      hardcode_libdir_flag_spec=
8130
      export_dynamic_flag_spec=
8131
      whole_archive_flag_spec=
8132
    fi
8133
  else
8134
    # PORTME fill in a description of your system's linker (not GNU ld)
8135
    case $host_os in
8136
    aix3*)
8137
      allow_undefined_flag=unsupported
8138
      always_export_symbols=yes
8139
      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'
8140
      # Note: this linker hardcodes the directories in LIBPATH if there
8141
      # are no directories specified by -L.
8142
      hardcode_minus_L=yes
8143
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8144
	# Neither direct hardcoding nor static linking is supported with a
8145
	# broken collect2.
8146
	hardcode_direct=unsupported
8147
      fi
8148
      ;;
8149
8150
    aix[4-9]*)
8151
      if test "$host_cpu" = ia64; then
8152
	# On IA64, the linker does run time linking by default, so we don't
8153
	# have to do anything special.
8154
	aix_use_runtimelinking=no
8155
	exp_sym_flag='-Bexport'
8156
	no_entry_flag=""
8157
      else
8158
	# If we're using GNU nm, then we don't want the "-C" option.
8159
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8160
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8161
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8162
	else
8163
	  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'
8164
	fi
8165
	aix_use_runtimelinking=no
8166
8167
	# Test if we are trying to use run time linking or normal
8168
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8169
	# need to do runtime linking.
8170
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8171
	  for ld_flag in $LDFLAGS; do
8172
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8173
	    aix_use_runtimelinking=yes
8174
	    break
8175
	  fi
8176
	  done
8177
	  ;;
8178
	esac
8179
8180
	exp_sym_flag='-bexport'
8181
	no_entry_flag='-bnoentry'
8182
      fi
8183
8184
      # When large executables or shared objects are built, AIX ld can
8185
      # have problems creating the table of contents.  If linking a library
8186
      # or program results in "error TOC overflow" add -mminimal-toc to
8187
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8188
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8189
8190
      archive_cmds=''
8191
      hardcode_direct=yes
8192
      hardcode_direct_absolute=yes
8193
      hardcode_libdir_separator=':'
8194
      link_all_deplibs=yes
8195
      file_list_spec='${wl}-f,'
8196
8197
      if test "$GCC" = yes; then
8198
	case $host_os in aix4.[012]|aix4.[012].*)
8199
	# We only want to do this on AIX 4.2 and lower, the check
8200
	# below for broken collect2 doesn't work under 4.3+
8201
	  collect2name=`${CC} -print-prog-name=collect2`
8202
	  if test -f "$collect2name" &&
8203
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8204
	  then
8205
	  # We have reworked collect2
8206
	  :
8207
	  else
8208
	  # We have old collect2
8209
	  hardcode_direct=unsupported
8210
	  # It fails to find uninstalled libraries when the uninstalled
8211
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8212
	  # to unsupported forces relinking
8213
	  hardcode_minus_L=yes
8214
	  hardcode_libdir_flag_spec='-L$libdir'
8215
	  hardcode_libdir_separator=
8216
	  fi
8217
	  ;;
8218
	esac
8219
	shared_flag='-shared'
8220
	if test "$aix_use_runtimelinking" = yes; then
8221
	  shared_flag="$shared_flag "'${wl}-G'
8222
	fi
8223
	link_all_deplibs=no
8224
      else
8225
	# not using gcc
8226
	if test "$host_cpu" = ia64; then
8227
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8228
	# chokes on -Wl,-G. The following line is correct:
8229
	  shared_flag='-G'
8230
	else
8231
	  if test "$aix_use_runtimelinking" = yes; then
8232
	    shared_flag='${wl}-G'
8233
	  else
8234
	    shared_flag='${wl}-bM:SRE'
8235
	  fi
8236
	fi
8237
      fi
8238
8239
      export_dynamic_flag_spec='${wl}-bexpall'
8240
      # It seems that -bexpall does not export symbols beginning with
8241
      # underscore (_), so it is better to generate a list of symbols to export.
8242
      always_export_symbols=yes
8243
      if test "$aix_use_runtimelinking" = yes; then
8244
	# Warning - without using the other runtime loading flags (-brtl),
8245
	# -berok will link without error, but may produce a broken library.
8246
	allow_undefined_flag='-berok'
8247
        # Determine the default libpath from the value encoded in an
8248
        # empty executable.
8249
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250
/* end confdefs.h.  */
8251
8252
int
8253
main ()
8254
{
8255
8256
  ;
8257
  return 0;
8258
}
8259
_ACEOF
8260
if ac_fn_c_try_link "$LINENO"; then :
8261
8262
lt_aix_libpath_sed='
8263
    /Import File Strings/,/^$/ {
8264
	/^0/ {
8265
	    s/^0  *\(.*\)$/\1/
8266
	    p
8267
	}
8268
    }'
8269
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8270
# Check for a 64-bit object if we didn't find anything.
8271
if test -z "$aix_libpath"; then
8272
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8273
fi
8274
fi
8275
rm -f core conftest.err conftest.$ac_objext \
8276
    conftest$ac_exeext conftest.$ac_ext
8277
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
8279
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8280
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8281
      else
8282
	if test "$host_cpu" = ia64; then
8283
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8284
	  allow_undefined_flag="-z nodefs"
8285
	  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"
8286
	else
8287
	 # Determine the default libpath from the value encoded in an
8288
	 # empty executable.
8289
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290
/* end confdefs.h.  */
8291
8292
int
8293
main ()
8294
{
8295
8296
  ;
8297
  return 0;
8298
}
8299
_ACEOF
8300
if ac_fn_c_try_link "$LINENO"; then :
8301
8302
lt_aix_libpath_sed='
8303
    /Import File Strings/,/^$/ {
8304
	/^0/ {
8305
	    s/^0  *\(.*\)$/\1/
8306
	    p
8307
	}
8308
    }'
8309
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8310
# Check for a 64-bit object if we didn't find anything.
8311
if test -z "$aix_libpath"; then
8312
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8313
fi
8314
fi
8315
rm -f core conftest.err conftest.$ac_objext \
8316
    conftest$ac_exeext conftest.$ac_ext
8317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8318
8319
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8320
	  # Warning - without using the other run time loading flags,
8321
	  # -berok will link without error, but may produce a broken library.
8322
	  no_undefined_flag=' ${wl}-bernotok'
8323
	  allow_undefined_flag=' ${wl}-berok'
8324
	  # Exported symbols can be pulled into shared objects from archives
8325
	  whole_archive_flag_spec='$convenience'
8326
	  archive_cmds_need_lc=yes
8327
	  # This is similar to how AIX traditionally builds its shared libraries.
8328
	  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'
8329
	fi
8330
      fi
8331
      ;;
8332
8333
    amigaos*)
8334
      case $host_cpu in
8335
      powerpc)
8336
            # see comment about AmigaOS4 .so support
8337
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338
            archive_expsym_cmds=''
8339
        ;;
8340
      m68k)
8341
            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)'
8342
            hardcode_libdir_flag_spec='-L$libdir'
8343
            hardcode_minus_L=yes
8344
        ;;
8345
      esac
8346
      ;;
8347
8348
    bsdi[45]*)
8349
      export_dynamic_flag_spec=-rdynamic
8350
      ;;
8351
8352
    cygwin* | mingw* | pw32* | cegcc*)
8353
      # When not using gcc, we currently assume that we are using
8354
      # Microsoft Visual C++.
8355
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8356
      # no search path for DLLs.
8357
      hardcode_libdir_flag_spec=' '
8358
      allow_undefined_flag=unsupported
8359
      # Tell ltmain to make .lib files, not .a files.
8360
      libext=lib
8361
      # Tell ltmain to make .dll files, not .so files.
8362
      shrext_cmds=".dll"
8363
      # FIXME: Setting linknames here is a bad hack.
8364
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8365
      # The linker will automatically build a .lib file if we build a DLL.
8366
      old_archive_from_new_cmds='true'
8367
      # FIXME: Should let the user specify the lib program.
8368
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8369
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8370
      enable_shared_with_static_runtimes=yes
8371
      ;;
8372
8373
    darwin* | rhapsody*)
8374
8375
8376
  archive_cmds_need_lc=no
8377
  hardcode_direct=no
8378
  hardcode_automatic=yes
8379
  hardcode_shlibpath_var=unsupported
8380
  whole_archive_flag_spec=''
8381
  link_all_deplibs=yes
8382
  allow_undefined_flag="$_lt_dar_allow_undefined"
8383
  case $cc_basename in
8384
     ifort*) _lt_dar_can_shared=yes ;;
8385
     *) _lt_dar_can_shared=$GCC ;;
8386
  esac
8387
  if test "$_lt_dar_can_shared" = "yes"; then
8388
    output_verbose_link_cmd=echo
8389
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8390
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8391
    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}"
8392
    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}"
8393
8394
  else
8395
  ld_shlibs=no
8396
  fi
8397
8398
      ;;
8399
8400
    dgux*)
8401
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402
      hardcode_libdir_flag_spec='-L$libdir'
8403
      hardcode_shlibpath_var=no
8404
      ;;
8405
8406
    freebsd1*)
8407
      ld_shlibs=no
8408
      ;;
8409
8410
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8411
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8412
    # does not break anything, and helps significantly (at the cost of a little
8413
    # extra space).
8414
    freebsd2.2*)
8415
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8416
      hardcode_libdir_flag_spec='-R$libdir'
8417
      hardcode_direct=yes
8418
      hardcode_shlibpath_var=no
8419
      ;;
8420
8421
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8422
    freebsd2*)
8423
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8424
      hardcode_direct=yes
8425
      hardcode_minus_L=yes
8426
      hardcode_shlibpath_var=no
8427
      ;;
8428
8429
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8430
    freebsd* | dragonfly*)
8431
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8432
      hardcode_libdir_flag_spec='-R$libdir'
8433
      hardcode_direct=yes
8434
      hardcode_shlibpath_var=no
8435
      ;;
8436
8437
    hpux9*)
8438
      if test "$GCC" = yes; then
8439
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8440
      else
8441
	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'
8442
      fi
8443
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8444
      hardcode_libdir_separator=:
8445
      hardcode_direct=yes
8446
8447
      # hardcode_minus_L: Not really in the search PATH,
8448
      # but as the default location of the library.
8449
      hardcode_minus_L=yes
8450
      export_dynamic_flag_spec='${wl}-E'
8451
      ;;
8452
8453
    hpux10*)
8454
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8455
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8456
      else
8457
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8458
      fi
8459
      if test "$with_gnu_ld" = no; then
8460
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8461
	hardcode_libdir_flag_spec_ld='+b $libdir'
8462
	hardcode_libdir_separator=:
8463
	hardcode_direct=yes
8464
	hardcode_direct_absolute=yes
8465
	export_dynamic_flag_spec='${wl}-E'
8466
	# hardcode_minus_L: Not really in the search PATH,
8467
	# but as the default location of the library.
8468
	hardcode_minus_L=yes
8469
      fi
8470
      ;;
8471
8472
    hpux11*)
8473
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8474
	case $host_cpu in
8475
	hppa*64*)
8476
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8477
	  ;;
8478
	ia64*)
8479
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8480
	  ;;
8481
	*)
8482
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8483
	  ;;
8484
	esac
8485
      else
8486
	case $host_cpu in
8487
	hppa*64*)
8488
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8489
	  ;;
8490
	ia64*)
8491
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8492
	  ;;
8493
	*)
8494
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8495
	  ;;
8496
	esac
8497
      fi
8498
      if test "$with_gnu_ld" = no; then
8499
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8500
	hardcode_libdir_separator=:
8501
8502
	case $host_cpu in
8503
	hppa*64*|ia64*)
8504
	  hardcode_direct=no
8505
	  hardcode_shlibpath_var=no
8506
	  ;;
8507
	*)
8508
	  hardcode_direct=yes
8509
	  hardcode_direct_absolute=yes
8510
	  export_dynamic_flag_spec='${wl}-E'
8511
8512
	  # hardcode_minus_L: Not really in the search PATH,
8513
	  # but as the default location of the library.
8514
	  hardcode_minus_L=yes
8515
	  ;;
8516
	esac
8517
      fi
8518
      ;;
8519
8520
    irix5* | irix6* | nonstopux*)
8521
      if test "$GCC" = yes; then
8522
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8523
	# Try to use the -exported_symbol ld option, if it does not
8524
	# work, assume that -exports_file does not work either and
8525
	# implicitly export all symbols.
8526
        save_LDFLAGS="$LDFLAGS"
8527
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8528
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529
/* end confdefs.h.  */
8530
int foo(void) {}
8531
_ACEOF
8532
if ac_fn_c_try_link "$LINENO"; then :
8533
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8534
8535
fi
8536
rm -f core conftest.err conftest.$ac_objext \
8537
    conftest$ac_exeext conftest.$ac_ext
8538
        LDFLAGS="$save_LDFLAGS"
8539
      else
8540
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8541
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8542
      fi
8543
      archive_cmds_need_lc='no'
8544
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545
      hardcode_libdir_separator=:
8546
      inherit_rpath=yes
8547
      link_all_deplibs=yes
8548
      ;;
8549
8550
    netbsd* | netbsdelf*-gnu)
8551
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8552
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8553
      else
8554
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8555
      fi
8556
      hardcode_libdir_flag_spec='-R$libdir'
8557
      hardcode_direct=yes
8558
      hardcode_shlibpath_var=no
8559
      ;;
8560
8561
    newsos6)
8562
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563
      hardcode_direct=yes
8564
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8565
      hardcode_libdir_separator=:
8566
      hardcode_shlibpath_var=no
8567
      ;;
8568
8569
    *nto* | *qnx*)
8570
      ;;
8571
8572
    openbsd*)
8573
      if test -f /usr/libexec/ld.so; then
8574
	hardcode_direct=yes
8575
	hardcode_shlibpath_var=no
8576
	hardcode_direct_absolute=yes
8577
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8578
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8580
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581
	  export_dynamic_flag_spec='${wl}-E'
8582
	else
8583
	  case $host_os in
8584
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8585
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8586
	     hardcode_libdir_flag_spec='-R$libdir'
8587
	     ;;
8588
	   *)
8589
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8590
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8591
	     ;;
8592
	  esac
8593
	fi
8594
      else
8595
	ld_shlibs=no
8596
      fi
8597
      ;;
8598
8599
    os2*)
8600
      hardcode_libdir_flag_spec='-L$libdir'
8601
      hardcode_minus_L=yes
8602
      allow_undefined_flag=unsupported
8603
      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'
8604
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8605
      ;;
8606
8607
    osf3*)
8608
      if test "$GCC" = yes; then
8609
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8610
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8611
      else
8612
	allow_undefined_flag=' -expect_unresolved \*'
8613
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8614
      fi
8615
      archive_cmds_need_lc='no'
8616
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617
      hardcode_libdir_separator=:
8618
      ;;
8619
8620
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8621
      if test "$GCC" = yes; then
8622
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8624
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625
      else
8626
	allow_undefined_flag=' -expect_unresolved \*'
8627
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8628
	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~
8629
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8630
8631
	# Both c and cxx compiler support -rpath directly
8632
	hardcode_libdir_flag_spec='-rpath $libdir'
8633
      fi
8634
      archive_cmds_need_lc='no'
8635
      hardcode_libdir_separator=:
8636
      ;;
8637
8638
    solaris*)
8639
      no_undefined_flag=' -z defs'
8640
      if test "$GCC" = yes; then
8641
	wlarc='${wl}'
8642
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8644
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8645
      else
8646
	case `$CC -V 2>&1` in
8647
	*"Compilers 5.0"*)
8648
	  wlarc=''
8649
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8651
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8652
	  ;;
8653
	*)
8654
	  wlarc='${wl}'
8655
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8656
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8657
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8658
	  ;;
8659
	esac
8660
      fi
8661
      hardcode_libdir_flag_spec='-R$libdir'
8662
      hardcode_shlibpath_var=no
8663
      case $host_os in
8664
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8665
      *)
8666
	# The compiler driver will combine and reorder linker options,
8667
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8668
	# but is careful enough not to reorder.
8669
	# Supported since Solaris 2.6 (maybe 2.5.1?)
8670
	if test "$GCC" = yes; then
8671
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8672
	else
8673
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8674
	fi
8675
	;;
8676
      esac
8677
      link_all_deplibs=yes
8678
      ;;
8679
8680
    sunos4*)
8681
      if test "x$host_vendor" = xsequent; then
8682
	# Use $CC to link under sequent, because it throws in some extra .o
8683
	# files that make .init and .fini sections work.
8684
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8685
      else
8686
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8687
      fi
8688
      hardcode_libdir_flag_spec='-L$libdir'
8689
      hardcode_direct=yes
8690
      hardcode_minus_L=yes
8691
      hardcode_shlibpath_var=no
8692
      ;;
8693
8694
    sysv4)
8695
      case $host_vendor in
8696
	sni)
8697
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698
	  hardcode_direct=yes # is this really true???
8699
	;;
8700
	siemens)
8701
	  ## LD is ld it makes a PLAMLIB
8702
	  ## CC just makes a GrossModule.
8703
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8704
	  reload_cmds='$CC -r -o $output$reload_objs'
8705
	  hardcode_direct=no
8706
        ;;
8707
	motorola)
8708
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8710
	;;
8711
      esac
8712
      runpath_var='LD_RUN_PATH'
8713
      hardcode_shlibpath_var=no
8714
      ;;
8715
8716
    sysv4.3*)
8717
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718
      hardcode_shlibpath_var=no
8719
      export_dynamic_flag_spec='-Bexport'
8720
      ;;
8721
8722
    sysv4*MP*)
8723
      if test -d /usr/nec; then
8724
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725
	hardcode_shlibpath_var=no
8726
	runpath_var=LD_RUN_PATH
8727
	hardcode_runpath_var=yes
8728
	ld_shlibs=yes
8729
      fi
8730
      ;;
8731
8732
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8733
      no_undefined_flag='${wl}-z,text'
8734
      archive_cmds_need_lc=no
8735
      hardcode_shlibpath_var=no
8736
      runpath_var='LD_RUN_PATH'
8737
8738
      if test "$GCC" = yes; then
8739
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8740
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741
      else
8742
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744
      fi
8745
      ;;
8746
8747
    sysv5* | sco3.2v5* | sco5v6*)
8748
      # Note: We can NOT use -z defs as we might desire, because we do not
8749
      # link with -lc, and that would cause any symbols used from libc to
8750
      # always be unresolved, which means just about no library would
8751
      # ever link correctly.  If we're not using GNU ld we use -z text
8752
      # though, which does catch some bad symbols but isn't as heavy-handed
8753
      # as -z defs.
8754
      no_undefined_flag='${wl}-z,text'
8755
      allow_undefined_flag='${wl}-z,nodefs'
8756
      archive_cmds_need_lc=no
8757
      hardcode_shlibpath_var=no
8758
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8759
      hardcode_libdir_separator=':'
8760
      link_all_deplibs=yes
8761
      export_dynamic_flag_spec='${wl}-Bexport'
8762
      runpath_var='LD_RUN_PATH'
8763
8764
      if test "$GCC" = yes; then
8765
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8766
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8767
      else
8768
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8769
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8770
      fi
8771
      ;;
8772
8773
    uts4*)
8774
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775
      hardcode_libdir_flag_spec='-L$libdir'
8776
      hardcode_shlibpath_var=no
8777
      ;;
8778
8779
    *)
8780
      ld_shlibs=no
8781
      ;;
8782
    esac
8783
8784
    if test x$host_vendor = xsni; then
8785
      case $host in
8786
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8787
	export_dynamic_flag_spec='${wl}-Blargedynsym'
8788
	;;
8789
      esac
8790
    fi
8791
  fi
8792
8793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8794
$as_echo "$ld_shlibs" >&6; }
8795
test "$ld_shlibs" = no && can_build_shared=no
8796
8797
with_gnu_ld=$with_gnu_ld
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
#
8814
# Do we need to explicitly link libc?
8815
#
8816
case "x$archive_cmds_need_lc" in
8817
x|xyes)
8818
  # Assume -lc should be added
8819
  archive_cmds_need_lc=yes
8820
8821
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8822
    case $archive_cmds in
8823
    *'~'*)
8824
      # FIXME: we may have to deal with multi-command sequences.
8825
      ;;
8826
    '$CC '*)
8827
      # Test whether the compiler implicitly links with -lc since on some
8828
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8829
      # to ld, don't add -lc before -lgcc.
8830
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8831
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8832
      $RM conftest*
8833
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834
8835
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8836
  (eval $ac_compile) 2>&5
8837
  ac_status=$?
8838
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8839
  test $ac_status = 0; } 2>conftest.err; then
8840
        soname=conftest
8841
        lib=conftest
8842
        libobjs=conftest.$ac_objext
8843
        deplibs=
8844
        wl=$lt_prog_compiler_wl
8845
	pic_flag=$lt_prog_compiler_pic
8846
        compiler_flags=-v
8847
        linker_flags=-v
8848
        verstring=
8849
        output_objdir=.
8850
        libname=conftest
8851
        lt_save_allow_undefined_flag=$allow_undefined_flag
8852
        allow_undefined_flag=
8853
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8854
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8855
  ac_status=$?
8856
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8857
  test $ac_status = 0; }
8858
        then
8859
	  archive_cmds_need_lc=no
8860
        else
8861
	  archive_cmds_need_lc=yes
8862
        fi
8863
        allow_undefined_flag=$lt_save_allow_undefined_flag
8864
      else
8865
        cat conftest.err 1>&5
8866
      fi
8867
      $RM conftest*
8868
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8869
$as_echo "$archive_cmds_need_lc" >&6; }
8870
      ;;
8871
    esac
8872
  fi
8873
  ;;
8874
esac
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9033
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9034
9035
if test "$GCC" = yes; then
9036
  case $host_os in
9037
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9038
    *) lt_awk_arg="/^libraries:/" ;;
9039
  esac
9040
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9041
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9042
    # if the path contains ";" then we assume it to be the separator
9043
    # otherwise default to the standard path separator (i.e. ":") - it is
9044
    # assumed that no part of a normal pathname contains ";" but that should
9045
    # okay in the real world where ";" in dirpaths is itself problematic.
9046
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9047
  else
9048
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9049
  fi
9050
  # Ok, now we have the path, separated by spaces, we can step through it
9051
  # and add multilib dir if necessary.
9052
  lt_tmp_lt_search_path_spec=
9053
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9054
  for lt_sys_path in $lt_search_path_spec; do
9055
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9056
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9057
    else
9058
      test -d "$lt_sys_path" && \
9059
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9060
    fi
9061
  done
9062
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9063
BEGIN {RS=" "; FS="/|\n";} {
9064
  lt_foo="";
9065
  lt_count=0;
9066
  for (lt_i = NF; lt_i > 0; lt_i--) {
9067
    if ($lt_i != "" && $lt_i != ".") {
9068
      if ($lt_i == "..") {
9069
        lt_count++;
9070
      } else {
9071
        if (lt_count == 0) {
9072
          lt_foo="/" $lt_i lt_foo;
9073
        } else {
9074
          lt_count--;
9075
        }
9076
      }
9077
    }
9078
  }
9079
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9080
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9081
}'`
9082
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9083
else
9084
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9085
fi
9086
library_names_spec=
9087
libname_spec='lib$name'
9088
soname_spec=
9089
shrext_cmds=".so"
9090
postinstall_cmds=
9091
postuninstall_cmds=
9092
finish_cmds=
9093
finish_eval=
9094
shlibpath_var=
9095
shlibpath_overrides_runpath=unknown
9096
version_type=none
9097
dynamic_linker="$host_os ld.so"
9098
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9099
need_lib_prefix=unknown
9100
hardcode_into_libs=no
9101
9102
# when you set need_version to no, make sure it does not cause -set_version
9103
# flags to be left without arguments
9104
need_version=unknown
9105
9106
case $host_os in
9107
aix3*)
9108
  version_type=linux
9109
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9110
  shlibpath_var=LIBPATH
9111
9112
  # AIX 3 has no versioning support, so we append a major version to the name.
9113
  soname_spec='${libname}${release}${shared_ext}$major'
9114
  ;;
9115
9116
aix[4-9]*)
9117
  version_type=linux
9118
  need_lib_prefix=no
9119
  need_version=no
9120
  hardcode_into_libs=yes
9121
  if test "$host_cpu" = ia64; then
9122
    # AIX 5 supports IA64
9123
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9124
    shlibpath_var=LD_LIBRARY_PATH
9125
  else
9126
    # With GCC up to 2.95.x, collect2 would create an import file
9127
    # for dependence libraries.  The import file would start with
9128
    # the line `#! .'.  This would cause the generated library to
9129
    # depend on `.', always an invalid library.  This was fixed in
9130
    # development snapshots of GCC prior to 3.0.
9131
    case $host_os in
9132
      aix4 | aix4.[01] | aix4.[01].*)
9133
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134
	   echo ' yes '
9135
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9136
	:
9137
      else
9138
	can_build_shared=no
9139
      fi
9140
      ;;
9141
    esac
9142
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9143
    # soname into executable. Probably we can add versioning support to
9144
    # collect2, so additional links can be useful in future.
9145
    if test "$aix_use_runtimelinking" = yes; then
9146
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9147
      # instead of lib<name>.a to let people know that these are not
9148
      # typical AIX shared libraries.
9149
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150
    else
9151
      # We preserve .a as extension for shared libraries through AIX4.2
9152
      # and later when we are not doing run time linking.
9153
      library_names_spec='${libname}${release}.a $libname.a'
9154
      soname_spec='${libname}${release}${shared_ext}$major'
9155
    fi
9156
    shlibpath_var=LIBPATH
9157
  fi
9158
  ;;
9159
9160
amigaos*)
9161
  case $host_cpu in
9162
  powerpc)
9163
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9164
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9165
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166
    ;;
9167
  m68k)
9168
    library_names_spec='$libname.ixlibrary $libname.a'
9169
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9171
    ;;
9172
  esac
9173
  ;;
9174
9175
beos*)
9176
  library_names_spec='${libname}${shared_ext}'
9177
  dynamic_linker="$host_os ld.so"
9178
  shlibpath_var=LIBRARY_PATH
9179
  ;;
9180
9181
bsdi[45]*)
9182
  version_type=linux
9183
  need_version=no
9184
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185
  soname_spec='${libname}${release}${shared_ext}$major'
9186
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9187
  shlibpath_var=LD_LIBRARY_PATH
9188
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9189
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9190
  # the default ld.so.conf also contains /usr/contrib/lib and
9191
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9192
  # libtool to hard-code these into programs
9193
  ;;
9194
9195
cygwin* | mingw* | pw32* | cegcc*)
9196
  version_type=windows
9197
  shrext_cmds=".dll"
9198
  need_version=no
9199
  need_lib_prefix=no
9200
9201
  case $GCC,$host_os in
9202
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9203
    library_names_spec='$libname.dll.a'
9204
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9205
    postinstall_cmds='base_file=`basename \${file}`~
9206
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9207
      dldir=$destdir/`dirname \$dlpath`~
9208
      test -d \$dldir || mkdir -p \$dldir~
9209
      $install_prog $dir/$dlname \$dldir/$dlname~
9210
      chmod a+x \$dldir/$dlname~
9211
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9212
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9213
      fi'
9214
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9215
      dlpath=$dir/\$dldll~
9216
       $RM \$dlpath'
9217
    shlibpath_overrides_runpath=yes
9218
9219
    case $host_os in
9220
    cygwin*)
9221
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9222
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9224
      ;;
9225
    mingw* | cegcc*)
9226
      # MinGW DLLs use traditional 'lib' prefix
9227
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9228
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9229
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9230
        # It is most probably a Windows format PATH printed by
9231
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9232
        # path with ; separators, and with drive letters. We can handle the
9233
        # drive letters (cygwin fileutils understands them), so leave them,
9234
        # especially as we might pass files found there to a mingw objdump,
9235
        # which wouldn't understand a cygwinified path. Ahh.
9236
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9237
      else
9238
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9239
      fi
9240
      ;;
9241
    pw32*)
9242
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9243
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244
      ;;
9245
    esac
9246
    ;;
9247
9248
  *)
9249
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9250
    ;;
9251
  esac
9252
  dynamic_linker='Win32 ld.exe'
9253
  # FIXME: first we should search . and the directory the executable is in
9254
  shlibpath_var=PATH
9255
  ;;
9256
9257
darwin* | rhapsody*)
9258
  dynamic_linker="$host_os dyld"
9259
  version_type=darwin
9260
  need_lib_prefix=no
9261
  need_version=no
9262
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9263
  soname_spec='${libname}${release}${major}$shared_ext'
9264
  shlibpath_overrides_runpath=yes
9265
  shlibpath_var=DYLD_LIBRARY_PATH
9266
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9267
9268
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9269
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9270
  ;;
9271
9272
dgux*)
9273
  version_type=linux
9274
  need_lib_prefix=no
9275
  need_version=no
9276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9277
  soname_spec='${libname}${release}${shared_ext}$major'
9278
  shlibpath_var=LD_LIBRARY_PATH
9279
  ;;
9280
9281
freebsd1*)
9282
  dynamic_linker=no
9283
  ;;
9284
9285
freebsd* | dragonfly*)
9286
  # DragonFly does not have aout.  When/if they implement a new
9287
  # versioning mechanism, adjust this.
9288
  if test -x /usr/bin/objformat; then
9289
    objformat=`/usr/bin/objformat`
9290
  else
9291
    case $host_os in
9292
    freebsd[123]*) objformat=aout ;;
9293
    *) objformat=elf ;;
9294
    esac
9295
  fi
9296
  version_type=freebsd-$objformat
9297
  case $version_type in
9298
    freebsd-elf*)
9299
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9300
      need_version=no
9301
      need_lib_prefix=no
9302
      ;;
9303
    freebsd-*)
9304
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9305
      need_version=yes
9306
      ;;
9307
  esac
9308
  shlibpath_var=LD_LIBRARY_PATH
9309
  case $host_os in
9310
  freebsd2*)
9311
    shlibpath_overrides_runpath=yes
9312
    ;;
9313
  freebsd3.[01]* | freebsdelf3.[01]*)
9314
    shlibpath_overrides_runpath=yes
9315
    hardcode_into_libs=yes
9316
    ;;
9317
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9318
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9319
    shlibpath_overrides_runpath=no
9320
    hardcode_into_libs=yes
9321
    ;;
9322
  *) # from 4.6 on, and DragonFly
9323
    shlibpath_overrides_runpath=yes
9324
    hardcode_into_libs=yes
9325
    ;;
9326
  esac
9327
  ;;
9328
9329
gnu*)
9330
  version_type=linux
9331
  need_lib_prefix=no
9332
  need_version=no
9333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9334
  soname_spec='${libname}${release}${shared_ext}$major'
9335
  shlibpath_var=LD_LIBRARY_PATH
9336
  hardcode_into_libs=yes
9337
  ;;
9338
9339
hpux9* | hpux10* | hpux11*)
9340
  # Give a soname corresponding to the major version so that dld.sl refuses to
9341
  # link against other versions.
9342
  version_type=sunos
9343
  need_lib_prefix=no
9344
  need_version=no
9345
  case $host_cpu in
9346
  ia64*)
9347
    shrext_cmds='.so'
9348
    hardcode_into_libs=yes
9349
    dynamic_linker="$host_os dld.so"
9350
    shlibpath_var=LD_LIBRARY_PATH
9351
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9352
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353
    soname_spec='${libname}${release}${shared_ext}$major'
9354
    if test "X$HPUX_IA64_MODE" = X32; then
9355
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9356
    else
9357
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9358
    fi
9359
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9360
    ;;
9361
  hppa*64*)
9362
    shrext_cmds='.sl'
9363
    hardcode_into_libs=yes
9364
    dynamic_linker="$host_os dld.sl"
9365
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9366
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368
    soname_spec='${libname}${release}${shared_ext}$major'
9369
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9370
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9371
    ;;
9372
  *)
9373
    shrext_cmds='.sl'
9374
    dynamic_linker="$host_os dld.sl"
9375
    shlibpath_var=SHLIB_PATH
9376
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9377
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378
    soname_spec='${libname}${release}${shared_ext}$major'
9379
    ;;
9380
  esac
9381
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9382
  postinstall_cmds='chmod 555 $lib'
9383
  ;;
9384
9385
interix[3-9]*)
9386
  version_type=linux
9387
  need_lib_prefix=no
9388
  need_version=no
9389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9390
  soname_spec='${libname}${release}${shared_ext}$major'
9391
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9392
  shlibpath_var=LD_LIBRARY_PATH
9393
  shlibpath_overrides_runpath=no
9394
  hardcode_into_libs=yes
9395
  ;;
9396
9397
irix5* | irix6* | nonstopux*)
9398
  case $host_os in
9399
    nonstopux*) version_type=nonstopux ;;
9400
    *)
9401
	if test "$lt_cv_prog_gnu_ld" = yes; then
9402
		version_type=linux
9403
	else
9404
		version_type=irix
9405
	fi ;;
9406
  esac
9407
  need_lib_prefix=no
9408
  need_version=no
9409
  soname_spec='${libname}${release}${shared_ext}$major'
9410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9411
  case $host_os in
9412
  irix5* | nonstopux*)
9413
    libsuff= shlibsuff=
9414
    ;;
9415
  *)
9416
    case $LD in # libtool.m4 will add one of these switches to LD
9417
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9418
      libsuff= shlibsuff= libmagic=32-bit;;
9419
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9420
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9421
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9422
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9423
    *) libsuff= shlibsuff= libmagic=never-match;;
9424
    esac
9425
    ;;
9426
  esac
9427
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9428
  shlibpath_overrides_runpath=no
9429
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9430
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9431
  hardcode_into_libs=yes
9432
  ;;
9433
9434
# No shared lib support for Linux oldld, aout, or coff.
9435
linux*oldld* | linux*aout* | linux*coff*)
9436
  dynamic_linker=no
9437
  ;;
9438
9439
# This must be Linux ELF.
9440
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9441
  version_type=linux
9442
  need_lib_prefix=no
9443
  need_version=no
9444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
  soname_spec='${libname}${release}${shared_ext}$major'
9446
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9447
  shlibpath_var=LD_LIBRARY_PATH
9448
  shlibpath_overrides_runpath=no
9449
  # Some binutils ld are patched to set DT_RUNPATH
9450
  save_LDFLAGS=$LDFLAGS
9451
  save_libdir=$libdir
9452
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9453
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9454
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455
/* end confdefs.h.  */
9456
9457
int
9458
main ()
9459
{
9460
9461
  ;
9462
  return 0;
9463
}
9464
_ACEOF
9465
if ac_fn_c_try_link "$LINENO"; then :
9466
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9467
  shlibpath_overrides_runpath=yes
9468
fi
9469
fi
9470
rm -f core conftest.err conftest.$ac_objext \
9471
    conftest$ac_exeext conftest.$ac_ext
9472
  LDFLAGS=$save_LDFLAGS
9473
  libdir=$save_libdir
9474
9475
  # This implies no fast_install, which is unacceptable.
9476
  # Some rework will be needed to allow for fast_install
9477
  # before this can be enabled.
9478
  hardcode_into_libs=yes
9479
9480
  # Append ld.so.conf contents to the search path
9481
  if test -f /etc/ld.so.conf; then
9482
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9483
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9484
  fi
9485
9486
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9487
  # powerpc, because MkLinux only supported shared libraries with the
9488
  # GNU dynamic linker.  Since this was broken with cross compilers,
9489
  # most powerpc-linux boxes support dynamic linking these days and
9490
  # people can always --disable-shared, the test was removed, and we
9491
  # assume the GNU/Linux dynamic linker is in use.
9492
  dynamic_linker='GNU/Linux ld.so'
9493
  ;;
9494
9495
netbsdelf*-gnu)
9496
  version_type=linux
9497
  need_lib_prefix=no
9498
  need_version=no
9499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9500
  soname_spec='${libname}${release}${shared_ext}$major'
9501
  shlibpath_var=LD_LIBRARY_PATH
9502
  shlibpath_overrides_runpath=no
9503
  hardcode_into_libs=yes
9504
  dynamic_linker='NetBSD ld.elf_so'
9505
  ;;
9506
9507
netbsd*)
9508
  version_type=sunos
9509
  need_lib_prefix=no
9510
  need_version=no
9511
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514
    dynamic_linker='NetBSD (a.out) ld.so'
9515
  else
9516
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517
    soname_spec='${libname}${release}${shared_ext}$major'
9518
    dynamic_linker='NetBSD ld.elf_so'
9519
  fi
9520
  shlibpath_var=LD_LIBRARY_PATH
9521
  shlibpath_overrides_runpath=yes
9522
  hardcode_into_libs=yes
9523
  ;;
9524
9525
newsos6)
9526
  version_type=linux
9527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528
  shlibpath_var=LD_LIBRARY_PATH
9529
  shlibpath_overrides_runpath=yes
9530
  ;;
9531
9532
*nto* | *qnx*)
9533
  version_type=qnx
9534
  need_lib_prefix=no
9535
  need_version=no
9536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537
  soname_spec='${libname}${release}${shared_ext}$major'
9538
  shlibpath_var=LD_LIBRARY_PATH
9539
  shlibpath_overrides_runpath=no
9540
  hardcode_into_libs=yes
9541
  dynamic_linker='ldqnx.so'
9542
  ;;
9543
9544
openbsd*)
9545
  version_type=sunos
9546
  sys_lib_dlsearch_path_spec="/usr/lib"
9547
  need_lib_prefix=no
9548
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9549
  case $host_os in
9550
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9551
    *)				need_version=no  ;;
9552
  esac
9553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9555
  shlibpath_var=LD_LIBRARY_PATH
9556
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9557
    case $host_os in
9558
      openbsd2.[89] | openbsd2.[89].*)
9559
	shlibpath_overrides_runpath=no
9560
	;;
9561
      *)
9562
	shlibpath_overrides_runpath=yes
9563
	;;
9564
      esac
9565
  else
9566
    shlibpath_overrides_runpath=yes
9567
  fi
9568
  ;;
9569
9570
os2*)
9571
  libname_spec='$name'
9572
  shrext_cmds=".dll"
9573
  need_lib_prefix=no
9574
  library_names_spec='$libname${shared_ext} $libname.a'
9575
  dynamic_linker='OS/2 ld.exe'
9576
  shlibpath_var=LIBPATH
9577
  ;;
9578
9579
osf3* | osf4* | osf5*)
9580
  version_type=osf
9581
  need_lib_prefix=no
9582
  need_version=no
9583
  soname_spec='${libname}${release}${shared_ext}$major'
9584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585
  shlibpath_var=LD_LIBRARY_PATH
9586
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9587
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9588
  ;;
9589
9590
rdos*)
9591
  dynamic_linker=no
9592
  ;;
9593
9594
solaris*)
9595
  version_type=linux
9596
  need_lib_prefix=no
9597
  need_version=no
9598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599
  soname_spec='${libname}${release}${shared_ext}$major'
9600
  shlibpath_var=LD_LIBRARY_PATH
9601
  shlibpath_overrides_runpath=yes
9602
  hardcode_into_libs=yes
9603
  # ldd complains unless libraries are executable
9604
  postinstall_cmds='chmod +x $lib'
9605
  ;;
9606
9607
sunos4*)
9608
  version_type=sunos
9609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611
  shlibpath_var=LD_LIBRARY_PATH
9612
  shlibpath_overrides_runpath=yes
9613
  if test "$with_gnu_ld" = yes; then
9614
    need_lib_prefix=no
9615
  fi
9616
  need_version=yes
9617
  ;;
9618
9619
sysv4 | sysv4.3*)
9620
  version_type=linux
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
  soname_spec='${libname}${release}${shared_ext}$major'
9623
  shlibpath_var=LD_LIBRARY_PATH
9624
  case $host_vendor in
9625
    sni)
9626
      shlibpath_overrides_runpath=no
9627
      need_lib_prefix=no
9628
      runpath_var=LD_RUN_PATH
9629
      ;;
9630
    siemens)
9631
      need_lib_prefix=no
9632
      ;;
9633
    motorola)
9634
      need_lib_prefix=no
9635
      need_version=no
9636
      shlibpath_overrides_runpath=no
9637
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9638
      ;;
9639
  esac
9640
  ;;
9641
9642
sysv4*MP*)
9643
  if test -d /usr/nec ;then
9644
    version_type=linux
9645
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9646
    soname_spec='$libname${shared_ext}.$major'
9647
    shlibpath_var=LD_LIBRARY_PATH
9648
  fi
9649
  ;;
9650
9651
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9652
  version_type=freebsd-elf
9653
  need_lib_prefix=no
9654
  need_version=no
9655
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656
  soname_spec='${libname}${release}${shared_ext}$major'
9657
  shlibpath_var=LD_LIBRARY_PATH
9658
  shlibpath_overrides_runpath=yes
9659
  hardcode_into_libs=yes
9660
  if test "$with_gnu_ld" = yes; then
9661
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662
  else
9663
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9664
    case $host_os in
9665
      sco3.2v5*)
9666
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9667
	;;
9668
    esac
9669
  fi
9670
  sys_lib_dlsearch_path_spec='/usr/lib'
9671
  ;;
9672
9673
tpf*)
9674
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9675
  version_type=linux
9676
  need_lib_prefix=no
9677
  need_version=no
9678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679
  shlibpath_var=LD_LIBRARY_PATH
9680
  shlibpath_overrides_runpath=no
9681
  hardcode_into_libs=yes
9682
  ;;
9683
9684
uts4*)
9685
  version_type=linux
9686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687
  soname_spec='${libname}${release}${shared_ext}$major'
9688
  shlibpath_var=LD_LIBRARY_PATH
9689
  ;;
9690
9691
*)
9692
  dynamic_linker=no
9693
  ;;
9694
esac
9695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9696
$as_echo "$dynamic_linker" >&6; }
9697
test "$dynamic_linker" = no && can_build_shared=no
9698
9699
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700
if test "$GCC" = yes; then
9701
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702
fi
9703
9704
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706
fi
9707
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9708
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9709
fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9798
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9799
hardcode_action=
9800
if test -n "$hardcode_libdir_flag_spec" ||
9801
   test -n "$runpath_var" ||
9802
   test "X$hardcode_automatic" = "Xyes" ; then
9803
9804
  # We can hardcode non-existent directories.
9805
  if test "$hardcode_direct" != no &&
9806
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9807
     # have to relink, otherwise we might link with an installed library
9808
     # when we should be linking with a yet-to-be-installed one
9809
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9810
     test "$hardcode_minus_L" != no; then
9811
    # Linking always hardcodes the temporary library directory.
9812
    hardcode_action=relink
9813
  else
9814
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9815
    hardcode_action=immediate
9816
  fi
9817
else
9818
  # We cannot hardcode anything, or else we can only hardcode existing
9819
  # directories.
9820
  hardcode_action=unsupported
9821
fi
9822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9823
$as_echo "$hardcode_action" >&6; }
9824
9825
if test "$hardcode_action" = relink ||
9826
   test "$inherit_rpath" = yes; then
9827
  # Fast installation is not supported
9828
  enable_fast_install=no
9829
elif test "$shlibpath_overrides_runpath" = yes ||
9830
     test "$enable_shared" = no; then
9831
  # Fast installation is not necessary
9832
  enable_fast_install=needless
9833
fi
9834
9835
9836
9837
9838
9839
9840
  if test "x$enable_dlopen" != xyes; then
9841
  enable_dlopen=unknown
9842
  enable_dlopen_self=unknown
9843
  enable_dlopen_self_static=unknown
9844
else
9845
  lt_cv_dlopen=no
9846
  lt_cv_dlopen_libs=
9847
9848
  case $host_os in
9849
  beos*)
9850
    lt_cv_dlopen="load_add_on"
9851
    lt_cv_dlopen_libs=
9852
    lt_cv_dlopen_self=yes
9853
    ;;
9854
9855
  mingw* | pw32* | cegcc*)
9856
    lt_cv_dlopen="LoadLibrary"
9857
    lt_cv_dlopen_libs=
9858
    ;;
9859
9860
  cygwin*)
9861
    lt_cv_dlopen="dlopen"
9862
    lt_cv_dlopen_libs=
9863
    ;;
9864
9865
  darwin*)
9866
  # if libdl is installed we need to link against it
9867
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9868
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9869
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9870
  $as_echo_n "(cached) " >&6
9871
else
9872
  ac_check_lib_save_LIBS=$LIBS
9873
LIBS="-ldl  $LIBS"
9874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875
/* end confdefs.h.  */
9876
9877
/* Override any GCC internal prototype to avoid an error.
9878
   Use char because int might match the return type of a GCC
9879
   builtin and then its argument prototype would still apply.  */
9880
#ifdef __cplusplus
9881
extern "C"
9882
#endif
9883
char dlopen ();
9884
int
9885
main ()
9886
{
9887
return dlopen ();
9888
  ;
9889
  return 0;
9890
}
9891
_ACEOF
9892
if ac_fn_c_try_link "$LINENO"; then :
9893
  ac_cv_lib_dl_dlopen=yes
9894
else
9895
  ac_cv_lib_dl_dlopen=no
9896
fi
9897
rm -f core conftest.err conftest.$ac_objext \
9898
    conftest$ac_exeext conftest.$ac_ext
9899
LIBS=$ac_check_lib_save_LIBS
9900
fi
9901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9902
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9903
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9904
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9905
else
9906
9907
    lt_cv_dlopen="dyld"
9908
    lt_cv_dlopen_libs=
9909
    lt_cv_dlopen_self=yes
9910
9911
fi
9912
9913
    ;;
9914
9915
  *)
9916
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9917
if test "x$ac_cv_func_shl_load" = x""yes; then :
9918
  lt_cv_dlopen="shl_load"
9919
else
9920
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9921
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9922
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9923
  $as_echo_n "(cached) " >&6
9924
else
9925
  ac_check_lib_save_LIBS=$LIBS
9926
LIBS="-ldld  $LIBS"
9927
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928
/* end confdefs.h.  */
9929
9930
/* Override any GCC internal prototype to avoid an error.
9931
   Use char because int might match the return type of a GCC
9932
   builtin and then its argument prototype would still apply.  */
9933
#ifdef __cplusplus
9934
extern "C"
9935
#endif
9936
char shl_load ();
9937
int
9938
main ()
9939
{
9940
return shl_load ();
9941
  ;
9942
  return 0;
9943
}
9944
_ACEOF
9945
if ac_fn_c_try_link "$LINENO"; then :
9946
  ac_cv_lib_dld_shl_load=yes
9947
else
9948
  ac_cv_lib_dld_shl_load=no
9949
fi
9950
rm -f core conftest.err conftest.$ac_objext \
9951
    conftest$ac_exeext conftest.$ac_ext
9952
LIBS=$ac_check_lib_save_LIBS
9953
fi
9954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9955
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9956
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9957
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9958
else
9959
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9960
if test "x$ac_cv_func_dlopen" = x""yes; then :
9961
  lt_cv_dlopen="dlopen"
9962
else
9963
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9964
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9965
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9966
  $as_echo_n "(cached) " >&6
9967
else
9968
  ac_check_lib_save_LIBS=$LIBS
9969
LIBS="-ldl  $LIBS"
9970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971
/* end confdefs.h.  */
9972
9973
/* Override any GCC internal prototype to avoid an error.
9974
   Use char because int might match the return type of a GCC
9975
   builtin and then its argument prototype would still apply.  */
9976
#ifdef __cplusplus
9977
extern "C"
9978
#endif
9979
char dlopen ();
9980
int
9981
main ()
9982
{
9983
return dlopen ();
9984
  ;
9985
  return 0;
9986
}
9987
_ACEOF
9988
if ac_fn_c_try_link "$LINENO"; then :
9989
  ac_cv_lib_dl_dlopen=yes
9990
else
9991
  ac_cv_lib_dl_dlopen=no
9992
fi
9993
rm -f core conftest.err conftest.$ac_objext \
9994
    conftest$ac_exeext conftest.$ac_ext
9995
LIBS=$ac_check_lib_save_LIBS
9996
fi
9997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9998
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9999
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10000
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10001
else
10002
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10003
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10004
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10005
  $as_echo_n "(cached) " >&6
10006
else
10007
  ac_check_lib_save_LIBS=$LIBS
10008
LIBS="-lsvld  $LIBS"
10009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010
/* end confdefs.h.  */
10011
10012
/* Override any GCC internal prototype to avoid an error.
10013
   Use char because int might match the return type of a GCC
10014
   builtin and then its argument prototype would still apply.  */
10015
#ifdef __cplusplus
10016
extern "C"
10017
#endif
10018
char dlopen ();
10019
int
10020
main ()
10021
{
10022
return dlopen ();
10023
  ;
10024
  return 0;
10025
}
10026
_ACEOF
10027
if ac_fn_c_try_link "$LINENO"; then :
10028
  ac_cv_lib_svld_dlopen=yes
10029
else
10030
  ac_cv_lib_svld_dlopen=no
10031
fi
10032
rm -f core conftest.err conftest.$ac_objext \
10033
    conftest$ac_exeext conftest.$ac_ext
10034
LIBS=$ac_check_lib_save_LIBS
10035
fi
10036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10037
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10038
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10039
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10040
else
10041
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10042
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10043
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10044
  $as_echo_n "(cached) " >&6
10045
else
10046
  ac_check_lib_save_LIBS=$LIBS
10047
LIBS="-ldld  $LIBS"
10048
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049
/* end confdefs.h.  */
10050
10051
/* Override any GCC internal prototype to avoid an error.
10052
   Use char because int might match the return type of a GCC
10053
   builtin and then its argument prototype would still apply.  */
10054
#ifdef __cplusplus
10055
extern "C"
10056
#endif
10057
char dld_link ();
10058
int
10059
main ()
10060
{
10061
return dld_link ();
10062
  ;
10063
  return 0;
10064
}
10065
_ACEOF
10066
if ac_fn_c_try_link "$LINENO"; then :
10067
  ac_cv_lib_dld_dld_link=yes
10068
else
10069
  ac_cv_lib_dld_dld_link=no
10070
fi
10071
rm -f core conftest.err conftest.$ac_objext \
10072
    conftest$ac_exeext conftest.$ac_ext
10073
LIBS=$ac_check_lib_save_LIBS
10074
fi
10075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10076
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10077
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10078
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10079
fi
10080
10081
10082
fi
10083
10084
10085
fi
10086
10087
10088
fi
10089
10090
10091
fi
10092
10093
10094
fi
10095
10096
    ;;
10097
  esac
10098
10099
  if test "x$lt_cv_dlopen" != xno; then
10100
    enable_dlopen=yes
10101
  else
10102
    enable_dlopen=no
10103
  fi
10104
10105
  case $lt_cv_dlopen in
10106
  dlopen)
10107
    save_CPPFLAGS="$CPPFLAGS"
10108
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10109
10110
    save_LDFLAGS="$LDFLAGS"
10111
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10112
10113
    save_LIBS="$LIBS"
10114
    LIBS="$lt_cv_dlopen_libs $LIBS"
10115
10116
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10117
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10118
if test "${lt_cv_dlopen_self+set}" = set; then :
10119
  $as_echo_n "(cached) " >&6
10120
else
10121
  	  if test "$cross_compiling" = yes; then :
10122
  lt_cv_dlopen_self=cross
10123
else
10124
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125
  lt_status=$lt_dlunknown
10126
  cat > conftest.$ac_ext <<_LT_EOF
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
10127
#line 10127 "configure"
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
10128
#include "confdefs.h"
10129
10130
#if HAVE_DLFCN_H
10131
#include <dlfcn.h>
10132
#endif
10133
10134
#include <stdio.h>
10135
10136
#ifdef RTLD_GLOBAL
10137
#  define LT_DLGLOBAL		RTLD_GLOBAL
10138
#else
10139
#  ifdef DL_GLOBAL
10140
#    define LT_DLGLOBAL		DL_GLOBAL
10141
#  else
10142
#    define LT_DLGLOBAL		0
10143
#  endif
10144
#endif
10145
10146
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147
   find out it does not work in some platform. */
10148
#ifndef LT_DLLAZY_OR_NOW
10149
#  ifdef RTLD_LAZY
10150
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10151
#  else
10152
#    ifdef DL_LAZY
10153
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10154
#    else
10155
#      ifdef RTLD_NOW
10156
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10157
#      else
10158
#        ifdef DL_NOW
10159
#          define LT_DLLAZY_OR_NOW	DL_NOW
10160
#        else
10161
#          define LT_DLLAZY_OR_NOW	0
10162
#        endif
10163
#      endif
10164
#    endif
10165
#  endif
10166
#endif
10167
10168
void fnord() { int i=42;}
10169
int main ()
10170
{
10171
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10172
  int status = $lt_dlunknown;
10173
10174
  if (self)
10175
    {
10176
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10177
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10178
      /* dlclose (self); */
10179
    }
10180
  else
10181
    puts (dlerror ());
10182
10183
  return status;
10184
}
10185
_LT_EOF
10186
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10187
  (eval $ac_link) 2>&5
10188
  ac_status=$?
10189
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10191
    (./conftest; exit; ) >&5 2>/dev/null
10192
    lt_status=$?
10193
    case x$lt_status in
10194
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10195
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10196
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10197
    esac
10198
  else :
10199
    # compilation failed
10200
    lt_cv_dlopen_self=no
10201
  fi
10202
fi
10203
rm -fr conftest*
10204
10205
10206
fi
10207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10208
$as_echo "$lt_cv_dlopen_self" >&6; }
10209
10210
    if test "x$lt_cv_dlopen_self" = xyes; then
10211
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10212
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10213
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10214
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10215
  $as_echo_n "(cached) " >&6
10216
else
10217
  	  if test "$cross_compiling" = yes; then :
10218
  lt_cv_dlopen_self_static=cross
10219
else
10220
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10221
  lt_status=$lt_dlunknown
10222
  cat > conftest.$ac_ext <<_LT_EOF
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
10223
#line 10223 "configure"
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
10224
#include "confdefs.h"
10225
10226
#if HAVE_DLFCN_H
10227
#include <dlfcn.h>
10228
#endif
10229
10230
#include <stdio.h>
10231
10232
#ifdef RTLD_GLOBAL
10233
#  define LT_DLGLOBAL		RTLD_GLOBAL
10234
#else
10235
#  ifdef DL_GLOBAL
10236
#    define LT_DLGLOBAL		DL_GLOBAL
10237
#  else
10238
#    define LT_DLGLOBAL		0
10239
#  endif
10240
#endif
10241
10242
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10243
   find out it does not work in some platform. */
10244
#ifndef LT_DLLAZY_OR_NOW
10245
#  ifdef RTLD_LAZY
10246
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10247
#  else
10248
#    ifdef DL_LAZY
10249
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10250
#    else
10251
#      ifdef RTLD_NOW
10252
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10253
#      else
10254
#        ifdef DL_NOW
10255
#          define LT_DLLAZY_OR_NOW	DL_NOW
10256
#        else
10257
#          define LT_DLLAZY_OR_NOW	0
10258
#        endif
10259
#      endif
10260
#    endif
10261
#  endif
10262
#endif
10263
10264
void fnord() { int i=42;}
10265
int main ()
10266
{
10267
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10268
  int status = $lt_dlunknown;
10269
10270
  if (self)
10271
    {
10272
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10273
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10274
      /* dlclose (self); */
10275
    }
10276
  else
10277
    puts (dlerror ());
10278
10279
  return status;
10280
}
10281
_LT_EOF
10282
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10283
  (eval $ac_link) 2>&5
10284
  ac_status=$?
10285
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10286
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10287
    (./conftest; exit; ) >&5 2>/dev/null
10288
    lt_status=$?
10289
    case x$lt_status in
10290
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10291
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10292
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10293
    esac
10294
  else :
10295
    # compilation failed
10296
    lt_cv_dlopen_self_static=no
10297
  fi
10298
fi
10299
rm -fr conftest*
10300
10301
10302
fi
10303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10304
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10305
    fi
10306
10307
    CPPFLAGS="$save_CPPFLAGS"
10308
    LDFLAGS="$save_LDFLAGS"
10309
    LIBS="$save_LIBS"
10310
    ;;
10311
  esac
10312
10313
  case $lt_cv_dlopen_self in
10314
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10315
  *) enable_dlopen_self=unknown ;;
10316
  esac
10317
10318
  case $lt_cv_dlopen_self_static in
10319
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10320
  *) enable_dlopen_self_static=unknown ;;
10321
  esac
10322
fi
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
striplib=
10341
old_striplib=
10342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10343
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10344
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10345
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10346
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10348
$as_echo "yes" >&6; }
10349
else
10350
# FIXME - insert some real tests, host_os isn't really good enough
10351
  case $host_os in
10352
  darwin*)
10353
    if test -n "$STRIP" ; then
10354
      striplib="$STRIP -x"
10355
      old_striplib="$STRIP -S"
10356
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10357
$as_echo "yes" >&6; }
10358
    else
10359
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360
$as_echo "no" >&6; }
10361
    fi
10362
    ;;
10363
  *)
10364
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365
$as_echo "no" >&6; }
10366
    ;;
10367
  esac
10368
fi
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
  # Report which library types will actually be built
10382
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10383
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10385
$as_echo "$can_build_shared" >&6; }
10386
10387
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10388
$as_echo_n "checking whether to build shared libraries... " >&6; }
10389
  test "$can_build_shared" = "no" && enable_shared=no
10390
10391
  # On AIX, shared libraries and static libraries use the same namespace, and
10392
  # are all built from PIC.
10393
  case $host_os in
10394
  aix3*)
10395
    test "$enable_shared" = yes && enable_static=no
10396
    if test -n "$RANLIB"; then
10397
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10398
      postinstall_cmds='$RANLIB $lib'
10399
    fi
10400
    ;;
10401
10402
  aix[4-9]*)
10403
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10404
      test "$enable_shared" = yes && enable_static=no
10405
    fi
10406
    ;;
10407
  esac
10408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10409
$as_echo "$enable_shared" >&6; }
10410
10411
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10412
$as_echo_n "checking whether to build static libraries... " >&6; }
10413
  # Make sure either enable_shared or enable_static is yes.
10414
  test "$enable_shared" = yes || enable_static=yes
10415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10416
$as_echo "$enable_static" >&6; }
10417
10418
10419
10420
10421
fi
10422
ac_ext=c
10423
ac_cpp='$CPP $CPPFLAGS'
10424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10427
10428
CC="$lt_save_CC"
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
        ac_config_commands="$ac_config_commands libtool"
10443
10444
10445
10446
10447
# Only expand once:
10448
10449
10450
10451
10452
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10453
$as_echo_n "checking whether NLS is requested... " >&6; }
10454
    # Check whether --enable-nls was given.
10455
if test "${enable_nls+set}" = set; then :
10456
  enableval=$enable_nls; USE_NLS=$enableval
10457
else
10458
  USE_NLS=yes
10459
fi
10460
10461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10462
$as_echo "$USE_NLS" >&6; }
10463
10464
10465
10466
10467
      GETTEXT_MACRO_VERSION=0.17
10468
10469
10470
10471
10472
# Prepare PATH_SEPARATOR.
10473
# The user is always right.
10474
if test "${PATH_SEPARATOR+set}" != set; then
10475
  echo "#! /bin/sh" >conf$$.sh
10476
  echo  "exit 0"   >>conf$$.sh
10477
  chmod +x conf$$.sh
10478
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10479
    PATH_SEPARATOR=';'
10480
  else
10481
    PATH_SEPARATOR=:
10482
  fi
10483
  rm -f conf$$.sh
10484
fi
10485
10486
# Find out how to test for executable files. Don't use a zero-byte file,
10487
# as systems may use methods other than mode bits to determine executability.
10488
cat >conf$$.file <<_ASEOF
10489
#! /bin/sh
10490
exit 0
10491
_ASEOF
10492
chmod +x conf$$.file
10493
if test -x conf$$.file >/dev/null 2>&1; then
10494
  ac_executable_p="test -x"
10495
else
10496
  ac_executable_p="test -f"
10497
fi
10498
rm -f conf$$.file
10499
10500
# Extract the first word of "msgfmt", so it can be a program name with args.
10501
set dummy msgfmt; ac_word=$2
10502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503
$as_echo_n "checking for $ac_word... " >&6; }
10504
if test "${ac_cv_path_MSGFMT+set}" = set; then :
10505
  $as_echo_n "(cached) " >&6
10506
else
10507
  case "$MSGFMT" in
10508
  [\\/]* | ?:[\\/]*)
10509
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10510
    ;;
10511
  *)
10512
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10513
    for ac_dir in $PATH; do
10514
      IFS="$ac_save_IFS"
10515
      test -z "$ac_dir" && ac_dir=.
10516
      for ac_exec_ext in '' $ac_executable_extensions; do
10517
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10518
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
10519
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10520
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10521
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10522
            break 2
10523
          fi
10524
        fi
10525
      done
10526
    done
10527
    IFS="$ac_save_IFS"
10528
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10529
    ;;
10530
esac
10531
fi
10532
MSGFMT="$ac_cv_path_MSGFMT"
10533
if test "$MSGFMT" != ":"; then
10534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10535
$as_echo "$MSGFMT" >&6; }
10536
else
10537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538
$as_echo "no" >&6; }
10539
fi
10540
10541
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10542
set dummy gmsgfmt; ac_word=$2
10543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544
$as_echo_n "checking for $ac_word... " >&6; }
10545
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
10546
  $as_echo_n "(cached) " >&6
10547
else
10548
  case $GMSGFMT in
10549
  [\\/]* | ?:[\\/]*)
10550
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10551
  ;;
10552
  *)
10553
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554
for as_dir in $PATH
10555
do
10556
  IFS=$as_save_IFS
10557
  test -z "$as_dir" && as_dir=.
10558
    for ac_exec_ext in '' $ac_executable_extensions; do
10559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10561
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562
    break 2
10563
  fi
10564
done
10565
  done
10566
IFS=$as_save_IFS
10567
10568
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10569
  ;;
10570
esac
10571
fi
10572
GMSGFMT=$ac_cv_path_GMSGFMT
10573
if test -n "$GMSGFMT"; then
10574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10575
$as_echo "$GMSGFMT" >&6; }
10576
else
10577
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578
$as_echo "no" >&6; }
10579
fi
10580
10581
10582
10583
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10584
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10585
    *) MSGFMT_015=$MSGFMT ;;
10586
  esac
10587
10588
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10589
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10590
    *) GMSGFMT_015=$GMSGFMT ;;
10591
  esac
10592
10593
10594
10595
# Prepare PATH_SEPARATOR.
10596
# The user is always right.
10597
if test "${PATH_SEPARATOR+set}" != set; then
10598
  echo "#! /bin/sh" >conf$$.sh
10599
  echo  "exit 0"   >>conf$$.sh
10600
  chmod +x conf$$.sh
10601
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10602
    PATH_SEPARATOR=';'
10603
  else
10604
    PATH_SEPARATOR=:
10605
  fi
10606
  rm -f conf$$.sh
10607
fi
10608
10609
# Find out how to test for executable files. Don't use a zero-byte file,
10610
# as systems may use methods other than mode bits to determine executability.
10611
cat >conf$$.file <<_ASEOF
10612
#! /bin/sh
10613
exit 0
10614
_ASEOF
10615
chmod +x conf$$.file
10616
if test -x conf$$.file >/dev/null 2>&1; then
10617
  ac_executable_p="test -x"
10618
else
10619
  ac_executable_p="test -f"
10620
fi
10621
rm -f conf$$.file
10622
10623
# Extract the first word of "xgettext", so it can be a program name with args.
10624
set dummy xgettext; ac_word=$2
10625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626
$as_echo_n "checking for $ac_word... " >&6; }
10627
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
10628
  $as_echo_n "(cached) " >&6
10629
else
10630
  case "$XGETTEXT" in
10631
  [\\/]* | ?:[\\/]*)
10632
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10633
    ;;
10634
  *)
10635
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10636
    for ac_dir in $PATH; do
10637
      IFS="$ac_save_IFS"
10638
      test -z "$ac_dir" && ac_dir=.
10639
      for ac_exec_ext in '' $ac_executable_extensions; do
10640
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10641
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
10642
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10643
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10644
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10645
            break 2
10646
          fi
10647
        fi
10648
      done
10649
    done
10650
    IFS="$ac_save_IFS"
10651
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10652
    ;;
10653
esac
10654
fi
10655
XGETTEXT="$ac_cv_path_XGETTEXT"
10656
if test "$XGETTEXT" != ":"; then
10657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10658
$as_echo "$XGETTEXT" >&6; }
10659
else
10660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661
$as_echo "no" >&6; }
10662
fi
10663
10664
    rm -f messages.po
10665
10666
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10667
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10668
    *) XGETTEXT_015=$XGETTEXT ;;
10669
  esac
10670
10671
10672
10673
# Prepare PATH_SEPARATOR.
10674
# The user is always right.
10675
if test "${PATH_SEPARATOR+set}" != set; then
10676
  echo "#! /bin/sh" >conf$$.sh
10677
  echo  "exit 0"   >>conf$$.sh
10678
  chmod +x conf$$.sh
10679
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10680
    PATH_SEPARATOR=';'
10681
  else
10682
    PATH_SEPARATOR=:
10683
  fi
10684
  rm -f conf$$.sh
10685
fi
10686
10687
# Find out how to test for executable files. Don't use a zero-byte file,
10688
# as systems may use methods other than mode bits to determine executability.
10689
cat >conf$$.file <<_ASEOF
10690
#! /bin/sh
10691
exit 0
10692
_ASEOF
10693
chmod +x conf$$.file
10694
if test -x conf$$.file >/dev/null 2>&1; then
10695
  ac_executable_p="test -x"
10696
else
10697
  ac_executable_p="test -f"
10698
fi
10699
rm -f conf$$.file
10700
10701
# Extract the first word of "msgmerge", so it can be a program name with args.
10702
set dummy msgmerge; ac_word=$2
10703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704
$as_echo_n "checking for $ac_word... " >&6; }
10705
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
10706
  $as_echo_n "(cached) " >&6
10707
else
10708
  case "$MSGMERGE" in
10709
  [\\/]* | ?:[\\/]*)
10710
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10711
    ;;
10712
  *)
10713
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10714
    for ac_dir in $PATH; do
10715
      IFS="$ac_save_IFS"
10716
      test -z "$ac_dir" && ac_dir=.
10717
      for ac_exec_ext in '' $ac_executable_extensions; do
10718
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10719
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
10720
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10721
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10722
            break 2
10723
          fi
10724
        fi
10725
      done
10726
    done
10727
    IFS="$ac_save_IFS"
10728
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10729
    ;;
10730
esac
10731
fi
10732
MSGMERGE="$ac_cv_path_MSGMERGE"
10733
if test "$MSGMERGE" != ":"; then
10734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10735
$as_echo "$MSGMERGE" >&6; }
10736
else
10737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738
$as_echo "no" >&6; }
10739
fi
10740
10741
10742
        test -n "$localedir" || localedir='${datadir}/locale'
10743
10744
10745
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10746
10747
10748
  ac_config_commands="$ac_config_commands po-directories"
10749
10750
10751
10752
      if test "X$prefix" = "XNONE"; then
10753
    acl_final_prefix="$ac_default_prefix"
10754
  else
10755
    acl_final_prefix="$prefix"
10756
  fi
10757
  if test "X$exec_prefix" = "XNONE"; then
10758
    acl_final_exec_prefix='${prefix}'
10759
  else
10760
    acl_final_exec_prefix="$exec_prefix"
10761
  fi
10762
  acl_save_prefix="$prefix"
10763
  prefix="$acl_final_prefix"
10764
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10765
  prefix="$acl_save_prefix"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10766
10767
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10768
# Check whether --with-gnu-ld was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10769
if test "${with_gnu_ld+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10770
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10771
else
10772
  with_gnu_ld=no
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10773
fi
10774
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10775
# Prepare PATH_SEPARATOR.
10776
# The user is always right.
10777
if test "${PATH_SEPARATOR+set}" != set; then
10778
  echo "#! /bin/sh" >conf$$.sh
10779
  echo  "exit 0"   >>conf$$.sh
10780
  chmod +x conf$$.sh
10781
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10782
    PATH_SEPARATOR=';'
10783
  else
10784
    PATH_SEPARATOR=:
10785
  fi
10786
  rm -f conf$$.sh
10787
fi
10788
ac_prog=ld
10789
if test "$GCC" = yes; then
10790
  # Check if gcc -print-prog-name=ld gives a path.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10791
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10792
$as_echo_n "checking for ld used by GCC... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10793
  case $host in
10794
  *-*-mingw*)
10795
    # gcc leaves a trailing carriage return which upsets mingw
10796
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10797
  *)
10798
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10799
  esac
10800
  case $ac_prog in
10801
    # Accept absolute paths.
10802
    [\\/]* | [A-Za-z]:[\\/]*)
10803
      re_direlt='/[^/][^/]*/\.\./'
10804
      # Canonicalize the path of ld
10805
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10806
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10807
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10808
      done
10809
      test -z "$LD" && LD="$ac_prog"
10810
      ;;
10811
  "")
10812
    # If it fails, then pretend we aren't using GCC.
10813
    ac_prog=ld
10814
    ;;
10815
  *)
10816
    # If it is relative, then search for the first ld in PATH.
10817
    with_gnu_ld=unknown
10818
    ;;
10819
  esac
10820
elif test "$with_gnu_ld" = yes; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10821
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10822
$as_echo_n "checking for GNU ld... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10823
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10824
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10825
$as_echo_n "checking for non-GNU ld... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10826
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10827
if test "${acl_cv_path_LD+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10828
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10829
else
10830
  if test -z "$LD"; then
10831
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10832
  for ac_dir in $PATH; do
10833
    test -z "$ac_dir" && ac_dir=.
10834
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10835
      acl_cv_path_LD="$ac_dir/$ac_prog"
10836
      # Check to see if the program is GNU ld.  I'd rather use --version,
10837
      # but apparently some GNU ld's only accept -v.
10838
      # Break only if it was the GNU/non-GNU ld that we prefer.
10839
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10840
      *GNU* | *'with BFD'*)
10841
	test "$with_gnu_ld" != no && break ;;
10842
      *)
10843
	test "$with_gnu_ld" != yes && break ;;
10844
      esac
10845
    fi
10846
  done
10847
  IFS="$ac_save_ifs"
10848
else
10849
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10850
fi
10851
fi
10852
10853
LD="$acl_cv_path_LD"
10854
if test -n "$LD"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10856
$as_echo "$LD" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10857
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10859
$as_echo "no" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10860
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10861
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10863
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10864
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10865
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10866
else
10867
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10868
case `$LD -v 2>&1 </dev/null` in
10869
*GNU* | *'with BFD'*)
10870
  acl_cv_prog_gnu_ld=yes ;;
10871
*)
10872
  acl_cv_prog_gnu_ld=no ;;
10873
esac
10874
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10876
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10877
with_gnu_ld=$acl_cv_prog_gnu_ld
10878
10879
10880
10881
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10882
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10883
$as_echo_n "checking for shared library run path origin... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10884
if test "${acl_cv_rpath+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10885
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10886
else
10887
10888
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10889
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10890
    . ./conftest.sh
10891
    rm -f ./conftest.sh
10892
    acl_cv_rpath=done
10893
10894
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
10896
$as_echo "$acl_cv_rpath" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10897
  wl="$acl_cv_wl"
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
10898
  acl_libext="$acl_cv_libext"
10899
  acl_shlibext="$acl_cv_shlibext"
10900
  acl_libname_spec="$acl_cv_libname_spec"
10901
  acl_library_names_spec="$acl_cv_library_names_spec"
10902
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10903
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10904
  acl_hardcode_direct="$acl_cv_hardcode_direct"
10905
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10906
    # Check whether --enable-rpath was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10907
if test "${enable_rpath+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10908
  enableval=$enable_rpath; :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10909
else
10910
  enable_rpath=yes
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10911
fi
10912
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10913
10914
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
10915
                  acl_libdirstem=lib
10916
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10917
  if test -n "$searchpath"; then
10918
    acl_save_IFS="${IFS= 	}"; IFS=":"
10919
    for searchdir in $searchpath; do
10920
      if test -d "$searchdir"; then
10921
        case "$searchdir" in
10922
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10923
          *) searchdir=`cd "$searchdir" && pwd`
10924
             case "$searchdir" in
10925
               */lib64 ) acl_libdirstem=lib64 ;;
10926
             esac ;;
10927
        esac
10928
      fi
10929
    done
10930
    IFS="$acl_save_IFS"
10931
  fi
10932
10933
10934
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10935
10936
10937
10938
10939
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
10940
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10941
    use_additional=yes
10942
10943
  acl_save_prefix="$prefix"
10944
  prefix="$acl_final_prefix"
10945
  acl_save_exec_prefix="$exec_prefix"
10946
  exec_prefix="$acl_final_exec_prefix"
10947
10948
    eval additional_includedir=\"$includedir\"
10949
    eval additional_libdir=\"$libdir\"
10950
10951
  exec_prefix="$acl_save_exec_prefix"
10952
  prefix="$acl_save_prefix"
10953
10954
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10955
# Check whether --with-libiconv-prefix was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
10956
if test "${with_libiconv_prefix+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10957
  withval=$with_libiconv_prefix;
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10958
    if test "X$withval" = "Xno"; then
10959
      use_additional=no
10960
    else
10961
      if test "X$withval" = "X"; then
10962
10963
  acl_save_prefix="$prefix"
10964
  prefix="$acl_final_prefix"
10965
  acl_save_exec_prefix="$exec_prefix"
10966
  exec_prefix="$acl_final_exec_prefix"
10967
10968
          eval additional_includedir=\"$includedir\"
10969
          eval additional_libdir=\"$libdir\"
10970
10971
  exec_prefix="$acl_save_exec_prefix"
10972
  prefix="$acl_save_prefix"
10973
10974
      else
10975
        additional_includedir="$withval/include"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
10976
        additional_libdir="$withval/$acl_libdirstem"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10977
      fi
10978
    fi
10979
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
10980
fi
10981
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10982
      LIBICONV=
10983
  LTLIBICONV=
10984
  INCICONV=
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
10985
  LIBICONV_PREFIX=
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
10986
  rpathdirs=
10987
  ltrpathdirs=
10988
  names_already_handled=
10989
  names_next_round='iconv '
10990
  while test -n "$names_next_round"; do
10991
    names_this_round="$names_next_round"
10992
    names_next_round=
10993
    for name in $names_this_round; do
10994
      already_handled=
10995
      for n in $names_already_handled; do
10996
        if test "$n" = "$name"; then
10997
          already_handled=yes
10998
          break
10999
        fi
11000
      done
11001
      if test -z "$already_handled"; then
11002
        names_already_handled="$names_already_handled $name"
11003
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11004
        eval value=\"\$HAVE_LIB$uppername\"
11005
        if test -n "$value"; then
11006
          if test "$value" = yes; then
11007
            eval value=\"\$LIB$uppername\"
11008
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11009
            eval value=\"\$LTLIB$uppername\"
11010
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11011
          else
11012
                                    :
11013
          fi
11014
        else
11015
                              found_dir=
11016
          found_la=
11017
          found_so=
11018
          found_a=
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11019
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11020
          if test -n "$acl_shlibext"; then
11021
            shrext=".$acl_shlibext"             # typically: shrext=.so
11022
          else
11023
            shrext=
11024
          fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11025
          if test $use_additional = yes; then
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11026
            dir="$additional_libdir"
11027
                                    if test -n "$acl_shlibext"; then
11028
              if test -f "$dir/$libname$shrext"; then
11029
                found_dir="$dir"
11030
                found_so="$dir/$libname$shrext"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11031
              else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11032
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11033
                  ver=`(cd "$dir" && \
11034
                        for f in "$libname$shrext".*; do echo "$f"; done \
11035
                        | sed -e "s,^$libname$shrext\\\\.,," \
11036
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11037
                        | sed 1q ) 2>/dev/null`
11038
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11039
                    found_dir="$dir"
11040
                    found_so="$dir/$libname$shrext.$ver"
11041
                  fi
11042
                else
11043
                  eval library_names=\"$acl_library_names_spec\"
11044
                  for f in $library_names; do
11045
                    if test -f "$dir/$f"; then
11046
                      found_dir="$dir"
11047
                      found_so="$dir/$f"
11048
                      break
11049
                    fi
11050
                  done
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11051
                fi
11052
              fi
11053
            fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11054
                        if test "X$found_dir" = "X"; then
11055
              if test -f "$dir/$libname.$acl_libext"; then
11056
                found_dir="$dir"
11057
                found_a="$dir/$libname.$acl_libext"
11058
              fi
11059
            fi
11060
            if test "X$found_dir" != "X"; then
11061
              if test -f "$dir/$libname.la"; then
11062
                found_la="$dir/$libname.la"
11063
              fi
11064
            fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11065
          fi
11066
          if test "X$found_dir" = "X"; then
11067
            for x in $LDFLAGS $LTLIBICONV; do
11068
11069
  acl_save_prefix="$prefix"
11070
  prefix="$acl_final_prefix"
11071
  acl_save_exec_prefix="$exec_prefix"
11072
  exec_prefix="$acl_final_exec_prefix"
11073
  eval x=\"$x\"
11074
  exec_prefix="$acl_save_exec_prefix"
11075
  prefix="$acl_save_prefix"
11076
11077
              case "$x" in
11078
                -L*)
11079
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11080
                                    if test -n "$acl_shlibext"; then
11081
                    if test -f "$dir/$libname$shrext"; then
11082
                      found_dir="$dir"
11083
                      found_so="$dir/$libname$shrext"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11084
                    else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11085
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11086
                        ver=`(cd "$dir" && \
11087
                              for f in "$libname$shrext".*; do echo "$f"; done \
11088
                              | sed -e "s,^$libname$shrext\\\\.,," \
11089
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11090
                              | sed 1q ) 2>/dev/null`
11091
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11092
                          found_dir="$dir"
11093
                          found_so="$dir/$libname$shrext.$ver"
11094
                        fi
11095
                      else
11096
                        eval library_names=\"$acl_library_names_spec\"
11097
                        for f in $library_names; do
11098
                          if test -f "$dir/$f"; then
11099
                            found_dir="$dir"
11100
                            found_so="$dir/$f"
11101
                            break
11102
                          fi
11103
                        done
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11104
                      fi
11105
                    fi
11106
                  fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11107
                                    if test "X$found_dir" = "X"; then
11108
                    if test -f "$dir/$libname.$acl_libext"; then
11109
                      found_dir="$dir"
11110
                      found_a="$dir/$libname.$acl_libext"
11111
                    fi
11112
                  fi
11113
                  if test "X$found_dir" != "X"; then
11114
                    if test -f "$dir/$libname.la"; then
11115
                      found_la="$dir/$libname.la"
11116
                    fi
11117
                  fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11118
                  ;;
11119
              esac
11120
              if test "X$found_dir" != "X"; then
11121
                break
11122
              fi
11123
            done
11124
          fi
11125
          if test "X$found_dir" != "X"; then
11126
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11127
            if test "X$found_so" != "X"; then
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11128
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11129
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11130
              else
11131
                                                                                haveit=
11132
                for x in $ltrpathdirs; do
11133
                  if test "X$x" = "X$found_dir"; then
11134
                    haveit=yes
11135
                    break
11136
                  fi
11137
                done
11138
                if test -z "$haveit"; then
11139
                  ltrpathdirs="$ltrpathdirs $found_dir"
11140
                fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11141
                                if test "$acl_hardcode_direct" = yes; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11142
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11143
                else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11144
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11145
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11146
                                                            haveit=
11147
                    for x in $rpathdirs; do
11148
                      if test "X$x" = "X$found_dir"; then
11149
                        haveit=yes
11150
                        break
11151
                      fi
11152
                    done
11153
                    if test -z "$haveit"; then
11154
                      rpathdirs="$rpathdirs $found_dir"
11155
                    fi
11156
                  else
11157
                                                                                haveit=
11158
                    for x in $LDFLAGS $LIBICONV; do
11159
11160
  acl_save_prefix="$prefix"
11161
  prefix="$acl_final_prefix"
11162
  acl_save_exec_prefix="$exec_prefix"
11163
  exec_prefix="$acl_final_exec_prefix"
11164
  eval x=\"$x\"
11165
  exec_prefix="$acl_save_exec_prefix"
11166
  prefix="$acl_save_prefix"
11167
11168
                      if test "X$x" = "X-L$found_dir"; then
11169
                        haveit=yes
11170
                        break
11171
                      fi
11172
                    done
11173
                    if test -z "$haveit"; then
11174
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11175
                    fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11176
                    if test "$acl_hardcode_minus_L" != no; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11177
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11178
                    else
11179
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11180
                    fi
11181
                  fi
11182
                fi
11183
              fi
11184
            else
11185
              if test "X$found_a" != "X"; then
11186
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11187
              else
11188
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11189
              fi
11190
            fi
11191
                        additional_includedir=
11192
            case "$found_dir" in
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11193
              */$acl_libdirstem | */$acl_libdirstem/)
11194
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11195
                LIBICONV_PREFIX="$basedir"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11196
                additional_includedir="$basedir/include"
11197
                ;;
11198
            esac
11199
            if test "X$additional_includedir" != "X"; then
11200
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11201
                haveit=
11202
                if test "X$additional_includedir" = "X/usr/local/include"; then
11203
                  if test -n "$GCC"; then
11204
                    case $host_os in
11205
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11206
                    esac
11207
                  fi
11208
                fi
11209
                if test -z "$haveit"; then
11210
                  for x in $CPPFLAGS $INCICONV; do
11211
11212
  acl_save_prefix="$prefix"
11213
  prefix="$acl_final_prefix"
11214
  acl_save_exec_prefix="$exec_prefix"
11215
  exec_prefix="$acl_final_exec_prefix"
11216
  eval x=\"$x\"
11217
  exec_prefix="$acl_save_exec_prefix"
11218
  prefix="$acl_save_prefix"
11219
11220
                    if test "X$x" = "X-I$additional_includedir"; then
11221
                      haveit=yes
11222
                      break
11223
                    fi
11224
                  done
11225
                  if test -z "$haveit"; then
11226
                    if test -d "$additional_includedir"; then
11227
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11228
                    fi
11229
                  fi
11230
                fi
11231
              fi
11232
            fi
11233
                        if test -n "$found_la"; then
11234
                                                        save_libdir="$libdir"
11235
              case "$found_la" in
11236
                */* | *\\*) . "$found_la" ;;
11237
                *) . "./$found_la" ;;
11238
              esac
11239
              libdir="$save_libdir"
11240
                            for dep in $dependency_libs; do
11241
                case "$dep" in
11242
                  -L*)
11243
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11244
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11245
                      haveit=
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11246
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11247
                        if test -n "$GCC"; then
11248
                          case $host_os in
11249
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11250
                          esac
11251
                        fi
11252
                      fi
11253
                      if test -z "$haveit"; then
11254
                        haveit=
11255
                        for x in $LDFLAGS $LIBICONV; do
11256
11257
  acl_save_prefix="$prefix"
11258
  prefix="$acl_final_prefix"
11259
  acl_save_exec_prefix="$exec_prefix"
11260
  exec_prefix="$acl_final_exec_prefix"
11261
  eval x=\"$x\"
11262
  exec_prefix="$acl_save_exec_prefix"
11263
  prefix="$acl_save_prefix"
11264
11265
                          if test "X$x" = "X-L$additional_libdir"; then
11266
                            haveit=yes
11267
                            break
11268
                          fi
11269
                        done
11270
                        if test -z "$haveit"; then
11271
                          if test -d "$additional_libdir"; then
11272
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11273
                          fi
11274
                        fi
11275
                        haveit=
11276
                        for x in $LDFLAGS $LTLIBICONV; do
11277
11278
  acl_save_prefix="$prefix"
11279
  prefix="$acl_final_prefix"
11280
  acl_save_exec_prefix="$exec_prefix"
11281
  exec_prefix="$acl_final_exec_prefix"
11282
  eval x=\"$x\"
11283
  exec_prefix="$acl_save_exec_prefix"
11284
  prefix="$acl_save_prefix"
11285
11286
                          if test "X$x" = "X-L$additional_libdir"; then
11287
                            haveit=yes
11288
                            break
11289
                          fi
11290
                        done
11291
                        if test -z "$haveit"; then
11292
                          if test -d "$additional_libdir"; then
11293
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11294
                          fi
11295
                        fi
11296
                      fi
11297
                    fi
11298
                    ;;
11299
                  -R*)
11300
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11301
                    if test "$enable_rpath" != no; then
11302
                                                                  haveit=
11303
                      for x in $rpathdirs; do
11304
                        if test "X$x" = "X$dir"; then
11305
                          haveit=yes
11306
                          break
11307
                        fi
11308
                      done
11309
                      if test -z "$haveit"; then
11310
                        rpathdirs="$rpathdirs $dir"
11311
                      fi
11312
                                                                  haveit=
11313
                      for x in $ltrpathdirs; do
11314
                        if test "X$x" = "X$dir"; then
11315
                          haveit=yes
11316
                          break
11317
                        fi
11318
                      done
11319
                      if test -z "$haveit"; then
11320
                        ltrpathdirs="$ltrpathdirs $dir"
11321
                      fi
11322
                    fi
11323
                    ;;
11324
                  -l*)
11325
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11326
                    ;;
11327
                  *.la)
11328
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11329
                    ;;
11330
                  *)
11331
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11332
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11333
                    ;;
11334
                esac
11335
              done
11336
            fi
11337
          else
11338
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11339
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11340
          fi
11341
        fi
11342
      fi
11343
    done
11344
  done
11345
  if test "X$rpathdirs" != "X"; then
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11346
    if test -n "$acl_hardcode_libdir_separator"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11347
                        alldirs=
11348
      for found_dir in $rpathdirs; do
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11349
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11350
      done
11351
            acl_save_libdir="$libdir"
11352
      libdir="$alldirs"
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11353
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11354
      libdir="$acl_save_libdir"
11355
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11356
    else
11357
            for found_dir in $rpathdirs; do
11358
        acl_save_libdir="$libdir"
11359
        libdir="$found_dir"
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11360
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11361
        libdir="$acl_save_libdir"
11362
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11363
      done
11364
    fi
11365
  fi
11366
  if test "X$ltrpathdirs" != "X"; then
11367
            for found_dir in $ltrpathdirs; do
11368
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11369
    done
11370
  fi
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11389
11390
11391
11392
11393
11394
11395
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11396
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11397
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11398
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11399
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11400
else
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11401
  gt_save_LIBS="$LIBS"
11402
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11403
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11404
/* end confdefs.h.  */
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11405
#include <CoreFoundation/CFPreferences.h>
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11406
int
11407
main ()
11408
{
11409
CFPreferencesCopyAppValue(NULL, NULL)
11410
  ;
11411
  return 0;
11412
}
11413
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11414
if ac_fn_c_try_link "$LINENO"; then :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11415
  gt_cv_func_CFPreferencesCopyAppValue=yes
11416
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11417
  gt_cv_func_CFPreferencesCopyAppValue=no
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11418
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11419
rm -f core conftest.err conftest.$ac_objext \
11420
    conftest$ac_exeext conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11421
     LIBS="$gt_save_LIBS"
11422
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11424
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11425
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11426
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11427
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11428
11429
  fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11430
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11431
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11432
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11433
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11434
else
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11435
  gt_save_LIBS="$LIBS"
11436
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11437
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11438
/* end confdefs.h.  */
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11439
#include <CoreFoundation/CFLocale.h>
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11440
int
11441
main ()
11442
{
11443
CFLocaleCopyCurrent();
11444
  ;
11445
  return 0;
11446
}
11447
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11448
if ac_fn_c_try_link "$LINENO"; then :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11449
  gt_cv_func_CFLocaleCopyCurrent=yes
11450
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11451
  gt_cv_func_CFLocaleCopyCurrent=no
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11452
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11453
rm -f core conftest.err conftest.$ac_objext \
11454
    conftest$ac_exeext conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11455
     LIBS="$gt_save_LIBS"
11456
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11458
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11459
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11460
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11461
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11462
11463
  fi
11464
  INTL_MACOSX_LIBS=
11465
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11466
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11467
  fi
11468
11469
11470
11471
11472
11473
11474
  LIBINTL=
11475
  LTLIBINTL=
11476
  POSUB=
11477
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11478
    case " $gt_needs " in
11479
    *" need-formatstring-macros "*) gt_api_version=3 ;;
11480
    *" need-ngettext "*) gt_api_version=2 ;;
11481
    *) gt_api_version=1 ;;
11482
  esac
11483
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11484
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11485
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11486
    if test "$USE_NLS" = "yes"; then
11487
    gt_use_preinstalled_gnugettext=no
11488
11489
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11490
        if test $gt_api_version -ge 3; then
11491
          gt_revision_test_code='
11492
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11493
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11494
#endif
11495
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11496
'
11497
        else
11498
          gt_revision_test_code=
11499
        fi
11500
        if test $gt_api_version -ge 2; then
11501
          gt_expression_test_code=' + * ngettext ("", "", 0)'
11502
        else
11503
          gt_expression_test_code=
11504
        fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11505
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11506
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11507
$as_echo_n "checking for GNU gettext in libc... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11508
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11509
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11510
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11511
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11512
/* end confdefs.h.  */
11513
#include <libintl.h>
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11514
$gt_revision_test_code
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11515
extern int _nl_msg_cat_cntr;
11516
extern int *_nl_domain_bindings;
11517
int
11518
main ()
11519
{
11520
bindtextdomain ("", "");
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11521
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11522
  ;
11523
  return 0;
11524
}
11525
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11526
if ac_fn_c_try_link "$LINENO"; then :
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11527
  eval "$gt_func_gnugettext_libc=yes"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11528
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11529
  eval "$gt_func_gnugettext_libc=no"
11530
fi
11531
rm -f core conftest.err conftest.$ac_objext \
11532
    conftest$ac_exeext conftest.$ac_ext
11533
fi
11534
eval ac_res=\$$gt_func_gnugettext_libc
11535
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11536
$as_echo "$ac_res" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11537
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11538
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11539
11540
11541
11542
11543
11544
          am_save_CPPFLAGS="$CPPFLAGS"
11545
11546
  for element in $INCICONV; do
11547
    haveit=
11548
    for x in $CPPFLAGS; do
11549
11550
  acl_save_prefix="$prefix"
11551
  prefix="$acl_final_prefix"
11552
  acl_save_exec_prefix="$exec_prefix"
11553
  exec_prefix="$acl_final_exec_prefix"
11554
  eval x=\"$x\"
11555
  exec_prefix="$acl_save_exec_prefix"
11556
  prefix="$acl_save_prefix"
11557
11558
      if test "X$x" = "X$element"; then
11559
        haveit=yes
11560
        break
11561
      fi
11562
    done
11563
    if test -z "$haveit"; then
11564
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11565
    fi
11566
  done
11567
11568
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11569
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11570
$as_echo_n "checking for iconv... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11571
if test "${am_cv_func_iconv+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11572
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11573
else
11574
11575
    am_cv_func_iconv="no, consider installing GNU libiconv"
11576
    am_cv_lib_iconv=no
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11577
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11578
/* end confdefs.h.  */
11579
#include <stdlib.h>
11580
#include <iconv.h>
11581
int
11582
main ()
11583
{
11584
iconv_t cd = iconv_open("","");
11585
       iconv(cd,NULL,NULL,NULL,NULL);
11586
       iconv_close(cd);
11587
  ;
11588
  return 0;
11589
}
11590
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11591
if ac_fn_c_try_link "$LINENO"; then :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11592
  am_cv_func_iconv=yes
11593
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11594
rm -f core conftest.err conftest.$ac_objext \
11595
    conftest$ac_exeext conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11596
    if test "$am_cv_func_iconv" != yes; then
11597
      am_save_LIBS="$LIBS"
11598
      LIBS="$LIBS $LIBICONV"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11599
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11600
/* end confdefs.h.  */
11601
#include <stdlib.h>
11602
#include <iconv.h>
11603
int
11604
main ()
11605
{
11606
iconv_t cd = iconv_open("","");
11607
         iconv(cd,NULL,NULL,NULL,NULL);
11608
         iconv_close(cd);
11609
  ;
11610
  return 0;
11611
}
11612
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11613
if ac_fn_c_try_link "$LINENO"; then :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11614
  am_cv_lib_iconv=yes
11615
        am_cv_func_iconv=yes
11616
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11617
rm -f core conftest.err conftest.$ac_objext \
11618
    conftest$ac_exeext conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11619
      LIBS="$am_save_LIBS"
11620
    fi
11621
11622
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11624
$as_echo "$am_cv_func_iconv" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11625
  if test "$am_cv_func_iconv" = yes; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11626
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11627
$as_echo_n "checking for working iconv... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11628
if test "${am_cv_func_iconv_works+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11629
  $as_echo_n "(cached) " >&6
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11630
else
11631
11632
            am_save_LIBS="$LIBS"
11633
      if test $am_cv_lib_iconv = yes; then
11634
        LIBS="$LIBS $LIBICONV"
11635
      fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11636
      if test "$cross_compiling" = yes; then :
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11637
  case "$host_os" in
11638
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11639
           *)            am_cv_func_iconv_works="guessing yes" ;;
11640
         esac
11641
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11642
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11643
/* end confdefs.h.  */
11644
11645
#include <iconv.h>
11646
#include <string.h>
11647
int main ()
11648
{
11649
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11650
     returns.  */
11651
  {
11652
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11653
    if (cd_utf8_to_88591 != (iconv_t)(-1))
11654
      {
11655
        static const char input[] = "\342\202\254"; /* EURO SIGN */
11656
        char buf[10];
11657
        const char *inptr = input;
11658
        size_t inbytesleft = strlen (input);
11659
        char *outptr = buf;
11660
        size_t outbytesleft = sizeof (buf);
11661
        size_t res = iconv (cd_utf8_to_88591,
11662
                            (char **) &inptr, &inbytesleft,
11663
                            &outptr, &outbytesleft);
11664
        if (res == 0)
11665
          return 1;
11666
      }
11667
  }
11668
#if 0 /* This bug could be worked around by the caller.  */
11669
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11670
  {
11671
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11672
    if (cd_88591_to_utf8 != (iconv_t)(-1))
11673
      {
11674
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11675
        char buf[50];
11676
        const char *inptr = input;
11677
        size_t inbytesleft = strlen (input);
11678
        char *outptr = buf;
11679
        size_t outbytesleft = sizeof (buf);
11680
        size_t res = iconv (cd_88591_to_utf8,
11681
                            (char **) &inptr, &inbytesleft,
11682
                            &outptr, &outbytesleft);
11683
        if ((int)res > 0)
11684
          return 1;
11685
      }
11686
  }
11687
#endif
11688
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11689
     provided.  */
11690
  if (/* Try standardized names.  */
11691
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11692
      /* Try IRIX, OSF/1 names.  */
11693
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11694
      /* Try AIX names.  */
11695
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11696
      /* Try HP-UX names.  */
11697
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11698
    return 1;
11699
  return 0;
11700
}
11701
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11702
if ac_fn_c_try_run "$LINENO"; then :
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11703
  am_cv_func_iconv_works=yes
11704
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11705
  am_cv_func_iconv_works=no
11706
fi
11707
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11708
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11709
fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11710
11711
      LIBS="$am_save_LIBS"
11712
11713
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11715
$as_echo "$am_cv_func_iconv_works" >&6; }
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11716
    case "$am_cv_func_iconv_works" in
11717
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11718
      *)   am_func_iconv=yes ;;
11719
    esac
11720
  else
11721
    am_func_iconv=no am_cv_lib_iconv=no
11722
  fi
11723
  if test "$am_func_iconv" = yes; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11724
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11725
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11726
11727
  fi
11728
  if test "$am_cv_lib_iconv" = yes; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11729
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11730
$as_echo_n "checking how to link with libiconv... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11731
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
11732
$as_echo "$LIBICONV" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11733
  else
11734
            CPPFLAGS="$am_save_CPPFLAGS"
11735
    LIBICONV=
11736
    LTLIBICONV=
11737
  fi
11738
11739
11740
11741
11742
11743
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11744
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11745
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11746
    use_additional=yes
11747
11748
  acl_save_prefix="$prefix"
11749
  prefix="$acl_final_prefix"
11750
  acl_save_exec_prefix="$exec_prefix"
11751
  exec_prefix="$acl_final_exec_prefix"
11752
11753
    eval additional_includedir=\"$includedir\"
11754
    eval additional_libdir=\"$libdir\"
11755
11756
  exec_prefix="$acl_save_exec_prefix"
11757
  prefix="$acl_save_prefix"
11758
11759
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
11760
# Check whether --with-libintl-prefix was given.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
11761
if test "${with_libintl_prefix+set}" = set; then :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
11762
  withval=$with_libintl_prefix;
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11763
    if test "X$withval" = "Xno"; then
11764
      use_additional=no
11765
    else
11766
      if test "X$withval" = "X"; then
11767
11768
  acl_save_prefix="$prefix"
11769
  prefix="$acl_final_prefix"
11770
  acl_save_exec_prefix="$exec_prefix"
11771
  exec_prefix="$acl_final_exec_prefix"
11772
11773
          eval additional_includedir=\"$includedir\"
11774
          eval additional_libdir=\"$libdir\"
11775
11776
  exec_prefix="$acl_save_exec_prefix"
11777
  prefix="$acl_save_prefix"
11778
11779
      else
11780
        additional_includedir="$withval/include"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11781
        additional_libdir="$withval/$acl_libdirstem"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11782
      fi
11783
    fi
11784
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
11785
fi
11786
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11787
      LIBINTL=
11788
  LTLIBINTL=
11789
  INCINTL=
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11790
  LIBINTL_PREFIX=
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11791
  rpathdirs=
11792
  ltrpathdirs=
11793
  names_already_handled=
11794
  names_next_round='intl '
11795
  while test -n "$names_next_round"; do
11796
    names_this_round="$names_next_round"
11797
    names_next_round=
11798
    for name in $names_this_round; do
11799
      already_handled=
11800
      for n in $names_already_handled; do
11801
        if test "$n" = "$name"; then
11802
          already_handled=yes
11803
          break
11804
        fi
11805
      done
11806
      if test -z "$already_handled"; then
11807
        names_already_handled="$names_already_handled $name"
11808
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11809
        eval value=\"\$HAVE_LIB$uppername\"
11810
        if test -n "$value"; then
11811
          if test "$value" = yes; then
11812
            eval value=\"\$LIB$uppername\"
11813
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11814
            eval value=\"\$LTLIB$uppername\"
11815
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11816
          else
11817
                                    :
11818
          fi
11819
        else
11820
                              found_dir=
11821
          found_la=
11822
          found_so=
11823
          found_a=
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11824
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11825
          if test -n "$acl_shlibext"; then
11826
            shrext=".$acl_shlibext"             # typically: shrext=.so
11827
          else
11828
            shrext=
11829
          fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11830
          if test $use_additional = yes; then
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11831
            dir="$additional_libdir"
11832
                                    if test -n "$acl_shlibext"; then
11833
              if test -f "$dir/$libname$shrext"; then
11834
                found_dir="$dir"
11835
                found_so="$dir/$libname$shrext"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11836
              else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11837
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11838
                  ver=`(cd "$dir" && \
11839
                        for f in "$libname$shrext".*; do echo "$f"; done \
11840
                        | sed -e "s,^$libname$shrext\\\\.,," \
11841
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11842
                        | sed 1q ) 2>/dev/null`
11843
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11844
                    found_dir="$dir"
11845
                    found_so="$dir/$libname$shrext.$ver"
11846
                  fi
11847
                else
11848
                  eval library_names=\"$acl_library_names_spec\"
11849
                  for f in $library_names; do
11850
                    if test -f "$dir/$f"; then
11851
                      found_dir="$dir"
11852
                      found_so="$dir/$f"
11853
                      break
11854
                    fi
11855
                  done
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11856
                fi
11857
              fi
11858
            fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11859
                        if test "X$found_dir" = "X"; then
11860
              if test -f "$dir/$libname.$acl_libext"; then
11861
                found_dir="$dir"
11862
                found_a="$dir/$libname.$acl_libext"
11863
              fi
11864
            fi
11865
            if test "X$found_dir" != "X"; then
11866
              if test -f "$dir/$libname.la"; then
11867
                found_la="$dir/$libname.la"
11868
              fi
11869
            fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11870
          fi
11871
          if test "X$found_dir" = "X"; then
11872
            for x in $LDFLAGS $LTLIBINTL; do
11873
11874
  acl_save_prefix="$prefix"
11875
  prefix="$acl_final_prefix"
11876
  acl_save_exec_prefix="$exec_prefix"
11877
  exec_prefix="$acl_final_exec_prefix"
11878
  eval x=\"$x\"
11879
  exec_prefix="$acl_save_exec_prefix"
11880
  prefix="$acl_save_prefix"
11881
11882
              case "$x" in
11883
                -L*)
11884
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11885
                                    if test -n "$acl_shlibext"; then
11886
                    if test -f "$dir/$libname$shrext"; then
11887
                      found_dir="$dir"
11888
                      found_so="$dir/$libname$shrext"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11889
                    else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11890
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11891
                        ver=`(cd "$dir" && \
11892
                              for f in "$libname$shrext".*; do echo "$f"; done \
11893
                              | sed -e "s,^$libname$shrext\\\\.,," \
11894
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11895
                              | sed 1q ) 2>/dev/null`
11896
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11897
                          found_dir="$dir"
11898
                          found_so="$dir/$libname$shrext.$ver"
11899
                        fi
11900
                      else
11901
                        eval library_names=\"$acl_library_names_spec\"
11902
                        for f in $library_names; do
11903
                          if test -f "$dir/$f"; then
11904
                            found_dir="$dir"
11905
                            found_so="$dir/$f"
11906
                            break
11907
                          fi
11908
                        done
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11909
                      fi
11910
                    fi
11911
                  fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11912
                                    if test "X$found_dir" = "X"; then
11913
                    if test -f "$dir/$libname.$acl_libext"; then
11914
                      found_dir="$dir"
11915
                      found_a="$dir/$libname.$acl_libext"
11916
                    fi
11917
                  fi
11918
                  if test "X$found_dir" != "X"; then
11919
                    if test -f "$dir/$libname.la"; then
11920
                      found_la="$dir/$libname.la"
11921
                    fi
11922
                  fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11923
                  ;;
11924
              esac
11925
              if test "X$found_dir" != "X"; then
11926
                break
11927
              fi
11928
            done
11929
          fi
11930
          if test "X$found_dir" != "X"; then
11931
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11932
            if test "X$found_so" != "X"; then
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11933
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11934
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11935
              else
11936
                                                                                haveit=
11937
                for x in $ltrpathdirs; do
11938
                  if test "X$x" = "X$found_dir"; then
11939
                    haveit=yes
11940
                    break
11941
                  fi
11942
                done
11943
                if test -z "$haveit"; then
11944
                  ltrpathdirs="$ltrpathdirs $found_dir"
11945
                fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11946
                                if test "$acl_hardcode_direct" = yes; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11947
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11948
                else
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11949
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11950
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11951
                                                            haveit=
11952
                    for x in $rpathdirs; do
11953
                      if test "X$x" = "X$found_dir"; then
11954
                        haveit=yes
11955
                        break
11956
                      fi
11957
                    done
11958
                    if test -z "$haveit"; then
11959
                      rpathdirs="$rpathdirs $found_dir"
11960
                    fi
11961
                  else
11962
                                                                                haveit=
11963
                    for x in $LDFLAGS $LIBINTL; do
11964
11965
  acl_save_prefix="$prefix"
11966
  prefix="$acl_final_prefix"
11967
  acl_save_exec_prefix="$exec_prefix"
11968
  exec_prefix="$acl_final_exec_prefix"
11969
  eval x=\"$x\"
11970
  exec_prefix="$acl_save_exec_prefix"
11971
  prefix="$acl_save_prefix"
11972
11973
                      if test "X$x" = "X-L$found_dir"; then
11974
                        haveit=yes
11975
                        break
11976
                      fi
11977
                    done
11978
                    if test -z "$haveit"; then
11979
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11980
                    fi
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
11981
                    if test "$acl_hardcode_minus_L" != no; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
11982
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11983
                    else
11984
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11985
                    fi
11986
                  fi
11987
                fi
11988
              fi
11989
            else
11990
              if test "X$found_a" != "X"; then
11991
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11992
              else
11993
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11994
              fi
11995
            fi
11996
                        additional_includedir=
11997
            case "$found_dir" in
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
11998
              */$acl_libdirstem | */$acl_libdirstem/)
11999
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
12000
                LIBINTL_PREFIX="$basedir"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12001
                additional_includedir="$basedir/include"
12002
                ;;
12003
            esac
12004
            if test "X$additional_includedir" != "X"; then
12005
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12006
                haveit=
12007
                if test "X$additional_includedir" = "X/usr/local/include"; then
12008
                  if test -n "$GCC"; then
12009
                    case $host_os in
12010
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12011
                    esac
12012
                  fi
12013
                fi
12014
                if test -z "$haveit"; then
12015
                  for x in $CPPFLAGS $INCINTL; do
12016
12017
  acl_save_prefix="$prefix"
12018
  prefix="$acl_final_prefix"
12019
  acl_save_exec_prefix="$exec_prefix"
12020
  exec_prefix="$acl_final_exec_prefix"
12021
  eval x=\"$x\"
12022
  exec_prefix="$acl_save_exec_prefix"
12023
  prefix="$acl_save_prefix"
12024
12025
                    if test "X$x" = "X-I$additional_includedir"; then
12026
                      haveit=yes
12027
                      break
12028
                    fi
12029
                  done
12030
                  if test -z "$haveit"; then
12031
                    if test -d "$additional_includedir"; then
12032
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12033
                    fi
12034
                  fi
12035
                fi
12036
              fi
12037
            fi
12038
                        if test -n "$found_la"; then
12039
                                                        save_libdir="$libdir"
12040
              case "$found_la" in
12041
                */* | *\\*) . "$found_la" ;;
12042
                *) . "./$found_la" ;;
12043
              esac
12044
              libdir="$save_libdir"
12045
                            for dep in $dependency_libs; do
12046
                case "$dep" in
12047
                  -L*)
12048
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12049
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12050
                      haveit=
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12051
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12052
                        if test -n "$GCC"; then
12053
                          case $host_os in
12054
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12055
                          esac
12056
                        fi
12057
                      fi
12058
                      if test -z "$haveit"; then
12059
                        haveit=
12060
                        for x in $LDFLAGS $LIBINTL; do
12061
12062
  acl_save_prefix="$prefix"
12063
  prefix="$acl_final_prefix"
12064
  acl_save_exec_prefix="$exec_prefix"
12065
  exec_prefix="$acl_final_exec_prefix"
12066
  eval x=\"$x\"
12067
  exec_prefix="$acl_save_exec_prefix"
12068
  prefix="$acl_save_prefix"
12069
12070
                          if test "X$x" = "X-L$additional_libdir"; then
12071
                            haveit=yes
12072
                            break
12073
                          fi
12074
                        done
12075
                        if test -z "$haveit"; then
12076
                          if test -d "$additional_libdir"; then
12077
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12078
                          fi
12079
                        fi
12080
                        haveit=
12081
                        for x in $LDFLAGS $LTLIBINTL; do
12082
12083
  acl_save_prefix="$prefix"
12084
  prefix="$acl_final_prefix"
12085
  acl_save_exec_prefix="$exec_prefix"
12086
  exec_prefix="$acl_final_exec_prefix"
12087
  eval x=\"$x\"
12088
  exec_prefix="$acl_save_exec_prefix"
12089
  prefix="$acl_save_prefix"
12090
12091
                          if test "X$x" = "X-L$additional_libdir"; then
12092
                            haveit=yes
12093
                            break
12094
                          fi
12095
                        done
12096
                        if test -z "$haveit"; then
12097
                          if test -d "$additional_libdir"; then
12098
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12099
                          fi
12100
                        fi
12101
                      fi
12102
                    fi
12103
                    ;;
12104
                  -R*)
12105
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12106
                    if test "$enable_rpath" != no; then
12107
                                                                  haveit=
12108
                      for x in $rpathdirs; do
12109
                        if test "X$x" = "X$dir"; then
12110
                          haveit=yes
12111
                          break
12112
                        fi
12113
                      done
12114
                      if test -z "$haveit"; then
12115
                        rpathdirs="$rpathdirs $dir"
12116
                      fi
12117
                                                                  haveit=
12118
                      for x in $ltrpathdirs; do
12119
                        if test "X$x" = "X$dir"; then
12120
                          haveit=yes
12121
                          break
12122
                        fi
12123
                      done
12124
                      if test -z "$haveit"; then
12125
                        ltrpathdirs="$ltrpathdirs $dir"
12126
                      fi
12127
                    fi
12128
                    ;;
12129
                  -l*)
12130
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12131
                    ;;
12132
                  *.la)
12133
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12134
                    ;;
12135
                  *)
12136
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12137
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12138
                    ;;
12139
                esac
12140
              done
12141
            fi
12142
          else
12143
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12144
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12145
          fi
12146
        fi
12147
      fi
12148
    done
12149
  done
12150
  if test "X$rpathdirs" != "X"; then
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
12151
    if test -n "$acl_hardcode_libdir_separator"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12152
                        alldirs=
12153
      for found_dir in $rpathdirs; do
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
12154
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12155
      done
12156
            acl_save_libdir="$libdir"
12157
      libdir="$alldirs"
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
12158
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12159
      libdir="$acl_save_libdir"
12160
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12161
    else
12162
            for found_dir in $rpathdirs; do
12163
        acl_save_libdir="$libdir"
12164
        libdir="$found_dir"
155 by Jonathan Riddell, Colin Watson, Evan Dandrea, Jonathan Riddell
[ Colin Watson ]
12165
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12166
        libdir="$acl_save_libdir"
12167
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12168
      done
12169
    fi
12170
  fi
12171
  if test "X$ltrpathdirs" != "X"; then
12172
            for found_dir in $ltrpathdirs; do
12173
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12174
    done
12175
  fi
12176
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12177
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12178
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12179
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12180
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12181
else
12182
  gt_save_CPPFLAGS="$CPPFLAGS"
12183
            CPPFLAGS="$CPPFLAGS $INCINTL"
12184
            gt_save_LIBS="$LIBS"
12185
            LIBS="$LIBS $LIBINTL"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12186
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12187
/* end confdefs.h.  */
12188
#include <libintl.h>
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12189
$gt_revision_test_code
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12190
extern int _nl_msg_cat_cntr;
12191
extern
12192
#ifdef __cplusplus
12193
"C"
12194
#endif
12195
const char *_nl_expand_alias (const char *);
12196
int
12197
main ()
12198
{
12199
bindtextdomain ("", "");
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12200
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12201
  ;
12202
  return 0;
12203
}
12204
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12205
if ac_fn_c_try_link "$LINENO"; then :
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12206
  eval "$gt_func_gnugettext_libintl=yes"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12207
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12208
  eval "$gt_func_gnugettext_libintl=no"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12209
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12210
rm -f core conftest.err conftest.$ac_objext \
12211
    conftest$ac_exeext conftest.$ac_ext
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12212
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12213
              LIBS="$LIBS $LIBICONV"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12214
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12215
/* end confdefs.h.  */
12216
#include <libintl.h>
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12217
$gt_revision_test_code
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12218
extern int _nl_msg_cat_cntr;
12219
extern
12220
#ifdef __cplusplus
12221
"C"
12222
#endif
12223
const char *_nl_expand_alias (const char *);
12224
int
12225
main ()
12226
{
12227
bindtextdomain ("", "");
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12228
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12229
  ;
12230
  return 0;
12231
}
12232
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12233
if ac_fn_c_try_link "$LINENO"; then :
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12234
  LIBINTL="$LIBINTL $LIBICONV"
12235
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12236
                eval "$gt_func_gnugettext_libintl=yes"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12237
12238
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12239
rm -f core conftest.err conftest.$ac_objext \
12240
    conftest$ac_exeext conftest.$ac_ext
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12241
            fi
12242
            CPPFLAGS="$gt_save_CPPFLAGS"
12243
            LIBS="$gt_save_LIBS"
12244
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12245
eval ac_res=\$$gt_func_gnugettext_libintl
12246
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12247
$as_echo "$ac_res" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12248
        fi
12249
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12250
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12251
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12252
                && test "$PACKAGE" != gettext-runtime \
12253
                && test "$PACKAGE" != gettext-tools; }; then
12254
          gt_use_preinstalled_gnugettext=yes
12255
        else
12256
                    LIBINTL=
12257
          LTLIBINTL=
12258
          INCINTL=
12259
        fi
12260
12261
12262
12263
    if test -n "$INTL_MACOSX_LIBS"; then
12264
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12265
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12266
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12267
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12268
      fi
12269
    fi
12270
12271
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12272
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12273
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12274
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12275
12276
    else
12277
      USE_NLS=no
12278
    fi
12279
  fi
12280
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12281
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12282
$as_echo_n "checking whether to use NLS... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12284
$as_echo "$USE_NLS" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12285
  if test "$USE_NLS" = "yes"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12286
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12287
$as_echo_n "checking where the gettext function comes from... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12288
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12289
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12290
        gt_source="external libintl"
12291
      else
12292
        gt_source="libc"
12293
      fi
12294
    else
12295
      gt_source="included intl directory"
12296
    fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12297
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12298
$as_echo "$gt_source" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12299
  fi
12300
12301
  if test "$USE_NLS" = "yes"; then
12302
12303
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
12304
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12305
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12306
$as_echo_n "checking how to link with libintl... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12307
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12308
$as_echo "$LIBINTL" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12309
12310
  for element in $INCINTL; do
12311
    haveit=
12312
    for x in $CPPFLAGS; do
12313
12314
  acl_save_prefix="$prefix"
12315
  prefix="$acl_final_prefix"
12316
  acl_save_exec_prefix="$exec_prefix"
12317
  exec_prefix="$acl_final_exec_prefix"
12318
  eval x=\"$x\"
12319
  exec_prefix="$acl_save_exec_prefix"
12320
  prefix="$acl_save_prefix"
12321
12322
      if test "X$x" = "X$element"; then
12323
        haveit=yes
12324
        break
12325
      fi
12326
    done
12327
    if test -z "$haveit"; then
12328
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12329
    fi
12330
  done
12331
12332
      fi
12333
12334
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12335
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12336
12337
12338
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12339
12340
    fi
12341
12342
        POSUB=po
12343
  fi
12344
12345
12346
12347
    INTLLIBS="$LIBINTL"
12348
12349
12350
12351
12352
12353
12354
12355
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12356
GETTEXT_PACKAGE=ubiquity
12357
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12358
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12359
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12360
case "$am__api_version" in
12361
    1.01234)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12362
	as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12363
    ;;
12364
    *)
12365
    ;;
12366
esac
12367
193 by Evan Dandrea, Colin Watson, Evan Dandrea, Emmet Hikory
[ Colin Watson ]
12368
if test -n "0.40.0"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12369
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12370
$as_echo_n "checking for intltool >= 0.40.0... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12371
193 by Evan Dandrea, Colin Watson, Evan Dandrea, Emmet Hikory
[ Colin Watson ]
12372
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12373
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12374
    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12375
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12376
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12377
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12378
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12379
	as_fn_error "Your intltool is too old.  You need intltool 0.40.0 or later." "$LINENO" 5
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12380
fi
12381
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12382
# Extract the first word of "intltool-update", so it can be a program name with args.
12383
set dummy intltool-update; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12385
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12386
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12387
  $as_echo_n "(cached) " >&6
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12388
else
12389
  case $INTLTOOL_UPDATE in
12390
  [\\/]* | ?:[\\/]*)
12391
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
12392
  ;;
12393
  *)
12394
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395
for as_dir in $PATH
12396
do
12397
  IFS=$as_save_IFS
12398
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12399
    for ac_exec_ext in '' $ac_executable_extensions; do
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12402
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12403
    break 2
12404
  fi
12405
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12406
  done
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12407
IFS=$as_save_IFS
12408
12409
  ;;
12410
esac
12411
fi
12412
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
12413
if test -n "$INTLTOOL_UPDATE"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12415
$as_echo "$INTLTOOL_UPDATE" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12416
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12418
$as_echo "no" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12419
fi
12420
12421
12422
# Extract the first word of "intltool-merge", so it can be a program name with args.
12423
set dummy intltool-merge; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12425
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12426
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12427
  $as_echo_n "(cached) " >&6
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12428
else
12429
  case $INTLTOOL_MERGE in
12430
  [\\/]* | ?:[\\/]*)
12431
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
12432
  ;;
12433
  *)
12434
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435
for as_dir in $PATH
12436
do
12437
  IFS=$as_save_IFS
12438
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12439
    for ac_exec_ext in '' $ac_executable_extensions; do
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12440
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12442
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12443
    break 2
12444
  fi
12445
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12446
  done
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12447
IFS=$as_save_IFS
12448
12449
  ;;
12450
esac
12451
fi
12452
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
12453
if test -n "$INTLTOOL_MERGE"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12455
$as_echo "$INTLTOOL_MERGE" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12456
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12458
$as_echo "no" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12459
fi
12460
12461
12462
# Extract the first word of "intltool-extract", so it can be a program name with args.
12463
set dummy intltool-extract; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12465
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12466
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12467
  $as_echo_n "(cached) " >&6
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12468
else
12469
  case $INTLTOOL_EXTRACT in
12470
  [\\/]* | ?:[\\/]*)
12471
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
12472
  ;;
12473
  *)
12474
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475
for as_dir in $PATH
12476
do
12477
  IFS=$as_save_IFS
12478
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12479
    for ac_exec_ext in '' $ac_executable_extensions; do
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12480
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12483
    break 2
12484
  fi
12485
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12486
  done
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12487
IFS=$as_save_IFS
12488
12489
  ;;
12490
esac
12491
fi
12492
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
12493
if test -n "$INTLTOOL_EXTRACT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12495
$as_echo "$INTLTOOL_EXTRACT" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12496
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12498
$as_echo "no" >&6; }
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12499
fi
12500
12501
12502
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12503
    as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
175 by Evan Dandrea, Colin Watson, Jonathan Riddell, Evan Dandrea
[ Colin Watson ]
12504
fi
12505
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12506
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12507
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12508
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12509
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12510
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
12511
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12512
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12513
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12514
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12515
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12516
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12517
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
12518
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12519
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12520
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12521
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12522
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12523
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
124 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
12524
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12525
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
227 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12622
# Check the gettext tools to make sure they are GNU
12623
# Extract the first word of "xgettext", so it can be a program name with args.
12624
set dummy xgettext; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12626
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12627
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12628
  $as_echo_n "(cached) " >&6
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12629
else
12630
  case $XGETTEXT in
12631
  [\\/]* | ?:[\\/]*)
12632
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12633
  ;;
12634
  *)
12635
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636
for as_dir in $PATH
12637
do
12638
  IFS=$as_save_IFS
12639
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12640
    for ac_exec_ext in '' $ac_executable_extensions; do
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12643
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12644
    break 2
12645
  fi
12646
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12647
  done
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12648
IFS=$as_save_IFS
12649
12650
  ;;
12651
esac
12652
fi
12653
XGETTEXT=$ac_cv_path_XGETTEXT
12654
if test -n "$XGETTEXT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12656
$as_echo "$XGETTEXT" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12657
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12659
$as_echo "no" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12660
fi
12661
12662
12663
# Extract the first word of "msgmerge", so it can be a program name with args.
12664
set dummy msgmerge; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12666
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12667
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12668
  $as_echo_n "(cached) " >&6
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12669
else
12670
  case $MSGMERGE in
12671
  [\\/]* | ?:[\\/]*)
12672
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12673
  ;;
12674
  *)
12675
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676
for as_dir in $PATH
12677
do
12678
  IFS=$as_save_IFS
12679
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12680
    for ac_exec_ext in '' $ac_executable_extensions; do
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12683
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12684
    break 2
12685
  fi
12686
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12687
  done
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12688
IFS=$as_save_IFS
12689
12690
  ;;
12691
esac
12692
fi
12693
MSGMERGE=$ac_cv_path_MSGMERGE
12694
if test -n "$MSGMERGE"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12696
$as_echo "$MSGMERGE" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12697
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12699
$as_echo "no" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12700
fi
12701
12702
12703
# Extract the first word of "msgfmt", so it can be a program name with args.
12704
set dummy msgfmt; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12706
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12707
if test "${ac_cv_path_MSGFMT+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12708
  $as_echo_n "(cached) " >&6
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12709
else
12710
  case $MSGFMT in
12711
  [\\/]* | ?:[\\/]*)
12712
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12713
  ;;
12714
  *)
12715
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716
for as_dir in $PATH
12717
do
12718
  IFS=$as_save_IFS
12719
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12720
    for ac_exec_ext in '' $ac_executable_extensions; do
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12722
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12723
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12724
    break 2
12725
  fi
12726
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12727
  done
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12728
IFS=$as_save_IFS
12729
12730
  ;;
12731
esac
12732
fi
12733
MSGFMT=$ac_cv_path_MSGFMT
12734
if test -n "$MSGFMT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12736
$as_echo "$MSGFMT" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12737
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12739
$as_echo "no" >&6; }
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12740
fi
12741
12742
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12743
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12744
set dummy gmsgfmt; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12746
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12747
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12748
  $as_echo_n "(cached) " >&6
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12749
else
12750
  case $GMSGFMT in
12751
  [\\/]* | ?:[\\/]*)
12752
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12753
  ;;
12754
  *)
12755
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756
for as_dir in $PATH
12757
do
12758
  IFS=$as_save_IFS
12759
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12760
    for ac_exec_ext in '' $ac_executable_extensions; do
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12763
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12764
    break 2
12765
  fi
12766
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12767
  done
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12768
IFS=$as_save_IFS
12769
12770
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12771
  ;;
12772
esac
12773
fi
12774
GMSGFMT=$ac_cv_path_GMSGFMT
12775
if test -n "$GMSGFMT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12777
$as_echo "$GMSGFMT" >&6; }
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12778
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12780
$as_echo "no" >&6; }
190 by Evan Dandrea, Evan Dandrea, Colin Watson, Emmet Hikory
[ Evan Dandrea ]
12781
fi
12782
12783
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12784
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12785
    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12786
fi
12787
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12788
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12789
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12790
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12791
    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
146 by Evan Dandrea, Mario Limonciello, Colin Watson, Evan Dandrea
[ Mario Limonciello ]
12792
fi
12793
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12794
# Extract the first word of "perl", so it can be a program name with args.
12795
set dummy perl; ac_word=$2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12797
$as_echo_n "checking for $ac_word... " >&6; }
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12798
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12799
  $as_echo_n "(cached) " >&6
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12800
else
12801
  case $INTLTOOL_PERL in
12802
  [\\/]* | ?:[\\/]*)
12803
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12804
  ;;
12805
  *)
12806
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807
for as_dir in $PATH
12808
do
12809
  IFS=$as_save_IFS
12810
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12811
    for ac_exec_ext in '' $ac_executable_extensions; do
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12812
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12813
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12814
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12815
    break 2
12816
  fi
12817
done
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12818
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
12819
IFS=$as_save_IFS
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12820
12821
  ;;
12822
esac
12823
fi
12824
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12825
if test -n "$INTLTOOL_PERL"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12827
$as_echo "$INTLTOOL_PERL" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12828
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12830
$as_echo "no" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12831
fi
12832
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
12833
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12834
if test -z "$INTLTOOL_PERL"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12835
   as_fn_error "perl not found" "$LINENO" 5
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12836
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
227 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
12838
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
12839
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12840
if test $? -ne 0; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12841
   as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
227 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
12842
else
12843
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12844
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
227 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
12845
$as_echo "$IT_PERL_VERSION" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12846
fi
193 by Evan Dandrea, Colin Watson, Evan Dandrea, Emmet Hikory
[ Colin Watson ]
12847
if test "xno-xml" != "xno-xml"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12848
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12849
$as_echo_n "checking for XML::Parser... " >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12850
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12851
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
12852
$as_echo "ok" >&6; }
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12853
   else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12854
       as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
12855
   fi
12856
fi
12857
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
12858
# Substitute ALL_LINGUAS so we can use it in po/Makefile
12859
12860
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12861
# Set DATADIRNAME correctly if it is not set yet
12862
# (copied from glib-gettext.m4)
12863
if test -z "$DATADIRNAME"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12864
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12865
/* end confdefs.h.  */
12866
12867
int
12868
main ()
12869
{
12870
extern int _nl_msg_cat_cntr;
117 by Colin Watson, Evan Dandrea, Colin Watson
[ Evan Dandrea ]
12871
                       return _nl_msg_cat_cntr
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12872
  ;
12873
  return 0;
12874
}
12875
_ACEOF
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12876
if ac_fn_c_try_link "$LINENO"; then :
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12877
  DATADIRNAME=share
12878
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12879
  case $host in
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12880
    *-*-solaris*)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12881
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12882
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
12883
  DATADIRNAME=share
12884
else
12885
  DATADIRNAME=lib
12886
fi
12887
12888
    ;;
12889
    *)
12890
    DATADIRNAME=lib
12891
    ;;
12892
    esac
12893
fi
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
12894
rm -f core conftest.err conftest.$ac_objext \
12895
    conftest$ac_exeext conftest.$ac_ext
12896
fi
12897
12898
12899
12900
12901
12902
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
12903
ac_ext=c
12904
ac_cpp='$CPP $CPPFLAGS'
12905
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908
if test -n "$ac_tool_prefix"; then
12909
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12910
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912
$as_echo_n "checking for $ac_word... " >&6; }
12913
if test "${ac_cv_prog_CC+set}" = set; then :
12914
  $as_echo_n "(cached) " >&6
12915
else
12916
  if test -n "$CC"; then
12917
  ac_cv_prog_CC="$CC" # Let the user override the test.
12918
else
12919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920
for as_dir in $PATH
12921
do
12922
  IFS=$as_save_IFS
12923
  test -z "$as_dir" && as_dir=.
12924
    for ac_exec_ext in '' $ac_executable_extensions; do
12925
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12927
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928
    break 2
12929
  fi
12930
done
12931
  done
12932
IFS=$as_save_IFS
12933
12934
fi
12935
fi
12936
CC=$ac_cv_prog_CC
12937
if test -n "$CC"; then
12938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12939
$as_echo "$CC" >&6; }
12940
else
12941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942
$as_echo "no" >&6; }
12943
fi
12944
12945
12946
fi
12947
if test -z "$ac_cv_prog_CC"; then
12948
  ac_ct_CC=$CC
12949
  # Extract the first word of "gcc", so it can be a program name with args.
12950
set dummy gcc; ac_word=$2
12951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952
$as_echo_n "checking for $ac_word... " >&6; }
12953
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12954
  $as_echo_n "(cached) " >&6
12955
else
12956
  if test -n "$ac_ct_CC"; then
12957
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12958
else
12959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960
for as_dir in $PATH
12961
do
12962
  IFS=$as_save_IFS
12963
  test -z "$as_dir" && as_dir=.
12964
    for ac_exec_ext in '' $ac_executable_extensions; do
12965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966
    ac_cv_prog_ac_ct_CC="gcc"
12967
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968
    break 2
12969
  fi
12970
done
12971
  done
12972
IFS=$as_save_IFS
12973
12974
fi
12975
fi
12976
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12977
if test -n "$ac_ct_CC"; then
12978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12979
$as_echo "$ac_ct_CC" >&6; }
12980
else
12981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982
$as_echo "no" >&6; }
12983
fi
12984
12985
  if test "x$ac_ct_CC" = x; then
12986
    CC=""
12987
  else
12988
    case $cross_compiling:$ac_tool_warned in
12989
yes:)
12990
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12991
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12992
ac_tool_warned=yes ;;
12993
esac
12994
    CC=$ac_ct_CC
12995
  fi
12996
else
12997
  CC="$ac_cv_prog_CC"
12998
fi
12999
13000
if test -z "$CC"; then
13001
          if test -n "$ac_tool_prefix"; then
13002
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13003
set dummy ${ac_tool_prefix}cc; ac_word=$2
13004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005
$as_echo_n "checking for $ac_word... " >&6; }
13006
if test "${ac_cv_prog_CC+set}" = set; then :
13007
  $as_echo_n "(cached) " >&6
13008
else
13009
  if test -n "$CC"; then
13010
  ac_cv_prog_CC="$CC" # Let the user override the test.
13011
else
13012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013
for as_dir in $PATH
13014
do
13015
  IFS=$as_save_IFS
13016
  test -z "$as_dir" && as_dir=.
13017
    for ac_exec_ext in '' $ac_executable_extensions; do
13018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019
    ac_cv_prog_CC="${ac_tool_prefix}cc"
13020
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021
    break 2
13022
  fi
13023
done
13024
  done
13025
IFS=$as_save_IFS
13026
13027
fi
13028
fi
13029
CC=$ac_cv_prog_CC
13030
if test -n "$CC"; then
13031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13032
$as_echo "$CC" >&6; }
13033
else
13034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035
$as_echo "no" >&6; }
13036
fi
13037
13038
13039
  fi
13040
fi
13041
if test -z "$CC"; then
13042
  # Extract the first word of "cc", so it can be a program name with args.
13043
set dummy cc; ac_word=$2
13044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045
$as_echo_n "checking for $ac_word... " >&6; }
13046
if test "${ac_cv_prog_CC+set}" = set; then :
13047
  $as_echo_n "(cached) " >&6
13048
else
13049
  if test -n "$CC"; then
13050
  ac_cv_prog_CC="$CC" # Let the user override the test.
13051
else
13052
  ac_prog_rejected=no
13053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054
for as_dir in $PATH
13055
do
13056
  IFS=$as_save_IFS
13057
  test -z "$as_dir" && as_dir=.
13058
    for ac_exec_ext in '' $ac_executable_extensions; do
13059
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13061
       ac_prog_rejected=yes
13062
       continue
13063
     fi
13064
    ac_cv_prog_CC="cc"
13065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066
    break 2
13067
  fi
13068
done
13069
  done
13070
IFS=$as_save_IFS
13071
13072
if test $ac_prog_rejected = yes; then
13073
  # We found a bogon in the path, so make sure we never use it.
13074
  set dummy $ac_cv_prog_CC
13075
  shift
13076
  if test $# != 0; then
13077
    # We chose a different compiler from the bogus one.
13078
    # However, it has the same basename, so the bogon will be chosen
13079
    # first if we set CC to just the basename; use the full file name.
13080
    shift
13081
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13082
  fi
13083
fi
13084
fi
13085
fi
13086
CC=$ac_cv_prog_CC
13087
if test -n "$CC"; then
13088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13089
$as_echo "$CC" >&6; }
13090
else
13091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092
$as_echo "no" >&6; }
13093
fi
13094
13095
13096
fi
13097
if test -z "$CC"; then
13098
  if test -n "$ac_tool_prefix"; then
13099
  for ac_prog in cl.exe
13100
  do
13101
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13102
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104
$as_echo_n "checking for $ac_word... " >&6; }
13105
if test "${ac_cv_prog_CC+set}" = set; then :
13106
  $as_echo_n "(cached) " >&6
13107
else
13108
  if test -n "$CC"; then
13109
  ac_cv_prog_CC="$CC" # Let the user override the test.
13110
else
13111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112
for as_dir in $PATH
13113
do
13114
  IFS=$as_save_IFS
13115
  test -z "$as_dir" && as_dir=.
13116
    for ac_exec_ext in '' $ac_executable_extensions; do
13117
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13118
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13119
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120
    break 2
13121
  fi
13122
done
13123
  done
13124
IFS=$as_save_IFS
13125
13126
fi
13127
fi
13128
CC=$ac_cv_prog_CC
13129
if test -n "$CC"; then
13130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13131
$as_echo "$CC" >&6; }
13132
else
13133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134
$as_echo "no" >&6; }
13135
fi
13136
13137
13138
    test -n "$CC" && break
13139
  done
13140
fi
13141
if test -z "$CC"; then
13142
  ac_ct_CC=$CC
13143
  for ac_prog in cl.exe
13144
do
13145
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13146
set dummy $ac_prog; ac_word=$2
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148
$as_echo_n "checking for $ac_word... " >&6; }
13149
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13150
  $as_echo_n "(cached) " >&6
13151
else
13152
  if test -n "$ac_ct_CC"; then
13153
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13154
else
13155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156
for as_dir in $PATH
13157
do
13158
  IFS=$as_save_IFS
13159
  test -z "$as_dir" && as_dir=.
13160
    for ac_exec_ext in '' $ac_executable_extensions; do
13161
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162
    ac_cv_prog_ac_ct_CC="$ac_prog"
13163
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164
    break 2
13165
  fi
13166
done
13167
  done
13168
IFS=$as_save_IFS
13169
13170
fi
13171
fi
13172
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13173
if test -n "$ac_ct_CC"; then
13174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13175
$as_echo "$ac_ct_CC" >&6; }
13176
else
13177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178
$as_echo "no" >&6; }
13179
fi
13180
13181
13182
  test -n "$ac_ct_CC" && break
13183
done
13184
13185
  if test "x$ac_ct_CC" = x; then
13186
    CC=""
13187
  else
13188
    case $cross_compiling:$ac_tool_warned in
13189
yes:)
13190
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13191
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13192
ac_tool_warned=yes ;;
13193
esac
13194
    CC=$ac_ct_CC
13195
  fi
13196
fi
13197
13198
fi
13199
13200
13201
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13202
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13203
as_fn_error "no acceptable C compiler found in \$PATH
13204
See \`config.log' for more details." "$LINENO" 5; }
13205
13206
# Provide some information about the compiler.
13207
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13208
set X $ac_compile
13209
ac_compiler=$2
13210
for ac_option in --version -v -V -qversion; do
13211
  { { ac_try="$ac_compiler $ac_option >&5"
13212
case "(($ac_try" in
13213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214
  *) ac_try_echo=$ac_try;;
13215
esac
13216
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13217
$as_echo "$ac_try_echo"; } >&5
13218
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13219
  ac_status=$?
13220
  if test -s conftest.err; then
13221
    sed '10a\
13222
... rest of stderr output deleted ...
13223
         10q' conftest.err >conftest.er1
13224
    cat conftest.er1 >&5
13225
  fi
13226
  rm -f conftest.er1 conftest.err
13227
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13228
  test $ac_status = 0; }
13229
done
13230
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13232
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13233
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13234
  $as_echo_n "(cached) " >&6
13235
else
13236
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237
/* end confdefs.h.  */
13238
13239
int
13240
main ()
13241
{
13242
#ifndef __GNUC__
13243
       choke me
13244
#endif
13245
13246
  ;
13247
  return 0;
13248
}
13249
_ACEOF
13250
if ac_fn_c_try_compile "$LINENO"; then :
13251
  ac_compiler_gnu=yes
13252
else
13253
  ac_compiler_gnu=no
13254
fi
13255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13257
13258
fi
13259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13260
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13261
if test $ac_compiler_gnu = yes; then
13262
  GCC=yes
13263
else
13264
  GCC=
13265
fi
13266
ac_test_CFLAGS=${CFLAGS+set}
13267
ac_save_CFLAGS=$CFLAGS
13268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13269
$as_echo_n "checking whether $CC accepts -g... " >&6; }
13270
if test "${ac_cv_prog_cc_g+set}" = set; then :
13271
  $as_echo_n "(cached) " >&6
13272
else
13273
  ac_save_c_werror_flag=$ac_c_werror_flag
13274
   ac_c_werror_flag=yes
13275
   ac_cv_prog_cc_g=no
13276
   CFLAGS="-g"
13277
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278
/* end confdefs.h.  */
13279
13280
int
13281
main ()
13282
{
13283
13284
  ;
13285
  return 0;
13286
}
13287
_ACEOF
13288
if ac_fn_c_try_compile "$LINENO"; then :
13289
  ac_cv_prog_cc_g=yes
13290
else
13291
  CFLAGS=""
13292
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293
/* end confdefs.h.  */
13294
13295
int
13296
main ()
13297
{
13298
13299
  ;
13300
  return 0;
13301
}
13302
_ACEOF
13303
if ac_fn_c_try_compile "$LINENO"; then :
13304
13305
else
13306
  ac_c_werror_flag=$ac_save_c_werror_flag
13307
	 CFLAGS="-g"
13308
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309
/* end confdefs.h.  */
13310
13311
int
13312
main ()
13313
{
13314
13315
  ;
13316
  return 0;
13317
}
13318
_ACEOF
13319
if ac_fn_c_try_compile "$LINENO"; then :
13320
  ac_cv_prog_cc_g=yes
13321
fi
13322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323
fi
13324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325
fi
13326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327
   ac_c_werror_flag=$ac_save_c_werror_flag
13328
fi
13329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13330
$as_echo "$ac_cv_prog_cc_g" >&6; }
13331
if test "$ac_test_CFLAGS" = set; then
13332
  CFLAGS=$ac_save_CFLAGS
13333
elif test $ac_cv_prog_cc_g = yes; then
13334
  if test "$GCC" = yes; then
13335
    CFLAGS="-g -O2"
13336
  else
13337
    CFLAGS="-g"
13338
  fi
13339
else
13340
  if test "$GCC" = yes; then
13341
    CFLAGS="-O2"
13342
  else
13343
    CFLAGS=
13344
  fi
13345
fi
13346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13347
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13348
if test "${ac_cv_prog_cc_c89+set}" = set; then :
13349
  $as_echo_n "(cached) " >&6
13350
else
13351
  ac_cv_prog_cc_c89=no
13352
ac_save_CC=$CC
13353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354
/* end confdefs.h.  */
13355
#include <stdarg.h>
13356
#include <stdio.h>
13357
#include <sys/types.h>
13358
#include <sys/stat.h>
13359
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13360
struct buf { int x; };
13361
FILE * (*rcsopen) (struct buf *, struct stat *, int);
13362
static char *e (p, i)
13363
     char **p;
13364
     int i;
13365
{
13366
  return p[i];
13367
}
13368
static char *f (char * (*g) (char **, int), char **p, ...)
13369
{
13370
  char *s;
13371
  va_list v;
13372
  va_start (v,p);
13373
  s = g (p, va_arg (v,int));
13374
  va_end (v);
13375
  return s;
13376
}
13377
13378
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13379
   function prototypes and stuff, but not '\xHH' hex character constants.
13380
   These don't provoke an error unfortunately, instead are silently treated
13381
   as 'x'.  The following induces an error, until -std is added to get
13382
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13383
   array size at least.  It's necessary to write '\x00'==0 to get something
13384
   that's true only with -std.  */
13385
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13386
13387
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13388
   inside strings and character constants.  */
13389
#define FOO(x) 'x'
13390
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13391
13392
int test (int i, double x);
13393
struct s1 {int (*f) (int a);};
13394
struct s2 {int (*f) (double a);};
13395
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13396
int argc;
13397
char **argv;
13398
int
13399
main ()
13400
{
13401
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13402
  ;
13403
  return 0;
13404
}
13405
_ACEOF
13406
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13407
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13408
do
13409
  CC="$ac_save_CC $ac_arg"
13410
  if ac_fn_c_try_compile "$LINENO"; then :
13411
  ac_cv_prog_cc_c89=$ac_arg
13412
fi
13413
rm -f core conftest.err conftest.$ac_objext
13414
  test "x$ac_cv_prog_cc_c89" != "xno" && break
13415
done
13416
rm -f conftest.$ac_ext
13417
CC=$ac_save_CC
13418
13419
fi
13420
# AC_CACHE_VAL
13421
case "x$ac_cv_prog_cc_c89" in
13422
  x)
13423
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13424
$as_echo "none needed" >&6; } ;;
13425
  xno)
13426
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13427
$as_echo "unsupported" >&6; } ;;
13428
  *)
13429
    CC="$CC $ac_cv_prog_cc_c89"
13430
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13431
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13432
esac
13433
if test "x$ac_cv_prog_cc_c89" != xno; then :
13434
13435
fi
13436
13437
ac_ext=c
13438
ac_cpp='$CPP $CPPFLAGS'
13439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13442
13443
depcc="$CC"   am_compiler_list=
13444
13445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13446
$as_echo_n "checking dependency style of $depcc... " >&6; }
13447
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13448
  $as_echo_n "(cached) " >&6
13449
else
13450
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13451
  # We make a subdir and do the tests there.  Otherwise we can end up
13452
  # making bogus files that we don't know about and never remove.  For
13453
  # instance it was reported that on HP-UX the gcc test will end up
13454
  # making a dummy file named `D' -- because `-MD' means `put the output
13455
  # in D'.
13456
  mkdir conftest.dir
13457
  # Copy depcomp to subdir because otherwise we won't find it if we're
13458
  # using a relative directory.
13459
  cp "$am_depcomp" conftest.dir
13460
  cd conftest.dir
13461
  # We will build objects and dependencies in a subdirectory because
13462
  # it helps to detect inapplicable dependency modes.  For instance
13463
  # both Tru64's cc and ICC support -MD to output dependencies as a
13464
  # side effect of compilation, but ICC will put the dependencies in
13465
  # the current directory while Tru64 will put them in the object
13466
  # directory.
13467
  mkdir sub
13468
13469
  am_cv_CC_dependencies_compiler_type=none
13470
  if test "$am_compiler_list" = ""; then
13471
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13472
  fi
13473
  am__universal=false
13474
  case " $depcc " in #(
13475
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13476
     esac
13477
13478
  for depmode in $am_compiler_list; do
13479
    # Setup a source with many dependencies, because some compilers
13480
    # like to wrap large dependency lists on column 80 (with \), and
13481
    # we should not choose a depcomp mode which is confused by this.
13482
    #
13483
    # We need to recreate these files for each test, as the compiler may
13484
    # overwrite some of them when testing with obscure command lines.
13485
    # This happens at least with the AIX C compiler.
13486
    : > sub/conftest.c
13487
    for i in 1 2 3 4 5 6; do
13488
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13489
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13490
      # Solaris 8's {/usr,}/bin/sh.
13491
      touch sub/conftst$i.h
13492
    done
13493
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13494
13495
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13496
    # mode.  It turns out that the SunPro C++ compiler does not properly
13497
    # handle `-M -o', and we need to detect this.  Also, some Intel
13498
    # versions had trouble with output in subdirs
13499
    am__obj=sub/conftest.${OBJEXT-o}
13500
    am__minus_obj="-o $am__obj"
13501
    case $depmode in
13502
    gcc)
13503
      # This depmode causes a compiler race in universal mode.
13504
      test "$am__universal" = false || continue
13505
      ;;
13506
    nosideeffect)
13507
      # after this tag, mechanisms are not by side-effect, so they'll
13508
      # only be used when explicitly requested
13509
      if test "x$enable_dependency_tracking" = xyes; then
13510
	continue
13511
      else
13512
	break
13513
      fi
13514
      ;;
13515
    msvisualcpp | msvcmsys)
13516
      # This compiler won't grok `-c -o', but also, the minuso test has
13517
      # not run yet.  These depmodes are late enough in the game, and
13518
      # so weak that their functioning should not be impacted.
13519
      am__obj=conftest.${OBJEXT-o}
13520
      am__minus_obj=
13521
      ;;
13522
    none) break ;;
13523
    esac
13524
    if depmode=$depmode \
13525
       source=sub/conftest.c object=$am__obj \
13526
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13527
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13528
         >/dev/null 2>conftest.err &&
13529
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13530
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13531
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13532
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13533
      # icc doesn't choke on unknown options, it will just issue warnings
13534
      # or remarks (even with -Werror).  So we grep stderr for any message
13535
      # that says an option was ignored or not supported.
13536
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13537
      #   icc: Command line warning: ignoring option '-M'; no argument required
13538
      # The diagnosis changed in icc 8.0:
13539
      #   icc: Command line remark: option '-MP' not supported
13540
      if (grep 'ignoring option' conftest.err ||
13541
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13542
        am_cv_CC_dependencies_compiler_type=$depmode
13543
        break
13544
      fi
13545
    fi
13546
  done
13547
13548
  cd ..
13549
  rm -rf conftest.dir
13550
else
13551
  am_cv_CC_dependencies_compiler_type=none
13552
fi
13553
13554
fi
13555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13556
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13557
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13558
13559
 if
13560
  test "x$enable_dependency_tracking" != xno \
13561
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13562
  am__fastdepCC_TRUE=
13563
  am__fastdepCC_FALSE='#'
13564
else
13565
  am__fastdepCC_TRUE='#'
13566
  am__fastdepCC_FALSE=
13567
fi
13568
13569
13570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13571
$as_echo_n "checking for ANSI C header files... " >&6; }
13572
if test "${ac_cv_header_stdc+set}" = set; then :
13573
  $as_echo_n "(cached) " >&6
13574
else
13575
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576
/* end confdefs.h.  */
13577
#include <stdlib.h>
13578
#include <stdarg.h>
13579
#include <string.h>
13580
#include <float.h>
13581
13582
int
13583
main ()
13584
{
13585
13586
  ;
13587
  return 0;
13588
}
13589
_ACEOF
13590
if ac_fn_c_try_compile "$LINENO"; then :
13591
  ac_cv_header_stdc=yes
13592
else
13593
  ac_cv_header_stdc=no
13594
fi
13595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596
13597
if test $ac_cv_header_stdc = yes; then
13598
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13599
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600
/* end confdefs.h.  */
13601
#include <string.h>
13602
13603
_ACEOF
13604
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13605
  $EGREP "memchr" >/dev/null 2>&1; then :
13606
13607
else
13608
  ac_cv_header_stdc=no
13609
fi
13610
rm -f conftest*
13611
13612
fi
13613
13614
if test $ac_cv_header_stdc = yes; then
13615
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13616
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617
/* end confdefs.h.  */
13618
#include <stdlib.h>
13619
13620
_ACEOF
13621
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622
  $EGREP "free" >/dev/null 2>&1; then :
13623
13624
else
13625
  ac_cv_header_stdc=no
13626
fi
13627
rm -f conftest*
13628
13629
fi
13630
13631
if test $ac_cv_header_stdc = yes; then
13632
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13633
  if test "$cross_compiling" = yes; then :
13634
  :
13635
else
13636
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637
/* end confdefs.h.  */
13638
#include <ctype.h>
13639
#include <stdlib.h>
13640
#if ((' ' & 0x0FF) == 0x020)
13641
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13642
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13643
#else
13644
# define ISLOWER(c) \
13645
		   (('a' <= (c) && (c) <= 'i') \
13646
		     || ('j' <= (c) && (c) <= 'r') \
13647
		     || ('s' <= (c) && (c) <= 'z'))
13648
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13649
#endif
13650
13651
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13652
int
13653
main ()
13654
{
13655
  int i;
13656
  for (i = 0; i < 256; i++)
13657
    if (XOR (islower (i), ISLOWER (i))
13658
	|| toupper (i) != TOUPPER (i))
13659
      return 2;
13660
  return 0;
13661
}
13662
_ACEOF
13663
if ac_fn_c_try_run "$LINENO"; then :
13664
13665
else
13666
  ac_cv_header_stdc=no
13667
fi
13668
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13669
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13670
fi
13671
13672
fi
13673
fi
13674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13675
$as_echo "$ac_cv_header_stdc" >&6; }
13676
if test $ac_cv_header_stdc = yes; then
13677
13678
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13679
13680
fi
13681
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
13682
13683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
13684
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13685
set x ${MAKE-make}
13686
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
13687
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
13688
  $as_echo_n "(cached) " >&6
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13689
else
13690
  cat >conftest.make <<\_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
13691
SHELL = /bin/sh
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13692
all:
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
13693
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13694
_ACEOF
13695
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
13696
case `${MAKE-make} -f conftest.make 2>/dev/null` in
13697
  *@@@%%%=?*=@@@%%%*)
13698
    eval ac_cv_prog_make_${ac_make}_set=yes;;
13699
  *)
13700
    eval ac_cv_prog_make_${ac_make}_set=no;;
13701
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13702
rm -f conftest.make
13703
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
13704
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
13705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
13706
$as_echo "yes" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13707
  SET_MAKE=
13708
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
13709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
13710
$as_echo "no" >&6; }
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
13711
  SET_MAKE="MAKE=${MAKE-make}"
13712
fi
13713
13714
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
13715
GTK_REQUIRED=2.10.0
13716
13717
13718
13719
13720
        if test -n "$PYTHON"; then
13721
      # If the user set $PYTHON, use it and don't search something else.
13722
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
13723
$as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
13724
      prog="import sys
13725
# split strings by '.' and convert to numeric.  Append some zeros
13726
# because we need at least 4 digits for the hex conversion.
13727
# map returns an iterator in Python 3.0 and a list in 2.x
13728
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
13729
minverhex = 0
13730
# xrange is not present in Python 3.0 and range returns an iterator
13731
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13732
sys.exit(sys.hexversion < minverhex)"
13733
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13734
   ($PYTHON -c "$prog") >&5 2>&5
13735
   ac_status=$?
13736
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
   (exit $ac_status); }; then :
13738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739
$as_echo "yes" >&6; }
13740
else
13741
  as_fn_error "too old" "$LINENO" 5
13742
fi
13743
      am_display_PYTHON=$PYTHON
13744
    else
13745
      # Otherwise, try each interpreter until we find one that satisfies
13746
      # VERSION.
13747
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
13748
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
13749
if test "${am_cv_pathless_PYTHON+set}" = set; then :
13750
  $as_echo_n "(cached) " >&6
13751
else
13752
13753
	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
13754
	  test "$am_cv_pathless_PYTHON" = none && break
13755
	  prog="import sys
13756
# split strings by '.' and convert to numeric.  Append some zeros
13757
# because we need at least 4 digits for the hex conversion.
13758
# map returns an iterator in Python 3.0 and a list in 2.x
13759
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
13760
minverhex = 0
13761
# xrange is not present in Python 3.0 and range returns an iterator
13762
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13763
sys.exit(sys.hexversion < minverhex)"
13764
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13765
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13766
   ac_status=$?
13767
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768
   (exit $ac_status); }; then :
13769
  break
13770
fi
13771
	done
13772
fi
13773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13774
$as_echo "$am_cv_pathless_PYTHON" >&6; }
13775
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13776
      if test "$am_cv_pathless_PYTHON" = none; then
13777
	PYTHON=:
13778
      else
13779
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13780
set dummy $am_cv_pathless_PYTHON; ac_word=$2
13781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782
$as_echo_n "checking for $ac_word... " >&6; }
13783
if test "${ac_cv_path_PYTHON+set}" = set; then :
13784
  $as_echo_n "(cached) " >&6
13785
else
13786
  case $PYTHON in
13787
  [\\/]* | ?:[\\/]*)
13788
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13789
  ;;
13790
  *)
13791
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792
for as_dir in $PATH
13793
do
13794
  IFS=$as_save_IFS
13795
  test -z "$as_dir" && as_dir=.
13796
    for ac_exec_ext in '' $ac_executable_extensions; do
13797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13798
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13799
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800
    break 2
13801
  fi
13802
done
13803
  done
13804
IFS=$as_save_IFS
13805
13806
  ;;
13807
esac
13808
fi
13809
PYTHON=$ac_cv_path_PYTHON
13810
if test -n "$PYTHON"; then
13811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13812
$as_echo "$PYTHON" >&6; }
13813
else
13814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815
$as_echo "no" >&6; }
13816
fi
13817
13818
13819
      fi
13820
      am_display_PYTHON=$am_cv_pathless_PYTHON
13821
    fi
13822
13823
13824
  if test "$PYTHON" = :; then
13825
      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
13826
  else
13827
13828
13829
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13830
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13831
if test "${am_cv_python_version+set}" = set; then :
13832
  $as_echo_n "(cached) " >&6
13833
else
13834
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13835
fi
13836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13837
$as_echo "$am_cv_python_version" >&6; }
13838
  PYTHON_VERSION=$am_cv_python_version
13839
13840
13841
13842
  PYTHON_PREFIX='${prefix}'
13843
13844
  PYTHON_EXEC_PREFIX='${exec_prefix}'
13845
13846
13847
13848
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13849
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13850
if test "${am_cv_python_platform+set}" = set; then :
13851
  $as_echo_n "(cached) " >&6
13852
else
13853
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13854
fi
13855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13856
$as_echo "$am_cv_python_platform" >&6; }
13857
  PYTHON_PLATFORM=$am_cv_python_platform
13858
13859
13860
13861
13862
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13863
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13864
if test "${am_cv_python_pythondir+set}" = set; then :
13865
  $as_echo_n "(cached) " >&6
13866
else
13867
  if test "x$prefix" = xNONE
13868
     then
13869
       am_py_prefix=$ac_default_prefix
13870
     else
13871
       am_py_prefix=$prefix
13872
     fi
13873
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
13874
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13875
     case $am_cv_python_pythondir in
13876
     $am_py_prefix*)
13877
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13878
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13879
       ;;
13880
     *)
13881
       case $am_py_prefix in
13882
         /usr|/System*) ;;
13883
         *)
13884
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13885
	  ;;
13886
       esac
13887
       ;;
13888
     esac
13889
13890
fi
13891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13892
$as_echo "$am_cv_python_pythondir" >&6; }
13893
  pythondir=$am_cv_python_pythondir
13894
13895
13896
13897
  pkgpythondir=\${pythondir}/$PACKAGE
13898
13899
13900
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13901
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13902
if test "${am_cv_python_pyexecdir+set}" = set; then :
13903
  $as_echo_n "(cached) " >&6
13904
else
13905
  if test "x$exec_prefix" = xNONE
13906
     then
13907
       am_py_exec_prefix=$am_py_prefix
13908
     else
13909
       am_py_exec_prefix=$exec_prefix
13910
     fi
13911
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
13912
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13913
     case $am_cv_python_pyexecdir in
13914
     $am_py_exec_prefix*)
13915
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13916
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13917
       ;;
13918
     *)
13919
       case $am_py_exec_prefix in
13920
         /usr|/System*) ;;
13921
         *)
13922
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13923
	   ;;
13924
       esac
13925
       ;;
13926
     esac
13927
13928
fi
13929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13930
$as_echo "$am_cv_python_pyexecdir" >&6; }
13931
  pyexecdir=$am_cv_python_pyexecdir
13932
13933
13934
13935
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
13936
13937
13938
13939
  fi
13940
13941
13942
13943
if test "x$UBIQUITY_NO_GTK" = x; then
13944
13945
13946
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13947
	if test -n "$ac_tool_prefix"; then
13948
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13949
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951
$as_echo_n "checking for $ac_word... " >&6; }
13952
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13953
  $as_echo_n "(cached) " >&6
13954
else
13955
  case $PKG_CONFIG in
13956
  [\\/]* | ?:[\\/]*)
13957
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13958
  ;;
13959
  *)
13960
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961
for as_dir in $PATH
13962
do
13963
  IFS=$as_save_IFS
13964
  test -z "$as_dir" && as_dir=.
13965
    for ac_exec_ext in '' $ac_executable_extensions; do
13966
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13967
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13968
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13969
    break 2
13970
  fi
13971
done
13972
  done
13973
IFS=$as_save_IFS
13974
13975
  ;;
13976
esac
13977
fi
13978
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13979
if test -n "$PKG_CONFIG"; then
13980
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13981
$as_echo "$PKG_CONFIG" >&6; }
13982
else
13983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984
$as_echo "no" >&6; }
13985
fi
13986
13987
13988
fi
13989
if test -z "$ac_cv_path_PKG_CONFIG"; then
13990
  ac_pt_PKG_CONFIG=$PKG_CONFIG
13991
  # Extract the first word of "pkg-config", so it can be a program name with args.
13992
set dummy pkg-config; ac_word=$2
13993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994
$as_echo_n "checking for $ac_word... " >&6; }
13995
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13996
  $as_echo_n "(cached) " >&6
13997
else
13998
  case $ac_pt_PKG_CONFIG in
13999
  [\\/]* | ?:[\\/]*)
14000
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14001
  ;;
14002
  *)
14003
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004
for as_dir in $PATH
14005
do
14006
  IFS=$as_save_IFS
14007
  test -z "$as_dir" && as_dir=.
14008
    for ac_exec_ext in '' $ac_executable_extensions; do
14009
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14010
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14012
    break 2
14013
  fi
14014
done
14015
  done
14016
IFS=$as_save_IFS
14017
14018
  ;;
14019
esac
14020
fi
14021
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14022
if test -n "$ac_pt_PKG_CONFIG"; then
14023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14024
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14025
else
14026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027
$as_echo "no" >&6; }
14028
fi
14029
14030
  if test "x$ac_pt_PKG_CONFIG" = x; then
14031
    PKG_CONFIG=""
14032
  else
14033
    case $cross_compiling:$ac_tool_warned in
14034
yes:)
14035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14036
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14037
ac_tool_warned=yes ;;
14038
esac
14039
    PKG_CONFIG=$ac_pt_PKG_CONFIG
14040
  fi
14041
else
14042
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14043
fi
14044
14045
fi
14046
if test -n "$PKG_CONFIG"; then
14047
	_pkg_min_version=0.9.0
14048
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14049
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14050
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14051
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14052
$as_echo "yes" >&6; }
14053
	else
14054
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055
$as_echo "no" >&6; }
14056
		PKG_CONFIG=""
14057
	fi
14058
14059
fi
14060
14061
pkg_failed=no
14062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANEL" >&5
14063
$as_echo_n "checking for PANEL... " >&6; }
14064
14065
if test -n "$PKG_CONFIG"; then
14066
    if test -n "$PANEL_CFLAGS"; then
14067
        pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
14068
    else
14069
        if test -n "$PKG_CONFIG" && \
14070
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0
14071
			  gtk+-2.0 >= \$GTK_REQUIRED
14072
			  indicator
14073
			  x11\""; } >&5
14074
  ($PKG_CONFIG --exists --print-errors "glib-2.0
14075
			  gtk+-2.0 >= $GTK_REQUIRED
14076
			  indicator
14077
			  x11") 2>&5
14078
  ac_status=$?
14079
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080
  test $ac_status = 0; }; then
14081
  pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
14082
			  gtk+-2.0 >= $GTK_REQUIRED
14083
			  indicator
14084
			  x11" 2>/dev/null`
14085
else
14086
  pkg_failed=yes
14087
fi
14088
    fi
14089
else
14090
	pkg_failed=untried
14091
fi
14092
if test -n "$PKG_CONFIG"; then
14093
    if test -n "$PANEL_LIBS"; then
14094
        pkg_cv_PANEL_LIBS="$PANEL_LIBS"
14095
    else
14096
        if test -n "$PKG_CONFIG" && \
14097
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0
14098
			  gtk+-2.0 >= \$GTK_REQUIRED
14099
			  indicator
14100
			  x11\""; } >&5
14101
  ($PKG_CONFIG --exists --print-errors "glib-2.0
14102
			  gtk+-2.0 >= $GTK_REQUIRED
14103
			  indicator
14104
			  x11") 2>&5
14105
  ac_status=$?
14106
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107
  test $ac_status = 0; }; then
14108
  pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "glib-2.0
14109
			  gtk+-2.0 >= $GTK_REQUIRED
14110
			  indicator
14111
			  x11" 2>/dev/null`
14112
else
14113
  pkg_failed=yes
14114
fi
14115
    fi
14116
else
14117
	pkg_failed=untried
14118
fi
14119
14120
14121
14122
if test $pkg_failed = yes; then
14123
14124
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14125
        _pkg_short_errors_supported=yes
14126
else
14127
        _pkg_short_errors_supported=no
14128
fi
14129
        if test $_pkg_short_errors_supported = yes; then
14130
	        PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0
14131
			  gtk+-2.0 >= $GTK_REQUIRED
14132
			  indicator
14133
			  x11"`
14134
        else
14135
	        PANEL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
14136
			  gtk+-2.0 >= $GTK_REQUIRED
14137
			  indicator
14138
			  x11"`
14139
        fi
14140
	# Put the nasty error message in config.log where it belongs
14141
	echo "$PANEL_PKG_ERRORS" >&5
14142
14143
	as_fn_error "Package requirements (glib-2.0
14144
			  gtk+-2.0 >= $GTK_REQUIRED
14145
			  indicator
14146
			  x11) were not met:
14147
14148
$PANEL_PKG_ERRORS
14149
14150
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14151
installed software in a non-standard prefix.
14152
14153
Alternatively, you may set the environment variables PANEL_CFLAGS
14154
and PANEL_LIBS to avoid the need to call pkg-config.
14155
See the pkg-config man page for more details.
14156
" "$LINENO" 5
14157
elif test $pkg_failed = untried; then
14158
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14159
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14160
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
14161
is in your PATH or set the PKG_CONFIG environment variable to the full
14162
path to pkg-config.
14163
14164
Alternatively, you may set the environment variables PANEL_CFLAGS
14165
and PANEL_LIBS to avoid the need to call pkg-config.
14166
See the pkg-config man page for more details.
14167
14168
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14169
See \`config.log' for more details." "$LINENO" 5; }
14170
else
14171
	PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
14172
	PANEL_LIBS=$pkg_cv_PANEL_LIBS
14173
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174
$as_echo "yes" >&6; }
14175
	:
14176
fi
14177
14178
14179
14180
pkg_failed=no
14181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHEESE" >&5
14182
$as_echo_n "checking for CHEESE... " >&6; }
14183
14184
if test -n "$PKG_CONFIG"; then
14185
    if test -n "$CHEESE_CFLAGS"; then
14186
        pkg_cv_CHEESE_CFLAGS="$CHEESE_CFLAGS"
14187
    else
14188
        if test -n "$PKG_CONFIG" && \
14189
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0
14190
			     gtk+-2.0 >= \$GTK_REQUIRED
14191
			     gobject-2.0
14192
			     pygobject-2.0
14193
			     cheese-gtk\""; } >&5
14194
  ($PKG_CONFIG --exists --print-errors "glib-2.0
14195
			     gtk+-2.0 >= $GTK_REQUIRED
14196
			     gobject-2.0
14197
			     pygobject-2.0
14198
			     cheese-gtk") 2>&5
14199
  ac_status=$?
14200
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14201
  test $ac_status = 0; }; then
14202
  pkg_cv_CHEESE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
14203
			     gtk+-2.0 >= $GTK_REQUIRED
14204
			     gobject-2.0
14205
			     pygobject-2.0
14206
			     cheese-gtk" 2>/dev/null`
14207
else
14208
  pkg_failed=yes
14209
fi
14210
    fi
14211
else
14212
	pkg_failed=untried
14213
fi
14214
if test -n "$PKG_CONFIG"; then
14215
    if test -n "$CHEESE_LIBS"; then
14216
        pkg_cv_CHEESE_LIBS="$CHEESE_LIBS"
14217
    else
14218
        if test -n "$PKG_CONFIG" && \
14219
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0
14220
			     gtk+-2.0 >= \$GTK_REQUIRED
14221
			     gobject-2.0
14222
			     pygobject-2.0
14223
			     cheese-gtk\""; } >&5
14224
  ($PKG_CONFIG --exists --print-errors "glib-2.0
14225
			     gtk+-2.0 >= $GTK_REQUIRED
14226
			     gobject-2.0
14227
			     pygobject-2.0
14228
			     cheese-gtk") 2>&5
14229
  ac_status=$?
14230
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231
  test $ac_status = 0; }; then
14232
  pkg_cv_CHEESE_LIBS=`$PKG_CONFIG --libs "glib-2.0
14233
			     gtk+-2.0 >= $GTK_REQUIRED
14234
			     gobject-2.0
14235
			     pygobject-2.0
14236
			     cheese-gtk" 2>/dev/null`
14237
else
14238
  pkg_failed=yes
14239
fi
14240
    fi
14241
else
14242
	pkg_failed=untried
14243
fi
14244
14245
14246
14247
if test $pkg_failed = yes; then
14248
14249
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14250
        _pkg_short_errors_supported=yes
14251
else
14252
        _pkg_short_errors_supported=no
14253
fi
14254
        if test $_pkg_short_errors_supported = yes; then
14255
	        CHEESE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0
14256
			     gtk+-2.0 >= $GTK_REQUIRED
14257
			     gobject-2.0
14258
			     pygobject-2.0
14259
			     cheese-gtk"`
14260
        else
14261
	        CHEESE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
14262
			     gtk+-2.0 >= $GTK_REQUIRED
14263
			     gobject-2.0
14264
			     pygobject-2.0
14265
			     cheese-gtk"`
14266
        fi
14267
	# Put the nasty error message in config.log where it belongs
14268
	echo "$CHEESE_PKG_ERRORS" >&5
14269
14270
	as_fn_error "Package requirements (glib-2.0
14271
			     gtk+-2.0 >= $GTK_REQUIRED
14272
			     gobject-2.0
14273
			     pygobject-2.0
14274
			     cheese-gtk) were not met:
14275
14276
$CHEESE_PKG_ERRORS
14277
14278
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14279
installed software in a non-standard prefix.
14280
14281
Alternatively, you may set the environment variables CHEESE_CFLAGS
14282
and CHEESE_LIBS to avoid the need to call pkg-config.
14283
See the pkg-config man page for more details.
14284
" "$LINENO" 5
14285
elif test $pkg_failed = untried; then
14286
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14287
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14288
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
14289
is in your PATH or set the PKG_CONFIG environment variable to the full
14290
path to pkg-config.
14291
14292
Alternatively, you may set the environment variables CHEESE_CFLAGS
14293
and CHEESE_LIBS to avoid the need to call pkg-config.
14294
See the pkg-config man page for more details.
14295
14296
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14297
See \`config.log' for more details." "$LINENO" 5; }
14298
else
14299
	CHEESE_CFLAGS=$pkg_cv_CHEESE_CFLAGS
14300
	CHEESE_LIBS=$pkg_cv_CHEESE_LIBS
14301
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302
$as_echo "yes" >&6; }
14303
	:
14304
fi
14305
14306
14307
  # Check whether --enable-gtktest was given.
14308
if test "${enable_gtktest+set}" = set; then :
14309
  enableval=$enable_gtktest;
14310
else
14311
  enable_gtktest=yes
14312
fi
14313
14314
14315
  pkg_config_args=gtk+-2.0
14316
  for module in .
14317
  do
14318
      case "$module" in
14319
         gthread)
14320
             pkg_config_args="$pkg_config_args gthread-2.0"
14321
         ;;
14322
      esac
14323
  done
14324
14325
  no_gtk=""
14326
14327
  # Extract the first word of "pkg-config", so it can be a program name with args.
14328
set dummy pkg-config; ac_word=$2
14329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330
$as_echo_n "checking for $ac_word... " >&6; }
14331
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14332
  $as_echo_n "(cached) " >&6
14333
else
14334
  case $PKG_CONFIG in
14335
  [\\/]* | ?:[\\/]*)
14336
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14337
  ;;
14338
  *)
14339
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340
for as_dir in $PATH
14341
do
14342
  IFS=$as_save_IFS
14343
  test -z "$as_dir" && as_dir=.
14344
    for ac_exec_ext in '' $ac_executable_extensions; do
14345
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14346
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14347
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348
    break 2
14349
  fi
14350
done
14351
  done
14352
IFS=$as_save_IFS
14353
14354
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14355
  ;;
14356
esac
14357
fi
14358
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14359
if test -n "$PKG_CONFIG"; then
14360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14361
$as_echo "$PKG_CONFIG" >&6; }
14362
else
14363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364
$as_echo "no" >&6; }
14365
fi
14366
14367
14368
14369
  if test x$PKG_CONFIG != xno ; then
14370
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
14371
      :
14372
    else
14373
      echo "*** pkg-config too old; version 0.7 or better required."
14374
      no_gtk=yes
14375
      PKG_CONFIG=no
14376
    fi
14377
  else
14378
    no_gtk=yes
14379
  fi
14380
14381
  min_gtk_version=$GTK_REQUIRED
14382
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
14383
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
14384
14385
  if test x$PKG_CONFIG != xno ; then
14386
    ## don't try to run the test against uninstalled libtool libs
14387
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
14388
	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
14389
	  enable_gtktest=no
14390
    fi
14391
14392
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
14393
	  :
14394
    else
14395
	  no_gtk=yes
14396
    fi
14397
  fi
14398
14399
  if test x"$no_gtk" = x ; then
14400
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
14401
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
14402
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
14403
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14404
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
14405
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14406
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
14407
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14408
    if test "x$enable_gtktest" = "xyes" ; then
14409
      ac_save_CFLAGS="$CFLAGS"
14410
      ac_save_LIBS="$LIBS"
14411
      CFLAGS="$CFLAGS $GTK_CFLAGS"
14412
      LIBS="$GTK_LIBS $LIBS"
14413
      rm -f conf.gtktest
14414
      if test "$cross_compiling" = yes; then :
14415
  echo $ac_n "cross compiling; assumed OK... $ac_c"
14416
else
14417
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418
/* end confdefs.h.  */
14419
14420
#include <gtk/gtk.h>
14421
#include <stdio.h>
14422
#include <stdlib.h>
14423
14424
int
14425
main ()
14426
{
14427
  int major, minor, micro;
14428
  char *tmp_version;
14429
14430
  fclose (fopen ("conf.gtktest", "w"));
14431
14432
  /* HP/UX 9 (%@#!) writes to sscanf strings */
14433
  tmp_version = g_strdup("$min_gtk_version");
14434
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14435
     printf("%s, bad version string\n", "$min_gtk_version");
14436
     exit(1);
14437
   }
14438
14439
  if ((gtk_major_version != $gtk_config_major_version) ||
14440
      (gtk_minor_version != $gtk_config_minor_version) ||
14441
      (gtk_micro_version != $gtk_config_micro_version))
14442
    {
14443
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14444
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14445
             gtk_major_version, gtk_minor_version, gtk_micro_version);
14446
      printf ("*** was found! If pkg-config was correct, then it is best\n");
14447
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14448
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14449
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14450
      printf("*** required on your system.\n");
14451
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14452
      printf("*** to point to the correct configuration files\n");
14453
    }
14454
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14455
	   (gtk_minor_version != GTK_MINOR_VERSION) ||
14456
           (gtk_micro_version != GTK_MICRO_VERSION))
14457
    {
14458
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14459
	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14460
      printf("*** library (version %d.%d.%d)\n",
14461
	     gtk_major_version, gtk_minor_version, gtk_micro_version);
14462
    }
14463
  else
14464
    {
14465
      if ((gtk_major_version > major) ||
14466
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14467
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14468
      {
14469
        return 0;
14470
       }
14471
     else
14472
      {
14473
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14474
               gtk_major_version, gtk_minor_version, gtk_micro_version);
14475
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14476
	       major, minor, micro);
14477
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14478
        printf("***\n");
14479
        printf("*** If you have already installed a sufficiently new version, this error\n");
14480
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14481
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
14482
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
14483
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14484
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14485
        printf("*** so that the correct libraries are found at run-time))\n");
14486
      }
14487
    }
14488
  return 1;
14489
}
14490
14491
_ACEOF
14492
if ac_fn_c_try_run "$LINENO"; then :
14493
14494
else
14495
  no_gtk=yes
14496
fi
14497
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14498
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14499
fi
14500
14501
       CFLAGS="$ac_save_CFLAGS"
14502
       LIBS="$ac_save_LIBS"
14503
     fi
14504
  fi
14505
  if test "x$no_gtk" = x ; then
14506
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
14507
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
14508
     :
14509
  else
14510
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511
$as_echo "no" >&6; }
14512
     if test "$PKG_CONFIG" = "no" ; then
14513
       echo "*** A new enough version of pkg-config was not found."
14514
       echo "*** See http://pkgconfig.sourceforge.net"
14515
     else
14516
       if test -f conf.gtktest ; then
14517
        :
14518
       else
14519
          echo "*** Could not run GTK+ test program, checking why..."
14520
	  ac_save_CFLAGS="$CFLAGS"
14521
	  ac_save_LIBS="$LIBS"
14522
          CFLAGS="$CFLAGS $GTK_CFLAGS"
14523
          LIBS="$LIBS $GTK_LIBS"
14524
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525
/* end confdefs.h.  */
14526
14527
#include <gtk/gtk.h>
14528
#include <stdio.h>
14529
14530
int
14531
main ()
14532
{
14533
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14534
  ;
14535
  return 0;
14536
}
14537
_ACEOF
14538
if ac_fn_c_try_link "$LINENO"; then :
14539
   echo "*** The test program compiled, but did not run. This usually means"
14540
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
14541
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
14542
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14543
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14544
          echo "*** is required on your system"
14545
	  echo "***"
14546
          echo "*** If you have an old version installed, it is best to remove it, although"
14547
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14548
else
14549
   echo "*** The test program failed to compile or link. See the file config.log for the"
14550
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
14551
fi
14552
rm -f core conftest.err conftest.$ac_objext \
14553
    conftest$ac_exeext conftest.$ac_ext
14554
          CFLAGS="$ac_save_CFLAGS"
14555
          LIBS="$ac_save_LIBS"
14556
       fi
14557
     fi
14558
     GTK_CFLAGS=""
14559
     GTK_LIBS=""
14560
     :
14561
  fi
14562
14563
14564
  rm -f conf.gtktest
14565
14566
  ac_config_files="$ac_config_files src/Makefile src/panel/Makefile src/cheese/Makefile"
14567
14568
else
14569
  BASE_CFLAGS=""
14570
14571
  BASE_LIBS=""
14572
14573
  CHEESE_CFLAGS=""
14574
14575
  CHEESE_LIBS=""
14576
14577
fi
14578
14579
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
14580
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
14581
14582
14583
14584
        if test -n "$PYTHON"; then
14585
      # If the user set $PYTHON, use it and don't search something else.
14586
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
14587
$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
14588
      prog="import sys
14589
# split strings by '.' and convert to numeric.  Append some zeros
14590
# because we need at least 4 digits for the hex conversion.
14591
# map returns an iterator in Python 3.0 and a list in 2.x
14592
minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14593
minverhex = 0
14594
# xrange is not present in Python 3.0 and range returns an iterator
14595
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14596
sys.exit(sys.hexversion < minverhex)"
14597
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14598
   ($PYTHON -c "$prog") >&5 2>&5
14599
   ac_status=$?
14600
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601
   (exit $ac_status); }; then :
14602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14603
$as_echo "yes" >&6; }
14604
else
14605
  as_fn_error "too old" "$LINENO" 5
14606
fi
14607
      am_display_PYTHON=$PYTHON
14608
    else
14609
      # Otherwise, try each interpreter until we find one that satisfies
14610
      # VERSION.
14611
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
14612
$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
14613
if test "${am_cv_pathless_PYTHON+set}" = set; then :
14614
  $as_echo_n "(cached) " >&6
14615
else
14616
14617
	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14618
	  test "$am_cv_pathless_PYTHON" = none && break
14619
	  prog="import sys
14620
# split strings by '.' and convert to numeric.  Append some zeros
14621
# because we need at least 4 digits for the hex conversion.
14622
# map returns an iterator in Python 3.0 and a list in 2.x
14623
minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14624
minverhex = 0
14625
# xrange is not present in Python 3.0 and range returns an iterator
14626
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14627
sys.exit(sys.hexversion < minverhex)"
14628
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14629
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14630
   ac_status=$?
14631
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632
   (exit $ac_status); }; then :
14633
  break
14634
fi
14635
	done
14636
fi
14637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14638
$as_echo "$am_cv_pathless_PYTHON" >&6; }
14639
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14640
      if test "$am_cv_pathless_PYTHON" = none; then
14641
	PYTHON=:
14642
      else
14643
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14644
set dummy $am_cv_pathless_PYTHON; ac_word=$2
14645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646
$as_echo_n "checking for $ac_word... " >&6; }
14647
if test "${ac_cv_path_PYTHON+set}" = set; then :
14648
  $as_echo_n "(cached) " >&6
14649
else
14650
  case $PYTHON in
14651
  [\\/]* | ?:[\\/]*)
14652
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14653
  ;;
14654
  *)
14655
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14656
for as_dir in $PATH
14657
do
14658
  IFS=$as_save_IFS
14659
  test -z "$as_dir" && as_dir=.
14660
    for ac_exec_ext in '' $ac_executable_extensions; do
14661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14662
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14663
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14664
    break 2
14665
  fi
14666
done
14667
  done
14668
IFS=$as_save_IFS
14669
14670
  ;;
14671
esac
14672
fi
14673
PYTHON=$ac_cv_path_PYTHON
14674
if test -n "$PYTHON"; then
14675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14676
$as_echo "$PYTHON" >&6; }
14677
else
14678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679
$as_echo "no" >&6; }
14680
fi
14681
14682
14683
      fi
14684
      am_display_PYTHON=$am_cv_pathless_PYTHON
14685
    fi
14686
14687
14688
  if test "$PYTHON" = :; then
14689
      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
14690
  else
14691
14692
14693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14694
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14695
if test "${am_cv_python_version+set}" = set; then :
14696
  $as_echo_n "(cached) " >&6
14697
else
14698
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14699
fi
14700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14701
$as_echo "$am_cv_python_version" >&6; }
14702
  PYTHON_VERSION=$am_cv_python_version
14703
14704
14705
14706
  PYTHON_PREFIX='${prefix}'
14707
14708
  PYTHON_EXEC_PREFIX='${exec_prefix}'
14709
14710
14711
14712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14713
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14714
if test "${am_cv_python_platform+set}" = set; then :
14715
  $as_echo_n "(cached) " >&6
14716
else
14717
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14718
fi
14719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14720
$as_echo "$am_cv_python_platform" >&6; }
14721
  PYTHON_PLATFORM=$am_cv_python_platform
14722
14723
14724
14725
14726
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14727
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14728
if test "${am_cv_python_pythondir+set}" = set; then :
14729
  $as_echo_n "(cached) " >&6
14730
else
14731
  if test "x$prefix" = xNONE
14732
     then
14733
       am_py_prefix=$ac_default_prefix
14734
     else
14735
       am_py_prefix=$prefix
14736
     fi
14737
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
14738
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14739
     case $am_cv_python_pythondir in
14740
     $am_py_prefix*)
14741
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14742
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14743
       ;;
14744
     *)
14745
       case $am_py_prefix in
14746
         /usr|/System*) ;;
14747
         *)
14748
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14749
	  ;;
14750
       esac
14751
       ;;
14752
     esac
14753
14754
fi
14755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14756
$as_echo "$am_cv_python_pythondir" >&6; }
14757
  pythondir=$am_cv_python_pythondir
14758
14759
14760
14761
  pkgpythondir=\${pythondir}/$PACKAGE
14762
14763
14764
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14765
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14766
if test "${am_cv_python_pyexecdir+set}" = set; then :
14767
  $as_echo_n "(cached) " >&6
14768
else
14769
  if test "x$exec_prefix" = xNONE
14770
     then
14771
       am_py_exec_prefix=$am_py_prefix
14772
     else
14773
       am_py_exec_prefix=$exec_prefix
14774
     fi
14775
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
14776
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14777
     case $am_cv_python_pyexecdir in
14778
     $am_py_exec_prefix*)
14779
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14780
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14781
       ;;
14782
     *)
14783
       case $am_py_exec_prefix in
14784
         /usr|/System*) ;;
14785
         *)
14786
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14787
	   ;;
14788
       esac
14789
       ;;
14790
     esac
14791
14792
fi
14793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14794
$as_echo "$am_cv_python_pyexecdir" >&6; }
14795
  pyexecdir=$am_cv_python_pyexecdir
14796
14797
14798
14799
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
14800
14801
14802
14803
  fi
14804
14805
14806
14807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
14808
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
14809
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
14810
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
14811
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
14812
if test "$py_prefix" != "$py_exec_prefix"; then
14813
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
14814
fi
14815
14816
save_CPPFLAGS="$CPPFLAGS"
14817
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819
/* end confdefs.h.  */
14820
#include <Python.h>
14821
_ACEOF
14822
if ac_fn_c_try_cpp "$LINENO"; then :
14823
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14824
$as_echo "found" >&6; }
14825
14826
else
14827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14828
$as_echo "not found" >&6; }
14829
as_fn_error "could not find Python headers" "$LINENO" 5
14830
fi
14831
rm -f conftest.err conftest.$ac_ext
14832
CPPFLAGS="$save_CPPFLAGS"
14833
14834
14835
for ac_func in setresuid setresgid getresuid getresgid
14836
do :
14837
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14838
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14839
eval as_val=\$$as_ac_var
14840
   if test "x$as_val" = x""yes; then :
14841
  cat >>confdefs.h <<_ACEOF
14842
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14843
_ACEOF
14844
14845
fi
14846
done
14847
14848
14849
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
14850
cat >>confdefs.h <<_ACEOF
14851
#define PIXMAPS_DIR "${datadir}/${PACKAGE}/pixmaps"
14852
_ACEOF
14853
14854
pixmapsdir="${datadir}/${PACKAGE}/pixmaps"
14855
14856
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
14857
#*******************************************************************************
14858
# Check for python
14859
#*******************************************************************************
14860
14861
14862
14863
14864
        # Find any Python interpreter.
14865
    if test -z "$PYTHON"; then
14866
      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
14867
do
14868
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14869
set dummy $ac_prog; ac_word=$2
14870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871
$as_echo_n "checking for $ac_word... " >&6; }
14872
if test "${ac_cv_path_PYTHON+set}" = set; then :
14873
  $as_echo_n "(cached) " >&6
14874
else
14875
  case $PYTHON in
14876
  [\\/]* | ?:[\\/]*)
14877
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14878
  ;;
14879
  *)
14880
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881
for as_dir in $PATH
14882
do
14883
  IFS=$as_save_IFS
14884
  test -z "$as_dir" && as_dir=.
14885
    for ac_exec_ext in '' $ac_executable_extensions; do
14886
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14887
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14888
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889
    break 2
14890
  fi
14891
done
14892
  done
14893
IFS=$as_save_IFS
14894
14895
  ;;
14896
esac
14897
fi
14898
PYTHON=$ac_cv_path_PYTHON
14899
if test -n "$PYTHON"; then
14900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14901
$as_echo "$PYTHON" >&6; }
14902
else
14903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904
$as_echo "no" >&6; }
14905
fi
14906
14907
14908
  test -n "$PYTHON" && break
14909
done
14910
test -n "$PYTHON" || PYTHON=":"
14911
14912
    fi
14913
    am_display_PYTHON=python
14914
14915
14916
  if test "$PYTHON" = :; then
14917
      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
14918
  else
14919
14920
14921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14922
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14923
if test "${am_cv_python_version+set}" = set; then :
14924
  $as_echo_n "(cached) " >&6
14925
else
14926
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14927
fi
14928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14929
$as_echo "$am_cv_python_version" >&6; }
14930
  PYTHON_VERSION=$am_cv_python_version
14931
14932
14933
14934
  PYTHON_PREFIX='${prefix}'
14935
14936
  PYTHON_EXEC_PREFIX='${exec_prefix}'
14937
14938
14939
14940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14941
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14942
if test "${am_cv_python_platform+set}" = set; then :
14943
  $as_echo_n "(cached) " >&6
14944
else
14945
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14946
fi
14947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14948
$as_echo "$am_cv_python_platform" >&6; }
14949
  PYTHON_PLATFORM=$am_cv_python_platform
14950
14951
14952
14953
14954
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14955
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14956
if test "${am_cv_python_pythondir+set}" = set; then :
14957
  $as_echo_n "(cached) " >&6
14958
else
14959
  if test "x$prefix" = xNONE
14960
     then
14961
       am_py_prefix=$ac_default_prefix
14962
     else
14963
       am_py_prefix=$prefix
14964
     fi
14965
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
14966
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14967
     case $am_cv_python_pythondir in
14968
     $am_py_prefix*)
14969
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14970
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14971
       ;;
14972
     *)
14973
       case $am_py_prefix in
14974
         /usr|/System*) ;;
14975
         *)
14976
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14977
	  ;;
14978
       esac
14979
       ;;
14980
     esac
14981
14982
fi
14983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14984
$as_echo "$am_cv_python_pythondir" >&6; }
14985
  pythondir=$am_cv_python_pythondir
14986
14987
14988
14989
  pkgpythondir=\${pythondir}/$PACKAGE
14990
14991
14992
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14993
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14994
if test "${am_cv_python_pyexecdir+set}" = set; then :
14995
  $as_echo_n "(cached) " >&6
14996
else
14997
  if test "x$exec_prefix" = xNONE
14998
     then
14999
       am_py_exec_prefix=$am_py_prefix
15000
     else
15001
       am_py_exec_prefix=$exec_prefix
15002
     fi
15003
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
15004
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15005
     case $am_cv_python_pyexecdir in
15006
     $am_py_exec_prefix*)
15007
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15008
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15009
       ;;
15010
     *)
15011
       case $am_py_exec_prefix in
15012
         /usr|/System*) ;;
15013
         *)
15014
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15015
	   ;;
15016
       esac
15017
       ;;
15018
     esac
15019
15020
fi
15021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15022
$as_echo "$am_cv_python_pyexecdir" >&6; }
15023
  pyexecdir=$am_cv_python_pyexecdir
15024
15025
15026
15027
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
15028
15029
15030
15031
  fi
15032
15033
15034
15035
15036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python headers using $PYTHON-config --includes" >&5
15037
$as_echo_n "checking for Python headers using $PYTHON-config --includes... " >&6; }
15038
PYTHON_INCLUDES=`$PYTHON-config --includes`
15039
if test $? = 0; then
15040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
15041
$as_echo "$PYTHON_INCLUDES" >&6; }
15042
else
15043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed, will try another way" >&5
15044
$as_echo "failed, will try another way" >&6; }
15045
  py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
15046
  py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
15047
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python headers in $py_prefix and $py_exec_prefix" >&5
15048
$as_echo_n "checking for Python headers in $py_prefix and $py_exec_prefix... " >&6; }
15049
  PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
15050
  if test "$py_prefix" != "$py_exec_prefix"; then
15051
    PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
15052
  fi
15053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
15054
$as_echo "$PYTHON_INCLUDES" >&6; }
15055
fi
15056
15057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether those headers are sufficient" >&5
15058
$as_echo_n "checking whether those headers are sufficient... " >&6; }
15059
15060
save_CPPFLAGS="$CPPFLAGS"
15061
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
15062
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063
/* end confdefs.h.  */
15064
#include <Python.h>
15065
_ACEOF
15066
if ac_fn_c_try_cpp "$LINENO"; then :
15067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15068
$as_echo "yes" >&6; }
15069
15070
else
15071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072
$as_echo "no" >&6; }
15073
as_fn_error "install python-devel" "$LINENO" 5
15074
fi
15075
rm -f conftest.err conftest.$ac_ext
15076
CPPFLAGS="$save_CPPFLAGS"
15077
15078
15079
#*******************************************************************************
15080
# Check for PYGOBJECT
15081
#*******************************************************************************
15082
15083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygobject defs" >&5
15084
$as_echo_n "checking for pygobject defs... " >&6; }
15085
PYGOBJECT_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygobject-2.0`
15086
15087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGOBJECT_DEFSDIR" >&5
15088
$as_echo "$PYGOBJECT_DEFSDIR" >&6; }
15089
15090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygobject codegen" >&5
15091
$as_echo_n "checking for pygobject codegen... " >&6; }
15092
PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py"
15093
15094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGOBJECT_CODEGEN" >&5
15095
$as_echo "$PYGOBJECT_CODEGEN" >&6; }
15096
15097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygobject h2def" >&5
15098
$as_echo_n "checking for pygobject h2def... " >&6; }
15099
PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.py"
15100
15101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGOBJECT_H2DEF" >&5
15102
$as_echo "$PYGOBJECT_H2DEF" >&6; }
15103
15104
15105
#*******************************************************************************
15106
# Check for PYGTK
15107
#*******************************************************************************
15108
15109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk defs" >&5
15110
$as_echo_n "checking for pygtk defs... " >&6; }
15111
PYGTK_DEFS_DIR="`$PKG_CONFIG --variable=defsdir pygtk-2.0`"
15112
15113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_DEFS_DIR" >&5
15114
$as_echo "$PYGTK_DEFS_DIR" >&6; }
15115
15116
15117
15118
#*******************************************************************************
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15119
ac_config_files="$ac_config_files Makefile desktop/Makefile pixmaps/Makefile po/Makefile.in ubiquity/Makefile"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15120
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15121
cat >confcache <<\_ACEOF
15122
# This file is a shell script that caches the results of configure
15123
# tests run on this system so they can be shared between configure
15124
# scripts and configure runs, see configure's option --config-cache.
15125
# It is not useful on other systems.  If it contains results you don't
15126
# want to keep, you may remove or edit it.
15127
#
15128
# config.status only pays attention to the cache file if you give it
15129
# the --recheck option to rerun configure.
15130
#
15131
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15132
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15133
# following values.
15134
15135
_ACEOF
15136
15137
# The following way of writing the cache mishandles newlines in values,
15138
# but we know of no workaround that is simple, portable, and efficient.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15139
# So, we kill variables containing newlines.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15140
# Ultrix sh set writes to stderr and can't be redirected directly,
15141
# and sets the high bit in the cache file unless we assign to the vars.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15142
(
15143
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15144
    eval ac_val=\$$ac_var
15145
    case $ac_val in #(
15146
    *${as_nl}*)
15147
      case $ac_var in #(
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15148
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15149
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15150
      esac
15151
      case $ac_var in #(
15152
      _ | IFS | as_nl) ;; #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15153
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15154
      *) { eval $ac_var=; unset $ac_var;} ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15155
      esac ;;
15156
    esac
15157
  done
15158
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15159
  (set) 2>&1 |
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15160
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15161
    *${as_nl}ac_space=\ *)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15162
      # `set' does not quote correctly, so add quotes: double-quote
15163
      # substitution turns \\\\ into \\, and sed turns \\ into \.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15164
      sed -n \
15165
	"s/'/'\\\\''/g;
15166
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15167
      ;; #(
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15168
    *)
15169
      # `set' quotes correctly as required by POSIX, so do not add quotes.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15170
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15171
      ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15172
    esac |
15173
    sort
15174
) |
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15175
  sed '
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15176
     /^ac_cv_env_/b end
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15177
     t clear
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15178
     :clear
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15179
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15180
     t end
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15181
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15182
     :end' >>confcache
15183
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15184
  if test -w "$cache_file"; then
15185
    test "x$cache_file" != "x/dev/null" &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15186
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15187
$as_echo "$as_me: updating cache $cache_file" >&6;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15188
    cat confcache >$cache_file
15189
  else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15190
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15191
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15192
  fi
15193
fi
15194
rm -f confcache
15195
15196
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15197
# Let make expand exec_prefix.
15198
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15199
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15200
DEFS=-DHAVE_CONFIG_H
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15201
15202
ac_libobjs=
15203
ac_ltlibobjs=
15204
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15205
  # 1. Remove the extension, and $U if already installed.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15206
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15207
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15208
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15209
  #    will be set to the directory where LIBOBJS objects are built.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15210
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15211
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15212
done
15213
LIBOBJS=$ac_libobjs
15214
15215
LTLIBOBJS=$ac_ltlibobjs
15216
15217
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15218
 if test -n "$EXEEXT"; then
15219
  am__EXEEXT_TRUE=
15220
  am__EXEEXT_FALSE='#'
15221
else
15222
  am__EXEEXT_TRUE='#'
15223
  am__EXEEXT_FALSE=
15224
fi
15225
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15226
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15227
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15228
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15229
fi
15230
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15231
  as_fn_error "conditional \"AMDEP\" was never defined.
15232
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15233
fi
15234
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15235
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15236
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15237
fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
15238
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15239
  ac_config_commands="$ac_config_commands po/stamp-it"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
15240
15241
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15242
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15243
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15244
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15245
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15246
15247
: ${CONFIG_STATUS=./config.status}
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15248
ac_write_fail=0
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15249
ac_clean_files_save=$ac_clean_files
15250
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15251
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15252
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15253
as_write_fail=0
15254
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15255
#! $SHELL
15256
# Generated by $as_me.
15257
# Run this file to recreate the current configuration.
15258
# Compiler output produced by configure, useful for debugging
15259
# configure, is in config.log if it exists.
15260
15261
debug=false
15262
ac_cs_recheck=false
15263
ac_cs_silent=false
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15264
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15265
SHELL=\${CONFIG_SHELL-$SHELL}
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15266
export SHELL
15267
_ASEOF
15268
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15269
## -------------------- ##
15270
## M4sh Initialization. ##
15271
## -------------------- ##
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15272
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15273
# Be more Bourne compatible
15274
DUALCASE=1; export DUALCASE # for MKS sh
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15275
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15276
  emulate sh
15277
  NULLCMD=:
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15278
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15279
  # is contrary to our usage.  Disable this feature.
15280
  alias -g '${1+"$@"}'='"$@"'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15281
  setopt NO_GLOB_SUBST
15282
else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15283
  case `(set -o) 2>/dev/null` in #(
15284
  *posix*) :
15285
    set -o posix ;; #(
15286
  *) :
15287
     ;;
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15288
esac
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15289
fi
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15290
15291
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15292
as_nl='
15293
'
15294
export as_nl
15295
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15296
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15297
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15298
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15299
# Prefer a ksh shell builtin over an external printf program on Solaris,
15300
# but without wasting forks for bash or zsh.
15301
if test -z "$BASH_VERSION$ZSH_VERSION" \
15302
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15303
  as_echo='print -r --'
15304
  as_echo_n='print -rn --'
15305
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15306
  as_echo='printf %s\n'
15307
  as_echo_n='printf %s'
15308
else
15309
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15310
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15311
    as_echo_n='/usr/ucb/echo -n'
15312
  else
15313
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15314
    as_echo_n_body='eval
15315
      arg=$1;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15316
      case $arg in #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15317
      *"$as_nl"*)
15318
	expr "X$arg" : "X\\(.*\\)$as_nl";
15319
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15320
      esac;
15321
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15322
    '
15323
    export as_echo_n_body
15324
    as_echo_n='sh -c $as_echo_n_body as_echo'
15325
  fi
15326
  export as_echo_body
15327
  as_echo='sh -c $as_echo_body as_echo'
15328
fi
15329
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15330
# The user is always right.
15331
if test "${PATH_SEPARATOR+set}" != set; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15332
  PATH_SEPARATOR=:
15333
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15334
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15335
      PATH_SEPARATOR=';'
15336
  }
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15337
fi
15338
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15339
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15340
# IFS
15341
# We need space, tab and new line, in precisely that order.  Quoting is
15342
# there to prevent editors from complaining about space-tab.
15343
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15344
# splitting by setting IFS to empty value.)
15345
IFS=" ""	$as_nl"
15346
15347
# Find who we are.  Look in the path if we contain no directory separator.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15348
case $0 in #((
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15349
  *[\\/]* ) as_myself=$0 ;;
15350
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15351
for as_dir in $PATH
15352
do
15353
  IFS=$as_save_IFS
15354
  test -z "$as_dir" && as_dir=.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15355
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15356
  done
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15357
IFS=$as_save_IFS
15358
15359
     ;;
15360
esac
15361
# We did not find ourselves, most probably we were run as `sh COMMAND'
15362
# in which case we are not to be found in the path.
15363
if test "x$as_myself" = x; then
15364
  as_myself=$0
15365
fi
15366
if test ! -f "$as_myself"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15367
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15368
  exit 1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15369
fi
15370
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15371
# Unset variables that we do not need and which cause bugs (e.g. in
15372
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15373
# suppresses any "Segmentation fault" message there.  '((' could
15374
# trigger a bug in pdksh 5.2.14.
15375
for as_var in BASH_ENV ENV MAIL MAILPATH
15376
do eval test x\${$as_var+set} = xset \
15377
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15378
done
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15379
PS1='$ '
15380
PS2='> '
15381
PS4='+ '
15382
15383
# NLS nuisances.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15384
LC_ALL=C
15385
export LC_ALL
15386
LANGUAGE=C
15387
export LANGUAGE
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15388
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15389
# CDPATH.
15390
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15391
15392
15393
# as_fn_error ERROR [LINENO LOG_FD]
15394
# ---------------------------------
15395
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15396
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15397
# script with status $?, using 1 if that was 0.
15398
as_fn_error ()
15399
{
15400
  as_status=$?; test $as_status -eq 0 && as_status=1
15401
  if test "$3"; then
15402
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15403
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15404
  fi
15405
  $as_echo "$as_me: error: $1" >&2
15406
  as_fn_exit $as_status
15407
} # as_fn_error
15408
15409
15410
# as_fn_set_status STATUS
15411
# -----------------------
15412
# Set $? to STATUS, without forking.
15413
as_fn_set_status ()
15414
{
15415
  return $1
15416
} # as_fn_set_status
15417
15418
# as_fn_exit STATUS
15419
# -----------------
15420
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15421
as_fn_exit ()
15422
{
15423
  set +e
15424
  as_fn_set_status $1
15425
  exit $1
15426
} # as_fn_exit
15427
15428
# as_fn_unset VAR
15429
# ---------------
15430
# Portably unset VAR.
15431
as_fn_unset ()
15432
{
15433
  { eval $1=; unset $1;}
15434
}
15435
as_unset=as_fn_unset
15436
# as_fn_append VAR VALUE
15437
# ----------------------
15438
# Append the text in VALUE to the end of the definition contained in VAR. Take
15439
# advantage of any shell optimizations that allow amortized linear growth over
15440
# repeated appends, instead of the typical quadratic growth present in naive
15441
# implementations.
15442
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15443
  eval 'as_fn_append ()
15444
  {
15445
    eval $1+=\$2
15446
  }'
15447
else
15448
  as_fn_append ()
15449
  {
15450
    eval $1=\$$1\$2
15451
  }
15452
fi # as_fn_append
15453
15454
# as_fn_arith ARG...
15455
# ------------------
15456
# Perform arithmetic evaluation on the ARGs, and store the result in the
15457
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15458
# must be portable across $(()) and expr.
15459
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15460
  eval 'as_fn_arith ()
15461
  {
15462
    as_val=$(( $* ))
15463
  }'
15464
else
15465
  as_fn_arith ()
15466
  {
15467
    as_val=`expr "$@" || test $? -eq 1`
15468
  }
15469
fi # as_fn_arith
15470
15471
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15472
if expr a : '\(a\)' >/dev/null 2>&1 &&
15473
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15474
  as_expr=expr
15475
else
15476
  as_expr=false
15477
fi
15478
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15479
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15480
  as_basename=basename
15481
else
15482
  as_basename=false
15483
fi
15484
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15485
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15486
  as_dirname=dirname
15487
else
15488
  as_dirname=false
15489
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15490
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15491
as_me=`$as_basename -- "$0" ||
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15492
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15493
	 X"$0" : 'X\(//\)$' \| \
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15494
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15495
$as_echo X/"$0" |
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15496
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15497
	    s//\1/
15498
	    q
15499
	  }
15500
	  /^X\/\(\/\/\)$/{
15501
	    s//\1/
15502
	    q
15503
	  }
15504
	  /^X\/\(\/\).*/{
15505
	    s//\1/
15506
	    q
15507
	  }
15508
	  s/.*/./; q'`
15509
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15510
# Avoid depending upon Character Ranges.
15511
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15512
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15513
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15514
as_cr_digits='0123456789'
15515
as_cr_alnum=$as_cr_Letters$as_cr_digits
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15516
15517
ECHO_C= ECHO_N= ECHO_T=
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15518
case `echo -n x` in #(((((
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15519
-n*)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15520
  case `echo 'xy\c'` in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15521
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15522
  xy)  ECHO_C='\c';;
15523
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15524
       ECHO_T='	';;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15525
  esac;;
15526
*)
15527
  ECHO_N='-n';;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15528
esac
15529
15530
rm -f conf$$ conf$$.exe conf$$.file
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15531
if test -d conf$$.dir; then
15532
  rm -f conf$$.dir/conf$$.file
15533
else
15534
  rm -f conf$$.dir
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15535
  mkdir conf$$.dir 2>/dev/null
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15536
fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15537
if (echo >conf$$.file) 2>/dev/null; then
15538
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15539
    as_ln_s='ln -s'
15540
    # ... but there are two gotchas:
15541
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15542
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15543
    # In both cases, we have to default to `cp -p'.
15544
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15545
      as_ln_s='cp -p'
15546
  elif ln conf$$.file conf$$ 2>/dev/null; then
15547
    as_ln_s=ln
15548
  else
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15549
    as_ln_s='cp -p'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15550
  fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15551
else
15552
  as_ln_s='cp -p'
15553
fi
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15554
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15555
rmdir conf$$.dir 2>/dev/null
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15556
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15557
15558
# as_fn_mkdir_p
15559
# -------------
15560
# Create "$as_dir" as a directory, including parents if necessary.
15561
as_fn_mkdir_p ()
15562
{
15563
15564
  case $as_dir in #(
15565
  -*) as_dir=./$as_dir;;
15566
  esac
15567
  test -d "$as_dir" || eval $as_mkdir_p || {
15568
    as_dirs=
15569
    while :; do
15570
      case $as_dir in #(
15571
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15572
      *) as_qdir=$as_dir;;
15573
      esac
15574
      as_dirs="'$as_qdir' $as_dirs"
15575
      as_dir=`$as_dirname -- "$as_dir" ||
15576
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15577
	 X"$as_dir" : 'X\(//\)[^/]' \| \
15578
	 X"$as_dir" : 'X\(//\)$' \| \
15579
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15580
$as_echo X"$as_dir" |
15581
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15582
	    s//\1/
15583
	    q
15584
	  }
15585
	  /^X\(\/\/\)[^/].*/{
15586
	    s//\1/
15587
	    q
15588
	  }
15589
	  /^X\(\/\/\)$/{
15590
	    s//\1/
15591
	    q
15592
	  }
15593
	  /^X\(\/\).*/{
15594
	    s//\1/
15595
	    q
15596
	  }
15597
	  s/.*/./; q'`
15598
      test -d "$as_dir" && break
15599
    done
15600
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15601
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15602
15603
15604
} # as_fn_mkdir_p
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15605
if mkdir -p . 2>/dev/null; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15606
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15607
else
15608
  test -d ./-p && rmdir ./-p
15609
  as_mkdir_p=false
15610
fi
15611
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15612
if test -x / >/dev/null 2>&1; then
15613
  as_test_x='test -x'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15614
else
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15615
  if ls -dL / >/dev/null 2>&1; then
15616
    as_ls_L_option=L
15617
  else
15618
    as_ls_L_option=
15619
  fi
15620
  as_test_x='
15621
    eval sh -c '\''
15622
      if test -d "$1"; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15623
	test -d "$1/.";
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15624
      else
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15625
	case $1 in #(
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15626
	-*)set "./$1";;
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15627
	esac;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15628
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15629
	???[sx]*):;;*)false;;esac;fi
15630
    '\'' sh
15631
  '
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15632
fi
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15633
as_executable_p=$as_test_x
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15634
15635
# Sed expression to map a string onto a valid CPP name.
15636
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15637
15638
# Sed expression to map a string onto a valid variable name.
15639
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15640
15641
15642
exec 6>&1
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15643
## ----------------------------------- ##
15644
## Main body of $CONFIG_STATUS script. ##
15645
## ----------------------------------- ##
15646
_ASEOF
15647
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15648
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650
# Save the log message, to keep $0 and so on meaningful, and to
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15651
# report actual input values of CONFIG_FILES etc. instead of their
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15652
# values after options handling.
15653
ac_log="
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
15654
This file was extended by ubiquity $as_me 2.4, which was
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15655
generated by GNU Autoconf 2.65.  Invocation command line was
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15656
15657
  CONFIG_FILES    = $CONFIG_FILES
15658
  CONFIG_HEADERS  = $CONFIG_HEADERS
15659
  CONFIG_LINKS    = $CONFIG_LINKS
15660
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15661
  $ $0 $@
15662
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15663
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15664
"
15665
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15666
_ACEOF
15667
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15668
case $ac_config_files in *"
15669
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15670
esac
15671
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15672
case $ac_config_headers in *"
15673
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15674
esac
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15675
15676
15677
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15678
# Files that config.status was made for.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15679
config_files="$ac_config_files"
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15680
config_headers="$ac_config_headers"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15681
config_commands="$ac_config_commands"
15682
15683
_ACEOF
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15684
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15685
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15686
ac_cs_usage="\
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15687
\`$as_me' instantiates files and other configuration actions
15688
from templates according to the current configuration.  Unless the files
15689
and actions are specified as TAGs, all are instantiated by default.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15690
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15691
Usage: $0 [OPTION]... [TAG]...
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15692
15693
  -h, --help       print this help, then exit
76 by Colin Watson
* Strip out unnecessary parts from console-setup source (accidental due to
15694
  -V, --version    print version number and configuration settings, then exit
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15695
      --config     print configuration, then exit
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15696
  -q, --quiet, --silent
15697
                   do not print progress messages
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15698
  -d, --debug      don't remove temporary files
15699
      --recheck    update $as_me by reconfiguring in the same conditions
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15700
      --file=FILE[:TEMPLATE]
15701
                   instantiate the configuration file FILE
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15702
      --header=FILE[:TEMPLATE]
15703
                   instantiate the configuration header FILE
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15704
15705
Configuration files:
15706
$config_files
15707
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15708
Configuration headers:
15709
$config_headers
15710
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15711
Configuration commands:
15712
$config_commands
15713
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15714
Report bugs to <https://launchpad.net/ubuntu/+source/ubiquity/+filebug>."
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15715
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15716
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15717
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15718
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15719
ac_cs_version="\\
331.1.31 by Evan Dandrea, Sebastian Heinlein, Evan Dandrea, Colin Watson
[ Sebastian Heinlein ]
15720
ubiquity config.status 2.4
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15721
configured by $0, generated by GNU Autoconf 2.65,
15722
  with options \\"\$ac_cs_config\\"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15723
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15724
Copyright (C) 2009 Free Software Foundation, Inc.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15725
This config.status script is free software; the Free Software Foundation
15726
gives unlimited permission to copy, distribute and modify it."
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15727
15728
ac_pwd='$ac_pwd'
15729
srcdir='$srcdir'
15730
INSTALL='$INSTALL'
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
15731
MKDIR_P='$MKDIR_P'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15732
AWK='$AWK'
15733
test -n "\$AWK" || AWK=awk
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15734
_ACEOF
15735
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15736
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737
# The default lists apply if the user does not specify any file.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15738
ac_need_defaults=:
15739
while test $# != 0
15740
do
15741
  case $1 in
15742
  --*=*)
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15743
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15744
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15745
    ac_shift=:
15746
    ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15747
  *)
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15748
    ac_option=$1
15749
    ac_optarg=$2
15750
    ac_shift=shift
15751
    ;;
15752
  esac
15753
15754
  case $ac_option in
15755
  # Handling of the options.
15756
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15757
    ac_cs_recheck=: ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15758
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15759
    $as_echo "$ac_cs_version"; exit ;;
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15760
  --config | --confi | --conf | --con | --co | --c )
15761
    $as_echo "$ac_cs_config"; exit ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15762
  --debug | --debu | --deb | --de | --d | -d )
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15763
    debug=: ;;
15764
  --file | --fil | --fi | --f )
15765
    $ac_shift
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15766
    case $ac_optarg in
15767
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15768
    esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15769
    as_fn_append CONFIG_FILES " '$ac_optarg'"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15770
    ac_need_defaults=false;;
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15771
  --header | --heade | --head | --hea )
15772
    $ac_shift
15773
    case $ac_optarg in
15774
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15775
    esac
15776
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15777
    ac_need_defaults=false;;
15778
  --he | --h)
15779
    # Conflict between --help and --header
15780
    as_fn_error "ambiguous option: \`$1'
15781
Try \`$0 --help' for more information.";;
15782
  --help | --hel | -h )
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15783
    $as_echo "$ac_cs_usage"; exit ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15784
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15785
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15786
    ac_cs_silent=: ;;
15787
15788
  # This is an error.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15789
  -*) as_fn_error "unrecognized option: \`$1'
15790
Try \`$0 --help' for more information." ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15791
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
15792
  *) as_fn_append ac_config_targets " $1"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15793
     ac_need_defaults=false ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15794
15795
  esac
15796
  shift
15797
done
15798
15799
ac_configure_extra_args=
15800
15801
if $ac_cs_silent; then
15802
  exec 6>/dev/null
15803
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15804
fi
15805
15806
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15807
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15808
if \$ac_cs_recheck; then
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15809
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15810
  shift
15811
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15812
  CONFIG_SHELL='$SHELL'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15813
  export CONFIG_SHELL
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15814
  exec "\$@"
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15815
fi
15816
15817
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15819
exec 5>>config.log
15820
{
15821
  echo
15822
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15823
## Running $as_me. ##
15824
_ASBOX
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15825
  $as_echo "$ac_log"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15826
} >&5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15827
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15828
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
15829
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15830
#
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
15831
# INIT-COMMANDS
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
15832
#
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
15833
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15834
15835
15836
# The HP-UX ksh and POSIX shell print the target directory to stdout
15837
# if CDPATH is set.
15838
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15839
15840
sed_quote_subst='$sed_quote_subst'
15841
double_quote_subst='$double_quote_subst'
15842
delay_variable_subst='$delay_variable_subst'
15843
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15844
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15845
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15846
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15847
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15848
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15849
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15850
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15851
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15852
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15853
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15854
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15855
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15856
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15857
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15858
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15859
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15860
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15861
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15862
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15863
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15864
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15865
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15866
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15867
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15868
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15869
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15870
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15872
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15873
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15874
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15875
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15876
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15877
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15878
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15879
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15880
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15881
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15882
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15883
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15884
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15885
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15886
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15887
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15888
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15889
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15890
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15891
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15892
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15893
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15894
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15895
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15896
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15897
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15898
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15899
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15900
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15901
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15902
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15903
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15904
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15905
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15906
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15907
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15908
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15909
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15910
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15911
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15912
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15913
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15914
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15915
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15916
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15917
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15918
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15919
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15920
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15921
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15922
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15923
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15924
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15925
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15926
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15927
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15928
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15929
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15930
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15931
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15932
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15933
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15934
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15935
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15936
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15937
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15938
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15939
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15940
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15941
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15942
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15943
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15944
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15945
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15946
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15947
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15948
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15949
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15950
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15951
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15952
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15953
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15954
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15955
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15956
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15957
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15958
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15959
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15960
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15961
15962
LTCC='$LTCC'
15963
LTCFLAGS='$LTCFLAGS'
15964
compiler='$compiler_DEFAULT'
15965
15966
# Quote evaled strings.
15967
for var in SED \
15968
GREP \
15969
EGREP \
15970
FGREP \
15971
LD \
15972
NM \
15973
LN_S \
15974
lt_SP2NL \
15975
lt_NL2SP \
15976
reload_flag \
15977
OBJDUMP \
15978
deplibs_check_method \
15979
file_magic_cmd \
15980
AR \
15981
AR_FLAGS \
15982
STRIP \
15983
RANLIB \
15984
CC \
15985
CFLAGS \
15986
compiler \
15987
lt_cv_sys_global_symbol_pipe \
15988
lt_cv_sys_global_symbol_to_cdecl \
15989
lt_cv_sys_global_symbol_to_c_name_address \
15990
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15991
SHELL \
15992
ECHO \
15993
lt_prog_compiler_no_builtin_flag \
15994
lt_prog_compiler_wl \
15995
lt_prog_compiler_pic \
15996
lt_prog_compiler_static \
15997
lt_cv_prog_compiler_c_o \
15998
need_locks \
15999
DSYMUTIL \
16000
NMEDIT \
16001
LIPO \
16002
OTOOL \
16003
OTOOL64 \
16004
shrext_cmds \
16005
export_dynamic_flag_spec \
16006
whole_archive_flag_spec \
16007
compiler_needs_object \
16008
with_gnu_ld \
16009
allow_undefined_flag \
16010
no_undefined_flag \
16011
hardcode_libdir_flag_spec \
16012
hardcode_libdir_flag_spec_ld \
16013
hardcode_libdir_separator \
16014
fix_srcfile_path \
16015
exclude_expsyms \
16016
include_expsyms \
16017
file_list_spec \
16018
variables_saved_for_relink \
16019
libname_spec \
16020
library_names_spec \
16021
soname_spec \
16022
finish_eval \
16023
old_striplib \
16024
striplib; do
16025
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16026
    *[\\\\\\\`\\"\\\$]*)
16027
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16028
      ;;
16029
    *)
16030
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16031
      ;;
16032
    esac
16033
done
16034
16035
# Double-quote double-evaled strings.
16036
for var in reload_cmds \
16037
old_postinstall_cmds \
16038
old_postuninstall_cmds \
16039
old_archive_cmds \
16040
extract_expsyms_cmds \
16041
old_archive_from_new_cmds \
16042
old_archive_from_expsyms_cmds \
16043
archive_cmds \
16044
archive_expsym_cmds \
16045
module_cmds \
16046
module_expsym_cmds \
16047
export_symbols_cmds \
16048
prelink_cmds \
16049
postinstall_cmds \
16050
postuninstall_cmds \
16051
finish_cmds \
16052
sys_lib_search_path_spec \
16053
sys_lib_dlsearch_path_spec; do
16054
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16055
    *[\\\\\\\`\\"\\\$]*)
16056
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16057
      ;;
16058
    *)
16059
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16060
      ;;
16061
    esac
16062
done
16063
16064
# Fix-up fallback echo if it was mangled by the above quoting rules.
16065
case \$lt_ECHO in
16066
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16067
  ;;
16068
esac
16069
16070
ac_aux_dir='$ac_aux_dir'
16071
xsi_shell='$xsi_shell'
16072
lt_shell_append='$lt_shell_append'
16073
16074
# See if we are running on zsh, and set the options which allow our
16075
# commands through without removal of \ escapes INIT.
16076
if test -n "\${ZSH_VERSION+set}" ; then
16077
   setopt NO_GLOB_SUBST
16078
fi
16079
16080
16081
    PACKAGE='$PACKAGE'
16082
    VERSION='$VERSION'
16083
    TIMESTAMP='$TIMESTAMP'
16084
    RM='$RM'
16085
    ofile='$ofile'
16086
16087
16088
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
16089
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16090
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
16091
    # from automake < 1.5.
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
16092
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16093
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
16094
    LINGUAS="${LINGUAS-%UNSET%}"
16095
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16096
16097
_ACEOF
16098
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16099
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16100
16101
# Handling of arguments.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16102
for ac_config_target in $ac_config_targets
16103
do
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16104
  case $ac_config_target in
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16105
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16106
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16107
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
239 by Colin Watson
* Factor out /etc/casper.conf parsing from ubiquity-dm to a separate
16108
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
16109
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16110
    "src/panel/Makefile") CONFIG_FILES="$CONFIG_FILES src/panel/Makefile" ;;
16111
    "src/cheese/Makefile") CONFIG_FILES="$CONFIG_FILES src/cheese/Makefile" ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16112
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16113
    "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
16114
    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
16115
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16116
    "ubiquity/Makefile") CONFIG_FILES="$CONFIG_FILES ubiquity/Makefile" ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16117
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16118
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16119
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16120
  esac
16121
done
16122
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16123
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16124
# If the user did not use the arguments to specify the items to instantiate,
16125
# then the envvar interface is used.  Set only those that are not.
16126
# We use the long form for the default assignment because of an extremely
16127
# bizarre bug on SunOS 4.1.3.
16128
if $ac_need_defaults; then
16129
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16130
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16131
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16132
fi
16133
16134
# Have a temporary directory for convenience.  Make it in the build tree
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16135
# simply because there is no reason against having it here, and in addition,
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16136
# creating and moving files from /tmp can sometimes cause problems.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16137
# Hook for its removal unless debugging.
16138
# Note that there is a small window in which the directory will not be cleaned:
16139
# after its creation but before its name has been assigned to `$tmp'.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16140
$debug ||
16141
{
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16142
  tmp=
16143
  trap 'exit_status=$?
16144
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16145
' 0
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16146
  trap 'as_fn_exit 1' 1 2 13 15
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16147
}
16148
# Create a (secure) tmp directory for tmp files.
16149
16150
{
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16151
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16152
  test -n "$tmp" && test -d "$tmp"
16153
}  ||
16154
{
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16155
  tmp=./conf$$-$RANDOM
16156
  (umask 077 && mkdir "$tmp")
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16157
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16158
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16159
# Set up the scripts for CONFIG_FILES section.
16160
# No need to generate them if there are no CONFIG_FILES.
16161
# This happens for instance with `./config.status config.h'.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16162
if test -n "$CONFIG_FILES"; then
16163
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16164
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16165
ac_cr=`echo X | tr X '\015'`
16166
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16167
# But we know of no other shell where ac_cr would be empty at this
16168
# point, so we can use a bashism as a fallback.
16169
if test "x$ac_cr" = x; then
16170
  eval ac_cr=\$\'\\r\'
16171
fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16172
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16173
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16174
  ac_cs_awk_cr='\r'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16175
else
16176
  ac_cs_awk_cr=$ac_cr
16177
fi
16178
16179
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16180
_ACEOF
16181
16182
16183
{
16184
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16185
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16186
  echo "_ACEOF"
16187
} >conf$$subs.sh ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16188
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16189
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16190
ac_delim='%!_!# '
16191
for ac_last_try in false false false false false :; do
16192
  . ./conf$$subs.sh ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16193
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16194
16195
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16196
  if test $ac_delim_n = $ac_delim_num; then
16197
    break
16198
  elif $ac_last_try; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16199
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16200
  else
16201
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16202
  fi
16203
done
16204
rm -f conf$$subs.sh
16205
16206
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16207
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16208
_ACEOF
16209
sed -n '
16210
h
16211
s/^/S["/; s/!.*/"]=/
16212
p
16213
g
16214
s/^[^!]*!//
16215
:repl
16216
t repl
16217
s/'"$ac_delim"'$//
16218
t delim
16219
:nl
16220
h
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16221
s/\(.\{148\}\)..*/\1/
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16222
t more1
16223
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16224
p
16225
n
16226
b repl
16227
:more1
16228
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16229
p
16230
g
16231
s/.\{148\}//
16232
t nl
16233
:delim
16234
h
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16235
s/\(.\{148\}\)..*/\1/
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16236
t more2
16237
s/["\\]/\\&/g; s/^/"/; s/$/"/
16238
p
16239
b
16240
:more2
16241
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16242
p
16243
g
16244
s/.\{148\}//
16245
t delim
16246
' <conf$$subs.awk | sed '
16247
/^[^""]/{
16248
  N
16249
  s/\n//
16250
}
16251
' >>$CONFIG_STATUS || ac_write_fail=1
16252
rm -f conf$$subs.awk
16253
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16254
_ACAWK
16255
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16256
  for (key in S) S_is_set[key] = 1
16257
  FS = ""
16258
16259
}
16260
{
16261
  line = $ 0
16262
  nfields = split(line, field, "@")
16263
  substed = 0
16264
  len = length(field[1])
16265
  for (i = 2; i < nfields; i++) {
16266
    key = field[i]
16267
    keylen = length(key)
16268
    if (S_is_set[key]) {
16269
      value = S[key]
16270
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16271
      len += length(value) + length(field[++i])
16272
      substed = 1
16273
    } else
16274
      len += 1 + keylen
16275
  }
16276
16277
  print line
16278
}
16279
16280
_ACAWK
16281
_ACEOF
16282
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16283
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16284
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16285
else
16286
  cat
16287
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16288
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16289
_ACEOF
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16290
16291
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16292
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16293
# trailing colons and then remove the whole line if VPATH becomes empty
16294
# (actually we leave an empty line to preserve line numbers).
16295
if test "x$srcdir" = x.; then
16296
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16297
s/:*\$(srcdir):*/:/
16298
s/:*\${srcdir}:*/:/
16299
s/:*@srcdir@:*/:/
16300
s/^\([^=]*=[	 ]*\):*/\1/
16301
s/:*$//
16302
s/^[^=]*=[	 ]*$//
16303
}'
16304
fi
16305
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16306
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16307
fi # test -n "$CONFIG_FILES"
16308
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16309
# Set up the scripts for CONFIG_HEADERS section.
16310
# No need to generate them if there are no CONFIG_HEADERS.
16311
# This happens for instance with `./config.status Makefile'.
16312
if test -n "$CONFIG_HEADERS"; then
16313
cat >"$tmp/defines.awk" <<\_ACAWK ||
16314
BEGIN {
16315
_ACEOF
16316
16317
# Transform confdefs.h into an awk script `defines.awk', embedded as
16318
# here-document in config.status, that substitutes the proper values into
16319
# config.h.in to produce config.h.
16320
16321
# Create a delimiter string that does not exist in confdefs.h, to ease
16322
# handling of long lines.
16323
ac_delim='%!_!# '
16324
for ac_last_try in false false :; do
16325
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16326
  if test -z "$ac_t"; then
16327
    break
16328
  elif $ac_last_try; then
16329
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16330
  else
16331
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16332
  fi
16333
done
16334
16335
# For the awk script, D is an array of macro values keyed by name,
16336
# likewise P contains macro parameters if any.  Preserve backslash
16337
# newline sequences.
16338
16339
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16340
sed -n '
16341
s/.\{148\}/&'"$ac_delim"'/g
16342
t rset
16343
:rset
16344
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16345
t def
16346
d
16347
:def
16348
s/\\$//
16349
t bsnl
16350
s/["\\]/\\&/g
16351
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16352
D["\1"]=" \3"/p
16353
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16354
d
16355
:bsnl
16356
s/["\\]/\\&/g
16357
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16358
D["\1"]=" \3\\\\\\n"\\/p
16359
t cont
16360
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16361
t cont
16362
d
16363
:cont
16364
n
16365
s/.\{148\}/&'"$ac_delim"'/g
16366
t clear
16367
:clear
16368
s/\\$//
16369
t bsnlc
16370
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16371
d
16372
:bsnlc
16373
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16374
b cont
16375
' <confdefs.h | sed '
16376
s/'"$ac_delim"'/"\\\
16377
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16378
16379
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380
  for (key in D) D_is_set[key] = 1
16381
  FS = ""
16382
}
16383
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16384
  line = \$ 0
16385
  split(line, arg, " ")
16386
  if (arg[1] == "#") {
16387
    defundef = arg[2]
16388
    mac1 = arg[3]
16389
  } else {
16390
    defundef = substr(arg[1], 2)
16391
    mac1 = arg[2]
16392
  }
16393
  split(mac1, mac2, "(") #)
16394
  macro = mac2[1]
16395
  prefix = substr(line, 1, index(line, defundef) - 1)
16396
  if (D_is_set[macro]) {
16397
    # Preserve the white space surrounding the "#".
16398
    print prefix "define", macro P[macro] D[macro]
16399
    next
16400
  } else {
16401
    # Replace #undef with comments.  This is necessary, for example,
16402
    # in the case of _POSIX_SOURCE, which is predefined and required
16403
    # on some systems where configure will not decide to define it.
16404
    if (defundef == "undef") {
16405
      print "/*", prefix defundef, macro, "*/"
16406
      next
16407
    }
16408
  }
16409
}
16410
{ print }
16411
_ACAWK
16412
_ACEOF
16413
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16414
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16415
fi # test -n "$CONFIG_HEADERS"
16416
16417
16418
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16419
shift
16420
for ac_tag
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16421
do
16422
  case $ac_tag in
16423
  :[FHLC]) ac_mode=$ac_tag; continue;;
16424
  esac
16425
  case $ac_mode$ac_tag in
16426
  :[FHL]*:*);;
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16427
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16428
  :[FH]-) ac_tag=-:-;;
16429
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16430
  esac
16431
  ac_save_IFS=$IFS
16432
  IFS=:
16433
  set x $ac_tag
16434
  IFS=$ac_save_IFS
16435
  shift
16436
  ac_file=$1
16437
  shift
16438
16439
  case $ac_mode in
16440
  :L) ac_source=$1;;
16441
  :[FH])
16442
    ac_file_inputs=
16443
    for ac_f
16444
    do
16445
      case $ac_f in
16446
      -) ac_f="$tmp/stdin";;
16447
      *) # Look for the file first in the build tree, then in the source tree
16448
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16449
	 # because $ac_f cannot contain `:'.
16450
	 test -f "$ac_f" ||
16451
	   case $ac_f in
16452
	   [\\/$]*) false;;
16453
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16454
	   esac ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16455
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16456
      esac
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16457
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16458
      as_fn_append ac_file_inputs " '$ac_f'"
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16459
    done
16460
16461
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16462
    # use $as_me), people would be surprised to read:
16463
    #    /* config.h.  Generated by config.status.  */
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16464
    configure_input='Generated from '`
16465
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16466
	`' by configure.'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16467
    if test x"$ac_file" != x-; then
16468
      configure_input="$ac_file.  $configure_input"
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16469
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16470
$as_echo "$as_me: creating $ac_file" >&6;}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16471
    fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16472
    # Neutralize special characters interpreted by sed in replacement strings.
16473
    case $configure_input in #(
16474
    *\&* | *\|* | *\\* )
16475
       ac_sed_conf_input=`$as_echo "$configure_input" |
16476
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16477
    *) ac_sed_conf_input=$configure_input;;
16478
    esac
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16479
16480
    case $ac_tag in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16481
    *:-:* | *:-) cat >"$tmp/stdin" \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16482
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16483
    esac
16484
    ;;
16485
  esac
16486
16487
  ac_dir=`$as_dirname -- "$ac_file" ||
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16488
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489
	 X"$ac_file" : 'X\(//\)[^/]' \| \
16490
	 X"$ac_file" : 'X\(//\)$' \| \
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16491
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16492
$as_echo X"$ac_file" |
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16493
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16494
	    s//\1/
16495
	    q
16496
	  }
16497
	  /^X\(\/\/\)[^/].*/{
16498
	    s//\1/
16499
	    q
16500
	  }
16501
	  /^X\(\/\/\)$/{
16502
	    s//\1/
16503
	    q
16504
	  }
16505
	  /^X\(\/\).*/{
16506
	    s//\1/
16507
	    q
16508
	  }
16509
	  s/.*/./; q'`
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16510
  as_dir="$ac_dir"; as_fn_mkdir_p
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16511
  ac_builddir=.
16512
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16513
case "$ac_dir" in
16514
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16515
*)
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16516
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16517
  # A ".." for each directory in $ac_dir_suffix.
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16518
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16519
  case $ac_top_builddir_sub in
16520
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16521
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16522
  esac ;;
16523
esac
16524
ac_abs_top_builddir=$ac_pwd
16525
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16526
# for backward compatibility:
16527
ac_top_builddir=$ac_top_build_prefix
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16528
16529
case $srcdir in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16530
  .)  # We are building in place.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16531
    ac_srcdir=.
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16532
    ac_top_srcdir=$ac_top_builddir_sub
16533
    ac_abs_top_srcdir=$ac_pwd ;;
16534
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16535
    ac_srcdir=$srcdir$ac_dir_suffix;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16536
    ac_top_srcdir=$srcdir
16537
    ac_abs_top_srcdir=$srcdir ;;
16538
  *) # Relative name.
16539
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16540
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16541
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16542
esac
16543
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16544
16545
16546
  case $ac_mode in
16547
  :F)
16548
  #
16549
  # CONFIG_FILE
16550
  #
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16551
16552
  case $INSTALL in
16553
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16554
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16555
  esac
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
16556
  ac_MKDIR_P=$MKDIR_P
16557
  case $MKDIR_P in
16558
  [\\/$]* | ?:[\\/]* ) ;;
16559
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16560
  esac
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16561
_ACEOF
16562
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16563
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16564
# If the template does not know about datarootdir, expand it.
16565
# FIXME: This hack should be removed a few years after 2.60.
16566
ac_datarootdir_hack=; ac_datarootdir_seen=
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16567
ac_sed_dataroot='
16568
/datarootdir/ {
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16569
  p
16570
  q
16571
}
16572
/@datadir@/p
16573
/@docdir@/p
16574
/@infodir@/p
16575
/@localedir@/p
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16576
/@mandir@/p'
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16577
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16578
*datarootdir*) ac_datarootdir_seen=yes;;
16579
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16580
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16581
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16582
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16583
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16584
  ac_datarootdir_hack='
16585
  s&@datadir@&$datadir&g
16586
  s&@docdir@&$docdir&g
16587
  s&@infodir@&$infodir&g
16588
  s&@localedir@&$localedir&g
16589
  s&@mandir@&$mandir&g
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16590
  s&\\\${datarootdir}&$datarootdir&g' ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16591
esac
16592
_ACEOF
16593
16594
# Neutralize VPATH when `$srcdir' = `.'.
16595
# Shell code in configure.ac might set extrasub.
16596
# FIXME: do we really want to maintain this feature?
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16597
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16598
ac_sed_extra="$ac_vpsub
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16599
$extrasub
16600
_ACEOF
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16601
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
16602
:t
16603
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16604
s|@configure_input@|$ac_sed_conf_input|;t t
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16605
s&@top_builddir@&$ac_top_builddir_sub&;t t
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16606
s&@top_build_prefix@&$ac_top_build_prefix&;t t
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16607
s&@srcdir@&$ac_srcdir&;t t
16608
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16609
s&@top_srcdir@&$ac_top_srcdir&;t t
16610
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16611
s&@builddir@&$ac_builddir&;t t
16612
s&@abs_builddir@&$ac_abs_builddir&;t t
16613
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16614
s&@INSTALL@&$ac_INSTALL&;t t
79 by Colin Watson
* apt-install only attempts to install packages not already installed,
16615
s&@MKDIR_P@&$ac_MKDIR_P&;t t
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16616
$ac_datarootdir_hack
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16617
"
16618
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16619
  || as_fn_error "could not create $ac_file" "$LINENO" 5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16620
16621
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16622
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51 by Colin Watson
* Rename configure.in to configure.ac.
16623
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16624
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16625
which seems to be undefined.  Please make sure it is defined." >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16626
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16627
which seems to be undefined.  Please make sure it is defined." >&2;}
16628
16629
  rm -f "$tmp/stdin"
16630
  case $ac_file in
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16631
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16632
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16633
  esac \
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16634
  || as_fn_error "could not create $ac_file" "$LINENO" 5
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16635
 ;;
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16636
  :H)
16637
  #
16638
  # CONFIG_HEADER
16639
  #
16640
  if test x"$ac_file" != x-; then
16641
    {
16642
      $as_echo "/* $configure_input  */" \
16643
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16644
    } >"$tmp/config.h" \
16645
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16646
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16647
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16648
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16649
    else
16650
      rm -f "$ac_file"
16651
      mv "$tmp/config.h" "$ac_file" \
16652
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16653
    fi
16654
  else
16655
    $as_echo "/* $configure_input  */" \
16656
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16657
      || as_fn_error "could not create -" "$LINENO" 5
16658
  fi
16659
# Compute "$ac_file"'s index in $config_headers.
16660
_am_arg="$ac_file"
16661
_am_stamp_count=1
16662
for _am_header in $config_headers :; do
16663
  case $_am_header in
16664
    $_am_arg | $_am_arg:* )
16665
      break ;;
16666
    * )
16667
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16668
  esac
16669
done
16670
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16671
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16673
	 X"$_am_arg" : 'X\(//\)$' \| \
16674
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16675
$as_echo X"$_am_arg" |
16676
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16677
	    s//\1/
16678
	    q
16679
	  }
16680
	  /^X\(\/\/\)[^/].*/{
16681
	    s//\1/
16682
	    q
16683
	  }
16684
	  /^X\(\/\/\)$/{
16685
	    s//\1/
16686
	    q
16687
	  }
16688
	  /^X\(\/\).*/{
16689
	    s//\1/
16690
	    q
16691
	  }
16692
	  s/.*/./; q'`/stamp-h$_am_stamp_count
16693
 ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16694
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
16695
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
16696
$as_echo "$as_me: executing $ac_file commands" >&6;}
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
16697
 ;;
16698
  esac
16699
16700
16701
  case $ac_file$ac_mode in
314 by Colin Watson, Didier Roche, Evan Dandrea, Colin Watson
[ Didier Roche ]
16702
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16703
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16704
  # are listed without --file.  Let's play safe and only enable the eval
16705
  # if we detect the quoting.
16706
  case $CONFIG_FILES in
16707
  *\'*) eval set x "$CONFIG_FILES" ;;
16708
  *)   set x $CONFIG_FILES ;;
16709
  esac
16710
  shift
16711
  for mf
16712
  do
16713
    # Strip MF so we end up with the name of the file.
16714
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16715
    # Check whether this is an Automake generated Makefile or not.
16716
    # We used to match only the files named `Makefile.in', but
16717
    # some people rename them; so instead we look at the file content.
16718
    # Grep'ing the first line is not enough: some people post-process
16719
    # each Makefile.in and add a new line on top of each file to say so.
16720
    # Grep'ing the whole file is not good either: AIX grep has a line
16721
    # limit of 2048, but all sed's we know have understand at least 4000.
16722
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16723
      dirpart=`$as_dirname -- "$mf" ||
16724
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16725
	 X"$mf" : 'X\(//\)[^/]' \| \
16726
	 X"$mf" : 'X\(//\)$' \| \
16727
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16728
$as_echo X"$mf" |
16729
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16730
	    s//\1/
16731
	    q
16732
	  }
16733
	  /^X\(\/\/\)[^/].*/{
16734
	    s//\1/
16735
	    q
16736
	  }
16737
	  /^X\(\/\/\)$/{
16738
	    s//\1/
16739
	    q
16740
	  }
16741
	  /^X\(\/\).*/{
16742
	    s//\1/
16743
	    q
16744
	  }
16745
	  s/.*/./; q'`
16746
    else
16747
      continue
16748
    fi
16749
    # Extract the definition of DEPDIR, am__include, and am__quote
16750
    # from the Makefile without running `make'.
16751
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16752
    test -z "$DEPDIR" && continue
16753
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16754
    test -z "am__include" && continue
16755
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16756
    # When using ansi2knr, U may be empty or an underscore; expand it
16757
    U=`sed -n 's/^U = //p' < "$mf"`
16758
    # Find all dependency output files, they are included files with
16759
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16760
    # simplest approach to changing $(DEPDIR) to its actual value in the
16761
    # expansion.
16762
    for file in `sed -n "
16763
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16764
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16765
      # Make sure the directory exists.
16766
      test -f "$dirpart/$file" && continue
16767
      fdir=`$as_dirname -- "$file" ||
16768
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16769
	 X"$file" : 'X\(//\)[^/]' \| \
16770
	 X"$file" : 'X\(//\)$' \| \
16771
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16772
$as_echo X"$file" |
16773
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16774
	    s//\1/
16775
	    q
16776
	  }
16777
	  /^X\(\/\/\)[^/].*/{
16778
	    s//\1/
16779
	    q
16780
	  }
16781
	  /^X\(\/\/\)$/{
16782
	    s//\1/
16783
	    q
16784
	  }
16785
	  /^X\(\/\).*/{
16786
	    s//\1/
16787
	    q
16788
	  }
16789
	  s/.*/./; q'`
16790
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16791
      # echo "creating $dirpart/$file"
16792
      echo '# dummy' > "$dirpart/$file"
16793
    done
16794
  done
16795
}
16796
 ;;
16797
    "libtool":C)
16798
16799
    # See if we are running on zsh, and set the options which allow our
16800
    # commands through without removal of \ escapes.
16801
    if test -n "${ZSH_VERSION+set}" ; then
16802
      setopt NO_GLOB_SUBST
16803
    fi
16804
16805
    cfgfile="${ofile}T"
16806
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16807
    $RM "$cfgfile"
16808
16809
    cat <<_LT_EOF >> "$cfgfile"
16810
#! $SHELL
16811
16812
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16813
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16814
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16815
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16816
#
16817
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16818
#                 2006, 2007, 2008 Free Software Foundation, Inc.
16819
#   Written by Gordon Matzigkeit, 1996
16820
#
16821
#   This file is part of GNU Libtool.
16822
#
16823
# GNU Libtool is free software; you can redistribute it and/or
16824
# modify it under the terms of the GNU General Public License as
16825
# published by the Free Software Foundation; either version 2 of
16826
# the License, or (at your option) any later version.
16827
#
16828
# As a special exception to the GNU General Public License,
16829
# if you distribute this file as part of a program or library that
16830
# is built using GNU Libtool, you may include this file under the
16831
# same distribution terms that you use for the rest of that program.
16832
#
16833
# GNU Libtool is distributed in the hope that it will be useful,
16834
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16835
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16836
# GNU General Public License for more details.
16837
#
16838
# You should have received a copy of the GNU General Public License
16839
# along with GNU Libtool; see the file COPYING.  If not, a copy
16840
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16841
# obtained by writing to the Free Software Foundation, Inc.,
16842
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16843
16844
16845
# The names of the tagged configurations supported by this script.
16846
available_tags=""
16847
16848
# ### BEGIN LIBTOOL CONFIG
16849
16850
# Which release of libtool.m4 was used?
16851
macro_version=$macro_version
16852
macro_revision=$macro_revision
16853
16854
# Whether or not to build shared libraries.
16855
build_libtool_libs=$enable_shared
16856
16857
# Whether or not to build static libraries.
16858
build_old_libs=$enable_static
16859
16860
# What type of objects to build.
16861
pic_mode=$pic_mode
16862
16863
# Whether or not to optimize for fast installation.
16864
fast_install=$enable_fast_install
16865
16866
# The host system.
16867
host_alias=$host_alias
16868
host=$host
16869
host_os=$host_os
16870
16871
# The build system.
16872
build_alias=$build_alias
16873
build=$build
16874
build_os=$build_os
16875
16876
# A sed program that does not truncate output.
16877
SED=$lt_SED
16878
16879
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16880
Xsed="\$SED -e 1s/^X//"
16881
16882
# A grep program that handles long lines.
16883
GREP=$lt_GREP
16884
16885
# An ERE matcher.
16886
EGREP=$lt_EGREP
16887
16888
# A literal string matcher.
16889
FGREP=$lt_FGREP
16890
16891
# A BSD- or MS-compatible name lister.
16892
NM=$lt_NM
16893
16894
# Whether we need soft or hard links.
16895
LN_S=$lt_LN_S
16896
16897
# What is the maximum length of a command?
16898
max_cmd_len=$max_cmd_len
16899
16900
# Object file suffix (normally "o").
16901
objext=$ac_objext
16902
16903
# Executable file suffix (normally "").
16904
exeext=$exeext
16905
16906
# whether the shell understands "unset".
16907
lt_unset=$lt_unset
16908
16909
# turn spaces into newlines.
16910
SP2NL=$lt_lt_SP2NL
16911
16912
# turn newlines into spaces.
16913
NL2SP=$lt_lt_NL2SP
16914
16915
# How to create reloadable object files.
16916
reload_flag=$lt_reload_flag
16917
reload_cmds=$lt_reload_cmds
16918
16919
# An object symbol dumper.
16920
OBJDUMP=$lt_OBJDUMP
16921
16922
# Method to check whether dependent libraries are shared objects.
16923
deplibs_check_method=$lt_deplibs_check_method
16924
16925
# Command to use when deplibs_check_method == "file_magic".
16926
file_magic_cmd=$lt_file_magic_cmd
16927
16928
# The archiver.
16929
AR=$lt_AR
16930
AR_FLAGS=$lt_AR_FLAGS
16931
16932
# A symbol stripping program.
16933
STRIP=$lt_STRIP
16934
16935
# Commands used to install an old-style archive.
16936
RANLIB=$lt_RANLIB
16937
old_postinstall_cmds=$lt_old_postinstall_cmds
16938
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16939
16940
# A C compiler.
16941
LTCC=$lt_CC
16942
16943
# LTCC compiler flags.
16944
LTCFLAGS=$lt_CFLAGS
16945
16946
# Take the output of nm and produce a listing of raw symbols and C names.
16947
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16948
16949
# Transform the output of nm in a proper C declaration.
16950
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16951
16952
# Transform the output of nm in a C name address pair.
16953
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16954
16955
# Transform the output of nm in a C name address pair when lib prefix is needed.
16956
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16957
16958
# The name of the directory that contains temporary libtool files.
16959
objdir=$objdir
16960
16961
# Shell to use when invoking shell scripts.
16962
SHELL=$lt_SHELL
16963
16964
# An echo program that does not interpret backslashes.
16965
ECHO=$lt_ECHO
16966
16967
# Used to examine libraries when file_magic_cmd begins with "file".
16968
MAGIC_CMD=$MAGIC_CMD
16969
16970
# Must we lock files when doing compilation?
16971
need_locks=$lt_need_locks
16972
16973
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16974
DSYMUTIL=$lt_DSYMUTIL
16975
16976
# Tool to change global to local symbols on Mac OS X.
16977
NMEDIT=$lt_NMEDIT
16978
16979
# Tool to manipulate fat objects and archives on Mac OS X.
16980
LIPO=$lt_LIPO
16981
16982
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16983
OTOOL=$lt_OTOOL
16984
16985
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16986
OTOOL64=$lt_OTOOL64
16987
16988
# Old archive suffix (normally "a").
16989
libext=$libext
16990
16991
# Shared library suffix (normally ".so").
16992
shrext_cmds=$lt_shrext_cmds
16993
16994
# The commands to extract the exported symbol list from a shared archive.
16995
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16996
16997
# Variables whose values should be saved in libtool wrapper scripts and
16998
# restored at link time.
16999
variables_saved_for_relink=$lt_variables_saved_for_relink
17000
17001
# Do we need the "lib" prefix for modules?
17002
need_lib_prefix=$need_lib_prefix
17003
17004
# Do we need a version for libraries?
17005
need_version=$need_version
17006
17007
# Library versioning type.
17008
version_type=$version_type
17009
17010
# Shared library runtime path variable.
17011
runpath_var=$runpath_var
17012
17013
# Shared library path variable.
17014
shlibpath_var=$shlibpath_var
17015
17016
# Is shlibpath searched before the hard-coded library search path?
17017
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17018
17019
# Format of library name prefix.
17020
libname_spec=$lt_libname_spec
17021
17022
# List of archive names.  First name is the real one, the rest are links.
17023
# The last name is the one that the linker finds with -lNAME
17024
library_names_spec=$lt_library_names_spec
17025
17026
# The coded name of the library, if different from the real name.
17027
soname_spec=$lt_soname_spec
17028
17029
# Command to use after installation of a shared archive.
17030
postinstall_cmds=$lt_postinstall_cmds
17031
17032
# Command to use after uninstallation of a shared archive.
17033
postuninstall_cmds=$lt_postuninstall_cmds
17034
17035
# Commands used to finish a libtool library installation in a directory.
17036
finish_cmds=$lt_finish_cmds
17037
17038
# As "finish_cmds", except a single script fragment to be evaled but
17039
# not shown.
17040
finish_eval=$lt_finish_eval
17041
17042
# Whether we should hardcode library paths into libraries.
17043
hardcode_into_libs=$hardcode_into_libs
17044
17045
# Compile-time system search path for libraries.
17046
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17047
17048
# Run-time system search path for libraries.
17049
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17050
17051
# Whether dlopen is supported.
17052
dlopen_support=$enable_dlopen
17053
17054
# Whether dlopen of programs is supported.
17055
dlopen_self=$enable_dlopen_self
17056
17057
# Whether dlopen of statically linked programs is supported.
17058
dlopen_self_static=$enable_dlopen_self_static
17059
17060
# Commands to strip libraries.
17061
old_striplib=$lt_old_striplib
17062
striplib=$lt_striplib
17063
17064
17065
# The linker used to build libraries.
17066
LD=$lt_LD
17067
17068
# Commands used to build an old-style archive.
17069
old_archive_cmds=$lt_old_archive_cmds
17070
17071
# A language specific compiler.
17072
CC=$lt_compiler
17073
17074
# Is the compiler the GNU compiler?
17075
with_gcc=$GCC
17076
17077
# Compiler flag to turn off builtin functions.
17078
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17079
17080
# How to pass a linker flag through the compiler.
17081
wl=$lt_lt_prog_compiler_wl
17082
17083
# Additional compiler flags for building library objects.
17084
pic_flag=$lt_lt_prog_compiler_pic
17085
17086
# Compiler flag to prevent dynamic linking.
17087
link_static_flag=$lt_lt_prog_compiler_static
17088
17089
# Does compiler simultaneously support -c and -o options?
17090
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17091
17092
# Whether or not to add -lc for building shared libraries.
17093
build_libtool_need_lc=$archive_cmds_need_lc
17094
17095
# Whether or not to disallow shared libs when runtime libs are static.
17096
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17097
17098
# Compiler flag to allow reflexive dlopens.
17099
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17100
17101
# Compiler flag to generate shared objects directly from archives.
17102
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17103
17104
# Whether the compiler copes with passing no objects directly.
17105
compiler_needs_object=$lt_compiler_needs_object
17106
17107
# Create an old-style archive from a shared archive.
17108
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17109
17110
# Create a temporary old-style archive to link instead of a shared archive.
17111
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17112
17113
# Commands used to build a shared archive.
17114
archive_cmds=$lt_archive_cmds
17115
archive_expsym_cmds=$lt_archive_expsym_cmds
17116
17117
# Commands used to build a loadable module if different from building
17118
# a shared archive.
17119
module_cmds=$lt_module_cmds
17120
module_expsym_cmds=$lt_module_expsym_cmds
17121
17122
# Whether we are building with GNU ld or not.
17123
with_gnu_ld=$lt_with_gnu_ld
17124
17125
# Flag that allows shared libraries with undefined symbols to be built.
17126
allow_undefined_flag=$lt_allow_undefined_flag
17127
17128
# Flag that enforces no undefined symbols.
17129
no_undefined_flag=$lt_no_undefined_flag
17130
17131
# Flag to hardcode \$libdir into a binary during linking.
17132
# This must work even if \$libdir does not exist
17133
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17134
17135
# If ld is used when linking, flag to hardcode \$libdir into a binary
17136
# during linking.  This must work even if \$libdir does not exist.
17137
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17138
17139
# Whether we need a single "-rpath" flag with a separated argument.
17140
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17141
17142
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17143
# DIR into the resulting binary.
17144
hardcode_direct=$hardcode_direct
17145
17146
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17147
# DIR into the resulting binary and the resulting library dependency is
17148
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17149
# library is relocated.
17150
hardcode_direct_absolute=$hardcode_direct_absolute
17151
17152
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17153
# into the resulting binary.
17154
hardcode_minus_L=$hardcode_minus_L
17155
17156
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17157
# into the resulting binary.
17158
hardcode_shlibpath_var=$hardcode_shlibpath_var
17159
17160
# Set to "yes" if building a shared library automatically hardcodes DIR
17161
# into the library and all subsequent libraries and executables linked
17162
# against it.
17163
hardcode_automatic=$hardcode_automatic
17164
17165
# Set to yes if linker adds runtime paths of dependent libraries
17166
# to runtime path list.
17167
inherit_rpath=$inherit_rpath
17168
17169
# Whether libtool must link a program against all its dependency libraries.
17170
link_all_deplibs=$link_all_deplibs
17171
17172
# Fix the shell variable \$srcfile for the compiler.
17173
fix_srcfile_path=$lt_fix_srcfile_path
17174
17175
# Set to "yes" if exported symbols are required.
17176
always_export_symbols=$always_export_symbols
17177
17178
# The commands to list exported symbols.
17179
export_symbols_cmds=$lt_export_symbols_cmds
17180
17181
# Symbols that should not be listed in the preloaded symbols.
17182
exclude_expsyms=$lt_exclude_expsyms
17183
17184
# Symbols that must always be exported.
17185
include_expsyms=$lt_include_expsyms
17186
17187
# Commands necessary for linking programs (against libraries) with templates.
17188
prelink_cmds=$lt_prelink_cmds
17189
17190
# Specify filename containing input files.
17191
file_list_spec=$lt_file_list_spec
17192
17193
# How to hardcode a shared library path into an executable.
17194
hardcode_action=$hardcode_action
17195
17196
# ### END LIBTOOL CONFIG
17197
17198
_LT_EOF
17199
17200
  case $host_os in
17201
  aix3*)
17202
    cat <<\_LT_EOF >> "$cfgfile"
17203
# AIX sometimes has problems with the GCC collect2 program.  For some
17204
# reason, if we set the COLLECT_NAMES environment variable, the problems
17205
# vanish in a puff of smoke.
17206
if test "X${COLLECT_NAMES+set}" != Xset; then
17207
  COLLECT_NAMES=
17208
  export COLLECT_NAMES
17209
fi
17210
_LT_EOF
17211
    ;;
17212
  esac
17213
17214
17215
ltmain="$ac_aux_dir/ltmain.sh"
17216
17217
17218
  # We use sed instead of cat because bash on DJGPP gets confused if
17219
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17220
  # text mode, it properly converts lines to CR/LF.  This bash problem
17221
  # is reportedly fixed, but why not run on old versions too?
17222
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17223
    || (rm -f "$cfgfile"; exit 1)
17224
17225
  case $xsi_shell in
17226
  yes)
17227
    cat << \_LT_EOF >> "$cfgfile"
17228
17229
# func_dirname file append nondir_replacement
17230
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17231
# otherwise set result to NONDIR_REPLACEMENT.
17232
func_dirname ()
17233
{
17234
  case ${1} in
17235
    */*) func_dirname_result="${1%/*}${2}" ;;
17236
    *  ) func_dirname_result="${3}" ;;
17237
  esac
17238
}
17239
17240
# func_basename file
17241
func_basename ()
17242
{
17243
  func_basename_result="${1##*/}"
17244
}
17245
17246
# func_dirname_and_basename file append nondir_replacement
17247
# perform func_basename and func_dirname in a single function
17248
# call:
17249
#   dirname:  Compute the dirname of FILE.  If nonempty,
17250
#             add APPEND to the result, otherwise set result
17251
#             to NONDIR_REPLACEMENT.
17252
#             value returned in "$func_dirname_result"
17253
#   basename: Compute filename of FILE.
17254
#             value retuned in "$func_basename_result"
17255
# Implementation must be kept synchronized with func_dirname
17256
# and func_basename. For efficiency, we do not delegate to
17257
# those functions but instead duplicate the functionality here.
17258
func_dirname_and_basename ()
17259
{
17260
  case ${1} in
17261
    */*) func_dirname_result="${1%/*}${2}" ;;
17262
    *  ) func_dirname_result="${3}" ;;
17263
  esac
17264
  func_basename_result="${1##*/}"
17265
}
17266
17267
# func_stripname prefix suffix name
17268
# strip PREFIX and SUFFIX off of NAME.
17269
# PREFIX and SUFFIX must not contain globbing or regex special
17270
# characters, hashes, percent signs, but SUFFIX may contain a leading
17271
# dot (in which case that matches only a dot).
17272
func_stripname ()
17273
{
17274
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17275
  # positional parameters, so assign one to ordinary parameter first.
17276
  func_stripname_result=${3}
17277
  func_stripname_result=${func_stripname_result#"${1}"}
17278
  func_stripname_result=${func_stripname_result%"${2}"}
17279
}
17280
17281
# func_opt_split
17282
func_opt_split ()
17283
{
17284
  func_opt_split_opt=${1%%=*}
17285
  func_opt_split_arg=${1#*=}
17286
}
17287
17288
# func_lo2o object
17289
func_lo2o ()
17290
{
17291
  case ${1} in
17292
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17293
    *)    func_lo2o_result=${1} ;;
17294
  esac
17295
}
17296
17297
# func_xform libobj-or-source
17298
func_xform ()
17299
{
17300
  func_xform_result=${1%.*}.lo
17301
}
17302
17303
# func_arith arithmetic-term...
17304
func_arith ()
17305
{
17306
  func_arith_result=$(( $* ))
17307
}
17308
17309
# func_len string
17310
# STRING may not start with a hyphen.
17311
func_len ()
17312
{
17313
  func_len_result=${#1}
17314
}
17315
17316
_LT_EOF
17317
    ;;
17318
  *) # Bourne compatible functions.
17319
    cat << \_LT_EOF >> "$cfgfile"
17320
17321
# func_dirname file append nondir_replacement
17322
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17323
# otherwise set result to NONDIR_REPLACEMENT.
17324
func_dirname ()
17325
{
17326
  # Extract subdirectory from the argument.
17327
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17328
  if test "X$func_dirname_result" = "X${1}"; then
17329
    func_dirname_result="${3}"
17330
  else
17331
    func_dirname_result="$func_dirname_result${2}"
17332
  fi
17333
}
17334
17335
# func_basename file
17336
func_basename ()
17337
{
17338
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17339
}
17340
17341
17342
# func_stripname prefix suffix name
17343
# strip PREFIX and SUFFIX off of NAME.
17344
# PREFIX and SUFFIX must not contain globbing or regex special
17345
# characters, hashes, percent signs, but SUFFIX may contain a leading
17346
# dot (in which case that matches only a dot).
17347
# func_strip_suffix prefix name
17348
func_stripname ()
17349
{
17350
  case ${2} in
17351
    .*) func_stripname_result=`$ECHO "X${3}" \
17352
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17353
    *)  func_stripname_result=`$ECHO "X${3}" \
17354
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17355
  esac
17356
}
17357
17358
# sed scripts:
17359
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17360
my_sed_long_arg='1s/^-[^=]*=//'
17361
17362
# func_opt_split
17363
func_opt_split ()
17364
{
17365
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17366
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17367
}
17368
17369
# func_lo2o object
17370
func_lo2o ()
17371
{
17372
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17373
}
17374
17375
# func_xform libobj-or-source
17376
func_xform ()
17377
{
17378
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17379
}
17380
17381
# func_arith arithmetic-term...
17382
func_arith ()
17383
{
17384
  func_arith_result=`expr "$@"`
17385
}
17386
17387
# func_len string
17388
# STRING may not start with a hyphen.
17389
func_len ()
17390
{
17391
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17392
}
17393
17394
_LT_EOF
17395
esac
17396
17397
case $lt_shell_append in
17398
  yes)
17399
    cat << \_LT_EOF >> "$cfgfile"
17400
17401
# func_append var value
17402
# Append VALUE to the end of shell variable VAR.
17403
func_append ()
17404
{
17405
  eval "$1+=\$2"
17406
}
17407
_LT_EOF
17408
    ;;
17409
  *)
17410
    cat << \_LT_EOF >> "$cfgfile"
17411
17412
# func_append var value
17413
# Append VALUE to the end of shell variable VAR.
17414
func_append ()
17415
{
17416
  eval "$1=\$$1\$2"
17417
}
17418
17419
_LT_EOF
17420
    ;;
17421
  esac
17422
17423
17424
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17425
    || (rm -f "$cfgfile"; exit 1)
17426
17427
  mv -f "$cfgfile" "$ofile" ||
17428
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17429
  chmod +x "$ofile"
17430
17431
 ;;
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
17432
    "po-directories":C)
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
17433
    for ac_file in $CONFIG_FILES; do
17434
      # Support "outfile[:infile[:infile...]]"
17435
      case "$ac_file" in
17436
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17437
      esac
17438
      # PO directories have a Makefile.in generated from Makefile.in.in.
17439
      case "$ac_file" in */Makefile.in)
17440
        # Adjust a relative srcdir.
17441
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17442
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17443
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17444
        # In autoconf-2.13 it is called $ac_given_srcdir.
17445
        # In autoconf-2.50 it is called $srcdir.
17446
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17447
        case "$ac_given_srcdir" in
17448
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17449
          /*) top_srcdir="$ac_given_srcdir" ;;
17450
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17451
        esac
17452
        # Treat a directory as a PO directory if and only if it has a
17453
        # POTFILES.in file. This allows packages to have multiple PO
17454
        # directories under different names or in different locations.
17455
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17456
          rm -f "$ac_dir/POTFILES"
17457
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17458
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17459
          POMAKEFILEDEPS="POTFILES.in"
17460
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17461
          # on $ac_dir but don't depend on user-specified configuration
17462
          # parameters.
17463
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17464
            # The LINGUAS file contains the set of available languages.
17465
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17466
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17467
            fi
17468
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
17469
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
17470
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17471
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17472
          else
17473
            # The set of available languages was given in configure.in.
135 by Colin Watson, Evan Dandrea, Colin Watson, Mario Limonciello
[ Evan Dandrea ]
17474
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
17475
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17476
          fi
17477
          # Compute POFILES
17478
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17479
          # Compute UPDATEPOFILES
17480
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17481
          # Compute DUMMYPOFILES
17482
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17483
          # Compute GMOFILES
17484
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17485
          case "$ac_given_srcdir" in
17486
            .) srcdirpre= ;;
17487
            *) srcdirpre='$(srcdir)/' ;;
17488
          esac
17489
          POFILES=
17490
          UPDATEPOFILES=
17491
          DUMMYPOFILES=
17492
          GMOFILES=
17493
          for lang in $ALL_LINGUAS; do
17494
            POFILES="$POFILES $srcdirpre$lang.po"
17495
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17496
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17497
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17498
          done
17499
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17500
          # environment variable.
17501
          INST_LINGUAS=
17502
          if test -n "$ALL_LINGUAS"; then
17503
            for presentlang in $ALL_LINGUAS; do
17504
              useit=no
17505
              if test "%UNSET%" != "$LINGUAS"; then
17506
                desiredlanguages="$LINGUAS"
17507
              else
17508
                desiredlanguages="$ALL_LINGUAS"
17509
              fi
17510
              for desiredlang in $desiredlanguages; do
17511
                # Use the presentlang catalog if desiredlang is
17512
                #   a. equal to presentlang, or
17513
                #   b. a variant of presentlang (because in this case,
17514
                #      presentlang can be used as a fallback for messages
17515
                #      which are not translated in the desiredlang catalog).
17516
                case "$desiredlang" in
17517
                  "$presentlang"*) useit=yes;;
17518
                esac
17519
              done
17520
              if test $useit = yes; then
17521
                INST_LINGUAS="$INST_LINGUAS $presentlang"
17522
              fi
17523
            done
17524
          fi
17525
          CATALOGS=
17526
          if test -n "$INST_LINGUAS"; then
17527
            for lang in $INST_LINGUAS; do
17528
              CATALOGS="$CATALOGS $lang.gmo"
17529
            done
17530
          fi
17531
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17532
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17533
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17534
            if test -f "$f"; then
17535
              case "$f" in
17536
                *.orig | *.bak | *~) ;;
17537
                *) cat "$f" >> "$ac_dir/Makefile" ;;
17538
              esac
17539
            fi
17540
          done
17541
        fi
17542
        ;;
17543
      esac
17544
    done ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
17545
    "po/stamp-it":C)
227 by Evan Dandrea, Colin Watson, Evan Dandrea
[ Colin Watson ]
17546
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
17547
       as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
196 by Evan Dandrea, Jonathan Riddell, Andreas Wenning, Evan Dandrea, Mario Limonciello, Colin Watson
[ Jonathan Riddell ]
17548
    fi
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
17549
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17550
    >"po/stamp-it.tmp"
17551
    sed '/^#/d
17552
	 s/^[[].*] *//
17553
	 /^[ 	]*$/d
17554
	'"s|^|	$ac_top_srcdir/|" \
17555
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17556
17557
    sed '/^POTFILES =/,/[^\\]$/ {
17558
		/^POTFILES =/!d
17559
		r po/POTFILES
17560
	  }
193 by Evan Dandrea, Colin Watson, Evan Dandrea, Emmet Hikory
[ Colin Watson ]
17561
	 ' "po/Makefile.in" >"po/Makefile"
18 by Colin Watson, Colin Watson, Scott James Remnant
[ Colin Watson ]
17562
    rm -f "po/Makefile.tmp"
17563
    mv "po/stamp-it.tmp" "po/stamp-it"
17564
   ;;
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
17565
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17566
  esac
43 by Colin Watson
* Add 3% to the "Removing extra packages" stage of the installation
17567
done # for ac_tag
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17568
17569
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
17570
as_fn_exit 0
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17571
_ACEOF
17572
ac_clean_files=$ac_clean_files_save
17573
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
17574
test $ac_write_fail = 0 ||
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
17575
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
17576
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17577
17578
# configure is writing to config.log, and then calls config.status.
17579
# config.status does its own redirection, appending to config.log.
17580
# Unfortunately, on DOS this fails, as config.log is still kept open
17581
# by configure, so config.status won't be able to write to it; its
17582
# output is simply discarded.  So we exec the FD to /dev/null,
17583
# effectively closing config.log, so it can be properly (re)opened and
17584
# appended to by config.status.  When coming back to configure, we
17585
# need to make the FD available again.
17586
if test "$no_create" != yes; then
17587
  ac_cs_success=:
17588
  ac_config_status_args=
17589
  test "$silent" = yes &&
17590
    ac_config_status_args="$ac_config_status_args --quiet"
17591
  exec 5>/dev/null
17592
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17593
  exec 5>>config.log
17594
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17595
  # would make configure fail if this is the last instruction.
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
17596
  $ac_cs_success || as_fn_exit $?
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17597
fi
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
17598
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
256 by Evan Dandrea, Colin Watson, Roman Shtylman, Evan Dandrea, Michael Terry
[ Colin Watson ]
17599
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
222 by Colin Watson
* Refactor architecture/subarchitecture detection slightly.
17600
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17601
fi
1 by Colin Watson
Rename from espresso to ubiquity, to better suggest an association with
17602
331.1.15 by Evan Dandrea, Mario Limonciello, Bilal Akhtar, Evan Dandrea
[ Mario Limonciello ]
17603