You can use configureScript = "./autogen.sh", so that you let stdenv pass the necessary arguments.