~ubuntu-branches/ubuntu/precise/libdbusmenu/precise

2 by Jonathan Riddell
Run autogen.sh before upload
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
1.1.62 by Ken VanDine
Import upstream version 0.5.96
3
# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.96.
2 by Jonathan Riddell
Run autogen.sh before upload
4
#
5
# Report bugs to <ted@canonical.com>.
6
#
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
7
#
2 by Jonathan Riddell
Run autogen.sh before upload
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.27 by Ted Gould
Import upstream version 0.3.10
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
# Foundation, Inc.
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
11
#
2 by Jonathan Riddell
Run autogen.sh before upload
12
#
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
#
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
16
# Copyright 2009,2010 Canonical
2 by Jonathan Riddell
Run autogen.sh before upload
17
## -------------------- ##
18
## M4sh Initialization. ##
19
## -------------------- ##
20
21
# Be more Bourne compatible
22
DUALCASE=1; export DUALCASE # for MKS sh
23
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
  emulate sh
25
  NULLCMD=:
26
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27
  # is contrary to our usage.  Disable this feature.
28
  alias -g '${1+"$@"}'='"$@"'
29
  setopt NO_GLOB_SUBST
30
else
31
  case `(set -o) 2>/dev/null` in #(
32
  *posix*) :
33
    set -o posix ;; #(
34
  *) :
35
     ;;
36
esac
37
fi
38
39
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
# Prefer a ksh shell builtin over an external printf program on Solaris,
48
# but without wasting forks for bash or zsh.
49
if test -z "$BASH_VERSION$ZSH_VERSION" \
50
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51
  as_echo='print -r --'
52
  as_echo_n='print -rn --'
53
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54
  as_echo='printf %s\n'
55
  as_echo_n='printf %s'
56
else
57
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59
    as_echo_n='/usr/ucb/echo -n'
60
  else
61
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
    as_echo_n_body='eval
63
      arg=$1;
64
      case $arg in #(
65
      *"$as_nl"*)
66
	expr "X$arg" : "X\\(.*\\)$as_nl";
67
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68
      esac;
69
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
    '
71
    export as_echo_n_body
72
    as_echo_n='sh -c $as_echo_n_body as_echo'
73
  fi
74
  export as_echo_body
75
  as_echo='sh -c $as_echo_body as_echo'
76
fi
77
78
# The user is always right.
79
if test "${PATH_SEPARATOR+set}" != set; then
80
  PATH_SEPARATOR=:
81
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
      PATH_SEPARATOR=';'
84
  }
85
fi
86
87
88
# IFS
89
# We need space, tab and new line, in precisely that order.  Quoting is
90
# there to prevent editors from complaining about space-tab.
91
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92
# splitting by setting IFS to empty value.)
93
IFS=" ""	$as_nl"
94
95
# Find who we are.  Look in the path if we contain no directory separator.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
96
as_myself=
2 by Jonathan Riddell
Run autogen.sh before upload
97
case $0 in #((
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
  done
106
IFS=$as_save_IFS
107
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  exit 1
118
fi
119
120
# Unset variables that we do not need and which cause bugs (e.g. in
121
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122
# suppresses any "Segmentation fault" message there.  '((' could
123
# trigger a bug in pdksh 5.2.14.
124
for as_var in BASH_ENV ENV MAIL MAILPATH
125
do eval test x\${$as_var+set} = xset \
126
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127
done
128
PS1='$ '
129
PS2='> '
130
PS4='+ '
131
132
# NLS nuisances.
133
LC_ALL=C
134
export LC_ALL
135
LANGUAGE=C
136
export LANGUAGE
137
138
# CDPATH.
139
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141
if test "x$CONFIG_SHELL" = x; then
142
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
  emulate sh
144
  NULLCMD=:
145
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146
  # is contrary to our usage.  Disable this feature.
147
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
  setopt NO_GLOB_SUBST
149
else
150
  case \`(set -o) 2>/dev/null\` in #(
151
  *posix*) :
152
    set -o posix ;; #(
153
  *) :
154
     ;;
155
esac
156
fi
157
"
158
  as_required="as_fn_return () { (exit \$1); }
159
as_fn_success () { as_fn_return 0; }
160
as_fn_failure () { as_fn_return 1; }
161
as_fn_ret_success () { return 0; }
162
as_fn_ret_failure () { return 1; }
163
164
exitcode=0
165
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
171
else
172
  exitcode=1; echo positional parameters were not saved.
173
fi
174
test x\$exitcode = x0 || exit 1"
175
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1.1.50 by Ken VanDine
Import upstream version 0.4.90
179
test \$(( 1 + 1 )) = 2 || exit 1
180
181
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
182
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
183
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
185
    PATH=/empty FPATH=/empty; export PATH FPATH
186
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
187
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2 by Jonathan Riddell
Run autogen.sh before upload
188
  if (eval "$as_required") 2>/dev/null; then :
189
  as_have_required=yes
190
else
191
  as_have_required=no
192
fi
193
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
195
else
196
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197
as_found=false
198
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
do
200
  IFS=$as_save_IFS
201
  test -z "$as_dir" && as_dir=.
202
  as_found=:
203
  case $as_dir in #(
204
	 /*)
205
	   for as_base in sh bash ksh sh5; do
206
	     # Try only shells that exist, to save several forks.
207
	     as_shell=$as_dir/$as_base
208
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
209
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
  CONFIG_SHELL=$as_shell as_have_required=yes
211
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212
  break 2
213
fi
214
fi
215
	   done;;
216
       esac
217
  as_found=false
218
done
219
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
220
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
221
  CONFIG_SHELL=$SHELL as_have_required=yes
222
fi; }
223
IFS=$as_save_IFS
224
225
226
      if test "x$CONFIG_SHELL" != x; then :
227
  # We cannot yet assume a decent shell, so we have to provide a
228
	# neutralization value for shells without unset; and this also
229
	# works around shells that cannot unset nonexistent variables.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
230
	# Preserve -v and -x to the replacement shell.
2 by Jonathan Riddell
Run autogen.sh before upload
231
	BASH_ENV=/dev/null
232
	ENV=/dev/null
233
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
	export CONFIG_SHELL
1.1.50 by Ken VanDine
Import upstream version 0.4.90
235
	case $- in # ((((
236
	  *v*x* | *x*v* ) as_opts=-vx ;;
237
	  *v* ) as_opts=-v ;;
238
	  *x* ) as_opts=-x ;;
239
	  * ) as_opts= ;;
240
	esac
241
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2 by Jonathan Riddell
Run autogen.sh before upload
242
fi
243
244
    if test x$as_have_required = xno; then :
245
  $as_echo "$0: This script requires a shell more modern than all"
246
  $as_echo "$0: the shells that I found on your system."
247
  if test x${ZSH_VERSION+set} = xset ; then
248
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250
  else
251
    $as_echo "$0: Please tell bug-autoconf@gnu.org and ted@canonical.com
252
$0: about your system, including any error possibly output
253
$0: before this message. Then install a modern shell, or
254
$0: manually run the script under such a shell if you do
255
$0: have one."
256
  fi
257
  exit 1
258
fi
259
fi
260
fi
261
SHELL=${CONFIG_SHELL-/bin/sh}
262
export SHELL
263
# Unset more variables known to interfere with behavior of common tools.
264
CLICOLOR_FORCE= GREP_OPTIONS=
265
unset CLICOLOR_FORCE GREP_OPTIONS
266
267
## --------------------- ##
268
## M4sh Shell Functions. ##
269
## --------------------- ##
270
# as_fn_unset VAR
271
# ---------------
272
# Portably unset VAR.
273
as_fn_unset ()
274
{
275
  { eval $1=; unset $1;}
276
}
277
as_unset=as_fn_unset
278
279
# as_fn_set_status STATUS
280
# -----------------------
281
# Set $? to STATUS, without forking.
282
as_fn_set_status ()
283
{
284
  return $1
285
} # as_fn_set_status
286
287
# as_fn_exit STATUS
288
# -----------------
289
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290
as_fn_exit ()
291
{
292
  set +e
293
  as_fn_set_status $1
294
  exit $1
295
} # as_fn_exit
296
297
# as_fn_mkdir_p
298
# -------------
299
# Create "$as_dir" as a directory, including parents if necessary.
300
as_fn_mkdir_p ()
301
{
302
303
  case $as_dir in #(
304
  -*) as_dir=./$as_dir;;
305
  esac
306
  test -d "$as_dir" || eval $as_mkdir_p || {
307
    as_dirs=
308
    while :; do
309
      case $as_dir in #(
310
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311
      *) as_qdir=$as_dir;;
312
      esac
313
      as_dirs="'$as_qdir' $as_dirs"
314
      as_dir=`$as_dirname -- "$as_dir" ||
315
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
316
	 X"$as_dir" : 'X\(//\)[^/]' \| \
317
	 X"$as_dir" : 'X\(//\)$' \| \
318
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319
$as_echo X"$as_dir" |
320
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321
	    s//\1/
322
	    q
323
	  }
324
	  /^X\(\/\/\)[^/].*/{
325
	    s//\1/
326
	    q
327
	  }
328
	  /^X\(\/\/\)$/{
329
	    s//\1/
330
	    q
331
	  }
332
	  /^X\(\/\).*/{
333
	    s//\1/
334
	    q
335
	  }
336
	  s/.*/./; q'`
337
      test -d "$as_dir" && break
338
    done
339
    test -z "$as_dirs" || eval "mkdir $as_dirs"
1.1.27 by Ted Gould
Import upstream version 0.3.10
340
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2 by Jonathan Riddell
Run autogen.sh before upload
341
342
343
} # as_fn_mkdir_p
344
# as_fn_append VAR VALUE
345
# ----------------------
346
# Append the text in VALUE to the end of the definition contained in VAR. Take
347
# advantage of any shell optimizations that allow amortized linear growth over
348
# repeated appends, instead of the typical quadratic growth present in naive
349
# implementations.
350
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
351
  eval 'as_fn_append ()
352
  {
353
    eval $1+=\$2
354
  }'
355
else
356
  as_fn_append ()
357
  {
358
    eval $1=\$$1\$2
359
  }
360
fi # as_fn_append
361
362
# as_fn_arith ARG...
363
# ------------------
364
# Perform arithmetic evaluation on the ARGs, and store the result in the
365
# global $as_val. Take advantage of shells that can avoid forks. The arguments
366
# must be portable across $(()) and expr.
367
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368
  eval 'as_fn_arith ()
369
  {
370
    as_val=$(( $* ))
371
  }'
372
else
373
  as_fn_arith ()
374
  {
375
    as_val=`expr "$@" || test $? -eq 1`
376
  }
377
fi # as_fn_arith
378
379
1.1.27 by Ted Gould
Import upstream version 0.3.10
380
# as_fn_error STATUS ERROR [LINENO LOG_FD]
381
# ----------------------------------------
2 by Jonathan Riddell
Run autogen.sh before upload
382
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
383
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.1.27 by Ted Gould
Import upstream version 0.3.10
384
# script with STATUS, using 1 if that was 0.
2 by Jonathan Riddell
Run autogen.sh before upload
385
as_fn_error ()
386
{
1.1.27 by Ted Gould
Import upstream version 0.3.10
387
  as_status=$1; test $as_status -eq 0 && as_status=1
388
  if test "$4"; then
389
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
390
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2 by Jonathan Riddell
Run autogen.sh before upload
391
  fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
392
  $as_echo "$as_me: error: $2" >&2
2 by Jonathan Riddell
Run autogen.sh before upload
393
  as_fn_exit $as_status
394
} # as_fn_error
395
396
if expr a : '\(a\)' >/dev/null 2>&1 &&
397
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
398
  as_expr=expr
399
else
400
  as_expr=false
401
fi
402
403
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404
  as_basename=basename
405
else
406
  as_basename=false
407
fi
408
409
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410
  as_dirname=dirname
411
else
412
  as_dirname=false
413
fi
414
415
as_me=`$as_basename -- "$0" ||
416
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417
	 X"$0" : 'X\(//\)$' \| \
418
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419
$as_echo X/"$0" |
420
    sed '/^.*\/\([^/][^/]*\)\/*$/{
421
	    s//\1/
422
	    q
423
	  }
424
	  /^X\/\(\/\/\)$/{
425
	    s//\1/
426
	    q
427
	  }
428
	  /^X\/\(\/\).*/{
429
	    s//\1/
430
	    q
431
	  }
432
	  s/.*/./; q'`
433
434
# Avoid depending upon Character Ranges.
435
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
436
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
437
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
438
as_cr_digits='0123456789'
439
as_cr_alnum=$as_cr_Letters$as_cr_digits
440
441
442
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
443
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
444
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
445
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
446
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
447
  sed -n '
448
    p
449
    /[$]LINENO/=
450
  ' <$as_myself |
451
    sed '
452
      s/[$]LINENO.*/&-/
453
      t lineno
454
      b
455
      :lineno
456
      N
457
      :loop
458
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459
      t loop
460
      s/-\n.*//
461
    ' >$as_me.lineno &&
462
  chmod +x "$as_me.lineno" ||
463
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464
465
  # Don't try to exec as it changes $[0], causing all sort of problems
466
  # (the dirname of $[0] is not the place where we might find the
467
  # original and so on.  Autoconf is especially sensitive to this).
468
  . "./$as_me.lineno"
469
  # Exit status is that of the last command.
470
  exit
471
}
472
473
ECHO_C= ECHO_N= ECHO_T=
474
case `echo -n x` in #(((((
475
-n*)
476
  case `echo 'xy\c'` in
477
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478
  xy)  ECHO_C='\c';;
479
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
480
       ECHO_T='	';;
481
  esac;;
482
*)
483
  ECHO_N='-n';;
484
esac
485
486
rm -f conf$$ conf$$.exe conf$$.file
487
if test -d conf$$.dir; then
488
  rm -f conf$$.dir/conf$$.file
489
else
490
  rm -f conf$$.dir
491
  mkdir conf$$.dir 2>/dev/null
492
fi
493
if (echo >conf$$.file) 2>/dev/null; then
494
  if ln -s conf$$.file conf$$ 2>/dev/null; then
495
    as_ln_s='ln -s'
496
    # ... but there are two gotchas:
497
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499
    # In both cases, we have to default to `cp -p'.
500
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501
      as_ln_s='cp -p'
502
  elif ln conf$$.file conf$$ 2>/dev/null; then
503
    as_ln_s=ln
504
  else
505
    as_ln_s='cp -p'
506
  fi
507
else
508
  as_ln_s='cp -p'
509
fi
510
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511
rmdir conf$$.dir 2>/dev/null
512
513
if mkdir -p . 2>/dev/null; then
514
  as_mkdir_p='mkdir -p "$as_dir"'
515
else
516
  test -d ./-p && rmdir ./-p
517
  as_mkdir_p=false
518
fi
519
520
if test -x / >/dev/null 2>&1; then
521
  as_test_x='test -x'
522
else
523
  if ls -dL / >/dev/null 2>&1; then
524
    as_ls_L_option=L
525
  else
526
    as_ls_L_option=
527
  fi
528
  as_test_x='
529
    eval sh -c '\''
530
      if test -d "$1"; then
531
	test -d "$1/.";
532
      else
533
	case $1 in #(
534
	-*)set "./$1";;
535
	esac;
536
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
537
	???[sx]*):;;*)false;;esac;fi
538
    '\'' sh
539
  '
540
fi
541
as_executable_p=$as_test_x
542
543
# Sed expression to map a string onto a valid CPP name.
544
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546
# Sed expression to map a string onto a valid variable name.
547
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
SHELL=${CONFIG_SHELL-/bin/sh}
550
551
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
552
test -n "$DJDIR" || exec 7<&0 </dev/null
553
exec 6>&1
2 by Jonathan Riddell
Run autogen.sh before upload
554
555
# Name of the host.
1.1.27 by Ted Gould
Import upstream version 0.3.10
556
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
2 by Jonathan Riddell
Run autogen.sh before upload
557
# so uname gets run too.
558
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560
#
561
# Initializations.
562
#
563
ac_default_prefix=/usr/local
564
ac_clean_files=
565
ac_config_libobj_dir=.
566
LIBOBJS=
567
cross_compiling=no
568
subdirs=
569
MFLAGS=
570
MAKEFLAGS=
571
572
# Identity of this package.
573
PACKAGE_NAME='libdbusmenu'
574
PACKAGE_TARNAME='libdbusmenu'
1.1.62 by Ken VanDine
Import upstream version 0.5.96
575
PACKAGE_VERSION='0.5.96'
576
PACKAGE_STRING='libdbusmenu 0.5.96'
2 by Jonathan Riddell
Run autogen.sh before upload
577
PACKAGE_BUGREPORT='ted@canonical.com'
578
PACKAGE_URL=''
579
580
# Factoring default headers for most tests.
581
ac_includes_default="\
582
#include <stdio.h>
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
585
#endif
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
588
#endif
589
#ifdef STDC_HEADERS
590
# include <stdlib.h>
591
# include <stddef.h>
592
#else
593
# ifdef HAVE_STDLIB_H
594
#  include <stdlib.h>
595
# endif
596
#endif
597
#ifdef HAVE_STRING_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599
#  include <memory.h>
600
# endif
601
# include <string.h>
602
#endif
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
605
#endif
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
608
#endif
609
#ifdef HAVE_STDINT_H
610
# include <stdint.h>
611
#endif
612
#ifdef HAVE_UNISTD_H
613
# include <unistd.h>
614
#endif"
615
1.1.1 by Martin Pitt
Import upstream version 0.1.0
616
ac_subst_vars='am__EXEEXT_FALSE
617
am__EXEEXT_TRUE
618
LTLIBOBJS
2 by Jonathan Riddell
Run autogen.sh before upload
619
LIBOBJS
620
MKINSTALLDIRS
621
POSUB
622
POFILES
623
PO_IN_DATADIR_FALSE
624
PO_IN_DATADIR_TRUE
625
INTLLIBS
626
INSTOBJEXT
627
GMOFILES
628
CATOBJEXT
629
CATALOGS
630
MSGFMT_OPTS
631
GETTEXT_PACKAGE
632
LIBDBUSMENU_AGE
633
LIBDBUSMENU_REVISION
634
LIBDBUSMENU_CURRENT
1.1.34 by Ted Gould
Import upstream version 0.3.91
635
XSLT_PROC
1.1.53 by Ken VanDine
Import upstream version 0.4.94
636
HAVE_VALA_FALSE
637
HAVE_VALA_TRUE
1.1.15 by Ted Gould
Import upstream version 0.2.7
638
VALA_API_GEN
1.1.34 by Ted Gould
Import upstream version 0.3.91
639
INTROSPECTION_TEN_FALSE
640
INTROSPECTION_TEN_TRUE
1.1.15 by Ted Gould
Import upstream version 0.2.7
641
HAVE_INTROSPECTION_FALSE
642
HAVE_INTROSPECTION_TRUE
643
INTROSPECTION_MAKEFILE
644
INTROSPECTION_LIBS
645
INTROSPECTION_CFLAGS
646
INTROSPECTION_TYPELIBDIR
647
INTROSPECTION_GIRDIR
648
INTROSPECTION_GENERATE
649
INTROSPECTION_COMPILER
650
INTROSPECTION_SCANNER
2 by Jonathan Riddell
Run autogen.sh before upload
651
DBUSMENUTESTS_LIBS
652
DBUSMENUTESTS_CFLAGS
1.1.53 by Ken VanDine
Import upstream version 0.4.94
653
WANT_TESTS_FALSE
654
WANT_TESTS_TRUE
1.1.24 by Ken VanDine
Import upstream version 0.3.7
655
DBUSMENUDUMPER_LIBS
656
DBUSMENUDUMPER_CFLAGS
1.1.53 by Ken VanDine
Import upstream version 0.4.94
657
WANT_DBUSMENUDUMPER_FALSE
658
WANT_DBUSMENUDUMPER_TRUE
659
DBUSMENUGTK_LIBS
660
DBUSMENUGTK_CFLAGS
1.1.33 by Ken VanDine
Import upstream version 0.3.90
661
USE_GTK3_FALSE
662
USE_GTK3_TRUE
1.1.53 by Ken VanDine
Import upstream version 0.4.94
663
WANT_LIBDBUSMENUGTK_FALSE
664
WANT_LIBDBUSMENUGTK_TRUE
2 by Jonathan Riddell
Run autogen.sh before upload
665
DBUSMENUGLIB_LIBS
666
DBUSMENUGLIB_CFLAGS
1.1.19 by Ken VanDine
Import upstream version 0.3.2
667
HAVE_GNOME_DOC_UTILS_FALSE
668
HAVE_GNOME_DOC_UTILS_TRUE
669
DISTCHECK_CONFIGURE_FLAGS
670
ENABLE_SK_FALSE
671
ENABLE_SK_TRUE
672
DOC_USER_FORMATS
673
OMF_DIR
674
HELP_DIR
675
GTK_DOC_USE_REBASE_FALSE
676
GTK_DOC_USE_REBASE_TRUE
677
GTK_DOC_USE_LIBTOOL_FALSE
678
GTK_DOC_USE_LIBTOOL_TRUE
679
GTK_DOC_BUILD_PDF_FALSE
680
GTK_DOC_BUILD_PDF_TRUE
681
GTK_DOC_BUILD_HTML_FALSE
682
GTK_DOC_BUILD_HTML_TRUE
683
ENABLE_GTK_DOC_FALSE
684
ENABLE_GTK_DOC_TRUE
1.1.53 by Ken VanDine
Import upstream version 0.4.94
685
GTKDOC_DEPS_LIBS
686
GTKDOC_DEPS_CFLAGS
1.1.19 by Ken VanDine
Import upstream version 0.3.2
687
HTML_DIR
688
GTKDOC_MKPDF
689
GTKDOC_REBASE
690
GTKDOC_CHECK
1.1.53 by Ken VanDine
Import upstream version 0.4.94
691
PKG_CONFIG_LIBDIR
692
PKG_CONFIG_PATH
693
PKG_CONFIG
1.1.42 by Ken VanDine
Import upstream version 0.3.99
694
GLIB_MKENUMS
1.1.1 by Martin Pitt
Import upstream version 0.1.0
695
AM_BACKSLASH
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
696
AM_DEFAULT_V
697
AM_V
2 by Jonathan Riddell
Run autogen.sh before upload
698
OTOOL64
699
OTOOL
700
LIPO
701
NMEDIT
702
DSYMUTIL
1.1.50 by Ken VanDine
Import upstream version 0.4.90
703
MANIFEST_TOOL
2 by Jonathan Riddell
Run autogen.sh before upload
704
RANLIB
1.1.50 by Ken VanDine
Import upstream version 0.4.90
705
ac_ct_AR
2 by Jonathan Riddell
Run autogen.sh before upload
706
AR
1.1.50 by Ken VanDine
Import upstream version 0.4.90
707
DLLTOOL
2 by Jonathan Riddell
Run autogen.sh before upload
708
OBJDUMP
709
LN_S
710
NM
711
ac_ct_DUMPBIN
712
DUMPBIN
713
LD
714
FGREP
715
SED
716
host_os
717
host_vendor
718
host_cpu
719
host
720
build_os
721
build_vendor
722
build_cpu
723
build
724
LIBTOOL
725
EGREP
726
GREP
727
CPP
728
DATADIRNAME
729
am__fastdepCC_FALSE
730
am__fastdepCC_TRUE
731
CCDEPMODE
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
732
am__nodep
2 by Jonathan Riddell
Run autogen.sh before upload
733
AMDEPBACKSLASH
734
AMDEP_FALSE
735
AMDEP_TRUE
736
am__quote
737
am__include
738
DEPDIR
739
OBJEXT
740
EXEEXT
741
ac_ct_CC
742
CPPFLAGS
743
LDFLAGS
744
CFLAGS
745
CC
746
ALL_LINGUAS
747
INTLTOOL_PERL
748
GMSGFMT
749
MSGFMT
750
MSGMERGE
751
XGETTEXT
752
INTLTOOL_POLICY_RULE
753
INTLTOOL_SERVICE_RULE
754
INTLTOOL_THEME_RULE
755
INTLTOOL_SCHEMAS_RULE
756
INTLTOOL_CAVES_RULE
757
INTLTOOL_XML_NOMERGE_RULE
758
INTLTOOL_XML_RULE
759
INTLTOOL_KBD_RULE
760
INTLTOOL_XAM_RULE
761
INTLTOOL_UI_RULE
762
INTLTOOL_SOUNDLIST_RULE
763
INTLTOOL_SHEET_RULE
764
INTLTOOL_SERVER_RULE
765
INTLTOOL_PONG_RULE
766
INTLTOOL_OAF_RULE
767
INTLTOOL_PROP_RULE
768
INTLTOOL_KEYS_RULE
769
INTLTOOL_DIRECTORY_RULE
770
INTLTOOL_DESKTOP_RULE
1.1.59 by Ted Gould
Import upstream version 0.5.93
771
intltool__v_merge_options_0
772
intltool__v_merge_options_
773
INTLTOOL_V_MERGE_OPTIONS
774
INTLTOOL__v_MERGE_0
775
INTLTOOL__v_MERGE_
776
INTLTOOL_V_MERGE
777
AM_DEFAULT_VERBOSITY
2 by Jonathan Riddell
Run autogen.sh before upload
778
INTLTOOL_EXTRACT
779
INTLTOOL_MERGE
780
INTLTOOL_UPDATE
781
USE_NLS
782
MAINT
783
MAINTAINER_MODE_FALSE
784
MAINTAINER_MODE_TRUE
785
am__untar
786
am__tar
787
AMTAR
788
am__leading_dot
789
SET_MAKE
790
AWK
791
mkdir_p
792
MKDIR_P
793
INSTALL_STRIP_PROGRAM
794
STRIP
795
install_sh
796
MAKEINFO
797
AUTOHEADER
798
AUTOMAKE
799
AUTOCONF
800
ACLOCAL
801
VERSION
802
PACKAGE
803
CYGPATH_W
804
am__isrc
805
INSTALL_DATA
806
INSTALL_SCRIPT
807
INSTALL_PROGRAM
808
target_alias
809
host_alias
810
build_alias
811
LIBS
812
ECHO_T
813
ECHO_N
814
ECHO_C
815
DEFS
816
mandir
817
localedir
818
libdir
819
psdir
820
pdfdir
821
dvidir
822
htmldir
823
infodir
824
docdir
825
oldincludedir
826
includedir
827
localstatedir
828
sharedstatedir
829
sysconfdir
830
datadir
831
datarootdir
832
libexecdir
833
sbindir
834
bindir
835
program_transform_name
836
prefix
837
exec_prefix
838
PACKAGE_URL
839
PACKAGE_BUGREPORT
840
PACKAGE_STRING
841
PACKAGE_VERSION
842
PACKAGE_TARNAME
843
PACKAGE_NAME
844
PATH_SEPARATOR
845
SHELL'
846
ac_subst_files=''
847
ac_user_opts='
848
enable_option_checking
849
enable_maintainer_mode
850
enable_nls
851
enable_dependency_tracking
852
enable_shared
853
enable_static
854
with_pic
855
enable_fast_install
856
with_gnu_ld
1.1.50 by Ken VanDine
Import upstream version 0.4.90
857
with_sysroot
2 by Jonathan Riddell
Run autogen.sh before upload
858
enable_libtool_lock
1.1.1 by Martin Pitt
Import upstream version 0.1.0
859
enable_silent_rules
1.1.19 by Ken VanDine
Import upstream version 0.3.2
860
with_html_dir
861
enable_gtk_doc
862
enable_gtk_doc_html
863
enable_gtk_doc_pdf
864
with_help_dir
865
with_omf_dir
866
with_help_formats
867
enable_scrollkeeper
1.1.53 by Ken VanDine
Import upstream version 0.4.94
868
enable_gtk
1.1.33 by Ken VanDine
Import upstream version 0.3.90
869
with_gtk
1.1.53 by Ken VanDine
Import upstream version 0.4.94
870
enable_dumper
871
enable_tests
1.1.15 by Ted Gould
Import upstream version 0.2.7
872
enable_introspection
1.1.53 by Ken VanDine
Import upstream version 0.4.94
873
enable_vala
1.1.6 by Ted Gould
Import upstream version 0.1.6
874
enable_massivedebugging
2 by Jonathan Riddell
Run autogen.sh before upload
875
'
876
      ac_precious_vars='build_alias
877
host_alias
878
target_alias
879
CC
880
CFLAGS
881
LDFLAGS
882
LIBS
883
CPPFLAGS
884
CPP
885
PKG_CONFIG
1.1.27 by Ted Gould
Import upstream version 0.3.10
886
PKG_CONFIG_PATH
887
PKG_CONFIG_LIBDIR
1.1.53 by Ken VanDine
Import upstream version 0.4.94
888
GTKDOC_DEPS_CFLAGS
889
GTKDOC_DEPS_LIBS
2 by Jonathan Riddell
Run autogen.sh before upload
890
DBUSMENUGLIB_CFLAGS
891
DBUSMENUGLIB_LIBS
892
DBUSMENUGTK_CFLAGS
893
DBUSMENUGTK_LIBS
1.1.24 by Ken VanDine
Import upstream version 0.3.7
894
DBUSMENUDUMPER_CFLAGS
895
DBUSMENUDUMPER_LIBS
2 by Jonathan Riddell
Run autogen.sh before upload
896
DBUSMENUTESTS_CFLAGS
897
DBUSMENUTESTS_LIBS'
898
899
900
# Initialize some variables set by options.
901
ac_init_help=
902
ac_init_version=false
903
ac_unrecognized_opts=
904
ac_unrecognized_sep=
905
# The variables have the same names as the options, with
906
# dashes changed to underlines.
907
cache_file=/dev/null
908
exec_prefix=NONE
909
no_create=
910
no_recursion=
911
prefix=NONE
912
program_prefix=NONE
913
program_suffix=NONE
914
program_transform_name=s,x,x,
915
silent=
916
site=
917
srcdir=
918
verbose=
919
x_includes=NONE
920
x_libraries=NONE
921
922
# Installation directory options.
923
# These are left unexpanded so users can "make install exec_prefix=/foo"
924
# and all the variables that are supposed to be based on exec_prefix
925
# by default will actually change.
926
# Use braces instead of parens because sh, perl, etc. also accept them.
927
# (The list follows the same order as the GNU Coding Standards.)
928
bindir='${exec_prefix}/bin'
929
sbindir='${exec_prefix}/sbin'
930
libexecdir='${exec_prefix}/libexec'
931
datarootdir='${prefix}/share'
932
datadir='${datarootdir}'
933
sysconfdir='${prefix}/etc'
934
sharedstatedir='${prefix}/com'
935
localstatedir='${prefix}/var'
936
includedir='${prefix}/include'
937
oldincludedir='/usr/include'
938
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939
infodir='${datarootdir}/info'
940
htmldir='${docdir}'
941
dvidir='${docdir}'
942
pdfdir='${docdir}'
943
psdir='${docdir}'
944
libdir='${exec_prefix}/lib'
945
localedir='${datarootdir}/locale'
946
mandir='${datarootdir}/man'
947
948
ac_prev=
949
ac_dashdash=
950
for ac_option
951
do
952
  # If the previous option needs an argument, assign it.
953
  if test -n "$ac_prev"; then
954
    eval $ac_prev=\$ac_option
955
    ac_prev=
956
    continue
957
  fi
958
959
  case $ac_option in
1.1.27 by Ted Gould
Import upstream version 0.3.10
960
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961
  *=)   ac_optarg= ;;
962
  *)    ac_optarg=yes ;;
2 by Jonathan Riddell
Run autogen.sh before upload
963
  esac
964
965
  # Accept the important Cygnus configure options, so we can diagnose typos.
966
967
  case $ac_dashdash$ac_option in
968
  --)
969
    ac_dashdash=yes ;;
970
971
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
972
    ac_prev=bindir ;;
973
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974
    bindir=$ac_optarg ;;
975
976
  -build | --build | --buil | --bui | --bu)
977
    ac_prev=build_alias ;;
978
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979
    build_alias=$ac_optarg ;;
980
981
  -cache-file | --cache-file | --cache-fil | --cache-fi \
982
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983
    ac_prev=cache_file ;;
984
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986
    cache_file=$ac_optarg ;;
987
988
  --config-cache | -C)
989
    cache_file=config.cache ;;
990
991
  -datadir | --datadir | --datadi | --datad)
992
    ac_prev=datadir ;;
993
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
994
    datadir=$ac_optarg ;;
995
996
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997
  | --dataroo | --dataro | --datar)
998
    ac_prev=datarootdir ;;
999
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001
    datarootdir=$ac_optarg ;;
1002
1003
  -disable-* | --disable-*)
1004
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005
    # Reject names that are not valid shell variable names.
1006
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.27 by Ted Gould
Import upstream version 0.3.10
1007
      as_fn_error $? "invalid feature name: $ac_useropt"
2 by Jonathan Riddell
Run autogen.sh before upload
1008
    ac_useropt_orig=$ac_useropt
1009
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010
    case $ac_user_opts in
1011
      *"
1012
"enable_$ac_useropt"
1013
"*) ;;
1014
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015
	 ac_unrecognized_sep=', ';;
1016
    esac
1017
    eval enable_$ac_useropt=no ;;
1018
1019
  -docdir | --docdir | --docdi | --doc | --do)
1020
    ac_prev=docdir ;;
1021
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022
    docdir=$ac_optarg ;;
1023
1024
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025
    ac_prev=dvidir ;;
1026
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027
    dvidir=$ac_optarg ;;
1028
1029
  -enable-* | --enable-*)
1030
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031
    # Reject names that are not valid shell variable names.
1032
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.27 by Ted Gould
Import upstream version 0.3.10
1033
      as_fn_error $? "invalid feature name: $ac_useropt"
2 by Jonathan Riddell
Run autogen.sh before upload
1034
    ac_useropt_orig=$ac_useropt
1035
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036
    case $ac_user_opts in
1037
      *"
1038
"enable_$ac_useropt"
1039
"*) ;;
1040
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041
	 ac_unrecognized_sep=', ';;
1042
    esac
1043
    eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047
  | --exec | --exe | --ex)
1048
    ac_prev=exec_prefix ;;
1049
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051
  | --exec=* | --exe=* | --ex=*)
1052
    exec_prefix=$ac_optarg ;;
1053
1054
  -gas | --gas | --ga | --g)
1055
    # Obsolete; use --with-gas.
1056
    with_gas=yes ;;
1057
1058
  -help | --help | --hel | --he | -h)
1059
    ac_init_help=long ;;
1060
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061
    ac_init_help=recursive ;;
1062
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063
    ac_init_help=short ;;
1064
1065
  -host | --host | --hos | --ho)
1066
    ac_prev=host_alias ;;
1067
  -host=* | --host=* | --hos=* | --ho=*)
1068
    host_alias=$ac_optarg ;;
1069
1070
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071
    ac_prev=htmldir ;;
1072
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073
  | --ht=*)
1074
    htmldir=$ac_optarg ;;
1075
1076
  -includedir | --includedir | --includedi | --included | --include \
1077
  | --includ | --inclu | --incl | --inc)
1078
    ac_prev=includedir ;;
1079
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1081
    includedir=$ac_optarg ;;
1082
1083
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1084
    ac_prev=infodir ;;
1085
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086
    infodir=$ac_optarg ;;
1087
1088
  -libdir | --libdir | --libdi | --libd)
1089
    ac_prev=libdir ;;
1090
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091
    libdir=$ac_optarg ;;
1092
1093
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094
  | --libexe | --libex | --libe)
1095
    ac_prev=libexecdir ;;
1096
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097
  | --libexe=* | --libex=* | --libe=*)
1098
    libexecdir=$ac_optarg ;;
1099
1100
  -localedir | --localedir | --localedi | --localed | --locale)
1101
    ac_prev=localedir ;;
1102
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103
    localedir=$ac_optarg ;;
1104
1105
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1106
  | --localstate | --localstat | --localsta | --localst | --locals)
1107
    ac_prev=localstatedir ;;
1108
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110
    localstatedir=$ac_optarg ;;
1111
1112
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113
    ac_prev=mandir ;;
1114
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115
    mandir=$ac_optarg ;;
1116
1117
  -nfp | --nfp | --nf)
1118
    # Obsolete; use --without-fp.
1119
    with_fp=no ;;
1120
1121
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122
  | --no-cr | --no-c | -n)
1123
    no_create=yes ;;
1124
1125
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127
    no_recursion=yes ;;
1128
1129
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131
  | --oldin | --oldi | --old | --ol | --o)
1132
    ac_prev=oldincludedir ;;
1133
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136
    oldincludedir=$ac_optarg ;;
1137
1138
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139
    ac_prev=prefix ;;
1140
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141
    prefix=$ac_optarg ;;
1142
1143
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144
  | --program-pre | --program-pr | --program-p)
1145
    ac_prev=program_prefix ;;
1146
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148
    program_prefix=$ac_optarg ;;
1149
1150
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151
  | --program-suf | --program-su | --program-s)
1152
    ac_prev=program_suffix ;;
1153
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155
    program_suffix=$ac_optarg ;;
1156
1157
  -program-transform-name | --program-transform-name \
1158
  | --program-transform-nam | --program-transform-na \
1159
  | --program-transform-n | --program-transform- \
1160
  | --program-transform | --program-transfor \
1161
  | --program-transfo | --program-transf \
1162
  | --program-trans | --program-tran \
1163
  | --progr-tra | --program-tr | --program-t)
1164
    ac_prev=program_transform_name ;;
1165
  -program-transform-name=* | --program-transform-name=* \
1166
  | --program-transform-nam=* | --program-transform-na=* \
1167
  | --program-transform-n=* | --program-transform-=* \
1168
  | --program-transform=* | --program-transfor=* \
1169
  | --program-transfo=* | --program-transf=* \
1170
  | --program-trans=* | --program-tran=* \
1171
  | --progr-tra=* | --program-tr=* | --program-t=*)
1172
    program_transform_name=$ac_optarg ;;
1173
1174
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175
    ac_prev=pdfdir ;;
1176
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177
    pdfdir=$ac_optarg ;;
1178
1179
  -psdir | --psdir | --psdi | --psd | --ps)
1180
    ac_prev=psdir ;;
1181
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182
    psdir=$ac_optarg ;;
1183
1184
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185
  | -silent | --silent | --silen | --sile | --sil)
1186
    silent=yes ;;
1187
1188
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189
    ac_prev=sbindir ;;
1190
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191
  | --sbi=* | --sb=*)
1192
    sbindir=$ac_optarg ;;
1193
1194
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196
  | --sharedst | --shareds | --shared | --share | --shar \
1197
  | --sha | --sh)
1198
    ac_prev=sharedstatedir ;;
1199
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202
  | --sha=* | --sh=*)
1203
    sharedstatedir=$ac_optarg ;;
1204
1205
  -site | --site | --sit)
1206
    ac_prev=site ;;
1207
  -site=* | --site=* | --sit=*)
1208
    site=$ac_optarg ;;
1209
1210
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211
    ac_prev=srcdir ;;
1212
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213
    srcdir=$ac_optarg ;;
1214
1215
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216
  | --syscon | --sysco | --sysc | --sys | --sy)
1217
    ac_prev=sysconfdir ;;
1218
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220
    sysconfdir=$ac_optarg ;;
1221
1222
  -target | --target | --targe | --targ | --tar | --ta | --t)
1223
    ac_prev=target_alias ;;
1224
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225
    target_alias=$ac_optarg ;;
1226
1227
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228
    verbose=yes ;;
1229
1230
  -version | --version | --versio | --versi | --vers | -V)
1231
    ac_init_version=: ;;
1232
1233
  -with-* | --with-*)
1234
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235
    # Reject names that are not valid shell variable names.
1236
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.27 by Ted Gould
Import upstream version 0.3.10
1237
      as_fn_error $? "invalid package name: $ac_useropt"
2 by Jonathan Riddell
Run autogen.sh before upload
1238
    ac_useropt_orig=$ac_useropt
1239
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
    case $ac_user_opts in
1241
      *"
1242
"with_$ac_useropt"
1243
"*) ;;
1244
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245
	 ac_unrecognized_sep=', ';;
1246
    esac
1247
    eval with_$ac_useropt=\$ac_optarg ;;
1248
1249
  -without-* | --without-*)
1250
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251
    # Reject names that are not valid shell variable names.
1252
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.27 by Ted Gould
Import upstream version 0.3.10
1253
      as_fn_error $? "invalid package name: $ac_useropt"
2 by Jonathan Riddell
Run autogen.sh before upload
1254
    ac_useropt_orig=$ac_useropt
1255
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256
    case $ac_user_opts in
1257
      *"
1258
"with_$ac_useropt"
1259
"*) ;;
1260
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261
	 ac_unrecognized_sep=', ';;
1262
    esac
1263
    eval with_$ac_useropt=no ;;
1264
1265
  --x)
1266
    # Obsolete; use --with-x.
1267
    with_x=yes ;;
1268
1269
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270
  | --x-incl | --x-inc | --x-in | --x-i)
1271
    ac_prev=x_includes ;;
1272
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274
    x_includes=$ac_optarg ;;
1275
1276
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278
    ac_prev=x_libraries ;;
1279
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281
    x_libraries=$ac_optarg ;;
1282
1.1.27 by Ted Gould
Import upstream version 0.3.10
1283
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284
Try \`$0 --help' for more information"
2 by Jonathan Riddell
Run autogen.sh before upload
1285
    ;;
1286
1287
  *=*)
1288
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289
    # Reject names that are not valid shell variable names.
1290
    case $ac_envvar in #(
1291
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1.1.27 by Ted Gould
Import upstream version 0.3.10
1292
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
1293
    esac
1294
    eval $ac_envvar=\$ac_optarg
1295
    export $ac_envvar ;;
1296
1297
  *)
1298
    # FIXME: should be removed in autoconf 3.0.
1299
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1302
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2 by Jonathan Riddell
Run autogen.sh before upload
1303
    ;;
1304
1305
  esac
1306
done
1307
1308
if test -n "$ac_prev"; then
1309
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.27 by Ted Gould
Import upstream version 0.3.10
1310
  as_fn_error $? "missing argument to $ac_option"
2 by Jonathan Riddell
Run autogen.sh before upload
1311
fi
1312
1313
if test -n "$ac_unrecognized_opts"; then
1314
  case $enable_option_checking in
1315
    no) ;;
1.1.27 by Ted Gould
Import upstream version 0.3.10
1316
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
1317
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318
  esac
1319
fi
1320
1321
# Check all directory arguments for consistency.
1322
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323
		datadir sysconfdir sharedstatedir localstatedir includedir \
1324
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325
		libdir localedir mandir
1326
do
1327
  eval ac_val=\$$ac_var
1328
  # Remove trailing slashes.
1329
  case $ac_val in
1330
    */ )
1331
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332
      eval $ac_var=\$ac_val;;
1333
  esac
1334
  # Be sure to have absolute directory names.
1335
  case $ac_val in
1336
    [\\/$]* | ?:[\\/]* )  continue;;
1337
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338
  esac
1.1.27 by Ted Gould
Import upstream version 0.3.10
1339
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2 by Jonathan Riddell
Run autogen.sh before upload
1340
done
1341
1342
# There might be people who depend on the old broken behavior: `$host'
1343
# used to hold the argument of --host etc.
1344
# FIXME: To remove some day.
1345
build=$build_alias
1346
host=$host_alias
1347
target=$target_alias
1348
1349
# FIXME: To remove some day.
1350
if test "x$host_alias" != x; then
1351
  if test "x$build_alias" = x; then
1352
    cross_compiling=maybe
1.1.27 by Ted Gould
Import upstream version 0.3.10
1353
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1354
    If a cross compiler is detected then cross compile mode will be used" >&2
2 by Jonathan Riddell
Run autogen.sh before upload
1355
  elif test "x$build_alias" != "x$host_alias"; then
1356
    cross_compiling=yes
1357
  fi
1358
fi
1359
1360
ac_tool_prefix=
1361
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363
test "$silent" = yes && exec 6>/dev/null
1364
1365
1366
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367
ac_ls_di=`ls -di .` &&
1368
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
1369
  as_fn_error $? "working directory cannot be determined"
2 by Jonathan Riddell
Run autogen.sh before upload
1370
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
1371
  as_fn_error $? "pwd does not report name of working directory"
2 by Jonathan Riddell
Run autogen.sh before upload
1372
1373
1374
# Find the source files, if location was not specified.
1375
if test -z "$srcdir"; then
1376
  ac_srcdir_defaulted=yes
1377
  # Try the directory containing this script, then the parent directory.
1378
  ac_confdir=`$as_dirname -- "$as_myself" ||
1379
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1381
	 X"$as_myself" : 'X\(//\)$' \| \
1382
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383
$as_echo X"$as_myself" |
1384
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385
	    s//\1/
1386
	    q
1387
	  }
1388
	  /^X\(\/\/\)[^/].*/{
1389
	    s//\1/
1390
	    q
1391
	  }
1392
	  /^X\(\/\/\)$/{
1393
	    s//\1/
1394
	    q
1395
	  }
1396
	  /^X\(\/\).*/{
1397
	    s//\1/
1398
	    q
1399
	  }
1400
	  s/.*/./; q'`
1401
  srcdir=$ac_confdir
1402
  if test ! -r "$srcdir/$ac_unique_file"; then
1403
    srcdir=..
1404
  fi
1405
else
1406
  ac_srcdir_defaulted=no
1407
fi
1408
if test ! -r "$srcdir/$ac_unique_file"; then
1409
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.27 by Ted Gould
Import upstream version 0.3.10
1410
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2 by Jonathan Riddell
Run autogen.sh before upload
1411
fi
1412
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413
ac_abs_confdir=`(
1.1.27 by Ted Gould
Import upstream version 0.3.10
1414
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2 by Jonathan Riddell
Run autogen.sh before upload
1415
	pwd)`
1416
# When building in place, set srcdir=.
1417
if test "$ac_abs_confdir" = "$ac_pwd"; then
1418
  srcdir=.
1419
fi
1420
# Remove unnecessary trailing slashes from srcdir.
1421
# Double slashes in file names in object file debugging info
1422
# mess up M-x gdb in Emacs.
1423
case $srcdir in
1424
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425
esac
1426
for ac_var in $ac_precious_vars; do
1427
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428
  eval ac_env_${ac_var}_value=\$${ac_var}
1429
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431
done
1432
1433
#
1434
# Report the --help message.
1435
#
1436
if test "$ac_init_help" = "long"; then
1437
  # Omit some internal or obsolete options to make the list less imposing.
1438
  # This message is too long to be a string in the A/UX 3.1 sh.
1439
  cat <<_ACEOF
1.1.62 by Ken VanDine
Import upstream version 0.5.96
1440
\`configure' configures libdbusmenu 0.5.96 to adapt to many kinds of systems.
2 by Jonathan Riddell
Run autogen.sh before upload
1441
1442
Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445
VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447
Defaults for the options are specified in brackets.
1448
1449
Configuration:
1450
  -h, --help              display this help and exit
1451
      --help=short        display options specific to this package
1452
      --help=recursive    display the short help of all the included packages
1453
  -V, --version           display version information and exit
1.1.27 by Ted Gould
Import upstream version 0.3.10
1454
  -q, --quiet, --silent   do not print \`checking ...' messages
2 by Jonathan Riddell
Run autogen.sh before upload
1455
      --cache-file=FILE   cache test results in FILE [disabled]
1456
  -C, --config-cache      alias for \`--cache-file=config.cache'
1457
  -n, --no-create         do not create output files
1458
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460
Installation directories:
1461
  --prefix=PREFIX         install architecture-independent files in PREFIX
1462
                          [$ac_default_prefix]
1463
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464
                          [PREFIX]
1465
1466
By default, \`make install' will install all the files in
1467
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469
for instance \`--prefix=\$HOME'.
1470
1471
For better control, use the options below.
1472
1473
Fine tuning of the installation directories:
1474
  --bindir=DIR            user executables [EPREFIX/bin]
1475
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1477
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480
  --libdir=DIR            object code libraries [EPREFIX/lib]
1481
  --includedir=DIR        C header files [PREFIX/include]
1482
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1486
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1488
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdbusmenu]
1489
  --htmldir=DIR           html documentation [DOCDIR]
1490
  --dvidir=DIR            dvi documentation [DOCDIR]
1491
  --pdfdir=DIR            pdf documentation [DOCDIR]
1492
  --psdir=DIR             ps documentation [DOCDIR]
1493
_ACEOF
1494
1495
  cat <<\_ACEOF
1496
1497
Program names:
1498
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1499
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1500
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
1502
System types:
1503
  --build=BUILD     configure for building on BUILD [guessed]
1504
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505
_ACEOF
1506
fi
1507
1508
if test -n "$ac_init_help"; then
1509
  case $ac_init_help in
1.1.62 by Ken VanDine
Import upstream version 0.5.96
1510
     short | recursive ) echo "Configuration of libdbusmenu 0.5.96:";;
2 by Jonathan Riddell
Run autogen.sh before upload
1511
   esac
1512
  cat <<\_ACEOF
1513
1514
Optional Features:
1515
  --disable-option-checking  ignore unrecognized --enable/--with options
1516
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518
  --enable-maintainer-mode  enable make rules and dependencies not useful
1519
			  (and sometimes confusing) to the casual installer
1520
  --disable-nls           do not use Native Language Support
1521
  --disable-dependency-tracking  speeds up one-time build
1522
  --enable-dependency-tracking   do not reject slow dependency extractors
1523
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1524
  --enable-static[=PKGS]  build static libraries [default=yes]
1525
  --enable-fast-install[=PKGS]
1526
                          optimize for fast installation [default=yes]
1527
  --disable-libtool-lock  avoid locking (might break parallel builds)
1.1.1 by Martin Pitt
Import upstream version 0.1.0
1528
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1529
  --disable-silent-rules         verbose build output (undo: `make V=0')
1.1.19 by Ken VanDine
Import upstream version 0.3.2
1530
  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1531
  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1532
  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1533
  --disable-scrollkeeper  do not make updates to the scrollkeeper database
1.1.53 by Ken VanDine
Import upstream version 0.4.94
1534
  --disable-gtk           Disable libdbusmenu-gtk library
1535
  --disable-dumper        Disable dbusmenudumper tool
1536
  --disable-tests         Disable tests
1.1.15 by Ted Gould
Import upstream version 0.2.7
1537
  --enable-introspection=[no/auto/yes]
1538
                          Enable introspection for this build
1.1.53 by Ken VanDine
Import upstream version 0.4.94
1539
  --disable-vala          Disable vala
1.1.6 by Ted Gould
Import upstream version 0.1.6
1540
  --enable-massivedebugging
1541
                          Print out so much information your brain will hurt
2 by Jonathan Riddell
Run autogen.sh before upload
1542
1543
Optional Packages:
1544
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
1546
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2 by Jonathan Riddell
Run autogen.sh before upload
1547
                          both]
1548
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1549
  --with-sysroot=DIR Search for dependent libraries within DIR
1550
                        (or the compiler's sysroot if not specified).
1.1.19 by Ken VanDine
Import upstream version 0.3.2
1551
  --with-html-dir=PATH    path to installed docs
1552
  --with-help-dir=DIR     path to help docs
1553
  --with-omf-dir=DIR      path to OMF files
1554
  --with-help-formats=FORMATS
1555
                          list of formats
1.1.51 by Ken VanDine
Import upstream version 0.4.92
1556
  --with-gtk              Which version of gtk to use [default=3]
2 by Jonathan Riddell
Run autogen.sh before upload
1557
1558
Some influential environment variables:
1559
  CC          C compiler command
1560
  CFLAGS      C compiler flags
1561
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562
              nonstandard directory <lib dir>
1563
  LIBS        libraries to pass to the linker, e.g. -l<library>
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1564
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2 by Jonathan Riddell
Run autogen.sh before upload
1565
              you have headers in a nonstandard directory <include dir>
1566
  CPP         C preprocessor
1567
  PKG_CONFIG  path to pkg-config utility
1.1.27 by Ted Gould
Import upstream version 0.3.10
1568
  PKG_CONFIG_PATH
1569
              directories to add to pkg-config's search path
1570
  PKG_CONFIG_LIBDIR
1571
              path overriding pkg-config's built-in search path
1.1.53 by Ken VanDine
Import upstream version 0.4.94
1572
  GTKDOC_DEPS_CFLAGS
1573
              C compiler flags for GTKDOC_DEPS, overriding pkg-config
1574
  GTKDOC_DEPS_LIBS
1575
              linker flags for GTKDOC_DEPS, overriding pkg-config
2 by Jonathan Riddell
Run autogen.sh before upload
1576
  DBUSMENUGLIB_CFLAGS
1577
              C compiler flags for DBUSMENUGLIB, overriding pkg-config
1578
  DBUSMENUGLIB_LIBS
1579
              linker flags for DBUSMENUGLIB, overriding pkg-config
1580
  DBUSMENUGTK_CFLAGS
1581
              C compiler flags for DBUSMENUGTK, overriding pkg-config
1582
  DBUSMENUGTK_LIBS
1583
              linker flags for DBUSMENUGTK, overriding pkg-config
1.1.24 by Ken VanDine
Import upstream version 0.3.7
1584
  DBUSMENUDUMPER_CFLAGS
1585
              C compiler flags for DBUSMENUDUMPER, overriding pkg-config
1586
  DBUSMENUDUMPER_LIBS
1587
              linker flags for DBUSMENUDUMPER, overriding pkg-config
2 by Jonathan Riddell
Run autogen.sh before upload
1588
  DBUSMENUTESTS_CFLAGS
1589
              C compiler flags for DBUSMENUTESTS, overriding pkg-config
1590
  DBUSMENUTESTS_LIBS
1591
              linker flags for DBUSMENUTESTS, overriding pkg-config
1592
1593
Use these variables to override the choices made by `configure' or to help
1594
it to find libraries and programs with nonstandard names/locations.
1595
1596
Report bugs to <ted@canonical.com>.
1597
_ACEOF
1598
ac_status=$?
1599
fi
1600
1601
if test "$ac_init_help" = "recursive"; then
1602
  # If there are subdirs, report their specific --help.
1603
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604
    test -d "$ac_dir" ||
1605
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606
      continue
1607
    ac_builddir=.
1608
1609
case "$ac_dir" in
1610
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611
*)
1612
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613
  # A ".." for each directory in $ac_dir_suffix.
1614
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615
  case $ac_top_builddir_sub in
1616
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618
  esac ;;
1619
esac
1620
ac_abs_top_builddir=$ac_pwd
1621
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622
# for backward compatibility:
1623
ac_top_builddir=$ac_top_build_prefix
1624
1625
case $srcdir in
1626
  .)  # We are building in place.
1627
    ac_srcdir=.
1628
    ac_top_srcdir=$ac_top_builddir_sub
1629
    ac_abs_top_srcdir=$ac_pwd ;;
1630
  [\\/]* | ?:[\\/]* )  # Absolute name.
1631
    ac_srcdir=$srcdir$ac_dir_suffix;
1632
    ac_top_srcdir=$srcdir
1633
    ac_abs_top_srcdir=$srcdir ;;
1634
  *) # Relative name.
1635
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1637
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638
esac
1639
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641
    cd "$ac_dir" || { ac_status=$?; continue; }
1642
    # Check for guested configure.
1643
    if test -f "$ac_srcdir/configure.gnu"; then
1644
      echo &&
1645
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646
    elif test -f "$ac_srcdir/configure"; then
1647
      echo &&
1648
      $SHELL "$ac_srcdir/configure" --help=recursive
1649
    else
1650
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651
    fi || ac_status=$?
1652
    cd "$ac_pwd" || { ac_status=$?; break; }
1653
  done
1654
fi
1655
1656
test -n "$ac_init_help" && exit $ac_status
1657
if $ac_init_version; then
1658
  cat <<\_ACEOF
1.1.62 by Ken VanDine
Import upstream version 0.5.96
1659
libdbusmenu configure 0.5.96
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1660
generated by GNU Autoconf 2.68
2 by Jonathan Riddell
Run autogen.sh before upload
1661
1.1.27 by Ted Gould
Import upstream version 0.3.10
1662
Copyright (C) 2010 Free Software Foundation, Inc.
2 by Jonathan Riddell
Run autogen.sh before upload
1663
This configure script is free software; the Free Software Foundation
1664
gives unlimited permission to copy, distribute and modify it.
1665
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1666
Copyright 2009,2010 Canonical
2 by Jonathan Riddell
Run autogen.sh before upload
1667
_ACEOF
1668
  exit
1669
fi
1670
1671
## ------------------------ ##
1672
## Autoconf initialization. ##
1673
## ------------------------ ##
1674
1675
# ac_fn_c_try_compile LINENO
1676
# --------------------------
1677
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678
ac_fn_c_try_compile ()
1679
{
1680
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681
  rm -f conftest.$ac_objext
1682
  if { { ac_try="$ac_compile"
1683
case "(($ac_try" in
1684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685
  *) ac_try_echo=$ac_try;;
1686
esac
1687
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688
$as_echo "$ac_try_echo"; } >&5
1689
  (eval "$ac_compile") 2>conftest.err
1690
  ac_status=$?
1691
  if test -s conftest.err; then
1692
    grep -v '^ *+' conftest.err >conftest.er1
1693
    cat conftest.er1 >&5
1694
    mv -f conftest.er1 conftest.err
1695
  fi
1696
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697
  test $ac_status = 0; } && {
1698
	 test -z "$ac_c_werror_flag" ||
1699
	 test ! -s conftest.err
1700
       } && test -s conftest.$ac_objext; then :
1701
  ac_retval=0
1702
else
1703
  $as_echo "$as_me: failed program was:" >&5
1704
sed 's/^/| /' conftest.$ac_ext >&5
1705
1706
	ac_retval=1
1707
fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1708
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1709
  as_fn_set_status $ac_retval
2 by Jonathan Riddell
Run autogen.sh before upload
1710
1711
} # ac_fn_c_try_compile
1712
1713
# ac_fn_c_try_link LINENO
1714
# -----------------------
1715
# Try to link conftest.$ac_ext, and return whether this succeeded.
1716
ac_fn_c_try_link ()
1717
{
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
  rm -f conftest.$ac_objext conftest$ac_exeext
1720
  if { { ac_try="$ac_link"
1721
case "(($ac_try" in
1722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723
  *) ac_try_echo=$ac_try;;
1724
esac
1725
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726
$as_echo "$ac_try_echo"; } >&5
1727
  (eval "$ac_link") 2>conftest.err
1728
  ac_status=$?
1729
  if test -s conftest.err; then
1730
    grep -v '^ *+' conftest.err >conftest.er1
1731
    cat conftest.er1 >&5
1732
    mv -f conftest.er1 conftest.err
1733
  fi
1734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735
  test $ac_status = 0; } && {
1736
	 test -z "$ac_c_werror_flag" ||
1737
	 test ! -s conftest.err
1738
       } && test -s conftest$ac_exeext && {
1739
	 test "$cross_compiling" = yes ||
1740
	 $as_test_x conftest$ac_exeext
1741
       }; then :
1742
  ac_retval=0
1743
else
1744
  $as_echo "$as_me: failed program was:" >&5
1745
sed 's/^/| /' conftest.$ac_ext >&5
1746
1747
	ac_retval=1
1748
fi
1749
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751
  # interfere with the next link command; also delete a directory that is
1752
  # left behind by Apple's compiler.  We do this before executing the actions.
1753
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1754
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1755
  as_fn_set_status $ac_retval
2 by Jonathan Riddell
Run autogen.sh before upload
1756
1757
} # ac_fn_c_try_link
1758
1759
# ac_fn_c_check_func LINENO FUNC VAR
1760
# ----------------------------------
1761
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1762
ac_fn_c_check_func ()
1763
{
1764
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766
$as_echo_n "checking for $2... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1767
if eval \${$3+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
1768
  $as_echo_n "(cached) " >&6
1769
else
1770
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771
/* end confdefs.h.  */
1772
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1774
#define $2 innocuous_$2
1775
1776
/* System header to define __stub macros and hopefully few prototypes,
1777
    which can conflict with char $2 (); below.
1778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779
    <limits.h> exists even on freestanding compilers.  */
1780
1781
#ifdef __STDC__
1782
# include <limits.h>
1783
#else
1784
# include <assert.h>
1785
#endif
1786
1787
#undef $2
1788
1789
/* Override any GCC internal prototype to avoid an error.
1790
   Use char because int might match the return type of a GCC
1791
   builtin and then its argument prototype would still apply.  */
1792
#ifdef __cplusplus
1793
extern "C"
1794
#endif
1795
char $2 ();
1796
/* The GNU C library defines this for functions which it implements
1797
    to always fail with ENOSYS.  Some functions are actually named
1798
    something starting with __ and the normal name is an alias.  */
1799
#if defined __stub_$2 || defined __stub___$2
1800
choke me
1801
#endif
1802
1803
int
1804
main ()
1805
{
1806
return $2 ();
1807
  ;
1808
  return 0;
1809
}
1810
_ACEOF
1811
if ac_fn_c_try_link "$LINENO"; then :
1812
  eval "$3=yes"
1813
else
1814
  eval "$3=no"
1815
fi
1816
rm -f core conftest.err conftest.$ac_objext \
1817
    conftest$ac_exeext conftest.$ac_ext
1818
fi
1819
eval ac_res=\$$3
1820
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821
$as_echo "$ac_res" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1822
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2 by Jonathan Riddell
Run autogen.sh before upload
1823
1824
} # ac_fn_c_check_func
1825
1826
# ac_fn_c_try_cpp LINENO
1827
# ----------------------
1828
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829
ac_fn_c_try_cpp ()
1830
{
1831
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1833
case "(($ac_try" in
1834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835
  *) ac_try_echo=$ac_try;;
1836
esac
1837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838
$as_echo "$ac_try_echo"; } >&5
1839
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840
  ac_status=$?
1841
  if test -s conftest.err; then
1842
    grep -v '^ *+' conftest.err >conftest.er1
1843
    cat conftest.er1 >&5
1844
    mv -f conftest.er1 conftest.err
1845
  fi
1846
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.27 by Ted Gould
Import upstream version 0.3.10
1847
  test $ac_status = 0; } > conftest.i && {
2 by Jonathan Riddell
Run autogen.sh before upload
1848
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1849
	 test ! -s conftest.err
1850
       }; then :
1851
  ac_retval=0
1852
else
1853
  $as_echo "$as_me: failed program was:" >&5
1854
sed 's/^/| /' conftest.$ac_ext >&5
1855
1856
    ac_retval=1
1857
fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1858
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1859
  as_fn_set_status $ac_retval
2 by Jonathan Riddell
Run autogen.sh before upload
1860
1861
} # ac_fn_c_try_cpp
1862
1863
# ac_fn_c_try_run LINENO
1864
# ----------------------
1865
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866
# that executables *can* be run.
1867
ac_fn_c_try_run ()
1868
{
1869
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870
  if { { ac_try="$ac_link"
1871
case "(($ac_try" in
1872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873
  *) ac_try_echo=$ac_try;;
1874
esac
1875
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876
$as_echo "$ac_try_echo"; } >&5
1877
  (eval "$ac_link") 2>&5
1878
  ac_status=$?
1879
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881
  { { case "(($ac_try" in
1882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883
  *) ac_try_echo=$ac_try;;
1884
esac
1885
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886
$as_echo "$ac_try_echo"; } >&5
1887
  (eval "$ac_try") 2>&5
1888
  ac_status=$?
1889
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890
  test $ac_status = 0; }; }; then :
1891
  ac_retval=0
1892
else
1893
  $as_echo "$as_me: program exited with status $ac_status" >&5
1894
       $as_echo "$as_me: failed program was:" >&5
1895
sed 's/^/| /' conftest.$ac_ext >&5
1896
1897
       ac_retval=$ac_status
1898
fi
1899
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1900
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
1901
  as_fn_set_status $ac_retval
2 by Jonathan Riddell
Run autogen.sh before upload
1902
1903
} # ac_fn_c_try_run
1904
1905
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906
# -------------------------------------------------------
1907
# Tests whether HEADER exists and can be compiled using the include files in
1908
# INCLUDES, setting the cache variable VAR accordingly.
1909
ac_fn_c_check_header_compile ()
1910
{
1911
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913
$as_echo_n "checking for $2... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1914
if eval \${$3+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
1915
  $as_echo_n "(cached) " >&6
1916
else
1917
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918
/* end confdefs.h.  */
1919
$4
1920
#include <$2>
1921
_ACEOF
1922
if ac_fn_c_try_compile "$LINENO"; then :
1923
  eval "$3=yes"
1924
else
1925
  eval "$3=no"
1926
fi
1927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928
fi
1929
eval ac_res=\$$3
1930
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931
$as_echo "$ac_res" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1932
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2 by Jonathan Riddell
Run autogen.sh before upload
1933
1934
} # ac_fn_c_check_header_compile
1935
1936
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937
# -------------------------------------------------------
1938
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939
# the include files in INCLUDES and setting the cache variable VAR
1940
# accordingly.
1941
ac_fn_c_check_header_mongrel ()
1942
{
1943
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1944
  if eval \${$3+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
1945
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946
$as_echo_n "checking for $2... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
1947
if eval \${$3+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
1948
  $as_echo_n "(cached) " >&6
1949
fi
1950
eval ac_res=\$$3
1951
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952
$as_echo "$ac_res" >&6; }
1953
else
1954
  # Is the header compilable?
1955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956
$as_echo_n "checking $2 usability... " >&6; }
1957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958
/* end confdefs.h.  */
1959
$4
1960
#include <$2>
1961
_ACEOF
1962
if ac_fn_c_try_compile "$LINENO"; then :
1963
  ac_header_compiler=yes
1964
else
1965
  ac_header_compiler=no
1966
fi
1967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969
$as_echo "$ac_header_compiler" >&6; }
1970
1971
# Is the header present?
1972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973
$as_echo_n "checking $2 presence... " >&6; }
1974
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975
/* end confdefs.h.  */
1976
#include <$2>
1977
_ACEOF
1978
if ac_fn_c_try_cpp "$LINENO"; then :
1979
  ac_header_preproc=yes
1980
else
1981
  ac_header_preproc=no
1982
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
1983
rm -f conftest.err conftest.i conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
1984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985
$as_echo "$ac_header_preproc" >&6; }
1986
1987
# So?  What about this header?
1988
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989
  yes:no: )
1990
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994
    ;;
1995
  no:yes:* )
1996
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1999
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2000
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2003
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2004
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
2006
( $as_echo "## -------------------------------- ##
2 by Jonathan Riddell
Run autogen.sh before upload
2007
## Report this to ted@canonical.com ##
1.1.27 by Ted Gould
Import upstream version 0.3.10
2008
## -------------------------------- ##"
2 by Jonathan Riddell
Run autogen.sh before upload
2009
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2010
    ;;
2011
esac
2012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013
$as_echo_n "checking for $2... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2014
if eval \${$3+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2015
  $as_echo_n "(cached) " >&6
2016
else
2017
  eval "$3=\$ac_header_compiler"
2018
fi
2019
eval ac_res=\$$3
2020
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021
$as_echo "$ac_res" >&6; }
2022
fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2023
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2 by Jonathan Riddell
Run autogen.sh before upload
2024
2025
} # ac_fn_c_check_header_mongrel
2026
cat >config.log <<_ACEOF
2027
This file contains any messages produced by compilers while
2028
running configure, to aid debugging if configure makes a mistake.
2029
1.1.62 by Ken VanDine
Import upstream version 0.5.96
2030
It was created by libdbusmenu $as_me 0.5.96, which was
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2031
generated by GNU Autoconf 2.68.  Invocation command line was
2 by Jonathan Riddell
Run autogen.sh before upload
2032
2033
  $ $0 $@
2034
2035
_ACEOF
2036
exec 5>>config.log
2037
{
2038
cat <<_ASUNAME
2039
## --------- ##
2040
## Platform. ##
2041
## --------- ##
2042
2043
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2051
2052
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2053
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2054
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2056
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2057
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2058
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2059
2060
_ASUNAME
2061
2062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063
for as_dir in $PATH
2064
do
2065
  IFS=$as_save_IFS
2066
  test -z "$as_dir" && as_dir=.
2067
    $as_echo "PATH: $as_dir"
2068
  done
2069
IFS=$as_save_IFS
2070
2071
} >&5
2072
2073
cat >&5 <<_ACEOF
2074
2075
2076
## ----------- ##
2077
## Core tests. ##
2078
## ----------- ##
2079
2080
_ACEOF
2081
2082
2083
# Keep a trace of the command line.
2084
# Strip out --no-create and --no-recursion so they do not pile up.
2085
# Strip out --silent because we don't want to record it for future runs.
2086
# Also quote any args containing shell meta-characters.
2087
# Make two passes to allow for proper duplicate-argument suppression.
2088
ac_configure_args=
2089
ac_configure_args0=
2090
ac_configure_args1=
2091
ac_must_keep_next=false
2092
for ac_pass in 1 2
2093
do
2094
  for ac_arg
2095
  do
2096
    case $ac_arg in
2097
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099
    | -silent | --silent | --silen | --sile | --sil)
2100
      continue ;;
2101
    *\'*)
2102
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103
    esac
2104
    case $ac_pass in
2105
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106
    2)
2107
      as_fn_append ac_configure_args1 " '$ac_arg'"
2108
      if test $ac_must_keep_next = true; then
2109
	ac_must_keep_next=false # Got value, back to normal.
2110
      else
2111
	case $ac_arg in
2112
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2113
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115
	  | -with-* | --with-* | -without-* | --without-* | --x)
2116
	    case "$ac_configure_args0 " in
2117
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118
	    esac
2119
	    ;;
2120
	  -* ) ac_must_keep_next=true ;;
2121
	esac
2122
      fi
2123
      as_fn_append ac_configure_args " '$ac_arg'"
2124
      ;;
2125
    esac
2126
  done
2127
done
2128
{ ac_configure_args0=; unset ac_configure_args0;}
2129
{ ac_configure_args1=; unset ac_configure_args1;}
2130
2131
# When interrupted or exit'd, cleanup temporary files, and complete
2132
# config.log.  We remove comments because anyway the quotes in there
2133
# would cause problems or look ugly.
2134
# WARNING: Use '\'' to represent an apostrophe within the trap.
2135
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136
trap 'exit_status=$?
2137
  # Save into config.log some information that might help in debugging.
2138
  {
2139
    echo
2140
1.1.27 by Ted Gould
Import upstream version 0.3.10
2141
    $as_echo "## ---------------- ##
2 by Jonathan Riddell
Run autogen.sh before upload
2142
## Cache variables. ##
1.1.27 by Ted Gould
Import upstream version 0.3.10
2143
## ---------------- ##"
2 by Jonathan Riddell
Run autogen.sh before upload
2144
    echo
2145
    # The following way of writing the cache mishandles newlines in values,
2146
(
2147
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148
    eval ac_val=\$$ac_var
2149
    case $ac_val in #(
2150
    *${as_nl}*)
2151
      case $ac_var in #(
2152
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154
      esac
2155
      case $ac_var in #(
2156
      _ | IFS | as_nl) ;; #(
2157
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158
      *) { eval $ac_var=; unset $ac_var;} ;;
2159
      esac ;;
2160
    esac
2161
  done
2162
  (set) 2>&1 |
2163
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164
    *${as_nl}ac_space=\ *)
2165
      sed -n \
2166
	"s/'\''/'\''\\\\'\'''\''/g;
2167
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168
      ;; #(
2169
    *)
2170
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171
      ;;
2172
    esac |
2173
    sort
2174
)
2175
    echo
2176
1.1.27 by Ted Gould
Import upstream version 0.3.10
2177
    $as_echo "## ----------------- ##
2 by Jonathan Riddell
Run autogen.sh before upload
2178
## Output variables. ##
1.1.27 by Ted Gould
Import upstream version 0.3.10
2179
## ----------------- ##"
2 by Jonathan Riddell
Run autogen.sh before upload
2180
    echo
2181
    for ac_var in $ac_subst_vars
2182
    do
2183
      eval ac_val=\$$ac_var
2184
      case $ac_val in
2185
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186
      esac
2187
      $as_echo "$ac_var='\''$ac_val'\''"
2188
    done | sort
2189
    echo
2190
2191
    if test -n "$ac_subst_files"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
2192
      $as_echo "## ------------------- ##
2 by Jonathan Riddell
Run autogen.sh before upload
2193
## File substitutions. ##
1.1.27 by Ted Gould
Import upstream version 0.3.10
2194
## ------------------- ##"
2 by Jonathan Riddell
Run autogen.sh before upload
2195
      echo
2196
      for ac_var in $ac_subst_files
2197
      do
2198
	eval ac_val=\$$ac_var
2199
	case $ac_val in
2200
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201
	esac
2202
	$as_echo "$ac_var='\''$ac_val'\''"
2203
      done | sort
2204
      echo
2205
    fi
2206
2207
    if test -s confdefs.h; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
2208
      $as_echo "## ----------- ##
2 by Jonathan Riddell
Run autogen.sh before upload
2209
## confdefs.h. ##
1.1.27 by Ted Gould
Import upstream version 0.3.10
2210
## ----------- ##"
2 by Jonathan Riddell
Run autogen.sh before upload
2211
      echo
2212
      cat confdefs.h
2213
      echo
2214
    fi
2215
    test "$ac_signal" != 0 &&
2216
      $as_echo "$as_me: caught signal $ac_signal"
2217
    $as_echo "$as_me: exit $exit_status"
2218
  } >&5
2219
  rm -f core *.core core.conftest.* &&
2220
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221
    exit $exit_status
2222
' 0
2223
for ac_signal in 1 2 13 15; do
2224
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225
done
2226
ac_signal=0
2227
2228
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2229
rm -f -r conftest* confdefs.h
2230
2231
$as_echo "/* confdefs.h */" > confdefs.h
2232
2233
# Predefined preprocessor variables.
2234
2235
cat >>confdefs.h <<_ACEOF
2236
#define PACKAGE_NAME "$PACKAGE_NAME"
2237
_ACEOF
2238
2239
cat >>confdefs.h <<_ACEOF
2240
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241
_ACEOF
2242
2243
cat >>confdefs.h <<_ACEOF
2244
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2245
_ACEOF
2246
2247
cat >>confdefs.h <<_ACEOF
2248
#define PACKAGE_STRING "$PACKAGE_STRING"
2249
_ACEOF
2250
2251
cat >>confdefs.h <<_ACEOF
2252
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253
_ACEOF
2254
2255
cat >>confdefs.h <<_ACEOF
2256
#define PACKAGE_URL "$PACKAGE_URL"
2257
_ACEOF
2258
2259
2260
# Let the site file select an alternate cache file if it wants to.
2261
# Prefer an explicitly selected file to automatically selected ones.
2262
ac_site_file1=NONE
2263
ac_site_file2=NONE
2264
if test -n "$CONFIG_SITE"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
2265
  # We do not want a PATH search for config.site.
2266
  case $CONFIG_SITE in #((
2267
    -*)  ac_site_file1=./$CONFIG_SITE;;
2268
    */*) ac_site_file1=$CONFIG_SITE;;
2269
    *)   ac_site_file1=./$CONFIG_SITE;;
2270
  esac
2 by Jonathan Riddell
Run autogen.sh before upload
2271
elif test "x$prefix" != xNONE; then
2272
  ac_site_file1=$prefix/share/config.site
2273
  ac_site_file2=$prefix/etc/config.site
2274
else
2275
  ac_site_file1=$ac_default_prefix/share/config.site
2276
  ac_site_file2=$ac_default_prefix/etc/config.site
2277
fi
2278
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279
do
2280
  test "x$ac_site_file" = xNONE && continue
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
2281
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2 by Jonathan Riddell
Run autogen.sh before upload
2282
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284
    sed 's/^/| /' "$ac_site_file" >&5
1.1.27 by Ted Gould
Import upstream version 0.3.10
2285
    . "$ac_site_file" \
2286
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288
as_fn_error $? "failed to load site script $ac_site_file
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2289
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
2290
  fi
2291
done
2292
2293
if test -r "$cache_file"; then
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
2294
  # Some versions of bash will fail to source /dev/null (special files
2295
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2296
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2 by Jonathan Riddell
Run autogen.sh before upload
2297
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298
$as_echo "$as_me: loading cache $cache_file" >&6;}
2299
    case $cache_file in
2300
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301
      *)                      . "./$cache_file";;
2302
    esac
2303
  fi
2304
else
2305
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306
$as_echo "$as_me: creating cache $cache_file" >&6;}
2307
  >$cache_file
2308
fi
2309
2310
# Check that the precious variables saved in the cache have kept the same
2311
# value.
2312
ac_cache_corrupted=false
2313
for ac_var in $ac_precious_vars; do
2314
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315
  eval ac_new_set=\$ac_env_${ac_var}_set
2316
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317
  eval ac_new_val=\$ac_env_${ac_var}_value
2318
  case $ac_old_set,$ac_new_set in
2319
    set,)
2320
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322
      ac_cache_corrupted=: ;;
2323
    ,set)
2324
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326
      ac_cache_corrupted=: ;;
2327
    ,);;
2328
    *)
2329
      if test "x$ac_old_val" != "x$ac_new_val"; then
2330
	# differences in whitespace do not lead to failure.
2331
	ac_old_val_w=`echo x $ac_old_val`
2332
	ac_new_val_w=`echo x $ac_new_val`
2333
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336
	  ac_cache_corrupted=:
2337
	else
2338
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340
	  eval $ac_var=\$ac_old_val
2341
	fi
2342
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2343
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2344
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2345
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2346
      fi;;
2347
  esac
2348
  # Pass precious variables to config.status.
2349
  if test "$ac_new_set" = set; then
2350
    case $ac_new_val in
2351
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352
    *) ac_arg=$ac_var=$ac_new_val ;;
2353
    esac
2354
    case " $ac_configure_args " in
2355
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2356
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357
    esac
2358
  fi
2359
done
2360
if $ac_cache_corrupted; then
2361
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
2365
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
2366
fi
2367
## -------------------- ##
2368
## Main body of script. ##
2369
## -------------------- ##
2370
2371
ac_ext=c
2372
ac_cpp='$CPP $CPPFLAGS'
2373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381
2382
ac_config_headers="$ac_config_headers config.h"
2383
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2384
am__api_version='1.11'
2 by Jonathan Riddell
Run autogen.sh before upload
2385
2386
ac_aux_dir=
2387
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.1.27 by Ted Gould
Import upstream version 0.3.10
2388
  if test -f "$ac_dir/install-sh"; then
2389
    ac_aux_dir=$ac_dir
2390
    ac_install_sh="$ac_aux_dir/install-sh -c"
2391
    break
2392
  elif test -f "$ac_dir/install.sh"; then
2393
    ac_aux_dir=$ac_dir
2394
    ac_install_sh="$ac_aux_dir/install.sh -c"
2395
    break
2396
  elif test -f "$ac_dir/shtool"; then
2397
    ac_aux_dir=$ac_dir
2398
    ac_install_sh="$ac_aux_dir/shtool install -c"
2399
    break
2400
  fi
2 by Jonathan Riddell
Run autogen.sh before upload
2401
done
2402
if test -z "$ac_aux_dir"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
2403
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
2404
fi
2405
2406
# These three variables are undocumented and unsupported,
2407
# and are intended to be withdrawn in a future Autoconf release.
2408
# They can cause serious problems if a builder's source tree is in a directory
2409
# whose full name contains unusual characters.
2410
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2411
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2412
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2413
2414
2415
# Find a good install program.  We prefer a C program (faster),
2416
# so one script is as good as another.  But avoid the broken or
2417
# incompatible versions:
2418
# SysV /etc/install, /usr/sbin/install
2419
# SunOS /usr/etc/install
2420
# IRIX /sbin/install
2421
# AIX /bin/install
2422
# AmigaOS /C/install, which installs bootblocks on floppy discs
2423
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2424
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2425
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2426
# OS/2's system install, which has a completely different semantic
2427
# ./install, which can be erroneously created by make from ./install.sh.
2428
# Reject install programs that cannot install multiple files.
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2430
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2431
if test -z "$INSTALL"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2432
if ${ac_cv_path_install+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2433
  $as_echo_n "(cached) " >&6
2434
else
2435
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436
for as_dir in $PATH
2437
do
2438
  IFS=$as_save_IFS
2439
  test -z "$as_dir" && as_dir=.
2440
    # Account for people who put trailing slashes in PATH elements.
2441
case $as_dir/ in #((
2442
  ./ | .// | /[cC]/* | \
2443
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2444
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445
  /usr/ucb/* ) ;;
2446
  *)
2447
    # OSF1 and SCO ODT 3.0 have their own names for install.
2448
    # Don't use installbsd from OSF since it installs stuff as root
2449
    # by default.
2450
    for ac_prog in ginstall scoinst install; do
2451
      for ac_exec_ext in '' $ac_executable_extensions; do
2452
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2453
	  if test $ac_prog = install &&
2454
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455
	    # AIX install.  It has an incompatible calling convention.
2456
	    :
2457
	  elif test $ac_prog = install &&
2458
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459
	    # program-specific install script used by HP pwplus--don't use.
2460
	    :
2461
	  else
2462
	    rm -rf conftest.one conftest.two conftest.dir
2463
	    echo one > conftest.one
2464
	    echo two > conftest.two
2465
	    mkdir conftest.dir
2466
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2467
	      test -s conftest.one && test -s conftest.two &&
2468
	      test -s conftest.dir/conftest.one &&
2469
	      test -s conftest.dir/conftest.two
2470
	    then
2471
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472
	      break 3
2473
	    fi
2474
	  fi
2475
	fi
2476
      done
2477
    done
2478
    ;;
2479
esac
2480
2481
  done
2482
IFS=$as_save_IFS
2483
2484
rm -rf conftest.one conftest.two conftest.dir
2485
2486
fi
2487
  if test "${ac_cv_path_install+set}" = set; then
2488
    INSTALL=$ac_cv_path_install
2489
  else
2490
    # As a last resort, use the slow shell script.  Don't cache a
2491
    # value for INSTALL within a source directory, because that will
2492
    # break other packages using the cache if that directory is
2493
    # removed, or if the value is a relative name.
2494
    INSTALL=$ac_install_sh
2495
  fi
2496
fi
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2498
$as_echo "$INSTALL" >&6; }
2499
2500
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2501
# It thinks the first close brace ends the variable substitution.
2502
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2503
2504
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2505
2506
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2507
2508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2509
$as_echo_n "checking whether build environment is sane... " >&6; }
2510
# Just in case
2511
sleep 1
2512
echo timestamp > conftest.file
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2513
# Reject unsafe characters in $srcdir or the absolute working directory
2514
# name.  Accept space and tab only in the latter.
2515
am_lf='
2516
'
2517
case `pwd` in
2518
  *[\\\"\#\$\&\'\`$am_lf]*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2519
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2520
esac
2521
case $srcdir in
2522
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2523
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2524
esac
2525
2 by Jonathan Riddell
Run autogen.sh before upload
2526
# Do `set' in a subshell so we don't clobber the current shell's
2527
# arguments.  Must try -L first in case configure is actually a
2528
# symlink; some systems play weird games with the mod time of symlinks
2529
# (eg FreeBSD returns the mod time of the symlink's containing
2530
# directory).
2531
if (
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2532
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2 by Jonathan Riddell
Run autogen.sh before upload
2533
   if test "$*" = "X"; then
2534
      # -L didn't work.
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2535
      set X `ls -t "$srcdir/configure" conftest.file`
2 by Jonathan Riddell
Run autogen.sh before upload
2536
   fi
2537
   rm -f conftest.file
2538
   if test "$*" != "X $srcdir/configure conftest.file" \
2539
      && test "$*" != "X conftest.file $srcdir/configure"; then
2540
2541
      # If neither matched, then we have a broken ls.  This can happen
2542
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2543
      # broken ls alias from the environment.  This has actually
2544
      # happened.  Such a system could not be considered "sane".
1.1.27 by Ted Gould
Import upstream version 0.3.10
2545
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2 by Jonathan Riddell
Run autogen.sh before upload
2546
alias in your environment" "$LINENO" 5
2547
   fi
2548
2549
   test "$2" = conftest.file
2550
   )
2551
then
2552
   # Ok.
2553
   :
2554
else
1.1.27 by Ted Gould
Import upstream version 0.3.10
2555
   as_fn_error $? "newly created file is older than distributed files!
2 by Jonathan Riddell
Run autogen.sh before upload
2556
Check your system clock" "$LINENO" 5
2557
fi
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559
$as_echo "yes" >&6; }
2560
test "$program_prefix" != NONE &&
2561
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2562
# Use a double $ so make ignores it.
2563
test "$program_suffix" != NONE &&
2564
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2565
# Double any \ or $.
2566
# By default was `s,x,x', remove it if useless.
2567
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2568
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2569
2570
# expand $ac_aux_dir to an absolute path
2571
am_aux_dir=`cd $ac_aux_dir && pwd`
2572
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2573
if test x"${MISSING+set}" != xset; then
2574
  case $am_aux_dir in
2575
  *\ * | *\	*)
2576
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2577
  *)
2578
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2579
  esac
2580
fi
2 by Jonathan Riddell
Run autogen.sh before upload
2581
# Use eval to expand $SHELL
2582
if eval "$MISSING --run true"; then
2583
  am_missing_run="$MISSING --run "
2584
else
2585
  am_missing_run=
2586
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2587
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588
fi
2589
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2590
if test x"${install_sh}" != xset; then
2591
  case $am_aux_dir in
2592
  *\ * | *\	*)
2593
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2594
  *)
2595
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2596
  esac
2597
fi
2598
2599
# Installed binaries are usually stripped using `strip' when the user
2600
# run `make install-strip'.  However `strip' might not be the right
2601
# tool to use in cross-compilation environments, therefore Automake
2602
# will honor the `STRIP' environment variable to overrule this program.
2603
if test "$cross_compiling" != no; then
2604
  if test -n "$ac_tool_prefix"; then
2605
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2606
set dummy ${ac_tool_prefix}strip; ac_word=$2
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2609
if ${ac_cv_prog_STRIP+:} false; then :
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2610
  $as_echo_n "(cached) " >&6
2611
else
2612
  if test -n "$STRIP"; then
2613
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614
else
2615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616
for as_dir in $PATH
2617
do
2618
  IFS=$as_save_IFS
2619
  test -z "$as_dir" && as_dir=.
2620
    for ac_exec_ext in '' $ac_executable_extensions; do
2621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2623
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624
    break 2
2625
  fi
2626
done
2627
  done
2628
IFS=$as_save_IFS
2629
2630
fi
2631
fi
2632
STRIP=$ac_cv_prog_STRIP
2633
if test -n "$STRIP"; then
2634
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2635
$as_echo "$STRIP" >&6; }
2636
else
2637
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638
$as_echo "no" >&6; }
2639
fi
2640
2641
2642
fi
2643
if test -z "$ac_cv_prog_STRIP"; then
2644
  ac_ct_STRIP=$STRIP
2645
  # Extract the first word of "strip", so it can be a program name with args.
2646
set dummy strip; ac_word=$2
2647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2649
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2650
  $as_echo_n "(cached) " >&6
2651
else
2652
  if test -n "$ac_ct_STRIP"; then
2653
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654
else
2655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656
for as_dir in $PATH
2657
do
2658
  IFS=$as_save_IFS
2659
  test -z "$as_dir" && as_dir=.
2660
    for ac_exec_ext in '' $ac_executable_extensions; do
2661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662
    ac_cv_prog_ac_ct_STRIP="strip"
2663
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664
    break 2
2665
  fi
2666
done
2667
  done
2668
IFS=$as_save_IFS
2669
2670
fi
2671
fi
2672
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2673
if test -n "$ac_ct_STRIP"; then
2674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2675
$as_echo "$ac_ct_STRIP" >&6; }
2676
else
2677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678
$as_echo "no" >&6; }
2679
fi
2680
2681
  if test "x$ac_ct_STRIP" = x; then
2682
    STRIP=":"
2683
  else
2684
    case $cross_compiling:$ac_tool_warned in
2685
yes:)
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688
ac_tool_warned=yes ;;
2689
esac
2690
    STRIP=$ac_ct_STRIP
2691
  fi
2692
else
2693
  STRIP="$ac_cv_prog_STRIP"
2694
fi
2695
2696
fi
2697
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698
2 by Jonathan Riddell
Run autogen.sh before upload
2699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2700
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2701
if test -z "$MKDIR_P"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2702
  if ${ac_cv_path_mkdir+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2703
  $as_echo_n "(cached) " >&6
2704
else
2705
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2707
do
2708
  IFS=$as_save_IFS
2709
  test -z "$as_dir" && as_dir=.
2710
    for ac_prog in mkdir gmkdir; do
2711
	 for ac_exec_ext in '' $ac_executable_extensions; do
2712
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2713
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2714
	     'mkdir (GNU coreutils) '* | \
2715
	     'mkdir (coreutils) '* | \
2716
	     'mkdir (fileutils) '4.1*)
2717
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2718
	       break 3;;
2719
	   esac
2720
	 done
2721
       done
2722
  done
2723
IFS=$as_save_IFS
2724
2725
fi
2726
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
2727
  test -d ./--version && rmdir ./--version
2 by Jonathan Riddell
Run autogen.sh before upload
2728
  if test "${ac_cv_path_mkdir+set}" = set; then
2729
    MKDIR_P="$ac_cv_path_mkdir -p"
2730
  else
2731
    # As a last resort, use the slow shell script.  Don't cache a
2732
    # value for MKDIR_P within a source directory, because that will
2733
    # break other packages using the cache if that directory is
2734
    # removed, or if the value is a relative name.
2735
    MKDIR_P="$ac_install_sh -d"
2736
  fi
2737
fi
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2739
$as_echo "$MKDIR_P" >&6; }
2740
2741
mkdir_p="$MKDIR_P"
2742
case $mkdir_p in
2743
  [\\/$]* | ?:[\\/]*) ;;
2744
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2745
esac
2746
2747
for ac_prog in gawk mawk nawk awk
2748
do
2749
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2750
set dummy $ac_prog; ac_word=$2
2751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2753
if ${ac_cv_prog_AWK+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2754
  $as_echo_n "(cached) " >&6
2755
else
2756
  if test -n "$AWK"; then
2757
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2758
else
2759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760
for as_dir in $PATH
2761
do
2762
  IFS=$as_save_IFS
2763
  test -z "$as_dir" && as_dir=.
2764
    for ac_exec_ext in '' $ac_executable_extensions; do
2765
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766
    ac_cv_prog_AWK="$ac_prog"
2767
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768
    break 2
2769
  fi
2770
done
2771
  done
2772
IFS=$as_save_IFS
2773
2774
fi
2775
fi
2776
AWK=$ac_cv_prog_AWK
2777
if test -n "$AWK"; then
2778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779
$as_echo "$AWK" >&6; }
2780
else
2781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782
$as_echo "no" >&6; }
2783
fi
2784
2785
2786
  test -n "$AWK" && break
2787
done
2788
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2790
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2791
set x ${MAKE-make}
2792
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2793
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2794
  $as_echo_n "(cached) " >&6
2795
else
2796
  cat >conftest.make <<\_ACEOF
2797
SHELL = /bin/sh
2798
all:
2799
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2800
_ACEOF
1.1.27 by Ted Gould
Import upstream version 0.3.10
2801
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2 by Jonathan Riddell
Run autogen.sh before upload
2802
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2803
  *@@@%%%=?*=@@@%%%*)
2804
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2805
  *)
2806
    eval ac_cv_prog_make_${ac_make}_set=no;;
2807
esac
2808
rm -f conftest.make
2809
fi
2810
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812
$as_echo "yes" >&6; }
2813
  SET_MAKE=
2814
else
2815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816
$as_echo "no" >&6; }
2817
  SET_MAKE="MAKE=${MAKE-make}"
2818
fi
2819
2820
rm -rf .tst 2>/dev/null
2821
mkdir .tst 2>/dev/null
2822
if test -d .tst; then
2823
  am__leading_dot=.
2824
else
2825
  am__leading_dot=_
2826
fi
2827
rmdir .tst 2>/dev/null
2828
2829
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2830
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2831
  # is not polluted with repeated "-I."
2832
  am__isrc=' -I$(srcdir)'
2833
  # test to see if srcdir already configured
2834
  if test -f $srcdir/config.status; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
2835
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
2836
  fi
2837
fi
2838
2839
# test whether we have cygpath
2840
if test -z "$CYGPATH_W"; then
2841
  if (cygpath --version) >/dev/null 2>/dev/null; then
2842
    CYGPATH_W='cygpath -w'
2843
  else
2844
    CYGPATH_W=echo
2845
  fi
2846
fi
2847
2848
2849
# Define the identity of the package.
2850
 PACKAGE=libdbusmenu
1.1.62 by Ken VanDine
Import upstream version 0.5.96
2851
 VERSION=0.5.96
1.1.15 by Ted Gould
Import upstream version 0.2.7
2852
2 by Jonathan Riddell
Run autogen.sh before upload
2853
2854
# Some tools Automake needs.
2855
2856
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857
2858
2859
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870
# We need awk for the "check" target.  The system "awk" is bad on
2871
# some platforms.
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
2872
# Always define AMTAR for backward compatibility.  Yes, it's still used
2873
# in the wild :-(  We should find a proper way to deprecate it ...
2874
AMTAR='$${TAR-tar}'
2875
2876
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2 by Jonathan Riddell
Run autogen.sh before upload
2877
2878
2879
2880
2881
2882
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2883
2 by Jonathan Riddell
Run autogen.sh before upload
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2885
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2886
    # Check whether --enable-maintainer-mode was given.
2887
if test "${enable_maintainer_mode+set}" = set; then :
2888
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2889
else
2890
  USE_MAINTAINER_MODE=no
2891
fi
2892
2893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2894
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2895
   if test $USE_MAINTAINER_MODE = yes; then
2896
  MAINTAINER_MODE_TRUE=
2897
  MAINTAINER_MODE_FALSE='#'
2898
else
2899
  MAINTAINER_MODE_TRUE='#'
2900
  MAINTAINER_MODE_FALSE=
2901
fi
2902
2903
  MAINT=$MAINTAINER_MODE_TRUE
2904
2905
2906
2907
2908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2909
$as_echo_n "checking whether NLS is requested... " >&6; }
2910
    # Check whether --enable-nls was given.
2911
if test "${enable_nls+set}" = set; then :
2912
  enableval=$enable_nls; USE_NLS=$enableval
2913
else
2914
  USE_NLS=yes
2915
fi
2916
2917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2918
$as_echo "$USE_NLS" >&6; }
2919
2920
2921
DEPDIR="${am__leading_dot}deps"
2922
2923
ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926
am_make=${MAKE-make}
2927
cat > confinc << 'END'
2928
am__doit:
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2929
	@echo this is the am__doit target
2 by Jonathan Riddell
Run autogen.sh before upload
2930
.PHONY: am__doit
2931
END
2932
# If we don't find an include directive, just comment out the code.
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2934
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2935
am__include="#"
2936
am__quote=
2937
_am_result=none
2938
# First try GNU make style include.
2939
echo "include confinc" > confmf
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2940
# Ignore all kinds of additional output from `make'.
2941
case `$am_make -s -f confmf 2> /dev/null` in #(
2942
*the\ am__doit\ target*)
2943
  am__include=include
2944
  am__quote=
2945
  _am_result=GNU
2946
  ;;
2947
esac
2 by Jonathan Riddell
Run autogen.sh before upload
2948
# Now try BSD make style include.
2949
if test "$am__include" = "#"; then
2950
   echo '.include "confinc"' > confmf
1.1.1 by Martin Pitt
Import upstream version 0.1.0
2951
   case `$am_make -s -f confmf 2> /dev/null` in #(
2952
   *the\ am__doit\ target*)
2953
     am__include=.include
2954
     am__quote="\""
2955
     _am_result=BSD
2956
     ;;
2957
   esac
2 by Jonathan Riddell
Run autogen.sh before upload
2958
fi
2959
2960
2961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2962
$as_echo "$_am_result" >&6; }
2963
rm -f confinc confmf
2964
2965
# Check whether --enable-dependency-tracking was given.
2966
if test "${enable_dependency_tracking+set}" = set; then :
2967
  enableval=$enable_dependency_tracking;
2968
fi
2969
2970
if test "x$enable_dependency_tracking" != xno; then
2971
  am_depcomp="$ac_aux_dir/depcomp"
2972
  AMDEPBACKSLASH='\'
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
2973
  am__nodep='_no'
2 by Jonathan Riddell
Run autogen.sh before upload
2974
fi
2975
 if test "x$enable_dependency_tracking" != xno; then
2976
  AMDEP_TRUE=
2977
  AMDEP_FALSE='#'
2978
else
2979
  AMDEP_TRUE='#'
2980
  AMDEP_FALSE=
2981
fi
2982
2983
2984
ac_ext=c
2985
ac_cpp='$CPP $CPPFLAGS'
2986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
if test -n "$ac_tool_prefix"; then
2990
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
2994
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
2995
  $as_echo_n "(cached) " >&6
2996
else
2997
  if test -n "$CC"; then
2998
  ac_cv_prog_CC="$CC" # Let the user override the test.
2999
else
3000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001
for as_dir in $PATH
3002
do
3003
  IFS=$as_save_IFS
3004
  test -z "$as_dir" && as_dir=.
3005
    for ac_exec_ext in '' $ac_executable_extensions; do
3006
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009
    break 2
3010
  fi
3011
done
3012
  done
3013
IFS=$as_save_IFS
3014
3015
fi
3016
fi
3017
CC=$ac_cv_prog_CC
3018
if test -n "$CC"; then
3019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020
$as_echo "$CC" >&6; }
3021
else
3022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023
$as_echo "no" >&6; }
3024
fi
3025
3026
3027
fi
3028
if test -z "$ac_cv_prog_CC"; then
3029
  ac_ct_CC=$CC
3030
  # Extract the first word of "gcc", so it can be a program name with args.
3031
set dummy gcc; ac_word=$2
3032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3034
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3035
  $as_echo_n "(cached) " >&6
3036
else
3037
  if test -n "$ac_ct_CC"; then
3038
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039
else
3040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041
for as_dir in $PATH
3042
do
3043
  IFS=$as_save_IFS
3044
  test -z "$as_dir" && as_dir=.
3045
    for ac_exec_ext in '' $ac_executable_extensions; do
3046
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047
    ac_cv_prog_ac_ct_CC="gcc"
3048
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049
    break 2
3050
  fi
3051
done
3052
  done
3053
IFS=$as_save_IFS
3054
3055
fi
3056
fi
3057
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058
if test -n "$ac_ct_CC"; then
3059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060
$as_echo "$ac_ct_CC" >&6; }
3061
else
3062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063
$as_echo "no" >&6; }
3064
fi
3065
3066
  if test "x$ac_ct_CC" = x; then
3067
    CC=""
3068
  else
3069
    case $cross_compiling:$ac_tool_warned in
3070
yes:)
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073
ac_tool_warned=yes ;;
3074
esac
3075
    CC=$ac_ct_CC
3076
  fi
3077
else
3078
  CC="$ac_cv_prog_CC"
3079
fi
3080
3081
if test -z "$CC"; then
3082
          if test -n "$ac_tool_prefix"; then
3083
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084
set dummy ${ac_tool_prefix}cc; ac_word=$2
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3087
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3088
  $as_echo_n "(cached) " >&6
3089
else
3090
  if test -n "$CC"; then
3091
  ac_cv_prog_CC="$CC" # Let the user override the test.
3092
else
3093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094
for as_dir in $PATH
3095
do
3096
  IFS=$as_save_IFS
3097
  test -z "$as_dir" && as_dir=.
3098
    for ac_exec_ext in '' $ac_executable_extensions; do
3099
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3101
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102
    break 2
3103
  fi
3104
done
3105
  done
3106
IFS=$as_save_IFS
3107
3108
fi
3109
fi
3110
CC=$ac_cv_prog_CC
3111
if test -n "$CC"; then
3112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113
$as_echo "$CC" >&6; }
3114
else
3115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116
$as_echo "no" >&6; }
3117
fi
3118
3119
3120
  fi
3121
fi
3122
if test -z "$CC"; then
3123
  # Extract the first word of "cc", so it can be a program name with args.
3124
set dummy cc; ac_word=$2
3125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3127
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3128
  $as_echo_n "(cached) " >&6
3129
else
3130
  if test -n "$CC"; then
3131
  ac_cv_prog_CC="$CC" # Let the user override the test.
3132
else
3133
  ac_prog_rejected=no
3134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135
for as_dir in $PATH
3136
do
3137
  IFS=$as_save_IFS
3138
  test -z "$as_dir" && as_dir=.
3139
    for ac_exec_ext in '' $ac_executable_extensions; do
3140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142
       ac_prog_rejected=yes
3143
       continue
3144
     fi
3145
    ac_cv_prog_CC="cc"
3146
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147
    break 2
3148
  fi
3149
done
3150
  done
3151
IFS=$as_save_IFS
3152
3153
if test $ac_prog_rejected = yes; then
3154
  # We found a bogon in the path, so make sure we never use it.
3155
  set dummy $ac_cv_prog_CC
3156
  shift
3157
  if test $# != 0; then
3158
    # We chose a different compiler from the bogus one.
3159
    # However, it has the same basename, so the bogon will be chosen
3160
    # first if we set CC to just the basename; use the full file name.
3161
    shift
3162
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3163
  fi
3164
fi
3165
fi
3166
fi
3167
CC=$ac_cv_prog_CC
3168
if test -n "$CC"; then
3169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170
$as_echo "$CC" >&6; }
3171
else
3172
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173
$as_echo "no" >&6; }
3174
fi
3175
3176
3177
fi
3178
if test -z "$CC"; then
3179
  if test -n "$ac_tool_prefix"; then
3180
  for ac_prog in cl.exe
3181
  do
3182
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3186
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3187
  $as_echo_n "(cached) " >&6
3188
else
3189
  if test -n "$CC"; then
3190
  ac_cv_prog_CC="$CC" # Let the user override the test.
3191
else
3192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193
for as_dir in $PATH
3194
do
3195
  IFS=$as_save_IFS
3196
  test -z "$as_dir" && as_dir=.
3197
    for ac_exec_ext in '' $ac_executable_extensions; do
3198
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201
    break 2
3202
  fi
3203
done
3204
  done
3205
IFS=$as_save_IFS
3206
3207
fi
3208
fi
3209
CC=$ac_cv_prog_CC
3210
if test -n "$CC"; then
3211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212
$as_echo "$CC" >&6; }
3213
else
3214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215
$as_echo "no" >&6; }
3216
fi
3217
3218
3219
    test -n "$CC" && break
3220
  done
3221
fi
3222
if test -z "$CC"; then
3223
  ac_ct_CC=$CC
3224
  for ac_prog in cl.exe
3225
do
3226
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3227
set dummy $ac_prog; ac_word=$2
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3230
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3231
  $as_echo_n "(cached) " >&6
3232
else
3233
  if test -n "$ac_ct_CC"; then
3234
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235
else
3236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237
for as_dir in $PATH
3238
do
3239
  IFS=$as_save_IFS
3240
  test -z "$as_dir" && as_dir=.
3241
    for ac_exec_ext in '' $ac_executable_extensions; do
3242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243
    ac_cv_prog_ac_ct_CC="$ac_prog"
3244
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245
    break 2
3246
  fi
3247
done
3248
  done
3249
IFS=$as_save_IFS
3250
3251
fi
3252
fi
3253
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254
if test -n "$ac_ct_CC"; then
3255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256
$as_echo "$ac_ct_CC" >&6; }
3257
else
3258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259
$as_echo "no" >&6; }
3260
fi
3261
3262
3263
  test -n "$ac_ct_CC" && break
3264
done
3265
3266
  if test "x$ac_ct_CC" = x; then
3267
    CC=""
3268
  else
3269
    case $cross_compiling:$ac_tool_warned in
3270
yes:)
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273
ac_tool_warned=yes ;;
3274
esac
3275
    CC=$ac_ct_CC
3276
  fi
3277
fi
3278
3279
fi
3280
3281
3282
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
3284
as_fn_error $? "no acceptable C compiler found in \$PATH
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3285
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
3286
3287
# Provide some information about the compiler.
3288
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289
set X $ac_compile
3290
ac_compiler=$2
3291
for ac_option in --version -v -V -qversion; do
3292
  { { ac_try="$ac_compiler $ac_option >&5"
3293
case "(($ac_try" in
3294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295
  *) ac_try_echo=$ac_try;;
3296
esac
3297
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298
$as_echo "$ac_try_echo"; } >&5
3299
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300
  ac_status=$?
3301
  if test -s conftest.err; then
3302
    sed '10a\
3303
... rest of stderr output deleted ...
3304
         10q' conftest.err >conftest.er1
3305
    cat conftest.er1 >&5
3306
  fi
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3307
  rm -f conftest.er1 conftest.err
2 by Jonathan Riddell
Run autogen.sh before upload
3308
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309
  test $ac_status = 0; }
3310
done
3311
3312
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313
/* end confdefs.h.  */
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3314
2 by Jonathan Riddell
Run autogen.sh before upload
3315
int
3316
main ()
3317
{
3318
3319
  ;
3320
  return 0;
3321
}
3322
_ACEOF
3323
ac_clean_files_save=$ac_clean_files
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3324
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2 by Jonathan Riddell
Run autogen.sh before upload
3325
# Try to create an executable without -o first, disregard a.out.
3326
# It will help us diagnose broken compilers, and finding out an intuition
3327
# of exeext.
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329
$as_echo_n "checking whether the C compiler works... " >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
3330
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3331
3332
# The possible output files:
3333
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3334
3335
ac_rmfiles=
3336
for ac_file in $ac_files
3337
do
3338
  case $ac_file in
3339
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341
  esac
3342
done
3343
rm -f $ac_rmfiles
3344
3345
if { { ac_try="$ac_link_default"
3346
case "(($ac_try" in
3347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348
  *) ac_try_echo=$ac_try;;
3349
esac
3350
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351
$as_echo "$ac_try_echo"; } >&5
3352
  (eval "$ac_link_default") 2>&5
3353
  ac_status=$?
3354
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355
  test $ac_status = 0; }; then :
3356
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3359
# so that the user can short-circuit this test for compilers unknown to
3360
# Autoconf.
3361
for ac_file in $ac_files ''
3362
do
3363
  test -f "$ac_file" || continue
3364
  case $ac_file in
3365
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3366
	;;
3367
    [ab].out )
3368
	# We found the default executable, but exeext='' is most
3369
	# certainly right.
3370
	break;;
3371
    *.* )
3372
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373
	then :; else
3374
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375
	fi
3376
	# We set ac_cv_exeext here because the later test for it is not
3377
	# safe: cross compilers may not add the suffix if given an `-o'
3378
	# argument, so we may need to know it at that point already.
3379
	# Even if this section looks crufty: it has the advantage of
3380
	# actually working.
3381
	break;;
3382
    * )
3383
	break;;
3384
  esac
3385
done
3386
test "$ac_cv_exeext" = no && ac_cv_exeext=
3387
3388
else
3389
  ac_file=''
3390
fi
3391
if test -z "$ac_file"; then :
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393
$as_echo "no" >&6; }
3394
$as_echo "$as_me: failed program was:" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
3395
sed 's/^/| /' conftest.$ac_ext >&5
3396
3397
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
3399
as_fn_error 77 "C compiler cannot create executables
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3400
See \`config.log' for more details" "$LINENO" 5; }
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3401
else
3402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403
$as_echo "yes" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
3404
fi
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406
$as_echo_n "checking for C compiler default output file name... " >&6; }
3407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408
$as_echo "$ac_file" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
3409
ac_exeext=$ac_cv_exeext
3410
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3411
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2 by Jonathan Riddell
Run autogen.sh before upload
3412
ac_clean_files=$ac_clean_files_save
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414
$as_echo_n "checking for suffix of executables... " >&6; }
3415
if { { ac_try="$ac_link"
3416
case "(($ac_try" in
3417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418
  *) ac_try_echo=$ac_try;;
3419
esac
3420
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421
$as_echo "$ac_try_echo"; } >&5
3422
  (eval "$ac_link") 2>&5
3423
  ac_status=$?
3424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425
  test $ac_status = 0; }; then :
3426
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3428
# work properly (i.e., refer to `conftest.exe'), while it won't with
3429
# `rm'.
3430
for ac_file in conftest.exe conftest conftest.*; do
3431
  test -f "$ac_file" || continue
3432
  case $ac_file in
3433
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435
	  break;;
3436
    * ) break;;
3437
  esac
3438
done
3439
else
3440
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
3442
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3443
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
3444
fi
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3445
rm -f conftest conftest$ac_cv_exeext
2 by Jonathan Riddell
Run autogen.sh before upload
3446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447
$as_echo "$ac_cv_exeext" >&6; }
3448
3449
rm -f conftest.$ac_ext
3450
EXEEXT=$ac_cv_exeext
3451
ac_exeext=$EXEEXT
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453
/* end confdefs.h.  */
3454
#include <stdio.h>
3455
int
3456
main ()
3457
{
3458
FILE *f = fopen ("conftest.out", "w");
3459
 return ferror (f) || fclose (f) != 0;
3460
3461
  ;
3462
  return 0;
3463
}
3464
_ACEOF
3465
ac_clean_files="$ac_clean_files conftest.out"
3466
# Check that the compiler produces executables we can run.  If not, either
3467
# the compiler is broken, or we cross compile.
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469
$as_echo_n "checking whether we are cross compiling... " >&6; }
3470
if test "$cross_compiling" != yes; then
3471
  { { ac_try="$ac_link"
3472
case "(($ac_try" in
3473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474
  *) ac_try_echo=$ac_try;;
3475
esac
3476
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477
$as_echo "$ac_try_echo"; } >&5
3478
  (eval "$ac_link") 2>&5
3479
  ac_status=$?
3480
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481
  test $ac_status = 0; }
3482
  if { ac_try='./conftest$ac_cv_exeext'
3483
  { { case "(($ac_try" in
3484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485
  *) ac_try_echo=$ac_try;;
3486
esac
3487
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488
$as_echo "$ac_try_echo"; } >&5
3489
  (eval "$ac_try") 2>&5
3490
  ac_status=$?
3491
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492
  test $ac_status = 0; }; }; then
3493
    cross_compiling=no
3494
  else
3495
    if test "$cross_compiling" = maybe; then
3496
	cross_compiling=yes
3497
    else
3498
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
3500
as_fn_error $? "cannot run C compiled programs.
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3501
If you meant to cross compile, use \`--host'.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3502
See \`config.log' for more details" "$LINENO" 5; }
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
3503
    fi
3504
  fi
3505
fi
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507
$as_echo "$cross_compiling" >&6; }
3508
3509
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510
ac_clean_files=$ac_clean_files_save
2 by Jonathan Riddell
Run autogen.sh before upload
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512
$as_echo_n "checking for suffix of object files... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3513
if ${ac_cv_objext+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3514
  $as_echo_n "(cached) " >&6
3515
else
3516
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517
/* end confdefs.h.  */
3518
3519
int
3520
main ()
3521
{
3522
3523
  ;
3524
  return 0;
3525
}
3526
_ACEOF
3527
rm -f conftest.o conftest.obj
3528
if { { ac_try="$ac_compile"
3529
case "(($ac_try" in
3530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531
  *) ac_try_echo=$ac_try;;
3532
esac
3533
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534
$as_echo "$ac_try_echo"; } >&5
3535
  (eval "$ac_compile") 2>&5
3536
  ac_status=$?
3537
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538
  test $ac_status = 0; }; then :
3539
  for ac_file in conftest.o conftest.obj conftest.*; do
3540
  test -f "$ac_file" || continue;
3541
  case $ac_file in
3542
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544
       break;;
3545
  esac
3546
done
3547
else
3548
  $as_echo "$as_me: failed program was:" >&5
3549
sed 's/^/| /' conftest.$ac_ext >&5
3550
3551
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
3553
as_fn_error $? "cannot compute suffix of object files: cannot compile
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3554
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
3555
fi
3556
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3557
fi
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559
$as_echo "$ac_cv_objext" >&6; }
3560
OBJEXT=$ac_cv_objext
3561
ac_objext=$OBJEXT
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3564
if ${ac_cv_c_compiler_gnu+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3565
  $as_echo_n "(cached) " >&6
3566
else
3567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568
/* end confdefs.h.  */
3569
3570
int
3571
main ()
3572
{
3573
#ifndef __GNUC__
3574
       choke me
3575
#endif
3576
3577
  ;
3578
  return 0;
3579
}
3580
_ACEOF
3581
if ac_fn_c_try_compile "$LINENO"; then :
3582
  ac_compiler_gnu=yes
3583
else
3584
  ac_compiler_gnu=no
3585
fi
3586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588
3589
fi
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592
if test $ac_compiler_gnu = yes; then
3593
  GCC=yes
3594
else
3595
  GCC=
3596
fi
3597
ac_test_CFLAGS=${CFLAGS+set}
3598
ac_save_CFLAGS=$CFLAGS
3599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600
$as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3601
if ${ac_cv_prog_cc_g+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3602
  $as_echo_n "(cached) " >&6
3603
else
3604
  ac_save_c_werror_flag=$ac_c_werror_flag
3605
   ac_c_werror_flag=yes
3606
   ac_cv_prog_cc_g=no
3607
   CFLAGS="-g"
3608
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609
/* end confdefs.h.  */
3610
3611
int
3612
main ()
3613
{
3614
3615
  ;
3616
  return 0;
3617
}
3618
_ACEOF
3619
if ac_fn_c_try_compile "$LINENO"; then :
3620
  ac_cv_prog_cc_g=yes
3621
else
3622
  CFLAGS=""
3623
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624
/* end confdefs.h.  */
3625
3626
int
3627
main ()
3628
{
3629
3630
  ;
3631
  return 0;
3632
}
3633
_ACEOF
3634
if ac_fn_c_try_compile "$LINENO"; then :
3635
3636
else
3637
  ac_c_werror_flag=$ac_save_c_werror_flag
3638
	 CFLAGS="-g"
3639
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640
/* end confdefs.h.  */
3641
3642
int
3643
main ()
3644
{
3645
3646
  ;
3647
  return 0;
3648
}
3649
_ACEOF
3650
if ac_fn_c_try_compile "$LINENO"; then :
3651
  ac_cv_prog_cc_g=yes
3652
fi
3653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
fi
3655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656
fi
3657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658
   ac_c_werror_flag=$ac_save_c_werror_flag
3659
fi
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661
$as_echo "$ac_cv_prog_cc_g" >&6; }
3662
if test "$ac_test_CFLAGS" = set; then
3663
  CFLAGS=$ac_save_CFLAGS
3664
elif test $ac_cv_prog_cc_g = yes; then
3665
  if test "$GCC" = yes; then
3666
    CFLAGS="-g -O2"
3667
  else
3668
    CFLAGS="-g"
3669
  fi
3670
else
3671
  if test "$GCC" = yes; then
3672
    CFLAGS="-O2"
3673
  else
3674
    CFLAGS=
3675
  fi
3676
fi
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3679
if ${ac_cv_prog_cc_c89+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3680
  $as_echo_n "(cached) " >&6
3681
else
3682
  ac_cv_prog_cc_c89=no
3683
ac_save_CC=$CC
3684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685
/* end confdefs.h.  */
3686
#include <stdarg.h>
3687
#include <stdio.h>
3688
#include <sys/types.h>
3689
#include <sys/stat.h>
3690
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3691
struct buf { int x; };
3692
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693
static char *e (p, i)
3694
     char **p;
3695
     int i;
3696
{
3697
  return p[i];
3698
}
3699
static char *f (char * (*g) (char **, int), char **p, ...)
3700
{
3701
  char *s;
3702
  va_list v;
3703
  va_start (v,p);
3704
  s = g (p, va_arg (v,int));
3705
  va_end (v);
3706
  return s;
3707
}
3708
3709
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3710
   function prototypes and stuff, but not '\xHH' hex character constants.
3711
   These don't provoke an error unfortunately, instead are silently treated
3712
   as 'x'.  The following induces an error, until -std is added to get
3713
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3714
   array size at least.  It's necessary to write '\x00'==0 to get something
3715
   that's true only with -std.  */
3716
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717
3718
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719
   inside strings and character constants.  */
3720
#define FOO(x) 'x'
3721
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722
3723
int test (int i, double x);
3724
struct s1 {int (*f) (int a);};
3725
struct s2 {int (*f) (double a);};
3726
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727
int argc;
3728
char **argv;
3729
int
3730
main ()
3731
{
3732
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3733
  ;
3734
  return 0;
3735
}
3736
_ACEOF
3737
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739
do
3740
  CC="$ac_save_CC $ac_arg"
3741
  if ac_fn_c_try_compile "$LINENO"; then :
3742
  ac_cv_prog_cc_c89=$ac_arg
3743
fi
3744
rm -f core conftest.err conftest.$ac_objext
3745
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3746
done
3747
rm -f conftest.$ac_ext
3748
CC=$ac_save_CC
3749
3750
fi
3751
# AC_CACHE_VAL
3752
case "x$ac_cv_prog_cc_c89" in
3753
  x)
3754
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755
$as_echo "none needed" >&6; } ;;
3756
  xno)
3757
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758
$as_echo "unsupported" >&6; } ;;
3759
  *)
3760
    CC="$CC $ac_cv_prog_cc_c89"
3761
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763
esac
3764
if test "x$ac_cv_prog_cc_c89" != xno; then :
3765
3766
fi
3767
3768
ac_ext=c
3769
ac_cpp='$CPP $CPPFLAGS'
3770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774
depcc="$CC"   am_compiler_list=
3775
3776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3778
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3779
  $as_echo_n "(cached) " >&6
3780
else
3781
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782
  # We make a subdir and do the tests there.  Otherwise we can end up
3783
  # making bogus files that we don't know about and never remove.  For
3784
  # instance it was reported that on HP-UX the gcc test will end up
3785
  # making a dummy file named `D' -- because `-MD' means `put the output
3786
  # in D'.
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
3787
  rm -rf conftest.dir
2 by Jonathan Riddell
Run autogen.sh before upload
3788
  mkdir conftest.dir
3789
  # Copy depcomp to subdir because otherwise we won't find it if we're
3790
  # using a relative directory.
3791
  cp "$am_depcomp" conftest.dir
3792
  cd conftest.dir
3793
  # We will build objects and dependencies in a subdirectory because
3794
  # it helps to detect inapplicable dependency modes.  For instance
3795
  # both Tru64's cc and ICC support -MD to output dependencies as a
3796
  # side effect of compilation, but ICC will put the dependencies in
3797
  # the current directory while Tru64 will put them in the object
3798
  # directory.
3799
  mkdir sub
3800
3801
  am_cv_CC_dependencies_compiler_type=none
3802
  if test "$am_compiler_list" = ""; then
3803
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804
  fi
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3805
  am__universal=false
3806
  case " $depcc " in #(
3807
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808
     esac
3809
2 by Jonathan Riddell
Run autogen.sh before upload
3810
  for depmode in $am_compiler_list; do
3811
    # Setup a source with many dependencies, because some compilers
3812
    # like to wrap large dependency lists on column 80 (with \), and
3813
    # we should not choose a depcomp mode which is confused by this.
3814
    #
3815
    # We need to recreate these files for each test, as the compiler may
3816
    # overwrite some of them when testing with obscure command lines.
3817
    # This happens at least with the AIX C compiler.
3818
    : > sub/conftest.c
3819
    for i in 1 2 3 4 5 6; do
3820
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822
      # Solaris 8's {/usr,}/bin/sh.
3823
      touch sub/conftst$i.h
3824
    done
3825
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3827
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828
    # mode.  It turns out that the SunPro C++ compiler does not properly
3829
    # handle `-M -o', and we need to detect this.  Also, some Intel
3830
    # versions had trouble with output in subdirs
3831
    am__obj=sub/conftest.${OBJEXT-o}
3832
    am__minus_obj="-o $am__obj"
2 by Jonathan Riddell
Run autogen.sh before upload
3833
    case $depmode in
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3834
    gcc)
3835
      # This depmode causes a compiler race in universal mode.
3836
      test "$am__universal" = false || continue
3837
      ;;
2 by Jonathan Riddell
Run autogen.sh before upload
3838
    nosideeffect)
3839
      # after this tag, mechanisms are not by side-effect, so they'll
3840
      # only be used when explicitly requested
3841
      if test "x$enable_dependency_tracking" = xyes; then
3842
	continue
3843
      else
3844
	break
3845
      fi
3846
      ;;
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
3847
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3848
      # This compiler won't grok `-c -o', but also, the minuso test has
3849
      # not run yet.  These depmodes are late enough in the game, and
3850
      # so weak that their functioning should not be impacted.
3851
      am__obj=conftest.${OBJEXT-o}
3852
      am__minus_obj=
3853
      ;;
2 by Jonathan Riddell
Run autogen.sh before upload
3854
    none) break ;;
3855
    esac
3856
    if depmode=$depmode \
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3857
       source=sub/conftest.c object=$am__obj \
2 by Jonathan Riddell
Run autogen.sh before upload
3858
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3859
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2 by Jonathan Riddell
Run autogen.sh before upload
3860
         >/dev/null 2>conftest.err &&
3861
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1.1 by Martin Pitt
Import upstream version 0.1.0
3863
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2 by Jonathan Riddell
Run autogen.sh before upload
3864
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865
      # icc doesn't choke on unknown options, it will just issue warnings
3866
      # or remarks (even with -Werror).  So we grep stderr for any message
3867
      # that says an option was ignored or not supported.
3868
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3869
      #   icc: Command line warning: ignoring option '-M'; no argument required
3870
      # The diagnosis changed in icc 8.0:
3871
      #   icc: Command line remark: option '-MP' not supported
3872
      if (grep 'ignoring option' conftest.err ||
3873
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874
        am_cv_CC_dependencies_compiler_type=$depmode
3875
        break
3876
      fi
3877
    fi
3878
  done
3879
3880
  cd ..
3881
  rm -rf conftest.dir
3882
else
3883
  am_cv_CC_dependencies_compiler_type=none
3884
fi
3885
3886
fi
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891
 if
3892
  test "x$enable_dependency_tracking" != xno \
3893
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894
  am__fastdepCC_TRUE=
3895
  am__fastdepCC_FALSE='#'
3896
else
3897
  am__fastdepCC_TRUE='#'
3898
  am__fastdepCC_FALSE=
3899
fi
3900
3901
3902
3903
3904
3905
case "$am__api_version" in
3906
    1.01234)
1.1.27 by Ted Gould
Import upstream version 0.3.10
3907
	as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
3908
    ;;
3909
    *)
3910
    ;;
3911
esac
3912
1.1.62 by Ken VanDine
Import upstream version 0.5.96
3913
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3914
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
3915
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
2 by Jonathan Riddell
Run autogen.sh before upload
3916
if test -n "0.35.0"; then
3917
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
3918
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
3919
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
3920
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
3921
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
3922
	as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
3923
fi
3924
3925
# Extract the first word of "intltool-update", so it can be a program name with args.
3926
set dummy intltool-update; ac_word=$2
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3929
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3930
  $as_echo_n "(cached) " >&6
3931
else
3932
  case $INTLTOOL_UPDATE in
3933
  [\\/]* | ?:[\\/]*)
3934
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
3935
  ;;
3936
  *)
3937
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938
for as_dir in $PATH
3939
do
3940
  IFS=$as_save_IFS
3941
  test -z "$as_dir" && as_dir=.
3942
    for ac_exec_ext in '' $ac_executable_extensions; do
3943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
3945
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946
    break 2
3947
  fi
3948
done
3949
  done
3950
IFS=$as_save_IFS
3951
3952
  ;;
3953
esac
3954
fi
3955
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
3956
if test -n "$INTLTOOL_UPDATE"; then
3957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
3958
$as_echo "$INTLTOOL_UPDATE" >&6; }
3959
else
3960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961
$as_echo "no" >&6; }
3962
fi
3963
3964
3965
# Extract the first word of "intltool-merge", so it can be a program name with args.
3966
set dummy intltool-merge; ac_word=$2
3967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
3969
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
3970
  $as_echo_n "(cached) " >&6
3971
else
3972
  case $INTLTOOL_MERGE in
3973
  [\\/]* | ?:[\\/]*)
3974
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
3975
  ;;
3976
  *)
3977
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978
for as_dir in $PATH
3979
do
3980
  IFS=$as_save_IFS
3981
  test -z "$as_dir" && as_dir=.
3982
    for ac_exec_ext in '' $ac_executable_extensions; do
3983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
3985
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986
    break 2
3987
  fi
3988
done
3989
  done
3990
IFS=$as_save_IFS
3991
3992
  ;;
3993
esac
3994
fi
3995
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
3996
if test -n "$INTLTOOL_MERGE"; then
3997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
3998
$as_echo "$INTLTOOL_MERGE" >&6; }
3999
else
4000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001
$as_echo "no" >&6; }
4002
fi
4003
4004
4005
# Extract the first word of "intltool-extract", so it can be a program name with args.
4006
set dummy intltool-extract; ac_word=$2
4007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4009
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4010
  $as_echo_n "(cached) " >&6
4011
else
4012
  case $INTLTOOL_EXTRACT in
4013
  [\\/]* | ?:[\\/]*)
4014
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
4015
  ;;
4016
  *)
4017
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018
for as_dir in $PATH
4019
do
4020
  IFS=$as_save_IFS
4021
  test -z "$as_dir" && as_dir=.
4022
    for ac_exec_ext in '' $ac_executable_extensions; do
4023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
4025
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026
    break 2
4027
  fi
4028
done
4029
  done
4030
IFS=$as_save_IFS
4031
4032
  ;;
4033
esac
4034
fi
4035
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
4036
if test -n "$INTLTOOL_EXTRACT"; then
4037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
4038
$as_echo "$INTLTOOL_EXTRACT" >&6; }
4039
else
4040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041
$as_echo "no" >&6; }
4042
fi
4043
4044
4045
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
4046
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4047
fi
4048
1.1.59 by Ted Gould
Import upstream version 0.5.93
4049
if test -z "$AM_DEFAULT_VERBOSITY"; then
4050
  AM_DEFAULT_VERBOSITY=1
4051
fi
4052
4053
4054
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
4055
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
4056
INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
4057
4058
4059
4060
4061
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
4062
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
4063
intltool__v_merge_options_0='-q'
4064
4065
4066
4067
4068
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4069
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4070
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4071
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4072
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
4073
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4074
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4075
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4076
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4077
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4078
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
1.1.62 by Ken VanDine
Import upstream version 0.5.96
4079
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
1.1.59 by Ted Gould
Import upstream version 0.5.93
4080
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
1.1.62 by Ken VanDine
Import upstream version 0.5.96
4081
else
4082
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
4083
fi
1.1.59 by Ted Gould
Import upstream version 0.5.93
4084
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4085
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4086
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4087
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4088
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4089
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4090
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
2 by Jonathan Riddell
Run autogen.sh before upload
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
# Check the gettext tools to make sure they are GNU
4189
# Extract the first word of "xgettext", so it can be a program name with args.
4190
set dummy xgettext; ac_word=$2
4191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4193
if ${ac_cv_path_XGETTEXT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4194
  $as_echo_n "(cached) " >&6
4195
else
4196
  case $XGETTEXT in
4197
  [\\/]* | ?:[\\/]*)
4198
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4199
  ;;
4200
  *)
4201
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202
for as_dir in $PATH
4203
do
4204
  IFS=$as_save_IFS
4205
  test -z "$as_dir" && as_dir=.
4206
    for ac_exec_ext in '' $ac_executable_extensions; do
4207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4209
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210
    break 2
4211
  fi
4212
done
4213
  done
4214
IFS=$as_save_IFS
4215
4216
  ;;
4217
esac
4218
fi
4219
XGETTEXT=$ac_cv_path_XGETTEXT
4220
if test -n "$XGETTEXT"; then
4221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4222
$as_echo "$XGETTEXT" >&6; }
4223
else
4224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225
$as_echo "no" >&6; }
4226
fi
4227
4228
4229
# Extract the first word of "msgmerge", so it can be a program name with args.
4230
set dummy msgmerge; ac_word=$2
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4233
if ${ac_cv_path_MSGMERGE+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4234
  $as_echo_n "(cached) " >&6
4235
else
4236
  case $MSGMERGE in
4237
  [\\/]* | ?:[\\/]*)
4238
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4239
  ;;
4240
  *)
4241
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242
for as_dir in $PATH
4243
do
4244
  IFS=$as_save_IFS
4245
  test -z "$as_dir" && as_dir=.
4246
    for ac_exec_ext in '' $ac_executable_extensions; do
4247
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
4249
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250
    break 2
4251
  fi
4252
done
4253
  done
4254
IFS=$as_save_IFS
4255
4256
  ;;
4257
esac
4258
fi
4259
MSGMERGE=$ac_cv_path_MSGMERGE
4260
if test -n "$MSGMERGE"; then
4261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4262
$as_echo "$MSGMERGE" >&6; }
4263
else
4264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265
$as_echo "no" >&6; }
4266
fi
4267
4268
4269
# Extract the first word of "msgfmt", so it can be a program name with args.
4270
set dummy msgfmt; ac_word=$2
4271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4273
if ${ac_cv_path_MSGFMT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4274
  $as_echo_n "(cached) " >&6
4275
else
4276
  case $MSGFMT in
4277
  [\\/]* | ?:[\\/]*)
4278
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279
  ;;
4280
  *)
4281
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282
for as_dir in $PATH
4283
do
4284
  IFS=$as_save_IFS
4285
  test -z "$as_dir" && as_dir=.
4286
    for ac_exec_ext in '' $ac_executable_extensions; do
4287
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290
    break 2
4291
  fi
4292
done
4293
  done
4294
IFS=$as_save_IFS
4295
4296
  ;;
4297
esac
4298
fi
4299
MSGFMT=$ac_cv_path_MSGFMT
4300
if test -n "$MSGFMT"; then
4301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4302
$as_echo "$MSGFMT" >&6; }
4303
else
4304
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305
$as_echo "no" >&6; }
4306
fi
4307
4308
4309
# Extract the first word of "gmsgfmt", so it can be a program name with args.
4310
set dummy gmsgfmt; ac_word=$2
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4313
if ${ac_cv_path_GMSGFMT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4314
  $as_echo_n "(cached) " >&6
4315
else
4316
  case $GMSGFMT in
4317
  [\\/]* | ?:[\\/]*)
4318
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4319
  ;;
4320
  *)
4321
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322
for as_dir in $PATH
4323
do
4324
  IFS=$as_save_IFS
4325
  test -z "$as_dir" && as_dir=.
4326
    for ac_exec_ext in '' $ac_executable_extensions; do
4327
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330
    break 2
4331
  fi
4332
done
4333
  done
4334
IFS=$as_save_IFS
4335
4336
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4337
  ;;
4338
esac
4339
fi
4340
GMSGFMT=$ac_cv_path_GMSGFMT
4341
if test -n "$GMSGFMT"; then
4342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4343
$as_echo "$GMSGFMT" >&6; }
4344
else
4345
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346
$as_echo "no" >&6; }
4347
fi
4348
4349
4350
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
4351
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4352
fi
4353
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
4354
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
4355
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
4356
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
4357
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4358
fi
4359
4360
# Extract the first word of "perl", so it can be a program name with args.
4361
set dummy perl; ac_word=$2
4362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4364
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4365
  $as_echo_n "(cached) " >&6
4366
else
4367
  case $INTLTOOL_PERL in
4368
  [\\/]* | ?:[\\/]*)
4369
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4370
  ;;
4371
  *)
4372
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373
for as_dir in $PATH
4374
do
4375
  IFS=$as_save_IFS
4376
  test -z "$as_dir" && as_dir=.
4377
    for ac_exec_ext in '' $ac_executable_extensions; do
4378
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381
    break 2
4382
  fi
4383
done
4384
  done
4385
IFS=$as_save_IFS
4386
4387
  ;;
4388
esac
4389
fi
4390
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4391
if test -n "$INTLTOOL_PERL"; then
4392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
4393
$as_echo "$INTLTOOL_PERL" >&6; }
4394
else
4395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396
$as_echo "no" >&6; }
4397
fi
4398
4399
4400
if test -z "$INTLTOOL_PERL"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
4401
   as_fn_error $? "perl not found" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4402
fi
4403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
4404
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
4405
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
4406
if test $? -ne 0; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
4407
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4408
else
1.1.56 by Ken VanDine
Import upstream version 0.5.90
4409
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
2 by Jonathan Riddell
Run autogen.sh before upload
4410
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
4411
$as_echo "$IT_PERL_VERSION" >&6; }
4412
fi
4413
if test "x" != "xno-xml"; then
4414
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
4415
$as_echo_n "checking for XML::Parser... " >&6; }
4416
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
4417
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4418
$as_echo "ok" >&6; }
4419
   else
1.1.27 by Ted Gould
Import upstream version 0.3.10
4420
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
4421
   fi
4422
fi
4423
4424
# Substitute ALL_LINGUAS so we can use it in po/Makefile
4425
4426
4427
# Set DATADIRNAME correctly if it is not set yet
4428
# (copied from glib-gettext.m4)
4429
if test -z "$DATADIRNAME"; then
4430
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431
/* end confdefs.h.  */
4432
4433
int
4434
main ()
4435
{
4436
extern int _nl_msg_cat_cntr;
4437
                       return _nl_msg_cat_cntr
4438
  ;
4439
  return 0;
4440
}
4441
_ACEOF
4442
if ac_fn_c_try_link "$LINENO"; then :
4443
  DATADIRNAME=share
4444
else
4445
  case $host in
4446
    *-*-solaris*)
4447
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4448
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4449
  DATADIRNAME=share
4450
else
4451
  DATADIRNAME=lib
4452
fi
4453
4454
    ;;
4455
    *)
4456
    DATADIRNAME=lib
4457
    ;;
4458
    esac
4459
fi
4460
rm -f core conftest.err conftest.$ac_objext \
4461
    conftest$ac_exeext conftest.$ac_ext
4462
fi
4463
4464
4465
4466
4467
4468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4469
$as_echo_n "checking for library containing strerror... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4470
if ${ac_cv_search_strerror+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4471
  $as_echo_n "(cached) " >&6
4472
else
4473
  ac_func_search_save_LIBS=$LIBS
4474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475
/* end confdefs.h.  */
4476
4477
/* Override any GCC internal prototype to avoid an error.
4478
   Use char because int might match the return type of a GCC
4479
   builtin and then its argument prototype would still apply.  */
4480
#ifdef __cplusplus
4481
extern "C"
4482
#endif
4483
char strerror ();
4484
int
4485
main ()
4486
{
4487
return strerror ();
4488
  ;
4489
  return 0;
4490
}
4491
_ACEOF
4492
for ac_lib in '' cposix; do
4493
  if test -z "$ac_lib"; then
4494
    ac_res="none required"
4495
  else
4496
    ac_res=-l$ac_lib
4497
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4498
  fi
4499
  if ac_fn_c_try_link "$LINENO"; then :
4500
  ac_cv_search_strerror=$ac_res
4501
fi
4502
rm -f core conftest.err conftest.$ac_objext \
4503
    conftest$ac_exeext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4504
  if ${ac_cv_search_strerror+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4505
  break
4506
fi
4507
done
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4508
if ${ac_cv_search_strerror+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4509
4510
else
4511
  ac_cv_search_strerror=no
4512
fi
4513
rm conftest.$ac_ext
4514
LIBS=$ac_func_search_save_LIBS
4515
fi
4516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4517
$as_echo "$ac_cv_search_strerror" >&6; }
4518
ac_res=$ac_cv_search_strerror
4519
if test "$ac_res" != no; then :
4520
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4521
4522
fi
4523
4524
ac_ext=c
4525
ac_cpp='$CPP $CPPFLAGS'
4526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
if test -n "$ac_tool_prefix"; then
4530
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4531
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4534
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4535
  $as_echo_n "(cached) " >&6
4536
else
4537
  if test -n "$CC"; then
4538
  ac_cv_prog_CC="$CC" # Let the user override the test.
4539
else
4540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541
for as_dir in $PATH
4542
do
4543
  IFS=$as_save_IFS
4544
  test -z "$as_dir" && as_dir=.
4545
    for ac_exec_ext in '' $ac_executable_extensions; do
4546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549
    break 2
4550
  fi
4551
done
4552
  done
4553
IFS=$as_save_IFS
4554
4555
fi
4556
fi
4557
CC=$ac_cv_prog_CC
4558
if test -n "$CC"; then
4559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560
$as_echo "$CC" >&6; }
4561
else
4562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563
$as_echo "no" >&6; }
4564
fi
4565
4566
4567
fi
4568
if test -z "$ac_cv_prog_CC"; then
4569
  ac_ct_CC=$CC
4570
  # Extract the first word of "gcc", so it can be a program name with args.
4571
set dummy gcc; ac_word=$2
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4574
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4575
  $as_echo_n "(cached) " >&6
4576
else
4577
  if test -n "$ac_ct_CC"; then
4578
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4579
else
4580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581
for as_dir in $PATH
4582
do
4583
  IFS=$as_save_IFS
4584
  test -z "$as_dir" && as_dir=.
4585
    for ac_exec_ext in '' $ac_executable_extensions; do
4586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587
    ac_cv_prog_ac_ct_CC="gcc"
4588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589
    break 2
4590
  fi
4591
done
4592
  done
4593
IFS=$as_save_IFS
4594
4595
fi
4596
fi
4597
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4598
if test -n "$ac_ct_CC"; then
4599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4600
$as_echo "$ac_ct_CC" >&6; }
4601
else
4602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603
$as_echo "no" >&6; }
4604
fi
4605
4606
  if test "x$ac_ct_CC" = x; then
4607
    CC=""
4608
  else
4609
    case $cross_compiling:$ac_tool_warned in
4610
yes:)
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4613
ac_tool_warned=yes ;;
4614
esac
4615
    CC=$ac_ct_CC
4616
  fi
4617
else
4618
  CC="$ac_cv_prog_CC"
4619
fi
4620
4621
if test -z "$CC"; then
4622
          if test -n "$ac_tool_prefix"; then
4623
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4624
set dummy ${ac_tool_prefix}cc; ac_word=$2
4625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4627
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4628
  $as_echo_n "(cached) " >&6
4629
else
4630
  if test -n "$CC"; then
4631
  ac_cv_prog_CC="$CC" # Let the user override the test.
4632
else
4633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634
for as_dir in $PATH
4635
do
4636
  IFS=$as_save_IFS
4637
  test -z "$as_dir" && as_dir=.
4638
    for ac_exec_ext in '' $ac_executable_extensions; do
4639
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4641
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642
    break 2
4643
  fi
4644
done
4645
  done
4646
IFS=$as_save_IFS
4647
4648
fi
4649
fi
4650
CC=$ac_cv_prog_CC
4651
if test -n "$CC"; then
4652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4653
$as_echo "$CC" >&6; }
4654
else
4655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656
$as_echo "no" >&6; }
4657
fi
4658
4659
4660
  fi
4661
fi
4662
if test -z "$CC"; then
4663
  # Extract the first word of "cc", so it can be a program name with args.
4664
set dummy cc; ac_word=$2
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4667
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4668
  $as_echo_n "(cached) " >&6
4669
else
4670
  if test -n "$CC"; then
4671
  ac_cv_prog_CC="$CC" # Let the user override the test.
4672
else
4673
  ac_prog_rejected=no
4674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675
for as_dir in $PATH
4676
do
4677
  IFS=$as_save_IFS
4678
  test -z "$as_dir" && as_dir=.
4679
    for ac_exec_ext in '' $ac_executable_extensions; do
4680
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4682
       ac_prog_rejected=yes
4683
       continue
4684
     fi
4685
    ac_cv_prog_CC="cc"
4686
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687
    break 2
4688
  fi
4689
done
4690
  done
4691
IFS=$as_save_IFS
4692
4693
if test $ac_prog_rejected = yes; then
4694
  # We found a bogon in the path, so make sure we never use it.
4695
  set dummy $ac_cv_prog_CC
4696
  shift
4697
  if test $# != 0; then
4698
    # We chose a different compiler from the bogus one.
4699
    # However, it has the same basename, so the bogon will be chosen
4700
    # first if we set CC to just the basename; use the full file name.
4701
    shift
4702
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703
  fi
4704
fi
4705
fi
4706
fi
4707
CC=$ac_cv_prog_CC
4708
if test -n "$CC"; then
4709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4710
$as_echo "$CC" >&6; }
4711
else
4712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713
$as_echo "no" >&6; }
4714
fi
4715
4716
4717
fi
4718
if test -z "$CC"; then
4719
  if test -n "$ac_tool_prefix"; then
4720
  for ac_prog in cl.exe
4721
  do
4722
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4723
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4726
if ${ac_cv_prog_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4727
  $as_echo_n "(cached) " >&6
4728
else
4729
  if test -n "$CC"; then
4730
  ac_cv_prog_CC="$CC" # Let the user override the test.
4731
else
4732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733
for as_dir in $PATH
4734
do
4735
  IFS=$as_save_IFS
4736
  test -z "$as_dir" && as_dir=.
4737
    for ac_exec_ext in '' $ac_executable_extensions; do
4738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4740
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741
    break 2
4742
  fi
4743
done
4744
  done
4745
IFS=$as_save_IFS
4746
4747
fi
4748
fi
4749
CC=$ac_cv_prog_CC
4750
if test -n "$CC"; then
4751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4752
$as_echo "$CC" >&6; }
4753
else
4754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755
$as_echo "no" >&6; }
4756
fi
4757
4758
4759
    test -n "$CC" && break
4760
  done
4761
fi
4762
if test -z "$CC"; then
4763
  ac_ct_CC=$CC
4764
  for ac_prog in cl.exe
4765
do
4766
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4767
set dummy $ac_prog; ac_word=$2
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4770
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4771
  $as_echo_n "(cached) " >&6
4772
else
4773
  if test -n "$ac_ct_CC"; then
4774
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4775
else
4776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777
for as_dir in $PATH
4778
do
4779
  IFS=$as_save_IFS
4780
  test -z "$as_dir" && as_dir=.
4781
    for ac_exec_ext in '' $ac_executable_extensions; do
4782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783
    ac_cv_prog_ac_ct_CC="$ac_prog"
4784
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785
    break 2
4786
  fi
4787
done
4788
  done
4789
IFS=$as_save_IFS
4790
4791
fi
4792
fi
4793
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4794
if test -n "$ac_ct_CC"; then
4795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4796
$as_echo "$ac_ct_CC" >&6; }
4797
else
4798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799
$as_echo "no" >&6; }
4800
fi
4801
4802
4803
  test -n "$ac_ct_CC" && break
4804
done
4805
4806
  if test "x$ac_ct_CC" = x; then
4807
    CC=""
4808
  else
4809
    case $cross_compiling:$ac_tool_warned in
4810
yes:)
4811
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813
ac_tool_warned=yes ;;
4814
esac
4815
    CC=$ac_ct_CC
4816
  fi
4817
fi
4818
4819
fi
4820
4821
4822
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4823
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
4824
as_fn_error $? "no acceptable C compiler found in \$PATH
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4825
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
4826
4827
# Provide some information about the compiler.
4828
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4829
set X $ac_compile
4830
ac_compiler=$2
4831
for ac_option in --version -v -V -qversion; do
4832
  { { ac_try="$ac_compiler $ac_option >&5"
4833
case "(($ac_try" in
4834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835
  *) ac_try_echo=$ac_try;;
4836
esac
4837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4838
$as_echo "$ac_try_echo"; } >&5
4839
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4840
  ac_status=$?
4841
  if test -s conftest.err; then
4842
    sed '10a\
4843
... rest of stderr output deleted ...
4844
         10q' conftest.err >conftest.er1
4845
    cat conftest.er1 >&5
4846
  fi
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
4847
  rm -f conftest.er1 conftest.err
2 by Jonathan Riddell
Run autogen.sh before upload
4848
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4849
  test $ac_status = 0; }
4850
done
4851
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4853
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4854
if ${ac_cv_c_compiler_gnu+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4855
  $as_echo_n "(cached) " >&6
4856
else
4857
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858
/* end confdefs.h.  */
4859
4860
int
4861
main ()
4862
{
4863
#ifndef __GNUC__
4864
       choke me
4865
#endif
4866
4867
  ;
4868
  return 0;
4869
}
4870
_ACEOF
4871
if ac_fn_c_try_compile "$LINENO"; then :
4872
  ac_compiler_gnu=yes
4873
else
4874
  ac_compiler_gnu=no
4875
fi
4876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4878
4879
fi
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4881
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4882
if test $ac_compiler_gnu = yes; then
4883
  GCC=yes
4884
else
4885
  GCC=
4886
fi
4887
ac_test_CFLAGS=${CFLAGS+set}
4888
ac_save_CFLAGS=$CFLAGS
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4890
$as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4891
if ${ac_cv_prog_cc_g+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4892
  $as_echo_n "(cached) " >&6
4893
else
4894
  ac_save_c_werror_flag=$ac_c_werror_flag
4895
   ac_c_werror_flag=yes
4896
   ac_cv_prog_cc_g=no
4897
   CFLAGS="-g"
4898
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899
/* end confdefs.h.  */
4900
4901
int
4902
main ()
4903
{
4904
4905
  ;
4906
  return 0;
4907
}
4908
_ACEOF
4909
if ac_fn_c_try_compile "$LINENO"; then :
4910
  ac_cv_prog_cc_g=yes
4911
else
4912
  CFLAGS=""
4913
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914
/* end confdefs.h.  */
4915
4916
int
4917
main ()
4918
{
4919
4920
  ;
4921
  return 0;
4922
}
4923
_ACEOF
4924
if ac_fn_c_try_compile "$LINENO"; then :
4925
4926
else
4927
  ac_c_werror_flag=$ac_save_c_werror_flag
4928
	 CFLAGS="-g"
4929
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930
/* end confdefs.h.  */
4931
4932
int
4933
main ()
4934
{
4935
4936
  ;
4937
  return 0;
4938
}
4939
_ACEOF
4940
if ac_fn_c_try_compile "$LINENO"; then :
4941
  ac_cv_prog_cc_g=yes
4942
fi
4943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944
fi
4945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946
fi
4947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948
   ac_c_werror_flag=$ac_save_c_werror_flag
4949
fi
4950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4951
$as_echo "$ac_cv_prog_cc_g" >&6; }
4952
if test "$ac_test_CFLAGS" = set; then
4953
  CFLAGS=$ac_save_CFLAGS
4954
elif test $ac_cv_prog_cc_g = yes; then
4955
  if test "$GCC" = yes; then
4956
    CFLAGS="-g -O2"
4957
  else
4958
    CFLAGS="-g"
4959
  fi
4960
else
4961
  if test "$GCC" = yes; then
4962
    CFLAGS="-O2"
4963
  else
4964
    CFLAGS=
4965
  fi
4966
fi
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4968
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
4969
if ${ac_cv_prog_cc_c89+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
4970
  $as_echo_n "(cached) " >&6
4971
else
4972
  ac_cv_prog_cc_c89=no
4973
ac_save_CC=$CC
4974
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975
/* end confdefs.h.  */
4976
#include <stdarg.h>
4977
#include <stdio.h>
4978
#include <sys/types.h>
4979
#include <sys/stat.h>
4980
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4981
struct buf { int x; };
4982
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4983
static char *e (p, i)
4984
     char **p;
4985
     int i;
4986
{
4987
  return p[i];
4988
}
4989
static char *f (char * (*g) (char **, int), char **p, ...)
4990
{
4991
  char *s;
4992
  va_list v;
4993
  va_start (v,p);
4994
  s = g (p, va_arg (v,int));
4995
  va_end (v);
4996
  return s;
4997
}
4998
4999
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5000
   function prototypes and stuff, but not '\xHH' hex character constants.
5001
   These don't provoke an error unfortunately, instead are silently treated
5002
   as 'x'.  The following induces an error, until -std is added to get
5003
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5004
   array size at least.  It's necessary to write '\x00'==0 to get something
5005
   that's true only with -std.  */
5006
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5007
5008
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5009
   inside strings and character constants.  */
5010
#define FOO(x) 'x'
5011
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5012
5013
int test (int i, double x);
5014
struct s1 {int (*f) (int a);};
5015
struct s2 {int (*f) (double a);};
5016
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5017
int argc;
5018
char **argv;
5019
int
5020
main ()
5021
{
5022
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5023
  ;
5024
  return 0;
5025
}
5026
_ACEOF
5027
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5028
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5029
do
5030
  CC="$ac_save_CC $ac_arg"
5031
  if ac_fn_c_try_compile "$LINENO"; then :
5032
  ac_cv_prog_cc_c89=$ac_arg
5033
fi
5034
rm -f core conftest.err conftest.$ac_objext
5035
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5036
done
5037
rm -f conftest.$ac_ext
5038
CC=$ac_save_CC
5039
5040
fi
5041
# AC_CACHE_VAL
5042
case "x$ac_cv_prog_cc_c89" in
5043
  x)
5044
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5045
$as_echo "none needed" >&6; } ;;
5046
  xno)
5047
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5048
$as_echo "unsupported" >&6; } ;;
5049
  *)
5050
    CC="$CC $ac_cv_prog_cc_c89"
5051
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5052
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5053
esac
5054
if test "x$ac_cv_prog_cc_c89" != xno; then :
5055
5056
fi
5057
5058
ac_ext=c
5059
ac_cpp='$CPP $CPPFLAGS'
5060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064
depcc="$CC"   am_compiler_list=
5065
5066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5067
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5068
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5069
  $as_echo_n "(cached) " >&6
5070
else
5071
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072
  # We make a subdir and do the tests there.  Otherwise we can end up
5073
  # making bogus files that we don't know about and never remove.  For
5074
  # instance it was reported that on HP-UX the gcc test will end up
5075
  # making a dummy file named `D' -- because `-MD' means `put the output
5076
  # in D'.
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
5077
  rm -rf conftest.dir
2 by Jonathan Riddell
Run autogen.sh before upload
5078
  mkdir conftest.dir
5079
  # Copy depcomp to subdir because otherwise we won't find it if we're
5080
  # using a relative directory.
5081
  cp "$am_depcomp" conftest.dir
5082
  cd conftest.dir
5083
  # We will build objects and dependencies in a subdirectory because
5084
  # it helps to detect inapplicable dependency modes.  For instance
5085
  # both Tru64's cc and ICC support -MD to output dependencies as a
5086
  # side effect of compilation, but ICC will put the dependencies in
5087
  # the current directory while Tru64 will put them in the object
5088
  # directory.
5089
  mkdir sub
5090
5091
  am_cv_CC_dependencies_compiler_type=none
5092
  if test "$am_compiler_list" = ""; then
5093
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094
  fi
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5095
  am__universal=false
5096
  case " $depcc " in #(
5097
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098
     esac
5099
2 by Jonathan Riddell
Run autogen.sh before upload
5100
  for depmode in $am_compiler_list; do
5101
    # Setup a source with many dependencies, because some compilers
5102
    # like to wrap large dependency lists on column 80 (with \), and
5103
    # we should not choose a depcomp mode which is confused by this.
5104
    #
5105
    # We need to recreate these files for each test, as the compiler may
5106
    # overwrite some of them when testing with obscure command lines.
5107
    # This happens at least with the AIX C compiler.
5108
    : > sub/conftest.c
5109
    for i in 1 2 3 4 5 6; do
5110
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5112
      # Solaris 8's {/usr,}/bin/sh.
5113
      touch sub/conftst$i.h
5114
    done
5115
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5116
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5117
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5118
    # mode.  It turns out that the SunPro C++ compiler does not properly
5119
    # handle `-M -o', and we need to detect this.  Also, some Intel
5120
    # versions had trouble with output in subdirs
5121
    am__obj=sub/conftest.${OBJEXT-o}
5122
    am__minus_obj="-o $am__obj"
2 by Jonathan Riddell
Run autogen.sh before upload
5123
    case $depmode in
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5124
    gcc)
5125
      # This depmode causes a compiler race in universal mode.
5126
      test "$am__universal" = false || continue
5127
      ;;
2 by Jonathan Riddell
Run autogen.sh before upload
5128
    nosideeffect)
5129
      # after this tag, mechanisms are not by side-effect, so they'll
5130
      # only be used when explicitly requested
5131
      if test "x$enable_dependency_tracking" = xyes; then
5132
	continue
5133
      else
5134
	break
5135
      fi
5136
      ;;
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
5137
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5138
      # This compiler won't grok `-c -o', but also, the minuso test has
5139
      # not run yet.  These depmodes are late enough in the game, and
5140
      # so weak that their functioning should not be impacted.
5141
      am__obj=conftest.${OBJEXT-o}
5142
      am__minus_obj=
5143
      ;;
2 by Jonathan Riddell
Run autogen.sh before upload
5144
    none) break ;;
5145
    esac
5146
    if depmode=$depmode \
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5147
       source=sub/conftest.c object=$am__obj \
2 by Jonathan Riddell
Run autogen.sh before upload
5148
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5149
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2 by Jonathan Riddell
Run autogen.sh before upload
5150
         >/dev/null 2>conftest.err &&
5151
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1.1 by Martin Pitt
Import upstream version 0.1.0
5153
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2 by Jonathan Riddell
Run autogen.sh before upload
5154
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155
      # icc doesn't choke on unknown options, it will just issue warnings
5156
      # or remarks (even with -Werror).  So we grep stderr for any message
5157
      # that says an option was ignored or not supported.
5158
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5159
      #   icc: Command line warning: ignoring option '-M'; no argument required
5160
      # The diagnosis changed in icc 8.0:
5161
      #   icc: Command line remark: option '-MP' not supported
5162
      if (grep 'ignoring option' conftest.err ||
5163
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164
        am_cv_CC_dependencies_compiler_type=$depmode
5165
        break
5166
      fi
5167
    fi
5168
  done
5169
5170
  cd ..
5171
  rm -rf conftest.dir
5172
else
5173
  am_cv_CC_dependencies_compiler_type=none
5174
fi
5175
5176
fi
5177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5178
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5179
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5180
5181
 if
5182
  test "x$enable_dependency_tracking" != xno \
5183
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5184
  am__fastdepCC_TRUE=
5185
  am__fastdepCC_FALSE='#'
5186
else
5187
  am__fastdepCC_TRUE='#'
5188
  am__fastdepCC_FALSE=
5189
fi
5190
5191
5192
if test "x$CC" != xcc; then
5193
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5194
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5195
else
5196
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5197
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5198
fi
5199
set dummy $CC; ac_cc=`$as_echo "$2" |
5200
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5201
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5202
  $as_echo_n "(cached) " >&6
5203
else
5204
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205
/* end confdefs.h.  */
5206
5207
int
5208
main ()
5209
{
5210
5211
  ;
5212
  return 0;
5213
}
5214
_ACEOF
5215
# Make sure it works both with $CC and with simple cc.
5216
# We do the test twice because some compilers refuse to overwrite an
5217
# existing .o file with -o, though they will create one.
5218
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5219
rm -f conftest2.*
5220
if { { case "(($ac_try" in
5221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222
  *) ac_try_echo=$ac_try;;
5223
esac
5224
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225
$as_echo "$ac_try_echo"; } >&5
5226
  (eval "$ac_try") 2>&5
5227
  ac_status=$?
5228
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229
  test $ac_status = 0; } &&
5230
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232
  *) ac_try_echo=$ac_try;;
5233
esac
5234
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5235
$as_echo "$ac_try_echo"; } >&5
5236
  (eval "$ac_try") 2>&5
5237
  ac_status=$?
5238
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5239
  test $ac_status = 0; };
5240
then
5241
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5242
  if test "x$CC" != xcc; then
5243
    # Test first that cc exists at all.
5244
    if { ac_try='cc -c conftest.$ac_ext >&5'
5245
  { { case "(($ac_try" in
5246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247
  *) ac_try_echo=$ac_try;;
5248
esac
5249
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5250
$as_echo "$ac_try_echo"; } >&5
5251
  (eval "$ac_try") 2>&5
5252
  ac_status=$?
5253
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5254
  test $ac_status = 0; }; }; then
5255
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5256
      rm -f conftest2.*
5257
      if { { case "(($ac_try" in
5258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259
  *) ac_try_echo=$ac_try;;
5260
esac
5261
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262
$as_echo "$ac_try_echo"; } >&5
5263
  (eval "$ac_try") 2>&5
5264
  ac_status=$?
5265
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266
  test $ac_status = 0; } &&
5267
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269
  *) ac_try_echo=$ac_try;;
5270
esac
5271
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5272
$as_echo "$ac_try_echo"; } >&5
5273
  (eval "$ac_try") 2>&5
5274
  ac_status=$?
5275
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5276
  test $ac_status = 0; };
5277
      then
5278
	# cc works too.
5279
	:
5280
      else
5281
	# cc exists but doesn't like -o.
5282
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5283
      fi
5284
    fi
5285
  fi
5286
else
5287
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5288
fi
5289
rm -f core conftest*
5290
5291
fi
5292
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294
$as_echo "yes" >&6; }
5295
else
5296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297
$as_echo "no" >&6; }
5298
5299
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5300
5301
fi
5302
5303
# FIXME: we rely on the cache variable name because
5304
# there is no other way.
5305
set dummy $CC
5306
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5307
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5308
if test "$am_t" != yes; then
5309
   # Losing compiler, so override with the script.
5310
   # FIXME: It is wrong to rewrite CC.
5311
   # But if we don't then we get into trouble of one sort or another.
5312
   # A longer-term fix would be to have automake use am__CC in this case,
5313
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5314
   CC="$am_aux_dir/compile $CC"
5315
fi
5316
5317
5318
ac_ext=c
5319
ac_cpp='$CPP $CPPFLAGS'
5320
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5324
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5325
# On Suns, sometimes $CPP names a directory.
5326
if test -n "$CPP" && test -d "$CPP"; then
5327
  CPP=
5328
fi
5329
if test -z "$CPP"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5330
  if ${ac_cv_prog_CPP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5331
  $as_echo_n "(cached) " >&6
5332
else
5333
      # Double quotes because CPP needs to be expanded
5334
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5335
    do
5336
      ac_preproc_ok=false
5337
for ac_c_preproc_warn_flag in '' yes
5338
do
5339
  # Use a header file that comes with gcc, so configuring glibc
5340
  # with a fresh cross-compiler works.
5341
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342
  # <limits.h> exists even on freestanding compilers.
5343
  # On the NeXT, cc -E runs the code through the compiler's parser,
5344
  # not just through cpp. "Syntax error" is here to catch this case.
5345
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346
/* end confdefs.h.  */
5347
#ifdef __STDC__
5348
# include <limits.h>
5349
#else
5350
# include <assert.h>
5351
#endif
5352
		     Syntax error
5353
_ACEOF
5354
if ac_fn_c_try_cpp "$LINENO"; then :
5355
5356
else
5357
  # Broken: fails on valid input.
5358
continue
5359
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
5360
rm -f conftest.err conftest.i conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5361
5362
  # OK, works on sane cases.  Now check whether nonexistent headers
5363
  # can be detected and how.
5364
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365
/* end confdefs.h.  */
5366
#include <ac_nonexistent.h>
5367
_ACEOF
5368
if ac_fn_c_try_cpp "$LINENO"; then :
5369
  # Broken: success on invalid input.
5370
continue
5371
else
5372
  # Passes both tests.
5373
ac_preproc_ok=:
5374
break
5375
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
5376
rm -f conftest.err conftest.i conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5377
5378
done
5379
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.27 by Ted Gould
Import upstream version 0.3.10
5380
rm -f conftest.i conftest.err conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5381
if $ac_preproc_ok; then :
5382
  break
5383
fi
5384
5385
    done
5386
    ac_cv_prog_CPP=$CPP
5387
5388
fi
5389
  CPP=$ac_cv_prog_CPP
5390
else
5391
  ac_cv_prog_CPP=$CPP
5392
fi
5393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5394
$as_echo "$CPP" >&6; }
5395
ac_preproc_ok=false
5396
for ac_c_preproc_warn_flag in '' yes
5397
do
5398
  # Use a header file that comes with gcc, so configuring glibc
5399
  # with a fresh cross-compiler works.
5400
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401
  # <limits.h> exists even on freestanding compilers.
5402
  # On the NeXT, cc -E runs the code through the compiler's parser,
5403
  # not just through cpp. "Syntax error" is here to catch this case.
5404
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405
/* end confdefs.h.  */
5406
#ifdef __STDC__
5407
# include <limits.h>
5408
#else
5409
# include <assert.h>
5410
#endif
5411
		     Syntax error
5412
_ACEOF
5413
if ac_fn_c_try_cpp "$LINENO"; then :
5414
5415
else
5416
  # Broken: fails on valid input.
5417
continue
5418
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
5419
rm -f conftest.err conftest.i conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5420
5421
  # OK, works on sane cases.  Now check whether nonexistent headers
5422
  # can be detected and how.
5423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424
/* end confdefs.h.  */
5425
#include <ac_nonexistent.h>
5426
_ACEOF
5427
if ac_fn_c_try_cpp "$LINENO"; then :
5428
  # Broken: success on invalid input.
5429
continue
5430
else
5431
  # Passes both tests.
5432
ac_preproc_ok=:
5433
break
5434
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
5435
rm -f conftest.err conftest.i conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5436
5437
done
5438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.27 by Ted Gould
Import upstream version 0.3.10
5439
rm -f conftest.i conftest.err conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
5440
if $ac_preproc_ok; then :
5441
5442
else
5443
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5444
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
5445
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5446
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
5447
fi
5448
5449
ac_ext=c
5450
ac_cpp='$CPP $CPPFLAGS'
5451
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5457
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5458
if ${ac_cv_path_GREP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5459
  $as_echo_n "(cached) " >&6
5460
else
5461
  if test -z "$GREP"; then
5462
  ac_path_GREP_found=false
5463
  # Loop through the user's path and test for each of PROGNAME-LIST
5464
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5466
do
5467
  IFS=$as_save_IFS
5468
  test -z "$as_dir" && as_dir=.
5469
    for ac_prog in grep ggrep; do
5470
    for ac_exec_ext in '' $ac_executable_extensions; do
5471
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5472
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5473
# Check for GNU ac_path_GREP and select it if it is found.
5474
  # Check for GNU $ac_path_GREP
5475
case `"$ac_path_GREP" --version 2>&1` in
5476
*GNU*)
5477
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5478
*)
5479
  ac_count=0
5480
  $as_echo_n 0123456789 >"conftest.in"
5481
  while :
5482
  do
5483
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5484
    mv "conftest.tmp" "conftest.in"
5485
    cp "conftest.in" "conftest.nl"
5486
    $as_echo 'GREP' >> "conftest.nl"
5487
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5488
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5489
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5490
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5491
      # Best one so far, save it but keep looking for a better one
5492
      ac_cv_path_GREP="$ac_path_GREP"
5493
      ac_path_GREP_max=$ac_count
5494
    fi
5495
    # 10*(2^10) chars as input seems more than enough
5496
    test $ac_count -gt 10 && break
5497
  done
5498
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5499
esac
5500
5501
      $ac_path_GREP_found && break 3
5502
    done
5503
  done
5504
  done
5505
IFS=$as_save_IFS
5506
  if test -z "$ac_cv_path_GREP"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
5507
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5508
  fi
5509
else
5510
  ac_cv_path_GREP=$GREP
5511
fi
5512
5513
fi
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5515
$as_echo "$ac_cv_path_GREP" >&6; }
5516
 GREP="$ac_cv_path_GREP"
5517
5518
5519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5520
$as_echo_n "checking for egrep... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5521
if ${ac_cv_path_EGREP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5522
  $as_echo_n "(cached) " >&6
5523
else
5524
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5525
   then ac_cv_path_EGREP="$GREP -E"
5526
   else
5527
     if test -z "$EGREP"; then
5528
  ac_path_EGREP_found=false
5529
  # Loop through the user's path and test for each of PROGNAME-LIST
5530
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532
do
5533
  IFS=$as_save_IFS
5534
  test -z "$as_dir" && as_dir=.
5535
    for ac_prog in egrep; do
5536
    for ac_exec_ext in '' $ac_executable_extensions; do
5537
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5538
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5539
# Check for GNU ac_path_EGREP and select it if it is found.
5540
  # Check for GNU $ac_path_EGREP
5541
case `"$ac_path_EGREP" --version 2>&1` in
5542
*GNU*)
5543
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5544
*)
5545
  ac_count=0
5546
  $as_echo_n 0123456789 >"conftest.in"
5547
  while :
5548
  do
5549
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5550
    mv "conftest.tmp" "conftest.in"
5551
    cp "conftest.in" "conftest.nl"
5552
    $as_echo 'EGREP' >> "conftest.nl"
5553
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5556
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5557
      # Best one so far, save it but keep looking for a better one
5558
      ac_cv_path_EGREP="$ac_path_EGREP"
5559
      ac_path_EGREP_max=$ac_count
5560
    fi
5561
    # 10*(2^10) chars as input seems more than enough
5562
    test $ac_count -gt 10 && break
5563
  done
5564
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565
esac
5566
5567
      $ac_path_EGREP_found && break 3
5568
    done
5569
  done
5570
  done
5571
IFS=$as_save_IFS
5572
  if test -z "$ac_cv_path_EGREP"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
5573
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5574
  fi
5575
else
5576
  ac_cv_path_EGREP=$EGREP
5577
fi
5578
5579
   fi
5580
fi
5581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5582
$as_echo "$ac_cv_path_EGREP" >&6; }
5583
 EGREP="$ac_cv_path_EGREP"
5584
5585
5586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5587
$as_echo_n "checking for ANSI C header files... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5588
if ${ac_cv_header_stdc+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5589
  $as_echo_n "(cached) " >&6
5590
else
5591
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592
/* end confdefs.h.  */
5593
#include <stdlib.h>
5594
#include <stdarg.h>
5595
#include <string.h>
5596
#include <float.h>
5597
5598
int
5599
main ()
5600
{
5601
5602
  ;
5603
  return 0;
5604
}
5605
_ACEOF
5606
if ac_fn_c_try_compile "$LINENO"; then :
5607
  ac_cv_header_stdc=yes
5608
else
5609
  ac_cv_header_stdc=no
5610
fi
5611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612
5613
if test $ac_cv_header_stdc = yes; then
5614
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616
/* end confdefs.h.  */
5617
#include <string.h>
5618
5619
_ACEOF
5620
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5621
  $EGREP "memchr" >/dev/null 2>&1; then :
5622
5623
else
5624
  ac_cv_header_stdc=no
5625
fi
5626
rm -f conftest*
5627
5628
fi
5629
5630
if test $ac_cv_header_stdc = yes; then
5631
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5632
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633
/* end confdefs.h.  */
5634
#include <stdlib.h>
5635
5636
_ACEOF
5637
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638
  $EGREP "free" >/dev/null 2>&1; then :
5639
5640
else
5641
  ac_cv_header_stdc=no
5642
fi
5643
rm -f conftest*
5644
5645
fi
5646
5647
if test $ac_cv_header_stdc = yes; then
5648
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5649
  if test "$cross_compiling" = yes; then :
5650
  :
5651
else
5652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653
/* end confdefs.h.  */
5654
#include <ctype.h>
5655
#include <stdlib.h>
5656
#if ((' ' & 0x0FF) == 0x020)
5657
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5658
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5659
#else
5660
# define ISLOWER(c) \
5661
		   (('a' <= (c) && (c) <= 'i') \
5662
		     || ('j' <= (c) && (c) <= 'r') \
5663
		     || ('s' <= (c) && (c) <= 'z'))
5664
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5665
#endif
5666
5667
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5668
int
5669
main ()
5670
{
5671
  int i;
5672
  for (i = 0; i < 256; i++)
5673
    if (XOR (islower (i), ISLOWER (i))
5674
	|| toupper (i) != TOUPPER (i))
5675
      return 2;
5676
  return 0;
5677
}
5678
_ACEOF
5679
if ac_fn_c_try_run "$LINENO"; then :
5680
5681
else
5682
  ac_cv_header_stdc=no
5683
fi
5684
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5685
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5686
fi
5687
5688
fi
5689
fi
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5691
$as_echo "$ac_cv_header_stdc" >&6; }
5692
if test $ac_cv_header_stdc = yes; then
5693
5694
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5695
5696
fi
5697
5698
case `pwd` in
5699
  *\ * | *\	*)
5700
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5701
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5702
esac
5703
5704
5705
1.1.56 by Ken VanDine
Import upstream version 0.5.90
5706
macro_version='2.4.2'
5707
macro_revision='1.3337'
2 by Jonathan Riddell
Run autogen.sh before upload
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
ltmain="$ac_aux_dir/ltmain.sh"
5722
5723
# Make sure we can run config.sub.
5724
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
5725
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5726
5727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5728
$as_echo_n "checking build system type... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5729
if ${ac_cv_build+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5730
  $as_echo_n "(cached) " >&6
5731
else
5732
  ac_build_alias=$build_alias
5733
test "x$ac_build_alias" = x &&
5734
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5735
test "x$ac_build_alias" = x &&
1.1.27 by Ted Gould
Import upstream version 0.3.10
5736
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5737
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
5738
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5739
5740
fi
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5742
$as_echo "$ac_cv_build" >&6; }
5743
case $ac_cv_build in
5744
*-*-*) ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5745
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2 by Jonathan Riddell
Run autogen.sh before upload
5746
esac
5747
build=$ac_cv_build
5748
ac_save_IFS=$IFS; IFS='-'
5749
set x $ac_cv_build
5750
shift
5751
build_cpu=$1
5752
build_vendor=$2
5753
shift; shift
5754
# Remember, the first character of IFS is used to create $*,
5755
# except with old shells:
5756
build_os=$*
5757
IFS=$ac_save_IFS
5758
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5759
5760
5761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5762
$as_echo_n "checking host system type... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5763
if ${ac_cv_host+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5764
  $as_echo_n "(cached) " >&6
5765
else
5766
  if test "x$host_alias" = x; then
5767
  ac_cv_host=$ac_cv_build
5768
else
5769
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
5770
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5771
fi
5772
5773
fi
5774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5775
$as_echo "$ac_cv_host" >&6; }
5776
case $ac_cv_host in
5777
*-*-*) ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5778
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2 by Jonathan Riddell
Run autogen.sh before upload
5779
esac
5780
host=$ac_cv_host
5781
ac_save_IFS=$IFS; IFS='-'
5782
set x $ac_cv_host
5783
shift
5784
host_cpu=$1
5785
host_vendor=$2
5786
shift; shift
5787
# Remember, the first character of IFS is used to create $*,
5788
# except with old shells:
5789
host_os=$*
5790
IFS=$ac_save_IFS
5791
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5792
5793
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5794
# Backslashify metacharacters that are still active within
5795
# double-quoted strings.
5796
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5797
5798
# Same as above, but do not quote variable references.
5799
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5800
5801
# Sed substitution to delay expansion of an escaped shell variable in a
5802
# double_quote_subst'ed string.
5803
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5804
5805
# Sed substitution to delay expansion of an escaped single quote.
5806
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5807
5808
# Sed substitution to avoid accidental globbing in evaled expressions
5809
no_glob_subst='s/\*/\\\*/g'
5810
5811
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5812
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5813
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5814
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5816
$as_echo_n "checking how to print strings... " >&6; }
5817
# Test print first, because it will be a builtin if present.
5818
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5819
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5820
  ECHO='print -r --'
5821
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5822
  ECHO='printf %s\n'
5823
else
5824
  # Use this function as a fallback that always works.
5825
  func_fallback_echo ()
5826
  {
5827
    eval 'cat <<_LTECHO_EOF
5828
$1
5829
_LTECHO_EOF'
5830
  }
5831
  ECHO='func_fallback_echo'
5832
fi
5833
5834
# func_echo_all arg...
5835
# Invoke $ECHO with all args, space-separated.
5836
func_echo_all ()
5837
{
5838
    $ECHO ""
5839
}
5840
5841
case "$ECHO" in
5842
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5843
$as_echo "printf" >&6; } ;;
5844
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5845
$as_echo "print -r" >&6; } ;;
5846
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5847
$as_echo "cat" >&6; } ;;
5848
esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
2 by Jonathan Riddell
Run autogen.sh before upload
5863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5864
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5865
if ${ac_cv_path_SED+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5866
  $as_echo_n "(cached) " >&6
5867
else
5868
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5869
     for ac_i in 1 2 3 4 5 6 7; do
5870
       ac_script="$ac_script$as_nl$ac_script"
5871
     done
5872
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5873
     { ac_script=; unset ac_script;}
5874
     if test -z "$SED"; then
5875
  ac_path_SED_found=false
5876
  # Loop through the user's path and test for each of PROGNAME-LIST
5877
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878
for as_dir in $PATH
5879
do
5880
  IFS=$as_save_IFS
5881
  test -z "$as_dir" && as_dir=.
5882
    for ac_prog in sed gsed; do
5883
    for ac_exec_ext in '' $ac_executable_extensions; do
5884
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5885
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5886
# Check for GNU ac_path_SED and select it if it is found.
5887
  # Check for GNU $ac_path_SED
5888
case `"$ac_path_SED" --version 2>&1` in
5889
*GNU*)
5890
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5891
*)
5892
  ac_count=0
5893
  $as_echo_n 0123456789 >"conftest.in"
5894
  while :
5895
  do
5896
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5897
    mv "conftest.tmp" "conftest.in"
5898
    cp "conftest.in" "conftest.nl"
5899
    $as_echo '' >> "conftest.nl"
5900
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5901
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5902
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5903
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5904
      # Best one so far, save it but keep looking for a better one
5905
      ac_cv_path_SED="$ac_path_SED"
5906
      ac_path_SED_max=$ac_count
5907
    fi
5908
    # 10*(2^10) chars as input seems more than enough
5909
    test $ac_count -gt 10 && break
5910
  done
5911
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5912
esac
5913
5914
      $ac_path_SED_found && break 3
5915
    done
5916
  done
5917
  done
5918
IFS=$as_save_IFS
5919
  if test -z "$ac_cv_path_SED"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
5920
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
5921
  fi
5922
else
5923
  ac_cv_path_SED=$SED
5924
fi
5925
5926
fi
5927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5928
$as_echo "$ac_cv_path_SED" >&6; }
5929
 SED="$ac_cv_path_SED"
5930
  rm -f conftest.sed
5931
5932
test -z "$SED" && SED=sed
5933
Xsed="$SED -e 1s/^X//"
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5946
$as_echo_n "checking for fgrep... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
5947
if ${ac_cv_path_FGREP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
5948
  $as_echo_n "(cached) " >&6
5949
else
5950
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5951
   then ac_cv_path_FGREP="$GREP -F"
5952
   else
5953
     if test -z "$FGREP"; then
5954
  ac_path_FGREP_found=false
5955
  # Loop through the user's path and test for each of PROGNAME-LIST
5956
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958
do
5959
  IFS=$as_save_IFS
5960
  test -z "$as_dir" && as_dir=.
5961
    for ac_prog in fgrep; do
5962
    for ac_exec_ext in '' $ac_executable_extensions; do
5963
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5964
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5965
# Check for GNU ac_path_FGREP and select it if it is found.
5966
  # Check for GNU $ac_path_FGREP
5967
case `"$ac_path_FGREP" --version 2>&1` in
5968
*GNU*)
5969
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5970
*)
5971
  ac_count=0
5972
  $as_echo_n 0123456789 >"conftest.in"
5973
  while :
5974
  do
5975
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5976
    mv "conftest.tmp" "conftest.in"
5977
    cp "conftest.in" "conftest.nl"
5978
    $as_echo 'FGREP' >> "conftest.nl"
5979
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5980
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5981
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5982
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5983
      # Best one so far, save it but keep looking for a better one
5984
      ac_cv_path_FGREP="$ac_path_FGREP"
5985
      ac_path_FGREP_max=$ac_count
5986
    fi
5987
    # 10*(2^10) chars as input seems more than enough
5988
    test $ac_count -gt 10 && break
5989
  done
5990
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5991
esac
5992
5993
      $ac_path_FGREP_found && break 3
5994
    done
5995
  done
5996
  done
5997
IFS=$as_save_IFS
5998
  if test -z "$ac_cv_path_FGREP"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
5999
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
6000
  fi
6001
else
6002
  ac_cv_path_FGREP=$FGREP
6003
fi
6004
6005
   fi
6006
fi
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6008
$as_echo "$ac_cv_path_FGREP" >&6; }
6009
 FGREP="$ac_cv_path_FGREP"
6010
6011
6012
test -z "$GREP" && GREP=grep
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
# Check whether --with-gnu-ld was given.
6033
if test "${with_gnu_ld+set}" = set; then :
6034
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6035
else
6036
  with_gnu_ld=no
6037
fi
6038
6039
ac_prog=ld
6040
if test "$GCC" = yes; then
6041
  # Check if gcc -print-prog-name=ld gives a path.
6042
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6043
$as_echo_n "checking for ld used by $CC... " >&6; }
6044
  case $host in
6045
  *-*-mingw*)
6046
    # gcc leaves a trailing carriage return which upsets mingw
6047
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6048
  *)
6049
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6050
  esac
6051
  case $ac_prog in
6052
    # Accept absolute paths.
6053
    [\\/]* | ?:[\\/]*)
6054
      re_direlt='/[^/][^/]*/\.\./'
6055
      # Canonicalize the pathname of ld
6056
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6057
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6058
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6059
      done
6060
      test -z "$LD" && LD="$ac_prog"
6061
      ;;
6062
  "")
6063
    # If it fails, then pretend we aren't using GCC.
6064
    ac_prog=ld
6065
    ;;
6066
  *)
6067
    # If it is relative, then search for the first ld in PATH.
6068
    with_gnu_ld=unknown
6069
    ;;
6070
  esac
6071
elif test "$with_gnu_ld" = yes; then
6072
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6073
$as_echo_n "checking for GNU ld... " >&6; }
6074
else
6075
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6076
$as_echo_n "checking for non-GNU ld... " >&6; }
6077
fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6078
if ${lt_cv_path_LD+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6079
  $as_echo_n "(cached) " >&6
6080
else
6081
  if test -z "$LD"; then
6082
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083
  for ac_dir in $PATH; do
6084
    IFS="$lt_save_ifs"
6085
    test -z "$ac_dir" && ac_dir=.
6086
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6087
      lt_cv_path_LD="$ac_dir/$ac_prog"
6088
      # Check to see if the program is GNU ld.  I'd rather use --version,
6089
      # but apparently some variants of GNU ld only accept -v.
6090
      # Break only if it was the GNU/non-GNU ld that we prefer.
6091
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6092
      *GNU* | *'with BFD'*)
6093
	test "$with_gnu_ld" != no && break
6094
	;;
6095
      *)
6096
	test "$with_gnu_ld" != yes && break
6097
	;;
6098
      esac
6099
    fi
6100
  done
6101
  IFS="$lt_save_ifs"
6102
else
6103
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6104
fi
6105
fi
6106
6107
LD="$lt_cv_path_LD"
6108
if test -n "$LD"; then
6109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6110
$as_echo "$LD" >&6; }
6111
else
6112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113
$as_echo "no" >&6; }
6114
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
6115
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
6116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6117
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6118
if ${lt_cv_prog_gnu_ld+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6119
  $as_echo_n "(cached) " >&6
6120
else
6121
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6122
case `$LD -v 2>&1 </dev/null` in
6123
*GNU* | *'with BFD'*)
6124
  lt_cv_prog_gnu_ld=yes
6125
  ;;
6126
*)
6127
  lt_cv_prog_gnu_ld=no
6128
  ;;
6129
esac
6130
fi
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6132
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6133
with_gnu_ld=$lt_cv_prog_gnu_ld
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6144
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6145
if ${lt_cv_path_NM+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6146
  $as_echo_n "(cached) " >&6
6147
else
6148
  if test -n "$NM"; then
6149
  # Let the user override the test.
6150
  lt_cv_path_NM="$NM"
6151
else
6152
  lt_nm_to_check="${ac_tool_prefix}nm"
6153
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6154
    lt_nm_to_check="$lt_nm_to_check nm"
6155
  fi
6156
  for lt_tmp_nm in $lt_nm_to_check; do
6157
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6158
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6159
      IFS="$lt_save_ifs"
6160
      test -z "$ac_dir" && ac_dir=.
6161
      tmp_nm="$ac_dir/$lt_tmp_nm"
6162
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6163
	# Check to see if the nm accepts a BSD-compat flag.
6164
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6165
	#   nm: unknown option "B" ignored
6166
	# Tru64's nm complains that /dev/null is an invalid object file
6167
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6168
	*/dev/null* | *'Invalid file or object type'*)
6169
	  lt_cv_path_NM="$tmp_nm -B"
6170
	  break
6171
	  ;;
6172
	*)
6173
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6174
	  */dev/null*)
6175
	    lt_cv_path_NM="$tmp_nm -p"
6176
	    break
6177
	    ;;
6178
	  *)
6179
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6180
	    continue # so that we can try to find one that supports BSD flags
6181
	    ;;
6182
	  esac
6183
	  ;;
6184
	esac
6185
      fi
6186
    done
6187
    IFS="$lt_save_ifs"
6188
  done
6189
  : ${lt_cv_path_NM=no}
6190
fi
6191
fi
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6193
$as_echo "$lt_cv_path_NM" >&6; }
6194
if test "$lt_cv_path_NM" != "no"; then
6195
  NM="$lt_cv_path_NM"
6196
else
6197
  # Didn't find any BSD compatible name lister, look for dumpbin.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6198
  if test -n "$DUMPBIN"; then :
6199
    # Let the user override the test.
6200
  else
6201
    if test -n "$ac_tool_prefix"; then
6202
  for ac_prog in dumpbin "link -dump"
2 by Jonathan Riddell
Run autogen.sh before upload
6203
  do
6204
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6205
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6208
if ${ac_cv_prog_DUMPBIN+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6209
  $as_echo_n "(cached) " >&6
6210
else
6211
  if test -n "$DUMPBIN"; then
6212
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6213
else
6214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215
for as_dir in $PATH
6216
do
6217
  IFS=$as_save_IFS
6218
  test -z "$as_dir" && as_dir=.
6219
    for ac_exec_ext in '' $ac_executable_extensions; do
6220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6222
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223
    break 2
6224
  fi
6225
done
6226
  done
6227
IFS=$as_save_IFS
6228
6229
fi
6230
fi
6231
DUMPBIN=$ac_cv_prog_DUMPBIN
6232
if test -n "$DUMPBIN"; then
6233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6234
$as_echo "$DUMPBIN" >&6; }
6235
else
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237
$as_echo "no" >&6; }
6238
fi
6239
6240
6241
    test -n "$DUMPBIN" && break
6242
  done
6243
fi
6244
if test -z "$DUMPBIN"; then
6245
  ac_ct_DUMPBIN=$DUMPBIN
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6246
  for ac_prog in dumpbin "link -dump"
2 by Jonathan Riddell
Run autogen.sh before upload
6247
do
6248
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6249
set dummy $ac_prog; 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; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6252
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6253
  $as_echo_n "(cached) " >&6
6254
else
6255
  if test -n "$ac_ct_DUMPBIN"; then
6256
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$ac_prog"
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
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6276
if test -n "$ac_ct_DUMPBIN"; then
6277
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6278
$as_echo "$ac_ct_DUMPBIN" >&6; }
6279
else
6280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281
$as_echo "no" >&6; }
6282
fi
6283
6284
6285
  test -n "$ac_ct_DUMPBIN" && break
6286
done
6287
6288
  if test "x$ac_ct_DUMPBIN" = x; then
6289
    DUMPBIN=":"
6290
  else
6291
    case $cross_compiling:$ac_tool_warned in
6292
yes:)
6293
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295
ac_tool_warned=yes ;;
6296
esac
6297
    DUMPBIN=$ac_ct_DUMPBIN
6298
  fi
6299
fi
6300
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6301
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6302
    *COFF*)
6303
      DUMPBIN="$DUMPBIN -symbols"
6304
      ;;
6305
    *)
6306
      DUMPBIN=:
6307
      ;;
6308
    esac
6309
  fi
2 by Jonathan Riddell
Run autogen.sh before upload
6310
6311
  if test "$DUMPBIN" != ":"; then
6312
    NM="$DUMPBIN"
6313
  fi
6314
fi
6315
test -z "$NM" && NM=nm
6316
6317
6318
6319
6320
6321
6322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6323
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6324
if ${lt_cv_nm_interface+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6325
  $as_echo_n "(cached) " >&6
6326
else
6327
  lt_cv_nm_interface="BSD nm"
6328
  echo "int some_variable = 0;" > conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6329
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
6330
  (eval "$ac_compile" 2>conftest.err)
6331
  cat conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6332
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
6333
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6334
  cat conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6335
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
6336
  cat conftest.out >&5
6337
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6338
    lt_cv_nm_interface="MS dumpbin"
6339
  fi
6340
  rm -f conftest*
6341
fi
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6343
$as_echo "$lt_cv_nm_interface" >&6; }
6344
6345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6346
$as_echo_n "checking whether ln -s works... " >&6; }
6347
LN_S=$as_ln_s
6348
if test "$LN_S" = "ln -s"; then
6349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6350
$as_echo "yes" >&6; }
6351
else
6352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6353
$as_echo "no, using $LN_S" >&6; }
6354
fi
6355
6356
# find the maximum length of command line arguments
6357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6358
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6359
if ${lt_cv_sys_max_cmd_len+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6360
  $as_echo_n "(cached) " >&6
6361
else
6362
    i=0
6363
  teststring="ABCD"
6364
6365
  case $build_os in
6366
  msdosdjgpp*)
6367
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6368
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6369
    # during glob expansion).  Even if it were fixed, the result of this
6370
    # check would be larger than it should be.
6371
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6372
    ;;
6373
6374
  gnu*)
6375
    # Under GNU Hurd, this test is not required because there is
6376
    # no limit to the length of command line arguments.
6377
    # Libtool will interpret -1 as no limit whatsoever
6378
    lt_cv_sys_max_cmd_len=-1;
6379
    ;;
6380
6381
  cygwin* | mingw* | cegcc*)
6382
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6383
    # about 5 minutes as the teststring grows exponentially.
6384
    # Worse, since 9x/ME are not pre-emptively multitasking,
6385
    # you end up with a "frozen" computer, even though with patience
6386
    # the test eventually succeeds (with a max line length of 256k).
6387
    # Instead, let's just punt: use the minimum linelength reported by
6388
    # all of the supported platforms: 8192 (on NT/2K/XP).
6389
    lt_cv_sys_max_cmd_len=8192;
6390
    ;;
6391
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6392
  mint*)
6393
    # On MiNT this can take a long time and run out of memory.
6394
    lt_cv_sys_max_cmd_len=8192;
6395
    ;;
6396
2 by Jonathan Riddell
Run autogen.sh before upload
6397
  amigaos*)
6398
    # On AmigaOS with pdksh, this test takes hours, literally.
6399
    # So we just punt and use a minimum line length of 8192.
6400
    lt_cv_sys_max_cmd_len=8192;
6401
    ;;
6402
6403
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6404
    # This has been around since 386BSD, at least.  Likely further.
6405
    if test -x /sbin/sysctl; then
6406
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6407
    elif test -x /usr/sbin/sysctl; then
6408
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6409
    else
6410
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6411
    fi
6412
    # And add a safety zone
6413
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6415
    ;;
6416
6417
  interix*)
6418
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6419
    lt_cv_sys_max_cmd_len=196608
6420
    ;;
6421
1.1.56 by Ken VanDine
Import upstream version 0.5.90
6422
  os2*)
6423
    # The test takes a long time on OS/2.
6424
    lt_cv_sys_max_cmd_len=8192
6425
    ;;
6426
2 by Jonathan Riddell
Run autogen.sh before upload
6427
  osf*)
6428
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6429
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6430
    # nice to cause kernel panics so lets avoid the loop below.
6431
    # First set a reasonable default.
6432
    lt_cv_sys_max_cmd_len=16384
6433
    #
6434
    if test -x /sbin/sysconfig; then
6435
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6436
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6437
      esac
6438
    fi
6439
    ;;
6440
  sco3.2v5*)
6441
    lt_cv_sys_max_cmd_len=102400
6442
    ;;
6443
  sysv5* | sco5v6* | sysv4.2uw2*)
6444
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6445
    if test -n "$kargmax"; then
6446
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6447
    else
6448
      lt_cv_sys_max_cmd_len=32768
6449
    fi
6450
    ;;
6451
  *)
6452
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6453
    if test -n "$lt_cv_sys_max_cmd_len"; then
6454
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6455
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6456
    else
6457
      # Make teststring a little bigger before we do anything with it.
6458
      # a 1K string should be a reasonable start.
6459
      for i in 1 2 3 4 5 6 7 8 ; do
6460
        teststring=$teststring$teststring
6461
      done
6462
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6463
      # If test is not a shell built-in, we'll probably end up computing a
6464
      # maximum length that is only half of the actual maximum length, but
6465
      # we can't tell.
1.1.56 by Ken VanDine
Import upstream version 0.5.90
6466
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6467
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2 by Jonathan Riddell
Run autogen.sh before upload
6468
	      test $i != 17 # 1/2 MB should be enough
6469
      do
6470
        i=`expr $i + 1`
6471
        teststring=$teststring$teststring
6472
      done
6473
      # Only check the string length outside the loop.
6474
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6475
      teststring=
6476
      # Add a significant safety factor because C++ compilers can tack on
6477
      # massive amounts of additional arguments before passing them to the
6478
      # linker.  It appears as though 1/2 is a usable value.
6479
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6480
    fi
6481
    ;;
6482
  esac
6483
6484
fi
6485
6486
if test -n $lt_cv_sys_max_cmd_len ; then
6487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6488
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6489
else
6490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6491
$as_echo "none" >&6; }
6492
fi
6493
max_cmd_len=$lt_cv_sys_max_cmd_len
6494
6495
6496
6497
6498
6499
6500
: ${CP="cp -f"}
6501
: ${MV="mv -f"}
6502
: ${RM="rm -f"}
6503
6504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6505
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6506
# Try some XSI features
6507
xsi_shell=no
6508
( _lt_dummy="a/b/c"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6509
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6510
      = c,a/b,b/c, \
2 by Jonathan Riddell
Run autogen.sh before upload
6511
    && eval 'test $(( 1 + 1 )) -eq 2 \
6512
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6513
  && xsi_shell=yes
6514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6515
$as_echo "$xsi_shell" >&6; }
6516
6517
6518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6519
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6520
lt_shell_append=no
6521
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6522
    >/dev/null 2>&1 \
6523
  && lt_shell_append=yes
6524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6525
$as_echo "$lt_shell_append" >&6; }
6526
6527
6528
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6529
  lt_unset=unset
6530
else
6531
  lt_unset=false
6532
fi
6533
6534
6535
6536
6537
6538
# test EBCDIC or ASCII
6539
case `echo X|tr X '\101'` in
6540
 A) # ASCII based system
6541
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6542
  lt_SP2NL='tr \040 \012'
6543
  lt_NL2SP='tr \015\012 \040\040'
6544
  ;;
6545
 *) # EBCDIC based system
6546
  lt_SP2NL='tr \100 \n'
6547
  lt_NL2SP='tr \r\n \100\100'
6548
  ;;
6549
esac
6550
6551
6552
6553
6554
6555
6556
6557
6558
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6560
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6561
if ${lt_cv_to_host_file_cmd+:} false; then :
6562
  $as_echo_n "(cached) " >&6
6563
else
6564
  case $host in
6565
  *-*-mingw* )
6566
    case $build in
6567
      *-*-mingw* ) # actually msys
6568
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6569
        ;;
6570
      *-*-cygwin* )
6571
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6572
        ;;
6573
      * ) # otherwise, assume *nix
6574
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6575
        ;;
6576
    esac
6577
    ;;
6578
  *-*-cygwin* )
6579
    case $build in
6580
      *-*-mingw* ) # actually msys
6581
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6582
        ;;
6583
      *-*-cygwin* )
6584
        lt_cv_to_host_file_cmd=func_convert_file_noop
6585
        ;;
6586
      * ) # otherwise, assume *nix
6587
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6588
        ;;
6589
    esac
6590
    ;;
6591
  * ) # unhandled hosts (and "normal" native builds)
6592
    lt_cv_to_host_file_cmd=func_convert_file_noop
6593
    ;;
6594
esac
6595
6596
fi
6597
6598
to_host_file_cmd=$lt_cv_to_host_file_cmd
6599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6600
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6601
6602
6603
6604
6605
6606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6607
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6608
if ${lt_cv_to_tool_file_cmd+:} false; then :
6609
  $as_echo_n "(cached) " >&6
6610
else
6611
  #assume ordinary cross tools, or native build.
6612
lt_cv_to_tool_file_cmd=func_convert_file_noop
6613
case $host in
6614
  *-*-mingw* )
6615
    case $build in
6616
      *-*-mingw* ) # actually msys
6617
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6618
        ;;
6619
    esac
6620
    ;;
6621
esac
6622
6623
fi
6624
6625
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6627
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6628
6629
6630
6631
6632
2 by Jonathan Riddell
Run autogen.sh before upload
6633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6634
$as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6635
if ${lt_cv_ld_reload_flag+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6636
  $as_echo_n "(cached) " >&6
6637
else
6638
  lt_cv_ld_reload_flag='-r'
6639
fi
6640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6641
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6642
reload_flag=$lt_cv_ld_reload_flag
6643
case $reload_flag in
6644
"" | " "*) ;;
6645
*) reload_flag=" $reload_flag" ;;
6646
esac
6647
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6648
case $host_os in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6649
  cygwin* | mingw* | pw32* | cegcc*)
6650
    if test "$GCC" != yes; then
6651
      reload_cmds=false
6652
    fi
6653
    ;;
2 by Jonathan Riddell
Run autogen.sh before upload
6654
  darwin*)
6655
    if test "$GCC" = yes; then
6656
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6657
    else
6658
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6659
    fi
6660
    ;;
6661
esac
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
if test -n "$ac_tool_prefix"; then
6672
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6673
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6676
if ${ac_cv_prog_OBJDUMP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6677
  $as_echo_n "(cached) " >&6
6678
else
6679
  if test -n "$OBJDUMP"; then
6680
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6681
else
6682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683
for as_dir in $PATH
6684
do
6685
  IFS=$as_save_IFS
6686
  test -z "$as_dir" && as_dir=.
6687
    for ac_exec_ext in '' $ac_executable_extensions; do
6688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691
    break 2
6692
  fi
6693
done
6694
  done
6695
IFS=$as_save_IFS
6696
6697
fi
6698
fi
6699
OBJDUMP=$ac_cv_prog_OBJDUMP
6700
if test -n "$OBJDUMP"; then
6701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6702
$as_echo "$OBJDUMP" >&6; }
6703
else
6704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705
$as_echo "no" >&6; }
6706
fi
6707
6708
6709
fi
6710
if test -z "$ac_cv_prog_OBJDUMP"; then
6711
  ac_ct_OBJDUMP=$OBJDUMP
6712
  # Extract the first word of "objdump", so it can be a program name with args.
6713
set dummy objdump; ac_word=$2
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6716
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6717
  $as_echo_n "(cached) " >&6
6718
else
6719
  if test -n "$ac_ct_OBJDUMP"; then
6720
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6721
else
6722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723
for as_dir in $PATH
6724
do
6725
  IFS=$as_save_IFS
6726
  test -z "$as_dir" && as_dir=.
6727
    for ac_exec_ext in '' $ac_executable_extensions; do
6728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731
    break 2
6732
  fi
6733
done
6734
  done
6735
IFS=$as_save_IFS
6736
6737
fi
6738
fi
6739
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6740
if test -n "$ac_ct_OBJDUMP"; then
6741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6742
$as_echo "$ac_ct_OBJDUMP" >&6; }
6743
else
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745
$as_echo "no" >&6; }
6746
fi
6747
6748
  if test "x$ac_ct_OBJDUMP" = x; then
6749
    OBJDUMP="false"
6750
  else
6751
    case $cross_compiling:$ac_tool_warned in
6752
yes:)
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755
ac_tool_warned=yes ;;
6756
esac
6757
    OBJDUMP=$ac_ct_OBJDUMP
6758
  fi
6759
else
6760
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6761
fi
6762
6763
test -z "$OBJDUMP" && OBJDUMP=objdump
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6774
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6775
if ${lt_cv_deplibs_check_method+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
6776
  $as_echo_n "(cached) " >&6
6777
else
6778
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6779
lt_cv_file_magic_test_file=
6780
lt_cv_deplibs_check_method='unknown'
6781
# Need to set the preceding variable on all platforms that support
6782
# interlibrary dependencies.
6783
# 'none' -- dependencies not supported.
6784
# `unknown' -- same as none, but documents that we really don't know.
6785
# 'pass_all' -- all dependencies passed with no checks.
6786
# 'test_compile' -- check by making test program.
6787
# 'file_magic [[regex]]' -- check by looking for files in library path
6788
# which responds to the $file_magic_cmd with a given extended regex.
6789
# If you have `file' or equivalent on your system and you're not sure
6790
# whether `pass_all' will *always* work, you probably want this one.
6791
6792
case $host_os in
6793
aix[4-9]*)
6794
  lt_cv_deplibs_check_method=pass_all
6795
  ;;
6796
6797
beos*)
6798
  lt_cv_deplibs_check_method=pass_all
6799
  ;;
6800
6801
bsdi[45]*)
6802
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6803
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6804
  lt_cv_file_magic_test_file=/shlib/libc.so
6805
  ;;
6806
6807
cygwin*)
6808
  # func_win32_libid is a shell function defined in ltmain.sh
6809
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6810
  lt_cv_file_magic_cmd='func_win32_libid'
6811
  ;;
6812
6813
mingw* | pw32*)
6814
  # Base MSYS/MinGW do not provide the 'file' command needed by
6815
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6816
  # unless we find 'file', for example because we are cross-compiling.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6817
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6818
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
2 by Jonathan Riddell
Run autogen.sh before upload
6819
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6820
    lt_cv_file_magic_cmd='func_win32_libid'
6821
  else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6822
    # Keep this pattern in sync with the one in func_win32_libid.
6823
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
2 by Jonathan Riddell
Run autogen.sh before upload
6824
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6825
  fi
6826
  ;;
6827
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6828
cegcc*)
2 by Jonathan Riddell
Run autogen.sh before upload
6829
  # use the weaker test based on 'objdump'. See mingw*.
6830
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6831
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6832
  ;;
6833
6834
darwin* | rhapsody*)
6835
  lt_cv_deplibs_check_method=pass_all
6836
  ;;
6837
6838
freebsd* | dragonfly*)
6839
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6840
    case $host_cpu in
6841
    i*86 )
6842
      # Not sure whether the presence of OpenBSD here was a mistake.
6843
      # Let's accept both of them until this is cleared up.
6844
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6845
      lt_cv_file_magic_cmd=/usr/bin/file
6846
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6847
      ;;
6848
    esac
6849
  else
6850
    lt_cv_deplibs_check_method=pass_all
6851
  fi
6852
  ;;
6853
6854
gnu*)
6855
  lt_cv_deplibs_check_method=pass_all
6856
  ;;
6857
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6858
haiku*)
6859
  lt_cv_deplibs_check_method=pass_all
6860
  ;;
6861
2 by Jonathan Riddell
Run autogen.sh before upload
6862
hpux10.20* | hpux11*)
6863
  lt_cv_file_magic_cmd=/usr/bin/file
6864
  case $host_cpu in
6865
  ia64*)
6866
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6867
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6868
    ;;
6869
  hppa*64*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6870
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
2 by Jonathan Riddell
Run autogen.sh before upload
6871
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6872
    ;;
6873
  *)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6874
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
2 by Jonathan Riddell
Run autogen.sh before upload
6875
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6876
    ;;
6877
  esac
6878
  ;;
6879
6880
interix[3-9]*)
6881
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6882
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6883
  ;;
6884
6885
irix5* | irix6* | nonstopux*)
6886
  case $LD in
6887
  *-32|*"-32 ") libmagic=32-bit;;
6888
  *-n32|*"-n32 ") libmagic=N32;;
6889
  *-64|*"-64 ") libmagic=64-bit;;
6890
  *) libmagic=never-match;;
6891
  esac
6892
  lt_cv_deplibs_check_method=pass_all
6893
  ;;
6894
1.1.56 by Ken VanDine
Import upstream version 0.5.90
6895
# This must be glibc/ELF.
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
6896
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2 by Jonathan Riddell
Run autogen.sh before upload
6897
  lt_cv_deplibs_check_method=pass_all
6898
  ;;
6899
6900
netbsd* | netbsdelf*-gnu)
6901
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6902
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6903
  else
6904
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6905
  fi
6906
  ;;
6907
6908
newos6*)
6909
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6910
  lt_cv_file_magic_cmd=/usr/bin/file
6911
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6912
  ;;
6913
6914
*nto* | *qnx*)
6915
  lt_cv_deplibs_check_method=pass_all
6916
  ;;
6917
6918
openbsd*)
6919
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6920
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6921
  else
6922
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6923
  fi
6924
  ;;
6925
6926
osf3* | osf4* | osf5*)
6927
  lt_cv_deplibs_check_method=pass_all
6928
  ;;
6929
6930
rdos*)
6931
  lt_cv_deplibs_check_method=pass_all
6932
  ;;
6933
6934
solaris*)
6935
  lt_cv_deplibs_check_method=pass_all
6936
  ;;
6937
6938
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6939
  lt_cv_deplibs_check_method=pass_all
6940
  ;;
6941
6942
sysv4 | sysv4.3*)
6943
  case $host_vendor in
6944
  motorola)
6945
    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]'
6946
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6947
    ;;
6948
  ncr)
6949
    lt_cv_deplibs_check_method=pass_all
6950
    ;;
6951
  sequent)
6952
    lt_cv_file_magic_cmd='/bin/file'
6953
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6954
    ;;
6955
  sni)
6956
    lt_cv_file_magic_cmd='/bin/file'
6957
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6958
    lt_cv_file_magic_test_file=/lib/libc.so
6959
    ;;
6960
  siemens)
6961
    lt_cv_deplibs_check_method=pass_all
6962
    ;;
6963
  pc)
6964
    lt_cv_deplibs_check_method=pass_all
6965
    ;;
6966
  esac
6967
  ;;
6968
6969
tpf*)
6970
  lt_cv_deplibs_check_method=pass_all
6971
  ;;
6972
esac
6973
6974
fi
6975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6976
$as_echo "$lt_cv_deplibs_check_method" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
6977
6978
file_magic_glob=
6979
want_nocaseglob=no
6980
if test "$build" = "$host"; then
6981
  case $host_os in
6982
  mingw* | pw32*)
6983
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6984
      want_nocaseglob=yes
6985
    else
6986
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6987
    fi
6988
    ;;
6989
  esac
6990
fi
6991
2 by Jonathan Riddell
Run autogen.sh before upload
6992
file_magic_cmd=$lt_cv_file_magic_cmd
6993
deplibs_check_method=$lt_cv_deplibs_check_method
6994
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
if test -n "$ac_tool_prefix"; then
7018
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7019
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021
$as_echo_n "checking for $ac_word... " >&6; }
7022
if ${ac_cv_prog_DLLTOOL+:} false; then :
7023
  $as_echo_n "(cached) " >&6
7024
else
7025
  if test -n "$DLLTOOL"; then
7026
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7027
else
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029
for as_dir in $PATH
7030
do
7031
  IFS=$as_save_IFS
7032
  test -z "$as_dir" && as_dir=.
7033
    for ac_exec_ext in '' $ac_executable_extensions; do
7034
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7036
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037
    break 2
7038
  fi
7039
done
7040
  done
7041
IFS=$as_save_IFS
7042
7043
fi
7044
fi
7045
DLLTOOL=$ac_cv_prog_DLLTOOL
7046
if test -n "$DLLTOOL"; then
7047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7048
$as_echo "$DLLTOOL" >&6; }
7049
else
7050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051
$as_echo "no" >&6; }
7052
fi
7053
7054
7055
fi
7056
if test -z "$ac_cv_prog_DLLTOOL"; then
7057
  ac_ct_DLLTOOL=$DLLTOOL
7058
  # Extract the first word of "dlltool", so it can be a program name with args.
7059
set dummy dlltool; ac_word=$2
7060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061
$as_echo_n "checking for $ac_word... " >&6; }
7062
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7063
  $as_echo_n "(cached) " >&6
7064
else
7065
  if test -n "$ac_ct_DLLTOOL"; then
7066
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7067
else
7068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069
for as_dir in $PATH
7070
do
7071
  IFS=$as_save_IFS
7072
  test -z "$as_dir" && as_dir=.
7073
    for ac_exec_ext in '' $ac_executable_extensions; do
7074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7076
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077
    break 2
7078
  fi
7079
done
7080
  done
7081
IFS=$as_save_IFS
7082
7083
fi
7084
fi
7085
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7086
if test -n "$ac_ct_DLLTOOL"; then
7087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7088
$as_echo "$ac_ct_DLLTOOL" >&6; }
7089
else
7090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091
$as_echo "no" >&6; }
7092
fi
7093
7094
  if test "x$ac_ct_DLLTOOL" = x; then
7095
    DLLTOOL="false"
7096
  else
7097
    case $cross_compiling:$ac_tool_warned in
7098
yes:)
7099
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101
ac_tool_warned=yes ;;
7102
esac
7103
    DLLTOOL=$ac_ct_DLLTOOL
7104
  fi
7105
else
7106
  DLLTOOL="$ac_cv_prog_DLLTOOL"
7107
fi
7108
7109
test -z "$DLLTOOL" && DLLTOOL=dlltool
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7121
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7122
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7123
  $as_echo_n "(cached) " >&6
7124
else
7125
  lt_cv_sharedlib_from_linklib_cmd='unknown'
7126
7127
case $host_os in
7128
cygwin* | mingw* | pw32* | cegcc*)
7129
  # two different shell functions defined in ltmain.sh
7130
  # decide which to use based on capabilities of $DLLTOOL
7131
  case `$DLLTOOL --help 2>&1` in
7132
  *--identify-strict*)
7133
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7134
    ;;
7135
  *)
7136
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7137
    ;;
7138
  esac
7139
  ;;
7140
*)
7141
  # fallback: assume linklib IS sharedlib
7142
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7143
  ;;
7144
esac
7145
7146
fi
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7148
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7149
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7150
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7151
7152
7153
7154
7155
7156
7157
7158
if test -n "$ac_tool_prefix"; then
7159
  for ac_prog in ar
7160
  do
7161
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7162
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164
$as_echo_n "checking for $ac_word... " >&6; }
7165
if ${ac_cv_prog_AR+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7166
  $as_echo_n "(cached) " >&6
7167
else
7168
  if test -n "$AR"; then
7169
  ac_cv_prog_AR="$AR" # Let the user override the test.
7170
else
7171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172
for as_dir in $PATH
7173
do
7174
  IFS=$as_save_IFS
7175
  test -z "$as_dir" && as_dir=.
7176
    for ac_exec_ext in '' $ac_executable_extensions; do
7177
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7178
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
2 by Jonathan Riddell
Run autogen.sh before upload
7179
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180
    break 2
7181
  fi
7182
done
7183
  done
7184
IFS=$as_save_IFS
7185
7186
fi
7187
fi
7188
AR=$ac_cv_prog_AR
7189
if test -n "$AR"; then
7190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7191
$as_echo "$AR" >&6; }
7192
else
7193
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194
$as_echo "no" >&6; }
7195
fi
7196
7197
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7198
    test -n "$AR" && break
7199
  done
2 by Jonathan Riddell
Run autogen.sh before upload
7200
fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7201
if test -z "$AR"; then
2 by Jonathan Riddell
Run autogen.sh before upload
7202
  ac_ct_AR=$AR
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7203
  for ac_prog in ar
7204
do
7205
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7206
set dummy $ac_prog; ac_word=$2
2 by Jonathan Riddell
Run autogen.sh before upload
7207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7209
if ${ac_cv_prog_ac_ct_AR+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7210
  $as_echo_n "(cached) " >&6
7211
else
7212
  if test -n "$ac_ct_AR"; then
7213
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7214
else
7215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216
for as_dir in $PATH
7217
do
7218
  IFS=$as_save_IFS
7219
  test -z "$as_dir" && as_dir=.
7220
    for ac_exec_ext in '' $ac_executable_extensions; do
7221
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7222
    ac_cv_prog_ac_ct_AR="$ac_prog"
2 by Jonathan Riddell
Run autogen.sh before upload
7223
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224
    break 2
7225
  fi
7226
done
7227
  done
7228
IFS=$as_save_IFS
7229
7230
fi
7231
fi
7232
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7233
if test -n "$ac_ct_AR"; then
7234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7235
$as_echo "$ac_ct_AR" >&6; }
7236
else
7237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238
$as_echo "no" >&6; }
7239
fi
7240
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7241
7242
  test -n "$ac_ct_AR" && break
7243
done
7244
2 by Jonathan Riddell
Run autogen.sh before upload
7245
  if test "x$ac_ct_AR" = x; then
7246
    AR="false"
7247
  else
7248
    case $cross_compiling:$ac_tool_warned in
7249
yes:)
7250
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252
ac_tool_warned=yes ;;
7253
esac
7254
    AR=$ac_ct_AR
7255
  fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7256
fi
7257
7258
: ${AR=ar}
7259
: ${AR_FLAGS=cru}
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7272
$as_echo_n "checking for archiver @FILE support... " >&6; }
7273
if ${lt_cv_ar_at_file+:} false; then :
7274
  $as_echo_n "(cached) " >&6
7275
else
7276
  lt_cv_ar_at_file=no
7277
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278
/* end confdefs.h.  */
7279
7280
int
7281
main ()
7282
{
7283
7284
  ;
7285
  return 0;
7286
}
7287
_ACEOF
7288
if ac_fn_c_try_compile "$LINENO"; then :
7289
  echo conftest.$ac_objext > conftest.lst
7290
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7291
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7292
  (eval $lt_ar_try) 2>&5
7293
  ac_status=$?
7294
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295
  test $ac_status = 0; }
7296
      if test "$ac_status" -eq 0; then
7297
	# Ensure the archiver fails upon bogus file names.
7298
	rm -f conftest.$ac_objext libconftest.a
7299
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7300
  (eval $lt_ar_try) 2>&5
7301
  ac_status=$?
7302
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303
  test $ac_status = 0; }
7304
	if test "$ac_status" -ne 0; then
7305
          lt_cv_ar_at_file=@
7306
        fi
7307
      fi
7308
      rm -f conftest.* libconftest.a
7309
7310
fi
7311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312
7313
fi
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7315
$as_echo "$lt_cv_ar_at_file" >&6; }
7316
7317
if test "x$lt_cv_ar_at_file" = xno; then
7318
  archiver_list_spec=
7319
else
7320
  archiver_list_spec=$lt_cv_ar_at_file
7321
fi
2 by Jonathan Riddell
Run autogen.sh before upload
7322
7323
7324
7325
7326
7327
7328
7329
if test -n "$ac_tool_prefix"; then
7330
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7331
set dummy ${ac_tool_prefix}strip; ac_word=$2
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7334
if ${ac_cv_prog_STRIP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7335
  $as_echo_n "(cached) " >&6
7336
else
7337
  if test -n "$STRIP"; then
7338
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7339
else
7340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341
for as_dir in $PATH
7342
do
7343
  IFS=$as_save_IFS
7344
  test -z "$as_dir" && as_dir=.
7345
    for ac_exec_ext in '' $ac_executable_extensions; do
7346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349
    break 2
7350
  fi
7351
done
7352
  done
7353
IFS=$as_save_IFS
7354
7355
fi
7356
fi
7357
STRIP=$ac_cv_prog_STRIP
7358
if test -n "$STRIP"; then
7359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7360
$as_echo "$STRIP" >&6; }
7361
else
7362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363
$as_echo "no" >&6; }
7364
fi
7365
7366
7367
fi
7368
if test -z "$ac_cv_prog_STRIP"; then
7369
  ac_ct_STRIP=$STRIP
7370
  # Extract the first word of "strip", so it can be a program name with args.
7371
set dummy strip; ac_word=$2
7372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7374
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7375
  $as_echo_n "(cached) " >&6
7376
else
7377
  if test -n "$ac_ct_STRIP"; then
7378
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7379
else
7380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381
for as_dir in $PATH
7382
do
7383
  IFS=$as_save_IFS
7384
  test -z "$as_dir" && as_dir=.
7385
    for ac_exec_ext in '' $ac_executable_extensions; do
7386
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387
    ac_cv_prog_ac_ct_STRIP="strip"
7388
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389
    break 2
7390
  fi
7391
done
7392
  done
7393
IFS=$as_save_IFS
7394
7395
fi
7396
fi
7397
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7398
if test -n "$ac_ct_STRIP"; then
7399
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7400
$as_echo "$ac_ct_STRIP" >&6; }
7401
else
7402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403
$as_echo "no" >&6; }
7404
fi
7405
7406
  if test "x$ac_ct_STRIP" = x; then
7407
    STRIP=":"
7408
  else
7409
    case $cross_compiling:$ac_tool_warned in
7410
yes:)
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413
ac_tool_warned=yes ;;
7414
esac
7415
    STRIP=$ac_ct_STRIP
7416
  fi
7417
else
7418
  STRIP="$ac_cv_prog_STRIP"
7419
fi
7420
7421
test -z "$STRIP" && STRIP=:
7422
7423
7424
7425
7426
7427
7428
if test -n "$ac_tool_prefix"; then
7429
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7430
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7433
if ${ac_cv_prog_RANLIB+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7434
  $as_echo_n "(cached) " >&6
7435
else
7436
  if test -n "$RANLIB"; then
7437
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7438
else
7439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440
for as_dir in $PATH
7441
do
7442
  IFS=$as_save_IFS
7443
  test -z "$as_dir" && as_dir=.
7444
    for ac_exec_ext in '' $ac_executable_extensions; do
7445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7447
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448
    break 2
7449
  fi
7450
done
7451
  done
7452
IFS=$as_save_IFS
7453
7454
fi
7455
fi
7456
RANLIB=$ac_cv_prog_RANLIB
7457
if test -n "$RANLIB"; then
7458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7459
$as_echo "$RANLIB" >&6; }
7460
else
7461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462
$as_echo "no" >&6; }
7463
fi
7464
7465
7466
fi
7467
if test -z "$ac_cv_prog_RANLIB"; then
7468
  ac_ct_RANLIB=$RANLIB
7469
  # Extract the first word of "ranlib", so it can be a program name with args.
7470
set dummy ranlib; ac_word=$2
7471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7473
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7474
  $as_echo_n "(cached) " >&6
7475
else
7476
  if test -n "$ac_ct_RANLIB"; then
7477
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7478
else
7479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480
for as_dir in $PATH
7481
do
7482
  IFS=$as_save_IFS
7483
  test -z "$as_dir" && as_dir=.
7484
    for ac_exec_ext in '' $ac_executable_extensions; do
7485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7487
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488
    break 2
7489
  fi
7490
done
7491
  done
7492
IFS=$as_save_IFS
7493
7494
fi
7495
fi
7496
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7497
if test -n "$ac_ct_RANLIB"; then
7498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7499
$as_echo "$ac_ct_RANLIB" >&6; }
7500
else
7501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502
$as_echo "no" >&6; }
7503
fi
7504
7505
  if test "x$ac_ct_RANLIB" = x; then
7506
    RANLIB=":"
7507
  else
7508
    case $cross_compiling:$ac_tool_warned in
7509
yes:)
7510
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512
ac_tool_warned=yes ;;
7513
esac
7514
    RANLIB=$ac_ct_RANLIB
7515
  fi
7516
else
7517
  RANLIB="$ac_cv_prog_RANLIB"
7518
fi
7519
7520
test -z "$RANLIB" && RANLIB=:
7521
7522
7523
7524
7525
7526
7527
# Determine commands to create old-style static archives.
7528
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7529
old_postinstall_cmds='chmod 644 $oldlib'
7530
old_postuninstall_cmds=
7531
7532
if test -n "$RANLIB"; then
7533
  case $host_os in
7534
  openbsd*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
7535
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2 by Jonathan Riddell
Run autogen.sh before upload
7536
    ;;
7537
  *)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
7538
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2 by Jonathan Riddell
Run autogen.sh before upload
7539
    ;;
7540
  esac
1.1.56 by Ken VanDine
Import upstream version 0.5.90
7541
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2 by Jonathan Riddell
Run autogen.sh before upload
7542
fi
7543
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7544
case $host_os in
7545
  darwin*)
7546
    lock_old_archive_extraction=yes ;;
7547
  *)
7548
    lock_old_archive_extraction=no ;;
7549
esac
7550
7551
7552
7553
7554
7555
2 by Jonathan Riddell
Run autogen.sh before upload
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
# If no C compiler was specified, use CC.
7590
LTCC=${LTCC-"$CC"}
7591
7592
# If no C compiler flags were specified, use CFLAGS.
7593
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7594
7595
# Allow CC to be a program name with arguments.
7596
compiler=$CC
7597
7598
7599
# Check for command to grab the raw symbol name followed by C symbol from nm.
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7601
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7602
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
7603
  $as_echo_n "(cached) " >&6
7604
else
7605
7606
# These are sane defaults that work on at least a few old systems.
7607
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7608
7609
# Character class describing NM global symbol codes.
7610
symcode='[BCDEGRST]'
7611
7612
# Regexp to match symbols that can be accessed directly from C.
7613
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7614
7615
# Define system-specific variables.
7616
case $host_os in
7617
aix*)
7618
  symcode='[BCDT]'
7619
  ;;
7620
cygwin* | mingw* | pw32* | cegcc*)
7621
  symcode='[ABCDGISTW]'
7622
  ;;
7623
hpux*)
7624
  if test "$host_cpu" = ia64; then
7625
    symcode='[ABCDEGRST]'
7626
  fi
7627
  ;;
7628
irix* | nonstopux*)
7629
  symcode='[BCDEGRST]'
7630
  ;;
7631
osf*)
7632
  symcode='[BCDEGQRST]'
7633
  ;;
7634
solaris*)
7635
  symcode='[BDRT]'
7636
  ;;
7637
sco3.2v5*)
7638
  symcode='[DT]'
7639
  ;;
7640
sysv4.2uw2*)
7641
  symcode='[DT]'
7642
  ;;
7643
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7644
  symcode='[ABDT]'
7645
  ;;
7646
sysv4)
7647
  symcode='[DFNSTU]'
7648
  ;;
7649
esac
7650
7651
# If we're using GNU nm, then use its standard symbol codes.
7652
case `$NM -V 2>&1` in
7653
*GNU* | *'with BFD'*)
7654
  symcode='[ABCDGIRSTW]' ;;
7655
esac
7656
7657
# Transform an extracted symbol line into a proper C declaration.
7658
# Some systems (esp. on ia64) link data and code symbols differently,
7659
# so use this general approach.
7660
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7661
7662
# Transform an extracted symbol line into symbol name and symbol address
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7663
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7664
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'"
2 by Jonathan Riddell
Run autogen.sh before upload
7665
7666
# Handle CRLF in mingw tool chain
7667
opt_cr=
7668
case $build_os in
7669
mingw*)
7670
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7671
  ;;
7672
esac
7673
7674
# Try without a prefix underscore, then with it.
7675
for ac_symprfx in "" "_"; do
7676
7677
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7678
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7679
7680
  # Write the raw and C identifiers.
7681
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7682
    # Fake it for dumpbin and say T for any non-static function
7683
    # and D for any global variable.
7684
    # Also find C++ and __fastcall symbols from MSVC++,
7685
    # which start with @ or ?.
7686
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7687
"     {last_section=section; section=\$ 3};"\
1.1.56 by Ken VanDine
Import upstream version 0.5.90
7688
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
2 by Jonathan Riddell
Run autogen.sh before upload
7689
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7690
"     \$ 0!~/External *\|/{next};"\
7691
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7692
"     {if(hide[section]) next};"\
7693
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7694
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7695
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7696
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7697
"     ' prfx=^$ac_symprfx"
7698
  else
7699
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7700
  fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7701
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
2 by Jonathan Riddell
Run autogen.sh before upload
7702
7703
  # Check to see that the pipe works correctly.
7704
  pipe_works=no
7705
7706
  rm -f conftest*
7707
  cat > conftest.$ac_ext <<_LT_EOF
7708
#ifdef __cplusplus
7709
extern "C" {
7710
#endif
7711
char nm_test_var;
7712
void nm_test_func(void);
7713
void nm_test_func(void){}
7714
#ifdef __cplusplus
7715
}
7716
#endif
7717
int main(){nm_test_var='a';nm_test_func();return(0);}
7718
_LT_EOF
7719
7720
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7721
  (eval $ac_compile) 2>&5
7722
  ac_status=$?
7723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724
  test $ac_status = 0; }; then
7725
    # Now try to grab the symbols.
7726
    nlist=conftest.nm
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7727
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7728
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
7729
  ac_status=$?
7730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731
  test $ac_status = 0; } && test -s "$nlist"; then
7732
      # Try sorting and uniquifying the output.
7733
      if sort "$nlist" | uniq > "$nlist"T; then
7734
	mv -f "$nlist"T "$nlist"
7735
      else
7736
	rm -f "$nlist"T
7737
      fi
7738
7739
      # Make sure that we snagged all the symbols we need.
7740
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7741
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7742
	  cat <<_LT_EOF > conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7743
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7744
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7745
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7746
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7747
# define LT_DLSYM_CONST
7748
#elif defined(__osf__)
7749
/* This system does not cope well with relocations in const data.  */
7750
# define LT_DLSYM_CONST
7751
#else
7752
# define LT_DLSYM_CONST const
7753
#endif
7754
2 by Jonathan Riddell
Run autogen.sh before upload
7755
#ifdef __cplusplus
7756
extern "C" {
7757
#endif
7758
7759
_LT_EOF
7760
	  # Now generate the symbol file.
7761
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7762
7763
	  cat <<_LT_EOF >> conftest.$ac_ext
7764
7765
/* The mapping between symbol names and symbols.  */
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7766
LT_DLSYM_CONST struct {
2 by Jonathan Riddell
Run autogen.sh before upload
7767
  const char *name;
7768
  void       *address;
7769
}
7770
lt__PROGRAM__LTX_preloaded_symbols[] =
7771
{
7772
  { "@PROGRAM@", (void *) 0 },
7773
_LT_EOF
7774
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7775
	  cat <<\_LT_EOF >> conftest.$ac_ext
7776
  {0, (void *) 0}
7777
};
7778
7779
/* This works around a problem in FreeBSD linker */
7780
#ifdef FREEBSD_WORKAROUND
7781
static const void *lt_preloaded_setup() {
7782
  return lt__PROGRAM__LTX_preloaded_symbols;
7783
}
7784
#endif
7785
7786
#ifdef __cplusplus
7787
}
7788
#endif
7789
_LT_EOF
7790
	  # Now try linking the two files.
7791
	  mv conftest.$ac_objext conftstm.$ac_objext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7792
	  lt_globsym_save_LIBS=$LIBS
7793
	  lt_globsym_save_CFLAGS=$CFLAGS
2 by Jonathan Riddell
Run autogen.sh before upload
7794
	  LIBS="conftstm.$ac_objext"
7795
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7796
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7797
  (eval $ac_link) 2>&5
7798
  ac_status=$?
7799
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7801
	    pipe_works=yes
7802
	  fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7803
	  LIBS=$lt_globsym_save_LIBS
7804
	  CFLAGS=$lt_globsym_save_CFLAGS
2 by Jonathan Riddell
Run autogen.sh before upload
7805
	else
7806
	  echo "cannot find nm_test_func in $nlist" >&5
7807
	fi
7808
      else
7809
	echo "cannot find nm_test_var in $nlist" >&5
7810
      fi
7811
    else
7812
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7813
    fi
7814
  else
7815
    echo "$progname: failed program was:" >&5
7816
    cat conftest.$ac_ext >&5
7817
  fi
7818
  rm -rf conftest* conftst*
7819
7820
  # Do not use the global_symbol_pipe unless it works.
7821
  if test "$pipe_works" = yes; then
7822
    break
7823
  else
7824
    lt_cv_sys_global_symbol_pipe=
7825
  fi
7826
done
7827
7828
fi
7829
7830
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7831
  lt_cv_sys_global_symbol_to_cdecl=
7832
fi
7833
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7835
$as_echo "failed" >&6; }
7836
else
7837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7838
$as_echo "ok" >&6; }
7839
fi
7840
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7841
# Response file support.
7842
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7843
  nm_file_list_spec='@'
7844
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7845
  nm_file_list_spec='@'
7846
fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7875
$as_echo_n "checking for sysroot... " >&6; }
7876
7877
# Check whether --with-sysroot was given.
7878
if test "${with_sysroot+set}" = set; then :
7879
  withval=$with_sysroot;
7880
else
7881
  with_sysroot=no
7882
fi
7883
7884
7885
lt_sysroot=
7886
case ${with_sysroot} in #(
7887
 yes)
7888
   if test "$GCC" = yes; then
7889
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7890
   fi
7891
   ;; #(
7892
 /*)
7893
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7894
   ;; #(
7895
 no|'')
7896
   ;; #(
7897
 *)
7898
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7899
$as_echo "${with_sysroot}" >&6; }
7900
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7901
   ;;
7902
esac
7903
7904
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7905
$as_echo "${lt_sysroot:-no}" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
7906
7907
7908
7909
7910
7911
# Check whether --enable-libtool-lock was given.
7912
if test "${enable_libtool_lock+set}" = set; then :
7913
  enableval=$enable_libtool_lock;
7914
fi
7915
7916
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7917
7918
# Some flags need to be propagated to the compiler or linker for good
7919
# libtool support.
7920
case $host in
7921
ia64-*-hpux*)
7922
  # Find out which ABI we are using.
7923
  echo 'int i;' > conftest.$ac_ext
7924
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7925
  (eval $ac_compile) 2>&5
7926
  ac_status=$?
7927
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928
  test $ac_status = 0; }; then
7929
    case `/usr/bin/file conftest.$ac_objext` in
7930
      *ELF-32*)
7931
	HPUX_IA64_MODE="32"
7932
	;;
7933
      *ELF-64*)
7934
	HPUX_IA64_MODE="64"
7935
	;;
7936
    esac
7937
  fi
7938
  rm -rf conftest*
7939
  ;;
7940
*-*-irix6*)
7941
  # Find out which ABI we are using.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
7942
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
7943
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7944
  (eval $ac_compile) 2>&5
7945
  ac_status=$?
7946
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947
  test $ac_status = 0; }; then
7948
    if test "$lt_cv_prog_gnu_ld" = yes; then
7949
      case `/usr/bin/file conftest.$ac_objext` in
7950
	*32-bit*)
7951
	  LD="${LD-ld} -melf32bsmip"
7952
	  ;;
7953
	*N32*)
7954
	  LD="${LD-ld} -melf32bmipn32"
7955
	  ;;
7956
	*64-bit*)
7957
	  LD="${LD-ld} -melf64bmip"
7958
	;;
7959
      esac
7960
    else
7961
      case `/usr/bin/file conftest.$ac_objext` in
7962
	*32-bit*)
7963
	  LD="${LD-ld} -32"
7964
	  ;;
7965
	*N32*)
7966
	  LD="${LD-ld} -n32"
7967
	  ;;
7968
	*64-bit*)
7969
	  LD="${LD-ld} -64"
7970
	  ;;
7971
      esac
7972
    fi
7973
  fi
7974
  rm -rf conftest*
7975
  ;;
7976
7977
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7978
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7979
  # Find out which ABI we are using.
7980
  echo 'int i;' > conftest.$ac_ext
7981
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7982
  (eval $ac_compile) 2>&5
7983
  ac_status=$?
7984
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985
  test $ac_status = 0; }; then
7986
    case `/usr/bin/file conftest.o` in
7987
      *32-bit*)
7988
	case $host in
7989
	  x86_64-*kfreebsd*-gnu)
7990
	    LD="${LD-ld} -m elf_i386_fbsd"
7991
	    ;;
7992
	  x86_64-*linux*)
7993
	    LD="${LD-ld} -m elf_i386"
7994
	    ;;
7995
	  ppc64-*linux*|powerpc64-*linux*)
7996
	    LD="${LD-ld} -m elf32ppclinux"
7997
	    ;;
7998
	  s390x-*linux*)
7999
	    LD="${LD-ld} -m elf_s390"
8000
	    ;;
8001
	  sparc64-*linux*)
8002
	    LD="${LD-ld} -m elf32_sparc"
8003
	    ;;
8004
	esac
8005
	;;
8006
      *64-bit*)
8007
	case $host in
8008
	  x86_64-*kfreebsd*-gnu)
8009
	    LD="${LD-ld} -m elf_x86_64_fbsd"
8010
	    ;;
8011
	  x86_64-*linux*)
8012
	    LD="${LD-ld} -m elf_x86_64"
8013
	    ;;
8014
	  ppc*-*linux*|powerpc*-*linux*)
8015
	    LD="${LD-ld} -m elf64ppc"
8016
	    ;;
8017
	  s390*-*linux*|s390*-*tpf*)
8018
	    LD="${LD-ld} -m elf64_s390"
8019
	    ;;
8020
	  sparc*-*linux*)
8021
	    LD="${LD-ld} -m elf64_sparc"
8022
	    ;;
8023
	esac
8024
	;;
8025
    esac
8026
  fi
8027
  rm -rf conftest*
8028
  ;;
8029
8030
*-*-sco3.2v5*)
8031
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8032
  SAVE_CFLAGS="$CFLAGS"
8033
  CFLAGS="$CFLAGS -belf"
8034
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8035
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8036
if ${lt_cv_cc_needs_belf+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8037
  $as_echo_n "(cached) " >&6
8038
else
8039
  ac_ext=c
8040
ac_cpp='$CPP $CPPFLAGS'
8041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
8045
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046
/* end confdefs.h.  */
8047
8048
int
8049
main ()
8050
{
8051
8052
  ;
8053
  return 0;
8054
}
8055
_ACEOF
8056
if ac_fn_c_try_link "$LINENO"; then :
8057
  lt_cv_cc_needs_belf=yes
8058
else
8059
  lt_cv_cc_needs_belf=no
8060
fi
8061
rm -f core conftest.err conftest.$ac_objext \
8062
    conftest$ac_exeext conftest.$ac_ext
8063
     ac_ext=c
8064
ac_cpp='$CPP $CPPFLAGS'
8065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069
fi
8070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8071
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8072
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8073
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8074
    CFLAGS="$SAVE_CFLAGS"
8075
  fi
8076
  ;;
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8077
*-*solaris*)
2 by Jonathan Riddell
Run autogen.sh before upload
8078
  # Find out which ABI we are using.
8079
  echo 'int i;' > conftest.$ac_ext
8080
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081
  (eval $ac_compile) 2>&5
8082
  ac_status=$?
8083
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084
  test $ac_status = 0; }; then
8085
    case `/usr/bin/file conftest.o` in
8086
    *64-bit*)
8087
      case $lt_cv_prog_gnu_ld in
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8088
      yes*)
8089
        case $host in
8090
        i?86-*-solaris*)
8091
          LD="${LD-ld} -m elf_x86_64"
8092
          ;;
8093
        sparc*-*-solaris*)
8094
          LD="${LD-ld} -m elf64_sparc"
8095
          ;;
8096
        esac
8097
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8098
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8099
          LD="${LD-ld}_sol2"
8100
        fi
8101
        ;;
2 by Jonathan Riddell
Run autogen.sh before upload
8102
      *)
8103
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8104
	  LD="${LD-ld} -64"
8105
	fi
8106
	;;
8107
      esac
8108
      ;;
8109
    esac
8110
  fi
8111
  rm -rf conftest*
8112
  ;;
8113
esac
8114
8115
need_locks="$enable_libtool_lock"
8116
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8117
if test -n "$ac_tool_prefix"; then
8118
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8119
set dummy ${ac_tool_prefix}mt; ac_word=$2
8120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121
$as_echo_n "checking for $ac_word... " >&6; }
8122
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8123
  $as_echo_n "(cached) " >&6
8124
else
8125
  if test -n "$MANIFEST_TOOL"; then
8126
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8127
else
8128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129
for as_dir in $PATH
8130
do
8131
  IFS=$as_save_IFS
8132
  test -z "$as_dir" && as_dir=.
8133
    for ac_exec_ext in '' $ac_executable_extensions; do
8134
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137
    break 2
8138
  fi
8139
done
8140
  done
8141
IFS=$as_save_IFS
8142
8143
fi
8144
fi
8145
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8146
if test -n "$MANIFEST_TOOL"; then
8147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8148
$as_echo "$MANIFEST_TOOL" >&6; }
8149
else
8150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151
$as_echo "no" >&6; }
8152
fi
8153
8154
8155
fi
8156
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8157
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8158
  # Extract the first word of "mt", so it can be a program name with args.
8159
set dummy mt; ac_word=$2
8160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161
$as_echo_n "checking for $ac_word... " >&6; }
8162
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8163
  $as_echo_n "(cached) " >&6
8164
else
8165
  if test -n "$ac_ct_MANIFEST_TOOL"; then
8166
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8167
else
8168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169
for as_dir in $PATH
8170
do
8171
  IFS=$as_save_IFS
8172
  test -z "$as_dir" && as_dir=.
8173
    for ac_exec_ext in '' $ac_executable_extensions; do
8174
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177
    break 2
8178
  fi
8179
done
8180
  done
8181
IFS=$as_save_IFS
8182
8183
fi
8184
fi
8185
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8186
if test -n "$ac_ct_MANIFEST_TOOL"; then
8187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8188
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8189
else
8190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191
$as_echo "no" >&6; }
8192
fi
8193
8194
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8195
    MANIFEST_TOOL=":"
8196
  else
8197
    case $cross_compiling:$ac_tool_warned in
8198
yes:)
8199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201
ac_tool_warned=yes ;;
8202
esac
8203
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8204
  fi
8205
else
8206
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8207
fi
8208
8209
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8211
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8212
if ${lt_cv_path_mainfest_tool+:} false; then :
8213
  $as_echo_n "(cached) " >&6
8214
else
8215
  lt_cv_path_mainfest_tool=no
8216
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8217
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8218
  cat conftest.err >&5
8219
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8220
    lt_cv_path_mainfest_tool=yes
8221
  fi
8222
  rm -f conftest*
8223
fi
8224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8225
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8226
if test "x$lt_cv_path_mainfest_tool" != xyes; then
8227
  MANIFEST_TOOL=:
8228
fi
8229
8230
8231
8232
8233
2 by Jonathan Riddell
Run autogen.sh before upload
8234
8235
  case $host_os in
8236
    rhapsody* | darwin*)
8237
    if test -n "$ac_tool_prefix"; then
8238
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8239
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8242
if ${ac_cv_prog_DSYMUTIL+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8243
  $as_echo_n "(cached) " >&6
8244
else
8245
  if test -n "$DSYMUTIL"; then
8246
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8247
else
8248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249
for as_dir in $PATH
8250
do
8251
  IFS=$as_save_IFS
8252
  test -z "$as_dir" && as_dir=.
8253
    for ac_exec_ext in '' $ac_executable_extensions; do
8254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8256
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257
    break 2
8258
  fi
8259
done
8260
  done
8261
IFS=$as_save_IFS
8262
8263
fi
8264
fi
8265
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8266
if test -n "$DSYMUTIL"; then
8267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8268
$as_echo "$DSYMUTIL" >&6; }
8269
else
8270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271
$as_echo "no" >&6; }
8272
fi
8273
8274
8275
fi
8276
if test -z "$ac_cv_prog_DSYMUTIL"; then
8277
  ac_ct_DSYMUTIL=$DSYMUTIL
8278
  # Extract the first word of "dsymutil", so it can be a program name with args.
8279
set dummy dsymutil; ac_word=$2
8280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8282
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8283
  $as_echo_n "(cached) " >&6
8284
else
8285
  if test -n "$ac_ct_DSYMUTIL"; then
8286
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8287
else
8288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289
for as_dir in $PATH
8290
do
8291
  IFS=$as_save_IFS
8292
  test -z "$as_dir" && as_dir=.
8293
    for ac_exec_ext in '' $ac_executable_extensions; do
8294
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8296
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297
    break 2
8298
  fi
8299
done
8300
  done
8301
IFS=$as_save_IFS
8302
8303
fi
8304
fi
8305
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8306
if test -n "$ac_ct_DSYMUTIL"; then
8307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8308
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8309
else
8310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311
$as_echo "no" >&6; }
8312
fi
8313
8314
  if test "x$ac_ct_DSYMUTIL" = x; then
8315
    DSYMUTIL=":"
8316
  else
8317
    case $cross_compiling:$ac_tool_warned in
8318
yes:)
8319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8320
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8321
ac_tool_warned=yes ;;
8322
esac
8323
    DSYMUTIL=$ac_ct_DSYMUTIL
8324
  fi
8325
else
8326
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8327
fi
8328
8329
    if test -n "$ac_tool_prefix"; then
8330
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8331
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8334
if ${ac_cv_prog_NMEDIT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8335
  $as_echo_n "(cached) " >&6
8336
else
8337
  if test -n "$NMEDIT"; then
8338
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8339
else
8340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341
for as_dir in $PATH
8342
do
8343
  IFS=$as_save_IFS
8344
  test -z "$as_dir" && as_dir=.
8345
    for ac_exec_ext in '' $ac_executable_extensions; do
8346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349
    break 2
8350
  fi
8351
done
8352
  done
8353
IFS=$as_save_IFS
8354
8355
fi
8356
fi
8357
NMEDIT=$ac_cv_prog_NMEDIT
8358
if test -n "$NMEDIT"; then
8359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8360
$as_echo "$NMEDIT" >&6; }
8361
else
8362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363
$as_echo "no" >&6; }
8364
fi
8365
8366
8367
fi
8368
if test -z "$ac_cv_prog_NMEDIT"; then
8369
  ac_ct_NMEDIT=$NMEDIT
8370
  # Extract the first word of "nmedit", so it can be a program name with args.
8371
set dummy nmedit; ac_word=$2
8372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8374
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8375
  $as_echo_n "(cached) " >&6
8376
else
8377
  if test -n "$ac_ct_NMEDIT"; then
8378
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8379
else
8380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381
for as_dir in $PATH
8382
do
8383
  IFS=$as_save_IFS
8384
  test -z "$as_dir" && as_dir=.
8385
    for ac_exec_ext in '' $ac_executable_extensions; do
8386
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8388
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389
    break 2
8390
  fi
8391
done
8392
  done
8393
IFS=$as_save_IFS
8394
8395
fi
8396
fi
8397
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8398
if test -n "$ac_ct_NMEDIT"; then
8399
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8400
$as_echo "$ac_ct_NMEDIT" >&6; }
8401
else
8402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403
$as_echo "no" >&6; }
8404
fi
8405
8406
  if test "x$ac_ct_NMEDIT" = x; then
8407
    NMEDIT=":"
8408
  else
8409
    case $cross_compiling:$ac_tool_warned in
8410
yes:)
8411
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413
ac_tool_warned=yes ;;
8414
esac
8415
    NMEDIT=$ac_ct_NMEDIT
8416
  fi
8417
else
8418
  NMEDIT="$ac_cv_prog_NMEDIT"
8419
fi
8420
8421
    if test -n "$ac_tool_prefix"; then
8422
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8423
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8426
if ${ac_cv_prog_LIPO+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8427
  $as_echo_n "(cached) " >&6
8428
else
8429
  if test -n "$LIPO"; then
8430
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8431
else
8432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433
for as_dir in $PATH
8434
do
8435
  IFS=$as_save_IFS
8436
  test -z "$as_dir" && as_dir=.
8437
    for ac_exec_ext in '' $ac_executable_extensions; do
8438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8440
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441
    break 2
8442
  fi
8443
done
8444
  done
8445
IFS=$as_save_IFS
8446
8447
fi
8448
fi
8449
LIPO=$ac_cv_prog_LIPO
8450
if test -n "$LIPO"; then
8451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8452
$as_echo "$LIPO" >&6; }
8453
else
8454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455
$as_echo "no" >&6; }
8456
fi
8457
8458
8459
fi
8460
if test -z "$ac_cv_prog_LIPO"; then
8461
  ac_ct_LIPO=$LIPO
8462
  # Extract the first word of "lipo", so it can be a program name with args.
8463
set dummy lipo; ac_word=$2
8464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8466
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8467
  $as_echo_n "(cached) " >&6
8468
else
8469
  if test -n "$ac_ct_LIPO"; then
8470
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8471
else
8472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473
for as_dir in $PATH
8474
do
8475
  IFS=$as_save_IFS
8476
  test -z "$as_dir" && as_dir=.
8477
    for ac_exec_ext in '' $ac_executable_extensions; do
8478
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8479
    ac_cv_prog_ac_ct_LIPO="lipo"
8480
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481
    break 2
8482
  fi
8483
done
8484
  done
8485
IFS=$as_save_IFS
8486
8487
fi
8488
fi
8489
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8490
if test -n "$ac_ct_LIPO"; then
8491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8492
$as_echo "$ac_ct_LIPO" >&6; }
8493
else
8494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495
$as_echo "no" >&6; }
8496
fi
8497
8498
  if test "x$ac_ct_LIPO" = x; then
8499
    LIPO=":"
8500
  else
8501
    case $cross_compiling:$ac_tool_warned in
8502
yes:)
8503
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505
ac_tool_warned=yes ;;
8506
esac
8507
    LIPO=$ac_ct_LIPO
8508
  fi
8509
else
8510
  LIPO="$ac_cv_prog_LIPO"
8511
fi
8512
8513
    if test -n "$ac_tool_prefix"; then
8514
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8515
set dummy ${ac_tool_prefix}otool; ac_word=$2
8516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8518
if ${ac_cv_prog_OTOOL+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8519
  $as_echo_n "(cached) " >&6
8520
else
8521
  if test -n "$OTOOL"; then
8522
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8523
else
8524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525
for as_dir in $PATH
8526
do
8527
  IFS=$as_save_IFS
8528
  test -z "$as_dir" && as_dir=.
8529
    for ac_exec_ext in '' $ac_executable_extensions; do
8530
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8532
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533
    break 2
8534
  fi
8535
done
8536
  done
8537
IFS=$as_save_IFS
8538
8539
fi
8540
fi
8541
OTOOL=$ac_cv_prog_OTOOL
8542
if test -n "$OTOOL"; then
8543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8544
$as_echo "$OTOOL" >&6; }
8545
else
8546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547
$as_echo "no" >&6; }
8548
fi
8549
8550
8551
fi
8552
if test -z "$ac_cv_prog_OTOOL"; then
8553
  ac_ct_OTOOL=$OTOOL
8554
  # Extract the first word of "otool", so it can be a program name with args.
8555
set dummy otool; ac_word=$2
8556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8558
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8559
  $as_echo_n "(cached) " >&6
8560
else
8561
  if test -n "$ac_ct_OTOOL"; then
8562
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8563
else
8564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565
for as_dir in $PATH
8566
do
8567
  IFS=$as_save_IFS
8568
  test -z "$as_dir" && as_dir=.
8569
    for ac_exec_ext in '' $ac_executable_extensions; do
8570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571
    ac_cv_prog_ac_ct_OTOOL="otool"
8572
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573
    break 2
8574
  fi
8575
done
8576
  done
8577
IFS=$as_save_IFS
8578
8579
fi
8580
fi
8581
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8582
if test -n "$ac_ct_OTOOL"; then
8583
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8584
$as_echo "$ac_ct_OTOOL" >&6; }
8585
else
8586
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587
$as_echo "no" >&6; }
8588
fi
8589
8590
  if test "x$ac_ct_OTOOL" = x; then
8591
    OTOOL=":"
8592
  else
8593
    case $cross_compiling:$ac_tool_warned in
8594
yes:)
8595
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8596
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8597
ac_tool_warned=yes ;;
8598
esac
8599
    OTOOL=$ac_ct_OTOOL
8600
  fi
8601
else
8602
  OTOOL="$ac_cv_prog_OTOOL"
8603
fi
8604
8605
    if test -n "$ac_tool_prefix"; then
8606
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8607
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8610
if ${ac_cv_prog_OTOOL64+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8611
  $as_echo_n "(cached) " >&6
8612
else
8613
  if test -n "$OTOOL64"; then
8614
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8615
else
8616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617
for as_dir in $PATH
8618
do
8619
  IFS=$as_save_IFS
8620
  test -z "$as_dir" && as_dir=.
8621
    for ac_exec_ext in '' $ac_executable_extensions; do
8622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8623
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625
    break 2
8626
  fi
8627
done
8628
  done
8629
IFS=$as_save_IFS
8630
8631
fi
8632
fi
8633
OTOOL64=$ac_cv_prog_OTOOL64
8634
if test -n "$OTOOL64"; then
8635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8636
$as_echo "$OTOOL64" >&6; }
8637
else
8638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639
$as_echo "no" >&6; }
8640
fi
8641
8642
8643
fi
8644
if test -z "$ac_cv_prog_OTOOL64"; then
8645
  ac_ct_OTOOL64=$OTOOL64
8646
  # Extract the first word of "otool64", so it can be a program name with args.
8647
set dummy otool64; ac_word=$2
8648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8650
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8651
  $as_echo_n "(cached) " >&6
8652
else
8653
  if test -n "$ac_ct_OTOOL64"; then
8654
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8655
else
8656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657
for as_dir in $PATH
8658
do
8659
  IFS=$as_save_IFS
8660
  test -z "$as_dir" && as_dir=.
8661
    for ac_exec_ext in '' $ac_executable_extensions; do
8662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8663
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8664
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665
    break 2
8666
  fi
8667
done
8668
  done
8669
IFS=$as_save_IFS
8670
8671
fi
8672
fi
8673
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8674
if test -n "$ac_ct_OTOOL64"; then
8675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8676
$as_echo "$ac_ct_OTOOL64" >&6; }
8677
else
8678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679
$as_echo "no" >&6; }
8680
fi
8681
8682
  if test "x$ac_ct_OTOOL64" = x; then
8683
    OTOOL64=":"
8684
  else
8685
    case $cross_compiling:$ac_tool_warned in
8686
yes:)
8687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8689
ac_tool_warned=yes ;;
8690
esac
8691
    OTOOL64=$ac_ct_OTOOL64
8692
  fi
8693
else
8694
  OTOOL64="$ac_cv_prog_OTOOL64"
8695
fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8724
$as_echo_n "checking for -single_module linker flag... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8725
if ${lt_cv_apple_cc_single_mod+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8726
  $as_echo_n "(cached) " >&6
8727
else
8728
  lt_cv_apple_cc_single_mod=no
8729
      if test -z "${LT_MULTI_MODULE}"; then
8730
	# By default we will add the -single_module flag. You can override
8731
	# by either setting the environment variable LT_MULTI_MODULE
8732
	# non-empty at configure time, or by adding -multi_module to the
8733
	# link flags.
8734
	rm -rf libconftest.dylib*
8735
	echo "int foo(void){return 1;}" > conftest.c
8736
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8737
-dynamiclib -Wl,-single_module conftest.c" >&5
8738
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8739
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8740
        _lt_result=$?
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8741
	# If there is a non-empty error log, and "single_module"
8742
	# appears in it, assume the flag caused a linker warning
8743
        if test -s conftest.err && $GREP single_module conftest.err; then
8744
	  cat conftest.err >&5
8745
	# Otherwise, if the output was created with a 0 exit code from
8746
	# the compiler, it worked.
8747
	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2 by Jonathan Riddell
Run autogen.sh before upload
8748
	  lt_cv_apple_cc_single_mod=yes
8749
	else
8750
	  cat conftest.err >&5
8751
	fi
8752
	rm -rf libconftest.dylib*
8753
	rm -f conftest.*
8754
      fi
8755
fi
8756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8757
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8758
2 by Jonathan Riddell
Run autogen.sh before upload
8759
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8760
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8761
if ${lt_cv_ld_exported_symbols_list+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8762
  $as_echo_n "(cached) " >&6
8763
else
8764
  lt_cv_ld_exported_symbols_list=no
8765
      save_LDFLAGS=$LDFLAGS
8766
      echo "_main" > conftest.sym
8767
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8768
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769
/* end confdefs.h.  */
8770
8771
int
8772
main ()
8773
{
8774
8775
  ;
8776
  return 0;
8777
}
8778
_ACEOF
8779
if ac_fn_c_try_link "$LINENO"; then :
8780
  lt_cv_ld_exported_symbols_list=yes
8781
else
8782
  lt_cv_ld_exported_symbols_list=no
8783
fi
8784
rm -f core conftest.err conftest.$ac_objext \
8785
    conftest$ac_exeext conftest.$ac_ext
8786
	LDFLAGS="$save_LDFLAGS"
8787
8788
fi
8789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8790
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8791
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8792
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8793
$as_echo_n "checking for -force_load linker flag... " >&6; }
8794
if ${lt_cv_ld_force_load+:} false; then :
8795
  $as_echo_n "(cached) " >&6
8796
else
8797
  lt_cv_ld_force_load=no
8798
      cat > conftest.c << _LT_EOF
8799
int forced_loaded() { return 2;}
8800
_LT_EOF
8801
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8802
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8803
      echo "$AR cru libconftest.a conftest.o" >&5
8804
      $AR cru libconftest.a conftest.o 2>&5
8805
      echo "$RANLIB libconftest.a" >&5
8806
      $RANLIB libconftest.a 2>&5
8807
      cat > conftest.c << _LT_EOF
8808
int main() { return 0;}
8809
_LT_EOF
8810
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8811
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8812
      _lt_result=$?
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8813
      if test -s conftest.err && $GREP force_load conftest.err; then
8814
	cat conftest.err >&5
8815
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8816
	lt_cv_ld_force_load=yes
8817
      else
8818
	cat conftest.err >&5
8819
      fi
8820
        rm -f conftest.err libconftest.a conftest conftest.c
8821
        rm -rf conftest.dSYM
8822
8823
fi
8824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8825
$as_echo "$lt_cv_ld_force_load" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
8826
    case $host_os in
8827
    rhapsody* | darwin1.[012])
8828
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8829
    darwin1.*)
8830
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8831
    darwin*) # darwin 5.x on
8832
      # if running on 10.5 or later, the deployment target defaults
8833
      # to the OS version, if on x86, and 10.4, the deployment
8834
      # target defaults to 10.4. Don't you love it?
8835
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8836
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8837
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8838
	10.[012]*)
8839
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8840
	10.*)
8841
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8842
      esac
8843
    ;;
8844
  esac
8845
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8846
      _lt_dar_single_mod='$single_module'
8847
    fi
8848
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8849
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8850
    else
8851
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8852
    fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8853
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2 by Jonathan Riddell
Run autogen.sh before upload
8854
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8855
    else
8856
      _lt_dsymutil=
8857
    fi
8858
    ;;
8859
  esac
8860
8861
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8862
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8863
		  inttypes.h stdint.h unistd.h
8864
do :
8865
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8866
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8867
"
1.1.27 by Ted Gould
Import upstream version 0.3.10
8868
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8869
  cat >>confdefs.h <<_ACEOF
8870
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8871
_ACEOF
8872
8873
fi
8874
8875
done
8876
8877
8878
for ac_header in dlfcn.h
8879
do :
8880
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8881
"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8882
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
8883
  cat >>confdefs.h <<_ACEOF
8884
#define HAVE_DLFCN_H 1
8885
_ACEOF
8886
8887
fi
8888
8889
done
8890
8891
8892
1.1.50 by Ken VanDine
Import upstream version 0.4.90
8893
8894
2 by Jonathan Riddell
Run autogen.sh before upload
8895
# Set options
8896
8897
8898
8899
        enable_dlopen=no
8900
8901
8902
  enable_win32_dll=no
8903
8904
8905
            # Check whether --enable-shared was given.
8906
if test "${enable_shared+set}" = set; then :
8907
  enableval=$enable_shared; p=${PACKAGE-default}
8908
    case $enableval in
8909
    yes) enable_shared=yes ;;
8910
    no) enable_shared=no ;;
8911
    *)
8912
      enable_shared=no
8913
      # Look at the argument we got.  We use all the common list separators.
8914
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8915
      for pkg in $enableval; do
8916
	IFS="$lt_save_ifs"
8917
	if test "X$pkg" = "X$p"; then
8918
	  enable_shared=yes
8919
	fi
8920
      done
8921
      IFS="$lt_save_ifs"
8922
      ;;
8923
    esac
8924
else
8925
  enable_shared=yes
8926
fi
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
  # Check whether --enable-static was given.
8937
if test "${enable_static+set}" = set; then :
8938
  enableval=$enable_static; p=${PACKAGE-default}
8939
    case $enableval in
8940
    yes) enable_static=yes ;;
8941
    no) enable_static=no ;;
8942
    *)
8943
     enable_static=no
8944
      # Look at the argument we got.  We use all the common list separators.
8945
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946
      for pkg in $enableval; do
8947
	IFS="$lt_save_ifs"
8948
	if test "X$pkg" = "X$p"; then
8949
	  enable_static=yes
8950
	fi
8951
      done
8952
      IFS="$lt_save_ifs"
8953
      ;;
8954
    esac
8955
else
8956
  enable_static=yes
8957
fi
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
# Check whether --with-pic was given.
8969
if test "${with_pic+set}" = set; then :
1.1.56 by Ken VanDine
Import upstream version 0.5.90
8970
  withval=$with_pic; lt_p=${PACKAGE-default}
8971
    case $withval in
8972
    yes|no) pic_mode=$withval ;;
8973
    *)
8974
      pic_mode=default
8975
      # Look at the argument we got.  We use all the common list separators.
8976
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8977
      for lt_pkg in $withval; do
8978
	IFS="$lt_save_ifs"
8979
	if test "X$lt_pkg" = "X$lt_p"; then
8980
	  pic_mode=yes
8981
	fi
8982
      done
8983
      IFS="$lt_save_ifs"
8984
      ;;
8985
    esac
2 by Jonathan Riddell
Run autogen.sh before upload
8986
else
8987
  pic_mode=default
8988
fi
8989
8990
8991
test -z "$pic_mode" && pic_mode=default
8992
8993
8994
8995
8996
8997
8998
8999
  # Check whether --enable-fast-install was given.
9000
if test "${enable_fast_install+set}" = set; then :
9001
  enableval=$enable_fast_install; p=${PACKAGE-default}
9002
    case $enableval in
9003
    yes) enable_fast_install=yes ;;
9004
    no) enable_fast_install=no ;;
9005
    *)
9006
      enable_fast_install=no
9007
      # Look at the argument we got.  We use all the common list separators.
9008
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9009
      for pkg in $enableval; do
9010
	IFS="$lt_save_ifs"
9011
	if test "X$pkg" = "X$p"; then
9012
	  enable_fast_install=yes
9013
	fi
9014
      done
9015
      IFS="$lt_save_ifs"
9016
      ;;
9017
    esac
9018
else
9019
  enable_fast_install=yes
9020
fi
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
# This can be used to rebuild libtool when needed
9033
LIBTOOL_DEPS="$ltmain"
9034
9035
# Always use our own libtool.
9036
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9062
1.1.56 by Ken VanDine
Import upstream version 0.5.90
9063
9064
9065
9066
2 by Jonathan Riddell
Run autogen.sh before upload
9067
test -z "$LN_S" && LN_S="ln -s"
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
if test -n "${ZSH_VERSION+set}" ; then
9083
   setopt NO_GLOB_SUBST
9084
fi
9085
9086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9087
$as_echo_n "checking for objdir... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9088
if ${lt_cv_objdir+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9089
  $as_echo_n "(cached) " >&6
9090
else
9091
  rm -f .libs 2>/dev/null
9092
mkdir .libs 2>/dev/null
9093
if test -d .libs; then
9094
  lt_cv_objdir=.libs
9095
else
9096
  # MS-DOS does not allow filenames that begin with a dot.
9097
  lt_cv_objdir=_libs
9098
fi
9099
rmdir .libs 2>/dev/null
9100
fi
9101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9102
$as_echo "$lt_cv_objdir" >&6; }
9103
objdir=$lt_cv_objdir
9104
9105
9106
9107
9108
9109
cat >>confdefs.h <<_ACEOF
9110
#define LT_OBJDIR "$lt_cv_objdir/"
9111
_ACEOF
9112
9113
9114
9115
9116
case $host_os in
9117
aix3*)
9118
  # AIX sometimes has problems with the GCC collect2 program.  For some
9119
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9120
  # vanish in a puff of smoke.
9121
  if test "X${COLLECT_NAMES+set}" != Xset; then
9122
    COLLECT_NAMES=
9123
    export COLLECT_NAMES
9124
  fi
9125
  ;;
9126
esac
9127
9128
# Global variables:
9129
ofile=libtool
9130
can_build_shared=yes
9131
9132
# All known linkers require a `.a' archive for static linking (except MSVC,
9133
# which needs '.lib').
9134
libext=a
9135
9136
with_gnu_ld="$lt_cv_prog_gnu_ld"
9137
9138
old_CC="$CC"
9139
old_CFLAGS="$CFLAGS"
9140
9141
# Set sane defaults for various variables
9142
test -z "$CC" && CC=cc
9143
test -z "$LTCC" && LTCC=$CC
9144
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9145
test -z "$LD" && LD=ld
9146
test -z "$ac_objext" && ac_objext=o
9147
9148
for cc_temp in $compiler""; do
9149
  case $cc_temp in
9150
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9151
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9152
    \-*) ;;
9153
    *) break;;
9154
  esac
9155
done
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9156
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
2 by Jonathan Riddell
Run autogen.sh before upload
9157
9158
9159
# Only perform the check for file, if the check method requires it
9160
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9161
case $deplibs_check_method in
9162
file_magic*)
9163
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9164
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9165
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9166
if ${lt_cv_path_MAGIC_CMD+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9167
  $as_echo_n "(cached) " >&6
9168
else
9169
  case $MAGIC_CMD in
9170
[\\/*] |  ?:[\\/]*)
9171
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9172
  ;;
9173
*)
9174
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9175
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9176
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9177
  for ac_dir in $ac_dummy; do
9178
    IFS="$lt_save_ifs"
9179
    test -z "$ac_dir" && ac_dir=.
9180
    if test -f $ac_dir/${ac_tool_prefix}file; then
9181
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9182
      if test -n "$file_magic_test_file"; then
9183
	case $deplibs_check_method in
9184
	"file_magic "*)
9185
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9186
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9187
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9188
	    $EGREP "$file_magic_regex" > /dev/null; then
9189
	    :
9190
	  else
9191
	    cat <<_LT_EOF 1>&2
9192
9193
*** Warning: the command libtool uses to detect shared libraries,
9194
*** $file_magic_cmd, produces output that libtool cannot recognize.
9195
*** The result is that libtool may fail to recognize shared libraries
9196
*** as such.  This will affect the creation of libtool libraries that
9197
*** depend on shared libraries, but programs linked with such libtool
9198
*** libraries will work regardless of this problem.  Nevertheless, you
9199
*** may want to report the problem to your system manager and/or to
9200
*** bug-libtool@gnu.org
9201
9202
_LT_EOF
9203
	  fi ;;
9204
	esac
9205
      fi
9206
      break
9207
    fi
9208
  done
9209
  IFS="$lt_save_ifs"
9210
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9211
  ;;
9212
esac
9213
fi
9214
9215
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9216
if test -n "$MAGIC_CMD"; then
9217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9218
$as_echo "$MAGIC_CMD" >&6; }
9219
else
9220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221
$as_echo "no" >&6; }
9222
fi
9223
9224
9225
9226
9227
9228
if test -z "$lt_cv_path_MAGIC_CMD"; then
9229
  if test -n "$ac_tool_prefix"; then
9230
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9231
$as_echo_n "checking for file... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9232
if ${lt_cv_path_MAGIC_CMD+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9233
  $as_echo_n "(cached) " >&6
9234
else
9235
  case $MAGIC_CMD in
9236
[\\/*] |  ?:[\\/]*)
9237
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9238
  ;;
9239
*)
9240
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9241
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9242
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9243
  for ac_dir in $ac_dummy; do
9244
    IFS="$lt_save_ifs"
9245
    test -z "$ac_dir" && ac_dir=.
9246
    if test -f $ac_dir/file; then
9247
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9248
      if test -n "$file_magic_test_file"; then
9249
	case $deplibs_check_method in
9250
	"file_magic "*)
9251
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9252
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9253
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9254
	    $EGREP "$file_magic_regex" > /dev/null; then
9255
	    :
9256
	  else
9257
	    cat <<_LT_EOF 1>&2
9258
9259
*** Warning: the command libtool uses to detect shared libraries,
9260
*** $file_magic_cmd, produces output that libtool cannot recognize.
9261
*** The result is that libtool may fail to recognize shared libraries
9262
*** as such.  This will affect the creation of libtool libraries that
9263
*** depend on shared libraries, but programs linked with such libtool
9264
*** libraries will work regardless of this problem.  Nevertheless, you
9265
*** may want to report the problem to your system manager and/or to
9266
*** bug-libtool@gnu.org
9267
9268
_LT_EOF
9269
	  fi ;;
9270
	esac
9271
      fi
9272
      break
9273
    fi
9274
  done
9275
  IFS="$lt_save_ifs"
9276
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9277
  ;;
9278
esac
9279
fi
9280
9281
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9282
if test -n "$MAGIC_CMD"; then
9283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9284
$as_echo "$MAGIC_CMD" >&6; }
9285
else
9286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287
$as_echo "no" >&6; }
9288
fi
9289
9290
9291
  else
9292
    MAGIC_CMD=:
9293
  fi
9294
fi
9295
9296
  fi
9297
  ;;
9298
esac
9299
9300
# Use C for the default configuration in the libtool script
9301
9302
lt_save_CC="$CC"
9303
ac_ext=c
9304
ac_cpp='$CPP $CPPFLAGS'
9305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9308
9309
9310
# Source file extension for C test sources.
9311
ac_ext=c
9312
9313
# Object file extension for compiled C test sources.
9314
objext=o
9315
objext=$objext
9316
9317
# Code to be used in simple compile tests
9318
lt_simple_compile_test_code="int some_variable = 0;"
9319
9320
# Code to be used in simple link tests
9321
lt_simple_link_test_code='int main(){return(0);}'
9322
9323
9324
9325
9326
9327
9328
9329
# If no C compiler was specified, use CC.
9330
LTCC=${LTCC-"$CC"}
9331
9332
# If no C compiler flags were specified, use CFLAGS.
9333
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9334
9335
# Allow CC to be a program name with arguments.
9336
compiler=$CC
9337
9338
# Save the default compiler, since it gets overwritten when the other
9339
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9340
compiler_DEFAULT=$CC
9341
9342
# save warnings/boilerplate of simple test code
9343
ac_outfile=conftest.$ac_objext
9344
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9345
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9346
_lt_compiler_boilerplate=`cat conftest.err`
9347
$RM conftest*
9348
9349
ac_outfile=conftest.$ac_objext
9350
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9351
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9352
_lt_linker_boilerplate=`cat conftest.err`
9353
$RM -r conftest*
9354
9355
1.1.53 by Ken VanDine
Import upstream version 0.4.94
9356
## CAVEAT EMPTOR:
9357
## There is no encapsulation within the following macros, do not change
9358
## the running order or otherwise move them around unless you know exactly
9359
## what you are doing...
2 by Jonathan Riddell
Run autogen.sh before upload
9360
if test -n "$compiler"; then
9361
9362
lt_prog_compiler_no_builtin_flag=
9363
9364
if test "$GCC" = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9365
  case $cc_basename in
9366
  nvcc*)
9367
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9368
  *)
9369
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9370
  esac
2 by Jonathan Riddell
Run autogen.sh before upload
9371
9372
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9373
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9374
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9375
  $as_echo_n "(cached) " >&6
9376
else
9377
  lt_cv_prog_compiler_rtti_exceptions=no
9378
   ac_outfile=conftest.$ac_objext
9379
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380
   lt_compiler_flag="-fno-rtti -fno-exceptions"
9381
   # Insert the option either (1) after the last *FLAGS variable, or
9382
   # (2) before a word containing "conftest.", or (3) at the end.
9383
   # Note that $ac_compile itself does not contain backslashes and begins
9384
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9385
   # The option is referenced via a variable to avoid confusing sed.
9386
   lt_compile=`echo "$ac_compile" | $SED \
9387
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9388
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9389
   -e 's:$: $lt_compiler_flag:'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9390
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
9391
   (eval "$lt_compile" 2>conftest.err)
9392
   ac_status=$?
9393
   cat conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9394
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
9395
   if (exit $ac_status) && test -s "$ac_outfile"; then
9396
     # The compiler can only warn and ignore the option if not recognized
9397
     # So say no if there are warnings other than the usual output.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9398
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2 by Jonathan Riddell
Run autogen.sh before upload
9399
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9400
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9401
       lt_cv_prog_compiler_rtti_exceptions=yes
9402
     fi
9403
   fi
9404
   $RM conftest*
9405
9406
fi
9407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9408
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9409
9410
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9411
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9412
else
9413
    :
9414
fi
9415
9416
fi
9417
9418
9419
9420
9421
9422
9423
  lt_prog_compiler_wl=
9424
lt_prog_compiler_pic=
9425
lt_prog_compiler_static=
9426
9427
9428
  if test "$GCC" = yes; then
9429
    lt_prog_compiler_wl='-Wl,'
9430
    lt_prog_compiler_static='-static'
9431
9432
    case $host_os in
9433
      aix*)
9434
      # All AIX code is PIC.
9435
      if test "$host_cpu" = ia64; then
9436
	# AIX 5 now supports IA64 processor
9437
	lt_prog_compiler_static='-Bstatic'
9438
      fi
9439
      ;;
9440
9441
    amigaos*)
9442
      case $host_cpu in
9443
      powerpc)
9444
            # see comment about AmigaOS4 .so support
9445
            lt_prog_compiler_pic='-fPIC'
9446
        ;;
9447
      m68k)
9448
            # FIXME: we need at least 68020 code to build shared libraries, but
9449
            # adding the `-m68020' flag to GCC prevents building anything better,
9450
            # like `-m68040'.
9451
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9452
        ;;
9453
      esac
9454
      ;;
9455
9456
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9457
      # PIC is the default for these OSes.
9458
      ;;
9459
9460
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9461
      # This hack is so that the source file can tell whether it is being
9462
      # built for inclusion in a dll (and should export symbols for example).
9463
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9464
      # (--disable-auto-import) libraries
9465
      lt_prog_compiler_pic='-DDLL_EXPORT'
9466
      ;;
9467
9468
    darwin* | rhapsody*)
9469
      # PIC is the default on this platform
9470
      # Common symbols not allowed in MH_DYLIB files
9471
      lt_prog_compiler_pic='-fno-common'
9472
      ;;
9473
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9474
    haiku*)
9475
      # PIC is the default for Haiku.
9476
      # The "-static" flag exists, but is broken.
9477
      lt_prog_compiler_static=
9478
      ;;
9479
2 by Jonathan Riddell
Run autogen.sh before upload
9480
    hpux*)
9481
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9482
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9483
      # sets the default TLS model and affects inlining.
9484
      case $host_cpu in
9485
      hppa*64*)
9486
	# +Z the default
9487
	;;
9488
      *)
9489
	lt_prog_compiler_pic='-fPIC'
9490
	;;
9491
      esac
9492
      ;;
9493
9494
    interix[3-9]*)
9495
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9496
      # Instead, we relocate shared libraries at runtime.
9497
      ;;
9498
9499
    msdosdjgpp*)
9500
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9501
      # on systems that don't support them.
9502
      lt_prog_compiler_can_build_shared=no
9503
      enable_shared=no
9504
      ;;
9505
9506
    *nto* | *qnx*)
9507
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9508
      # it will coredump.
9509
      lt_prog_compiler_pic='-fPIC -shared'
9510
      ;;
9511
9512
    sysv4*MP*)
9513
      if test -d /usr/nec; then
9514
	lt_prog_compiler_pic=-Kconform_pic
9515
      fi
9516
      ;;
9517
9518
    *)
9519
      lt_prog_compiler_pic='-fPIC'
9520
      ;;
9521
    esac
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9522
9523
    case $cc_basename in
9524
    nvcc*) # Cuda Compiler Driver 2.2
9525
      lt_prog_compiler_wl='-Xlinker '
1.1.56 by Ken VanDine
Import upstream version 0.5.90
9526
      if test -n "$lt_prog_compiler_pic"; then
9527
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9528
      fi
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9529
      ;;
9530
    esac
2 by Jonathan Riddell
Run autogen.sh before upload
9531
  else
9532
    # PORTME Check for flag to pass linker flags through the system compiler.
9533
    case $host_os in
9534
    aix*)
9535
      lt_prog_compiler_wl='-Wl,'
9536
      if test "$host_cpu" = ia64; then
9537
	# AIX 5 now supports IA64 processor
9538
	lt_prog_compiler_static='-Bstatic'
9539
      else
9540
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9541
      fi
9542
      ;;
9543
9544
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9545
      # This hack is so that the source file can tell whether it is being
9546
      # built for inclusion in a dll (and should export symbols for example).
9547
      lt_prog_compiler_pic='-DDLL_EXPORT'
9548
      ;;
9549
9550
    hpux9* | hpux10* | hpux11*)
9551
      lt_prog_compiler_wl='-Wl,'
9552
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9553
      # not for PA HP-UX.
9554
      case $host_cpu in
9555
      hppa*64*|ia64*)
9556
	# +Z the default
9557
	;;
9558
      *)
9559
	lt_prog_compiler_pic='+Z'
9560
	;;
9561
      esac
9562
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9563
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9564
      ;;
9565
9566
    irix5* | irix6* | nonstopux*)
9567
      lt_prog_compiler_wl='-Wl,'
9568
      # PIC (with -KPIC) is the default.
9569
      lt_prog_compiler_static='-non_shared'
9570
      ;;
9571
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
9572
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
2 by Jonathan Riddell
Run autogen.sh before upload
9573
      case $cc_basename in
9574
      # old Intel for x86_64 which still supported -KPIC.
9575
      ecc*)
9576
	lt_prog_compiler_wl='-Wl,'
9577
	lt_prog_compiler_pic='-KPIC'
9578
	lt_prog_compiler_static='-static'
9579
        ;;
9580
      # icc used to be incompatible with GCC.
9581
      # ICC 10 doesn't accept -KPIC any more.
9582
      icc* | ifort*)
9583
	lt_prog_compiler_wl='-Wl,'
9584
	lt_prog_compiler_pic='-fPIC'
9585
	lt_prog_compiler_static='-static'
9586
        ;;
9587
      # Lahey Fortran 8.1.
9588
      lf95*)
9589
	lt_prog_compiler_wl='-Wl,'
9590
	lt_prog_compiler_pic='--shared'
9591
	lt_prog_compiler_static='--static'
9592
	;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9593
      nagfor*)
9594
	# NAG Fortran compiler
9595
	lt_prog_compiler_wl='-Wl,-Wl,,'
9596
	lt_prog_compiler_pic='-PIC'
9597
	lt_prog_compiler_static='-Bstatic'
9598
	;;
9599
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
2 by Jonathan Riddell
Run autogen.sh before upload
9600
        # Portland Group compilers (*not* the Pentium gcc compiler,
9601
	# which looks to be a dead project)
9602
	lt_prog_compiler_wl='-Wl,'
9603
	lt_prog_compiler_pic='-fpic'
9604
	lt_prog_compiler_static='-Bstatic'
9605
        ;;
9606
      ccc*)
9607
        lt_prog_compiler_wl='-Wl,'
9608
        # All Alpha code is PIC.
9609
        lt_prog_compiler_static='-non_shared'
9610
        ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9611
      xl* | bgxl* | bgf* | mpixl*)
9612
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
2 by Jonathan Riddell
Run autogen.sh before upload
9613
	lt_prog_compiler_wl='-Wl,'
9614
	lt_prog_compiler_pic='-qpic'
9615
	lt_prog_compiler_static='-qstaticlink'
9616
	;;
9617
      *)
9618
	case `$CC -V 2>&1 | sed 5q` in
1.1.56 by Ken VanDine
Import upstream version 0.5.90
9619
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9620
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9621
	  lt_prog_compiler_pic='-KPIC'
9622
	  lt_prog_compiler_static='-Bstatic'
9623
	  lt_prog_compiler_wl=''
9624
	  ;;
1.1.56 by Ken VanDine
Import upstream version 0.5.90
9625
	*Sun\ F* | *Sun*Fortran*)
9626
	  lt_prog_compiler_pic='-KPIC'
9627
	  lt_prog_compiler_static='-Bstatic'
9628
	  lt_prog_compiler_wl='-Qoption ld '
9629
	  ;;
2 by Jonathan Riddell
Run autogen.sh before upload
9630
	*Sun\ C*)
9631
	  # Sun C 5.9
9632
	  lt_prog_compiler_pic='-KPIC'
9633
	  lt_prog_compiler_static='-Bstatic'
9634
	  lt_prog_compiler_wl='-Wl,'
9635
	  ;;
1.1.56 by Ken VanDine
Import upstream version 0.5.90
9636
        *Intel*\ [CF]*Compiler*)
9637
	  lt_prog_compiler_wl='-Wl,'
9638
	  lt_prog_compiler_pic='-fPIC'
9639
	  lt_prog_compiler_static='-static'
9640
	  ;;
9641
	*Portland\ Group*)
9642
	  lt_prog_compiler_wl='-Wl,'
9643
	  lt_prog_compiler_pic='-fpic'
9644
	  lt_prog_compiler_static='-Bstatic'
9645
	  ;;
2 by Jonathan Riddell
Run autogen.sh before upload
9646
	esac
9647
	;;
9648
      esac
9649
      ;;
9650
9651
    newsos6)
9652
      lt_prog_compiler_pic='-KPIC'
9653
      lt_prog_compiler_static='-Bstatic'
9654
      ;;
9655
9656
    *nto* | *qnx*)
9657
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9658
      # it will coredump.
9659
      lt_prog_compiler_pic='-fPIC -shared'
9660
      ;;
9661
9662
    osf3* | osf4* | osf5*)
9663
      lt_prog_compiler_wl='-Wl,'
9664
      # All OSF/1 code is PIC.
9665
      lt_prog_compiler_static='-non_shared'
9666
      ;;
9667
9668
    rdos*)
9669
      lt_prog_compiler_static='-non_shared'
9670
      ;;
9671
9672
    solaris*)
9673
      lt_prog_compiler_pic='-KPIC'
9674
      lt_prog_compiler_static='-Bstatic'
9675
      case $cc_basename in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9676
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
2 by Jonathan Riddell
Run autogen.sh before upload
9677
	lt_prog_compiler_wl='-Qoption ld ';;
9678
      *)
9679
	lt_prog_compiler_wl='-Wl,';;
9680
      esac
9681
      ;;
9682
9683
    sunos4*)
9684
      lt_prog_compiler_wl='-Qoption ld '
9685
      lt_prog_compiler_pic='-PIC'
9686
      lt_prog_compiler_static='-Bstatic'
9687
      ;;
9688
9689
    sysv4 | sysv4.2uw2* | sysv4.3*)
9690
      lt_prog_compiler_wl='-Wl,'
9691
      lt_prog_compiler_pic='-KPIC'
9692
      lt_prog_compiler_static='-Bstatic'
9693
      ;;
9694
9695
    sysv4*MP*)
9696
      if test -d /usr/nec ;then
9697
	lt_prog_compiler_pic='-Kconform_pic'
9698
	lt_prog_compiler_static='-Bstatic'
9699
      fi
9700
      ;;
9701
9702
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9703
      lt_prog_compiler_wl='-Wl,'
9704
      lt_prog_compiler_pic='-KPIC'
9705
      lt_prog_compiler_static='-Bstatic'
9706
      ;;
9707
9708
    unicos*)
9709
      lt_prog_compiler_wl='-Wl,'
9710
      lt_prog_compiler_can_build_shared=no
9711
      ;;
9712
9713
    uts4*)
9714
      lt_prog_compiler_pic='-pic'
9715
      lt_prog_compiler_static='-Bstatic'
9716
      ;;
9717
9718
    *)
9719
      lt_prog_compiler_can_build_shared=no
9720
      ;;
9721
    esac
9722
  fi
9723
9724
case $host_os in
9725
  # For platforms which do not support PIC, -DPIC is meaningless:
9726
  *djgpp*)
9727
    lt_prog_compiler_pic=
9728
    ;;
9729
  *)
9730
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9731
    ;;
9732
esac
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9733
9734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9735
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9736
if ${lt_cv_prog_compiler_pic+:} false; then :
9737
  $as_echo_n "(cached) " >&6
9738
else
9739
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9740
fi
9741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9742
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9743
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
2 by Jonathan Riddell
Run autogen.sh before upload
9744
9745
#
9746
# Check to make sure the PIC flag actually works.
9747
#
9748
if test -n "$lt_prog_compiler_pic"; then
9749
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9750
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9751
if ${lt_cv_prog_compiler_pic_works+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9752
  $as_echo_n "(cached) " >&6
9753
else
9754
  lt_cv_prog_compiler_pic_works=no
9755
   ac_outfile=conftest.$ac_objext
9756
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9758
   # Insert the option either (1) after the last *FLAGS variable, or
9759
   # (2) before a word containing "conftest.", or (3) at the end.
9760
   # Note that $ac_compile itself does not contain backslashes and begins
9761
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9762
   # The option is referenced via a variable to avoid confusing sed.
9763
   lt_compile=`echo "$ac_compile" | $SED \
9764
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766
   -e 's:$: $lt_compiler_flag:'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9767
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
9768
   (eval "$lt_compile" 2>conftest.err)
9769
   ac_status=$?
9770
   cat conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9771
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
9772
   if (exit $ac_status) && test -s "$ac_outfile"; then
9773
     # The compiler can only warn and ignore the option if not recognized
9774
     # So say no if there are warnings other than the usual output.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9775
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2 by Jonathan Riddell
Run autogen.sh before upload
9776
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9778
       lt_cv_prog_compiler_pic_works=yes
9779
     fi
9780
   fi
9781
   $RM conftest*
9782
9783
fi
9784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9785
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9786
9787
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9788
    case $lt_prog_compiler_pic in
9789
     "" | " "*) ;;
9790
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9791
     esac
9792
else
9793
    lt_prog_compiler_pic=
9794
     lt_prog_compiler_can_build_shared=no
9795
fi
9796
9797
fi
9798
9799
9800
9801
9802
9803
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9804
9805
9806
9807
9808
2 by Jonathan Riddell
Run autogen.sh before upload
9809
#
9810
# Check to make sure the static flag actually works.
9811
#
9812
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9815
if ${lt_cv_prog_compiler_static_works+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9816
  $as_echo_n "(cached) " >&6
9817
else
9818
  lt_cv_prog_compiler_static_works=no
9819
   save_LDFLAGS="$LDFLAGS"
9820
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823
     # The linker can only warn and ignore the option if not recognized
9824
     # So say no if there are warnings
9825
     if test -s conftest.err; then
9826
       # Append any errors to the config.log.
9827
       cat conftest.err 1>&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9828
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2 by Jonathan Riddell
Run autogen.sh before upload
9829
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830
       if diff conftest.exp conftest.er2 >/dev/null; then
9831
         lt_cv_prog_compiler_static_works=yes
9832
       fi
9833
     else
9834
       lt_cv_prog_compiler_static_works=yes
9835
     fi
9836
   fi
9837
   $RM -r conftest*
9838
   LDFLAGS="$save_LDFLAGS"
9839
9840
fi
9841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9842
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9843
9844
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845
    :
9846
else
9847
    lt_prog_compiler_static=
9848
fi
9849
9850
9851
9852
9853
9854
9855
9856
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9857
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9858
if ${lt_cv_prog_compiler_c_o+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9859
  $as_echo_n "(cached) " >&6
9860
else
9861
  lt_cv_prog_compiler_c_o=no
9862
   $RM -r conftest 2>/dev/null
9863
   mkdir conftest
9864
   cd conftest
9865
   mkdir out
9866
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867
9868
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9869
   # Insert the option either (1) after the last *FLAGS variable, or
9870
   # (2) before a word containing "conftest.", or (3) at the end.
9871
   # Note that $ac_compile itself does not contain backslashes and begins
9872
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9873
   lt_compile=`echo "$ac_compile" | $SED \
9874
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876
   -e 's:$: $lt_compiler_flag:'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9877
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
9878
   (eval "$lt_compile" 2>out/conftest.err)
9879
   ac_status=$?
9880
   cat out/conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9881
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
9882
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9883
   then
9884
     # The compiler can only warn and ignore the option if not recognized
9885
     # So say no if there are warnings
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9886
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2 by Jonathan Riddell
Run autogen.sh before upload
9887
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889
       lt_cv_prog_compiler_c_o=yes
9890
     fi
9891
   fi
9892
   chmod u+w . 2>&5
9893
   $RM conftest*
9894
   # SGI C++ compiler will create directory out/ii_files/ for
9895
   # template instantiation
9896
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897
   $RM out/* && rmdir out
9898
   cd ..
9899
   $RM -r conftest
9900
   $RM conftest*
9901
9902
fi
9903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9904
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9905
9906
9907
9908
9909
9910
9911
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9912
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9913
if ${lt_cv_prog_compiler_c_o+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
9914
  $as_echo_n "(cached) " >&6
9915
else
9916
  lt_cv_prog_compiler_c_o=no
9917
   $RM -r conftest 2>/dev/null
9918
   mkdir conftest
9919
   cd conftest
9920
   mkdir out
9921
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922
9923
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9924
   # Insert the option either (1) after the last *FLAGS variable, or
9925
   # (2) before a word containing "conftest.", or (3) at the end.
9926
   # Note that $ac_compile itself does not contain backslashes and begins
9927
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9928
   lt_compile=`echo "$ac_compile" | $SED \
9929
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931
   -e 's:$: $lt_compiler_flag:'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9932
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
2 by Jonathan Riddell
Run autogen.sh before upload
9933
   (eval "$lt_compile" 2>out/conftest.err)
9934
   ac_status=$?
9935
   cat out/conftest.err >&5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9936
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
9937
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9938
   then
9939
     # The compiler can only warn and ignore the option if not recognized
9940
     # So say no if there are warnings
1.1.50 by Ken VanDine
Import upstream version 0.4.90
9941
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2 by Jonathan Riddell
Run autogen.sh before upload
9942
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944
       lt_cv_prog_compiler_c_o=yes
9945
     fi
9946
   fi
9947
   chmod u+w . 2>&5
9948
   $RM conftest*
9949
   # SGI C++ compiler will create directory out/ii_files/ for
9950
   # template instantiation
9951
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952
   $RM out/* && rmdir out
9953
   cd ..
9954
   $RM -r conftest
9955
   $RM conftest*
9956
9957
fi
9958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9959
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9960
9961
9962
9963
9964
hard_links="nottested"
9965
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966
  # do not overwrite the value of need_locks provided by the user
9967
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9968
$as_echo_n "checking if we can lock with hard links... " >&6; }
9969
  hard_links=yes
9970
  $RM conftest*
9971
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9972
  touch conftest.a
9973
  ln conftest.a conftest.b 2>&5 || hard_links=no
9974
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9976
$as_echo "$hard_links" >&6; }
9977
  if test "$hard_links" = no; then
9978
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9980
    need_locks=warn
9981
  fi
9982
else
9983
  need_locks=no
9984
fi
9985
9986
9987
9988
9989
9990
9991
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9993
9994
  runpath_var=
9995
  allow_undefined_flag=
9996
  always_export_symbols=no
9997
  archive_cmds=
9998
  archive_expsym_cmds=
9999
  compiler_needs_object=no
10000
  enable_shared_with_static_runtimes=no
10001
  export_dynamic_flag_spec=
10002
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003
  hardcode_automatic=no
10004
  hardcode_direct=no
10005
  hardcode_direct_absolute=no
10006
  hardcode_libdir_flag_spec=
10007
  hardcode_libdir_separator=
10008
  hardcode_minus_L=no
10009
  hardcode_shlibpath_var=unsupported
10010
  inherit_rpath=no
10011
  link_all_deplibs=unknown
10012
  module_cmds=
10013
  module_expsym_cmds=
10014
  old_archive_from_new_cmds=
10015
  old_archive_from_expsyms_cmds=
10016
  thread_safe_flag_spec=
10017
  whole_archive_flag_spec=
10018
  # include_expsyms should be a list of space-separated symbols to be *always*
10019
  # included in the symbol list
10020
  include_expsyms=
10021
  # exclude_expsyms can be an extended regexp of symbols to exclude
10022
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10023
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10024
  # as well as any symbol that contains `d'.
10025
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10026
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10027
  # platforms (ab)use it in PIC code, but their linkers get confused if
10028
  # the symbol is explicitly referenced.  Since portable code cannot
10029
  # rely on this symbol name, it's probably fine to never include it in
10030
  # preloaded symbol tables.
10031
  # Exclude shared library initialization/finalization symbols.
10032
  extract_expsyms_cmds=
10033
10034
  case $host_os in
10035
  cygwin* | mingw* | pw32* | cegcc*)
10036
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10037
    # When not using gcc, we currently assume that we are using
10038
    # Microsoft Visual C++.
10039
    if test "$GCC" != yes; then
10040
      with_gnu_ld=no
10041
    fi
10042
    ;;
10043
  interix*)
10044
    # we just hope/assume this is gcc and not c89 (= MSVC++)
10045
    with_gnu_ld=yes
10046
    ;;
10047
  openbsd*)
10048
    with_gnu_ld=no
10049
    ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10050
  linux* | k*bsd*-gnu | gnu*)
2 by Jonathan Riddell
Run autogen.sh before upload
10051
    link_all_deplibs=no
10052
    ;;
10053
  esac
10054
10055
  ld_shlibs=yes
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10056
10057
  # On some targets, GNU ld is compatible enough with the native linker
10058
  # that we're better off using the native interface for both.
10059
  lt_use_gnu_ld_interface=no
2 by Jonathan Riddell
Run autogen.sh before upload
10060
  if test "$with_gnu_ld" = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10061
    case $host_os in
10062
      aix*)
10063
	# The AIX port of GNU ld has always aspired to compatibility
10064
	# with the native linker.  However, as the warning in the GNU ld
10065
	# block says, versions before 2.19.5* couldn't really create working
10066
	# shared libraries, regardless of the interface used.
10067
	case `$LD -v 2>&1` in
10068
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10069
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10070
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10071
	  *)
10072
	    lt_use_gnu_ld_interface=yes
10073
	    ;;
10074
	esac
10075
	;;
10076
      *)
10077
	lt_use_gnu_ld_interface=yes
10078
	;;
10079
    esac
10080
  fi
10081
10082
  if test "$lt_use_gnu_ld_interface" = yes; then
2 by Jonathan Riddell
Run autogen.sh before upload
10083
    # If archive_cmds runs LD, not CC, wlarc should be empty
10084
    wlarc='${wl}'
10085
10086
    # Set some defaults for GNU ld with shared library support. These
10087
    # are reset later if shared libraries are not supported. Putting them
10088
    # here allows them to be overridden if necessary.
10089
    runpath_var=LD_RUN_PATH
10090
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091
    export_dynamic_flag_spec='${wl}--export-dynamic'
10092
    # ancient GNU ld didn't support --whole-archive et. al.
10093
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10094
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10095
    else
10096
      whole_archive_flag_spec=
10097
    fi
10098
    supports_anon_versioning=no
10099
    case `$LD -v 2>&1` in
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
10100
      *GNU\ gold*) supports_anon_versioning=yes ;;
2 by Jonathan Riddell
Run autogen.sh before upload
10101
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10102
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10103
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10104
      *\ 2.11.*) ;; # other 2.11 versions
10105
      *) supports_anon_versioning=yes ;;
10106
    esac
10107
10108
    # See if GNU ld supports shared libraries.
10109
    case $host_os in
10110
    aix[3-9]*)
10111
      # On AIX/PPC, the GNU linker is very broken
10112
      if test "$host_cpu" != ia64; then
10113
	ld_shlibs=no
10114
	cat <<_LT_EOF 1>&2
10115
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10116
*** Warning: the GNU linker, at least up to release 2.19, is reported
2 by Jonathan Riddell
Run autogen.sh before upload
10117
*** to be unable to reliably create shared libraries on AIX.
10118
*** Therefore, libtool is disabling shared libraries support.  If you
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10119
*** really care for shared libraries, you may want to install binutils
10120
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10121
*** You will then need to restart the configuration process.
2 by Jonathan Riddell
Run autogen.sh before upload
10122
10123
_LT_EOF
10124
      fi
10125
      ;;
10126
10127
    amigaos*)
10128
      case $host_cpu in
10129
      powerpc)
10130
            # see comment about AmigaOS4 .so support
10131
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10132
            archive_expsym_cmds=''
10133
        ;;
10134
      m68k)
10135
            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)'
10136
            hardcode_libdir_flag_spec='-L$libdir'
10137
            hardcode_minus_L=yes
10138
        ;;
10139
      esac
10140
      ;;
10141
10142
    beos*)
10143
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10144
	allow_undefined_flag=unsupported
10145
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10146
	# support --undefined.  This deserves some investigation.  FIXME
10147
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148
      else
10149
	ld_shlibs=no
10150
      fi
10151
      ;;
10152
10153
    cygwin* | mingw* | pw32* | cegcc*)
10154
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10155
      # as there is no search path for DLLs.
10156
      hardcode_libdir_flag_spec='-L$libdir'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10157
      export_dynamic_flag_spec='${wl}--export-all-symbols'
2 by Jonathan Riddell
Run autogen.sh before upload
10158
      allow_undefined_flag=unsupported
10159
      always_export_symbols=no
10160
      enable_shared_with_static_runtimes=yes
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10161
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10162
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
2 by Jonathan Riddell
Run autogen.sh before upload
10163
10164
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10165
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10166
	# If the export-symbols file already is a .def file (1st line
10167
	# is EXPORTS), use it as is; otherwise, prepend...
10168
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10169
	  cp $export_symbols $output_objdir/$soname.def;
10170
	else
10171
	  echo EXPORTS > $output_objdir/$soname.def;
10172
	  cat $export_symbols >> $output_objdir/$soname.def;
10173
	fi~
10174
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10175
      else
10176
	ld_shlibs=no
10177
      fi
10178
      ;;
10179
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10180
    haiku*)
10181
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182
      link_all_deplibs=yes
10183
      ;;
10184
2 by Jonathan Riddell
Run autogen.sh before upload
10185
    interix[3-9]*)
10186
      hardcode_direct=no
10187
      hardcode_shlibpath_var=no
10188
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10189
      export_dynamic_flag_spec='${wl}-E'
10190
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10191
      # Instead, shared libraries are loaded at an image base (0x10000000 by
10192
      # default) and relocated if they conflict, which is a slow very memory
10193
      # consuming and fragmenting process.  To avoid this, we pick a random,
10194
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10195
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10196
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10197
      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'
10198
      ;;
10199
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
10200
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
2 by Jonathan Riddell
Run autogen.sh before upload
10201
      tmp_diet=no
10202
      if test "$host_os" = linux-dietlibc; then
10203
	case $cc_basename in
10204
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10205
	esac
10206
      fi
10207
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10208
	 && test "$tmp_diet" = no
10209
      then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10210
	tmp_addflag=' $pic_flag'
2 by Jonathan Riddell
Run autogen.sh before upload
10211
	tmp_sharedflag='-shared'
10212
	case $cc_basename,$host_cpu in
10213
        pgcc*)				# Portland Group C compiler
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10214
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2 by Jonathan Riddell
Run autogen.sh before upload
10215
	  tmp_addflag=' $pic_flag'
10216
	  ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10217
	pgf77* | pgf90* | pgf95* | pgfortran*)
10218
					# Portland Group f77 and f90 compilers
10219
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2 by Jonathan Riddell
Run autogen.sh before upload
10220
	  tmp_addflag=' $pic_flag -Mnomain' ;;
10221
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10222
	  tmp_addflag=' -i_dynamic' ;;
10223
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10224
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10225
	ifc* | ifort*)			# Intel Fortran compiler
10226
	  tmp_addflag=' -nofor_main' ;;
10227
	lf95*)				# Lahey Fortran 8.1
10228
	  whole_archive_flag_spec=
10229
	  tmp_sharedflag='--shared' ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10230
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
2 by Jonathan Riddell
Run autogen.sh before upload
10231
	  tmp_sharedflag='-qmkshrobj'
10232
	  tmp_addflag= ;;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10233
	nvcc*)	# Cuda Compiler Driver 2.2
10234
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10235
	  compiler_needs_object=yes
10236
	  ;;
2 by Jonathan Riddell
Run autogen.sh before upload
10237
	esac
10238
	case `$CC -V 2>&1 | sed 5q` in
10239
	*Sun\ C*)			# Sun C 5.9
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10240
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2 by Jonathan Riddell
Run autogen.sh before upload
10241
	  compiler_needs_object=yes
10242
	  tmp_sharedflag='-G' ;;
10243
	*Sun\ F*)			# Sun Fortran 8.3
10244
	  tmp_sharedflag='-G' ;;
10245
	esac
10246
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10247
10248
        if test "x$supports_anon_versioning" = xyes; then
10249
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10250
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10251
	    echo "local: *; };" >> $output_objdir/$libname.ver~
10252
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10253
        fi
10254
10255
	case $cc_basename in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10256
	xlf* | bgf* | bgxlf* | mpixlf*)
2 by Jonathan Riddell
Run autogen.sh before upload
10257
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10258
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.56 by Ken VanDine
Import upstream version 0.5.90
10259
	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10260
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10261
	  if test "x$supports_anon_versioning" = xyes; then
10262
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10263
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10264
	      echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10265
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10266
	  fi
10267
	  ;;
10268
	esac
10269
      else
10270
        ld_shlibs=no
10271
      fi
10272
      ;;
10273
10274
    netbsd* | netbsdelf*-gnu)
10275
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10276
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10277
	wlarc=
10278
      else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10279
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10281
      fi
10282
      ;;
10283
10284
    solaris*)
10285
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10286
	ld_shlibs=no
10287
	cat <<_LT_EOF 1>&2
10288
10289
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10290
*** create shared libraries on Solaris systems.  Therefore, libtool
10291
*** is disabling shared libraries support.  We urge you to upgrade GNU
10292
*** binutils to release 2.9.1 or newer.  Another option is to modify
10293
*** your PATH or compiler configuration so that the native linker is
10294
*** used, and then restart.
10295
10296
_LT_EOF
10297
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10298
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10300
      else
10301
	ld_shlibs=no
10302
      fi
10303
      ;;
10304
10305
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10306
      case `$LD -v 2>&1` in
10307
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10308
	ld_shlibs=no
10309
	cat <<_LT_EOF 1>&2
10310
10311
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10312
*** reliably create shared libraries on SCO systems.  Therefore, libtool
10313
*** is disabling shared libraries support.  We urge you to upgrade GNU
10314
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10315
*** your PATH or compiler configuration so that the native linker is
10316
*** used, and then restart.
10317
10318
_LT_EOF
10319
	;;
10320
	*)
10321
	  # For security reasons, it is highly recommended that you always
10322
	  # use absolute paths for naming shared libraries, and exclude the
10323
	  # DT_RUNPATH tag from executables and libraries.  But doing so
10324
	  # requires that you compile everything twice, which is a pain.
10325
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10326
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10327
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10329
	  else
10330
	    ld_shlibs=no
10331
	  fi
10332
	;;
10333
      esac
10334
      ;;
10335
10336
    sunos4*)
10337
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338
      wlarc=
10339
      hardcode_direct=yes
10340
      hardcode_shlibpath_var=no
10341
      ;;
10342
10343
    *)
10344
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10345
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10347
      else
10348
	ld_shlibs=no
10349
      fi
10350
      ;;
10351
    esac
10352
10353
    if test "$ld_shlibs" = no; then
10354
      runpath_var=
10355
      hardcode_libdir_flag_spec=
10356
      export_dynamic_flag_spec=
10357
      whole_archive_flag_spec=
10358
    fi
10359
  else
10360
    # PORTME fill in a description of your system's linker (not GNU ld)
10361
    case $host_os in
10362
    aix3*)
10363
      allow_undefined_flag=unsupported
10364
      always_export_symbols=yes
10365
      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'
10366
      # Note: this linker hardcodes the directories in LIBPATH if there
10367
      # are no directories specified by -L.
10368
      hardcode_minus_L=yes
10369
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10370
	# Neither direct hardcoding nor static linking is supported with a
10371
	# broken collect2.
10372
	hardcode_direct=unsupported
10373
      fi
10374
      ;;
10375
10376
    aix[4-9]*)
10377
      if test "$host_cpu" = ia64; then
10378
	# On IA64, the linker does run time linking by default, so we don't
10379
	# have to do anything special.
10380
	aix_use_runtimelinking=no
10381
	exp_sym_flag='-Bexport'
10382
	no_entry_flag=""
10383
      else
10384
	# If we're using GNU nm, then we don't want the "-C" option.
10385
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10386
	# Also, AIX nm treats weak defined symbols like other global
10387
	# defined symbols, whereas GNU nm marks them as "W".
2 by Jonathan Riddell
Run autogen.sh before upload
10388
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10389
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2 by Jonathan Riddell
Run autogen.sh before upload
10390
	else
10391
	  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'
10392
	fi
10393
	aix_use_runtimelinking=no
10394
10395
	# Test if we are trying to use run time linking or normal
10396
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10397
	# need to do runtime linking.
10398
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10399
	  for ld_flag in $LDFLAGS; do
10400
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10401
	    aix_use_runtimelinking=yes
10402
	    break
10403
	  fi
10404
	  done
10405
	  ;;
10406
	esac
10407
10408
	exp_sym_flag='-bexport'
10409
	no_entry_flag='-bnoentry'
10410
      fi
10411
10412
      # When large executables or shared objects are built, AIX ld can
10413
      # have problems creating the table of contents.  If linking a library
10414
      # or program results in "error TOC overflow" add -mminimal-toc to
10415
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10416
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10417
10418
      archive_cmds=''
10419
      hardcode_direct=yes
10420
      hardcode_direct_absolute=yes
10421
      hardcode_libdir_separator=':'
10422
      link_all_deplibs=yes
10423
      file_list_spec='${wl}-f,'
10424
10425
      if test "$GCC" = yes; then
10426
	case $host_os in aix4.[012]|aix4.[012].*)
10427
	# We only want to do this on AIX 4.2 and lower, the check
10428
	# below for broken collect2 doesn't work under 4.3+
10429
	  collect2name=`${CC} -print-prog-name=collect2`
10430
	  if test -f "$collect2name" &&
10431
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10432
	  then
10433
	  # We have reworked collect2
10434
	  :
10435
	  else
10436
	  # We have old collect2
10437
	  hardcode_direct=unsupported
10438
	  # It fails to find uninstalled libraries when the uninstalled
10439
	  # path is not listed in the libpath.  Setting hardcode_minus_L
10440
	  # to unsupported forces relinking
10441
	  hardcode_minus_L=yes
10442
	  hardcode_libdir_flag_spec='-L$libdir'
10443
	  hardcode_libdir_separator=
10444
	  fi
10445
	  ;;
10446
	esac
10447
	shared_flag='-shared'
10448
	if test "$aix_use_runtimelinking" = yes; then
10449
	  shared_flag="$shared_flag "'${wl}-G'
10450
	fi
10451
	link_all_deplibs=no
10452
      else
10453
	# not using gcc
10454
	if test "$host_cpu" = ia64; then
10455
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10456
	# chokes on -Wl,-G. The following line is correct:
10457
	  shared_flag='-G'
10458
	else
10459
	  if test "$aix_use_runtimelinking" = yes; then
10460
	    shared_flag='${wl}-G'
10461
	  else
10462
	    shared_flag='${wl}-bM:SRE'
10463
	  fi
10464
	fi
10465
      fi
10466
10467
      export_dynamic_flag_spec='${wl}-bexpall'
10468
      # It seems that -bexpall does not export symbols beginning with
10469
      # underscore (_), so it is better to generate a list of symbols to export.
10470
      always_export_symbols=yes
10471
      if test "$aix_use_runtimelinking" = yes; then
10472
	# Warning - without using the other runtime loading flags (-brtl),
10473
	# -berok will link without error, but may produce a broken library.
10474
	allow_undefined_flag='-berok'
10475
        # Determine the default libpath from the value encoded in an
10476
        # empty executable.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10477
        if test "${lt_cv_aix_libpath+set}" = set; then
10478
  aix_libpath=$lt_cv_aix_libpath
10479
else
10480
  if ${lt_cv_aix_libpath_+:} false; then :
10481
  $as_echo_n "(cached) " >&6
10482
else
10483
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
10484
/* end confdefs.h.  */
10485
10486
int
10487
main ()
10488
{
10489
10490
  ;
10491
  return 0;
10492
}
10493
_ACEOF
10494
if ac_fn_c_try_link "$LINENO"; then :
10495
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10496
  lt_aix_libpath_sed='
10497
      /Import File Strings/,/^$/ {
10498
	  /^0/ {
10499
	      s/^0  *\([^ ]*\) *$/\1/
10500
	      p
10501
	  }
10502
      }'
10503
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10504
  # Check for a 64-bit object if we didn't find anything.
10505
  if test -z "$lt_cv_aix_libpath_"; then
10506
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10507
  fi
2 by Jonathan Riddell
Run autogen.sh before upload
10508
fi
10509
rm -f core conftest.err conftest.$ac_objext \
10510
    conftest$ac_exeext conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10511
  if test -z "$lt_cv_aix_libpath_"; then
10512
    lt_cv_aix_libpath_="/usr/lib:/lib"
10513
  fi
10514
10515
fi
10516
10517
  aix_libpath=$lt_cv_aix_libpath_
10518
fi
2 by Jonathan Riddell
Run autogen.sh before upload
10519
10520
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10521
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2 by Jonathan Riddell
Run autogen.sh before upload
10522
      else
10523
	if test "$host_cpu" = ia64; then
10524
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10525
	  allow_undefined_flag="-z nodefs"
10526
	  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"
10527
	else
10528
	 # Determine the default libpath from the value encoded in an
10529
	 # empty executable.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10530
	 if test "${lt_cv_aix_libpath+set}" = set; then
10531
  aix_libpath=$lt_cv_aix_libpath
10532
else
10533
  if ${lt_cv_aix_libpath_+:} false; then :
10534
  $as_echo_n "(cached) " >&6
10535
else
10536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
10537
/* end confdefs.h.  */
10538
10539
int
10540
main ()
10541
{
10542
10543
  ;
10544
  return 0;
10545
}
10546
_ACEOF
10547
if ac_fn_c_try_link "$LINENO"; then :
10548
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10549
  lt_aix_libpath_sed='
10550
      /Import File Strings/,/^$/ {
10551
	  /^0/ {
10552
	      s/^0  *\([^ ]*\) *$/\1/
10553
	      p
10554
	  }
10555
      }'
10556
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10557
  # Check for a 64-bit object if we didn't find anything.
10558
  if test -z "$lt_cv_aix_libpath_"; then
10559
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10560
  fi
2 by Jonathan Riddell
Run autogen.sh before upload
10561
fi
10562
rm -f core conftest.err conftest.$ac_objext \
10563
    conftest$ac_exeext conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10564
  if test -z "$lt_cv_aix_libpath_"; then
10565
    lt_cv_aix_libpath_="/usr/lib:/lib"
10566
  fi
10567
10568
fi
10569
10570
  aix_libpath=$lt_cv_aix_libpath_
10571
fi
2 by Jonathan Riddell
Run autogen.sh before upload
10572
10573
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10574
	  # Warning - without using the other run time loading flags,
10575
	  # -berok will link without error, but may produce a broken library.
10576
	  no_undefined_flag=' ${wl}-bernotok'
10577
	  allow_undefined_flag=' ${wl}-berok'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10578
	  if test "$with_gnu_ld" = yes; then
10579
	    # We only use this code for GNU lds that support --whole-archive.
10580
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10581
	  else
10582
	    # Exported symbols can be pulled into shared objects from archives
10583
	    whole_archive_flag_spec='$convenience'
10584
	  fi
2 by Jonathan Riddell
Run autogen.sh before upload
10585
	  archive_cmds_need_lc=yes
10586
	  # This is similar to how AIX traditionally builds its shared libraries.
10587
	  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'
10588
	fi
10589
      fi
10590
      ;;
10591
10592
    amigaos*)
10593
      case $host_cpu in
10594
      powerpc)
10595
            # see comment about AmigaOS4 .so support
10596
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10597
            archive_expsym_cmds=''
10598
        ;;
10599
      m68k)
10600
            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)'
10601
            hardcode_libdir_flag_spec='-L$libdir'
10602
            hardcode_minus_L=yes
10603
        ;;
10604
      esac
10605
      ;;
10606
10607
    bsdi[45]*)
10608
      export_dynamic_flag_spec=-rdynamic
10609
      ;;
10610
10611
    cygwin* | mingw* | pw32* | cegcc*)
10612
      # When not using gcc, we currently assume that we are using
10613
      # Microsoft Visual C++.
10614
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10615
      # no search path for DLLs.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10616
      case $cc_basename in
10617
      cl*)
10618
	# Native MSVC
10619
	hardcode_libdir_flag_spec=' '
10620
	allow_undefined_flag=unsupported
10621
	always_export_symbols=yes
10622
	file_list_spec='@'
10623
	# Tell ltmain to make .lib files, not .a files.
10624
	libext=lib
10625
	# Tell ltmain to make .dll files, not .so files.
10626
	shrext_cmds=".dll"
10627
	# FIXME: Setting linknames here is a bad hack.
10628
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10629
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10630
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10631
	  else
10632
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10633
	  fi~
10634
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10635
	  linknames='
10636
	# The linker will not automatically build a static lib if we build a DLL.
10637
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10638
	enable_shared_with_static_runtimes=yes
1.1.56 by Ken VanDine
Import upstream version 0.5.90
10639
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10640
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10641
	# Don't use ranlib
10642
	old_postinstall_cmds='chmod 644 $oldlib'
10643
	postlink_cmds='lt_outputfile="@OUTPUT@"~
10644
	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10645
	  case $lt_outputfile in
10646
	    *.exe|*.EXE) ;;
10647
	    *)
10648
	      lt_outputfile="$lt_outputfile.exe"
10649
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10650
	      ;;
10651
	  esac~
10652
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10653
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10654
	    $RM "$lt_outputfile.manifest";
10655
	  fi'
10656
	;;
10657
      *)
10658
	# Assume MSVC wrapper
10659
	hardcode_libdir_flag_spec=' '
10660
	allow_undefined_flag=unsupported
10661
	# Tell ltmain to make .lib files, not .a files.
10662
	libext=lib
10663
	# Tell ltmain to make .dll files, not .so files.
10664
	shrext_cmds=".dll"
10665
	# FIXME: Setting linknames here is a bad hack.
10666
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10667
	# The linker will automatically build a .lib file if we build a DLL.
10668
	old_archive_from_new_cmds='true'
10669
	# FIXME: Should let the user specify the lib program.
10670
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10671
	enable_shared_with_static_runtimes=yes
10672
	;;
10673
      esac
2 by Jonathan Riddell
Run autogen.sh before upload
10674
      ;;
10675
10676
    darwin* | rhapsody*)
10677
10678
10679
  archive_cmds_need_lc=no
10680
  hardcode_direct=no
10681
  hardcode_automatic=yes
10682
  hardcode_shlibpath_var=unsupported
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10683
  if test "$lt_cv_ld_force_load" = "yes"; then
10684
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.1.56 by Ken VanDine
Import upstream version 0.5.90
10685
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10686
  else
10687
    whole_archive_flag_spec=''
10688
  fi
2 by Jonathan Riddell
Run autogen.sh before upload
10689
  link_all_deplibs=yes
10690
  allow_undefined_flag="$_lt_dar_allow_undefined"
10691
  case $cc_basename in
10692
     ifort*) _lt_dar_can_shared=yes ;;
10693
     *) _lt_dar_can_shared=$GCC ;;
10694
  esac
10695
  if test "$_lt_dar_can_shared" = "yes"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10696
    output_verbose_link_cmd=func_echo_all
2 by Jonathan Riddell
Run autogen.sh before upload
10697
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10698
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10699
    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}"
10700
    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}"
10701
10702
  else
10703
  ld_shlibs=no
10704
  fi
10705
10706
      ;;
10707
10708
    dgux*)
10709
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710
      hardcode_libdir_flag_spec='-L$libdir'
10711
      hardcode_shlibpath_var=no
10712
      ;;
10713
10714
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10715
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10716
    # does not break anything, and helps significantly (at the cost of a little
10717
    # extra space).
10718
    freebsd2.2*)
10719
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10720
      hardcode_libdir_flag_spec='-R$libdir'
10721
      hardcode_direct=yes
10722
      hardcode_shlibpath_var=no
10723
      ;;
10724
10725
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.56 by Ken VanDine
Import upstream version 0.5.90
10726
    freebsd2.*)
2 by Jonathan Riddell
Run autogen.sh before upload
10727
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10728
      hardcode_direct=yes
10729
      hardcode_minus_L=yes
10730
      hardcode_shlibpath_var=no
10731
      ;;
10732
10733
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10734
    freebsd* | dragonfly*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10735
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2 by Jonathan Riddell
Run autogen.sh before upload
10736
      hardcode_libdir_flag_spec='-R$libdir'
10737
      hardcode_direct=yes
10738
      hardcode_shlibpath_var=no
10739
      ;;
10740
10741
    hpux9*)
10742
      if test "$GCC" = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10743
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10744
      else
10745
	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'
10746
      fi
10747
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10748
      hardcode_libdir_separator=:
10749
      hardcode_direct=yes
10750
10751
      # hardcode_minus_L: Not really in the search PATH,
10752
      # but as the default location of the library.
10753
      hardcode_minus_L=yes
10754
      export_dynamic_flag_spec='${wl}-E'
10755
      ;;
10756
10757
    hpux10*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10758
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10759
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2 by Jonathan Riddell
Run autogen.sh before upload
10760
      else
10761
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10762
      fi
10763
      if test "$with_gnu_ld" = no; then
10764
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10765
	hardcode_libdir_separator=:
10766
	hardcode_direct=yes
10767
	hardcode_direct_absolute=yes
10768
	export_dynamic_flag_spec='${wl}-E'
10769
	# hardcode_minus_L: Not really in the search PATH,
10770
	# but as the default location of the library.
10771
	hardcode_minus_L=yes
10772
      fi
10773
      ;;
10774
10775
    hpux11*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10776
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
2 by Jonathan Riddell
Run autogen.sh before upload
10777
	case $host_cpu in
10778
	hppa*64*)
10779
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10780
	  ;;
10781
	ia64*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10782
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2 by Jonathan Riddell
Run autogen.sh before upload
10783
	  ;;
10784
	*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10785
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2 by Jonathan Riddell
Run autogen.sh before upload
10786
	  ;;
10787
	esac
10788
      else
10789
	case $host_cpu in
10790
	hppa*64*)
10791
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10792
	  ;;
10793
	ia64*)
10794
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10795
	  ;;
10796
	*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10797
10798
	  # Older versions of the 11.00 compiler do not understand -b yet
10799
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10800
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10801
$as_echo_n "checking if $CC understands -b... " >&6; }
10802
if ${lt_cv_prog_compiler__b+:} false; then :
10803
  $as_echo_n "(cached) " >&6
10804
else
10805
  lt_cv_prog_compiler__b=no
10806
   save_LDFLAGS="$LDFLAGS"
10807
   LDFLAGS="$LDFLAGS -b"
10808
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10809
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10810
     # The linker can only warn and ignore the option if not recognized
10811
     # So say no if there are warnings
10812
     if test -s conftest.err; then
10813
       # Append any errors to the config.log.
10814
       cat conftest.err 1>&5
10815
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10816
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10817
       if diff conftest.exp conftest.er2 >/dev/null; then
10818
         lt_cv_prog_compiler__b=yes
10819
       fi
10820
     else
10821
       lt_cv_prog_compiler__b=yes
10822
     fi
10823
   fi
10824
   $RM -r conftest*
10825
   LDFLAGS="$save_LDFLAGS"
10826
10827
fi
10828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10829
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10830
10831
if test x"$lt_cv_prog_compiler__b" = xyes; then
10832
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10833
else
10834
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10835
fi
10836
2 by Jonathan Riddell
Run autogen.sh before upload
10837
	  ;;
10838
	esac
10839
      fi
10840
      if test "$with_gnu_ld" = no; then
10841
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10842
	hardcode_libdir_separator=:
10843
10844
	case $host_cpu in
10845
	hppa*64*|ia64*)
10846
	  hardcode_direct=no
10847
	  hardcode_shlibpath_var=no
10848
	  ;;
10849
	*)
10850
	  hardcode_direct=yes
10851
	  hardcode_direct_absolute=yes
10852
	  export_dynamic_flag_spec='${wl}-E'
10853
10854
	  # hardcode_minus_L: Not really in the search PATH,
10855
	  # but as the default location of the library.
10856
	  hardcode_minus_L=yes
10857
	  ;;
10858
	esac
10859
      fi
10860
      ;;
10861
10862
    irix5* | irix6* | nonstopux*)
10863
      if test "$GCC" = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10864
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10865
	# Try to use the -exported_symbol ld option, if it does not
10866
	# work, assume that -exports_file does not work either and
10867
	# implicitly export all symbols.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10868
	# This should be the same for all languages, so no per-tag cache variable.
10869
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10870
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10871
if ${lt_cv_irix_exported_symbol+:} false; then :
10872
  $as_echo_n "(cached) " >&6
10873
else
10874
  save_LDFLAGS="$LDFLAGS"
10875
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10876
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
10877
/* end confdefs.h.  */
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10878
int foo (void) { return 0; }
2 by Jonathan Riddell
Run autogen.sh before upload
10879
_ACEOF
10880
if ac_fn_c_try_link "$LINENO"; then :
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10881
  lt_cv_irix_exported_symbol=yes
10882
else
10883
  lt_cv_irix_exported_symbol=no
2 by Jonathan Riddell
Run autogen.sh before upload
10884
fi
10885
rm -f core conftest.err conftest.$ac_objext \
10886
    conftest$ac_exeext conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10887
           LDFLAGS="$save_LDFLAGS"
10888
fi
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10890
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10891
	if test "$lt_cv_irix_exported_symbol" = yes; then
10892
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10893
	fi
2 by Jonathan Riddell
Run autogen.sh before upload
10894
      else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10895
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10896
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10897
      fi
10898
      archive_cmds_need_lc='no'
10899
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10900
      hardcode_libdir_separator=:
10901
      inherit_rpath=yes
10902
      link_all_deplibs=yes
10903
      ;;
10904
10905
    netbsd* | netbsdelf*-gnu)
10906
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10907
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10908
      else
10909
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10910
      fi
10911
      hardcode_libdir_flag_spec='-R$libdir'
10912
      hardcode_direct=yes
10913
      hardcode_shlibpath_var=no
10914
      ;;
10915
10916
    newsos6)
10917
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918
      hardcode_direct=yes
10919
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10920
      hardcode_libdir_separator=:
10921
      hardcode_shlibpath_var=no
10922
      ;;
10923
10924
    *nto* | *qnx*)
10925
      ;;
10926
10927
    openbsd*)
10928
      if test -f /usr/libexec/ld.so; then
10929
	hardcode_direct=yes
10930
	hardcode_shlibpath_var=no
10931
	hardcode_direct_absolute=yes
10932
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10933
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10934
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10935
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10936
	  export_dynamic_flag_spec='${wl}-E'
10937
	else
10938
	  case $host_os in
10939
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10940
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10941
	     hardcode_libdir_flag_spec='-R$libdir'
10942
	     ;;
10943
	   *)
10944
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10945
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10946
	     ;;
10947
	  esac
10948
	fi
10949
      else
10950
	ld_shlibs=no
10951
      fi
10952
      ;;
10953
10954
    os2*)
10955
      hardcode_libdir_flag_spec='-L$libdir'
10956
      hardcode_minus_L=yes
10957
      allow_undefined_flag=unsupported
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10958
      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'
2 by Jonathan Riddell
Run autogen.sh before upload
10959
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10960
      ;;
10961
10962
    osf3*)
10963
      if test "$GCC" = yes; then
10964
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10965
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10966
      else
10967
	allow_undefined_flag=' -expect_unresolved \*'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10968
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10969
      fi
10970
      archive_cmds_need_lc='no'
10971
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10972
      hardcode_libdir_separator=:
10973
      ;;
10974
10975
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10976
      if test "$GCC" = yes; then
10977
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10978
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10979
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10980
      else
10981
	allow_undefined_flag=' -expect_unresolved \*'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10982
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2 by Jonathan Riddell
Run autogen.sh before upload
10983
	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~
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10984
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
2 by Jonathan Riddell
Run autogen.sh before upload
10985
10986
	# Both c and cxx compiler support -rpath directly
10987
	hardcode_libdir_flag_spec='-rpath $libdir'
10988
      fi
10989
      archive_cmds_need_lc='no'
10990
      hardcode_libdir_separator=:
10991
      ;;
10992
10993
    solaris*)
10994
      no_undefined_flag=' -z defs'
10995
      if test "$GCC" = yes; then
10996
	wlarc='${wl}'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10997
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2 by Jonathan Riddell
Run autogen.sh before upload
10998
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.50 by Ken VanDine
Import upstream version 0.4.90
10999
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
2 by Jonathan Riddell
Run autogen.sh before upload
11000
      else
11001
	case `$CC -V 2>&1` in
11002
	*"Compilers 5.0"*)
11003
	  wlarc=''
11004
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11005
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11006
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11007
	  ;;
11008
	*)
11009
	  wlarc='${wl}'
11010
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11011
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11012
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11013
	  ;;
11014
	esac
11015
      fi
11016
      hardcode_libdir_flag_spec='-R$libdir'
11017
      hardcode_shlibpath_var=no
11018
      case $host_os in
11019
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11020
      *)
11021
	# The compiler driver will combine and reorder linker options,
11022
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11023
	# but is careful enough not to reorder.
11024
	# Supported since Solaris 2.6 (maybe 2.5.1?)
11025
	if test "$GCC" = yes; then
11026
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11027
	else
11028
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11029
	fi
11030
	;;
11031
      esac
11032
      link_all_deplibs=yes
11033
      ;;
11034
11035
    sunos4*)
11036
      if test "x$host_vendor" = xsequent; then
11037
	# Use $CC to link under sequent, because it throws in some extra .o
11038
	# files that make .init and .fini sections work.
11039
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11040
      else
11041
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11042
      fi
11043
      hardcode_libdir_flag_spec='-L$libdir'
11044
      hardcode_direct=yes
11045
      hardcode_minus_L=yes
11046
      hardcode_shlibpath_var=no
11047
      ;;
11048
11049
    sysv4)
11050
      case $host_vendor in
11051
	sni)
11052
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053
	  hardcode_direct=yes # is this really true???
11054
	;;
11055
	siemens)
11056
	  ## LD is ld it makes a PLAMLIB
11057
	  ## CC just makes a GrossModule.
11058
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11059
	  reload_cmds='$CC -r -o $output$reload_objs'
11060
	  hardcode_direct=no
11061
        ;;
11062
	motorola)
11063
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11065
	;;
11066
      esac
11067
      runpath_var='LD_RUN_PATH'
11068
      hardcode_shlibpath_var=no
11069
      ;;
11070
11071
    sysv4.3*)
11072
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073
      hardcode_shlibpath_var=no
11074
      export_dynamic_flag_spec='-Bexport'
11075
      ;;
11076
11077
    sysv4*MP*)
11078
      if test -d /usr/nec; then
11079
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080
	hardcode_shlibpath_var=no
11081
	runpath_var=LD_RUN_PATH
11082
	hardcode_runpath_var=yes
11083
	ld_shlibs=yes
11084
      fi
11085
      ;;
11086
11087
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11088
      no_undefined_flag='${wl}-z,text'
11089
      archive_cmds_need_lc=no
11090
      hardcode_shlibpath_var=no
11091
      runpath_var='LD_RUN_PATH'
11092
11093
      if test "$GCC" = yes; then
11094
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096
      else
11097
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099
      fi
11100
      ;;
11101
11102
    sysv5* | sco3.2v5* | sco5v6*)
11103
      # Note: We can NOT use -z defs as we might desire, because we do not
11104
      # link with -lc, and that would cause any symbols used from libc to
11105
      # always be unresolved, which means just about no library would
11106
      # ever link correctly.  If we're not using GNU ld we use -z text
11107
      # though, which does catch some bad symbols but isn't as heavy-handed
11108
      # as -z defs.
11109
      no_undefined_flag='${wl}-z,text'
11110
      allow_undefined_flag='${wl}-z,nodefs'
11111
      archive_cmds_need_lc=no
11112
      hardcode_shlibpath_var=no
11113
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11114
      hardcode_libdir_separator=':'
11115
      link_all_deplibs=yes
11116
      export_dynamic_flag_spec='${wl}-Bexport'
11117
      runpath_var='LD_RUN_PATH'
11118
11119
      if test "$GCC" = yes; then
11120
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122
      else
11123
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125
      fi
11126
      ;;
11127
11128
    uts4*)
11129
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130
      hardcode_libdir_flag_spec='-L$libdir'
11131
      hardcode_shlibpath_var=no
11132
      ;;
11133
11134
    *)
11135
      ld_shlibs=no
11136
      ;;
11137
    esac
11138
11139
    if test x$host_vendor = xsni; then
11140
      case $host in
11141
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11142
	export_dynamic_flag_spec='${wl}-Blargedynsym'
11143
	;;
11144
      esac
11145
    fi
11146
  fi
11147
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11149
$as_echo "$ld_shlibs" >&6; }
11150
test "$ld_shlibs" = no && can_build_shared=no
11151
11152
with_gnu_ld=$with_gnu_ld
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
#
11169
# Do we need to explicitly link libc?
11170
#
11171
case "x$archive_cmds_need_lc" in
11172
x|xyes)
11173
  # Assume -lc should be added
11174
  archive_cmds_need_lc=yes
11175
11176
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11177
    case $archive_cmds in
11178
    *'~'*)
11179
      # FIXME: we may have to deal with multi-command sequences.
11180
      ;;
11181
    '$CC '*)
11182
      # Test whether the compiler implicitly links with -lc since on some
11183
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11184
      # to ld, don't add -lc before -lgcc.
11185
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11186
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11187
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11188
  $as_echo_n "(cached) " >&6
11189
else
11190
  $RM conftest*
11191
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
11192
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11193
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
11194
  (eval $ac_compile) 2>&5
11195
  ac_status=$?
11196
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197
  test $ac_status = 0; } 2>conftest.err; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11198
	  soname=conftest
11199
	  lib=conftest
11200
	  libobjs=conftest.$ac_objext
11201
	  deplibs=
11202
	  wl=$lt_prog_compiler_wl
11203
	  pic_flag=$lt_prog_compiler_pic
11204
	  compiler_flags=-v
11205
	  linker_flags=-v
11206
	  verstring=
11207
	  output_objdir=.
11208
	  libname=conftest
11209
	  lt_save_allow_undefined_flag=$allow_undefined_flag
11210
	  allow_undefined_flag=
11211
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
11212
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11213
  ac_status=$?
11214
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215
  test $ac_status = 0; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11216
	  then
11217
	    lt_cv_archive_cmds_need_lc=no
11218
	  else
11219
	    lt_cv_archive_cmds_need_lc=yes
11220
	  fi
11221
	  allow_undefined_flag=$lt_save_allow_undefined_flag
11222
	else
11223
	  cat conftest.err 1>&5
11224
	fi
11225
	$RM conftest*
11226
11227
fi
11228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11229
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11230
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
2 by Jonathan Riddell
Run autogen.sh before upload
11231
      ;;
11232
    esac
11233
  fi
11234
  ;;
11235
esac
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11389
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11390
11391
if test "$GCC" = yes; then
11392
  case $host_os in
11393
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11394
    *) lt_awk_arg="/^libraries:/" ;;
11395
  esac
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11396
  case $host_os in
11397
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11398
    *) lt_sed_strip_eq="s,=/,/,g" ;;
11399
  esac
11400
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11401
  case $lt_search_path_spec in
11402
  *\;*)
2 by Jonathan Riddell
Run autogen.sh before upload
11403
    # if the path contains ";" then we assume it to be the separator
11404
    # otherwise default to the standard path separator (i.e. ":") - it is
11405
    # assumed that no part of a normal pathname contains ";" but that should
11406
    # okay in the real world where ";" in dirpaths is itself problematic.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11407
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11408
    ;;
11409
  *)
11410
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11411
    ;;
11412
  esac
2 by Jonathan Riddell
Run autogen.sh before upload
11413
  # Ok, now we have the path, separated by spaces, we can step through it
11414
  # and add multilib dir if necessary.
11415
  lt_tmp_lt_search_path_spec=
11416
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11417
  for lt_sys_path in $lt_search_path_spec; do
11418
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11419
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11420
    else
11421
      test -d "$lt_sys_path" && \
11422
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11423
    fi
11424
  done
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11425
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2 by Jonathan Riddell
Run autogen.sh before upload
11426
BEGIN {RS=" "; FS="/|\n";} {
11427
  lt_foo="";
11428
  lt_count=0;
11429
  for (lt_i = NF; lt_i > 0; lt_i--) {
11430
    if ($lt_i != "" && $lt_i != ".") {
11431
      if ($lt_i == "..") {
11432
        lt_count++;
11433
      } else {
11434
        if (lt_count == 0) {
11435
          lt_foo="/" $lt_i lt_foo;
11436
        } else {
11437
          lt_count--;
11438
        }
11439
      }
11440
    }
11441
  }
11442
  if (lt_foo != "") { lt_freq[lt_foo]++; }
11443
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11444
}'`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11445
  # AWK program above erroneously prepends '/' to C:/dos/paths
11446
  # for these hosts.
11447
  case $host_os in
11448
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11449
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11450
  esac
11451
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2 by Jonathan Riddell
Run autogen.sh before upload
11452
else
11453
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11454
fi
11455
library_names_spec=
11456
libname_spec='lib$name'
11457
soname_spec=
11458
shrext_cmds=".so"
11459
postinstall_cmds=
11460
postuninstall_cmds=
11461
finish_cmds=
11462
finish_eval=
11463
shlibpath_var=
11464
shlibpath_overrides_runpath=unknown
11465
version_type=none
11466
dynamic_linker="$host_os ld.so"
11467
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11468
need_lib_prefix=unknown
11469
hardcode_into_libs=no
11470
11471
# when you set need_version to no, make sure it does not cause -set_version
11472
# flags to be left without arguments
11473
need_version=unknown
11474
11475
case $host_os in
11476
aix3*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11477
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11478
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11479
  shlibpath_var=LIBPATH
11480
11481
  # AIX 3 has no versioning support, so we append a major version to the name.
11482
  soname_spec='${libname}${release}${shared_ext}$major'
11483
  ;;
11484
11485
aix[4-9]*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11486
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11487
  need_lib_prefix=no
11488
  need_version=no
11489
  hardcode_into_libs=yes
11490
  if test "$host_cpu" = ia64; then
11491
    # AIX 5 supports IA64
11492
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11493
    shlibpath_var=LD_LIBRARY_PATH
11494
  else
11495
    # With GCC up to 2.95.x, collect2 would create an import file
11496
    # for dependence libraries.  The import file would start with
11497
    # the line `#! .'.  This would cause the generated library to
11498
    # depend on `.', always an invalid library.  This was fixed in
11499
    # development snapshots of GCC prior to 3.0.
11500
    case $host_os in
11501
      aix4 | aix4.[01] | aix4.[01].*)
11502
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11503
	   echo ' yes '
11504
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11505
	:
11506
      else
11507
	can_build_shared=no
11508
      fi
11509
      ;;
11510
    esac
11511
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11512
    # soname into executable. Probably we can add versioning support to
11513
    # collect2, so additional links can be useful in future.
11514
    if test "$aix_use_runtimelinking" = yes; then
11515
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11516
      # instead of lib<name>.a to let people know that these are not
11517
      # typical AIX shared libraries.
11518
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519
    else
11520
      # We preserve .a as extension for shared libraries through AIX4.2
11521
      # and later when we are not doing run time linking.
11522
      library_names_spec='${libname}${release}.a $libname.a'
11523
      soname_spec='${libname}${release}${shared_ext}$major'
11524
    fi
11525
    shlibpath_var=LIBPATH
11526
  fi
11527
  ;;
11528
11529
amigaos*)
11530
  case $host_cpu in
11531
  powerpc)
11532
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11533
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11534
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535
    ;;
11536
  m68k)
11537
    library_names_spec='$libname.ixlibrary $libname.a'
11538
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11539
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2 by Jonathan Riddell
Run autogen.sh before upload
11540
    ;;
11541
  esac
11542
  ;;
11543
11544
beos*)
11545
  library_names_spec='${libname}${shared_ext}'
11546
  dynamic_linker="$host_os ld.so"
11547
  shlibpath_var=LIBRARY_PATH
11548
  ;;
11549
11550
bsdi[45]*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11551
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11552
  need_version=no
11553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554
  soname_spec='${libname}${release}${shared_ext}$major'
11555
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11556
  shlibpath_var=LD_LIBRARY_PATH
11557
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11558
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11559
  # the default ld.so.conf also contains /usr/contrib/lib and
11560
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11561
  # libtool to hard-code these into programs
11562
  ;;
11563
11564
cygwin* | mingw* | pw32* | cegcc*)
11565
  version_type=windows
11566
  shrext_cmds=".dll"
11567
  need_version=no
11568
  need_lib_prefix=no
11569
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11570
  case $GCC,$cc_basename in
11571
  yes,*)
11572
    # gcc
2 by Jonathan Riddell
Run autogen.sh before upload
11573
    library_names_spec='$libname.dll.a'
11574
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11575
    postinstall_cmds='base_file=`basename \${file}`~
11576
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11577
      dldir=$destdir/`dirname \$dlpath`~
11578
      test -d \$dldir || mkdir -p \$dldir~
11579
      $install_prog $dir/$dlname \$dldir/$dlname~
11580
      chmod a+x \$dldir/$dlname~
11581
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11582
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11583
      fi'
11584
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11585
      dlpath=$dir/\$dldll~
11586
       $RM \$dlpath'
11587
    shlibpath_overrides_runpath=yes
11588
11589
    case $host_os in
11590
    cygwin*)
11591
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11592
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11593
11594
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
2 by Jonathan Riddell
Run autogen.sh before upload
11595
      ;;
11596
    mingw* | cegcc*)
11597
      # MinGW DLLs use traditional 'lib' prefix
11598
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11599
      ;;
11600
    pw32*)
11601
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11602
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11603
      ;;
11604
    esac
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11605
    dynamic_linker='Win32 ld.exe'
11606
    ;;
11607
11608
  *,cl*)
11609
    # Native MSVC
11610
    libname_spec='$name'
11611
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11612
    library_names_spec='${libname}.dll.lib'
11613
11614
    case $build_os in
11615
    mingw*)
11616
      sys_lib_search_path_spec=
11617
      lt_save_ifs=$IFS
11618
      IFS=';'
11619
      for lt_path in $LIB
11620
      do
11621
        IFS=$lt_save_ifs
11622
        # Let DOS variable expansion print the short 8.3 style file name.
11623
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11624
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11625
      done
11626
      IFS=$lt_save_ifs
11627
      # Convert to MSYS style.
11628
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11629
      ;;
11630
    cygwin*)
11631
      # Convert to unix form, then to dos form, then back to unix form
11632
      # but this time dos style (no spaces!) so that the unix form looks
11633
      # like /cygdrive/c/PROGRA~1:/cygdr...
11634
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11635
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11636
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11637
      ;;
11638
    *)
11639
      sys_lib_search_path_spec="$LIB"
11640
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11641
        # It is most probably a Windows format PATH.
11642
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11643
      else
11644
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11645
      fi
11646
      # FIXME: find the short name or the path components, as spaces are
11647
      # common. (e.g. "Program Files" -> "PROGRA~1")
11648
      ;;
11649
    esac
11650
11651
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11652
    postinstall_cmds='base_file=`basename \${file}`~
11653
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11654
      dldir=$destdir/`dirname \$dlpath`~
11655
      test -d \$dldir || mkdir -p \$dldir~
11656
      $install_prog $dir/$dlname \$dldir/$dlname'
11657
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11658
      dlpath=$dir/\$dldll~
11659
       $RM \$dlpath'
11660
    shlibpath_overrides_runpath=yes
11661
    dynamic_linker='Win32 link.exe'
2 by Jonathan Riddell
Run autogen.sh before upload
11662
    ;;
11663
11664
  *)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11665
    # Assume MSVC wrapper
2 by Jonathan Riddell
Run autogen.sh before upload
11666
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11667
    dynamic_linker='Win32 ld.exe'
2 by Jonathan Riddell
Run autogen.sh before upload
11668
    ;;
11669
  esac
11670
  # FIXME: first we should search . and the directory the executable is in
11671
  shlibpath_var=PATH
11672
  ;;
11673
11674
darwin* | rhapsody*)
11675
  dynamic_linker="$host_os dyld"
11676
  version_type=darwin
11677
  need_lib_prefix=no
11678
  need_version=no
11679
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11680
  soname_spec='${libname}${release}${major}$shared_ext'
11681
  shlibpath_overrides_runpath=yes
11682
  shlibpath_var=DYLD_LIBRARY_PATH
11683
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11684
11685
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11686
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11687
  ;;
11688
11689
dgux*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11690
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11691
  need_lib_prefix=no
11692
  need_version=no
11693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11694
  soname_spec='${libname}${release}${shared_ext}$major'
11695
  shlibpath_var=LD_LIBRARY_PATH
11696
  ;;
11697
11698
freebsd* | dragonfly*)
11699
  # DragonFly does not have aout.  When/if they implement a new
11700
  # versioning mechanism, adjust this.
11701
  if test -x /usr/bin/objformat; then
11702
    objformat=`/usr/bin/objformat`
11703
  else
11704
    case $host_os in
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11705
    freebsd[23].*) objformat=aout ;;
2 by Jonathan Riddell
Run autogen.sh before upload
11706
    *) objformat=elf ;;
11707
    esac
11708
  fi
11709
  version_type=freebsd-$objformat
11710
  case $version_type in
11711
    freebsd-elf*)
11712
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11713
      need_version=no
11714
      need_lib_prefix=no
11715
      ;;
11716
    freebsd-*)
11717
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11718
      need_version=yes
11719
      ;;
11720
  esac
11721
  shlibpath_var=LD_LIBRARY_PATH
11722
  case $host_os in
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11723
  freebsd2.*)
2 by Jonathan Riddell
Run autogen.sh before upload
11724
    shlibpath_overrides_runpath=yes
11725
    ;;
11726
  freebsd3.[01]* | freebsdelf3.[01]*)
11727
    shlibpath_overrides_runpath=yes
11728
    hardcode_into_libs=yes
11729
    ;;
11730
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11731
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11732
    shlibpath_overrides_runpath=no
11733
    hardcode_into_libs=yes
11734
    ;;
11735
  *) # from 4.6 on, and DragonFly
11736
    shlibpath_overrides_runpath=yes
11737
    hardcode_into_libs=yes
11738
    ;;
11739
  esac
11740
  ;;
11741
11742
gnu*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11743
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11744
  need_lib_prefix=no
11745
  need_version=no
11746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11747
  soname_spec='${libname}${release}${shared_ext}$major'
11748
  shlibpath_var=LD_LIBRARY_PATH
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11749
  shlibpath_overrides_runpath=no
11750
  hardcode_into_libs=yes
11751
  ;;
11752
11753
haiku*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11754
  version_type=linux # correct to gnu/linux during the next big refactor
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11755
  need_lib_prefix=no
11756
  need_version=no
11757
  dynamic_linker="$host_os runtime_loader"
11758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11759
  soname_spec='${libname}${release}${shared_ext}$major'
11760
  shlibpath_var=LIBRARY_PATH
11761
  shlibpath_overrides_runpath=yes
11762
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2 by Jonathan Riddell
Run autogen.sh before upload
11763
  hardcode_into_libs=yes
11764
  ;;
11765
11766
hpux9* | hpux10* | hpux11*)
11767
  # Give a soname corresponding to the major version so that dld.sl refuses to
11768
  # link against other versions.
11769
  version_type=sunos
11770
  need_lib_prefix=no
11771
  need_version=no
11772
  case $host_cpu in
11773
  ia64*)
11774
    shrext_cmds='.so'
11775
    hardcode_into_libs=yes
11776
    dynamic_linker="$host_os dld.so"
11777
    shlibpath_var=LD_LIBRARY_PATH
11778
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11779
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780
    soname_spec='${libname}${release}${shared_ext}$major'
11781
    if test "X$HPUX_IA64_MODE" = X32; then
11782
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11783
    else
11784
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11785
    fi
11786
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11787
    ;;
11788
  hppa*64*)
11789
    shrext_cmds='.sl'
11790
    hardcode_into_libs=yes
11791
    dynamic_linker="$host_os dld.sl"
11792
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11793
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11794
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795
    soname_spec='${libname}${release}${shared_ext}$major'
11796
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11797
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11798
    ;;
11799
  *)
11800
    shrext_cmds='.sl'
11801
    dynamic_linker="$host_os dld.sl"
11802
    shlibpath_var=SHLIB_PATH
11803
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11804
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805
    soname_spec='${libname}${release}${shared_ext}$major'
11806
    ;;
11807
  esac
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11808
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2 by Jonathan Riddell
Run autogen.sh before upload
11809
  postinstall_cmds='chmod 555 $lib'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11810
  # or fails outright, so override atomically:
11811
  install_override_mode=555
2 by Jonathan Riddell
Run autogen.sh before upload
11812
  ;;
11813
11814
interix[3-9]*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11815
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11816
  need_lib_prefix=no
11817
  need_version=no
11818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11819
  soname_spec='${libname}${release}${shared_ext}$major'
11820
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11821
  shlibpath_var=LD_LIBRARY_PATH
11822
  shlibpath_overrides_runpath=no
11823
  hardcode_into_libs=yes
11824
  ;;
11825
11826
irix5* | irix6* | nonstopux*)
11827
  case $host_os in
11828
    nonstopux*) version_type=nonstopux ;;
11829
    *)
11830
	if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11831
		version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11832
	else
11833
		version_type=irix
11834
	fi ;;
11835
  esac
11836
  need_lib_prefix=no
11837
  need_version=no
11838
  soname_spec='${libname}${release}${shared_ext}$major'
11839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11840
  case $host_os in
11841
  irix5* | nonstopux*)
11842
    libsuff= shlibsuff=
11843
    ;;
11844
  *)
11845
    case $LD in # libtool.m4 will add one of these switches to LD
11846
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11847
      libsuff= shlibsuff= libmagic=32-bit;;
11848
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11849
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11850
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11851
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11852
    *) libsuff= shlibsuff= libmagic=never-match;;
11853
    esac
11854
    ;;
11855
  esac
11856
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11857
  shlibpath_overrides_runpath=no
11858
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11859
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11860
  hardcode_into_libs=yes
11861
  ;;
11862
11863
# No shared lib support for Linux oldld, aout, or coff.
11864
linux*oldld* | linux*aout* | linux*coff*)
11865
  dynamic_linker=no
11866
  ;;
11867
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11868
# This must be glibc/ELF.
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
11869
linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11870
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11871
  need_lib_prefix=no
11872
  need_version=no
11873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874
  soname_spec='${libname}${release}${shared_ext}$major'
11875
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11876
  shlibpath_var=LD_LIBRARY_PATH
11877
  shlibpath_overrides_runpath=no
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11878
2 by Jonathan Riddell
Run autogen.sh before upload
11879
  # Some binutils ld are patched to set DT_RUNPATH
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11880
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11881
  $as_echo_n "(cached) " >&6
11882
else
11883
  lt_cv_shlibpath_overrides_runpath=no
11884
    save_LDFLAGS=$LDFLAGS
11885
    save_libdir=$libdir
11886
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11887
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11888
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2 by Jonathan Riddell
Run autogen.sh before upload
11889
/* end confdefs.h.  */
11890
11891
int
11892
main ()
11893
{
11894
11895
  ;
11896
  return 0;
11897
}
11898
_ACEOF
11899
if ac_fn_c_try_link "$LINENO"; then :
11900
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11901
  lt_cv_shlibpath_overrides_runpath=yes
2 by Jonathan Riddell
Run autogen.sh before upload
11902
fi
11903
fi
11904
rm -f core conftest.err conftest.$ac_objext \
11905
    conftest$ac_exeext conftest.$ac_ext
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11906
    LDFLAGS=$save_LDFLAGS
11907
    libdir=$save_libdir
11908
11909
fi
11910
11911
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2 by Jonathan Riddell
Run autogen.sh before upload
11912
11913
  # This implies no fast_install, which is unacceptable.
11914
  # Some rework will be needed to allow for fast_install
11915
  # before this can be enabled.
11916
  hardcode_into_libs=yes
11917
11918
  # Append ld.so.conf contents to the search path
11919
  if test -f /etc/ld.so.conf; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
11920
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2 by Jonathan Riddell
Run autogen.sh before upload
11921
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11922
  fi
11923
11924
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11925
  # powerpc, because MkLinux only supported shared libraries with the
11926
  # GNU dynamic linker.  Since this was broken with cross compilers,
11927
  # most powerpc-linux boxes support dynamic linking these days and
11928
  # people can always --disable-shared, the test was removed, and we
11929
  # assume the GNU/Linux dynamic linker is in use.
11930
  dynamic_linker='GNU/Linux ld.so'
11931
  ;;
11932
11933
netbsdelf*-gnu)
11934
  version_type=linux
11935
  need_lib_prefix=no
11936
  need_version=no
11937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11938
  soname_spec='${libname}${release}${shared_ext}$major'
11939
  shlibpath_var=LD_LIBRARY_PATH
11940
  shlibpath_overrides_runpath=no
11941
  hardcode_into_libs=yes
11942
  dynamic_linker='NetBSD ld.elf_so'
11943
  ;;
11944
11945
netbsd*)
11946
  version_type=sunos
11947
  need_lib_prefix=no
11948
  need_version=no
11949
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11950
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11951
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11952
    dynamic_linker='NetBSD (a.out) ld.so'
11953
  else
11954
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11955
    soname_spec='${libname}${release}${shared_ext}$major'
11956
    dynamic_linker='NetBSD ld.elf_so'
11957
  fi
11958
  shlibpath_var=LD_LIBRARY_PATH
11959
  shlibpath_overrides_runpath=yes
11960
  hardcode_into_libs=yes
11961
  ;;
11962
11963
newsos6)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
11964
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
11965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966
  shlibpath_var=LD_LIBRARY_PATH
11967
  shlibpath_overrides_runpath=yes
11968
  ;;
11969
11970
*nto* | *qnx*)
11971
  version_type=qnx
11972
  need_lib_prefix=no
11973
  need_version=no
11974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975
  soname_spec='${libname}${release}${shared_ext}$major'
11976
  shlibpath_var=LD_LIBRARY_PATH
11977
  shlibpath_overrides_runpath=no
11978
  hardcode_into_libs=yes
11979
  dynamic_linker='ldqnx.so'
11980
  ;;
11981
11982
openbsd*)
11983
  version_type=sunos
11984
  sys_lib_dlsearch_path_spec="/usr/lib"
11985
  need_lib_prefix=no
11986
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11987
  case $host_os in
11988
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11989
    *)				need_version=no  ;;
11990
  esac
11991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11992
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11993
  shlibpath_var=LD_LIBRARY_PATH
11994
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11995
    case $host_os in
11996
      openbsd2.[89] | openbsd2.[89].*)
11997
	shlibpath_overrides_runpath=no
11998
	;;
11999
      *)
12000
	shlibpath_overrides_runpath=yes
12001
	;;
12002
      esac
12003
  else
12004
    shlibpath_overrides_runpath=yes
12005
  fi
12006
  ;;
12007
12008
os2*)
12009
  libname_spec='$name'
12010
  shrext_cmds=".dll"
12011
  need_lib_prefix=no
12012
  library_names_spec='$libname${shared_ext} $libname.a'
12013
  dynamic_linker='OS/2 ld.exe'
12014
  shlibpath_var=LIBPATH
12015
  ;;
12016
12017
osf3* | osf4* | osf5*)
12018
  version_type=osf
12019
  need_lib_prefix=no
12020
  need_version=no
12021
  soname_spec='${libname}${release}${shared_ext}$major'
12022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023
  shlibpath_var=LD_LIBRARY_PATH
12024
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12025
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12026
  ;;
12027
12028
rdos*)
12029
  dynamic_linker=no
12030
  ;;
12031
12032
solaris*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12033
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
12034
  need_lib_prefix=no
12035
  need_version=no
12036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037
  soname_spec='${libname}${release}${shared_ext}$major'
12038
  shlibpath_var=LD_LIBRARY_PATH
12039
  shlibpath_overrides_runpath=yes
12040
  hardcode_into_libs=yes
12041
  # ldd complains unless libraries are executable
12042
  postinstall_cmds='chmod +x $lib'
12043
  ;;
12044
12045
sunos4*)
12046
  version_type=sunos
12047
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12048
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12049
  shlibpath_var=LD_LIBRARY_PATH
12050
  shlibpath_overrides_runpath=yes
12051
  if test "$with_gnu_ld" = yes; then
12052
    need_lib_prefix=no
12053
  fi
12054
  need_version=yes
12055
  ;;
12056
12057
sysv4 | sysv4.3*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12058
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
12059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060
  soname_spec='${libname}${release}${shared_ext}$major'
12061
  shlibpath_var=LD_LIBRARY_PATH
12062
  case $host_vendor in
12063
    sni)
12064
      shlibpath_overrides_runpath=no
12065
      need_lib_prefix=no
12066
      runpath_var=LD_RUN_PATH
12067
      ;;
12068
    siemens)
12069
      need_lib_prefix=no
12070
      ;;
12071
    motorola)
12072
      need_lib_prefix=no
12073
      need_version=no
12074
      shlibpath_overrides_runpath=no
12075
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12076
      ;;
12077
  esac
12078
  ;;
12079
12080
sysv4*MP*)
12081
  if test -d /usr/nec ;then
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12082
    version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
12083
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12084
    soname_spec='$libname${shared_ext}.$major'
12085
    shlibpath_var=LD_LIBRARY_PATH
12086
  fi
12087
  ;;
12088
12089
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12090
  version_type=freebsd-elf
12091
  need_lib_prefix=no
12092
  need_version=no
12093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12094
  soname_spec='${libname}${release}${shared_ext}$major'
12095
  shlibpath_var=LD_LIBRARY_PATH
12096
  shlibpath_overrides_runpath=yes
12097
  hardcode_into_libs=yes
12098
  if test "$with_gnu_ld" = yes; then
12099
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12100
  else
12101
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12102
    case $host_os in
12103
      sco3.2v5*)
12104
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12105
	;;
12106
    esac
12107
  fi
12108
  sys_lib_dlsearch_path_spec='/usr/lib'
12109
  ;;
12110
12111
tpf*)
12112
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12113
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
12114
  need_lib_prefix=no
12115
  need_version=no
12116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117
  shlibpath_var=LD_LIBRARY_PATH
12118
  shlibpath_overrides_runpath=no
12119
  hardcode_into_libs=yes
12120
  ;;
12121
12122
uts4*)
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12123
  version_type=linux # correct to gnu/linux during the next big refactor
2 by Jonathan Riddell
Run autogen.sh before upload
12124
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125
  soname_spec='${libname}${release}${shared_ext}$major'
12126
  shlibpath_var=LD_LIBRARY_PATH
12127
  ;;
12128
12129
*)
12130
  dynamic_linker=no
12131
  ;;
12132
esac
12133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12134
$as_echo "$dynamic_linker" >&6; }
12135
test "$dynamic_linker" = no && can_build_shared=no
12136
12137
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12138
if test "$GCC" = yes; then
12139
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12140
fi
12141
12142
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12143
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12144
fi
12145
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12146
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12147
fi
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12235
12236
12237
12238
12239
2 by Jonathan Riddell
Run autogen.sh before upload
12240
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12241
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12242
hardcode_action=
12243
if test -n "$hardcode_libdir_flag_spec" ||
12244
   test -n "$runpath_var" ||
12245
   test "X$hardcode_automatic" = "Xyes" ; then
12246
12247
  # We can hardcode non-existent directories.
12248
  if test "$hardcode_direct" != no &&
12249
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12250
     # have to relink, otherwise we might link with an installed library
12251
     # when we should be linking with a yet-to-be-installed one
12252
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12253
     test "$hardcode_minus_L" != no; then
12254
    # Linking always hardcodes the temporary library directory.
12255
    hardcode_action=relink
12256
  else
12257
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12258
    hardcode_action=immediate
12259
  fi
12260
else
12261
  # We cannot hardcode anything, or else we can only hardcode existing
12262
  # directories.
12263
  hardcode_action=unsupported
12264
fi
12265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12266
$as_echo "$hardcode_action" >&6; }
12267
12268
if test "$hardcode_action" = relink ||
12269
   test "$inherit_rpath" = yes; then
12270
  # Fast installation is not supported
12271
  enable_fast_install=no
12272
elif test "$shlibpath_overrides_runpath" = yes ||
12273
     test "$enable_shared" = no; then
12274
  # Fast installation is not necessary
12275
  enable_fast_install=needless
12276
fi
12277
12278
12279
12280
12281
12282
12283
  if test "x$enable_dlopen" != xyes; then
12284
  enable_dlopen=unknown
12285
  enable_dlopen_self=unknown
12286
  enable_dlopen_self_static=unknown
12287
else
12288
  lt_cv_dlopen=no
12289
  lt_cv_dlopen_libs=
12290
12291
  case $host_os in
12292
  beos*)
12293
    lt_cv_dlopen="load_add_on"
12294
    lt_cv_dlopen_libs=
12295
    lt_cv_dlopen_self=yes
12296
    ;;
12297
12298
  mingw* | pw32* | cegcc*)
12299
    lt_cv_dlopen="LoadLibrary"
12300
    lt_cv_dlopen_libs=
12301
    ;;
12302
12303
  cygwin*)
12304
    lt_cv_dlopen="dlopen"
12305
    lt_cv_dlopen_libs=
12306
    ;;
12307
12308
  darwin*)
12309
  # if libdl is installed we need to link against it
12310
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12311
$as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12312
if ${ac_cv_lib_dl_dlopen+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12313
  $as_echo_n "(cached) " >&6
12314
else
12315
  ac_check_lib_save_LIBS=$LIBS
12316
LIBS="-ldl  $LIBS"
12317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318
/* end confdefs.h.  */
12319
12320
/* Override any GCC internal prototype to avoid an error.
12321
   Use char because int might match the return type of a GCC
12322
   builtin and then its argument prototype would still apply.  */
12323
#ifdef __cplusplus
12324
extern "C"
12325
#endif
12326
char dlopen ();
12327
int
12328
main ()
12329
{
12330
return dlopen ();
12331
  ;
12332
  return 0;
12333
}
12334
_ACEOF
12335
if ac_fn_c_try_link "$LINENO"; then :
12336
  ac_cv_lib_dl_dlopen=yes
12337
else
12338
  ac_cv_lib_dl_dlopen=no
12339
fi
12340
rm -f core conftest.err conftest.$ac_objext \
12341
    conftest$ac_exeext conftest.$ac_ext
12342
LIBS=$ac_check_lib_save_LIBS
12343
fi
12344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12345
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12346
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12347
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12348
else
12349
12350
    lt_cv_dlopen="dyld"
12351
    lt_cv_dlopen_libs=
12352
    lt_cv_dlopen_self=yes
12353
12354
fi
12355
12356
    ;;
12357
12358
  *)
12359
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12360
if test "x$ac_cv_func_shl_load" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12361
  lt_cv_dlopen="shl_load"
12362
else
12363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12364
$as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12365
if ${ac_cv_lib_dld_shl_load+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12366
  $as_echo_n "(cached) " >&6
12367
else
12368
  ac_check_lib_save_LIBS=$LIBS
12369
LIBS="-ldld  $LIBS"
12370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371
/* end confdefs.h.  */
12372
12373
/* Override any GCC internal prototype to avoid an error.
12374
   Use char because int might match the return type of a GCC
12375
   builtin and then its argument prototype would still apply.  */
12376
#ifdef __cplusplus
12377
extern "C"
12378
#endif
12379
char shl_load ();
12380
int
12381
main ()
12382
{
12383
return shl_load ();
12384
  ;
12385
  return 0;
12386
}
12387
_ACEOF
12388
if ac_fn_c_try_link "$LINENO"; then :
12389
  ac_cv_lib_dld_shl_load=yes
12390
else
12391
  ac_cv_lib_dld_shl_load=no
12392
fi
12393
rm -f core conftest.err conftest.$ac_objext \
12394
    conftest$ac_exeext conftest.$ac_ext
12395
LIBS=$ac_check_lib_save_LIBS
12396
fi
12397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12398
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12399
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12400
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12401
else
12402
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12403
if test "x$ac_cv_func_dlopen" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12404
  lt_cv_dlopen="dlopen"
12405
else
12406
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12407
$as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12408
if ${ac_cv_lib_dl_dlopen+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12409
  $as_echo_n "(cached) " >&6
12410
else
12411
  ac_check_lib_save_LIBS=$LIBS
12412
LIBS="-ldl  $LIBS"
12413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414
/* end confdefs.h.  */
12415
12416
/* Override any GCC internal prototype to avoid an error.
12417
   Use char because int might match the return type of a GCC
12418
   builtin and then its argument prototype would still apply.  */
12419
#ifdef __cplusplus
12420
extern "C"
12421
#endif
12422
char dlopen ();
12423
int
12424
main ()
12425
{
12426
return dlopen ();
12427
  ;
12428
  return 0;
12429
}
12430
_ACEOF
12431
if ac_fn_c_try_link "$LINENO"; then :
12432
  ac_cv_lib_dl_dlopen=yes
12433
else
12434
  ac_cv_lib_dl_dlopen=no
12435
fi
12436
rm -f core conftest.err conftest.$ac_objext \
12437
    conftest$ac_exeext conftest.$ac_ext
12438
LIBS=$ac_check_lib_save_LIBS
12439
fi
12440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12441
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12442
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12443
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12444
else
12445
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12446
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12447
if ${ac_cv_lib_svld_dlopen+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12448
  $as_echo_n "(cached) " >&6
12449
else
12450
  ac_check_lib_save_LIBS=$LIBS
12451
LIBS="-lsvld  $LIBS"
12452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453
/* end confdefs.h.  */
12454
12455
/* Override any GCC internal prototype to avoid an error.
12456
   Use char because int might match the return type of a GCC
12457
   builtin and then its argument prototype would still apply.  */
12458
#ifdef __cplusplus
12459
extern "C"
12460
#endif
12461
char dlopen ();
12462
int
12463
main ()
12464
{
12465
return dlopen ();
12466
  ;
12467
  return 0;
12468
}
12469
_ACEOF
12470
if ac_fn_c_try_link "$LINENO"; then :
12471
  ac_cv_lib_svld_dlopen=yes
12472
else
12473
  ac_cv_lib_svld_dlopen=no
12474
fi
12475
rm -f core conftest.err conftest.$ac_objext \
12476
    conftest$ac_exeext conftest.$ac_ext
12477
LIBS=$ac_check_lib_save_LIBS
12478
fi
12479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12480
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12481
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12482
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12483
else
12484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12485
$as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12486
if ${ac_cv_lib_dld_dld_link+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12487
  $as_echo_n "(cached) " >&6
12488
else
12489
  ac_check_lib_save_LIBS=$LIBS
12490
LIBS="-ldld  $LIBS"
12491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492
/* end confdefs.h.  */
12493
12494
/* Override any GCC internal prototype to avoid an error.
12495
   Use char because int might match the return type of a GCC
12496
   builtin and then its argument prototype would still apply.  */
12497
#ifdef __cplusplus
12498
extern "C"
12499
#endif
12500
char dld_link ();
12501
int
12502
main ()
12503
{
12504
return dld_link ();
12505
  ;
12506
  return 0;
12507
}
12508
_ACEOF
12509
if ac_fn_c_try_link "$LINENO"; then :
12510
  ac_cv_lib_dld_dld_link=yes
12511
else
12512
  ac_cv_lib_dld_dld_link=no
12513
fi
12514
rm -f core conftest.err conftest.$ac_objext \
12515
    conftest$ac_exeext conftest.$ac_ext
12516
LIBS=$ac_check_lib_save_LIBS
12517
fi
12518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12519
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12520
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12521
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12522
fi
12523
12524
12525
fi
12526
12527
12528
fi
12529
12530
12531
fi
12532
12533
12534
fi
12535
12536
12537
fi
12538
12539
    ;;
12540
  esac
12541
12542
  if test "x$lt_cv_dlopen" != xno; then
12543
    enable_dlopen=yes
12544
  else
12545
    enable_dlopen=no
12546
  fi
12547
12548
  case $lt_cv_dlopen in
12549
  dlopen)
12550
    save_CPPFLAGS="$CPPFLAGS"
12551
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12552
12553
    save_LDFLAGS="$LDFLAGS"
12554
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12555
12556
    save_LIBS="$LIBS"
12557
    LIBS="$lt_cv_dlopen_libs $LIBS"
12558
12559
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12560
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12561
if ${lt_cv_dlopen_self+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12562
  $as_echo_n "(cached) " >&6
12563
else
12564
  	  if test "$cross_compiling" = yes; then :
12565
  lt_cv_dlopen_self=cross
12566
else
12567
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568
  lt_status=$lt_dlunknown
12569
  cat > conftest.$ac_ext <<_LT_EOF
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12570
#line $LINENO "configure"
2 by Jonathan Riddell
Run autogen.sh before upload
12571
#include "confdefs.h"
12572
12573
#if HAVE_DLFCN_H
12574
#include <dlfcn.h>
12575
#endif
12576
12577
#include <stdio.h>
12578
12579
#ifdef RTLD_GLOBAL
12580
#  define LT_DLGLOBAL		RTLD_GLOBAL
12581
#else
12582
#  ifdef DL_GLOBAL
12583
#    define LT_DLGLOBAL		DL_GLOBAL
12584
#  else
12585
#    define LT_DLGLOBAL		0
12586
#  endif
12587
#endif
12588
12589
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590
   find out it does not work in some platform. */
12591
#ifndef LT_DLLAZY_OR_NOW
12592
#  ifdef RTLD_LAZY
12593
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12594
#  else
12595
#    ifdef DL_LAZY
12596
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12597
#    else
12598
#      ifdef RTLD_NOW
12599
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12600
#      else
12601
#        ifdef DL_NOW
12602
#          define LT_DLLAZY_OR_NOW	DL_NOW
12603
#        else
12604
#          define LT_DLLAZY_OR_NOW	0
12605
#        endif
12606
#      endif
12607
#    endif
12608
#  endif
12609
#endif
12610
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12611
/* When -fvisbility=hidden is used, assume the code has been annotated
12612
   correspondingly for the symbols needed.  */
12613
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12614
int fnord () __attribute__((visibility("default")));
12615
#endif
12616
12617
int fnord () { return 42; }
2 by Jonathan Riddell
Run autogen.sh before upload
12618
int main ()
12619
{
12620
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12621
  int status = $lt_dlunknown;
12622
12623
  if (self)
12624
    {
12625
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12626
      else
12627
        {
12628
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12629
          else puts (dlerror ());
12630
	}
2 by Jonathan Riddell
Run autogen.sh before upload
12631
      /* dlclose (self); */
12632
    }
12633
  else
12634
    puts (dlerror ());
12635
12636
  return status;
12637
}
12638
_LT_EOF
12639
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12640
  (eval $ac_link) 2>&5
12641
  ac_status=$?
12642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12644
    (./conftest; exit; ) >&5 2>/dev/null
12645
    lt_status=$?
12646
    case x$lt_status in
12647
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12648
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12649
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12650
    esac
12651
  else :
12652
    # compilation failed
12653
    lt_cv_dlopen_self=no
12654
  fi
12655
fi
12656
rm -fr conftest*
12657
12658
12659
fi
12660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12661
$as_echo "$lt_cv_dlopen_self" >&6; }
12662
12663
    if test "x$lt_cv_dlopen_self" = xyes; then
12664
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12665
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12666
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12667
if ${lt_cv_dlopen_self_static+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
12668
  $as_echo_n "(cached) " >&6
12669
else
12670
  	  if test "$cross_compiling" = yes; then :
12671
  lt_cv_dlopen_self_static=cross
12672
else
12673
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12674
  lt_status=$lt_dlunknown
12675
  cat > conftest.$ac_ext <<_LT_EOF
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12676
#line $LINENO "configure"
2 by Jonathan Riddell
Run autogen.sh before upload
12677
#include "confdefs.h"
12678
12679
#if HAVE_DLFCN_H
12680
#include <dlfcn.h>
12681
#endif
12682
12683
#include <stdio.h>
12684
12685
#ifdef RTLD_GLOBAL
12686
#  define LT_DLGLOBAL		RTLD_GLOBAL
12687
#else
12688
#  ifdef DL_GLOBAL
12689
#    define LT_DLGLOBAL		DL_GLOBAL
12690
#  else
12691
#    define LT_DLGLOBAL		0
12692
#  endif
12693
#endif
12694
12695
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12696
   find out it does not work in some platform. */
12697
#ifndef LT_DLLAZY_OR_NOW
12698
#  ifdef RTLD_LAZY
12699
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12700
#  else
12701
#    ifdef DL_LAZY
12702
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12703
#    else
12704
#      ifdef RTLD_NOW
12705
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12706
#      else
12707
#        ifdef DL_NOW
12708
#          define LT_DLLAZY_OR_NOW	DL_NOW
12709
#        else
12710
#          define LT_DLLAZY_OR_NOW	0
12711
#        endif
12712
#      endif
12713
#    endif
12714
#  endif
12715
#endif
12716
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12717
/* When -fvisbility=hidden is used, assume the code has been annotated
12718
   correspondingly for the symbols needed.  */
12719
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12720
int fnord () __attribute__((visibility("default")));
12721
#endif
12722
12723
int fnord () { return 42; }
2 by Jonathan Riddell
Run autogen.sh before upload
12724
int main ()
12725
{
12726
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12727
  int status = $lt_dlunknown;
12728
12729
  if (self)
12730
    {
12731
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12732
      else
12733
        {
12734
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12735
          else puts (dlerror ());
12736
	}
2 by Jonathan Riddell
Run autogen.sh before upload
12737
      /* dlclose (self); */
12738
    }
12739
  else
12740
    puts (dlerror ());
12741
12742
  return status;
12743
}
12744
_LT_EOF
12745
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12746
  (eval $ac_link) 2>&5
12747
  ac_status=$?
12748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12749
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12750
    (./conftest; exit; ) >&5 2>/dev/null
12751
    lt_status=$?
12752
    case x$lt_status in
12753
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12754
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12755
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12756
    esac
12757
  else :
12758
    # compilation failed
12759
    lt_cv_dlopen_self_static=no
12760
  fi
12761
fi
12762
rm -fr conftest*
12763
12764
12765
fi
12766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12767
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12768
    fi
12769
12770
    CPPFLAGS="$save_CPPFLAGS"
12771
    LDFLAGS="$save_LDFLAGS"
12772
    LIBS="$save_LIBS"
12773
    ;;
12774
  esac
12775
12776
  case $lt_cv_dlopen_self in
12777
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12778
  *) enable_dlopen_self=unknown ;;
12779
  esac
12780
12781
  case $lt_cv_dlopen_self_static in
12782
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12783
  *) enable_dlopen_self_static=unknown ;;
12784
  esac
12785
fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
striplib=
12804
old_striplib=
12805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12806
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12807
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12808
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12809
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12810
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12811
$as_echo "yes" >&6; }
12812
else
12813
# FIXME - insert some real tests, host_os isn't really good enough
12814
  case $host_os in
12815
  darwin*)
12816
    if test -n "$STRIP" ; then
12817
      striplib="$STRIP -x"
12818
      old_striplib="$STRIP -S"
12819
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820
$as_echo "yes" >&6; }
12821
    else
12822
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823
$as_echo "no" >&6; }
12824
    fi
12825
    ;;
12826
  *)
12827
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828
$as_echo "no" >&6; }
12829
    ;;
12830
  esac
12831
fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
  # Report which library types will actually be built
12845
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12846
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12848
$as_echo "$can_build_shared" >&6; }
12849
12850
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12851
$as_echo_n "checking whether to build shared libraries... " >&6; }
12852
  test "$can_build_shared" = "no" && enable_shared=no
12853
12854
  # On AIX, shared libraries and static libraries use the same namespace, and
12855
  # are all built from PIC.
12856
  case $host_os in
12857
  aix3*)
12858
    test "$enable_shared" = yes && enable_static=no
12859
    if test -n "$RANLIB"; then
12860
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12861
      postinstall_cmds='$RANLIB $lib'
12862
    fi
12863
    ;;
12864
12865
  aix[4-9]*)
12866
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12867
      test "$enable_shared" = yes && enable_static=no
12868
    fi
12869
    ;;
12870
  esac
12871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12872
$as_echo "$enable_shared" >&6; }
12873
12874
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12875
$as_echo_n "checking whether to build static libraries... " >&6; }
12876
  # Make sure either enable_shared or enable_static is yes.
12877
  test "$enable_shared" = yes || enable_static=yes
12878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12879
$as_echo "$enable_static" >&6; }
12880
12881
12882
12883
12884
fi
12885
ac_ext=c
12886
ac_cpp='$CPP $CPPFLAGS'
12887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891
CC="$lt_save_CC"
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
1.1.56 by Ken VanDine
Import upstream version 0.5.90
12905
12906
2 by Jonathan Riddell
Run autogen.sh before upload
12907
        ac_config_commands="$ac_config_commands libtool"
12908
12909
12910
12911
12912
# Only expand once:
12913
12914
12915
12916
12917
12918
1.1.1 by Martin Pitt
Import upstream version 0.1.0
12919
# Check whether --enable-silent-rules was given.
12920
if test "${enable_silent_rules+set}" = set; then :
12921
  enableval=$enable_silent_rules;
12922
fi
12923
12924
case $enable_silent_rules in
12925
yes) AM_DEFAULT_VERBOSITY=0;;
12926
no)  AM_DEFAULT_VERBOSITY=1;;
12927
*)   AM_DEFAULT_VERBOSITY=0;;
12928
esac
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
12929
am_make=${MAKE-make}
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12931
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12932
if ${am_cv_make_support_nested_variables+:} false; then :
12933
  $as_echo_n "(cached) " >&6
12934
else
12935
  if $as_echo 'TRUE=$(BAR$(V))
12936
BAR0=false
12937
BAR1=true
12938
V=1
12939
am__doit:
12940
	@$(TRUE)
12941
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12942
  am_cv_make_support_nested_variables=yes
12943
else
12944
  am_cv_make_support_nested_variables=no
12945
fi
12946
fi
12947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12948
$as_echo "$am_cv_make_support_nested_variables" >&6; }
12949
if test $am_cv_make_support_nested_variables = yes; then
12950
    AM_V='$(V)'
12951
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12952
else
12953
  AM_V=$AM_DEFAULT_VERBOSITY
12954
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12955
fi
1.1.1 by Martin Pitt
Import upstream version 0.1.0
12956
AM_BACKSLASH='\'
12957
12958
1.1.42 by Ken VanDine
Import upstream version 0.3.99
12959
# Extract the first word of "glib-mkenums", so it can be a program name with args.
12960
set dummy glib-mkenums; ac_word=$2
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
12963
if ${ac_cv_path_GLIB_MKENUMS+:} false; then :
1.1.42 by Ken VanDine
Import upstream version 0.3.99
12964
  $as_echo_n "(cached) " >&6
12965
else
12966
  case $GLIB_MKENUMS in
12967
  [\\/]* | ?:[\\/]*)
12968
  ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
12969
  ;;
12970
  *)
12971
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972
for as_dir in $PATH
12973
do
12974
  IFS=$as_save_IFS
12975
  test -z "$as_dir" && as_dir=.
12976
    for ac_exec_ext in '' $ac_executable_extensions; do
12977
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978
    ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
12979
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980
    break 2
12981
  fi
12982
done
12983
  done
12984
IFS=$as_save_IFS
12985
12986
  ;;
12987
esac
12988
fi
12989
GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
12990
if test -n "$GLIB_MKENUMS"; then
12991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
12992
$as_echo "$GLIB_MKENUMS" >&6; }
12993
else
12994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995
$as_echo "no" >&6; }
12996
fi
12997
12998
12999
2 by Jonathan Riddell
Run autogen.sh before upload
13000
###########################
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13001
# GTK Doc
2 by Jonathan Riddell
Run autogen.sh before upload
13002
###########################
13003
13004
13005
1.1.27 by Ted Gould
Import upstream version 0.3.10
13006
13007
13008
13009
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13010
2 by Jonathan Riddell
Run autogen.sh before upload
13011
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13012
	if test -n "$ac_tool_prefix"; then
13013
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13014
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13017
if ${ac_cv_path_PKG_CONFIG+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
13018
  $as_echo_n "(cached) " >&6
13019
else
13020
  case $PKG_CONFIG in
13021
  [\\/]* | ?:[\\/]*)
13022
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13023
  ;;
13024
  *)
13025
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026
for as_dir in $PATH
13027
do
13028
  IFS=$as_save_IFS
13029
  test -z "$as_dir" && as_dir=.
13030
    for ac_exec_ext in '' $ac_executable_extensions; do
13031
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13033
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034
    break 2
13035
  fi
13036
done
13037
  done
13038
IFS=$as_save_IFS
13039
13040
  ;;
13041
esac
13042
fi
13043
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13044
if test -n "$PKG_CONFIG"; then
13045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13046
$as_echo "$PKG_CONFIG" >&6; }
13047
else
13048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049
$as_echo "no" >&6; }
13050
fi
13051
13052
13053
fi
13054
if test -z "$ac_cv_path_PKG_CONFIG"; then
13055
  ac_pt_PKG_CONFIG=$PKG_CONFIG
13056
  # Extract the first word of "pkg-config", so it can be a program name with args.
13057
set dummy pkg-config; ac_word=$2
13058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13060
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
13061
  $as_echo_n "(cached) " >&6
13062
else
13063
  case $ac_pt_PKG_CONFIG in
13064
  [\\/]* | ?:[\\/]*)
13065
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13066
  ;;
13067
  *)
13068
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069
for as_dir in $PATH
13070
do
13071
  IFS=$as_save_IFS
13072
  test -z "$as_dir" && as_dir=.
13073
    for ac_exec_ext in '' $ac_executable_extensions; do
13074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13076
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077
    break 2
13078
  fi
13079
done
13080
  done
13081
IFS=$as_save_IFS
13082
13083
  ;;
13084
esac
13085
fi
13086
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13087
if test -n "$ac_pt_PKG_CONFIG"; then
13088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13089
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13090
else
13091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092
$as_echo "no" >&6; }
13093
fi
13094
13095
  if test "x$ac_pt_PKG_CONFIG" = x; then
13096
    PKG_CONFIG=""
13097
  else
13098
    case $cross_compiling:$ac_tool_warned in
13099
yes:)
13100
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13101
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13102
ac_tool_warned=yes ;;
13103
esac
13104
    PKG_CONFIG=$ac_pt_PKG_CONFIG
13105
  fi
13106
else
13107
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13108
fi
13109
13110
fi
13111
if test -n "$PKG_CONFIG"; then
13112
	_pkg_min_version=0.9.0
13113
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13114
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13115
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13116
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117
$as_echo "yes" >&6; }
13118
	else
13119
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120
$as_echo "no" >&6; }
13121
		PKG_CONFIG=""
13122
	fi
13123
fi
13124
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13125
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13126
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13127
    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13128
set dummy gtkdoc-check; ac_word=$2
13129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13131
if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13132
  $as_echo_n "(cached) " >&6
13133
else
13134
  case $GTKDOC_CHECK in
13135
  [\\/]* | ?:[\\/]*)
13136
  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13137
  ;;
13138
  *)
13139
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140
for as_dir in $PATH
13141
do
13142
  IFS=$as_save_IFS
13143
  test -z "$as_dir" && as_dir=.
13144
    for ac_exec_ext in '' $ac_executable_extensions; do
13145
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146
    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13147
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148
    break 2
13149
  fi
13150
done
13151
  done
13152
IFS=$as_save_IFS
13153
13154
  ;;
13155
esac
13156
fi
13157
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13158
if test -n "$GTKDOC_CHECK"; then
13159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13160
$as_echo "$GTKDOC_CHECK" >&6; }
13161
else
13162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163
$as_echo "no" >&6; }
13164
fi
13165
13166
13167
  for ac_prog in gtkdoc-rebase
13168
do
13169
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13170
set dummy $ac_prog; ac_word=$2
13171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13173
if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13174
  $as_echo_n "(cached) " >&6
13175
else
13176
  case $GTKDOC_REBASE in
13177
  [\\/]* | ?:[\\/]*)
13178
  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13179
  ;;
13180
  *)
13181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182
for as_dir in $PATH
13183
do
13184
  IFS=$as_save_IFS
13185
  test -z "$as_dir" && as_dir=.
13186
    for ac_exec_ext in '' $ac_executable_extensions; do
13187
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188
    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13189
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190
    break 2
13191
  fi
13192
done
13193
  done
13194
IFS=$as_save_IFS
13195
13196
  ;;
13197
esac
13198
fi
13199
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13200
if test -n "$GTKDOC_REBASE"; then
13201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13202
$as_echo "$GTKDOC_REBASE" >&6; }
13203
else
13204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205
$as_echo "no" >&6; }
13206
fi
13207
13208
13209
  test -n "$GTKDOC_REBASE" && break
13210
done
13211
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13212
13213
  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13214
set dummy gtkdoc-mkpdf; ac_word=$2
13215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13217
if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13218
  $as_echo_n "(cached) " >&6
13219
else
13220
  case $GTKDOC_MKPDF in
13221
  [\\/]* | ?:[\\/]*)
13222
  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13223
  ;;
13224
  *)
13225
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226
for as_dir in $PATH
13227
do
13228
  IFS=$as_save_IFS
13229
  test -z "$as_dir" && as_dir=.
13230
    for ac_exec_ext in '' $ac_executable_extensions; do
13231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232
    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13233
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234
    break 2
13235
  fi
13236
done
13237
  done
13238
IFS=$as_save_IFS
13239
13240
  ;;
13241
esac
13242
fi
13243
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13244
if test -n "$GTKDOC_MKPDF"; then
13245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13246
$as_echo "$GTKDOC_MKPDF" >&6; }
13247
else
13248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249
$as_echo "no" >&6; }
13250
fi
13251
13252
13253
13254
13255
# Check whether --with-html-dir was given.
13256
if test "${with_html_dir+set}" = set; then :
13257
  withval=$with_html_dir;
13258
else
13259
  with_html_dir='${datadir}/gtk-doc/html'
13260
fi
13261
13262
  HTML_DIR="$with_html_dir"
13263
13264
13265
    # Check whether --enable-gtk-doc was given.
13266
if test "${enable_gtk_doc+set}" = set; then :
13267
  enableval=$enable_gtk_doc;
13268
else
13269
  enable_gtk_doc=no
13270
fi
13271
13272
13273
  if test x$enable_gtk_doc = xyes; then
13274
    if test -n "$PKG_CONFIG" && \
13275
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.4\""; } >&5
13276
  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.4") 2>&5
13277
  ac_status=$?
13278
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13279
  test $ac_status = 0; }; then
13280
  :
13281
else
1.1.27 by Ted Gould
Import upstream version 0.3.10
13282
  as_fn_error $? "You need to have gtk-doc >= 1.4 installed to build $PACKAGE_NAME" "$LINENO" 5
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13283
fi
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13284
        if test "x$PACKAGE_NAME" != "xglib"; then
13285
13286
pkg_failed=no
13287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13288
$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13289
13290
if test -n "$GTKDOC_DEPS_CFLAGS"; then
13291
    pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13292
 elif test -n "$PKG_CONFIG"; then
13293
    if test -n "$PKG_CONFIG" && \
13294
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13295
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13296
  ac_status=$?
13297
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13298
  test $ac_status = 0; }; then
13299
  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13300
		      test "x$?" != "x0" && pkg_failed=yes
13301
else
13302
  pkg_failed=yes
13303
fi
13304
 else
13305
    pkg_failed=untried
13306
fi
13307
if test -n "$GTKDOC_DEPS_LIBS"; then
13308
    pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13309
 elif test -n "$PKG_CONFIG"; then
13310
    if test -n "$PKG_CONFIG" && \
13311
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13312
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13313
  ac_status=$?
13314
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315
  test $ac_status = 0; }; then
13316
  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13317
		      test "x$?" != "x0" && pkg_failed=yes
13318
else
13319
  pkg_failed=yes
13320
fi
13321
 else
13322
    pkg_failed=untried
13323
fi
13324
13325
13326
13327
if test $pkg_failed = yes; then
13328
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329
$as_echo "no" >&6; }
13330
13331
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13332
        _pkg_short_errors_supported=yes
13333
else
13334
        _pkg_short_errors_supported=no
13335
fi
13336
        if test $_pkg_short_errors_supported = yes; then
13337
	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13338
        else
13339
	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13340
        fi
13341
	# Put the nasty error message in config.log where it belongs
13342
	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13343
13344
	as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13345
13346
$GTKDOC_DEPS_PKG_ERRORS
13347
13348
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13349
installed software in a non-standard prefix.
13350
13351
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13352
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13353
See the pkg-config man page for more details." "$LINENO" 5
13354
elif test $pkg_failed = untried; then
13355
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356
$as_echo "no" >&6; }
13357
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13358
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13359
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13360
is in your PATH or set the PKG_CONFIG environment variable to the full
13361
path to pkg-config.
13362
13363
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13364
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13365
See the pkg-config man page for more details.
13366
13367
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13368
See \`config.log' for more details" "$LINENO" 5; }
13369
else
13370
	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13371
	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13372
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373
$as_echo "yes" >&6; }
13374
13375
fi
13376
    fi
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13377
  fi
13378
13379
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13380
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13381
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13382
$as_echo "$enable_gtk_doc" >&6; }
13383
13384
    # Check whether --enable-gtk-doc-html was given.
13385
if test "${enable_gtk_doc_html+set}" = set; then :
13386
  enableval=$enable_gtk_doc_html;
13387
else
13388
  enable_gtk_doc_html=yes
13389
fi
13390
13391
    # Check whether --enable-gtk-doc-pdf was given.
13392
if test "${enable_gtk_doc_pdf+set}" = set; then :
13393
  enableval=$enable_gtk_doc_pdf;
13394
else
13395
  enable_gtk_doc_pdf=no
13396
fi
13397
13398
13399
  if test -z "$GTKDOC_MKPDF"; then
13400
    enable_gtk_doc_pdf=no
13401
  fi
13402
13403
13404
   if test x$enable_gtk_doc = xyes; then
13405
  ENABLE_GTK_DOC_TRUE=
13406
  ENABLE_GTK_DOC_FALSE='#'
13407
else
13408
  ENABLE_GTK_DOC_TRUE='#'
13409
  ENABLE_GTK_DOC_FALSE=
13410
fi
13411
13412
   if test x$enable_gtk_doc_html = xyes; then
13413
  GTK_DOC_BUILD_HTML_TRUE=
13414
  GTK_DOC_BUILD_HTML_FALSE='#'
13415
else
13416
  GTK_DOC_BUILD_HTML_TRUE='#'
13417
  GTK_DOC_BUILD_HTML_FALSE=
13418
fi
13419
13420
   if test x$enable_gtk_doc_pdf = xyes; then
13421
  GTK_DOC_BUILD_PDF_TRUE=
13422
  GTK_DOC_BUILD_PDF_FALSE='#'
13423
else
13424
  GTK_DOC_BUILD_PDF_TRUE='#'
13425
  GTK_DOC_BUILD_PDF_FALSE=
13426
fi
13427
13428
   if test -n "$LIBTOOL"; then
13429
  GTK_DOC_USE_LIBTOOL_TRUE=
13430
  GTK_DOC_USE_LIBTOOL_FALSE='#'
13431
else
13432
  GTK_DOC_USE_LIBTOOL_TRUE='#'
13433
  GTK_DOC_USE_LIBTOOL_FALSE=
13434
fi
13435
13436
   if test -n "$GTKDOC_REBASE"; then
13437
  GTK_DOC_USE_REBASE_TRUE=
13438
  GTK_DOC_USE_REBASE_FALSE='#'
13439
else
13440
  GTK_DOC_USE_REBASE_TRUE='#'
13441
  GTK_DOC_USE_REBASE_FALSE=
13442
fi
13443
13444
13445
1.1.62 by Ken VanDine
Import upstream version 0.5.96
13446
if test -z "$AM_DEFAULT_VERBOSITY"; then
13447
  AM_DEFAULT_VERBOSITY=1
13448
fi
13449
13450
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13451
gdu_cv_version_required=0.3.2
13452
13453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnome-doc-utils >= $gdu_cv_version_required" >&5
13454
$as_echo_n "checking gnome-doc-utils >= $gdu_cv_version_required... " >&6; }
13455
if test -n "$PKG_CONFIG" && \
13456
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-doc-utils >= \$gdu_cv_version_required\""; } >&5
13457
  ($PKG_CONFIG --exists --print-errors "gnome-doc-utils >= $gdu_cv_version_required") 2>&5
13458
  ac_status=$?
13459
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460
  test $ac_status = 0; }; then
13461
  gdu_cv_have_gdu=yes
13462
else
13463
  gdu_cv_have_gdu=no
13464
fi
13465
13466
if test "$gdu_cv_have_gdu" = "yes"; then
13467
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13468
$as_echo "yes" >&6; }
13469
	:
13470
else
13471
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472
$as_echo "no" >&6; }
1.1.27 by Ted Gould
Import upstream version 0.3.10
13473
	as_fn_error $? "gnome-doc-utils >= $gdu_cv_version_required not found" "$LINENO" 5
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13474
fi
13475
13476
13477
13478
# Check whether --with-help-dir was given.
13479
if test "${with_help_dir+set}" = set; then :
13480
  withval=$with_help_dir;
13481
else
13482
  with_help_dir='${datadir}/gnome/help'
13483
fi
13484
13485
HELP_DIR="$with_help_dir"
13486
13487
13488
13489
# Check whether --with-omf-dir was given.
13490
if test "${with_omf_dir+set}" = set; then :
13491
  withval=$with_omf_dir;
13492
else
13493
  with_omf_dir='${datadir}/omf'
13494
fi
13495
13496
OMF_DIR="$with_omf_dir"
13497
13498
13499
13500
# Check whether --with-help-formats was given.
13501
if test "${with_help_formats+set}" = set; then :
13502
  withval=$with_help_formats;
13503
else
13504
  with_help_formats=''
13505
fi
13506
13507
DOC_USER_FORMATS="$with_help_formats"
13508
13509
13510
# Check whether --enable-scrollkeeper was given.
13511
if test "${enable_scrollkeeper+set}" = set; then :
13512
  enableval=$enable_scrollkeeper;
13513
else
13514
  enable_scrollkeeper=yes
13515
fi
13516
13517
 if test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"; then
13518
  ENABLE_SK_TRUE=
13519
  ENABLE_SK_FALSE='#'
13520
else
13521
  ENABLE_SK_TRUE='#'
13522
  ENABLE_SK_FALSE=
13523
fi
13524
13525
13526
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
13527
13528
13529
 if test "$gdu_cv_have_gdu" = "yes"; then
13530
  HAVE_GNOME_DOC_UTILS_TRUE=
13531
  HAVE_GNOME_DOC_UTILS_FALSE='#'
13532
else
13533
  HAVE_GNOME_DOC_UTILS_TRUE='#'
13534
  HAVE_GNOME_DOC_UTILS_FALSE=
13535
fi
13536
13537
13538
13539
13540
###########################
13541
# Dependencies - GLib
13542
###########################
13543
1.1.34 by Ted Gould
Import upstream version 0.3.91
13544
GLIB_REQUIRED_VERSION=2.26
1.1.19 by Ken VanDine
Import upstream version 0.3.2
13545
13546
2 by Jonathan Riddell
Run autogen.sh before upload
13547
pkg_failed=no
13548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUGLIB" >&5
13549
$as_echo_n "checking for DBUSMENUGLIB... " >&6; }
13550
1.1.27 by Ted Gould
Import upstream version 0.3.10
13551
if test -n "$DBUSMENUGLIB_CFLAGS"; then
13552
    pkg_cv_DBUSMENUGLIB_CFLAGS="$DBUSMENUGLIB_CFLAGS"
13553
 elif test -n "$PKG_CONFIG"; then
13554
    if test -n "$PKG_CONFIG" && \
2 by Jonathan Riddell
Run autogen.sh before upload
13555
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13556
                                gio-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
13557
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13558
                                gio-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
13559
  ac_status=$?
13560
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13561
  test $ac_status = 0; }; then
13562
  pkg_cv_DBUSMENUGLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13563
                                gio-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13564
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
13565
else
13566
  pkg_failed=yes
13567
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13568
 else
13569
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
13570
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13571
if test -n "$DBUSMENUGLIB_LIBS"; then
13572
    pkg_cv_DBUSMENUGLIB_LIBS="$DBUSMENUGLIB_LIBS"
13573
 elif test -n "$PKG_CONFIG"; then
13574
    if test -n "$PKG_CONFIG" && \
2 by Jonathan Riddell
Run autogen.sh before upload
13575
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13576
                                gio-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
13577
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13578
                                gio-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
13579
  ac_status=$?
13580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581
  test $ac_status = 0; }; then
13582
  pkg_cv_DBUSMENUGLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13583
                                gio-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13584
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
13585
else
13586
  pkg_failed=yes
13587
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13588
 else
13589
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
13590
fi
13591
13592
13593
13594
if test $pkg_failed = yes; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
13595
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
13597
13598
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13599
        _pkg_short_errors_supported=yes
13600
else
13601
        _pkg_short_errors_supported=no
13602
fi
13603
        if test $_pkg_short_errors_supported = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13604
	        DBUSMENUGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13605
                                gio-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
13606
        else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13607
	        DBUSMENUGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13608
                                gio-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
13609
        fi
13610
	# Put the nasty error message in config.log where it belongs
13611
	echo "$DBUSMENUGLIB_PKG_ERRORS" >&5
13612
1.1.27 by Ted Gould
Import upstream version 0.3.10
13613
	as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION
1.1.41 by Ted Gould
Import upstream version 0.3.98
13614
                                gio-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
2 by Jonathan Riddell
Run autogen.sh before upload
13615
13616
$DBUSMENUGLIB_PKG_ERRORS
13617
13618
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13619
installed software in a non-standard prefix.
13620
13621
Alternatively, you may set the environment variables DBUSMENUGLIB_CFLAGS
13622
and DBUSMENUGLIB_LIBS to avoid the need to call pkg-config.
1.1.27 by Ted Gould
Import upstream version 0.3.10
13623
See the pkg-config man page for more details." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
13624
elif test $pkg_failed = untried; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
13625
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
13627
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13628
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
13629
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
2 by Jonathan Riddell
Run autogen.sh before upload
13630
is in your PATH or set the PKG_CONFIG environment variable to the full
13631
path to pkg-config.
13632
13633
Alternatively, you may set the environment variables DBUSMENUGLIB_CFLAGS
13634
and DBUSMENUGLIB_LIBS to avoid the need to call pkg-config.
13635
See the pkg-config man page for more details.
13636
13637
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13638
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
13639
else
13640
	DBUSMENUGLIB_CFLAGS=$pkg_cv_DBUSMENUGLIB_CFLAGS
13641
	DBUSMENUGLIB_LIBS=$pkg_cv_DBUSMENUGLIB_LIBS
13642
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643
$as_echo "yes" >&6; }
1.1.27 by Ted Gould
Import upstream version 0.3.10
13644
2 by Jonathan Riddell
Run autogen.sh before upload
13645
fi
13646
13647
13648
13649
13650
###########################
13651
# Dependencies - GTK
13652
###########################
13653
13654
GTK_REQUIRED_VERSION=2.16
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13655
GTK3_REQUIRED_VERSION=2.91
13656
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13657
# Check whether --enable-gtk was given.
13658
if test "${enable_gtk+set}" = set; then :
13659
  enableval=$enable_gtk; enable_gtk=$enableval
13660
else
13661
  enable_gtk=auto
13662
fi
13663
13664
 if test "x$enable_gtk" != "xno"; then
13665
  WANT_LIBDBUSMENUGTK_TRUE=
13666
  WANT_LIBDBUSMENUGTK_FALSE='#'
13667
else
13668
  WANT_LIBDBUSMENUGTK_TRUE='#'
13669
  WANT_LIBDBUSMENUGTK_FALSE=
13670
fi
13671
13672
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13673
13674
# Check whether --with-gtk was given.
13675
if test "${with_gtk+set}" = set; then :
13676
  withval=$with_gtk;
13677
else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13678
  with_gtk=3
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13679
fi
13680
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13681
 if test "x$with_gtk" = "x3"; then
13682
  USE_GTK3_TRUE=
13683
  USE_GTK3_FALSE='#'
13684
else
13685
  USE_GTK3_TRUE='#'
13686
  USE_GTK3_FALSE=
13687
fi
13688
13689
13690
if test "x$enable_gtk" != "xno"; then :
13691
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13692
if test "x$with_gtk" = x3; then :
13693
13694
pkg_failed=no
13695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUGTK" >&5
13696
$as_echo_n "checking for DBUSMENUGTK... " >&6; }
13697
13698
if test -n "$DBUSMENUGTK_CFLAGS"; then
13699
    pkg_cv_DBUSMENUGTK_CFLAGS="$DBUSMENUGTK_CFLAGS"
13700
 elif test -n "$PKG_CONFIG"; then
13701
    if test -n "$PKG_CONFIG" && \
13702
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13703
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13704
                                         glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13705
  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13706
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13707
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13708
  ac_status=$?
13709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13710
  test $ac_status = 0; }; then
13711
  pkg_cv_DBUSMENUGTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13712
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13713
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13714
		      test "x$?" != "x0" && pkg_failed=yes
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13715
else
13716
  pkg_failed=yes
13717
fi
13718
 else
13719
    pkg_failed=untried
13720
fi
13721
if test -n "$DBUSMENUGTK_LIBS"; then
13722
    pkg_cv_DBUSMENUGTK_LIBS="$DBUSMENUGTK_LIBS"
13723
 elif test -n "$PKG_CONFIG"; then
13724
    if test -n "$PKG_CONFIG" && \
13725
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13726
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13727
                                         glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13728
  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13729
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13730
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13731
  ac_status=$?
13732
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733
  test $ac_status = 0; }; then
13734
  pkg_cv_DBUSMENUGTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13735
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13736
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13737
		      test "x$?" != "x0" && pkg_failed=yes
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13738
else
13739
  pkg_failed=yes
13740
fi
13741
 else
13742
    pkg_failed=untried
13743
fi
13744
13745
13746
13747
if test $pkg_failed = yes; then
13748
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749
$as_echo "no" >&6; }
13750
13751
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13752
        _pkg_short_errors_supported=yes
13753
else
13754
        _pkg_short_errors_supported=no
13755
fi
13756
        if test $_pkg_short_errors_supported = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13757
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13758
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13759
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13760
        else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13761
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13762
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13763
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13764
        fi
13765
	# Put the nasty error message in config.log where it belongs
13766
	echo "$DBUSMENUGTK_PKG_ERRORS" >&5
13767
13768
	as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK3_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13769
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13770
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13771
13772
$DBUSMENUGTK_PKG_ERRORS
13773
13774
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13775
installed software in a non-standard prefix.
13776
13777
Alternatively, you may set the environment variables DBUSMENUGTK_CFLAGS
13778
and DBUSMENUGTK_LIBS to avoid the need to call pkg-config.
13779
See the pkg-config man page for more details." "$LINENO" 5
13780
elif test $pkg_failed = untried; then
13781
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782
$as_echo "no" >&6; }
13783
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13784
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13785
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13786
is in your PATH or set the PKG_CONFIG environment variable to the full
13787
path to pkg-config.
13788
13789
Alternatively, you may set the environment variables DBUSMENUGTK_CFLAGS
13790
and DBUSMENUGTK_LIBS to avoid the need to call pkg-config.
13791
See the pkg-config man page for more details.
13792
13793
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13794
See \`config.log' for more details" "$LINENO" 5; }
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13795
else
13796
	DBUSMENUGTK_CFLAGS=$pkg_cv_DBUSMENUGTK_CFLAGS
13797
	DBUSMENUGTK_LIBS=$pkg_cv_DBUSMENUGTK_LIBS
13798
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13799
$as_echo "yes" >&6; }
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13800
	have_gtk=yes
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13801
13802
fi
13803
13804
$as_echo "#define HAVE_GTK3 1" >>confdefs.h
13805
13806
13807
elif test "x$with_gtk" = x2; then :
2 by Jonathan Riddell
Run autogen.sh before upload
13808
13809
pkg_failed=no
13810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUGTK" >&5
13811
$as_echo_n "checking for DBUSMENUGTK... " >&6; }
13812
1.1.27 by Ted Gould
Import upstream version 0.3.10
13813
if test -n "$DBUSMENUGTK_CFLAGS"; then
13814
    pkg_cv_DBUSMENUGTK_CFLAGS="$DBUSMENUGTK_CFLAGS"
13815
 elif test -n "$PKG_CONFIG"; then
13816
    if test -n "$PKG_CONFIG" && \
2 by Jonathan Riddell
Run autogen.sh before upload
13817
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13818
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13819
                                         glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
13820
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13821
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13822
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
13823
  ac_status=$?
13824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825
  test $ac_status = 0; }; then
13826
  pkg_cv_DBUSMENUGTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13827
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13828
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13829
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
13830
else
13831
  pkg_failed=yes
13832
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13833
 else
13834
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
13835
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13836
if test -n "$DBUSMENUGTK_LIBS"; then
13837
    pkg_cv_DBUSMENUGTK_LIBS="$DBUSMENUGTK_LIBS"
13838
 elif test -n "$PKG_CONFIG"; then
13839
    if test -n "$PKG_CONFIG" && \
2 by Jonathan Riddell
Run autogen.sh before upload
13840
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13841
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13842
                                         glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
2 by Jonathan Riddell
Run autogen.sh before upload
13843
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13844
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13845
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
13846
  ac_status=$?
13847
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848
  test $ac_status = 0; }; then
13849
  pkg_cv_DBUSMENUGTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13850
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13851
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13852
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
13853
else
13854
  pkg_failed=yes
13855
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13856
 else
13857
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
13858
fi
13859
13860
13861
13862
if test $pkg_failed = yes; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
13863
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
13865
13866
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13867
        _pkg_short_errors_supported=yes
13868
else
13869
        _pkg_short_errors_supported=no
13870
fi
13871
        if test $_pkg_short_errors_supported = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13872
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13873
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13874
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
13875
        else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13876
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13877
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13878
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
13879
        fi
13880
	# Put the nasty error message in config.log where it belongs
13881
	echo "$DBUSMENUGTK_PKG_ERRORS" >&5
13882
1.1.27 by Ted Gould
Import upstream version 0.3.10
13883
	as_fn_error $? "Package requirements (gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.56 by Ken VanDine
Import upstream version 0.5.90
13884
                                         atk
1.1.41 by Ted Gould
Import upstream version 0.3.98
13885
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
2 by Jonathan Riddell
Run autogen.sh before upload
13886
13887
$DBUSMENUGTK_PKG_ERRORS
13888
13889
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13890
installed software in a non-standard prefix.
13891
13892
Alternatively, you may set the environment variables DBUSMENUGTK_CFLAGS
13893
and DBUSMENUGTK_LIBS to avoid the need to call pkg-config.
1.1.27 by Ted Gould
Import upstream version 0.3.10
13894
See the pkg-config man page for more details." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
13895
elif test $pkg_failed = untried; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
13896
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
13898
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13899
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
13900
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
2 by Jonathan Riddell
Run autogen.sh before upload
13901
is in your PATH or set the PKG_CONFIG environment variable to the full
13902
path to pkg-config.
13903
13904
Alternatively, you may set the environment variables DBUSMENUGTK_CFLAGS
13905
and DBUSMENUGTK_LIBS to avoid the need to call pkg-config.
13906
See the pkg-config man page for more details.
13907
13908
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13909
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
13910
else
13911
	DBUSMENUGTK_CFLAGS=$pkg_cv_DBUSMENUGTK_CFLAGS
13912
	DBUSMENUGTK_LIBS=$pkg_cv_DBUSMENUGTK_LIBS
13913
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13914
$as_echo "yes" >&6; }
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13915
	have_gtk=yes
1.1.27 by Ted Gould
Import upstream version 0.3.10
13916
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13917
fi
13918
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13919
else
13920
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13921
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13922
as_fn_error $? "Value for --with-gtk was neither 2 nor 3
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13923
See \`config.log' for more details" "$LINENO" 5; }
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13924
13925
fi
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13926
1.1.33 by Ken VanDine
Import upstream version 0.3.90
13927
fi
13928
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13929
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13930
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13931
###########################
13932
# Dependencies - dumper
13933
###########################
13934
13935
X11_REQUIRED_VERSION=1.3
13936
1.1.53 by Ken VanDine
Import upstream version 0.4.94
13937
# Check whether --enable-dumper was given.
13938
if test "${enable_dumper+set}" = set; then :
13939
  enableval=$enable_dumper; enable_dumper=$enableval
13940
else
13941
  enable_dumper=auto
13942
fi
13943
13944
 if test "x$enable_dumper" != "xno"; then
13945
  WANT_DBUSMENUDUMPER_TRUE=
13946
  WANT_DBUSMENUDUMPER_FALSE='#'
13947
else
13948
  WANT_DBUSMENUDUMPER_TRUE='#'
13949
  WANT_DBUSMENUDUMPER_FALSE=
13950
fi
13951
13952
13953
if test "x$enable_dumper" != "xno"; then :
13954
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13955
13956
pkg_failed=no
13957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUDUMPER" >&5
13958
$as_echo_n "checking for DBUSMENUDUMPER... " >&6; }
13959
1.1.27 by Ted Gould
Import upstream version 0.3.10
13960
if test -n "$DBUSMENUDUMPER_CFLAGS"; then
13961
    pkg_cv_DBUSMENUDUMPER_CFLAGS="$DBUSMENUDUMPER_CFLAGS"
13962
 elif test -n "$PKG_CONFIG"; then
13963
    if test -n "$PKG_CONFIG" && \
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13964
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED_VERSION
13965
                                  x11 >= \$X11_REQUIRED_VERSION\""; } >&5
13966
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED_VERSION
13967
                                  x11 >= $X11_REQUIRED_VERSION") 2>&5
13968
  ac_status=$?
13969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13970
  test $ac_status = 0; }; then
13971
  pkg_cv_DBUSMENUDUMPER_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED_VERSION
13972
                                  x11 >= $X11_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13973
		      test "x$?" != "x0" && pkg_failed=yes
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13974
else
13975
  pkg_failed=yes
13976
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13977
 else
13978
    pkg_failed=untried
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13979
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13980
if test -n "$DBUSMENUDUMPER_LIBS"; then
13981
    pkg_cv_DBUSMENUDUMPER_LIBS="$DBUSMENUDUMPER_LIBS"
13982
 elif test -n "$PKG_CONFIG"; then
13983
    if test -n "$PKG_CONFIG" && \
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13984
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED_VERSION
13985
                                  x11 >= \$X11_REQUIRED_VERSION\""; } >&5
13986
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED_VERSION
13987
                                  x11 >= $X11_REQUIRED_VERSION") 2>&5
13988
  ac_status=$?
13989
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13990
  test $ac_status = 0; }; then
13991
  pkg_cv_DBUSMENUDUMPER_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
13992
                                  x11 >= $X11_REQUIRED_VERSION" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
13993
		      test "x$?" != "x0" && pkg_failed=yes
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13994
else
13995
  pkg_failed=yes
13996
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
13997
 else
13998
    pkg_failed=untried
1.1.24 by Ken VanDine
Import upstream version 0.3.7
13999
fi
14000
14001
14002
14003
if test $pkg_failed = yes; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
14004
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005
$as_echo "no" >&6; }
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14006
14007
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14008
        _pkg_short_errors_supported=yes
14009
else
14010
        _pkg_short_errors_supported=no
14011
fi
14012
        if test $_pkg_short_errors_supported = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14013
	        DBUSMENUDUMPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.27 by Ted Gould
Import upstream version 0.3.10
14014
                                  x11 >= $X11_REQUIRED_VERSION" 2>&1`
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14015
        else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14016
	        DBUSMENUDUMPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.27 by Ted Gould
Import upstream version 0.3.10
14017
                                  x11 >= $X11_REQUIRED_VERSION" 2>&1`
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14018
        fi
14019
	# Put the nasty error message in config.log where it belongs
14020
	echo "$DBUSMENUDUMPER_PKG_ERRORS" >&5
14021
1.1.27 by Ted Gould
Import upstream version 0.3.10
14022
	as_fn_error $? "Package requirements (gtk+-2.0 >= $GTK_REQUIRED_VERSION
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14023
                                  x11 >= $X11_REQUIRED_VERSION) were not met:
14024
14025
$DBUSMENUDUMPER_PKG_ERRORS
14026
14027
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14028
installed software in a non-standard prefix.
14029
14030
Alternatively, you may set the environment variables DBUSMENUDUMPER_CFLAGS
14031
and DBUSMENUDUMPER_LIBS to avoid the need to call pkg-config.
1.1.27 by Ted Gould
Import upstream version 0.3.10
14032
See the pkg-config man page for more details." "$LINENO" 5
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14033
elif test $pkg_failed = untried; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
14034
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035
$as_echo "no" >&6; }
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14036
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14037
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
14038
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14039
is in your PATH or set the PKG_CONFIG environment variable to the full
14040
path to pkg-config.
14041
14042
Alternatively, you may set the environment variables DBUSMENUDUMPER_CFLAGS
14043
and DBUSMENUDUMPER_LIBS to avoid the need to call pkg-config.
14044
See the pkg-config man page for more details.
14045
14046
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14047
See \`config.log' for more details" "$LINENO" 5; }
1.1.24 by Ken VanDine
Import upstream version 0.3.7
14048
else
14049
	DBUSMENUDUMPER_CFLAGS=$pkg_cv_DBUSMENUDUMPER_CFLAGS
14050
	DBUSMENUDUMPER_LIBS=$pkg_cv_DBUSMENUDUMPER_LIBS
14051
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14052
$as_echo "yes" >&6; }
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14053
	have_dumper=yes
14054
14055
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
14056
2 by Jonathan Riddell
Run autogen.sh before upload
14057
fi
14058
14059
14060
14061
14062
###########################
14063
# Dependencies - Testing
14064
###########################
14065
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14066
JSON_GLIB_REQUIRED_VERSION=0.13.4
1.1.21 by Ted Gould
Import upstream version 0.3.4
14067
GIO_UNIX_REQUIRED_VERSION=2.24
2 by Jonathan Riddell
Run autogen.sh before upload
14068
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14069
# Check whether --enable-tests was given.
14070
if test "${enable_tests+set}" = set; then :
14071
  enableval=$enable_tests; enable_tests=$enableval
14072
else
14073
  enable_tests=auto
14074
fi
14075
14076
 if test "x$enable_tests" != "xno"; then
14077
  WANT_TESTS_TRUE=
14078
  WANT_TESTS_FALSE='#'
14079
else
14080
  WANT_TESTS_TRUE='#'
14081
  WANT_TESTS_FALSE=
14082
fi
14083
14084
14085
if test "x$enable_tests" != "xno"; then :
14086
2 by Jonathan Riddell
Run autogen.sh before upload
14087
14088
pkg_failed=no
14089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUTESTS" >&5
14090
$as_echo_n "checking for DBUSMENUTESTS... " >&6; }
14091
1.1.27 by Ted Gould
Import upstream version 0.3.10
14092
if test -n "$DBUSMENUTESTS_CFLAGS"; then
14093
    pkg_cv_DBUSMENUTESTS_CFLAGS="$DBUSMENUTESTS_CFLAGS"
14094
 elif test -n "$PKG_CONFIG"; then
14095
    if test -n "$PKG_CONFIG" && \
1.1.21 by Ted Gould
Import upstream version 0.3.4
14096
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= \$JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14097
                                  gio-unix-2.0  >= \$GIO_UNIX_REQUIRED_VERSION
14098
                                  valgrind\""; } >&5
1.1.21 by Ted Gould
Import upstream version 0.3.4
14099
  ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14100
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14101
                                  valgrind") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
14102
  ac_status=$?
14103
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104
  test $ac_status = 0; }; then
1.1.21 by Ted Gould
Import upstream version 0.3.4
14105
  pkg_cv_DBUSMENUTESTS_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14106
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14107
                                  valgrind" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14108
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
14109
else
14110
  pkg_failed=yes
14111
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
14112
 else
14113
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
14114
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
14115
if test -n "$DBUSMENUTESTS_LIBS"; then
14116
    pkg_cv_DBUSMENUTESTS_LIBS="$DBUSMENUTESTS_LIBS"
14117
 elif test -n "$PKG_CONFIG"; then
14118
    if test -n "$PKG_CONFIG" && \
1.1.21 by Ted Gould
Import upstream version 0.3.4
14119
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= \$JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14120
                                  gio-unix-2.0  >= \$GIO_UNIX_REQUIRED_VERSION
14121
                                  valgrind\""; } >&5
1.1.21 by Ted Gould
Import upstream version 0.3.4
14122
  ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14123
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14124
                                  valgrind") 2>&5
2 by Jonathan Riddell
Run autogen.sh before upload
14125
  ac_status=$?
14126
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127
  test $ac_status = 0; }; then
1.1.21 by Ted Gould
Import upstream version 0.3.4
14128
  pkg_cv_DBUSMENUTESTS_LIBS=`$PKG_CONFIG --libs "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14129
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14130
                                  valgrind" 2>/dev/null`
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14131
		      test "x$?" != "x0" && pkg_failed=yes
2 by Jonathan Riddell
Run autogen.sh before upload
14132
else
14133
  pkg_failed=yes
14134
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
14135
 else
14136
    pkg_failed=untried
2 by Jonathan Riddell
Run autogen.sh before upload
14137
fi
14138
14139
14140
14141
if test $pkg_failed = yes; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
14142
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
14144
14145
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14146
        _pkg_short_errors_supported=yes
14147
else
14148
        _pkg_short_errors_supported=no
14149
fi
14150
        if test $_pkg_short_errors_supported = yes; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14151
	        DBUSMENUTESTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14152
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14153
                                  valgrind" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
14154
        else
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14155
	        DBUSMENUTESTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14156
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14157
                                  valgrind" 2>&1`
2 by Jonathan Riddell
Run autogen.sh before upload
14158
        fi
14159
	# Put the nasty error message in config.log where it belongs
14160
	echo "$DBUSMENUTESTS_PKG_ERRORS" >&5
14161
1.1.27 by Ted Gould
Import upstream version 0.3.10
14162
	as_fn_error $? "Package requirements (json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
1.1.62 by Ken VanDine
Import upstream version 0.5.96
14163
                                  gio-unix-2.0  >= $GIO_UNIX_REQUIRED_VERSION
14164
                                  valgrind) were not met:
2 by Jonathan Riddell
Run autogen.sh before upload
14165
14166
$DBUSMENUTESTS_PKG_ERRORS
14167
14168
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14169
installed software in a non-standard prefix.
14170
14171
Alternatively, you may set the environment variables DBUSMENUTESTS_CFLAGS
14172
and DBUSMENUTESTS_LIBS to avoid the need to call pkg-config.
1.1.27 by Ted Gould
Import upstream version 0.3.10
14173
See the pkg-config man page for more details." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
14174
elif test $pkg_failed = untried; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
14175
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176
$as_echo "no" >&6; }
2 by Jonathan Riddell
Run autogen.sh before upload
14177
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.27 by Ted Gould
Import upstream version 0.3.10
14179
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
2 by Jonathan Riddell
Run autogen.sh before upload
14180
is in your PATH or set the PKG_CONFIG environment variable to the full
14181
path to pkg-config.
14182
14183
Alternatively, you may set the environment variables DBUSMENUTESTS_CFLAGS
14184
and DBUSMENUTESTS_LIBS to avoid the need to call pkg-config.
14185
See the pkg-config man page for more details.
14186
14187
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14188
See \`config.log' for more details" "$LINENO" 5; }
2 by Jonathan Riddell
Run autogen.sh before upload
14189
else
14190
	DBUSMENUTESTS_CFLAGS=$pkg_cv_DBUSMENUTESTS_CFLAGS
14191
	DBUSMENUTESTS_LIBS=$pkg_cv_DBUSMENUTESTS_LIBS
14192
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193
$as_echo "yes" >&6; }
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14194
	have_tests=yes
14195
14196
fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
14197
2 by Jonathan Riddell
Run autogen.sh before upload
14198
fi
14199
14200
14201
14202
14203
###########################
1.1.15 by Ted Gould
Import upstream version 0.2.7
14204
# GObject Introspection
14205
###########################
14206
14207
14208
14209
14210
                # Check whether --enable-introspection was given.
14211
if test "${enable_introspection+set}" = set; then :
14212
  enableval=$enable_introspection;
14213
else
14214
  enable_introspection=auto
14215
fi
14216
14217
14218
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14219
$as_echo_n "checking for gobject-introspection... " >&6; }
14220
14221
        case $enable_introspection in #(
14222
  no) :
14223
            found_introspection="no (disabled, use --enable-introspection to enable)"
14224
     ;; #(
14225
      yes) :
14226
            if test -n "$PKG_CONFIG" && \
14227
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14228
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14229
  ac_status=$?
14230
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231
  test $ac_status = 0; }; then
14232
  :
14233
else
1.1.27 by Ted Gould
Import upstream version 0.3.10
14234
  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
1.1.15 by Ted Gould
Import upstream version 0.2.7
14235
fi
14236
        if test -n "$PKG_CONFIG" && \
14237
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
14238
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
14239
  ac_status=$?
14240
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241
  test $ac_status = 0; }; then
14242
  found_introspection=yes
14243
else
1.1.27 by Ted Gould
Import upstream version 0.3.10
14244
  as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build libdbusmenu" "$LINENO" 5
1.1.15 by Ted Gould
Import upstream version 0.2.7
14245
fi
14246
     ;; #(
14247
      auto) :
14248
            if test -n "$PKG_CONFIG" && \
14249
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
14250
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
14251
  ac_status=$?
14252
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14253
  test $ac_status = 0; }; then
14254
  found_introspection=yes
14255
else
14256
  found_introspection=no
14257
fi
14258
     ;; #(
14259
  *) :
1.1.27 by Ted Gould
Import upstream version 0.3.10
14260
                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
1.1.15 by Ted Gould
Import upstream version 0.2.7
14261
     ;;
14262
esac
14263
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14264
$as_echo "$found_introspection" >&6; }
14265
14266
    INTROSPECTION_SCANNER=
14267
    INTROSPECTION_COMPILER=
14268
    INTROSPECTION_GENERATE=
14269
    INTROSPECTION_GIRDIR=
14270
    INTROSPECTION_TYPELIBDIR=
14271
    if test "x$found_introspection" = "xyes"; then
14272
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14273
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14274
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14275
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14276
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14277
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14278
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14279
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14280
    fi
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
     if test "x$found_introspection" = "xyes"; then
14291
  HAVE_INTROSPECTION_TRUE=
14292
  HAVE_INTROSPECTION_FALSE='#'
14293
else
14294
  HAVE_INTROSPECTION_TRUE='#'
14295
  HAVE_INTROSPECTION_FALSE=
14296
fi
14297
14298
14299
14300
1.1.34 by Ted Gould
Import upstream version 0.3.91
14301
if test -n "$PKG_CONFIG" && \
14302
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.10\""; } >&5
14303
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.10") 2>&5
14304
  ac_status=$?
14305
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306
  test $ac_status = 0; }; then
14307
  introspection_ten=yes
14308
else
14309
  introspection_ten=no
14310
fi
14311
14312
 if test "x$introspection_ten" = "xyes"; then
14313
  INTROSPECTION_TEN_TRUE=
14314
  INTROSPECTION_TEN_FALSE='#'
14315
else
14316
  INTROSPECTION_TEN_TRUE='#'
14317
  INTROSPECTION_TEN_FALSE=
14318
fi
14319
14320
1.1.15 by Ted Gould
Import upstream version 0.2.7
14321
###########################
14322
# Vala API Generation
14323
###########################
14324
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14325
# Check whether --enable-vala was given.
14326
if test "${enable_vala+set}" = set; then :
14327
  enableval=$enable_vala; enable_vala=$enableval
14328
else
14329
  enable_vala=auto
14330
fi
14331
14332
14333
if test "x$enable_vala" != "xno"; then :
14334
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
14335
	if test -z "$HAVE_INTROSPECTION_TRUE"; then :
14336
  else
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14337
14338
		as_fn_error $? "Vala bindings require introspection support, please --enable-introspection" "$LINENO" 5
14339
14340
fi
1.1.15 by Ted Gould
Import upstream version 0.2.7
14341
# Extract the first word of "vapigen", so it can be a program name with args.
14342
set dummy vapigen; ac_word=$2
14343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14344
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14345
if ${ac_cv_path_VALA_API_GEN+:} false; then :
1.1.15 by Ted Gould
Import upstream version 0.2.7
14346
  $as_echo_n "(cached) " >&6
14347
else
14348
  case $VALA_API_GEN in
14349
  [\\/]* | ?:[\\/]*)
14350
  ac_cv_path_VALA_API_GEN="$VALA_API_GEN" # Let the user override the test with a path.
14351
  ;;
14352
  *)
14353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354
for as_dir in $PATH
14355
do
14356
  IFS=$as_save_IFS
14357
  test -z "$as_dir" && as_dir=.
14358
    for ac_exec_ext in '' $ac_executable_extensions; do
14359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14360
    ac_cv_path_VALA_API_GEN="$as_dir/$ac_word$ac_exec_ext"
14361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14362
    break 2
14363
  fi
14364
done
14365
  done
14366
IFS=$as_save_IFS
14367
14368
  ;;
14369
esac
14370
fi
14371
VALA_API_GEN=$ac_cv_path_VALA_API_GEN
14372
if test -n "$VALA_API_GEN"; then
14373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALA_API_GEN" >&5
14374
$as_echo "$VALA_API_GEN" >&6; }
14375
else
14376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377
$as_echo "no" >&6; }
14378
fi
14379
14380
14381
1.1.53 by Ken VanDine
Import upstream version 0.4.94
14382
fi
14383
 if test -n "$VALA_API_GEN"; then
14384
  HAVE_VALA_TRUE=
14385
  HAVE_VALA_FALSE='#'
14386
else
14387
  HAVE_VALA_TRUE='#'
14388
  HAVE_VALA_FALSE=
14389
fi
14390
14391
1.1.15 by Ted Gould
Import upstream version 0.2.7
14392
###########################
1.1.34 by Ted Gould
Import upstream version 0.3.91
14393
# XSLT Processor
14394
###########################
14395
14396
# Extract the first word of "xsltproc", so it can be a program name with args.
14397
set dummy xsltproc; ac_word=$2
14398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14400
if ${ac_cv_path_XSLT_PROC+:} false; then :
1.1.34 by Ted Gould
Import upstream version 0.3.91
14401
  $as_echo_n "(cached) " >&6
14402
else
14403
  case $XSLT_PROC in
14404
  [\\/]* | ?:[\\/]*)
14405
  ac_cv_path_XSLT_PROC="$XSLT_PROC" # Let the user override the test with a path.
14406
  ;;
14407
  *)
14408
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14409
for as_dir in $PATH
14410
do
14411
  IFS=$as_save_IFS
14412
  test -z "$as_dir" && as_dir=.
14413
    for ac_exec_ext in '' $ac_executable_extensions; do
14414
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14415
    ac_cv_path_XSLT_PROC="$as_dir/$ac_word$ac_exec_ext"
14416
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14417
    break 2
14418
  fi
14419
done
14420
  done
14421
IFS=$as_save_IFS
14422
14423
  ;;
14424
esac
14425
fi
14426
XSLT_PROC=$ac_cv_path_XSLT_PROC
14427
if test -n "$XSLT_PROC"; then
14428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_PROC" >&5
14429
$as_echo "$XSLT_PROC" >&6; }
14430
else
14431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432
$as_echo "no" >&6; }
14433
fi
14434
14435
14436
14437
###########################
2 by Jonathan Riddell
Run autogen.sh before upload
14438
# Lib versioning
14439
###########################
14440
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14441
LIBDBUSMENU_CURRENT=4
1.1.61 by Ted Gould
Import upstream version 0.5.95
14442
LIBDBUSMENU_REVISION=12
2 by Jonathan Riddell
Run autogen.sh before upload
14443
LIBDBUSMENU_AGE=0
14444
14445
14446
14447
14448
14449
###########################
14450
# Internationalization
14451
###########################
14452
14453
GETTEXT_PACKAGE=libdbusmenu
14454
14455
14456
cat >>confdefs.h <<_ACEOF
14457
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14458
_ACEOF
14459
14460
14461
14462
   for ac_header in locale.h
14463
do :
14464
  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14465
if test "x$ac_cv_header_locale_h" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14466
  cat >>confdefs.h <<_ACEOF
14467
#define HAVE_LOCALE_H 1
14468
_ACEOF
14469
14470
fi
14471
14472
done
14473
14474
    if test $ac_cv_header_locale_h = yes; then
14475
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14476
$as_echo_n "checking for LC_MESSAGES... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14477
if ${am_cv_val_LC_MESSAGES+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14478
  $as_echo_n "(cached) " >&6
14479
else
14480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481
/* end confdefs.h.  */
14482
#include <locale.h>
14483
int
14484
main ()
14485
{
14486
return LC_MESSAGES
14487
  ;
14488
  return 0;
14489
}
14490
_ACEOF
14491
if ac_fn_c_try_link "$LINENO"; then :
14492
  am_cv_val_LC_MESSAGES=yes
14493
else
14494
  am_cv_val_LC_MESSAGES=no
14495
fi
14496
rm -f core conftest.err conftest.$ac_objext \
14497
    conftest$ac_exeext conftest.$ac_ext
14498
fi
14499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14500
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14501
    if test $am_cv_val_LC_MESSAGES = yes; then
14502
14503
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14504
14505
    fi
14506
  fi
14507
     USE_NLS=yes
14508
14509
14510
    gt_cv_have_gettext=no
14511
14512
    CATOBJEXT=NONE
14513
    XGETTEXT=:
14514
    INTLLIBS=
14515
14516
    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14517
if test "x$ac_cv_header_libintl_h" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14518
  gt_cv_func_dgettext_libintl="no"
14519
      libintl_extra_libs=""
14520
14521
      #
14522
      # First check in libc
14523
      #
14524
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
14525
$as_echo_n "checking for ngettext in libc... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14526
if ${gt_cv_func_ngettext_libc+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14527
  $as_echo_n "(cached) " >&6
14528
else
14529
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530
/* end confdefs.h.  */
14531
14532
#include <libintl.h>
14533
14534
int
14535
main ()
14536
{
14537
return !ngettext ("","", 1)
14538
  ;
14539
  return 0;
14540
}
14541
_ACEOF
14542
if ac_fn_c_try_link "$LINENO"; then :
14543
  gt_cv_func_ngettext_libc=yes
14544
else
14545
  gt_cv_func_ngettext_libc=no
14546
fi
14547
rm -f core conftest.err conftest.$ac_objext \
14548
    conftest$ac_exeext conftest.$ac_ext
14549
14550
fi
14551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
14552
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
14553
14554
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14555
	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
14556
$as_echo_n "checking for dgettext in libc... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14557
if ${gt_cv_func_dgettext_libc+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14558
  $as_echo_n "(cached) " >&6
14559
else
14560
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561
/* end confdefs.h.  */
14562
14563
#include <libintl.h>
14564
14565
int
14566
main ()
14567
{
14568
return !dgettext ("","")
14569
  ;
14570
  return 0;
14571
}
14572
_ACEOF
14573
if ac_fn_c_try_link "$LINENO"; then :
14574
  gt_cv_func_dgettext_libc=yes
14575
else
14576
  gt_cv_func_dgettext_libc=no
14577
fi
14578
rm -f core conftest.err conftest.$ac_objext \
14579
    conftest$ac_exeext conftest.$ac_ext
14580
14581
fi
14582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
14583
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
14584
      fi
14585
14586
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14587
        for ac_func in bind_textdomain_codeset
14588
do :
14589
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14590
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14591
  cat >>confdefs.h <<_ACEOF
14592
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14593
_ACEOF
14594
14595
fi
14596
done
14597
14598
      fi
14599
14600
      #
14601
      # If we don't have everything we want, check in libintl
14602
      #
14603
      if test "$gt_cv_func_dgettext_libc" != "yes" \
14604
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
14605
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14606
14607
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
14608
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14609
if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14610
  $as_echo_n "(cached) " >&6
14611
else
14612
  ac_check_lib_save_LIBS=$LIBS
14613
LIBS="-lintl  $LIBS"
14614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615
/* end confdefs.h.  */
14616
14617
/* Override any GCC internal prototype to avoid an error.
14618
   Use char because int might match the return type of a GCC
14619
   builtin and then its argument prototype would still apply.  */
14620
#ifdef __cplusplus
14621
extern "C"
14622
#endif
14623
char bindtextdomain ();
14624
int
14625
main ()
14626
{
14627
return bindtextdomain ();
14628
  ;
14629
  return 0;
14630
}
14631
_ACEOF
14632
if ac_fn_c_try_link "$LINENO"; then :
14633
  ac_cv_lib_intl_bindtextdomain=yes
14634
else
14635
  ac_cv_lib_intl_bindtextdomain=no
14636
fi
14637
rm -f core conftest.err conftest.$ac_objext \
14638
    conftest$ac_exeext conftest.$ac_ext
14639
LIBS=$ac_check_lib_save_LIBS
14640
fi
14641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
14642
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14643
if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14644
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
14645
$as_echo_n "checking for ngettext in -lintl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14646
if ${ac_cv_lib_intl_ngettext+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14647
  $as_echo_n "(cached) " >&6
14648
else
14649
  ac_check_lib_save_LIBS=$LIBS
14650
LIBS="-lintl  $LIBS"
14651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652
/* end confdefs.h.  */
14653
14654
/* Override any GCC internal prototype to avoid an error.
14655
   Use char because int might match the return type of a GCC
14656
   builtin and then its argument prototype would still apply.  */
14657
#ifdef __cplusplus
14658
extern "C"
14659
#endif
14660
char ngettext ();
14661
int
14662
main ()
14663
{
14664
return ngettext ();
14665
  ;
14666
  return 0;
14667
}
14668
_ACEOF
14669
if ac_fn_c_try_link "$LINENO"; then :
14670
  ac_cv_lib_intl_ngettext=yes
14671
else
14672
  ac_cv_lib_intl_ngettext=no
14673
fi
14674
rm -f core conftest.err conftest.$ac_objext \
14675
    conftest$ac_exeext conftest.$ac_ext
14676
LIBS=$ac_check_lib_save_LIBS
14677
fi
14678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
14679
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14680
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14681
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14682
$as_echo_n "checking for dgettext in -lintl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14683
if ${ac_cv_lib_intl_dgettext+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14684
  $as_echo_n "(cached) " >&6
14685
else
14686
  ac_check_lib_save_LIBS=$LIBS
14687
LIBS="-lintl  $LIBS"
14688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689
/* end confdefs.h.  */
14690
14691
/* Override any GCC internal prototype to avoid an error.
14692
   Use char because int might match the return type of a GCC
14693
   builtin and then its argument prototype would still apply.  */
14694
#ifdef __cplusplus
14695
extern "C"
14696
#endif
14697
char dgettext ();
14698
int
14699
main ()
14700
{
14701
return dgettext ();
14702
  ;
14703
  return 0;
14704
}
14705
_ACEOF
14706
if ac_fn_c_try_link "$LINENO"; then :
14707
  ac_cv_lib_intl_dgettext=yes
14708
else
14709
  ac_cv_lib_intl_dgettext=no
14710
fi
14711
rm -f core conftest.err conftest.$ac_objext \
14712
    conftest$ac_exeext conftest.$ac_ext
14713
LIBS=$ac_check_lib_save_LIBS
14714
fi
14715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14716
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14717
if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14718
  gt_cv_func_dgettext_libintl=yes
14719
fi
14720
14721
fi
14722
14723
fi
14724
14725
14726
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14727
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
14728
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
14729
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14730
$as_echo "" >&6; }
14731
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
14732
$as_echo_n "checking for ngettext in -lintl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14733
if ${ac_cv_lib_intl_ngettext+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14734
  $as_echo_n "(cached) " >&6
14735
else
14736
  ac_check_lib_save_LIBS=$LIBS
14737
LIBS="-lintl -liconv $LIBS"
14738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739
/* end confdefs.h.  */
14740
14741
/* Override any GCC internal prototype to avoid an error.
14742
   Use char because int might match the return type of a GCC
14743
   builtin and then its argument prototype would still apply.  */
14744
#ifdef __cplusplus
14745
extern "C"
14746
#endif
14747
char ngettext ();
14748
int
14749
main ()
14750
{
14751
return ngettext ();
14752
  ;
14753
  return 0;
14754
}
14755
_ACEOF
14756
if ac_fn_c_try_link "$LINENO"; then :
14757
  ac_cv_lib_intl_ngettext=yes
14758
else
14759
  ac_cv_lib_intl_ngettext=no
14760
fi
14761
rm -f core conftest.err conftest.$ac_objext \
14762
    conftest$ac_exeext conftest.$ac_ext
14763
LIBS=$ac_check_lib_save_LIBS
14764
fi
14765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
14766
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14767
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14768
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
14769
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14770
if ${ac_cv_lib_intl_dcgettext+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14771
  $as_echo_n "(cached) " >&6
14772
else
14773
  ac_check_lib_save_LIBS=$LIBS
14774
LIBS="-lintl -liconv $LIBS"
14775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776
/* end confdefs.h.  */
14777
14778
/* Override any GCC internal prototype to avoid an error.
14779
   Use char because int might match the return type of a GCC
14780
   builtin and then its argument prototype would still apply.  */
14781
#ifdef __cplusplus
14782
extern "C"
14783
#endif
14784
char dcgettext ();
14785
int
14786
main ()
14787
{
14788
return dcgettext ();
14789
  ;
14790
  return 0;
14791
}
14792
_ACEOF
14793
if ac_fn_c_try_link "$LINENO"; then :
14794
  ac_cv_lib_intl_dcgettext=yes
14795
else
14796
  ac_cv_lib_intl_dcgettext=no
14797
fi
14798
rm -f core conftest.err conftest.$ac_objext \
14799
    conftest$ac_exeext conftest.$ac_ext
14800
LIBS=$ac_check_lib_save_LIBS
14801
fi
14802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
14803
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14804
if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14805
  gt_cv_func_dgettext_libintl=yes
14806
			libintl_extra_libs=-liconv
14807
else
14808
  :
14809
fi
14810
14811
else
14812
  :
14813
fi
14814
14815
        fi
14816
14817
        #
14818
        # If we found libintl, then check in it for bind_textdomain_codeset();
14819
        # we'll prefer libc if neither have bind_textdomain_codeset(),
14820
        # and both have dgettext and ngettext
14821
        #
14822
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14823
          glib_save_LIBS="$LIBS"
14824
          LIBS="$LIBS -lintl $libintl_extra_libs"
14825
          unset ac_cv_func_bind_textdomain_codeset
14826
          for ac_func in bind_textdomain_codeset
14827
do :
14828
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14829
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14830
  cat >>confdefs.h <<_ACEOF
14831
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14832
_ACEOF
14833
14834
fi
14835
done
14836
14837
          LIBS="$glib_save_LIBS"
14838
14839
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14840
            gt_cv_func_dgettext_libc=no
14841
          else
14842
            if test "$gt_cv_func_dgettext_libc" = "yes" \
14843
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
14844
              gt_cv_func_dgettext_libintl=no
14845
            fi
14846
          fi
14847
        fi
14848
      fi
14849
14850
      if test "$gt_cv_func_dgettext_libc" = "yes" \
14851
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
14852
        gt_cv_have_gettext=yes
14853
      fi
14854
14855
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
14856
        INTLLIBS="-lintl $libintl_extra_libs"
14857
      fi
14858
14859
      if test "$gt_cv_have_gettext" = "yes"; then
14860
14861
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14862
14863
	# Extract the first word of "msgfmt", so it can be a program name with args.
14864
set dummy msgfmt; ac_word=$2
14865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14866
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14867
if ${ac_cv_path_MSGFMT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14868
  $as_echo_n "(cached) " >&6
14869
else
14870
  case "$MSGFMT" in
14871
  /*)
14872
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14873
  ;;
14874
  *)
14875
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14876
  for ac_dir in $PATH; do
14877
    test -z "$ac_dir" && ac_dir=.
14878
    if test -f $ac_dir/$ac_word; then
14879
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
14880
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14881
	break
14882
      fi
14883
    fi
14884
  done
14885
  IFS="$ac_save_ifs"
14886
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
14887
  ;;
14888
esac
14889
fi
14890
MSGFMT="$ac_cv_path_MSGFMT"
14891
if test "$MSGFMT" != "no"; then
14892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14893
$as_echo "$MSGFMT" >&6; }
14894
else
14895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896
$as_echo "no" >&6; }
14897
fi
14898
	if test "$MSGFMT" != "no"; then
14899
          glib_save_LIBS="$LIBS"
14900
          LIBS="$LIBS $INTLLIBS"
14901
	  for ac_func in dcgettext
14902
do :
14903
  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14904
if test "x$ac_cv_func_dcgettext" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14905
  cat >>confdefs.h <<_ACEOF
14906
#define HAVE_DCGETTEXT 1
14907
_ACEOF
14908
14909
fi
14910
done
14911
14912
	  MSGFMT_OPTS=
14913
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
14914
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
14915
	  cat >conftest.foo <<_ACEOF
14916
14917
msgid ""
14918
msgstr ""
14919
"Content-Type: text/plain; charset=UTF-8\n"
14920
"Project-Id-Version: test 1.0\n"
14921
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
14922
"Last-Translator: test <foo@bar.xx>\n"
14923
"Language-Team: C <LL@li.org>\n"
14924
"MIME-Version: 1.0\n"
14925
"Content-Transfer-Encoding: 8bit\n"
14926
14927
_ACEOF
14928
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
14929
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
14930
  ac_status=$?
14931
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14932
  test $ac_status = 0; }; then
14933
  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14934
$as_echo "yes" >&6; }
14935
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936
$as_echo "no" >&6; }
14937
echo "$as_me: failed input was:" >&5
14938
sed 's/^/| /' conftest.foo >&5
14939
fi
14940
14941
	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14942
set dummy gmsgfmt; ac_word=$2
14943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14945
if ${ac_cv_path_GMSGFMT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14946
  $as_echo_n "(cached) " >&6
14947
else
14948
  case $GMSGFMT in
14949
  [\\/]* | ?:[\\/]*)
14950
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14951
  ;;
14952
  *)
14953
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954
for as_dir in $PATH
14955
do
14956
  IFS=$as_save_IFS
14957
  test -z "$as_dir" && as_dir=.
14958
    for ac_exec_ext in '' $ac_executable_extensions; do
14959
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14960
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14961
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962
    break 2
14963
  fi
14964
done
14965
  done
14966
IFS=$as_save_IFS
14967
14968
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14969
  ;;
14970
esac
14971
fi
14972
GMSGFMT=$ac_cv_path_GMSGFMT
14973
if test -n "$GMSGFMT"; then
14974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14975
$as_echo "$GMSGFMT" >&6; }
14976
else
14977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978
$as_echo "no" >&6; }
14979
fi
14980
14981
14982
	  # Extract the first word of "xgettext", so it can be a program name with args.
14983
set dummy xgettext; ac_word=$2
14984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14985
$as_echo_n "checking for $ac_word... " >&6; }
1.1.50 by Ken VanDine
Import upstream version 0.4.90
14986
if ${ac_cv_path_XGETTEXT+:} false; then :
2 by Jonathan Riddell
Run autogen.sh before upload
14987
  $as_echo_n "(cached) " >&6
14988
else
14989
  case "$XGETTEXT" in
14990
  /*)
14991
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14992
  ;;
14993
  *)
14994
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14995
  for ac_dir in $PATH; do
14996
    test -z "$ac_dir" && ac_dir=.
14997
    if test -f $ac_dir/$ac_word; then
14998
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
14999
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15000
	break
15001
      fi
15002
    fi
15003
  done
15004
  IFS="$ac_save_ifs"
15005
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15006
  ;;
15007
esac
15008
fi
15009
XGETTEXT="$ac_cv_path_XGETTEXT"
15010
if test "$XGETTEXT" != ":"; then
15011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15012
$as_echo "$XGETTEXT" >&6; }
15013
else
15014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015
$as_echo "no" >&6; }
15016
fi
15017
15018
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019
/* end confdefs.h.  */
15020
15021
int
15022
main ()
15023
{
15024
extern int _nl_msg_cat_cntr;
15025
			 return _nl_msg_cat_cntr
15026
  ;
15027
  return 0;
15028
}
15029
_ACEOF
15030
if ac_fn_c_try_link "$LINENO"; then :
15031
  CATOBJEXT=.gmo
15032
             DATADIRNAME=share
15033
else
15034
  case $host in
15035
	    *-*-solaris*)
15036
	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15037
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
2 by Jonathan Riddell
Run autogen.sh before upload
15038
  CATOBJEXT=.gmo
15039
               DATADIRNAME=share
15040
else
15041
  CATOBJEXT=.mo
15042
               DATADIRNAME=lib
15043
fi
15044
15045
	    ;;
1.1.56 by Ken VanDine
Import upstream version 0.5.90
15046
	    *-*-openbsd*)
15047
	    CATOBJEXT=.mo
15048
            DATADIRNAME=share
15049
	    ;;
2 by Jonathan Riddell
Run autogen.sh before upload
15050
	    *)
15051
	    CATOBJEXT=.mo
15052
            DATADIRNAME=lib
15053
	    ;;
15054
	    esac
15055
fi
15056
rm -f core conftest.err conftest.$ac_objext \
15057
    conftest$ac_exeext conftest.$ac_ext
15058
          LIBS="$glib_save_LIBS"
15059
	  INSTOBJEXT=.mo
15060
	else
15061
	  gt_cv_have_gettext=no
15062
	fi
15063
      fi
15064
15065
fi
15066
15067
15068
15069
    if test "$gt_cv_have_gettext" = "yes" ; then
15070
15071
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15072
15073
    fi
15074
15075
        if test "$XGETTEXT" != ":"; then
15076
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15077
        : ;
15078
      else
15079
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15080
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15081
        XGETTEXT=":"
15082
      fi
15083
    fi
15084
15085
    # We need to process the po/ directory.
15086
    POSUB=po
15087
15088
    ac_config_commands="$ac_config_commands default-1"
15089
15090
15091
                for lang in $ALL_LINGUAS; do
15092
      GMOFILES="$GMOFILES $lang.gmo"
15093
      POFILES="$POFILES $lang.po"
15094
    done
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
   if test "$gt_cv_have_gettext" = "yes"; then
15109
     if test "x$ALL_LINGUAS" = "x"; then
15110
       LINGUAS=
15111
     else
15112
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15113
$as_echo_n "checking for catalogs to be installed... " >&6; }
15114
       NEW_LINGUAS=
15115
       for presentlang in $ALL_LINGUAS; do
15116
         useit=no
15117
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15118
           desiredlanguages="$LINGUAS"
15119
         else
15120
           desiredlanguages="$ALL_LINGUAS"
15121
         fi
15122
         for desiredlang in $desiredlanguages; do
15123
 	   # Use the presentlang catalog if desiredlang is
15124
           #   a. equal to presentlang, or
15125
           #   b. a variant of presentlang (because in this case,
15126
           #      presentlang can be used as a fallback for messages
15127
           #      which are not translated in the desiredlang catalog).
15128
           case "$desiredlang" in
15129
             "$presentlang"*) useit=yes;;
15130
           esac
15131
         done
15132
         if test $useit = yes; then
15133
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15134
         fi
15135
       done
15136
       LINGUAS=$NEW_LINGUAS
15137
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15138
$as_echo "$LINGUAS" >&6; }
15139
     fi
15140
15141
          if test -n "$LINGUAS"; then
15142
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15143
     fi
15144
   fi
15145
15146
            MKINSTALLDIRS=
15147
   if test -n "$ac_aux_dir"; then
15148
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15149
   fi
15150
   if test -z "$MKINSTALLDIRS"; then
15151
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15152
   fi
15153
15154
15155
         test -d po || mkdir po
15156
   if test "x$srcdir" != "x."; then
15157
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15158
       posrcprefix="$srcdir/"
15159
     else
15160
       posrcprefix="../$srcdir/"
15161
     fi
15162
   else
15163
     posrcprefix="../"
15164
   fi
15165
   rm -f po/POTFILES
15166
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15167
	< $srcdir/po/POTFILES.in > po/POTFILES
15168
15169
15170
###########################
1.1.6 by Ted Gould
Import upstream version 0.1.6
15171
# Massive Debugging
15172
###########################
15173
15174
with_massivedebugging="no"
15175
# Check whether --enable-massivedebugging was given.
15176
if test "${enable_massivedebugging+set}" = set; then :
15177
  enableval=$enable_massivedebugging; with_massivedebugging=$enableval
15178
else
15179
  with_massivedebugging=no
15180
fi
15181
15182
if test "x$with_massivedebugging" = "xyes"; then
15183
15184
$as_echo "#define MASSIVEDEBUGGING 1" >>confdefs.h
15185
15186
fi
15187
15188
###########################
2 by Jonathan Riddell
Run autogen.sh before upload
15189
# Files
15190
###########################
15191
1.1.34 by Ted Gould
Import upstream version 0.3.91
15192
ac_config_files="$ac_config_files Makefile po/Makefile.in libdbusmenu-glib/Makefile libdbusmenu-glib/dbusmenu-glib-0.4.pc libdbusmenu-gtk/Makefile libdbusmenu-gtk/dbusmenu-gtk-0.4.pc libdbusmenu-gtk/dbusmenu-gtk3-0.4.pc tools/Makefile tools/testapp/Makefile tests/Makefile tests/dbusmenu-jsonloader-0.4.pc docs/Makefile docs/libdbusmenu-glib/Makefile docs/libdbusmenu-glib/reference/Makefile docs/libdbusmenu-glib/reference/version.xml docs/libdbusmenu-gtk/Makefile docs/libdbusmenu-gtk/reference/Makefile docs/libdbusmenu-gtk/reference/version.xml"
2 by Jonathan Riddell
Run autogen.sh before upload
15193
15194
cat >confcache <<\_ACEOF
15195
# This file is a shell script that caches the results of configure
15196
# tests run on this system so they can be shared between configure
15197
# scripts and configure runs, see configure's option --config-cache.
15198
# It is not useful on other systems.  If it contains results you don't
15199
# want to keep, you may remove or edit it.
15200
#
15201
# config.status only pays attention to the cache file if you give it
15202
# the --recheck option to rerun configure.
15203
#
15204
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15205
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15206
# following values.
15207
15208
_ACEOF
15209
15210
# The following way of writing the cache mishandles newlines in values,
15211
# but we know of no workaround that is simple, portable, and efficient.
15212
# So, we kill variables containing newlines.
15213
# Ultrix sh set writes to stderr and can't be redirected directly,
15214
# and sets the high bit in the cache file unless we assign to the vars.
15215
(
15216
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15217
    eval ac_val=\$$ac_var
15218
    case $ac_val in #(
15219
    *${as_nl}*)
15220
      case $ac_var in #(
15221
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15222
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15223
      esac
15224
      case $ac_var in #(
15225
      _ | IFS | as_nl) ;; #(
15226
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15227
      *) { eval $ac_var=; unset $ac_var;} ;;
15228
      esac ;;
15229
    esac
15230
  done
15231
15232
  (set) 2>&1 |
15233
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15234
    *${as_nl}ac_space=\ *)
15235
      # `set' does not quote correctly, so add quotes: double-quote
15236
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15237
      sed -n \
15238
	"s/'/'\\\\''/g;
15239
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15240
      ;; #(
15241
    *)
15242
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15243
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15244
      ;;
15245
    esac |
15246
    sort
15247
) |
15248
  sed '
15249
     /^ac_cv_env_/b end
15250
     t clear
15251
     :clear
15252
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15253
     t end
15254
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15255
     :end' >>confcache
15256
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15257
  if test -w "$cache_file"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15258
    if test "x$cache_file" != "x/dev/null"; then
2 by Jonathan Riddell
Run autogen.sh before upload
15259
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15260
$as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15261
      if test ! -f "$cache_file" || test -h "$cache_file"; then
15262
	cat confcache >"$cache_file"
15263
      else
15264
        case $cache_file in #(
15265
        */* | ?:*)
15266
	  mv -f confcache "$cache_file"$$ &&
15267
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15268
        *)
15269
	  mv -f confcache "$cache_file" ;;
15270
	esac
15271
      fi
15272
    fi
2 by Jonathan Riddell
Run autogen.sh before upload
15273
  else
15274
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15275
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15276
  fi
15277
fi
15278
rm -f confcache
15279
15280
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15281
# Let make expand exec_prefix.
15282
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15283
15284
DEFS=-DHAVE_CONFIG_H
15285
15286
ac_libobjs=
15287
ac_ltlibobjs=
1.1.27 by Ted Gould
Import upstream version 0.3.10
15288
U=
2 by Jonathan Riddell
Run autogen.sh before upload
15289
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15290
  # 1. Remove the extension, and $U if already installed.
15291
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15292
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15293
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15294
  #    will be set to the directory where LIBOBJS objects are built.
15295
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15296
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15297
done
15298
LIBOBJS=$ac_libobjs
15299
15300
LTLIBOBJS=$ac_ltlibobjs
15301
15302
1.1.1 by Martin Pitt
Import upstream version 0.1.0
15303
 if test -n "$EXEEXT"; then
15304
  am__EXEEXT_TRUE=
15305
  am__EXEEXT_FALSE='#'
15306
else
15307
  am__EXEEXT_TRUE='#'
15308
  am__EXEEXT_FALSE=
15309
fi
15310
2 by Jonathan Riddell
Run autogen.sh before upload
15311
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15312
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
2 by Jonathan Riddell
Run autogen.sh before upload
15313
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314
fi
15315
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15316
  as_fn_error $? "conditional \"AMDEP\" was never defined.
2 by Jonathan Riddell
Run autogen.sh before upload
15317
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318
fi
15319
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15320
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
2 by Jonathan Riddell
Run autogen.sh before upload
15321
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322
fi
15323
15324
  ac_config_commands="$ac_config_commands po/stamp-it"
15325
15326
15327
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15328
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
2 by Jonathan Riddell
Run autogen.sh before upload
15329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330
fi
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15331
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15332
  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15333
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334
fi
15335
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15336
  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15337
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338
fi
15339
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15340
  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15341
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342
fi
15343
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15344
  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15345
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346
fi
15347
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15348
  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15349
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350
fi
15351
if test -z "${ENABLE_SK_TRUE}" && test -z "${ENABLE_SK_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15352
  as_fn_error $? "conditional \"ENABLE_SK\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15353
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354
fi
15355
if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15356
  as_fn_error $? "conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
1.1.19 by Ken VanDine
Import upstream version 0.3.2
15357
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358
fi
1.1.53 by Ken VanDine
Import upstream version 0.4.94
15359
if test -z "${WANT_LIBDBUSMENUGTK_TRUE}" && test -z "${WANT_LIBDBUSMENUGTK_FALSE}"; then
15360
  as_fn_error $? "conditional \"WANT_LIBDBUSMENUGTK\" was never defined.
15361
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362
fi
1.1.33 by Ken VanDine
Import upstream version 0.3.90
15363
if test -z "${USE_GTK3_TRUE}" && test -z "${USE_GTK3_FALSE}"; then
15364
  as_fn_error $? "conditional \"USE_GTK3\" was never defined.
15365
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366
fi
1.1.53 by Ken VanDine
Import upstream version 0.4.94
15367
if test -z "${WANT_DBUSMENUDUMPER_TRUE}" && test -z "${WANT_DBUSMENUDUMPER_FALSE}"; then
15368
  as_fn_error $? "conditional \"WANT_DBUSMENUDUMPER\" was never defined.
15369
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370
fi
15371
if test -z "${WANT_TESTS_TRUE}" && test -z "${WANT_TESTS_FALSE}"; then
15372
  as_fn_error $? "conditional \"WANT_TESTS\" was never defined.
15373
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374
fi
1.1.15 by Ted Gould
Import upstream version 0.2.7
15375
if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
15376
  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
1.1.15 by Ted Gould
Import upstream version 0.2.7
15377
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378
fi
1.1.34 by Ted Gould
Import upstream version 0.3.91
15379
if test -z "${INTROSPECTION_TEN_TRUE}" && test -z "${INTROSPECTION_TEN_FALSE}"; then
15380
  as_fn_error $? "conditional \"INTROSPECTION_TEN\" was never defined.
15381
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382
fi
1.1.53 by Ken VanDine
Import upstream version 0.4.94
15383
if test -z "${HAVE_VALA_TRUE}" && test -z "${HAVE_VALA_FALSE}"; then
15384
  as_fn_error $? "conditional \"HAVE_VALA\" was never defined.
15385
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386
fi
2 by Jonathan Riddell
Run autogen.sh before upload
15387
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15388
: "${CONFIG_STATUS=./config.status}"
2 by Jonathan Riddell
Run autogen.sh before upload
15389
ac_write_fail=0
15390
ac_clean_files_save=$ac_clean_files
15391
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15392
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15393
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15394
as_write_fail=0
15395
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15396
#! $SHELL
15397
# Generated by $as_me.
15398
# Run this file to recreate the current configuration.
15399
# Compiler output produced by configure, useful for debugging
15400
# configure, is in config.log if it exists.
15401
15402
debug=false
15403
ac_cs_recheck=false
15404
ac_cs_silent=false
15405
15406
SHELL=\${CONFIG_SHELL-$SHELL}
15407
export SHELL
15408
_ASEOF
15409
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15410
## -------------------- ##
15411
## M4sh Initialization. ##
15412
## -------------------- ##
15413
15414
# Be more Bourne compatible
15415
DUALCASE=1; export DUALCASE # for MKS sh
15416
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15417
  emulate sh
15418
  NULLCMD=:
15419
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15420
  # is contrary to our usage.  Disable this feature.
15421
  alias -g '${1+"$@"}'='"$@"'
15422
  setopt NO_GLOB_SUBST
15423
else
15424
  case `(set -o) 2>/dev/null` in #(
15425
  *posix*) :
15426
    set -o posix ;; #(
15427
  *) :
15428
     ;;
15429
esac
15430
fi
15431
15432
15433
as_nl='
15434
'
15435
export as_nl
15436
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15437
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15438
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15439
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15440
# Prefer a ksh shell builtin over an external printf program on Solaris,
15441
# but without wasting forks for bash or zsh.
15442
if test -z "$BASH_VERSION$ZSH_VERSION" \
15443
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15444
  as_echo='print -r --'
15445
  as_echo_n='print -rn --'
15446
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15447
  as_echo='printf %s\n'
15448
  as_echo_n='printf %s'
15449
else
15450
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15451
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15452
    as_echo_n='/usr/ucb/echo -n'
15453
  else
15454
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15455
    as_echo_n_body='eval
15456
      arg=$1;
15457
      case $arg in #(
15458
      *"$as_nl"*)
15459
	expr "X$arg" : "X\\(.*\\)$as_nl";
15460
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15461
      esac;
15462
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15463
    '
15464
    export as_echo_n_body
15465
    as_echo_n='sh -c $as_echo_n_body as_echo'
15466
  fi
15467
  export as_echo_body
15468
  as_echo='sh -c $as_echo_body as_echo'
15469
fi
15470
15471
# The user is always right.
15472
if test "${PATH_SEPARATOR+set}" != set; then
15473
  PATH_SEPARATOR=:
15474
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15475
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15476
      PATH_SEPARATOR=';'
15477
  }
15478
fi
15479
15480
15481
# IFS
15482
# We need space, tab and new line, in precisely that order.  Quoting is
15483
# there to prevent editors from complaining about space-tab.
15484
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15485
# splitting by setting IFS to empty value.)
15486
IFS=" ""	$as_nl"
15487
15488
# Find who we are.  Look in the path if we contain no directory separator.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15489
as_myself=
2 by Jonathan Riddell
Run autogen.sh before upload
15490
case $0 in #((
15491
  *[\\/]* ) as_myself=$0 ;;
15492
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493
for as_dir in $PATH
15494
do
15495
  IFS=$as_save_IFS
15496
  test -z "$as_dir" && as_dir=.
15497
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15498
  done
15499
IFS=$as_save_IFS
15500
15501
     ;;
15502
esac
15503
# We did not find ourselves, most probably we were run as `sh COMMAND'
15504
# in which case we are not to be found in the path.
15505
if test "x$as_myself" = x; then
15506
  as_myself=$0
15507
fi
15508
if test ! -f "$as_myself"; then
15509
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15510
  exit 1
15511
fi
15512
15513
# Unset variables that we do not need and which cause bugs (e.g. in
15514
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15515
# suppresses any "Segmentation fault" message there.  '((' could
15516
# trigger a bug in pdksh 5.2.14.
15517
for as_var in BASH_ENV ENV MAIL MAILPATH
15518
do eval test x\${$as_var+set} = xset \
15519
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15520
done
15521
PS1='$ '
15522
PS2='> '
15523
PS4='+ '
15524
15525
# NLS nuisances.
15526
LC_ALL=C
15527
export LC_ALL
15528
LANGUAGE=C
15529
export LANGUAGE
15530
15531
# CDPATH.
15532
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15533
15534
1.1.27 by Ted Gould
Import upstream version 0.3.10
15535
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15536
# ----------------------------------------
2 by Jonathan Riddell
Run autogen.sh before upload
15537
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15538
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.1.27 by Ted Gould
Import upstream version 0.3.10
15539
# script with STATUS, using 1 if that was 0.
2 by Jonathan Riddell
Run autogen.sh before upload
15540
as_fn_error ()
15541
{
1.1.27 by Ted Gould
Import upstream version 0.3.10
15542
  as_status=$1; test $as_status -eq 0 && as_status=1
15543
  if test "$4"; then
15544
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15545
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2 by Jonathan Riddell
Run autogen.sh before upload
15546
  fi
1.1.27 by Ted Gould
Import upstream version 0.3.10
15547
  $as_echo "$as_me: error: $2" >&2
2 by Jonathan Riddell
Run autogen.sh before upload
15548
  as_fn_exit $as_status
15549
} # as_fn_error
15550
15551
15552
# as_fn_set_status STATUS
15553
# -----------------------
15554
# Set $? to STATUS, without forking.
15555
as_fn_set_status ()
15556
{
15557
  return $1
15558
} # as_fn_set_status
15559
15560
# as_fn_exit STATUS
15561
# -----------------
15562
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15563
as_fn_exit ()
15564
{
15565
  set +e
15566
  as_fn_set_status $1
15567
  exit $1
15568
} # as_fn_exit
15569
15570
# as_fn_unset VAR
15571
# ---------------
15572
# Portably unset VAR.
15573
as_fn_unset ()
15574
{
15575
  { eval $1=; unset $1;}
15576
}
15577
as_unset=as_fn_unset
15578
# as_fn_append VAR VALUE
15579
# ----------------------
15580
# Append the text in VALUE to the end of the definition contained in VAR. Take
15581
# advantage of any shell optimizations that allow amortized linear growth over
15582
# repeated appends, instead of the typical quadratic growth present in naive
15583
# implementations.
15584
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15585
  eval 'as_fn_append ()
15586
  {
15587
    eval $1+=\$2
15588
  }'
15589
else
15590
  as_fn_append ()
15591
  {
15592
    eval $1=\$$1\$2
15593
  }
15594
fi # as_fn_append
15595
15596
# as_fn_arith ARG...
15597
# ------------------
15598
# Perform arithmetic evaluation on the ARGs, and store the result in the
15599
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15600
# must be portable across $(()) and expr.
15601
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15602
  eval 'as_fn_arith ()
15603
  {
15604
    as_val=$(( $* ))
15605
  }'
15606
else
15607
  as_fn_arith ()
15608
  {
15609
    as_val=`expr "$@" || test $? -eq 1`
15610
  }
15611
fi # as_fn_arith
15612
15613
15614
if expr a : '\(a\)' >/dev/null 2>&1 &&
15615
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15616
  as_expr=expr
15617
else
15618
  as_expr=false
15619
fi
15620
15621
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15622
  as_basename=basename
15623
else
15624
  as_basename=false
15625
fi
15626
15627
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15628
  as_dirname=dirname
15629
else
15630
  as_dirname=false
15631
fi
15632
15633
as_me=`$as_basename -- "$0" ||
15634
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15635
	 X"$0" : 'X\(//\)$' \| \
15636
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15637
$as_echo X/"$0" |
15638
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15639
	    s//\1/
15640
	    q
15641
	  }
15642
	  /^X\/\(\/\/\)$/{
15643
	    s//\1/
15644
	    q
15645
	  }
15646
	  /^X\/\(\/\).*/{
15647
	    s//\1/
15648
	    q
15649
	  }
15650
	  s/.*/./; q'`
15651
15652
# Avoid depending upon Character Ranges.
15653
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15654
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15655
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15656
as_cr_digits='0123456789'
15657
as_cr_alnum=$as_cr_Letters$as_cr_digits
15658
15659
ECHO_C= ECHO_N= ECHO_T=
15660
case `echo -n x` in #(((((
15661
-n*)
15662
  case `echo 'xy\c'` in
15663
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15664
  xy)  ECHO_C='\c';;
15665
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15666
       ECHO_T='	';;
15667
  esac;;
15668
*)
15669
  ECHO_N='-n';;
15670
esac
15671
15672
rm -f conf$$ conf$$.exe conf$$.file
15673
if test -d conf$$.dir; then
15674
  rm -f conf$$.dir/conf$$.file
15675
else
15676
  rm -f conf$$.dir
15677
  mkdir conf$$.dir 2>/dev/null
15678
fi
15679
if (echo >conf$$.file) 2>/dev/null; then
15680
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15681
    as_ln_s='ln -s'
15682
    # ... but there are two gotchas:
15683
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15684
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15685
    # In both cases, we have to default to `cp -p'.
15686
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15687
      as_ln_s='cp -p'
15688
  elif ln conf$$.file conf$$ 2>/dev/null; then
15689
    as_ln_s=ln
15690
  else
15691
    as_ln_s='cp -p'
15692
  fi
15693
else
15694
  as_ln_s='cp -p'
15695
fi
15696
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15697
rmdir conf$$.dir 2>/dev/null
15698
15699
15700
# as_fn_mkdir_p
15701
# -------------
15702
# Create "$as_dir" as a directory, including parents if necessary.
15703
as_fn_mkdir_p ()
15704
{
15705
15706
  case $as_dir in #(
15707
  -*) as_dir=./$as_dir;;
15708
  esac
15709
  test -d "$as_dir" || eval $as_mkdir_p || {
15710
    as_dirs=
15711
    while :; do
15712
      case $as_dir in #(
15713
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15714
      *) as_qdir=$as_dir;;
15715
      esac
15716
      as_dirs="'$as_qdir' $as_dirs"
15717
      as_dir=`$as_dirname -- "$as_dir" ||
15718
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15719
	 X"$as_dir" : 'X\(//\)[^/]' \| \
15720
	 X"$as_dir" : 'X\(//\)$' \| \
15721
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15722
$as_echo X"$as_dir" |
15723
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15724
	    s//\1/
15725
	    q
15726
	  }
15727
	  /^X\(\/\/\)[^/].*/{
15728
	    s//\1/
15729
	    q
15730
	  }
15731
	  /^X\(\/\/\)$/{
15732
	    s//\1/
15733
	    q
15734
	  }
15735
	  /^X\(\/\).*/{
15736
	    s//\1/
15737
	    q
15738
	  }
15739
	  s/.*/./; q'`
15740
      test -d "$as_dir" && break
15741
    done
15742
    test -z "$as_dirs" || eval "mkdir $as_dirs"
1.1.27 by Ted Gould
Import upstream version 0.3.10
15743
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2 by Jonathan Riddell
Run autogen.sh before upload
15744
15745
15746
} # as_fn_mkdir_p
15747
if mkdir -p . 2>/dev/null; then
15748
  as_mkdir_p='mkdir -p "$as_dir"'
15749
else
15750
  test -d ./-p && rmdir ./-p
15751
  as_mkdir_p=false
15752
fi
15753
15754
if test -x / >/dev/null 2>&1; then
15755
  as_test_x='test -x'
15756
else
15757
  if ls -dL / >/dev/null 2>&1; then
15758
    as_ls_L_option=L
15759
  else
15760
    as_ls_L_option=
15761
  fi
15762
  as_test_x='
15763
    eval sh -c '\''
15764
      if test -d "$1"; then
15765
	test -d "$1/.";
15766
      else
15767
	case $1 in #(
15768
	-*)set "./$1";;
15769
	esac;
15770
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15771
	???[sx]*):;;*)false;;esac;fi
15772
    '\'' sh
15773
  '
15774
fi
15775
as_executable_p=$as_test_x
15776
15777
# Sed expression to map a string onto a valid CPP name.
15778
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15779
15780
# Sed expression to map a string onto a valid variable name.
15781
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15782
15783
15784
exec 6>&1
15785
## ----------------------------------- ##
15786
## Main body of $CONFIG_STATUS script. ##
15787
## ----------------------------------- ##
15788
_ASEOF
15789
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15790
15791
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792
# Save the log message, to keep $0 and so on meaningful, and to
15793
# report actual input values of CONFIG_FILES etc. instead of their
15794
# values after options handling.
15795
ac_log="
1.1.62 by Ken VanDine
Import upstream version 0.5.96
15796
This file was extended by libdbusmenu $as_me 0.5.96, which was
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15797
generated by GNU Autoconf 2.68.  Invocation command line was
2 by Jonathan Riddell
Run autogen.sh before upload
15798
15799
  CONFIG_FILES    = $CONFIG_FILES
15800
  CONFIG_HEADERS  = $CONFIG_HEADERS
15801
  CONFIG_LINKS    = $CONFIG_LINKS
15802
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15803
  $ $0 $@
15804
15805
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15806
"
15807
15808
_ACEOF
15809
15810
case $ac_config_files in *"
15811
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15812
esac
15813
15814
case $ac_config_headers in *"
15815
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15816
esac
15817
15818
15819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820
# Files that config.status was made for.
15821
config_files="$ac_config_files"
15822
config_headers="$ac_config_headers"
15823
config_commands="$ac_config_commands"
15824
15825
_ACEOF
15826
15827
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828
ac_cs_usage="\
15829
\`$as_me' instantiates files and other configuration actions
15830
from templates according to the current configuration.  Unless the files
15831
and actions are specified as TAGs, all are instantiated by default.
15832
15833
Usage: $0 [OPTION]... [TAG]...
15834
15835
  -h, --help       print this help, then exit
15836
  -V, --version    print version number and configuration settings, then exit
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
15837
      --config     print configuration, then exit
2 by Jonathan Riddell
Run autogen.sh before upload
15838
  -q, --quiet, --silent
15839
                   do not print progress messages
15840
  -d, --debug      don't remove temporary files
15841
      --recheck    update $as_me by reconfiguring in the same conditions
15842
      --file=FILE[:TEMPLATE]
15843
                   instantiate the configuration file FILE
15844
      --header=FILE[:TEMPLATE]
15845
                   instantiate the configuration header FILE
15846
15847
Configuration files:
15848
$config_files
15849
15850
Configuration headers:
15851
$config_headers
15852
15853
Configuration commands:
15854
$config_commands
15855
15856
Report bugs to <ted@canonical.com>."
15857
15858
_ACEOF
15859
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
15860
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2 by Jonathan Riddell
Run autogen.sh before upload
15861
ac_cs_version="\\
1.1.62 by Ken VanDine
Import upstream version 0.5.96
15862
libdbusmenu config.status 0.5.96
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15863
configured by $0, generated by GNU Autoconf 2.68,
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
15864
  with options \\"\$ac_cs_config\\"
2 by Jonathan Riddell
Run autogen.sh before upload
15865
1.1.27 by Ted Gould
Import upstream version 0.3.10
15866
Copyright (C) 2010 Free Software Foundation, Inc.
2 by Jonathan Riddell
Run autogen.sh before upload
15867
This config.status script is free software; the Free Software Foundation
15868
gives unlimited permission to copy, distribute and modify it."
15869
15870
ac_pwd='$ac_pwd'
15871
srcdir='$srcdir'
15872
INSTALL='$INSTALL'
15873
MKDIR_P='$MKDIR_P'
15874
AWK='$AWK'
15875
test -n "\$AWK" || AWK=awk
15876
_ACEOF
15877
15878
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879
# The default lists apply if the user does not specify any file.
15880
ac_need_defaults=:
15881
while test $# != 0
15882
do
15883
  case $1 in
1.1.27 by Ted Gould
Import upstream version 0.3.10
15884
  --*=?*)
2 by Jonathan Riddell
Run autogen.sh before upload
15885
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15886
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15887
    ac_shift=:
15888
    ;;
1.1.27 by Ted Gould
Import upstream version 0.3.10
15889
  --*=)
15890
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15891
    ac_optarg=
15892
    ac_shift=:
15893
    ;;
2 by Jonathan Riddell
Run autogen.sh before upload
15894
  *)
15895
    ac_option=$1
15896
    ac_optarg=$2
15897
    ac_shift=shift
15898
    ;;
15899
  esac
15900
15901
  case $ac_option in
15902
  # Handling of the options.
15903
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15904
    ac_cs_recheck=: ;;
15905
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15906
    $as_echo "$ac_cs_version"; exit ;;
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
15907
  --config | --confi | --conf | --con | --co | --c )
15908
    $as_echo "$ac_cs_config"; exit ;;
2 by Jonathan Riddell
Run autogen.sh before upload
15909
  --debug | --debu | --deb | --de | --d | -d )
15910
    debug=: ;;
15911
  --file | --fil | --fi | --f )
15912
    $ac_shift
15913
    case $ac_optarg in
15914
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.27 by Ted Gould
Import upstream version 0.3.10
15915
    '') as_fn_error $? "missing file argument" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
15916
    esac
15917
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15918
    ac_need_defaults=false;;
15919
  --header | --heade | --head | --hea )
15920
    $ac_shift
15921
    case $ac_optarg in
15922
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15923
    esac
15924
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15925
    ac_need_defaults=false;;
15926
  --he | --h)
15927
    # Conflict between --help and --header
1.1.27 by Ted Gould
Import upstream version 0.3.10
15928
    as_fn_error $? "ambiguous option: \`$1'
2 by Jonathan Riddell
Run autogen.sh before upload
15929
Try \`$0 --help' for more information.";;
15930
  --help | --hel | -h )
15931
    $as_echo "$ac_cs_usage"; exit ;;
15932
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15933
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15934
    ac_cs_silent=: ;;
15935
15936
  # This is an error.
1.1.27 by Ted Gould
Import upstream version 0.3.10
15937
  -*) as_fn_error $? "unrecognized option: \`$1'
2 by Jonathan Riddell
Run autogen.sh before upload
15938
Try \`$0 --help' for more information." ;;
15939
15940
  *) as_fn_append ac_config_targets " $1"
15941
     ac_need_defaults=false ;;
15942
15943
  esac
15944
  shift
15945
done
15946
15947
ac_configure_extra_args=
15948
15949
if $ac_cs_silent; then
15950
  exec 6>/dev/null
15951
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15952
fi
15953
15954
_ACEOF
15955
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956
if \$ac_cs_recheck; then
15957
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15958
  shift
15959
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15960
  CONFIG_SHELL='$SHELL'
15961
  export CONFIG_SHELL
15962
  exec "\$@"
15963
fi
15964
15965
_ACEOF
15966
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967
exec 5>>config.log
15968
{
15969
  echo
15970
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15971
## Running $as_me. ##
15972
_ASBOX
15973
  $as_echo "$ac_log"
15974
} >&5
15975
15976
_ACEOF
15977
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15978
#
15979
# INIT-COMMANDS
15980
#
15981
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15982
15983
15984
# The HP-UX ksh and POSIX shell print the target directory to stdout
15985
# if CDPATH is set.
15986
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15987
15988
sed_quote_subst='$sed_quote_subst'
15989
double_quote_subst='$double_quote_subst'
15990
delay_variable_subst='$delay_variable_subst'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
15991
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15992
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15993
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15994
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15995
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15996
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15997
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15998
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.56 by Ken VanDine
Import upstream version 0.5.90
15999
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16000
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16001
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16002
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16003
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16004
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16005
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16006
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16007
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16008
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16009
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16010
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16011
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16012
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16013
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16014
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16015
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16016
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16017
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16018
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16019
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16020
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16021
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16022
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16023
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16024
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16025
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16026
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16027
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16028
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16029
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16030
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16031
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16032
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16033
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16034
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16035
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16036
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16037
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16038
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16039
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16040
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16041
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16042
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16043
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16044
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16045
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16046
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16047
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16048
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16049
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16050
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16051
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16052
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16053
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16054
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16055
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16056
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16057
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16058
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16059
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16060
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16061
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16062
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16063
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16064
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16065
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16066
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16067
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16068
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16069
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16070
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16071
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16072
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16073
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16074
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16075
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16076
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16077
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16078
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16079
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16080
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16081
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16082
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16083
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16084
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16085
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16086
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16087
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16088
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16089
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16090
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16091
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16092
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16093
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16094
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16095
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16096
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16097
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16098
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16099
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16100
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16101
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16102
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16103
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16104
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16105
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16106
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16107
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16108
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16109
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16110
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16111
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16112
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16113
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16114
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16115
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16116
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16117
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16118
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16119
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16120
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
2 by Jonathan Riddell
Run autogen.sh before upload
16121
16122
LTCC='$LTCC'
16123
LTCFLAGS='$LTCFLAGS'
16124
compiler='$compiler_DEFAULT'
16125
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16126
# A function that is used when there is no print builtin or printf.
16127
func_fallback_echo ()
16128
{
16129
  eval 'cat <<_LTECHO_EOF
16130
\$1
16131
_LTECHO_EOF'
16132
}
16133
2 by Jonathan Riddell
Run autogen.sh before upload
16134
# Quote evaled strings.
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16135
for var in SHELL \
16136
ECHO \
1.1.56 by Ken VanDine
Import upstream version 0.5.90
16137
PATH_SEPARATOR \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16138
SED \
2 by Jonathan Riddell
Run autogen.sh before upload
16139
GREP \
16140
EGREP \
16141
FGREP \
16142
LD \
16143
NM \
16144
LN_S \
16145
lt_SP2NL \
16146
lt_NL2SP \
16147
reload_flag \
16148
OBJDUMP \
16149
deplibs_check_method \
16150
file_magic_cmd \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16151
file_magic_glob \
16152
want_nocaseglob \
16153
DLLTOOL \
16154
sharedlib_from_linklib_cmd \
2 by Jonathan Riddell
Run autogen.sh before upload
16155
AR \
16156
AR_FLAGS \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16157
archiver_list_spec \
2 by Jonathan Riddell
Run autogen.sh before upload
16158
STRIP \
16159
RANLIB \
16160
CC \
16161
CFLAGS \
16162
compiler \
16163
lt_cv_sys_global_symbol_pipe \
16164
lt_cv_sys_global_symbol_to_cdecl \
16165
lt_cv_sys_global_symbol_to_c_name_address \
16166
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16167
nm_file_list_spec \
2 by Jonathan Riddell
Run autogen.sh before upload
16168
lt_prog_compiler_no_builtin_flag \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16169
lt_prog_compiler_pic \
2 by Jonathan Riddell
Run autogen.sh before upload
16170
lt_prog_compiler_wl \
16171
lt_prog_compiler_static \
16172
lt_cv_prog_compiler_c_o \
16173
need_locks \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16174
MANIFEST_TOOL \
2 by Jonathan Riddell
Run autogen.sh before upload
16175
DSYMUTIL \
16176
NMEDIT \
16177
LIPO \
16178
OTOOL \
16179
OTOOL64 \
16180
shrext_cmds \
16181
export_dynamic_flag_spec \
16182
whole_archive_flag_spec \
16183
compiler_needs_object \
16184
with_gnu_ld \
16185
allow_undefined_flag \
16186
no_undefined_flag \
16187
hardcode_libdir_flag_spec \
16188
hardcode_libdir_separator \
16189
exclude_expsyms \
16190
include_expsyms \
16191
file_list_spec \
16192
variables_saved_for_relink \
16193
libname_spec \
16194
library_names_spec \
16195
soname_spec \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16196
install_override_mode \
2 by Jonathan Riddell
Run autogen.sh before upload
16197
finish_eval \
16198
old_striplib \
16199
striplib; do
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16200
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2 by Jonathan Riddell
Run autogen.sh before upload
16201
    *[\\\\\\\`\\"\\\$]*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16202
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2 by Jonathan Riddell
Run autogen.sh before upload
16203
      ;;
16204
    *)
16205
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16206
      ;;
16207
    esac
16208
done
16209
16210
# Double-quote double-evaled strings.
16211
for var in reload_cmds \
16212
old_postinstall_cmds \
16213
old_postuninstall_cmds \
16214
old_archive_cmds \
16215
extract_expsyms_cmds \
16216
old_archive_from_new_cmds \
16217
old_archive_from_expsyms_cmds \
16218
archive_cmds \
16219
archive_expsym_cmds \
16220
module_cmds \
16221
module_expsym_cmds \
16222
export_symbols_cmds \
16223
prelink_cmds \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16224
postlink_cmds \
2 by Jonathan Riddell
Run autogen.sh before upload
16225
postinstall_cmds \
16226
postuninstall_cmds \
16227
finish_cmds \
16228
sys_lib_search_path_spec \
16229
sys_lib_dlsearch_path_spec; do
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16230
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2 by Jonathan Riddell
Run autogen.sh before upload
16231
    *[\\\\\\\`\\"\\\$]*)
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16232
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2 by Jonathan Riddell
Run autogen.sh before upload
16233
      ;;
16234
    *)
16235
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16236
      ;;
16237
    esac
16238
done
16239
16240
ac_aux_dir='$ac_aux_dir'
16241
xsi_shell='$xsi_shell'
16242
lt_shell_append='$lt_shell_append'
16243
16244
# See if we are running on zsh, and set the options which allow our
16245
# commands through without removal of \ escapes INIT.
16246
if test -n "\${ZSH_VERSION+set}" ; then
16247
   setopt NO_GLOB_SUBST
16248
fi
16249
16250
16251
    PACKAGE='$PACKAGE'
16252
    VERSION='$VERSION'
16253
    TIMESTAMP='$TIMESTAMP'
16254
    RM='$RM'
16255
    ofile='$ofile'
16256
16257
16258
16259
16260
16261
_ACEOF
16262
16263
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16264
16265
# Handling of arguments.
16266
for ac_config_target in $ac_config_targets
16267
do
16268
  case $ac_config_target in
16269
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16270
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16271
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16272
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16273
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16274
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16275
    "libdbusmenu-glib/Makefile") CONFIG_FILES="$CONFIG_FILES libdbusmenu-glib/Makefile" ;;
1.1.34 by Ted Gould
Import upstream version 0.3.91
16276
    "libdbusmenu-glib/dbusmenu-glib-0.4.pc") CONFIG_FILES="$CONFIG_FILES libdbusmenu-glib/dbusmenu-glib-0.4.pc" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
16277
    "libdbusmenu-gtk/Makefile") CONFIG_FILES="$CONFIG_FILES libdbusmenu-gtk/Makefile" ;;
1.1.34 by Ted Gould
Import upstream version 0.3.91
16278
    "libdbusmenu-gtk/dbusmenu-gtk-0.4.pc") CONFIG_FILES="$CONFIG_FILES libdbusmenu-gtk/dbusmenu-gtk-0.4.pc" ;;
16279
    "libdbusmenu-gtk/dbusmenu-gtk3-0.4.pc") CONFIG_FILES="$CONFIG_FILES libdbusmenu-gtk/dbusmenu-gtk3-0.4.pc" ;;
1.1.8 by Ted Gould
Import upstream version 0.2.0
16280
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
16281
    "tools/testapp/Makefile") CONFIG_FILES="$CONFIG_FILES tools/testapp/Makefile" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
16282
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
1.1.34 by Ted Gould
Import upstream version 0.3.91
16283
    "tests/dbusmenu-jsonloader-0.4.pc") CONFIG_FILES="$CONFIG_FILES tests/dbusmenu-jsonloader-0.4.pc" ;;
1.1.19 by Ken VanDine
Import upstream version 0.3.2
16284
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16285
    "docs/libdbusmenu-glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-glib/Makefile" ;;
16286
    "docs/libdbusmenu-glib/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-glib/reference/Makefile" ;;
16287
    "docs/libdbusmenu-glib/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-glib/reference/version.xml" ;;
16288
    "docs/libdbusmenu-gtk/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-gtk/Makefile" ;;
16289
    "docs/libdbusmenu-gtk/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-gtk/reference/Makefile" ;;
16290
    "docs/libdbusmenu-gtk/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/libdbusmenu-gtk/reference/version.xml" ;;
2 by Jonathan Riddell
Run autogen.sh before upload
16291
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16292
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16293
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2 by Jonathan Riddell
Run autogen.sh before upload
16294
  esac
16295
done
16296
16297
16298
# If the user did not use the arguments to specify the items to instantiate,
16299
# then the envvar interface is used.  Set only those that are not.
16300
# We use the long form for the default assignment because of an extremely
16301
# bizarre bug on SunOS 4.1.3.
16302
if $ac_need_defaults; then
16303
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16304
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16305
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16306
fi
16307
16308
# Have a temporary directory for convenience.  Make it in the build tree
16309
# simply because there is no reason against having it here, and in addition,
16310
# creating and moving files from /tmp can sometimes cause problems.
16311
# Hook for its removal unless debugging.
16312
# Note that there is a small window in which the directory will not be cleaned:
16313
# after its creation but before its name has been assigned to `$tmp'.
16314
$debug ||
16315
{
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16316
  tmp= ac_tmp=
2 by Jonathan Riddell
Run autogen.sh before upload
16317
  trap 'exit_status=$?
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16318
  : "${ac_tmp:=$tmp}"
16319
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2 by Jonathan Riddell
Run autogen.sh before upload
16320
' 0
16321
  trap 'as_fn_exit 1' 1 2 13 15
16322
}
16323
# Create a (secure) tmp directory for tmp files.
16324
16325
{
16326
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16327
  test -d "$tmp"
2 by Jonathan Riddell
Run autogen.sh before upload
16328
}  ||
16329
{
16330
  tmp=./conf$$-$RANDOM
16331
  (umask 077 && mkdir "$tmp")
1.1.27 by Ted Gould
Import upstream version 0.3.10
16332
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16333
ac_tmp=$tmp
2 by Jonathan Riddell
Run autogen.sh before upload
16334
16335
# Set up the scripts for CONFIG_FILES section.
16336
# No need to generate them if there are no CONFIG_FILES.
16337
# This happens for instance with `./config.status config.h'.
16338
if test -n "$CONFIG_FILES"; then
16339
16340
16341
ac_cr=`echo X | tr X '\015'`
16342
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16343
# But we know of no other shell where ac_cr would be empty at this
16344
# point, so we can use a bashism as a fallback.
16345
if test "x$ac_cr" = x; then
16346
  eval ac_cr=\$\'\\r\'
16347
fi
16348
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16349
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
16350
  ac_cs_awk_cr='\\r'
2 by Jonathan Riddell
Run autogen.sh before upload
16351
else
16352
  ac_cs_awk_cr=$ac_cr
16353
fi
16354
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16355
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2 by Jonathan Riddell
Run autogen.sh before upload
16356
_ACEOF
16357
16358
16359
{
16360
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16361
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16362
  echo "_ACEOF"
16363
} >conf$$subs.sh ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
16364
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16365
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2 by Jonathan Riddell
Run autogen.sh before upload
16366
ac_delim='%!_!# '
16367
for ac_last_try in false false false false false :; do
16368
  . ./conf$$subs.sh ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
16369
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16370
16371
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16372
  if test $ac_delim_n = $ac_delim_num; then
16373
    break
16374
  elif $ac_last_try; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
16375
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16376
  else
16377
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16378
  fi
16379
done
16380
rm -f conf$$subs.sh
16381
16382
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16383
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2 by Jonathan Riddell
Run autogen.sh before upload
16384
_ACEOF
16385
sed -n '
16386
h
16387
s/^/S["/; s/!.*/"]=/
16388
p
16389
g
16390
s/^[^!]*!//
16391
:repl
16392
t repl
16393
s/'"$ac_delim"'$//
16394
t delim
16395
:nl
16396
h
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
16397
s/\(.\{148\}\)..*/\1/
2 by Jonathan Riddell
Run autogen.sh before upload
16398
t more1
16399
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16400
p
16401
n
16402
b repl
16403
:more1
16404
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16405
p
16406
g
16407
s/.\{148\}//
16408
t nl
16409
:delim
16410
h
1.1.10 by Sebastien Bacher
Import upstream version 0.2.2
16411
s/\(.\{148\}\)..*/\1/
2 by Jonathan Riddell
Run autogen.sh before upload
16412
t more2
16413
s/["\\]/\\&/g; s/^/"/; s/$/"/
16414
p
16415
b
16416
:more2
16417
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16418
p
16419
g
16420
s/.\{148\}//
16421
t delim
16422
' <conf$$subs.awk | sed '
16423
/^[^""]/{
16424
  N
16425
  s/\n//
16426
}
16427
' >>$CONFIG_STATUS || ac_write_fail=1
16428
rm -f conf$$subs.awk
16429
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430
_ACAWK
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16431
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
2 by Jonathan Riddell
Run autogen.sh before upload
16432
  for (key in S) S_is_set[key] = 1
16433
  FS = ""
16434
16435
}
16436
{
16437
  line = $ 0
16438
  nfields = split(line, field, "@")
16439
  substed = 0
16440
  len = length(field[1])
16441
  for (i = 2; i < nfields; i++) {
16442
    key = field[i]
16443
    keylen = length(key)
16444
    if (S_is_set[key]) {
16445
      value = S[key]
16446
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16447
      len += length(value) + length(field[++i])
16448
      substed = 1
16449
    } else
16450
      len += 1 + keylen
16451
  }
16452
16453
  print line
16454
}
16455
16456
_ACAWK
16457
_ACEOF
16458
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16459
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16460
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16461
else
16462
  cat
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16463
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.1.27 by Ted Gould
Import upstream version 0.3.10
16464
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16465
_ACEOF
16466
1.1.27 by Ted Gould
Import upstream version 0.3.10
16467
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16468
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
2 by Jonathan Riddell
Run autogen.sh before upload
16469
# trailing colons and then remove the whole line if VPATH becomes empty
16470
# (actually we leave an empty line to preserve line numbers).
16471
if test "x$srcdir" = x.; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
16472
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16473
h
16474
s///
16475
s/^/:/
16476
s/[	 ]*$/:/
16477
s/:\$(srcdir):/:/g
16478
s/:\${srcdir}:/:/g
16479
s/:@srcdir@:/:/g
16480
s/^:*//
2 by Jonathan Riddell
Run autogen.sh before upload
16481
s/:*$//
1.1.27 by Ted Gould
Import upstream version 0.3.10
16482
x
16483
s/\(=[	 ]*\).*/\1/
16484
G
16485
s/\n//
2 by Jonathan Riddell
Run autogen.sh before upload
16486
s/^[^=]*=[	 ]*$//
16487
}'
16488
fi
16489
16490
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16491
fi # test -n "$CONFIG_FILES"
16492
16493
# Set up the scripts for CONFIG_HEADERS section.
16494
# No need to generate them if there are no CONFIG_HEADERS.
16495
# This happens for instance with `./config.status Makefile'.
16496
if test -n "$CONFIG_HEADERS"; then
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16497
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
2 by Jonathan Riddell
Run autogen.sh before upload
16498
BEGIN {
16499
_ACEOF
16500
16501
# Transform confdefs.h into an awk script `defines.awk', embedded as
16502
# here-document in config.status, that substitutes the proper values into
16503
# config.h.in to produce config.h.
16504
16505
# Create a delimiter string that does not exist in confdefs.h, to ease
16506
# handling of long lines.
16507
ac_delim='%!_!# '
16508
for ac_last_try in false false :; do
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16509
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16510
  if test -z "$ac_tt"; then
2 by Jonathan Riddell
Run autogen.sh before upload
16511
    break
16512
  elif $ac_last_try; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
16513
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16514
  else
16515
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16516
  fi
16517
done
16518
16519
# For the awk script, D is an array of macro values keyed by name,
16520
# likewise P contains macro parameters if any.  Preserve backslash
16521
# newline sequences.
16522
16523
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16524
sed -n '
16525
s/.\{148\}/&'"$ac_delim"'/g
16526
t rset
16527
:rset
16528
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16529
t def
16530
d
16531
:def
16532
s/\\$//
16533
t bsnl
16534
s/["\\]/\\&/g
16535
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16536
D["\1"]=" \3"/p
16537
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16538
d
16539
:bsnl
16540
s/["\\]/\\&/g
16541
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16542
D["\1"]=" \3\\\\\\n"\\/p
16543
t cont
16544
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16545
t cont
16546
d
16547
:cont
16548
n
16549
s/.\{148\}/&'"$ac_delim"'/g
16550
t clear
16551
:clear
16552
s/\\$//
16553
t bsnlc
16554
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16555
d
16556
:bsnlc
16557
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16558
b cont
16559
' <confdefs.h | sed '
16560
s/'"$ac_delim"'/"\\\
16561
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16562
16563
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16564
  for (key in D) D_is_set[key] = 1
16565
  FS = ""
16566
}
16567
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16568
  line = \$ 0
16569
  split(line, arg, " ")
16570
  if (arg[1] == "#") {
16571
    defundef = arg[2]
16572
    mac1 = arg[3]
16573
  } else {
16574
    defundef = substr(arg[1], 2)
16575
    mac1 = arg[2]
16576
  }
16577
  split(mac1, mac2, "(") #)
16578
  macro = mac2[1]
16579
  prefix = substr(line, 1, index(line, defundef) - 1)
16580
  if (D_is_set[macro]) {
16581
    # Preserve the white space surrounding the "#".
16582
    print prefix "define", macro P[macro] D[macro]
16583
    next
16584
  } else {
16585
    # Replace #undef with comments.  This is necessary, for example,
16586
    # in the case of _POSIX_SOURCE, which is predefined and required
16587
    # on some systems where configure will not decide to define it.
16588
    if (defundef == "undef") {
16589
      print "/*", prefix defundef, macro, "*/"
16590
      next
16591
    }
16592
  }
16593
}
16594
{ print }
16595
_ACAWK
16596
_ACEOF
16597
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.27 by Ted Gould
Import upstream version 0.3.10
16598
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16599
fi # test -n "$CONFIG_HEADERS"
16600
16601
16602
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16603
shift
16604
for ac_tag
16605
do
16606
  case $ac_tag in
16607
  :[FHLC]) ac_mode=$ac_tag; continue;;
16608
  esac
16609
  case $ac_mode$ac_tag in
16610
  :[FHL]*:*);;
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16611
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
2 by Jonathan Riddell
Run autogen.sh before upload
16612
  :[FH]-) ac_tag=-:-;;
16613
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16614
  esac
16615
  ac_save_IFS=$IFS
16616
  IFS=:
16617
  set x $ac_tag
16618
  IFS=$ac_save_IFS
16619
  shift
16620
  ac_file=$1
16621
  shift
16622
16623
  case $ac_mode in
16624
  :L) ac_source=$1;;
16625
  :[FH])
16626
    ac_file_inputs=
16627
    for ac_f
16628
    do
16629
      case $ac_f in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16630
      -) ac_f="$ac_tmp/stdin";;
2 by Jonathan Riddell
Run autogen.sh before upload
16631
      *) # Look for the file first in the build tree, then in the source tree
16632
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16633
	 # because $ac_f cannot contain `:'.
16634
	 test -f "$ac_f" ||
16635
	   case $ac_f in
16636
	   [\\/$]*) false;;
16637
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16638
	   esac ||
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16639
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
2 by Jonathan Riddell
Run autogen.sh before upload
16640
      esac
16641
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16642
      as_fn_append ac_file_inputs " '$ac_f'"
16643
    done
16644
16645
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16646
    # use $as_me), people would be surprised to read:
16647
    #    /* config.h.  Generated by config.status.  */
16648
    configure_input='Generated from '`
16649
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16650
	`' by configure.'
16651
    if test x"$ac_file" != x-; then
16652
      configure_input="$ac_file.  $configure_input"
16653
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16654
$as_echo "$as_me: creating $ac_file" >&6;}
16655
    fi
16656
    # Neutralize special characters interpreted by sed in replacement strings.
16657
    case $configure_input in #(
16658
    *\&* | *\|* | *\\* )
16659
       ac_sed_conf_input=`$as_echo "$configure_input" |
16660
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16661
    *) ac_sed_conf_input=$configure_input;;
16662
    esac
16663
16664
    case $ac_tag in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16665
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16666
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
2 by Jonathan Riddell
Run autogen.sh before upload
16667
    esac
16668
    ;;
16669
  esac
16670
16671
  ac_dir=`$as_dirname -- "$ac_file" ||
16672
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16673
	 X"$ac_file" : 'X\(//\)[^/]' \| \
16674
	 X"$ac_file" : 'X\(//\)$' \| \
16675
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16676
$as_echo X"$ac_file" |
16677
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16678
	    s//\1/
16679
	    q
16680
	  }
16681
	  /^X\(\/\/\)[^/].*/{
16682
	    s//\1/
16683
	    q
16684
	  }
16685
	  /^X\(\/\/\)$/{
16686
	    s//\1/
16687
	    q
16688
	  }
16689
	  /^X\(\/\).*/{
16690
	    s//\1/
16691
	    q
16692
	  }
16693
	  s/.*/./; q'`
16694
  as_dir="$ac_dir"; as_fn_mkdir_p
16695
  ac_builddir=.
16696
16697
case "$ac_dir" in
16698
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16699
*)
16700
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16701
  # A ".." for each directory in $ac_dir_suffix.
16702
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16703
  case $ac_top_builddir_sub in
16704
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16705
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16706
  esac ;;
16707
esac
16708
ac_abs_top_builddir=$ac_pwd
16709
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16710
# for backward compatibility:
16711
ac_top_builddir=$ac_top_build_prefix
16712
16713
case $srcdir in
16714
  .)  # We are building in place.
16715
    ac_srcdir=.
16716
    ac_top_srcdir=$ac_top_builddir_sub
16717
    ac_abs_top_srcdir=$ac_pwd ;;
16718
  [\\/]* | ?:[\\/]* )  # Absolute name.
16719
    ac_srcdir=$srcdir$ac_dir_suffix;
16720
    ac_top_srcdir=$srcdir
16721
    ac_abs_top_srcdir=$srcdir ;;
16722
  *) # Relative name.
16723
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16724
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16725
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16726
esac
16727
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16728
16729
16730
  case $ac_mode in
16731
  :F)
16732
  #
16733
  # CONFIG_FILE
16734
  #
16735
16736
  case $INSTALL in
16737
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16738
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16739
  esac
16740
  ac_MKDIR_P=$MKDIR_P
16741
  case $MKDIR_P in
16742
  [\\/$]* | ?:[\\/]* ) ;;
16743
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16744
  esac
16745
_ACEOF
16746
16747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16748
# If the template does not know about datarootdir, expand it.
16749
# FIXME: This hack should be removed a few years after 2.60.
16750
ac_datarootdir_hack=; ac_datarootdir_seen=
16751
ac_sed_dataroot='
16752
/datarootdir/ {
16753
  p
16754
  q
16755
}
16756
/@datadir@/p
16757
/@docdir@/p
16758
/@infodir@/p
16759
/@localedir@/p
16760
/@mandir@/p'
16761
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16762
*datarootdir*) ac_datarootdir_seen=yes;;
16763
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16764
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16765
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16766
_ACEOF
16767
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16768
  ac_datarootdir_hack='
16769
  s&@datadir@&$datadir&g
16770
  s&@docdir@&$docdir&g
16771
  s&@infodir@&$infodir&g
16772
  s&@localedir@&$localedir&g
16773
  s&@mandir@&$mandir&g
16774
  s&\\\${datarootdir}&$datarootdir&g' ;;
16775
esac
16776
_ACEOF
16777
16778
# Neutralize VPATH when `$srcdir' = `.'.
16779
# Shell code in configure.ac might set extrasub.
16780
# FIXME: do we really want to maintain this feature?
16781
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16782
ac_sed_extra="$ac_vpsub
16783
$extrasub
16784
_ACEOF
16785
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16786
:t
16787
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16788
s|@configure_input@|$ac_sed_conf_input|;t t
16789
s&@top_builddir@&$ac_top_builddir_sub&;t t
16790
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16791
s&@srcdir@&$ac_srcdir&;t t
16792
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16793
s&@top_srcdir@&$ac_top_srcdir&;t t
16794
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16795
s&@builddir@&$ac_builddir&;t t
16796
s&@abs_builddir@&$ac_abs_builddir&;t t
16797
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16798
s&@INSTALL@&$ac_INSTALL&;t t
16799
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16800
$ac_datarootdir_hack
16801
"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16802
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16803
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16804
16805
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16806
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16807
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16808
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
2 by Jonathan Riddell
Run autogen.sh before upload
16809
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.27 by Ted Gould
Import upstream version 0.3.10
16810
which seems to be undefined.  Please make sure it is defined" >&5
2 by Jonathan Riddell
Run autogen.sh before upload
16811
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.27 by Ted Gould
Import upstream version 0.3.10
16812
which seems to be undefined.  Please make sure it is defined" >&2;}
2 by Jonathan Riddell
Run autogen.sh before upload
16813
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16814
  rm -f "$ac_tmp/stdin"
2 by Jonathan Riddell
Run autogen.sh before upload
16815
  case $ac_file in
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16816
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16817
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
2 by Jonathan Riddell
Run autogen.sh before upload
16818
  esac \
1.1.27 by Ted Gould
Import upstream version 0.3.10
16819
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16820
 ;;
16821
  :H)
16822
  #
16823
  # CONFIG_HEADER
16824
  #
16825
  if test x"$ac_file" != x-; then
16826
    {
16827
      $as_echo "/* $configure_input  */" \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16828
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16829
    } >"$ac_tmp/config.h" \
1.1.27 by Ted Gould
Import upstream version 0.3.10
16830
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16831
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
2 by Jonathan Riddell
Run autogen.sh before upload
16832
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16833
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16834
    else
16835
      rm -f "$ac_file"
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16836
      mv "$ac_tmp/config.h" "$ac_file" \
1.1.27 by Ted Gould
Import upstream version 0.3.10
16837
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16838
    fi
16839
  else
16840
    $as_echo "/* $configure_input  */" \
1.1.50 by Ken VanDine
Import upstream version 0.4.90
16841
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.1.27 by Ted Gould
Import upstream version 0.3.10
16842
      || as_fn_error $? "could not create -" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
16843
  fi
16844
# Compute "$ac_file"'s index in $config_headers.
16845
_am_arg="$ac_file"
16846
_am_stamp_count=1
16847
for _am_header in $config_headers :; do
16848
  case $_am_header in
16849
    $_am_arg | $_am_arg:* )
16850
      break ;;
16851
    * )
16852
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16853
  esac
16854
done
16855
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16856
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16857
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16858
	 X"$_am_arg" : 'X\(//\)$' \| \
16859
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16860
$as_echo X"$_am_arg" |
16861
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16862
	    s//\1/
16863
	    q
16864
	  }
16865
	  /^X\(\/\/\)[^/].*/{
16866
	    s//\1/
16867
	    q
16868
	  }
16869
	  /^X\(\/\/\)$/{
16870
	    s//\1/
16871
	    q
16872
	  }
16873
	  /^X\(\/\).*/{
16874
	    s//\1/
16875
	    q
16876
	  }
16877
	  s/.*/./; q'`/stamp-h$_am_stamp_count
16878
 ;;
16879
16880
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16881
$as_echo "$as_me: executing $ac_file commands" >&6;}
16882
 ;;
16883
  esac
16884
16885
16886
  case $ac_file$ac_mode in
16887
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16888
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16889
  # are listed without --file.  Let's play safe and only enable the eval
16890
  # if we detect the quoting.
16891
  case $CONFIG_FILES in
16892
  *\'*) eval set x "$CONFIG_FILES" ;;
16893
  *)   set x $CONFIG_FILES ;;
16894
  esac
16895
  shift
16896
  for mf
16897
  do
16898
    # Strip MF so we end up with the name of the file.
16899
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16900
    # Check whether this is an Automake generated Makefile or not.
16901
    # We used to match only the files named `Makefile.in', but
16902
    # some people rename them; so instead we look at the file content.
16903
    # Grep'ing the first line is not enough: some people post-process
16904
    # each Makefile.in and add a new line on top of each file to say so.
16905
    # Grep'ing the whole file is not good either: AIX grep has a line
16906
    # limit of 2048, but all sed's we know have understand at least 4000.
16907
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16908
      dirpart=`$as_dirname -- "$mf" ||
16909
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16910
	 X"$mf" : 'X\(//\)[^/]' \| \
16911
	 X"$mf" : 'X\(//\)$' \| \
16912
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16913
$as_echo X"$mf" |
16914
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16915
	    s//\1/
16916
	    q
16917
	  }
16918
	  /^X\(\/\/\)[^/].*/{
16919
	    s//\1/
16920
	    q
16921
	  }
16922
	  /^X\(\/\/\)$/{
16923
	    s//\1/
16924
	    q
16925
	  }
16926
	  /^X\(\/\).*/{
16927
	    s//\1/
16928
	    q
16929
	  }
16930
	  s/.*/./; q'`
16931
    else
16932
      continue
16933
    fi
16934
    # Extract the definition of DEPDIR, am__include, and am__quote
16935
    # from the Makefile without running `make'.
16936
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16937
    test -z "$DEPDIR" && continue
16938
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16939
    test -z "am__include" && continue
16940
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16941
    # When using ansi2knr, U may be empty or an underscore; expand it
16942
    U=`sed -n 's/^U = //p' < "$mf"`
16943
    # Find all dependency output files, they are included files with
16944
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16945
    # simplest approach to changing $(DEPDIR) to its actual value in the
16946
    # expansion.
16947
    for file in `sed -n "
16948
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16949
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16950
      # Make sure the directory exists.
16951
      test -f "$dirpart/$file" && continue
16952
      fdir=`$as_dirname -- "$file" ||
16953
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16954
	 X"$file" : 'X\(//\)[^/]' \| \
16955
	 X"$file" : 'X\(//\)$' \| \
16956
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16957
$as_echo X"$file" |
16958
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16959
	    s//\1/
16960
	    q
16961
	  }
16962
	  /^X\(\/\/\)[^/].*/{
16963
	    s//\1/
16964
	    q
16965
	  }
16966
	  /^X\(\/\/\)$/{
16967
	    s//\1/
16968
	    q
16969
	  }
16970
	  /^X\(\/\).*/{
16971
	    s//\1/
16972
	    q
16973
	  }
16974
	  s/.*/./; q'`
16975
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16976
      # echo "creating $dirpart/$file"
16977
      echo '# dummy' > "$dirpart/$file"
16978
    done
16979
  done
16980
}
16981
 ;;
16982
    "libtool":C)
16983
16984
    # See if we are running on zsh, and set the options which allow our
16985
    # commands through without removal of \ escapes.
16986
    if test -n "${ZSH_VERSION+set}" ; then
16987
      setopt NO_GLOB_SUBST
16988
    fi
16989
16990
    cfgfile="${ofile}T"
16991
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16992
    $RM "$cfgfile"
16993
16994
    cat <<_LT_EOF >> "$cfgfile"
16995
#! $SHELL
16996
16997
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16998
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16999
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17000
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17001
#
17002
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.56 by Ken VanDine
Import upstream version 0.5.90
17003
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17004
#                 Foundation, Inc.
2 by Jonathan Riddell
Run autogen.sh before upload
17005
#   Written by Gordon Matzigkeit, 1996
17006
#
17007
#   This file is part of GNU Libtool.
17008
#
17009
# GNU Libtool is free software; you can redistribute it and/or
17010
# modify it under the terms of the GNU General Public License as
17011
# published by the Free Software Foundation; either version 2 of
17012
# the License, or (at your option) any later version.
17013
#
17014
# As a special exception to the GNU General Public License,
17015
# if you distribute this file as part of a program or library that
17016
# is built using GNU Libtool, you may include this file under the
17017
# same distribution terms that you use for the rest of that program.
17018
#
17019
# GNU Libtool is distributed in the hope that it will be useful,
17020
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17021
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17022
# GNU General Public License for more details.
17023
#
17024
# You should have received a copy of the GNU General Public License
17025
# along with GNU Libtool; see the file COPYING.  If not, a copy
17026
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17027
# obtained by writing to the Free Software Foundation, Inc.,
17028
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17029
17030
17031
# The names of the tagged configurations supported by this script.
17032
available_tags=""
17033
17034
# ### BEGIN LIBTOOL CONFIG
17035
17036
# Which release of libtool.m4 was used?
17037
macro_version=$macro_version
17038
macro_revision=$macro_revision
17039
17040
# Whether or not to build shared libraries.
17041
build_libtool_libs=$enable_shared
17042
17043
# Whether or not to build static libraries.
17044
build_old_libs=$enable_static
17045
17046
# What type of objects to build.
17047
pic_mode=$pic_mode
17048
17049
# Whether or not to optimize for fast installation.
17050
fast_install=$enable_fast_install
17051
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17052
# Shell to use when invoking shell scripts.
17053
SHELL=$lt_SHELL
17054
17055
# An echo program that protects backslashes.
17056
ECHO=$lt_ECHO
17057
1.1.56 by Ken VanDine
Import upstream version 0.5.90
17058
# The PATH separator for the build system.
17059
PATH_SEPARATOR=$lt_PATH_SEPARATOR
17060
2 by Jonathan Riddell
Run autogen.sh before upload
17061
# The host system.
17062
host_alias=$host_alias
17063
host=$host
17064
host_os=$host_os
17065
17066
# The build system.
17067
build_alias=$build_alias
17068
build=$build
17069
build_os=$build_os
17070
17071
# A sed program that does not truncate output.
17072
SED=$lt_SED
17073
17074
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17075
Xsed="\$SED -e 1s/^X//"
17076
17077
# A grep program that handles long lines.
17078
GREP=$lt_GREP
17079
17080
# An ERE matcher.
17081
EGREP=$lt_EGREP
17082
17083
# A literal string matcher.
17084
FGREP=$lt_FGREP
17085
17086
# A BSD- or MS-compatible name lister.
17087
NM=$lt_NM
17088
17089
# Whether we need soft or hard links.
17090
LN_S=$lt_LN_S
17091
17092
# What is the maximum length of a command?
17093
max_cmd_len=$max_cmd_len
17094
17095
# Object file suffix (normally "o").
17096
objext=$ac_objext
17097
17098
# Executable file suffix (normally "").
17099
exeext=$exeext
17100
17101
# whether the shell understands "unset".
17102
lt_unset=$lt_unset
17103
17104
# turn spaces into newlines.
17105
SP2NL=$lt_lt_SP2NL
17106
17107
# turn newlines into spaces.
17108
NL2SP=$lt_lt_NL2SP
17109
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17110
# convert \$build file names to \$host format.
17111
to_host_file_cmd=$lt_cv_to_host_file_cmd
17112
17113
# convert \$build files to toolchain format.
17114
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
2 by Jonathan Riddell
Run autogen.sh before upload
17115
17116
# An object symbol dumper.
17117
OBJDUMP=$lt_OBJDUMP
17118
17119
# Method to check whether dependent libraries are shared objects.
17120
deplibs_check_method=$lt_deplibs_check_method
17121
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17122
# Command to use when deplibs_check_method = "file_magic".
2 by Jonathan Riddell
Run autogen.sh before upload
17123
file_magic_cmd=$lt_file_magic_cmd
17124
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17125
# How to find potential files when deplibs_check_method = "file_magic".
17126
file_magic_glob=$lt_file_magic_glob
17127
17128
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17129
want_nocaseglob=$lt_want_nocaseglob
17130
17131
# DLL creation program.
17132
DLLTOOL=$lt_DLLTOOL
17133
17134
# Command to associate shared and link libraries.
17135
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17136
2 by Jonathan Riddell
Run autogen.sh before upload
17137
# The archiver.
17138
AR=$lt_AR
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17139
17140
# Flags to create an archive.
2 by Jonathan Riddell
Run autogen.sh before upload
17141
AR_FLAGS=$lt_AR_FLAGS
17142
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17143
# How to feed a file listing to the archiver.
17144
archiver_list_spec=$lt_archiver_list_spec
17145
2 by Jonathan Riddell
Run autogen.sh before upload
17146
# A symbol stripping program.
17147
STRIP=$lt_STRIP
17148
17149
# Commands used to install an old-style archive.
17150
RANLIB=$lt_RANLIB
17151
old_postinstall_cmds=$lt_old_postinstall_cmds
17152
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17153
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17154
# Whether to use a lock for old archive extraction.
17155
lock_old_archive_extraction=$lock_old_archive_extraction
17156
2 by Jonathan Riddell
Run autogen.sh before upload
17157
# A C compiler.
17158
LTCC=$lt_CC
17159
17160
# LTCC compiler flags.
17161
LTCFLAGS=$lt_CFLAGS
17162
17163
# Take the output of nm and produce a listing of raw symbols and C names.
17164
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17165
17166
# Transform the output of nm in a proper C declaration.
17167
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17168
17169
# Transform the output of nm in a C name address pair.
17170
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17171
17172
# Transform the output of nm in a C name address pair when lib prefix is needed.
17173
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17174
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17175
# Specify filename containing input files for \$NM.
17176
nm_file_list_spec=$lt_nm_file_list_spec
17177
17178
# The root where to search for dependent libraries,and in which our libraries should be installed.
17179
lt_sysroot=$lt_sysroot
17180
2 by Jonathan Riddell
Run autogen.sh before upload
17181
# The name of the directory that contains temporary libtool files.
17182
objdir=$objdir
17183
17184
# Used to examine libraries when file_magic_cmd begins with "file".
17185
MAGIC_CMD=$MAGIC_CMD
17186
17187
# Must we lock files when doing compilation?
17188
need_locks=$lt_need_locks
17189
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17190
# Manifest tool.
17191
MANIFEST_TOOL=$lt_MANIFEST_TOOL
17192
2 by Jonathan Riddell
Run autogen.sh before upload
17193
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17194
DSYMUTIL=$lt_DSYMUTIL
17195
17196
# Tool to change global to local symbols on Mac OS X.
17197
NMEDIT=$lt_NMEDIT
17198
17199
# Tool to manipulate fat objects and archives on Mac OS X.
17200
LIPO=$lt_LIPO
17201
17202
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17203
OTOOL=$lt_OTOOL
17204
17205
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17206
OTOOL64=$lt_OTOOL64
17207
17208
# Old archive suffix (normally "a").
17209
libext=$libext
17210
17211
# Shared library suffix (normally ".so").
17212
shrext_cmds=$lt_shrext_cmds
17213
17214
# The commands to extract the exported symbol list from a shared archive.
17215
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17216
17217
# Variables whose values should be saved in libtool wrapper scripts and
17218
# restored at link time.
17219
variables_saved_for_relink=$lt_variables_saved_for_relink
17220
17221
# Do we need the "lib" prefix for modules?
17222
need_lib_prefix=$need_lib_prefix
17223
17224
# Do we need a version for libraries?
17225
need_version=$need_version
17226
17227
# Library versioning type.
17228
version_type=$version_type
17229
17230
# Shared library runtime path variable.
17231
runpath_var=$runpath_var
17232
17233
# Shared library path variable.
17234
shlibpath_var=$shlibpath_var
17235
17236
# Is shlibpath searched before the hard-coded library search path?
17237
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17238
17239
# Format of library name prefix.
17240
libname_spec=$lt_libname_spec
17241
17242
# List of archive names.  First name is the real one, the rest are links.
17243
# The last name is the one that the linker finds with -lNAME
17244
library_names_spec=$lt_library_names_spec
17245
17246
# The coded name of the library, if different from the real name.
17247
soname_spec=$lt_soname_spec
17248
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17249
# Permission mode override for installation of shared libraries.
17250
install_override_mode=$lt_install_override_mode
17251
2 by Jonathan Riddell
Run autogen.sh before upload
17252
# Command to use after installation of a shared archive.
17253
postinstall_cmds=$lt_postinstall_cmds
17254
17255
# Command to use after uninstallation of a shared archive.
17256
postuninstall_cmds=$lt_postuninstall_cmds
17257
17258
# Commands used to finish a libtool library installation in a directory.
17259
finish_cmds=$lt_finish_cmds
17260
17261
# As "finish_cmds", except a single script fragment to be evaled but
17262
# not shown.
17263
finish_eval=$lt_finish_eval
17264
17265
# Whether we should hardcode library paths into libraries.
17266
hardcode_into_libs=$hardcode_into_libs
17267
17268
# Compile-time system search path for libraries.
17269
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17270
17271
# Run-time system search path for libraries.
17272
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17273
17274
# Whether dlopen is supported.
17275
dlopen_support=$enable_dlopen
17276
17277
# Whether dlopen of programs is supported.
17278
dlopen_self=$enable_dlopen_self
17279
17280
# Whether dlopen of statically linked programs is supported.
17281
dlopen_self_static=$enable_dlopen_self_static
17282
17283
# Commands to strip libraries.
17284
old_striplib=$lt_old_striplib
17285
striplib=$lt_striplib
17286
17287
17288
# The linker used to build libraries.
17289
LD=$lt_LD
17290
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17291
# How to create reloadable object files.
17292
reload_flag=$lt_reload_flag
17293
reload_cmds=$lt_reload_cmds
17294
2 by Jonathan Riddell
Run autogen.sh before upload
17295
# Commands used to build an old-style archive.
17296
old_archive_cmds=$lt_old_archive_cmds
17297
17298
# A language specific compiler.
17299
CC=$lt_compiler
17300
17301
# Is the compiler the GNU compiler?
17302
with_gcc=$GCC
17303
17304
# Compiler flag to turn off builtin functions.
17305
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17306
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17307
# Additional compiler flags for building library objects.
17308
pic_flag=$lt_lt_prog_compiler_pic
17309
2 by Jonathan Riddell
Run autogen.sh before upload
17310
# How to pass a linker flag through the compiler.
17311
wl=$lt_lt_prog_compiler_wl
17312
17313
# Compiler flag to prevent dynamic linking.
17314
link_static_flag=$lt_lt_prog_compiler_static
17315
17316
# Does compiler simultaneously support -c and -o options?
17317
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17318
17319
# Whether or not to add -lc for building shared libraries.
17320
build_libtool_need_lc=$archive_cmds_need_lc
17321
17322
# Whether or not to disallow shared libs when runtime libs are static.
17323
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17324
17325
# Compiler flag to allow reflexive dlopens.
17326
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17327
17328
# Compiler flag to generate shared objects directly from archives.
17329
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17330
17331
# Whether the compiler copes with passing no objects directly.
17332
compiler_needs_object=$lt_compiler_needs_object
17333
17334
# Create an old-style archive from a shared archive.
17335
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17336
17337
# Create a temporary old-style archive to link instead of a shared archive.
17338
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17339
17340
# Commands used to build a shared archive.
17341
archive_cmds=$lt_archive_cmds
17342
archive_expsym_cmds=$lt_archive_expsym_cmds
17343
17344
# Commands used to build a loadable module if different from building
17345
# a shared archive.
17346
module_cmds=$lt_module_cmds
17347
module_expsym_cmds=$lt_module_expsym_cmds
17348
17349
# Whether we are building with GNU ld or not.
17350
with_gnu_ld=$lt_with_gnu_ld
17351
17352
# Flag that allows shared libraries with undefined symbols to be built.
17353
allow_undefined_flag=$lt_allow_undefined_flag
17354
17355
# Flag that enforces no undefined symbols.
17356
no_undefined_flag=$lt_no_undefined_flag
17357
17358
# Flag to hardcode \$libdir into a binary during linking.
17359
# This must work even if \$libdir does not exist
17360
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17361
17362
# Whether we need a single "-rpath" flag with a separated argument.
17363
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17364
17365
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17366
# DIR into the resulting binary.
17367
hardcode_direct=$hardcode_direct
17368
17369
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370
# DIR into the resulting binary and the resulting library dependency is
17371
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17372
# library is relocated.
17373
hardcode_direct_absolute=$hardcode_direct_absolute
17374
17375
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17376
# into the resulting binary.
17377
hardcode_minus_L=$hardcode_minus_L
17378
17379
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17380
# into the resulting binary.
17381
hardcode_shlibpath_var=$hardcode_shlibpath_var
17382
17383
# Set to "yes" if building a shared library automatically hardcodes DIR
17384
# into the library and all subsequent libraries and executables linked
17385
# against it.
17386
hardcode_automatic=$hardcode_automatic
17387
17388
# Set to yes if linker adds runtime paths of dependent libraries
17389
# to runtime path list.
17390
inherit_rpath=$inherit_rpath
17391
17392
# Whether libtool must link a program against all its dependency libraries.
17393
link_all_deplibs=$link_all_deplibs
17394
17395
# Set to "yes" if exported symbols are required.
17396
always_export_symbols=$always_export_symbols
17397
17398
# The commands to list exported symbols.
17399
export_symbols_cmds=$lt_export_symbols_cmds
17400
17401
# Symbols that should not be listed in the preloaded symbols.
17402
exclude_expsyms=$lt_exclude_expsyms
17403
17404
# Symbols that must always be exported.
17405
include_expsyms=$lt_include_expsyms
17406
17407
# Commands necessary for linking programs (against libraries) with templates.
17408
prelink_cmds=$lt_prelink_cmds
17409
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17410
# Commands necessary for finishing linking programs.
17411
postlink_cmds=$lt_postlink_cmds
17412
2 by Jonathan Riddell
Run autogen.sh before upload
17413
# Specify filename containing input files.
17414
file_list_spec=$lt_file_list_spec
17415
17416
# How to hardcode a shared library path into an executable.
17417
hardcode_action=$hardcode_action
17418
17419
# ### END LIBTOOL CONFIG
17420
17421
_LT_EOF
17422
17423
  case $host_os in
17424
  aix3*)
17425
    cat <<\_LT_EOF >> "$cfgfile"
17426
# AIX sometimes has problems with the GCC collect2 program.  For some
17427
# reason, if we set the COLLECT_NAMES environment variable, the problems
17428
# vanish in a puff of smoke.
17429
if test "X${COLLECT_NAMES+set}" != Xset; then
17430
  COLLECT_NAMES=
17431
  export COLLECT_NAMES
17432
fi
17433
_LT_EOF
17434
    ;;
17435
  esac
17436
17437
17438
ltmain="$ac_aux_dir/ltmain.sh"
17439
17440
17441
  # We use sed instead of cat because bash on DJGPP gets confused if
17442
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17443
  # text mode, it properly converts lines to CR/LF.  This bash problem
17444
  # is reportedly fixed, but why not run on old versions too?
1.1.50 by Ken VanDine
Import upstream version 0.4.90
17445
  sed '$q' "$ltmain" >> "$cfgfile" \
17446
     || (rm -f "$cfgfile"; exit 1)
17447
17448
  if test x"$xsi_shell" = xyes; then
17449
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17450
func_dirname ()\
17451
{\
17452
\    case ${1} in\
17453
\      */*) func_dirname_result="${1%/*}${2}" ;;\
17454
\      *  ) func_dirname_result="${3}" ;;\
17455
\    esac\
17456
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17457
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17458
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17459
test 0 -eq $? || _lt_function_replace_fail=:
17460
17461
17462
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17463
func_basename ()\
17464
{\
17465
\    func_basename_result="${1##*/}"\
17466
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17467
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17468
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17469
test 0 -eq $? || _lt_function_replace_fail=:
17470
17471
17472
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17473
func_dirname_and_basename ()\
17474
{\
17475
\    case ${1} in\
17476
\      */*) func_dirname_result="${1%/*}${2}" ;;\
17477
\      *  ) func_dirname_result="${3}" ;;\
17478
\    esac\
17479
\    func_basename_result="${1##*/}"\
17480
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17481
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17482
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17483
test 0 -eq $? || _lt_function_replace_fail=:
17484
17485
17486
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17487
func_stripname ()\
17488
{\
17489
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17490
\    # positional parameters, so assign one to ordinary parameter first.\
17491
\    func_stripname_result=${3}\
17492
\    func_stripname_result=${func_stripname_result#"${1}"}\
17493
\    func_stripname_result=${func_stripname_result%"${2}"}\
17494
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17495
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17496
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17497
test 0 -eq $? || _lt_function_replace_fail=:
17498
17499
17500
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17501
func_split_long_opt ()\
17502
{\
17503
\    func_split_long_opt_name=${1%%=*}\
17504
\    func_split_long_opt_arg=${1#*=}\
17505
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17506
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17507
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17508
test 0 -eq $? || _lt_function_replace_fail=:
17509
17510
17511
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17512
func_split_short_opt ()\
17513
{\
17514
\    func_split_short_opt_arg=${1#??}\
17515
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17516
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17517
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17518
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17519
test 0 -eq $? || _lt_function_replace_fail=:
17520
17521
17522
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17523
func_lo2o ()\
17524
{\
17525
\    case ${1} in\
17526
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17527
\      *)    func_lo2o_result=${1} ;;\
17528
\    esac\
17529
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17530
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17531
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17532
test 0 -eq $? || _lt_function_replace_fail=:
17533
17534
17535
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17536
func_xform ()\
17537
{\
17538
    func_xform_result=${1%.*}.lo\
17539
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17540
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17541
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17542
test 0 -eq $? || _lt_function_replace_fail=:
17543
17544
17545
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17546
func_arith ()\
17547
{\
17548
    func_arith_result=$(( $* ))\
17549
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17550
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17551
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17552
test 0 -eq $? || _lt_function_replace_fail=:
17553
17554
17555
  sed -e '/^func_len ()$/,/^} # func_len /c\
17556
func_len ()\
17557
{\
17558
    func_len_result=${#1}\
17559
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17560
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17561
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562
test 0 -eq $? || _lt_function_replace_fail=:
17563
17564
fi
17565
17566
if test x"$lt_shell_append" = xyes; then
17567
  sed -e '/^func_append ()$/,/^} # func_append /c\
17568
func_append ()\
17569
{\
17570
    eval "${1}+=\\${2}"\
17571
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17572
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17573
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17574
test 0 -eq $? || _lt_function_replace_fail=:
17575
17576
17577
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17578
func_append_quoted ()\
17579
{\
17580
\    func_quote_for_eval "${2}"\
17581
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17582
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17583
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17584
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17585
test 0 -eq $? || _lt_function_replace_fail=:
17586
17587
17588
  # Save a `func_append' function call where possible by direct use of '+='
17589
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17590
    && mv -f "$cfgfile.tmp" "$cfgfile" \
17591
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17592
  test 0 -eq $? || _lt_function_replace_fail=:
17593
else
17594
  # Save a `func_append' function call even when '+=' is not available
17595
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17596
    && mv -f "$cfgfile.tmp" "$cfgfile" \
17597
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17598
  test 0 -eq $? || _lt_function_replace_fail=:
17599
fi
17600
17601
if test x"$_lt_function_replace_fail" = x":"; then
17602
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17603
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17604
fi
17605
17606
17607
   mv -f "$cfgfile" "$ofile" ||
2 by Jonathan Riddell
Run autogen.sh before upload
17608
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17609
  chmod +x "$ofile"
17610
17611
 ;;
17612
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17613
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17614
      esac ;;
17615
    "po/stamp-it":C)
17616
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
1.1.27 by Ted Gould
Import upstream version 0.3.10
17617
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
17618
    fi
17619
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17620
    >"po/stamp-it.tmp"
17621
    sed '/^#/d
17622
	 s/^[[].*] *//
17623
	 /^[ 	]*$/d
17624
	'"s|^|	$ac_top_srcdir/|" \
17625
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17626
17627
    sed '/^POTFILES =/,/[^\\]$/ {
17628
		/^POTFILES =/!d
17629
		r po/POTFILES
17630
	  }
17631
	 ' "po/Makefile.in" >"po/Makefile"
17632
    rm -f "po/Makefile.tmp"
17633
    mv "po/stamp-it.tmp" "po/stamp-it"
17634
   ;;
17635
17636
  esac
17637
done # for ac_tag
17638
17639
17640
as_fn_exit 0
17641
_ACEOF
17642
ac_clean_files=$ac_clean_files_save
17643
17644
test $ac_write_fail = 0 ||
1.1.27 by Ted Gould
Import upstream version 0.3.10
17645
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
2 by Jonathan Riddell
Run autogen.sh before upload
17646
17647
17648
# configure is writing to config.log, and then calls config.status.
17649
# config.status does its own redirection, appending to config.log.
17650
# Unfortunately, on DOS this fails, as config.log is still kept open
17651
# by configure, so config.status won't be able to write to it; its
17652
# output is simply discarded.  So we exec the FD to /dev/null,
17653
# effectively closing config.log, so it can be properly (re)opened and
17654
# appended to by config.status.  When coming back to configure, we
17655
# need to make the FD available again.
17656
if test "$no_create" != yes; then
17657
  ac_cs_success=:
17658
  ac_config_status_args=
17659
  test "$silent" = yes &&
17660
    ac_config_status_args="$ac_config_status_args --quiet"
17661
  exec 5>/dev/null
17662
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17663
  exec 5>>config.log
17664
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17665
  # would make configure fail if this is the last instruction.
1.1.27 by Ted Gould
Import upstream version 0.3.10
17666
  $ac_cs_success || as_fn_exit 1
2 by Jonathan Riddell
Run autogen.sh before upload
17667
fi
17668
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17669
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17670
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17671
fi
17672
17673
17674
###########################
17675
# Results
17676
###########################
17677
17678
{ $as_echo "$as_me:${as_lineno-$LINENO}:
17679
17680
libdbusmenu Configuration:
17681
17682
	Prefix:                 $prefix
1.1.6 by Ted Gould
Import upstream version 0.1.6
17683
	Massive Debugging:      $with_massivedebugging
1.1.33 by Ken VanDine
Import upstream version 0.3.90
17684
	GTK+ Version:           $with_gtk
2 by Jonathan Riddell
Run autogen.sh before upload
17685
" >&5
17686
$as_echo "$as_me:
17687
17688
libdbusmenu Configuration:
17689
17690
	Prefix:                 $prefix
1.1.6 by Ted Gould
Import upstream version 0.1.6
17691
	Massive Debugging:      $with_massivedebugging
1.1.33 by Ken VanDine
Import upstream version 0.3.90
17692
	GTK+ Version:           $with_gtk
2 by Jonathan Riddell
Run autogen.sh before upload
17693
" >&6;}
17694
1.1.53 by Ken VanDine
Import upstream version 0.4.94
17695
if test "x$have_tests" = "xyes"; then :
17696
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Tests:                  yes" >&5
17697
$as_echo "$as_me: 	Tests:                  yes" >&6;}
17698
else
17699
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Tests:                  no" >&5
17700
$as_echo "$as_me: 	Tests:                  no" >&6;}
17701
17702
fi
17703
17704
if test "x$enable_gtk" = "xno"; then :
17705
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Gtk:                    no" >&5
17706
$as_echo "$as_me: 	Gtk:                    no" >&6;}
17707
else
17708
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Gtk:                    yes (gtk$with_gtk)" >&5
17709
$as_echo "$as_me: 	Gtk:                    yes (gtk$with_gtk)" >&6;}
17710
17711
fi
17712
1.1.57 by Sebastien Bacher
Import upstream version 0.5.91
17713
if test -z "$HAVE_VALA_TRUE"; then :
1.1.53 by Ken VanDine
Import upstream version 0.4.94
17714
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Vala bindings:          yes" >&5
17715
$as_echo "$as_me: 	Vala bindings:          yes" >&6;}
17716
else
17717
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Vala bindings           no" >&5
17718
$as_echo "$as_me: 	Vala bindings           no" >&6;}
17719
17720
fi
17721
17722
if test "x$have_dumper" = "xyes"; then :
17723
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Dumper:                 yes" >&5
17724
$as_echo "$as_me: 	Dumper:                 yes" >&6;}
17725
else
17726
  { $as_echo "$as_me:${as_lineno-$LINENO}: 	Dumper:                 no" >&5
17727
$as_echo "$as_me: 	Dumper:                 no" >&6;}
17728
17729
fi
17730