head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2013.02.10.09.39.36;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311997
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@--- autoconf/flac.orig
+++ autoconf/flac
@@@@ -14,7 +14,7 @@@@
 #*    flags                                                            */
 #*---------------------------------------------------------------------*/
 cflags=
-flaclib=-lFLAC
+libs=
 
 #*---------------------------------------------------------------------*/
 #*    We parse the arguments                                           */
@@@@ -27,8 +27,8 @@@@
     --cflags=*|-cflags=*)
       cflags="`echo $1 | sed 's/^[-a-z]*=//'`";;
 
-    --flaclib=*)
-      flaclib="`echo $1 | sed 's/^[-a-z]*=//'`";;
+    --libs=*)
+      libs="`echo $1 | sed 's/^[-a-z]*=//'`";;
 
     -*)
       echo "Unknown option \"$1\", ignored" >&2;;
@@@@ -43,7 +43,7 @@@@
 #*---------------------------------------------------------------------*/
 #*    compile                                                          */
 #*---------------------------------------------------------------------*/
-compile="$CC $cflags $file.c -o $aout $flaclib >/dev/null"
+compile="$CC $cflags $file.c -o $aout $libs >/dev/null"
 
 #*---------------------------------------------------------------------*/
 #*    The test C file                                                  */
@@@@ -88,7 +88,7 @@@@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include "FLAC/stream_decoder.h"
+#include "stream_decoder.h"
 
 static FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
 static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
@@@@ -252,7 +252,7 @@@@
 #*    Compilation test                                                 */
 #*---------------------------------------------------------------------*/
 if eval "$BUILDSH $compile"; then
-   echo "$flaclib"
+   echo "yes"
 else
    echo "no"
 fi
@
